configure revision 5d24957f4e650fea82d0d1a40f844ecfb0360de3
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60 for llvm 2.6svn.
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-2008 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.6svn'
719PACKAGE_STRING='llvm 2.6svn'
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
811LINKALL
812NOLINKALL
813LLVM_ON_UNIX
814LLVM_ON_WIN32
815ARCH
816ENDIAN
817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
830BUILD_CXX
831CVSBUILD
832ENABLE_OPTIMIZED
833DISABLE_ASSERTIONS
834ENABLE_EXPENSIVE_CHECKS
835EXPENSIVE_CHECKS
836DEBUG_RUNTIME
837JIT
838TARGET_HAS_JIT
839ENABLE_DOXYGEN
840ENABLE_THREADS
841ENABLE_PIC
842TARGETS_TO_BUILD
843ENABLE_CBE_PRINTF_A
844EXTRA_OPTIONS
845BINUTILS_INCDIR
846CXX
847CXXFLAGS
848ac_ct_CXX
849LEX
850LEXLIB
851LEX_OUTPUT_ROOT
852FLEX
853YACC
854YFLAGS
855BISON
856NM
857ifGNUmake
858LN_S
859CMP
860CP
861DATE
862FIND
863MKDIR
864MV
865RANLIB
866RM
867SED
868TAR
869BINPWD
870GRAPHVIZ
871DOT
872GV
873DOTTY
874PERL
875HAVE_PERL
876INSTALL_PROGRAM
877INSTALL_SCRIPT
878INSTALL_DATA
879BZIP2
880DOXYGEN
881GROFF
882GZIP
883POD2HTML
884POD2MAN
885RUNTEST
886TCLSH
887ZIP
888OCAMLC
889OCAMLOPT
890OCAMLDEP
891OCAMLDOC
892GAS
893INSTALL_LTDL_TRUE
894INSTALL_LTDL_FALSE
895CONVENIENCE_LTDL_TRUE
896CONVENIENCE_LTDL_FALSE
897LIBADD_DL
898ECHO
899AR
900STRIP
901CXXCPP
902F77
903FFLAGS
904ac_ct_F77
905LIBTOOL
906LLVMGCC
907LLVMGXX
908USE_UDIS86
909HAVE_PTHREAD
910HAVE_FFI
911HUGE_VAL_SANITY
912ALLOCA
913MMAP_FILE
914LLVMCC1
915LLVMCC1PLUS
916LLVMGCCDIR
917LLVMGCCLIBEXEC
918LLVMGCC_VERSION
919LLVMGCC_MAJVERS
920LLVMGCC_LANGS
921SHLIBEXT
922LLVM_PREFIX
923LLVM_BINDIR
924LLVM_LIBDIR
925LLVM_DATADIR
926LLVM_DOCSDIR
927LLVM_ETCDIR
928LLVM_INCLUDEDIR
929LLVM_INFODIR
930LLVM_MANDIR
931LLVM_CONFIGTIME
932BINDINGS_TO_BUILD
933ALL_BINDINGS
934OCAML_LIBDIR
935ENABLE_VISIBILITY_INLINES_HIDDEN
936LIBOBJS
937LTLIBOBJS'
938ac_subst_files=''
939      ac_precious_vars='build_alias
940host_alias
941target_alias
942CC
943CFLAGS
944LDFLAGS
945CPPFLAGS
946CPP
947CXX
948CXXFLAGS
949CCC
950YACC
951YFLAGS
952CXXCPP
953F77
954FFLAGS'
955ac_subdirs_all='projects/sample
956projects/privbracket
957projects/llvm-stacker
958projects/llvm-test
959projects/test-suite
960projects/llvm-reopt
961projects/llvm-gcc
962projects/llvm-java
963projects/llvm-tv
964projects/llvm-poolalloc
965projects/poolalloc
966projects/llvm-kernel'
967
968# Initialize some variables set by options.
969ac_init_help=
970ac_init_version=false
971# The variables have the same names as the options, with
972# dashes changed to underlines.
973cache_file=/dev/null
974exec_prefix=NONE
975no_create=
976no_recursion=
977prefix=NONE
978program_prefix=NONE
979program_suffix=NONE
980program_transform_name=s,x,x,
981silent=
982site=
983srcdir=
984verbose=
985x_includes=NONE
986x_libraries=NONE
987
988# Installation directory options.
989# These are left unexpanded so users can "make install exec_prefix=/foo"
990# and all the variables that are supposed to be based on exec_prefix
991# by default will actually change.
992# Use braces instead of parens because sh, perl, etc. also accept them.
993# (The list follows the same order as the GNU Coding Standards.)
994bindir='${exec_prefix}/bin'
995sbindir='${exec_prefix}/sbin'
996libexecdir='${exec_prefix}/libexec'
997datarootdir='${prefix}/share'
998datadir='${datarootdir}'
999sysconfdir='${prefix}/etc'
1000sharedstatedir='${prefix}/com'
1001localstatedir='${prefix}/var'
1002includedir='${prefix}/include'
1003oldincludedir='/usr/include'
1004docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1005infodir='${datarootdir}/info'
1006htmldir='${docdir}'
1007dvidir='${docdir}'
1008pdfdir='${docdir}'
1009psdir='${docdir}'
1010libdir='${exec_prefix}/lib'
1011localedir='${datarootdir}/locale'
1012mandir='${datarootdir}/man'
1013
1014ac_prev=
1015ac_dashdash=
1016for ac_option
1017do
1018  # If the previous option needs an argument, assign it.
1019  if test -n "$ac_prev"; then
1020    eval $ac_prev=\$ac_option
1021    ac_prev=
1022    continue
1023  fi
1024
1025  case $ac_option in
1026  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1027  *)	ac_optarg=yes ;;
1028  esac
1029
1030  # Accept the important Cygnus configure options, so we can diagnose typos.
1031
1032  case $ac_dashdash$ac_option in
1033  --)
1034    ac_dashdash=yes ;;
1035
1036  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1037    ac_prev=bindir ;;
1038  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1039    bindir=$ac_optarg ;;
1040
1041  -build | --build | --buil | --bui | --bu)
1042    ac_prev=build_alias ;;
1043  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1044    build_alias=$ac_optarg ;;
1045
1046  -cache-file | --cache-file | --cache-fil | --cache-fi \
1047  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1048    ac_prev=cache_file ;;
1049  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1050  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1051    cache_file=$ac_optarg ;;
1052
1053  --config-cache | -C)
1054    cache_file=config.cache ;;
1055
1056  -datadir | --datadir | --datadi | --datad)
1057    ac_prev=datadir ;;
1058  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1059    datadir=$ac_optarg ;;
1060
1061  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1062  | --dataroo | --dataro | --datar)
1063    ac_prev=datarootdir ;;
1064  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1065  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1066    datarootdir=$ac_optarg ;;
1067
1068  -disable-* | --disable-*)
1069    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1070    # Reject names that are not valid shell variable names.
1071    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1072      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1073   { (exit 1); exit 1; }; }
1074    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1075    eval enable_$ac_feature=no ;;
1076
1077  -docdir | --docdir | --docdi | --doc | --do)
1078    ac_prev=docdir ;;
1079  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1080    docdir=$ac_optarg ;;
1081
1082  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1083    ac_prev=dvidir ;;
1084  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1085    dvidir=$ac_optarg ;;
1086
1087  -enable-* | --enable-*)
1088    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1089    # Reject names that are not valid shell variable names.
1090    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1091      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1092   { (exit 1); exit 1; }; }
1093    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1094    eval enable_$ac_feature=\$ac_optarg ;;
1095
1096  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1097  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1098  | --exec | --exe | --ex)
1099    ac_prev=exec_prefix ;;
1100  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1101  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1102  | --exec=* | --exe=* | --ex=*)
1103    exec_prefix=$ac_optarg ;;
1104
1105  -gas | --gas | --ga | --g)
1106    # Obsolete; use --with-gas.
1107    with_gas=yes ;;
1108
1109  -help | --help | --hel | --he | -h)
1110    ac_init_help=long ;;
1111  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1112    ac_init_help=recursive ;;
1113  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1114    ac_init_help=short ;;
1115
1116  -host | --host | --hos | --ho)
1117    ac_prev=host_alias ;;
1118  -host=* | --host=* | --hos=* | --ho=*)
1119    host_alias=$ac_optarg ;;
1120
1121  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1122    ac_prev=htmldir ;;
1123  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1124  | --ht=*)
1125    htmldir=$ac_optarg ;;
1126
1127  -includedir | --includedir | --includedi | --included | --include \
1128  | --includ | --inclu | --incl | --inc)
1129    ac_prev=includedir ;;
1130  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1131  | --includ=* | --inclu=* | --incl=* | --inc=*)
1132    includedir=$ac_optarg ;;
1133
1134  -infodir | --infodir | --infodi | --infod | --info | --inf)
1135    ac_prev=infodir ;;
1136  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1137    infodir=$ac_optarg ;;
1138
1139  -libdir | --libdir | --libdi | --libd)
1140    ac_prev=libdir ;;
1141  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1142    libdir=$ac_optarg ;;
1143
1144  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1145  | --libexe | --libex | --libe)
1146    ac_prev=libexecdir ;;
1147  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1148  | --libexe=* | --libex=* | --libe=*)
1149    libexecdir=$ac_optarg ;;
1150
1151  -localedir | --localedir | --localedi | --localed | --locale)
1152    ac_prev=localedir ;;
1153  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1154    localedir=$ac_optarg ;;
1155
1156  -localstatedir | --localstatedir | --localstatedi | --localstated \
1157  | --localstate | --localstat | --localsta | --localst | --locals)
1158    ac_prev=localstatedir ;;
1159  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1160  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1161    localstatedir=$ac_optarg ;;
1162
1163  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1164    ac_prev=mandir ;;
1165  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1166    mandir=$ac_optarg ;;
1167
1168  -nfp | --nfp | --nf)
1169    # Obsolete; use --without-fp.
1170    with_fp=no ;;
1171
1172  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1173  | --no-cr | --no-c | -n)
1174    no_create=yes ;;
1175
1176  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1177  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1178    no_recursion=yes ;;
1179
1180  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1181  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1182  | --oldin | --oldi | --old | --ol | --o)
1183    ac_prev=oldincludedir ;;
1184  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1185  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1186  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1187    oldincludedir=$ac_optarg ;;
1188
1189  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1190    ac_prev=prefix ;;
1191  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1192    prefix=$ac_optarg ;;
1193
1194  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1195  | --program-pre | --program-pr | --program-p)
1196    ac_prev=program_prefix ;;
1197  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1198  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1199    program_prefix=$ac_optarg ;;
1200
1201  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1202  | --program-suf | --program-su | --program-s)
1203    ac_prev=program_suffix ;;
1204  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1205  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1206    program_suffix=$ac_optarg ;;
1207
1208  -program-transform-name | --program-transform-name \
1209  | --program-transform-nam | --program-transform-na \
1210  | --program-transform-n | --program-transform- \
1211  | --program-transform | --program-transfor \
1212  | --program-transfo | --program-transf \
1213  | --program-trans | --program-tran \
1214  | --progr-tra | --program-tr | --program-t)
1215    ac_prev=program_transform_name ;;
1216  -program-transform-name=* | --program-transform-name=* \
1217  | --program-transform-nam=* | --program-transform-na=* \
1218  | --program-transform-n=* | --program-transform-=* \
1219  | --program-transform=* | --program-transfor=* \
1220  | --program-transfo=* | --program-transf=* \
1221  | --program-trans=* | --program-tran=* \
1222  | --progr-tra=* | --program-tr=* | --program-t=*)
1223    program_transform_name=$ac_optarg ;;
1224
1225  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1226    ac_prev=pdfdir ;;
1227  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1228    pdfdir=$ac_optarg ;;
1229
1230  -psdir | --psdir | --psdi | --psd | --ps)
1231    ac_prev=psdir ;;
1232  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1233    psdir=$ac_optarg ;;
1234
1235  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1236  | -silent | --silent | --silen | --sile | --sil)
1237    silent=yes ;;
1238
1239  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1240    ac_prev=sbindir ;;
1241  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1242  | --sbi=* | --sb=*)
1243    sbindir=$ac_optarg ;;
1244
1245  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1246  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1247  | --sharedst | --shareds | --shared | --share | --shar \
1248  | --sha | --sh)
1249    ac_prev=sharedstatedir ;;
1250  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1251  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1252  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1253  | --sha=* | --sh=*)
1254    sharedstatedir=$ac_optarg ;;
1255
1256  -site | --site | --sit)
1257    ac_prev=site ;;
1258  -site=* | --site=* | --sit=*)
1259    site=$ac_optarg ;;
1260
1261  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1262    ac_prev=srcdir ;;
1263  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1264    srcdir=$ac_optarg ;;
1265
1266  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1267  | --syscon | --sysco | --sysc | --sys | --sy)
1268    ac_prev=sysconfdir ;;
1269  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1270  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1271    sysconfdir=$ac_optarg ;;
1272
1273  -target | --target | --targe | --targ | --tar | --ta | --t)
1274    ac_prev=target_alias ;;
1275  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1276    target_alias=$ac_optarg ;;
1277
1278  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1279    verbose=yes ;;
1280
1281  -version | --version | --versio | --versi | --vers | -V)
1282    ac_init_version=: ;;
1283
1284  -with-* | --with-*)
1285    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1286    # Reject names that are not valid shell variable names.
1287    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1288      { echo "$as_me: error: invalid package name: $ac_package" >&2
1289   { (exit 1); exit 1; }; }
1290    ac_package=`echo $ac_package| sed 's/-/_/g'`
1291    eval with_$ac_package=\$ac_optarg ;;
1292
1293  -without-* | --without-*)
1294    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1295    # Reject names that are not valid shell variable names.
1296    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1297      { echo "$as_me: error: invalid package name: $ac_package" >&2
1298   { (exit 1); exit 1; }; }
1299    ac_package=`echo $ac_package | sed 's/-/_/g'`
1300    eval with_$ac_package=no ;;
1301
1302  --x)
1303    # Obsolete; use --with-x.
1304    with_x=yes ;;
1305
1306  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1307  | --x-incl | --x-inc | --x-in | --x-i)
1308    ac_prev=x_includes ;;
1309  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1310  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1311    x_includes=$ac_optarg ;;
1312
1313  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1314  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1315    ac_prev=x_libraries ;;
1316  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1317  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1318    x_libraries=$ac_optarg ;;
1319
1320  -*) { echo "$as_me: error: unrecognized option: $ac_option
1321Try \`$0 --help' for more information." >&2
1322   { (exit 1); exit 1; }; }
1323    ;;
1324
1325  *=*)
1326    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1327    # Reject names that are not valid shell variable names.
1328    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1329      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1330   { (exit 1); exit 1; }; }
1331    eval $ac_envvar=\$ac_optarg
1332    export $ac_envvar ;;
1333
1334  *)
1335    # FIXME: should be removed in autoconf 3.0.
1336    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1337    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1338      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1339    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1340    ;;
1341
1342  esac
1343done
1344
1345if test -n "$ac_prev"; then
1346  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1347  { echo "$as_me: error: missing argument to $ac_option" >&2
1348   { (exit 1); exit 1; }; }
1349fi
1350
1351# Be sure to have absolute directory names.
1352for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1353		datadir sysconfdir sharedstatedir localstatedir includedir \
1354		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1355		libdir localedir mandir
1356do
1357  eval ac_val=\$$ac_var
1358  case $ac_val in
1359    [\\/$]* | ?:[\\/]* )  continue;;
1360    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1361  esac
1362  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1363   { (exit 1); exit 1; }; }
1364done
1365
1366# There might be people who depend on the old broken behavior: `$host'
1367# used to hold the argument of --host etc.
1368# FIXME: To remove some day.
1369build=$build_alias
1370host=$host_alias
1371target=$target_alias
1372
1373# FIXME: To remove some day.
1374if test "x$host_alias" != x; then
1375  if test "x$build_alias" = x; then
1376    cross_compiling=maybe
1377    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1378    If a cross compiler is detected then cross compile mode will be used." >&2
1379  elif test "x$build_alias" != "x$host_alias"; then
1380    cross_compiling=yes
1381  fi
1382fi
1383
1384ac_tool_prefix=
1385test -n "$host_alias" && ac_tool_prefix=$host_alias-
1386
1387test "$silent" = yes && exec 6>/dev/null
1388
1389
1390ac_pwd=`pwd` && test -n "$ac_pwd" &&
1391ac_ls_di=`ls -di .` &&
1392ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1393  { echo "$as_me: error: Working directory cannot be determined" >&2
1394   { (exit 1); exit 1; }; }
1395test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1396  { echo "$as_me: error: pwd does not report name of working directory" >&2
1397   { (exit 1); exit 1; }; }
1398
1399
1400# Find the source files, if location was not specified.
1401if test -z "$srcdir"; then
1402  ac_srcdir_defaulted=yes
1403  # Try the directory containing this script, then the parent directory.
1404  ac_confdir=`$as_dirname -- "$0" ||
1405$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1406	 X"$0" : 'X\(//\)[^/]' \| \
1407	 X"$0" : 'X\(//\)$' \| \
1408	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1409echo X"$0" |
1410    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1411	    s//\1/
1412	    q
1413	  }
1414	  /^X\(\/\/\)[^/].*/{
1415	    s//\1/
1416	    q
1417	  }
1418	  /^X\(\/\/\)$/{
1419	    s//\1/
1420	    q
1421	  }
1422	  /^X\(\/\).*/{
1423	    s//\1/
1424	    q
1425	  }
1426	  s/.*/./; q'`
1427  srcdir=$ac_confdir
1428  if test ! -r "$srcdir/$ac_unique_file"; then
1429    srcdir=..
1430  fi
1431else
1432  ac_srcdir_defaulted=no
1433fi
1434if test ! -r "$srcdir/$ac_unique_file"; then
1435  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1436  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1437   { (exit 1); exit 1; }; }
1438fi
1439ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1440ac_abs_confdir=`(
1441	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1442   { (exit 1); exit 1; }; }
1443	pwd)`
1444# When building in place, set srcdir=.
1445if test "$ac_abs_confdir" = "$ac_pwd"; then
1446  srcdir=.
1447fi
1448# Remove unnecessary trailing slashes from srcdir.
1449# Double slashes in file names in object file debugging info
1450# mess up M-x gdb in Emacs.
1451case $srcdir in
1452*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1453esac
1454for ac_var in $ac_precious_vars; do
1455  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1456  eval ac_env_${ac_var}_value=\$${ac_var}
1457  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1458  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1459done
1460
1461#
1462# Report the --help message.
1463#
1464if test "$ac_init_help" = "long"; then
1465  # Omit some internal or obsolete options to make the list less imposing.
1466  # This message is too long to be a string in the A/UX 3.1 sh.
1467  cat <<_ACEOF
1468\`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1469
1470Usage: $0 [OPTION]... [VAR=VALUE]...
1471
1472To assign environment variables (e.g., CC, CFLAGS...), specify them as
1473VAR=VALUE.  See below for descriptions of some of the useful variables.
1474
1475Defaults for the options are specified in brackets.
1476
1477Configuration:
1478  -h, --help              display this help and exit
1479      --help=short        display options specific to this package
1480      --help=recursive    display the short help of all the included packages
1481  -V, --version           display version information and exit
1482  -q, --quiet, --silent   do not print \`checking...' messages
1483      --cache-file=FILE   cache test results in FILE [disabled]
1484  -C, --config-cache      alias for \`--cache-file=config.cache'
1485  -n, --no-create         do not create output files
1486      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1487
1488Installation directories:
1489  --prefix=PREFIX         install architecture-independent files in PREFIX
1490			  [$ac_default_prefix]
1491  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1492			  [PREFIX]
1493
1494By default, \`make install' will install all the files in
1495\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1496an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1497for instance \`--prefix=\$HOME'.
1498
1499For better control, use the options below.
1500
1501Fine tuning of the installation directories:
1502  --bindir=DIR           user executables [EPREFIX/bin]
1503  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1504  --libexecdir=DIR       program executables [EPREFIX/libexec]
1505  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1506  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1507  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1508  --libdir=DIR           object code libraries [EPREFIX/lib]
1509  --includedir=DIR       C header files [PREFIX/include]
1510  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1511  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1512  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1513  --infodir=DIR          info documentation [DATAROOTDIR/info]
1514  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1515  --mandir=DIR           man documentation [DATAROOTDIR/man]
1516  --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1517  --htmldir=DIR          html documentation [DOCDIR]
1518  --dvidir=DIR           dvi documentation [DOCDIR]
1519  --pdfdir=DIR           pdf documentation [DOCDIR]
1520  --psdir=DIR            ps documentation [DOCDIR]
1521_ACEOF
1522
1523  cat <<\_ACEOF
1524
1525System types:
1526  --build=BUILD     configure for building on BUILD [guessed]
1527  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1528  --target=TARGET   configure for building compilers for TARGET [HOST]
1529_ACEOF
1530fi
1531
1532if test -n "$ac_init_help"; then
1533  case $ac_init_help in
1534     short | recursive ) echo "Configuration of llvm 2.6svn:";;
1535   esac
1536  cat <<\_ACEOF
1537
1538Optional Features:
1539  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1540  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1541  --enable-optimized
1542  --enable-assertions
1543  --enable-expensive-checks
1544
1545  --enable-debug-runtime
1546  --enable-jit            Enable Just In Time Compiling (default is YES)
1547  --enable-doxygen        Build doxygen documentation (default is NO)
1548  --enable-threads        Use threads if available (default is YES)
1549  --enable-pic            Build LLVM with Position Independent Code (default
1550                          is YES)
1551  --enable-targets        Build specific host targets:
1552                          all,host-only,{target-name} (default=all)
1553  --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1554                          %a (default is YES)
1555  --enable-bindings       Build specific language bindings:
1556                          all,auto,none,{binding-name} (default=auto)
1557  --enable-ltdl-install   install libltdl
1558  --enable-shared[=PKGS]  build shared libraries
1559                          [default=yes]
1560  --enable-static[=PKGS]  build static libraries
1561                          [default=yes]
1562  --enable-fast-install[=PKGS]
1563                          optimize for fast installation
1564                          [default=yes]
1565  --disable-libtool-lock  avoid locking (might break parallel builds)
1566
1567Optional Packages:
1568  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1569  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1570  --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1571                          searches PATH)
1572  --with-llvmgcc          Specify location of llvm-gcc driver (default
1573                          searches PATH)
1574  --with-llvmgxx          Specify location of llvm-g++ driver (default
1575                          searches PATH)
1576  --with-extra-options    Specify addtional options to compile LLVM with
1577  --with-ocaml-libdir     Specify install location for ocaml bindings (default
1578                          is stdlib)
1579  --with-binutils-include Specify path to binutils/include/ containing
1580                          plugin-api.h file for gold plugin.
1581  --with-tclinclude       directory where tcl headers are
1582  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1583  --with-pic              try to use only PIC/non-PIC objects [default=use
1584                          both]
1585  --with-tags[=TAGS]      include additional configurations [automatic]
1586  --with-udis86=<path>    Use udis86 external x86 disassembler library
1587
1588Some influential environment variables:
1589  CC          C compiler command
1590  CFLAGS      C compiler flags
1591  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1592              nonstandard directory <lib dir>
1593  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1594              you have headers in a nonstandard directory <include dir>
1595  CPP         C preprocessor
1596  CXX         C++ compiler command
1597  CXXFLAGS    C++ compiler flags
1598  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1599              the first program found out of: `bison -y', `byacc', `yacc'.
1600  YFLAGS      The list of arguments that will be passed by default to $YACC.
1601              This script will default YFLAGS to the empty string to avoid a
1602              default value of `-d' given by some make applications.
1603  CXXCPP      C++ preprocessor
1604  F77         Fortran 77 compiler command
1605  FFLAGS      Fortran 77 compiler flags
1606
1607Use these variables to override the choices made by `configure' or to help
1608it to find libraries and programs with nonstandard names/locations.
1609
1610Report bugs to <llvmbugs@cs.uiuc.edu>.
1611_ACEOF
1612ac_status=$?
1613fi
1614
1615if test "$ac_init_help" = "recursive"; then
1616  # If there are subdirs, report their specific --help.
1617  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1618    test -d "$ac_dir" || continue
1619    ac_builddir=.
1620
1621case "$ac_dir" in
1622.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623*)
1624  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1625  # A ".." for each directory in $ac_dir_suffix.
1626  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1627  case $ac_top_builddir_sub in
1628  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1630  esac ;;
1631esac
1632ac_abs_top_builddir=$ac_pwd
1633ac_abs_builddir=$ac_pwd$ac_dir_suffix
1634# for backward compatibility:
1635ac_top_builddir=$ac_top_build_prefix
1636
1637case $srcdir in
1638  .)  # We are building in place.
1639    ac_srcdir=.
1640    ac_top_srcdir=$ac_top_builddir_sub
1641    ac_abs_top_srcdir=$ac_pwd ;;
1642  [\\/]* | ?:[\\/]* )  # Absolute name.
1643    ac_srcdir=$srcdir$ac_dir_suffix;
1644    ac_top_srcdir=$srcdir
1645    ac_abs_top_srcdir=$srcdir ;;
1646  *) # Relative name.
1647    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1648    ac_top_srcdir=$ac_top_build_prefix$srcdir
1649    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1650esac
1651ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1652
1653    cd "$ac_dir" || { ac_status=$?; continue; }
1654    # Check for guested configure.
1655    if test -f "$ac_srcdir/configure.gnu"; then
1656      echo &&
1657      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1658    elif test -f "$ac_srcdir/configure"; then
1659      echo &&
1660      $SHELL "$ac_srcdir/configure" --help=recursive
1661    else
1662      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1663    fi || ac_status=$?
1664    cd "$ac_pwd" || { ac_status=$?; break; }
1665  done
1666fi
1667
1668test -n "$ac_init_help" && exit $ac_status
1669if $ac_init_version; then
1670  cat <<\_ACEOF
1671llvm configure 2.6svn
1672generated by GNU Autoconf 2.60
1673
1674Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16752002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1676This configure script is free software; the Free Software Foundation
1677gives unlimited permission to copy, distribute and modify it.
1678
1679Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1680_ACEOF
1681  exit
1682fi
1683cat >config.log <<_ACEOF
1684This file contains any messages produced by compilers while
1685running configure, to aid debugging if configure makes a mistake.
1686
1687It was created by llvm $as_me 2.6svn, which was
1688generated by GNU Autoconf 2.60.  Invocation command line was
1689
1690  $ $0 $@
1691
1692_ACEOF
1693exec 5>>config.log
1694{
1695cat <<_ASUNAME
1696## --------- ##
1697## Platform. ##
1698## --------- ##
1699
1700hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1701uname -m = `(uname -m) 2>/dev/null || echo unknown`
1702uname -r = `(uname -r) 2>/dev/null || echo unknown`
1703uname -s = `(uname -s) 2>/dev/null || echo unknown`
1704uname -v = `(uname -v) 2>/dev/null || echo unknown`
1705
1706/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1707/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1708
1709/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1710/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1711/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1712/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1713/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1714/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1715/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1716
1717_ASUNAME
1718
1719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720for as_dir in $PATH
1721do
1722  IFS=$as_save_IFS
1723  test -z "$as_dir" && as_dir=.
1724  echo "PATH: $as_dir"
1725done
1726IFS=$as_save_IFS
1727
1728} >&5
1729
1730cat >&5 <<_ACEOF
1731
1732
1733## ----------- ##
1734## Core tests. ##
1735## ----------- ##
1736
1737_ACEOF
1738
1739
1740# Keep a trace of the command line.
1741# Strip out --no-create and --no-recursion so they do not pile up.
1742# Strip out --silent because we don't want to record it for future runs.
1743# Also quote any args containing shell meta-characters.
1744# Make two passes to allow for proper duplicate-argument suppression.
1745ac_configure_args=
1746ac_configure_args0=
1747ac_configure_args1=
1748ac_must_keep_next=false
1749for ac_pass in 1 2
1750do
1751  for ac_arg
1752  do
1753    case $ac_arg in
1754    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1755    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1756    | -silent | --silent | --silen | --sile | --sil)
1757      continue ;;
1758    *\'*)
1759      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1760    esac
1761    case $ac_pass in
1762    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1763    2)
1764      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1765      if test $ac_must_keep_next = true; then
1766	ac_must_keep_next=false # Got value, back to normal.
1767      else
1768	case $ac_arg in
1769	  *=* | --config-cache | -C | -disable-* | --disable-* \
1770	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1771	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1772	  | -with-* | --with-* | -without-* | --without-* | --x)
1773	    case "$ac_configure_args0 " in
1774	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1775	    esac
1776	    ;;
1777	  -* ) ac_must_keep_next=true ;;
1778	esac
1779      fi
1780      ac_configure_args="$ac_configure_args '$ac_arg'"
1781      ;;
1782    esac
1783  done
1784done
1785$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1786$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1787
1788# When interrupted or exit'd, cleanup temporary files, and complete
1789# config.log.  We remove comments because anyway the quotes in there
1790# would cause problems or look ugly.
1791# WARNING: Use '\'' to represent an apostrophe within the trap.
1792# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1793trap 'exit_status=$?
1794  # Save into config.log some information that might help in debugging.
1795  {
1796    echo
1797
1798    cat <<\_ASBOX
1799## ---------------- ##
1800## Cache variables. ##
1801## ---------------- ##
1802_ASBOX
1803    echo
1804    # The following way of writing the cache mishandles newlines in values,
1805(
1806  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1807    eval ac_val=\$$ac_var
1808    case $ac_val in #(
1809    *${as_nl}*)
1810      case $ac_var in #(
1811      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1812echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1813      esac
1814      case $ac_var in #(
1815      _ | IFS | as_nl) ;; #(
1816      *) $as_unset $ac_var ;;
1817      esac ;;
1818    esac
1819  done
1820  (set) 2>&1 |
1821    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1822    *${as_nl}ac_space=\ *)
1823      sed -n \
1824	"s/'\''/'\''\\\\'\'''\''/g;
1825	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1826      ;; #(
1827    *)
1828      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1829      ;;
1830    esac |
1831    sort
1832)
1833    echo
1834
1835    cat <<\_ASBOX
1836## ----------------- ##
1837## Output variables. ##
1838## ----------------- ##
1839_ASBOX
1840    echo
1841    for ac_var in $ac_subst_vars
1842    do
1843      eval ac_val=\$$ac_var
1844      case $ac_val in
1845      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1846      esac
1847      echo "$ac_var='\''$ac_val'\''"
1848    done | sort
1849    echo
1850
1851    if test -n "$ac_subst_files"; then
1852      cat <<\_ASBOX
1853## ------------------- ##
1854## File substitutions. ##
1855## ------------------- ##
1856_ASBOX
1857      echo
1858      for ac_var in $ac_subst_files
1859      do
1860	eval ac_val=\$$ac_var
1861	case $ac_val in
1862	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1863	esac
1864	echo "$ac_var='\''$ac_val'\''"
1865      done | sort
1866      echo
1867    fi
1868
1869    if test -s confdefs.h; then
1870      cat <<\_ASBOX
1871## ----------- ##
1872## confdefs.h. ##
1873## ----------- ##
1874_ASBOX
1875      echo
1876      cat confdefs.h
1877      echo
1878    fi
1879    test "$ac_signal" != 0 &&
1880      echo "$as_me: caught signal $ac_signal"
1881    echo "$as_me: exit $exit_status"
1882  } >&5
1883  rm -f core *.core core.conftest.* &&
1884    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1885    exit $exit_status
1886' 0
1887for ac_signal in 1 2 13 15; do
1888  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1889done
1890ac_signal=0
1891
1892# confdefs.h avoids OS command line length limits that DEFS can exceed.
1893rm -f -r conftest* confdefs.h
1894
1895# Predefined preprocessor variables.
1896
1897cat >>confdefs.h <<_ACEOF
1898#define PACKAGE_NAME "$PACKAGE_NAME"
1899_ACEOF
1900
1901
1902cat >>confdefs.h <<_ACEOF
1903#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1904_ACEOF
1905
1906
1907cat >>confdefs.h <<_ACEOF
1908#define PACKAGE_VERSION "$PACKAGE_VERSION"
1909_ACEOF
1910
1911
1912cat >>confdefs.h <<_ACEOF
1913#define PACKAGE_STRING "$PACKAGE_STRING"
1914_ACEOF
1915
1916
1917cat >>confdefs.h <<_ACEOF
1918#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1919_ACEOF
1920
1921
1922# Let the site file select an alternate cache file if it wants to.
1923# Prefer explicitly selected file to automatically selected ones.
1924if test -n "$CONFIG_SITE"; then
1925  set x "$CONFIG_SITE"
1926elif test "x$prefix" != xNONE; then
1927  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1928else
1929  set x "$ac_default_prefix/share/config.site" \
1930	"$ac_default_prefix/etc/config.site"
1931fi
1932shift
1933for ac_site_file
1934do
1935  if test -r "$ac_site_file"; then
1936    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1937echo "$as_me: loading site script $ac_site_file" >&6;}
1938    sed 's/^/| /' "$ac_site_file" >&5
1939    . "$ac_site_file"
1940  fi
1941done
1942
1943if test -r "$cache_file"; then
1944  # Some versions of bash will fail to source /dev/null (special
1945  # files actually), so we avoid doing that.
1946  if test -f "$cache_file"; then
1947    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1948echo "$as_me: loading cache $cache_file" >&6;}
1949    case $cache_file in
1950      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1951      *)                      . "./$cache_file";;
1952    esac
1953  fi
1954else
1955  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1956echo "$as_me: creating cache $cache_file" >&6;}
1957  >$cache_file
1958fi
1959
1960# Check that the precious variables saved in the cache have kept the same
1961# value.
1962ac_cache_corrupted=false
1963for ac_var in $ac_precious_vars; do
1964  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1965  eval ac_new_set=\$ac_env_${ac_var}_set
1966  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1967  eval ac_new_val=\$ac_env_${ac_var}_value
1968  case $ac_old_set,$ac_new_set in
1969    set,)
1970      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1971echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1972      ac_cache_corrupted=: ;;
1973    ,set)
1974      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1975echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1976      ac_cache_corrupted=: ;;
1977    ,);;
1978    *)
1979      if test "x$ac_old_val" != "x$ac_new_val"; then
1980	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1981echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1982	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1983echo "$as_me:   former value:  $ac_old_val" >&2;}
1984	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1985echo "$as_me:   current value: $ac_new_val" >&2;}
1986	ac_cache_corrupted=:
1987      fi;;
1988  esac
1989  # Pass precious variables to config.status.
1990  if test "$ac_new_set" = set; then
1991    case $ac_new_val in
1992    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1993    *) ac_arg=$ac_var=$ac_new_val ;;
1994    esac
1995    case " $ac_configure_args " in
1996      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1997      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1998    esac
1999  fi
2000done
2001if $ac_cache_corrupted; then
2002  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2003echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2004  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2005echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2006   { (exit 1); exit 1; }; }
2007fi
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033ac_ext=c
2034ac_cpp='$CPP $CPPFLAGS'
2035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2037ac_compiler_gnu=$ac_cv_c_compiler_gnu
2038
2039
2040
2041LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2042
2043
2044
2045
2046
2047
2048
2049ac_aux_dir=
2050for ac_dir in autoconf "$srcdir"/autoconf; do
2051  if test -f "$ac_dir/install-sh"; then
2052    ac_aux_dir=$ac_dir
2053    ac_install_sh="$ac_aux_dir/install-sh -c"
2054    break
2055  elif test -f "$ac_dir/install.sh"; then
2056    ac_aux_dir=$ac_dir
2057    ac_install_sh="$ac_aux_dir/install.sh -c"
2058    break
2059  elif test -f "$ac_dir/shtool"; then
2060    ac_aux_dir=$ac_dir
2061    ac_install_sh="$ac_aux_dir/shtool install -c"
2062    break
2063  fi
2064done
2065if test -z "$ac_aux_dir"; then
2066  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2067echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2068   { (exit 1); exit 1; }; }
2069fi
2070
2071# These three variables are undocumented and unsupported,
2072# and are intended to be withdrawn in a future Autoconf release.
2073# They can cause serious problems if a builder's source tree is in a directory
2074# whose full name contains unusual characters.
2075ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2076ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2077ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2078
2079
2080
2081if test ${srcdir} != "." ; then
2082  if test -f ${srcdir}/include/llvm/Config/config.h ; then
2083    { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2084echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2085   { (exit 1); exit 1; }; }
2086  fi
2087fi
2088
2089for i in `ls ${srcdir}/projects`
2090do
2091  if test -d ${srcdir}/projects/${i} ; then
2092    case ${i} in
2093      CVS) ;;
2094      sample)       subdirs="$subdirs projects/sample"
2095    ;;
2096      privbracket)  subdirs="$subdirs projects/privbracket"
2097 ;;
2098      llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2099 ;;
2100      # llvm-test is the old name of the test-suite, kept here for backwards
2101      # compatibility
2102      llvm-test)    subdirs="$subdirs projects/llvm-test"
2103 ;;
2104      test-suite)   subdirs="$subdirs projects/test-suite"
2105 ;;
2106      llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2107;;
2108      llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2109  ;;
2110      llvm-java)    subdirs="$subdirs projects/llvm-java"
2111 ;;
2112      llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2113   ;;
2114      llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2115 ;;
2116      poolalloc)    subdirs="$subdirs projects/poolalloc"
2117 ;;
2118      llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2119 ;;
2120      *)
2121        { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2122echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2123        ;;
2124    esac
2125  fi
2126done
2127
2128
2129# Make sure we can run config.sub.
2130$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2131  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2132echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2133   { (exit 1); exit 1; }; }
2134
2135{ echo "$as_me:$LINENO: checking build system type" >&5
2136echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2137if test "${ac_cv_build+set}" = set; then
2138  echo $ECHO_N "(cached) $ECHO_C" >&6
2139else
2140  ac_build_alias=$build_alias
2141test "x$ac_build_alias" = x &&
2142  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2143test "x$ac_build_alias" = x &&
2144  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2145echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2146   { (exit 1); exit 1; }; }
2147ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2148  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2149echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2150   { (exit 1); exit 1; }; }
2151
2152fi
2153{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2154echo "${ECHO_T}$ac_cv_build" >&6; }
2155case $ac_cv_build in
2156*-*-*) ;;
2157*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2158echo "$as_me: error: invalid value of canonical build" >&2;}
2159   { (exit 1); exit 1; }; };;
2160esac
2161build=$ac_cv_build
2162ac_save_IFS=$IFS; IFS='-'
2163set x $ac_cv_build
2164shift
2165build_cpu=$1
2166build_vendor=$2
2167shift; shift
2168# Remember, the first character of IFS is used to create $*,
2169# except with old shells:
2170build_os=$*
2171IFS=$ac_save_IFS
2172case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2173
2174
2175{ echo "$as_me:$LINENO: checking host system type" >&5
2176echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2177if test "${ac_cv_host+set}" = set; then
2178  echo $ECHO_N "(cached) $ECHO_C" >&6
2179else
2180  if test "x$host_alias" = x; then
2181  ac_cv_host=$ac_cv_build
2182else
2183  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2184    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2185echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2186   { (exit 1); exit 1; }; }
2187fi
2188
2189fi
2190{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2191echo "${ECHO_T}$ac_cv_host" >&6; }
2192case $ac_cv_host in
2193*-*-*) ;;
2194*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2195echo "$as_me: error: invalid value of canonical host" >&2;}
2196   { (exit 1); exit 1; }; };;
2197esac
2198host=$ac_cv_host
2199ac_save_IFS=$IFS; IFS='-'
2200set x $ac_cv_host
2201shift
2202host_cpu=$1
2203host_vendor=$2
2204shift; shift
2205# Remember, the first character of IFS is used to create $*,
2206# except with old shells:
2207host_os=$*
2208IFS=$ac_save_IFS
2209case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2210
2211
2212{ echo "$as_me:$LINENO: checking target system type" >&5
2213echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2214if test "${ac_cv_target+set}" = set; then
2215  echo $ECHO_N "(cached) $ECHO_C" >&6
2216else
2217  if test "x$target_alias" = x; then
2218  ac_cv_target=$ac_cv_host
2219else
2220  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2221    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2222echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2223   { (exit 1); exit 1; }; }
2224fi
2225
2226fi
2227{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2228echo "${ECHO_T}$ac_cv_target" >&6; }
2229case $ac_cv_target in
2230*-*-*) ;;
2231*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2232echo "$as_me: error: invalid value of canonical target" >&2;}
2233   { (exit 1); exit 1; }; };;
2234esac
2235target=$ac_cv_target
2236ac_save_IFS=$IFS; IFS='-'
2237set x $ac_cv_target
2238shift
2239target_cpu=$1
2240target_vendor=$2
2241shift; shift
2242# Remember, the first character of IFS is used to create $*,
2243# except with old shells:
2244target_os=$*
2245IFS=$ac_save_IFS
2246case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2247
2248
2249# The aliases save the names the user supplied, while $host etc.
2250# will get canonicalized.
2251test -n "$target_alias" &&
2252  test "$program_prefix$program_suffix$program_transform_name" = \
2253    NONENONEs,x,x, &&
2254  program_prefix=${target_alias}-
2255
2256{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2257echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2258if test "${llvm_cv_os_type+set}" = set; then
2259  echo $ECHO_N "(cached) $ECHO_C" >&6
2260else
2261  case $host in
2262  *-*-aix*)
2263    llvm_cv_link_all_option="-Wl,--whole-archive"
2264    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2265    llvm_cv_os_type="AIX"
2266    llvm_cv_platform_type="Unix" ;;
2267  *-*-irix*)
2268    llvm_cv_link_all_option="-Wl,--whole-archive"
2269    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2270    llvm_cv_os_type="IRIX"
2271    llvm_cv_platform_type="Unix" ;;
2272  *-*-cygwin*)
2273    llvm_cv_link_all_option="-Wl,--whole-archive"
2274    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2275    llvm_cv_os_type="Cygwin"
2276    llvm_cv_platform_type="Unix" ;;
2277  *-*-darwin*)
2278    llvm_cv_link_all_option="-Wl,-all_load"
2279    llvm_cv_no_link_all_option="-Wl,-noall_load"
2280    llvm_cv_os_type="Darwin"
2281    llvm_cv_platform_type="Unix" ;;
2282  *-*-freebsd*)
2283    llvm_cv_link_all_option="-Wl,--whole-archive"
2284    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2285    llvm_cv_os_type="FreeBSD"
2286    llvm_cv_platform_type="Unix" ;;
2287  *-*-openbsd*)
2288    llvm_cv_link_all_option="-Wl,--whole-archive"
2289    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2290    llvm_cv_os_type="OpenBSD"
2291    llvm_cv_platform_type="Unix" ;;
2292  *-*-netbsd*)
2293    llvm_cv_link_all_option="-Wl,--whole-archive"
2294    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2295    llvm_cv_os_type="NetBSD"
2296    llvm_cv_platform_type="Unix" ;;
2297  *-*-dragonfly*)
2298    llvm_cv_link_all_option="-Wl,--whole-archive"
2299    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2300    llvm_cv_os_type="DragonFly"
2301    llvm_cv_platform_type="Unix" ;;
2302  *-*-hpux*)
2303    llvm_cv_link_all_option="-Wl,--whole-archive"
2304    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2305    llvm_cv_os_type="HP-UX"
2306    llvm_cv_platform_type="Unix" ;;
2307  *-*-interix*)
2308    llvm_cv_link_all_option="-Wl,--whole-archive"
2309    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2310    llvm_cv_os_type="Interix"
2311    llvm_cv_platform_type="Unix" ;;
2312  *-*-linux*)
2313    llvm_cv_link_all_option="-Wl,--whole-archive"
2314    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2315    llvm_cv_os_type="Linux"
2316    llvm_cv_platform_type="Unix" ;;
2317  *-*-solaris*)
2318    llvm_cv_link_all_option="-Wl,-z,allextract"
2319    llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2320    llvm_cv_os_type="SunOS"
2321    llvm_cv_platform_type="Unix" ;;
2322  *-*-win32*)
2323    llvm_cv_link_all_option="-Wl,--whole-archive"
2324    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2325    llvm_cv_os_type="Win32"
2326    llvm_cv_platform_type="Win32" ;;
2327  *-*-mingw*)
2328    llvm_cv_link_all_option="-Wl,--whole-archive"
2329    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2330    llvm_cv_os_type="MingW"
2331    llvm_cv_platform_type="Win32" ;;
2332  *)
2333    llvm_cv_link_all_option=""
2334    llvm_cv_no_link_all_option=""
2335    llvm_cv_os_type="Unknown"
2336    llvm_cv_platform_type="Unknown" ;;
2337esac
2338fi
2339{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2340echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2341
2342if test "$llvm_cv_os_type" = "Unknown" ; then
2343  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2344echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2345   { (exit 1); exit 1; }; }
2346fi
2347
2348OS=$llvm_cv_os_type
2349
2350
2351LINKALL=$llvm_cv_link_all_option
2352
2353NOLINKALL=$llvm_cv_no_link_all_option
2354
2355
2356case $llvm_cv_platform_type in
2357  Unix)
2358
2359cat >>confdefs.h <<\_ACEOF
2360#define LLVM_ON_UNIX 1
2361_ACEOF
2362
2363    LLVM_ON_UNIX=1
2364
2365    LLVM_ON_WIN32=0
2366
2367    ;;
2368  Win32)
2369
2370cat >>confdefs.h <<\_ACEOF
2371#define LLVM_ON_WIN32 1
2372_ACEOF
2373
2374    LLVM_ON_UNIX=0
2375
2376    LLVM_ON_WIN32=1
2377
2378    ;;
2379esac
2380
2381{ echo "$as_me:$LINENO: checking target architecture" >&5
2382echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2383if test "${llvm_cv_target_arch+set}" = set; then
2384  echo $ECHO_N "(cached) $ECHO_C" >&6
2385else
2386  case $target in
2387  i?86-*)                 llvm_cv_target_arch="x86" ;;
2388  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2389  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2390  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2391  alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2392  ia64-*)                 llvm_cv_target_arch="IA64" ;;
2393  arm-*)                  llvm_cv_target_arch="ARM" ;;
2394  mips-*)                 llvm_cv_target_arch="Mips" ;;
2395  pic16-*)                llvm_cv_target_arch="PIC16" ;;
2396  xcore-*)                llvm_cv_target_arch="XCore" ;;
2397  *)                      llvm_cv_target_arch="Unknown" ;;
2398esac
2399fi
2400{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2401echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2402
2403if test "$llvm_cv_target_arch" = "Unknown" ; then
2404  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2405echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2406fi
2407
2408ARCH=$llvm_cv_target_arch
2409
2410
2411ac_ext=c
2412ac_cpp='$CPP $CPPFLAGS'
2413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2415ac_compiler_gnu=$ac_cv_c_compiler_gnu
2416if test -n "$ac_tool_prefix"; then
2417  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2418set dummy ${ac_tool_prefix}gcc; ac_word=$2
2419{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2421if test "${ac_cv_prog_CC+set}" = set; then
2422  echo $ECHO_N "(cached) $ECHO_C" >&6
2423else
2424  if test -n "$CC"; then
2425  ac_cv_prog_CC="$CC" # Let the user override the test.
2426else
2427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428for as_dir in $PATH
2429do
2430  IFS=$as_save_IFS
2431  test -z "$as_dir" && as_dir=.
2432  for ac_exec_ext in '' $ac_executable_extensions; do
2433  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2434    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2435    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2436    break 2
2437  fi
2438done
2439done
2440IFS=$as_save_IFS
2441
2442fi
2443fi
2444CC=$ac_cv_prog_CC
2445if test -n "$CC"; then
2446  { echo "$as_me:$LINENO: result: $CC" >&5
2447echo "${ECHO_T}$CC" >&6; }
2448else
2449  { echo "$as_me:$LINENO: result: no" >&5
2450echo "${ECHO_T}no" >&6; }
2451fi
2452
2453
2454fi
2455if test -z "$ac_cv_prog_CC"; then
2456  ac_ct_CC=$CC
2457  # Extract the first word of "gcc", so it can be a program name with args.
2458set dummy gcc; ac_word=$2
2459{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2461if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2462  echo $ECHO_N "(cached) $ECHO_C" >&6
2463else
2464  if test -n "$ac_ct_CC"; then
2465  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2466else
2467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468for as_dir in $PATH
2469do
2470  IFS=$as_save_IFS
2471  test -z "$as_dir" && as_dir=.
2472  for ac_exec_ext in '' $ac_executable_extensions; do
2473  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2474    ac_cv_prog_ac_ct_CC="gcc"
2475    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476    break 2
2477  fi
2478done
2479done
2480IFS=$as_save_IFS
2481
2482fi
2483fi
2484ac_ct_CC=$ac_cv_prog_ac_ct_CC
2485if test -n "$ac_ct_CC"; then
2486  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2487echo "${ECHO_T}$ac_ct_CC" >&6; }
2488else
2489  { echo "$as_me:$LINENO: result: no" >&5
2490echo "${ECHO_T}no" >&6; }
2491fi
2492
2493  if test "x$ac_ct_CC" = x; then
2494    CC=""
2495  else
2496    case $cross_compiling:$ac_tool_warned in
2497yes:)
2498{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2499whose name does not start with the host triplet.  If you think this
2500configuration is useful to you, please write to autoconf@gnu.org." >&5
2501echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2502whose name does not start with the host triplet.  If you think this
2503configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2504ac_tool_warned=yes ;;
2505esac
2506    CC=$ac_ct_CC
2507  fi
2508else
2509  CC="$ac_cv_prog_CC"
2510fi
2511
2512if test -z "$CC"; then
2513          if test -n "$ac_tool_prefix"; then
2514    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2515set dummy ${ac_tool_prefix}cc; ac_word=$2
2516{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2518if test "${ac_cv_prog_CC+set}" = set; then
2519  echo $ECHO_N "(cached) $ECHO_C" >&6
2520else
2521  if test -n "$CC"; then
2522  ac_cv_prog_CC="$CC" # Let the user override the test.
2523else
2524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525for as_dir in $PATH
2526do
2527  IFS=$as_save_IFS
2528  test -z "$as_dir" && as_dir=.
2529  for ac_exec_ext in '' $ac_executable_extensions; do
2530  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2531    ac_cv_prog_CC="${ac_tool_prefix}cc"
2532    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2533    break 2
2534  fi
2535done
2536done
2537IFS=$as_save_IFS
2538
2539fi
2540fi
2541CC=$ac_cv_prog_CC
2542if test -n "$CC"; then
2543  { echo "$as_me:$LINENO: result: $CC" >&5
2544echo "${ECHO_T}$CC" >&6; }
2545else
2546  { echo "$as_me:$LINENO: result: no" >&5
2547echo "${ECHO_T}no" >&6; }
2548fi
2549
2550
2551  fi
2552fi
2553if test -z "$CC"; then
2554  # Extract the first word of "cc", so it can be a program name with args.
2555set dummy cc; ac_word=$2
2556{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2558if test "${ac_cv_prog_CC+set}" = set; then
2559  echo $ECHO_N "(cached) $ECHO_C" >&6
2560else
2561  if test -n "$CC"; then
2562  ac_cv_prog_CC="$CC" # Let the user override the test.
2563else
2564  ac_prog_rejected=no
2565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566for as_dir in $PATH
2567do
2568  IFS=$as_save_IFS
2569  test -z "$as_dir" && as_dir=.
2570  for ac_exec_ext in '' $ac_executable_extensions; do
2571  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2572    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2573       ac_prog_rejected=yes
2574       continue
2575     fi
2576    ac_cv_prog_CC="cc"
2577    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2578    break 2
2579  fi
2580done
2581done
2582IFS=$as_save_IFS
2583
2584if test $ac_prog_rejected = yes; then
2585  # We found a bogon in the path, so make sure we never use it.
2586  set dummy $ac_cv_prog_CC
2587  shift
2588  if test $# != 0; then
2589    # We chose a different compiler from the bogus one.
2590    # However, it has the same basename, so the bogon will be chosen
2591    # first if we set CC to just the basename; use the full file name.
2592    shift
2593    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2594  fi
2595fi
2596fi
2597fi
2598CC=$ac_cv_prog_CC
2599if test -n "$CC"; then
2600  { echo "$as_me:$LINENO: result: $CC" >&5
2601echo "${ECHO_T}$CC" >&6; }
2602else
2603  { echo "$as_me:$LINENO: result: no" >&5
2604echo "${ECHO_T}no" >&6; }
2605fi
2606
2607
2608fi
2609if test -z "$CC"; then
2610  if test -n "$ac_tool_prefix"; then
2611  for ac_prog in cl.exe
2612  do
2613    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2614set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2615{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2617if test "${ac_cv_prog_CC+set}" = set; then
2618  echo $ECHO_N "(cached) $ECHO_C" >&6
2619else
2620  if test -n "$CC"; then
2621  ac_cv_prog_CC="$CC" # Let the user override the test.
2622else
2623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624for as_dir in $PATH
2625do
2626  IFS=$as_save_IFS
2627  test -z "$as_dir" && as_dir=.
2628  for ac_exec_ext in '' $ac_executable_extensions; do
2629  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2630    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2631    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2632    break 2
2633  fi
2634done
2635done
2636IFS=$as_save_IFS
2637
2638fi
2639fi
2640CC=$ac_cv_prog_CC
2641if test -n "$CC"; then
2642  { echo "$as_me:$LINENO: result: $CC" >&5
2643echo "${ECHO_T}$CC" >&6; }
2644else
2645  { echo "$as_me:$LINENO: result: no" >&5
2646echo "${ECHO_T}no" >&6; }
2647fi
2648
2649
2650    test -n "$CC" && break
2651  done
2652fi
2653if test -z "$CC"; then
2654  ac_ct_CC=$CC
2655  for ac_prog in cl.exe
2656do
2657  # Extract the first word of "$ac_prog", so it can be a program name with args.
2658set dummy $ac_prog; ac_word=$2
2659{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2661if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2662  echo $ECHO_N "(cached) $ECHO_C" >&6
2663else
2664  if test -n "$ac_ct_CC"; then
2665  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2666else
2667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668for as_dir in $PATH
2669do
2670  IFS=$as_save_IFS
2671  test -z "$as_dir" && as_dir=.
2672  for ac_exec_ext in '' $ac_executable_extensions; do
2673  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2674    ac_cv_prog_ac_ct_CC="$ac_prog"
2675    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2676    break 2
2677  fi
2678done
2679done
2680IFS=$as_save_IFS
2681
2682fi
2683fi
2684ac_ct_CC=$ac_cv_prog_ac_ct_CC
2685if test -n "$ac_ct_CC"; then
2686  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2687echo "${ECHO_T}$ac_ct_CC" >&6; }
2688else
2689  { echo "$as_me:$LINENO: result: no" >&5
2690echo "${ECHO_T}no" >&6; }
2691fi
2692
2693
2694  test -n "$ac_ct_CC" && break
2695done
2696
2697  if test "x$ac_ct_CC" = x; then
2698    CC=""
2699  else
2700    case $cross_compiling:$ac_tool_warned in
2701yes:)
2702{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2703whose name does not start with the host triplet.  If you think this
2704configuration is useful to you, please write to autoconf@gnu.org." >&5
2705echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2706whose name does not start with the host triplet.  If you think this
2707configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2708ac_tool_warned=yes ;;
2709esac
2710    CC=$ac_ct_CC
2711  fi
2712fi
2713
2714fi
2715
2716
2717test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2718See \`config.log' for more details." >&5
2719echo "$as_me: error: no acceptable C compiler found in \$PATH
2720See \`config.log' for more details." >&2;}
2721   { (exit 1); exit 1; }; }
2722
2723# Provide some information about the compiler.
2724echo "$as_me:$LINENO: checking for C compiler version" >&5
2725ac_compiler=`set X $ac_compile; echo $2`
2726{ (ac_try="$ac_compiler --version >&5"
2727case "(($ac_try" in
2728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729  *) ac_try_echo=$ac_try;;
2730esac
2731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2732  (eval "$ac_compiler --version >&5") 2>&5
2733  ac_status=$?
2734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735  (exit $ac_status); }
2736{ (ac_try="$ac_compiler -v >&5"
2737case "(($ac_try" in
2738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739  *) ac_try_echo=$ac_try;;
2740esac
2741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742  (eval "$ac_compiler -v >&5") 2>&5
2743  ac_status=$?
2744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745  (exit $ac_status); }
2746{ (ac_try="$ac_compiler -V >&5"
2747case "(($ac_try" in
2748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749  *) ac_try_echo=$ac_try;;
2750esac
2751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752  (eval "$ac_compiler -V >&5") 2>&5
2753  ac_status=$?
2754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755  (exit $ac_status); }
2756
2757cat >conftest.$ac_ext <<_ACEOF
2758/* confdefs.h.  */
2759_ACEOF
2760cat confdefs.h >>conftest.$ac_ext
2761cat >>conftest.$ac_ext <<_ACEOF
2762/* end confdefs.h.  */
2763
2764int
2765main ()
2766{
2767
2768  ;
2769  return 0;
2770}
2771_ACEOF
2772ac_clean_files_save=$ac_clean_files
2773ac_clean_files="$ac_clean_files a.out a.exe b.out"
2774# Try to create an executable without -o first, disregard a.out.
2775# It will help us diagnose broken compilers, and finding out an intuition
2776# of exeext.
2777{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2778echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2779ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2780#
2781# List of possible output files, starting from the most likely.
2782# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2783# only as a last resort.  b.out is created by i960 compilers.
2784ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2785#
2786# The IRIX 6 linker writes into existing files which may not be
2787# executable, retaining their permissions.  Remove them first so a
2788# subsequent execution test works.
2789ac_rmfiles=
2790for ac_file in $ac_files
2791do
2792  case $ac_file in
2793    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2794    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2795  esac
2796done
2797rm -f $ac_rmfiles
2798
2799if { (ac_try="$ac_link_default"
2800case "(($ac_try" in
2801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2802  *) ac_try_echo=$ac_try;;
2803esac
2804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2805  (eval "$ac_link_default") 2>&5
2806  ac_status=$?
2807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808  (exit $ac_status); }; then
2809  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2810# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2811# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2812# so that the user can short-circuit this test for compilers unknown to
2813# Autoconf.
2814for ac_file in $ac_files
2815do
2816  test -f "$ac_file" || continue
2817  case $ac_file in
2818    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2819	;;
2820    [ab].out )
2821	# We found the default executable, but exeext='' is most
2822	# certainly right.
2823	break;;
2824    *.* )
2825        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2826	then :; else
2827	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2828	fi
2829	# We set ac_cv_exeext here because the later test for it is not
2830	# safe: cross compilers may not add the suffix if given an `-o'
2831	# argument, so we may need to know it at that point already.
2832	# Even if this section looks crufty: it has the advantage of
2833	# actually working.
2834	break;;
2835    * )
2836	break;;
2837  esac
2838done
2839test "$ac_cv_exeext" = no && ac_cv_exeext=
2840
2841else
2842  echo "$as_me: failed program was:" >&5
2843sed 's/^/| /' conftest.$ac_ext >&5
2844
2845{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2846See \`config.log' for more details." >&5
2847echo "$as_me: error: C compiler cannot create executables
2848See \`config.log' for more details." >&2;}
2849   { (exit 77); exit 77; }; }
2850fi
2851
2852ac_exeext=$ac_cv_exeext
2853{ echo "$as_me:$LINENO: result: $ac_file" >&5
2854echo "${ECHO_T}$ac_file" >&6; }
2855
2856# Check that the compiler produces executables we can run.  If not, either
2857# the compiler is broken, or we cross compile.
2858{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2859echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2860# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2861# If not cross compiling, check that we can run a simple program.
2862if test "$cross_compiling" != yes; then
2863  if { ac_try='./$ac_file'
2864  { (case "(($ac_try" in
2865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866  *) ac_try_echo=$ac_try;;
2867esac
2868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2869  (eval "$ac_try") 2>&5
2870  ac_status=$?
2871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872  (exit $ac_status); }; }; then
2873    cross_compiling=no
2874  else
2875    if test "$cross_compiling" = maybe; then
2876	cross_compiling=yes
2877    else
2878	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2879If you meant to cross compile, use \`--host'.
2880See \`config.log' for more details." >&5
2881echo "$as_me: error: cannot run C compiled programs.
2882If you meant to cross compile, use \`--host'.
2883See \`config.log' for more details." >&2;}
2884   { (exit 1); exit 1; }; }
2885    fi
2886  fi
2887fi
2888{ echo "$as_me:$LINENO: result: yes" >&5
2889echo "${ECHO_T}yes" >&6; }
2890
2891rm -f a.out a.exe conftest$ac_cv_exeext b.out
2892ac_clean_files=$ac_clean_files_save
2893# Check that the compiler produces executables we can run.  If not, either
2894# the compiler is broken, or we cross compile.
2895{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2896echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2897{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2898echo "${ECHO_T}$cross_compiling" >&6; }
2899
2900{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2901echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2902if { (ac_try="$ac_link"
2903case "(($ac_try" in
2904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905  *) ac_try_echo=$ac_try;;
2906esac
2907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908  (eval "$ac_link") 2>&5
2909  ac_status=$?
2910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911  (exit $ac_status); }; then
2912  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2913# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2914# work properly (i.e., refer to `conftest.exe'), while it won't with
2915# `rm'.
2916for ac_file in conftest.exe conftest conftest.*; do
2917  test -f "$ac_file" || continue
2918  case $ac_file in
2919    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2920    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2921	  break;;
2922    * ) break;;
2923  esac
2924done
2925else
2926  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2927See \`config.log' for more details." >&5
2928echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2929See \`config.log' for more details." >&2;}
2930   { (exit 1); exit 1; }; }
2931fi
2932
2933rm -f conftest$ac_cv_exeext
2934{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2935echo "${ECHO_T}$ac_cv_exeext" >&6; }
2936
2937rm -f conftest.$ac_ext
2938EXEEXT=$ac_cv_exeext
2939ac_exeext=$EXEEXT
2940{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2941echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2942if test "${ac_cv_objext+set}" = set; then
2943  echo $ECHO_N "(cached) $ECHO_C" >&6
2944else
2945  cat >conftest.$ac_ext <<_ACEOF
2946/* confdefs.h.  */
2947_ACEOF
2948cat confdefs.h >>conftest.$ac_ext
2949cat >>conftest.$ac_ext <<_ACEOF
2950/* end confdefs.h.  */
2951
2952int
2953main ()
2954{
2955
2956  ;
2957  return 0;
2958}
2959_ACEOF
2960rm -f conftest.o conftest.obj
2961if { (ac_try="$ac_compile"
2962case "(($ac_try" in
2963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964  *) ac_try_echo=$ac_try;;
2965esac
2966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967  (eval "$ac_compile") 2>&5
2968  ac_status=$?
2969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970  (exit $ac_status); }; then
2971  for ac_file in conftest.o conftest.obj conftest.*; do
2972  test -f "$ac_file" || continue;
2973  case $ac_file in
2974    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2975    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2976       break;;
2977  esac
2978done
2979else
2980  echo "$as_me: failed program was:" >&5
2981sed 's/^/| /' conftest.$ac_ext >&5
2982
2983{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2984See \`config.log' for more details." >&5
2985echo "$as_me: error: cannot compute suffix of object files: cannot compile
2986See \`config.log' for more details." >&2;}
2987   { (exit 1); exit 1; }; }
2988fi
2989
2990rm -f conftest.$ac_cv_objext conftest.$ac_ext
2991fi
2992{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2993echo "${ECHO_T}$ac_cv_objext" >&6; }
2994OBJEXT=$ac_cv_objext
2995ac_objext=$OBJEXT
2996{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2997echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2998if test "${ac_cv_c_compiler_gnu+set}" = set; then
2999  echo $ECHO_N "(cached) $ECHO_C" >&6
3000else
3001  cat >conftest.$ac_ext <<_ACEOF
3002/* confdefs.h.  */
3003_ACEOF
3004cat confdefs.h >>conftest.$ac_ext
3005cat >>conftest.$ac_ext <<_ACEOF
3006/* end confdefs.h.  */
3007
3008int
3009main ()
3010{
3011#ifndef __GNUC__
3012       choke me
3013#endif
3014
3015  ;
3016  return 0;
3017}
3018_ACEOF
3019rm -f conftest.$ac_objext
3020if { (ac_try="$ac_compile"
3021case "(($ac_try" in
3022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023  *) ac_try_echo=$ac_try;;
3024esac
3025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026  (eval "$ac_compile") 2>conftest.er1
3027  ac_status=$?
3028  grep -v '^ *+' conftest.er1 >conftest.err
3029  rm -f conftest.er1
3030  cat conftest.err >&5
3031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032  (exit $ac_status); } &&
3033	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3034  { (case "(($ac_try" in
3035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036  *) ac_try_echo=$ac_try;;
3037esac
3038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039  (eval "$ac_try") 2>&5
3040  ac_status=$?
3041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042  (exit $ac_status); }; } &&
3043	 { ac_try='test -s conftest.$ac_objext'
3044  { (case "(($ac_try" in
3045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046  *) ac_try_echo=$ac_try;;
3047esac
3048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049  (eval "$ac_try") 2>&5
3050  ac_status=$?
3051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052  (exit $ac_status); }; }; then
3053  ac_compiler_gnu=yes
3054else
3055  echo "$as_me: failed program was:" >&5
3056sed 's/^/| /' conftest.$ac_ext >&5
3057
3058	ac_compiler_gnu=no
3059fi
3060
3061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3062ac_cv_c_compiler_gnu=$ac_compiler_gnu
3063
3064fi
3065{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3066echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3067GCC=`test $ac_compiler_gnu = yes && echo yes`
3068ac_test_CFLAGS=${CFLAGS+set}
3069ac_save_CFLAGS=$CFLAGS
3070{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3071echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3072if test "${ac_cv_prog_cc_g+set}" = set; then
3073  echo $ECHO_N "(cached) $ECHO_C" >&6
3074else
3075  ac_save_c_werror_flag=$ac_c_werror_flag
3076   ac_c_werror_flag=yes
3077   ac_cv_prog_cc_g=no
3078   CFLAGS="-g"
3079   cat >conftest.$ac_ext <<_ACEOF
3080/* confdefs.h.  */
3081_ACEOF
3082cat confdefs.h >>conftest.$ac_ext
3083cat >>conftest.$ac_ext <<_ACEOF
3084/* end confdefs.h.  */
3085
3086int
3087main ()
3088{
3089
3090  ;
3091  return 0;
3092}
3093_ACEOF
3094rm -f conftest.$ac_objext
3095if { (ac_try="$ac_compile"
3096case "(($ac_try" in
3097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098  *) ac_try_echo=$ac_try;;
3099esac
3100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101  (eval "$ac_compile") 2>conftest.er1
3102  ac_status=$?
3103  grep -v '^ *+' conftest.er1 >conftest.err
3104  rm -f conftest.er1
3105  cat conftest.err >&5
3106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107  (exit $ac_status); } &&
3108	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3109  { (case "(($ac_try" in
3110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111  *) ac_try_echo=$ac_try;;
3112esac
3113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3114  (eval "$ac_try") 2>&5
3115  ac_status=$?
3116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117  (exit $ac_status); }; } &&
3118	 { ac_try='test -s conftest.$ac_objext'
3119  { (case "(($ac_try" in
3120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121  *) ac_try_echo=$ac_try;;
3122esac
3123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124  (eval "$ac_try") 2>&5
3125  ac_status=$?
3126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127  (exit $ac_status); }; }; then
3128  ac_cv_prog_cc_g=yes
3129else
3130  echo "$as_me: failed program was:" >&5
3131sed 's/^/| /' conftest.$ac_ext >&5
3132
3133	CFLAGS=""
3134      cat >conftest.$ac_ext <<_ACEOF
3135/* confdefs.h.  */
3136_ACEOF
3137cat confdefs.h >>conftest.$ac_ext
3138cat >>conftest.$ac_ext <<_ACEOF
3139/* end confdefs.h.  */
3140
3141int
3142main ()
3143{
3144
3145  ;
3146  return 0;
3147}
3148_ACEOF
3149rm -f conftest.$ac_objext
3150if { (ac_try="$ac_compile"
3151case "(($ac_try" in
3152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153  *) ac_try_echo=$ac_try;;
3154esac
3155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156  (eval "$ac_compile") 2>conftest.er1
3157  ac_status=$?
3158  grep -v '^ *+' conftest.er1 >conftest.err
3159  rm -f conftest.er1
3160  cat conftest.err >&5
3161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162  (exit $ac_status); } &&
3163	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3164  { (case "(($ac_try" in
3165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166  *) ac_try_echo=$ac_try;;
3167esac
3168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3169  (eval "$ac_try") 2>&5
3170  ac_status=$?
3171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172  (exit $ac_status); }; } &&
3173	 { ac_try='test -s conftest.$ac_objext'
3174  { (case "(($ac_try" in
3175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176  *) ac_try_echo=$ac_try;;
3177esac
3178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179  (eval "$ac_try") 2>&5
3180  ac_status=$?
3181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182  (exit $ac_status); }; }; then
3183  :
3184else
3185  echo "$as_me: failed program was:" >&5
3186sed 's/^/| /' conftest.$ac_ext >&5
3187
3188	ac_c_werror_flag=$ac_save_c_werror_flag
3189	 CFLAGS="-g"
3190	 cat >conftest.$ac_ext <<_ACEOF
3191/* confdefs.h.  */
3192_ACEOF
3193cat confdefs.h >>conftest.$ac_ext
3194cat >>conftest.$ac_ext <<_ACEOF
3195/* end confdefs.h.  */
3196
3197int
3198main ()
3199{
3200
3201  ;
3202  return 0;
3203}
3204_ACEOF
3205rm -f conftest.$ac_objext
3206if { (ac_try="$ac_compile"
3207case "(($ac_try" in
3208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209  *) ac_try_echo=$ac_try;;
3210esac
3211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3212  (eval "$ac_compile") 2>conftest.er1
3213  ac_status=$?
3214  grep -v '^ *+' conftest.er1 >conftest.err
3215  rm -f conftest.er1
3216  cat conftest.err >&5
3217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218  (exit $ac_status); } &&
3219	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3220  { (case "(($ac_try" in
3221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222  *) ac_try_echo=$ac_try;;
3223esac
3224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3225  (eval "$ac_try") 2>&5
3226  ac_status=$?
3227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228  (exit $ac_status); }; } &&
3229	 { ac_try='test -s conftest.$ac_objext'
3230  { (case "(($ac_try" in
3231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232  *) ac_try_echo=$ac_try;;
3233esac
3234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235  (eval "$ac_try") 2>&5
3236  ac_status=$?
3237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238  (exit $ac_status); }; }; then
3239  ac_cv_prog_cc_g=yes
3240else
3241  echo "$as_me: failed program was:" >&5
3242sed 's/^/| /' conftest.$ac_ext >&5
3243
3244
3245fi
3246
3247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3248fi
3249
3250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251fi
3252
3253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3254   ac_c_werror_flag=$ac_save_c_werror_flag
3255fi
3256{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3257echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3258if test "$ac_test_CFLAGS" = set; then
3259  CFLAGS=$ac_save_CFLAGS
3260elif test $ac_cv_prog_cc_g = yes; then
3261  if test "$GCC" = yes; then
3262    CFLAGS="-g -O2"
3263  else
3264    CFLAGS="-g"
3265  fi
3266else
3267  if test "$GCC" = yes; then
3268    CFLAGS="-O2"
3269  else
3270    CFLAGS=
3271  fi
3272fi
3273{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3274echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3275if test "${ac_cv_prog_cc_c89+set}" = set; then
3276  echo $ECHO_N "(cached) $ECHO_C" >&6
3277else
3278  ac_cv_prog_cc_c89=no
3279ac_save_CC=$CC
3280cat >conftest.$ac_ext <<_ACEOF
3281/* confdefs.h.  */
3282_ACEOF
3283cat confdefs.h >>conftest.$ac_ext
3284cat >>conftest.$ac_ext <<_ACEOF
3285/* end confdefs.h.  */
3286#include <stdarg.h>
3287#include <stdio.h>
3288#include <sys/types.h>
3289#include <sys/stat.h>
3290/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3291struct buf { int x; };
3292FILE * (*rcsopen) (struct buf *, struct stat *, int);
3293static char *e (p, i)
3294     char **p;
3295     int i;
3296{
3297  return p[i];
3298}
3299static char *f (char * (*g) (char **, int), char **p, ...)
3300{
3301  char *s;
3302  va_list v;
3303  va_start (v,p);
3304  s = g (p, va_arg (v,int));
3305  va_end (v);
3306  return s;
3307}
3308
3309/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3310   function prototypes and stuff, but not '\xHH' hex character constants.
3311   These don't provoke an error unfortunately, instead are silently treated
3312   as 'x'.  The following induces an error, until -std is added to get
3313   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3314   array size at least.  It's necessary to write '\x00'==0 to get something
3315   that's true only with -std.  */
3316int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3317
3318/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3319   inside strings and character constants.  */
3320#define FOO(x) 'x'
3321int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3322
3323int test (int i, double x);
3324struct s1 {int (*f) (int a);};
3325struct s2 {int (*f) (double a);};
3326int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3327int argc;
3328char **argv;
3329int
3330main ()
3331{
3332return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3333  ;
3334  return 0;
3335}
3336_ACEOF
3337for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3338	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3339do
3340  CC="$ac_save_CC $ac_arg"
3341  rm -f conftest.$ac_objext
3342if { (ac_try="$ac_compile"
3343case "(($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_compile") 2>conftest.er1
3349  ac_status=$?
3350  grep -v '^ *+' conftest.er1 >conftest.err
3351  rm -f conftest.er1
3352  cat conftest.err >&5
3353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354  (exit $ac_status); } &&
3355	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3356  { (case "(($ac_try" in
3357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358  *) ac_try_echo=$ac_try;;
3359esac
3360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3361  (eval "$ac_try") 2>&5
3362  ac_status=$?
3363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364  (exit $ac_status); }; } &&
3365	 { ac_try='test -s conftest.$ac_objext'
3366  { (case "(($ac_try" in
3367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368  *) ac_try_echo=$ac_try;;
3369esac
3370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371  (eval "$ac_try") 2>&5
3372  ac_status=$?
3373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374  (exit $ac_status); }; }; then
3375  ac_cv_prog_cc_c89=$ac_arg
3376else
3377  echo "$as_me: failed program was:" >&5
3378sed 's/^/| /' conftest.$ac_ext >&5
3379
3380
3381fi
3382
3383rm -f core conftest.err conftest.$ac_objext
3384  test "x$ac_cv_prog_cc_c89" != "xno" && break
3385done
3386rm -f conftest.$ac_ext
3387CC=$ac_save_CC
3388
3389fi
3390# AC_CACHE_VAL
3391case "x$ac_cv_prog_cc_c89" in
3392  x)
3393    { echo "$as_me:$LINENO: result: none needed" >&5
3394echo "${ECHO_T}none needed" >&6; } ;;
3395  xno)
3396    { echo "$as_me:$LINENO: result: unsupported" >&5
3397echo "${ECHO_T}unsupported" >&6; } ;;
3398  *)
3399    CC="$CC $ac_cv_prog_cc_c89"
3400    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3401echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3402esac
3403
3404
3405ac_ext=c
3406ac_cpp='$CPP $CPPFLAGS'
3407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3409ac_compiler_gnu=$ac_cv_c_compiler_gnu
3410
3411
3412ac_ext=c
3413ac_cpp='$CPP $CPPFLAGS'
3414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3416ac_compiler_gnu=$ac_cv_c_compiler_gnu
3417{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3418echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3419# On Suns, sometimes $CPP names a directory.
3420if test -n "$CPP" && test -d "$CPP"; then
3421  CPP=
3422fi
3423if test -z "$CPP"; then
3424  if test "${ac_cv_prog_CPP+set}" = set; then
3425  echo $ECHO_N "(cached) $ECHO_C" >&6
3426else
3427      # Double quotes because CPP needs to be expanded
3428    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3429    do
3430      ac_preproc_ok=false
3431for ac_c_preproc_warn_flag in '' yes
3432do
3433  # Use a header file that comes with gcc, so configuring glibc
3434  # with a fresh cross-compiler works.
3435  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3436  # <limits.h> exists even on freestanding compilers.
3437  # On the NeXT, cc -E runs the code through the compiler's parser,
3438  # not just through cpp. "Syntax error" is here to catch this case.
3439  cat >conftest.$ac_ext <<_ACEOF
3440/* confdefs.h.  */
3441_ACEOF
3442cat confdefs.h >>conftest.$ac_ext
3443cat >>conftest.$ac_ext <<_ACEOF
3444/* end confdefs.h.  */
3445#ifdef __STDC__
3446# include <limits.h>
3447#else
3448# include <assert.h>
3449#endif
3450		     Syntax error
3451_ACEOF
3452if { (ac_try="$ac_cpp conftest.$ac_ext"
3453case "(($ac_try" in
3454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455  *) ac_try_echo=$ac_try;;
3456esac
3457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3458  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3459  ac_status=$?
3460  grep -v '^ *+' conftest.er1 >conftest.err
3461  rm -f conftest.er1
3462  cat conftest.err >&5
3463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464  (exit $ac_status); } >/dev/null; then
3465  if test -s conftest.err; then
3466    ac_cpp_err=$ac_c_preproc_warn_flag
3467    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3468  else
3469    ac_cpp_err=
3470  fi
3471else
3472  ac_cpp_err=yes
3473fi
3474if test -z "$ac_cpp_err"; then
3475  :
3476else
3477  echo "$as_me: failed program was:" >&5
3478sed 's/^/| /' conftest.$ac_ext >&5
3479
3480  # Broken: fails on valid input.
3481continue
3482fi
3483
3484rm -f conftest.err conftest.$ac_ext
3485
3486  # OK, works on sane cases.  Now check whether nonexistent headers
3487  # can be detected and how.
3488  cat >conftest.$ac_ext <<_ACEOF
3489/* confdefs.h.  */
3490_ACEOF
3491cat confdefs.h >>conftest.$ac_ext
3492cat >>conftest.$ac_ext <<_ACEOF
3493/* end confdefs.h.  */
3494#include <ac_nonexistent.h>
3495_ACEOF
3496if { (ac_try="$ac_cpp conftest.$ac_ext"
3497case "(($ac_try" in
3498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499  *) ac_try_echo=$ac_try;;
3500esac
3501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3503  ac_status=$?
3504  grep -v '^ *+' conftest.er1 >conftest.err
3505  rm -f conftest.er1
3506  cat conftest.err >&5
3507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508  (exit $ac_status); } >/dev/null; then
3509  if test -s conftest.err; then
3510    ac_cpp_err=$ac_c_preproc_warn_flag
3511    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3512  else
3513    ac_cpp_err=
3514  fi
3515else
3516  ac_cpp_err=yes
3517fi
3518if test -z "$ac_cpp_err"; then
3519  # Broken: success on invalid input.
3520continue
3521else
3522  echo "$as_me: failed program was:" >&5
3523sed 's/^/| /' conftest.$ac_ext >&5
3524
3525  # Passes both tests.
3526ac_preproc_ok=:
3527break
3528fi
3529
3530rm -f conftest.err conftest.$ac_ext
3531
3532done
3533# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3534rm -f conftest.err conftest.$ac_ext
3535if $ac_preproc_ok; then
3536  break
3537fi
3538
3539    done
3540    ac_cv_prog_CPP=$CPP
3541
3542fi
3543  CPP=$ac_cv_prog_CPP
3544else
3545  ac_cv_prog_CPP=$CPP
3546fi
3547{ echo "$as_me:$LINENO: result: $CPP" >&5
3548echo "${ECHO_T}$CPP" >&6; }
3549ac_preproc_ok=false
3550for ac_c_preproc_warn_flag in '' yes
3551do
3552  # Use a header file that comes with gcc, so configuring glibc
3553  # with a fresh cross-compiler works.
3554  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3555  # <limits.h> exists even on freestanding compilers.
3556  # On the NeXT, cc -E runs the code through the compiler's parser,
3557  # not just through cpp. "Syntax error" is here to catch this case.
3558  cat >conftest.$ac_ext <<_ACEOF
3559/* confdefs.h.  */
3560_ACEOF
3561cat confdefs.h >>conftest.$ac_ext
3562cat >>conftest.$ac_ext <<_ACEOF
3563/* end confdefs.h.  */
3564#ifdef __STDC__
3565# include <limits.h>
3566#else
3567# include <assert.h>
3568#endif
3569		     Syntax error
3570_ACEOF
3571if { (ac_try="$ac_cpp conftest.$ac_ext"
3572case "(($ac_try" in
3573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574  *) ac_try_echo=$ac_try;;
3575esac
3576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3577  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3578  ac_status=$?
3579  grep -v '^ *+' conftest.er1 >conftest.err
3580  rm -f conftest.er1
3581  cat conftest.err >&5
3582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583  (exit $ac_status); } >/dev/null; then
3584  if test -s conftest.err; then
3585    ac_cpp_err=$ac_c_preproc_warn_flag
3586    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3587  else
3588    ac_cpp_err=
3589  fi
3590else
3591  ac_cpp_err=yes
3592fi
3593if test -z "$ac_cpp_err"; then
3594  :
3595else
3596  echo "$as_me: failed program was:" >&5
3597sed 's/^/| /' conftest.$ac_ext >&5
3598
3599  # Broken: fails on valid input.
3600continue
3601fi
3602
3603rm -f conftest.err conftest.$ac_ext
3604
3605  # OK, works on sane cases.  Now check whether nonexistent headers
3606  # can be detected and how.
3607  cat >conftest.$ac_ext <<_ACEOF
3608/* confdefs.h.  */
3609_ACEOF
3610cat confdefs.h >>conftest.$ac_ext
3611cat >>conftest.$ac_ext <<_ACEOF
3612/* end confdefs.h.  */
3613#include <ac_nonexistent.h>
3614_ACEOF
3615if { (ac_try="$ac_cpp conftest.$ac_ext"
3616case "(($ac_try" in
3617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618  *) ac_try_echo=$ac_try;;
3619esac
3620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3621  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3622  ac_status=$?
3623  grep -v '^ *+' conftest.er1 >conftest.err
3624  rm -f conftest.er1
3625  cat conftest.err >&5
3626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627  (exit $ac_status); } >/dev/null; then
3628  if test -s conftest.err; then
3629    ac_cpp_err=$ac_c_preproc_warn_flag
3630    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3631  else
3632    ac_cpp_err=
3633  fi
3634else
3635  ac_cpp_err=yes
3636fi
3637if test -z "$ac_cpp_err"; then
3638  # Broken: success on invalid input.
3639continue
3640else
3641  echo "$as_me: failed program was:" >&5
3642sed 's/^/| /' conftest.$ac_ext >&5
3643
3644  # Passes both tests.
3645ac_preproc_ok=:
3646break
3647fi
3648
3649rm -f conftest.err conftest.$ac_ext
3650
3651done
3652# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3653rm -f conftest.err conftest.$ac_ext
3654if $ac_preproc_ok; then
3655  :
3656else
3657  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3658See \`config.log' for more details." >&5
3659echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3660See \`config.log' for more details." >&2;}
3661   { (exit 1); exit 1; }; }
3662fi
3663
3664ac_ext=c
3665ac_cpp='$CPP $CPPFLAGS'
3666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668ac_compiler_gnu=$ac_cv_c_compiler_gnu
3669
3670
3671{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3672echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3673if test "${ac_cv_path_GREP+set}" = set; then
3674  echo $ECHO_N "(cached) $ECHO_C" >&6
3675else
3676  # Extract the first word of "grep ggrep" to use in msg output
3677if test -z "$GREP"; then
3678set dummy grep ggrep; ac_prog_name=$2
3679if test "${ac_cv_path_GREP+set}" = set; then
3680  echo $ECHO_N "(cached) $ECHO_C" >&6
3681else
3682  ac_path_GREP_found=false
3683# Loop through the user's path and test for each of PROGNAME-LIST
3684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3686do
3687  IFS=$as_save_IFS
3688  test -z "$as_dir" && as_dir=.
3689  for ac_prog in grep ggrep; do
3690  for ac_exec_ext in '' $ac_executable_extensions; do
3691    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3692    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3693    # Check for GNU ac_path_GREP and select it if it is found.
3694  # Check for GNU $ac_path_GREP
3695case `"$ac_path_GREP" --version 2>&1` in
3696*GNU*)
3697  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3698*)
3699  ac_count=0
3700  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3701  while :
3702  do
3703    cat "conftest.in" "conftest.in" >"conftest.tmp"
3704    mv "conftest.tmp" "conftest.in"
3705    cp "conftest.in" "conftest.nl"
3706    echo 'GREP' >> "conftest.nl"
3707    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3708    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3709    ac_count=`expr $ac_count + 1`
3710    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3711      # Best one so far, save it but keep looking for a better one
3712      ac_cv_path_GREP="$ac_path_GREP"
3713      ac_path_GREP_max=$ac_count
3714    fi
3715    # 10*(2^10) chars as input seems more than enough
3716    test $ac_count -gt 10 && break
3717  done
3718  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3719esac
3720
3721
3722    $ac_path_GREP_found && break 3
3723  done
3724done
3725
3726done
3727IFS=$as_save_IFS
3728
3729
3730fi
3731
3732GREP="$ac_cv_path_GREP"
3733if test -z "$GREP"; then
3734  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3735echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3736   { (exit 1); exit 1; }; }
3737fi
3738
3739else
3740  ac_cv_path_GREP=$GREP
3741fi
3742
3743
3744fi
3745{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3746echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3747 GREP="$ac_cv_path_GREP"
3748
3749
3750{ echo "$as_me:$LINENO: checking for egrep" >&5
3751echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3752if test "${ac_cv_path_EGREP+set}" = set; then
3753  echo $ECHO_N "(cached) $ECHO_C" >&6
3754else
3755  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3756   then ac_cv_path_EGREP="$GREP -E"
3757   else
3758     # Extract the first word of "egrep" to use in msg output
3759if test -z "$EGREP"; then
3760set dummy egrep; ac_prog_name=$2
3761if test "${ac_cv_path_EGREP+set}" = set; then
3762  echo $ECHO_N "(cached) $ECHO_C" >&6
3763else
3764  ac_path_EGREP_found=false
3765# Loop through the user's path and test for each of PROGNAME-LIST
3766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3768do
3769  IFS=$as_save_IFS
3770  test -z "$as_dir" && as_dir=.
3771  for ac_prog in egrep; do
3772  for ac_exec_ext in '' $ac_executable_extensions; do
3773    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3774    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3775    # Check for GNU ac_path_EGREP and select it if it is found.
3776  # Check for GNU $ac_path_EGREP
3777case `"$ac_path_EGREP" --version 2>&1` in
3778*GNU*)
3779  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3780*)
3781  ac_count=0
3782  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3783  while :
3784  do
3785    cat "conftest.in" "conftest.in" >"conftest.tmp"
3786    mv "conftest.tmp" "conftest.in"
3787    cp "conftest.in" "conftest.nl"
3788    echo 'EGREP' >> "conftest.nl"
3789    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3790    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3791    ac_count=`expr $ac_count + 1`
3792    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3793      # Best one so far, save it but keep looking for a better one
3794      ac_cv_path_EGREP="$ac_path_EGREP"
3795      ac_path_EGREP_max=$ac_count
3796    fi
3797    # 10*(2^10) chars as input seems more than enough
3798    test $ac_count -gt 10 && break
3799  done
3800  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3801esac
3802
3803
3804    $ac_path_EGREP_found && break 3
3805  done
3806done
3807
3808done
3809IFS=$as_save_IFS
3810
3811
3812fi
3813
3814EGREP="$ac_cv_path_EGREP"
3815if test -z "$EGREP"; then
3816  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3817echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3818   { (exit 1); exit 1; }; }
3819fi
3820
3821else
3822  ac_cv_path_EGREP=$EGREP
3823fi
3824
3825
3826   fi
3827fi
3828{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3829echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3830 EGREP="$ac_cv_path_EGREP"
3831
3832
3833{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3834echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3835if test "${ac_cv_header_stdc+set}" = set; then
3836  echo $ECHO_N "(cached) $ECHO_C" >&6
3837else
3838  cat >conftest.$ac_ext <<_ACEOF
3839/* confdefs.h.  */
3840_ACEOF
3841cat confdefs.h >>conftest.$ac_ext
3842cat >>conftest.$ac_ext <<_ACEOF
3843/* end confdefs.h.  */
3844#include <stdlib.h>
3845#include <stdarg.h>
3846#include <string.h>
3847#include <float.h>
3848
3849int
3850main ()
3851{
3852
3853  ;
3854  return 0;
3855}
3856_ACEOF
3857rm -f conftest.$ac_objext
3858if { (ac_try="$ac_compile"
3859case "(($ac_try" in
3860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861  *) ac_try_echo=$ac_try;;
3862esac
3863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3864  (eval "$ac_compile") 2>conftest.er1
3865  ac_status=$?
3866  grep -v '^ *+' conftest.er1 >conftest.err
3867  rm -f conftest.er1
3868  cat conftest.err >&5
3869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870  (exit $ac_status); } &&
3871	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3872  { (case "(($ac_try" in
3873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874  *) ac_try_echo=$ac_try;;
3875esac
3876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3877  (eval "$ac_try") 2>&5
3878  ac_status=$?
3879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880  (exit $ac_status); }; } &&
3881	 { ac_try='test -s conftest.$ac_objext'
3882  { (case "(($ac_try" in
3883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884  *) ac_try_echo=$ac_try;;
3885esac
3886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3887  (eval "$ac_try") 2>&5
3888  ac_status=$?
3889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890  (exit $ac_status); }; }; then
3891  ac_cv_header_stdc=yes
3892else
3893  echo "$as_me: failed program was:" >&5
3894sed 's/^/| /' conftest.$ac_ext >&5
3895
3896	ac_cv_header_stdc=no
3897fi
3898
3899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900
3901if test $ac_cv_header_stdc = yes; then
3902  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3903  cat >conftest.$ac_ext <<_ACEOF
3904/* confdefs.h.  */
3905_ACEOF
3906cat confdefs.h >>conftest.$ac_ext
3907cat >>conftest.$ac_ext <<_ACEOF
3908/* end confdefs.h.  */
3909#include <string.h>
3910
3911_ACEOF
3912if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3913  $EGREP "memchr" >/dev/null 2>&1; then
3914  :
3915else
3916  ac_cv_header_stdc=no
3917fi
3918rm -f conftest*
3919
3920fi
3921
3922if test $ac_cv_header_stdc = yes; then
3923  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3924  cat >conftest.$ac_ext <<_ACEOF
3925/* confdefs.h.  */
3926_ACEOF
3927cat confdefs.h >>conftest.$ac_ext
3928cat >>conftest.$ac_ext <<_ACEOF
3929/* end confdefs.h.  */
3930#include <stdlib.h>
3931
3932_ACEOF
3933if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3934  $EGREP "free" >/dev/null 2>&1; then
3935  :
3936else
3937  ac_cv_header_stdc=no
3938fi
3939rm -f conftest*
3940
3941fi
3942
3943if test $ac_cv_header_stdc = yes; then
3944  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3945  if test "$cross_compiling" = yes; then
3946  :
3947else
3948  cat >conftest.$ac_ext <<_ACEOF
3949/* confdefs.h.  */
3950_ACEOF
3951cat confdefs.h >>conftest.$ac_ext
3952cat >>conftest.$ac_ext <<_ACEOF
3953/* end confdefs.h.  */
3954#include <ctype.h>
3955#include <stdlib.h>
3956#if ((' ' & 0x0FF) == 0x020)
3957# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3958# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3959#else
3960# define ISLOWER(c) \
3961		   (('a' <= (c) && (c) <= 'i') \
3962		     || ('j' <= (c) && (c) <= 'r') \
3963		     || ('s' <= (c) && (c) <= 'z'))
3964# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3965#endif
3966
3967#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3968int
3969main ()
3970{
3971  int i;
3972  for (i = 0; i < 256; i++)
3973    if (XOR (islower (i), ISLOWER (i))
3974	|| toupper (i) != TOUPPER (i))
3975      return 2;
3976  return 0;
3977}
3978_ACEOF
3979rm -f conftest$ac_exeext
3980if { (ac_try="$ac_link"
3981case "(($ac_try" in
3982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983  *) ac_try_echo=$ac_try;;
3984esac
3985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3986  (eval "$ac_link") 2>&5
3987  ac_status=$?
3988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3990  { (case "(($ac_try" in
3991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992  *) ac_try_echo=$ac_try;;
3993esac
3994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3995  (eval "$ac_try") 2>&5
3996  ac_status=$?
3997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998  (exit $ac_status); }; }; then
3999  :
4000else
4001  echo "$as_me: program exited with status $ac_status" >&5
4002echo "$as_me: failed program was:" >&5
4003sed 's/^/| /' conftest.$ac_ext >&5
4004
4005( exit $ac_status )
4006ac_cv_header_stdc=no
4007fi
4008rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4009fi
4010
4011
4012fi
4013fi
4014{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4015echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4016if test $ac_cv_header_stdc = yes; then
4017
4018cat >>confdefs.h <<\_ACEOF
4019#define STDC_HEADERS 1
4020_ACEOF
4021
4022fi
4023
4024# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4035		  inttypes.h stdint.h unistd.h
4036do
4037as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4038{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4039echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4040if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4041  echo $ECHO_N "(cached) $ECHO_C" >&6
4042else
4043  cat >conftest.$ac_ext <<_ACEOF
4044/* confdefs.h.  */
4045_ACEOF
4046cat confdefs.h >>conftest.$ac_ext
4047cat >>conftest.$ac_ext <<_ACEOF
4048/* end confdefs.h.  */
4049$ac_includes_default
4050
4051#include <$ac_header>
4052_ACEOF
4053rm -f conftest.$ac_objext
4054if { (ac_try="$ac_compile"
4055case "(($ac_try" in
4056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057  *) ac_try_echo=$ac_try;;
4058esac
4059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060  (eval "$ac_compile") 2>conftest.er1
4061  ac_status=$?
4062  grep -v '^ *+' conftest.er1 >conftest.err
4063  rm -f conftest.er1
4064  cat conftest.err >&5
4065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066  (exit $ac_status); } &&
4067	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4068  { (case "(($ac_try" in
4069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070  *) ac_try_echo=$ac_try;;
4071esac
4072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073  (eval "$ac_try") 2>&5
4074  ac_status=$?
4075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076  (exit $ac_status); }; } &&
4077	 { ac_try='test -s conftest.$ac_objext'
4078  { (case "(($ac_try" in
4079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080  *) ac_try_echo=$ac_try;;
4081esac
4082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083  (eval "$ac_try") 2>&5
4084  ac_status=$?
4085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086  (exit $ac_status); }; }; then
4087  eval "$as_ac_Header=yes"
4088else
4089  echo "$as_me: failed program was:" >&5
4090sed 's/^/| /' conftest.$ac_ext >&5
4091
4092	eval "$as_ac_Header=no"
4093fi
4094
4095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096fi
4097ac_res=`eval echo '${'$as_ac_Header'}'`
4098	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4099echo "${ECHO_T}$ac_res" >&6; }
4100if test `eval echo '${'$as_ac_Header'}'` = yes; then
4101  cat >>confdefs.h <<_ACEOF
4102#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4103_ACEOF
4104
4105fi
4106
4107done
4108
4109
4110{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4111echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4112if test "${ac_cv_c_bigendian+set}" = set; then
4113  echo $ECHO_N "(cached) $ECHO_C" >&6
4114else
4115  # See if sys/param.h defines the BYTE_ORDER macro.
4116cat >conftest.$ac_ext <<_ACEOF
4117/* confdefs.h.  */
4118_ACEOF
4119cat confdefs.h >>conftest.$ac_ext
4120cat >>conftest.$ac_ext <<_ACEOF
4121/* end confdefs.h.  */
4122#include <sys/types.h>
4123#include <sys/param.h>
4124
4125int
4126main ()
4127{
4128#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4129 bogus endian macros
4130#endif
4131
4132  ;
4133  return 0;
4134}
4135_ACEOF
4136rm -f conftest.$ac_objext
4137if { (ac_try="$ac_compile"
4138case "(($ac_try" in
4139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140  *) ac_try_echo=$ac_try;;
4141esac
4142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143  (eval "$ac_compile") 2>conftest.er1
4144  ac_status=$?
4145  grep -v '^ *+' conftest.er1 >conftest.err
4146  rm -f conftest.er1
4147  cat conftest.err >&5
4148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149  (exit $ac_status); } &&
4150	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4151  { (case "(($ac_try" in
4152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153  *) ac_try_echo=$ac_try;;
4154esac
4155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4156  (eval "$ac_try") 2>&5
4157  ac_status=$?
4158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159  (exit $ac_status); }; } &&
4160	 { ac_try='test -s conftest.$ac_objext'
4161  { (case "(($ac_try" in
4162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163  *) ac_try_echo=$ac_try;;
4164esac
4165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166  (eval "$ac_try") 2>&5
4167  ac_status=$?
4168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169  (exit $ac_status); }; }; then
4170  # It does; now see whether it defined to BIG_ENDIAN or not.
4171cat >conftest.$ac_ext <<_ACEOF
4172/* confdefs.h.  */
4173_ACEOF
4174cat confdefs.h >>conftest.$ac_ext
4175cat >>conftest.$ac_ext <<_ACEOF
4176/* end confdefs.h.  */
4177#include <sys/types.h>
4178#include <sys/param.h>
4179
4180int
4181main ()
4182{
4183#if BYTE_ORDER != BIG_ENDIAN
4184 not big endian
4185#endif
4186
4187  ;
4188  return 0;
4189}
4190_ACEOF
4191rm -f conftest.$ac_objext
4192if { (ac_try="$ac_compile"
4193case "(($ac_try" in
4194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195  *) ac_try_echo=$ac_try;;
4196esac
4197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198  (eval "$ac_compile") 2>conftest.er1
4199  ac_status=$?
4200  grep -v '^ *+' conftest.er1 >conftest.err
4201  rm -f conftest.er1
4202  cat conftest.err >&5
4203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204  (exit $ac_status); } &&
4205	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4206  { (case "(($ac_try" in
4207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208  *) ac_try_echo=$ac_try;;
4209esac
4210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4211  (eval "$ac_try") 2>&5
4212  ac_status=$?
4213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214  (exit $ac_status); }; } &&
4215	 { ac_try='test -s conftest.$ac_objext'
4216  { (case "(($ac_try" in
4217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218  *) ac_try_echo=$ac_try;;
4219esac
4220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221  (eval "$ac_try") 2>&5
4222  ac_status=$?
4223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224  (exit $ac_status); }; }; then
4225  ac_cv_c_bigendian=yes
4226else
4227  echo "$as_me: failed program was:" >&5
4228sed 's/^/| /' conftest.$ac_ext >&5
4229
4230	ac_cv_c_bigendian=no
4231fi
4232
4233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4234else
4235  echo "$as_me: failed program was:" >&5
4236sed 's/^/| /' conftest.$ac_ext >&5
4237
4238	# It does not; compile a test program.
4239if test "$cross_compiling" = yes; then
4240  # try to guess the endianness by grepping values into an object file
4241  ac_cv_c_bigendian=unknown
4242  cat >conftest.$ac_ext <<_ACEOF
4243/* confdefs.h.  */
4244_ACEOF
4245cat confdefs.h >>conftest.$ac_ext
4246cat >>conftest.$ac_ext <<_ACEOF
4247/* end confdefs.h.  */
4248short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4249short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4250void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4251short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4252short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4253void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4254int
4255main ()
4256{
4257 _ascii (); _ebcdic ();
4258  ;
4259  return 0;
4260}
4261_ACEOF
4262rm -f conftest.$ac_objext
4263if { (ac_try="$ac_compile"
4264case "(($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_compile") 2>conftest.er1
4270  ac_status=$?
4271  grep -v '^ *+' conftest.er1 >conftest.err
4272  rm -f conftest.er1
4273  cat conftest.err >&5
4274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275  (exit $ac_status); } &&
4276	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4277  { (case "(($ac_try" in
4278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279  *) ac_try_echo=$ac_try;;
4280esac
4281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4282  (eval "$ac_try") 2>&5
4283  ac_status=$?
4284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285  (exit $ac_status); }; } &&
4286	 { ac_try='test -s conftest.$ac_objext'
4287  { (case "(($ac_try" in
4288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289  *) ac_try_echo=$ac_try;;
4290esac
4291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292  (eval "$ac_try") 2>&5
4293  ac_status=$?
4294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295  (exit $ac_status); }; }; then
4296  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4297  ac_cv_c_bigendian=yes
4298fi
4299if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4300  if test "$ac_cv_c_bigendian" = unknown; then
4301    ac_cv_c_bigendian=no
4302  else
4303    # finding both strings is unlikely to happen, but who knows?
4304    ac_cv_c_bigendian=unknown
4305  fi
4306fi
4307else
4308  echo "$as_me: failed program was:" >&5
4309sed 's/^/| /' conftest.$ac_ext >&5
4310
4311
4312fi
4313
4314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315else
4316  cat >conftest.$ac_ext <<_ACEOF
4317/* confdefs.h.  */
4318_ACEOF
4319cat confdefs.h >>conftest.$ac_ext
4320cat >>conftest.$ac_ext <<_ACEOF
4321/* end confdefs.h.  */
4322$ac_includes_default
4323int
4324main ()
4325{
4326
4327  /* Are we little or big endian?  From Harbison&Steele.  */
4328  union
4329  {
4330    long int l;
4331    char c[sizeof (long int)];
4332  } u;
4333  u.l = 1;
4334  return u.c[sizeof (long int) - 1] == 1;
4335
4336  ;
4337  return 0;
4338}
4339_ACEOF
4340rm -f conftest$ac_exeext
4341if { (ac_try="$ac_link"
4342case "(($ac_try" in
4343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344  *) ac_try_echo=$ac_try;;
4345esac
4346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4347  (eval "$ac_link") 2>&5
4348  ac_status=$?
4349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4351  { (case "(($ac_try" in
4352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353  *) ac_try_echo=$ac_try;;
4354esac
4355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4356  (eval "$ac_try") 2>&5
4357  ac_status=$?
4358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359  (exit $ac_status); }; }; then
4360  ac_cv_c_bigendian=no
4361else
4362  echo "$as_me: program exited with status $ac_status" >&5
4363echo "$as_me: failed program was:" >&5
4364sed 's/^/| /' conftest.$ac_ext >&5
4365
4366( exit $ac_status )
4367ac_cv_c_bigendian=yes
4368fi
4369rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4370fi
4371
4372
4373fi
4374
4375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4376fi
4377{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4378echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4379case $ac_cv_c_bigendian in
4380  yes)
4381    ENDIAN=big
4382 ;;
4383  no)
4384    ENDIAN=little
4385 ;;
4386  *)
4387    { { echo "$as_me:$LINENO: error: unknown endianness
4388presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4389echo "$as_me: error: unknown endianness
4390presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4391   { (exit 1); exit 1; }; } ;;
4392esac
4393
4394
4395if test "$cross_compiling" = yes; then
4396  LLVM_CROSS_COMPILING=1
4397
4398
4399{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4400echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4401if test "${ac_cv_build_exeext+set}" = set; then
4402  echo $ECHO_N "(cached) $ECHO_C" >&6
4403else
4404  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4405  ac_cv_build_exeext=.exe
4406else
4407  ac_build_prefix=${build_alias}-
4408
4409  # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4410set dummy ${ac_build_prefix}gcc; ac_word=$2
4411{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4413if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4414  echo $ECHO_N "(cached) $ECHO_C" >&6
4415else
4416  if test -n "$BUILD_CC"; then
4417  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4418else
4419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420for as_dir in $PATH
4421do
4422  IFS=$as_save_IFS
4423  test -z "$as_dir" && as_dir=.
4424  for ac_exec_ext in '' $ac_executable_extensions; do
4425  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4426    ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4427    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4428    break 2
4429  fi
4430done
4431done
4432IFS=$as_save_IFS
4433
4434fi
4435fi
4436BUILD_CC=$ac_cv_prog_BUILD_CC
4437if test -n "$BUILD_CC"; then
4438  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4439echo "${ECHO_T}$BUILD_CC" >&6; }
4440else
4441  { echo "$as_me:$LINENO: result: no" >&5
4442echo "${ECHO_T}no" >&6; }
4443fi
4444
4445
4446  if test -z "$BUILD_CC"; then
4447     # Extract the first word of "gcc", so it can be a program name with args.
4448set dummy gcc; ac_word=$2
4449{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4451if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4452  echo $ECHO_N "(cached) $ECHO_C" >&6
4453else
4454  if test -n "$BUILD_CC"; then
4455  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4456else
4457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458for as_dir in $PATH
4459do
4460  IFS=$as_save_IFS
4461  test -z "$as_dir" && as_dir=.
4462  for ac_exec_ext in '' $ac_executable_extensions; do
4463  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4464    ac_cv_prog_BUILD_CC="gcc"
4465    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4466    break 2
4467  fi
4468done
4469done
4470IFS=$as_save_IFS
4471
4472fi
4473fi
4474BUILD_CC=$ac_cv_prog_BUILD_CC
4475if test -n "$BUILD_CC"; then
4476  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4477echo "${ECHO_T}$BUILD_CC" >&6; }
4478else
4479  { echo "$as_me:$LINENO: result: no" >&5
4480echo "${ECHO_T}no" >&6; }
4481fi
4482
4483
4484     if test -z "$BUILD_CC"; then
4485       # Extract the first word of "cc", so it can be a program name with args.
4486set dummy cc; ac_word=$2
4487{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4489if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4490  echo $ECHO_N "(cached) $ECHO_C" >&6
4491else
4492  if test -n "$BUILD_CC"; then
4493  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4494else
4495  ac_prog_rejected=no
4496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497for as_dir in $PATH
4498do
4499  IFS=$as_save_IFS
4500  test -z "$as_dir" && as_dir=.
4501  for ac_exec_ext in '' $ac_executable_extensions; do
4502  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4503    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4504       ac_prog_rejected=yes
4505       continue
4506     fi
4507    ac_cv_prog_BUILD_CC="cc"
4508    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4509    break 2
4510  fi
4511done
4512done
4513IFS=$as_save_IFS
4514
4515if test $ac_prog_rejected = yes; then
4516  # We found a bogon in the path, so make sure we never use it.
4517  set dummy $ac_cv_prog_BUILD_CC
4518  shift
4519  if test $# != 0; then
4520    # We chose a different compiler from the bogus one.
4521    # However, it has the same basename, so the bogon will be chosen
4522    # first if we set BUILD_CC to just the basename; use the full file name.
4523    shift
4524    ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4525  fi
4526fi
4527fi
4528fi
4529BUILD_CC=$ac_cv_prog_BUILD_CC
4530if test -n "$BUILD_CC"; then
4531  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4532echo "${ECHO_T}$BUILD_CC" >&6; }
4533else
4534  { echo "$as_me:$LINENO: result: no" >&5
4535echo "${ECHO_T}no" >&6; }
4536fi
4537
4538
4539     fi
4540  fi
4541  test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4542echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4543   { (exit 1); exit 1; }; }
4544  ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4545  rm -f conftest*
4546  echo 'int main () { return 0; }' > conftest.$ac_ext
4547  ac_cv_build_exeext=
4548  if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4549  (eval $ac_build_link) 2>&5
4550  ac_status=$?
4551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552  (exit $ac_status); }; then
4553    for file in conftest.*; do
4554      case $file in
4555      *.c | *.o | *.obj | *.dSYM) ;;
4556      *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4557      esac
4558    done
4559  else
4560    { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4561echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4562   { (exit 1); exit 1; }; }
4563  fi
4564  rm -f conftest*
4565  test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4566fi
4567fi
4568
4569BUILD_EXEEXT=""
4570test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4571{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4572echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4573ac_build_exeext=$BUILD_EXEEXT
4574
4575  ac_build_prefix=${build_alias}-
4576  # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4577set dummy ${ac_build_prefix}g++; ac_word=$2
4578{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4580if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4581  echo $ECHO_N "(cached) $ECHO_C" >&6
4582else
4583  if test -n "$BUILD_CXX"; then
4584  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4585else
4586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587for as_dir in $PATH
4588do
4589  IFS=$as_save_IFS
4590  test -z "$as_dir" && as_dir=.
4591  for ac_exec_ext in '' $ac_executable_extensions; do
4592  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4593    ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4594    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595    break 2
4596  fi
4597done
4598done
4599IFS=$as_save_IFS
4600
4601fi
4602fi
4603BUILD_CXX=$ac_cv_prog_BUILD_CXX
4604if test -n "$BUILD_CXX"; then
4605  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4606echo "${ECHO_T}$BUILD_CXX" >&6; }
4607else
4608  { echo "$as_me:$LINENO: result: no" >&5
4609echo "${ECHO_T}no" >&6; }
4610fi
4611
4612
4613  if test -z "$BUILD_CXX"; then
4614     # Extract the first word of "g++", so it can be a program name with args.
4615set dummy g++; ac_word=$2
4616{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4618if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4619  echo $ECHO_N "(cached) $ECHO_C" >&6
4620else
4621  if test -n "$BUILD_CXX"; then
4622  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4623else
4624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625for as_dir in $PATH
4626do
4627  IFS=$as_save_IFS
4628  test -z "$as_dir" && as_dir=.
4629  for ac_exec_ext in '' $ac_executable_extensions; do
4630  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4631    ac_cv_prog_BUILD_CXX="g++"
4632    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4633    break 2
4634  fi
4635done
4636done
4637IFS=$as_save_IFS
4638
4639fi
4640fi
4641BUILD_CXX=$ac_cv_prog_BUILD_CXX
4642if test -n "$BUILD_CXX"; then
4643  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4644echo "${ECHO_T}$BUILD_CXX" >&6; }
4645else
4646  { echo "$as_me:$LINENO: result: no" >&5
4647echo "${ECHO_T}no" >&6; }
4648fi
4649
4650
4651     if test -z "$BUILD_CXX"; then
4652       # Extract the first word of "c++", so it can be a program name with args.
4653set dummy c++; ac_word=$2
4654{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4656if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4657  echo $ECHO_N "(cached) $ECHO_C" >&6
4658else
4659  if test -n "$BUILD_CXX"; then
4660  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4661else
4662  ac_prog_rejected=no
4663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664for as_dir in $PATH
4665do
4666  IFS=$as_save_IFS
4667  test -z "$as_dir" && as_dir=.
4668  for ac_exec_ext in '' $ac_executable_extensions; do
4669  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4670    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4671       ac_prog_rejected=yes
4672       continue
4673     fi
4674    ac_cv_prog_BUILD_CXX="c++"
4675    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4676    break 2
4677  fi
4678done
4679done
4680IFS=$as_save_IFS
4681
4682if test $ac_prog_rejected = yes; then
4683  # We found a bogon in the path, so make sure we never use it.
4684  set dummy $ac_cv_prog_BUILD_CXX
4685  shift
4686  if test $# != 0; then
4687    # We chose a different compiler from the bogus one.
4688    # However, it has the same basename, so the bogon will be chosen
4689    # first if we set BUILD_CXX to just the basename; use the full file name.
4690    shift
4691    ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4692  fi
4693fi
4694fi
4695fi
4696BUILD_CXX=$ac_cv_prog_BUILD_CXX
4697if test -n "$BUILD_CXX"; then
4698  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4699echo "${ECHO_T}$BUILD_CXX" >&6; }
4700else
4701  { echo "$as_me:$LINENO: result: no" >&5
4702echo "${ECHO_T}no" >&6; }
4703fi
4704
4705
4706     fi
4707  fi
4708else
4709  LLVM_CROSS_COMPILING=0
4710
4711fi
4712
4713if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4714  cvsbuild="yes"
4715  optimize="no"
4716  CVSBUILD=CVSBUILD=1
4717
4718else
4719  cvsbuild="no"
4720  optimize="yes"
4721fi
4722
4723
4724# Check whether --enable-optimized was given.
4725if test "${enable_optimized+set}" = set; then
4726  enableval=$enable_optimized;
4727else
4728  enableval=$optimize
4729fi
4730
4731if test ${enableval} = "no" ; then
4732  ENABLE_OPTIMIZED=
4733
4734else
4735  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4736
4737fi
4738
4739# Check whether --enable-assertions was given.
4740if test "${enable_assertions+set}" = set; then
4741  enableval=$enable_assertions;
4742else
4743  enableval="yes"
4744fi
4745
4746if test ${enableval} = "yes" ; then
4747  DISABLE_ASSERTIONS=
4748
4749else
4750  DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4751
4752fi
4753
4754# Check whether --enable-expensive-checks was given.
4755if test "${enable_expensive_checks+set}" = set; then
4756  enableval=$enable_expensive_checks;
4757else
4758  enableval="no"
4759fi
4760
4761if test ${enableval} = "yes" ; then
4762  ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4763
4764  EXPENSIVE_CHECKS=yes
4765
4766else
4767  ENABLE_EXPENSIVE_CHECKS=
4768
4769  EXPENSIVE_CHECKS=no
4770
4771fi
4772
4773# Check whether --enable-debug-runtime was given.
4774if test "${enable_debug_runtime+set}" = set; then
4775  enableval=$enable_debug_runtime;
4776else
4777  enableval=no
4778fi
4779
4780if test ${enableval} = "no" ; then
4781  DEBUG_RUNTIME=
4782
4783else
4784  DEBUG_RUNTIME=DEBUG_RUNTIME=1
4785
4786fi
4787
4788# Check whether --enable-jit was given.
4789if test "${enable_jit+set}" = set; then
4790  enableval=$enable_jit;
4791else
4792  enableval=default
4793fi
4794
4795if test ${enableval} = "no"
4796then
4797  JIT=
4798
4799else
4800  case "$llvm_cv_target_arch" in
4801    x86)     TARGET_HAS_JIT=1
4802 ;;
4803    Sparc)   TARGET_HAS_JIT=0
4804 ;;
4805    PowerPC) TARGET_HAS_JIT=1
4806 ;;
4807    x86_64)  TARGET_HAS_JIT=1
4808 ;;
4809    Alpha)   TARGET_HAS_JIT=1
4810 ;;
4811    IA64)    TARGET_HAS_JIT=0
4812 ;;
4813    ARM)     TARGET_HAS_JIT=0
4814 ;;
4815    Mips)    TARGET_HAS_JIT=0
4816 ;;
4817    PIC16)   TARGET_HAS_JIT=0
4818 ;;
4819    XCore)   TARGET_HAS_JIT=0
4820 ;;
4821    *)       TARGET_HAS_JIT=0
4822 ;;
4823  esac
4824fi
4825
4826# Check whether --enable-doxygen was given.
4827if test "${enable_doxygen+set}" = set; then
4828  enableval=$enable_doxygen;
4829else
4830  enableval=default
4831fi
4832
4833case "$enableval" in
4834  yes) ENABLE_DOXYGEN=1
4835 ;;
4836  no)  ENABLE_DOXYGEN=0
4837 ;;
4838  default) ENABLE_DOXYGEN=0
4839 ;;
4840  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4841echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4842   { (exit 1); exit 1; }; } ;;
4843esac
4844
4845# Check whether --enable-threads was given.
4846if test "${enable_threads+set}" = set; then
4847  enableval=$enable_threads;
4848else
4849  enableval=default
4850fi
4851
4852case "$enableval" in
4853  yes) ENABLE_THREADS=1
4854 ;;
4855  no)  ENABLE_THREADS=0
4856 ;;
4857  default) ENABLE_THREADS=1
4858 ;;
4859  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4860echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4861   { (exit 1); exit 1; }; } ;;
4862esac
4863
4864cat >>confdefs.h <<_ACEOF
4865#define ENABLE_THREADS $ENABLE_THREADS
4866_ACEOF
4867
4868
4869# Check whether --enable-pic was given.
4870if test "${enable_pic+set}" = set; then
4871  enableval=$enable_pic;
4872else
4873  enableval=default
4874fi
4875
4876case "$enableval" in
4877  yes) ENABLE_PIC=1
4878 ;;
4879  no)  ENABLE_PIC=0
4880 ;;
4881  default) ENABLE_PIC=1
4882 ;;
4883  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4884echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4885   { (exit 1); exit 1; }; } ;;
4886esac
4887
4888cat >>confdefs.h <<_ACEOF
4889#define ENABLE_PIC $ENABLE_PIC
4890_ACEOF
4891
4892
4893TARGETS_TO_BUILD=""
4894# Check whether --enable-targets was given.
4895if test "${enable_targets+set}" = set; then
4896  enableval=$enable_targets;
4897else
4898  enableval=all
4899fi
4900
4901case "$enableval" in
4902  all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
4903  host-only)
4904    case "$llvm_cv_target_arch" in
4905      x86)     TARGETS_TO_BUILD="X86" ;;
4906      x86_64)  TARGETS_TO_BUILD="X86" ;;
4907      Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4908      PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4909      Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4910      IA64)    TARGETS_TO_BUILD="IA64" ;;
4911      ARM)     TARGETS_TO_BUILD="ARM" ;;
4912      Mips)    TARGETS_TO_BUILD="Mips" ;;
4913      CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4914      PIC16)   TARGETS_TO_BUILD="PIC16" ;;
4915      XCore)   TARGETS_TO_BUILD="XCore" ;;
4916      *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4917echo "$as_me: error: Can not set target to build" >&2;}
4918   { (exit 1); exit 1; }; } ;;
4919    esac
4920    ;;
4921  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4922      case "$a_target" in
4923        x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4924        x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4925        sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4926        powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4927        alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4928        ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4929        arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4930        mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4931        spu)     TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4932        pic16)   TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4933        xcore)   TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4934        cbe)     TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4935        msil)    TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4936        cpp)     TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4937        *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4938echo "$as_me: error: Unrecognized target $a_target" >&2;}
4939   { (exit 1); exit 1; }; } ;;
4940      esac
4941  done
4942  ;;
4943esac
4944TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4945
4946
4947# Check whether --enable-cbe-printf-a was given.
4948if test "${enable_cbe_printf_a+set}" = set; then
4949  enableval=$enable_cbe_printf_a;
4950else
4951  enableval=default
4952fi
4953
4954case "$enableval" in
4955  yes) ENABLE_CBE_PRINTF_A=1
4956 ;;
4957  no)  ENABLE_CBE_PRINTF_A=0
4958 ;;
4959  default)  ENABLE_CBE_PRINTF_A=1
4960 ;;
4961  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4962echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4963   { (exit 1); exit 1; }; } ;;
4964esac
4965
4966cat >>confdefs.h <<_ACEOF
4967#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4968_ACEOF
4969
4970
4971
4972# Check whether --with-llvmgccdir was given.
4973if test "${with_llvmgccdir+set}" = set; then
4974  withval=$with_llvmgccdir;
4975else
4976  withval=default
4977fi
4978
4979case "$withval" in
4980  default) WITH_LLVMGCCDIR=default ;;
4981  /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4982  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4983echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4984   { (exit 1); exit 1; }; } ;;
4985esac
4986
4987
4988# Check whether --with-llvmgcc was given.
4989if test "${with_llvmgcc+set}" = set; then
4990  withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4991      WITH_LLVMGCCDIR=""
4992fi
4993
4994
4995
4996# Check whether --with-llvmgxx was given.
4997if test "${with_llvmgxx+set}" = set; then
4998  withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4999    WITH_LLVMGCCDIR=""
5000fi
5001
5002
5003if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5004   { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5005echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5006   { (exit 1); exit 1; }; };
5007fi
5008
5009if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5010   { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5011echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5012   { (exit 1); exit 1; }; };
5013fi
5014
5015
5016# Check whether --with-extra-options was given.
5017if test "${with_extra_options+set}" = set; then
5018  withval=$with_extra_options;
5019else
5020  withval=default
5021fi
5022
5023case "$withval" in
5024  default) EXTRA_OPTIONS= ;;
5025  *) EXTRA_OPTIONS=$withval ;;
5026esac
5027EXTRA_OPTIONS=$EXTRA_OPTIONS
5028
5029
5030# Check whether --enable-bindings was given.
5031if test "${enable_bindings+set}" = set; then
5032  enableval=$enable_bindings;
5033else
5034  enableval=default
5035fi
5036
5037BINDINGS_TO_BUILD=""
5038case "$enableval" in
5039  yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5040  all ) BINDINGS_TO_BUILD="ocaml" ;;
5041  none | no) BINDINGS_TO_BUILD="" ;;
5042  *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5043      case "$a_binding" in
5044        ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5045        *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5046echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5047   { (exit 1); exit 1; }; } ;;
5048      esac
5049  done
5050  ;;
5051esac
5052
5053
5054# Check whether --with-ocaml-libdir was given.
5055if test "${with_ocaml_libdir+set}" = set; then
5056  withval=$with_ocaml_libdir;
5057else
5058  withval=auto
5059fi
5060
5061case "$withval" in
5062  auto) with_ocaml_libdir="$withval" ;;
5063  /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5064  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5065echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5066   { (exit 1); exit 1; }; } ;;
5067esac
5068
5069
5070# Check whether --with-binutils-include was given.
5071if test "${with_binutils_include+set}" = set; then
5072  withval=$with_binutils_include;
5073else
5074  withval=default
5075fi
5076
5077case "$withval" in
5078  default) WITH_BINUTILS_INCDIR=default ;;
5079  /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5080  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5081echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5082   { (exit 1); exit 1; }; } ;;
5083esac
5084if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5085  BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5086
5087  if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5088     echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5089     { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5090echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5091   { (exit 1); exit 1; }; };
5092  fi
5093fi
5094
5095
5096ac_ext=c
5097ac_cpp='$CPP $CPPFLAGS'
5098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5100ac_compiler_gnu=$ac_cv_c_compiler_gnu
5101{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5102echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5103# On Suns, sometimes $CPP names a directory.
5104if test -n "$CPP" && test -d "$CPP"; then
5105  CPP=
5106fi
5107if test -z "$CPP"; then
5108  if test "${ac_cv_prog_CPP+set}" = set; then
5109  echo $ECHO_N "(cached) $ECHO_C" >&6
5110else
5111      # Double quotes because CPP needs to be expanded
5112    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5113    do
5114      ac_preproc_ok=false
5115for ac_c_preproc_warn_flag in '' yes
5116do
5117  # Use a header file that comes with gcc, so configuring glibc
5118  # with a fresh cross-compiler works.
5119  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5120  # <limits.h> exists even on freestanding compilers.
5121  # On the NeXT, cc -E runs the code through the compiler's parser,
5122  # not just through cpp. "Syntax error" is here to catch this case.
5123  cat >conftest.$ac_ext <<_ACEOF
5124/* confdefs.h.  */
5125_ACEOF
5126cat confdefs.h >>conftest.$ac_ext
5127cat >>conftest.$ac_ext <<_ACEOF
5128/* end confdefs.h.  */
5129#ifdef __STDC__
5130# include <limits.h>
5131#else
5132# include <assert.h>
5133#endif
5134		     Syntax error
5135_ACEOF
5136if { (ac_try="$ac_cpp conftest.$ac_ext"
5137case "(($ac_try" in
5138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5139  *) ac_try_echo=$ac_try;;
5140esac
5141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5142  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5143  ac_status=$?
5144  grep -v '^ *+' conftest.er1 >conftest.err
5145  rm -f conftest.er1
5146  cat conftest.err >&5
5147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148  (exit $ac_status); } >/dev/null; then
5149  if test -s conftest.err; then
5150    ac_cpp_err=$ac_c_preproc_warn_flag
5151    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5152  else
5153    ac_cpp_err=
5154  fi
5155else
5156  ac_cpp_err=yes
5157fi
5158if test -z "$ac_cpp_err"; then
5159  :
5160else
5161  echo "$as_me: failed program was:" >&5
5162sed 's/^/| /' conftest.$ac_ext >&5
5163
5164  # Broken: fails on valid input.
5165continue
5166fi
5167
5168rm -f conftest.err conftest.$ac_ext
5169
5170  # OK, works on sane cases.  Now check whether nonexistent headers
5171  # can be detected and how.
5172  cat >conftest.$ac_ext <<_ACEOF
5173/* confdefs.h.  */
5174_ACEOF
5175cat confdefs.h >>conftest.$ac_ext
5176cat >>conftest.$ac_ext <<_ACEOF
5177/* end confdefs.h.  */
5178#include <ac_nonexistent.h>
5179_ACEOF
5180if { (ac_try="$ac_cpp conftest.$ac_ext"
5181case "(($ac_try" in
5182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5183  *) ac_try_echo=$ac_try;;
5184esac
5185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5186  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5187  ac_status=$?
5188  grep -v '^ *+' conftest.er1 >conftest.err
5189  rm -f conftest.er1
5190  cat conftest.err >&5
5191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192  (exit $ac_status); } >/dev/null; then
5193  if test -s conftest.err; then
5194    ac_cpp_err=$ac_c_preproc_warn_flag
5195    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5196  else
5197    ac_cpp_err=
5198  fi
5199else
5200  ac_cpp_err=yes
5201fi
5202if test -z "$ac_cpp_err"; then
5203  # Broken: success on invalid input.
5204continue
5205else
5206  echo "$as_me: failed program was:" >&5
5207sed 's/^/| /' conftest.$ac_ext >&5
5208
5209  # Passes both tests.
5210ac_preproc_ok=:
5211break
5212fi
5213
5214rm -f conftest.err conftest.$ac_ext
5215
5216done
5217# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5218rm -f conftest.err conftest.$ac_ext
5219if $ac_preproc_ok; then
5220  break
5221fi
5222
5223    done
5224    ac_cv_prog_CPP=$CPP
5225
5226fi
5227  CPP=$ac_cv_prog_CPP
5228else
5229  ac_cv_prog_CPP=$CPP
5230fi
5231{ echo "$as_me:$LINENO: result: $CPP" >&5
5232echo "${ECHO_T}$CPP" >&6; }
5233ac_preproc_ok=false
5234for ac_c_preproc_warn_flag in '' yes
5235do
5236  # Use a header file that comes with gcc, so configuring glibc
5237  # with a fresh cross-compiler works.
5238  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5239  # <limits.h> exists even on freestanding compilers.
5240  # On the NeXT, cc -E runs the code through the compiler's parser,
5241  # not just through cpp. "Syntax error" is here to catch this case.
5242  cat >conftest.$ac_ext <<_ACEOF
5243/* confdefs.h.  */
5244_ACEOF
5245cat confdefs.h >>conftest.$ac_ext
5246cat >>conftest.$ac_ext <<_ACEOF
5247/* end confdefs.h.  */
5248#ifdef __STDC__
5249# include <limits.h>
5250#else
5251# include <assert.h>
5252#endif
5253		     Syntax error
5254_ACEOF
5255if { (ac_try="$ac_cpp conftest.$ac_ext"
5256case "(($ac_try" in
5257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5258  *) ac_try_echo=$ac_try;;
5259esac
5260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5261  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5262  ac_status=$?
5263  grep -v '^ *+' conftest.er1 >conftest.err
5264  rm -f conftest.er1
5265  cat conftest.err >&5
5266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267  (exit $ac_status); } >/dev/null; then
5268  if test -s conftest.err; then
5269    ac_cpp_err=$ac_c_preproc_warn_flag
5270    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5271  else
5272    ac_cpp_err=
5273  fi
5274else
5275  ac_cpp_err=yes
5276fi
5277if test -z "$ac_cpp_err"; then
5278  :
5279else
5280  echo "$as_me: failed program was:" >&5
5281sed 's/^/| /' conftest.$ac_ext >&5
5282
5283  # Broken: fails on valid input.
5284continue
5285fi
5286
5287rm -f conftest.err conftest.$ac_ext
5288
5289  # OK, works on sane cases.  Now check whether nonexistent headers
5290  # can be detected and how.
5291  cat >conftest.$ac_ext <<_ACEOF
5292/* confdefs.h.  */
5293_ACEOF
5294cat confdefs.h >>conftest.$ac_ext
5295cat >>conftest.$ac_ext <<_ACEOF
5296/* end confdefs.h.  */
5297#include <ac_nonexistent.h>
5298_ACEOF
5299if { (ac_try="$ac_cpp conftest.$ac_ext"
5300case "(($ac_try" in
5301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302  *) ac_try_echo=$ac_try;;
5303esac
5304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5305  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5306  ac_status=$?
5307  grep -v '^ *+' conftest.er1 >conftest.err
5308  rm -f conftest.er1
5309  cat conftest.err >&5
5310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311  (exit $ac_status); } >/dev/null; then
5312  if test -s conftest.err; then
5313    ac_cpp_err=$ac_c_preproc_warn_flag
5314    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5315  else
5316    ac_cpp_err=
5317  fi
5318else
5319  ac_cpp_err=yes
5320fi
5321if test -z "$ac_cpp_err"; then
5322  # Broken: success on invalid input.
5323continue
5324else
5325  echo "$as_me: failed program was:" >&5
5326sed 's/^/| /' conftest.$ac_ext >&5
5327
5328  # Passes both tests.
5329ac_preproc_ok=:
5330break
5331fi
5332
5333rm -f conftest.err conftest.$ac_ext
5334
5335done
5336# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5337rm -f conftest.err conftest.$ac_ext
5338if $ac_preproc_ok; then
5339  :
5340else
5341  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5342See \`config.log' for more details." >&5
5343echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5344See \`config.log' for more details." >&2;}
5345   { (exit 1); exit 1; }; }
5346fi
5347
5348ac_ext=c
5349ac_cpp='$CPP $CPPFLAGS'
5350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5352ac_compiler_gnu=$ac_cv_c_compiler_gnu
5353
5354ac_ext=c
5355ac_cpp='$CPP $CPPFLAGS'
5356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5358ac_compiler_gnu=$ac_cv_c_compiler_gnu
5359if test -n "$ac_tool_prefix"; then
5360  for ac_prog in gcc
5361  do
5362    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5363set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5364{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5366if test "${ac_cv_prog_CC+set}" = set; then
5367  echo $ECHO_N "(cached) $ECHO_C" >&6
5368else
5369  if test -n "$CC"; then
5370  ac_cv_prog_CC="$CC" # Let the user override the test.
5371else
5372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373for as_dir in $PATH
5374do
5375  IFS=$as_save_IFS
5376  test -z "$as_dir" && as_dir=.
5377  for ac_exec_ext in '' $ac_executable_extensions; do
5378  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5379    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5380    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5381    break 2
5382  fi
5383done
5384done
5385IFS=$as_save_IFS
5386
5387fi
5388fi
5389CC=$ac_cv_prog_CC
5390if test -n "$CC"; then
5391  { echo "$as_me:$LINENO: result: $CC" >&5
5392echo "${ECHO_T}$CC" >&6; }
5393else
5394  { echo "$as_me:$LINENO: result: no" >&5
5395echo "${ECHO_T}no" >&6; }
5396fi
5397
5398
5399    test -n "$CC" && break
5400  done
5401fi
5402if test -z "$CC"; then
5403  ac_ct_CC=$CC
5404  for ac_prog in gcc
5405do
5406  # Extract the first word of "$ac_prog", so it can be a program name with args.
5407set dummy $ac_prog; ac_word=$2
5408{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5410if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5411  echo $ECHO_N "(cached) $ECHO_C" >&6
5412else
5413  if test -n "$ac_ct_CC"; then
5414  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5415else
5416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417for as_dir in $PATH
5418do
5419  IFS=$as_save_IFS
5420  test -z "$as_dir" && as_dir=.
5421  for ac_exec_ext in '' $ac_executable_extensions; do
5422  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5423    ac_cv_prog_ac_ct_CC="$ac_prog"
5424    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5425    break 2
5426  fi
5427done
5428done
5429IFS=$as_save_IFS
5430
5431fi
5432fi
5433ac_ct_CC=$ac_cv_prog_ac_ct_CC
5434if test -n "$ac_ct_CC"; then
5435  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5436echo "${ECHO_T}$ac_ct_CC" >&6; }
5437else
5438  { echo "$as_me:$LINENO: result: no" >&5
5439echo "${ECHO_T}no" >&6; }
5440fi
5441
5442
5443  test -n "$ac_ct_CC" && break
5444done
5445
5446  if test "x$ac_ct_CC" = x; then
5447    CC=""
5448  else
5449    case $cross_compiling:$ac_tool_warned in
5450yes:)
5451{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5452whose name does not start with the host triplet.  If you think this
5453configuration is useful to you, please write to autoconf@gnu.org." >&5
5454echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5455whose name does not start with the host triplet.  If you think this
5456configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5457ac_tool_warned=yes ;;
5458esac
5459    CC=$ac_ct_CC
5460  fi
5461fi
5462
5463
5464test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5465See \`config.log' for more details." >&5
5466echo "$as_me: error: no acceptable C compiler found in \$PATH
5467See \`config.log' for more details." >&2;}
5468   { (exit 1); exit 1; }; }
5469
5470# Provide some information about the compiler.
5471echo "$as_me:$LINENO: checking for C compiler version" >&5
5472ac_compiler=`set X $ac_compile; echo $2`
5473{ (ac_try="$ac_compiler --version >&5"
5474case "(($ac_try" in
5475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5476  *) ac_try_echo=$ac_try;;
5477esac
5478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5479  (eval "$ac_compiler --version >&5") 2>&5
5480  ac_status=$?
5481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482  (exit $ac_status); }
5483{ (ac_try="$ac_compiler -v >&5"
5484case "(($ac_try" in
5485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486  *) ac_try_echo=$ac_try;;
5487esac
5488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489  (eval "$ac_compiler -v >&5") 2>&5
5490  ac_status=$?
5491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492  (exit $ac_status); }
5493{ (ac_try="$ac_compiler -V >&5"
5494case "(($ac_try" in
5495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496  *) ac_try_echo=$ac_try;;
5497esac
5498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499  (eval "$ac_compiler -V >&5") 2>&5
5500  ac_status=$?
5501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502  (exit $ac_status); }
5503
5504{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5505echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5506if test "${ac_cv_c_compiler_gnu+set}" = set; then
5507  echo $ECHO_N "(cached) $ECHO_C" >&6
5508else
5509  cat >conftest.$ac_ext <<_ACEOF
5510/* confdefs.h.  */
5511_ACEOF
5512cat confdefs.h >>conftest.$ac_ext
5513cat >>conftest.$ac_ext <<_ACEOF
5514/* end confdefs.h.  */
5515
5516int
5517main ()
5518{
5519#ifndef __GNUC__
5520       choke me
5521#endif
5522
5523  ;
5524  return 0;
5525}
5526_ACEOF
5527rm -f conftest.$ac_objext
5528if { (ac_try="$ac_compile"
5529case "(($ac_try" in
5530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531  *) ac_try_echo=$ac_try;;
5532esac
5533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5534  (eval "$ac_compile") 2>conftest.er1
5535  ac_status=$?
5536  grep -v '^ *+' conftest.er1 >conftest.err
5537  rm -f conftest.er1
5538  cat conftest.err >&5
5539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540  (exit $ac_status); } &&
5541	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5542  { (case "(($ac_try" in
5543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5544  *) ac_try_echo=$ac_try;;
5545esac
5546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5547  (eval "$ac_try") 2>&5
5548  ac_status=$?
5549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550  (exit $ac_status); }; } &&
5551	 { ac_try='test -s conftest.$ac_objext'
5552  { (case "(($ac_try" in
5553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554  *) ac_try_echo=$ac_try;;
5555esac
5556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5557  (eval "$ac_try") 2>&5
5558  ac_status=$?
5559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560  (exit $ac_status); }; }; then
5561  ac_compiler_gnu=yes
5562else
5563  echo "$as_me: failed program was:" >&5
5564sed 's/^/| /' conftest.$ac_ext >&5
5565
5566	ac_compiler_gnu=no
5567fi
5568
5569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570ac_cv_c_compiler_gnu=$ac_compiler_gnu
5571
5572fi
5573{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5574echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5575GCC=`test $ac_compiler_gnu = yes && echo yes`
5576ac_test_CFLAGS=${CFLAGS+set}
5577ac_save_CFLAGS=$CFLAGS
5578{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5579echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5580if test "${ac_cv_prog_cc_g+set}" = set; then
5581  echo $ECHO_N "(cached) $ECHO_C" >&6
5582else
5583  ac_save_c_werror_flag=$ac_c_werror_flag
5584   ac_c_werror_flag=yes
5585   ac_cv_prog_cc_g=no
5586   CFLAGS="-g"
5587   cat >conftest.$ac_ext <<_ACEOF
5588/* confdefs.h.  */
5589_ACEOF
5590cat confdefs.h >>conftest.$ac_ext
5591cat >>conftest.$ac_ext <<_ACEOF
5592/* end confdefs.h.  */
5593
5594int
5595main ()
5596{
5597
5598  ;
5599  return 0;
5600}
5601_ACEOF
5602rm -f conftest.$ac_objext
5603if { (ac_try="$ac_compile"
5604case "(($ac_try" in
5605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606  *) ac_try_echo=$ac_try;;
5607esac
5608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5609  (eval "$ac_compile") 2>conftest.er1
5610  ac_status=$?
5611  grep -v '^ *+' conftest.er1 >conftest.err
5612  rm -f conftest.er1
5613  cat conftest.err >&5
5614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615  (exit $ac_status); } &&
5616	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5617  { (case "(($ac_try" in
5618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619  *) ac_try_echo=$ac_try;;
5620esac
5621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5622  (eval "$ac_try") 2>&5
5623  ac_status=$?
5624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625  (exit $ac_status); }; } &&
5626	 { ac_try='test -s conftest.$ac_objext'
5627  { (case "(($ac_try" in
5628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629  *) ac_try_echo=$ac_try;;
5630esac
5631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5632  (eval "$ac_try") 2>&5
5633  ac_status=$?
5634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635  (exit $ac_status); }; }; then
5636  ac_cv_prog_cc_g=yes
5637else
5638  echo "$as_me: failed program was:" >&5
5639sed 's/^/| /' conftest.$ac_ext >&5
5640
5641	CFLAGS=""
5642      cat >conftest.$ac_ext <<_ACEOF
5643/* confdefs.h.  */
5644_ACEOF
5645cat confdefs.h >>conftest.$ac_ext
5646cat >>conftest.$ac_ext <<_ACEOF
5647/* end confdefs.h.  */
5648
5649int
5650main ()
5651{
5652
5653  ;
5654  return 0;
5655}
5656_ACEOF
5657rm -f conftest.$ac_objext
5658if { (ac_try="$ac_compile"
5659case "(($ac_try" in
5660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661  *) ac_try_echo=$ac_try;;
5662esac
5663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5664  (eval "$ac_compile") 2>conftest.er1
5665  ac_status=$?
5666  grep -v '^ *+' conftest.er1 >conftest.err
5667  rm -f conftest.er1
5668  cat conftest.err >&5
5669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670  (exit $ac_status); } &&
5671	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5672  { (case "(($ac_try" in
5673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674  *) ac_try_echo=$ac_try;;
5675esac
5676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5677  (eval "$ac_try") 2>&5
5678  ac_status=$?
5679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680  (exit $ac_status); }; } &&
5681	 { ac_try='test -s conftest.$ac_objext'
5682  { (case "(($ac_try" in
5683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684  *) ac_try_echo=$ac_try;;
5685esac
5686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5687  (eval "$ac_try") 2>&5
5688  ac_status=$?
5689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690  (exit $ac_status); }; }; then
5691  :
5692else
5693  echo "$as_me: failed program was:" >&5
5694sed 's/^/| /' conftest.$ac_ext >&5
5695
5696	ac_c_werror_flag=$ac_save_c_werror_flag
5697	 CFLAGS="-g"
5698	 cat >conftest.$ac_ext <<_ACEOF
5699/* confdefs.h.  */
5700_ACEOF
5701cat confdefs.h >>conftest.$ac_ext
5702cat >>conftest.$ac_ext <<_ACEOF
5703/* end confdefs.h.  */
5704
5705int
5706main ()
5707{
5708
5709  ;
5710  return 0;
5711}
5712_ACEOF
5713rm -f conftest.$ac_objext
5714if { (ac_try="$ac_compile"
5715case "(($ac_try" in
5716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717  *) ac_try_echo=$ac_try;;
5718esac
5719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720  (eval "$ac_compile") 2>conftest.er1
5721  ac_status=$?
5722  grep -v '^ *+' conftest.er1 >conftest.err
5723  rm -f conftest.er1
5724  cat conftest.err >&5
5725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726  (exit $ac_status); } &&
5727	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5728  { (case "(($ac_try" in
5729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730  *) ac_try_echo=$ac_try;;
5731esac
5732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5733  (eval "$ac_try") 2>&5
5734  ac_status=$?
5735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736  (exit $ac_status); }; } &&
5737	 { ac_try='test -s conftest.$ac_objext'
5738  { (case "(($ac_try" in
5739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740  *) ac_try_echo=$ac_try;;
5741esac
5742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5743  (eval "$ac_try") 2>&5
5744  ac_status=$?
5745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746  (exit $ac_status); }; }; then
5747  ac_cv_prog_cc_g=yes
5748else
5749  echo "$as_me: failed program was:" >&5
5750sed 's/^/| /' conftest.$ac_ext >&5
5751
5752
5753fi
5754
5755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5756fi
5757
5758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5759fi
5760
5761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762   ac_c_werror_flag=$ac_save_c_werror_flag
5763fi
5764{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5765echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5766if test "$ac_test_CFLAGS" = set; then
5767  CFLAGS=$ac_save_CFLAGS
5768elif test $ac_cv_prog_cc_g = yes; then
5769  if test "$GCC" = yes; then
5770    CFLAGS="-g -O2"
5771  else
5772    CFLAGS="-g"
5773  fi
5774else
5775  if test "$GCC" = yes; then
5776    CFLAGS="-O2"
5777  else
5778    CFLAGS=
5779  fi
5780fi
5781{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5782echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5783if test "${ac_cv_prog_cc_c89+set}" = set; then
5784  echo $ECHO_N "(cached) $ECHO_C" >&6
5785else
5786  ac_cv_prog_cc_c89=no
5787ac_save_CC=$CC
5788cat >conftest.$ac_ext <<_ACEOF
5789/* confdefs.h.  */
5790_ACEOF
5791cat confdefs.h >>conftest.$ac_ext
5792cat >>conftest.$ac_ext <<_ACEOF
5793/* end confdefs.h.  */
5794#include <stdarg.h>
5795#include <stdio.h>
5796#include <sys/types.h>
5797#include <sys/stat.h>
5798/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5799struct buf { int x; };
5800FILE * (*rcsopen) (struct buf *, struct stat *, int);
5801static char *e (p, i)
5802     char **p;
5803     int i;
5804{
5805  return p[i];
5806}
5807static char *f (char * (*g) (char **, int), char **p, ...)
5808{
5809  char *s;
5810  va_list v;
5811  va_start (v,p);
5812  s = g (p, va_arg (v,int));
5813  va_end (v);
5814  return s;
5815}
5816
5817/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5818   function prototypes and stuff, but not '\xHH' hex character constants.
5819   These don't provoke an error unfortunately, instead are silently treated
5820   as 'x'.  The following induces an error, until -std is added to get
5821   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5822   array size at least.  It's necessary to write '\x00'==0 to get something
5823   that's true only with -std.  */
5824int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5825
5826/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5827   inside strings and character constants.  */
5828#define FOO(x) 'x'
5829int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5830
5831int test (int i, double x);
5832struct s1 {int (*f) (int a);};
5833struct s2 {int (*f) (double a);};
5834int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5835int argc;
5836char **argv;
5837int
5838main ()
5839{
5840return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5841  ;
5842  return 0;
5843}
5844_ACEOF
5845for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5846	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5847do
5848  CC="$ac_save_CC $ac_arg"
5849  rm -f conftest.$ac_objext
5850if { (ac_try="$ac_compile"
5851case "(($ac_try" in
5852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853  *) ac_try_echo=$ac_try;;
5854esac
5855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856  (eval "$ac_compile") 2>conftest.er1
5857  ac_status=$?
5858  grep -v '^ *+' conftest.er1 >conftest.err
5859  rm -f conftest.er1
5860  cat conftest.err >&5
5861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862  (exit $ac_status); } &&
5863	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5864  { (case "(($ac_try" in
5865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866  *) ac_try_echo=$ac_try;;
5867esac
5868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869  (eval "$ac_try") 2>&5
5870  ac_status=$?
5871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872  (exit $ac_status); }; } &&
5873	 { ac_try='test -s conftest.$ac_objext'
5874  { (case "(($ac_try" in
5875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876  *) ac_try_echo=$ac_try;;
5877esac
5878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879  (eval "$ac_try") 2>&5
5880  ac_status=$?
5881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882  (exit $ac_status); }; }; then
5883  ac_cv_prog_cc_c89=$ac_arg
5884else
5885  echo "$as_me: failed program was:" >&5
5886sed 's/^/| /' conftest.$ac_ext >&5
5887
5888
5889fi
5890
5891rm -f core conftest.err conftest.$ac_objext
5892  test "x$ac_cv_prog_cc_c89" != "xno" && break
5893done
5894rm -f conftest.$ac_ext
5895CC=$ac_save_CC
5896
5897fi
5898# AC_CACHE_VAL
5899case "x$ac_cv_prog_cc_c89" in
5900  x)
5901    { echo "$as_me:$LINENO: result: none needed" >&5
5902echo "${ECHO_T}none needed" >&6; } ;;
5903  xno)
5904    { echo "$as_me:$LINENO: result: unsupported" >&5
5905echo "${ECHO_T}unsupported" >&6; } ;;
5906  *)
5907    CC="$CC $ac_cv_prog_cc_c89"
5908    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5909echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5910esac
5911
5912
5913ac_ext=c
5914ac_cpp='$CPP $CPPFLAGS'
5915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5917ac_compiler_gnu=$ac_cv_c_compiler_gnu
5918
5919ac_ext=cpp
5920ac_cpp='$CXXCPP $CPPFLAGS'
5921ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5922ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5923ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5924if test -z "$CXX"; then
5925  if test -n "$CCC"; then
5926    CXX=$CCC
5927  else
5928    if test -n "$ac_tool_prefix"; then
5929  for ac_prog in g++
5930  do
5931    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5932set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5933{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5935if test "${ac_cv_prog_CXX+set}" = set; then
5936  echo $ECHO_N "(cached) $ECHO_C" >&6
5937else
5938  if test -n "$CXX"; then
5939  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5940else
5941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942for as_dir in $PATH
5943do
5944  IFS=$as_save_IFS
5945  test -z "$as_dir" && as_dir=.
5946  for ac_exec_ext in '' $ac_executable_extensions; do
5947  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5948    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5949    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5950    break 2
5951  fi
5952done
5953done
5954IFS=$as_save_IFS
5955
5956fi
5957fi
5958CXX=$ac_cv_prog_CXX
5959if test -n "$CXX"; then
5960  { echo "$as_me:$LINENO: result: $CXX" >&5
5961echo "${ECHO_T}$CXX" >&6; }
5962else
5963  { echo "$as_me:$LINENO: result: no" >&5
5964echo "${ECHO_T}no" >&6; }
5965fi
5966
5967
5968    test -n "$CXX" && break
5969  done
5970fi
5971if test -z "$CXX"; then
5972  ac_ct_CXX=$CXX
5973  for ac_prog in g++
5974do
5975  # Extract the first word of "$ac_prog", so it can be a program name with args.
5976set dummy $ac_prog; ac_word=$2
5977{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5979if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5980  echo $ECHO_N "(cached) $ECHO_C" >&6
5981else
5982  if test -n "$ac_ct_CXX"; then
5983  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5984else
5985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986for as_dir in $PATH
5987do
5988  IFS=$as_save_IFS
5989  test -z "$as_dir" && as_dir=.
5990  for ac_exec_ext in '' $ac_executable_extensions; do
5991  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5992    ac_cv_prog_ac_ct_CXX="$ac_prog"
5993    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5994    break 2
5995  fi
5996done
5997done
5998IFS=$as_save_IFS
5999
6000fi
6001fi
6002ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6003if test -n "$ac_ct_CXX"; then
6004  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6005echo "${ECHO_T}$ac_ct_CXX" >&6; }
6006else
6007  { echo "$as_me:$LINENO: result: no" >&5
6008echo "${ECHO_T}no" >&6; }
6009fi
6010
6011
6012  test -n "$ac_ct_CXX" && break
6013done
6014
6015  if test "x$ac_ct_CXX" = x; then
6016    CXX="g++"
6017  else
6018    case $cross_compiling:$ac_tool_warned in
6019yes:)
6020{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6021whose name does not start with the host triplet.  If you think this
6022configuration is useful to you, please write to autoconf@gnu.org." >&5
6023echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6024whose name does not start with the host triplet.  If you think this
6025configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6026ac_tool_warned=yes ;;
6027esac
6028    CXX=$ac_ct_CXX
6029  fi
6030fi
6031
6032  fi
6033fi
6034# Provide some information about the compiler.
6035echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6036ac_compiler=`set X $ac_compile; echo $2`
6037{ (ac_try="$ac_compiler --version >&5"
6038case "(($ac_try" in
6039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6040  *) ac_try_echo=$ac_try;;
6041esac
6042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6043  (eval "$ac_compiler --version >&5") 2>&5
6044  ac_status=$?
6045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046  (exit $ac_status); }
6047{ (ac_try="$ac_compiler -v >&5"
6048case "(($ac_try" in
6049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6050  *) ac_try_echo=$ac_try;;
6051esac
6052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6053  (eval "$ac_compiler -v >&5") 2>&5
6054  ac_status=$?
6055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056  (exit $ac_status); }
6057{ (ac_try="$ac_compiler -V >&5"
6058case "(($ac_try" in
6059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060  *) ac_try_echo=$ac_try;;
6061esac
6062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063  (eval "$ac_compiler -V >&5") 2>&5
6064  ac_status=$?
6065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066  (exit $ac_status); }
6067
6068{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6069echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6070if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6071  echo $ECHO_N "(cached) $ECHO_C" >&6
6072else
6073  cat >conftest.$ac_ext <<_ACEOF
6074/* confdefs.h.  */
6075_ACEOF
6076cat confdefs.h >>conftest.$ac_ext
6077cat >>conftest.$ac_ext <<_ACEOF
6078/* end confdefs.h.  */
6079
6080int
6081main ()
6082{
6083#ifndef __GNUC__
6084       choke me
6085#endif
6086
6087  ;
6088  return 0;
6089}
6090_ACEOF
6091rm -f conftest.$ac_objext
6092if { (ac_try="$ac_compile"
6093case "(($ac_try" in
6094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095  *) ac_try_echo=$ac_try;;
6096esac
6097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098  (eval "$ac_compile") 2>conftest.er1
6099  ac_status=$?
6100  grep -v '^ *+' conftest.er1 >conftest.err
6101  rm -f conftest.er1
6102  cat conftest.err >&5
6103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104  (exit $ac_status); } &&
6105	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6106  { (case "(($ac_try" in
6107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6108  *) ac_try_echo=$ac_try;;
6109esac
6110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6111  (eval "$ac_try") 2>&5
6112  ac_status=$?
6113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114  (exit $ac_status); }; } &&
6115	 { ac_try='test -s conftest.$ac_objext'
6116  { (case "(($ac_try" in
6117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118  *) ac_try_echo=$ac_try;;
6119esac
6120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121  (eval "$ac_try") 2>&5
6122  ac_status=$?
6123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124  (exit $ac_status); }; }; then
6125  ac_compiler_gnu=yes
6126else
6127  echo "$as_me: failed program was:" >&5
6128sed 's/^/| /' conftest.$ac_ext >&5
6129
6130	ac_compiler_gnu=no
6131fi
6132
6133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6134ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6135
6136fi
6137{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6138echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6139GXX=`test $ac_compiler_gnu = yes && echo yes`
6140ac_test_CXXFLAGS=${CXXFLAGS+set}
6141ac_save_CXXFLAGS=$CXXFLAGS
6142{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6143echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6144if test "${ac_cv_prog_cxx_g+set}" = set; then
6145  echo $ECHO_N "(cached) $ECHO_C" >&6
6146else
6147  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6148   ac_cxx_werror_flag=yes
6149   ac_cv_prog_cxx_g=no
6150   CXXFLAGS="-g"
6151   cat >conftest.$ac_ext <<_ACEOF
6152/* confdefs.h.  */
6153_ACEOF
6154cat confdefs.h >>conftest.$ac_ext
6155cat >>conftest.$ac_ext <<_ACEOF
6156/* end confdefs.h.  */
6157
6158int
6159main ()
6160{
6161
6162  ;
6163  return 0;
6164}
6165_ACEOF
6166rm -f conftest.$ac_objext
6167if { (ac_try="$ac_compile"
6168case "(($ac_try" in
6169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170  *) ac_try_echo=$ac_try;;
6171esac
6172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6173  (eval "$ac_compile") 2>conftest.er1
6174  ac_status=$?
6175  grep -v '^ *+' conftest.er1 >conftest.err
6176  rm -f conftest.er1
6177  cat conftest.err >&5
6178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179  (exit $ac_status); } &&
6180	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6181  { (case "(($ac_try" in
6182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6183  *) ac_try_echo=$ac_try;;
6184esac
6185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6186  (eval "$ac_try") 2>&5
6187  ac_status=$?
6188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189  (exit $ac_status); }; } &&
6190	 { ac_try='test -s conftest.$ac_objext'
6191  { (case "(($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_try") 2>&5
6197  ac_status=$?
6198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199  (exit $ac_status); }; }; then
6200  ac_cv_prog_cxx_g=yes
6201else
6202  echo "$as_me: failed program was:" >&5
6203sed 's/^/| /' conftest.$ac_ext >&5
6204
6205	CXXFLAGS=""
6206      cat >conftest.$ac_ext <<_ACEOF
6207/* confdefs.h.  */
6208_ACEOF
6209cat confdefs.h >>conftest.$ac_ext
6210cat >>conftest.$ac_ext <<_ACEOF
6211/* end confdefs.h.  */
6212
6213int
6214main ()
6215{
6216
6217  ;
6218  return 0;
6219}
6220_ACEOF
6221rm -f conftest.$ac_objext
6222if { (ac_try="$ac_compile"
6223case "(($ac_try" in
6224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6225  *) ac_try_echo=$ac_try;;
6226esac
6227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6228  (eval "$ac_compile") 2>conftest.er1
6229  ac_status=$?
6230  grep -v '^ *+' conftest.er1 >conftest.err
6231  rm -f conftest.er1
6232  cat conftest.err >&5
6233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234  (exit $ac_status); } &&
6235	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6236  { (case "(($ac_try" in
6237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238  *) ac_try_echo=$ac_try;;
6239esac
6240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241  (eval "$ac_try") 2>&5
6242  ac_status=$?
6243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244  (exit $ac_status); }; } &&
6245	 { ac_try='test -s conftest.$ac_objext'
6246  { (case "(($ac_try" in
6247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248  *) ac_try_echo=$ac_try;;
6249esac
6250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251  (eval "$ac_try") 2>&5
6252  ac_status=$?
6253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254  (exit $ac_status); }; }; then
6255  :
6256else
6257  echo "$as_me: failed program was:" >&5
6258sed 's/^/| /' conftest.$ac_ext >&5
6259
6260	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6261	 CXXFLAGS="-g"
6262	 cat >conftest.$ac_ext <<_ACEOF
6263/* confdefs.h.  */
6264_ACEOF
6265cat confdefs.h >>conftest.$ac_ext
6266cat >>conftest.$ac_ext <<_ACEOF
6267/* end confdefs.h.  */
6268
6269int
6270main ()
6271{
6272
6273  ;
6274  return 0;
6275}
6276_ACEOF
6277rm -f conftest.$ac_objext
6278if { (ac_try="$ac_compile"
6279case "(($ac_try" in
6280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281  *) ac_try_echo=$ac_try;;
6282esac
6283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284  (eval "$ac_compile") 2>conftest.er1
6285  ac_status=$?
6286  grep -v '^ *+' conftest.er1 >conftest.err
6287  rm -f conftest.er1
6288  cat conftest.err >&5
6289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290  (exit $ac_status); } &&
6291	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6292  { (case "(($ac_try" in
6293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6294  *) ac_try_echo=$ac_try;;
6295esac
6296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6297  (eval "$ac_try") 2>&5
6298  ac_status=$?
6299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300  (exit $ac_status); }; } &&
6301	 { ac_try='test -s conftest.$ac_objext'
6302  { (case "(($ac_try" in
6303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6304  *) ac_try_echo=$ac_try;;
6305esac
6306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6307  (eval "$ac_try") 2>&5
6308  ac_status=$?
6309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310  (exit $ac_status); }; }; then
6311  ac_cv_prog_cxx_g=yes
6312else
6313  echo "$as_me: failed program was:" >&5
6314sed 's/^/| /' conftest.$ac_ext >&5
6315
6316
6317fi
6318
6319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6320fi
6321
6322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6323fi
6324
6325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6327fi
6328{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6329echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6330if test "$ac_test_CXXFLAGS" = set; then
6331  CXXFLAGS=$ac_save_CXXFLAGS
6332elif test $ac_cv_prog_cxx_g = yes; then
6333  if test "$GXX" = yes; then
6334    CXXFLAGS="-g -O2"
6335  else
6336    CXXFLAGS="-g"
6337  fi
6338else
6339  if test "$GXX" = yes; then
6340    CXXFLAGS="-O2"
6341  else
6342    CXXFLAGS=
6343  fi
6344fi
6345ac_ext=c
6346ac_cpp='$CPP $CPPFLAGS'
6347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6349ac_compiler_gnu=$ac_cv_c_compiler_gnu
6350
6351{ echo "$as_me:$LINENO: checking " >&5
6352echo $ECHO_N "checking ... $ECHO_C" >&6; }
6353if test "${ac_cv_has_flex+set}" = set; then
6354  echo $ECHO_N "(cached) $ECHO_C" >&6
6355else
6356  for ac_prog in flex lex
6357do
6358  # Extract the first word of "$ac_prog", so it can be a program name with args.
6359set dummy $ac_prog; ac_word=$2
6360{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6362if test "${ac_cv_prog_LEX+set}" = set; then
6363  echo $ECHO_N "(cached) $ECHO_C" >&6
6364else
6365  if test -n "$LEX"; then
6366  ac_cv_prog_LEX="$LEX" # Let the user override the test.
6367else
6368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369for as_dir in $PATH
6370do
6371  IFS=$as_save_IFS
6372  test -z "$as_dir" && as_dir=.
6373  for ac_exec_ext in '' $ac_executable_extensions; do
6374  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6375    ac_cv_prog_LEX="$ac_prog"
6376    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6377    break 2
6378  fi
6379done
6380done
6381IFS=$as_save_IFS
6382
6383fi
6384fi
6385LEX=$ac_cv_prog_LEX
6386if test -n "$LEX"; then
6387  { echo "$as_me:$LINENO: result: $LEX" >&5
6388echo "${ECHO_T}$LEX" >&6; }
6389else
6390  { echo "$as_me:$LINENO: result: no" >&5
6391echo "${ECHO_T}no" >&6; }
6392fi
6393
6394
6395  test -n "$LEX" && break
6396done
6397test -n "$LEX" || LEX=":"
6398
6399if test -z "$LEXLIB"
6400then
6401  { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6402echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6403if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6404  echo $ECHO_N "(cached) $ECHO_C" >&6
6405else
6406  ac_check_lib_save_LIBS=$LIBS
6407LIBS="-lfl  $LIBS"
6408cat >conftest.$ac_ext <<_ACEOF
6409/* confdefs.h.  */
6410_ACEOF
6411cat confdefs.h >>conftest.$ac_ext
6412cat >>conftest.$ac_ext <<_ACEOF
6413/* end confdefs.h.  */
6414
6415/* Override any GCC internal prototype to avoid an error.
6416   Use char because int might match the return type of a GCC
6417   builtin and then its argument prototype would still apply.  */
6418#ifdef __cplusplus
6419extern "C"
6420#endif
6421char yywrap ();
6422int
6423main ()
6424{
6425return yywrap ();
6426  ;
6427  return 0;
6428}
6429_ACEOF
6430rm -f conftest.$ac_objext conftest$ac_exeext
6431if { (ac_try="$ac_link"
6432case "(($ac_try" in
6433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6434  *) ac_try_echo=$ac_try;;
6435esac
6436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6437  (eval "$ac_link") 2>conftest.er1
6438  ac_status=$?
6439  grep -v '^ *+' conftest.er1 >conftest.err
6440  rm -f conftest.er1
6441  cat conftest.err >&5
6442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443  (exit $ac_status); } &&
6444	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6445  { (case "(($ac_try" in
6446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6447  *) ac_try_echo=$ac_try;;
6448esac
6449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6450  (eval "$ac_try") 2>&5
6451  ac_status=$?
6452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453  (exit $ac_status); }; } &&
6454	 { ac_try='test -s conftest$ac_exeext'
6455  { (case "(($ac_try" in
6456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457  *) ac_try_echo=$ac_try;;
6458esac
6459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460  (eval "$ac_try") 2>&5
6461  ac_status=$?
6462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463  (exit $ac_status); }; }; then
6464  ac_cv_lib_fl_yywrap=yes
6465else
6466  echo "$as_me: failed program was:" >&5
6467sed 's/^/| /' conftest.$ac_ext >&5
6468
6469	ac_cv_lib_fl_yywrap=no
6470fi
6471
6472rm -f core conftest.err conftest.$ac_objext \
6473      conftest$ac_exeext conftest.$ac_ext
6474LIBS=$ac_check_lib_save_LIBS
6475fi
6476{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6477echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6478if test $ac_cv_lib_fl_yywrap = yes; then
6479  LEXLIB="-lfl"
6480else
6481  { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6482echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6483if test "${ac_cv_lib_l_yywrap+set}" = set; then
6484  echo $ECHO_N "(cached) $ECHO_C" >&6
6485else
6486  ac_check_lib_save_LIBS=$LIBS
6487LIBS="-ll  $LIBS"
6488cat >conftest.$ac_ext <<_ACEOF
6489/* confdefs.h.  */
6490_ACEOF
6491cat confdefs.h >>conftest.$ac_ext
6492cat >>conftest.$ac_ext <<_ACEOF
6493/* end confdefs.h.  */
6494
6495/* Override any GCC internal prototype to avoid an error.
6496   Use char because int might match the return type of a GCC
6497   builtin and then its argument prototype would still apply.  */
6498#ifdef __cplusplus
6499extern "C"
6500#endif
6501char yywrap ();
6502int
6503main ()
6504{
6505return yywrap ();
6506  ;
6507  return 0;
6508}
6509_ACEOF
6510rm -f conftest.$ac_objext conftest$ac_exeext
6511if { (ac_try="$ac_link"
6512case "(($ac_try" in
6513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6514  *) ac_try_echo=$ac_try;;
6515esac
6516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6517  (eval "$ac_link") 2>conftest.er1
6518  ac_status=$?
6519  grep -v '^ *+' conftest.er1 >conftest.err
6520  rm -f conftest.er1
6521  cat conftest.err >&5
6522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523  (exit $ac_status); } &&
6524	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6525  { (case "(($ac_try" in
6526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6527  *) ac_try_echo=$ac_try;;
6528esac
6529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6530  (eval "$ac_try") 2>&5
6531  ac_status=$?
6532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533  (exit $ac_status); }; } &&
6534	 { ac_try='test -s conftest$ac_exeext'
6535  { (case "(($ac_try" in
6536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537  *) ac_try_echo=$ac_try;;
6538esac
6539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540  (eval "$ac_try") 2>&5
6541  ac_status=$?
6542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543  (exit $ac_status); }; }; then
6544  ac_cv_lib_l_yywrap=yes
6545else
6546  echo "$as_me: failed program was:" >&5
6547sed 's/^/| /' conftest.$ac_ext >&5
6548
6549	ac_cv_lib_l_yywrap=no
6550fi
6551
6552rm -f core conftest.err conftest.$ac_objext \
6553      conftest$ac_exeext conftest.$ac_ext
6554LIBS=$ac_check_lib_save_LIBS
6555fi
6556{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6557echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6558if test $ac_cv_lib_l_yywrap = yes; then
6559  LEXLIB="-ll"
6560fi
6561
6562fi
6563
6564fi
6565
6566if test "x$LEX" != "x:"; then
6567  { echo "$as_me:$LINENO: checking lex output file root" >&5
6568echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6569if test "${ac_cv_prog_lex_root+set}" = set; then
6570  echo $ECHO_N "(cached) $ECHO_C" >&6
6571else
6572  # The minimal lex program is just a single line: %%.  But some broken lexes
6573# (Solaris, I think it was) want two %% lines, so accommodate them.
6574cat >conftest.l <<_ACEOF
6575%%
6576%%
6577_ACEOF
6578{ (ac_try="$LEX conftest.l"
6579case "(($ac_try" in
6580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581  *) ac_try_echo=$ac_try;;
6582esac
6583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6584  (eval "$LEX conftest.l") 2>&5
6585  ac_status=$?
6586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587  (exit $ac_status); }
6588if test -f lex.yy.c; then
6589  ac_cv_prog_lex_root=lex.yy
6590elif test -f lexyy.c; then
6591  ac_cv_prog_lex_root=lexyy
6592else
6593  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6594echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6595   { (exit 1); exit 1; }; }
6596fi
6597fi
6598{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6599echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6600rm -f conftest.l
6601LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6602
6603{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6604echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6605if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6606  echo $ECHO_N "(cached) $ECHO_C" >&6
6607else
6608  # POSIX says lex can declare yytext either as a pointer or an array; the
6609# default is implementation-dependent. Figure out which it is, since
6610# not all implementations provide the %pointer and %array declarations.
6611ac_cv_prog_lex_yytext_pointer=no
6612echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6613ac_save_LIBS=$LIBS
6614LIBS="$LIBS $LEXLIB"
6615cat >conftest.$ac_ext <<_ACEOF
6616`cat $LEX_OUTPUT_ROOT.c`
6617_ACEOF
6618rm -f conftest.$ac_objext conftest$ac_exeext
6619if { (ac_try="$ac_link"
6620case "(($ac_try" in
6621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6622  *) ac_try_echo=$ac_try;;
6623esac
6624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6625  (eval "$ac_link") 2>conftest.er1
6626  ac_status=$?
6627  grep -v '^ *+' conftest.er1 >conftest.err
6628  rm -f conftest.er1
6629  cat conftest.err >&5
6630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631  (exit $ac_status); } &&
6632	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6633  { (case "(($ac_try" in
6634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6635  *) ac_try_echo=$ac_try;;
6636esac
6637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6638  (eval "$ac_try") 2>&5
6639  ac_status=$?
6640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641  (exit $ac_status); }; } &&
6642	 { ac_try='test -s conftest$ac_exeext'
6643  { (case "(($ac_try" in
6644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6645  *) ac_try_echo=$ac_try;;
6646esac
6647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6648  (eval "$ac_try") 2>&5
6649  ac_status=$?
6650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651  (exit $ac_status); }; }; then
6652  ac_cv_prog_lex_yytext_pointer=yes
6653else
6654  echo "$as_me: failed program was:" >&5
6655sed 's/^/| /' conftest.$ac_ext >&5
6656
6657
6658fi
6659
6660rm -f core conftest.err conftest.$ac_objext \
6661      conftest$ac_exeext conftest.$ac_ext
6662LIBS=$ac_save_LIBS
6663rm -f "${LEX_OUTPUT_ROOT}.c"
6664
6665fi
6666{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6667echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6668if test $ac_cv_prog_lex_yytext_pointer = yes; then
6669
6670cat >>confdefs.h <<\_ACEOF
6671#define YYTEXT_POINTER 1
6672_ACEOF
6673
6674fi
6675
6676fi
6677
6678fi
6679{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6680echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6681if test "$LEX" != "flex"; then
6682  { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6683echo "$as_me: error: flex not found but required" >&2;}
6684   { (exit 1); exit 1; }; }
6685else
6686  FLEX=flex
6687
6688fi
6689
6690{ echo "$as_me:$LINENO: checking " >&5
6691echo $ECHO_N "checking ... $ECHO_C" >&6; }
6692if test "${llvm_cv_has_bison+set}" = set; then
6693  echo $ECHO_N "(cached) $ECHO_C" >&6
6694else
6695  for ac_prog in 'bison -y' byacc
6696do
6697  # Extract the first word of "$ac_prog", so it can be a program name with args.
6698set dummy $ac_prog; ac_word=$2
6699{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6701if test "${ac_cv_prog_YACC+set}" = set; then
6702  echo $ECHO_N "(cached) $ECHO_C" >&6
6703else
6704  if test -n "$YACC"; then
6705  ac_cv_prog_YACC="$YACC" # Let the user override the test.
6706else
6707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708for as_dir in $PATH
6709do
6710  IFS=$as_save_IFS
6711  test -z "$as_dir" && as_dir=.
6712  for ac_exec_ext in '' $ac_executable_extensions; do
6713  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6714    ac_cv_prog_YACC="$ac_prog"
6715    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716    break 2
6717  fi
6718done
6719done
6720IFS=$as_save_IFS
6721
6722fi
6723fi
6724YACC=$ac_cv_prog_YACC
6725if test -n "$YACC"; then
6726  { echo "$as_me:$LINENO: result: $YACC" >&5
6727echo "${ECHO_T}$YACC" >&6; }
6728else
6729  { echo "$as_me:$LINENO: result: no" >&5
6730echo "${ECHO_T}no" >&6; }
6731fi
6732
6733
6734  test -n "$YACC" && break
6735done
6736test -n "$YACC" || YACC="yacc"
6737
6738fi
6739{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6740echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6741if test "$YACC" != "bison -y"; then
6742
6743  { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6744echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6745else
6746  BISON=bison
6747
6748fi
6749
6750{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6751echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6752if test "${lt_cv_path_NM+set}" = set; then
6753  echo $ECHO_N "(cached) $ECHO_C" >&6
6754else
6755  if test -n "$NM"; then
6756  # Let the user override the test.
6757  lt_cv_path_NM="$NM"
6758else
6759  lt_nm_to_check="${ac_tool_prefix}nm"
6760  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6761    lt_nm_to_check="$lt_nm_to_check nm"
6762  fi
6763  for lt_tmp_nm in $lt_nm_to_check; do
6764    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6765    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6766      IFS="$lt_save_ifs"
6767      test -z "$ac_dir" && ac_dir=.
6768      tmp_nm="$ac_dir/$lt_tmp_nm"
6769      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6770	# Check to see if the nm accepts a BSD-compat flag.
6771	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6772	#   nm: unknown option "B" ignored
6773	# Tru64's nm complains that /dev/null is an invalid object file
6774	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6775	*/dev/null* | *'Invalid file or object type'*)
6776	  lt_cv_path_NM="$tmp_nm -B"
6777	  break
6778	  ;;
6779	*)
6780	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6781	  */dev/null*)
6782	    lt_cv_path_NM="$tmp_nm -p"
6783	    break
6784	    ;;
6785	  *)
6786	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6787	    continue # so that we can try to find one that supports BSD flags
6788	    ;;
6789	  esac
6790	  ;;
6791	esac
6792      fi
6793    done
6794    IFS="$lt_save_ifs"
6795  done
6796  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6797fi
6798fi
6799{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6800echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6801NM="$lt_cv_path_NM"
6802
6803
6804
6805{ echo "$as_me:$LINENO: checking for GNU make" >&5
6806echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6807if test "${llvm_cv_gnu_make_command+set}" = set; then
6808  echo $ECHO_N "(cached) $ECHO_C" >&6
6809else
6810  llvm_cv_gnu_make_command=''
6811 for a in "$MAKE" make gmake gnumake ; do
6812  if test -z "$a" ; then continue ; fi ;
6813  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6814  then
6815   llvm_cv_gnu_make_command=$a ;
6816   break;
6817  fi
6818 done
6819fi
6820{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6821echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6822 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6823   ifGNUmake='' ;
6824 else
6825   ifGNUmake='#' ;
6826   { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6827echo "${ECHO_T}\"Not found\"" >&6; };
6828 fi
6829
6830
6831{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6832echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6833LN_S=$as_ln_s
6834if test "$LN_S" = "ln -s"; then
6835  { echo "$as_me:$LINENO: result: yes" >&5
6836echo "${ECHO_T}yes" >&6; }
6837else
6838  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6839echo "${ECHO_T}no, using $LN_S" >&6; }
6840fi
6841
6842# Extract the first word of "cmp", so it can be a program name with args.
6843set dummy cmp; ac_word=$2
6844{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6846if test "${ac_cv_path_CMP+set}" = set; then
6847  echo $ECHO_N "(cached) $ECHO_C" >&6
6848else
6849  case $CMP in
6850  [\\/]* | ?:[\\/]*)
6851  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6852  ;;
6853  *)
6854  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855for as_dir in $PATH
6856do
6857  IFS=$as_save_IFS
6858  test -z "$as_dir" && as_dir=.
6859  for ac_exec_ext in '' $ac_executable_extensions; do
6860  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6861    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6862    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6863    break 2
6864  fi
6865done
6866done
6867IFS=$as_save_IFS
6868
6869  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6870  ;;
6871esac
6872fi
6873CMP=$ac_cv_path_CMP
6874if test -n "$CMP"; then
6875  { echo "$as_me:$LINENO: result: $CMP" >&5
6876echo "${ECHO_T}$CMP" >&6; }
6877else
6878  { echo "$as_me:$LINENO: result: no" >&5
6879echo "${ECHO_T}no" >&6; }
6880fi
6881
6882
6883# Extract the first word of "cp", so it can be a program name with args.
6884set dummy cp; ac_word=$2
6885{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6887if test "${ac_cv_path_CP+set}" = set; then
6888  echo $ECHO_N "(cached) $ECHO_C" >&6
6889else
6890  case $CP in
6891  [\\/]* | ?:[\\/]*)
6892  ac_cv_path_CP="$CP" # Let the user override the test with a path.
6893  ;;
6894  *)
6895  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896for as_dir in $PATH
6897do
6898  IFS=$as_save_IFS
6899  test -z "$as_dir" && as_dir=.
6900  for ac_exec_ext in '' $ac_executable_extensions; do
6901  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6902    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6903    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6904    break 2
6905  fi
6906done
6907done
6908IFS=$as_save_IFS
6909
6910  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6911  ;;
6912esac
6913fi
6914CP=$ac_cv_path_CP
6915if test -n "$CP"; then
6916  { echo "$as_me:$LINENO: result: $CP" >&5
6917echo "${ECHO_T}$CP" >&6; }
6918else
6919  { echo "$as_me:$LINENO: result: no" >&5
6920echo "${ECHO_T}no" >&6; }
6921fi
6922
6923
6924# Extract the first word of "date", so it can be a program name with args.
6925set dummy date; ac_word=$2
6926{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6928if test "${ac_cv_path_DATE+set}" = set; then
6929  echo $ECHO_N "(cached) $ECHO_C" >&6
6930else
6931  case $DATE in
6932  [\\/]* | ?:[\\/]*)
6933  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6934  ;;
6935  *)
6936  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937for as_dir in $PATH
6938do
6939  IFS=$as_save_IFS
6940  test -z "$as_dir" && as_dir=.
6941  for ac_exec_ext in '' $ac_executable_extensions; do
6942  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6943    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6944    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6945    break 2
6946  fi
6947done
6948done
6949IFS=$as_save_IFS
6950
6951  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6952  ;;
6953esac
6954fi
6955DATE=$ac_cv_path_DATE
6956if test -n "$DATE"; then
6957  { echo "$as_me:$LINENO: result: $DATE" >&5
6958echo "${ECHO_T}$DATE" >&6; }
6959else
6960  { echo "$as_me:$LINENO: result: no" >&5
6961echo "${ECHO_T}no" >&6; }
6962fi
6963
6964
6965# Extract the first word of "find", so it can be a program name with args.
6966set dummy find; ac_word=$2
6967{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6969if test "${ac_cv_path_FIND+set}" = set; then
6970  echo $ECHO_N "(cached) $ECHO_C" >&6
6971else
6972  case $FIND in
6973  [\\/]* | ?:[\\/]*)
6974  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6975  ;;
6976  *)
6977  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978for as_dir in $PATH
6979do
6980  IFS=$as_save_IFS
6981  test -z "$as_dir" && as_dir=.
6982  for ac_exec_ext in '' $ac_executable_extensions; do
6983  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6984    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6985    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6986    break 2
6987  fi
6988done
6989done
6990IFS=$as_save_IFS
6991
6992  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6993  ;;
6994esac
6995fi
6996FIND=$ac_cv_path_FIND
6997if test -n "$FIND"; then
6998  { echo "$as_me:$LINENO: result: $FIND" >&5
6999echo "${ECHO_T}$FIND" >&6; }
7000else
7001  { echo "$as_me:$LINENO: result: no" >&5
7002echo "${ECHO_T}no" >&6; }
7003fi
7004
7005
7006# Extract the first word of "grep", so it can be a program name with args.
7007set dummy grep; ac_word=$2
7008{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7010if test "${ac_cv_path_GREP+set}" = set; then
7011  echo $ECHO_N "(cached) $ECHO_C" >&6
7012else
7013  case $GREP in
7014  [\\/]* | ?:[\\/]*)
7015  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7016  ;;
7017  *)
7018  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019for as_dir in $PATH
7020do
7021  IFS=$as_save_IFS
7022  test -z "$as_dir" && as_dir=.
7023  for ac_exec_ext in '' $ac_executable_extensions; do
7024  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7025    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
7026    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7027    break 2
7028  fi
7029done
7030done
7031IFS=$as_save_IFS
7032
7033  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7034  ;;
7035esac
7036fi
7037GREP=$ac_cv_path_GREP
7038if test -n "$GREP"; then
7039  { echo "$as_me:$LINENO: result: $GREP" >&5
7040echo "${ECHO_T}$GREP" >&6; }
7041else
7042  { echo "$as_me:$LINENO: result: no" >&5
7043echo "${ECHO_T}no" >&6; }
7044fi
7045
7046
7047# Extract the first word of "mkdir", so it can be a program name with args.
7048set dummy mkdir; ac_word=$2
7049{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7051if test "${ac_cv_path_MKDIR+set}" = set; then
7052  echo $ECHO_N "(cached) $ECHO_C" >&6
7053else
7054  case $MKDIR in
7055  [\\/]* | ?:[\\/]*)
7056  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7057  ;;
7058  *)
7059  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060for as_dir in $PATH
7061do
7062  IFS=$as_save_IFS
7063  test -z "$as_dir" && as_dir=.
7064  for ac_exec_ext in '' $ac_executable_extensions; do
7065  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7066    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7067    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7068    break 2
7069  fi
7070done
7071done
7072IFS=$as_save_IFS
7073
7074  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7075  ;;
7076esac
7077fi
7078MKDIR=$ac_cv_path_MKDIR
7079if test -n "$MKDIR"; then
7080  { echo "$as_me:$LINENO: result: $MKDIR" >&5
7081echo "${ECHO_T}$MKDIR" >&6; }
7082else
7083  { echo "$as_me:$LINENO: result: no" >&5
7084echo "${ECHO_T}no" >&6; }
7085fi
7086
7087
7088# Extract the first word of "mv", so it can be a program name with args.
7089set dummy mv; ac_word=$2
7090{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7092if test "${ac_cv_path_MV+set}" = set; then
7093  echo $ECHO_N "(cached) $ECHO_C" >&6
7094else
7095  case $MV in
7096  [\\/]* | ?:[\\/]*)
7097  ac_cv_path_MV="$MV" # Let the user override the test with a path.
7098  ;;
7099  *)
7100  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101for as_dir in $PATH
7102do
7103  IFS=$as_save_IFS
7104  test -z "$as_dir" && as_dir=.
7105  for ac_exec_ext in '' $ac_executable_extensions; do
7106  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7107    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7108    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7109    break 2
7110  fi
7111done
7112done
7113IFS=$as_save_IFS
7114
7115  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7116  ;;
7117esac
7118fi
7119MV=$ac_cv_path_MV
7120if test -n "$MV"; then
7121  { echo "$as_me:$LINENO: result: $MV" >&5
7122echo "${ECHO_T}$MV" >&6; }
7123else
7124  { echo "$as_me:$LINENO: result: no" >&5
7125echo "${ECHO_T}no" >&6; }
7126fi
7127
7128
7129if test -n "$ac_tool_prefix"; then
7130  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7131set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7132{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7134if test "${ac_cv_prog_RANLIB+set}" = set; then
7135  echo $ECHO_N "(cached) $ECHO_C" >&6
7136else
7137  if test -n "$RANLIB"; then
7138  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7139else
7140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141for as_dir in $PATH
7142do
7143  IFS=$as_save_IFS
7144  test -z "$as_dir" && as_dir=.
7145  for ac_exec_ext in '' $ac_executable_extensions; do
7146  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7147    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7148    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7149    break 2
7150  fi
7151done
7152done
7153IFS=$as_save_IFS
7154
7155fi
7156fi
7157RANLIB=$ac_cv_prog_RANLIB
7158if test -n "$RANLIB"; then
7159  { echo "$as_me:$LINENO: result: $RANLIB" >&5
7160echo "${ECHO_T}$RANLIB" >&6; }
7161else
7162  { echo "$as_me:$LINENO: result: no" >&5
7163echo "${ECHO_T}no" >&6; }
7164fi
7165
7166
7167fi
7168if test -z "$ac_cv_prog_RANLIB"; then
7169  ac_ct_RANLIB=$RANLIB
7170  # Extract the first word of "ranlib", so it can be a program name with args.
7171set dummy ranlib; ac_word=$2
7172{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7174if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7175  echo $ECHO_N "(cached) $ECHO_C" >&6
7176else
7177  if test -n "$ac_ct_RANLIB"; then
7178  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7179else
7180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181for as_dir in $PATH
7182do
7183  IFS=$as_save_IFS
7184  test -z "$as_dir" && as_dir=.
7185  for ac_exec_ext in '' $ac_executable_extensions; do
7186  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7187    ac_cv_prog_ac_ct_RANLIB="ranlib"
7188    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7189    break 2
7190  fi
7191done
7192done
7193IFS=$as_save_IFS
7194
7195fi
7196fi
7197ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7198if test -n "$ac_ct_RANLIB"; then
7199  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7200echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7201else
7202  { echo "$as_me:$LINENO: result: no" >&5
7203echo "${ECHO_T}no" >&6; }
7204fi
7205
7206  if test "x$ac_ct_RANLIB" = x; then
7207    RANLIB=":"
7208  else
7209    case $cross_compiling:$ac_tool_warned in
7210yes:)
7211{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7212whose name does not start with the host triplet.  If you think this
7213configuration is useful to you, please write to autoconf@gnu.org." >&5
7214echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7215whose name does not start with the host triplet.  If you think this
7216configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7217ac_tool_warned=yes ;;
7218esac
7219    RANLIB=$ac_ct_RANLIB
7220  fi
7221else
7222  RANLIB="$ac_cv_prog_RANLIB"
7223fi
7224
7225# Extract the first word of "rm", so it can be a program name with args.
7226set dummy rm; ac_word=$2
7227{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7229if test "${ac_cv_path_RM+set}" = set; then
7230  echo $ECHO_N "(cached) $ECHO_C" >&6
7231else
7232  case $RM in
7233  [\\/]* | ?:[\\/]*)
7234  ac_cv_path_RM="$RM" # Let the user override the test with a path.
7235  ;;
7236  *)
7237  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238for as_dir in $PATH
7239do
7240  IFS=$as_save_IFS
7241  test -z "$as_dir" && as_dir=.
7242  for ac_exec_ext in '' $ac_executable_extensions; do
7243  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7244    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7245    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7246    break 2
7247  fi
7248done
7249done
7250IFS=$as_save_IFS
7251
7252  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7253  ;;
7254esac
7255fi
7256RM=$ac_cv_path_RM
7257if test -n "$RM"; then
7258  { echo "$as_me:$LINENO: result: $RM" >&5
7259echo "${ECHO_T}$RM" >&6; }
7260else
7261  { echo "$as_me:$LINENO: result: no" >&5
7262echo "${ECHO_T}no" >&6; }
7263fi
7264
7265
7266# Extract the first word of "sed", so it can be a program name with args.
7267set dummy sed; ac_word=$2
7268{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7270if test "${ac_cv_path_SED+set}" = set; then
7271  echo $ECHO_N "(cached) $ECHO_C" >&6
7272else
7273  case $SED in
7274  [\\/]* | ?:[\\/]*)
7275  ac_cv_path_SED="$SED" # Let the user override the test with a path.
7276  ;;
7277  *)
7278  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279for as_dir in $PATH
7280do
7281  IFS=$as_save_IFS
7282  test -z "$as_dir" && as_dir=.
7283  for ac_exec_ext in '' $ac_executable_extensions; do
7284  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7285    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7286    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7287    break 2
7288  fi
7289done
7290done
7291IFS=$as_save_IFS
7292
7293  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7294  ;;
7295esac
7296fi
7297SED=$ac_cv_path_SED
7298if test -n "$SED"; then
7299  { echo "$as_me:$LINENO: result: $SED" >&5
7300echo "${ECHO_T}$SED" >&6; }
7301else
7302  { echo "$as_me:$LINENO: result: no" >&5
7303echo "${ECHO_T}no" >&6; }
7304fi
7305
7306
7307# Extract the first word of "tar", so it can be a program name with args.
7308set dummy tar; ac_word=$2
7309{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7311if test "${ac_cv_path_TAR+set}" = set; then
7312  echo $ECHO_N "(cached) $ECHO_C" >&6
7313else
7314  case $TAR in
7315  [\\/]* | ?:[\\/]*)
7316  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7317  ;;
7318  *)
7319  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320for as_dir in $PATH
7321do
7322  IFS=$as_save_IFS
7323  test -z "$as_dir" && as_dir=.
7324  for ac_exec_ext in '' $ac_executable_extensions; do
7325  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7326    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7327    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7328    break 2
7329  fi
7330done
7331done
7332IFS=$as_save_IFS
7333
7334  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7335  ;;
7336esac
7337fi
7338TAR=$ac_cv_path_TAR
7339if test -n "$TAR"; then
7340  { echo "$as_me:$LINENO: result: $TAR" >&5
7341echo "${ECHO_T}$TAR" >&6; }
7342else
7343  { echo "$as_me:$LINENO: result: no" >&5
7344echo "${ECHO_T}no" >&6; }
7345fi
7346
7347
7348# Extract the first word of "pwd", so it can be a program name with args.
7349set dummy pwd; ac_word=$2
7350{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7352if test "${ac_cv_path_BINPWD+set}" = set; then
7353  echo $ECHO_N "(cached) $ECHO_C" >&6
7354else
7355  case $BINPWD in
7356  [\\/]* | ?:[\\/]*)
7357  ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7358  ;;
7359  *)
7360  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361for as_dir in $PATH
7362do
7363  IFS=$as_save_IFS
7364  test -z "$as_dir" && as_dir=.
7365  for ac_exec_ext in '' $ac_executable_extensions; do
7366  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7367    ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7368    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7369    break 2
7370  fi
7371done
7372done
7373IFS=$as_save_IFS
7374
7375  test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7376  ;;
7377esac
7378fi
7379BINPWD=$ac_cv_path_BINPWD
7380if test -n "$BINPWD"; then
7381  { echo "$as_me:$LINENO: result: $BINPWD" >&5
7382echo "${ECHO_T}$BINPWD" >&6; }
7383else
7384  { echo "$as_me:$LINENO: result: no" >&5
7385echo "${ECHO_T}no" >&6; }
7386fi
7387
7388
7389
7390# Extract the first word of "Graphviz", so it can be a program name with args.
7391set dummy Graphviz; ac_word=$2
7392{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7394if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7395  echo $ECHO_N "(cached) $ECHO_C" >&6
7396else
7397  case $GRAPHVIZ in
7398  [\\/]* | ?:[\\/]*)
7399  ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7400  ;;
7401  *)
7402  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403for as_dir in $PATH
7404do
7405  IFS=$as_save_IFS
7406  test -z "$as_dir" && as_dir=.
7407  for ac_exec_ext in '' $ac_executable_extensions; do
7408  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7409    ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7410    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7411    break 2
7412  fi
7413done
7414done
7415IFS=$as_save_IFS
7416
7417  test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7418  ;;
7419esac
7420fi
7421GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7422if test -n "$GRAPHVIZ"; then
7423  { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7424echo "${ECHO_T}$GRAPHVIZ" >&6; }
7425else
7426  { echo "$as_me:$LINENO: result: no" >&5
7427echo "${ECHO_T}no" >&6; }
7428fi
7429
7430
7431if test "$GRAPHVIZ" != "echo Graphviz" ; then
7432
7433cat >>confdefs.h <<\_ACEOF
7434#define HAVE_GRAPHVIZ 1
7435_ACEOF
7436
7437    if test "$llvm_cv_os_type" = "MingW" ; then
7438    GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7439  fi
7440
7441cat >>confdefs.h <<_ACEOF
7442#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7443_ACEOF
7444
7445fi
7446# Extract the first word of "dot", so it can be a program name with args.
7447set dummy dot; ac_word=$2
7448{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7450if test "${ac_cv_path_DOT+set}" = set; then
7451  echo $ECHO_N "(cached) $ECHO_C" >&6
7452else
7453  case $DOT in
7454  [\\/]* | ?:[\\/]*)
7455  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7456  ;;
7457  *)
7458  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459for as_dir in $PATH
7460do
7461  IFS=$as_save_IFS
7462  test -z "$as_dir" && as_dir=.
7463  for ac_exec_ext in '' $ac_executable_extensions; do
7464  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7465    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7466    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467    break 2
7468  fi
7469done
7470done
7471IFS=$as_save_IFS
7472
7473  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7474  ;;
7475esac
7476fi
7477DOT=$ac_cv_path_DOT
7478if test -n "$DOT"; then
7479  { echo "$as_me:$LINENO: result: $DOT" >&5
7480echo "${ECHO_T}$DOT" >&6; }
7481else
7482  { echo "$as_me:$LINENO: result: no" >&5
7483echo "${ECHO_T}no" >&6; }
7484fi
7485
7486
7487if test "$DOT" != "echo dot" ; then
7488
7489cat >>confdefs.h <<\_ACEOF
7490#define HAVE_DOT 1
7491_ACEOF
7492
7493    if test "$llvm_cv_os_type" = "MingW" ; then
7494    DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7495  fi
7496
7497cat >>confdefs.h <<_ACEOF
7498#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7499_ACEOF
7500
7501fi
7502for ac_prog in gv gsview32
7503do
7504  # Extract the first word of "$ac_prog", so it can be a program name with args.
7505set dummy $ac_prog; ac_word=$2
7506{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7508if test "${ac_cv_path_GV+set}" = set; then
7509  echo $ECHO_N "(cached) $ECHO_C" >&6
7510else
7511  case $GV in
7512  [\\/]* | ?:[\\/]*)
7513  ac_cv_path_GV="$GV" # Let the user override the test with a path.
7514  ;;
7515  *)
7516  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517for as_dir in $PATH
7518do
7519  IFS=$as_save_IFS
7520  test -z "$as_dir" && as_dir=.
7521  for ac_exec_ext in '' $ac_executable_extensions; do
7522  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7523    ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7524    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525    break 2
7526  fi
7527done
7528done
7529IFS=$as_save_IFS
7530
7531  ;;
7532esac
7533fi
7534GV=$ac_cv_path_GV
7535if test -n "$GV"; then
7536  { echo "$as_me:$LINENO: result: $GV" >&5
7537echo "${ECHO_T}$GV" >&6; }
7538else
7539  { echo "$as_me:$LINENO: result: no" >&5
7540echo "${ECHO_T}no" >&6; }
7541fi
7542
7543
7544  test -n "$GV" && break
7545done
7546test -n "$GV" || GV="echo gv"
7547
7548if test "$GV" != "echo gv" ; then
7549
7550cat >>confdefs.h <<\_ACEOF
7551#define HAVE_GV 1
7552_ACEOF
7553
7554    if test "$llvm_cv_os_type" = "MingW" ; then
7555    GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7556  fi
7557
7558cat >>confdefs.h <<_ACEOF
7559#define LLVM_PATH_GV "$GV${EXEEXT}"
7560_ACEOF
7561
7562fi
7563# Extract the first word of "dotty", so it can be a program name with args.
7564set dummy dotty; ac_word=$2
7565{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7567if test "${ac_cv_path_DOTTY+set}" = set; then
7568  echo $ECHO_N "(cached) $ECHO_C" >&6
7569else
7570  case $DOTTY in
7571  [\\/]* | ?:[\\/]*)
7572  ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7573  ;;
7574  *)
7575  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576for as_dir in $PATH
7577do
7578  IFS=$as_save_IFS
7579  test -z "$as_dir" && as_dir=.
7580  for ac_exec_ext in '' $ac_executable_extensions; do
7581  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7582    ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7583    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7584    break 2
7585  fi
7586done
7587done
7588IFS=$as_save_IFS
7589
7590  test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7591  ;;
7592esac
7593fi
7594DOTTY=$ac_cv_path_DOTTY
7595if test -n "$DOTTY"; then
7596  { echo "$as_me:$LINENO: result: $DOTTY" >&5
7597echo "${ECHO_T}$DOTTY" >&6; }
7598else
7599  { echo "$as_me:$LINENO: result: no" >&5
7600echo "${ECHO_T}no" >&6; }
7601fi
7602
7603
7604if test "$DOTTY" != "echo dotty" ; then
7605
7606cat >>confdefs.h <<\_ACEOF
7607#define HAVE_DOTTY 1
7608_ACEOF
7609
7610    if test "$llvm_cv_os_type" = "MingW" ; then
7611    DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7612  fi
7613
7614cat >>confdefs.h <<_ACEOF
7615#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7616_ACEOF
7617
7618fi
7619
7620
7621# Extract the first word of "perl", so it can be a program name with args.
7622set dummy perl; ac_word=$2
7623{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7625if test "${ac_cv_path_PERL+set}" = set; then
7626  echo $ECHO_N "(cached) $ECHO_C" >&6
7627else
7628  case $PERL in
7629  [\\/]* | ?:[\\/]*)
7630  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7631  ;;
7632  *)
7633  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634for as_dir in $PATH
7635do
7636  IFS=$as_save_IFS
7637  test -z "$as_dir" && as_dir=.
7638  for ac_exec_ext in '' $ac_executable_extensions; do
7639  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7640    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7641    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7642    break 2
7643  fi
7644done
7645done
7646IFS=$as_save_IFS
7647
7648  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7649  ;;
7650esac
7651fi
7652PERL=$ac_cv_path_PERL
7653if test -n "$PERL"; then
7654  { echo "$as_me:$LINENO: result: $PERL" >&5
7655echo "${ECHO_T}$PERL" >&6; }
7656else
7657  { echo "$as_me:$LINENO: result: no" >&5
7658echo "${ECHO_T}no" >&6; }
7659fi
7660
7661
7662if test "$PERL" != "none"; then
7663  { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7664echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7665  if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7666    { echo "$as_me:$LINENO: result: yes" >&5
7667echo "${ECHO_T}yes" >&6; }
7668  else
7669    PERL=none
7670    { echo "$as_me:$LINENO: result: not found" >&5
7671echo "${ECHO_T}not found" >&6; }
7672  fi
7673fi
7674
7675
7676if test x"$PERL" = xnone; then
7677   HAVE_PERL=0
7678
7679   { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7680echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7681   { (exit 1); exit 1; }; }
7682else
7683   HAVE_PERL=1
7684
7685fi
7686
7687# Find a good install program.  We prefer a C program (faster),
7688# so one script is as good as another.  But avoid the broken or
7689# incompatible versions:
7690# SysV /etc/install, /usr/sbin/install
7691# SunOS /usr/etc/install
7692# IRIX /sbin/install
7693# AIX /bin/install
7694# AmigaOS /C/install, which installs bootblocks on floppy discs
7695# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7696# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7697# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7698# OS/2's system install, which has a completely different semantic
7699# ./install, which can be erroneously created by make from ./install.sh.
7700{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7701echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7702if test -z "$INSTALL"; then
7703if test "${ac_cv_path_install+set}" = set; then
7704  echo $ECHO_N "(cached) $ECHO_C" >&6
7705else
7706  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707for as_dir in $PATH
7708do
7709  IFS=$as_save_IFS
7710  test -z "$as_dir" && as_dir=.
7711  # Account for people who put trailing slashes in PATH elements.
7712case $as_dir/ in
7713  ./ | .// | /cC/* | \
7714  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7715  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7716  /usr/ucb/* ) ;;
7717  *)
7718    # OSF1 and SCO ODT 3.0 have their own names for install.
7719    # Don't use installbsd from OSF since it installs stuff as root
7720    # by default.
7721    for ac_prog in ginstall scoinst install; do
7722      for ac_exec_ext in '' $ac_executable_extensions; do
7723	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7724	  if test $ac_prog = install &&
7725	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7726	    # AIX install.  It has an incompatible calling convention.
7727	    :
7728	  elif test $ac_prog = install &&
7729	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7730	    # program-specific install script used by HP pwplus--don't use.
7731	    :
7732	  else
7733	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7734	    break 3
7735	  fi
7736	fi
7737      done
7738    done
7739    ;;
7740esac
7741done
7742IFS=$as_save_IFS
7743
7744
7745fi
7746  if test "${ac_cv_path_install+set}" = set; then
7747    INSTALL=$ac_cv_path_install
7748  else
7749    # As a last resort, use the slow shell script.  Don't cache a
7750    # value for INSTALL within a source directory, because that will
7751    # break other packages using the cache if that directory is
7752    # removed, or if the value is a relative name.
7753    INSTALL=$ac_install_sh
7754  fi
7755fi
7756{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7757echo "${ECHO_T}$INSTALL" >&6; }
7758
7759# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7760# It thinks the first close brace ends the variable substitution.
7761test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7762
7763test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7764
7765test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7766
7767
7768# Extract the first word of "bzip2", so it can be a program name with args.
7769set dummy bzip2; ac_word=$2
7770{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7772if test "${ac_cv_path_BZIP2+set}" = set; then
7773  echo $ECHO_N "(cached) $ECHO_C" >&6
7774else
7775  case $BZIP2 in
7776  [\\/]* | ?:[\\/]*)
7777  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7778  ;;
7779  *)
7780  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781for as_dir in $PATH
7782do
7783  IFS=$as_save_IFS
7784  test -z "$as_dir" && as_dir=.
7785  for ac_exec_ext in '' $ac_executable_extensions; do
7786  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7787    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7788    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7789    break 2
7790  fi
7791done
7792done
7793IFS=$as_save_IFS
7794
7795  ;;
7796esac
7797fi
7798BZIP2=$ac_cv_path_BZIP2
7799if test -n "$BZIP2"; then
7800  { echo "$as_me:$LINENO: result: $BZIP2" >&5
7801echo "${ECHO_T}$BZIP2" >&6; }
7802else
7803  { echo "$as_me:$LINENO: result: no" >&5
7804echo "${ECHO_T}no" >&6; }
7805fi
7806
7807
7808# Extract the first word of "doxygen", so it can be a program name with args.
7809set dummy doxygen; ac_word=$2
7810{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7812if test "${ac_cv_path_DOXYGEN+set}" = set; then
7813  echo $ECHO_N "(cached) $ECHO_C" >&6
7814else
7815  case $DOXYGEN in
7816  [\\/]* | ?:[\\/]*)
7817  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7818  ;;
7819  *)
7820  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821for as_dir in $PATH
7822do
7823  IFS=$as_save_IFS
7824  test -z "$as_dir" && as_dir=.
7825  for ac_exec_ext in '' $ac_executable_extensions; do
7826  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7827    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7828    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7829    break 2
7830  fi
7831done
7832done
7833IFS=$as_save_IFS
7834
7835  ;;
7836esac
7837fi
7838DOXYGEN=$ac_cv_path_DOXYGEN
7839if test -n "$DOXYGEN"; then
7840  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7841echo "${ECHO_T}$DOXYGEN" >&6; }
7842else
7843  { echo "$as_me:$LINENO: result: no" >&5
7844echo "${ECHO_T}no" >&6; }
7845fi
7846
7847
7848# Extract the first word of "groff", so it can be a program name with args.
7849set dummy groff; ac_word=$2
7850{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7852if test "${ac_cv_path_GROFF+set}" = set; then
7853  echo $ECHO_N "(cached) $ECHO_C" >&6
7854else
7855  case $GROFF in
7856  [\\/]* | ?:[\\/]*)
7857  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7858  ;;
7859  *)
7860  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7861for as_dir in $PATH
7862do
7863  IFS=$as_save_IFS
7864  test -z "$as_dir" && as_dir=.
7865  for ac_exec_ext in '' $ac_executable_extensions; do
7866  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7867    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7868    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7869    break 2
7870  fi
7871done
7872done
7873IFS=$as_save_IFS
7874
7875  ;;
7876esac
7877fi
7878GROFF=$ac_cv_path_GROFF
7879if test -n "$GROFF"; then
7880  { echo "$as_me:$LINENO: result: $GROFF" >&5
7881echo "${ECHO_T}$GROFF" >&6; }
7882else
7883  { echo "$as_me:$LINENO: result: no" >&5
7884echo "${ECHO_T}no" >&6; }
7885fi
7886
7887
7888# Extract the first word of "gzip", so it can be a program name with args.
7889set dummy gzip; ac_word=$2
7890{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7892if test "${ac_cv_path_GZIP+set}" = set; then
7893  echo $ECHO_N "(cached) $ECHO_C" >&6
7894else
7895  case $GZIP in
7896  [\\/]* | ?:[\\/]*)
7897  ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7898  ;;
7899  *)
7900  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7901for as_dir in $PATH
7902do
7903  IFS=$as_save_IFS
7904  test -z "$as_dir" && as_dir=.
7905  for ac_exec_ext in '' $ac_executable_extensions; do
7906  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7907    ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7908    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7909    break 2
7910  fi
7911done
7912done
7913IFS=$as_save_IFS
7914
7915  ;;
7916esac
7917fi
7918GZIP=$ac_cv_path_GZIP
7919if test -n "$GZIP"; then
7920  { echo "$as_me:$LINENO: result: $GZIP" >&5
7921echo "${ECHO_T}$GZIP" >&6; }
7922else
7923  { echo "$as_me:$LINENO: result: no" >&5
7924echo "${ECHO_T}no" >&6; }
7925fi
7926
7927
7928# Extract the first word of "pod2html", so it can be a program name with args.
7929set dummy pod2html; ac_word=$2
7930{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7932if test "${ac_cv_path_POD2HTML+set}" = set; then
7933  echo $ECHO_N "(cached) $ECHO_C" >&6
7934else
7935  case $POD2HTML in
7936  [\\/]* | ?:[\\/]*)
7937  ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7938  ;;
7939  *)
7940  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941for as_dir in $PATH
7942do
7943  IFS=$as_save_IFS
7944  test -z "$as_dir" && as_dir=.
7945  for ac_exec_ext in '' $ac_executable_extensions; do
7946  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7947    ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7948    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7949    break 2
7950  fi
7951done
7952done
7953IFS=$as_save_IFS
7954
7955  ;;
7956esac
7957fi
7958POD2HTML=$ac_cv_path_POD2HTML
7959if test -n "$POD2HTML"; then
7960  { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7961echo "${ECHO_T}$POD2HTML" >&6; }
7962else
7963  { echo "$as_me:$LINENO: result: no" >&5
7964echo "${ECHO_T}no" >&6; }
7965fi
7966
7967
7968# Extract the first word of "pod2man", so it can be a program name with args.
7969set dummy pod2man; ac_word=$2
7970{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7972if test "${ac_cv_path_POD2MAN+set}" = set; then
7973  echo $ECHO_N "(cached) $ECHO_C" >&6
7974else
7975  case $POD2MAN in
7976  [\\/]* | ?:[\\/]*)
7977  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7978  ;;
7979  *)
7980  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981for as_dir in $PATH
7982do
7983  IFS=$as_save_IFS
7984  test -z "$as_dir" && as_dir=.
7985  for ac_exec_ext in '' $ac_executable_extensions; do
7986  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7987    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7988    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7989    break 2
7990  fi
7991done
7992done
7993IFS=$as_save_IFS
7994
7995  ;;
7996esac
7997fi
7998POD2MAN=$ac_cv_path_POD2MAN
7999if test -n "$POD2MAN"; then
8000  { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8001echo "${ECHO_T}$POD2MAN" >&6; }
8002else
8003  { echo "$as_me:$LINENO: result: no" >&5
8004echo "${ECHO_T}no" >&6; }
8005fi
8006
8007
8008# Extract the first word of "runtest", so it can be a program name with args.
8009set dummy runtest; ac_word=$2
8010{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8012if test "${ac_cv_path_RUNTEST+set}" = set; then
8013  echo $ECHO_N "(cached) $ECHO_C" >&6
8014else
8015  case $RUNTEST in
8016  [\\/]* | ?:[\\/]*)
8017  ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8018  ;;
8019  *)
8020  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021for as_dir in $PATH
8022do
8023  IFS=$as_save_IFS
8024  test -z "$as_dir" && as_dir=.
8025  for ac_exec_ext in '' $ac_executable_extensions; do
8026  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8027    ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8028    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8029    break 2
8030  fi
8031done
8032done
8033IFS=$as_save_IFS
8034
8035  ;;
8036esac
8037fi
8038RUNTEST=$ac_cv_path_RUNTEST
8039if test -n "$RUNTEST"; then
8040  { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8041echo "${ECHO_T}$RUNTEST" >&6; }
8042else
8043  { echo "$as_me:$LINENO: result: no" >&5
8044echo "${ECHO_T}no" >&6; }
8045fi
8046
8047
8048
8049no_itcl=true
8050{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8051echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8052
8053# Check whether --with-tclinclude was given.
8054if test "${with_tclinclude+set}" = set; then
8055  withval=$with_tclinclude; with_tclinclude=${withval}
8056else
8057  with_tclinclude=''
8058fi
8059
8060if test "${ac_cv_path_tclsh+set}" = set; then
8061  echo $ECHO_N "(cached) $ECHO_C" >&6
8062else
8063
8064if test x"${with_tclinclude}" != x ; then
8065  if test -f ${with_tclinclude}/tclsh ; then
8066    ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8067  elif test -f ${with_tclinclude}/src/tclsh ; then
8068    ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8069  else
8070    { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8071echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8072   { (exit 1); exit 1; }; }
8073  fi
8074fi
8075
8076if test x"${ac_cv_path_tclsh}" = x ; then
8077  { echo "$as_me:$LINENO: result: none" >&5
8078echo "${ECHO_T}none" >&6; }
8079  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
8080do
8081  # Extract the first word of "$ac_prog", so it can be a program name with args.
8082set dummy $ac_prog; ac_word=$2
8083{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8085if test "${ac_cv_path_TCLSH+set}" = set; then
8086  echo $ECHO_N "(cached) $ECHO_C" >&6
8087else
8088  case $TCLSH in
8089  [\\/]* | ?:[\\/]*)
8090  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8091  ;;
8092  *)
8093  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094for as_dir in $PATH
8095do
8096  IFS=$as_save_IFS
8097  test -z "$as_dir" && as_dir=.
8098  for ac_exec_ext in '' $ac_executable_extensions; do
8099  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8100    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8101    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8102    break 2
8103  fi
8104done
8105done
8106IFS=$as_save_IFS
8107
8108  ;;
8109esac
8110fi
8111TCLSH=$ac_cv_path_TCLSH
8112if test -n "$TCLSH"; then
8113  { echo "$as_me:$LINENO: result: $TCLSH" >&5
8114echo "${ECHO_T}$TCLSH" >&6; }
8115else
8116  { echo "$as_me:$LINENO: result: no" >&5
8117echo "${ECHO_T}no" >&6; }
8118fi
8119
8120
8121  test -n "$TCLSH" && break
8122done
8123
8124  if test x"${TCLSH}" = x ; then
8125    ac_cv_path_tclsh='';
8126  else
8127    ac_cv_path_tclsh="${TCLSH}";
8128  fi
8129else
8130  { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8131echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8132  TCLSH="${ac_cv_path_tclsh}"
8133
8134fi
8135
8136fi
8137
8138# Extract the first word of "zip", so it can be a program name with args.
8139set dummy zip; ac_word=$2
8140{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8142if test "${ac_cv_path_ZIP+set}" = set; then
8143  echo $ECHO_N "(cached) $ECHO_C" >&6
8144else
8145  case $ZIP in
8146  [\\/]* | ?:[\\/]*)
8147  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8148  ;;
8149  *)
8150  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151for as_dir in $PATH
8152do
8153  IFS=$as_save_IFS
8154  test -z "$as_dir" && as_dir=.
8155  for ac_exec_ext in '' $ac_executable_extensions; do
8156  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8157    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8158    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8159    break 2
8160  fi
8161done
8162done
8163IFS=$as_save_IFS
8164
8165  ;;
8166esac
8167fi
8168ZIP=$ac_cv_path_ZIP
8169if test -n "$ZIP"; then
8170  { echo "$as_me:$LINENO: result: $ZIP" >&5
8171echo "${ECHO_T}$ZIP" >&6; }
8172else
8173  { echo "$as_me:$LINENO: result: no" >&5
8174echo "${ECHO_T}no" >&6; }
8175fi
8176
8177
8178for ac_prog in ocamlc
8179do
8180  # Extract the first word of "$ac_prog", so it can be a program name with args.
8181set dummy $ac_prog; ac_word=$2
8182{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8184if test "${ac_cv_path_OCAMLC+set}" = set; then
8185  echo $ECHO_N "(cached) $ECHO_C" >&6
8186else
8187  case $OCAMLC in
8188  [\\/]* | ?:[\\/]*)
8189  ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8190  ;;
8191  *)
8192  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193for as_dir in $PATH
8194do
8195  IFS=$as_save_IFS
8196  test -z "$as_dir" && as_dir=.
8197  for ac_exec_ext in '' $ac_executable_extensions; do
8198  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8199    ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8200    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8201    break 2
8202  fi
8203done
8204done
8205IFS=$as_save_IFS
8206
8207  ;;
8208esac
8209fi
8210OCAMLC=$ac_cv_path_OCAMLC
8211if test -n "$OCAMLC"; then
8212  { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8213echo "${ECHO_T}$OCAMLC" >&6; }
8214else
8215  { echo "$as_me:$LINENO: result: no" >&5
8216echo "${ECHO_T}no" >&6; }
8217fi
8218
8219
8220  test -n "$OCAMLC" && break
8221done
8222
8223for ac_prog in ocamlopt
8224do
8225  # Extract the first word of "$ac_prog", so it can be a program name with args.
8226set dummy $ac_prog; ac_word=$2
8227{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8229if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8230  echo $ECHO_N "(cached) $ECHO_C" >&6
8231else
8232  case $OCAMLOPT in
8233  [\\/]* | ?:[\\/]*)
8234  ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8235  ;;
8236  *)
8237  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238for as_dir in $PATH
8239do
8240  IFS=$as_save_IFS
8241  test -z "$as_dir" && as_dir=.
8242  for ac_exec_ext in '' $ac_executable_extensions; do
8243  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8244    ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8245    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8246    break 2
8247  fi
8248done
8249done
8250IFS=$as_save_IFS
8251
8252  ;;
8253esac
8254fi
8255OCAMLOPT=$ac_cv_path_OCAMLOPT
8256if test -n "$OCAMLOPT"; then
8257  { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8258echo "${ECHO_T}$OCAMLOPT" >&6; }
8259else
8260  { echo "$as_me:$LINENO: result: no" >&5
8261echo "${ECHO_T}no" >&6; }
8262fi
8263
8264
8265  test -n "$OCAMLOPT" && break
8266done
8267
8268for ac_prog in ocamldep
8269do
8270  # Extract the first word of "$ac_prog", so it can be a program name with args.
8271set dummy $ac_prog; ac_word=$2
8272{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8274if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8275  echo $ECHO_N "(cached) $ECHO_C" >&6
8276else
8277  case $OCAMLDEP in
8278  [\\/]* | ?:[\\/]*)
8279  ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8280  ;;
8281  *)
8282  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283for as_dir in $PATH
8284do
8285  IFS=$as_save_IFS
8286  test -z "$as_dir" && as_dir=.
8287  for ac_exec_ext in '' $ac_executable_extensions; do
8288  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8289    ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8290    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8291    break 2
8292  fi
8293done
8294done
8295IFS=$as_save_IFS
8296
8297  ;;
8298esac
8299fi
8300OCAMLDEP=$ac_cv_path_OCAMLDEP
8301if test -n "$OCAMLDEP"; then
8302  { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8303echo "${ECHO_T}$OCAMLDEP" >&6; }
8304else
8305  { echo "$as_me:$LINENO: result: no" >&5
8306echo "${ECHO_T}no" >&6; }
8307fi
8308
8309
8310  test -n "$OCAMLDEP" && break
8311done
8312
8313for ac_prog in ocamldoc
8314do
8315  # Extract the first word of "$ac_prog", so it can be a program name with args.
8316set dummy $ac_prog; ac_word=$2
8317{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8319if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8320  echo $ECHO_N "(cached) $ECHO_C" >&6
8321else
8322  case $OCAMLDOC in
8323  [\\/]* | ?:[\\/]*)
8324  ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8325  ;;
8326  *)
8327  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8328for as_dir in $PATH
8329do
8330  IFS=$as_save_IFS
8331  test -z "$as_dir" && as_dir=.
8332  for ac_exec_ext in '' $ac_executable_extensions; do
8333  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8334    ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8335    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8336    break 2
8337  fi
8338done
8339done
8340IFS=$as_save_IFS
8341
8342  ;;
8343esac
8344fi
8345OCAMLDOC=$ac_cv_path_OCAMLDOC
8346if test -n "$OCAMLDOC"; then
8347  { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8348echo "${ECHO_T}$OCAMLDOC" >&6; }
8349else
8350  { echo "$as_me:$LINENO: result: no" >&5
8351echo "${ECHO_T}no" >&6; }
8352fi
8353
8354
8355  test -n "$OCAMLDOC" && break
8356done
8357
8358for ac_prog in gas as
8359do
8360  # Extract the first word of "$ac_prog", so it can be a program name with args.
8361set dummy $ac_prog; ac_word=$2
8362{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8364if test "${ac_cv_path_GAS+set}" = set; then
8365  echo $ECHO_N "(cached) $ECHO_C" >&6
8366else
8367  case $GAS in
8368  [\\/]* | ?:[\\/]*)
8369  ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8370  ;;
8371  *)
8372  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8373for as_dir in $PATH
8374do
8375  IFS=$as_save_IFS
8376  test -z "$as_dir" && as_dir=.
8377  for ac_exec_ext in '' $ac_executable_extensions; do
8378  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8379    ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8380    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8381    break 2
8382  fi
8383done
8384done
8385IFS=$as_save_IFS
8386
8387  ;;
8388esac
8389fi
8390GAS=$ac_cv_path_GAS
8391if test -n "$GAS"; then
8392  { echo "$as_me:$LINENO: result: $GAS" >&5
8393echo "${ECHO_T}$GAS" >&6; }
8394else
8395  { echo "$as_me:$LINENO: result: no" >&5
8396echo "${ECHO_T}no" >&6; }
8397fi
8398
8399
8400  test -n "$GAS" && break
8401done
8402
8403
8404{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8405echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8406if test "${llvm_cv_link_use_r+set}" = set; then
8407  echo $ECHO_N "(cached) $ECHO_C" >&6
8408else
8409   ac_ext=c
8410ac_cpp='$CPP $CPPFLAGS'
8411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8413ac_compiler_gnu=$ac_cv_c_compiler_gnu
8414
8415  oldcflags="$CFLAGS"
8416  CFLAGS="$CFLAGS -Wl,-R."
8417  cat >conftest.$ac_ext <<_ACEOF
8418/* confdefs.h.  */
8419_ACEOF
8420cat confdefs.h >>conftest.$ac_ext
8421cat >>conftest.$ac_ext <<_ACEOF
8422/* end confdefs.h.  */
8423
8424int
8425main ()
8426{
8427int main() { return 0; }
8428  ;
8429  return 0;
8430}
8431_ACEOF
8432rm -f conftest.$ac_objext conftest$ac_exeext
8433if { (ac_try="$ac_link"
8434case "(($ac_try" in
8435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436  *) ac_try_echo=$ac_try;;
8437esac
8438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439  (eval "$ac_link") 2>conftest.er1
8440  ac_status=$?
8441  grep -v '^ *+' conftest.er1 >conftest.err
8442  rm -f conftest.er1
8443  cat conftest.err >&5
8444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445  (exit $ac_status); } &&
8446	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8447  { (case "(($ac_try" in
8448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8449  *) ac_try_echo=$ac_try;;
8450esac
8451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8452  (eval "$ac_try") 2>&5
8453  ac_status=$?
8454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455  (exit $ac_status); }; } &&
8456	 { ac_try='test -s conftest$ac_exeext'
8457  { (case "(($ac_try" in
8458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459  *) ac_try_echo=$ac_try;;
8460esac
8461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8462  (eval "$ac_try") 2>&5
8463  ac_status=$?
8464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465  (exit $ac_status); }; }; then
8466  llvm_cv_link_use_r=yes
8467else
8468  echo "$as_me: failed program was:" >&5
8469sed 's/^/| /' conftest.$ac_ext >&5
8470
8471	llvm_cv_link_use_r=no
8472fi
8473
8474rm -f core conftest.err conftest.$ac_objext \
8475      conftest$ac_exeext conftest.$ac_ext
8476  CFLAGS="$oldcflags"
8477  ac_ext=c
8478ac_cpp='$CPP $CPPFLAGS'
8479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8481ac_compiler_gnu=$ac_cv_c_compiler_gnu
8482
8483
8484fi
8485{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8486echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8487if test "$llvm_cv_link_use_r" = yes ; then
8488
8489cat >>confdefs.h <<\_ACEOF
8490#define HAVE_LINK_R 1
8491_ACEOF
8492
8493  fi
8494
8495
8496
8497
8498{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8499echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8500if test "${ac_cv_c_const+set}" = set; then
8501  echo $ECHO_N "(cached) $ECHO_C" >&6
8502else
8503  cat >conftest.$ac_ext <<_ACEOF
8504/* confdefs.h.  */
8505_ACEOF
8506cat confdefs.h >>conftest.$ac_ext
8507cat >>conftest.$ac_ext <<_ACEOF
8508/* end confdefs.h.  */
8509
8510int
8511main ()
8512{
8513/* FIXME: Include the comments suggested by Paul. */
8514#ifndef __cplusplus
8515  /* Ultrix mips cc rejects this.  */
8516  typedef int charset[2];
8517  const charset x;
8518  /* SunOS 4.1.1 cc rejects this.  */
8519  char const *const *ccp;
8520  char **p;
8521  /* NEC SVR4.0.2 mips cc rejects this.  */
8522  struct point {int x, y;};
8523  static struct point const zero = {0,0};
8524  /* AIX XL C 1.02.0.0 rejects this.
8525     It does not let you subtract one const X* pointer from another in
8526     an arm of an if-expression whose if-part is not a constant
8527     expression */
8528  const char *g = "string";
8529  ccp = &g + (g ? g-g : 0);
8530  /* HPUX 7.0 cc rejects these. */
8531  ++ccp;
8532  p = (char**) ccp;
8533  ccp = (char const *const *) p;
8534  { /* SCO 3.2v4 cc rejects this.  */
8535    char *t;
8536    char const *s = 0 ? (char *) 0 : (char const *) 0;
8537
8538    *t++ = 0;
8539    if (s) return 0;
8540  }
8541  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8542    int x[] = {25, 17};
8543    const int *foo = &x[0];
8544    ++foo;
8545  }
8546  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8547    typedef const int *iptr;
8548    iptr p = 0;
8549    ++p;
8550  }
8551  { /* AIX XL C 1.02.0.0 rejects this saying
8552       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8553    struct s { int j; const int *ap[3]; };
8554    struct s *b; b->j = 5;
8555  }
8556  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8557    const int foo = 10;
8558    if (!foo) return 0;
8559  }
8560  return !x[0] && !zero.x;
8561#endif
8562
8563  ;
8564  return 0;
8565}
8566_ACEOF
8567rm -f conftest.$ac_objext
8568if { (ac_try="$ac_compile"
8569case "(($ac_try" in
8570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571  *) ac_try_echo=$ac_try;;
8572esac
8573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8574  (eval "$ac_compile") 2>conftest.er1
8575  ac_status=$?
8576  grep -v '^ *+' conftest.er1 >conftest.err
8577  rm -f conftest.er1
8578  cat conftest.err >&5
8579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580  (exit $ac_status); } &&
8581	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8582  { (case "(($ac_try" in
8583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584  *) ac_try_echo=$ac_try;;
8585esac
8586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8587  (eval "$ac_try") 2>&5
8588  ac_status=$?
8589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590  (exit $ac_status); }; } &&
8591	 { ac_try='test -s conftest.$ac_objext'
8592  { (case "(($ac_try" in
8593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594  *) ac_try_echo=$ac_try;;
8595esac
8596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8597  (eval "$ac_try") 2>&5
8598  ac_status=$?
8599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600  (exit $ac_status); }; }; then
8601  ac_cv_c_const=yes
8602else
8603  echo "$as_me: failed program was:" >&5
8604sed 's/^/| /' conftest.$ac_ext >&5
8605
8606	ac_cv_c_const=no
8607fi
8608
8609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8610fi
8611{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8612echo "${ECHO_T}$ac_cv_c_const" >&6; }
8613if test $ac_cv_c_const = no; then
8614
8615cat >>confdefs.h <<\_ACEOF
8616#define const
8617_ACEOF
8618
8619fi
8620
8621
8622
8623
8624
8625
8626ac_header_dirent=no
8627for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8628  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8629{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8630echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8631if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8632  echo $ECHO_N "(cached) $ECHO_C" >&6
8633else
8634  cat >conftest.$ac_ext <<_ACEOF
8635/* confdefs.h.  */
8636_ACEOF
8637cat confdefs.h >>conftest.$ac_ext
8638cat >>conftest.$ac_ext <<_ACEOF
8639/* end confdefs.h.  */
8640#include <sys/types.h>
8641#include <$ac_hdr>
8642
8643int
8644main ()
8645{
8646if ((DIR *) 0)
8647return 0;
8648  ;
8649  return 0;
8650}
8651_ACEOF
8652rm -f conftest.$ac_objext
8653if { (ac_try="$ac_compile"
8654case "(($ac_try" in
8655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8656  *) ac_try_echo=$ac_try;;
8657esac
8658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8659  (eval "$ac_compile") 2>conftest.er1
8660  ac_status=$?
8661  grep -v '^ *+' conftest.er1 >conftest.err
8662  rm -f conftest.er1
8663  cat conftest.err >&5
8664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665  (exit $ac_status); } &&
8666	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8667  { (case "(($ac_try" in
8668  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8669  *) ac_try_echo=$ac_try;;
8670esac
8671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8672  (eval "$ac_try") 2>&5
8673  ac_status=$?
8674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675  (exit $ac_status); }; } &&
8676	 { ac_try='test -s conftest.$ac_objext'
8677  { (case "(($ac_try" in
8678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8679  *) ac_try_echo=$ac_try;;
8680esac
8681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8682  (eval "$ac_try") 2>&5
8683  ac_status=$?
8684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685  (exit $ac_status); }; }; then
8686  eval "$as_ac_Header=yes"
8687else
8688  echo "$as_me: failed program was:" >&5
8689sed 's/^/| /' conftest.$ac_ext >&5
8690
8691	eval "$as_ac_Header=no"
8692fi
8693
8694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8695fi
8696ac_res=`eval echo '${'$as_ac_Header'}'`
8697	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8698echo "${ECHO_T}$ac_res" >&6; }
8699if test `eval echo '${'$as_ac_Header'}'` = yes; then
8700  cat >>confdefs.h <<_ACEOF
8701#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8702_ACEOF
8703
8704ac_header_dirent=$ac_hdr; break
8705fi
8706
8707done
8708# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8709if test $ac_header_dirent = dirent.h; then
8710  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8711echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8712if test "${ac_cv_search_opendir+set}" = set; then
8713  echo $ECHO_N "(cached) $ECHO_C" >&6
8714else
8715  ac_func_search_save_LIBS=$LIBS
8716cat >conftest.$ac_ext <<_ACEOF
8717/* confdefs.h.  */
8718_ACEOF
8719cat confdefs.h >>conftest.$ac_ext
8720cat >>conftest.$ac_ext <<_ACEOF
8721/* end confdefs.h.  */
8722
8723/* Override any GCC internal prototype to avoid an error.
8724   Use char because int might match the return type of a GCC
8725   builtin and then its argument prototype would still apply.  */
8726#ifdef __cplusplus
8727extern "C"
8728#endif
8729char opendir ();
8730int
8731main ()
8732{
8733return opendir ();
8734  ;
8735  return 0;
8736}
8737_ACEOF
8738for ac_lib in '' dir; do
8739  if test -z "$ac_lib"; then
8740    ac_res="none required"
8741  else
8742    ac_res=-l$ac_lib
8743    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8744  fi
8745  rm -f conftest.$ac_objext conftest$ac_exeext
8746if { (ac_try="$ac_link"
8747case "(($ac_try" in
8748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8749  *) ac_try_echo=$ac_try;;
8750esac
8751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8752  (eval "$ac_link") 2>conftest.er1
8753  ac_status=$?
8754  grep -v '^ *+' conftest.er1 >conftest.err
8755  rm -f conftest.er1
8756  cat conftest.err >&5
8757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758  (exit $ac_status); } &&
8759	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8760  { (case "(($ac_try" in
8761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762  *) ac_try_echo=$ac_try;;
8763esac
8764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8765  (eval "$ac_try") 2>&5
8766  ac_status=$?
8767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768  (exit $ac_status); }; } &&
8769	 { ac_try='test -s conftest$ac_exeext'
8770  { (case "(($ac_try" in
8771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8772  *) ac_try_echo=$ac_try;;
8773esac
8774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8775  (eval "$ac_try") 2>&5
8776  ac_status=$?
8777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778  (exit $ac_status); }; }; then
8779  ac_cv_search_opendir=$ac_res
8780else
8781  echo "$as_me: failed program was:" >&5
8782sed 's/^/| /' conftest.$ac_ext >&5
8783
8784
8785fi
8786
8787rm -f core conftest.err conftest.$ac_objext \
8788      conftest$ac_exeext
8789  if test "${ac_cv_search_opendir+set}" = set; then
8790  break
8791fi
8792done
8793if test "${ac_cv_search_opendir+set}" = set; then
8794  :
8795else
8796  ac_cv_search_opendir=no
8797fi
8798rm conftest.$ac_ext
8799LIBS=$ac_func_search_save_LIBS
8800fi
8801{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8802echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8803ac_res=$ac_cv_search_opendir
8804if test "$ac_res" != no; then
8805  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8806
8807fi
8808
8809else
8810  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8811echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8812if test "${ac_cv_search_opendir+set}" = set; then
8813  echo $ECHO_N "(cached) $ECHO_C" >&6
8814else
8815  ac_func_search_save_LIBS=$LIBS
8816cat >conftest.$ac_ext <<_ACEOF
8817/* confdefs.h.  */
8818_ACEOF
8819cat confdefs.h >>conftest.$ac_ext
8820cat >>conftest.$ac_ext <<_ACEOF
8821/* end confdefs.h.  */
8822
8823/* Override any GCC internal prototype to avoid an error.
8824   Use char because int might match the return type of a GCC
8825   builtin and then its argument prototype would still apply.  */
8826#ifdef __cplusplus
8827extern "C"
8828#endif
8829char opendir ();
8830int
8831main ()
8832{
8833return opendir ();
8834  ;
8835  return 0;
8836}
8837_ACEOF
8838for ac_lib in '' x; do
8839  if test -z "$ac_lib"; then
8840    ac_res="none required"
8841  else
8842    ac_res=-l$ac_lib
8843    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8844  fi
8845  rm -f conftest.$ac_objext conftest$ac_exeext
8846if { (ac_try="$ac_link"
8847case "(($ac_try" in
8848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849  *) ac_try_echo=$ac_try;;
8850esac
8851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852  (eval "$ac_link") 2>conftest.er1
8853  ac_status=$?
8854  grep -v '^ *+' conftest.er1 >conftest.err
8855  rm -f conftest.er1
8856  cat conftest.err >&5
8857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858  (exit $ac_status); } &&
8859	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8860  { (case "(($ac_try" in
8861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862  *) ac_try_echo=$ac_try;;
8863esac
8864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865  (eval "$ac_try") 2>&5
8866  ac_status=$?
8867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868  (exit $ac_status); }; } &&
8869	 { ac_try='test -s conftest$ac_exeext'
8870  { (case "(($ac_try" in
8871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872  *) ac_try_echo=$ac_try;;
8873esac
8874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8875  (eval "$ac_try") 2>&5
8876  ac_status=$?
8877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878  (exit $ac_status); }; }; then
8879  ac_cv_search_opendir=$ac_res
8880else
8881  echo "$as_me: failed program was:" >&5
8882sed 's/^/| /' conftest.$ac_ext >&5
8883
8884
8885fi
8886
8887rm -f core conftest.err conftest.$ac_objext \
8888      conftest$ac_exeext
8889  if test "${ac_cv_search_opendir+set}" = set; then
8890  break
8891fi
8892done
8893if test "${ac_cv_search_opendir+set}" = set; then
8894  :
8895else
8896  ac_cv_search_opendir=no
8897fi
8898rm conftest.$ac_ext
8899LIBS=$ac_func_search_save_LIBS
8900fi
8901{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8902echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8903ac_res=$ac_cv_search_opendir
8904if test "$ac_res" != no; then
8905  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8906
8907fi
8908
8909fi
8910
8911
8912for ac_header in dlfcn.h
8913do
8914as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8915if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8916  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8918if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8919  echo $ECHO_N "(cached) $ECHO_C" >&6
8920fi
8921ac_res=`eval echo '${'$as_ac_Header'}'`
8922	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8923echo "${ECHO_T}$ac_res" >&6; }
8924else
8925  # Is the header compilable?
8926{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8927echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8928cat >conftest.$ac_ext <<_ACEOF
8929/* confdefs.h.  */
8930_ACEOF
8931cat confdefs.h >>conftest.$ac_ext
8932cat >>conftest.$ac_ext <<_ACEOF
8933/* end confdefs.h.  */
8934$ac_includes_default
8935#include <$ac_header>
8936_ACEOF
8937rm -f conftest.$ac_objext
8938if { (ac_try="$ac_compile"
8939case "(($ac_try" in
8940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8941  *) ac_try_echo=$ac_try;;
8942esac
8943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8944  (eval "$ac_compile") 2>conftest.er1
8945  ac_status=$?
8946  grep -v '^ *+' conftest.er1 >conftest.err
8947  rm -f conftest.er1
8948  cat conftest.err >&5
8949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950  (exit $ac_status); } &&
8951	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8952  { (case "(($ac_try" in
8953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8954  *) ac_try_echo=$ac_try;;
8955esac
8956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8957  (eval "$ac_try") 2>&5
8958  ac_status=$?
8959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960  (exit $ac_status); }; } &&
8961	 { ac_try='test -s conftest.$ac_objext'
8962  { (case "(($ac_try" in
8963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8964  *) ac_try_echo=$ac_try;;
8965esac
8966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8967  (eval "$ac_try") 2>&5
8968  ac_status=$?
8969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970  (exit $ac_status); }; }; then
8971  ac_header_compiler=yes
8972else
8973  echo "$as_me: failed program was:" >&5
8974sed 's/^/| /' conftest.$ac_ext >&5
8975
8976	ac_header_compiler=no
8977fi
8978
8979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8980{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8981echo "${ECHO_T}$ac_header_compiler" >&6; }
8982
8983# Is the header present?
8984{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8985echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8986cat >conftest.$ac_ext <<_ACEOF
8987/* confdefs.h.  */
8988_ACEOF
8989cat confdefs.h >>conftest.$ac_ext
8990cat >>conftest.$ac_ext <<_ACEOF
8991/* end confdefs.h.  */
8992#include <$ac_header>
8993_ACEOF
8994if { (ac_try="$ac_cpp conftest.$ac_ext"
8995case "(($ac_try" in
8996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8997  *) ac_try_echo=$ac_try;;
8998esac
8999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9000  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9001  ac_status=$?
9002  grep -v '^ *+' conftest.er1 >conftest.err
9003  rm -f conftest.er1
9004  cat conftest.err >&5
9005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006  (exit $ac_status); } >/dev/null; then
9007  if test -s conftest.err; then
9008    ac_cpp_err=$ac_c_preproc_warn_flag
9009    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9010  else
9011    ac_cpp_err=
9012  fi
9013else
9014  ac_cpp_err=yes
9015fi
9016if test -z "$ac_cpp_err"; then
9017  ac_header_preproc=yes
9018else
9019  echo "$as_me: failed program was:" >&5
9020sed 's/^/| /' conftest.$ac_ext >&5
9021
9022  ac_header_preproc=no
9023fi
9024
9025rm -f conftest.err conftest.$ac_ext
9026{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9027echo "${ECHO_T}$ac_header_preproc" >&6; }
9028
9029# So?  What about this header?
9030case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9031  yes:no: )
9032    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9033echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9034    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9035echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9036    ac_header_preproc=yes
9037    ;;
9038  no:yes:* )
9039    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9040echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9041    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9042echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9043    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9044echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9045    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9046echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9047    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9048echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9049    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9050echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9051    ( cat <<\_ASBOX
9052## ----------------------------------- ##
9053## Report this to llvmbugs@cs.uiuc.edu ##
9054## ----------------------------------- ##
9055_ASBOX
9056     ) | sed "s/^/$as_me: WARNING:     /" >&2
9057    ;;
9058esac
9059{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9062  echo $ECHO_N "(cached) $ECHO_C" >&6
9063else
9064  eval "$as_ac_Header=\$ac_header_preproc"
9065fi
9066ac_res=`eval echo '${'$as_ac_Header'}'`
9067	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9068echo "${ECHO_T}$ac_res" >&6; }
9069
9070fi
9071if test `eval echo '${'$as_ac_Header'}'` = yes; then
9072  cat >>confdefs.h <<_ACEOF
9073#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9074_ACEOF
9075
9076fi
9077
9078done
9079
9080# Check whether --enable-ltdl-install was given.
9081if test "${enable_ltdl_install+set}" = set; then
9082  enableval=$enable_ltdl_install;
9083fi
9084
9085
9086
9087
9088if test x"${enable_ltdl_install-no}" != xno; then
9089  INSTALL_LTDL_TRUE=
9090  INSTALL_LTDL_FALSE='#'
9091else
9092  INSTALL_LTDL_TRUE='#'
9093  INSTALL_LTDL_FALSE=
9094fi
9095
9096
9097
9098if test x"${enable_ltdl_convenience-no}" != xno; then
9099  CONVENIENCE_LTDL_TRUE=
9100  CONVENIENCE_LTDL_FALSE='#'
9101else
9102  CONVENIENCE_LTDL_TRUE='#'
9103  CONVENIENCE_LTDL_FALSE=
9104fi
9105
9106
9107{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9108echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9109library_names_spec=
9110libname_spec='lib$name'
9111soname_spec=
9112shrext_cmds=".so"
9113postinstall_cmds=
9114postuninstall_cmds=
9115finish_cmds=
9116finish_eval=
9117shlibpath_var=
9118shlibpath_overrides_runpath=unknown
9119version_type=none
9120dynamic_linker="$host_os ld.so"
9121sys_lib_dlsearch_path_spec="/lib /usr/lib"
9122if test "$GCC" = yes; then
9123  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9124  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9125    # if the path contains ";" then we assume it to be the separator
9126    # otherwise default to the standard path separator (i.e. ":") - it is
9127    # assumed that no part of a normal pathname contains ";" but that should
9128    # okay in the real world where ";" in dirpaths is itself problematic.
9129    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9130  else
9131    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9132  fi
9133else
9134  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9135fi
9136need_lib_prefix=unknown
9137hardcode_into_libs=no
9138
9139# when you set need_version to no, make sure it does not cause -set_version
9140# flags to be left without arguments
9141need_version=unknown
9142
9143case $host_os in
9144aix3*)
9145  version_type=linux
9146  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9147  shlibpath_var=LIBPATH
9148
9149  # AIX 3 has no versioning support, so we append a major version to the name.
9150  soname_spec='${libname}${release}${shared_ext}$major'
9151  ;;
9152
9153aix4* | aix5*)
9154  version_type=linux
9155  need_lib_prefix=no
9156  need_version=no
9157  hardcode_into_libs=yes
9158  if test "$host_cpu" = ia64; then
9159    # AIX 5 supports IA64
9160    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9161    shlibpath_var=LD_LIBRARY_PATH
9162  else
9163    # With GCC up to 2.95.x, collect2 would create an import file
9164    # for dependence libraries.  The import file would start with
9165    # the line `#! .'.  This would cause the generated library to
9166    # depend on `.', always an invalid library.  This was fixed in
9167    # development snapshots of GCC prior to 3.0.
9168    case $host_os in
9169      aix4 | aix4.[01] | aix4.[01].*)
9170      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9171	   echo ' yes '
9172	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9173	:
9174      else
9175	can_build_shared=no
9176      fi
9177      ;;
9178    esac
9179    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9180    # soname into executable. Probably we can add versioning support to
9181    # collect2, so additional links can be useful in future.
9182    if test "$aix_use_runtimelinking" = yes; then
9183      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9184      # instead of lib<name>.a to let people know that these are not
9185      # typical AIX shared libraries.
9186      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187    else
9188      # We preserve .a as extension for shared libraries through AIX4.2
9189      # and later when we are not doing run time linking.
9190      library_names_spec='${libname}${release}.a $libname.a'
9191      soname_spec='${libname}${release}${shared_ext}$major'
9192    fi
9193    shlibpath_var=LIBPATH
9194  fi
9195  ;;
9196
9197amigaos*)
9198  library_names_spec='$libname.ixlibrary $libname.a'
9199  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9200  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'
9201  ;;
9202
9203beos*)
9204  library_names_spec='${libname}${shared_ext}'
9205  dynamic_linker="$host_os ld.so"
9206  shlibpath_var=LIBRARY_PATH
9207  ;;
9208
9209bsdi[45]*)
9210  version_type=linux
9211  need_version=no
9212  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9213  soname_spec='${libname}${release}${shared_ext}$major'
9214  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9215  shlibpath_var=LD_LIBRARY_PATH
9216  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9217  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9218  # the default ld.so.conf also contains /usr/contrib/lib and
9219  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9220  # libtool to hard-code these into programs
9221  ;;
9222
9223cygwin* | mingw* | pw32*)
9224  version_type=windows
9225  shrext_cmds=".dll"
9226  need_version=no
9227  need_lib_prefix=no
9228
9229  case $GCC,$host_os in
9230  yes,cygwin* | yes,mingw* | yes,pw32*)
9231    library_names_spec='$libname.dll.a'
9232    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9233    postinstall_cmds='base_file=`basename \${file}`~
9234      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9235      dldir=$destdir/`dirname \$dlpath`~
9236      test -d \$dldir || mkdir -p \$dldir~
9237      $install_prog $dir/$dlname \$dldir/$dlname~
9238      chmod a+x \$dldir/$dlname'
9239    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9240      dlpath=$dir/\$dldll~
9241       $rm \$dlpath'
9242    shlibpath_overrides_runpath=yes
9243
9244    case $host_os in
9245    cygwin*)
9246      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9247      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9248      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9249      ;;
9250    mingw*)
9251      # MinGW DLLs use traditional 'lib' prefix
9252      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9253      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9254      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9255        # It is most probably a Windows format PATH printed by
9256        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9257        # path with ; separators, and with drive letters. We can handle the
9258        # drive letters (cygwin fileutils understands them), so leave them,
9259        # especially as we might pass files found there to a mingw objdump,
9260        # which wouldn't understand a cygwinified path. Ahh.
9261        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9262      else
9263        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9264      fi
9265      ;;
9266    pw32*)
9267      # pw32 DLLs use 'pw' prefix rather than 'lib'
9268      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9269      ;;
9270    esac
9271    ;;
9272
9273  *)
9274    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9275    ;;
9276  esac
9277  dynamic_linker='Win32 ld.exe'
9278  # FIXME: first we should search . and the directory the executable is in
9279  shlibpath_var=PATH
9280  ;;
9281
9282darwin* | rhapsody*)
9283  dynamic_linker="$host_os dyld"
9284  version_type=darwin
9285  need_lib_prefix=no
9286  need_version=no
9287  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9288  soname_spec='${libname}${release}${major}$shared_ext'
9289  shlibpath_overrides_runpath=yes
9290  shlibpath_var=DYLD_LIBRARY_PATH
9291  shrext_cmds='.dylib'
9292  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9293  if test "$GCC" = yes; then
9294    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"`
9295  else
9296    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9297  fi
9298  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9299  ;;
9300
9301dgux*)
9302  version_type=linux
9303  need_lib_prefix=no
9304  need_version=no
9305  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9306  soname_spec='${libname}${release}${shared_ext}$major'
9307  shlibpath_var=LD_LIBRARY_PATH
9308  ;;
9309
9310freebsd1*)
9311  dynamic_linker=no
9312  ;;
9313
9314kfreebsd*-gnu)
9315  version_type=linux
9316  need_lib_prefix=no
9317  need_version=no
9318  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9319  soname_spec='${libname}${release}${shared_ext}$major'
9320  shlibpath_var=LD_LIBRARY_PATH
9321  shlibpath_overrides_runpath=no
9322  hardcode_into_libs=yes
9323  dynamic_linker='GNU ld.so'
9324  ;;
9325
9326freebsd* | dragonfly*)
9327  # DragonFly does not have aout.  When/if they implement a new
9328  # versioning mechanism, adjust this.
9329  if test -x /usr/bin/objformat; then
9330    objformat=`/usr/bin/objformat`
9331  else
9332    case $host_os in
9333    freebsd[123]*) objformat=aout ;;
9334    *) objformat=elf ;;
9335    esac
9336  fi
9337  version_type=freebsd-$objformat
9338  case $version_type in
9339    freebsd-elf*)
9340      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9341      need_version=no
9342      need_lib_prefix=no
9343      ;;
9344    freebsd-*)
9345      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9346      need_version=yes
9347      ;;
9348  esac
9349  shlibpath_var=LD_LIBRARY_PATH
9350  case $host_os in
9351  freebsd2*)
9352    shlibpath_overrides_runpath=yes
9353    ;;
9354  freebsd3.[01]* | freebsdelf3.[01]*)
9355    shlibpath_overrides_runpath=yes
9356    hardcode_into_libs=yes
9357    ;;
9358  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9359  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9360    shlibpath_overrides_runpath=no
9361    hardcode_into_libs=yes
9362    ;;
9363  freebsd*) # from 4.6 on
9364    shlibpath_overrides_runpath=yes
9365    hardcode_into_libs=yes
9366    ;;
9367  esac
9368  ;;
9369
9370gnu*)
9371  version_type=linux
9372  need_lib_prefix=no
9373  need_version=no
9374  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9375  soname_spec='${libname}${release}${shared_ext}$major'
9376  shlibpath_var=LD_LIBRARY_PATH
9377  hardcode_into_libs=yes
9378  ;;
9379
9380hpux9* | hpux10* | hpux11*)
9381  # Give a soname corresponding to the major version so that dld.sl refuses to
9382  # link against other versions.
9383  version_type=sunos
9384  need_lib_prefix=no
9385  need_version=no
9386  case $host_cpu in
9387  ia64*)
9388    shrext_cmds='.so'
9389    hardcode_into_libs=yes
9390    dynamic_linker="$host_os dld.so"
9391    shlibpath_var=LD_LIBRARY_PATH
9392    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9393    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9394    soname_spec='${libname}${release}${shared_ext}$major'
9395    if test "X$HPUX_IA64_MODE" = X32; then
9396      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9397    else
9398      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9399    fi
9400    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9401    ;;
9402   hppa*64*)
9403     shrext_cmds='.sl'
9404     hardcode_into_libs=yes
9405     dynamic_linker="$host_os dld.sl"
9406     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9407     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9408     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9409     soname_spec='${libname}${release}${shared_ext}$major'
9410     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9411     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9412     ;;
9413   *)
9414    shrext_cmds='.sl'
9415    dynamic_linker="$host_os dld.sl"
9416    shlibpath_var=SHLIB_PATH
9417    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9418    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9419    soname_spec='${libname}${release}${shared_ext}$major'
9420    ;;
9421  esac
9422  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9423  postinstall_cmds='chmod 555 $lib'
9424  ;;
9425
9426interix3*)
9427  version_type=linux
9428  need_lib_prefix=no
9429  need_version=no
9430  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9431  soname_spec='${libname}${release}${shared_ext}$major'
9432  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9433  shlibpath_var=LD_LIBRARY_PATH
9434  shlibpath_overrides_runpath=no
9435  hardcode_into_libs=yes
9436  ;;
9437
9438irix5* | irix6* | nonstopux*)
9439  case $host_os in
9440    nonstopux*) version_type=nonstopux ;;
9441    *)
9442	if test "$lt_cv_prog_gnu_ld" = yes; then
9443		version_type=linux
9444	else
9445		version_type=irix
9446	fi ;;
9447  esac
9448  need_lib_prefix=no
9449  need_version=no
9450  soname_spec='${libname}${release}${shared_ext}$major'
9451  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9452  case $host_os in
9453  irix5* | nonstopux*)
9454    libsuff= shlibsuff=
9455    ;;
9456  *)
9457    case $LD in # libtool.m4 will add one of these switches to LD
9458    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9459      libsuff= shlibsuff= libmagic=32-bit;;
9460    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9461      libsuff=32 shlibsuff=N32 libmagic=N32;;
9462    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9463      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9464    *) libsuff= shlibsuff= libmagic=never-match;;
9465    esac
9466    ;;
9467  esac
9468  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9469  shlibpath_overrides_runpath=no
9470  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9471  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9472  hardcode_into_libs=yes
9473  ;;
9474
9475# No shared lib support for Linux oldld, aout, or coff.
9476linux*oldld* | linux*aout* | linux*coff*)
9477  dynamic_linker=no
9478  ;;
9479
9480# This must be Linux ELF.
9481linux*)
9482  version_type=linux
9483  need_lib_prefix=no
9484  need_version=no
9485  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9486  soname_spec='${libname}${release}${shared_ext}$major'
9487  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9488  shlibpath_var=LD_LIBRARY_PATH
9489  shlibpath_overrides_runpath=no
9490  # This implies no fast_install, which is unacceptable.
9491  # Some rework will be needed to allow for fast_install
9492  # before this can be enabled.
9493  hardcode_into_libs=yes
9494
9495  # Append ld.so.conf contents to the search path
9496  if test -f /etc/ld.so.conf; then
9497    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' ' '`
9498    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9499  fi
9500
9501  # We used to test for /lib/ld.so.1 and disable shared libraries on
9502  # powerpc, because MkLinux only supported shared libraries with the
9503  # GNU dynamic linker.  Since this was broken with cross compilers,
9504  # most powerpc-linux boxes support dynamic linking these days and
9505  # people can always --disable-shared, the test was removed, and we
9506  # assume the GNU/Linux dynamic linker is in use.
9507  dynamic_linker='GNU/Linux ld.so'
9508  ;;
9509
9510knetbsd*-gnu)
9511  version_type=linux
9512  need_lib_prefix=no
9513  need_version=no
9514  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9515  soname_spec='${libname}${release}${shared_ext}$major'
9516  shlibpath_var=LD_LIBRARY_PATH
9517  shlibpath_overrides_runpath=no
9518  hardcode_into_libs=yes
9519  dynamic_linker='GNU ld.so'
9520  ;;
9521
9522netbsd*)
9523  version_type=sunos
9524  need_lib_prefix=no
9525  need_version=no
9526  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9527    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9528    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9529    dynamic_linker='NetBSD (a.out) ld.so'
9530  else
9531    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9532    soname_spec='${libname}${release}${shared_ext}$major'
9533    dynamic_linker='NetBSD ld.elf_so'
9534  fi
9535  shlibpath_var=LD_LIBRARY_PATH
9536  shlibpath_overrides_runpath=yes
9537  hardcode_into_libs=yes
9538  ;;
9539
9540newsos6)
9541  version_type=linux
9542  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543  shlibpath_var=LD_LIBRARY_PATH
9544  shlibpath_overrides_runpath=yes
9545  ;;
9546
9547nto-qnx*)
9548  version_type=linux
9549  need_lib_prefix=no
9550  need_version=no
9551  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9552  soname_spec='${libname}${release}${shared_ext}$major'
9553  shlibpath_var=LD_LIBRARY_PATH
9554  shlibpath_overrides_runpath=yes
9555  ;;
9556
9557openbsd*)
9558  version_type=sunos
9559  sys_lib_dlsearch_path_spec="/usr/lib"
9560  need_lib_prefix=no
9561  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9562  case $host_os in
9563    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9564    *)                         need_version=no  ;;
9565  esac
9566  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9567  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9568  shlibpath_var=LD_LIBRARY_PATH
9569  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9570    case $host_os in
9571      openbsd2.[89] | openbsd2.[89].*)
9572	shlibpath_overrides_runpath=no
9573	;;
9574      *)
9575	shlibpath_overrides_runpath=yes
9576	;;
9577      esac
9578  else
9579    shlibpath_overrides_runpath=yes
9580  fi
9581  ;;
9582
9583os2*)
9584  libname_spec='$name'
9585  shrext_cmds=".dll"
9586  need_lib_prefix=no
9587  library_names_spec='$libname${shared_ext} $libname.a'
9588  dynamic_linker='OS/2 ld.exe'
9589  shlibpath_var=LIBPATH
9590  ;;
9591
9592osf3* | osf4* | osf5*)
9593  version_type=osf
9594  need_lib_prefix=no
9595  need_version=no
9596  soname_spec='${libname}${release}${shared_ext}$major'
9597  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9598  shlibpath_var=LD_LIBRARY_PATH
9599  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9600  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9601  ;;
9602
9603solaris*)
9604  version_type=linux
9605  need_lib_prefix=no
9606  need_version=no
9607  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9608  soname_spec='${libname}${release}${shared_ext}$major'
9609  shlibpath_var=LD_LIBRARY_PATH
9610  shlibpath_overrides_runpath=yes
9611  hardcode_into_libs=yes
9612  # ldd complains unless libraries are executable
9613  postinstall_cmds='chmod +x $lib'
9614  ;;
9615
9616sunos4*)
9617  version_type=sunos
9618  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9619  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9620  shlibpath_var=LD_LIBRARY_PATH
9621  shlibpath_overrides_runpath=yes
9622  if test "$with_gnu_ld" = yes; then
9623    need_lib_prefix=no
9624  fi
9625  need_version=yes
9626  ;;
9627
9628sysv4 | sysv4.3*)
9629  version_type=linux
9630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9631  soname_spec='${libname}${release}${shared_ext}$major'
9632  shlibpath_var=LD_LIBRARY_PATH
9633  case $host_vendor in
9634    sni)
9635      shlibpath_overrides_runpath=no
9636      need_lib_prefix=no
9637      export_dynamic_flag_spec='${wl}-Blargedynsym'
9638      runpath_var=LD_RUN_PATH
9639      ;;
9640    siemens)
9641      need_lib_prefix=no
9642      ;;
9643    motorola)
9644      need_lib_prefix=no
9645      need_version=no
9646      shlibpath_overrides_runpath=no
9647      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9648      ;;
9649  esac
9650  ;;
9651
9652sysv4*MP*)
9653  if test -d /usr/nec ;then
9654    version_type=linux
9655    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9656    soname_spec='$libname${shared_ext}.$major'
9657    shlibpath_var=LD_LIBRARY_PATH
9658  fi
9659  ;;
9660
9661sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9662  version_type=freebsd-elf
9663  need_lib_prefix=no
9664  need_version=no
9665  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9666  soname_spec='${libname}${release}${shared_ext}$major'
9667  shlibpath_var=LD_LIBRARY_PATH
9668  hardcode_into_libs=yes
9669  if test "$with_gnu_ld" = yes; then
9670    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9671    shlibpath_overrides_runpath=no
9672  else
9673    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9674    shlibpath_overrides_runpath=yes
9675    case $host_os in
9676      sco3.2v5*)
9677        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9678	;;
9679    esac
9680  fi
9681  sys_lib_dlsearch_path_spec='/usr/lib'
9682  ;;
9683
9684uts4*)
9685  version_type=linux
9686  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9687  soname_spec='${libname}${release}${shared_ext}$major'
9688  shlibpath_var=LD_LIBRARY_PATH
9689  ;;
9690
9691*)
9692  dynamic_linker=no
9693  ;;
9694esac
9695{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9696echo "${ECHO_T}$dynamic_linker" >&6; }
9697test "$dynamic_linker" = no && can_build_shared=no
9698
9699variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9700if test "$GCC" = yes; then
9701  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9702fi
9703
9704
9705{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9706echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9707if test "${libltdl_cv_shlibext+set}" = set; then
9708  echo $ECHO_N "(cached) $ECHO_C" >&6
9709else
9710
9711module=yes
9712eval libltdl_cv_shlibext=$shrext_cmds
9713
9714fi
9715{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9716echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9717if test -n "$libltdl_cv_shlibext"; then
9718
9719cat >>confdefs.h <<_ACEOF
9720#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9721_ACEOF
9722
9723fi
9724
9725
9726{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9727echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9728if test "${libltdl_cv_shlibpath_var+set}" = set; then
9729  echo $ECHO_N "(cached) $ECHO_C" >&6
9730else
9731  libltdl_cv_shlibpath_var="$shlibpath_var"
9732fi
9733{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9734echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9735if test -n "$libltdl_cv_shlibpath_var"; then
9736
9737cat >>confdefs.h <<_ACEOF
9738#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9739_ACEOF
9740
9741fi
9742
9743
9744{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9745echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9746if test "${libltdl_cv_sys_search_path+set}" = set; then
9747  echo $ECHO_N "(cached) $ECHO_C" >&6
9748else
9749  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9750fi
9751{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9752echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9753if test -n "$libltdl_cv_sys_search_path"; then
9754  sys_search_path=
9755  for dir in $libltdl_cv_sys_search_path; do
9756    if test -z "$sys_search_path"; then
9757      sys_search_path="$dir"
9758    else
9759      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9760    fi
9761  done
9762
9763cat >>confdefs.h <<_ACEOF
9764#define LTDL_SYSSEARCHPATH "$sys_search_path"
9765_ACEOF
9766
9767fi
9768
9769{ echo "$as_me:$LINENO: checking for objdir" >&5
9770echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9771if test "${libltdl_cv_objdir+set}" = set; then
9772  echo $ECHO_N "(cached) $ECHO_C" >&6
9773else
9774  libltdl_cv_objdir="$objdir"
9775  if test -n "$objdir"; then
9776    :
9777  else
9778    rm -f .libs 2>/dev/null
9779    mkdir .libs 2>/dev/null
9780    if test -d .libs; then
9781      libltdl_cv_objdir=.libs
9782    else
9783      # MS-DOS does not allow filenames that begin with a dot.
9784      libltdl_cv_objdir=_libs
9785    fi
9786  rmdir .libs 2>/dev/null
9787  fi
9788
9789fi
9790{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9791echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9792
9793cat >>confdefs.h <<_ACEOF
9794#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9795_ACEOF
9796
9797
9798
9799
9800
9801
9802# Check for command to grab the raw symbol name followed by C symbol from nm.
9803{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9804echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9805if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9806  echo $ECHO_N "(cached) $ECHO_C" >&6
9807else
9808
9809# These are sane defaults that work on at least a few old systems.
9810# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9811
9812# Character class describing NM global symbol codes.
9813symcode='[BCDEGRST]'
9814
9815# Regexp to match symbols that can be accessed directly from C.
9816sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9817
9818# Transform an extracted symbol line into a proper C declaration
9819lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9820
9821# Transform an extracted symbol line into symbol name and symbol address
9822lt_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'"
9823
9824# Define system-specific variables.
9825case $host_os in
9826aix*)
9827  symcode='[BCDT]'
9828  ;;
9829cygwin* | mingw* | pw32*)
9830  symcode='[ABCDGISTW]'
9831  ;;
9832hpux*) # Its linker distinguishes data from code symbols
9833  if test "$host_cpu" = ia64; then
9834    symcode='[ABCDEGRST]'
9835  fi
9836  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9837  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'"
9838  ;;
9839linux*)
9840  if test "$host_cpu" = ia64; then
9841    symcode='[ABCDGIRSTW]'
9842    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9843    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'"
9844  fi
9845  ;;
9846irix* | nonstopux*)
9847  symcode='[BCDEGRST]'
9848  ;;
9849osf*)
9850  symcode='[BCDEGQRST]'
9851  ;;
9852solaris*)
9853  symcode='[BDRT]'
9854  ;;
9855sco3.2v5*)
9856  symcode='[DT]'
9857  ;;
9858sysv4.2uw2*)
9859  symcode='[DT]'
9860  ;;
9861sysv5* | sco5v6* | unixware* | OpenUNIX*)
9862  symcode='[ABDT]'
9863  ;;
9864sysv4)
9865  symcode='[DFNSTU]'
9866  ;;
9867esac
9868
9869# Handle CRLF in mingw tool chain
9870opt_cr=
9871case $build_os in
9872mingw*)
9873  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9874  ;;
9875esac
9876
9877# If we're using GNU nm, then use its standard symbol codes.
9878case `$NM -V 2>&1` in
9879*GNU* | *'with BFD'*)
9880  symcode='[ABCDGIRSTW]' ;;
9881esac
9882
9883# Try without a prefix undercore, then with it.
9884for ac_symprfx in "" "_"; do
9885
9886  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9887  symxfrm="\\1 $ac_symprfx\\2 \\2"
9888
9889  # Write the raw and C identifiers.
9890  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9891
9892  # Check to see that the pipe works correctly.
9893  pipe_works=no
9894
9895  rm -f conftest*
9896  cat > conftest.$ac_ext <<EOF
9897#ifdef __cplusplus
9898extern "C" {
9899#endif
9900char nm_test_var;
9901void nm_test_func(){}
9902#ifdef __cplusplus
9903}
9904#endif
9905int main(){nm_test_var='a';nm_test_func();return(0);}
9906EOF
9907
9908  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9909  (eval $ac_compile) 2>&5
9910  ac_status=$?
9911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912  (exit $ac_status); }; then
9913    # Now try to grab the symbols.
9914    nlist=conftest.nm
9915    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9916  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9917  ac_status=$?
9918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919  (exit $ac_status); } && test -s "$nlist"; then
9920      # Try sorting and uniquifying the output.
9921      if sort "$nlist" | uniq > "$nlist"T; then
9922	mv -f "$nlist"T "$nlist"
9923      else
9924	rm -f "$nlist"T
9925      fi
9926
9927      # Make sure that we snagged all the symbols we need.
9928      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9929	if grep ' nm_test_func$' "$nlist" >/dev/null; then
9930	  cat <<EOF > conftest.$ac_ext
9931#ifdef __cplusplus
9932extern "C" {
9933#endif
9934
9935EOF
9936	  # Now generate the symbol file.
9937	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9938
9939	  cat <<EOF >> conftest.$ac_ext
9940#if defined (__STDC__) && __STDC__
9941# define lt_ptr_t void *
9942#else
9943# define lt_ptr_t char *
9944# define const
9945#endif
9946
9947/* The mapping between symbol names and symbols. */
9948const struct {
9949  const char *name;
9950  lt_ptr_t address;
9951}
9952lt_preloaded_symbols[] =
9953{
9954EOF
9955	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9956	  cat <<\EOF >> conftest.$ac_ext
9957  {0, (lt_ptr_t) 0}
9958};
9959
9960#ifdef __cplusplus
9961}
9962#endif
9963EOF
9964	  # Now try linking the two files.
9965	  mv conftest.$ac_objext conftstm.$ac_objext
9966	  lt_save_LIBS="$LIBS"
9967	  lt_save_CFLAGS="$CFLAGS"
9968	  LIBS="conftstm.$ac_objext"
9969	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9970	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9971  (eval $ac_link) 2>&5
9972  ac_status=$?
9973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9975	    pipe_works=yes
9976	  fi
9977	  LIBS="$lt_save_LIBS"
9978	  CFLAGS="$lt_save_CFLAGS"
9979	else
9980	  echo "cannot find nm_test_func in $nlist" >&5
9981	fi
9982      else
9983	echo "cannot find nm_test_var in $nlist" >&5
9984      fi
9985    else
9986      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9987    fi
9988  else
9989    echo "$progname: failed program was:" >&5
9990    cat conftest.$ac_ext >&5
9991  fi
9992  rm -f conftest* conftst*
9993
9994  # Do not use the global_symbol_pipe unless it works.
9995  if test "$pipe_works" = yes; then
9996    break
9997  else
9998    lt_cv_sys_global_symbol_pipe=
9999  fi
10000done
10001
10002fi
10003
10004if test -z "$lt_cv_sys_global_symbol_pipe"; then
10005  lt_cv_sys_global_symbol_to_cdecl=
10006fi
10007if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10008  { echo "$as_me:$LINENO: result: failed" >&5
10009echo "${ECHO_T}failed" >&6; }
10010else
10011  { echo "$as_me:$LINENO: result: ok" >&5
10012echo "${ECHO_T}ok" >&6; }
10013fi
10014
10015
10016{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10017echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10018if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10019  echo $ECHO_N "(cached) $ECHO_C" >&6
10020else
10021  if test -n "$lt_cv_sys_global_symbol_pipe"; then
10022    libltdl_cv_preloaded_symbols=yes
10023  else
10024    libltdl_cv_preloaded_symbols=no
10025  fi
10026
10027fi
10028{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10029echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10030if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10031
10032cat >>confdefs.h <<\_ACEOF
10033#define HAVE_PRELOADED_SYMBOLS 1
10034_ACEOF
10035
10036fi
10037
10038LIBADD_DL=
10039
10040ac_ext=c
10041ac_cpp='$CPP $CPPFLAGS'
10042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10044ac_compiler_gnu=$ac_cv_c_compiler_gnu
10045
10046
10047{ echo "$as_me:$LINENO: checking for shl_load" >&5
10048echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10049if test "${ac_cv_func_shl_load+set}" = set; then
10050  echo $ECHO_N "(cached) $ECHO_C" >&6
10051else
10052  cat >conftest.$ac_ext <<_ACEOF
10053/* confdefs.h.  */
10054_ACEOF
10055cat confdefs.h >>conftest.$ac_ext
10056cat >>conftest.$ac_ext <<_ACEOF
10057/* end confdefs.h.  */
10058/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10059   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10060#define shl_load innocuous_shl_load
10061
10062/* System header to define __stub macros and hopefully few prototypes,
10063    which can conflict with char shl_load (); below.
10064    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10065    <limits.h> exists even on freestanding compilers.  */
10066
10067#ifdef __STDC__
10068# include <limits.h>
10069#else
10070# include <assert.h>
10071#endif
10072
10073#undef shl_load
10074
10075/* Override any GCC internal prototype to avoid an error.
10076   Use char because int might match the return type of a GCC
10077   builtin and then its argument prototype would still apply.  */
10078#ifdef __cplusplus
10079extern "C"
10080#endif
10081char shl_load ();
10082/* The GNU C library defines this for functions which it implements
10083    to always fail with ENOSYS.  Some functions are actually named
10084    something starting with __ and the normal name is an alias.  */
10085#if defined __stub_shl_load || defined __stub___shl_load
10086choke me
10087#endif
10088
10089int
10090main ()
10091{
10092return shl_load ();
10093  ;
10094  return 0;
10095}
10096_ACEOF
10097rm -f conftest.$ac_objext conftest$ac_exeext
10098if { (ac_try="$ac_link"
10099case "(($ac_try" in
10100  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10101  *) ac_try_echo=$ac_try;;
10102esac
10103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10104  (eval "$ac_link") 2>conftest.er1
10105  ac_status=$?
10106  grep -v '^ *+' conftest.er1 >conftest.err
10107  rm -f conftest.er1
10108  cat conftest.err >&5
10109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110  (exit $ac_status); } &&
10111	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10112  { (case "(($ac_try" in
10113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10114  *) ac_try_echo=$ac_try;;
10115esac
10116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10117  (eval "$ac_try") 2>&5
10118  ac_status=$?
10119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120  (exit $ac_status); }; } &&
10121	 { ac_try='test -s conftest$ac_exeext'
10122  { (case "(($ac_try" in
10123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10124  *) ac_try_echo=$ac_try;;
10125esac
10126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10127  (eval "$ac_try") 2>&5
10128  ac_status=$?
10129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130  (exit $ac_status); }; }; then
10131  ac_cv_func_shl_load=yes
10132else
10133  echo "$as_me: failed program was:" >&5
10134sed 's/^/| /' conftest.$ac_ext >&5
10135
10136	ac_cv_func_shl_load=no
10137fi
10138
10139rm -f core conftest.err conftest.$ac_objext \
10140      conftest$ac_exeext conftest.$ac_ext
10141fi
10142{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10143echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10144if test $ac_cv_func_shl_load = yes; then
10145
10146cat >>confdefs.h <<\_ACEOF
10147#define HAVE_SHL_LOAD 1
10148_ACEOF
10149
10150else
10151  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10152echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10153if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10154  echo $ECHO_N "(cached) $ECHO_C" >&6
10155else
10156  ac_check_lib_save_LIBS=$LIBS
10157LIBS="-ldld  $LIBS"
10158cat >conftest.$ac_ext <<_ACEOF
10159/* confdefs.h.  */
10160_ACEOF
10161cat confdefs.h >>conftest.$ac_ext
10162cat >>conftest.$ac_ext <<_ACEOF
10163/* end confdefs.h.  */
10164
10165/* Override any GCC internal prototype to avoid an error.
10166   Use char because int might match the return type of a GCC
10167   builtin and then its argument prototype would still apply.  */
10168#ifdef __cplusplus
10169extern "C"
10170#endif
10171char shl_load ();
10172int
10173main ()
10174{
10175return shl_load ();
10176  ;
10177  return 0;
10178}
10179_ACEOF
10180rm -f conftest.$ac_objext conftest$ac_exeext
10181if { (ac_try="$ac_link"
10182case "(($ac_try" in
10183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10184  *) ac_try_echo=$ac_try;;
10185esac
10186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10187  (eval "$ac_link") 2>conftest.er1
10188  ac_status=$?
10189  grep -v '^ *+' conftest.er1 >conftest.err
10190  rm -f conftest.er1
10191  cat conftest.err >&5
10192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193  (exit $ac_status); } &&
10194	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10195  { (case "(($ac_try" in
10196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197  *) ac_try_echo=$ac_try;;
10198esac
10199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200  (eval "$ac_try") 2>&5
10201  ac_status=$?
10202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203  (exit $ac_status); }; } &&
10204	 { ac_try='test -s conftest$ac_exeext'
10205  { (case "(($ac_try" in
10206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207  *) ac_try_echo=$ac_try;;
10208esac
10209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210  (eval "$ac_try") 2>&5
10211  ac_status=$?
10212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213  (exit $ac_status); }; }; then
10214  ac_cv_lib_dld_shl_load=yes
10215else
10216  echo "$as_me: failed program was:" >&5
10217sed 's/^/| /' conftest.$ac_ext >&5
10218
10219	ac_cv_lib_dld_shl_load=no
10220fi
10221
10222rm -f core conftest.err conftest.$ac_objext \
10223      conftest$ac_exeext conftest.$ac_ext
10224LIBS=$ac_check_lib_save_LIBS
10225fi
10226{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10227echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10228if test $ac_cv_lib_dld_shl_load = yes; then
10229
10230cat >>confdefs.h <<\_ACEOF
10231#define HAVE_SHL_LOAD 1
10232_ACEOF
10233
10234	LIBADD_DL="$LIBADD_DL -ldld"
10235else
10236  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10237echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10238if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10239  echo $ECHO_N "(cached) $ECHO_C" >&6
10240else
10241  ac_check_lib_save_LIBS=$LIBS
10242LIBS="-ldl  $LIBS"
10243cat >conftest.$ac_ext <<_ACEOF
10244/* confdefs.h.  */
10245_ACEOF
10246cat confdefs.h >>conftest.$ac_ext
10247cat >>conftest.$ac_ext <<_ACEOF
10248/* end confdefs.h.  */
10249
10250/* Override any GCC internal prototype to avoid an error.
10251   Use char because int might match the return type of a GCC
10252   builtin and then its argument prototype would still apply.  */
10253#ifdef __cplusplus
10254extern "C"
10255#endif
10256char dlopen ();
10257int
10258main ()
10259{
10260return dlopen ();
10261  ;
10262  return 0;
10263}
10264_ACEOF
10265rm -f conftest.$ac_objext conftest$ac_exeext
10266if { (ac_try="$ac_link"
10267case "(($ac_try" in
10268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10269  *) ac_try_echo=$ac_try;;
10270esac
10271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10272  (eval "$ac_link") 2>conftest.er1
10273  ac_status=$?
10274  grep -v '^ *+' conftest.er1 >conftest.err
10275  rm -f conftest.er1
10276  cat conftest.err >&5
10277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278  (exit $ac_status); } &&
10279	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10280  { (case "(($ac_try" in
10281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10282  *) ac_try_echo=$ac_try;;
10283esac
10284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10285  (eval "$ac_try") 2>&5
10286  ac_status=$?
10287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288  (exit $ac_status); }; } &&
10289	 { ac_try='test -s conftest$ac_exeext'
10290  { (case "(($ac_try" in
10291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10292  *) ac_try_echo=$ac_try;;
10293esac
10294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10295  (eval "$ac_try") 2>&5
10296  ac_status=$?
10297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298  (exit $ac_status); }; }; then
10299  ac_cv_lib_dl_dlopen=yes
10300else
10301  echo "$as_me: failed program was:" >&5
10302sed 's/^/| /' conftest.$ac_ext >&5
10303
10304	ac_cv_lib_dl_dlopen=no
10305fi
10306
10307rm -f core conftest.err conftest.$ac_objext \
10308      conftest$ac_exeext conftest.$ac_ext
10309LIBS=$ac_check_lib_save_LIBS
10310fi
10311{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10312echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10313if test $ac_cv_lib_dl_dlopen = yes; then
10314
10315cat >>confdefs.h <<\_ACEOF
10316#define HAVE_LIBDL 1
10317_ACEOF
10318
10319	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10320else
10321  cat >conftest.$ac_ext <<_ACEOF
10322/* confdefs.h.  */
10323_ACEOF
10324cat confdefs.h >>conftest.$ac_ext
10325cat >>conftest.$ac_ext <<_ACEOF
10326/* end confdefs.h.  */
10327#if HAVE_DLFCN_H
10328#  include <dlfcn.h>
10329#endif
10330
10331int
10332main ()
10333{
10334dlopen(0, 0);
10335  ;
10336  return 0;
10337}
10338_ACEOF
10339rm -f conftest.$ac_objext conftest$ac_exeext
10340if { (ac_try="$ac_link"
10341case "(($ac_try" in
10342  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10343  *) ac_try_echo=$ac_try;;
10344esac
10345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10346  (eval "$ac_link") 2>conftest.er1
10347  ac_status=$?
10348  grep -v '^ *+' conftest.er1 >conftest.err
10349  rm -f conftest.er1
10350  cat conftest.err >&5
10351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352  (exit $ac_status); } &&
10353	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10354  { (case "(($ac_try" in
10355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10356  *) ac_try_echo=$ac_try;;
10357esac
10358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10359  (eval "$ac_try") 2>&5
10360  ac_status=$?
10361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362  (exit $ac_status); }; } &&
10363	 { ac_try='test -s conftest$ac_exeext'
10364  { (case "(($ac_try" in
10365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10366  *) ac_try_echo=$ac_try;;
10367esac
10368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10369  (eval "$ac_try") 2>&5
10370  ac_status=$?
10371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372  (exit $ac_status); }; }; then
10373
10374cat >>confdefs.h <<\_ACEOF
10375#define HAVE_LIBDL 1
10376_ACEOF
10377 libltdl_cv_func_dlopen="yes"
10378else
10379  echo "$as_me: failed program was:" >&5
10380sed 's/^/| /' conftest.$ac_ext >&5
10381
10382	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10383echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10384if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10385  echo $ECHO_N "(cached) $ECHO_C" >&6
10386else
10387  ac_check_lib_save_LIBS=$LIBS
10388LIBS="-lsvld  $LIBS"
10389cat >conftest.$ac_ext <<_ACEOF
10390/* confdefs.h.  */
10391_ACEOF
10392cat confdefs.h >>conftest.$ac_ext
10393cat >>conftest.$ac_ext <<_ACEOF
10394/* end confdefs.h.  */
10395
10396/* Override any GCC internal prototype to avoid an error.
10397   Use char because int might match the return type of a GCC
10398   builtin and then its argument prototype would still apply.  */
10399#ifdef __cplusplus
10400extern "C"
10401#endif
10402char dlopen ();
10403int
10404main ()
10405{
10406return dlopen ();
10407  ;
10408  return 0;
10409}
10410_ACEOF
10411rm -f conftest.$ac_objext conftest$ac_exeext
10412if { (ac_try="$ac_link"
10413case "(($ac_try" in
10414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415  *) ac_try_echo=$ac_try;;
10416esac
10417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418  (eval "$ac_link") 2>conftest.er1
10419  ac_status=$?
10420  grep -v '^ *+' conftest.er1 >conftest.err
10421  rm -f conftest.er1
10422  cat conftest.err >&5
10423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424  (exit $ac_status); } &&
10425	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10426  { (case "(($ac_try" in
10427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10428  *) ac_try_echo=$ac_try;;
10429esac
10430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10431  (eval "$ac_try") 2>&5
10432  ac_status=$?
10433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434  (exit $ac_status); }; } &&
10435	 { ac_try='test -s conftest$ac_exeext'
10436  { (case "(($ac_try" in
10437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10438  *) ac_try_echo=$ac_try;;
10439esac
10440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10441  (eval "$ac_try") 2>&5
10442  ac_status=$?
10443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444  (exit $ac_status); }; }; then
10445  ac_cv_lib_svld_dlopen=yes
10446else
10447  echo "$as_me: failed program was:" >&5
10448sed 's/^/| /' conftest.$ac_ext >&5
10449
10450	ac_cv_lib_svld_dlopen=no
10451fi
10452
10453rm -f core conftest.err conftest.$ac_objext \
10454      conftest$ac_exeext conftest.$ac_ext
10455LIBS=$ac_check_lib_save_LIBS
10456fi
10457{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10458echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10459if test $ac_cv_lib_svld_dlopen = yes; then
10460
10461cat >>confdefs.h <<\_ACEOF
10462#define HAVE_LIBDL 1
10463_ACEOF
10464
10465	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10466else
10467  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10468echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10469if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10470  echo $ECHO_N "(cached) $ECHO_C" >&6
10471else
10472  ac_check_lib_save_LIBS=$LIBS
10473LIBS="-ldld  $LIBS"
10474cat >conftest.$ac_ext <<_ACEOF
10475/* confdefs.h.  */
10476_ACEOF
10477cat confdefs.h >>conftest.$ac_ext
10478cat >>conftest.$ac_ext <<_ACEOF
10479/* end confdefs.h.  */
10480
10481/* Override any GCC internal prototype to avoid an error.
10482   Use char because int might match the return type of a GCC
10483   builtin and then its argument prototype would still apply.  */
10484#ifdef __cplusplus
10485extern "C"
10486#endif
10487char dld_link ();
10488int
10489main ()
10490{
10491return dld_link ();
10492  ;
10493  return 0;
10494}
10495_ACEOF
10496rm -f conftest.$ac_objext conftest$ac_exeext
10497if { (ac_try="$ac_link"
10498case "(($ac_try" in
10499  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10500  *) ac_try_echo=$ac_try;;
10501esac
10502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10503  (eval "$ac_link") 2>conftest.er1
10504  ac_status=$?
10505  grep -v '^ *+' conftest.er1 >conftest.err
10506  rm -f conftest.er1
10507  cat conftest.err >&5
10508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509  (exit $ac_status); } &&
10510	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10511  { (case "(($ac_try" in
10512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513  *) ac_try_echo=$ac_try;;
10514esac
10515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10516  (eval "$ac_try") 2>&5
10517  ac_status=$?
10518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519  (exit $ac_status); }; } &&
10520	 { ac_try='test -s conftest$ac_exeext'
10521  { (case "(($ac_try" in
10522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10523  *) ac_try_echo=$ac_try;;
10524esac
10525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10526  (eval "$ac_try") 2>&5
10527  ac_status=$?
10528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529  (exit $ac_status); }; }; then
10530  ac_cv_lib_dld_dld_link=yes
10531else
10532  echo "$as_me: failed program was:" >&5
10533sed 's/^/| /' conftest.$ac_ext >&5
10534
10535	ac_cv_lib_dld_dld_link=no
10536fi
10537
10538rm -f core conftest.err conftest.$ac_objext \
10539      conftest$ac_exeext conftest.$ac_ext
10540LIBS=$ac_check_lib_save_LIBS
10541fi
10542{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10543echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10544if test $ac_cv_lib_dld_dld_link = yes; then
10545
10546cat >>confdefs.h <<\_ACEOF
10547#define HAVE_DLD 1
10548_ACEOF
10549
10550	 	LIBADD_DL="$LIBADD_DL -ldld"
10551else
10552  { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10553echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10554if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10555  echo $ECHO_N "(cached) $ECHO_C" >&6
10556else
10557  cat >conftest.$ac_ext <<_ACEOF
10558/* confdefs.h.  */
10559_ACEOF
10560cat confdefs.h >>conftest.$ac_ext
10561cat >>conftest.$ac_ext <<_ACEOF
10562/* end confdefs.h.  */
10563/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10564   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10565#define _dyld_func_lookup innocuous__dyld_func_lookup
10566
10567/* System header to define __stub macros and hopefully few prototypes,
10568    which can conflict with char _dyld_func_lookup (); below.
10569    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10570    <limits.h> exists even on freestanding compilers.  */
10571
10572#ifdef __STDC__
10573# include <limits.h>
10574#else
10575# include <assert.h>
10576#endif
10577
10578#undef _dyld_func_lookup
10579
10580/* Override any GCC internal prototype to avoid an error.
10581   Use char because int might match the return type of a GCC
10582   builtin and then its argument prototype would still apply.  */
10583#ifdef __cplusplus
10584extern "C"
10585#endif
10586char _dyld_func_lookup ();
10587/* The GNU C library defines this for functions which it implements
10588    to always fail with ENOSYS.  Some functions are actually named
10589    something starting with __ and the normal name is an alias.  */
10590#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10591choke me
10592#endif
10593
10594int
10595main ()
10596{
10597return _dyld_func_lookup ();
10598  ;
10599  return 0;
10600}
10601_ACEOF
10602rm -f conftest.$ac_objext conftest$ac_exeext
10603if { (ac_try="$ac_link"
10604case "(($ac_try" in
10605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10606  *) ac_try_echo=$ac_try;;
10607esac
10608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10609  (eval "$ac_link") 2>conftest.er1
10610  ac_status=$?
10611  grep -v '^ *+' conftest.er1 >conftest.err
10612  rm -f conftest.er1
10613  cat conftest.err >&5
10614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615  (exit $ac_status); } &&
10616	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10617  { (case "(($ac_try" in
10618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10619  *) ac_try_echo=$ac_try;;
10620esac
10621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10622  (eval "$ac_try") 2>&5
10623  ac_status=$?
10624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625  (exit $ac_status); }; } &&
10626	 { ac_try='test -s conftest$ac_exeext'
10627  { (case "(($ac_try" in
10628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10629  *) ac_try_echo=$ac_try;;
10630esac
10631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10632  (eval "$ac_try") 2>&5
10633  ac_status=$?
10634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635  (exit $ac_status); }; }; then
10636  ac_cv_func__dyld_func_lookup=yes
10637else
10638  echo "$as_me: failed program was:" >&5
10639sed 's/^/| /' conftest.$ac_ext >&5
10640
10641	ac_cv_func__dyld_func_lookup=no
10642fi
10643
10644rm -f core conftest.err conftest.$ac_objext \
10645      conftest$ac_exeext conftest.$ac_ext
10646fi
10647{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10648echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10649if test $ac_cv_func__dyld_func_lookup = yes; then
10650
10651cat >>confdefs.h <<\_ACEOF
10652#define HAVE_DYLD 1
10653_ACEOF
10654
10655fi
10656
10657
10658fi
10659
10660
10661fi
10662
10663
10664fi
10665
10666rm -f core conftest.err conftest.$ac_objext \
10667      conftest$ac_exeext conftest.$ac_ext
10668
10669fi
10670
10671
10672fi
10673
10674
10675fi
10676
10677
10678if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10679then
10680  lt_save_LIBS="$LIBS"
10681  LIBS="$LIBS $LIBADD_DL"
10682
10683for ac_func in dlerror
10684do
10685as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10686{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10687echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10688if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10689  echo $ECHO_N "(cached) $ECHO_C" >&6
10690else
10691  cat >conftest.$ac_ext <<_ACEOF
10692/* confdefs.h.  */
10693_ACEOF
10694cat confdefs.h >>conftest.$ac_ext
10695cat >>conftest.$ac_ext <<_ACEOF
10696/* end confdefs.h.  */
10697/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10698   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10699#define $ac_func innocuous_$ac_func
10700
10701/* System header to define __stub macros and hopefully few prototypes,
10702    which can conflict with char $ac_func (); below.
10703    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10704    <limits.h> exists even on freestanding compilers.  */
10705
10706#ifdef __STDC__
10707# include <limits.h>
10708#else
10709# include <assert.h>
10710#endif
10711
10712#undef $ac_func
10713
10714/* Override any GCC internal prototype to avoid an error.
10715   Use char because int might match the return type of a GCC
10716   builtin and then its argument prototype would still apply.  */
10717#ifdef __cplusplus
10718extern "C"
10719#endif
10720char $ac_func ();
10721/* The GNU C library defines this for functions which it implements
10722    to always fail with ENOSYS.  Some functions are actually named
10723    something starting with __ and the normal name is an alias.  */
10724#if defined __stub_$ac_func || defined __stub___$ac_func
10725choke me
10726#endif
10727
10728int
10729main ()
10730{
10731return $ac_func ();
10732  ;
10733  return 0;
10734}
10735_ACEOF
10736rm -f conftest.$ac_objext conftest$ac_exeext
10737if { (ac_try="$ac_link"
10738case "(($ac_try" in
10739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10740  *) ac_try_echo=$ac_try;;
10741esac
10742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10743  (eval "$ac_link") 2>conftest.er1
10744  ac_status=$?
10745  grep -v '^ *+' conftest.er1 >conftest.err
10746  rm -f conftest.er1
10747  cat conftest.err >&5
10748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749  (exit $ac_status); } &&
10750	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10751  { (case "(($ac_try" in
10752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10753  *) ac_try_echo=$ac_try;;
10754esac
10755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10756  (eval "$ac_try") 2>&5
10757  ac_status=$?
10758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759  (exit $ac_status); }; } &&
10760	 { ac_try='test -s conftest$ac_exeext'
10761  { (case "(($ac_try" in
10762  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763  *) ac_try_echo=$ac_try;;
10764esac
10765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10766  (eval "$ac_try") 2>&5
10767  ac_status=$?
10768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769  (exit $ac_status); }; }; then
10770  eval "$as_ac_var=yes"
10771else
10772  echo "$as_me: failed program was:" >&5
10773sed 's/^/| /' conftest.$ac_ext >&5
10774
10775	eval "$as_ac_var=no"
10776fi
10777
10778rm -f core conftest.err conftest.$ac_objext \
10779      conftest$ac_exeext conftest.$ac_ext
10780fi
10781ac_res=`eval echo '${'$as_ac_var'}'`
10782	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10783echo "${ECHO_T}$ac_res" >&6; }
10784if test `eval echo '${'$as_ac_var'}'` = yes; then
10785  cat >>confdefs.h <<_ACEOF
10786#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10787_ACEOF
10788
10789fi
10790done
10791
10792  LIBS="$lt_save_LIBS"
10793fi
10794ac_ext=c
10795ac_cpp='$CPP $CPPFLAGS'
10796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10798ac_compiler_gnu=$ac_cv_c_compiler_gnu
10799
10800
10801
10802{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10803echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10804if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10805  echo $ECHO_N "(cached) $ECHO_C" >&6
10806else
10807  ac_cv_sys_symbol_underscore=no
10808  cat > conftest.$ac_ext <<EOF
10809void nm_test_func(){}
10810int main(){nm_test_func;return 0;}
10811EOF
10812  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10813  (eval $ac_compile) 2>&5
10814  ac_status=$?
10815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816  (exit $ac_status); }; then
10817    # Now try to grab the symbols.
10818    ac_nlist=conftest.nm
10819    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10820  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10821  ac_status=$?
10822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823  (exit $ac_status); } && test -s "$ac_nlist"; then
10824      # See whether the symbols have a leading underscore.
10825      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10826        ac_cv_sys_symbol_underscore=yes
10827      else
10828        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10829	  :
10830        else
10831	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10832        fi
10833      fi
10834    else
10835      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10836    fi
10837  else
10838    echo "configure: failed program was:" >&5
10839    cat conftest.c >&5
10840  fi
10841  rm -rf conftest*
10842
10843fi
10844{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10845echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10846
10847
10848if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10849  if test x"$libltdl_cv_func_dlopen" = xyes ||
10850     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10851	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10852echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10853if test "${libltdl_cv_need_uscore+set}" = set; then
10854  echo $ECHO_N "(cached) $ECHO_C" >&6
10855else
10856  libltdl_cv_need_uscore=unknown
10857          save_LIBS="$LIBS"
10858          LIBS="$LIBS $LIBADD_DL"
10859	  if test "$cross_compiling" = yes; then :
10860  libltdl_cv_need_uscore=cross
10861else
10862  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10863  lt_status=$lt_dlunknown
10864  cat > conftest.$ac_ext <<EOF
10865#line 10865 "configure"
10866#include "confdefs.h"
10867
10868#if HAVE_DLFCN_H
10869#include <dlfcn.h>
10870#endif
10871
10872#include <stdio.h>
10873
10874#ifdef RTLD_GLOBAL
10875#  define LT_DLGLOBAL		RTLD_GLOBAL
10876#else
10877#  ifdef DL_GLOBAL
10878#    define LT_DLGLOBAL		DL_GLOBAL
10879#  else
10880#    define LT_DLGLOBAL		0
10881#  endif
10882#endif
10883
10884/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10885   find out it does not work in some platform. */
10886#ifndef LT_DLLAZY_OR_NOW
10887#  ifdef RTLD_LAZY
10888#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10889#  else
10890#    ifdef DL_LAZY
10891#      define LT_DLLAZY_OR_NOW		DL_LAZY
10892#    else
10893#      ifdef RTLD_NOW
10894#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10895#      else
10896#        ifdef DL_NOW
10897#          define LT_DLLAZY_OR_NOW	DL_NOW
10898#        else
10899#          define LT_DLLAZY_OR_NOW	0
10900#        endif
10901#      endif
10902#    endif
10903#  endif
10904#endif
10905
10906#ifdef __cplusplus
10907extern "C" void exit (int);
10908#endif
10909
10910void fnord() { int i=42;}
10911int main ()
10912{
10913  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10914  int status = $lt_dlunknown;
10915
10916  if (self)
10917    {
10918      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10919      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10920      /* dlclose (self); */
10921    }
10922  else
10923    puts (dlerror ());
10924
10925    exit (status);
10926}
10927EOF
10928  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10929  (eval $ac_link) 2>&5
10930  ac_status=$?
10931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10933    (./conftest; exit; ) >&5 2>/dev/null
10934    lt_status=$?
10935    case x$lt_status in
10936      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10937      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10938      x$lt_dlunknown|x*)  ;;
10939    esac
10940  else :
10941    # compilation failed
10942
10943  fi
10944fi
10945rm -fr conftest*
10946
10947	  LIBS="$save_LIBS"
10948
10949fi
10950{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10951echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10952  fi
10953fi
10954
10955if test x"$libltdl_cv_need_uscore" = xyes; then
10956
10957cat >>confdefs.h <<\_ACEOF
10958#define NEED_USCORE 1
10959_ACEOF
10960
10961fi
10962
10963
10964{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10965echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10966if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10967  echo $ECHO_N "(cached) $ECHO_C" >&6
10968else
10969  # PORTME does your system automatically load deplibs for dlopen?
10970  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10971  # For now, we just catch OSes we know something about -- in the
10972  # future, we'll try test this programmatically.
10973  libltdl_cv_sys_dlopen_deplibs=unknown
10974  case "$host_os" in
10975  aix3*|aix4.1.*|aix4.2.*)
10976    # Unknown whether this is true for these versions of AIX, but
10977    # we want this `case' here to explicitly catch those versions.
10978    libltdl_cv_sys_dlopen_deplibs=unknown
10979    ;;
10980  aix[45]*)
10981    libltdl_cv_sys_dlopen_deplibs=yes
10982    ;;
10983  darwin*)
10984    # Assuming the user has installed a libdl from somewhere, this is true
10985    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10986    libltdl_cv_sys_dlopen_deplibs=yes
10987    ;;
10988  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10989    # GNU and its variants, using gnu ld.so (Glibc)
10990    libltdl_cv_sys_dlopen_deplibs=yes
10991    ;;
10992  hpux10*|hpux11*)
10993    libltdl_cv_sys_dlopen_deplibs=yes
10994    ;;
10995  interix*)
10996    libltdl_cv_sys_dlopen_deplibs=yes
10997    ;;
10998  irix[12345]*|irix6.[01]*)
10999    # Catch all versions of IRIX before 6.2, and indicate that we don't
11000    # know how it worked for any of those versions.
11001    libltdl_cv_sys_dlopen_deplibs=unknown
11002    ;;
11003  irix*)
11004    # The case above catches anything before 6.2, and it's known that
11005    # at 6.2 and later dlopen does load deplibs.
11006    libltdl_cv_sys_dlopen_deplibs=yes
11007    ;;
11008  netbsd*)
11009    libltdl_cv_sys_dlopen_deplibs=yes
11010    ;;
11011  openbsd*)
11012    libltdl_cv_sys_dlopen_deplibs=yes
11013    ;;
11014  osf[1234]*)
11015    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11016    # it did *not* use an RPATH in a shared library to find objects the
11017    # library depends on, so we explictly say `no'.
11018    libltdl_cv_sys_dlopen_deplibs=no
11019    ;;
11020  osf5.0|osf5.0a|osf5.1)
11021    # dlopen *does* load deplibs and with the right loader patch applied
11022    # it even uses RPATH in a shared library to search for shared objects
11023    # that the library depends on, but there's no easy way to know if that
11024    # patch is installed.  Since this is the case, all we can really
11025    # say is unknown -- it depends on the patch being installed.  If
11026    # it is, this changes to `yes'.  Without it, it would be `no'.
11027    libltdl_cv_sys_dlopen_deplibs=unknown
11028    ;;
11029  osf*)
11030    # the two cases above should catch all versions of osf <= 5.1.  Read
11031    # the comments above for what we know about them.
11032    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11033    # is used to find them so we can finally say `yes'.
11034    libltdl_cv_sys_dlopen_deplibs=yes
11035    ;;
11036  solaris*)
11037    libltdl_cv_sys_dlopen_deplibs=yes
11038    ;;
11039  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11040    libltdl_cv_sys_dlopen_deplibs=yes
11041    ;;
11042  esac
11043
11044fi
11045{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11046echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11047if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11048
11049cat >>confdefs.h <<\_ACEOF
11050#define LTDL_DLOPEN_DEPLIBS 1
11051_ACEOF
11052
11053fi
11054
11055
11056for ac_header in argz.h
11057do
11058as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11059if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11060  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11061echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11062if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11063  echo $ECHO_N "(cached) $ECHO_C" >&6
11064fi
11065ac_res=`eval echo '${'$as_ac_Header'}'`
11066	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11067echo "${ECHO_T}$ac_res" >&6; }
11068else
11069  # Is the header compilable?
11070{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11071echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11072cat >conftest.$ac_ext <<_ACEOF
11073/* confdefs.h.  */
11074_ACEOF
11075cat confdefs.h >>conftest.$ac_ext
11076cat >>conftest.$ac_ext <<_ACEOF
11077/* end confdefs.h.  */
11078$ac_includes_default
11079#include <$ac_header>
11080_ACEOF
11081rm -f conftest.$ac_objext
11082if { (ac_try="$ac_compile"
11083case "(($ac_try" in
11084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085  *) ac_try_echo=$ac_try;;
11086esac
11087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11088  (eval "$ac_compile") 2>conftest.er1
11089  ac_status=$?
11090  grep -v '^ *+' conftest.er1 >conftest.err
11091  rm -f conftest.er1
11092  cat conftest.err >&5
11093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094  (exit $ac_status); } &&
11095	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11096  { (case "(($ac_try" in
11097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11098  *) ac_try_echo=$ac_try;;
11099esac
11100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11101  (eval "$ac_try") 2>&5
11102  ac_status=$?
11103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104  (exit $ac_status); }; } &&
11105	 { ac_try='test -s conftest.$ac_objext'
11106  { (case "(($ac_try" in
11107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108  *) ac_try_echo=$ac_try;;
11109esac
11110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111  (eval "$ac_try") 2>&5
11112  ac_status=$?
11113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114  (exit $ac_status); }; }; then
11115  ac_header_compiler=yes
11116else
11117  echo "$as_me: failed program was:" >&5
11118sed 's/^/| /' conftest.$ac_ext >&5
11119
11120	ac_header_compiler=no
11121fi
11122
11123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11124{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11125echo "${ECHO_T}$ac_header_compiler" >&6; }
11126
11127# Is the header present?
11128{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11129echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11130cat >conftest.$ac_ext <<_ACEOF
11131/* confdefs.h.  */
11132_ACEOF
11133cat confdefs.h >>conftest.$ac_ext
11134cat >>conftest.$ac_ext <<_ACEOF
11135/* end confdefs.h.  */
11136#include <$ac_header>
11137_ACEOF
11138if { (ac_try="$ac_cpp conftest.$ac_ext"
11139case "(($ac_try" in
11140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11141  *) ac_try_echo=$ac_try;;
11142esac
11143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11144  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11145  ac_status=$?
11146  grep -v '^ *+' conftest.er1 >conftest.err
11147  rm -f conftest.er1
11148  cat conftest.err >&5
11149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150  (exit $ac_status); } >/dev/null; then
11151  if test -s conftest.err; then
11152    ac_cpp_err=$ac_c_preproc_warn_flag
11153    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11154  else
11155    ac_cpp_err=
11156  fi
11157else
11158  ac_cpp_err=yes
11159fi
11160if test -z "$ac_cpp_err"; then
11161  ac_header_preproc=yes
11162else
11163  echo "$as_me: failed program was:" >&5
11164sed 's/^/| /' conftest.$ac_ext >&5
11165
11166  ac_header_preproc=no
11167fi
11168
11169rm -f conftest.err conftest.$ac_ext
11170{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11171echo "${ECHO_T}$ac_header_preproc" >&6; }
11172
11173# So?  What about this header?
11174case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11175  yes:no: )
11176    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11177echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11178    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11179echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11180    ac_header_preproc=yes
11181    ;;
11182  no:yes:* )
11183    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11184echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11185    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11186echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11187    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11188echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11189    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11190echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11191    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11192echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11193    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11194echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11195    ( cat <<\_ASBOX
11196## ----------------------------------- ##
11197## Report this to llvmbugs@cs.uiuc.edu ##
11198## ----------------------------------- ##
11199_ASBOX
11200     ) | sed "s/^/$as_me: WARNING:     /" >&2
11201    ;;
11202esac
11203{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11204echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11205if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11206  echo $ECHO_N "(cached) $ECHO_C" >&6
11207else
11208  eval "$as_ac_Header=\$ac_header_preproc"
11209fi
11210ac_res=`eval echo '${'$as_ac_Header'}'`
11211	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11212echo "${ECHO_T}$ac_res" >&6; }
11213
11214fi
11215if test `eval echo '${'$as_ac_Header'}'` = yes; then
11216  cat >>confdefs.h <<_ACEOF
11217#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11218_ACEOF
11219
11220fi
11221
11222done
11223
11224
11225{ echo "$as_me:$LINENO: checking for error_t" >&5
11226echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11227if test "${ac_cv_type_error_t+set}" = set; then
11228  echo $ECHO_N "(cached) $ECHO_C" >&6
11229else
11230  cat >conftest.$ac_ext <<_ACEOF
11231/* confdefs.h.  */
11232_ACEOF
11233cat confdefs.h >>conftest.$ac_ext
11234cat >>conftest.$ac_ext <<_ACEOF
11235/* end confdefs.h.  */
11236#if HAVE_ARGZ_H
11237#  include <argz.h>
11238#endif
11239
11240typedef error_t ac__type_new_;
11241int
11242main ()
11243{
11244if ((ac__type_new_ *) 0)
11245  return 0;
11246if (sizeof (ac__type_new_))
11247  return 0;
11248  ;
11249  return 0;
11250}
11251_ACEOF
11252rm -f conftest.$ac_objext
11253if { (ac_try="$ac_compile"
11254case "(($ac_try" in
11255  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256  *) ac_try_echo=$ac_try;;
11257esac
11258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259  (eval "$ac_compile") 2>conftest.er1
11260  ac_status=$?
11261  grep -v '^ *+' conftest.er1 >conftest.err
11262  rm -f conftest.er1
11263  cat conftest.err >&5
11264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265  (exit $ac_status); } &&
11266	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11267  { (case "(($ac_try" in
11268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269  *) ac_try_echo=$ac_try;;
11270esac
11271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272  (eval "$ac_try") 2>&5
11273  ac_status=$?
11274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275  (exit $ac_status); }; } &&
11276	 { ac_try='test -s conftest.$ac_objext'
11277  { (case "(($ac_try" in
11278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279  *) ac_try_echo=$ac_try;;
11280esac
11281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282  (eval "$ac_try") 2>&5
11283  ac_status=$?
11284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285  (exit $ac_status); }; }; then
11286  ac_cv_type_error_t=yes
11287else
11288  echo "$as_me: failed program was:" >&5
11289sed 's/^/| /' conftest.$ac_ext >&5
11290
11291	ac_cv_type_error_t=no
11292fi
11293
11294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11295fi
11296{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11297echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11298if test $ac_cv_type_error_t = yes; then
11299
11300cat >>confdefs.h <<_ACEOF
11301#define HAVE_ERROR_T 1
11302_ACEOF
11303
11304
11305else
11306
11307cat >>confdefs.h <<\_ACEOF
11308#define error_t int
11309_ACEOF
11310
11311fi
11312
11313
11314
11315
11316
11317
11318
11319for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11320do
11321as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11322{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11323echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11324if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11325  echo $ECHO_N "(cached) $ECHO_C" >&6
11326else
11327  cat >conftest.$ac_ext <<_ACEOF
11328/* confdefs.h.  */
11329_ACEOF
11330cat confdefs.h >>conftest.$ac_ext
11331cat >>conftest.$ac_ext <<_ACEOF
11332/* end confdefs.h.  */
11333/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11334   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11335#define $ac_func innocuous_$ac_func
11336
11337/* System header to define __stub macros and hopefully few prototypes,
11338    which can conflict with char $ac_func (); below.
11339    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11340    <limits.h> exists even on freestanding compilers.  */
11341
11342#ifdef __STDC__
11343# include <limits.h>
11344#else
11345# include <assert.h>
11346#endif
11347
11348#undef $ac_func
11349
11350/* Override any GCC internal prototype to avoid an error.
11351   Use char because int might match the return type of a GCC
11352   builtin and then its argument prototype would still apply.  */
11353#ifdef __cplusplus
11354extern "C"
11355#endif
11356char $ac_func ();
11357/* The GNU C library defines this for functions which it implements
11358    to always fail with ENOSYS.  Some functions are actually named
11359    something starting with __ and the normal name is an alias.  */
11360#if defined __stub_$ac_func || defined __stub___$ac_func
11361choke me
11362#endif
11363
11364int
11365main ()
11366{
11367return $ac_func ();
11368  ;
11369  return 0;
11370}
11371_ACEOF
11372rm -f conftest.$ac_objext conftest$ac_exeext
11373if { (ac_try="$ac_link"
11374case "(($ac_try" in
11375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11376  *) ac_try_echo=$ac_try;;
11377esac
11378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11379  (eval "$ac_link") 2>conftest.er1
11380  ac_status=$?
11381  grep -v '^ *+' conftest.er1 >conftest.err
11382  rm -f conftest.er1
11383  cat conftest.err >&5
11384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385  (exit $ac_status); } &&
11386	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11387  { (case "(($ac_try" in
11388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389  *) ac_try_echo=$ac_try;;
11390esac
11391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11392  (eval "$ac_try") 2>&5
11393  ac_status=$?
11394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395  (exit $ac_status); }; } &&
11396	 { ac_try='test -s conftest$ac_exeext'
11397  { (case "(($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_try") 2>&5
11403  ac_status=$?
11404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405  (exit $ac_status); }; }; then
11406  eval "$as_ac_var=yes"
11407else
11408  echo "$as_me: failed program was:" >&5
11409sed 's/^/| /' conftest.$ac_ext >&5
11410
11411	eval "$as_ac_var=no"
11412fi
11413
11414rm -f core conftest.err conftest.$ac_objext \
11415      conftest$ac_exeext conftest.$ac_ext
11416fi
11417ac_res=`eval echo '${'$as_ac_var'}'`
11418	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11419echo "${ECHO_T}$ac_res" >&6; }
11420if test `eval echo '${'$as_ac_var'}'` = yes; then
11421  cat >>confdefs.h <<_ACEOF
11422#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11423_ACEOF
11424
11425fi
11426done
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11456		  stdio.h unistd.h
11457do
11458as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11459if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11460  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11462if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11463  echo $ECHO_N "(cached) $ECHO_C" >&6
11464fi
11465ac_res=`eval echo '${'$as_ac_Header'}'`
11466	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11467echo "${ECHO_T}$ac_res" >&6; }
11468else
11469  # Is the header compilable?
11470{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11471echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11472cat >conftest.$ac_ext <<_ACEOF
11473/* confdefs.h.  */
11474_ACEOF
11475cat confdefs.h >>conftest.$ac_ext
11476cat >>conftest.$ac_ext <<_ACEOF
11477/* end confdefs.h.  */
11478$ac_includes_default
11479#include <$ac_header>
11480_ACEOF
11481rm -f conftest.$ac_objext
11482if { (ac_try="$ac_compile"
11483case "(($ac_try" in
11484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485  *) ac_try_echo=$ac_try;;
11486esac
11487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488  (eval "$ac_compile") 2>conftest.er1
11489  ac_status=$?
11490  grep -v '^ *+' conftest.er1 >conftest.err
11491  rm -f conftest.er1
11492  cat conftest.err >&5
11493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494  (exit $ac_status); } &&
11495	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11496  { (case "(($ac_try" in
11497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498  *) ac_try_echo=$ac_try;;
11499esac
11500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11501  (eval "$ac_try") 2>&5
11502  ac_status=$?
11503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504  (exit $ac_status); }; } &&
11505	 { ac_try='test -s conftest.$ac_objext'
11506  { (case "(($ac_try" in
11507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508  *) ac_try_echo=$ac_try;;
11509esac
11510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511  (eval "$ac_try") 2>&5
11512  ac_status=$?
11513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514  (exit $ac_status); }; }; then
11515  ac_header_compiler=yes
11516else
11517  echo "$as_me: failed program was:" >&5
11518sed 's/^/| /' conftest.$ac_ext >&5
11519
11520	ac_header_compiler=no
11521fi
11522
11523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11524{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11525echo "${ECHO_T}$ac_header_compiler" >&6; }
11526
11527# Is the header present?
11528{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11529echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11530cat >conftest.$ac_ext <<_ACEOF
11531/* confdefs.h.  */
11532_ACEOF
11533cat confdefs.h >>conftest.$ac_ext
11534cat >>conftest.$ac_ext <<_ACEOF
11535/* end confdefs.h.  */
11536#include <$ac_header>
11537_ACEOF
11538if { (ac_try="$ac_cpp conftest.$ac_ext"
11539case "(($ac_try" in
11540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11541  *) ac_try_echo=$ac_try;;
11542esac
11543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11544  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11545  ac_status=$?
11546  grep -v '^ *+' conftest.er1 >conftest.err
11547  rm -f conftest.er1
11548  cat conftest.err >&5
11549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550  (exit $ac_status); } >/dev/null; then
11551  if test -s conftest.err; then
11552    ac_cpp_err=$ac_c_preproc_warn_flag
11553    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11554  else
11555    ac_cpp_err=
11556  fi
11557else
11558  ac_cpp_err=yes
11559fi
11560if test -z "$ac_cpp_err"; then
11561  ac_header_preproc=yes
11562else
11563  echo "$as_me: failed program was:" >&5
11564sed 's/^/| /' conftest.$ac_ext >&5
11565
11566  ac_header_preproc=no
11567fi
11568
11569rm -f conftest.err conftest.$ac_ext
11570{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11571echo "${ECHO_T}$ac_header_preproc" >&6; }
11572
11573# So?  What about this header?
11574case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11575  yes:no: )
11576    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11577echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11578    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11579echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11580    ac_header_preproc=yes
11581    ;;
11582  no:yes:* )
11583    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11584echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11585    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11586echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11587    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11588echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11589    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11590echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11591    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11592echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11593    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11594echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11595    ( cat <<\_ASBOX
11596## ----------------------------------- ##
11597## Report this to llvmbugs@cs.uiuc.edu ##
11598## ----------------------------------- ##
11599_ASBOX
11600     ) | sed "s/^/$as_me: WARNING:     /" >&2
11601    ;;
11602esac
11603{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11604echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11605if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11606  echo $ECHO_N "(cached) $ECHO_C" >&6
11607else
11608  eval "$as_ac_Header=\$ac_header_preproc"
11609fi
11610ac_res=`eval echo '${'$as_ac_Header'}'`
11611	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11612echo "${ECHO_T}$ac_res" >&6; }
11613
11614fi
11615if test `eval echo '${'$as_ac_Header'}'` = yes; then
11616  cat >>confdefs.h <<_ACEOF
11617#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11618_ACEOF
11619
11620fi
11621
11622done
11623
11624
11625
11626
11627
11628for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11629do
11630as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11631if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11632  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11633echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11634if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11635  echo $ECHO_N "(cached) $ECHO_C" >&6
11636fi
11637ac_res=`eval echo '${'$as_ac_Header'}'`
11638	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11639echo "${ECHO_T}$ac_res" >&6; }
11640else
11641  # Is the header compilable?
11642{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11643echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11644cat >conftest.$ac_ext <<_ACEOF
11645/* confdefs.h.  */
11646_ACEOF
11647cat confdefs.h >>conftest.$ac_ext
11648cat >>conftest.$ac_ext <<_ACEOF
11649/* end confdefs.h.  */
11650$ac_includes_default
11651#include <$ac_header>
11652_ACEOF
11653rm -f conftest.$ac_objext
11654if { (ac_try="$ac_compile"
11655case "(($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_compile") 2>conftest.er1
11661  ac_status=$?
11662  grep -v '^ *+' conftest.er1 >conftest.err
11663  rm -f conftest.er1
11664  cat conftest.err >&5
11665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666  (exit $ac_status); } &&
11667	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11668  { (case "(($ac_try" in
11669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670  *) ac_try_echo=$ac_try;;
11671esac
11672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11673  (eval "$ac_try") 2>&5
11674  ac_status=$?
11675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676  (exit $ac_status); }; } &&
11677	 { ac_try='test -s conftest.$ac_objext'
11678  { (case "(($ac_try" in
11679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680  *) ac_try_echo=$ac_try;;
11681esac
11682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683  (eval "$ac_try") 2>&5
11684  ac_status=$?
11685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686  (exit $ac_status); }; }; then
11687  ac_header_compiler=yes
11688else
11689  echo "$as_me: failed program was:" >&5
11690sed 's/^/| /' conftest.$ac_ext >&5
11691
11692	ac_header_compiler=no
11693fi
11694
11695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11696{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11697echo "${ECHO_T}$ac_header_compiler" >&6; }
11698
11699# Is the header present?
11700{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11701echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11702cat >conftest.$ac_ext <<_ACEOF
11703/* confdefs.h.  */
11704_ACEOF
11705cat confdefs.h >>conftest.$ac_ext
11706cat >>conftest.$ac_ext <<_ACEOF
11707/* end confdefs.h.  */
11708#include <$ac_header>
11709_ACEOF
11710if { (ac_try="$ac_cpp conftest.$ac_ext"
11711case "(($ac_try" in
11712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713  *) ac_try_echo=$ac_try;;
11714esac
11715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11717  ac_status=$?
11718  grep -v '^ *+' conftest.er1 >conftest.err
11719  rm -f conftest.er1
11720  cat conftest.err >&5
11721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722  (exit $ac_status); } >/dev/null; then
11723  if test -s conftest.err; then
11724    ac_cpp_err=$ac_c_preproc_warn_flag
11725    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11726  else
11727    ac_cpp_err=
11728  fi
11729else
11730  ac_cpp_err=yes
11731fi
11732if test -z "$ac_cpp_err"; then
11733  ac_header_preproc=yes
11734else
11735  echo "$as_me: failed program was:" >&5
11736sed 's/^/| /' conftest.$ac_ext >&5
11737
11738  ac_header_preproc=no
11739fi
11740
11741rm -f conftest.err conftest.$ac_ext
11742{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11743echo "${ECHO_T}$ac_header_preproc" >&6; }
11744
11745# So?  What about this header?
11746case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11747  yes:no: )
11748    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11749echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11750    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11751echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11752    ac_header_preproc=yes
11753    ;;
11754  no:yes:* )
11755    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11756echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11757    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11758echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11759    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11760echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11761    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11762echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11763    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11764echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11765    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11766echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11767    ( cat <<\_ASBOX
11768## ----------------------------------- ##
11769## Report this to llvmbugs@cs.uiuc.edu ##
11770## ----------------------------------- ##
11771_ASBOX
11772     ) | sed "s/^/$as_me: WARNING:     /" >&2
11773    ;;
11774esac
11775{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11776echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11777if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11778  echo $ECHO_N "(cached) $ECHO_C" >&6
11779else
11780  eval "$as_ac_Header=\$ac_header_preproc"
11781fi
11782ac_res=`eval echo '${'$as_ac_Header'}'`
11783	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11784echo "${ECHO_T}$ac_res" >&6; }
11785
11786fi
11787if test `eval echo '${'$as_ac_Header'}'` = yes; then
11788  cat >>confdefs.h <<_ACEOF
11789#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11790_ACEOF
11791
11792fi
11793
11794done
11795
11796
11797
11798for ac_header in string.h strings.h
11799do
11800as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11801if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11802  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11803echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11804if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11805  echo $ECHO_N "(cached) $ECHO_C" >&6
11806fi
11807ac_res=`eval echo '${'$as_ac_Header'}'`
11808	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11809echo "${ECHO_T}$ac_res" >&6; }
11810else
11811  # Is the header compilable?
11812{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11813echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11814cat >conftest.$ac_ext <<_ACEOF
11815/* confdefs.h.  */
11816_ACEOF
11817cat confdefs.h >>conftest.$ac_ext
11818cat >>conftest.$ac_ext <<_ACEOF
11819/* end confdefs.h.  */
11820$ac_includes_default
11821#include <$ac_header>
11822_ACEOF
11823rm -f conftest.$ac_objext
11824if { (ac_try="$ac_compile"
11825case "(($ac_try" in
11826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827  *) ac_try_echo=$ac_try;;
11828esac
11829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830  (eval "$ac_compile") 2>conftest.er1
11831  ac_status=$?
11832  grep -v '^ *+' conftest.er1 >conftest.err
11833  rm -f conftest.er1
11834  cat conftest.err >&5
11835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836  (exit $ac_status); } &&
11837	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11838  { (case "(($ac_try" in
11839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840  *) ac_try_echo=$ac_try;;
11841esac
11842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843  (eval "$ac_try") 2>&5
11844  ac_status=$?
11845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846  (exit $ac_status); }; } &&
11847	 { ac_try='test -s conftest.$ac_objext'
11848  { (case "(($ac_try" in
11849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850  *) ac_try_echo=$ac_try;;
11851esac
11852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853  (eval "$ac_try") 2>&5
11854  ac_status=$?
11855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856  (exit $ac_status); }; }; then
11857  ac_header_compiler=yes
11858else
11859  echo "$as_me: failed program was:" >&5
11860sed 's/^/| /' conftest.$ac_ext >&5
11861
11862	ac_header_compiler=no
11863fi
11864
11865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11866{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11867echo "${ECHO_T}$ac_header_compiler" >&6; }
11868
11869# Is the header present?
11870{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11871echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11872cat >conftest.$ac_ext <<_ACEOF
11873/* confdefs.h.  */
11874_ACEOF
11875cat confdefs.h >>conftest.$ac_ext
11876cat >>conftest.$ac_ext <<_ACEOF
11877/* end confdefs.h.  */
11878#include <$ac_header>
11879_ACEOF
11880if { (ac_try="$ac_cpp conftest.$ac_ext"
11881case "(($ac_try" in
11882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883  *) ac_try_echo=$ac_try;;
11884esac
11885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11887  ac_status=$?
11888  grep -v '^ *+' conftest.er1 >conftest.err
11889  rm -f conftest.er1
11890  cat conftest.err >&5
11891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892  (exit $ac_status); } >/dev/null; then
11893  if test -s conftest.err; then
11894    ac_cpp_err=$ac_c_preproc_warn_flag
11895    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11896  else
11897    ac_cpp_err=
11898  fi
11899else
11900  ac_cpp_err=yes
11901fi
11902if test -z "$ac_cpp_err"; then
11903  ac_header_preproc=yes
11904else
11905  echo "$as_me: failed program was:" >&5
11906sed 's/^/| /' conftest.$ac_ext >&5
11907
11908  ac_header_preproc=no
11909fi
11910
11911rm -f conftest.err conftest.$ac_ext
11912{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11913echo "${ECHO_T}$ac_header_preproc" >&6; }
11914
11915# So?  What about this header?
11916case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11917  yes:no: )
11918    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11919echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11920    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11921echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11922    ac_header_preproc=yes
11923    ;;
11924  no:yes:* )
11925    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11926echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11927    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11928echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11929    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11930echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11931    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11932echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11933    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11934echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11935    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11936echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11937    ( cat <<\_ASBOX
11938## ----------------------------------- ##
11939## Report this to llvmbugs@cs.uiuc.edu ##
11940## ----------------------------------- ##
11941_ASBOX
11942     ) | sed "s/^/$as_me: WARNING:     /" >&2
11943    ;;
11944esac
11945{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11946echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11947if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11948  echo $ECHO_N "(cached) $ECHO_C" >&6
11949else
11950  eval "$as_ac_Header=\$ac_header_preproc"
11951fi
11952ac_res=`eval echo '${'$as_ac_Header'}'`
11953	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11954echo "${ECHO_T}$ac_res" >&6; }
11955
11956fi
11957if test `eval echo '${'$as_ac_Header'}'` = yes; then
11958  cat >>confdefs.h <<_ACEOF
11959#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11960_ACEOF
11961 break
11962fi
11963
11964done
11965
11966
11967
11968
11969for ac_func in strchr index
11970do
11971as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11972{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11973echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11974if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11975  echo $ECHO_N "(cached) $ECHO_C" >&6
11976else
11977  cat >conftest.$ac_ext <<_ACEOF
11978/* confdefs.h.  */
11979_ACEOF
11980cat confdefs.h >>conftest.$ac_ext
11981cat >>conftest.$ac_ext <<_ACEOF
11982/* end confdefs.h.  */
11983/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11984   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11985#define $ac_func innocuous_$ac_func
11986
11987/* System header to define __stub macros and hopefully few prototypes,
11988    which can conflict with char $ac_func (); below.
11989    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11990    <limits.h> exists even on freestanding compilers.  */
11991
11992#ifdef __STDC__
11993# include <limits.h>
11994#else
11995# include <assert.h>
11996#endif
11997
11998#undef $ac_func
11999
12000/* Override any GCC internal prototype to avoid an error.
12001   Use char because int might match the return type of a GCC
12002   builtin and then its argument prototype would still apply.  */
12003#ifdef __cplusplus
12004extern "C"
12005#endif
12006char $ac_func ();
12007/* The GNU C library defines this for functions which it implements
12008    to always fail with ENOSYS.  Some functions are actually named
12009    something starting with __ and the normal name is an alias.  */
12010#if defined __stub_$ac_func || defined __stub___$ac_func
12011choke me
12012#endif
12013
12014int
12015main ()
12016{
12017return $ac_func ();
12018  ;
12019  return 0;
12020}
12021_ACEOF
12022rm -f conftest.$ac_objext conftest$ac_exeext
12023if { (ac_try="$ac_link"
12024case "(($ac_try" in
12025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12026  *) ac_try_echo=$ac_try;;
12027esac
12028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12029  (eval "$ac_link") 2>conftest.er1
12030  ac_status=$?
12031  grep -v '^ *+' conftest.er1 >conftest.err
12032  rm -f conftest.er1
12033  cat conftest.err >&5
12034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035  (exit $ac_status); } &&
12036	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12037  { (case "(($ac_try" in
12038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12039  *) ac_try_echo=$ac_try;;
12040esac
12041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12042  (eval "$ac_try") 2>&5
12043  ac_status=$?
12044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045  (exit $ac_status); }; } &&
12046	 { ac_try='test -s conftest$ac_exeext'
12047  { (case "(($ac_try" in
12048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049  *) ac_try_echo=$ac_try;;
12050esac
12051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12052  (eval "$ac_try") 2>&5
12053  ac_status=$?
12054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055  (exit $ac_status); }; }; then
12056  eval "$as_ac_var=yes"
12057else
12058  echo "$as_me: failed program was:" >&5
12059sed 's/^/| /' conftest.$ac_ext >&5
12060
12061	eval "$as_ac_var=no"
12062fi
12063
12064rm -f core conftest.err conftest.$ac_objext \
12065      conftest$ac_exeext conftest.$ac_ext
12066fi
12067ac_res=`eval echo '${'$as_ac_var'}'`
12068	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12069echo "${ECHO_T}$ac_res" >&6; }
12070if test `eval echo '${'$as_ac_var'}'` = yes; then
12071  cat >>confdefs.h <<_ACEOF
12072#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12073_ACEOF
12074 break
12075fi
12076done
12077
12078
12079
12080for ac_func in strrchr rindex
12081do
12082as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12083{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12084echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12085if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12086  echo $ECHO_N "(cached) $ECHO_C" >&6
12087else
12088  cat >conftest.$ac_ext <<_ACEOF
12089/* confdefs.h.  */
12090_ACEOF
12091cat confdefs.h >>conftest.$ac_ext
12092cat >>conftest.$ac_ext <<_ACEOF
12093/* end confdefs.h.  */
12094/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12095   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12096#define $ac_func innocuous_$ac_func
12097
12098/* System header to define __stub macros and hopefully few prototypes,
12099    which can conflict with char $ac_func (); below.
12100    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12101    <limits.h> exists even on freestanding compilers.  */
12102
12103#ifdef __STDC__
12104# include <limits.h>
12105#else
12106# include <assert.h>
12107#endif
12108
12109#undef $ac_func
12110
12111/* Override any GCC internal prototype to avoid an error.
12112   Use char because int might match the return type of a GCC
12113   builtin and then its argument prototype would still apply.  */
12114#ifdef __cplusplus
12115extern "C"
12116#endif
12117char $ac_func ();
12118/* The GNU C library defines this for functions which it implements
12119    to always fail with ENOSYS.  Some functions are actually named
12120    something starting with __ and the normal name is an alias.  */
12121#if defined __stub_$ac_func || defined __stub___$ac_func
12122choke me
12123#endif
12124
12125int
12126main ()
12127{
12128return $ac_func ();
12129  ;
12130  return 0;
12131}
12132_ACEOF
12133rm -f conftest.$ac_objext conftest$ac_exeext
12134if { (ac_try="$ac_link"
12135case "(($ac_try" in
12136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12137  *) ac_try_echo=$ac_try;;
12138esac
12139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12140  (eval "$ac_link") 2>conftest.er1
12141  ac_status=$?
12142  grep -v '^ *+' conftest.er1 >conftest.err
12143  rm -f conftest.er1
12144  cat conftest.err >&5
12145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146  (exit $ac_status); } &&
12147	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12148  { (case "(($ac_try" in
12149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150  *) ac_try_echo=$ac_try;;
12151esac
12152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153  (eval "$ac_try") 2>&5
12154  ac_status=$?
12155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156  (exit $ac_status); }; } &&
12157	 { ac_try='test -s conftest$ac_exeext'
12158  { (case "(($ac_try" in
12159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12160  *) ac_try_echo=$ac_try;;
12161esac
12162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12163  (eval "$ac_try") 2>&5
12164  ac_status=$?
12165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166  (exit $ac_status); }; }; then
12167  eval "$as_ac_var=yes"
12168else
12169  echo "$as_me: failed program was:" >&5
12170sed 's/^/| /' conftest.$ac_ext >&5
12171
12172	eval "$as_ac_var=no"
12173fi
12174
12175rm -f core conftest.err conftest.$ac_objext \
12176      conftest$ac_exeext conftest.$ac_ext
12177fi
12178ac_res=`eval echo '${'$as_ac_var'}'`
12179	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12180echo "${ECHO_T}$ac_res" >&6; }
12181if test `eval echo '${'$as_ac_var'}'` = yes; then
12182  cat >>confdefs.h <<_ACEOF
12183#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12184_ACEOF
12185 break
12186fi
12187done
12188
12189
12190
12191for ac_func in memcpy bcopy
12192do
12193as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12194{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12195echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12196if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12197  echo $ECHO_N "(cached) $ECHO_C" >&6
12198else
12199  cat >conftest.$ac_ext <<_ACEOF
12200/* confdefs.h.  */
12201_ACEOF
12202cat confdefs.h >>conftest.$ac_ext
12203cat >>conftest.$ac_ext <<_ACEOF
12204/* end confdefs.h.  */
12205/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12206   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12207#define $ac_func innocuous_$ac_func
12208
12209/* System header to define __stub macros and hopefully few prototypes,
12210    which can conflict with char $ac_func (); below.
12211    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12212    <limits.h> exists even on freestanding compilers.  */
12213
12214#ifdef __STDC__
12215# include <limits.h>
12216#else
12217# include <assert.h>
12218#endif
12219
12220#undef $ac_func
12221
12222/* Override any GCC internal prototype to avoid an error.
12223   Use char because int might match the return type of a GCC
12224   builtin and then its argument prototype would still apply.  */
12225#ifdef __cplusplus
12226extern "C"
12227#endif
12228char $ac_func ();
12229/* The GNU C library defines this for functions which it implements
12230    to always fail with ENOSYS.  Some functions are actually named
12231    something starting with __ and the normal name is an alias.  */
12232#if defined __stub_$ac_func || defined __stub___$ac_func
12233choke me
12234#endif
12235
12236int
12237main ()
12238{
12239return $ac_func ();
12240  ;
12241  return 0;
12242}
12243_ACEOF
12244rm -f conftest.$ac_objext conftest$ac_exeext
12245if { (ac_try="$ac_link"
12246case "(($ac_try" in
12247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12248  *) ac_try_echo=$ac_try;;
12249esac
12250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12251  (eval "$ac_link") 2>conftest.er1
12252  ac_status=$?
12253  grep -v '^ *+' conftest.er1 >conftest.err
12254  rm -f conftest.er1
12255  cat conftest.err >&5
12256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257  (exit $ac_status); } &&
12258	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12259  { (case "(($ac_try" in
12260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12261  *) ac_try_echo=$ac_try;;
12262esac
12263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12264  (eval "$ac_try") 2>&5
12265  ac_status=$?
12266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267  (exit $ac_status); }; } &&
12268	 { ac_try='test -s conftest$ac_exeext'
12269  { (case "(($ac_try" in
12270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271  *) ac_try_echo=$ac_try;;
12272esac
12273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12274  (eval "$ac_try") 2>&5
12275  ac_status=$?
12276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277  (exit $ac_status); }; }; then
12278  eval "$as_ac_var=yes"
12279else
12280  echo "$as_me: failed program was:" >&5
12281sed 's/^/| /' conftest.$ac_ext >&5
12282
12283	eval "$as_ac_var=no"
12284fi
12285
12286rm -f core conftest.err conftest.$ac_objext \
12287      conftest$ac_exeext conftest.$ac_ext
12288fi
12289ac_res=`eval echo '${'$as_ac_var'}'`
12290	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12291echo "${ECHO_T}$ac_res" >&6; }
12292if test `eval echo '${'$as_ac_var'}'` = yes; then
12293  cat >>confdefs.h <<_ACEOF
12294#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12295_ACEOF
12296 break
12297fi
12298done
12299
12300
12301
12302for ac_func in memmove strcmp
12303do
12304as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12305{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12306echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12307if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12308  echo $ECHO_N "(cached) $ECHO_C" >&6
12309else
12310  cat >conftest.$ac_ext <<_ACEOF
12311/* confdefs.h.  */
12312_ACEOF
12313cat confdefs.h >>conftest.$ac_ext
12314cat >>conftest.$ac_ext <<_ACEOF
12315/* end confdefs.h.  */
12316/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12317   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12318#define $ac_func innocuous_$ac_func
12319
12320/* System header to define __stub macros and hopefully few prototypes,
12321    which can conflict with char $ac_func (); below.
12322    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12323    <limits.h> exists even on freestanding compilers.  */
12324
12325#ifdef __STDC__
12326# include <limits.h>
12327#else
12328# include <assert.h>
12329#endif
12330
12331#undef $ac_func
12332
12333/* Override any GCC internal prototype to avoid an error.
12334   Use char because int might match the return type of a GCC
12335   builtin and then its argument prototype would still apply.  */
12336#ifdef __cplusplus
12337extern "C"
12338#endif
12339char $ac_func ();
12340/* The GNU C library defines this for functions which it implements
12341    to always fail with ENOSYS.  Some functions are actually named
12342    something starting with __ and the normal name is an alias.  */
12343#if defined __stub_$ac_func || defined __stub___$ac_func
12344choke me
12345#endif
12346
12347int
12348main ()
12349{
12350return $ac_func ();
12351  ;
12352  return 0;
12353}
12354_ACEOF
12355rm -f conftest.$ac_objext conftest$ac_exeext
12356if { (ac_try="$ac_link"
12357case "(($ac_try" in
12358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12359  *) ac_try_echo=$ac_try;;
12360esac
12361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12362  (eval "$ac_link") 2>conftest.er1
12363  ac_status=$?
12364  grep -v '^ *+' conftest.er1 >conftest.err
12365  rm -f conftest.er1
12366  cat conftest.err >&5
12367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368  (exit $ac_status); } &&
12369	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12370  { (case "(($ac_try" in
12371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12372  *) ac_try_echo=$ac_try;;
12373esac
12374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12375  (eval "$ac_try") 2>&5
12376  ac_status=$?
12377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378  (exit $ac_status); }; } &&
12379	 { ac_try='test -s conftest$ac_exeext'
12380  { (case "(($ac_try" in
12381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12382  *) ac_try_echo=$ac_try;;
12383esac
12384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12385  (eval "$ac_try") 2>&5
12386  ac_status=$?
12387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388  (exit $ac_status); }; }; then
12389  eval "$as_ac_var=yes"
12390else
12391  echo "$as_me: failed program was:" >&5
12392sed 's/^/| /' conftest.$ac_ext >&5
12393
12394	eval "$as_ac_var=no"
12395fi
12396
12397rm -f core conftest.err conftest.$ac_objext \
12398      conftest$ac_exeext conftest.$ac_ext
12399fi
12400ac_res=`eval echo '${'$as_ac_var'}'`
12401	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12402echo "${ECHO_T}$ac_res" >&6; }
12403if test `eval echo '${'$as_ac_var'}'` = yes; then
12404  cat >>confdefs.h <<_ACEOF
12405#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12406_ACEOF
12407
12408fi
12409done
12410
12411
12412
12413
12414for ac_func in closedir opendir readdir
12415do
12416as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12417{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12418echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12419if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12420  echo $ECHO_N "(cached) $ECHO_C" >&6
12421else
12422  cat >conftest.$ac_ext <<_ACEOF
12423/* confdefs.h.  */
12424_ACEOF
12425cat confdefs.h >>conftest.$ac_ext
12426cat >>conftest.$ac_ext <<_ACEOF
12427/* end confdefs.h.  */
12428/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12429   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12430#define $ac_func innocuous_$ac_func
12431
12432/* System header to define __stub macros and hopefully few prototypes,
12433    which can conflict with char $ac_func (); below.
12434    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12435    <limits.h> exists even on freestanding compilers.  */
12436
12437#ifdef __STDC__
12438# include <limits.h>
12439#else
12440# include <assert.h>
12441#endif
12442
12443#undef $ac_func
12444
12445/* Override any GCC internal prototype to avoid an error.
12446   Use char because int might match the return type of a GCC
12447   builtin and then its argument prototype would still apply.  */
12448#ifdef __cplusplus
12449extern "C"
12450#endif
12451char $ac_func ();
12452/* The GNU C library defines this for functions which it implements
12453    to always fail with ENOSYS.  Some functions are actually named
12454    something starting with __ and the normal name is an alias.  */
12455#if defined __stub_$ac_func || defined __stub___$ac_func
12456choke me
12457#endif
12458
12459int
12460main ()
12461{
12462return $ac_func ();
12463  ;
12464  return 0;
12465}
12466_ACEOF
12467rm -f conftest.$ac_objext conftest$ac_exeext
12468if { (ac_try="$ac_link"
12469case "(($ac_try" in
12470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12471  *) ac_try_echo=$ac_try;;
12472esac
12473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12474  (eval "$ac_link") 2>conftest.er1
12475  ac_status=$?
12476  grep -v '^ *+' conftest.er1 >conftest.err
12477  rm -f conftest.er1
12478  cat conftest.err >&5
12479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480  (exit $ac_status); } &&
12481	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12482  { (case "(($ac_try" in
12483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12484  *) ac_try_echo=$ac_try;;
12485esac
12486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12487  (eval "$ac_try") 2>&5
12488  ac_status=$?
12489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490  (exit $ac_status); }; } &&
12491	 { ac_try='test -s conftest$ac_exeext'
12492  { (case "(($ac_try" in
12493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12494  *) ac_try_echo=$ac_try;;
12495esac
12496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12497  (eval "$ac_try") 2>&5
12498  ac_status=$?
12499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500  (exit $ac_status); }; }; then
12501  eval "$as_ac_var=yes"
12502else
12503  echo "$as_me: failed program was:" >&5
12504sed 's/^/| /' conftest.$ac_ext >&5
12505
12506	eval "$as_ac_var=no"
12507fi
12508
12509rm -f core conftest.err conftest.$ac_objext \
12510      conftest$ac_exeext conftest.$ac_ext
12511fi
12512ac_res=`eval echo '${'$as_ac_var'}'`
12513	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12514echo "${ECHO_T}$ac_res" >&6; }
12515if test `eval echo '${'$as_ac_var'}'` = yes; then
12516  cat >>confdefs.h <<_ACEOF
12517#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12518_ACEOF
12519
12520fi
12521done
12522
12523
12524# Check whether --enable-shared was given.
12525if test "${enable_shared+set}" = set; then
12526  enableval=$enable_shared; p=${PACKAGE-default}
12527    case $enableval in
12528    yes) enable_shared=yes ;;
12529    no) enable_shared=no ;;
12530    *)
12531      enable_shared=no
12532      # Look at the argument we got.  We use all the common list separators.
12533      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12534      for pkg in $enableval; do
12535	IFS="$lt_save_ifs"
12536	if test "X$pkg" = "X$p"; then
12537	  enable_shared=yes
12538	fi
12539      done
12540      IFS="$lt_save_ifs"
12541      ;;
12542    esac
12543else
12544  enable_shared=yes
12545fi
12546
12547
12548# Check whether --enable-static was given.
12549if test "${enable_static+set}" = set; then
12550  enableval=$enable_static; p=${PACKAGE-default}
12551    case $enableval in
12552    yes) enable_static=yes ;;
12553    no) enable_static=no ;;
12554    *)
12555     enable_static=no
12556      # Look at the argument we got.  We use all the common list separators.
12557      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12558      for pkg in $enableval; do
12559	IFS="$lt_save_ifs"
12560	if test "X$pkg" = "X$p"; then
12561	  enable_static=yes
12562	fi
12563      done
12564      IFS="$lt_save_ifs"
12565      ;;
12566    esac
12567else
12568  enable_static=yes
12569fi
12570
12571
12572# Check whether --enable-fast-install was given.
12573if test "${enable_fast_install+set}" = set; then
12574  enableval=$enable_fast_install; p=${PACKAGE-default}
12575    case $enableval in
12576    yes) enable_fast_install=yes ;;
12577    no) enable_fast_install=no ;;
12578    *)
12579      enable_fast_install=no
12580      # Look at the argument we got.  We use all the common list separators.
12581      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12582      for pkg in $enableval; do
12583	IFS="$lt_save_ifs"
12584	if test "X$pkg" = "X$p"; then
12585	  enable_fast_install=yes
12586	fi
12587      done
12588      IFS="$lt_save_ifs"
12589      ;;
12590    esac
12591else
12592  enable_fast_install=yes
12593fi
12594
12595
12596{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12597echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12598if test "${lt_cv_path_SED+set}" = set; then
12599  echo $ECHO_N "(cached) $ECHO_C" >&6
12600else
12601  # Loop through the user's path and test for sed and gsed.
12602# Then use that list of sed's as ones to test for truncation.
12603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12604for as_dir in $PATH
12605do
12606  IFS=$as_save_IFS
12607  test -z "$as_dir" && as_dir=.
12608  for lt_ac_prog in sed gsed; do
12609    for ac_exec_ext in '' $ac_executable_extensions; do
12610      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12611        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12612      fi
12613    done
12614  done
12615done
12616lt_ac_max=0
12617lt_ac_count=0
12618# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12619# along with /bin/sed that truncates output.
12620for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12621  test ! -f $lt_ac_sed && continue
12622  cat /dev/null > conftest.in
12623  lt_ac_count=0
12624  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12625  # Check for GNU sed and select it if it is found.
12626  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12627    lt_cv_path_SED=$lt_ac_sed
12628    break
12629  fi
12630  while true; do
12631    cat conftest.in conftest.in >conftest.tmp
12632    mv conftest.tmp conftest.in
12633    cp conftest.in conftest.nl
12634    echo >>conftest.nl
12635    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12636    cmp -s conftest.out conftest.nl || break
12637    # 10000 chars as input seems more than enough
12638    test $lt_ac_count -gt 10 && break
12639    lt_ac_count=`expr $lt_ac_count + 1`
12640    if test $lt_ac_count -gt $lt_ac_max; then
12641      lt_ac_max=$lt_ac_count
12642      lt_cv_path_SED=$lt_ac_sed
12643    fi
12644  done
12645done
12646
12647fi
12648
12649SED=$lt_cv_path_SED
12650{ echo "$as_me:$LINENO: result: $SED" >&5
12651echo "${ECHO_T}$SED" >&6; }
12652
12653
12654# Check whether --with-gnu-ld was given.
12655if test "${with_gnu_ld+set}" = set; then
12656  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12657else
12658  with_gnu_ld=no
12659fi
12660
12661ac_prog=ld
12662if test "$GCC" = yes; then
12663  # Check if gcc -print-prog-name=ld gives a path.
12664  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12665echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12666  case $host in
12667  *-*-mingw*)
12668    # gcc leaves a trailing carriage return which upsets mingw
12669    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12670  *)
12671    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12672  esac
12673  case $ac_prog in
12674    # Accept absolute paths.
12675    [\\/]* | ?:[\\/]*)
12676      re_direlt='/[^/][^/]*/\.\./'
12677      # Canonicalize the pathname of ld
12678      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12679      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12680	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12681      done
12682      test -z "$LD" && LD="$ac_prog"
12683      ;;
12684  "")
12685    # If it fails, then pretend we aren't using GCC.
12686    ac_prog=ld
12687    ;;
12688  *)
12689    # If it is relative, then search for the first ld in PATH.
12690    with_gnu_ld=unknown
12691    ;;
12692  esac
12693elif test "$with_gnu_ld" = yes; then
12694  { echo "$as_me:$LINENO: checking for GNU ld" >&5
12695echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12696else
12697  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12698echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12699fi
12700if test "${lt_cv_path_LD+set}" = set; then
12701  echo $ECHO_N "(cached) $ECHO_C" >&6
12702else
12703  if test -z "$LD"; then
12704  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12705  for ac_dir in $PATH; do
12706    IFS="$lt_save_ifs"
12707    test -z "$ac_dir" && ac_dir=.
12708    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12709      lt_cv_path_LD="$ac_dir/$ac_prog"
12710      # Check to see if the program is GNU ld.  I'd rather use --version,
12711      # but apparently some variants of GNU ld only accept -v.
12712      # Break only if it was the GNU/non-GNU ld that we prefer.
12713      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12714      *GNU* | *'with BFD'*)
12715	test "$with_gnu_ld" != no && break
12716	;;
12717      *)
12718	test "$with_gnu_ld" != yes && break
12719	;;
12720      esac
12721    fi
12722  done
12723  IFS="$lt_save_ifs"
12724else
12725  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12726fi
12727fi
12728
12729LD="$lt_cv_path_LD"
12730if test -n "$LD"; then
12731  { echo "$as_me:$LINENO: result: $LD" >&5
12732echo "${ECHO_T}$LD" >&6; }
12733else
12734  { echo "$as_me:$LINENO: result: no" >&5
12735echo "${ECHO_T}no" >&6; }
12736fi
12737test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12738echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12739   { (exit 1); exit 1; }; }
12740{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12741echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12742if test "${lt_cv_prog_gnu_ld+set}" = set; then
12743  echo $ECHO_N "(cached) $ECHO_C" >&6
12744else
12745  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12746case `$LD -v 2>&1 </dev/null` in
12747*GNU* | *'with BFD'*)
12748  lt_cv_prog_gnu_ld=yes
12749  ;;
12750*)
12751  lt_cv_prog_gnu_ld=no
12752  ;;
12753esac
12754fi
12755{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12756echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12757with_gnu_ld=$lt_cv_prog_gnu_ld
12758
12759
12760{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12761echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12762if test "${lt_cv_ld_reload_flag+set}" = set; then
12763  echo $ECHO_N "(cached) $ECHO_C" >&6
12764else
12765  lt_cv_ld_reload_flag='-r'
12766fi
12767{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12768echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12769reload_flag=$lt_cv_ld_reload_flag
12770case $reload_flag in
12771"" | " "*) ;;
12772*) reload_flag=" $reload_flag" ;;
12773esac
12774reload_cmds='$LD$reload_flag -o $output$reload_objs'
12775case $host_os in
12776  darwin*)
12777    if test "$GCC" = yes; then
12778      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12779    else
12780      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12781    fi
12782    ;;
12783esac
12784
12785{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12786echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12787if test "${lt_cv_deplibs_check_method+set}" = set; then
12788  echo $ECHO_N "(cached) $ECHO_C" >&6
12789else
12790  lt_cv_file_magic_cmd='$MAGIC_CMD'
12791lt_cv_file_magic_test_file=
12792lt_cv_deplibs_check_method='unknown'
12793# Need to set the preceding variable on all platforms that support
12794# interlibrary dependencies.
12795# 'none' -- dependencies not supported.
12796# `unknown' -- same as none, but documents that we really don't know.
12797# 'pass_all' -- all dependencies passed with no checks.
12798# 'test_compile' -- check by making test program.
12799# 'file_magic [[regex]]' -- check by looking for files in library path
12800# which responds to the $file_magic_cmd with a given extended regex.
12801# If you have `file' or equivalent on your system and you're not sure
12802# whether `pass_all' will *always* work, you probably want this one.
12803
12804case $host_os in
12805aix4* | aix5*)
12806  lt_cv_deplibs_check_method=pass_all
12807  ;;
12808
12809beos*)
12810  lt_cv_deplibs_check_method=pass_all
12811  ;;
12812
12813bsdi[45]*)
12814  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12815  lt_cv_file_magic_cmd='/usr/bin/file -L'
12816  lt_cv_file_magic_test_file=/shlib/libc.so
12817  ;;
12818
12819cygwin*)
12820  # func_win32_libid is a shell function defined in ltmain.sh
12821  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12822  lt_cv_file_magic_cmd='func_win32_libid'
12823  ;;
12824
12825mingw* | pw32*)
12826  # Base MSYS/MinGW do not provide the 'file' command needed by
12827  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12828  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12829  lt_cv_file_magic_cmd='$OBJDUMP -f'
12830  ;;
12831
12832darwin* | rhapsody*)
12833  lt_cv_deplibs_check_method=pass_all
12834  ;;
12835
12836freebsd* | kfreebsd*-gnu | dragonfly*)
12837  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12838    case $host_cpu in
12839    i*86 )
12840      # Not sure whether the presence of OpenBSD here was a mistake.
12841      # Let's accept both of them until this is cleared up.
12842      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12843      lt_cv_file_magic_cmd=/usr/bin/file
12844      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12845      ;;
12846    esac
12847  else
12848    lt_cv_deplibs_check_method=pass_all
12849  fi
12850  ;;
12851
12852gnu*)
12853  lt_cv_deplibs_check_method=pass_all
12854  ;;
12855
12856hpux10.20* | hpux11*)
12857  lt_cv_file_magic_cmd=/usr/bin/file
12858  case $host_cpu in
12859  ia64*)
12860    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12861    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12862    ;;
12863  hppa*64*)
12864    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]'
12865    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12866    ;;
12867  *)
12868    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12869    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12870    ;;
12871  esac
12872  ;;
12873
12874interix3*)
12875  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12876  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12877  ;;
12878
12879irix5* | irix6* | nonstopux*)
12880  case $LD in
12881  *-32|*"-32 ") libmagic=32-bit;;
12882  *-n32|*"-n32 ") libmagic=N32;;
12883  *-64|*"-64 ") libmagic=64-bit;;
12884  *) libmagic=never-match;;
12885  esac
12886  lt_cv_deplibs_check_method=pass_all
12887  ;;
12888
12889# This must be Linux ELF.
12890linux*)
12891  lt_cv_deplibs_check_method=pass_all
12892  ;;
12893
12894netbsd*)
12895  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12896    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12897  else
12898    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12899  fi
12900  ;;
12901
12902newos6*)
12903  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12904  lt_cv_file_magic_cmd=/usr/bin/file
12905  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12906  ;;
12907
12908nto-qnx*)
12909  lt_cv_deplibs_check_method=unknown
12910  ;;
12911
12912openbsd*)
12913  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12914    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12915  else
12916    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12917  fi
12918  ;;
12919
12920osf3* | osf4* | osf5*)
12921  lt_cv_deplibs_check_method=pass_all
12922  ;;
12923
12924solaris*)
12925  lt_cv_deplibs_check_method=pass_all
12926  ;;
12927
12928sysv4 | sysv4.3*)
12929  case $host_vendor in
12930  motorola)
12931    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]'
12932    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12933    ;;
12934  ncr)
12935    lt_cv_deplibs_check_method=pass_all
12936    ;;
12937  sequent)
12938    lt_cv_file_magic_cmd='/bin/file'
12939    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12940    ;;
12941  sni)
12942    lt_cv_file_magic_cmd='/bin/file'
12943    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12944    lt_cv_file_magic_test_file=/lib/libc.so
12945    ;;
12946  siemens)
12947    lt_cv_deplibs_check_method=pass_all
12948    ;;
12949  pc)
12950    lt_cv_deplibs_check_method=pass_all
12951    ;;
12952  esac
12953  ;;
12954
12955sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12956  lt_cv_deplibs_check_method=pass_all
12957  ;;
12958esac
12959
12960fi
12961{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12962echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12963file_magic_cmd=$lt_cv_file_magic_cmd
12964deplibs_check_method=$lt_cv_deplibs_check_method
12965test -z "$deplibs_check_method" && deplibs_check_method=unknown
12966
12967
12968
12969# If no C compiler was specified, use CC.
12970LTCC=${LTCC-"$CC"}
12971
12972# If no C compiler flags were specified, use CFLAGS.
12973LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12974
12975# Allow CC to be a program name with arguments.
12976compiler=$CC
12977
12978# Check whether --enable-libtool-lock was given.
12979if test "${enable_libtool_lock+set}" = set; then
12980  enableval=$enable_libtool_lock;
12981fi
12982
12983test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12984
12985# Some flags need to be propagated to the compiler or linker for good
12986# libtool support.
12987case $host in
12988ia64-*-hpux*)
12989  # Find out which ABI we are using.
12990  echo 'int i;' > conftest.$ac_ext
12991  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12992  (eval $ac_compile) 2>&5
12993  ac_status=$?
12994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995  (exit $ac_status); }; then
12996    case `/usr/bin/file conftest.$ac_objext` in
12997    *ELF-32*)
12998      HPUX_IA64_MODE="32"
12999      ;;
13000    *ELF-64*)
13001      HPUX_IA64_MODE="64"
13002      ;;
13003    esac
13004  fi
13005  rm -rf conftest*
13006  ;;
13007*-*-irix6*)
13008  # Find out which ABI we are using.
13009  echo '#line 13009 "configure"' > conftest.$ac_ext
13010  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13011  (eval $ac_compile) 2>&5
13012  ac_status=$?
13013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014  (exit $ac_status); }; then
13015   if test "$lt_cv_prog_gnu_ld" = yes; then
13016    case `/usr/bin/file conftest.$ac_objext` in
13017    *32-bit*)
13018      LD="${LD-ld} -melf32bsmip"
13019      ;;
13020    *N32*)
13021      LD="${LD-ld} -melf32bmipn32"
13022      ;;
13023    *64-bit*)
13024      LD="${LD-ld} -melf64bmip"
13025      ;;
13026    esac
13027   else
13028    case `/usr/bin/file conftest.$ac_objext` in
13029    *32-bit*)
13030      LD="${LD-ld} -32"
13031      ;;
13032    *N32*)
13033      LD="${LD-ld} -n32"
13034      ;;
13035    *64-bit*)
13036      LD="${LD-ld} -64"
13037      ;;
13038    esac
13039   fi
13040  fi
13041  rm -rf conftest*
13042  ;;
13043
13044x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13045  # Find out which ABI we are using.
13046  echo 'int i;' > conftest.$ac_ext
13047  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13048  (eval $ac_compile) 2>&5
13049  ac_status=$?
13050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051  (exit $ac_status); }; then
13052    case `/usr/bin/file conftest.o` in
13053    *32-bit*)
13054      case $host in
13055        x86_64-*linux*)
13056          LD="${LD-ld} -m elf_i386"
13057          ;;
13058        ppc64-*linux*|powerpc64-*linux*)
13059          LD="${LD-ld} -m elf32ppclinux"
13060          ;;
13061        s390x-*linux*)
13062          LD="${LD-ld} -m elf_s390"
13063          ;;
13064        sparc64-*linux*)
13065          LD="${LD-ld} -m elf32_sparc"
13066          ;;
13067      esac
13068      ;;
13069    *64-bit*)
13070      case $host in
13071        x86_64-*linux*)
13072          LD="${LD-ld} -m elf_x86_64"
13073          ;;
13074        ppc*-*linux*|powerpc*-*linux*)
13075          LD="${LD-ld} -m elf64ppc"
13076          ;;
13077        s390*-*linux*)
13078          LD="${LD-ld} -m elf64_s390"
13079          ;;
13080        sparc*-*linux*)
13081          LD="${LD-ld} -m elf64_sparc"
13082          ;;
13083      esac
13084      ;;
13085    esac
13086  fi
13087  rm -rf conftest*
13088  ;;
13089
13090*-*-sco3.2v5*)
13091  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13092  SAVE_CFLAGS="$CFLAGS"
13093  CFLAGS="$CFLAGS -belf"
13094  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13095echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13096if test "${lt_cv_cc_needs_belf+set}" = set; then
13097  echo $ECHO_N "(cached) $ECHO_C" >&6
13098else
13099  ac_ext=c
13100ac_cpp='$CPP $CPPFLAGS'
13101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13103ac_compiler_gnu=$ac_cv_c_compiler_gnu
13104
13105     cat >conftest.$ac_ext <<_ACEOF
13106/* confdefs.h.  */
13107_ACEOF
13108cat confdefs.h >>conftest.$ac_ext
13109cat >>conftest.$ac_ext <<_ACEOF
13110/* end confdefs.h.  */
13111
13112int
13113main ()
13114{
13115
13116  ;
13117  return 0;
13118}
13119_ACEOF
13120rm -f conftest.$ac_objext conftest$ac_exeext
13121if { (ac_try="$ac_link"
13122case "(($ac_try" in
13123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13124  *) ac_try_echo=$ac_try;;
13125esac
13126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13127  (eval "$ac_link") 2>conftest.er1
13128  ac_status=$?
13129  grep -v '^ *+' conftest.er1 >conftest.err
13130  rm -f conftest.er1
13131  cat conftest.err >&5
13132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133  (exit $ac_status); } &&
13134	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13135  { (case "(($ac_try" in
13136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13137  *) ac_try_echo=$ac_try;;
13138esac
13139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13140  (eval "$ac_try") 2>&5
13141  ac_status=$?
13142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143  (exit $ac_status); }; } &&
13144	 { ac_try='test -s conftest$ac_exeext'
13145  { (case "(($ac_try" in
13146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13147  *) ac_try_echo=$ac_try;;
13148esac
13149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13150  (eval "$ac_try") 2>&5
13151  ac_status=$?
13152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153  (exit $ac_status); }; }; then
13154  lt_cv_cc_needs_belf=yes
13155else
13156  echo "$as_me: failed program was:" >&5
13157sed 's/^/| /' conftest.$ac_ext >&5
13158
13159	lt_cv_cc_needs_belf=no
13160fi
13161
13162rm -f core conftest.err conftest.$ac_objext \
13163      conftest$ac_exeext conftest.$ac_ext
13164     ac_ext=c
13165ac_cpp='$CPP $CPPFLAGS'
13166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13168ac_compiler_gnu=$ac_cv_c_compiler_gnu
13169
13170fi
13171{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13172echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13173  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13174    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13175    CFLAGS="$SAVE_CFLAGS"
13176  fi
13177  ;;
13178sparc*-*solaris*)
13179  # Find out which ABI we are using.
13180  echo 'int i;' > conftest.$ac_ext
13181  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13182  (eval $ac_compile) 2>&5
13183  ac_status=$?
13184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185  (exit $ac_status); }; then
13186    case `/usr/bin/file conftest.o` in
13187    *64-bit*)
13188      case $lt_cv_prog_gnu_ld in
13189      yes*) LD="${LD-ld} -m elf64_sparc" ;;
13190      *)    LD="${LD-ld} -64" ;;
13191      esac
13192      ;;
13193    esac
13194  fi
13195  rm -rf conftest*
13196  ;;
13197
13198
13199esac
13200
13201need_locks="$enable_libtool_lock"
13202
13203
13204
13205
13206if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13207    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13208    (test "X$CXX" != "Xg++"))) ; then
13209  ac_ext=cpp
13210ac_cpp='$CXXCPP $CPPFLAGS'
13211ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13212ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13213ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13214{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13215echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13216if test -z "$CXXCPP"; then
13217  if test "${ac_cv_prog_CXXCPP+set}" = set; then
13218  echo $ECHO_N "(cached) $ECHO_C" >&6
13219else
13220      # Double quotes because CXXCPP needs to be expanded
13221    for CXXCPP in "$CXX -E" "/lib/cpp"
13222    do
13223      ac_preproc_ok=false
13224for ac_cxx_preproc_warn_flag in '' yes
13225do
13226  # Use a header file that comes with gcc, so configuring glibc
13227  # with a fresh cross-compiler works.
13228  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13229  # <limits.h> exists even on freestanding compilers.
13230  # On the NeXT, cc -E runs the code through the compiler's parser,
13231  # not just through cpp. "Syntax error" is here to catch this case.
13232  cat >conftest.$ac_ext <<_ACEOF
13233/* confdefs.h.  */
13234_ACEOF
13235cat confdefs.h >>conftest.$ac_ext
13236cat >>conftest.$ac_ext <<_ACEOF
13237/* end confdefs.h.  */
13238#ifdef __STDC__
13239# include <limits.h>
13240#else
13241# include <assert.h>
13242#endif
13243		     Syntax error
13244_ACEOF
13245if { (ac_try="$ac_cpp conftest.$ac_ext"
13246case "(($ac_try" in
13247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248  *) ac_try_echo=$ac_try;;
13249esac
13250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13252  ac_status=$?
13253  grep -v '^ *+' conftest.er1 >conftest.err
13254  rm -f conftest.er1
13255  cat conftest.err >&5
13256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257  (exit $ac_status); } >/dev/null; then
13258  if test -s conftest.err; then
13259    ac_cpp_err=$ac_cxx_preproc_warn_flag
13260    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13261  else
13262    ac_cpp_err=
13263  fi
13264else
13265  ac_cpp_err=yes
13266fi
13267if test -z "$ac_cpp_err"; then
13268  :
13269else
13270  echo "$as_me: failed program was:" >&5
13271sed 's/^/| /' conftest.$ac_ext >&5
13272
13273  # Broken: fails on valid input.
13274continue
13275fi
13276
13277rm -f conftest.err conftest.$ac_ext
13278
13279  # OK, works on sane cases.  Now check whether nonexistent headers
13280  # can be detected and how.
13281  cat >conftest.$ac_ext <<_ACEOF
13282/* confdefs.h.  */
13283_ACEOF
13284cat confdefs.h >>conftest.$ac_ext
13285cat >>conftest.$ac_ext <<_ACEOF
13286/* end confdefs.h.  */
13287#include <ac_nonexistent.h>
13288_ACEOF
13289if { (ac_try="$ac_cpp conftest.$ac_ext"
13290case "(($ac_try" in
13291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13292  *) ac_try_echo=$ac_try;;
13293esac
13294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13295  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13296  ac_status=$?
13297  grep -v '^ *+' conftest.er1 >conftest.err
13298  rm -f conftest.er1
13299  cat conftest.err >&5
13300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301  (exit $ac_status); } >/dev/null; then
13302  if test -s conftest.err; then
13303    ac_cpp_err=$ac_cxx_preproc_warn_flag
13304    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13305  else
13306    ac_cpp_err=
13307  fi
13308else
13309  ac_cpp_err=yes
13310fi
13311if test -z "$ac_cpp_err"; then
13312  # Broken: success on invalid input.
13313continue
13314else
13315  echo "$as_me: failed program was:" >&5
13316sed 's/^/| /' conftest.$ac_ext >&5
13317
13318  # Passes both tests.
13319ac_preproc_ok=:
13320break
13321fi
13322
13323rm -f conftest.err conftest.$ac_ext
13324
13325done
13326# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13327rm -f conftest.err conftest.$ac_ext
13328if $ac_preproc_ok; then
13329  break
13330fi
13331
13332    done
13333    ac_cv_prog_CXXCPP=$CXXCPP
13334
13335fi
13336  CXXCPP=$ac_cv_prog_CXXCPP
13337else
13338  ac_cv_prog_CXXCPP=$CXXCPP
13339fi
13340{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13341echo "${ECHO_T}$CXXCPP" >&6; }
13342ac_preproc_ok=false
13343for ac_cxx_preproc_warn_flag in '' yes
13344do
13345  # Use a header file that comes with gcc, so configuring glibc
13346  # with a fresh cross-compiler works.
13347  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13348  # <limits.h> exists even on freestanding compilers.
13349  # On the NeXT, cc -E runs the code through the compiler's parser,
13350  # not just through cpp. "Syntax error" is here to catch this case.
13351  cat >conftest.$ac_ext <<_ACEOF
13352/* confdefs.h.  */
13353_ACEOF
13354cat confdefs.h >>conftest.$ac_ext
13355cat >>conftest.$ac_ext <<_ACEOF
13356/* end confdefs.h.  */
13357#ifdef __STDC__
13358# include <limits.h>
13359#else
13360# include <assert.h>
13361#endif
13362		     Syntax error
13363_ACEOF
13364if { (ac_try="$ac_cpp conftest.$ac_ext"
13365case "(($ac_try" in
13366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367  *) ac_try_echo=$ac_try;;
13368esac
13369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13371  ac_status=$?
13372  grep -v '^ *+' conftest.er1 >conftest.err
13373  rm -f conftest.er1
13374  cat conftest.err >&5
13375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376  (exit $ac_status); } >/dev/null; then
13377  if test -s conftest.err; then
13378    ac_cpp_err=$ac_cxx_preproc_warn_flag
13379    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13380  else
13381    ac_cpp_err=
13382  fi
13383else
13384  ac_cpp_err=yes
13385fi
13386if test -z "$ac_cpp_err"; then
13387  :
13388else
13389  echo "$as_me: failed program was:" >&5
13390sed 's/^/| /' conftest.$ac_ext >&5
13391
13392  # Broken: fails on valid input.
13393continue
13394fi
13395
13396rm -f conftest.err conftest.$ac_ext
13397
13398  # OK, works on sane cases.  Now check whether nonexistent headers
13399  # can be detected and how.
13400  cat >conftest.$ac_ext <<_ACEOF
13401/* confdefs.h.  */
13402_ACEOF
13403cat confdefs.h >>conftest.$ac_ext
13404cat >>conftest.$ac_ext <<_ACEOF
13405/* end confdefs.h.  */
13406#include <ac_nonexistent.h>
13407_ACEOF
13408if { (ac_try="$ac_cpp conftest.$ac_ext"
13409case "(($ac_try" in
13410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411  *) ac_try_echo=$ac_try;;
13412esac
13413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13415  ac_status=$?
13416  grep -v '^ *+' conftest.er1 >conftest.err
13417  rm -f conftest.er1
13418  cat conftest.err >&5
13419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420  (exit $ac_status); } >/dev/null; then
13421  if test -s conftest.err; then
13422    ac_cpp_err=$ac_cxx_preproc_warn_flag
13423    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13424  else
13425    ac_cpp_err=
13426  fi
13427else
13428  ac_cpp_err=yes
13429fi
13430if test -z "$ac_cpp_err"; then
13431  # Broken: success on invalid input.
13432continue
13433else
13434  echo "$as_me: failed program was:" >&5
13435sed 's/^/| /' conftest.$ac_ext >&5
13436
13437  # Passes both tests.
13438ac_preproc_ok=:
13439break
13440fi
13441
13442rm -f conftest.err conftest.$ac_ext
13443
13444done
13445# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13446rm -f conftest.err conftest.$ac_ext
13447if $ac_preproc_ok; then
13448  :
13449else
13450  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13451See \`config.log' for more details." >&5
13452echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13453See \`config.log' for more details." >&2;}
13454   { (exit 1); exit 1; }; }
13455fi
13456
13457ac_ext=cpp
13458ac_cpp='$CXXCPP $CPPFLAGS'
13459ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13460ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13461ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13462
13463fi
13464
13465
13466ac_ext=f
13467ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13468ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13469ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13470if test -n "$ac_tool_prefix"; then
13471  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
13472  do
13473    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13474set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13475{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13477if test "${ac_cv_prog_F77+set}" = set; then
13478  echo $ECHO_N "(cached) $ECHO_C" >&6
13479else
13480  if test -n "$F77"; then
13481  ac_cv_prog_F77="$F77" # Let the user override the test.
13482else
13483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13484for as_dir in $PATH
13485do
13486  IFS=$as_save_IFS
13487  test -z "$as_dir" && as_dir=.
13488  for ac_exec_ext in '' $ac_executable_extensions; do
13489  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13490    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13491    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13492    break 2
13493  fi
13494done
13495done
13496IFS=$as_save_IFS
13497
13498fi
13499fi
13500F77=$ac_cv_prog_F77
13501if test -n "$F77"; then
13502  { echo "$as_me:$LINENO: result: $F77" >&5
13503echo "${ECHO_T}$F77" >&6; }
13504else
13505  { echo "$as_me:$LINENO: result: no" >&5
13506echo "${ECHO_T}no" >&6; }
13507fi
13508
13509
13510    test -n "$F77" && break
13511  done
13512fi
13513if test -z "$F77"; then
13514  ac_ct_F77=$F77
13515  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
13516do
13517  # Extract the first word of "$ac_prog", so it can be a program name with args.
13518set dummy $ac_prog; ac_word=$2
13519{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13521if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13522  echo $ECHO_N "(cached) $ECHO_C" >&6
13523else
13524  if test -n "$ac_ct_F77"; then
13525  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13526else
13527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13528for as_dir in $PATH
13529do
13530  IFS=$as_save_IFS
13531  test -z "$as_dir" && as_dir=.
13532  for ac_exec_ext in '' $ac_executable_extensions; do
13533  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13534    ac_cv_prog_ac_ct_F77="$ac_prog"
13535    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13536    break 2
13537  fi
13538done
13539done
13540IFS=$as_save_IFS
13541
13542fi
13543fi
13544ac_ct_F77=$ac_cv_prog_ac_ct_F77
13545if test -n "$ac_ct_F77"; then
13546  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13547echo "${ECHO_T}$ac_ct_F77" >&6; }
13548else
13549  { echo "$as_me:$LINENO: result: no" >&5
13550echo "${ECHO_T}no" >&6; }
13551fi
13552
13553
13554  test -n "$ac_ct_F77" && break
13555done
13556
13557  if test "x$ac_ct_F77" = x; then
13558    F77=""
13559  else
13560    case $cross_compiling:$ac_tool_warned in
13561yes:)
13562{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13563whose name does not start with the host triplet.  If you think this
13564configuration is useful to you, please write to autoconf@gnu.org." >&5
13565echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13566whose name does not start with the host triplet.  If you think this
13567configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13568ac_tool_warned=yes ;;
13569esac
13570    F77=$ac_ct_F77
13571  fi
13572fi
13573
13574
13575# Provide some information about the compiler.
13576echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13577ac_compiler=`set X $ac_compile; echo $2`
13578{ (ac_try="$ac_compiler --version >&5"
13579case "(($ac_try" in
13580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13581  *) ac_try_echo=$ac_try;;
13582esac
13583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13584  (eval "$ac_compiler --version >&5") 2>&5
13585  ac_status=$?
13586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587  (exit $ac_status); }
13588{ (ac_try="$ac_compiler -v >&5"
13589case "(($ac_try" in
13590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13591  *) ac_try_echo=$ac_try;;
13592esac
13593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13594  (eval "$ac_compiler -v >&5") 2>&5
13595  ac_status=$?
13596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597  (exit $ac_status); }
13598{ (ac_try="$ac_compiler -V >&5"
13599case "(($ac_try" in
13600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13601  *) ac_try_echo=$ac_try;;
13602esac
13603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13604  (eval "$ac_compiler -V >&5") 2>&5
13605  ac_status=$?
13606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607  (exit $ac_status); }
13608rm -f a.out
13609
13610# If we don't use `.F' as extension, the preprocessor is not run on the
13611# input file.  (Note that this only needs to work for GNU compilers.)
13612ac_save_ext=$ac_ext
13613ac_ext=F
13614{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13615echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13616if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13617  echo $ECHO_N "(cached) $ECHO_C" >&6
13618else
13619  cat >conftest.$ac_ext <<_ACEOF
13620      program main
13621#ifndef __GNUC__
13622       choke me
13623#endif
13624
13625      end
13626_ACEOF
13627rm -f conftest.$ac_objext
13628if { (ac_try="$ac_compile"
13629case "(($ac_try" in
13630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13631  *) ac_try_echo=$ac_try;;
13632esac
13633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13634  (eval "$ac_compile") 2>conftest.er1
13635  ac_status=$?
13636  grep -v '^ *+' conftest.er1 >conftest.err
13637  rm -f conftest.er1
13638  cat conftest.err >&5
13639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640  (exit $ac_status); } &&
13641	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13642  { (case "(($ac_try" in
13643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13644  *) ac_try_echo=$ac_try;;
13645esac
13646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13647  (eval "$ac_try") 2>&5
13648  ac_status=$?
13649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650  (exit $ac_status); }; } &&
13651	 { ac_try='test -s conftest.$ac_objext'
13652  { (case "(($ac_try" in
13653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13654  *) ac_try_echo=$ac_try;;
13655esac
13656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13657  (eval "$ac_try") 2>&5
13658  ac_status=$?
13659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660  (exit $ac_status); }; }; then
13661  ac_compiler_gnu=yes
13662else
13663  echo "$as_me: failed program was:" >&5
13664sed 's/^/| /' conftest.$ac_ext >&5
13665
13666	ac_compiler_gnu=no
13667fi
13668
13669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13670ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13671
13672fi
13673{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13674echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13675ac_ext=$ac_save_ext
13676ac_test_FFLAGS=${FFLAGS+set}
13677ac_save_FFLAGS=$FFLAGS
13678FFLAGS=
13679{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13680echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13681if test "${ac_cv_prog_f77_g+set}" = set; then
13682  echo $ECHO_N "(cached) $ECHO_C" >&6
13683else
13684  FFLAGS=-g
13685cat >conftest.$ac_ext <<_ACEOF
13686      program main
13687
13688      end
13689_ACEOF
13690rm -f conftest.$ac_objext
13691if { (ac_try="$ac_compile"
13692case "(($ac_try" in
13693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694  *) ac_try_echo=$ac_try;;
13695esac
13696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13697  (eval "$ac_compile") 2>conftest.er1
13698  ac_status=$?
13699  grep -v '^ *+' conftest.er1 >conftest.err
13700  rm -f conftest.er1
13701  cat conftest.err >&5
13702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703  (exit $ac_status); } &&
13704	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13705  { (case "(($ac_try" in
13706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13707  *) ac_try_echo=$ac_try;;
13708esac
13709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13710  (eval "$ac_try") 2>&5
13711  ac_status=$?
13712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713  (exit $ac_status); }; } &&
13714	 { ac_try='test -s conftest.$ac_objext'
13715  { (case "(($ac_try" in
13716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13717  *) ac_try_echo=$ac_try;;
13718esac
13719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13720  (eval "$ac_try") 2>&5
13721  ac_status=$?
13722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723  (exit $ac_status); }; }; then
13724  ac_cv_prog_f77_g=yes
13725else
13726  echo "$as_me: failed program was:" >&5
13727sed 's/^/| /' conftest.$ac_ext >&5
13728
13729	ac_cv_prog_f77_g=no
13730fi
13731
13732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13733
13734fi
13735{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13736echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13737if test "$ac_test_FFLAGS" = set; then
13738  FFLAGS=$ac_save_FFLAGS
13739elif test $ac_cv_prog_f77_g = yes; then
13740  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13741    FFLAGS="-g -O2"
13742  else
13743    FFLAGS="-g"
13744  fi
13745else
13746  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13747    FFLAGS="-O2"
13748  else
13749    FFLAGS=
13750  fi
13751fi
13752
13753G77=`test $ac_compiler_gnu = yes && echo yes`
13754ac_ext=c
13755ac_cpp='$CPP $CPPFLAGS'
13756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13758ac_compiler_gnu=$ac_cv_c_compiler_gnu
13759
13760
13761
13762# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13763
13764# find the maximum length of command line arguments
13765{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13766echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13767if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13768  echo $ECHO_N "(cached) $ECHO_C" >&6
13769else
13770    i=0
13771  teststring="ABCD"
13772
13773  case $build_os in
13774  msdosdjgpp*)
13775    # On DJGPP, this test can blow up pretty badly due to problems in libc
13776    # (any single argument exceeding 2000 bytes causes a buffer overrun
13777    # during glob expansion).  Even if it were fixed, the result of this
13778    # check would be larger than it should be.
13779    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13780    ;;
13781
13782  gnu*)
13783    # Under GNU Hurd, this test is not required because there is
13784    # no limit to the length of command line arguments.
13785    # Libtool will interpret -1 as no limit whatsoever
13786    lt_cv_sys_max_cmd_len=-1;
13787    ;;
13788
13789  cygwin* | mingw*)
13790    # On Win9x/ME, this test blows up -- it succeeds, but takes
13791    # about 5 minutes as the teststring grows exponentially.
13792    # Worse, since 9x/ME are not pre-emptively multitasking,
13793    # you end up with a "frozen" computer, even though with patience
13794    # the test eventually succeeds (with a max line length of 256k).
13795    # Instead, let's just punt: use the minimum linelength reported by
13796    # all of the supported platforms: 8192 (on NT/2K/XP).
13797    lt_cv_sys_max_cmd_len=8192;
13798    ;;
13799
13800  amigaos*)
13801    # On AmigaOS with pdksh, this test takes hours, literally.
13802    # So we just punt and use a minimum line length of 8192.
13803    lt_cv_sys_max_cmd_len=8192;
13804    ;;
13805
13806  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13807    # This has been around since 386BSD, at least.  Likely further.
13808    if test -x /sbin/sysctl; then
13809      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13810    elif test -x /usr/sbin/sysctl; then
13811      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13812    else
13813      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
13814    fi
13815    # And add a safety zone
13816    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13817    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13818    ;;
13819
13820  interix*)
13821    # We know the value 262144 and hardcode it with a safety zone (like BSD)
13822    lt_cv_sys_max_cmd_len=196608
13823    ;;
13824
13825  osf*)
13826    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13827    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13828    # nice to cause kernel panics so lets avoid the loop below.
13829    # First set a reasonable default.
13830    lt_cv_sys_max_cmd_len=16384
13831    #
13832    if test -x /sbin/sysconfig; then
13833      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13834        *1*) lt_cv_sys_max_cmd_len=-1 ;;
13835      esac
13836    fi
13837    ;;
13838  sco3.2v5*)
13839    lt_cv_sys_max_cmd_len=102400
13840    ;;
13841  sysv5* | sco5v6* | sysv4.2uw2*)
13842    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13843    if test -n "$kargmax"; then
13844      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
13845    else
13846      lt_cv_sys_max_cmd_len=32768
13847    fi
13848    ;;
13849  *)
13850    # If test is not a shell built-in, we'll probably end up computing a
13851    # maximum length that is only half of the actual maximum length, but
13852    # we can't tell.
13853    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13854    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13855	       = "XX$teststring") >/dev/null 2>&1 &&
13856	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
13857	    lt_cv_sys_max_cmd_len=$new_result &&
13858	    test $i != 17 # 1/2 MB should be enough
13859    do
13860      i=`expr $i + 1`
13861      teststring=$teststring$teststring
13862    done
13863    teststring=
13864    # Add a significant safety factor because C++ compilers can tack on massive
13865    # amounts of additional arguments before passing them to the linker.
13866    # It appears as though 1/2 is a usable value.
13867    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13868    ;;
13869  esac
13870
13871fi
13872
13873if test -n $lt_cv_sys_max_cmd_len ; then
13874  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13875echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13876else
13877  { echo "$as_me:$LINENO: result: none" >&5
13878echo "${ECHO_T}none" >&6; }
13879fi
13880
13881
13882
13883
13884# Check for command to grab the raw symbol name followed by C symbol from nm.
13885{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13886echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13887if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13888  echo $ECHO_N "(cached) $ECHO_C" >&6
13889else
13890
13891# These are sane defaults that work on at least a few old systems.
13892# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13893
13894# Character class describing NM global symbol codes.
13895symcode='[BCDEGRST]'
13896
13897# Regexp to match symbols that can be accessed directly from C.
13898sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13899
13900# Transform an extracted symbol line into a proper C declaration
13901lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13902
13903# Transform an extracted symbol line into symbol name and symbol address
13904lt_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'"
13905
13906# Define system-specific variables.
13907case $host_os in
13908aix*)
13909  symcode='[BCDT]'
13910  ;;
13911cygwin* | mingw* | pw32*)
13912  symcode='[ABCDGISTW]'
13913  ;;
13914hpux*) # Its linker distinguishes data from code symbols
13915  if test "$host_cpu" = ia64; then
13916    symcode='[ABCDEGRST]'
13917  fi
13918  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13919  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'"
13920  ;;
13921linux*)
13922  if test "$host_cpu" = ia64; then
13923    symcode='[ABCDGIRSTW]'
13924    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13925    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'"
13926  fi
13927  ;;
13928irix* | nonstopux*)
13929  symcode='[BCDEGRST]'
13930  ;;
13931osf*)
13932  symcode='[BCDEGQRST]'
13933  ;;
13934solaris*)
13935  symcode='[BDRT]'
13936  ;;
13937sco3.2v5*)
13938  symcode='[DT]'
13939  ;;
13940sysv4.2uw2*)
13941  symcode='[DT]'
13942  ;;
13943sysv5* | sco5v6* | unixware* | OpenUNIX*)
13944  symcode='[ABDT]'
13945  ;;
13946sysv4)
13947  symcode='[DFNSTU]'
13948  ;;
13949esac
13950
13951# Handle CRLF in mingw tool chain
13952opt_cr=
13953case $build_os in
13954mingw*)
13955  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13956  ;;
13957esac
13958
13959# If we're using GNU nm, then use its standard symbol codes.
13960case `$NM -V 2>&1` in
13961*GNU* | *'with BFD'*)
13962  symcode='[ABCDGIRSTW]' ;;
13963esac
13964
13965# Try without a prefix undercore, then with it.
13966for ac_symprfx in "" "_"; do
13967
13968  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13969  symxfrm="\\1 $ac_symprfx\\2 \\2"
13970
13971  # Write the raw and C identifiers.
13972  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13973
13974  # Check to see that the pipe works correctly.
13975  pipe_works=no
13976
13977  rm -f conftest*
13978  cat > conftest.$ac_ext <<EOF
13979#ifdef __cplusplus
13980extern "C" {
13981#endif
13982char nm_test_var;
13983void nm_test_func(){}
13984#ifdef __cplusplus
13985}
13986#endif
13987int main(){nm_test_var='a';nm_test_func();return(0);}
13988EOF
13989
13990  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13991  (eval $ac_compile) 2>&5
13992  ac_status=$?
13993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994  (exit $ac_status); }; then
13995    # Now try to grab the symbols.
13996    nlist=conftest.nm
13997    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13998  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13999  ac_status=$?
14000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001  (exit $ac_status); } && test -s "$nlist"; then
14002      # Try sorting and uniquifying the output.
14003      if sort "$nlist" | uniq > "$nlist"T; then
14004	mv -f "$nlist"T "$nlist"
14005      else
14006	rm -f "$nlist"T
14007      fi
14008
14009      # Make sure that we snagged all the symbols we need.
14010      if grep ' nm_test_var$' "$nlist" >/dev/null; then
14011	if grep ' nm_test_func$' "$nlist" >/dev/null; then
14012	  cat <<EOF > conftest.$ac_ext
14013#ifdef __cplusplus
14014extern "C" {
14015#endif
14016
14017EOF
14018	  # Now generate the symbol file.
14019	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14020
14021	  cat <<EOF >> conftest.$ac_ext
14022#if defined (__STDC__) && __STDC__
14023# define lt_ptr_t void *
14024#else
14025# define lt_ptr_t char *
14026# define const
14027#endif
14028
14029/* The mapping between symbol names and symbols. */
14030const struct {
14031  const char *name;
14032  lt_ptr_t address;
14033}
14034lt_preloaded_symbols[] =
14035{
14036EOF
14037	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14038	  cat <<\EOF >> conftest.$ac_ext
14039  {0, (lt_ptr_t) 0}
14040};
14041
14042#ifdef __cplusplus
14043}
14044#endif
14045EOF
14046	  # Now try linking the two files.
14047	  mv conftest.$ac_objext conftstm.$ac_objext
14048	  lt_save_LIBS="$LIBS"
14049	  lt_save_CFLAGS="$CFLAGS"
14050	  LIBS="conftstm.$ac_objext"
14051	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14052	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14053  (eval $ac_link) 2>&5
14054  ac_status=$?
14055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056  (exit $ac_status); } && test -s conftest${ac_exeext}; then
14057	    pipe_works=yes
14058	  fi
14059	  LIBS="$lt_save_LIBS"
14060	  CFLAGS="$lt_save_CFLAGS"
14061	else
14062	  echo "cannot find nm_test_func in $nlist" >&5
14063	fi
14064      else
14065	echo "cannot find nm_test_var in $nlist" >&5
14066      fi
14067    else
14068      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14069    fi
14070  else
14071    echo "$progname: failed program was:" >&5
14072    cat conftest.$ac_ext >&5
14073  fi
14074  rm -f conftest* conftst*
14075
14076  # Do not use the global_symbol_pipe unless it works.
14077  if test "$pipe_works" = yes; then
14078    break
14079  else
14080    lt_cv_sys_global_symbol_pipe=
14081  fi
14082done
14083
14084fi
14085
14086if test -z "$lt_cv_sys_global_symbol_pipe"; then
14087  lt_cv_sys_global_symbol_to_cdecl=
14088fi
14089if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14090  { echo "$as_me:$LINENO: result: failed" >&5
14091echo "${ECHO_T}failed" >&6; }
14092else
14093  { echo "$as_me:$LINENO: result: ok" >&5
14094echo "${ECHO_T}ok" >&6; }
14095fi
14096
14097{ echo "$as_me:$LINENO: checking for objdir" >&5
14098echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14099if test "${lt_cv_objdir+set}" = set; then
14100  echo $ECHO_N "(cached) $ECHO_C" >&6
14101else
14102  rm -f .libs 2>/dev/null
14103mkdir .libs 2>/dev/null
14104if test -d .libs; then
14105  lt_cv_objdir=.libs
14106else
14107  # MS-DOS does not allow filenames that begin with a dot.
14108  lt_cv_objdir=_libs
14109fi
14110rmdir .libs 2>/dev/null
14111fi
14112{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14113echo "${ECHO_T}$lt_cv_objdir" >&6; }
14114objdir=$lt_cv_objdir
14115
14116
14117
14118
14119
14120case $host_os in
14121aix3*)
14122  # AIX sometimes has problems with the GCC collect2 program.  For some
14123  # reason, if we set the COLLECT_NAMES environment variable, the problems
14124  # vanish in a puff of smoke.
14125  if test "X${COLLECT_NAMES+set}" != Xset; then
14126    COLLECT_NAMES=
14127    export COLLECT_NAMES
14128  fi
14129  ;;
14130esac
14131
14132# Sed substitution that helps us do robust quoting.  It backslashifies
14133# metacharacters that are still active within double-quoted strings.
14134Xsed='sed -e 1s/^X//'
14135sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14136
14137# Same as above, but do not quote variable references.
14138double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14139
14140# Sed substitution to delay expansion of an escaped shell variable in a
14141# double_quote_subst'ed string.
14142delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14143
14144# Sed substitution to avoid accidental globbing in evaled expressions
14145no_glob_subst='s/\*/\\\*/g'
14146
14147# Constants:
14148rm="rm -f"
14149
14150# Global variables:
14151default_ofile=mklib
14152can_build_shared=yes
14153
14154# All known linkers require a `.a' archive for static linking (except MSVC,
14155# which needs '.lib').
14156libext=a
14157ltmain="$ac_aux_dir/ltmain.sh"
14158ofile="$default_ofile"
14159with_gnu_ld="$lt_cv_prog_gnu_ld"
14160
14161if test -n "$ac_tool_prefix"; then
14162  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14163set dummy ${ac_tool_prefix}ar; ac_word=$2
14164{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14166if test "${ac_cv_prog_AR+set}" = set; then
14167  echo $ECHO_N "(cached) $ECHO_C" >&6
14168else
14169  if test -n "$AR"; then
14170  ac_cv_prog_AR="$AR" # Let the user override the test.
14171else
14172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14173for as_dir in $PATH
14174do
14175  IFS=$as_save_IFS
14176  test -z "$as_dir" && as_dir=.
14177  for ac_exec_ext in '' $ac_executable_extensions; do
14178  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14179    ac_cv_prog_AR="${ac_tool_prefix}ar"
14180    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14181    break 2
14182  fi
14183done
14184done
14185IFS=$as_save_IFS
14186
14187fi
14188fi
14189AR=$ac_cv_prog_AR
14190if test -n "$AR"; then
14191  { echo "$as_me:$LINENO: result: $AR" >&5
14192echo "${ECHO_T}$AR" >&6; }
14193else
14194  { echo "$as_me:$LINENO: result: no" >&5
14195echo "${ECHO_T}no" >&6; }
14196fi
14197
14198
14199fi
14200if test -z "$ac_cv_prog_AR"; then
14201  ac_ct_AR=$AR
14202  # Extract the first word of "ar", so it can be a program name with args.
14203set dummy ar; ac_word=$2
14204{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14206if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14207  echo $ECHO_N "(cached) $ECHO_C" >&6
14208else
14209  if test -n "$ac_ct_AR"; then
14210  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14211else
14212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14213for as_dir in $PATH
14214do
14215  IFS=$as_save_IFS
14216  test -z "$as_dir" && as_dir=.
14217  for ac_exec_ext in '' $ac_executable_extensions; do
14218  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14219    ac_cv_prog_ac_ct_AR="ar"
14220    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14221    break 2
14222  fi
14223done
14224done
14225IFS=$as_save_IFS
14226
14227fi
14228fi
14229ac_ct_AR=$ac_cv_prog_ac_ct_AR
14230if test -n "$ac_ct_AR"; then
14231  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14232echo "${ECHO_T}$ac_ct_AR" >&6; }
14233else
14234  { echo "$as_me:$LINENO: result: no" >&5
14235echo "${ECHO_T}no" >&6; }
14236fi
14237
14238  if test "x$ac_ct_AR" = x; then
14239    AR="false"
14240  else
14241    case $cross_compiling:$ac_tool_warned in
14242yes:)
14243{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14244whose name does not start with the host triplet.  If you think this
14245configuration is useful to you, please write to autoconf@gnu.org." >&5
14246echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14247whose name does not start with the host triplet.  If you think this
14248configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14249ac_tool_warned=yes ;;
14250esac
14251    AR=$ac_ct_AR
14252  fi
14253else
14254  AR="$ac_cv_prog_AR"
14255fi
14256
14257if test -n "$ac_tool_prefix"; then
14258  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14259set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14260{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14262if test "${ac_cv_prog_RANLIB+set}" = set; then
14263  echo $ECHO_N "(cached) $ECHO_C" >&6
14264else
14265  if test -n "$RANLIB"; then
14266  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14267else
14268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14269for as_dir in $PATH
14270do
14271  IFS=$as_save_IFS
14272  test -z "$as_dir" && as_dir=.
14273  for ac_exec_ext in '' $ac_executable_extensions; do
14274  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14275    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14276    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14277    break 2
14278  fi
14279done
14280done
14281IFS=$as_save_IFS
14282
14283fi
14284fi
14285RANLIB=$ac_cv_prog_RANLIB
14286if test -n "$RANLIB"; then
14287  { echo "$as_me:$LINENO: result: $RANLIB" >&5
14288echo "${ECHO_T}$RANLIB" >&6; }
14289else
14290  { echo "$as_me:$LINENO: result: no" >&5
14291echo "${ECHO_T}no" >&6; }
14292fi
14293
14294
14295fi
14296if test -z "$ac_cv_prog_RANLIB"; then
14297  ac_ct_RANLIB=$RANLIB
14298  # Extract the first word of "ranlib", so it can be a program name with args.
14299set dummy ranlib; ac_word=$2
14300{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14302if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14303  echo $ECHO_N "(cached) $ECHO_C" >&6
14304else
14305  if test -n "$ac_ct_RANLIB"; then
14306  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14307else
14308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14309for as_dir in $PATH
14310do
14311  IFS=$as_save_IFS
14312  test -z "$as_dir" && as_dir=.
14313  for ac_exec_ext in '' $ac_executable_extensions; do
14314  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14315    ac_cv_prog_ac_ct_RANLIB="ranlib"
14316    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14317    break 2
14318  fi
14319done
14320done
14321IFS=$as_save_IFS
14322
14323fi
14324fi
14325ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14326if test -n "$ac_ct_RANLIB"; then
14327  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14328echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14329else
14330  { echo "$as_me:$LINENO: result: no" >&5
14331echo "${ECHO_T}no" >&6; }
14332fi
14333
14334  if test "x$ac_ct_RANLIB" = x; then
14335    RANLIB=":"
14336  else
14337    case $cross_compiling:$ac_tool_warned in
14338yes:)
14339{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14340whose name does not start with the host triplet.  If you think this
14341configuration is useful to you, please write to autoconf@gnu.org." >&5
14342echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14343whose name does not start with the host triplet.  If you think this
14344configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14345ac_tool_warned=yes ;;
14346esac
14347    RANLIB=$ac_ct_RANLIB
14348  fi
14349else
14350  RANLIB="$ac_cv_prog_RANLIB"
14351fi
14352
14353if test -n "$ac_tool_prefix"; then
14354  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14355set dummy ${ac_tool_prefix}strip; ac_word=$2
14356{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14358if test "${ac_cv_prog_STRIP+set}" = set; then
14359  echo $ECHO_N "(cached) $ECHO_C" >&6
14360else
14361  if test -n "$STRIP"; then
14362  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14363else
14364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14365for as_dir in $PATH
14366do
14367  IFS=$as_save_IFS
14368  test -z "$as_dir" && as_dir=.
14369  for ac_exec_ext in '' $ac_executable_extensions; do
14370  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14371    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14372    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14373    break 2
14374  fi
14375done
14376done
14377IFS=$as_save_IFS
14378
14379fi
14380fi
14381STRIP=$ac_cv_prog_STRIP
14382if test -n "$STRIP"; then
14383  { echo "$as_me:$LINENO: result: $STRIP" >&5
14384echo "${ECHO_T}$STRIP" >&6; }
14385else
14386  { echo "$as_me:$LINENO: result: no" >&5
14387echo "${ECHO_T}no" >&6; }
14388fi
14389
14390
14391fi
14392if test -z "$ac_cv_prog_STRIP"; then
14393  ac_ct_STRIP=$STRIP
14394  # Extract the first word of "strip", so it can be a program name with args.
14395set dummy strip; ac_word=$2
14396{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14398if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14399  echo $ECHO_N "(cached) $ECHO_C" >&6
14400else
14401  if test -n "$ac_ct_STRIP"; then
14402  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14403else
14404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14405for as_dir in $PATH
14406do
14407  IFS=$as_save_IFS
14408  test -z "$as_dir" && as_dir=.
14409  for ac_exec_ext in '' $ac_executable_extensions; do
14410  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14411    ac_cv_prog_ac_ct_STRIP="strip"
14412    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14413    break 2
14414  fi
14415done
14416done
14417IFS=$as_save_IFS
14418
14419fi
14420fi
14421ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14422if test -n "$ac_ct_STRIP"; then
14423  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14424echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14425else
14426  { echo "$as_me:$LINENO: result: no" >&5
14427echo "${ECHO_T}no" >&6; }
14428fi
14429
14430  if test "x$ac_ct_STRIP" = x; then
14431    STRIP=":"
14432  else
14433    case $cross_compiling:$ac_tool_warned in
14434yes:)
14435{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14436whose name does not start with the host triplet.  If you think this
14437configuration is useful to you, please write to autoconf@gnu.org." >&5
14438echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14439whose name does not start with the host triplet.  If you think this
14440configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14441ac_tool_warned=yes ;;
14442esac
14443    STRIP=$ac_ct_STRIP
14444  fi
14445else
14446  STRIP="$ac_cv_prog_STRIP"
14447fi
14448
14449
14450old_CC="$CC"
14451old_CFLAGS="$CFLAGS"
14452
14453# Set sane defaults for various variables
14454test -z "$AR" && AR=ar
14455test -z "$AR_FLAGS" && AR_FLAGS=cru
14456test -z "$AS" && AS=as
14457test -z "$CC" && CC=cc
14458test -z "$LTCC" && LTCC=$CC
14459test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14460test -z "$DLLTOOL" && DLLTOOL=dlltool
14461test -z "$LD" && LD=ld
14462test -z "$LN_S" && LN_S="ln -s"
14463test -z "$MAGIC_CMD" && MAGIC_CMD=file
14464test -z "$NM" && NM=nm
14465test -z "$SED" && SED=sed
14466test -z "$OBJDUMP" && OBJDUMP=objdump
14467test -z "$RANLIB" && RANLIB=:
14468test -z "$STRIP" && STRIP=:
14469test -z "$ac_objext" && ac_objext=o
14470
14471# Determine commands to create old-style static archives.
14472old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14473old_postinstall_cmds='chmod 644 $oldlib'
14474old_postuninstall_cmds=
14475
14476if test -n "$RANLIB"; then
14477  case $host_os in
14478  openbsd*)
14479    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14480    ;;
14481  *)
14482    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14483    ;;
14484  esac
14485  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14486fi
14487
14488for cc_temp in $compiler""; do
14489  case $cc_temp in
14490    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14491    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14492    \-*) ;;
14493    *) break;;
14494  esac
14495done
14496cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14497
14498
14499# Only perform the check for file, if the check method requires it
14500case $deplibs_check_method in
14501file_magic*)
14502  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14503    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14504echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14505if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14506  echo $ECHO_N "(cached) $ECHO_C" >&6
14507else
14508  case $MAGIC_CMD in
14509[\\/*] |  ?:[\\/]*)
14510  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14511  ;;
14512*)
14513  lt_save_MAGIC_CMD="$MAGIC_CMD"
14514  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14515  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14516  for ac_dir in $ac_dummy; do
14517    IFS="$lt_save_ifs"
14518    test -z "$ac_dir" && ac_dir=.
14519    if test -f $ac_dir/${ac_tool_prefix}file; then
14520      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14521      if test -n "$file_magic_test_file"; then
14522	case $deplibs_check_method in
14523	"file_magic "*)
14524	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14525	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14526	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14527	    $EGREP "$file_magic_regex" > /dev/null; then
14528	    :
14529	  else
14530	    cat <<EOF 1>&2
14531
14532*** Warning: the command libtool uses to detect shared libraries,
14533*** $file_magic_cmd, produces output that libtool cannot recognize.
14534*** The result is that libtool may fail to recognize shared libraries
14535*** as such.  This will affect the creation of libtool libraries that
14536*** depend on shared libraries, but programs linked with such libtool
14537*** libraries will work regardless of this problem.  Nevertheless, you
14538*** may want to report the problem to your system manager and/or to
14539*** bug-libtool@gnu.org
14540
14541EOF
14542	  fi ;;
14543	esac
14544      fi
14545      break
14546    fi
14547  done
14548  IFS="$lt_save_ifs"
14549  MAGIC_CMD="$lt_save_MAGIC_CMD"
14550  ;;
14551esac
14552fi
14553
14554MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14555if test -n "$MAGIC_CMD"; then
14556  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14557echo "${ECHO_T}$MAGIC_CMD" >&6; }
14558else
14559  { echo "$as_me:$LINENO: result: no" >&5
14560echo "${ECHO_T}no" >&6; }
14561fi
14562
14563if test -z "$lt_cv_path_MAGIC_CMD"; then
14564  if test -n "$ac_tool_prefix"; then
14565    { echo "$as_me:$LINENO: checking for file" >&5
14566echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14567if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14568  echo $ECHO_N "(cached) $ECHO_C" >&6
14569else
14570  case $MAGIC_CMD in
14571[\\/*] |  ?:[\\/]*)
14572  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14573  ;;
14574*)
14575  lt_save_MAGIC_CMD="$MAGIC_CMD"
14576  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14577  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14578  for ac_dir in $ac_dummy; do
14579    IFS="$lt_save_ifs"
14580    test -z "$ac_dir" && ac_dir=.
14581    if test -f $ac_dir/file; then
14582      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14583      if test -n "$file_magic_test_file"; then
14584	case $deplibs_check_method in
14585	"file_magic "*)
14586	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14587	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14588	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14589	    $EGREP "$file_magic_regex" > /dev/null; then
14590	    :
14591	  else
14592	    cat <<EOF 1>&2
14593
14594*** Warning: the command libtool uses to detect shared libraries,
14595*** $file_magic_cmd, produces output that libtool cannot recognize.
14596*** The result is that libtool may fail to recognize shared libraries
14597*** as such.  This will affect the creation of libtool libraries that
14598*** depend on shared libraries, but programs linked with such libtool
14599*** libraries will work regardless of this problem.  Nevertheless, you
14600*** may want to report the problem to your system manager and/or to
14601*** bug-libtool@gnu.org
14602
14603EOF
14604	  fi ;;
14605	esac
14606      fi
14607      break
14608    fi
14609  done
14610  IFS="$lt_save_ifs"
14611  MAGIC_CMD="$lt_save_MAGIC_CMD"
14612  ;;
14613esac
14614fi
14615
14616MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14617if test -n "$MAGIC_CMD"; then
14618  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14619echo "${ECHO_T}$MAGIC_CMD" >&6; }
14620else
14621  { echo "$as_me:$LINENO: result: no" >&5
14622echo "${ECHO_T}no" >&6; }
14623fi
14624
14625  else
14626    MAGIC_CMD=:
14627  fi
14628fi
14629
14630  fi
14631  ;;
14632esac
14633
14634enable_dlopen=yes
14635enable_win32_dll=no
14636
14637# Check whether --enable-libtool-lock was given.
14638if test "${enable_libtool_lock+set}" = set; then
14639  enableval=$enable_libtool_lock;
14640fi
14641
14642test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14643
14644
14645# Check whether --with-pic was given.
14646if test "${with_pic+set}" = set; then
14647  withval=$with_pic; pic_mode="$withval"
14648else
14649  pic_mode=default
14650fi
14651
14652test -z "$pic_mode" && pic_mode=default
14653
14654# Use C for the default configuration in the libtool script
14655tagname=
14656lt_save_CC="$CC"
14657ac_ext=c
14658ac_cpp='$CPP $CPPFLAGS'
14659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14661ac_compiler_gnu=$ac_cv_c_compiler_gnu
14662
14663
14664# Source file extension for C test sources.
14665ac_ext=c
14666
14667# Object file extension for compiled C test sources.
14668objext=o
14669objext=$objext
14670
14671# Code to be used in simple compile tests
14672lt_simple_compile_test_code="int some_variable = 0;\n"
14673
14674# Code to be used in simple link tests
14675lt_simple_link_test_code='int main(){return(0);}\n'
14676
14677
14678# If no C compiler was specified, use CC.
14679LTCC=${LTCC-"$CC"}
14680
14681# If no C compiler flags were specified, use CFLAGS.
14682LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14683
14684# Allow CC to be a program name with arguments.
14685compiler=$CC
14686
14687
14688# save warnings/boilerplate of simple test code
14689ac_outfile=conftest.$ac_objext
14690printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14691eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14692_lt_compiler_boilerplate=`cat conftest.err`
14693$rm conftest*
14694
14695ac_outfile=conftest.$ac_objext
14696printf "$lt_simple_link_test_code" >conftest.$ac_ext
14697eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14698_lt_linker_boilerplate=`cat conftest.err`
14699$rm conftest*
14700
14701
14702
14703lt_prog_compiler_no_builtin_flag=
14704
14705if test "$GCC" = yes; then
14706  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14707
14708
14709{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14710echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14711if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14712  echo $ECHO_N "(cached) $ECHO_C" >&6
14713else
14714  lt_cv_prog_compiler_rtti_exceptions=no
14715  ac_outfile=conftest.$ac_objext
14716   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14717   lt_compiler_flag="-fno-rtti -fno-exceptions"
14718   # Insert the option either (1) after the last *FLAGS variable, or
14719   # (2) before a word containing "conftest.", or (3) at the end.
14720   # Note that $ac_compile itself does not contain backslashes and begins
14721   # with a dollar sign (not a hyphen), so the echo should work correctly.
14722   # The option is referenced via a variable to avoid confusing sed.
14723   lt_compile=`echo "$ac_compile" | $SED \
14724   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14725   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14726   -e 's:$: $lt_compiler_flag:'`
14727   (eval echo "\"\$as_me:14727: $lt_compile\"" >&5)
14728   (eval "$lt_compile" 2>conftest.err)
14729   ac_status=$?
14730   cat conftest.err >&5
14731   echo "$as_me:14731: \$? = $ac_status" >&5
14732   if (exit $ac_status) && test -s "$ac_outfile"; then
14733     # The compiler can only warn and ignore the option if not recognized
14734     # So say no if there are warnings other than the usual output.
14735     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14736     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14737     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14738       lt_cv_prog_compiler_rtti_exceptions=yes
14739     fi
14740   fi
14741   $rm conftest*
14742
14743fi
14744{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14745echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14746
14747if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14748    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14749else
14750    :
14751fi
14752
14753fi
14754
14755lt_prog_compiler_wl=
14756lt_prog_compiler_pic=
14757lt_prog_compiler_static=
14758
14759{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14760echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14761
14762  if test "$GCC" = yes; then
14763    lt_prog_compiler_wl='-Wl,'
14764    lt_prog_compiler_static='-static'
14765
14766    case $host_os in
14767      aix*)
14768      # All AIX code is PIC.
14769      if test "$host_cpu" = ia64; then
14770	# AIX 5 now supports IA64 processor
14771	lt_prog_compiler_static='-Bstatic'
14772      fi
14773      ;;
14774
14775    amigaos*)
14776      # FIXME: we need at least 68020 code to build shared libraries, but
14777      # adding the `-m68020' flag to GCC prevents building anything better,
14778      # like `-m68040'.
14779      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14780      ;;
14781
14782    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14783      # PIC is the default for these OSes.
14784      ;;
14785
14786    mingw* | pw32* | os2*)
14787      # This hack is so that the source file can tell whether it is being
14788      # built for inclusion in a dll (and should export symbols for example).
14789      lt_prog_compiler_pic='-DDLL_EXPORT'
14790      ;;
14791
14792    darwin* | rhapsody*)
14793      # PIC is the default on this platform
14794      # Common symbols not allowed in MH_DYLIB files
14795      lt_prog_compiler_pic='-fno-common'
14796      ;;
14797
14798    interix3*)
14799      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14800      # Instead, we relocate shared libraries at runtime.
14801      ;;
14802
14803    msdosdjgpp*)
14804      # Just because we use GCC doesn't mean we suddenly get shared libraries
14805      # on systems that don't support them.
14806      lt_prog_compiler_can_build_shared=no
14807      enable_shared=no
14808      ;;
14809
14810    sysv4*MP*)
14811      if test -d /usr/nec; then
14812	lt_prog_compiler_pic=-Kconform_pic
14813      fi
14814      ;;
14815
14816    hpux*)
14817      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14818      # not for PA HP-UX.
14819      case $host_cpu in
14820      hppa*64*|ia64*)
14821	# +Z the default
14822	;;
14823      *)
14824	lt_prog_compiler_pic='-fPIC'
14825	;;
14826      esac
14827      ;;
14828
14829    *)
14830      lt_prog_compiler_pic='-fPIC'
14831      ;;
14832    esac
14833  else
14834    # PORTME Check for flag to pass linker flags through the system compiler.
14835    case $host_os in
14836    aix*)
14837      lt_prog_compiler_wl='-Wl,'
14838      if test "$host_cpu" = ia64; then
14839	# AIX 5 now supports IA64 processor
14840	lt_prog_compiler_static='-Bstatic'
14841      else
14842	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14843      fi
14844      ;;
14845      darwin*)
14846        # PIC is the default on this platform
14847        # Common symbols not allowed in MH_DYLIB files
14848       case $cc_basename in
14849         xlc*)
14850         lt_prog_compiler_pic='-qnocommon'
14851         lt_prog_compiler_wl='-Wl,'
14852         ;;
14853       esac
14854       ;;
14855
14856    mingw* | pw32* | os2*)
14857      # This hack is so that the source file can tell whether it is being
14858      # built for inclusion in a dll (and should export symbols for example).
14859      lt_prog_compiler_pic='-DDLL_EXPORT'
14860      ;;
14861
14862    hpux9* | hpux10* | hpux11*)
14863      lt_prog_compiler_wl='-Wl,'
14864      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14865      # not for PA HP-UX.
14866      case $host_cpu in
14867      hppa*64*|ia64*)
14868	# +Z the default
14869	;;
14870      *)
14871	lt_prog_compiler_pic='+Z'
14872	;;
14873      esac
14874      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14875      lt_prog_compiler_static='${wl}-a ${wl}archive'
14876      ;;
14877
14878    irix5* | irix6* | nonstopux*)
14879      lt_prog_compiler_wl='-Wl,'
14880      # PIC (with -KPIC) is the default.
14881      lt_prog_compiler_static='-non_shared'
14882      ;;
14883
14884    newsos6)
14885      lt_prog_compiler_pic='-KPIC'
14886      lt_prog_compiler_static='-Bstatic'
14887      ;;
14888
14889    linux*)
14890      case $cc_basename in
14891      icc* | ecc*)
14892	lt_prog_compiler_wl='-Wl,'
14893	lt_prog_compiler_pic='-KPIC'
14894	lt_prog_compiler_static='-static'
14895        ;;
14896      pgcc* | pgf77* | pgf90* | pgf95*)
14897        # Portland Group compilers (*not* the Pentium gcc compiler,
14898	# which looks to be a dead project)
14899	lt_prog_compiler_wl='-Wl,'
14900	lt_prog_compiler_pic='-fpic'
14901	lt_prog_compiler_static='-Bstatic'
14902        ;;
14903      ccc*)
14904        lt_prog_compiler_wl='-Wl,'
14905        # All Alpha code is PIC.
14906        lt_prog_compiler_static='-non_shared'
14907        ;;
14908      esac
14909      ;;
14910
14911    osf3* | osf4* | osf5*)
14912      lt_prog_compiler_wl='-Wl,'
14913      # All OSF/1 code is PIC.
14914      lt_prog_compiler_static='-non_shared'
14915      ;;
14916
14917    solaris*)
14918      lt_prog_compiler_pic='-KPIC'
14919      lt_prog_compiler_static='-Bstatic'
14920      case $cc_basename in
14921      f77* | f90* | f95*)
14922	lt_prog_compiler_wl='-Qoption ld ';;
14923      *)
14924	lt_prog_compiler_wl='-Wl,';;
14925      esac
14926      ;;
14927
14928    sunos4*)
14929      lt_prog_compiler_wl='-Qoption ld '
14930      lt_prog_compiler_pic='-PIC'
14931      lt_prog_compiler_static='-Bstatic'
14932      ;;
14933
14934    sysv4 | sysv4.2uw2* | sysv4.3*)
14935      lt_prog_compiler_wl='-Wl,'
14936      lt_prog_compiler_pic='-KPIC'
14937      lt_prog_compiler_static='-Bstatic'
14938      ;;
14939
14940    sysv4*MP*)
14941      if test -d /usr/nec ;then
14942	lt_prog_compiler_pic='-Kconform_pic'
14943	lt_prog_compiler_static='-Bstatic'
14944      fi
14945      ;;
14946
14947    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14948      lt_prog_compiler_wl='-Wl,'
14949      lt_prog_compiler_pic='-KPIC'
14950      lt_prog_compiler_static='-Bstatic'
14951      ;;
14952
14953    unicos*)
14954      lt_prog_compiler_wl='-Wl,'
14955      lt_prog_compiler_can_build_shared=no
14956      ;;
14957
14958    uts4*)
14959      lt_prog_compiler_pic='-pic'
14960      lt_prog_compiler_static='-Bstatic'
14961      ;;
14962
14963    *)
14964      lt_prog_compiler_can_build_shared=no
14965      ;;
14966    esac
14967  fi
14968
14969{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14970echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14971
14972#
14973# Check to make sure the PIC flag actually works.
14974#
14975if test -n "$lt_prog_compiler_pic"; then
14976
14977{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14978echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14979if test "${lt_prog_compiler_pic_works+set}" = set; then
14980  echo $ECHO_N "(cached) $ECHO_C" >&6
14981else
14982  lt_prog_compiler_pic_works=no
14983  ac_outfile=conftest.$ac_objext
14984   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14985   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14986   # Insert the option either (1) after the last *FLAGS variable, or
14987   # (2) before a word containing "conftest.", or (3) at the end.
14988   # Note that $ac_compile itself does not contain backslashes and begins
14989   # with a dollar sign (not a hyphen), so the echo should work correctly.
14990   # The option is referenced via a variable to avoid confusing sed.
14991   lt_compile=`echo "$ac_compile" | $SED \
14992   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14993   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14994   -e 's:$: $lt_compiler_flag:'`
14995   (eval echo "\"\$as_me:14995: $lt_compile\"" >&5)
14996   (eval "$lt_compile" 2>conftest.err)
14997   ac_status=$?
14998   cat conftest.err >&5
14999   echo "$as_me:14999: \$? = $ac_status" >&5
15000   if (exit $ac_status) && test -s "$ac_outfile"; then
15001     # The compiler can only warn and ignore the option if not recognized
15002     # So say no if there are warnings other than the usual output.
15003     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15004     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15005     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15006       lt_prog_compiler_pic_works=yes
15007     fi
15008   fi
15009   $rm conftest*
15010
15011fi
15012{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15013echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15014
15015if test x"$lt_prog_compiler_pic_works" = xyes; then
15016    case $lt_prog_compiler_pic in
15017     "" | " "*) ;;
15018     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15019     esac
15020else
15021    lt_prog_compiler_pic=
15022     lt_prog_compiler_can_build_shared=no
15023fi
15024
15025fi
15026case $host_os in
15027  # For platforms which do not support PIC, -DPIC is meaningless:
15028  *djgpp*)
15029    lt_prog_compiler_pic=
15030    ;;
15031  *)
15032    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15033    ;;
15034esac
15035
15036#
15037# Check to make sure the static flag actually works.
15038#
15039wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15040{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15041echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15042if test "${lt_prog_compiler_static_works+set}" = set; then
15043  echo $ECHO_N "(cached) $ECHO_C" >&6
15044else
15045  lt_prog_compiler_static_works=no
15046   save_LDFLAGS="$LDFLAGS"
15047   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15048   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15049   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15050     # The linker can only warn and ignore the option if not recognized
15051     # So say no if there are warnings
15052     if test -s conftest.err; then
15053       # Append any errors to the config.log.
15054       cat conftest.err 1>&5
15055       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15056       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15057       if diff conftest.exp conftest.er2 >/dev/null; then
15058         lt_prog_compiler_static_works=yes
15059       fi
15060     else
15061       lt_prog_compiler_static_works=yes
15062     fi
15063   fi
15064   $rm conftest*
15065   LDFLAGS="$save_LDFLAGS"
15066
15067fi
15068{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15069echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15070
15071if test x"$lt_prog_compiler_static_works" = xyes; then
15072    :
15073else
15074    lt_prog_compiler_static=
15075fi
15076
15077
15078{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15079echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15080if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15081  echo $ECHO_N "(cached) $ECHO_C" >&6
15082else
15083  lt_cv_prog_compiler_c_o=no
15084   $rm -r conftest 2>/dev/null
15085   mkdir conftest
15086   cd conftest
15087   mkdir out
15088   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15089
15090   lt_compiler_flag="-o out/conftest2.$ac_objext"
15091   # Insert the option either (1) after the last *FLAGS variable, or
15092   # (2) before a word containing "conftest.", or (3) at the end.
15093   # Note that $ac_compile itself does not contain backslashes and begins
15094   # with a dollar sign (not a hyphen), so the echo should work correctly.
15095   lt_compile=`echo "$ac_compile" | $SED \
15096   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15097   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15098   -e 's:$: $lt_compiler_flag:'`
15099   (eval echo "\"\$as_me:15099: $lt_compile\"" >&5)
15100   (eval "$lt_compile" 2>out/conftest.err)
15101   ac_status=$?
15102   cat out/conftest.err >&5
15103   echo "$as_me:15103: \$? = $ac_status" >&5
15104   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15105   then
15106     # The compiler can only warn and ignore the option if not recognized
15107     # So say no if there are warnings
15108     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15109     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15110     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15111       lt_cv_prog_compiler_c_o=yes
15112     fi
15113   fi
15114   chmod u+w . 2>&5
15115   $rm conftest*
15116   # SGI C++ compiler will create directory out/ii_files/ for
15117   # template instantiation
15118   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15119   $rm out/* && rmdir out
15120   cd ..
15121   rmdir conftest
15122   $rm conftest*
15123
15124fi
15125{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15126echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15127
15128
15129hard_links="nottested"
15130if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15131  # do not overwrite the value of need_locks provided by the user
15132  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15133echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15134  hard_links=yes
15135  $rm conftest*
15136  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15137  touch conftest.a
15138  ln conftest.a conftest.b 2>&5 || hard_links=no
15139  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15140  { echo "$as_me:$LINENO: result: $hard_links" >&5
15141echo "${ECHO_T}$hard_links" >&6; }
15142  if test "$hard_links" = no; then
15143    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15144echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15145    need_locks=warn
15146  fi
15147else
15148  need_locks=no
15149fi
15150
15151{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15152echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15153
15154  runpath_var=
15155  allow_undefined_flag=
15156  enable_shared_with_static_runtimes=no
15157  archive_cmds=
15158  archive_expsym_cmds=
15159  old_archive_From_new_cmds=
15160  old_archive_from_expsyms_cmds=
15161  export_dynamic_flag_spec=
15162  whole_archive_flag_spec=
15163  thread_safe_flag_spec=
15164  hardcode_libdir_flag_spec=
15165  hardcode_libdir_flag_spec_ld=
15166  hardcode_libdir_separator=
15167  hardcode_direct=no
15168  hardcode_minus_L=no
15169  hardcode_shlibpath_var=unsupported
15170  link_all_deplibs=unknown
15171  hardcode_automatic=no
15172  module_cmds=
15173  module_expsym_cmds=
15174  always_export_symbols=no
15175  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15176  # include_expsyms should be a list of space-separated symbols to be *always*
15177  # included in the symbol list
15178  include_expsyms=
15179  # exclude_expsyms can be an extended regexp of symbols to exclude
15180  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15181  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15182  # as well as any symbol that contains `d'.
15183  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15184  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15185  # platforms (ab)use it in PIC code, but their linkers get confused if
15186  # the symbol is explicitly referenced.  Since portable code cannot
15187  # rely on this symbol name, it's probably fine to never include it in
15188  # preloaded symbol tables.
15189  extract_expsyms_cmds=
15190  # Just being paranoid about ensuring that cc_basename is set.
15191  for cc_temp in $compiler""; do
15192  case $cc_temp in
15193    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15194    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15195    \-*) ;;
15196    *) break;;
15197  esac
15198done
15199cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15200
15201  case $host_os in
15202  cygwin* | mingw* | pw32*)
15203    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15204    # When not using gcc, we currently assume that we are using
15205    # Microsoft Visual C++.
15206    if test "$GCC" != yes; then
15207      with_gnu_ld=no
15208    fi
15209    ;;
15210  interix*)
15211    # we just hope/assume this is gcc and not c89 (= MSVC++)
15212    with_gnu_ld=yes
15213    ;;
15214  openbsd*)
15215    with_gnu_ld=no
15216    ;;
15217  esac
15218
15219  ld_shlibs=yes
15220  if test "$with_gnu_ld" = yes; then
15221    # If archive_cmds runs LD, not CC, wlarc should be empty
15222    wlarc='${wl}'
15223
15224    # Set some defaults for GNU ld with shared library support. These
15225    # are reset later if shared libraries are not supported. Putting them
15226    # here allows them to be overridden if necessary.
15227    runpath_var=LD_RUN_PATH
15228    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15229    export_dynamic_flag_spec='${wl}--export-dynamic'
15230    # ancient GNU ld didn't support --whole-archive et. al.
15231    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15232	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15233      else
15234  	whole_archive_flag_spec=
15235    fi
15236    supports_anon_versioning=no
15237    case `$LD -v 2>/dev/null` in
15238      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15239      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15240      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15241      *\ 2.11.*) ;; # other 2.11 versions
15242      *) supports_anon_versioning=yes ;;
15243    esac
15244
15245    # See if GNU ld supports shared libraries.
15246    case $host_os in
15247    aix3* | aix4* | aix5*)
15248      # On AIX/PPC, the GNU linker is very broken
15249      if test "$host_cpu" != ia64; then
15250	ld_shlibs=no
15251	cat <<EOF 1>&2
15252
15253*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15254*** to be unable to reliably create shared libraries on AIX.
15255*** Therefore, libtool is disabling shared libraries support.  If you
15256*** really care for shared libraries, you may want to modify your PATH
15257*** so that a non-GNU linker is found, and then restart.
15258
15259EOF
15260      fi
15261      ;;
15262
15263    amigaos*)
15264      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)'
15265      hardcode_libdir_flag_spec='-L$libdir'
15266      hardcode_minus_L=yes
15267
15268      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15269      # that the semantics of dynamic libraries on AmigaOS, at least up
15270      # to version 4, is to share data among multiple programs linked
15271      # with the same dynamic library.  Since this doesn't match the
15272      # behavior of shared libraries on other platforms, we can't use
15273      # them.
15274      ld_shlibs=no
15275      ;;
15276
15277    beos*)
15278      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15279	allow_undefined_flag=unsupported
15280	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15281	# support --undefined.  This deserves some investigation.  FIXME
15282	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15283      else
15284	ld_shlibs=no
15285      fi
15286      ;;
15287
15288    cygwin* | mingw* | pw32*)
15289      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15290      # as there is no search path for DLLs.
15291      hardcode_libdir_flag_spec='-L$libdir'
15292      allow_undefined_flag=unsupported
15293      always_export_symbols=no
15294      enable_shared_with_static_runtimes=yes
15295      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15296
15297      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15298        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15299	# If the export-symbols file already is a .def file (1st line
15300	# is EXPORTS), use it as is; otherwise, prepend...
15301	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15302	  cp $export_symbols $output_objdir/$soname.def;
15303	else
15304	  echo EXPORTS > $output_objdir/$soname.def;
15305	  cat $export_symbols >> $output_objdir/$soname.def;
15306	fi~
15307	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15308      else
15309	ld_shlibs=no
15310      fi
15311      ;;
15312
15313    interix3*)
15314      hardcode_direct=no
15315      hardcode_shlibpath_var=no
15316      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15317      export_dynamic_flag_spec='${wl}-E'
15318      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15319      # Instead, shared libraries are loaded at an image base (0x10000000 by
15320      # default) and relocated if they conflict, which is a slow very memory
15321      # consuming and fragmenting process.  To avoid this, we pick a random,
15322      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15323      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15324      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15325      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'
15326      ;;
15327
15328    linux*)
15329      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15330	tmp_addflag=
15331	case $cc_basename,$host_cpu in
15332	pgcc*)				# Portland Group C compiler
15333	  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'
15334	  tmp_addflag=' $pic_flag'
15335	  ;;
15336	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15337	  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'
15338	  tmp_addflag=' $pic_flag -Mnomain' ;;
15339	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15340	  tmp_addflag=' -i_dynamic' ;;
15341	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15342	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15343	ifc* | ifort*)			# Intel Fortran compiler
15344	  tmp_addflag=' -nofor_main' ;;
15345	esac
15346	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15347
15348	if test $supports_anon_versioning = yes; then
15349	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15350  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15351  $echo "local: *; };" >> $output_objdir/$libname.ver~
15352	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15353	fi
15354      else
15355	ld_shlibs=no
15356      fi
15357      ;;
15358
15359    netbsd*)
15360      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15361	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15362	wlarc=
15363      else
15364	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15365	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15366      fi
15367      ;;
15368
15369    solaris*)
15370      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15371	ld_shlibs=no
15372	cat <<EOF 1>&2
15373
15374*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15375*** create shared libraries on Solaris systems.  Therefore, libtool
15376*** is disabling shared libraries support.  We urge you to upgrade GNU
15377*** binutils to release 2.9.1 or newer.  Another option is to modify
15378*** your PATH or compiler configuration so that the native linker is
15379*** used, and then restart.
15380
15381EOF
15382      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15383	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15384	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15385      else
15386	ld_shlibs=no
15387      fi
15388      ;;
15389
15390    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15391      case `$LD -v 2>&1` in
15392        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15393	ld_shlibs=no
15394	cat <<_LT_EOF 1>&2
15395
15396*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15397*** reliably create shared libraries on SCO systems.  Therefore, libtool
15398*** is disabling shared libraries support.  We urge you to upgrade GNU
15399*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15400*** your PATH or compiler configuration so that the native linker is
15401*** used, and then restart.
15402
15403_LT_EOF
15404	;;
15405	*)
15406	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15407	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15408	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15409	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15410	  else
15411	    ld_shlibs=no
15412	  fi
15413	;;
15414      esac
15415      ;;
15416
15417    sunos4*)
15418      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15419      wlarc=
15420      hardcode_direct=yes
15421      hardcode_shlibpath_var=no
15422      ;;
15423
15424    *)
15425      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15426	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15427	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15428      else
15429	ld_shlibs=no
15430      fi
15431      ;;
15432    esac
15433
15434    if test "$ld_shlibs" = no; then
15435      runpath_var=
15436      hardcode_libdir_flag_spec=
15437      export_dynamic_flag_spec=
15438      whole_archive_flag_spec=
15439    fi
15440  else
15441    # PORTME fill in a description of your system's linker (not GNU ld)
15442    case $host_os in
15443    aix3*)
15444      allow_undefined_flag=unsupported
15445      always_export_symbols=yes
15446      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'
15447      # Note: this linker hardcodes the directories in LIBPATH if there
15448      # are no directories specified by -L.
15449      hardcode_minus_L=yes
15450      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15451	# Neither direct hardcoding nor static linking is supported with a
15452	# broken collect2.
15453	hardcode_direct=unsupported
15454      fi
15455      ;;
15456
15457    aix4* | aix5*)
15458      if test "$host_cpu" = ia64; then
15459	# On IA64, the linker does run time linking by default, so we don't
15460	# have to do anything special.
15461	aix_use_runtimelinking=no
15462	exp_sym_flag='-Bexport'
15463	no_entry_flag=""
15464      else
15465	# If we're using GNU nm, then we don't want the "-C" option.
15466	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15467	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15468	  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'
15469	else
15470	  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'
15471	fi
15472	aix_use_runtimelinking=no
15473
15474	# Test if we are trying to use run time linking or normal
15475	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15476	# need to do runtime linking.
15477	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15478	  for ld_flag in $LDFLAGS; do
15479  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15480  	    aix_use_runtimelinking=yes
15481  	    break
15482  	  fi
15483	  done
15484	  ;;
15485	esac
15486
15487	exp_sym_flag='-bexport'
15488	no_entry_flag='-bnoentry'
15489      fi
15490
15491      # When large executables or shared objects are built, AIX ld can
15492      # have problems creating the table of contents.  If linking a library
15493      # or program results in "error TOC overflow" add -mminimal-toc to
15494      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15495      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15496
15497      archive_cmds=''
15498      hardcode_direct=yes
15499      hardcode_libdir_separator=':'
15500      link_all_deplibs=yes
15501
15502      if test "$GCC" = yes; then
15503	case $host_os in aix4.[012]|aix4.[012].*)
15504	# We only want to do this on AIX 4.2 and lower, the check
15505	# below for broken collect2 doesn't work under 4.3+
15506	  collect2name=`${CC} -print-prog-name=collect2`
15507	  if test -f "$collect2name" && \
15508  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15509	  then
15510  	  # We have reworked collect2
15511  	  hardcode_direct=yes
15512	  else
15513  	  # We have old collect2
15514  	  hardcode_direct=unsupported
15515  	  # It fails to find uninstalled libraries when the uninstalled
15516  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15517  	  # to unsupported forces relinking
15518  	  hardcode_minus_L=yes
15519  	  hardcode_libdir_flag_spec='-L$libdir'
15520  	  hardcode_libdir_separator=
15521	  fi
15522	  ;;
15523	esac
15524	shared_flag='-shared'
15525	if test "$aix_use_runtimelinking" = yes; then
15526	  shared_flag="$shared_flag "'${wl}-G'
15527	fi
15528      else
15529	# not using gcc
15530	if test "$host_cpu" = ia64; then
15531  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15532  	# chokes on -Wl,-G. The following line is correct:
15533	  shared_flag='-G'
15534	else
15535	  if test "$aix_use_runtimelinking" = yes; then
15536	    shared_flag='${wl}-G'
15537	  else
15538	    shared_flag='${wl}-bM:SRE'
15539	  fi
15540	fi
15541      fi
15542
15543      # It seems that -bexpall does not export symbols beginning with
15544      # underscore (_), so it is better to generate a list of symbols to export.
15545      always_export_symbols=yes
15546      if test "$aix_use_runtimelinking" = yes; then
15547	# Warning - without using the other runtime loading flags (-brtl),
15548	# -berok will link without error, but may produce a broken library.
15549	allow_undefined_flag='-berok'
15550       # Determine the default libpath from the value encoded in an empty executable.
15551       cat >conftest.$ac_ext <<_ACEOF
15552/* confdefs.h.  */
15553_ACEOF
15554cat confdefs.h >>conftest.$ac_ext
15555cat >>conftest.$ac_ext <<_ACEOF
15556/* end confdefs.h.  */
15557
15558int
15559main ()
15560{
15561
15562  ;
15563  return 0;
15564}
15565_ACEOF
15566rm -f conftest.$ac_objext conftest$ac_exeext
15567if { (ac_try="$ac_link"
15568case "(($ac_try" in
15569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15570  *) ac_try_echo=$ac_try;;
15571esac
15572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15573  (eval "$ac_link") 2>conftest.er1
15574  ac_status=$?
15575  grep -v '^ *+' conftest.er1 >conftest.err
15576  rm -f conftest.er1
15577  cat conftest.err >&5
15578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579  (exit $ac_status); } &&
15580	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15581  { (case "(($ac_try" in
15582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15583  *) ac_try_echo=$ac_try;;
15584esac
15585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15586  (eval "$ac_try") 2>&5
15587  ac_status=$?
15588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589  (exit $ac_status); }; } &&
15590	 { ac_try='test -s conftest$ac_exeext'
15591  { (case "(($ac_try" in
15592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15593  *) ac_try_echo=$ac_try;;
15594esac
15595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15596  (eval "$ac_try") 2>&5
15597  ac_status=$?
15598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599  (exit $ac_status); }; }; then
15600
15601aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15602}'`
15603# Check for a 64-bit object if we didn't find anything.
15604if 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; }
15605}'`; fi
15606else
15607  echo "$as_me: failed program was:" >&5
15608sed 's/^/| /' conftest.$ac_ext >&5
15609
15610
15611fi
15612
15613rm -f core conftest.err conftest.$ac_objext \
15614      conftest$ac_exeext conftest.$ac_ext
15615if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15616
15617       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15618	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"
15619       else
15620	if test "$host_cpu" = ia64; then
15621	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15622	  allow_undefined_flag="-z nodefs"
15623	  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"
15624	else
15625	 # Determine the default libpath from the value encoded in an empty executable.
15626	 cat >conftest.$ac_ext <<_ACEOF
15627/* confdefs.h.  */
15628_ACEOF
15629cat confdefs.h >>conftest.$ac_ext
15630cat >>conftest.$ac_ext <<_ACEOF
15631/* end confdefs.h.  */
15632
15633int
15634main ()
15635{
15636
15637  ;
15638  return 0;
15639}
15640_ACEOF
15641rm -f conftest.$ac_objext conftest$ac_exeext
15642if { (ac_try="$ac_link"
15643case "(($ac_try" in
15644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645  *) ac_try_echo=$ac_try;;
15646esac
15647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648  (eval "$ac_link") 2>conftest.er1
15649  ac_status=$?
15650  grep -v '^ *+' conftest.er1 >conftest.err
15651  rm -f conftest.er1
15652  cat conftest.err >&5
15653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654  (exit $ac_status); } &&
15655	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15656  { (case "(($ac_try" in
15657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658  *) ac_try_echo=$ac_try;;
15659esac
15660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661  (eval "$ac_try") 2>&5
15662  ac_status=$?
15663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664  (exit $ac_status); }; } &&
15665	 { ac_try='test -s conftest$ac_exeext'
15666  { (case "(($ac_try" in
15667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668  *) ac_try_echo=$ac_try;;
15669esac
15670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671  (eval "$ac_try") 2>&5
15672  ac_status=$?
15673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674  (exit $ac_status); }; }; then
15675
15676aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15677}'`
15678# Check for a 64-bit object if we didn't find anything.
15679if 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; }
15680}'`; fi
15681else
15682  echo "$as_me: failed program was:" >&5
15683sed 's/^/| /' conftest.$ac_ext >&5
15684
15685
15686fi
15687
15688rm -f core conftest.err conftest.$ac_objext \
15689      conftest$ac_exeext conftest.$ac_ext
15690if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15691
15692	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15693	  # Warning - without using the other run time loading flags,
15694	  # -berok will link without error, but may produce a broken library.
15695	  no_undefined_flag=' ${wl}-bernotok'
15696	  allow_undefined_flag=' ${wl}-berok'
15697	  # Exported symbols can be pulled into shared objects from archives
15698	  whole_archive_flag_spec='$convenience'
15699	  archive_cmds_need_lc=yes
15700	  # This is similar to how AIX traditionally builds its shared libraries.
15701	  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'
15702	fi
15703      fi
15704      ;;
15705
15706    amigaos*)
15707      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)'
15708      hardcode_libdir_flag_spec='-L$libdir'
15709      hardcode_minus_L=yes
15710      # see comment about different semantics on the GNU ld section
15711      ld_shlibs=no
15712      ;;
15713
15714    bsdi[45]*)
15715      export_dynamic_flag_spec=-rdynamic
15716      ;;
15717
15718    cygwin* | mingw* | pw32*)
15719      # When not using gcc, we currently assume that we are using
15720      # Microsoft Visual C++.
15721      # hardcode_libdir_flag_spec is actually meaningless, as there is
15722      # no search path for DLLs.
15723      hardcode_libdir_flag_spec=' '
15724      allow_undefined_flag=unsupported
15725      # Tell ltmain to make .lib files, not .a files.
15726      libext=lib
15727      # Tell ltmain to make .dll files, not .so files.
15728      shrext_cmds=".dll"
15729      # FIXME: Setting linknames here is a bad hack.
15730      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15731      # The linker will automatically build a .lib file if we build a DLL.
15732      old_archive_From_new_cmds='true'
15733      # FIXME: Should let the user specify the lib program.
15734      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15735      fix_srcfile_path='`cygpath -w "$srcfile"`'
15736      enable_shared_with_static_runtimes=yes
15737      ;;
15738
15739    darwin* | rhapsody*)
15740      case $host_os in
15741        rhapsody* | darwin1.[012])
15742         allow_undefined_flag='${wl}-undefined ${wl}suppress'
15743         ;;
15744       *) # Darwin 1.3 on
15745         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15746           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15747         else
15748           case ${MACOSX_DEPLOYMENT_TARGET} in
15749             10.[012])
15750               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15751               ;;
15752             10.*)
15753               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15754               ;;
15755           esac
15756         fi
15757         ;;
15758      esac
15759      archive_cmds_need_lc=no
15760      hardcode_direct=no
15761      hardcode_automatic=yes
15762      hardcode_shlibpath_var=unsupported
15763      whole_archive_flag_spec=''
15764      link_all_deplibs=yes
15765    if test "$GCC" = yes ; then
15766    	output_verbose_link_cmd='echo'
15767        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15768      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15769      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15770      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}'
15771      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}'
15772    else
15773      case $cc_basename in
15774        xlc*)
15775         output_verbose_link_cmd='echo'
15776         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15777         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15778          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15779         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}'
15780          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}'
15781          ;;
15782       *)
15783         ld_shlibs=no
15784          ;;
15785      esac
15786    fi
15787      ;;
15788
15789    dgux*)
15790      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15791      hardcode_libdir_flag_spec='-L$libdir'
15792      hardcode_shlibpath_var=no
15793      ;;
15794
15795    freebsd1*)
15796      ld_shlibs=no
15797      ;;
15798
15799    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15800    # support.  Future versions do this automatically, but an explicit c++rt0.o
15801    # does not break anything, and helps significantly (at the cost of a little
15802    # extra space).
15803    freebsd2.2*)
15804      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15805      hardcode_libdir_flag_spec='-R$libdir'
15806      hardcode_direct=yes
15807      hardcode_shlibpath_var=no
15808      ;;
15809
15810    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15811    freebsd2*)
15812      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15813      hardcode_direct=yes
15814      hardcode_minus_L=yes
15815      hardcode_shlibpath_var=no
15816      ;;
15817
15818    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15819    freebsd* | kfreebsd*-gnu | dragonfly*)
15820      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15821      hardcode_libdir_flag_spec='-R$libdir'
15822      hardcode_direct=yes
15823      hardcode_shlibpath_var=no
15824      ;;
15825
15826    hpux9*)
15827      if test "$GCC" = yes; then
15828	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'
15829      else
15830	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'
15831      fi
15832      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15833      hardcode_libdir_separator=:
15834      hardcode_direct=yes
15835
15836      # hardcode_minus_L: Not really in the search PATH,
15837      # but as the default location of the library.
15838      hardcode_minus_L=yes
15839      export_dynamic_flag_spec='${wl}-E'
15840      ;;
15841
15842    hpux10*)
15843      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15844	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15845      else
15846	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15847      fi
15848      if test "$with_gnu_ld" = no; then
15849	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15850	hardcode_libdir_separator=:
15851
15852	hardcode_direct=yes
15853	export_dynamic_flag_spec='${wl}-E'
15854
15855	# hardcode_minus_L: Not really in the search PATH,
15856	# but as the default location of the library.
15857	hardcode_minus_L=yes
15858      fi
15859      ;;
15860
15861    hpux11*)
15862      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15863	case $host_cpu in
15864	hppa*64*)
15865	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15866	  ;;
15867	ia64*)
15868	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15869	  ;;
15870	*)
15871	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15872	  ;;
15873	esac
15874      else
15875	case $host_cpu in
15876	hppa*64*)
15877	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15878	  ;;
15879	ia64*)
15880	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15881	  ;;
15882	*)
15883	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15884	  ;;
15885	esac
15886      fi
15887      if test "$with_gnu_ld" = no; then
15888	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15889	hardcode_libdir_separator=:
15890
15891	case $host_cpu in
15892	hppa*64*|ia64*)
15893	  hardcode_libdir_flag_spec_ld='+b $libdir'
15894	  hardcode_direct=no
15895	  hardcode_shlibpath_var=no
15896	  ;;
15897	*)
15898	  hardcode_direct=yes
15899	  export_dynamic_flag_spec='${wl}-E'
15900
15901	  # hardcode_minus_L: Not really in the search PATH,
15902	  # but as the default location of the library.
15903	  hardcode_minus_L=yes
15904	  ;;
15905	esac
15906      fi
15907      ;;
15908
15909    irix5* | irix6* | nonstopux*)
15910      if test "$GCC" = yes; then
15911	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'
15912      else
15913	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'
15914	hardcode_libdir_flag_spec_ld='-rpath $libdir'
15915      fi
15916      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15917      hardcode_libdir_separator=:
15918      link_all_deplibs=yes
15919      ;;
15920
15921    netbsd*)
15922      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15923	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15924      else
15925	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15926      fi
15927      hardcode_libdir_flag_spec='-R$libdir'
15928      hardcode_direct=yes
15929      hardcode_shlibpath_var=no
15930      ;;
15931
15932    newsos6)
15933      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15934      hardcode_direct=yes
15935      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15936      hardcode_libdir_separator=:
15937      hardcode_shlibpath_var=no
15938      ;;
15939
15940    openbsd*)
15941      hardcode_direct=yes
15942      hardcode_shlibpath_var=no
15943      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15944	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15945	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15946	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15947	export_dynamic_flag_spec='${wl}-E'
15948      else
15949       case $host_os in
15950	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15951	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15952	   hardcode_libdir_flag_spec='-R$libdir'
15953	   ;;
15954	 *)
15955	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15956	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15957	   ;;
15958       esac
15959      fi
15960      ;;
15961
15962    os2*)
15963      hardcode_libdir_flag_spec='-L$libdir'
15964      hardcode_minus_L=yes
15965      allow_undefined_flag=unsupported
15966      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'
15967      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15968      ;;
15969
15970    osf3*)
15971      if test "$GCC" = yes; then
15972	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15973	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'
15974      else
15975	allow_undefined_flag=' -expect_unresolved \*'
15976	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'
15977      fi
15978      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15979      hardcode_libdir_separator=:
15980      ;;
15981
15982    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15983      if test "$GCC" = yes; then
15984	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15985	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'
15986	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15987      else
15988	allow_undefined_flag=' -expect_unresolved \*'
15989	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'
15990	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15991	$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'
15992
15993	# Both c and cxx compiler support -rpath directly
15994	hardcode_libdir_flag_spec='-rpath $libdir'
15995      fi
15996      hardcode_libdir_separator=:
15997      ;;
15998
15999    solaris*)
16000      no_undefined_flag=' -z text'
16001      if test "$GCC" = yes; then
16002	wlarc='${wl}'
16003	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16004	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16005	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16006      else
16007	wlarc=''
16008	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16009	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16010  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16011      fi
16012      hardcode_libdir_flag_spec='-R$libdir'
16013      hardcode_shlibpath_var=no
16014      case $host_os in
16015      solaris2.[0-5] | solaris2.[0-5].*) ;;
16016      *)
16017 	# The compiler driver will combine linker options so we
16018 	# cannot just pass the convience library names through
16019 	# without $wl, iff we do not link with $LD.
16020 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16021 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16022 	case $wlarc in
16023 	'')
16024 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16025 	*)
16026 	  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' ;;
16027 	esac ;;
16028      esac
16029      link_all_deplibs=yes
16030      ;;
16031
16032    sunos4*)
16033      if test "x$host_vendor" = xsequent; then
16034	# Use $CC to link under sequent, because it throws in some extra .o
16035	# files that make .init and .fini sections work.
16036	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16037      else
16038	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16039      fi
16040      hardcode_libdir_flag_spec='-L$libdir'
16041      hardcode_direct=yes
16042      hardcode_minus_L=yes
16043      hardcode_shlibpath_var=no
16044      ;;
16045
16046    sysv4)
16047      case $host_vendor in
16048	sni)
16049	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16050	  hardcode_direct=yes # is this really true???
16051	;;
16052	siemens)
16053	  ## LD is ld it makes a PLAMLIB
16054	  ## CC just makes a GrossModule.
16055	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16056	  reload_cmds='$CC -r -o $output$reload_objs'
16057	  hardcode_direct=no
16058        ;;
16059	motorola)
16060	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16061	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16062	;;
16063      esac
16064      runpath_var='LD_RUN_PATH'
16065      hardcode_shlibpath_var=no
16066      ;;
16067
16068    sysv4.3*)
16069      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16070      hardcode_shlibpath_var=no
16071      export_dynamic_flag_spec='-Bexport'
16072      ;;
16073
16074    sysv4*MP*)
16075      if test -d /usr/nec; then
16076	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16077	hardcode_shlibpath_var=no
16078	runpath_var=LD_RUN_PATH
16079	hardcode_runpath_var=yes
16080	ld_shlibs=yes
16081      fi
16082      ;;
16083
16084    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16085      no_undefined_flag='${wl}-z,text'
16086      archive_cmds_need_lc=no
16087      hardcode_shlibpath_var=no
16088      runpath_var='LD_RUN_PATH'
16089
16090      if test "$GCC" = yes; then
16091	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16092	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16093      else
16094	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16095	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16096      fi
16097      ;;
16098
16099    sysv5* | sco3.2v5* | sco5v6*)
16100      # Note: We can NOT use -z defs as we might desire, because we do not
16101      # link with -lc, and that would cause any symbols used from libc to
16102      # always be unresolved, which means just about no library would
16103      # ever link correctly.  If we're not using GNU ld we use -z text
16104      # though, which does catch some bad symbols but isn't as heavy-handed
16105      # as -z defs.
16106      no_undefined_flag='${wl}-z,text'
16107      allow_undefined_flag='${wl}-z,nodefs'
16108      archive_cmds_need_lc=no
16109      hardcode_shlibpath_var=no
16110      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16111      hardcode_libdir_separator=':'
16112      link_all_deplibs=yes
16113      export_dynamic_flag_spec='${wl}-Bexport'
16114      runpath_var='LD_RUN_PATH'
16115
16116      if test "$GCC" = yes; then
16117	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16118	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16119      else
16120	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16121	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16122      fi
16123      ;;
16124
16125    uts4*)
16126      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16127      hardcode_libdir_flag_spec='-L$libdir'
16128      hardcode_shlibpath_var=no
16129      ;;
16130
16131    *)
16132      ld_shlibs=no
16133      ;;
16134    esac
16135  fi
16136
16137{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16138echo "${ECHO_T}$ld_shlibs" >&6; }
16139test "$ld_shlibs" = no && can_build_shared=no
16140
16141#
16142# Do we need to explicitly link libc?
16143#
16144case "x$archive_cmds_need_lc" in
16145x|xyes)
16146  # Assume -lc should be added
16147  archive_cmds_need_lc=yes
16148
16149  if test "$enable_shared" = yes && test "$GCC" = yes; then
16150    case $archive_cmds in
16151    *'~'*)
16152      # FIXME: we may have to deal with multi-command sequences.
16153      ;;
16154    '$CC '*)
16155      # Test whether the compiler implicitly links with -lc since on some
16156      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16157      # to ld, don't add -lc before -lgcc.
16158      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16159echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16160      $rm conftest*
16161      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16162
16163      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16164  (eval $ac_compile) 2>&5
16165  ac_status=$?
16166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167  (exit $ac_status); } 2>conftest.err; then
16168        soname=conftest
16169        lib=conftest
16170        libobjs=conftest.$ac_objext
16171        deplibs=
16172        wl=$lt_prog_compiler_wl
16173	pic_flag=$lt_prog_compiler_pic
16174        compiler_flags=-v
16175        linker_flags=-v
16176        verstring=
16177        output_objdir=.
16178        libname=conftest
16179        lt_save_allow_undefined_flag=$allow_undefined_flag
16180        allow_undefined_flag=
16181        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16182  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16183  ac_status=$?
16184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185  (exit $ac_status); }
16186        then
16187	  archive_cmds_need_lc=no
16188        else
16189	  archive_cmds_need_lc=yes
16190        fi
16191        allow_undefined_flag=$lt_save_allow_undefined_flag
16192      else
16193        cat conftest.err 1>&5
16194      fi
16195      $rm conftest*
16196      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16197echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16198      ;;
16199    esac
16200  fi
16201  ;;
16202esac
16203
16204{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16205echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16206library_names_spec=
16207libname_spec='lib$name'
16208soname_spec=
16209shrext_cmds=".so"
16210postinstall_cmds=
16211postuninstall_cmds=
16212finish_cmds=
16213finish_eval=
16214shlibpath_var=
16215shlibpath_overrides_runpath=unknown
16216version_type=none
16217dynamic_linker="$host_os ld.so"
16218sys_lib_dlsearch_path_spec="/lib /usr/lib"
16219if test "$GCC" = yes; then
16220  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16221  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16222    # if the path contains ";" then we assume it to be the separator
16223    # otherwise default to the standard path separator (i.e. ":") - it is
16224    # assumed that no part of a normal pathname contains ";" but that should
16225    # okay in the real world where ";" in dirpaths is itself problematic.
16226    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16227  else
16228    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16229  fi
16230else
16231  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16232fi
16233need_lib_prefix=unknown
16234hardcode_into_libs=no
16235
16236# when you set need_version to no, make sure it does not cause -set_version
16237# flags to be left without arguments
16238need_version=unknown
16239
16240case $host_os in
16241aix3*)
16242  version_type=linux
16243  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16244  shlibpath_var=LIBPATH
16245
16246  # AIX 3 has no versioning support, so we append a major version to the name.
16247  soname_spec='${libname}${release}${shared_ext}$major'
16248  ;;
16249
16250aix4* | aix5*)
16251  version_type=linux
16252  need_lib_prefix=no
16253  need_version=no
16254  hardcode_into_libs=yes
16255  if test "$host_cpu" = ia64; then
16256    # AIX 5 supports IA64
16257    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16258    shlibpath_var=LD_LIBRARY_PATH
16259  else
16260    # With GCC up to 2.95.x, collect2 would create an import file
16261    # for dependence libraries.  The import file would start with
16262    # the line `#! .'.  This would cause the generated library to
16263    # depend on `.', always an invalid library.  This was fixed in
16264    # development snapshots of GCC prior to 3.0.
16265    case $host_os in
16266      aix4 | aix4.[01] | aix4.[01].*)
16267      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16268	   echo ' yes '
16269	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16270	:
16271      else
16272	can_build_shared=no
16273      fi
16274      ;;
16275    esac
16276    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16277    # soname into executable. Probably we can add versioning support to
16278    # collect2, so additional links can be useful in future.
16279    if test "$aix_use_runtimelinking" = yes; then
16280      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16281      # instead of lib<name>.a to let people know that these are not
16282      # typical AIX shared libraries.
16283      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16284    else
16285      # We preserve .a as extension for shared libraries through AIX4.2
16286      # and later when we are not doing run time linking.
16287      library_names_spec='${libname}${release}.a $libname.a'
16288      soname_spec='${libname}${release}${shared_ext}$major'
16289    fi
16290    shlibpath_var=LIBPATH
16291  fi
16292  ;;
16293
16294amigaos*)
16295  library_names_spec='$libname.ixlibrary $libname.a'
16296  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16297  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'
16298  ;;
16299
16300beos*)
16301  library_names_spec='${libname}${shared_ext}'
16302  dynamic_linker="$host_os ld.so"
16303  shlibpath_var=LIBRARY_PATH
16304  ;;
16305
16306bsdi[45]*)
16307  version_type=linux
16308  need_version=no
16309  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16310  soname_spec='${libname}${release}${shared_ext}$major'
16311  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16312  shlibpath_var=LD_LIBRARY_PATH
16313  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16314  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16315  # the default ld.so.conf also contains /usr/contrib/lib and
16316  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16317  # libtool to hard-code these into programs
16318  ;;
16319
16320cygwin* | mingw* | pw32*)
16321  version_type=windows
16322  shrext_cmds=".dll"
16323  need_version=no
16324  need_lib_prefix=no
16325
16326  case $GCC,$host_os in
16327  yes,cygwin* | yes,mingw* | yes,pw32*)
16328    library_names_spec='$libname.dll.a'
16329    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16330    postinstall_cmds='base_file=`basename \${file}`~
16331      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16332      dldir=$destdir/`dirname \$dlpath`~
16333      test -d \$dldir || mkdir -p \$dldir~
16334      $install_prog $dir/$dlname \$dldir/$dlname~
16335      chmod a+x \$dldir/$dlname'
16336    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16337      dlpath=$dir/\$dldll~
16338       $rm \$dlpath'
16339    shlibpath_overrides_runpath=yes
16340
16341    case $host_os in
16342    cygwin*)
16343      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16344      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16345      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16346      ;;
16347    mingw*)
16348      # MinGW DLLs use traditional 'lib' prefix
16349      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16350      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16351      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16352        # It is most probably a Windows format PATH printed by
16353        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16354        # path with ; separators, and with drive letters. We can handle the
16355        # drive letters (cygwin fileutils understands them), so leave them,
16356        # especially as we might pass files found there to a mingw objdump,
16357        # which wouldn't understand a cygwinified path. Ahh.
16358        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16359      else
16360        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16361      fi
16362      ;;
16363    pw32*)
16364      # pw32 DLLs use 'pw' prefix rather than 'lib'
16365      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16366      ;;
16367    esac
16368    ;;
16369
16370  *)
16371    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16372    ;;
16373  esac
16374  dynamic_linker='Win32 ld.exe'
16375  # FIXME: first we should search . and the directory the executable is in
16376  shlibpath_var=PATH
16377  ;;
16378
16379darwin* | rhapsody*)
16380  dynamic_linker="$host_os dyld"
16381  version_type=darwin
16382  need_lib_prefix=no
16383  need_version=no
16384  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16385  soname_spec='${libname}${release}${major}$shared_ext'
16386  shlibpath_overrides_runpath=yes
16387  shlibpath_var=DYLD_LIBRARY_PATH
16388  shrext_cmds='.dylib'
16389  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16390  if test "$GCC" = yes; then
16391    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"`
16392  else
16393    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16394  fi
16395  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16396  ;;
16397
16398dgux*)
16399  version_type=linux
16400  need_lib_prefix=no
16401  need_version=no
16402  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16403  soname_spec='${libname}${release}${shared_ext}$major'
16404  shlibpath_var=LD_LIBRARY_PATH
16405  ;;
16406
16407freebsd1*)
16408  dynamic_linker=no
16409  ;;
16410
16411kfreebsd*-gnu)
16412  version_type=linux
16413  need_lib_prefix=no
16414  need_version=no
16415  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16416  soname_spec='${libname}${release}${shared_ext}$major'
16417  shlibpath_var=LD_LIBRARY_PATH
16418  shlibpath_overrides_runpath=no
16419  hardcode_into_libs=yes
16420  dynamic_linker='GNU ld.so'
16421  ;;
16422
16423freebsd* | dragonfly*)
16424  # DragonFly does not have aout.  When/if they implement a new
16425  # versioning mechanism, adjust this.
16426  if test -x /usr/bin/objformat; then
16427    objformat=`/usr/bin/objformat`
16428  else
16429    case $host_os in
16430    freebsd[123]*) objformat=aout ;;
16431    *) objformat=elf ;;
16432    esac
16433  fi
16434  version_type=freebsd-$objformat
16435  case $version_type in
16436    freebsd-elf*)
16437      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16438      need_version=no
16439      need_lib_prefix=no
16440      ;;
16441    freebsd-*)
16442      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16443      need_version=yes
16444      ;;
16445  esac
16446  shlibpath_var=LD_LIBRARY_PATH
16447  case $host_os in
16448  freebsd2*)
16449    shlibpath_overrides_runpath=yes
16450    ;;
16451  freebsd3.[01]* | freebsdelf3.[01]*)
16452    shlibpath_overrides_runpath=yes
16453    hardcode_into_libs=yes
16454    ;;
16455  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16456  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16457    shlibpath_overrides_runpath=no
16458    hardcode_into_libs=yes
16459    ;;
16460  freebsd*) # from 4.6 on
16461    shlibpath_overrides_runpath=yes
16462    hardcode_into_libs=yes
16463    ;;
16464  esac
16465  ;;
16466
16467gnu*)
16468  version_type=linux
16469  need_lib_prefix=no
16470  need_version=no
16471  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16472  soname_spec='${libname}${release}${shared_ext}$major'
16473  shlibpath_var=LD_LIBRARY_PATH
16474  hardcode_into_libs=yes
16475  ;;
16476
16477hpux9* | hpux10* | hpux11*)
16478  # Give a soname corresponding to the major version so that dld.sl refuses to
16479  # link against other versions.
16480  version_type=sunos
16481  need_lib_prefix=no
16482  need_version=no
16483  case $host_cpu in
16484  ia64*)
16485    shrext_cmds='.so'
16486    hardcode_into_libs=yes
16487    dynamic_linker="$host_os dld.so"
16488    shlibpath_var=LD_LIBRARY_PATH
16489    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16490    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16491    soname_spec='${libname}${release}${shared_ext}$major'
16492    if test "X$HPUX_IA64_MODE" = X32; then
16493      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16494    else
16495      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16496    fi
16497    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16498    ;;
16499   hppa*64*)
16500     shrext_cmds='.sl'
16501     hardcode_into_libs=yes
16502     dynamic_linker="$host_os dld.sl"
16503     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16504     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16505     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16506     soname_spec='${libname}${release}${shared_ext}$major'
16507     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16508     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16509     ;;
16510   *)
16511    shrext_cmds='.sl'
16512    dynamic_linker="$host_os dld.sl"
16513    shlibpath_var=SHLIB_PATH
16514    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16515    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16516    soname_spec='${libname}${release}${shared_ext}$major'
16517    ;;
16518  esac
16519  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16520  postinstall_cmds='chmod 555 $lib'
16521  ;;
16522
16523interix3*)
16524  version_type=linux
16525  need_lib_prefix=no
16526  need_version=no
16527  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16528  soname_spec='${libname}${release}${shared_ext}$major'
16529  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16530  shlibpath_var=LD_LIBRARY_PATH
16531  shlibpath_overrides_runpath=no
16532  hardcode_into_libs=yes
16533  ;;
16534
16535irix5* | irix6* | nonstopux*)
16536  case $host_os in
16537    nonstopux*) version_type=nonstopux ;;
16538    *)
16539	if test "$lt_cv_prog_gnu_ld" = yes; then
16540		version_type=linux
16541	else
16542		version_type=irix
16543	fi ;;
16544  esac
16545  need_lib_prefix=no
16546  need_version=no
16547  soname_spec='${libname}${release}${shared_ext}$major'
16548  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16549  case $host_os in
16550  irix5* | nonstopux*)
16551    libsuff= shlibsuff=
16552    ;;
16553  *)
16554    case $LD in # libtool.m4 will add one of these switches to LD
16555    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16556      libsuff= shlibsuff= libmagic=32-bit;;
16557    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16558      libsuff=32 shlibsuff=N32 libmagic=N32;;
16559    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16560      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16561    *) libsuff= shlibsuff= libmagic=never-match;;
16562    esac
16563    ;;
16564  esac
16565  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16566  shlibpath_overrides_runpath=no
16567  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16568  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16569  hardcode_into_libs=yes
16570  ;;
16571
16572# No shared lib support for Linux oldld, aout, or coff.
16573linux*oldld* | linux*aout* | linux*coff*)
16574  dynamic_linker=no
16575  ;;
16576
16577# This must be Linux ELF.
16578linux*)
16579  version_type=linux
16580  need_lib_prefix=no
16581  need_version=no
16582  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16583  soname_spec='${libname}${release}${shared_ext}$major'
16584  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16585  shlibpath_var=LD_LIBRARY_PATH
16586  shlibpath_overrides_runpath=no
16587  # This implies no fast_install, which is unacceptable.
16588  # Some rework will be needed to allow for fast_install
16589  # before this can be enabled.
16590  hardcode_into_libs=yes
16591
16592  # Append ld.so.conf contents to the search path
16593  if test -f /etc/ld.so.conf; then
16594    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' ' '`
16595    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16596  fi
16597
16598  # We used to test for /lib/ld.so.1 and disable shared libraries on
16599  # powerpc, because MkLinux only supported shared libraries with the
16600  # GNU dynamic linker.  Since this was broken with cross compilers,
16601  # most powerpc-linux boxes support dynamic linking these days and
16602  # people can always --disable-shared, the test was removed, and we
16603  # assume the GNU/Linux dynamic linker is in use.
16604  dynamic_linker='GNU/Linux ld.so'
16605  ;;
16606
16607knetbsd*-gnu)
16608  version_type=linux
16609  need_lib_prefix=no
16610  need_version=no
16611  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16612  soname_spec='${libname}${release}${shared_ext}$major'
16613  shlibpath_var=LD_LIBRARY_PATH
16614  shlibpath_overrides_runpath=no
16615  hardcode_into_libs=yes
16616  dynamic_linker='GNU ld.so'
16617  ;;
16618
16619netbsd*)
16620  version_type=sunos
16621  need_lib_prefix=no
16622  need_version=no
16623  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16624    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16625    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16626    dynamic_linker='NetBSD (a.out) ld.so'
16627  else
16628    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16629    soname_spec='${libname}${release}${shared_ext}$major'
16630    dynamic_linker='NetBSD ld.elf_so'
16631  fi
16632  shlibpath_var=LD_LIBRARY_PATH
16633  shlibpath_overrides_runpath=yes
16634  hardcode_into_libs=yes
16635  ;;
16636
16637newsos6)
16638  version_type=linux
16639  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16640  shlibpath_var=LD_LIBRARY_PATH
16641  shlibpath_overrides_runpath=yes
16642  ;;
16643
16644nto-qnx*)
16645  version_type=linux
16646  need_lib_prefix=no
16647  need_version=no
16648  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16649  soname_spec='${libname}${release}${shared_ext}$major'
16650  shlibpath_var=LD_LIBRARY_PATH
16651  shlibpath_overrides_runpath=yes
16652  ;;
16653
16654openbsd*)
16655  version_type=sunos
16656  sys_lib_dlsearch_path_spec="/usr/lib"
16657  need_lib_prefix=no
16658  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16659  case $host_os in
16660    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16661    *)                         need_version=no  ;;
16662  esac
16663  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16664  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16665  shlibpath_var=LD_LIBRARY_PATH
16666  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16667    case $host_os in
16668      openbsd2.[89] | openbsd2.[89].*)
16669	shlibpath_overrides_runpath=no
16670	;;
16671      *)
16672	shlibpath_overrides_runpath=yes
16673	;;
16674      esac
16675  else
16676    shlibpath_overrides_runpath=yes
16677  fi
16678  ;;
16679
16680os2*)
16681  libname_spec='$name'
16682  shrext_cmds=".dll"
16683  need_lib_prefix=no
16684  library_names_spec='$libname${shared_ext} $libname.a'
16685  dynamic_linker='OS/2 ld.exe'
16686  shlibpath_var=LIBPATH
16687  ;;
16688
16689osf3* | osf4* | osf5*)
16690  version_type=osf
16691  need_lib_prefix=no
16692  need_version=no
16693  soname_spec='${libname}${release}${shared_ext}$major'
16694  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16695  shlibpath_var=LD_LIBRARY_PATH
16696  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16697  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16698  ;;
16699
16700solaris*)
16701  version_type=linux
16702  need_lib_prefix=no
16703  need_version=no
16704  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16705  soname_spec='${libname}${release}${shared_ext}$major'
16706  shlibpath_var=LD_LIBRARY_PATH
16707  shlibpath_overrides_runpath=yes
16708  hardcode_into_libs=yes
16709  # ldd complains unless libraries are executable
16710  postinstall_cmds='chmod +x $lib'
16711  ;;
16712
16713sunos4*)
16714  version_type=sunos
16715  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16716  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16717  shlibpath_var=LD_LIBRARY_PATH
16718  shlibpath_overrides_runpath=yes
16719  if test "$with_gnu_ld" = yes; then
16720    need_lib_prefix=no
16721  fi
16722  need_version=yes
16723  ;;
16724
16725sysv4 | sysv4.3*)
16726  version_type=linux
16727  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16728  soname_spec='${libname}${release}${shared_ext}$major'
16729  shlibpath_var=LD_LIBRARY_PATH
16730  case $host_vendor in
16731    sni)
16732      shlibpath_overrides_runpath=no
16733      need_lib_prefix=no
16734      export_dynamic_flag_spec='${wl}-Blargedynsym'
16735      runpath_var=LD_RUN_PATH
16736      ;;
16737    siemens)
16738      need_lib_prefix=no
16739      ;;
16740    motorola)
16741      need_lib_prefix=no
16742      need_version=no
16743      shlibpath_overrides_runpath=no
16744      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16745      ;;
16746  esac
16747  ;;
16748
16749sysv4*MP*)
16750  if test -d /usr/nec ;then
16751    version_type=linux
16752    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16753    soname_spec='$libname${shared_ext}.$major'
16754    shlibpath_var=LD_LIBRARY_PATH
16755  fi
16756  ;;
16757
16758sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16759  version_type=freebsd-elf
16760  need_lib_prefix=no
16761  need_version=no
16762  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16763  soname_spec='${libname}${release}${shared_ext}$major'
16764  shlibpath_var=LD_LIBRARY_PATH
16765  hardcode_into_libs=yes
16766  if test "$with_gnu_ld" = yes; then
16767    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16768    shlibpath_overrides_runpath=no
16769  else
16770    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16771    shlibpath_overrides_runpath=yes
16772    case $host_os in
16773      sco3.2v5*)
16774        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16775	;;
16776    esac
16777  fi
16778  sys_lib_dlsearch_path_spec='/usr/lib'
16779  ;;
16780
16781uts4*)
16782  version_type=linux
16783  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16784  soname_spec='${libname}${release}${shared_ext}$major'
16785  shlibpath_var=LD_LIBRARY_PATH
16786  ;;
16787
16788*)
16789  dynamic_linker=no
16790  ;;
16791esac
16792{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16793echo "${ECHO_T}$dynamic_linker" >&6; }
16794test "$dynamic_linker" = no && can_build_shared=no
16795
16796variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16797if test "$GCC" = yes; then
16798  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16799fi
16800
16801{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16802echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16803hardcode_action=
16804if test -n "$hardcode_libdir_flag_spec" || \
16805   test -n "$runpath_var" || \
16806   test "X$hardcode_automatic" = "Xyes" ; then
16807
16808  # We can hardcode non-existant directories.
16809  if test "$hardcode_direct" != no &&
16810     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16811     # have to relink, otherwise we might link with an installed library
16812     # when we should be linking with a yet-to-be-installed one
16813     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16814     test "$hardcode_minus_L" != no; then
16815    # Linking always hardcodes the temporary library directory.
16816    hardcode_action=relink
16817  else
16818    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16819    hardcode_action=immediate
16820  fi
16821else
16822  # We cannot hardcode anything, or else we can only hardcode existing
16823  # directories.
16824  hardcode_action=unsupported
16825fi
16826{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16827echo "${ECHO_T}$hardcode_action" >&6; }
16828
16829if test "$hardcode_action" = relink; then
16830  # Fast installation is not supported
16831  enable_fast_install=no
16832elif test "$shlibpath_overrides_runpath" = yes ||
16833     test "$enable_shared" = no; then
16834  # Fast installation is not necessary
16835  enable_fast_install=needless
16836fi
16837
16838striplib=
16839old_striplib=
16840{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16841echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16842if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16843  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16844  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16845  { echo "$as_me:$LINENO: result: yes" >&5
16846echo "${ECHO_T}yes" >&6; }
16847else
16848# FIXME - insert some real tests, host_os isn't really good enough
16849  case $host_os in
16850   darwin*)
16851       if test -n "$STRIP" ; then
16852         striplib="$STRIP -x"
16853         { echo "$as_me:$LINENO: result: yes" >&5
16854echo "${ECHO_T}yes" >&6; }
16855       else
16856  { echo "$as_me:$LINENO: result: no" >&5
16857echo "${ECHO_T}no" >&6; }
16858fi
16859       ;;
16860   *)
16861  { echo "$as_me:$LINENO: result: no" >&5
16862echo "${ECHO_T}no" >&6; }
16863    ;;
16864  esac
16865fi
16866
16867if test "x$enable_dlopen" != xyes; then
16868  enable_dlopen=unknown
16869  enable_dlopen_self=unknown
16870  enable_dlopen_self_static=unknown
16871else
16872  lt_cv_dlopen=no
16873  lt_cv_dlopen_libs=
16874
16875  case $host_os in
16876  beos*)
16877    lt_cv_dlopen="load_add_on"
16878    lt_cv_dlopen_libs=
16879    lt_cv_dlopen_self=yes
16880    ;;
16881
16882  mingw* | pw32*)
16883    lt_cv_dlopen="LoadLibrary"
16884    lt_cv_dlopen_libs=
16885   ;;
16886
16887  cygwin*)
16888    lt_cv_dlopen="dlopen"
16889    lt_cv_dlopen_libs=
16890   ;;
16891
16892  darwin*)
16893  # if libdl is installed we need to link against it
16894    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16895echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16896if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16897  echo $ECHO_N "(cached) $ECHO_C" >&6
16898else
16899  ac_check_lib_save_LIBS=$LIBS
16900LIBS="-ldl  $LIBS"
16901cat >conftest.$ac_ext <<_ACEOF
16902/* confdefs.h.  */
16903_ACEOF
16904cat confdefs.h >>conftest.$ac_ext
16905cat >>conftest.$ac_ext <<_ACEOF
16906/* end confdefs.h.  */
16907
16908/* Override any GCC internal prototype to avoid an error.
16909   Use char because int might match the return type of a GCC
16910   builtin and then its argument prototype would still apply.  */
16911#ifdef __cplusplus
16912extern "C"
16913#endif
16914char dlopen ();
16915int
16916main ()
16917{
16918return dlopen ();
16919  ;
16920  return 0;
16921}
16922_ACEOF
16923rm -f conftest.$ac_objext conftest$ac_exeext
16924if { (ac_try="$ac_link"
16925case "(($ac_try" in
16926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16927  *) ac_try_echo=$ac_try;;
16928esac
16929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16930  (eval "$ac_link") 2>conftest.er1
16931  ac_status=$?
16932  grep -v '^ *+' conftest.er1 >conftest.err
16933  rm -f conftest.er1
16934  cat conftest.err >&5
16935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936  (exit $ac_status); } &&
16937	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16938  { (case "(($ac_try" in
16939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16940  *) ac_try_echo=$ac_try;;
16941esac
16942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16943  (eval "$ac_try") 2>&5
16944  ac_status=$?
16945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946  (exit $ac_status); }; } &&
16947	 { ac_try='test -s conftest$ac_exeext'
16948  { (case "(($ac_try" in
16949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16950  *) ac_try_echo=$ac_try;;
16951esac
16952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16953  (eval "$ac_try") 2>&5
16954  ac_status=$?
16955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956  (exit $ac_status); }; }; then
16957  ac_cv_lib_dl_dlopen=yes
16958else
16959  echo "$as_me: failed program was:" >&5
16960sed 's/^/| /' conftest.$ac_ext >&5
16961
16962	ac_cv_lib_dl_dlopen=no
16963fi
16964
16965rm -f core conftest.err conftest.$ac_objext \
16966      conftest$ac_exeext conftest.$ac_ext
16967LIBS=$ac_check_lib_save_LIBS
16968fi
16969{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16970echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16971if test $ac_cv_lib_dl_dlopen = yes; then
16972  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16973else
16974
16975    lt_cv_dlopen="dyld"
16976    lt_cv_dlopen_libs=
16977    lt_cv_dlopen_self=yes
16978
16979fi
16980
16981   ;;
16982
16983  *)
16984    { echo "$as_me:$LINENO: checking for shl_load" >&5
16985echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16986if test "${ac_cv_func_shl_load+set}" = set; then
16987  echo $ECHO_N "(cached) $ECHO_C" >&6
16988else
16989  cat >conftest.$ac_ext <<_ACEOF
16990/* confdefs.h.  */
16991_ACEOF
16992cat confdefs.h >>conftest.$ac_ext
16993cat >>conftest.$ac_ext <<_ACEOF
16994/* end confdefs.h.  */
16995/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16996   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16997#define shl_load innocuous_shl_load
16998
16999/* System header to define __stub macros and hopefully few prototypes,
17000    which can conflict with char shl_load (); below.
17001    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17002    <limits.h> exists even on freestanding compilers.  */
17003
17004#ifdef __STDC__
17005# include <limits.h>
17006#else
17007# include <assert.h>
17008#endif
17009
17010#undef shl_load
17011
17012/* Override any GCC internal prototype to avoid an error.
17013   Use char because int might match the return type of a GCC
17014   builtin and then its argument prototype would still apply.  */
17015#ifdef __cplusplus
17016extern "C"
17017#endif
17018char shl_load ();
17019/* The GNU C library defines this for functions which it implements
17020    to always fail with ENOSYS.  Some functions are actually named
17021    something starting with __ and the normal name is an alias.  */
17022#if defined __stub_shl_load || defined __stub___shl_load
17023choke me
17024#endif
17025
17026int
17027main ()
17028{
17029return shl_load ();
17030  ;
17031  return 0;
17032}
17033_ACEOF
17034rm -f conftest.$ac_objext conftest$ac_exeext
17035if { (ac_try="$ac_link"
17036case "(($ac_try" in
17037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038  *) ac_try_echo=$ac_try;;
17039esac
17040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17041  (eval "$ac_link") 2>conftest.er1
17042  ac_status=$?
17043  grep -v '^ *+' conftest.er1 >conftest.err
17044  rm -f conftest.er1
17045  cat conftest.err >&5
17046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047  (exit $ac_status); } &&
17048	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17049  { (case "(($ac_try" in
17050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051  *) ac_try_echo=$ac_try;;
17052esac
17053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17054  (eval "$ac_try") 2>&5
17055  ac_status=$?
17056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057  (exit $ac_status); }; } &&
17058	 { ac_try='test -s conftest$ac_exeext'
17059  { (case "(($ac_try" in
17060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17061  *) ac_try_echo=$ac_try;;
17062esac
17063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17064  (eval "$ac_try") 2>&5
17065  ac_status=$?
17066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067  (exit $ac_status); }; }; then
17068  ac_cv_func_shl_load=yes
17069else
17070  echo "$as_me: failed program was:" >&5
17071sed 's/^/| /' conftest.$ac_ext >&5
17072
17073	ac_cv_func_shl_load=no
17074fi
17075
17076rm -f core conftest.err conftest.$ac_objext \
17077      conftest$ac_exeext conftest.$ac_ext
17078fi
17079{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17080echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17081if test $ac_cv_func_shl_load = yes; then
17082  lt_cv_dlopen="shl_load"
17083else
17084  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17085echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17086if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17087  echo $ECHO_N "(cached) $ECHO_C" >&6
17088else
17089  ac_check_lib_save_LIBS=$LIBS
17090LIBS="-ldld  $LIBS"
17091cat >conftest.$ac_ext <<_ACEOF
17092/* confdefs.h.  */
17093_ACEOF
17094cat confdefs.h >>conftest.$ac_ext
17095cat >>conftest.$ac_ext <<_ACEOF
17096/* end confdefs.h.  */
17097
17098/* Override any GCC internal prototype to avoid an error.
17099   Use char because int might match the return type of a GCC
17100   builtin and then its argument prototype would still apply.  */
17101#ifdef __cplusplus
17102extern "C"
17103#endif
17104char shl_load ();
17105int
17106main ()
17107{
17108return shl_load ();
17109  ;
17110  return 0;
17111}
17112_ACEOF
17113rm -f conftest.$ac_objext conftest$ac_exeext
17114if { (ac_try="$ac_link"
17115case "(($ac_try" in
17116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117  *) ac_try_echo=$ac_try;;
17118esac
17119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17120  (eval "$ac_link") 2>conftest.er1
17121  ac_status=$?
17122  grep -v '^ *+' conftest.er1 >conftest.err
17123  rm -f conftest.er1
17124  cat conftest.err >&5
17125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126  (exit $ac_status); } &&
17127	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17128  { (case "(($ac_try" in
17129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17130  *) ac_try_echo=$ac_try;;
17131esac
17132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17133  (eval "$ac_try") 2>&5
17134  ac_status=$?
17135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136  (exit $ac_status); }; } &&
17137	 { ac_try='test -s conftest$ac_exeext'
17138  { (case "(($ac_try" in
17139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140  *) ac_try_echo=$ac_try;;
17141esac
17142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143  (eval "$ac_try") 2>&5
17144  ac_status=$?
17145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146  (exit $ac_status); }; }; then
17147  ac_cv_lib_dld_shl_load=yes
17148else
17149  echo "$as_me: failed program was:" >&5
17150sed 's/^/| /' conftest.$ac_ext >&5
17151
17152	ac_cv_lib_dld_shl_load=no
17153fi
17154
17155rm -f core conftest.err conftest.$ac_objext \
17156      conftest$ac_exeext conftest.$ac_ext
17157LIBS=$ac_check_lib_save_LIBS
17158fi
17159{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17160echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17161if test $ac_cv_lib_dld_shl_load = yes; then
17162  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17163else
17164  { echo "$as_me:$LINENO: checking for dlopen" >&5
17165echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17166if test "${ac_cv_func_dlopen+set}" = set; then
17167  echo $ECHO_N "(cached) $ECHO_C" >&6
17168else
17169  cat >conftest.$ac_ext <<_ACEOF
17170/* confdefs.h.  */
17171_ACEOF
17172cat confdefs.h >>conftest.$ac_ext
17173cat >>conftest.$ac_ext <<_ACEOF
17174/* end confdefs.h.  */
17175/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17176   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17177#define dlopen innocuous_dlopen
17178
17179/* System header to define __stub macros and hopefully few prototypes,
17180    which can conflict with char dlopen (); below.
17181    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17182    <limits.h> exists even on freestanding compilers.  */
17183
17184#ifdef __STDC__
17185# include <limits.h>
17186#else
17187# include <assert.h>
17188#endif
17189
17190#undef dlopen
17191
17192/* Override any GCC internal prototype to avoid an error.
17193   Use char because int might match the return type of a GCC
17194   builtin and then its argument prototype would still apply.  */
17195#ifdef __cplusplus
17196extern "C"
17197#endif
17198char dlopen ();
17199/* The GNU C library defines this for functions which it implements
17200    to always fail with ENOSYS.  Some functions are actually named
17201    something starting with __ and the normal name is an alias.  */
17202#if defined __stub_dlopen || defined __stub___dlopen
17203choke me
17204#endif
17205
17206int
17207main ()
17208{
17209return dlopen ();
17210  ;
17211  return 0;
17212}
17213_ACEOF
17214rm -f conftest.$ac_objext conftest$ac_exeext
17215if { (ac_try="$ac_link"
17216case "(($ac_try" in
17217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17218  *) ac_try_echo=$ac_try;;
17219esac
17220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17221  (eval "$ac_link") 2>conftest.er1
17222  ac_status=$?
17223  grep -v '^ *+' conftest.er1 >conftest.err
17224  rm -f conftest.er1
17225  cat conftest.err >&5
17226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227  (exit $ac_status); } &&
17228	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17229  { (case "(($ac_try" in
17230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231  *) ac_try_echo=$ac_try;;
17232esac
17233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234  (eval "$ac_try") 2>&5
17235  ac_status=$?
17236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237  (exit $ac_status); }; } &&
17238	 { ac_try='test -s conftest$ac_exeext'
17239  { (case "(($ac_try" in
17240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17241  *) ac_try_echo=$ac_try;;
17242esac
17243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17244  (eval "$ac_try") 2>&5
17245  ac_status=$?
17246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247  (exit $ac_status); }; }; then
17248  ac_cv_func_dlopen=yes
17249else
17250  echo "$as_me: failed program was:" >&5
17251sed 's/^/| /' conftest.$ac_ext >&5
17252
17253	ac_cv_func_dlopen=no
17254fi
17255
17256rm -f core conftest.err conftest.$ac_objext \
17257      conftest$ac_exeext conftest.$ac_ext
17258fi
17259{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17260echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17261if test $ac_cv_func_dlopen = yes; then
17262  lt_cv_dlopen="dlopen"
17263else
17264  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17265echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17266if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17267  echo $ECHO_N "(cached) $ECHO_C" >&6
17268else
17269  ac_check_lib_save_LIBS=$LIBS
17270LIBS="-ldl  $LIBS"
17271cat >conftest.$ac_ext <<_ACEOF
17272/* confdefs.h.  */
17273_ACEOF
17274cat confdefs.h >>conftest.$ac_ext
17275cat >>conftest.$ac_ext <<_ACEOF
17276/* end confdefs.h.  */
17277
17278/* Override any GCC internal prototype to avoid an error.
17279   Use char because int might match the return type of a GCC
17280   builtin and then its argument prototype would still apply.  */
17281#ifdef __cplusplus
17282extern "C"
17283#endif
17284char dlopen ();
17285int
17286main ()
17287{
17288return dlopen ();
17289  ;
17290  return 0;
17291}
17292_ACEOF
17293rm -f conftest.$ac_objext conftest$ac_exeext
17294if { (ac_try="$ac_link"
17295case "(($ac_try" in
17296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297  *) ac_try_echo=$ac_try;;
17298esac
17299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300  (eval "$ac_link") 2>conftest.er1
17301  ac_status=$?
17302  grep -v '^ *+' conftest.er1 >conftest.err
17303  rm -f conftest.er1
17304  cat conftest.err >&5
17305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306  (exit $ac_status); } &&
17307	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17308  { (case "(($ac_try" in
17309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17310  *) ac_try_echo=$ac_try;;
17311esac
17312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17313  (eval "$ac_try") 2>&5
17314  ac_status=$?
17315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316  (exit $ac_status); }; } &&
17317	 { ac_try='test -s conftest$ac_exeext'
17318  { (case "(($ac_try" in
17319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320  *) ac_try_echo=$ac_try;;
17321esac
17322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323  (eval "$ac_try") 2>&5
17324  ac_status=$?
17325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326  (exit $ac_status); }; }; then
17327  ac_cv_lib_dl_dlopen=yes
17328else
17329  echo "$as_me: failed program was:" >&5
17330sed 's/^/| /' conftest.$ac_ext >&5
17331
17332	ac_cv_lib_dl_dlopen=no
17333fi
17334
17335rm -f core conftest.err conftest.$ac_objext \
17336      conftest$ac_exeext conftest.$ac_ext
17337LIBS=$ac_check_lib_save_LIBS
17338fi
17339{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17340echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17341if test $ac_cv_lib_dl_dlopen = yes; then
17342  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17343else
17344  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17345echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17346if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17347  echo $ECHO_N "(cached) $ECHO_C" >&6
17348else
17349  ac_check_lib_save_LIBS=$LIBS
17350LIBS="-lsvld  $LIBS"
17351cat >conftest.$ac_ext <<_ACEOF
17352/* confdefs.h.  */
17353_ACEOF
17354cat confdefs.h >>conftest.$ac_ext
17355cat >>conftest.$ac_ext <<_ACEOF
17356/* end confdefs.h.  */
17357
17358/* Override any GCC internal prototype to avoid an error.
17359   Use char because int might match the return type of a GCC
17360   builtin and then its argument prototype would still apply.  */
17361#ifdef __cplusplus
17362extern "C"
17363#endif
17364char dlopen ();
17365int
17366main ()
17367{
17368return dlopen ();
17369  ;
17370  return 0;
17371}
17372_ACEOF
17373rm -f conftest.$ac_objext conftest$ac_exeext
17374if { (ac_try="$ac_link"
17375case "(($ac_try" in
17376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17377  *) ac_try_echo=$ac_try;;
17378esac
17379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17380  (eval "$ac_link") 2>conftest.er1
17381  ac_status=$?
17382  grep -v '^ *+' conftest.er1 >conftest.err
17383  rm -f conftest.er1
17384  cat conftest.err >&5
17385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386  (exit $ac_status); } &&
17387	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17388  { (case "(($ac_try" in
17389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17390  *) ac_try_echo=$ac_try;;
17391esac
17392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17393  (eval "$ac_try") 2>&5
17394  ac_status=$?
17395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396  (exit $ac_status); }; } &&
17397	 { ac_try='test -s conftest$ac_exeext'
17398  { (case "(($ac_try" in
17399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17400  *) ac_try_echo=$ac_try;;
17401esac
17402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17403  (eval "$ac_try") 2>&5
17404  ac_status=$?
17405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406  (exit $ac_status); }; }; then
17407  ac_cv_lib_svld_dlopen=yes
17408else
17409  echo "$as_me: failed program was:" >&5
17410sed 's/^/| /' conftest.$ac_ext >&5
17411
17412	ac_cv_lib_svld_dlopen=no
17413fi
17414
17415rm -f core conftest.err conftest.$ac_objext \
17416      conftest$ac_exeext conftest.$ac_ext
17417LIBS=$ac_check_lib_save_LIBS
17418fi
17419{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17420echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17421if test $ac_cv_lib_svld_dlopen = yes; then
17422  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17423else
17424  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17425echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17426if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17427  echo $ECHO_N "(cached) $ECHO_C" >&6
17428else
17429  ac_check_lib_save_LIBS=$LIBS
17430LIBS="-ldld  $LIBS"
17431cat >conftest.$ac_ext <<_ACEOF
17432/* confdefs.h.  */
17433_ACEOF
17434cat confdefs.h >>conftest.$ac_ext
17435cat >>conftest.$ac_ext <<_ACEOF
17436/* end confdefs.h.  */
17437
17438/* Override any GCC internal prototype to avoid an error.
17439   Use char because int might match the return type of a GCC
17440   builtin and then its argument prototype would still apply.  */
17441#ifdef __cplusplus
17442extern "C"
17443#endif
17444char dld_link ();
17445int
17446main ()
17447{
17448return dld_link ();
17449  ;
17450  return 0;
17451}
17452_ACEOF
17453rm -f conftest.$ac_objext conftest$ac_exeext
17454if { (ac_try="$ac_link"
17455case "(($ac_try" in
17456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17457  *) ac_try_echo=$ac_try;;
17458esac
17459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17460  (eval "$ac_link") 2>conftest.er1
17461  ac_status=$?
17462  grep -v '^ *+' conftest.er1 >conftest.err
17463  rm -f conftest.er1
17464  cat conftest.err >&5
17465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466  (exit $ac_status); } &&
17467	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17468  { (case "(($ac_try" in
17469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17470  *) ac_try_echo=$ac_try;;
17471esac
17472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17473  (eval "$ac_try") 2>&5
17474  ac_status=$?
17475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476  (exit $ac_status); }; } &&
17477	 { ac_try='test -s conftest$ac_exeext'
17478  { (case "(($ac_try" in
17479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17480  *) ac_try_echo=$ac_try;;
17481esac
17482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17483  (eval "$ac_try") 2>&5
17484  ac_status=$?
17485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486  (exit $ac_status); }; }; then
17487  ac_cv_lib_dld_dld_link=yes
17488else
17489  echo "$as_me: failed program was:" >&5
17490sed 's/^/| /' conftest.$ac_ext >&5
17491
17492	ac_cv_lib_dld_dld_link=no
17493fi
17494
17495rm -f core conftest.err conftest.$ac_objext \
17496      conftest$ac_exeext conftest.$ac_ext
17497LIBS=$ac_check_lib_save_LIBS
17498fi
17499{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17500echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17501if test $ac_cv_lib_dld_dld_link = yes; then
17502  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17503fi
17504
17505
17506fi
17507
17508
17509fi
17510
17511
17512fi
17513
17514
17515fi
17516
17517
17518fi
17519
17520    ;;
17521  esac
17522
17523  if test "x$lt_cv_dlopen" != xno; then
17524    enable_dlopen=yes
17525  else
17526    enable_dlopen=no
17527  fi
17528
17529  case $lt_cv_dlopen in
17530  dlopen)
17531    save_CPPFLAGS="$CPPFLAGS"
17532    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17533
17534    save_LDFLAGS="$LDFLAGS"
17535    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17536
17537    save_LIBS="$LIBS"
17538    LIBS="$lt_cv_dlopen_libs $LIBS"
17539
17540    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17541echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17542if test "${lt_cv_dlopen_self+set}" = set; then
17543  echo $ECHO_N "(cached) $ECHO_C" >&6
17544else
17545  	  if test "$cross_compiling" = yes; then :
17546  lt_cv_dlopen_self=cross
17547else
17548  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17549  lt_status=$lt_dlunknown
17550  cat > conftest.$ac_ext <<EOF
17551#line 17551 "configure"
17552#include "confdefs.h"
17553
17554#if HAVE_DLFCN_H
17555#include <dlfcn.h>
17556#endif
17557
17558#include <stdio.h>
17559
17560#ifdef RTLD_GLOBAL
17561#  define LT_DLGLOBAL		RTLD_GLOBAL
17562#else
17563#  ifdef DL_GLOBAL
17564#    define LT_DLGLOBAL		DL_GLOBAL
17565#  else
17566#    define LT_DLGLOBAL		0
17567#  endif
17568#endif
17569
17570/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17571   find out it does not work in some platform. */
17572#ifndef LT_DLLAZY_OR_NOW
17573#  ifdef RTLD_LAZY
17574#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17575#  else
17576#    ifdef DL_LAZY
17577#      define LT_DLLAZY_OR_NOW		DL_LAZY
17578#    else
17579#      ifdef RTLD_NOW
17580#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17581#      else
17582#        ifdef DL_NOW
17583#          define LT_DLLAZY_OR_NOW	DL_NOW
17584#        else
17585#          define LT_DLLAZY_OR_NOW	0
17586#        endif
17587#      endif
17588#    endif
17589#  endif
17590#endif
17591
17592#ifdef __cplusplus
17593extern "C" void exit (int);
17594#endif
17595
17596void fnord() { int i=42;}
17597int main ()
17598{
17599  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17600  int status = $lt_dlunknown;
17601
17602  if (self)
17603    {
17604      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17605      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17606      /* dlclose (self); */
17607    }
17608  else
17609    puts (dlerror ());
17610
17611    exit (status);
17612}
17613EOF
17614  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17615  (eval $ac_link) 2>&5
17616  ac_status=$?
17617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17619    (./conftest; exit; ) >&5 2>/dev/null
17620    lt_status=$?
17621    case x$lt_status in
17622      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17623      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17624      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17625    esac
17626  else :
17627    # compilation failed
17628    lt_cv_dlopen_self=no
17629  fi
17630fi
17631rm -fr conftest*
17632
17633
17634fi
17635{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17636echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17637
17638    if test "x$lt_cv_dlopen_self" = xyes; then
17639      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17640      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17641echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17642if test "${lt_cv_dlopen_self_static+set}" = set; then
17643  echo $ECHO_N "(cached) $ECHO_C" >&6
17644else
17645  	  if test "$cross_compiling" = yes; then :
17646  lt_cv_dlopen_self_static=cross
17647else
17648  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17649  lt_status=$lt_dlunknown
17650  cat > conftest.$ac_ext <<EOF
17651#line 17651 "configure"
17652#include "confdefs.h"
17653
17654#if HAVE_DLFCN_H
17655#include <dlfcn.h>
17656#endif
17657
17658#include <stdio.h>
17659
17660#ifdef RTLD_GLOBAL
17661#  define LT_DLGLOBAL		RTLD_GLOBAL
17662#else
17663#  ifdef DL_GLOBAL
17664#    define LT_DLGLOBAL		DL_GLOBAL
17665#  else
17666#    define LT_DLGLOBAL		0
17667#  endif
17668#endif
17669
17670/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17671   find out it does not work in some platform. */
17672#ifndef LT_DLLAZY_OR_NOW
17673#  ifdef RTLD_LAZY
17674#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17675#  else
17676#    ifdef DL_LAZY
17677#      define LT_DLLAZY_OR_NOW		DL_LAZY
17678#    else
17679#      ifdef RTLD_NOW
17680#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17681#      else
17682#        ifdef DL_NOW
17683#          define LT_DLLAZY_OR_NOW	DL_NOW
17684#        else
17685#          define LT_DLLAZY_OR_NOW	0
17686#        endif
17687#      endif
17688#    endif
17689#  endif
17690#endif
17691
17692#ifdef __cplusplus
17693extern "C" void exit (int);
17694#endif
17695
17696void fnord() { int i=42;}
17697int main ()
17698{
17699  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17700  int status = $lt_dlunknown;
17701
17702  if (self)
17703    {
17704      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17705      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17706      /* dlclose (self); */
17707    }
17708  else
17709    puts (dlerror ());
17710
17711    exit (status);
17712}
17713EOF
17714  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17715  (eval $ac_link) 2>&5
17716  ac_status=$?
17717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17719    (./conftest; exit; ) >&5 2>/dev/null
17720    lt_status=$?
17721    case x$lt_status in
17722      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17723      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17724      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17725    esac
17726  else :
17727    # compilation failed
17728    lt_cv_dlopen_self_static=no
17729  fi
17730fi
17731rm -fr conftest*
17732
17733
17734fi
17735{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17736echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17737    fi
17738
17739    CPPFLAGS="$save_CPPFLAGS"
17740    LDFLAGS="$save_LDFLAGS"
17741    LIBS="$save_LIBS"
17742    ;;
17743  esac
17744
17745  case $lt_cv_dlopen_self in
17746  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17747  *) enable_dlopen_self=unknown ;;
17748  esac
17749
17750  case $lt_cv_dlopen_self_static in
17751  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17752  *) enable_dlopen_self_static=unknown ;;
17753  esac
17754fi
17755
17756
17757# Report which library types will actually be built
17758{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17759echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17760{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17761echo "${ECHO_T}$can_build_shared" >&6; }
17762
17763{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17764echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17765test "$can_build_shared" = "no" && enable_shared=no
17766
17767# On AIX, shared libraries and static libraries use the same namespace, and
17768# are all built from PIC.
17769case $host_os in
17770aix3*)
17771  test "$enable_shared" = yes && enable_static=no
17772  if test -n "$RANLIB"; then
17773    archive_cmds="$archive_cmds~\$RANLIB \$lib"
17774    postinstall_cmds='$RANLIB $lib'
17775  fi
17776  ;;
17777
17778aix4* | aix5*)
17779  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17780    test "$enable_shared" = yes && enable_static=no
17781  fi
17782    ;;
17783esac
17784{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17785echo "${ECHO_T}$enable_shared" >&6; }
17786
17787{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17788echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17789# Make sure either enable_shared or enable_static is yes.
17790test "$enable_shared" = yes || enable_static=yes
17791{ echo "$as_me:$LINENO: result: $enable_static" >&5
17792echo "${ECHO_T}$enable_static" >&6; }
17793
17794# The else clause should only fire when bootstrapping the
17795# libtool distribution, otherwise you forgot to ship ltmain.sh
17796# with your package, and you will get complaints that there are
17797# no rules to generate ltmain.sh.
17798if test -f "$ltmain"; then
17799  # See if we are running on zsh, and set the options which allow our commands through
17800  # without removal of \ escapes.
17801  if test -n "${ZSH_VERSION+set}" ; then
17802    setopt NO_GLOB_SUBST
17803  fi
17804  # Now quote all the things that may contain metacharacters while being
17805  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17806  # variables and quote the copies for generation of the libtool script.
17807  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17808    SED SHELL STRIP \
17809    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17810    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17811    deplibs_check_method reload_flag reload_cmds need_locks \
17812    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17813    lt_cv_sys_global_symbol_to_c_name_address \
17814    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17815    old_postinstall_cmds old_postuninstall_cmds \
17816    compiler \
17817    CC \
17818    LD \
17819    lt_prog_compiler_wl \
17820    lt_prog_compiler_pic \
17821    lt_prog_compiler_static \
17822    lt_prog_compiler_no_builtin_flag \
17823    export_dynamic_flag_spec \
17824    thread_safe_flag_spec \
17825    whole_archive_flag_spec \
17826    enable_shared_with_static_runtimes \
17827    old_archive_cmds \
17828    old_archive_from_new_cmds \
17829    predep_objects \
17830    postdep_objects \
17831    predeps \
17832    postdeps \
17833    compiler_lib_search_path \
17834    archive_cmds \
17835    archive_expsym_cmds \
17836    postinstall_cmds \
17837    postuninstall_cmds \
17838    old_archive_from_expsyms_cmds \
17839    allow_undefined_flag \
17840    no_undefined_flag \
17841    export_symbols_cmds \
17842    hardcode_libdir_flag_spec \
17843    hardcode_libdir_flag_spec_ld \
17844    hardcode_libdir_separator \
17845    hardcode_automatic \
17846    module_cmds \
17847    module_expsym_cmds \
17848    lt_cv_prog_compiler_c_o \
17849    exclude_expsyms \
17850    include_expsyms; do
17851
17852    case $var in
17853    old_archive_cmds | \
17854    old_archive_from_new_cmds | \
17855    archive_cmds | \
17856    archive_expsym_cmds | \
17857    module_cmds | \
17858    module_expsym_cmds | \
17859    old_archive_from_expsyms_cmds | \
17860    export_symbols_cmds | \
17861    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17862    postinstall_cmds | postuninstall_cmds | \
17863    old_postinstall_cmds | old_postuninstall_cmds | \
17864    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17865      # Double-quote double-evaled strings.
17866      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17867      ;;
17868    *)
17869      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17870      ;;
17871    esac
17872  done
17873
17874  case $lt_echo in
17875  *'\$0 --fallback-echo"')
17876    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17877    ;;
17878  esac
17879
17880cfgfile="${ofile}T"
17881  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17882  $rm -f "$cfgfile"
17883  { echo "$as_me:$LINENO: creating $ofile" >&5
17884echo "$as_me: creating $ofile" >&6;}
17885
17886  cat <<__EOF__ >> "$cfgfile"
17887#! $SHELL
17888
17889# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17890# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17891# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17892#
17893# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17894# Free Software Foundation, Inc.
17895#
17896# This file is part of GNU Libtool:
17897# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17898#
17899# This program is free software; you can redistribute it and/or modify
17900# it under the terms of the GNU General Public License as published by
17901# the Free Software Foundation; either version 2 of the License, or
17902# (at your option) any later version.
17903#
17904# This program is distributed in the hope that it will be useful, but
17905# WITHOUT ANY WARRANTY; without even the implied warranty of
17906# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17907# General Public License for more details.
17908#
17909# You should have received a copy of the GNU General Public License
17910# along with this program; if not, write to the Free Software
17911# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17912#
17913# As a special exception to the GNU General Public License, if you
17914# distribute this file as part of a program that contains a
17915# configuration script generated by Autoconf, you may include it under
17916# the same distribution terms that you use for the rest of that program.
17917
17918# A sed program that does not truncate output.
17919SED=$lt_SED
17920
17921# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17922Xsed="$SED -e 1s/^X//"
17923
17924# The HP-UX ksh and POSIX shell print the target directory to stdout
17925# if CDPATH is set.
17926(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17927
17928# The names of the tagged configurations supported by this script.
17929available_tags=
17930
17931# ### BEGIN LIBTOOL CONFIG
17932
17933# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17934
17935# Shell to use when invoking shell scripts.
17936SHELL=$lt_SHELL
17937
17938# Whether or not to build shared libraries.
17939build_libtool_libs=$enable_shared
17940
17941# Whether or not to build static libraries.
17942build_old_libs=$enable_static
17943
17944# Whether or not to add -lc for building shared libraries.
17945build_libtool_need_lc=$archive_cmds_need_lc
17946
17947# Whether or not to disallow shared libs when runtime libs are static
17948allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17949
17950# Whether or not to optimize for fast installation.
17951fast_install=$enable_fast_install
17952
17953# The host system.
17954host_alias=$host_alias
17955host=$host
17956host_os=$host_os
17957
17958# The build system.
17959build_alias=$build_alias
17960build=$build
17961build_os=$build_os
17962
17963# An echo program that does not interpret backslashes.
17964echo=$lt_echo
17965
17966# The archiver.
17967AR=$lt_AR
17968AR_FLAGS=$lt_AR_FLAGS
17969
17970# A C compiler.
17971LTCC=$lt_LTCC
17972
17973# LTCC compiler flags.
17974LTCFLAGS=$lt_LTCFLAGS
17975
17976# A language-specific compiler.
17977CC=$lt_compiler
17978
17979# Is the compiler the GNU C compiler?
17980with_gcc=$GCC
17981
17982# An ERE matcher.
17983EGREP=$lt_EGREP
17984
17985# The linker used to build libraries.
17986LD=$lt_LD
17987
17988# Whether we need hard or soft links.
17989LN_S=$lt_LN_S
17990
17991# A BSD-compatible nm program.
17992NM=$lt_NM
17993
17994# A symbol stripping program
17995STRIP=$lt_STRIP
17996
17997# Used to examine libraries when file_magic_cmd begins "file"
17998MAGIC_CMD=$MAGIC_CMD
17999
18000# Used on cygwin: DLL creation program.
18001DLLTOOL="$DLLTOOL"
18002
18003# Used on cygwin: object dumper.
18004OBJDUMP="$OBJDUMP"
18005
18006# Used on cygwin: assembler.
18007AS="$AS"
18008
18009# The name of the directory that contains temporary libtool files.
18010objdir=$objdir
18011
18012# How to create reloadable object files.
18013reload_flag=$lt_reload_flag
18014reload_cmds=$lt_reload_cmds
18015
18016# How to pass a linker flag through the compiler.
18017wl=$lt_lt_prog_compiler_wl
18018
18019# Object file suffix (normally "o").
18020objext="$ac_objext"
18021
18022# Old archive suffix (normally "a").
18023libext="$libext"
18024
18025# Shared library suffix (normally ".so").
18026shrext_cmds='$shrext_cmds'
18027
18028# Executable file suffix (normally "").
18029exeext="$exeext"
18030
18031# Additional compiler flags for building library objects.
18032pic_flag=$lt_lt_prog_compiler_pic
18033pic_mode=$pic_mode
18034
18035# What is the maximum length of a command?
18036max_cmd_len=$lt_cv_sys_max_cmd_len
18037
18038# Does compiler simultaneously support -c and -o options?
18039compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18040
18041# Must we lock files when doing compilation?
18042need_locks=$lt_need_locks
18043
18044# Do we need the lib prefix for modules?
18045need_lib_prefix=$need_lib_prefix
18046
18047# Do we need a version for libraries?
18048need_version=$need_version
18049
18050# Whether dlopen is supported.
18051dlopen_support=$enable_dlopen
18052
18053# Whether dlopen of programs is supported.
18054dlopen_self=$enable_dlopen_self
18055
18056# Whether dlopen of statically linked programs is supported.
18057dlopen_self_static=$enable_dlopen_self_static
18058
18059# Compiler flag to prevent dynamic linking.
18060link_static_flag=$lt_lt_prog_compiler_static
18061
18062# Compiler flag to turn off builtin functions.
18063no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18064
18065# Compiler flag to allow reflexive dlopens.
18066export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18067
18068# Compiler flag to generate shared objects directly from archives.
18069whole_archive_flag_spec=$lt_whole_archive_flag_spec
18070
18071# Compiler flag to generate thread-safe objects.
18072thread_safe_flag_spec=$lt_thread_safe_flag_spec
18073
18074# Library versioning type.
18075version_type=$version_type
18076
18077# Format of library name prefix.
18078libname_spec=$lt_libname_spec
18079
18080# List of archive names.  First name is the real one, the rest are links.
18081# The last name is the one that the linker finds with -lNAME.
18082library_names_spec=$lt_library_names_spec
18083
18084# The coded name of the library, if different from the real name.
18085soname_spec=$lt_soname_spec
18086
18087# Commands used to build and install an old-style archive.
18088RANLIB=$lt_RANLIB
18089old_archive_cmds=$lt_old_archive_cmds
18090old_postinstall_cmds=$lt_old_postinstall_cmds
18091old_postuninstall_cmds=$lt_old_postuninstall_cmds
18092
18093# Create an old-style archive from a shared archive.
18094old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18095
18096# Create a temporary old-style archive to link instead of a shared archive.
18097old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18098
18099# Commands used to build and install a shared archive.
18100archive_cmds=$lt_archive_cmds
18101archive_expsym_cmds=$lt_archive_expsym_cmds
18102postinstall_cmds=$lt_postinstall_cmds
18103postuninstall_cmds=$lt_postuninstall_cmds
18104
18105# Commands used to build a loadable module (assumed same as above if empty)
18106module_cmds=$lt_module_cmds
18107module_expsym_cmds=$lt_module_expsym_cmds
18108
18109# Commands to strip libraries.
18110old_striplib=$lt_old_striplib
18111striplib=$lt_striplib
18112
18113# Dependencies to place before the objects being linked to create a
18114# shared library.
18115predep_objects=$lt_predep_objects
18116
18117# Dependencies to place after the objects being linked to create a
18118# shared library.
18119postdep_objects=$lt_postdep_objects
18120
18121# Dependencies to place before the objects being linked to create a
18122# shared library.
18123predeps=$lt_predeps
18124
18125# Dependencies to place after the objects being linked to create a
18126# shared library.
18127postdeps=$lt_postdeps
18128
18129# The library search path used internally by the compiler when linking
18130# a shared library.
18131compiler_lib_search_path=$lt_compiler_lib_search_path
18132
18133# Method to check whether dependent libraries are shared objects.
18134deplibs_check_method=$lt_deplibs_check_method
18135
18136# Command to use when deplibs_check_method == file_magic.
18137file_magic_cmd=$lt_file_magic_cmd
18138
18139# Flag that allows shared libraries with undefined symbols to be built.
18140allow_undefined_flag=$lt_allow_undefined_flag
18141
18142# Flag that forces no undefined symbols.
18143no_undefined_flag=$lt_no_undefined_flag
18144
18145# Commands used to finish a libtool library installation in a directory.
18146finish_cmds=$lt_finish_cmds
18147
18148# Same as above, but a single script fragment to be evaled but not shown.
18149finish_eval=$lt_finish_eval
18150
18151# Take the output of nm and produce a listing of raw symbols and C names.
18152global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18153
18154# Transform the output of nm in a proper C declaration
18155global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18156
18157# Transform the output of nm in a C name address pair
18158global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18159
18160# This is the shared library runtime path variable.
18161runpath_var=$runpath_var
18162
18163# This is the shared library path variable.
18164shlibpath_var=$shlibpath_var
18165
18166# Is shlibpath searched before the hard-coded library search path?
18167shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18168
18169# How to hardcode a shared library path into an executable.
18170hardcode_action=$hardcode_action
18171
18172# Whether we should hardcode library paths into libraries.
18173hardcode_into_libs=$hardcode_into_libs
18174
18175# Flag to hardcode \$libdir into a binary during linking.
18176# This must work even if \$libdir does not exist.
18177hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18178
18179# If ld is used when linking, flag to hardcode \$libdir into
18180# a binary during linking. This must work even if \$libdir does
18181# not exist.
18182hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18183
18184# Whether we need a single -rpath flag with a separated argument.
18185hardcode_libdir_separator=$lt_hardcode_libdir_separator
18186
18187# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18188# resulting binary.
18189hardcode_direct=$hardcode_direct
18190
18191# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18192# resulting binary.
18193hardcode_minus_L=$hardcode_minus_L
18194
18195# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18196# the resulting binary.
18197hardcode_shlibpath_var=$hardcode_shlibpath_var
18198
18199# Set to yes if building a shared library automatically hardcodes DIR into the library
18200# and all subsequent libraries and executables linked against it.
18201hardcode_automatic=$hardcode_automatic
18202
18203# Variables whose values should be saved in libtool wrapper scripts and
18204# restored at relink time.
18205variables_saved_for_relink="$variables_saved_for_relink"
18206
18207# Whether libtool must link a program against all its dependency libraries.
18208link_all_deplibs=$link_all_deplibs
18209
18210# Compile-time system search path for libraries
18211sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18212
18213# Run-time system search path for libraries
18214sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18215
18216# Fix the shell variable \$srcfile for the compiler.
18217fix_srcfile_path="$fix_srcfile_path"
18218
18219# Set to yes if exported symbols are required.
18220always_export_symbols=$always_export_symbols
18221
18222# The commands to list exported symbols.
18223export_symbols_cmds=$lt_export_symbols_cmds
18224
18225# The commands to extract the exported symbol list from a shared archive.
18226extract_expsyms_cmds=$lt_extract_expsyms_cmds
18227
18228# Symbols that should not be listed in the preloaded symbols.
18229exclude_expsyms=$lt_exclude_expsyms
18230
18231# Symbols that must always be exported.
18232include_expsyms=$lt_include_expsyms
18233
18234# ### END LIBTOOL CONFIG
18235
18236__EOF__
18237
18238
18239  case $host_os in
18240  aix3*)
18241    cat <<\EOF >> "$cfgfile"
18242
18243# AIX sometimes has problems with the GCC collect2 program.  For some
18244# reason, if we set the COLLECT_NAMES environment variable, the problems
18245# vanish in a puff of smoke.
18246if test "X${COLLECT_NAMES+set}" != Xset; then
18247  COLLECT_NAMES=
18248  export COLLECT_NAMES
18249fi
18250EOF
18251    ;;
18252  esac
18253
18254  # We use sed instead of cat because bash on DJGPP gets confused if
18255  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18256  # text mode, it properly converts lines to CR/LF.  This bash problem
18257  # is reportedly fixed, but why not run on old versions too?
18258  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18259
18260  mv -f "$cfgfile" "$ofile" || \
18261    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18262  chmod +x "$ofile"
18263
18264else
18265  # If there is no Makefile yet, we rely on a make rule to execute
18266  # `config.status --recheck' to rerun these tests and create the
18267  # libtool script then.
18268  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18269  if test -f "$ltmain_in"; then
18270    test -f Makefile && make "$ltmain"
18271  fi
18272fi
18273
18274
18275ac_ext=c
18276ac_cpp='$CPP $CPPFLAGS'
18277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18279ac_compiler_gnu=$ac_cv_c_compiler_gnu
18280
18281CC="$lt_save_CC"
18282
18283
18284# Check whether --with-tags was given.
18285if test "${with_tags+set}" = set; then
18286  withval=$with_tags; tagnames="$withval"
18287fi
18288
18289
18290if test -f "$ltmain" && test -n "$tagnames"; then
18291  if test ! -f "${ofile}"; then
18292    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18293echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18294  fi
18295
18296  if test -z "$LTCC"; then
18297    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18298    if test -z "$LTCC"; then
18299      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18300echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18301    else
18302      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18303echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18304    fi
18305  fi
18306  if test -z "$LTCFLAGS"; then
18307    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18308  fi
18309
18310  # Extract list of available tagged configurations in $ofile.
18311  # Note that this assumes the entire list is on one line.
18312  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18313
18314  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18315  for tagname in $tagnames; do
18316    IFS="$lt_save_ifs"
18317    # Check whether tagname contains only valid characters
18318    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18319    "") ;;
18320    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18321echo "$as_me: error: invalid tag name: $tagname" >&2;}
18322   { (exit 1); exit 1; }; }
18323	;;
18324    esac
18325
18326    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18327    then
18328      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18329echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18330   { (exit 1); exit 1; }; }
18331    fi
18332
18333    # Update the list of available tags.
18334    if test -n "$tagname"; then
18335      echo appending configuration tag \"$tagname\" to $ofile
18336
18337      case $tagname in
18338      CXX)
18339	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18340	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18341	    (test "X$CXX" != "Xg++"))) ; then
18342	  ac_ext=cpp
18343ac_cpp='$CXXCPP $CPPFLAGS'
18344ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18345ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18346ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18347
18348
18349
18350
18351archive_cmds_need_lc_CXX=no
18352allow_undefined_flag_CXX=
18353always_export_symbols_CXX=no
18354archive_expsym_cmds_CXX=
18355export_dynamic_flag_spec_CXX=
18356hardcode_direct_CXX=no
18357hardcode_libdir_flag_spec_CXX=
18358hardcode_libdir_flag_spec_ld_CXX=
18359hardcode_libdir_separator_CXX=
18360hardcode_minus_L_CXX=no
18361hardcode_shlibpath_var_CXX=unsupported
18362hardcode_automatic_CXX=no
18363module_cmds_CXX=
18364module_expsym_cmds_CXX=
18365link_all_deplibs_CXX=unknown
18366old_archive_cmds_CXX=$old_archive_cmds
18367no_undefined_flag_CXX=
18368whole_archive_flag_spec_CXX=
18369enable_shared_with_static_runtimes_CXX=no
18370
18371# Dependencies to place before and after the object being linked:
18372predep_objects_CXX=
18373postdep_objects_CXX=
18374predeps_CXX=
18375postdeps_CXX=
18376compiler_lib_search_path_CXX=
18377
18378# Source file extension for C++ test sources.
18379ac_ext=cpp
18380
18381# Object file extension for compiled C++ test sources.
18382objext=o
18383objext_CXX=$objext
18384
18385# Code to be used in simple compile tests
18386lt_simple_compile_test_code="int some_variable = 0;\n"
18387
18388# Code to be used in simple link tests
18389lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18390
18391# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18392
18393# If no C compiler was specified, use CC.
18394LTCC=${LTCC-"$CC"}
18395
18396# If no C compiler flags were specified, use CFLAGS.
18397LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18398
18399# Allow CC to be a program name with arguments.
18400compiler=$CC
18401
18402
18403# save warnings/boilerplate of simple test code
18404ac_outfile=conftest.$ac_objext
18405printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18406eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18407_lt_compiler_boilerplate=`cat conftest.err`
18408$rm conftest*
18409
18410ac_outfile=conftest.$ac_objext
18411printf "$lt_simple_link_test_code" >conftest.$ac_ext
18412eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18413_lt_linker_boilerplate=`cat conftest.err`
18414$rm conftest*
18415
18416
18417# Allow CC to be a program name with arguments.
18418lt_save_CC=$CC
18419lt_save_LD=$LD
18420lt_save_GCC=$GCC
18421GCC=$GXX
18422lt_save_with_gnu_ld=$with_gnu_ld
18423lt_save_path_LD=$lt_cv_path_LD
18424if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18425  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18426else
18427  $as_unset lt_cv_prog_gnu_ld
18428fi
18429if test -n "${lt_cv_path_LDCXX+set}"; then
18430  lt_cv_path_LD=$lt_cv_path_LDCXX
18431else
18432  $as_unset lt_cv_path_LD
18433fi
18434test -z "${LDCXX+set}" || LD=$LDCXX
18435CC=${CXX-"c++"}
18436compiler=$CC
18437compiler_CXX=$CC
18438for cc_temp in $compiler""; do
18439  case $cc_temp in
18440    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18441    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18442    \-*) ;;
18443    *) break;;
18444  esac
18445done
18446cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18447
18448
18449# We don't want -fno-exception wen compiling C++ code, so set the
18450# no_builtin_flag separately
18451if test "$GXX" = yes; then
18452  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18453else
18454  lt_prog_compiler_no_builtin_flag_CXX=
18455fi
18456
18457if test "$GXX" = yes; then
18458  # Set up default GNU C++ configuration
18459
18460
18461# Check whether --with-gnu-ld was given.
18462if test "${with_gnu_ld+set}" = set; then
18463  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18464else
18465  with_gnu_ld=no
18466fi
18467
18468ac_prog=ld
18469if test "$GCC" = yes; then
18470  # Check if gcc -print-prog-name=ld gives a path.
18471  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18472echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18473  case $host in
18474  *-*-mingw*)
18475    # gcc leaves a trailing carriage return which upsets mingw
18476    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18477  *)
18478    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18479  esac
18480  case $ac_prog in
18481    # Accept absolute paths.
18482    [\\/]* | ?:[\\/]*)
18483      re_direlt='/[^/][^/]*/\.\./'
18484      # Canonicalize the pathname of ld
18485      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18486      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18487	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18488      done
18489      test -z "$LD" && LD="$ac_prog"
18490      ;;
18491  "")
18492    # If it fails, then pretend we aren't using GCC.
18493    ac_prog=ld
18494    ;;
18495  *)
18496    # If it is relative, then search for the first ld in PATH.
18497    with_gnu_ld=unknown
18498    ;;
18499  esac
18500elif test "$with_gnu_ld" = yes; then
18501  { echo "$as_me:$LINENO: checking for GNU ld" >&5
18502echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18503else
18504  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18505echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18506fi
18507if test "${lt_cv_path_LD+set}" = set; then
18508  echo $ECHO_N "(cached) $ECHO_C" >&6
18509else
18510  if test -z "$LD"; then
18511  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18512  for ac_dir in $PATH; do
18513    IFS="$lt_save_ifs"
18514    test -z "$ac_dir" && ac_dir=.
18515    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18516      lt_cv_path_LD="$ac_dir/$ac_prog"
18517      # Check to see if the program is GNU ld.  I'd rather use --version,
18518      # but apparently some variants of GNU ld only accept -v.
18519      # Break only if it was the GNU/non-GNU ld that we prefer.
18520      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18521      *GNU* | *'with BFD'*)
18522	test "$with_gnu_ld" != no && break
18523	;;
18524      *)
18525	test "$with_gnu_ld" != yes && break
18526	;;
18527      esac
18528    fi
18529  done
18530  IFS="$lt_save_ifs"
18531else
18532  lt_cv_path_LD="$LD" # Let the user override the test with a path.
18533fi
18534fi
18535
18536LD="$lt_cv_path_LD"
18537if test -n "$LD"; then
18538  { echo "$as_me:$LINENO: result: $LD" >&5
18539echo "${ECHO_T}$LD" >&6; }
18540else
18541  { echo "$as_me:$LINENO: result: no" >&5
18542echo "${ECHO_T}no" >&6; }
18543fi
18544test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18545echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18546   { (exit 1); exit 1; }; }
18547{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18548echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18549if test "${lt_cv_prog_gnu_ld+set}" = set; then
18550  echo $ECHO_N "(cached) $ECHO_C" >&6
18551else
18552  # I'd rather use --version here, but apparently some GNU lds only accept -v.
18553case `$LD -v 2>&1 </dev/null` in
18554*GNU* | *'with BFD'*)
18555  lt_cv_prog_gnu_ld=yes
18556  ;;
18557*)
18558  lt_cv_prog_gnu_ld=no
18559  ;;
18560esac
18561fi
18562{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18563echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18564with_gnu_ld=$lt_cv_prog_gnu_ld
18565
18566
18567
18568  # Check if GNU C++ uses GNU ld as the underlying linker, since the
18569  # archiving commands below assume that GNU ld is being used.
18570  if test "$with_gnu_ld" = yes; then
18571    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18572    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'
18573
18574    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18575    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18576
18577    # If archive_cmds runs LD, not CC, wlarc should be empty
18578    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18579    #     investigate it a little bit more. (MM)
18580    wlarc='${wl}'
18581
18582    # ancient GNU ld didn't support --whole-archive et. al.
18583    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18584	grep 'no-whole-archive' > /dev/null; then
18585      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18586    else
18587      whole_archive_flag_spec_CXX=
18588    fi
18589  else
18590    with_gnu_ld=no
18591    wlarc=
18592
18593    # A generic and very simple default shared library creation
18594    # command for GNU C++ for the case where it uses the native
18595    # linker, instead of GNU ld.  If possible, this setting should
18596    # overridden to take advantage of the native linker features on
18597    # the platform it is being used on.
18598    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18599  fi
18600
18601  # Commands to make compiler produce verbose output that lists
18602  # what "hidden" libraries, object files and flags are used when
18603  # linking a shared library.
18604  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18605
18606else
18607  GXX=no
18608  with_gnu_ld=no
18609  wlarc=
18610fi
18611
18612# PORTME: fill in a description of your system's C++ link characteristics
18613{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18614echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18615ld_shlibs_CXX=yes
18616case $host_os in
18617  aix3*)
18618    # FIXME: insert proper C++ library support
18619    ld_shlibs_CXX=no
18620    ;;
18621  aix4* | aix5*)
18622    if test "$host_cpu" = ia64; then
18623      # On IA64, the linker does run time linking by default, so we don't
18624      # have to do anything special.
18625      aix_use_runtimelinking=no
18626      exp_sym_flag='-Bexport'
18627      no_entry_flag=""
18628    else
18629      aix_use_runtimelinking=no
18630
18631      # Test if we are trying to use run time linking or normal
18632      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18633      # need to do runtime linking.
18634      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18635	for ld_flag in $LDFLAGS; do
18636	  case $ld_flag in
18637	  *-brtl*)
18638	    aix_use_runtimelinking=yes
18639	    break
18640	    ;;
18641	  esac
18642	done
18643	;;
18644      esac
18645
18646      exp_sym_flag='-bexport'
18647      no_entry_flag='-bnoentry'
18648    fi
18649
18650    # When large executables or shared objects are built, AIX ld can
18651    # have problems creating the table of contents.  If linking a library
18652    # or program results in "error TOC overflow" add -mminimal-toc to
18653    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18654    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18655
18656    archive_cmds_CXX=''
18657    hardcode_direct_CXX=yes
18658    hardcode_libdir_separator_CXX=':'
18659    link_all_deplibs_CXX=yes
18660
18661    if test "$GXX" = yes; then
18662      case $host_os in aix4.[012]|aix4.[012].*)
18663      # We only want to do this on AIX 4.2 and lower, the check
18664      # below for broken collect2 doesn't work under 4.3+
18665	collect2name=`${CC} -print-prog-name=collect2`
18666	if test -f "$collect2name" && \
18667	   strings "$collect2name" | grep resolve_lib_name >/dev/null
18668	then
18669	  # We have reworked collect2
18670	  hardcode_direct_CXX=yes
18671	else
18672	  # We have old collect2
18673	  hardcode_direct_CXX=unsupported
18674	  # It fails to find uninstalled libraries when the uninstalled
18675	  # path is not listed in the libpath.  Setting hardcode_minus_L
18676	  # to unsupported forces relinking
18677	  hardcode_minus_L_CXX=yes
18678	  hardcode_libdir_flag_spec_CXX='-L$libdir'
18679	  hardcode_libdir_separator_CXX=
18680	fi
18681	;;
18682      esac
18683      shared_flag='-shared'
18684      if test "$aix_use_runtimelinking" = yes; then
18685	shared_flag="$shared_flag "'${wl}-G'
18686      fi
18687    else
18688      # not using gcc
18689      if test "$host_cpu" = ia64; then
18690	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18691	# chokes on -Wl,-G. The following line is correct:
18692	shared_flag='-G'
18693      else
18694	if test "$aix_use_runtimelinking" = yes; then
18695	  shared_flag='${wl}-G'
18696	else
18697	  shared_flag='${wl}-bM:SRE'
18698	fi
18699      fi
18700    fi
18701
18702    # It seems that -bexpall does not export symbols beginning with
18703    # underscore (_), so it is better to generate a list of symbols to export.
18704    always_export_symbols_CXX=yes
18705    if test "$aix_use_runtimelinking" = yes; then
18706      # Warning - without using the other runtime loading flags (-brtl),
18707      # -berok will link without error, but may produce a broken library.
18708      allow_undefined_flag_CXX='-berok'
18709      # Determine the default libpath from the value encoded in an empty executable.
18710      cat >conftest.$ac_ext <<_ACEOF
18711/* confdefs.h.  */
18712_ACEOF
18713cat confdefs.h >>conftest.$ac_ext
18714cat >>conftest.$ac_ext <<_ACEOF
18715/* end confdefs.h.  */
18716
18717int
18718main ()
18719{
18720
18721  ;
18722  return 0;
18723}
18724_ACEOF
18725rm -f conftest.$ac_objext conftest$ac_exeext
18726if { (ac_try="$ac_link"
18727case "(($ac_try" in
18728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729  *) ac_try_echo=$ac_try;;
18730esac
18731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18732  (eval "$ac_link") 2>conftest.er1
18733  ac_status=$?
18734  grep -v '^ *+' conftest.er1 >conftest.err
18735  rm -f conftest.er1
18736  cat conftest.err >&5
18737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738  (exit $ac_status); } &&
18739	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18740  { (case "(($ac_try" in
18741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18742  *) ac_try_echo=$ac_try;;
18743esac
18744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18745  (eval "$ac_try") 2>&5
18746  ac_status=$?
18747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748  (exit $ac_status); }; } &&
18749	 { ac_try='test -s conftest$ac_exeext'
18750  { (case "(($ac_try" in
18751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752  *) ac_try_echo=$ac_try;;
18753esac
18754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755  (eval "$ac_try") 2>&5
18756  ac_status=$?
18757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758  (exit $ac_status); }; }; then
18759
18760aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18761}'`
18762# Check for a 64-bit object if we didn't find anything.
18763if 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; }
18764}'`; fi
18765else
18766  echo "$as_me: failed program was:" >&5
18767sed 's/^/| /' conftest.$ac_ext >&5
18768
18769
18770fi
18771
18772rm -f core conftest.err conftest.$ac_objext \
18773      conftest$ac_exeext conftest.$ac_ext
18774if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18775
18776      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18777
18778      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"
18779     else
18780      if test "$host_cpu" = ia64; then
18781	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18782	allow_undefined_flag_CXX="-z nodefs"
18783	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"
18784      else
18785	# Determine the default libpath from the value encoded in an empty executable.
18786	cat >conftest.$ac_ext <<_ACEOF
18787/* confdefs.h.  */
18788_ACEOF
18789cat confdefs.h >>conftest.$ac_ext
18790cat >>conftest.$ac_ext <<_ACEOF
18791/* end confdefs.h.  */
18792
18793int
18794main ()
18795{
18796
18797  ;
18798  return 0;
18799}
18800_ACEOF
18801rm -f conftest.$ac_objext conftest$ac_exeext
18802if { (ac_try="$ac_link"
18803case "(($ac_try" in
18804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805  *) ac_try_echo=$ac_try;;
18806esac
18807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18808  (eval "$ac_link") 2>conftest.er1
18809  ac_status=$?
18810  grep -v '^ *+' conftest.er1 >conftest.err
18811  rm -f conftest.er1
18812  cat conftest.err >&5
18813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814  (exit $ac_status); } &&
18815	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18816  { (case "(($ac_try" in
18817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18818  *) ac_try_echo=$ac_try;;
18819esac
18820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18821  (eval "$ac_try") 2>&5
18822  ac_status=$?
18823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824  (exit $ac_status); }; } &&
18825	 { ac_try='test -s conftest$ac_exeext'
18826  { (case "(($ac_try" in
18827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18828  *) ac_try_echo=$ac_try;;
18829esac
18830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18831  (eval "$ac_try") 2>&5
18832  ac_status=$?
18833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834  (exit $ac_status); }; }; then
18835
18836aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18837}'`
18838# Check for a 64-bit object if we didn't find anything.
18839if 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; }
18840}'`; fi
18841else
18842  echo "$as_me: failed program was:" >&5
18843sed 's/^/| /' conftest.$ac_ext >&5
18844
18845
18846fi
18847
18848rm -f core conftest.err conftest.$ac_objext \
18849      conftest$ac_exeext conftest.$ac_ext
18850if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18851
18852	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18853	# Warning - without using the other run time loading flags,
18854	# -berok will link without error, but may produce a broken library.
18855	no_undefined_flag_CXX=' ${wl}-bernotok'
18856	allow_undefined_flag_CXX=' ${wl}-berok'
18857	# Exported symbols can be pulled into shared objects from archives
18858	whole_archive_flag_spec_CXX='$convenience'
18859	archive_cmds_need_lc_CXX=yes
18860	# This is similar to how AIX traditionally builds its shared libraries.
18861	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'
18862      fi
18863    fi
18864    ;;
18865
18866  beos*)
18867    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18868      allow_undefined_flag_CXX=unsupported
18869      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18870      # support --undefined.  This deserves some investigation.  FIXME
18871      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18872    else
18873      ld_shlibs_CXX=no
18874    fi
18875    ;;
18876
18877  chorus*)
18878    case $cc_basename in
18879      *)
18880	# FIXME: insert proper C++ library support
18881	ld_shlibs_CXX=no
18882	;;
18883    esac
18884    ;;
18885
18886  cygwin* | mingw* | pw32*)
18887    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18888    # as there is no search path for DLLs.
18889    hardcode_libdir_flag_spec_CXX='-L$libdir'
18890    allow_undefined_flag_CXX=unsupported
18891    always_export_symbols_CXX=no
18892    enable_shared_with_static_runtimes_CXX=yes
18893
18894    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18895      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'
18896      # If the export-symbols file already is a .def file (1st line
18897      # is EXPORTS), use it as is; otherwise, prepend...
18898      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18899	cp $export_symbols $output_objdir/$soname.def;
18900      else
18901	echo EXPORTS > $output_objdir/$soname.def;
18902	cat $export_symbols >> $output_objdir/$soname.def;
18903      fi~
18904      $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'
18905    else
18906      ld_shlibs_CXX=no
18907    fi
18908  ;;
18909      darwin* | rhapsody*)
18910        case $host_os in
18911        rhapsody* | darwin1.[012])
18912         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18913         ;;
18914       *) # Darwin 1.3 on
18915         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18916           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18917         else
18918           case ${MACOSX_DEPLOYMENT_TARGET} in
18919             10.[012])
18920               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18921               ;;
18922             10.*)
18923               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18924               ;;
18925           esac
18926         fi
18927         ;;
18928        esac
18929      archive_cmds_need_lc_CXX=no
18930      hardcode_direct_CXX=no
18931      hardcode_automatic_CXX=yes
18932      hardcode_shlibpath_var_CXX=unsupported
18933      whole_archive_flag_spec_CXX=''
18934      link_all_deplibs_CXX=yes
18935
18936    if test "$GXX" = yes ; then
18937      lt_int_apple_cc_single_mod=no
18938      output_verbose_link_cmd='echo'
18939      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18940       lt_int_apple_cc_single_mod=yes
18941      fi
18942      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18943       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18944      else
18945          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'
18946        fi
18947        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18948        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18949          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18950            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}'
18951          else
18952            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}'
18953          fi
18954            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}'
18955      else
18956      case $cc_basename in
18957        xlc*)
18958         output_verbose_link_cmd='echo'
18959          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'
18960          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18961          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18962          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}'
18963          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}'
18964          ;;
18965       *)
18966         ld_shlibs_CXX=no
18967          ;;
18968      esac
18969      fi
18970        ;;
18971
18972  dgux*)
18973    case $cc_basename in
18974      ec++*)
18975	# FIXME: insert proper C++ library support
18976	ld_shlibs_CXX=no
18977	;;
18978      ghcx*)
18979	# Green Hills C++ Compiler
18980	# FIXME: insert proper C++ library support
18981	ld_shlibs_CXX=no
18982	;;
18983      *)
18984	# FIXME: insert proper C++ library support
18985	ld_shlibs_CXX=no
18986	;;
18987    esac
18988    ;;
18989  freebsd[12]*)
18990    # C++ shared libraries reported to be fairly broken before switch to ELF
18991    ld_shlibs_CXX=no
18992    ;;
18993  freebsd-elf*)
18994    archive_cmds_need_lc_CXX=no
18995    ;;
18996  freebsd* | kfreebsd*-gnu | dragonfly*)
18997    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18998    # conventions
18999    ld_shlibs_CXX=yes
19000    ;;
19001  gnu*)
19002    ;;
19003  hpux9*)
19004    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19005    hardcode_libdir_separator_CXX=:
19006    export_dynamic_flag_spec_CXX='${wl}-E'
19007    hardcode_direct_CXX=yes
19008    hardcode_minus_L_CXX=yes # Not in the search PATH,
19009				# but as the default
19010				# location of the library.
19011
19012    case $cc_basename in
19013    CC*)
19014      # FIXME: insert proper C++ library support
19015      ld_shlibs_CXX=no
19016      ;;
19017    aCC*)
19018      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'
19019      # Commands to make compiler produce verbose output that lists
19020      # what "hidden" libraries, object files and flags are used when
19021      # linking a shared library.
19022      #
19023      # There doesn't appear to be a way to prevent this compiler from
19024      # explicitly linking system object files so we need to strip them
19025      # from the output so that they don't get included in the library
19026      # dependencies.
19027      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'
19028      ;;
19029    *)
19030      if test "$GXX" = yes; then
19031        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'
19032      else
19033        # FIXME: insert proper C++ library support
19034        ld_shlibs_CXX=no
19035      fi
19036      ;;
19037    esac
19038    ;;
19039  hpux10*|hpux11*)
19040    if test $with_gnu_ld = no; then
19041      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19042      hardcode_libdir_separator_CXX=:
19043
19044      case $host_cpu in
19045      hppa*64*|ia64*)
19046	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19047        ;;
19048      *)
19049	export_dynamic_flag_spec_CXX='${wl}-E'
19050        ;;
19051      esac
19052    fi
19053    case $host_cpu in
19054    hppa*64*|ia64*)
19055      hardcode_direct_CXX=no
19056      hardcode_shlibpath_var_CXX=no
19057      ;;
19058    *)
19059      hardcode_direct_CXX=yes
19060      hardcode_minus_L_CXX=yes # Not in the search PATH,
19061					      # but as the default
19062					      # location of the library.
19063      ;;
19064    esac
19065
19066    case $cc_basename in
19067      CC*)
19068	# FIXME: insert proper C++ library support
19069	ld_shlibs_CXX=no
19070	;;
19071      aCC*)
19072	case $host_cpu in
19073	hppa*64*)
19074	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19075	  ;;
19076	ia64*)
19077	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19078	  ;;
19079	*)
19080	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19081	  ;;
19082	esac
19083	# Commands to make compiler produce verbose output that lists
19084	# what "hidden" libraries, object files and flags are used when
19085	# linking a shared library.
19086	#
19087	# There doesn't appear to be a way to prevent this compiler from
19088	# explicitly linking system object files so we need to strip them
19089	# from the output so that they don't get included in the library
19090	# dependencies.
19091	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'
19092	;;
19093      *)
19094	if test "$GXX" = yes; then
19095	  if test $with_gnu_ld = no; then
19096	    case $host_cpu in
19097	    hppa*64*)
19098	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19099	      ;;
19100	    ia64*)
19101	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19102	      ;;
19103	    *)
19104	      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'
19105	      ;;
19106	    esac
19107	  fi
19108	else
19109	  # FIXME: insert proper C++ library support
19110	  ld_shlibs_CXX=no
19111	fi
19112	;;
19113    esac
19114    ;;
19115  interix3*)
19116    hardcode_direct_CXX=no
19117    hardcode_shlibpath_var_CXX=no
19118    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19119    export_dynamic_flag_spec_CXX='${wl}-E'
19120    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19121    # Instead, shared libraries are loaded at an image base (0x10000000 by
19122    # default) and relocated if they conflict, which is a slow very memory
19123    # consuming and fragmenting process.  To avoid this, we pick a random,
19124    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19125    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19126    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'
19127    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'
19128    ;;
19129  irix5* | irix6*)
19130    case $cc_basename in
19131      CC*)
19132	# SGI C++
19133	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'
19134
19135	# Archives containing C++ object files must be created using
19136	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19137	# necessary to make sure instantiated templates are included
19138	# in the archive.
19139	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19140	;;
19141      *)
19142	if test "$GXX" = yes; then
19143	  if test "$with_gnu_ld" = no; then
19144	    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'
19145	  else
19146	    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'
19147	  fi
19148	fi
19149	link_all_deplibs_CXX=yes
19150	;;
19151    esac
19152    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19153    hardcode_libdir_separator_CXX=:
19154    ;;
19155  linux*)
19156    case $cc_basename in
19157      KCC*)
19158	# Kuck and Associates, Inc. (KAI) C++ Compiler
19159
19160	# KCC will only create a shared library if the output file
19161	# ends with ".so" (or ".sl" for HP-UX), so rename the library
19162	# to its proper name (with version) after linking.
19163	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'
19164	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'
19165	# Commands to make compiler produce verbose output that lists
19166	# what "hidden" libraries, object files and flags are used when
19167	# linking a shared library.
19168	#
19169	# There doesn't appear to be a way to prevent this compiler from
19170	# explicitly linking system object files so we need to strip them
19171	# from the output so that they don't get included in the library
19172	# dependencies.
19173	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'
19174
19175	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19176	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19177
19178	# Archives containing C++ object files must be created using
19179	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
19180	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19181	;;
19182      icpc*)
19183	# Intel C++
19184	with_gnu_ld=yes
19185	# version 8.0 and above of icpc choke on multiply defined symbols
19186	# if we add $predep_objects and $postdep_objects, however 7.1 and
19187	# earlier do not add the objects themselves.
19188	case `$CC -V 2>&1` in
19189	*"Version 7."*)
19190  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19191  	  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'
19192	  ;;
19193	*)  # Version 8.0 or newer
19194	  tmp_idyn=
19195	  case $host_cpu in
19196	    ia64*) tmp_idyn=' -i_dynamic';;
19197	  esac
19198  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19199	  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'
19200	  ;;
19201	esac
19202	archive_cmds_need_lc_CXX=no
19203	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19204	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19205	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19206	;;
19207      pgCC*)
19208        # Portland Group C++ compiler
19209	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19210  	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'
19211
19212	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19213	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19214	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'
19215        ;;
19216      cxx*)
19217	# Compaq C++
19218	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19219	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'
19220
19221	runpath_var=LD_RUN_PATH
19222	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19223	hardcode_libdir_separator_CXX=:
19224
19225	# Commands to make compiler produce verbose output that lists
19226	# what "hidden" libraries, object files and flags are used when
19227	# linking a shared library.
19228	#
19229	# There doesn't appear to be a way to prevent this compiler from
19230	# explicitly linking system object files so we need to strip them
19231	# from the output so that they don't get included in the library
19232	# dependencies.
19233	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'
19234	;;
19235    esac
19236    ;;
19237  lynxos*)
19238    # FIXME: insert proper C++ library support
19239    ld_shlibs_CXX=no
19240    ;;
19241  m88k*)
19242    # FIXME: insert proper C++ library support
19243    ld_shlibs_CXX=no
19244    ;;
19245  mvs*)
19246    case $cc_basename in
19247      cxx*)
19248	# FIXME: insert proper C++ library support
19249	ld_shlibs_CXX=no
19250	;;
19251      *)
19252	# FIXME: insert proper C++ library support
19253	ld_shlibs_CXX=no
19254	;;
19255    esac
19256    ;;
19257  netbsd*)
19258    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19259      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19260      wlarc=
19261      hardcode_libdir_flag_spec_CXX='-R$libdir'
19262      hardcode_direct_CXX=yes
19263      hardcode_shlibpath_var_CXX=no
19264    fi
19265    # Workaround some broken pre-1.5 toolchains
19266    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19267    ;;
19268  openbsd2*)
19269    # C++ shared libraries are fairly broken
19270    ld_shlibs_CXX=no
19271    ;;
19272  openbsd*)
19273    hardcode_direct_CXX=yes
19274    hardcode_shlibpath_var_CXX=no
19275    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19276    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19277    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19278      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19279      export_dynamic_flag_spec_CXX='${wl}-E'
19280      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19281    fi
19282    output_verbose_link_cmd='echo'
19283    ;;
19284  osf3*)
19285    case $cc_basename in
19286      KCC*)
19287	# Kuck and Associates, Inc. (KAI) C++ Compiler
19288
19289	# KCC will only create a shared library if the output file
19290	# ends with ".so" (or ".sl" for HP-UX), so rename the library
19291	# to its proper name (with version) after linking.
19292	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'
19293
19294	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19295	hardcode_libdir_separator_CXX=:
19296
19297	# Archives containing C++ object files must be created using
19298	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
19299	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19300
19301	;;
19302      RCC*)
19303	# Rational C++ 2.4.1
19304	# FIXME: insert proper C++ library support
19305	ld_shlibs_CXX=no
19306	;;
19307      cxx*)
19308	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19309	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'
19310
19311	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19312	hardcode_libdir_separator_CXX=:
19313
19314	# Commands to make compiler produce verbose output that lists
19315	# what "hidden" libraries, object files and flags are used when
19316	# linking a shared library.
19317	#
19318	# There doesn't appear to be a way to prevent this compiler from
19319	# explicitly linking system object files so we need to strip them
19320	# from the output so that they don't get included in the library
19321	# dependencies.
19322	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'
19323	;;
19324      *)
19325	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19326	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19327	  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'
19328
19329	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19330	  hardcode_libdir_separator_CXX=:
19331
19332	  # Commands to make compiler produce verbose output that lists
19333	  # what "hidden" libraries, object files and flags are used when
19334	  # linking a shared library.
19335	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19336
19337	else
19338	  # FIXME: insert proper C++ library support
19339	  ld_shlibs_CXX=no
19340	fi
19341	;;
19342    esac
19343    ;;
19344  osf4* | osf5*)
19345    case $cc_basename in
19346      KCC*)
19347	# Kuck and Associates, Inc. (KAI) C++ Compiler
19348
19349	# KCC will only create a shared library if the output file
19350	# ends with ".so" (or ".sl" for HP-UX), so rename the library
19351	# to its proper name (with version) after linking.
19352	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'
19353
19354	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19355	hardcode_libdir_separator_CXX=:
19356
19357	# Archives containing C++ object files must be created using
19358	# the KAI C++ compiler.
19359	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19360	;;
19361      RCC*)
19362	# Rational C++ 2.4.1
19363	# FIXME: insert proper C++ library support
19364	ld_shlibs_CXX=no
19365	;;
19366      cxx*)
19367	allow_undefined_flag_CXX=' -expect_unresolved \*'
19368	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'
19369	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19370	  echo "-hidden">> $lib.exp~
19371	  $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~
19372	  $rm $lib.exp'
19373
19374	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19375	hardcode_libdir_separator_CXX=:
19376
19377	# Commands to make compiler produce verbose output that lists
19378	# what "hidden" libraries, object files and flags are used when
19379	# linking a shared library.
19380	#
19381	# There doesn't appear to be a way to prevent this compiler from
19382	# explicitly linking system object files so we need to strip them
19383	# from the output so that they don't get included in the library
19384	# dependencies.
19385	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'
19386	;;
19387      *)
19388	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19389	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19390	 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'
19391
19392	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19393	  hardcode_libdir_separator_CXX=:
19394
19395	  # Commands to make compiler produce verbose output that lists
19396	  # what "hidden" libraries, object files and flags are used when
19397	  # linking a shared library.
19398	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19399
19400	else
19401	  # FIXME: insert proper C++ library support
19402	  ld_shlibs_CXX=no
19403	fi
19404	;;
19405    esac
19406    ;;
19407  psos*)
19408    # FIXME: insert proper C++ library support
19409    ld_shlibs_CXX=no
19410    ;;
19411  sunos4*)
19412    case $cc_basename in
19413      CC*)
19414	# Sun C++ 4.x
19415	# FIXME: insert proper C++ library support
19416	ld_shlibs_CXX=no
19417	;;
19418      lcc*)
19419	# Lucid
19420	# FIXME: insert proper C++ library support
19421	ld_shlibs_CXX=no
19422	;;
19423      *)
19424	# FIXME: insert proper C++ library support
19425	ld_shlibs_CXX=no
19426	;;
19427    esac
19428    ;;
19429  solaris*)
19430    case $cc_basename in
19431      CC*)
19432	# Sun C++ 4.2, 5.x and Centerline C++
19433        archive_cmds_need_lc_CXX=yes
19434	no_undefined_flag_CXX=' -zdefs'
19435	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19436	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19437	$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'
19438
19439	hardcode_libdir_flag_spec_CXX='-R$libdir'
19440	hardcode_shlibpath_var_CXX=no
19441	case $host_os in
19442	  solaris2.[0-5] | solaris2.[0-5].*) ;;
19443	  *)
19444	    # The C++ compiler is used as linker so we must use $wl
19445	    # flag to pass the commands to the underlying system
19446	    # linker. We must also pass each convience library through
19447	    # to the system linker between allextract/defaultextract.
19448	    # The C++ compiler will combine linker options so we
19449	    # cannot just pass the convience library names through
19450	    # without $wl.
19451	    # Supported since Solaris 2.6 (maybe 2.5.1?)
19452	    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'
19453	    ;;
19454	esac
19455	link_all_deplibs_CXX=yes
19456
19457	output_verbose_link_cmd='echo'
19458
19459	# Archives containing C++ object files must be created using
19460	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
19461	# necessary to make sure instantiated templates are included
19462	# in the archive.
19463	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19464	;;
19465      gcx*)
19466	# Green Hills C++ Compiler
19467	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19468
19469	# The C++ compiler must be used to create the archive.
19470	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19471	;;
19472      *)
19473	# GNU C++ compiler with Solaris linker
19474	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19475	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19476	  if $CC --version | grep -v '^2\.7' > /dev/null; then
19477	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19478	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19479		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19480
19481	    # Commands to make compiler produce verbose output that lists
19482	    # what "hidden" libraries, object files and flags are used when
19483	    # linking a shared library.
19484	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19485	  else
19486	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
19487	    # platform.
19488	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19489	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19490		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19491
19492	    # Commands to make compiler produce verbose output that lists
19493	    # what "hidden" libraries, object files and flags are used when
19494	    # linking a shared library.
19495	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19496	  fi
19497
19498	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19499	fi
19500	;;
19501    esac
19502    ;;
19503  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19504    no_undefined_flag_CXX='${wl}-z,text'
19505    archive_cmds_need_lc_CXX=no
19506    hardcode_shlibpath_var_CXX=no
19507    runpath_var='LD_RUN_PATH'
19508
19509    case $cc_basename in
19510      CC*)
19511	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19512	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19513	;;
19514      *)
19515	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19516	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19517	;;
19518    esac
19519    ;;
19520  sysv5* | sco3.2v5* | sco5v6*)
19521    # Note: We can NOT use -z defs as we might desire, because we do not
19522    # link with -lc, and that would cause any symbols used from libc to
19523    # always be unresolved, which means just about no library would
19524    # ever link correctly.  If we're not using GNU ld we use -z text
19525    # though, which does catch some bad symbols but isn't as heavy-handed
19526    # as -z defs.
19527    # For security reasons, it is highly recommended that you always
19528    # use absolute paths for naming shared libraries, and exclude the
19529    # DT_RUNPATH tag from executables and libraries.  But doing so
19530    # requires that you compile everything twice, which is a pain.
19531    # So that behaviour is only enabled if SCOABSPATH is set to a
19532    # non-empty value in the environment.  Most likely only useful for
19533    # creating official distributions of packages.
19534    # This is a hack until libtool officially supports absolute path
19535    # names for shared libraries.
19536    no_undefined_flag_CXX='${wl}-z,text'
19537    allow_undefined_flag_CXX='${wl}-z,nodefs'
19538    archive_cmds_need_lc_CXX=no
19539    hardcode_shlibpath_var_CXX=no
19540    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19541    hardcode_libdir_separator_CXX=':'
19542    link_all_deplibs_CXX=yes
19543    export_dynamic_flag_spec_CXX='${wl}-Bexport'
19544    runpath_var='LD_RUN_PATH'
19545
19546    case $cc_basename in
19547      CC*)
19548	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19549	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19550	;;
19551      *)
19552	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19553	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19554	;;
19555    esac
19556    ;;
19557  tandem*)
19558    case $cc_basename in
19559      NCC*)
19560	# NonStop-UX NCC 3.20
19561	# FIXME: insert proper C++ library support
19562	ld_shlibs_CXX=no
19563	;;
19564      *)
19565	# FIXME: insert proper C++ library support
19566	ld_shlibs_CXX=no
19567	;;
19568    esac
19569    ;;
19570  vxworks*)
19571    # FIXME: insert proper C++ library support
19572    ld_shlibs_CXX=no
19573    ;;
19574  *)
19575    # FIXME: insert proper C++ library support
19576    ld_shlibs_CXX=no
19577    ;;
19578esac
19579{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19580echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19581test "$ld_shlibs_CXX" = no && can_build_shared=no
19582
19583GCC_CXX="$GXX"
19584LD_CXX="$LD"
19585
19586
19587cat > conftest.$ac_ext <<EOF
19588class Foo
19589{
19590public:
19591  Foo (void) { a = 0; }
19592private:
19593  int a;
19594};
19595EOF
19596
19597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19598  (eval $ac_compile) 2>&5
19599  ac_status=$?
19600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601  (exit $ac_status); }; then
19602  # Parse the compiler output and extract the necessary
19603  # objects, libraries and library flags.
19604
19605  # Sentinel used to keep track of whether or not we are before
19606  # the conftest object file.
19607  pre_test_object_deps_done=no
19608
19609  # The `*' in the case matches for architectures that use `case' in
19610  # $output_verbose_cmd can trigger glob expansion during the loop
19611  # eval without this substitution.
19612  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19613
19614  for p in `eval $output_verbose_link_cmd`; do
19615    case $p in
19616
19617    -L* | -R* | -l*)
19618       # Some compilers place space between "-{L,R}" and the path.
19619       # Remove the space.
19620       if test $p = "-L" \
19621	  || test $p = "-R"; then
19622	 prev=$p
19623	 continue
19624       else
19625	 prev=
19626       fi
19627
19628       if test "$pre_test_object_deps_done" = no; then
19629	 case $p in
19630	 -L* | -R*)
19631	   # Internal compiler library paths should come after those
19632	   # provided the user.  The postdeps already come after the
19633	   # user supplied libs so there is no need to process them.
19634	   if test -z "$compiler_lib_search_path_CXX"; then
19635	     compiler_lib_search_path_CXX="${prev}${p}"
19636	   else
19637	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19638	   fi
19639	   ;;
19640	 # The "-l" case would never come before the object being
19641	 # linked, so don't bother handling this case.
19642	 esac
19643       else
19644	 if test -z "$postdeps_CXX"; then
19645	   postdeps_CXX="${prev}${p}"
19646	 else
19647	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19648	 fi
19649       fi
19650       ;;
19651
19652    *.$objext)
19653       # This assumes that the test object file only shows up
19654       # once in the compiler output.
19655       if test "$p" = "conftest.$objext"; then
19656	 pre_test_object_deps_done=yes
19657	 continue
19658       fi
19659
19660       if test "$pre_test_object_deps_done" = no; then
19661	 if test -z "$predep_objects_CXX"; then
19662	   predep_objects_CXX="$p"
19663	 else
19664	   predep_objects_CXX="$predep_objects_CXX $p"
19665	 fi
19666       else
19667	 if test -z "$postdep_objects_CXX"; then
19668	   postdep_objects_CXX="$p"
19669	 else
19670	   postdep_objects_CXX="$postdep_objects_CXX $p"
19671	 fi
19672       fi
19673       ;;
19674
19675    *) ;; # Ignore the rest.
19676
19677    esac
19678  done
19679
19680  # Clean up.
19681  rm -f a.out a.exe
19682else
19683  echo "libtool.m4: error: problem compiling CXX test program"
19684fi
19685
19686$rm -f confest.$objext
19687
19688# PORTME: override above test on systems where it is broken
19689case $host_os in
19690interix3*)
19691  # Interix 3.5 installs completely hosed .la files for C++, so rather than
19692  # hack all around it, let's just trust "g++" to DTRT.
19693  predep_objects_CXX=
19694  postdep_objects_CXX=
19695  postdeps_CXX=
19696  ;;
19697
19698solaris*)
19699  case $cc_basename in
19700  CC*)
19701    # Adding this requires a known-good setup of shared libraries for
19702    # Sun compiler versions before 5.6, else PIC objects from an old
19703    # archive will be linked into the output, leading to subtle bugs.
19704    postdeps_CXX='-lCstd -lCrun'
19705    ;;
19706  esac
19707  ;;
19708esac
19709
19710
19711case " $postdeps_CXX " in
19712*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19713esac
19714
19715lt_prog_compiler_wl_CXX=
19716lt_prog_compiler_pic_CXX=
19717lt_prog_compiler_static_CXX=
19718
19719{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19720echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19721
19722  # C++ specific cases for pic, static, wl, etc.
19723  if test "$GXX" = yes; then
19724    lt_prog_compiler_wl_CXX='-Wl,'
19725    lt_prog_compiler_static_CXX='-static'
19726
19727    case $host_os in
19728    aix*)
19729      # All AIX code is PIC.
19730      if test "$host_cpu" = ia64; then
19731	# AIX 5 now supports IA64 processor
19732	lt_prog_compiler_static_CXX='-Bstatic'
19733      fi
19734      ;;
19735    amigaos*)
19736      # FIXME: we need at least 68020 code to build shared libraries, but
19737      # adding the `-m68020' flag to GCC prevents building anything better,
19738      # like `-m68040'.
19739      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19740      ;;
19741    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19742      # PIC is the default for these OSes.
19743      ;;
19744    mingw* | os2* | pw32*)
19745      # This hack is so that the source file can tell whether it is being
19746      # built for inclusion in a dll (and should export symbols for example).
19747      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19748      ;;
19749    darwin* | rhapsody*)
19750      # PIC is the default on this platform
19751      # Common symbols not allowed in MH_DYLIB files
19752      lt_prog_compiler_pic_CXX='-fno-common'
19753      ;;
19754    *djgpp*)
19755      # DJGPP does not support shared libraries at all
19756      lt_prog_compiler_pic_CXX=
19757      ;;
19758    interix3*)
19759      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19760      # Instead, we relocate shared libraries at runtime.
19761      ;;
19762    sysv4*MP*)
19763      if test -d /usr/nec; then
19764	lt_prog_compiler_pic_CXX=-Kconform_pic
19765      fi
19766      ;;
19767    hpux*)
19768      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19769      # not for PA HP-UX.
19770      case $host_cpu in
19771      hppa*64*|ia64*)
19772	;;
19773      *)
19774	lt_prog_compiler_pic_CXX='-fPIC'
19775	;;
19776      esac
19777      ;;
19778    *)
19779      lt_prog_compiler_pic_CXX='-fPIC'
19780      ;;
19781    esac
19782  else
19783    case $host_os in
19784      aix4* | aix5*)
19785	# All AIX code is PIC.
19786	if test "$host_cpu" = ia64; then
19787	  # AIX 5 now supports IA64 processor
19788	  lt_prog_compiler_static_CXX='-Bstatic'
19789	else
19790	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19791	fi
19792	;;
19793      chorus*)
19794	case $cc_basename in
19795	cxch68*)
19796	  # Green Hills C++ Compiler
19797	  # _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"
19798	  ;;
19799	esac
19800	;;
19801       darwin*)
19802         # PIC is the default on this platform
19803         # Common symbols not allowed in MH_DYLIB files
19804         case $cc_basename in
19805           xlc*)
19806           lt_prog_compiler_pic_CXX='-qnocommon'
19807           lt_prog_compiler_wl_CXX='-Wl,'
19808           ;;
19809         esac
19810       ;;
19811      dgux*)
19812	case $cc_basename in
19813	  ec++*)
19814	    lt_prog_compiler_pic_CXX='-KPIC'
19815	    ;;
19816	  ghcx*)
19817	    # Green Hills C++ Compiler
19818	    lt_prog_compiler_pic_CXX='-pic'
19819	    ;;
19820	  *)
19821	    ;;
19822	esac
19823	;;
19824      freebsd* | kfreebsd*-gnu | dragonfly*)
19825	# FreeBSD uses GNU C++
19826	;;
19827      hpux9* | hpux10* | hpux11*)
19828	case $cc_basename in
19829	  CC*)
19830	    lt_prog_compiler_wl_CXX='-Wl,'
19831	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19832	    if test "$host_cpu" != ia64; then
19833	      lt_prog_compiler_pic_CXX='+Z'
19834	    fi
19835	    ;;
19836	  aCC*)
19837	    lt_prog_compiler_wl_CXX='-Wl,'
19838	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19839	    case $host_cpu in
19840	    hppa*64*|ia64*)
19841	      # +Z the default
19842	      ;;
19843	    *)
19844	      lt_prog_compiler_pic_CXX='+Z'
19845	      ;;
19846	    esac
19847	    ;;
19848	  *)
19849	    ;;
19850	esac
19851	;;
19852      interix*)
19853	# This is c89, which is MS Visual C++ (no shared libs)
19854	# Anyone wants to do a port?
19855	;;
19856      irix5* | irix6* | nonstopux*)
19857	case $cc_basename in
19858	  CC*)
19859	    lt_prog_compiler_wl_CXX='-Wl,'
19860	    lt_prog_compiler_static_CXX='-non_shared'
19861	    # CC pic flag -KPIC is the default.
19862	    ;;
19863	  *)
19864	    ;;
19865	esac
19866	;;
19867      linux*)
19868	case $cc_basename in
19869	  KCC*)
19870	    # KAI C++ Compiler
19871	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19872	    lt_prog_compiler_pic_CXX='-fPIC'
19873	    ;;
19874	  icpc* | ecpc*)
19875	    # Intel C++
19876	    lt_prog_compiler_wl_CXX='-Wl,'
19877	    lt_prog_compiler_pic_CXX='-KPIC'
19878	    lt_prog_compiler_static_CXX='-static'
19879	    ;;
19880	  pgCC*)
19881	    # Portland Group C++ compiler.
19882	    lt_prog_compiler_wl_CXX='-Wl,'
19883	    lt_prog_compiler_pic_CXX='-fpic'
19884	    lt_prog_compiler_static_CXX='-Bstatic'
19885	    ;;
19886	  cxx*)
19887	    # Compaq C++
19888	    # Make sure the PIC flag is empty.  It appears that all Alpha
19889	    # Linux and Compaq Tru64 Unix objects are PIC.
19890	    lt_prog_compiler_pic_CXX=
19891	    lt_prog_compiler_static_CXX='-non_shared'
19892	    ;;
19893	  *)
19894	    ;;
19895	esac
19896	;;
19897      lynxos*)
19898	;;
19899      m88k*)
19900	;;
19901      mvs*)
19902	case $cc_basename in
19903	  cxx*)
19904	    lt_prog_compiler_pic_CXX='-W c,exportall'
19905	    ;;
19906	  *)
19907	    ;;
19908	esac
19909	;;
19910      netbsd*)
19911	;;
19912      osf3* | osf4* | osf5*)
19913	case $cc_basename in
19914	  KCC*)
19915	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19916	    ;;
19917	  RCC*)
19918	    # Rational C++ 2.4.1
19919	    lt_prog_compiler_pic_CXX='-pic'
19920	    ;;
19921	  cxx*)
19922	    # Digital/Compaq C++
19923	    lt_prog_compiler_wl_CXX='-Wl,'
19924	    # Make sure the PIC flag is empty.  It appears that all Alpha
19925	    # Linux and Compaq Tru64 Unix objects are PIC.
19926	    lt_prog_compiler_pic_CXX=
19927	    lt_prog_compiler_static_CXX='-non_shared'
19928	    ;;
19929	  *)
19930	    ;;
19931	esac
19932	;;
19933      psos*)
19934	;;
19935      solaris*)
19936	case $cc_basename in
19937	  CC*)
19938	    # Sun C++ 4.2, 5.x and Centerline C++
19939	    lt_prog_compiler_pic_CXX='-KPIC'
19940	    lt_prog_compiler_static_CXX='-Bstatic'
19941	    lt_prog_compiler_wl_CXX='-Qoption ld '
19942	    ;;
19943	  gcx*)
19944	    # Green Hills C++ Compiler
19945	    lt_prog_compiler_pic_CXX='-PIC'
19946	    ;;
19947	  *)
19948	    ;;
19949	esac
19950	;;
19951      sunos4*)
19952	case $cc_basename in
19953	  CC*)
19954	    # Sun C++ 4.x
19955	    lt_prog_compiler_pic_CXX='-pic'
19956	    lt_prog_compiler_static_CXX='-Bstatic'
19957	    ;;
19958	  lcc*)
19959	    # Lucid
19960	    lt_prog_compiler_pic_CXX='-pic'
19961	    ;;
19962	  *)
19963	    ;;
19964	esac
19965	;;
19966      tandem*)
19967	case $cc_basename in
19968	  NCC*)
19969	    # NonStop-UX NCC 3.20
19970	    lt_prog_compiler_pic_CXX='-KPIC'
19971	    ;;
19972	  *)
19973	    ;;
19974	esac
19975	;;
19976      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19977	case $cc_basename in
19978	  CC*)
19979	    lt_prog_compiler_wl_CXX='-Wl,'
19980	    lt_prog_compiler_pic_CXX='-KPIC'
19981	    lt_prog_compiler_static_CXX='-Bstatic'
19982	    ;;
19983	esac
19984	;;
19985      vxworks*)
19986	;;
19987      *)
19988	lt_prog_compiler_can_build_shared_CXX=no
19989	;;
19990    esac
19991  fi
19992
19993{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19994echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19995
19996#
19997# Check to make sure the PIC flag actually works.
19998#
19999if test -n "$lt_prog_compiler_pic_CXX"; then
20000
20001{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20002echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20003if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20004  echo $ECHO_N "(cached) $ECHO_C" >&6
20005else
20006  lt_prog_compiler_pic_works_CXX=no
20007  ac_outfile=conftest.$ac_objext
20008   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20009   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20010   # Insert the option either (1) after the last *FLAGS variable, or
20011   # (2) before a word containing "conftest.", or (3) at the end.
20012   # Note that $ac_compile itself does not contain backslashes and begins
20013   # with a dollar sign (not a hyphen), so the echo should work correctly.
20014   # The option is referenced via a variable to avoid confusing sed.
20015   lt_compile=`echo "$ac_compile" | $SED \
20016   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20017   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20018   -e 's:$: $lt_compiler_flag:'`
20019   (eval echo "\"\$as_me:20019: $lt_compile\"" >&5)
20020   (eval "$lt_compile" 2>conftest.err)
20021   ac_status=$?
20022   cat conftest.err >&5
20023   echo "$as_me:20023: \$? = $ac_status" >&5
20024   if (exit $ac_status) && test -s "$ac_outfile"; then
20025     # The compiler can only warn and ignore the option if not recognized
20026     # So say no if there are warnings other than the usual output.
20027     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20028     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20029     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20030       lt_prog_compiler_pic_works_CXX=yes
20031     fi
20032   fi
20033   $rm conftest*
20034
20035fi
20036{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20037echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20038
20039if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20040    case $lt_prog_compiler_pic_CXX in
20041     "" | " "*) ;;
20042     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20043     esac
20044else
20045    lt_prog_compiler_pic_CXX=
20046     lt_prog_compiler_can_build_shared_CXX=no
20047fi
20048
20049fi
20050case $host_os in
20051  # For platforms which do not support PIC, -DPIC is meaningless:
20052  *djgpp*)
20053    lt_prog_compiler_pic_CXX=
20054    ;;
20055  *)
20056    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20057    ;;
20058esac
20059
20060#
20061# Check to make sure the static flag actually works.
20062#
20063wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20064{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20065echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20066if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20067  echo $ECHO_N "(cached) $ECHO_C" >&6
20068else
20069  lt_prog_compiler_static_works_CXX=no
20070   save_LDFLAGS="$LDFLAGS"
20071   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20072   printf "$lt_simple_link_test_code" > conftest.$ac_ext
20073   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20074     # The linker can only warn and ignore the option if not recognized
20075     # So say no if there are warnings
20076     if test -s conftest.err; then
20077       # Append any errors to the config.log.
20078       cat conftest.err 1>&5
20079       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20080       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20081       if diff conftest.exp conftest.er2 >/dev/null; then
20082         lt_prog_compiler_static_works_CXX=yes
20083       fi
20084     else
20085       lt_prog_compiler_static_works_CXX=yes
20086     fi
20087   fi
20088   $rm conftest*
20089   LDFLAGS="$save_LDFLAGS"
20090
20091fi
20092{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20093echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20094
20095if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20096    :
20097else
20098    lt_prog_compiler_static_CXX=
20099fi
20100
20101
20102{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20103echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20104if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20105  echo $ECHO_N "(cached) $ECHO_C" >&6
20106else
20107  lt_cv_prog_compiler_c_o_CXX=no
20108   $rm -r conftest 2>/dev/null
20109   mkdir conftest
20110   cd conftest
20111   mkdir out
20112   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20113
20114   lt_compiler_flag="-o out/conftest2.$ac_objext"
20115   # Insert the option either (1) after the last *FLAGS variable, or
20116   # (2) before a word containing "conftest.", or (3) at the end.
20117   # Note that $ac_compile itself does not contain backslashes and begins
20118   # with a dollar sign (not a hyphen), so the echo should work correctly.
20119   lt_compile=`echo "$ac_compile" | $SED \
20120   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20121   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20122   -e 's:$: $lt_compiler_flag:'`
20123   (eval echo "\"\$as_me:20123: $lt_compile\"" >&5)
20124   (eval "$lt_compile" 2>out/conftest.err)
20125   ac_status=$?
20126   cat out/conftest.err >&5
20127   echo "$as_me:20127: \$? = $ac_status" >&5
20128   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20129   then
20130     # The compiler can only warn and ignore the option if not recognized
20131     # So say no if there are warnings
20132     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20133     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20134     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20135       lt_cv_prog_compiler_c_o_CXX=yes
20136     fi
20137   fi
20138   chmod u+w . 2>&5
20139   $rm conftest*
20140   # SGI C++ compiler will create directory out/ii_files/ for
20141   # template instantiation
20142   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20143   $rm out/* && rmdir out
20144   cd ..
20145   rmdir conftest
20146   $rm conftest*
20147
20148fi
20149{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20150echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20151
20152
20153hard_links="nottested"
20154if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20155  # do not overwrite the value of need_locks provided by the user
20156  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20157echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20158  hard_links=yes
20159  $rm conftest*
20160  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20161  touch conftest.a
20162  ln conftest.a conftest.b 2>&5 || hard_links=no
20163  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20164  { echo "$as_me:$LINENO: result: $hard_links" >&5
20165echo "${ECHO_T}$hard_links" >&6; }
20166  if test "$hard_links" = no; then
20167    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20168echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20169    need_locks=warn
20170  fi
20171else
20172  need_locks=no
20173fi
20174
20175{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20176echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20177
20178  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20179  case $host_os in
20180  aix4* | aix5*)
20181    # If we're using GNU nm, then we don't want the "-C" option.
20182    # -C means demangle to AIX nm, but means don't demangle with GNU nm
20183    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20184      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'
20185    else
20186      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'
20187    fi
20188    ;;
20189  pw32*)
20190    export_symbols_cmds_CXX="$ltdll_cmds"
20191  ;;
20192  cygwin* | mingw*)
20193    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'
20194  ;;
20195  *)
20196    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20197  ;;
20198  esac
20199
20200{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20201echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20202test "$ld_shlibs_CXX" = no && can_build_shared=no
20203
20204#
20205# Do we need to explicitly link libc?
20206#
20207case "x$archive_cmds_need_lc_CXX" in
20208x|xyes)
20209  # Assume -lc should be added
20210  archive_cmds_need_lc_CXX=yes
20211
20212  if test "$enable_shared" = yes && test "$GCC" = yes; then
20213    case $archive_cmds_CXX in
20214    *'~'*)
20215      # FIXME: we may have to deal with multi-command sequences.
20216      ;;
20217    '$CC '*)
20218      # Test whether the compiler implicitly links with -lc since on some
20219      # systems, -lgcc has to come before -lc. If gcc already passes -lc
20220      # to ld, don't add -lc before -lgcc.
20221      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20222echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20223      $rm conftest*
20224      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20225
20226      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20227  (eval $ac_compile) 2>&5
20228  ac_status=$?
20229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230  (exit $ac_status); } 2>conftest.err; then
20231        soname=conftest
20232        lib=conftest
20233        libobjs=conftest.$ac_objext
20234        deplibs=
20235        wl=$lt_prog_compiler_wl_CXX
20236	pic_flag=$lt_prog_compiler_pic_CXX
20237        compiler_flags=-v
20238        linker_flags=-v
20239        verstring=
20240        output_objdir=.
20241        libname=conftest
20242        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20243        allow_undefined_flag_CXX=
20244        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20245  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20246  ac_status=$?
20247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248  (exit $ac_status); }
20249        then
20250	  archive_cmds_need_lc_CXX=no
20251        else
20252	  archive_cmds_need_lc_CXX=yes
20253        fi
20254        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20255      else
20256        cat conftest.err 1>&5
20257      fi
20258      $rm conftest*
20259      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20260echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20261      ;;
20262    esac
20263  fi
20264  ;;
20265esac
20266
20267{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20268echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20269library_names_spec=
20270libname_spec='lib$name'
20271soname_spec=
20272shrext_cmds=".so"
20273postinstall_cmds=
20274postuninstall_cmds=
20275finish_cmds=
20276finish_eval=
20277shlibpath_var=
20278shlibpath_overrides_runpath=unknown
20279version_type=none
20280dynamic_linker="$host_os ld.so"
20281sys_lib_dlsearch_path_spec="/lib /usr/lib"
20282if test "$GCC" = yes; then
20283  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20284  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20285    # if the path contains ";" then we assume it to be the separator
20286    # otherwise default to the standard path separator (i.e. ":") - it is
20287    # assumed that no part of a normal pathname contains ";" but that should
20288    # okay in the real world where ";" in dirpaths is itself problematic.
20289    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20290  else
20291    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20292  fi
20293else
20294  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20295fi
20296need_lib_prefix=unknown
20297hardcode_into_libs=no
20298
20299# when you set need_version to no, make sure it does not cause -set_version
20300# flags to be left without arguments
20301need_version=unknown
20302
20303case $host_os in
20304aix3*)
20305  version_type=linux
20306  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20307  shlibpath_var=LIBPATH
20308
20309  # AIX 3 has no versioning support, so we append a major version to the name.
20310  soname_spec='${libname}${release}${shared_ext}$major'
20311  ;;
20312
20313aix4* | aix5*)
20314  version_type=linux
20315  need_lib_prefix=no
20316  need_version=no
20317  hardcode_into_libs=yes
20318  if test "$host_cpu" = ia64; then
20319    # AIX 5 supports IA64
20320    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20321    shlibpath_var=LD_LIBRARY_PATH
20322  else
20323    # With GCC up to 2.95.x, collect2 would create an import file
20324    # for dependence libraries.  The import file would start with
20325    # the line `#! .'.  This would cause the generated library to
20326    # depend on `.', always an invalid library.  This was fixed in
20327    # development snapshots of GCC prior to 3.0.
20328    case $host_os in
20329      aix4 | aix4.[01] | aix4.[01].*)
20330      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20331	   echo ' yes '
20332	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20333	:
20334      else
20335	can_build_shared=no
20336      fi
20337      ;;
20338    esac
20339    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20340    # soname into executable. Probably we can add versioning support to
20341    # collect2, so additional links can be useful in future.
20342    if test "$aix_use_runtimelinking" = yes; then
20343      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20344      # instead of lib<name>.a to let people know that these are not
20345      # typical AIX shared libraries.
20346      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20347    else
20348      # We preserve .a as extension for shared libraries through AIX4.2
20349      # and later when we are not doing run time linking.
20350      library_names_spec='${libname}${release}.a $libname.a'
20351      soname_spec='${libname}${release}${shared_ext}$major'
20352    fi
20353    shlibpath_var=LIBPATH
20354  fi
20355  ;;
20356
20357amigaos*)
20358  library_names_spec='$libname.ixlibrary $libname.a'
20359  # Create ${libname}_ixlibrary.a entries in /sys/libs.
20360  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'
20361  ;;
20362
20363beos*)
20364  library_names_spec='${libname}${shared_ext}'
20365  dynamic_linker="$host_os ld.so"
20366  shlibpath_var=LIBRARY_PATH
20367  ;;
20368
20369bsdi[45]*)
20370  version_type=linux
20371  need_version=no
20372  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20373  soname_spec='${libname}${release}${shared_ext}$major'
20374  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20375  shlibpath_var=LD_LIBRARY_PATH
20376  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20377  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20378  # the default ld.so.conf also contains /usr/contrib/lib and
20379  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20380  # libtool to hard-code these into programs
20381  ;;
20382
20383cygwin* | mingw* | pw32*)
20384  version_type=windows
20385  shrext_cmds=".dll"
20386  need_version=no
20387  need_lib_prefix=no
20388
20389  case $GCC,$host_os in
20390  yes,cygwin* | yes,mingw* | yes,pw32*)
20391    library_names_spec='$libname.dll.a'
20392    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20393    postinstall_cmds='base_file=`basename \${file}`~
20394      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20395      dldir=$destdir/`dirname \$dlpath`~
20396      test -d \$dldir || mkdir -p \$dldir~
20397      $install_prog $dir/$dlname \$dldir/$dlname~
20398      chmod a+x \$dldir/$dlname'
20399    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20400      dlpath=$dir/\$dldll~
20401       $rm \$dlpath'
20402    shlibpath_overrides_runpath=yes
20403
20404    case $host_os in
20405    cygwin*)
20406      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20407      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20408      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20409      ;;
20410    mingw*)
20411      # MinGW DLLs use traditional 'lib' prefix
20412      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20413      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20414      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20415        # It is most probably a Windows format PATH printed by
20416        # mingw gcc, but we are running on Cygwin. Gcc prints its search
20417        # path with ; separators, and with drive letters. We can handle the
20418        # drive letters (cygwin fileutils understands them), so leave them,
20419        # especially as we might pass files found there to a mingw objdump,
20420        # which wouldn't understand a cygwinified path. Ahh.
20421        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20422      else
20423        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20424      fi
20425      ;;
20426    pw32*)
20427      # pw32 DLLs use 'pw' prefix rather than 'lib'
20428      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20429      ;;
20430    esac
20431    ;;
20432
20433  *)
20434    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20435    ;;
20436  esac
20437  dynamic_linker='Win32 ld.exe'
20438  # FIXME: first we should search . and the directory the executable is in
20439  shlibpath_var=PATH
20440  ;;
20441
20442darwin* | rhapsody*)
20443  dynamic_linker="$host_os dyld"
20444  version_type=darwin
20445  need_lib_prefix=no
20446  need_version=no
20447  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20448  soname_spec='${libname}${release}${major}$shared_ext'
20449  shlibpath_overrides_runpath=yes
20450  shlibpath_var=DYLD_LIBRARY_PATH
20451  shrext_cmds='.dylib'
20452  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20453  if test "$GCC" = yes; then
20454    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"`
20455  else
20456    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20457  fi
20458  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20459  ;;
20460
20461dgux*)
20462  version_type=linux
20463  need_lib_prefix=no
20464  need_version=no
20465  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20466  soname_spec='${libname}${release}${shared_ext}$major'
20467  shlibpath_var=LD_LIBRARY_PATH
20468  ;;
20469
20470freebsd1*)
20471  dynamic_linker=no
20472  ;;
20473
20474kfreebsd*-gnu)
20475  version_type=linux
20476  need_lib_prefix=no
20477  need_version=no
20478  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20479  soname_spec='${libname}${release}${shared_ext}$major'
20480  shlibpath_var=LD_LIBRARY_PATH
20481  shlibpath_overrides_runpath=no
20482  hardcode_into_libs=yes
20483  dynamic_linker='GNU ld.so'
20484  ;;
20485
20486freebsd* | dragonfly*)
20487  # DragonFly does not have aout.  When/if they implement a new
20488  # versioning mechanism, adjust this.
20489  if test -x /usr/bin/objformat; then
20490    objformat=`/usr/bin/objformat`
20491  else
20492    case $host_os in
20493    freebsd[123]*) objformat=aout ;;
20494    *) objformat=elf ;;
20495    esac
20496  fi
20497  version_type=freebsd-$objformat
20498  case $version_type in
20499    freebsd-elf*)
20500      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20501      need_version=no
20502      need_lib_prefix=no
20503      ;;
20504    freebsd-*)
20505      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20506      need_version=yes
20507      ;;
20508  esac
20509  shlibpath_var=LD_LIBRARY_PATH
20510  case $host_os in
20511  freebsd2*)
20512    shlibpath_overrides_runpath=yes
20513    ;;
20514  freebsd3.[01]* | freebsdelf3.[01]*)
20515    shlibpath_overrides_runpath=yes
20516    hardcode_into_libs=yes
20517    ;;
20518  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20519  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20520    shlibpath_overrides_runpath=no
20521    hardcode_into_libs=yes
20522    ;;
20523  freebsd*) # from 4.6 on
20524    shlibpath_overrides_runpath=yes
20525    hardcode_into_libs=yes
20526    ;;
20527  esac
20528  ;;
20529
20530gnu*)
20531  version_type=linux
20532  need_lib_prefix=no
20533  need_version=no
20534  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20535  soname_spec='${libname}${release}${shared_ext}$major'
20536  shlibpath_var=LD_LIBRARY_PATH
20537  hardcode_into_libs=yes
20538  ;;
20539
20540hpux9* | hpux10* | hpux11*)
20541  # Give a soname corresponding to the major version so that dld.sl refuses to
20542  # link against other versions.
20543  version_type=sunos
20544  need_lib_prefix=no
20545  need_version=no
20546  case $host_cpu in
20547  ia64*)
20548    shrext_cmds='.so'
20549    hardcode_into_libs=yes
20550    dynamic_linker="$host_os dld.so"
20551    shlibpath_var=LD_LIBRARY_PATH
20552    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20553    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20554    soname_spec='${libname}${release}${shared_ext}$major'
20555    if test "X$HPUX_IA64_MODE" = X32; then
20556      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20557    else
20558      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20559    fi
20560    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20561    ;;
20562   hppa*64*)
20563     shrext_cmds='.sl'
20564     hardcode_into_libs=yes
20565     dynamic_linker="$host_os dld.sl"
20566     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20567     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20568     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20569     soname_spec='${libname}${release}${shared_ext}$major'
20570     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20571     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20572     ;;
20573   *)
20574    shrext_cmds='.sl'
20575    dynamic_linker="$host_os dld.sl"
20576    shlibpath_var=SHLIB_PATH
20577    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20578    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20579    soname_spec='${libname}${release}${shared_ext}$major'
20580    ;;
20581  esac
20582  # HP-UX runs *really* slowly unless shared libraries are mode 555.
20583  postinstall_cmds='chmod 555 $lib'
20584  ;;
20585
20586interix3*)
20587  version_type=linux
20588  need_lib_prefix=no
20589  need_version=no
20590  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20591  soname_spec='${libname}${release}${shared_ext}$major'
20592  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20593  shlibpath_var=LD_LIBRARY_PATH
20594  shlibpath_overrides_runpath=no
20595  hardcode_into_libs=yes
20596  ;;
20597
20598irix5* | irix6* | nonstopux*)
20599  case $host_os in
20600    nonstopux*) version_type=nonstopux ;;
20601    *)
20602	if test "$lt_cv_prog_gnu_ld" = yes; then
20603		version_type=linux
20604	else
20605		version_type=irix
20606	fi ;;
20607  esac
20608  need_lib_prefix=no
20609  need_version=no
20610  soname_spec='${libname}${release}${shared_ext}$major'
20611  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20612  case $host_os in
20613  irix5* | nonstopux*)
20614    libsuff= shlibsuff=
20615    ;;
20616  *)
20617    case $LD in # libtool.m4 will add one of these switches to LD
20618    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20619      libsuff= shlibsuff= libmagic=32-bit;;
20620    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20621      libsuff=32 shlibsuff=N32 libmagic=N32;;
20622    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20623      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20624    *) libsuff= shlibsuff= libmagic=never-match;;
20625    esac
20626    ;;
20627  esac
20628  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20629  shlibpath_overrides_runpath=no
20630  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20631  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20632  hardcode_into_libs=yes
20633  ;;
20634
20635# No shared lib support for Linux oldld, aout, or coff.
20636linux*oldld* | linux*aout* | linux*coff*)
20637  dynamic_linker=no
20638  ;;
20639
20640# This must be Linux ELF.
20641linux*)
20642  version_type=linux
20643  need_lib_prefix=no
20644  need_version=no
20645  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20646  soname_spec='${libname}${release}${shared_ext}$major'
20647  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20648  shlibpath_var=LD_LIBRARY_PATH
20649  shlibpath_overrides_runpath=no
20650  # This implies no fast_install, which is unacceptable.
20651  # Some rework will be needed to allow for fast_install
20652  # before this can be enabled.
20653  hardcode_into_libs=yes
20654
20655  # Append ld.so.conf contents to the search path
20656  if test -f /etc/ld.so.conf; then
20657    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' ' '`
20658    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20659  fi
20660
20661  # We used to test for /lib/ld.so.1 and disable shared libraries on
20662  # powerpc, because MkLinux only supported shared libraries with the
20663  # GNU dynamic linker.  Since this was broken with cross compilers,
20664  # most powerpc-linux boxes support dynamic linking these days and
20665  # people can always --disable-shared, the test was removed, and we
20666  # assume the GNU/Linux dynamic linker is in use.
20667  dynamic_linker='GNU/Linux ld.so'
20668  ;;
20669
20670knetbsd*-gnu)
20671  version_type=linux
20672  need_lib_prefix=no
20673  need_version=no
20674  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20675  soname_spec='${libname}${release}${shared_ext}$major'
20676  shlibpath_var=LD_LIBRARY_PATH
20677  shlibpath_overrides_runpath=no
20678  hardcode_into_libs=yes
20679  dynamic_linker='GNU ld.so'
20680  ;;
20681
20682netbsd*)
20683  version_type=sunos
20684  need_lib_prefix=no
20685  need_version=no
20686  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20687    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20688    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20689    dynamic_linker='NetBSD (a.out) ld.so'
20690  else
20691    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20692    soname_spec='${libname}${release}${shared_ext}$major'
20693    dynamic_linker='NetBSD ld.elf_so'
20694  fi
20695  shlibpath_var=LD_LIBRARY_PATH
20696  shlibpath_overrides_runpath=yes
20697  hardcode_into_libs=yes
20698  ;;
20699
20700newsos6)
20701  version_type=linux
20702  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20703  shlibpath_var=LD_LIBRARY_PATH
20704  shlibpath_overrides_runpath=yes
20705  ;;
20706
20707nto-qnx*)
20708  version_type=linux
20709  need_lib_prefix=no
20710  need_version=no
20711  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20712  soname_spec='${libname}${release}${shared_ext}$major'
20713  shlibpath_var=LD_LIBRARY_PATH
20714  shlibpath_overrides_runpath=yes
20715  ;;
20716
20717openbsd*)
20718  version_type=sunos
20719  sys_lib_dlsearch_path_spec="/usr/lib"
20720  need_lib_prefix=no
20721  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20722  case $host_os in
20723    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20724    *)                         need_version=no  ;;
20725  esac
20726  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20727  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20728  shlibpath_var=LD_LIBRARY_PATH
20729  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20730    case $host_os in
20731      openbsd2.[89] | openbsd2.[89].*)
20732	shlibpath_overrides_runpath=no
20733	;;
20734      *)
20735	shlibpath_overrides_runpath=yes
20736	;;
20737      esac
20738  else
20739    shlibpath_overrides_runpath=yes
20740  fi
20741  ;;
20742
20743os2*)
20744  libname_spec='$name'
20745  shrext_cmds=".dll"
20746  need_lib_prefix=no
20747  library_names_spec='$libname${shared_ext} $libname.a'
20748  dynamic_linker='OS/2 ld.exe'
20749  shlibpath_var=LIBPATH
20750  ;;
20751
20752osf3* | osf4* | osf5*)
20753  version_type=osf
20754  need_lib_prefix=no
20755  need_version=no
20756  soname_spec='${libname}${release}${shared_ext}$major'
20757  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20758  shlibpath_var=LD_LIBRARY_PATH
20759  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20760  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20761  ;;
20762
20763solaris*)
20764  version_type=linux
20765  need_lib_prefix=no
20766  need_version=no
20767  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20768  soname_spec='${libname}${release}${shared_ext}$major'
20769  shlibpath_var=LD_LIBRARY_PATH
20770  shlibpath_overrides_runpath=yes
20771  hardcode_into_libs=yes
20772  # ldd complains unless libraries are executable
20773  postinstall_cmds='chmod +x $lib'
20774  ;;
20775
20776sunos4*)
20777  version_type=sunos
20778  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20779  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20780  shlibpath_var=LD_LIBRARY_PATH
20781  shlibpath_overrides_runpath=yes
20782  if test "$with_gnu_ld" = yes; then
20783    need_lib_prefix=no
20784  fi
20785  need_version=yes
20786  ;;
20787
20788sysv4 | sysv4.3*)
20789  version_type=linux
20790  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20791  soname_spec='${libname}${release}${shared_ext}$major'
20792  shlibpath_var=LD_LIBRARY_PATH
20793  case $host_vendor in
20794    sni)
20795      shlibpath_overrides_runpath=no
20796      need_lib_prefix=no
20797      export_dynamic_flag_spec='${wl}-Blargedynsym'
20798      runpath_var=LD_RUN_PATH
20799      ;;
20800    siemens)
20801      need_lib_prefix=no
20802      ;;
20803    motorola)
20804      need_lib_prefix=no
20805      need_version=no
20806      shlibpath_overrides_runpath=no
20807      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20808      ;;
20809  esac
20810  ;;
20811
20812sysv4*MP*)
20813  if test -d /usr/nec ;then
20814    version_type=linux
20815    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20816    soname_spec='$libname${shared_ext}.$major'
20817    shlibpath_var=LD_LIBRARY_PATH
20818  fi
20819  ;;
20820
20821sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20822  version_type=freebsd-elf
20823  need_lib_prefix=no
20824  need_version=no
20825  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20826  soname_spec='${libname}${release}${shared_ext}$major'
20827  shlibpath_var=LD_LIBRARY_PATH
20828  hardcode_into_libs=yes
20829  if test "$with_gnu_ld" = yes; then
20830    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20831    shlibpath_overrides_runpath=no
20832  else
20833    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20834    shlibpath_overrides_runpath=yes
20835    case $host_os in
20836      sco3.2v5*)
20837        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20838	;;
20839    esac
20840  fi
20841  sys_lib_dlsearch_path_spec='/usr/lib'
20842  ;;
20843
20844uts4*)
20845  version_type=linux
20846  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20847  soname_spec='${libname}${release}${shared_ext}$major'
20848  shlibpath_var=LD_LIBRARY_PATH
20849  ;;
20850
20851*)
20852  dynamic_linker=no
20853  ;;
20854esac
20855{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20856echo "${ECHO_T}$dynamic_linker" >&6; }
20857test "$dynamic_linker" = no && can_build_shared=no
20858
20859variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20860if test "$GCC" = yes; then
20861  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20862fi
20863
20864{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20865echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20866hardcode_action_CXX=
20867if test -n "$hardcode_libdir_flag_spec_CXX" || \
20868   test -n "$runpath_var_CXX" || \
20869   test "X$hardcode_automatic_CXX" = "Xyes" ; then
20870
20871  # We can hardcode non-existant directories.
20872  if test "$hardcode_direct_CXX" != no &&
20873     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20874     # have to relink, otherwise we might link with an installed library
20875     # when we should be linking with a yet-to-be-installed one
20876     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20877     test "$hardcode_minus_L_CXX" != no; then
20878    # Linking always hardcodes the temporary library directory.
20879    hardcode_action_CXX=relink
20880  else
20881    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20882    hardcode_action_CXX=immediate
20883  fi
20884else
20885  # We cannot hardcode anything, or else we can only hardcode existing
20886  # directories.
20887  hardcode_action_CXX=unsupported
20888fi
20889{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20890echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20891
20892if test "$hardcode_action_CXX" = relink; then
20893  # Fast installation is not supported
20894  enable_fast_install=no
20895elif test "$shlibpath_overrides_runpath" = yes ||
20896     test "$enable_shared" = no; then
20897  # Fast installation is not necessary
20898  enable_fast_install=needless
20899fi
20900
20901
20902# The else clause should only fire when bootstrapping the
20903# libtool distribution, otherwise you forgot to ship ltmain.sh
20904# with your package, and you will get complaints that there are
20905# no rules to generate ltmain.sh.
20906if test -f "$ltmain"; then
20907  # See if we are running on zsh, and set the options which allow our commands through
20908  # without removal of \ escapes.
20909  if test -n "${ZSH_VERSION+set}" ; then
20910    setopt NO_GLOB_SUBST
20911  fi
20912  # Now quote all the things that may contain metacharacters while being
20913  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20914  # variables and quote the copies for generation of the libtool script.
20915  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20916    SED SHELL STRIP \
20917    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20918    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20919    deplibs_check_method reload_flag reload_cmds need_locks \
20920    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20921    lt_cv_sys_global_symbol_to_c_name_address \
20922    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20923    old_postinstall_cmds old_postuninstall_cmds \
20924    compiler_CXX \
20925    CC_CXX \
20926    LD_CXX \
20927    lt_prog_compiler_wl_CXX \
20928    lt_prog_compiler_pic_CXX \
20929    lt_prog_compiler_static_CXX \
20930    lt_prog_compiler_no_builtin_flag_CXX \
20931    export_dynamic_flag_spec_CXX \
20932    thread_safe_flag_spec_CXX \
20933    whole_archive_flag_spec_CXX \
20934    enable_shared_with_static_runtimes_CXX \
20935    old_archive_cmds_CXX \
20936    old_archive_from_new_cmds_CXX \
20937    predep_objects_CXX \
20938    postdep_objects_CXX \
20939    predeps_CXX \
20940    postdeps_CXX \
20941    compiler_lib_search_path_CXX \
20942    archive_cmds_CXX \
20943    archive_expsym_cmds_CXX \
20944    postinstall_cmds_CXX \
20945    postuninstall_cmds_CXX \
20946    old_archive_from_expsyms_cmds_CXX \
20947    allow_undefined_flag_CXX \
20948    no_undefined_flag_CXX \
20949    export_symbols_cmds_CXX \
20950    hardcode_libdir_flag_spec_CXX \
20951    hardcode_libdir_flag_spec_ld_CXX \
20952    hardcode_libdir_separator_CXX \
20953    hardcode_automatic_CXX \
20954    module_cmds_CXX \
20955    module_expsym_cmds_CXX \
20956    lt_cv_prog_compiler_c_o_CXX \
20957    exclude_expsyms_CXX \
20958    include_expsyms_CXX; do
20959
20960    case $var in
20961    old_archive_cmds_CXX | \
20962    old_archive_from_new_cmds_CXX | \
20963    archive_cmds_CXX | \
20964    archive_expsym_cmds_CXX | \
20965    module_cmds_CXX | \
20966    module_expsym_cmds_CXX | \
20967    old_archive_from_expsyms_cmds_CXX | \
20968    export_symbols_cmds_CXX | \
20969    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20970    postinstall_cmds | postuninstall_cmds | \
20971    old_postinstall_cmds | old_postuninstall_cmds | \
20972    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20973      # Double-quote double-evaled strings.
20974      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20975      ;;
20976    *)
20977      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20978      ;;
20979    esac
20980  done
20981
20982  case $lt_echo in
20983  *'\$0 --fallback-echo"')
20984    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20985    ;;
20986  esac
20987
20988cfgfile="$ofile"
20989
20990  cat <<__EOF__ >> "$cfgfile"
20991# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20992
20993# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20994
20995# Shell to use when invoking shell scripts.
20996SHELL=$lt_SHELL
20997
20998# Whether or not to build shared libraries.
20999build_libtool_libs=$enable_shared
21000
21001# Whether or not to build static libraries.
21002build_old_libs=$enable_static
21003
21004# Whether or not to add -lc for building shared libraries.
21005build_libtool_need_lc=$archive_cmds_need_lc_CXX
21006
21007# Whether or not to disallow shared libs when runtime libs are static
21008allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21009
21010# Whether or not to optimize for fast installation.
21011fast_install=$enable_fast_install
21012
21013# The host system.
21014host_alias=$host_alias
21015host=$host
21016host_os=$host_os
21017
21018# The build system.
21019build_alias=$build_alias
21020build=$build
21021build_os=$build_os
21022
21023# An echo program that does not interpret backslashes.
21024echo=$lt_echo
21025
21026# The archiver.
21027AR=$lt_AR
21028AR_FLAGS=$lt_AR_FLAGS
21029
21030# A C compiler.
21031LTCC=$lt_LTCC
21032
21033# LTCC compiler flags.
21034LTCFLAGS=$lt_LTCFLAGS
21035
21036# A language-specific compiler.
21037CC=$lt_compiler_CXX
21038
21039# Is the compiler the GNU C compiler?
21040with_gcc=$GCC_CXX
21041
21042# An ERE matcher.
21043EGREP=$lt_EGREP
21044
21045# The linker used to build libraries.
21046LD=$lt_LD_CXX
21047
21048# Whether we need hard or soft links.
21049LN_S=$lt_LN_S
21050
21051# A BSD-compatible nm program.
21052NM=$lt_NM
21053
21054# A symbol stripping program
21055STRIP=$lt_STRIP
21056
21057# Used to examine libraries when file_magic_cmd begins "file"
21058MAGIC_CMD=$MAGIC_CMD
21059
21060# Used on cygwin: DLL creation program.
21061DLLTOOL="$DLLTOOL"
21062
21063# Used on cygwin: object dumper.
21064OBJDUMP="$OBJDUMP"
21065
21066# Used on cygwin: assembler.
21067AS="$AS"
21068
21069# The name of the directory that contains temporary libtool files.
21070objdir=$objdir
21071
21072# How to create reloadable object files.
21073reload_flag=$lt_reload_flag
21074reload_cmds=$lt_reload_cmds
21075
21076# How to pass a linker flag through the compiler.
21077wl=$lt_lt_prog_compiler_wl_CXX
21078
21079# Object file suffix (normally "o").
21080objext="$ac_objext"
21081
21082# Old archive suffix (normally "a").
21083libext="$libext"
21084
21085# Shared library suffix (normally ".so").
21086shrext_cmds='$shrext_cmds'
21087
21088# Executable file suffix (normally "").
21089exeext="$exeext"
21090
21091# Additional compiler flags for building library objects.
21092pic_flag=$lt_lt_prog_compiler_pic_CXX
21093pic_mode=$pic_mode
21094
21095# What is the maximum length of a command?
21096max_cmd_len=$lt_cv_sys_max_cmd_len
21097
21098# Does compiler simultaneously support -c and -o options?
21099compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21100
21101# Must we lock files when doing compilation?
21102need_locks=$lt_need_locks
21103
21104# Do we need the lib prefix for modules?
21105need_lib_prefix=$need_lib_prefix
21106
21107# Do we need a version for libraries?
21108need_version=$need_version
21109
21110# Whether dlopen is supported.
21111dlopen_support=$enable_dlopen
21112
21113# Whether dlopen of programs is supported.
21114dlopen_self=$enable_dlopen_self
21115
21116# Whether dlopen of statically linked programs is supported.
21117dlopen_self_static=$enable_dlopen_self_static
21118
21119# Compiler flag to prevent dynamic linking.
21120link_static_flag=$lt_lt_prog_compiler_static_CXX
21121
21122# Compiler flag to turn off builtin functions.
21123no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21124
21125# Compiler flag to allow reflexive dlopens.
21126export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21127
21128# Compiler flag to generate shared objects directly from archives.
21129whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21130
21131# Compiler flag to generate thread-safe objects.
21132thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21133
21134# Library versioning type.
21135version_type=$version_type
21136
21137# Format of library name prefix.
21138libname_spec=$lt_libname_spec
21139
21140# List of archive names.  First name is the real one, the rest are links.
21141# The last name is the one that the linker finds with -lNAME.
21142library_names_spec=$lt_library_names_spec
21143
21144# The coded name of the library, if different from the real name.
21145soname_spec=$lt_soname_spec
21146
21147# Commands used to build and install an old-style archive.
21148RANLIB=$lt_RANLIB
21149old_archive_cmds=$lt_old_archive_cmds_CXX
21150old_postinstall_cmds=$lt_old_postinstall_cmds
21151old_postuninstall_cmds=$lt_old_postuninstall_cmds
21152
21153# Create an old-style archive from a shared archive.
21154old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21155
21156# Create a temporary old-style archive to link instead of a shared archive.
21157old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21158
21159# Commands used to build and install a shared archive.
21160archive_cmds=$lt_archive_cmds_CXX
21161archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21162postinstall_cmds=$lt_postinstall_cmds
21163postuninstall_cmds=$lt_postuninstall_cmds
21164
21165# Commands used to build a loadable module (assumed same as above if empty)
21166module_cmds=$lt_module_cmds_CXX
21167module_expsym_cmds=$lt_module_expsym_cmds_CXX
21168
21169# Commands to strip libraries.
21170old_striplib=$lt_old_striplib
21171striplib=$lt_striplib
21172
21173# Dependencies to place before the objects being linked to create a
21174# shared library.
21175predep_objects=$lt_predep_objects_CXX
21176
21177# Dependencies to place after the objects being linked to create a
21178# shared library.
21179postdep_objects=$lt_postdep_objects_CXX
21180
21181# Dependencies to place before the objects being linked to create a
21182# shared library.
21183predeps=$lt_predeps_CXX
21184
21185# Dependencies to place after the objects being linked to create a
21186# shared library.
21187postdeps=$lt_postdeps_CXX
21188
21189# The library search path used internally by the compiler when linking
21190# a shared library.
21191compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21192
21193# Method to check whether dependent libraries are shared objects.
21194deplibs_check_method=$lt_deplibs_check_method
21195
21196# Command to use when deplibs_check_method == file_magic.
21197file_magic_cmd=$lt_file_magic_cmd
21198
21199# Flag that allows shared libraries with undefined symbols to be built.
21200allow_undefined_flag=$lt_allow_undefined_flag_CXX
21201
21202# Flag that forces no undefined symbols.
21203no_undefined_flag=$lt_no_undefined_flag_CXX
21204
21205# Commands used to finish a libtool library installation in a directory.
21206finish_cmds=$lt_finish_cmds
21207
21208# Same as above, but a single script fragment to be evaled but not shown.
21209finish_eval=$lt_finish_eval
21210
21211# Take the output of nm and produce a listing of raw symbols and C names.
21212global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21213
21214# Transform the output of nm in a proper C declaration
21215global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21216
21217# Transform the output of nm in a C name address pair
21218global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21219
21220# This is the shared library runtime path variable.
21221runpath_var=$runpath_var
21222
21223# This is the shared library path variable.
21224shlibpath_var=$shlibpath_var
21225
21226# Is shlibpath searched before the hard-coded library search path?
21227shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21228
21229# How to hardcode a shared library path into an executable.
21230hardcode_action=$hardcode_action_CXX
21231
21232# Whether we should hardcode library paths into libraries.
21233hardcode_into_libs=$hardcode_into_libs
21234
21235# Flag to hardcode \$libdir into a binary during linking.
21236# This must work even if \$libdir does not exist.
21237hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21238
21239# If ld is used when linking, flag to hardcode \$libdir into
21240# a binary during linking. This must work even if \$libdir does
21241# not exist.
21242hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21243
21244# Whether we need a single -rpath flag with a separated argument.
21245hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21246
21247# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21248# resulting binary.
21249hardcode_direct=$hardcode_direct_CXX
21250
21251# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21252# resulting binary.
21253hardcode_minus_L=$hardcode_minus_L_CXX
21254
21255# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21256# the resulting binary.
21257hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21258
21259# Set to yes if building a shared library automatically hardcodes DIR into the library
21260# and all subsequent libraries and executables linked against it.
21261hardcode_automatic=$hardcode_automatic_CXX
21262
21263# Variables whose values should be saved in libtool wrapper scripts and
21264# restored at relink time.
21265variables_saved_for_relink="$variables_saved_for_relink"
21266
21267# Whether libtool must link a program against all its dependency libraries.
21268link_all_deplibs=$link_all_deplibs_CXX
21269
21270# Compile-time system search path for libraries
21271sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21272
21273# Run-time system search path for libraries
21274sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21275
21276# Fix the shell variable \$srcfile for the compiler.
21277fix_srcfile_path="$fix_srcfile_path_CXX"
21278
21279# Set to yes if exported symbols are required.
21280always_export_symbols=$always_export_symbols_CXX
21281
21282# The commands to list exported symbols.
21283export_symbols_cmds=$lt_export_symbols_cmds_CXX
21284
21285# The commands to extract the exported symbol list from a shared archive.
21286extract_expsyms_cmds=$lt_extract_expsyms_cmds
21287
21288# Symbols that should not be listed in the preloaded symbols.
21289exclude_expsyms=$lt_exclude_expsyms_CXX
21290
21291# Symbols that must always be exported.
21292include_expsyms=$lt_include_expsyms_CXX
21293
21294# ### END LIBTOOL TAG CONFIG: $tagname
21295
21296__EOF__
21297
21298
21299else
21300  # If there is no Makefile yet, we rely on a make rule to execute
21301  # `config.status --recheck' to rerun these tests and create the
21302  # libtool script then.
21303  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21304  if test -f "$ltmain_in"; then
21305    test -f Makefile && make "$ltmain"
21306  fi
21307fi
21308
21309
21310ac_ext=c
21311ac_cpp='$CPP $CPPFLAGS'
21312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21314ac_compiler_gnu=$ac_cv_c_compiler_gnu
21315
21316CC=$lt_save_CC
21317LDCXX=$LD
21318LD=$lt_save_LD
21319GCC=$lt_save_GCC
21320with_gnu_ldcxx=$with_gnu_ld
21321with_gnu_ld=$lt_save_with_gnu_ld
21322lt_cv_path_LDCXX=$lt_cv_path_LD
21323lt_cv_path_LD=$lt_save_path_LD
21324lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21325lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21326
21327	else
21328	  tagname=""
21329	fi
21330	;;
21331
21332      F77)
21333	if test -n "$F77" && test "X$F77" != "Xno"; then
21334
21335ac_ext=f
21336ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21337ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21338ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21339
21340
21341archive_cmds_need_lc_F77=no
21342allow_undefined_flag_F77=
21343always_export_symbols_F77=no
21344archive_expsym_cmds_F77=
21345export_dynamic_flag_spec_F77=
21346hardcode_direct_F77=no
21347hardcode_libdir_flag_spec_F77=
21348hardcode_libdir_flag_spec_ld_F77=
21349hardcode_libdir_separator_F77=
21350hardcode_minus_L_F77=no
21351hardcode_automatic_F77=no
21352module_cmds_F77=
21353module_expsym_cmds_F77=
21354link_all_deplibs_F77=unknown
21355old_archive_cmds_F77=$old_archive_cmds
21356no_undefined_flag_F77=
21357whole_archive_flag_spec_F77=
21358enable_shared_with_static_runtimes_F77=no
21359
21360# Source file extension for f77 test sources.
21361ac_ext=f
21362
21363# Object file extension for compiled f77 test sources.
21364objext=o
21365objext_F77=$objext
21366
21367# Code to be used in simple compile tests
21368lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21369
21370# Code to be used in simple link tests
21371lt_simple_link_test_code="      program t\n      end\n"
21372
21373# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21374
21375# If no C compiler was specified, use CC.
21376LTCC=${LTCC-"$CC"}
21377
21378# If no C compiler flags were specified, use CFLAGS.
21379LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21380
21381# Allow CC to be a program name with arguments.
21382compiler=$CC
21383
21384
21385# save warnings/boilerplate of simple test code
21386ac_outfile=conftest.$ac_objext
21387printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21388eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21389_lt_compiler_boilerplate=`cat conftest.err`
21390$rm conftest*
21391
21392ac_outfile=conftest.$ac_objext
21393printf "$lt_simple_link_test_code" >conftest.$ac_ext
21394eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21395_lt_linker_boilerplate=`cat conftest.err`
21396$rm conftest*
21397
21398
21399# Allow CC to be a program name with arguments.
21400lt_save_CC="$CC"
21401CC=${F77-"f77"}
21402compiler=$CC
21403compiler_F77=$CC
21404for cc_temp in $compiler""; do
21405  case $cc_temp in
21406    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21407    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21408    \-*) ;;
21409    *) break;;
21410  esac
21411done
21412cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21413
21414
21415{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21416echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21417{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21418echo "${ECHO_T}$can_build_shared" >&6; }
21419
21420{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21421echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21422test "$can_build_shared" = "no" && enable_shared=no
21423
21424# On AIX, shared libraries and static libraries use the same namespace, and
21425# are all built from PIC.
21426case $host_os in
21427aix3*)
21428  test "$enable_shared" = yes && enable_static=no
21429  if test -n "$RANLIB"; then
21430    archive_cmds="$archive_cmds~\$RANLIB \$lib"
21431    postinstall_cmds='$RANLIB $lib'
21432  fi
21433  ;;
21434aix4* | aix5*)
21435  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21436    test "$enable_shared" = yes && enable_static=no
21437  fi
21438  ;;
21439esac
21440{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21441echo "${ECHO_T}$enable_shared" >&6; }
21442
21443{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21444echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21445# Make sure either enable_shared or enable_static is yes.
21446test "$enable_shared" = yes || enable_static=yes
21447{ echo "$as_me:$LINENO: result: $enable_static" >&5
21448echo "${ECHO_T}$enable_static" >&6; }
21449
21450GCC_F77="$G77"
21451LD_F77="$LD"
21452
21453lt_prog_compiler_wl_F77=
21454lt_prog_compiler_pic_F77=
21455lt_prog_compiler_static_F77=
21456
21457{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21458echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21459
21460  if test "$GCC" = yes; then
21461    lt_prog_compiler_wl_F77='-Wl,'
21462    lt_prog_compiler_static_F77='-static'
21463
21464    case $host_os in
21465      aix*)
21466      # All AIX code is PIC.
21467      if test "$host_cpu" = ia64; then
21468	# AIX 5 now supports IA64 processor
21469	lt_prog_compiler_static_F77='-Bstatic'
21470      fi
21471      ;;
21472
21473    amigaos*)
21474      # FIXME: we need at least 68020 code to build shared libraries, but
21475      # adding the `-m68020' flag to GCC prevents building anything better,
21476      # like `-m68040'.
21477      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21478      ;;
21479
21480    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21481      # PIC is the default for these OSes.
21482      ;;
21483
21484    mingw* | pw32* | os2*)
21485      # This hack is so that the source file can tell whether it is being
21486      # built for inclusion in a dll (and should export symbols for example).
21487      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21488      ;;
21489
21490    darwin* | rhapsody*)
21491      # PIC is the default on this platform
21492      # Common symbols not allowed in MH_DYLIB files
21493      lt_prog_compiler_pic_F77='-fno-common'
21494      ;;
21495
21496    interix3*)
21497      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21498      # Instead, we relocate shared libraries at runtime.
21499      ;;
21500
21501    msdosdjgpp*)
21502      # Just because we use GCC doesn't mean we suddenly get shared libraries
21503      # on systems that don't support them.
21504      lt_prog_compiler_can_build_shared_F77=no
21505      enable_shared=no
21506      ;;
21507
21508    sysv4*MP*)
21509      if test -d /usr/nec; then
21510	lt_prog_compiler_pic_F77=-Kconform_pic
21511      fi
21512      ;;
21513
21514    hpux*)
21515      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21516      # not for PA HP-UX.
21517      case $host_cpu in
21518      hppa*64*|ia64*)
21519	# +Z the default
21520	;;
21521      *)
21522	lt_prog_compiler_pic_F77='-fPIC'
21523	;;
21524      esac
21525      ;;
21526
21527    *)
21528      lt_prog_compiler_pic_F77='-fPIC'
21529      ;;
21530    esac
21531  else
21532    # PORTME Check for flag to pass linker flags through the system compiler.
21533    case $host_os in
21534    aix*)
21535      lt_prog_compiler_wl_F77='-Wl,'
21536      if test "$host_cpu" = ia64; then
21537	# AIX 5 now supports IA64 processor
21538	lt_prog_compiler_static_F77='-Bstatic'
21539      else
21540	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21541      fi
21542      ;;
21543      darwin*)
21544        # PIC is the default on this platform
21545        # Common symbols not allowed in MH_DYLIB files
21546       case $cc_basename in
21547         xlc*)
21548         lt_prog_compiler_pic_F77='-qnocommon'
21549         lt_prog_compiler_wl_F77='-Wl,'
21550         ;;
21551       esac
21552       ;;
21553
21554    mingw* | pw32* | os2*)
21555      # This hack is so that the source file can tell whether it is being
21556      # built for inclusion in a dll (and should export symbols for example).
21557      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21558      ;;
21559
21560    hpux9* | hpux10* | hpux11*)
21561      lt_prog_compiler_wl_F77='-Wl,'
21562      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21563      # not for PA HP-UX.
21564      case $host_cpu in
21565      hppa*64*|ia64*)
21566	# +Z the default
21567	;;
21568      *)
21569	lt_prog_compiler_pic_F77='+Z'
21570	;;
21571      esac
21572      # Is there a better lt_prog_compiler_static that works with the bundled CC?
21573      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21574      ;;
21575
21576    irix5* | irix6* | nonstopux*)
21577      lt_prog_compiler_wl_F77='-Wl,'
21578      # PIC (with -KPIC) is the default.
21579      lt_prog_compiler_static_F77='-non_shared'
21580      ;;
21581
21582    newsos6)
21583      lt_prog_compiler_pic_F77='-KPIC'
21584      lt_prog_compiler_static_F77='-Bstatic'
21585      ;;
21586
21587    linux*)
21588      case $cc_basename in
21589      icc* | ecc*)
21590	lt_prog_compiler_wl_F77='-Wl,'
21591	lt_prog_compiler_pic_F77='-KPIC'
21592	lt_prog_compiler_static_F77='-static'
21593        ;;
21594      pgcc* | pgf77* | pgf90* | pgf95*)
21595        # Portland Group compilers (*not* the Pentium gcc compiler,
21596	# which looks to be a dead project)
21597	lt_prog_compiler_wl_F77='-Wl,'
21598	lt_prog_compiler_pic_F77='-fpic'
21599	lt_prog_compiler_static_F77='-Bstatic'
21600        ;;
21601      ccc*)
21602        lt_prog_compiler_wl_F77='-Wl,'
21603        # All Alpha code is PIC.
21604        lt_prog_compiler_static_F77='-non_shared'
21605        ;;
21606      esac
21607      ;;
21608
21609    osf3* | osf4* | osf5*)
21610      lt_prog_compiler_wl_F77='-Wl,'
21611      # All OSF/1 code is PIC.
21612      lt_prog_compiler_static_F77='-non_shared'
21613      ;;
21614
21615    solaris*)
21616      lt_prog_compiler_pic_F77='-KPIC'
21617      lt_prog_compiler_static_F77='-Bstatic'
21618      case $cc_basename in
21619      f77* | f90* | f95*)
21620	lt_prog_compiler_wl_F77='-Qoption ld ';;
21621      *)
21622	lt_prog_compiler_wl_F77='-Wl,';;
21623      esac
21624      ;;
21625
21626    sunos4*)
21627      lt_prog_compiler_wl_F77='-Qoption ld '
21628      lt_prog_compiler_pic_F77='-PIC'
21629      lt_prog_compiler_static_F77='-Bstatic'
21630      ;;
21631
21632    sysv4 | sysv4.2uw2* | sysv4.3*)
21633      lt_prog_compiler_wl_F77='-Wl,'
21634      lt_prog_compiler_pic_F77='-KPIC'
21635      lt_prog_compiler_static_F77='-Bstatic'
21636      ;;
21637
21638    sysv4*MP*)
21639      if test -d /usr/nec ;then
21640	lt_prog_compiler_pic_F77='-Kconform_pic'
21641	lt_prog_compiler_static_F77='-Bstatic'
21642      fi
21643      ;;
21644
21645    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21646      lt_prog_compiler_wl_F77='-Wl,'
21647      lt_prog_compiler_pic_F77='-KPIC'
21648      lt_prog_compiler_static_F77='-Bstatic'
21649      ;;
21650
21651    unicos*)
21652      lt_prog_compiler_wl_F77='-Wl,'
21653      lt_prog_compiler_can_build_shared_F77=no
21654      ;;
21655
21656    uts4*)
21657      lt_prog_compiler_pic_F77='-pic'
21658      lt_prog_compiler_static_F77='-Bstatic'
21659      ;;
21660
21661    *)
21662      lt_prog_compiler_can_build_shared_F77=no
21663      ;;
21664    esac
21665  fi
21666
21667{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21668echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21669
21670#
21671# Check to make sure the PIC flag actually works.
21672#
21673if test -n "$lt_prog_compiler_pic_F77"; then
21674
21675{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21676echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21677if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21678  echo $ECHO_N "(cached) $ECHO_C" >&6
21679else
21680  lt_prog_compiler_pic_works_F77=no
21681  ac_outfile=conftest.$ac_objext
21682   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21683   lt_compiler_flag="$lt_prog_compiler_pic_F77"
21684   # Insert the option either (1) after the last *FLAGS variable, or
21685   # (2) before a word containing "conftest.", or (3) at the end.
21686   # Note that $ac_compile itself does not contain backslashes and begins
21687   # with a dollar sign (not a hyphen), so the echo should work correctly.
21688   # The option is referenced via a variable to avoid confusing sed.
21689   lt_compile=`echo "$ac_compile" | $SED \
21690   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21691   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21692   -e 's:$: $lt_compiler_flag:'`
21693   (eval echo "\"\$as_me:21693: $lt_compile\"" >&5)
21694   (eval "$lt_compile" 2>conftest.err)
21695   ac_status=$?
21696   cat conftest.err >&5
21697   echo "$as_me:21697: \$? = $ac_status" >&5
21698   if (exit $ac_status) && test -s "$ac_outfile"; then
21699     # The compiler can only warn and ignore the option if not recognized
21700     # So say no if there are warnings other than the usual output.
21701     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21702     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21703     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21704       lt_prog_compiler_pic_works_F77=yes
21705     fi
21706   fi
21707   $rm conftest*
21708
21709fi
21710{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21711echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21712
21713if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21714    case $lt_prog_compiler_pic_F77 in
21715     "" | " "*) ;;
21716     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21717     esac
21718else
21719    lt_prog_compiler_pic_F77=
21720     lt_prog_compiler_can_build_shared_F77=no
21721fi
21722
21723fi
21724case $host_os in
21725  # For platforms which do not support PIC, -DPIC is meaningless:
21726  *djgpp*)
21727    lt_prog_compiler_pic_F77=
21728    ;;
21729  *)
21730    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21731    ;;
21732esac
21733
21734#
21735# Check to make sure the static flag actually works.
21736#
21737wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21738{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21739echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21740if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21741  echo $ECHO_N "(cached) $ECHO_C" >&6
21742else
21743  lt_prog_compiler_static_works_F77=no
21744   save_LDFLAGS="$LDFLAGS"
21745   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21746   printf "$lt_simple_link_test_code" > conftest.$ac_ext
21747   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21748     # The linker can only warn and ignore the option if not recognized
21749     # So say no if there are warnings
21750     if test -s conftest.err; then
21751       # Append any errors to the config.log.
21752       cat conftest.err 1>&5
21753       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21754       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21755       if diff conftest.exp conftest.er2 >/dev/null; then
21756         lt_prog_compiler_static_works_F77=yes
21757       fi
21758     else
21759       lt_prog_compiler_static_works_F77=yes
21760     fi
21761   fi
21762   $rm conftest*
21763   LDFLAGS="$save_LDFLAGS"
21764
21765fi
21766{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21767echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21768
21769if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21770    :
21771else
21772    lt_prog_compiler_static_F77=
21773fi
21774
21775
21776{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21777echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21778if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21779  echo $ECHO_N "(cached) $ECHO_C" >&6
21780else
21781  lt_cv_prog_compiler_c_o_F77=no
21782   $rm -r conftest 2>/dev/null
21783   mkdir conftest
21784   cd conftest
21785   mkdir out
21786   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21787
21788   lt_compiler_flag="-o out/conftest2.$ac_objext"
21789   # Insert the option either (1) after the last *FLAGS variable, or
21790   # (2) before a word containing "conftest.", or (3) at the end.
21791   # Note that $ac_compile itself does not contain backslashes and begins
21792   # with a dollar sign (not a hyphen), so the echo should work correctly.
21793   lt_compile=`echo "$ac_compile" | $SED \
21794   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21795   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21796   -e 's:$: $lt_compiler_flag:'`
21797   (eval echo "\"\$as_me:21797: $lt_compile\"" >&5)
21798   (eval "$lt_compile" 2>out/conftest.err)
21799   ac_status=$?
21800   cat out/conftest.err >&5
21801   echo "$as_me:21801: \$? = $ac_status" >&5
21802   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21803   then
21804     # The compiler can only warn and ignore the option if not recognized
21805     # So say no if there are warnings
21806     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21807     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21808     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21809       lt_cv_prog_compiler_c_o_F77=yes
21810     fi
21811   fi
21812   chmod u+w . 2>&5
21813   $rm conftest*
21814   # SGI C++ compiler will create directory out/ii_files/ for
21815   # template instantiation
21816   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21817   $rm out/* && rmdir out
21818   cd ..
21819   rmdir conftest
21820   $rm conftest*
21821
21822fi
21823{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21824echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21825
21826
21827hard_links="nottested"
21828if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21829  # do not overwrite the value of need_locks provided by the user
21830  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21831echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21832  hard_links=yes
21833  $rm conftest*
21834  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21835  touch conftest.a
21836  ln conftest.a conftest.b 2>&5 || hard_links=no
21837  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21838  { echo "$as_me:$LINENO: result: $hard_links" >&5
21839echo "${ECHO_T}$hard_links" >&6; }
21840  if test "$hard_links" = no; then
21841    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21842echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21843    need_locks=warn
21844  fi
21845else
21846  need_locks=no
21847fi
21848
21849{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21850echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21851
21852  runpath_var=
21853  allow_undefined_flag_F77=
21854  enable_shared_with_static_runtimes_F77=no
21855  archive_cmds_F77=
21856  archive_expsym_cmds_F77=
21857  old_archive_From_new_cmds_F77=
21858  old_archive_from_expsyms_cmds_F77=
21859  export_dynamic_flag_spec_F77=
21860  whole_archive_flag_spec_F77=
21861  thread_safe_flag_spec_F77=
21862  hardcode_libdir_flag_spec_F77=
21863  hardcode_libdir_flag_spec_ld_F77=
21864  hardcode_libdir_separator_F77=
21865  hardcode_direct_F77=no
21866  hardcode_minus_L_F77=no
21867  hardcode_shlibpath_var_F77=unsupported
21868  link_all_deplibs_F77=unknown
21869  hardcode_automatic_F77=no
21870  module_cmds_F77=
21871  module_expsym_cmds_F77=
21872  always_export_symbols_F77=no
21873  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21874  # include_expsyms should be a list of space-separated symbols to be *always*
21875  # included in the symbol list
21876  include_expsyms_F77=
21877  # exclude_expsyms can be an extended regexp of symbols to exclude
21878  # it will be wrapped by ` (' and `)$', so one must not match beginning or
21879  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21880  # as well as any symbol that contains `d'.
21881  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21882  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21883  # platforms (ab)use it in PIC code, but their linkers get confused if
21884  # the symbol is explicitly referenced.  Since portable code cannot
21885  # rely on this symbol name, it's probably fine to never include it in
21886  # preloaded symbol tables.
21887  extract_expsyms_cmds=
21888  # Just being paranoid about ensuring that cc_basename is set.
21889  for cc_temp in $compiler""; do
21890  case $cc_temp in
21891    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21892    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21893    \-*) ;;
21894    *) break;;
21895  esac
21896done
21897cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21898
21899  case $host_os in
21900  cygwin* | mingw* | pw32*)
21901    # FIXME: the MSVC++ port hasn't been tested in a loooong time
21902    # When not using gcc, we currently assume that we are using
21903    # Microsoft Visual C++.
21904    if test "$GCC" != yes; then
21905      with_gnu_ld=no
21906    fi
21907    ;;
21908  interix*)
21909    # we just hope/assume this is gcc and not c89 (= MSVC++)
21910    with_gnu_ld=yes
21911    ;;
21912  openbsd*)
21913    with_gnu_ld=no
21914    ;;
21915  esac
21916
21917  ld_shlibs_F77=yes
21918  if test "$with_gnu_ld" = yes; then
21919    # If archive_cmds runs LD, not CC, wlarc should be empty
21920    wlarc='${wl}'
21921
21922    # Set some defaults for GNU ld with shared library support. These
21923    # are reset later if shared libraries are not supported. Putting them
21924    # here allows them to be overridden if necessary.
21925    runpath_var=LD_RUN_PATH
21926    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21927    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21928    # ancient GNU ld didn't support --whole-archive et. al.
21929    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21930	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21931      else
21932  	whole_archive_flag_spec_F77=
21933    fi
21934    supports_anon_versioning=no
21935    case `$LD -v 2>/dev/null` in
21936      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21937      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21938      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21939      *\ 2.11.*) ;; # other 2.11 versions
21940      *) supports_anon_versioning=yes ;;
21941    esac
21942
21943    # See if GNU ld supports shared libraries.
21944    case $host_os in
21945    aix3* | aix4* | aix5*)
21946      # On AIX/PPC, the GNU linker is very broken
21947      if test "$host_cpu" != ia64; then
21948	ld_shlibs_F77=no
21949	cat <<EOF 1>&2
21950
21951*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21952*** to be unable to reliably create shared libraries on AIX.
21953*** Therefore, libtool is disabling shared libraries support.  If you
21954*** really care for shared libraries, you may want to modify your PATH
21955*** so that a non-GNU linker is found, and then restart.
21956
21957EOF
21958      fi
21959      ;;
21960
21961    amigaos*)
21962      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)'
21963      hardcode_libdir_flag_spec_F77='-L$libdir'
21964      hardcode_minus_L_F77=yes
21965
21966      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21967      # that the semantics of dynamic libraries on AmigaOS, at least up
21968      # to version 4, is to share data among multiple programs linked
21969      # with the same dynamic library.  Since this doesn't match the
21970      # behavior of shared libraries on other platforms, we can't use
21971      # them.
21972      ld_shlibs_F77=no
21973      ;;
21974
21975    beos*)
21976      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21977	allow_undefined_flag_F77=unsupported
21978	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21979	# support --undefined.  This deserves some investigation.  FIXME
21980	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21981      else
21982	ld_shlibs_F77=no
21983      fi
21984      ;;
21985
21986    cygwin* | mingw* | pw32*)
21987      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21988      # as there is no search path for DLLs.
21989      hardcode_libdir_flag_spec_F77='-L$libdir'
21990      allow_undefined_flag_F77=unsupported
21991      always_export_symbols_F77=no
21992      enable_shared_with_static_runtimes_F77=yes
21993      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21994
21995      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21996        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21997	# If the export-symbols file already is a .def file (1st line
21998	# is EXPORTS), use it as is; otherwise, prepend...
21999	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22000	  cp $export_symbols $output_objdir/$soname.def;
22001	else
22002	  echo EXPORTS > $output_objdir/$soname.def;
22003	  cat $export_symbols >> $output_objdir/$soname.def;
22004	fi~
22005	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22006      else
22007	ld_shlibs_F77=no
22008      fi
22009      ;;
22010
22011    interix3*)
22012      hardcode_direct_F77=no
22013      hardcode_shlibpath_var_F77=no
22014      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22015      export_dynamic_flag_spec_F77='${wl}-E'
22016      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22017      # Instead, shared libraries are loaded at an image base (0x10000000 by
22018      # default) and relocated if they conflict, which is a slow very memory
22019      # consuming and fragmenting process.  To avoid this, we pick a random,
22020      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22021      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
22022      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'
22023      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'
22024      ;;
22025
22026    linux*)
22027      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22028	tmp_addflag=
22029	case $cc_basename,$host_cpu in
22030	pgcc*)				# Portland Group C compiler
22031	  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'
22032	  tmp_addflag=' $pic_flag'
22033	  ;;
22034	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
22035	  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'
22036	  tmp_addflag=' $pic_flag -Mnomain' ;;
22037	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
22038	  tmp_addflag=' -i_dynamic' ;;
22039	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
22040	  tmp_addflag=' -i_dynamic -nofor_main' ;;
22041	ifc* | ifort*)			# Intel Fortran compiler
22042	  tmp_addflag=' -nofor_main' ;;
22043	esac
22044	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22045
22046	if test $supports_anon_versioning = yes; then
22047	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22048  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22049  $echo "local: *; };" >> $output_objdir/$libname.ver~
22050	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22051	fi
22052      else
22053	ld_shlibs_F77=no
22054      fi
22055      ;;
22056
22057    netbsd*)
22058      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22059	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22060	wlarc=
22061      else
22062	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22063	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22064      fi
22065      ;;
22066
22067    solaris*)
22068      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22069	ld_shlibs_F77=no
22070	cat <<EOF 1>&2
22071
22072*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22073*** create shared libraries on Solaris systems.  Therefore, libtool
22074*** is disabling shared libraries support.  We urge you to upgrade GNU
22075*** binutils to release 2.9.1 or newer.  Another option is to modify
22076*** your PATH or compiler configuration so that the native linker is
22077*** used, and then restart.
22078
22079EOF
22080      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22081	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22082	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22083      else
22084	ld_shlibs_F77=no
22085      fi
22086      ;;
22087
22088    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22089      case `$LD -v 2>&1` in
22090        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22091	ld_shlibs_F77=no
22092	cat <<_LT_EOF 1>&2
22093
22094*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22095*** reliably create shared libraries on SCO systems.  Therefore, libtool
22096*** is disabling shared libraries support.  We urge you to upgrade GNU
22097*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
22098*** your PATH or compiler configuration so that the native linker is
22099*** used, and then restart.
22100
22101_LT_EOF
22102	;;
22103	*)
22104	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22105	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22106	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22107	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22108	  else
22109	    ld_shlibs_F77=no
22110	  fi
22111	;;
22112      esac
22113      ;;
22114
22115    sunos4*)
22116      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22117      wlarc=
22118      hardcode_direct_F77=yes
22119      hardcode_shlibpath_var_F77=no
22120      ;;
22121
22122    *)
22123      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22124	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22125	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22126      else
22127	ld_shlibs_F77=no
22128      fi
22129      ;;
22130    esac
22131
22132    if test "$ld_shlibs_F77" = no; then
22133      runpath_var=
22134      hardcode_libdir_flag_spec_F77=
22135      export_dynamic_flag_spec_F77=
22136      whole_archive_flag_spec_F77=
22137    fi
22138  else
22139    # PORTME fill in a description of your system's linker (not GNU ld)
22140    case $host_os in
22141    aix3*)
22142      allow_undefined_flag_F77=unsupported
22143      always_export_symbols_F77=yes
22144      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'
22145      # Note: this linker hardcodes the directories in LIBPATH if there
22146      # are no directories specified by -L.
22147      hardcode_minus_L_F77=yes
22148      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22149	# Neither direct hardcoding nor static linking is supported with a
22150	# broken collect2.
22151	hardcode_direct_F77=unsupported
22152      fi
22153      ;;
22154
22155    aix4* | aix5*)
22156      if test "$host_cpu" = ia64; then
22157	# On IA64, the linker does run time linking by default, so we don't
22158	# have to do anything special.
22159	aix_use_runtimelinking=no
22160	exp_sym_flag='-Bexport'
22161	no_entry_flag=""
22162      else
22163	# If we're using GNU nm, then we don't want the "-C" option.
22164	# -C means demangle to AIX nm, but means don't demangle with GNU nm
22165	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22166	  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'
22167	else
22168	  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'
22169	fi
22170	aix_use_runtimelinking=no
22171
22172	# Test if we are trying to use run time linking or normal
22173	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
22174	# need to do runtime linking.
22175	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22176	  for ld_flag in $LDFLAGS; do
22177  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22178  	    aix_use_runtimelinking=yes
22179  	    break
22180  	  fi
22181	  done
22182	  ;;
22183	esac
22184
22185	exp_sym_flag='-bexport'
22186	no_entry_flag='-bnoentry'
22187      fi
22188
22189      # When large executables or shared objects are built, AIX ld can
22190      # have problems creating the table of contents.  If linking a library
22191      # or program results in "error TOC overflow" add -mminimal-toc to
22192      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22193      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22194
22195      archive_cmds_F77=''
22196      hardcode_direct_F77=yes
22197      hardcode_libdir_separator_F77=':'
22198      link_all_deplibs_F77=yes
22199
22200      if test "$GCC" = yes; then
22201	case $host_os in aix4.[012]|aix4.[012].*)
22202	# We only want to do this on AIX 4.2 and lower, the check
22203	# below for broken collect2 doesn't work under 4.3+
22204	  collect2name=`${CC} -print-prog-name=collect2`
22205	  if test -f "$collect2name" && \
22206  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
22207	  then
22208  	  # We have reworked collect2
22209  	  hardcode_direct_F77=yes
22210	  else
22211  	  # We have old collect2
22212  	  hardcode_direct_F77=unsupported
22213  	  # It fails to find uninstalled libraries when the uninstalled
22214  	  # path is not listed in the libpath.  Setting hardcode_minus_L
22215  	  # to unsupported forces relinking
22216  	  hardcode_minus_L_F77=yes
22217  	  hardcode_libdir_flag_spec_F77='-L$libdir'
22218  	  hardcode_libdir_separator_F77=
22219	  fi
22220	  ;;
22221	esac
22222	shared_flag='-shared'
22223	if test "$aix_use_runtimelinking" = yes; then
22224	  shared_flag="$shared_flag "'${wl}-G'
22225	fi
22226      else
22227	# not using gcc
22228	if test "$host_cpu" = ia64; then
22229  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22230  	# chokes on -Wl,-G. The following line is correct:
22231	  shared_flag='-G'
22232	else
22233	  if test "$aix_use_runtimelinking" = yes; then
22234	    shared_flag='${wl}-G'
22235	  else
22236	    shared_flag='${wl}-bM:SRE'
22237	  fi
22238	fi
22239      fi
22240
22241      # It seems that -bexpall does not export symbols beginning with
22242      # underscore (_), so it is better to generate a list of symbols to export.
22243      always_export_symbols_F77=yes
22244      if test "$aix_use_runtimelinking" = yes; then
22245	# Warning - without using the other runtime loading flags (-brtl),
22246	# -berok will link without error, but may produce a broken library.
22247	allow_undefined_flag_F77='-berok'
22248       # Determine the default libpath from the value encoded in an empty executable.
22249       cat >conftest.$ac_ext <<_ACEOF
22250      program main
22251
22252      end
22253_ACEOF
22254rm -f conftest.$ac_objext conftest$ac_exeext
22255if { (ac_try="$ac_link"
22256case "(($ac_try" in
22257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22258  *) ac_try_echo=$ac_try;;
22259esac
22260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22261  (eval "$ac_link") 2>conftest.er1
22262  ac_status=$?
22263  grep -v '^ *+' conftest.er1 >conftest.err
22264  rm -f conftest.er1
22265  cat conftest.err >&5
22266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267  (exit $ac_status); } &&
22268	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22269  { (case "(($ac_try" in
22270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22271  *) ac_try_echo=$ac_try;;
22272esac
22273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22274  (eval "$ac_try") 2>&5
22275  ac_status=$?
22276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277  (exit $ac_status); }; } &&
22278	 { ac_try='test -s conftest$ac_exeext'
22279  { (case "(($ac_try" in
22280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22281  *) ac_try_echo=$ac_try;;
22282esac
22283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22284  (eval "$ac_try") 2>&5
22285  ac_status=$?
22286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287  (exit $ac_status); }; }; then
22288
22289aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22290}'`
22291# Check for a 64-bit object if we didn't find anything.
22292if 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; }
22293}'`; fi
22294else
22295  echo "$as_me: failed program was:" >&5
22296sed 's/^/| /' conftest.$ac_ext >&5
22297
22298
22299fi
22300
22301rm -f core conftest.err conftest.$ac_objext \
22302      conftest$ac_exeext conftest.$ac_ext
22303if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22304
22305       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22306	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"
22307       else
22308	if test "$host_cpu" = ia64; then
22309	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22310	  allow_undefined_flag_F77="-z nodefs"
22311	  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"
22312	else
22313	 # Determine the default libpath from the value encoded in an empty executable.
22314	 cat >conftest.$ac_ext <<_ACEOF
22315      program main
22316
22317      end
22318_ACEOF
22319rm -f conftest.$ac_objext conftest$ac_exeext
22320if { (ac_try="$ac_link"
22321case "(($ac_try" in
22322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22323  *) ac_try_echo=$ac_try;;
22324esac
22325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22326  (eval "$ac_link") 2>conftest.er1
22327  ac_status=$?
22328  grep -v '^ *+' conftest.er1 >conftest.err
22329  rm -f conftest.er1
22330  cat conftest.err >&5
22331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332  (exit $ac_status); } &&
22333	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22334  { (case "(($ac_try" in
22335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22336  *) ac_try_echo=$ac_try;;
22337esac
22338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22339  (eval "$ac_try") 2>&5
22340  ac_status=$?
22341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342  (exit $ac_status); }; } &&
22343	 { ac_try='test -s conftest$ac_exeext'
22344  { (case "(($ac_try" in
22345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22346  *) ac_try_echo=$ac_try;;
22347esac
22348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22349  (eval "$ac_try") 2>&5
22350  ac_status=$?
22351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352  (exit $ac_status); }; }; then
22353
22354aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22355}'`
22356# Check for a 64-bit object if we didn't find anything.
22357if 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; }
22358}'`; fi
22359else
22360  echo "$as_me: failed program was:" >&5
22361sed 's/^/| /' conftest.$ac_ext >&5
22362
22363
22364fi
22365
22366rm -f core conftest.err conftest.$ac_objext \
22367      conftest$ac_exeext conftest.$ac_ext
22368if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22369
22370	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22371	  # Warning - without using the other run time loading flags,
22372	  # -berok will link without error, but may produce a broken library.
22373	  no_undefined_flag_F77=' ${wl}-bernotok'
22374	  allow_undefined_flag_F77=' ${wl}-berok'
22375	  # Exported symbols can be pulled into shared objects from archives
22376	  whole_archive_flag_spec_F77='$convenience'
22377	  archive_cmds_need_lc_F77=yes
22378	  # This is similar to how AIX traditionally builds its shared libraries.
22379	  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'
22380	fi
22381      fi
22382      ;;
22383
22384    amigaos*)
22385      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)'
22386      hardcode_libdir_flag_spec_F77='-L$libdir'
22387      hardcode_minus_L_F77=yes
22388      # see comment about different semantics on the GNU ld section
22389      ld_shlibs_F77=no
22390      ;;
22391
22392    bsdi[45]*)
22393      export_dynamic_flag_spec_F77=-rdynamic
22394      ;;
22395
22396    cygwin* | mingw* | pw32*)
22397      # When not using gcc, we currently assume that we are using
22398      # Microsoft Visual C++.
22399      # hardcode_libdir_flag_spec is actually meaningless, as there is
22400      # no search path for DLLs.
22401      hardcode_libdir_flag_spec_F77=' '
22402      allow_undefined_flag_F77=unsupported
22403      # Tell ltmain to make .lib files, not .a files.
22404      libext=lib
22405      # Tell ltmain to make .dll files, not .so files.
22406      shrext_cmds=".dll"
22407      # FIXME: Setting linknames here is a bad hack.
22408      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22409      # The linker will automatically build a .lib file if we build a DLL.
22410      old_archive_From_new_cmds_F77='true'
22411      # FIXME: Should let the user specify the lib program.
22412      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22413      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22414      enable_shared_with_static_runtimes_F77=yes
22415      ;;
22416
22417    darwin* | rhapsody*)
22418      case $host_os in
22419        rhapsody* | darwin1.[012])
22420         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22421         ;;
22422       *) # Darwin 1.3 on
22423         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22424           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22425         else
22426           case ${MACOSX_DEPLOYMENT_TARGET} in
22427             10.[012])
22428               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22429               ;;
22430             10.*)
22431               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22432               ;;
22433           esac
22434         fi
22435         ;;
22436      esac
22437      archive_cmds_need_lc_F77=no
22438      hardcode_direct_F77=no
22439      hardcode_automatic_F77=yes
22440      hardcode_shlibpath_var_F77=unsupported
22441      whole_archive_flag_spec_F77=''
22442      link_all_deplibs_F77=yes
22443    if test "$GCC" = yes ; then
22444    	output_verbose_link_cmd='echo'
22445        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22446      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22447      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22448      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}'
22449      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}'
22450    else
22451      case $cc_basename in
22452        xlc*)
22453         output_verbose_link_cmd='echo'
22454         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22455         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22456          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22457         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}'
22458          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}'
22459          ;;
22460       *)
22461         ld_shlibs_F77=no
22462          ;;
22463      esac
22464    fi
22465      ;;
22466
22467    dgux*)
22468      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22469      hardcode_libdir_flag_spec_F77='-L$libdir'
22470      hardcode_shlibpath_var_F77=no
22471      ;;
22472
22473    freebsd1*)
22474      ld_shlibs_F77=no
22475      ;;
22476
22477    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22478    # support.  Future versions do this automatically, but an explicit c++rt0.o
22479    # does not break anything, and helps significantly (at the cost of a little
22480    # extra space).
22481    freebsd2.2*)
22482      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22483      hardcode_libdir_flag_spec_F77='-R$libdir'
22484      hardcode_direct_F77=yes
22485      hardcode_shlibpath_var_F77=no
22486      ;;
22487
22488    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22489    freebsd2*)
22490      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22491      hardcode_direct_F77=yes
22492      hardcode_minus_L_F77=yes
22493      hardcode_shlibpath_var_F77=no
22494      ;;
22495
22496    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22497    freebsd* | kfreebsd*-gnu | dragonfly*)
22498      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22499      hardcode_libdir_flag_spec_F77='-R$libdir'
22500      hardcode_direct_F77=yes
22501      hardcode_shlibpath_var_F77=no
22502      ;;
22503
22504    hpux9*)
22505      if test "$GCC" = yes; then
22506	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'
22507      else
22508	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'
22509      fi
22510      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22511      hardcode_libdir_separator_F77=:
22512      hardcode_direct_F77=yes
22513
22514      # hardcode_minus_L: Not really in the search PATH,
22515      # but as the default location of the library.
22516      hardcode_minus_L_F77=yes
22517      export_dynamic_flag_spec_F77='${wl}-E'
22518      ;;
22519
22520    hpux10*)
22521      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22522	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22523      else
22524	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22525      fi
22526      if test "$with_gnu_ld" = no; then
22527	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22528	hardcode_libdir_separator_F77=:
22529
22530	hardcode_direct_F77=yes
22531	export_dynamic_flag_spec_F77='${wl}-E'
22532
22533	# hardcode_minus_L: Not really in the search PATH,
22534	# but as the default location of the library.
22535	hardcode_minus_L_F77=yes
22536      fi
22537      ;;
22538
22539    hpux11*)
22540      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22541	case $host_cpu in
22542	hppa*64*)
22543	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22544	  ;;
22545	ia64*)
22546	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22547	  ;;
22548	*)
22549	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22550	  ;;
22551	esac
22552      else
22553	case $host_cpu in
22554	hppa*64*)
22555	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22556	  ;;
22557	ia64*)
22558	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22559	  ;;
22560	*)
22561	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22562	  ;;
22563	esac
22564      fi
22565      if test "$with_gnu_ld" = no; then
22566	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22567	hardcode_libdir_separator_F77=:
22568
22569	case $host_cpu in
22570	hppa*64*|ia64*)
22571	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22572	  hardcode_direct_F77=no
22573	  hardcode_shlibpath_var_F77=no
22574	  ;;
22575	*)
22576	  hardcode_direct_F77=yes
22577	  export_dynamic_flag_spec_F77='${wl}-E'
22578
22579	  # hardcode_minus_L: Not really in the search PATH,
22580	  # but as the default location of the library.
22581	  hardcode_minus_L_F77=yes
22582	  ;;
22583	esac
22584      fi
22585      ;;
22586
22587    irix5* | irix6* | nonstopux*)
22588      if test "$GCC" = yes; then
22589	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'
22590      else
22591	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'
22592	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22593      fi
22594      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22595      hardcode_libdir_separator_F77=:
22596      link_all_deplibs_F77=yes
22597      ;;
22598
22599    netbsd*)
22600      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22601	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22602      else
22603	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22604      fi
22605      hardcode_libdir_flag_spec_F77='-R$libdir'
22606      hardcode_direct_F77=yes
22607      hardcode_shlibpath_var_F77=no
22608      ;;
22609
22610    newsos6)
22611      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22612      hardcode_direct_F77=yes
22613      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22614      hardcode_libdir_separator_F77=:
22615      hardcode_shlibpath_var_F77=no
22616      ;;
22617
22618    openbsd*)
22619      hardcode_direct_F77=yes
22620      hardcode_shlibpath_var_F77=no
22621      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22622	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22623	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22624	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22625	export_dynamic_flag_spec_F77='${wl}-E'
22626      else
22627       case $host_os in
22628	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22629	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22630	   hardcode_libdir_flag_spec_F77='-R$libdir'
22631	   ;;
22632	 *)
22633	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22634	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22635	   ;;
22636       esac
22637      fi
22638      ;;
22639
22640    os2*)
22641      hardcode_libdir_flag_spec_F77='-L$libdir'
22642      hardcode_minus_L_F77=yes
22643      allow_undefined_flag_F77=unsupported
22644      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'
22645      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22646      ;;
22647
22648    osf3*)
22649      if test "$GCC" = yes; then
22650	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22651	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'
22652      else
22653	allow_undefined_flag_F77=' -expect_unresolved \*'
22654	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'
22655      fi
22656      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22657      hardcode_libdir_separator_F77=:
22658      ;;
22659
22660    osf4* | osf5*)	# as osf3* with the addition of -msym flag
22661      if test "$GCC" = yes; then
22662	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22663	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'
22664	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22665      else
22666	allow_undefined_flag_F77=' -expect_unresolved \*'
22667	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'
22668	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~
22669	$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'
22670
22671	# Both c and cxx compiler support -rpath directly
22672	hardcode_libdir_flag_spec_F77='-rpath $libdir'
22673      fi
22674      hardcode_libdir_separator_F77=:
22675      ;;
22676
22677    solaris*)
22678      no_undefined_flag_F77=' -z text'
22679      if test "$GCC" = yes; then
22680	wlarc='${wl}'
22681	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22682	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22683	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22684      else
22685	wlarc=''
22686	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22687	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22688  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22689      fi
22690      hardcode_libdir_flag_spec_F77='-R$libdir'
22691      hardcode_shlibpath_var_F77=no
22692      case $host_os in
22693      solaris2.[0-5] | solaris2.[0-5].*) ;;
22694      *)
22695 	# The compiler driver will combine linker options so we
22696 	# cannot just pass the convience library names through
22697 	# without $wl, iff we do not link with $LD.
22698 	# Luckily, gcc supports the same syntax we need for Sun Studio.
22699 	# Supported since Solaris 2.6 (maybe 2.5.1?)
22700 	case $wlarc in
22701 	'')
22702 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22703 	*)
22704 	  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' ;;
22705 	esac ;;
22706      esac
22707      link_all_deplibs_F77=yes
22708      ;;
22709
22710    sunos4*)
22711      if test "x$host_vendor" = xsequent; then
22712	# Use $CC to link under sequent, because it throws in some extra .o
22713	# files that make .init and .fini sections work.
22714	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22715      else
22716	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22717      fi
22718      hardcode_libdir_flag_spec_F77='-L$libdir'
22719      hardcode_direct_F77=yes
22720      hardcode_minus_L_F77=yes
22721      hardcode_shlibpath_var_F77=no
22722      ;;
22723
22724    sysv4)
22725      case $host_vendor in
22726	sni)
22727	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22728	  hardcode_direct_F77=yes # is this really true???
22729	;;
22730	siemens)
22731	  ## LD is ld it makes a PLAMLIB
22732	  ## CC just makes a GrossModule.
22733	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22734	  reload_cmds_F77='$CC -r -o $output$reload_objs'
22735	  hardcode_direct_F77=no
22736        ;;
22737	motorola)
22738	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22739	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22740	;;
22741      esac
22742      runpath_var='LD_RUN_PATH'
22743      hardcode_shlibpath_var_F77=no
22744      ;;
22745
22746    sysv4.3*)
22747      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22748      hardcode_shlibpath_var_F77=no
22749      export_dynamic_flag_spec_F77='-Bexport'
22750      ;;
22751
22752    sysv4*MP*)
22753      if test -d /usr/nec; then
22754	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22755	hardcode_shlibpath_var_F77=no
22756	runpath_var=LD_RUN_PATH
22757	hardcode_runpath_var=yes
22758	ld_shlibs_F77=yes
22759      fi
22760      ;;
22761
22762    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22763      no_undefined_flag_F77='${wl}-z,text'
22764      archive_cmds_need_lc_F77=no
22765      hardcode_shlibpath_var_F77=no
22766      runpath_var='LD_RUN_PATH'
22767
22768      if test "$GCC" = yes; then
22769	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22770	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22771      else
22772	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22773	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22774      fi
22775      ;;
22776
22777    sysv5* | sco3.2v5* | sco5v6*)
22778      # Note: We can NOT use -z defs as we might desire, because we do not
22779      # link with -lc, and that would cause any symbols used from libc to
22780      # always be unresolved, which means just about no library would
22781      # ever link correctly.  If we're not using GNU ld we use -z text
22782      # though, which does catch some bad symbols but isn't as heavy-handed
22783      # as -z defs.
22784      no_undefined_flag_F77='${wl}-z,text'
22785      allow_undefined_flag_F77='${wl}-z,nodefs'
22786      archive_cmds_need_lc_F77=no
22787      hardcode_shlibpath_var_F77=no
22788      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22789      hardcode_libdir_separator_F77=':'
22790      link_all_deplibs_F77=yes
22791      export_dynamic_flag_spec_F77='${wl}-Bexport'
22792      runpath_var='LD_RUN_PATH'
22793
22794      if test "$GCC" = yes; then
22795	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22796	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22797      else
22798	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22799	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22800      fi
22801      ;;
22802
22803    uts4*)
22804      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22805      hardcode_libdir_flag_spec_F77='-L$libdir'
22806      hardcode_shlibpath_var_F77=no
22807      ;;
22808
22809    *)
22810      ld_shlibs_F77=no
22811      ;;
22812    esac
22813  fi
22814
22815{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22816echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22817test "$ld_shlibs_F77" = no && can_build_shared=no
22818
22819#
22820# Do we need to explicitly link libc?
22821#
22822case "x$archive_cmds_need_lc_F77" in
22823x|xyes)
22824  # Assume -lc should be added
22825  archive_cmds_need_lc_F77=yes
22826
22827  if test "$enable_shared" = yes && test "$GCC" = yes; then
22828    case $archive_cmds_F77 in
22829    *'~'*)
22830      # FIXME: we may have to deal with multi-command sequences.
22831      ;;
22832    '$CC '*)
22833      # Test whether the compiler implicitly links with -lc since on some
22834      # systems, -lgcc has to come before -lc. If gcc already passes -lc
22835      # to ld, don't add -lc before -lgcc.
22836      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22837echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22838      $rm conftest*
22839      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22840
22841      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22842  (eval $ac_compile) 2>&5
22843  ac_status=$?
22844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845  (exit $ac_status); } 2>conftest.err; then
22846        soname=conftest
22847        lib=conftest
22848        libobjs=conftest.$ac_objext
22849        deplibs=
22850        wl=$lt_prog_compiler_wl_F77
22851	pic_flag=$lt_prog_compiler_pic_F77
22852        compiler_flags=-v
22853        linker_flags=-v
22854        verstring=
22855        output_objdir=.
22856        libname=conftest
22857        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22858        allow_undefined_flag_F77=
22859        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22860  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22861  ac_status=$?
22862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863  (exit $ac_status); }
22864        then
22865	  archive_cmds_need_lc_F77=no
22866        else
22867	  archive_cmds_need_lc_F77=yes
22868        fi
22869        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22870      else
22871        cat conftest.err 1>&5
22872      fi
22873      $rm conftest*
22874      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22875echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22876      ;;
22877    esac
22878  fi
22879  ;;
22880esac
22881
22882{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22883echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22884library_names_spec=
22885libname_spec='lib$name'
22886soname_spec=
22887shrext_cmds=".so"
22888postinstall_cmds=
22889postuninstall_cmds=
22890finish_cmds=
22891finish_eval=
22892shlibpath_var=
22893shlibpath_overrides_runpath=unknown
22894version_type=none
22895dynamic_linker="$host_os ld.so"
22896sys_lib_dlsearch_path_spec="/lib /usr/lib"
22897if test "$GCC" = yes; then
22898  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22899  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22900    # if the path contains ";" then we assume it to be the separator
22901    # otherwise default to the standard path separator (i.e. ":") - it is
22902    # assumed that no part of a normal pathname contains ";" but that should
22903    # okay in the real world where ";" in dirpaths is itself problematic.
22904    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22905  else
22906    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22907  fi
22908else
22909  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22910fi
22911need_lib_prefix=unknown
22912hardcode_into_libs=no
22913
22914# when you set need_version to no, make sure it does not cause -set_version
22915# flags to be left without arguments
22916need_version=unknown
22917
22918case $host_os in
22919aix3*)
22920  version_type=linux
22921  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22922  shlibpath_var=LIBPATH
22923
22924  # AIX 3 has no versioning support, so we append a major version to the name.
22925  soname_spec='${libname}${release}${shared_ext}$major'
22926  ;;
22927
22928aix4* | aix5*)
22929  version_type=linux
22930  need_lib_prefix=no
22931  need_version=no
22932  hardcode_into_libs=yes
22933  if test "$host_cpu" = ia64; then
22934    # AIX 5 supports IA64
22935    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22936    shlibpath_var=LD_LIBRARY_PATH
22937  else
22938    # With GCC up to 2.95.x, collect2 would create an import file
22939    # for dependence libraries.  The import file would start with
22940    # the line `#! .'.  This would cause the generated library to
22941    # depend on `.', always an invalid library.  This was fixed in
22942    # development snapshots of GCC prior to 3.0.
22943    case $host_os in
22944      aix4 | aix4.[01] | aix4.[01].*)
22945      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22946	   echo ' yes '
22947	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22948	:
22949      else
22950	can_build_shared=no
22951      fi
22952      ;;
22953    esac
22954    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22955    # soname into executable. Probably we can add versioning support to
22956    # collect2, so additional links can be useful in future.
22957    if test "$aix_use_runtimelinking" = yes; then
22958      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22959      # instead of lib<name>.a to let people know that these are not
22960      # typical AIX shared libraries.
22961      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22962    else
22963      # We preserve .a as extension for shared libraries through AIX4.2
22964      # and later when we are not doing run time linking.
22965      library_names_spec='${libname}${release}.a $libname.a'
22966      soname_spec='${libname}${release}${shared_ext}$major'
22967    fi
22968    shlibpath_var=LIBPATH
22969  fi
22970  ;;
22971
22972amigaos*)
22973  library_names_spec='$libname.ixlibrary $libname.a'
22974  # Create ${libname}_ixlibrary.a entries in /sys/libs.
22975  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'
22976  ;;
22977
22978beos*)
22979  library_names_spec='${libname}${shared_ext}'
22980  dynamic_linker="$host_os ld.so"
22981  shlibpath_var=LIBRARY_PATH
22982  ;;
22983
22984bsdi[45]*)
22985  version_type=linux
22986  need_version=no
22987  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22988  soname_spec='${libname}${release}${shared_ext}$major'
22989  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22990  shlibpath_var=LD_LIBRARY_PATH
22991  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22992  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22993  # the default ld.so.conf also contains /usr/contrib/lib and
22994  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22995  # libtool to hard-code these into programs
22996  ;;
22997
22998cygwin* | mingw* | pw32*)
22999  version_type=windows
23000  shrext_cmds=".dll"
23001  need_version=no
23002  need_lib_prefix=no
23003
23004  case $GCC,$host_os in
23005  yes,cygwin* | yes,mingw* | yes,pw32*)
23006    library_names_spec='$libname.dll.a'
23007    # DLL is installed to $(libdir)/../bin by postinstall_cmds
23008    postinstall_cmds='base_file=`basename \${file}`~
23009      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23010      dldir=$destdir/`dirname \$dlpath`~
23011      test -d \$dldir || mkdir -p \$dldir~
23012      $install_prog $dir/$dlname \$dldir/$dlname~
23013      chmod a+x \$dldir/$dlname'
23014    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23015      dlpath=$dir/\$dldll~
23016       $rm \$dlpath'
23017    shlibpath_overrides_runpath=yes
23018
23019    case $host_os in
23020    cygwin*)
23021      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23022      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23023      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23024      ;;
23025    mingw*)
23026      # MinGW DLLs use traditional 'lib' prefix
23027      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23028      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23029      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23030        # It is most probably a Windows format PATH printed by
23031        # mingw gcc, but we are running on Cygwin. Gcc prints its search
23032        # path with ; separators, and with drive letters. We can handle the
23033        # drive letters (cygwin fileutils understands them), so leave them,
23034        # especially as we might pass files found there to a mingw objdump,
23035        # which wouldn't understand a cygwinified path. Ahh.
23036        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23037      else
23038        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23039      fi
23040      ;;
23041    pw32*)
23042      # pw32 DLLs use 'pw' prefix rather than 'lib'
23043      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23044      ;;
23045    esac
23046    ;;
23047
23048  *)
23049    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23050    ;;
23051  esac
23052  dynamic_linker='Win32 ld.exe'
23053  # FIXME: first we should search . and the directory the executable is in
23054  shlibpath_var=PATH
23055  ;;
23056
23057darwin* | rhapsody*)
23058  dynamic_linker="$host_os dyld"
23059  version_type=darwin
23060  need_lib_prefix=no
23061  need_version=no
23062  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23063  soname_spec='${libname}${release}${major}$shared_ext'
23064  shlibpath_overrides_runpath=yes
23065  shlibpath_var=DYLD_LIBRARY_PATH
23066  shrext_cmds='.dylib'
23067  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23068  if test "$GCC" = yes; then
23069    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"`
23070  else
23071    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23072  fi
23073  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23074  ;;
23075
23076dgux*)
23077  version_type=linux
23078  need_lib_prefix=no
23079  need_version=no
23080  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23081  soname_spec='${libname}${release}${shared_ext}$major'
23082  shlibpath_var=LD_LIBRARY_PATH
23083  ;;
23084
23085freebsd1*)
23086  dynamic_linker=no
23087  ;;
23088
23089kfreebsd*-gnu)
23090  version_type=linux
23091  need_lib_prefix=no
23092  need_version=no
23093  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23094  soname_spec='${libname}${release}${shared_ext}$major'
23095  shlibpath_var=LD_LIBRARY_PATH
23096  shlibpath_overrides_runpath=no
23097  hardcode_into_libs=yes
23098  dynamic_linker='GNU ld.so'
23099  ;;
23100
23101freebsd* | dragonfly*)
23102  # DragonFly does not have aout.  When/if they implement a new
23103  # versioning mechanism, adjust this.
23104  if test -x /usr/bin/objformat; then
23105    objformat=`/usr/bin/objformat`
23106  else
23107    case $host_os in
23108    freebsd[123]*) objformat=aout ;;
23109    *) objformat=elf ;;
23110    esac
23111  fi
23112  version_type=freebsd-$objformat
23113  case $version_type in
23114    freebsd-elf*)
23115      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23116      need_version=no
23117      need_lib_prefix=no
23118      ;;
23119    freebsd-*)
23120      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23121      need_version=yes
23122      ;;
23123  esac
23124  shlibpath_var=LD_LIBRARY_PATH
23125  case $host_os in
23126  freebsd2*)
23127    shlibpath_overrides_runpath=yes
23128    ;;
23129  freebsd3.[01]* | freebsdelf3.[01]*)
23130    shlibpath_overrides_runpath=yes
23131    hardcode_into_libs=yes
23132    ;;
23133  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23134  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23135    shlibpath_overrides_runpath=no
23136    hardcode_into_libs=yes
23137    ;;
23138  freebsd*) # from 4.6 on
23139    shlibpath_overrides_runpath=yes
23140    hardcode_into_libs=yes
23141    ;;
23142  esac
23143  ;;
23144
23145gnu*)
23146  version_type=linux
23147  need_lib_prefix=no
23148  need_version=no
23149  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23150  soname_spec='${libname}${release}${shared_ext}$major'
23151  shlibpath_var=LD_LIBRARY_PATH
23152  hardcode_into_libs=yes
23153  ;;
23154
23155hpux9* | hpux10* | hpux11*)
23156  # Give a soname corresponding to the major version so that dld.sl refuses to
23157  # link against other versions.
23158  version_type=sunos
23159  need_lib_prefix=no
23160  need_version=no
23161  case $host_cpu in
23162  ia64*)
23163    shrext_cmds='.so'
23164    hardcode_into_libs=yes
23165    dynamic_linker="$host_os dld.so"
23166    shlibpath_var=LD_LIBRARY_PATH
23167    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23168    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23169    soname_spec='${libname}${release}${shared_ext}$major'
23170    if test "X$HPUX_IA64_MODE" = X32; then
23171      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23172    else
23173      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23174    fi
23175    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23176    ;;
23177   hppa*64*)
23178     shrext_cmds='.sl'
23179     hardcode_into_libs=yes
23180     dynamic_linker="$host_os dld.sl"
23181     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23182     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23183     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23184     soname_spec='${libname}${release}${shared_ext}$major'
23185     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23186     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23187     ;;
23188   *)
23189    shrext_cmds='.sl'
23190    dynamic_linker="$host_os dld.sl"
23191    shlibpath_var=SHLIB_PATH
23192    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23193    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23194    soname_spec='${libname}${release}${shared_ext}$major'
23195    ;;
23196  esac
23197  # HP-UX runs *really* slowly unless shared libraries are mode 555.
23198  postinstall_cmds='chmod 555 $lib'
23199  ;;
23200
23201interix3*)
23202  version_type=linux
23203  need_lib_prefix=no
23204  need_version=no
23205  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23206  soname_spec='${libname}${release}${shared_ext}$major'
23207  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23208  shlibpath_var=LD_LIBRARY_PATH
23209  shlibpath_overrides_runpath=no
23210  hardcode_into_libs=yes
23211  ;;
23212
23213irix5* | irix6* | nonstopux*)
23214  case $host_os in
23215    nonstopux*) version_type=nonstopux ;;
23216    *)
23217	if test "$lt_cv_prog_gnu_ld" = yes; then
23218		version_type=linux
23219	else
23220		version_type=irix
23221	fi ;;
23222  esac
23223  need_lib_prefix=no
23224  need_version=no
23225  soname_spec='${libname}${release}${shared_ext}$major'
23226  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23227  case $host_os in
23228  irix5* | nonstopux*)
23229    libsuff= shlibsuff=
23230    ;;
23231  *)
23232    case $LD in # libtool.m4 will add one of these switches to LD
23233    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23234      libsuff= shlibsuff= libmagic=32-bit;;
23235    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23236      libsuff=32 shlibsuff=N32 libmagic=N32;;
23237    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23238      libsuff=64 shlibsuff=64 libmagic=64-bit;;
23239    *) libsuff= shlibsuff= libmagic=never-match;;
23240    esac
23241    ;;
23242  esac
23243  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23244  shlibpath_overrides_runpath=no
23245  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23246  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23247  hardcode_into_libs=yes
23248  ;;
23249
23250# No shared lib support for Linux oldld, aout, or coff.
23251linux*oldld* | linux*aout* | linux*coff*)
23252  dynamic_linker=no
23253  ;;
23254
23255# This must be Linux ELF.
23256linux*)
23257  version_type=linux
23258  need_lib_prefix=no
23259  need_version=no
23260  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23261  soname_spec='${libname}${release}${shared_ext}$major'
23262  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23263  shlibpath_var=LD_LIBRARY_PATH
23264  shlibpath_overrides_runpath=no
23265  # This implies no fast_install, which is unacceptable.
23266  # Some rework will be needed to allow for fast_install
23267  # before this can be enabled.
23268  hardcode_into_libs=yes
23269
23270  # Append ld.so.conf contents to the search path
23271  if test -f /etc/ld.so.conf; then
23272    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' ' '`
23273    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23274  fi
23275
23276  # We used to test for /lib/ld.so.1 and disable shared libraries on
23277  # powerpc, because MkLinux only supported shared libraries with the
23278  # GNU dynamic linker.  Since this was broken with cross compilers,
23279  # most powerpc-linux boxes support dynamic linking these days and
23280  # people can always --disable-shared, the test was removed, and we
23281  # assume the GNU/Linux dynamic linker is in use.
23282  dynamic_linker='GNU/Linux ld.so'
23283  ;;
23284
23285knetbsd*-gnu)
23286  version_type=linux
23287  need_lib_prefix=no
23288  need_version=no
23289  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23290  soname_spec='${libname}${release}${shared_ext}$major'
23291  shlibpath_var=LD_LIBRARY_PATH
23292  shlibpath_overrides_runpath=no
23293  hardcode_into_libs=yes
23294  dynamic_linker='GNU ld.so'
23295  ;;
23296
23297netbsd*)
23298  version_type=sunos
23299  need_lib_prefix=no
23300  need_version=no
23301  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23302    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23303    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23304    dynamic_linker='NetBSD (a.out) ld.so'
23305  else
23306    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23307    soname_spec='${libname}${release}${shared_ext}$major'
23308    dynamic_linker='NetBSD ld.elf_so'
23309  fi
23310  shlibpath_var=LD_LIBRARY_PATH
23311  shlibpath_overrides_runpath=yes
23312  hardcode_into_libs=yes
23313  ;;
23314
23315newsos6)
23316  version_type=linux
23317  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23318  shlibpath_var=LD_LIBRARY_PATH
23319  shlibpath_overrides_runpath=yes
23320  ;;
23321
23322nto-qnx*)
23323  version_type=linux
23324  need_lib_prefix=no
23325  need_version=no
23326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23327  soname_spec='${libname}${release}${shared_ext}$major'
23328  shlibpath_var=LD_LIBRARY_PATH
23329  shlibpath_overrides_runpath=yes
23330  ;;
23331
23332openbsd*)
23333  version_type=sunos
23334  sys_lib_dlsearch_path_spec="/usr/lib"
23335  need_lib_prefix=no
23336  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23337  case $host_os in
23338    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23339    *)                         need_version=no  ;;
23340  esac
23341  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23342  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23343  shlibpath_var=LD_LIBRARY_PATH
23344  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23345    case $host_os in
23346      openbsd2.[89] | openbsd2.[89].*)
23347	shlibpath_overrides_runpath=no
23348	;;
23349      *)
23350	shlibpath_overrides_runpath=yes
23351	;;
23352      esac
23353  else
23354    shlibpath_overrides_runpath=yes
23355  fi
23356  ;;
23357
23358os2*)
23359  libname_spec='$name'
23360  shrext_cmds=".dll"
23361  need_lib_prefix=no
23362  library_names_spec='$libname${shared_ext} $libname.a'
23363  dynamic_linker='OS/2 ld.exe'
23364  shlibpath_var=LIBPATH
23365  ;;
23366
23367osf3* | osf4* | osf5*)
23368  version_type=osf
23369  need_lib_prefix=no
23370  need_version=no
23371  soname_spec='${libname}${release}${shared_ext}$major'
23372  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23373  shlibpath_var=LD_LIBRARY_PATH
23374  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23375  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23376  ;;
23377
23378solaris*)
23379  version_type=linux
23380  need_lib_prefix=no
23381  need_version=no
23382  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23383  soname_spec='${libname}${release}${shared_ext}$major'
23384  shlibpath_var=LD_LIBRARY_PATH
23385  shlibpath_overrides_runpath=yes
23386  hardcode_into_libs=yes
23387  # ldd complains unless libraries are executable
23388  postinstall_cmds='chmod +x $lib'
23389  ;;
23390
23391sunos4*)
23392  version_type=sunos
23393  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23394  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23395  shlibpath_var=LD_LIBRARY_PATH
23396  shlibpath_overrides_runpath=yes
23397  if test "$with_gnu_ld" = yes; then
23398    need_lib_prefix=no
23399  fi
23400  need_version=yes
23401  ;;
23402
23403sysv4 | sysv4.3*)
23404  version_type=linux
23405  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23406  soname_spec='${libname}${release}${shared_ext}$major'
23407  shlibpath_var=LD_LIBRARY_PATH
23408  case $host_vendor in
23409    sni)
23410      shlibpath_overrides_runpath=no
23411      need_lib_prefix=no
23412      export_dynamic_flag_spec='${wl}-Blargedynsym'
23413      runpath_var=LD_RUN_PATH
23414      ;;
23415    siemens)
23416      need_lib_prefix=no
23417      ;;
23418    motorola)
23419      need_lib_prefix=no
23420      need_version=no
23421      shlibpath_overrides_runpath=no
23422      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23423      ;;
23424  esac
23425  ;;
23426
23427sysv4*MP*)
23428  if test -d /usr/nec ;then
23429    version_type=linux
23430    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23431    soname_spec='$libname${shared_ext}.$major'
23432    shlibpath_var=LD_LIBRARY_PATH
23433  fi
23434  ;;
23435
23436sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23437  version_type=freebsd-elf
23438  need_lib_prefix=no
23439  need_version=no
23440  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23441  soname_spec='${libname}${release}${shared_ext}$major'
23442  shlibpath_var=LD_LIBRARY_PATH
23443  hardcode_into_libs=yes
23444  if test "$with_gnu_ld" = yes; then
23445    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23446    shlibpath_overrides_runpath=no
23447  else
23448    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23449    shlibpath_overrides_runpath=yes
23450    case $host_os in
23451      sco3.2v5*)
23452        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23453	;;
23454    esac
23455  fi
23456  sys_lib_dlsearch_path_spec='/usr/lib'
23457  ;;
23458
23459uts4*)
23460  version_type=linux
23461  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23462  soname_spec='${libname}${release}${shared_ext}$major'
23463  shlibpath_var=LD_LIBRARY_PATH
23464  ;;
23465
23466*)
23467  dynamic_linker=no
23468  ;;
23469esac
23470{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23471echo "${ECHO_T}$dynamic_linker" >&6; }
23472test "$dynamic_linker" = no && can_build_shared=no
23473
23474variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23475if test "$GCC" = yes; then
23476  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23477fi
23478
23479{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23480echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23481hardcode_action_F77=
23482if test -n "$hardcode_libdir_flag_spec_F77" || \
23483   test -n "$runpath_var_F77" || \
23484   test "X$hardcode_automatic_F77" = "Xyes" ; then
23485
23486  # We can hardcode non-existant directories.
23487  if test "$hardcode_direct_F77" != no &&
23488     # If the only mechanism to avoid hardcoding is shlibpath_var, we
23489     # have to relink, otherwise we might link with an installed library
23490     # when we should be linking with a yet-to-be-installed one
23491     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23492     test "$hardcode_minus_L_F77" != no; then
23493    # Linking always hardcodes the temporary library directory.
23494    hardcode_action_F77=relink
23495  else
23496    # We can link without hardcoding, and we can hardcode nonexisting dirs.
23497    hardcode_action_F77=immediate
23498  fi
23499else
23500  # We cannot hardcode anything, or else we can only hardcode existing
23501  # directories.
23502  hardcode_action_F77=unsupported
23503fi
23504{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23505echo "${ECHO_T}$hardcode_action_F77" >&6; }
23506
23507if test "$hardcode_action_F77" = relink; then
23508  # Fast installation is not supported
23509  enable_fast_install=no
23510elif test "$shlibpath_overrides_runpath" = yes ||
23511     test "$enable_shared" = no; then
23512  # Fast installation is not necessary
23513  enable_fast_install=needless
23514fi
23515
23516
23517# The else clause should only fire when bootstrapping the
23518# libtool distribution, otherwise you forgot to ship ltmain.sh
23519# with your package, and you will get complaints that there are
23520# no rules to generate ltmain.sh.
23521if test -f "$ltmain"; then
23522  # See if we are running on zsh, and set the options which allow our commands through
23523  # without removal of \ escapes.
23524  if test -n "${ZSH_VERSION+set}" ; then
23525    setopt NO_GLOB_SUBST
23526  fi
23527  # Now quote all the things that may contain metacharacters while being
23528  # careful not to overquote the AC_SUBSTed values.  We take copies of the
23529  # variables and quote the copies for generation of the libtool script.
23530  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23531    SED SHELL STRIP \
23532    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23533    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23534    deplibs_check_method reload_flag reload_cmds need_locks \
23535    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23536    lt_cv_sys_global_symbol_to_c_name_address \
23537    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23538    old_postinstall_cmds old_postuninstall_cmds \
23539    compiler_F77 \
23540    CC_F77 \
23541    LD_F77 \
23542    lt_prog_compiler_wl_F77 \
23543    lt_prog_compiler_pic_F77 \
23544    lt_prog_compiler_static_F77 \
23545    lt_prog_compiler_no_builtin_flag_F77 \
23546    export_dynamic_flag_spec_F77 \
23547    thread_safe_flag_spec_F77 \
23548    whole_archive_flag_spec_F77 \
23549    enable_shared_with_static_runtimes_F77 \
23550    old_archive_cmds_F77 \
23551    old_archive_from_new_cmds_F77 \
23552    predep_objects_F77 \
23553    postdep_objects_F77 \
23554    predeps_F77 \
23555    postdeps_F77 \
23556    compiler_lib_search_path_F77 \
23557    archive_cmds_F77 \
23558    archive_expsym_cmds_F77 \
23559    postinstall_cmds_F77 \
23560    postuninstall_cmds_F77 \
23561    old_archive_from_expsyms_cmds_F77 \
23562    allow_undefined_flag_F77 \
23563    no_undefined_flag_F77 \
23564    export_symbols_cmds_F77 \
23565    hardcode_libdir_flag_spec_F77 \
23566    hardcode_libdir_flag_spec_ld_F77 \
23567    hardcode_libdir_separator_F77 \
23568    hardcode_automatic_F77 \
23569    module_cmds_F77 \
23570    module_expsym_cmds_F77 \
23571    lt_cv_prog_compiler_c_o_F77 \
23572    exclude_expsyms_F77 \
23573    include_expsyms_F77; do
23574
23575    case $var in
23576    old_archive_cmds_F77 | \
23577    old_archive_from_new_cmds_F77 | \
23578    archive_cmds_F77 | \
23579    archive_expsym_cmds_F77 | \
23580    module_cmds_F77 | \
23581    module_expsym_cmds_F77 | \
23582    old_archive_from_expsyms_cmds_F77 | \
23583    export_symbols_cmds_F77 | \
23584    extract_expsyms_cmds | reload_cmds | finish_cmds | \
23585    postinstall_cmds | postuninstall_cmds | \
23586    old_postinstall_cmds | old_postuninstall_cmds | \
23587    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23588      # Double-quote double-evaled strings.
23589      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23590      ;;
23591    *)
23592      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23593      ;;
23594    esac
23595  done
23596
23597  case $lt_echo in
23598  *'\$0 --fallback-echo"')
23599    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23600    ;;
23601  esac
23602
23603cfgfile="$ofile"
23604
23605  cat <<__EOF__ >> "$cfgfile"
23606# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23607
23608# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23609
23610# Shell to use when invoking shell scripts.
23611SHELL=$lt_SHELL
23612
23613# Whether or not to build shared libraries.
23614build_libtool_libs=$enable_shared
23615
23616# Whether or not to build static libraries.
23617build_old_libs=$enable_static
23618
23619# Whether or not to add -lc for building shared libraries.
23620build_libtool_need_lc=$archive_cmds_need_lc_F77
23621
23622# Whether or not to disallow shared libs when runtime libs are static
23623allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23624
23625# Whether or not to optimize for fast installation.
23626fast_install=$enable_fast_install
23627
23628# The host system.
23629host_alias=$host_alias
23630host=$host
23631host_os=$host_os
23632
23633# The build system.
23634build_alias=$build_alias
23635build=$build
23636build_os=$build_os
23637
23638# An echo program that does not interpret backslashes.
23639echo=$lt_echo
23640
23641# The archiver.
23642AR=$lt_AR
23643AR_FLAGS=$lt_AR_FLAGS
23644
23645# A C compiler.
23646LTCC=$lt_LTCC
23647
23648# LTCC compiler flags.
23649LTCFLAGS=$lt_LTCFLAGS
23650
23651# A language-specific compiler.
23652CC=$lt_compiler_F77
23653
23654# Is the compiler the GNU C compiler?
23655with_gcc=$GCC_F77
23656
23657# An ERE matcher.
23658EGREP=$lt_EGREP
23659
23660# The linker used to build libraries.
23661LD=$lt_LD_F77
23662
23663# Whether we need hard or soft links.
23664LN_S=$lt_LN_S
23665
23666# A BSD-compatible nm program.
23667NM=$lt_NM
23668
23669# A symbol stripping program
23670STRIP=$lt_STRIP
23671
23672# Used to examine libraries when file_magic_cmd begins "file"
23673MAGIC_CMD=$MAGIC_CMD
23674
23675# Used on cygwin: DLL creation program.
23676DLLTOOL="$DLLTOOL"
23677
23678# Used on cygwin: object dumper.
23679OBJDUMP="$OBJDUMP"
23680
23681# Used on cygwin: assembler.
23682AS="$AS"
23683
23684# The name of the directory that contains temporary libtool files.
23685objdir=$objdir
23686
23687# How to create reloadable object files.
23688reload_flag=$lt_reload_flag
23689reload_cmds=$lt_reload_cmds
23690
23691# How to pass a linker flag through the compiler.
23692wl=$lt_lt_prog_compiler_wl_F77
23693
23694# Object file suffix (normally "o").
23695objext="$ac_objext"
23696
23697# Old archive suffix (normally "a").
23698libext="$libext"
23699
23700# Shared library suffix (normally ".so").
23701shrext_cmds='$shrext_cmds'
23702
23703# Executable file suffix (normally "").
23704exeext="$exeext"
23705
23706# Additional compiler flags for building library objects.
23707pic_flag=$lt_lt_prog_compiler_pic_F77
23708pic_mode=$pic_mode
23709
23710# What is the maximum length of a command?
23711max_cmd_len=$lt_cv_sys_max_cmd_len
23712
23713# Does compiler simultaneously support -c and -o options?
23714compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23715
23716# Must we lock files when doing compilation?
23717need_locks=$lt_need_locks
23718
23719# Do we need the lib prefix for modules?
23720need_lib_prefix=$need_lib_prefix
23721
23722# Do we need a version for libraries?
23723need_version=$need_version
23724
23725# Whether dlopen is supported.
23726dlopen_support=$enable_dlopen
23727
23728# Whether dlopen of programs is supported.
23729dlopen_self=$enable_dlopen_self
23730
23731# Whether dlopen of statically linked programs is supported.
23732dlopen_self_static=$enable_dlopen_self_static
23733
23734# Compiler flag to prevent dynamic linking.
23735link_static_flag=$lt_lt_prog_compiler_static_F77
23736
23737# Compiler flag to turn off builtin functions.
23738no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23739
23740# Compiler flag to allow reflexive dlopens.
23741export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23742
23743# Compiler flag to generate shared objects directly from archives.
23744whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23745
23746# Compiler flag to generate thread-safe objects.
23747thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23748
23749# Library versioning type.
23750version_type=$version_type
23751
23752# Format of library name prefix.
23753libname_spec=$lt_libname_spec
23754
23755# List of archive names.  First name is the real one, the rest are links.
23756# The last name is the one that the linker finds with -lNAME.
23757library_names_spec=$lt_library_names_spec
23758
23759# The coded name of the library, if different from the real name.
23760soname_spec=$lt_soname_spec
23761
23762# Commands used to build and install an old-style archive.
23763RANLIB=$lt_RANLIB
23764old_archive_cmds=$lt_old_archive_cmds_F77
23765old_postinstall_cmds=$lt_old_postinstall_cmds
23766old_postuninstall_cmds=$lt_old_postuninstall_cmds
23767
23768# Create an old-style archive from a shared archive.
23769old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23770
23771# Create a temporary old-style archive to link instead of a shared archive.
23772old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23773
23774# Commands used to build and install a shared archive.
23775archive_cmds=$lt_archive_cmds_F77
23776archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23777postinstall_cmds=$lt_postinstall_cmds
23778postuninstall_cmds=$lt_postuninstall_cmds
23779
23780# Commands used to build a loadable module (assumed same as above if empty)
23781module_cmds=$lt_module_cmds_F77
23782module_expsym_cmds=$lt_module_expsym_cmds_F77
23783
23784# Commands to strip libraries.
23785old_striplib=$lt_old_striplib
23786striplib=$lt_striplib
23787
23788# Dependencies to place before the objects being linked to create a
23789# shared library.
23790predep_objects=$lt_predep_objects_F77
23791
23792# Dependencies to place after the objects being linked to create a
23793# shared library.
23794postdep_objects=$lt_postdep_objects_F77
23795
23796# Dependencies to place before the objects being linked to create a
23797# shared library.
23798predeps=$lt_predeps_F77
23799
23800# Dependencies to place after the objects being linked to create a
23801# shared library.
23802postdeps=$lt_postdeps_F77
23803
23804# The library search path used internally by the compiler when linking
23805# a shared library.
23806compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23807
23808# Method to check whether dependent libraries are shared objects.
23809deplibs_check_method=$lt_deplibs_check_method
23810
23811# Command to use when deplibs_check_method == file_magic.
23812file_magic_cmd=$lt_file_magic_cmd
23813
23814# Flag that allows shared libraries with undefined symbols to be built.
23815allow_undefined_flag=$lt_allow_undefined_flag_F77
23816
23817# Flag that forces no undefined symbols.
23818no_undefined_flag=$lt_no_undefined_flag_F77
23819
23820# Commands used to finish a libtool library installation in a directory.
23821finish_cmds=$lt_finish_cmds
23822
23823# Same as above, but a single script fragment to be evaled but not shown.
23824finish_eval=$lt_finish_eval
23825
23826# Take the output of nm and produce a listing of raw symbols and C names.
23827global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23828
23829# Transform the output of nm in a proper C declaration
23830global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23831
23832# Transform the output of nm in a C name address pair
23833global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23834
23835# This is the shared library runtime path variable.
23836runpath_var=$runpath_var
23837
23838# This is the shared library path variable.
23839shlibpath_var=$shlibpath_var
23840
23841# Is shlibpath searched before the hard-coded library search path?
23842shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23843
23844# How to hardcode a shared library path into an executable.
23845hardcode_action=$hardcode_action_F77
23846
23847# Whether we should hardcode library paths into libraries.
23848hardcode_into_libs=$hardcode_into_libs
23849
23850# Flag to hardcode \$libdir into a binary during linking.
23851# This must work even if \$libdir does not exist.
23852hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23853
23854# If ld is used when linking, flag to hardcode \$libdir into
23855# a binary during linking. This must work even if \$libdir does
23856# not exist.
23857hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23858
23859# Whether we need a single -rpath flag with a separated argument.
23860hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23861
23862# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23863# resulting binary.
23864hardcode_direct=$hardcode_direct_F77
23865
23866# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23867# resulting binary.
23868hardcode_minus_L=$hardcode_minus_L_F77
23869
23870# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23871# the resulting binary.
23872hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23873
23874# Set to yes if building a shared library automatically hardcodes DIR into the library
23875# and all subsequent libraries and executables linked against it.
23876hardcode_automatic=$hardcode_automatic_F77
23877
23878# Variables whose values should be saved in libtool wrapper scripts and
23879# restored at relink time.
23880variables_saved_for_relink="$variables_saved_for_relink"
23881
23882# Whether libtool must link a program against all its dependency libraries.
23883link_all_deplibs=$link_all_deplibs_F77
23884
23885# Compile-time system search path for libraries
23886sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23887
23888# Run-time system search path for libraries
23889sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23890
23891# Fix the shell variable \$srcfile for the compiler.
23892fix_srcfile_path="$fix_srcfile_path_F77"
23893
23894# Set to yes if exported symbols are required.
23895always_export_symbols=$always_export_symbols_F77
23896
23897# The commands to list exported symbols.
23898export_symbols_cmds=$lt_export_symbols_cmds_F77
23899
23900# The commands to extract the exported symbol list from a shared archive.
23901extract_expsyms_cmds=$lt_extract_expsyms_cmds
23902
23903# Symbols that should not be listed in the preloaded symbols.
23904exclude_expsyms=$lt_exclude_expsyms_F77
23905
23906# Symbols that must always be exported.
23907include_expsyms=$lt_include_expsyms_F77
23908
23909# ### END LIBTOOL TAG CONFIG: $tagname
23910
23911__EOF__
23912
23913
23914else
23915  # If there is no Makefile yet, we rely on a make rule to execute
23916  # `config.status --recheck' to rerun these tests and create the
23917  # libtool script then.
23918  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23919  if test -f "$ltmain_in"; then
23920    test -f Makefile && make "$ltmain"
23921  fi
23922fi
23923
23924
23925ac_ext=c
23926ac_cpp='$CPP $CPPFLAGS'
23927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23929ac_compiler_gnu=$ac_cv_c_compiler_gnu
23930
23931CC="$lt_save_CC"
23932
23933	else
23934	  tagname=""
23935	fi
23936	;;
23937
23938      GCJ)
23939	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23940	  ac_ext=c
23941ac_cpp='$CPP $CPPFLAGS'
23942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23944ac_compiler_gnu=$ac_cv_c_compiler_gnu
23945
23946
23947# Source file extension for Java test sources.
23948ac_ext=java
23949
23950# Object file extension for compiled Java test sources.
23951objext=o
23952objext_GCJ=$objext
23953
23954# Code to be used in simple compile tests
23955lt_simple_compile_test_code="class foo {}\n"
23956
23957# Code to be used in simple link tests
23958lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23959
23960# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23961
23962# If no C compiler was specified, use CC.
23963LTCC=${LTCC-"$CC"}
23964
23965# If no C compiler flags were specified, use CFLAGS.
23966LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23967
23968# Allow CC to be a program name with arguments.
23969compiler=$CC
23970
23971
23972# save warnings/boilerplate of simple test code
23973ac_outfile=conftest.$ac_objext
23974printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23975eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23976_lt_compiler_boilerplate=`cat conftest.err`
23977$rm conftest*
23978
23979ac_outfile=conftest.$ac_objext
23980printf "$lt_simple_link_test_code" >conftest.$ac_ext
23981eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23982_lt_linker_boilerplate=`cat conftest.err`
23983$rm conftest*
23984
23985
23986# Allow CC to be a program name with arguments.
23987lt_save_CC="$CC"
23988CC=${GCJ-"gcj"}
23989compiler=$CC
23990compiler_GCJ=$CC
23991for cc_temp in $compiler""; do
23992  case $cc_temp in
23993    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23994    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23995    \-*) ;;
23996    *) break;;
23997  esac
23998done
23999cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24000
24001
24002# GCJ did not exist at the time GCC didn't implicitly link libc in.
24003archive_cmds_need_lc_GCJ=no
24004
24005old_archive_cmds_GCJ=$old_archive_cmds
24006
24007
24008lt_prog_compiler_no_builtin_flag_GCJ=
24009
24010if test "$GCC" = yes; then
24011  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24012
24013
24014{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24015echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24016if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24017  echo $ECHO_N "(cached) $ECHO_C" >&6
24018else
24019  lt_cv_prog_compiler_rtti_exceptions=no
24020  ac_outfile=conftest.$ac_objext
24021   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24022   lt_compiler_flag="-fno-rtti -fno-exceptions"
24023   # Insert the option either (1) after the last *FLAGS variable, or
24024   # (2) before a word containing "conftest.", or (3) at the end.
24025   # Note that $ac_compile itself does not contain backslashes and begins
24026   # with a dollar sign (not a hyphen), so the echo should work correctly.
24027   # The option is referenced via a variable to avoid confusing sed.
24028   lt_compile=`echo "$ac_compile" | $SED \
24029   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24030   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24031   -e 's:$: $lt_compiler_flag:'`
24032   (eval echo "\"\$as_me:24032: $lt_compile\"" >&5)
24033   (eval "$lt_compile" 2>conftest.err)
24034   ac_status=$?
24035   cat conftest.err >&5
24036   echo "$as_me:24036: \$? = $ac_status" >&5
24037   if (exit $ac_status) && test -s "$ac_outfile"; then
24038     # The compiler can only warn and ignore the option if not recognized
24039     # So say no if there are warnings other than the usual output.
24040     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24041     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24042     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24043       lt_cv_prog_compiler_rtti_exceptions=yes
24044     fi
24045   fi
24046   $rm conftest*
24047
24048fi
24049{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24050echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24051
24052if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24053    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24054else
24055    :
24056fi
24057
24058fi
24059
24060lt_prog_compiler_wl_GCJ=
24061lt_prog_compiler_pic_GCJ=
24062lt_prog_compiler_static_GCJ=
24063
24064{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24065echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24066
24067  if test "$GCC" = yes; then
24068    lt_prog_compiler_wl_GCJ='-Wl,'
24069    lt_prog_compiler_static_GCJ='-static'
24070
24071    case $host_os in
24072      aix*)
24073      # All AIX code is PIC.
24074      if test "$host_cpu" = ia64; then
24075	# AIX 5 now supports IA64 processor
24076	lt_prog_compiler_static_GCJ='-Bstatic'
24077      fi
24078      ;;
24079
24080    amigaos*)
24081      # FIXME: we need at least 68020 code to build shared libraries, but
24082      # adding the `-m68020' flag to GCC prevents building anything better,
24083      # like `-m68040'.
24084      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24085      ;;
24086
24087    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24088      # PIC is the default for these OSes.
24089      ;;
24090
24091    mingw* | pw32* | os2*)
24092      # This hack is so that the source file can tell whether it is being
24093      # built for inclusion in a dll (and should export symbols for example).
24094      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24095      ;;
24096
24097    darwin* | rhapsody*)
24098      # PIC is the default on this platform
24099      # Common symbols not allowed in MH_DYLIB files
24100      lt_prog_compiler_pic_GCJ='-fno-common'
24101      ;;
24102
24103    interix3*)
24104      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24105      # Instead, we relocate shared libraries at runtime.
24106      ;;
24107
24108    msdosdjgpp*)
24109      # Just because we use GCC doesn't mean we suddenly get shared libraries
24110      # on systems that don't support them.
24111      lt_prog_compiler_can_build_shared_GCJ=no
24112      enable_shared=no
24113      ;;
24114
24115    sysv4*MP*)
24116      if test -d /usr/nec; then
24117	lt_prog_compiler_pic_GCJ=-Kconform_pic
24118      fi
24119      ;;
24120
24121    hpux*)
24122      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24123      # not for PA HP-UX.
24124      case $host_cpu in
24125      hppa*64*|ia64*)
24126	# +Z the default
24127	;;
24128      *)
24129	lt_prog_compiler_pic_GCJ='-fPIC'
24130	;;
24131      esac
24132      ;;
24133
24134    *)
24135      lt_prog_compiler_pic_GCJ='-fPIC'
24136      ;;
24137    esac
24138  else
24139    # PORTME Check for flag to pass linker flags through the system compiler.
24140    case $host_os in
24141    aix*)
24142      lt_prog_compiler_wl_GCJ='-Wl,'
24143      if test "$host_cpu" = ia64; then
24144	# AIX 5 now supports IA64 processor
24145	lt_prog_compiler_static_GCJ='-Bstatic'
24146      else
24147	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24148      fi
24149      ;;
24150      darwin*)
24151        # PIC is the default on this platform
24152        # Common symbols not allowed in MH_DYLIB files
24153       case $cc_basename in
24154         xlc*)
24155         lt_prog_compiler_pic_GCJ='-qnocommon'
24156         lt_prog_compiler_wl_GCJ='-Wl,'
24157         ;;
24158       esac
24159       ;;
24160
24161    mingw* | pw32* | os2*)
24162      # This hack is so that the source file can tell whether it is being
24163      # built for inclusion in a dll (and should export symbols for example).
24164      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24165      ;;
24166
24167    hpux9* | hpux10* | hpux11*)
24168      lt_prog_compiler_wl_GCJ='-Wl,'
24169      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24170      # not for PA HP-UX.
24171      case $host_cpu in
24172      hppa*64*|ia64*)
24173	# +Z the default
24174	;;
24175      *)
24176	lt_prog_compiler_pic_GCJ='+Z'
24177	;;
24178      esac
24179      # Is there a better lt_prog_compiler_static that works with the bundled CC?
24180      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24181      ;;
24182
24183    irix5* | irix6* | nonstopux*)
24184      lt_prog_compiler_wl_GCJ='-Wl,'
24185      # PIC (with -KPIC) is the default.
24186      lt_prog_compiler_static_GCJ='-non_shared'
24187      ;;
24188
24189    newsos6)
24190      lt_prog_compiler_pic_GCJ='-KPIC'
24191      lt_prog_compiler_static_GCJ='-Bstatic'
24192      ;;
24193
24194    linux*)
24195      case $cc_basename in
24196      icc* | ecc*)
24197	lt_prog_compiler_wl_GCJ='-Wl,'
24198	lt_prog_compiler_pic_GCJ='-KPIC'
24199	lt_prog_compiler_static_GCJ='-static'
24200        ;;
24201      pgcc* | pgf77* | pgf90* | pgf95*)
24202        # Portland Group compilers (*not* the Pentium gcc compiler,
24203	# which looks to be a dead project)
24204	lt_prog_compiler_wl_GCJ='-Wl,'
24205	lt_prog_compiler_pic_GCJ='-fpic'
24206	lt_prog_compiler_static_GCJ='-Bstatic'
24207        ;;
24208      ccc*)
24209        lt_prog_compiler_wl_GCJ='-Wl,'
24210        # All Alpha code is PIC.
24211        lt_prog_compiler_static_GCJ='-non_shared'
24212        ;;
24213      esac
24214      ;;
24215
24216    osf3* | osf4* | osf5*)
24217      lt_prog_compiler_wl_GCJ='-Wl,'
24218      # All OSF/1 code is PIC.
24219      lt_prog_compiler_static_GCJ='-non_shared'
24220      ;;
24221
24222    solaris*)
24223      lt_prog_compiler_pic_GCJ='-KPIC'
24224      lt_prog_compiler_static_GCJ='-Bstatic'
24225      case $cc_basename in
24226      f77* | f90* | f95*)
24227	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24228      *)
24229	lt_prog_compiler_wl_GCJ='-Wl,';;
24230      esac
24231      ;;
24232
24233    sunos4*)
24234      lt_prog_compiler_wl_GCJ='-Qoption ld '
24235      lt_prog_compiler_pic_GCJ='-PIC'
24236      lt_prog_compiler_static_GCJ='-Bstatic'
24237      ;;
24238
24239    sysv4 | sysv4.2uw2* | sysv4.3*)
24240      lt_prog_compiler_wl_GCJ='-Wl,'
24241      lt_prog_compiler_pic_GCJ='-KPIC'
24242      lt_prog_compiler_static_GCJ='-Bstatic'
24243      ;;
24244
24245    sysv4*MP*)
24246      if test -d /usr/nec ;then
24247	lt_prog_compiler_pic_GCJ='-Kconform_pic'
24248	lt_prog_compiler_static_GCJ='-Bstatic'
24249      fi
24250      ;;
24251
24252    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24253      lt_prog_compiler_wl_GCJ='-Wl,'
24254      lt_prog_compiler_pic_GCJ='-KPIC'
24255      lt_prog_compiler_static_GCJ='-Bstatic'
24256      ;;
24257
24258    unicos*)
24259      lt_prog_compiler_wl_GCJ='-Wl,'
24260      lt_prog_compiler_can_build_shared_GCJ=no
24261      ;;
24262
24263    uts4*)
24264      lt_prog_compiler_pic_GCJ='-pic'
24265      lt_prog_compiler_static_GCJ='-Bstatic'
24266      ;;
24267
24268    *)
24269      lt_prog_compiler_can_build_shared_GCJ=no
24270      ;;
24271    esac
24272  fi
24273
24274{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24275echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24276
24277#
24278# Check to make sure the PIC flag actually works.
24279#
24280if test -n "$lt_prog_compiler_pic_GCJ"; then
24281
24282{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24283echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24284if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24285  echo $ECHO_N "(cached) $ECHO_C" >&6
24286else
24287  lt_prog_compiler_pic_works_GCJ=no
24288  ac_outfile=conftest.$ac_objext
24289   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24290   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24291   # Insert the option either (1) after the last *FLAGS variable, or
24292   # (2) before a word containing "conftest.", or (3) at the end.
24293   # Note that $ac_compile itself does not contain backslashes and begins
24294   # with a dollar sign (not a hyphen), so the echo should work correctly.
24295   # The option is referenced via a variable to avoid confusing sed.
24296   lt_compile=`echo "$ac_compile" | $SED \
24297   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24298   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24299   -e 's:$: $lt_compiler_flag:'`
24300   (eval echo "\"\$as_me:24300: $lt_compile\"" >&5)
24301   (eval "$lt_compile" 2>conftest.err)
24302   ac_status=$?
24303   cat conftest.err >&5
24304   echo "$as_me:24304: \$? = $ac_status" >&5
24305   if (exit $ac_status) && test -s "$ac_outfile"; then
24306     # The compiler can only warn and ignore the option if not recognized
24307     # So say no if there are warnings other than the usual output.
24308     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24309     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24310     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24311       lt_prog_compiler_pic_works_GCJ=yes
24312     fi
24313   fi
24314   $rm conftest*
24315
24316fi
24317{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24318echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24319
24320if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24321    case $lt_prog_compiler_pic_GCJ in
24322     "" | " "*) ;;
24323     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24324     esac
24325else
24326    lt_prog_compiler_pic_GCJ=
24327     lt_prog_compiler_can_build_shared_GCJ=no
24328fi
24329
24330fi
24331case $host_os in
24332  # For platforms which do not support PIC, -DPIC is meaningless:
24333  *djgpp*)
24334    lt_prog_compiler_pic_GCJ=
24335    ;;
24336  *)
24337    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24338    ;;
24339esac
24340
24341#
24342# Check to make sure the static flag actually works.
24343#
24344wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24345{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24346echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24347if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24348  echo $ECHO_N "(cached) $ECHO_C" >&6
24349else
24350  lt_prog_compiler_static_works_GCJ=no
24351   save_LDFLAGS="$LDFLAGS"
24352   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24353   printf "$lt_simple_link_test_code" > conftest.$ac_ext
24354   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24355     # The linker can only warn and ignore the option if not recognized
24356     # So say no if there are warnings
24357     if test -s conftest.err; then
24358       # Append any errors to the config.log.
24359       cat conftest.err 1>&5
24360       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24361       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24362       if diff conftest.exp conftest.er2 >/dev/null; then
24363         lt_prog_compiler_static_works_GCJ=yes
24364       fi
24365     else
24366       lt_prog_compiler_static_works_GCJ=yes
24367     fi
24368   fi
24369   $rm conftest*
24370   LDFLAGS="$save_LDFLAGS"
24371
24372fi
24373{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24374echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24375
24376if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24377    :
24378else
24379    lt_prog_compiler_static_GCJ=
24380fi
24381
24382
24383{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24384echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24385if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24386  echo $ECHO_N "(cached) $ECHO_C" >&6
24387else
24388  lt_cv_prog_compiler_c_o_GCJ=no
24389   $rm -r conftest 2>/dev/null
24390   mkdir conftest
24391   cd conftest
24392   mkdir out
24393   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24394
24395   lt_compiler_flag="-o out/conftest2.$ac_objext"
24396   # Insert the option either (1) after the last *FLAGS variable, or
24397   # (2) before a word containing "conftest.", or (3) at the end.
24398   # Note that $ac_compile itself does not contain backslashes and begins
24399   # with a dollar sign (not a hyphen), so the echo should work correctly.
24400   lt_compile=`echo "$ac_compile" | $SED \
24401   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24402   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24403   -e 's:$: $lt_compiler_flag:'`
24404   (eval echo "\"\$as_me:24404: $lt_compile\"" >&5)
24405   (eval "$lt_compile" 2>out/conftest.err)
24406   ac_status=$?
24407   cat out/conftest.err >&5
24408   echo "$as_me:24408: \$? = $ac_status" >&5
24409   if (exit $ac_status) && test -s out/conftest2.$ac_objext
24410   then
24411     # The compiler can only warn and ignore the option if not recognized
24412     # So say no if there are warnings
24413     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24414     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24415     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24416       lt_cv_prog_compiler_c_o_GCJ=yes
24417     fi
24418   fi
24419   chmod u+w . 2>&5
24420   $rm conftest*
24421   # SGI C++ compiler will create directory out/ii_files/ for
24422   # template instantiation
24423   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24424   $rm out/* && rmdir out
24425   cd ..
24426   rmdir conftest
24427   $rm conftest*
24428
24429fi
24430{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24431echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24432
24433
24434hard_links="nottested"
24435if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24436  # do not overwrite the value of need_locks provided by the user
24437  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24438echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24439  hard_links=yes
24440  $rm conftest*
24441  ln conftest.a conftest.b 2>/dev/null && hard_links=no
24442  touch conftest.a
24443  ln conftest.a conftest.b 2>&5 || hard_links=no
24444  ln conftest.a conftest.b 2>/dev/null && hard_links=no
24445  { echo "$as_me:$LINENO: result: $hard_links" >&5
24446echo "${ECHO_T}$hard_links" >&6; }
24447  if test "$hard_links" = no; then
24448    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24449echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24450    need_locks=warn
24451  fi
24452else
24453  need_locks=no
24454fi
24455
24456{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24457echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24458
24459  runpath_var=
24460  allow_undefined_flag_GCJ=
24461  enable_shared_with_static_runtimes_GCJ=no
24462  archive_cmds_GCJ=
24463  archive_expsym_cmds_GCJ=
24464  old_archive_From_new_cmds_GCJ=
24465  old_archive_from_expsyms_cmds_GCJ=
24466  export_dynamic_flag_spec_GCJ=
24467  whole_archive_flag_spec_GCJ=
24468  thread_safe_flag_spec_GCJ=
24469  hardcode_libdir_flag_spec_GCJ=
24470  hardcode_libdir_flag_spec_ld_GCJ=
24471  hardcode_libdir_separator_GCJ=
24472  hardcode_direct_GCJ=no
24473  hardcode_minus_L_GCJ=no
24474  hardcode_shlibpath_var_GCJ=unsupported
24475  link_all_deplibs_GCJ=unknown
24476  hardcode_automatic_GCJ=no
24477  module_cmds_GCJ=
24478  module_expsym_cmds_GCJ=
24479  always_export_symbols_GCJ=no
24480  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24481  # include_expsyms should be a list of space-separated symbols to be *always*
24482  # included in the symbol list
24483  include_expsyms_GCJ=
24484  # exclude_expsyms can be an extended regexp of symbols to exclude
24485  # it will be wrapped by ` (' and `)$', so one must not match beginning or
24486  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24487  # as well as any symbol that contains `d'.
24488  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24489  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24490  # platforms (ab)use it in PIC code, but their linkers get confused if
24491  # the symbol is explicitly referenced.  Since portable code cannot
24492  # rely on this symbol name, it's probably fine to never include it in
24493  # preloaded symbol tables.
24494  extract_expsyms_cmds=
24495  # Just being paranoid about ensuring that cc_basename is set.
24496  for cc_temp in $compiler""; do
24497  case $cc_temp in
24498    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24499    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24500    \-*) ;;
24501    *) break;;
24502  esac
24503done
24504cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24505
24506  case $host_os in
24507  cygwin* | mingw* | pw32*)
24508    # FIXME: the MSVC++ port hasn't been tested in a loooong time
24509    # When not using gcc, we currently assume that we are using
24510    # Microsoft Visual C++.
24511    if test "$GCC" != yes; then
24512      with_gnu_ld=no
24513    fi
24514    ;;
24515  interix*)
24516    # we just hope/assume this is gcc and not c89 (= MSVC++)
24517    with_gnu_ld=yes
24518    ;;
24519  openbsd*)
24520    with_gnu_ld=no
24521    ;;
24522  esac
24523
24524  ld_shlibs_GCJ=yes
24525  if test "$with_gnu_ld" = yes; then
24526    # If archive_cmds runs LD, not CC, wlarc should be empty
24527    wlarc='${wl}'
24528
24529    # Set some defaults for GNU ld with shared library support. These
24530    # are reset later if shared libraries are not supported. Putting them
24531    # here allows them to be overridden if necessary.
24532    runpath_var=LD_RUN_PATH
24533    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24534    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24535    # ancient GNU ld didn't support --whole-archive et. al.
24536    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24537	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24538      else
24539  	whole_archive_flag_spec_GCJ=
24540    fi
24541    supports_anon_versioning=no
24542    case `$LD -v 2>/dev/null` in
24543      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24544      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24545      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24546      *\ 2.11.*) ;; # other 2.11 versions
24547      *) supports_anon_versioning=yes ;;
24548    esac
24549
24550    # See if GNU ld supports shared libraries.
24551    case $host_os in
24552    aix3* | aix4* | aix5*)
24553      # On AIX/PPC, the GNU linker is very broken
24554      if test "$host_cpu" != ia64; then
24555	ld_shlibs_GCJ=no
24556	cat <<EOF 1>&2
24557
24558*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24559*** to be unable to reliably create shared libraries on AIX.
24560*** Therefore, libtool is disabling shared libraries support.  If you
24561*** really care for shared libraries, you may want to modify your PATH
24562*** so that a non-GNU linker is found, and then restart.
24563
24564EOF
24565      fi
24566      ;;
24567
24568    amigaos*)
24569      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)'
24570      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24571      hardcode_minus_L_GCJ=yes
24572
24573      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24574      # that the semantics of dynamic libraries on AmigaOS, at least up
24575      # to version 4, is to share data among multiple programs linked
24576      # with the same dynamic library.  Since this doesn't match the
24577      # behavior of shared libraries on other platforms, we can't use
24578      # them.
24579      ld_shlibs_GCJ=no
24580      ;;
24581
24582    beos*)
24583      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24584	allow_undefined_flag_GCJ=unsupported
24585	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24586	# support --undefined.  This deserves some investigation.  FIXME
24587	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24588      else
24589	ld_shlibs_GCJ=no
24590      fi
24591      ;;
24592
24593    cygwin* | mingw* | pw32*)
24594      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24595      # as there is no search path for DLLs.
24596      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24597      allow_undefined_flag_GCJ=unsupported
24598      always_export_symbols_GCJ=no
24599      enable_shared_with_static_runtimes_GCJ=yes
24600      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24601
24602      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24603        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24604	# If the export-symbols file already is a .def file (1st line
24605	# is EXPORTS), use it as is; otherwise, prepend...
24606	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24607	  cp $export_symbols $output_objdir/$soname.def;
24608	else
24609	  echo EXPORTS > $output_objdir/$soname.def;
24610	  cat $export_symbols >> $output_objdir/$soname.def;
24611	fi~
24612	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24613      else
24614	ld_shlibs_GCJ=no
24615      fi
24616      ;;
24617
24618    interix3*)
24619      hardcode_direct_GCJ=no
24620      hardcode_shlibpath_var_GCJ=no
24621      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24622      export_dynamic_flag_spec_GCJ='${wl}-E'
24623      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24624      # Instead, shared libraries are loaded at an image base (0x10000000 by
24625      # default) and relocated if they conflict, which is a slow very memory
24626      # consuming and fragmenting process.  To avoid this, we pick a random,
24627      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24628      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24629      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'
24630      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'
24631      ;;
24632
24633    linux*)
24634      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24635	tmp_addflag=
24636	case $cc_basename,$host_cpu in
24637	pgcc*)				# Portland Group C compiler
24638	  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'
24639	  tmp_addflag=' $pic_flag'
24640	  ;;
24641	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
24642	  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'
24643	  tmp_addflag=' $pic_flag -Mnomain' ;;
24644	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
24645	  tmp_addflag=' -i_dynamic' ;;
24646	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
24647	  tmp_addflag=' -i_dynamic -nofor_main' ;;
24648	ifc* | ifort*)			# Intel Fortran compiler
24649	  tmp_addflag=' -nofor_main' ;;
24650	esac
24651	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24652
24653	if test $supports_anon_versioning = yes; then
24654	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24655  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24656  $echo "local: *; };" >> $output_objdir/$libname.ver~
24657	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24658	fi
24659      else
24660	ld_shlibs_GCJ=no
24661      fi
24662      ;;
24663
24664    netbsd*)
24665      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24666	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24667	wlarc=
24668      else
24669	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24670	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24671      fi
24672      ;;
24673
24674    solaris*)
24675      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24676	ld_shlibs_GCJ=no
24677	cat <<EOF 1>&2
24678
24679*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24680*** create shared libraries on Solaris systems.  Therefore, libtool
24681*** is disabling shared libraries support.  We urge you to upgrade GNU
24682*** binutils to release 2.9.1 or newer.  Another option is to modify
24683*** your PATH or compiler configuration so that the native linker is
24684*** used, and then restart.
24685
24686EOF
24687      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24688	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24689	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24690      else
24691	ld_shlibs_GCJ=no
24692      fi
24693      ;;
24694
24695    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24696      case `$LD -v 2>&1` in
24697        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24698	ld_shlibs_GCJ=no
24699	cat <<_LT_EOF 1>&2
24700
24701*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24702*** reliably create shared libraries on SCO systems.  Therefore, libtool
24703*** is disabling shared libraries support.  We urge you to upgrade GNU
24704*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24705*** your PATH or compiler configuration so that the native linker is
24706*** used, and then restart.
24707
24708_LT_EOF
24709	;;
24710	*)
24711	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24712	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24713	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24714	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24715	  else
24716	    ld_shlibs_GCJ=no
24717	  fi
24718	;;
24719      esac
24720      ;;
24721
24722    sunos4*)
24723      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24724      wlarc=
24725      hardcode_direct_GCJ=yes
24726      hardcode_shlibpath_var_GCJ=no
24727      ;;
24728
24729    *)
24730      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24731	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24732	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24733      else
24734	ld_shlibs_GCJ=no
24735      fi
24736      ;;
24737    esac
24738
24739    if test "$ld_shlibs_GCJ" = no; then
24740      runpath_var=
24741      hardcode_libdir_flag_spec_GCJ=
24742      export_dynamic_flag_spec_GCJ=
24743      whole_archive_flag_spec_GCJ=
24744    fi
24745  else
24746    # PORTME fill in a description of your system's linker (not GNU ld)
24747    case $host_os in
24748    aix3*)
24749      allow_undefined_flag_GCJ=unsupported
24750      always_export_symbols_GCJ=yes
24751      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'
24752      # Note: this linker hardcodes the directories in LIBPATH if there
24753      # are no directories specified by -L.
24754      hardcode_minus_L_GCJ=yes
24755      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24756	# Neither direct hardcoding nor static linking is supported with a
24757	# broken collect2.
24758	hardcode_direct_GCJ=unsupported
24759      fi
24760      ;;
24761
24762    aix4* | aix5*)
24763      if test "$host_cpu" = ia64; then
24764	# On IA64, the linker does run time linking by default, so we don't
24765	# have to do anything special.
24766	aix_use_runtimelinking=no
24767	exp_sym_flag='-Bexport'
24768	no_entry_flag=""
24769      else
24770	# If we're using GNU nm, then we don't want the "-C" option.
24771	# -C means demangle to AIX nm, but means don't demangle with GNU nm
24772	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24773	  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'
24774	else
24775	  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'
24776	fi
24777	aix_use_runtimelinking=no
24778
24779	# Test if we are trying to use run time linking or normal
24780	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
24781	# need to do runtime linking.
24782	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24783	  for ld_flag in $LDFLAGS; do
24784  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24785  	    aix_use_runtimelinking=yes
24786  	    break
24787  	  fi
24788	  done
24789	  ;;
24790	esac
24791
24792	exp_sym_flag='-bexport'
24793	no_entry_flag='-bnoentry'
24794      fi
24795
24796      # When large executables or shared objects are built, AIX ld can
24797      # have problems creating the table of contents.  If linking a library
24798      # or program results in "error TOC overflow" add -mminimal-toc to
24799      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24800      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24801
24802      archive_cmds_GCJ=''
24803      hardcode_direct_GCJ=yes
24804      hardcode_libdir_separator_GCJ=':'
24805      link_all_deplibs_GCJ=yes
24806
24807      if test "$GCC" = yes; then
24808	case $host_os in aix4.[012]|aix4.[012].*)
24809	# We only want to do this on AIX 4.2 and lower, the check
24810	# below for broken collect2 doesn't work under 4.3+
24811	  collect2name=`${CC} -print-prog-name=collect2`
24812	  if test -f "$collect2name" && \
24813  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
24814	  then
24815  	  # We have reworked collect2
24816  	  hardcode_direct_GCJ=yes
24817	  else
24818  	  # We have old collect2
24819  	  hardcode_direct_GCJ=unsupported
24820  	  # It fails to find uninstalled libraries when the uninstalled
24821  	  # path is not listed in the libpath.  Setting hardcode_minus_L
24822  	  # to unsupported forces relinking
24823  	  hardcode_minus_L_GCJ=yes
24824  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
24825  	  hardcode_libdir_separator_GCJ=
24826	  fi
24827	  ;;
24828	esac
24829	shared_flag='-shared'
24830	if test "$aix_use_runtimelinking" = yes; then
24831	  shared_flag="$shared_flag "'${wl}-G'
24832	fi
24833      else
24834	# not using gcc
24835	if test "$host_cpu" = ia64; then
24836  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24837  	# chokes on -Wl,-G. The following line is correct:
24838	  shared_flag='-G'
24839	else
24840	  if test "$aix_use_runtimelinking" = yes; then
24841	    shared_flag='${wl}-G'
24842	  else
24843	    shared_flag='${wl}-bM:SRE'
24844	  fi
24845	fi
24846      fi
24847
24848      # It seems that -bexpall does not export symbols beginning with
24849      # underscore (_), so it is better to generate a list of symbols to export.
24850      always_export_symbols_GCJ=yes
24851      if test "$aix_use_runtimelinking" = yes; then
24852	# Warning - without using the other runtime loading flags (-brtl),
24853	# -berok will link without error, but may produce a broken library.
24854	allow_undefined_flag_GCJ='-berok'
24855       # Determine the default libpath from the value encoded in an empty executable.
24856       cat >conftest.$ac_ext <<_ACEOF
24857/* confdefs.h.  */
24858_ACEOF
24859cat confdefs.h >>conftest.$ac_ext
24860cat >>conftest.$ac_ext <<_ACEOF
24861/* end confdefs.h.  */
24862
24863int
24864main ()
24865{
24866
24867  ;
24868  return 0;
24869}
24870_ACEOF
24871rm -f conftest.$ac_objext conftest$ac_exeext
24872if { (ac_try="$ac_link"
24873case "(($ac_try" in
24874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24875  *) ac_try_echo=$ac_try;;
24876esac
24877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24878  (eval "$ac_link") 2>conftest.er1
24879  ac_status=$?
24880  grep -v '^ *+' conftest.er1 >conftest.err
24881  rm -f conftest.er1
24882  cat conftest.err >&5
24883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884  (exit $ac_status); } &&
24885	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24886  { (case "(($ac_try" in
24887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24888  *) ac_try_echo=$ac_try;;
24889esac
24890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24891  (eval "$ac_try") 2>&5
24892  ac_status=$?
24893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24894  (exit $ac_status); }; } &&
24895	 { ac_try='test -s conftest$ac_exeext'
24896  { (case "(($ac_try" in
24897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24898  *) ac_try_echo=$ac_try;;
24899esac
24900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24901  (eval "$ac_try") 2>&5
24902  ac_status=$?
24903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24904  (exit $ac_status); }; }; then
24905
24906aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24907}'`
24908# Check for a 64-bit object if we didn't find anything.
24909if 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; }
24910}'`; fi
24911else
24912  echo "$as_me: failed program was:" >&5
24913sed 's/^/| /' conftest.$ac_ext >&5
24914
24915
24916fi
24917
24918rm -f core conftest.err conftest.$ac_objext \
24919      conftest$ac_exeext conftest.$ac_ext
24920if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24921
24922       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24923	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"
24924       else
24925	if test "$host_cpu" = ia64; then
24926	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24927	  allow_undefined_flag_GCJ="-z nodefs"
24928	  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"
24929	else
24930	 # Determine the default libpath from the value encoded in an empty executable.
24931	 cat >conftest.$ac_ext <<_ACEOF
24932/* confdefs.h.  */
24933_ACEOF
24934cat confdefs.h >>conftest.$ac_ext
24935cat >>conftest.$ac_ext <<_ACEOF
24936/* end confdefs.h.  */
24937
24938int
24939main ()
24940{
24941
24942  ;
24943  return 0;
24944}
24945_ACEOF
24946rm -f conftest.$ac_objext conftest$ac_exeext
24947if { (ac_try="$ac_link"
24948case "(($ac_try" in
24949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24950  *) ac_try_echo=$ac_try;;
24951esac
24952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24953  (eval "$ac_link") 2>conftest.er1
24954  ac_status=$?
24955  grep -v '^ *+' conftest.er1 >conftest.err
24956  rm -f conftest.er1
24957  cat conftest.err >&5
24958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24959  (exit $ac_status); } &&
24960	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24961  { (case "(($ac_try" in
24962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24963  *) ac_try_echo=$ac_try;;
24964esac
24965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24966  (eval "$ac_try") 2>&5
24967  ac_status=$?
24968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969  (exit $ac_status); }; } &&
24970	 { ac_try='test -s conftest$ac_exeext'
24971  { (case "(($ac_try" in
24972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24973  *) ac_try_echo=$ac_try;;
24974esac
24975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24976  (eval "$ac_try") 2>&5
24977  ac_status=$?
24978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979  (exit $ac_status); }; }; then
24980
24981aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24982}'`
24983# Check for a 64-bit object if we didn't find anything.
24984if 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; }
24985}'`; fi
24986else
24987  echo "$as_me: failed program was:" >&5
24988sed 's/^/| /' conftest.$ac_ext >&5
24989
24990
24991fi
24992
24993rm -f core conftest.err conftest.$ac_objext \
24994      conftest$ac_exeext conftest.$ac_ext
24995if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24996
24997	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24998	  # Warning - without using the other run time loading flags,
24999	  # -berok will link without error, but may produce a broken library.
25000	  no_undefined_flag_GCJ=' ${wl}-bernotok'
25001	  allow_undefined_flag_GCJ=' ${wl}-berok'
25002	  # Exported symbols can be pulled into shared objects from archives
25003	  whole_archive_flag_spec_GCJ='$convenience'
25004	  archive_cmds_need_lc_GCJ=yes
25005	  # This is similar to how AIX traditionally builds its shared libraries.
25006	  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'
25007	fi
25008      fi
25009      ;;
25010
25011    amigaos*)
25012      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)'
25013      hardcode_libdir_flag_spec_GCJ='-L$libdir'
25014      hardcode_minus_L_GCJ=yes
25015      # see comment about different semantics on the GNU ld section
25016      ld_shlibs_GCJ=no
25017      ;;
25018
25019    bsdi[45]*)
25020      export_dynamic_flag_spec_GCJ=-rdynamic
25021      ;;
25022
25023    cygwin* | mingw* | pw32*)
25024      # When not using gcc, we currently assume that we are using
25025      # Microsoft Visual C++.
25026      # hardcode_libdir_flag_spec is actually meaningless, as there is
25027      # no search path for DLLs.
25028      hardcode_libdir_flag_spec_GCJ=' '
25029      allow_undefined_flag_GCJ=unsupported
25030      # Tell ltmain to make .lib files, not .a files.
25031      libext=lib
25032      # Tell ltmain to make .dll files, not .so files.
25033      shrext_cmds=".dll"
25034      # FIXME: Setting linknames here is a bad hack.
25035      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25036      # The linker will automatically build a .lib file if we build a DLL.
25037      old_archive_From_new_cmds_GCJ='true'
25038      # FIXME: Should let the user specify the lib program.
25039      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25040      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25041      enable_shared_with_static_runtimes_GCJ=yes
25042      ;;
25043
25044    darwin* | rhapsody*)
25045      case $host_os in
25046        rhapsody* | darwin1.[012])
25047         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25048         ;;
25049       *) # Darwin 1.3 on
25050         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25051           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25052         else
25053           case ${MACOSX_DEPLOYMENT_TARGET} in
25054             10.[012])
25055               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25056               ;;
25057             10.*)
25058               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25059               ;;
25060           esac
25061         fi
25062         ;;
25063      esac
25064      archive_cmds_need_lc_GCJ=no
25065      hardcode_direct_GCJ=no
25066      hardcode_automatic_GCJ=yes
25067      hardcode_shlibpath_var_GCJ=unsupported
25068      whole_archive_flag_spec_GCJ=''
25069      link_all_deplibs_GCJ=yes
25070    if test "$GCC" = yes ; then
25071    	output_verbose_link_cmd='echo'
25072        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25073      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25074      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25075      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}'
25076      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}'
25077    else
25078      case $cc_basename in
25079        xlc*)
25080         output_verbose_link_cmd='echo'
25081         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25082         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25083          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25084         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}'
25085          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}'
25086          ;;
25087       *)
25088         ld_shlibs_GCJ=no
25089          ;;
25090      esac
25091    fi
25092      ;;
25093
25094    dgux*)
25095      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25096      hardcode_libdir_flag_spec_GCJ='-L$libdir'
25097      hardcode_shlibpath_var_GCJ=no
25098      ;;
25099
25100    freebsd1*)
25101      ld_shlibs_GCJ=no
25102      ;;
25103
25104    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25105    # support.  Future versions do this automatically, but an explicit c++rt0.o
25106    # does not break anything, and helps significantly (at the cost of a little
25107    # extra space).
25108    freebsd2.2*)
25109      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25110      hardcode_libdir_flag_spec_GCJ='-R$libdir'
25111      hardcode_direct_GCJ=yes
25112      hardcode_shlibpath_var_GCJ=no
25113      ;;
25114
25115    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25116    freebsd2*)
25117      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25118      hardcode_direct_GCJ=yes
25119      hardcode_minus_L_GCJ=yes
25120      hardcode_shlibpath_var_GCJ=no
25121      ;;
25122
25123    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25124    freebsd* | kfreebsd*-gnu | dragonfly*)
25125      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25126      hardcode_libdir_flag_spec_GCJ='-R$libdir'
25127      hardcode_direct_GCJ=yes
25128      hardcode_shlibpath_var_GCJ=no
25129      ;;
25130
25131    hpux9*)
25132      if test "$GCC" = yes; then
25133	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'
25134      else
25135	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'
25136      fi
25137      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25138      hardcode_libdir_separator_GCJ=:
25139      hardcode_direct_GCJ=yes
25140
25141      # hardcode_minus_L: Not really in the search PATH,
25142      # but as the default location of the library.
25143      hardcode_minus_L_GCJ=yes
25144      export_dynamic_flag_spec_GCJ='${wl}-E'
25145      ;;
25146
25147    hpux10*)
25148      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25149	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25150      else
25151	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25152      fi
25153      if test "$with_gnu_ld" = no; then
25154	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25155	hardcode_libdir_separator_GCJ=:
25156
25157	hardcode_direct_GCJ=yes
25158	export_dynamic_flag_spec_GCJ='${wl}-E'
25159
25160	# hardcode_minus_L: Not really in the search PATH,
25161	# but as the default location of the library.
25162	hardcode_minus_L_GCJ=yes
25163      fi
25164      ;;
25165
25166    hpux11*)
25167      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25168	case $host_cpu in
25169	hppa*64*)
25170	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25171	  ;;
25172	ia64*)
25173	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25174	  ;;
25175	*)
25176	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25177	  ;;
25178	esac
25179      else
25180	case $host_cpu in
25181	hppa*64*)
25182	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25183	  ;;
25184	ia64*)
25185	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25186	  ;;
25187	*)
25188	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25189	  ;;
25190	esac
25191      fi
25192      if test "$with_gnu_ld" = no; then
25193	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25194	hardcode_libdir_separator_GCJ=:
25195
25196	case $host_cpu in
25197	hppa*64*|ia64*)
25198	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25199	  hardcode_direct_GCJ=no
25200	  hardcode_shlibpath_var_GCJ=no
25201	  ;;
25202	*)
25203	  hardcode_direct_GCJ=yes
25204	  export_dynamic_flag_spec_GCJ='${wl}-E'
25205
25206	  # hardcode_minus_L: Not really in the search PATH,
25207	  # but as the default location of the library.
25208	  hardcode_minus_L_GCJ=yes
25209	  ;;
25210	esac
25211      fi
25212      ;;
25213
25214    irix5* | irix6* | nonstopux*)
25215      if test "$GCC" = yes; then
25216	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'
25217      else
25218	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'
25219	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25220      fi
25221      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25222      hardcode_libdir_separator_GCJ=:
25223      link_all_deplibs_GCJ=yes
25224      ;;
25225
25226    netbsd*)
25227      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25228	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
25229      else
25230	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25231      fi
25232      hardcode_libdir_flag_spec_GCJ='-R$libdir'
25233      hardcode_direct_GCJ=yes
25234      hardcode_shlibpath_var_GCJ=no
25235      ;;
25236
25237    newsos6)
25238      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25239      hardcode_direct_GCJ=yes
25240      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25241      hardcode_libdir_separator_GCJ=:
25242      hardcode_shlibpath_var_GCJ=no
25243      ;;
25244
25245    openbsd*)
25246      hardcode_direct_GCJ=yes
25247      hardcode_shlibpath_var_GCJ=no
25248      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25249	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25250	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25251	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25252	export_dynamic_flag_spec_GCJ='${wl}-E'
25253      else
25254       case $host_os in
25255	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25256	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25257	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
25258	   ;;
25259	 *)
25260	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25261	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25262	   ;;
25263       esac
25264      fi
25265      ;;
25266
25267    os2*)
25268      hardcode_libdir_flag_spec_GCJ='-L$libdir'
25269      hardcode_minus_L_GCJ=yes
25270      allow_undefined_flag_GCJ=unsupported
25271      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'
25272      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25273      ;;
25274
25275    osf3*)
25276      if test "$GCC" = yes; then
25277	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25278	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'
25279      else
25280	allow_undefined_flag_GCJ=' -expect_unresolved \*'
25281	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'
25282      fi
25283      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25284      hardcode_libdir_separator_GCJ=:
25285      ;;
25286
25287    osf4* | osf5*)	# as osf3* with the addition of -msym flag
25288      if test "$GCC" = yes; then
25289	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25290	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'
25291	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25292      else
25293	allow_undefined_flag_GCJ=' -expect_unresolved \*'
25294	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'
25295	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~
25296	$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'
25297
25298	# Both c and cxx compiler support -rpath directly
25299	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25300      fi
25301      hardcode_libdir_separator_GCJ=:
25302      ;;
25303
25304    solaris*)
25305      no_undefined_flag_GCJ=' -z text'
25306      if test "$GCC" = yes; then
25307	wlarc='${wl}'
25308	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25309	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25310	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25311      else
25312	wlarc=''
25313	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25314	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25315  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25316      fi
25317      hardcode_libdir_flag_spec_GCJ='-R$libdir'
25318      hardcode_shlibpath_var_GCJ=no
25319      case $host_os in
25320      solaris2.[0-5] | solaris2.[0-5].*) ;;
25321      *)
25322 	# The compiler driver will combine linker options so we
25323 	# cannot just pass the convience library names through
25324 	# without $wl, iff we do not link with $LD.
25325 	# Luckily, gcc supports the same syntax we need for Sun Studio.
25326 	# Supported since Solaris 2.6 (maybe 2.5.1?)
25327 	case $wlarc in
25328 	'')
25329 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25330 	*)
25331 	  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' ;;
25332 	esac ;;
25333      esac
25334      link_all_deplibs_GCJ=yes
25335      ;;
25336
25337    sunos4*)
25338      if test "x$host_vendor" = xsequent; then
25339	# Use $CC to link under sequent, because it throws in some extra .o
25340	# files that make .init and .fini sections work.
25341	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25342      else
25343	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25344      fi
25345      hardcode_libdir_flag_spec_GCJ='-L$libdir'
25346      hardcode_direct_GCJ=yes
25347      hardcode_minus_L_GCJ=yes
25348      hardcode_shlibpath_var_GCJ=no
25349      ;;
25350
25351    sysv4)
25352      case $host_vendor in
25353	sni)
25354	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25355	  hardcode_direct_GCJ=yes # is this really true???
25356	;;
25357	siemens)
25358	  ## LD is ld it makes a PLAMLIB
25359	  ## CC just makes a GrossModule.
25360	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25361	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25362	  hardcode_direct_GCJ=no
25363        ;;
25364	motorola)
25365	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25366	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25367	;;
25368      esac
25369      runpath_var='LD_RUN_PATH'
25370      hardcode_shlibpath_var_GCJ=no
25371      ;;
25372
25373    sysv4.3*)
25374      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25375      hardcode_shlibpath_var_GCJ=no
25376      export_dynamic_flag_spec_GCJ='-Bexport'
25377      ;;
25378
25379    sysv4*MP*)
25380      if test -d /usr/nec; then
25381	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25382	hardcode_shlibpath_var_GCJ=no
25383	runpath_var=LD_RUN_PATH
25384	hardcode_runpath_var=yes
25385	ld_shlibs_GCJ=yes
25386      fi
25387      ;;
25388
25389    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25390      no_undefined_flag_GCJ='${wl}-z,text'
25391      archive_cmds_need_lc_GCJ=no
25392      hardcode_shlibpath_var_GCJ=no
25393      runpath_var='LD_RUN_PATH'
25394
25395      if test "$GCC" = yes; then
25396	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25397	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25398      else
25399	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25400	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25401      fi
25402      ;;
25403
25404    sysv5* | sco3.2v5* | sco5v6*)
25405      # Note: We can NOT use -z defs as we might desire, because we do not
25406      # link with -lc, and that would cause any symbols used from libc to
25407      # always be unresolved, which means just about no library would
25408      # ever link correctly.  If we're not using GNU ld we use -z text
25409      # though, which does catch some bad symbols but isn't as heavy-handed
25410      # as -z defs.
25411      no_undefined_flag_GCJ='${wl}-z,text'
25412      allow_undefined_flag_GCJ='${wl}-z,nodefs'
25413      archive_cmds_need_lc_GCJ=no
25414      hardcode_shlibpath_var_GCJ=no
25415      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25416      hardcode_libdir_separator_GCJ=':'
25417      link_all_deplibs_GCJ=yes
25418      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25419      runpath_var='LD_RUN_PATH'
25420
25421      if test "$GCC" = yes; then
25422	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25423	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25424      else
25425	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25426	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25427      fi
25428      ;;
25429
25430    uts4*)
25431      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25432      hardcode_libdir_flag_spec_GCJ='-L$libdir'
25433      hardcode_shlibpath_var_GCJ=no
25434      ;;
25435
25436    *)
25437      ld_shlibs_GCJ=no
25438      ;;
25439    esac
25440  fi
25441
25442{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25443echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25444test "$ld_shlibs_GCJ" = no && can_build_shared=no
25445
25446#
25447# Do we need to explicitly link libc?
25448#
25449case "x$archive_cmds_need_lc_GCJ" in
25450x|xyes)
25451  # Assume -lc should be added
25452  archive_cmds_need_lc_GCJ=yes
25453
25454  if test "$enable_shared" = yes && test "$GCC" = yes; then
25455    case $archive_cmds_GCJ in
25456    *'~'*)
25457      # FIXME: we may have to deal with multi-command sequences.
25458      ;;
25459    '$CC '*)
25460      # Test whether the compiler implicitly links with -lc since on some
25461      # systems, -lgcc has to come before -lc. If gcc already passes -lc
25462      # to ld, don't add -lc before -lgcc.
25463      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25464echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25465      $rm conftest*
25466      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25467
25468      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25469  (eval $ac_compile) 2>&5
25470  ac_status=$?
25471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25472  (exit $ac_status); } 2>conftest.err; then
25473        soname=conftest
25474        lib=conftest
25475        libobjs=conftest.$ac_objext
25476        deplibs=
25477        wl=$lt_prog_compiler_wl_GCJ
25478	pic_flag=$lt_prog_compiler_pic_GCJ
25479        compiler_flags=-v
25480        linker_flags=-v
25481        verstring=
25482        output_objdir=.
25483        libname=conftest
25484        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25485        allow_undefined_flag_GCJ=
25486        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25487  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25488  ac_status=$?
25489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490  (exit $ac_status); }
25491        then
25492	  archive_cmds_need_lc_GCJ=no
25493        else
25494	  archive_cmds_need_lc_GCJ=yes
25495        fi
25496        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25497      else
25498        cat conftest.err 1>&5
25499      fi
25500      $rm conftest*
25501      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25502echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25503      ;;
25504    esac
25505  fi
25506  ;;
25507esac
25508
25509{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25510echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25511library_names_spec=
25512libname_spec='lib$name'
25513soname_spec=
25514shrext_cmds=".so"
25515postinstall_cmds=
25516postuninstall_cmds=
25517finish_cmds=
25518finish_eval=
25519shlibpath_var=
25520shlibpath_overrides_runpath=unknown
25521version_type=none
25522dynamic_linker="$host_os ld.so"
25523sys_lib_dlsearch_path_spec="/lib /usr/lib"
25524if test "$GCC" = yes; then
25525  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25526  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25527    # if the path contains ";" then we assume it to be the separator
25528    # otherwise default to the standard path separator (i.e. ":") - it is
25529    # assumed that no part of a normal pathname contains ";" but that should
25530    # okay in the real world where ";" in dirpaths is itself problematic.
25531    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25532  else
25533    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25534  fi
25535else
25536  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25537fi
25538need_lib_prefix=unknown
25539hardcode_into_libs=no
25540
25541# when you set need_version to no, make sure it does not cause -set_version
25542# flags to be left without arguments
25543need_version=unknown
25544
25545case $host_os in
25546aix3*)
25547  version_type=linux
25548  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25549  shlibpath_var=LIBPATH
25550
25551  # AIX 3 has no versioning support, so we append a major version to the name.
25552  soname_spec='${libname}${release}${shared_ext}$major'
25553  ;;
25554
25555aix4* | aix5*)
25556  version_type=linux
25557  need_lib_prefix=no
25558  need_version=no
25559  hardcode_into_libs=yes
25560  if test "$host_cpu" = ia64; then
25561    # AIX 5 supports IA64
25562    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25563    shlibpath_var=LD_LIBRARY_PATH
25564  else
25565    # With GCC up to 2.95.x, collect2 would create an import file
25566    # for dependence libraries.  The import file would start with
25567    # the line `#! .'.  This would cause the generated library to
25568    # depend on `.', always an invalid library.  This was fixed in
25569    # development snapshots of GCC prior to 3.0.
25570    case $host_os in
25571      aix4 | aix4.[01] | aix4.[01].*)
25572      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25573	   echo ' yes '
25574	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25575	:
25576      else
25577	can_build_shared=no
25578      fi
25579      ;;
25580    esac
25581    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25582    # soname into executable. Probably we can add versioning support to
25583    # collect2, so additional links can be useful in future.
25584    if test "$aix_use_runtimelinking" = yes; then
25585      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25586      # instead of lib<name>.a to let people know that these are not
25587      # typical AIX shared libraries.
25588      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25589    else
25590      # We preserve .a as extension for shared libraries through AIX4.2
25591      # and later when we are not doing run time linking.
25592      library_names_spec='${libname}${release}.a $libname.a'
25593      soname_spec='${libname}${release}${shared_ext}$major'
25594    fi
25595    shlibpath_var=LIBPATH
25596  fi
25597  ;;
25598
25599amigaos*)
25600  library_names_spec='$libname.ixlibrary $libname.a'
25601  # Create ${libname}_ixlibrary.a entries in /sys/libs.
25602  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'
25603  ;;
25604
25605beos*)
25606  library_names_spec='${libname}${shared_ext}'
25607  dynamic_linker="$host_os ld.so"
25608  shlibpath_var=LIBRARY_PATH
25609  ;;
25610
25611bsdi[45]*)
25612  version_type=linux
25613  need_version=no
25614  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25615  soname_spec='${libname}${release}${shared_ext}$major'
25616  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25617  shlibpath_var=LD_LIBRARY_PATH
25618  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25619  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25620  # the default ld.so.conf also contains /usr/contrib/lib and
25621  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25622  # libtool to hard-code these into programs
25623  ;;
25624
25625cygwin* | mingw* | pw32*)
25626  version_type=windows
25627  shrext_cmds=".dll"
25628  need_version=no
25629  need_lib_prefix=no
25630
25631  case $GCC,$host_os in
25632  yes,cygwin* | yes,mingw* | yes,pw32*)
25633    library_names_spec='$libname.dll.a'
25634    # DLL is installed to $(libdir)/../bin by postinstall_cmds
25635    postinstall_cmds='base_file=`basename \${file}`~
25636      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25637      dldir=$destdir/`dirname \$dlpath`~
25638      test -d \$dldir || mkdir -p \$dldir~
25639      $install_prog $dir/$dlname \$dldir/$dlname~
25640      chmod a+x \$dldir/$dlname'
25641    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25642      dlpath=$dir/\$dldll~
25643       $rm \$dlpath'
25644    shlibpath_overrides_runpath=yes
25645
25646    case $host_os in
25647    cygwin*)
25648      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25649      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25650      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25651      ;;
25652    mingw*)
25653      # MinGW DLLs use traditional 'lib' prefix
25654      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25655      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25656      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25657        # It is most probably a Windows format PATH printed by
25658        # mingw gcc, but we are running on Cygwin. Gcc prints its search
25659        # path with ; separators, and with drive letters. We can handle the
25660        # drive letters (cygwin fileutils understands them), so leave them,
25661        # especially as we might pass files found there to a mingw objdump,
25662        # which wouldn't understand a cygwinified path. Ahh.
25663        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25664      else
25665        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25666      fi
25667      ;;
25668    pw32*)
25669      # pw32 DLLs use 'pw' prefix rather than 'lib'
25670      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25671      ;;
25672    esac
25673    ;;
25674
25675  *)
25676    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25677    ;;
25678  esac
25679  dynamic_linker='Win32 ld.exe'
25680  # FIXME: first we should search . and the directory the executable is in
25681  shlibpath_var=PATH
25682  ;;
25683
25684darwin* | rhapsody*)
25685  dynamic_linker="$host_os dyld"
25686  version_type=darwin
25687  need_lib_prefix=no
25688  need_version=no
25689  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25690  soname_spec='${libname}${release}${major}$shared_ext'
25691  shlibpath_overrides_runpath=yes
25692  shlibpath_var=DYLD_LIBRARY_PATH
25693  shrext_cmds='.dylib'
25694  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25695  if test "$GCC" = yes; then
25696    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"`
25697  else
25698    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25699  fi
25700  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25701  ;;
25702
25703dgux*)
25704  version_type=linux
25705  need_lib_prefix=no
25706  need_version=no
25707  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25708  soname_spec='${libname}${release}${shared_ext}$major'
25709  shlibpath_var=LD_LIBRARY_PATH
25710  ;;
25711
25712freebsd1*)
25713  dynamic_linker=no
25714  ;;
25715
25716kfreebsd*-gnu)
25717  version_type=linux
25718  need_lib_prefix=no
25719  need_version=no
25720  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25721  soname_spec='${libname}${release}${shared_ext}$major'
25722  shlibpath_var=LD_LIBRARY_PATH
25723  shlibpath_overrides_runpath=no
25724  hardcode_into_libs=yes
25725  dynamic_linker='GNU ld.so'
25726  ;;
25727
25728freebsd* | dragonfly*)
25729  # DragonFly does not have aout.  When/if they implement a new
25730  # versioning mechanism, adjust this.
25731  if test -x /usr/bin/objformat; then
25732    objformat=`/usr/bin/objformat`
25733  else
25734    case $host_os in
25735    freebsd[123]*) objformat=aout ;;
25736    *) objformat=elf ;;
25737    esac
25738  fi
25739  version_type=freebsd-$objformat
25740  case $version_type in
25741    freebsd-elf*)
25742      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25743      need_version=no
25744      need_lib_prefix=no
25745      ;;
25746    freebsd-*)
25747      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25748      need_version=yes
25749      ;;
25750  esac
25751  shlibpath_var=LD_LIBRARY_PATH
25752  case $host_os in
25753  freebsd2*)
25754    shlibpath_overrides_runpath=yes
25755    ;;
25756  freebsd3.[01]* | freebsdelf3.[01]*)
25757    shlibpath_overrides_runpath=yes
25758    hardcode_into_libs=yes
25759    ;;
25760  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25761  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25762    shlibpath_overrides_runpath=no
25763    hardcode_into_libs=yes
25764    ;;
25765  freebsd*) # from 4.6 on
25766    shlibpath_overrides_runpath=yes
25767    hardcode_into_libs=yes
25768    ;;
25769  esac
25770  ;;
25771
25772gnu*)
25773  version_type=linux
25774  need_lib_prefix=no
25775  need_version=no
25776  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25777  soname_spec='${libname}${release}${shared_ext}$major'
25778  shlibpath_var=LD_LIBRARY_PATH
25779  hardcode_into_libs=yes
25780  ;;
25781
25782hpux9* | hpux10* | hpux11*)
25783  # Give a soname corresponding to the major version so that dld.sl refuses to
25784  # link against other versions.
25785  version_type=sunos
25786  need_lib_prefix=no
25787  need_version=no
25788  case $host_cpu in
25789  ia64*)
25790    shrext_cmds='.so'
25791    hardcode_into_libs=yes
25792    dynamic_linker="$host_os dld.so"
25793    shlibpath_var=LD_LIBRARY_PATH
25794    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25795    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25796    soname_spec='${libname}${release}${shared_ext}$major'
25797    if test "X$HPUX_IA64_MODE" = X32; then
25798      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25799    else
25800      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25801    fi
25802    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25803    ;;
25804   hppa*64*)
25805     shrext_cmds='.sl'
25806     hardcode_into_libs=yes
25807     dynamic_linker="$host_os dld.sl"
25808     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25809     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25810     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25811     soname_spec='${libname}${release}${shared_ext}$major'
25812     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25813     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25814     ;;
25815   *)
25816    shrext_cmds='.sl'
25817    dynamic_linker="$host_os dld.sl"
25818    shlibpath_var=SHLIB_PATH
25819    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25820    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25821    soname_spec='${libname}${release}${shared_ext}$major'
25822    ;;
25823  esac
25824  # HP-UX runs *really* slowly unless shared libraries are mode 555.
25825  postinstall_cmds='chmod 555 $lib'
25826  ;;
25827
25828interix3*)
25829  version_type=linux
25830  need_lib_prefix=no
25831  need_version=no
25832  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25833  soname_spec='${libname}${release}${shared_ext}$major'
25834  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25835  shlibpath_var=LD_LIBRARY_PATH
25836  shlibpath_overrides_runpath=no
25837  hardcode_into_libs=yes
25838  ;;
25839
25840irix5* | irix6* | nonstopux*)
25841  case $host_os in
25842    nonstopux*) version_type=nonstopux ;;
25843    *)
25844	if test "$lt_cv_prog_gnu_ld" = yes; then
25845		version_type=linux
25846	else
25847		version_type=irix
25848	fi ;;
25849  esac
25850  need_lib_prefix=no
25851  need_version=no
25852  soname_spec='${libname}${release}${shared_ext}$major'
25853  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25854  case $host_os in
25855  irix5* | nonstopux*)
25856    libsuff= shlibsuff=
25857    ;;
25858  *)
25859    case $LD in # libtool.m4 will add one of these switches to LD
25860    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25861      libsuff= shlibsuff= libmagic=32-bit;;
25862    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25863      libsuff=32 shlibsuff=N32 libmagic=N32;;
25864    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25865      libsuff=64 shlibsuff=64 libmagic=64-bit;;
25866    *) libsuff= shlibsuff= libmagic=never-match;;
25867    esac
25868    ;;
25869  esac
25870  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25871  shlibpath_overrides_runpath=no
25872  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25873  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25874  hardcode_into_libs=yes
25875  ;;
25876
25877# No shared lib support for Linux oldld, aout, or coff.
25878linux*oldld* | linux*aout* | linux*coff*)
25879  dynamic_linker=no
25880  ;;
25881
25882# This must be Linux ELF.
25883linux*)
25884  version_type=linux
25885  need_lib_prefix=no
25886  need_version=no
25887  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25888  soname_spec='${libname}${release}${shared_ext}$major'
25889  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25890  shlibpath_var=LD_LIBRARY_PATH
25891  shlibpath_overrides_runpath=no
25892  # This implies no fast_install, which is unacceptable.
25893  # Some rework will be needed to allow for fast_install
25894  # before this can be enabled.
25895  hardcode_into_libs=yes
25896
25897  # Append ld.so.conf contents to the search path
25898  if test -f /etc/ld.so.conf; then
25899    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' ' '`
25900    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25901  fi
25902
25903  # We used to test for /lib/ld.so.1 and disable shared libraries on
25904  # powerpc, because MkLinux only supported shared libraries with the
25905  # GNU dynamic linker.  Since this was broken with cross compilers,
25906  # most powerpc-linux boxes support dynamic linking these days and
25907  # people can always --disable-shared, the test was removed, and we
25908  # assume the GNU/Linux dynamic linker is in use.
25909  dynamic_linker='GNU/Linux ld.so'
25910  ;;
25911
25912knetbsd*-gnu)
25913  version_type=linux
25914  need_lib_prefix=no
25915  need_version=no
25916  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25917  soname_spec='${libname}${release}${shared_ext}$major'
25918  shlibpath_var=LD_LIBRARY_PATH
25919  shlibpath_overrides_runpath=no
25920  hardcode_into_libs=yes
25921  dynamic_linker='GNU ld.so'
25922  ;;
25923
25924netbsd*)
25925  version_type=sunos
25926  need_lib_prefix=no
25927  need_version=no
25928  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25929    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25930    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25931    dynamic_linker='NetBSD (a.out) ld.so'
25932  else
25933    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25934    soname_spec='${libname}${release}${shared_ext}$major'
25935    dynamic_linker='NetBSD ld.elf_so'
25936  fi
25937  shlibpath_var=LD_LIBRARY_PATH
25938  shlibpath_overrides_runpath=yes
25939  hardcode_into_libs=yes
25940  ;;
25941
25942newsos6)
25943  version_type=linux
25944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25945  shlibpath_var=LD_LIBRARY_PATH
25946  shlibpath_overrides_runpath=yes
25947  ;;
25948
25949nto-qnx*)
25950  version_type=linux
25951  need_lib_prefix=no
25952  need_version=no
25953  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25954  soname_spec='${libname}${release}${shared_ext}$major'
25955  shlibpath_var=LD_LIBRARY_PATH
25956  shlibpath_overrides_runpath=yes
25957  ;;
25958
25959openbsd*)
25960  version_type=sunos
25961  sys_lib_dlsearch_path_spec="/usr/lib"
25962  need_lib_prefix=no
25963  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25964  case $host_os in
25965    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25966    *)                         need_version=no  ;;
25967  esac
25968  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25969  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25970  shlibpath_var=LD_LIBRARY_PATH
25971  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25972    case $host_os in
25973      openbsd2.[89] | openbsd2.[89].*)
25974	shlibpath_overrides_runpath=no
25975	;;
25976      *)
25977	shlibpath_overrides_runpath=yes
25978	;;
25979      esac
25980  else
25981    shlibpath_overrides_runpath=yes
25982  fi
25983  ;;
25984
25985os2*)
25986  libname_spec='$name'
25987  shrext_cmds=".dll"
25988  need_lib_prefix=no
25989  library_names_spec='$libname${shared_ext} $libname.a'
25990  dynamic_linker='OS/2 ld.exe'
25991  shlibpath_var=LIBPATH
25992  ;;
25993
25994osf3* | osf4* | osf5*)
25995  version_type=osf
25996  need_lib_prefix=no
25997  need_version=no
25998  soname_spec='${libname}${release}${shared_ext}$major'
25999  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26000  shlibpath_var=LD_LIBRARY_PATH
26001  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26002  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26003  ;;
26004
26005solaris*)
26006  version_type=linux
26007  need_lib_prefix=no
26008  need_version=no
26009  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26010  soname_spec='${libname}${release}${shared_ext}$major'
26011  shlibpath_var=LD_LIBRARY_PATH
26012  shlibpath_overrides_runpath=yes
26013  hardcode_into_libs=yes
26014  # ldd complains unless libraries are executable
26015  postinstall_cmds='chmod +x $lib'
26016  ;;
26017
26018sunos4*)
26019  version_type=sunos
26020  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26021  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26022  shlibpath_var=LD_LIBRARY_PATH
26023  shlibpath_overrides_runpath=yes
26024  if test "$with_gnu_ld" = yes; then
26025    need_lib_prefix=no
26026  fi
26027  need_version=yes
26028  ;;
26029
26030sysv4 | sysv4.3*)
26031  version_type=linux
26032  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26033  soname_spec='${libname}${release}${shared_ext}$major'
26034  shlibpath_var=LD_LIBRARY_PATH
26035  case $host_vendor in
26036    sni)
26037      shlibpath_overrides_runpath=no
26038      need_lib_prefix=no
26039      export_dynamic_flag_spec='${wl}-Blargedynsym'
26040      runpath_var=LD_RUN_PATH
26041      ;;
26042    siemens)
26043      need_lib_prefix=no
26044      ;;
26045    motorola)
26046      need_lib_prefix=no
26047      need_version=no
26048      shlibpath_overrides_runpath=no
26049      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26050      ;;
26051  esac
26052  ;;
26053
26054sysv4*MP*)
26055  if test -d /usr/nec ;then
26056    version_type=linux
26057    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26058    soname_spec='$libname${shared_ext}.$major'
26059    shlibpath_var=LD_LIBRARY_PATH
26060  fi
26061  ;;
26062
26063sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26064  version_type=freebsd-elf
26065  need_lib_prefix=no
26066  need_version=no
26067  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26068  soname_spec='${libname}${release}${shared_ext}$major'
26069  shlibpath_var=LD_LIBRARY_PATH
26070  hardcode_into_libs=yes
26071  if test "$with_gnu_ld" = yes; then
26072    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26073    shlibpath_overrides_runpath=no
26074  else
26075    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26076    shlibpath_overrides_runpath=yes
26077    case $host_os in
26078      sco3.2v5*)
26079        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26080	;;
26081    esac
26082  fi
26083  sys_lib_dlsearch_path_spec='/usr/lib'
26084  ;;
26085
26086uts4*)
26087  version_type=linux
26088  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26089  soname_spec='${libname}${release}${shared_ext}$major'
26090  shlibpath_var=LD_LIBRARY_PATH
26091  ;;
26092
26093*)
26094  dynamic_linker=no
26095  ;;
26096esac
26097{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26098echo "${ECHO_T}$dynamic_linker" >&6; }
26099test "$dynamic_linker" = no && can_build_shared=no
26100
26101variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26102if test "$GCC" = yes; then
26103  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26104fi
26105
26106{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26107echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26108hardcode_action_GCJ=
26109if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26110   test -n "$runpath_var_GCJ" || \
26111   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26112
26113  # We can hardcode non-existant directories.
26114  if test "$hardcode_direct_GCJ" != no &&
26115     # If the only mechanism to avoid hardcoding is shlibpath_var, we
26116     # have to relink, otherwise we might link with an installed library
26117     # when we should be linking with a yet-to-be-installed one
26118     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26119     test "$hardcode_minus_L_GCJ" != no; then
26120    # Linking always hardcodes the temporary library directory.
26121    hardcode_action_GCJ=relink
26122  else
26123    # We can link without hardcoding, and we can hardcode nonexisting dirs.
26124    hardcode_action_GCJ=immediate
26125  fi
26126else
26127  # We cannot hardcode anything, or else we can only hardcode existing
26128  # directories.
26129  hardcode_action_GCJ=unsupported
26130fi
26131{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26132echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26133
26134if test "$hardcode_action_GCJ" = relink; then
26135  # Fast installation is not supported
26136  enable_fast_install=no
26137elif test "$shlibpath_overrides_runpath" = yes ||
26138     test "$enable_shared" = no; then
26139  # Fast installation is not necessary
26140  enable_fast_install=needless
26141fi
26142
26143
26144# The else clause should only fire when bootstrapping the
26145# libtool distribution, otherwise you forgot to ship ltmain.sh
26146# with your package, and you will get complaints that there are
26147# no rules to generate ltmain.sh.
26148if test -f "$ltmain"; then
26149  # See if we are running on zsh, and set the options which allow our commands through
26150  # without removal of \ escapes.
26151  if test -n "${ZSH_VERSION+set}" ; then
26152    setopt NO_GLOB_SUBST
26153  fi
26154  # Now quote all the things that may contain metacharacters while being
26155  # careful not to overquote the AC_SUBSTed values.  We take copies of the
26156  # variables and quote the copies for generation of the libtool script.
26157  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26158    SED SHELL STRIP \
26159    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26160    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26161    deplibs_check_method reload_flag reload_cmds need_locks \
26162    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26163    lt_cv_sys_global_symbol_to_c_name_address \
26164    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26165    old_postinstall_cmds old_postuninstall_cmds \
26166    compiler_GCJ \
26167    CC_GCJ \
26168    LD_GCJ \
26169    lt_prog_compiler_wl_GCJ \
26170    lt_prog_compiler_pic_GCJ \
26171    lt_prog_compiler_static_GCJ \
26172    lt_prog_compiler_no_builtin_flag_GCJ \
26173    export_dynamic_flag_spec_GCJ \
26174    thread_safe_flag_spec_GCJ \
26175    whole_archive_flag_spec_GCJ \
26176    enable_shared_with_static_runtimes_GCJ \
26177    old_archive_cmds_GCJ \
26178    old_archive_from_new_cmds_GCJ \
26179    predep_objects_GCJ \
26180    postdep_objects_GCJ \
26181    predeps_GCJ \
26182    postdeps_GCJ \
26183    compiler_lib_search_path_GCJ \
26184    archive_cmds_GCJ \
26185    archive_expsym_cmds_GCJ \
26186    postinstall_cmds_GCJ \
26187    postuninstall_cmds_GCJ \
26188    old_archive_from_expsyms_cmds_GCJ \
26189    allow_undefined_flag_GCJ \
26190    no_undefined_flag_GCJ \
26191    export_symbols_cmds_GCJ \
26192    hardcode_libdir_flag_spec_GCJ \
26193    hardcode_libdir_flag_spec_ld_GCJ \
26194    hardcode_libdir_separator_GCJ \
26195    hardcode_automatic_GCJ \
26196    module_cmds_GCJ \
26197    module_expsym_cmds_GCJ \
26198    lt_cv_prog_compiler_c_o_GCJ \
26199    exclude_expsyms_GCJ \
26200    include_expsyms_GCJ; do
26201
26202    case $var in
26203    old_archive_cmds_GCJ | \
26204    old_archive_from_new_cmds_GCJ | \
26205    archive_cmds_GCJ | \
26206    archive_expsym_cmds_GCJ | \
26207    module_cmds_GCJ | \
26208    module_expsym_cmds_GCJ | \
26209    old_archive_from_expsyms_cmds_GCJ | \
26210    export_symbols_cmds_GCJ | \
26211    extract_expsyms_cmds | reload_cmds | finish_cmds | \
26212    postinstall_cmds | postuninstall_cmds | \
26213    old_postinstall_cmds | old_postuninstall_cmds | \
26214    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26215      # Double-quote double-evaled strings.
26216      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26217      ;;
26218    *)
26219      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26220      ;;
26221    esac
26222  done
26223
26224  case $lt_echo in
26225  *'\$0 --fallback-echo"')
26226    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26227    ;;
26228  esac
26229
26230cfgfile="$ofile"
26231
26232  cat <<__EOF__ >> "$cfgfile"
26233# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26234
26235# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26236
26237# Shell to use when invoking shell scripts.
26238SHELL=$lt_SHELL
26239
26240# Whether or not to build shared libraries.
26241build_libtool_libs=$enable_shared
26242
26243# Whether or not to build static libraries.
26244build_old_libs=$enable_static
26245
26246# Whether or not to add -lc for building shared libraries.
26247build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26248
26249# Whether or not to disallow shared libs when runtime libs are static
26250allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26251
26252# Whether or not to optimize for fast installation.
26253fast_install=$enable_fast_install
26254
26255# The host system.
26256host_alias=$host_alias
26257host=$host
26258host_os=$host_os
26259
26260# The build system.
26261build_alias=$build_alias
26262build=$build
26263build_os=$build_os
26264
26265# An echo program that does not interpret backslashes.
26266echo=$lt_echo
26267
26268# The archiver.
26269AR=$lt_AR
26270AR_FLAGS=$lt_AR_FLAGS
26271
26272# A C compiler.
26273LTCC=$lt_LTCC
26274
26275# LTCC compiler flags.
26276LTCFLAGS=$lt_LTCFLAGS
26277
26278# A language-specific compiler.
26279CC=$lt_compiler_GCJ
26280
26281# Is the compiler the GNU C compiler?
26282with_gcc=$GCC_GCJ
26283
26284# An ERE matcher.
26285EGREP=$lt_EGREP
26286
26287# The linker used to build libraries.
26288LD=$lt_LD_GCJ
26289
26290# Whether we need hard or soft links.
26291LN_S=$lt_LN_S
26292
26293# A BSD-compatible nm program.
26294NM=$lt_NM
26295
26296# A symbol stripping program
26297STRIP=$lt_STRIP
26298
26299# Used to examine libraries when file_magic_cmd begins "file"
26300MAGIC_CMD=$MAGIC_CMD
26301
26302# Used on cygwin: DLL creation program.
26303DLLTOOL="$DLLTOOL"
26304
26305# Used on cygwin: object dumper.
26306OBJDUMP="$OBJDUMP"
26307
26308# Used on cygwin: assembler.
26309AS="$AS"
26310
26311# The name of the directory that contains temporary libtool files.
26312objdir=$objdir
26313
26314# How to create reloadable object files.
26315reload_flag=$lt_reload_flag
26316reload_cmds=$lt_reload_cmds
26317
26318# How to pass a linker flag through the compiler.
26319wl=$lt_lt_prog_compiler_wl_GCJ
26320
26321# Object file suffix (normally "o").
26322objext="$ac_objext"
26323
26324# Old archive suffix (normally "a").
26325libext="$libext"
26326
26327# Shared library suffix (normally ".so").
26328shrext_cmds='$shrext_cmds'
26329
26330# Executable file suffix (normally "").
26331exeext="$exeext"
26332
26333# Additional compiler flags for building library objects.
26334pic_flag=$lt_lt_prog_compiler_pic_GCJ
26335pic_mode=$pic_mode
26336
26337# What is the maximum length of a command?
26338max_cmd_len=$lt_cv_sys_max_cmd_len
26339
26340# Does compiler simultaneously support -c and -o options?
26341compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26342
26343# Must we lock files when doing compilation?
26344need_locks=$lt_need_locks
26345
26346# Do we need the lib prefix for modules?
26347need_lib_prefix=$need_lib_prefix
26348
26349# Do we need a version for libraries?
26350need_version=$need_version
26351
26352# Whether dlopen is supported.
26353dlopen_support=$enable_dlopen
26354
26355# Whether dlopen of programs is supported.
26356dlopen_self=$enable_dlopen_self
26357
26358# Whether dlopen of statically linked programs is supported.
26359dlopen_self_static=$enable_dlopen_self_static
26360
26361# Compiler flag to prevent dynamic linking.
26362link_static_flag=$lt_lt_prog_compiler_static_GCJ
26363
26364# Compiler flag to turn off builtin functions.
26365no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26366
26367# Compiler flag to allow reflexive dlopens.
26368export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26369
26370# Compiler flag to generate shared objects directly from archives.
26371whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26372
26373# Compiler flag to generate thread-safe objects.
26374thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26375
26376# Library versioning type.
26377version_type=$version_type
26378
26379# Format of library name prefix.
26380libname_spec=$lt_libname_spec
26381
26382# List of archive names.  First name is the real one, the rest are links.
26383# The last name is the one that the linker finds with -lNAME.
26384library_names_spec=$lt_library_names_spec
26385
26386# The coded name of the library, if different from the real name.
26387soname_spec=$lt_soname_spec
26388
26389# Commands used to build and install an old-style archive.
26390RANLIB=$lt_RANLIB
26391old_archive_cmds=$lt_old_archive_cmds_GCJ
26392old_postinstall_cmds=$lt_old_postinstall_cmds
26393old_postuninstall_cmds=$lt_old_postuninstall_cmds
26394
26395# Create an old-style archive from a shared archive.
26396old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26397
26398# Create a temporary old-style archive to link instead of a shared archive.
26399old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26400
26401# Commands used to build and install a shared archive.
26402archive_cmds=$lt_archive_cmds_GCJ
26403archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26404postinstall_cmds=$lt_postinstall_cmds
26405postuninstall_cmds=$lt_postuninstall_cmds
26406
26407# Commands used to build a loadable module (assumed same as above if empty)
26408module_cmds=$lt_module_cmds_GCJ
26409module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26410
26411# Commands to strip libraries.
26412old_striplib=$lt_old_striplib
26413striplib=$lt_striplib
26414
26415# Dependencies to place before the objects being linked to create a
26416# shared library.
26417predep_objects=$lt_predep_objects_GCJ
26418
26419# Dependencies to place after the objects being linked to create a
26420# shared library.
26421postdep_objects=$lt_postdep_objects_GCJ
26422
26423# Dependencies to place before the objects being linked to create a
26424# shared library.
26425predeps=$lt_predeps_GCJ
26426
26427# Dependencies to place after the objects being linked to create a
26428# shared library.
26429postdeps=$lt_postdeps_GCJ
26430
26431# The library search path used internally by the compiler when linking
26432# a shared library.
26433compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26434
26435# Method to check whether dependent libraries are shared objects.
26436deplibs_check_method=$lt_deplibs_check_method
26437
26438# Command to use when deplibs_check_method == file_magic.
26439file_magic_cmd=$lt_file_magic_cmd
26440
26441# Flag that allows shared libraries with undefined symbols to be built.
26442allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26443
26444# Flag that forces no undefined symbols.
26445no_undefined_flag=$lt_no_undefined_flag_GCJ
26446
26447# Commands used to finish a libtool library installation in a directory.
26448finish_cmds=$lt_finish_cmds
26449
26450# Same as above, but a single script fragment to be evaled but not shown.
26451finish_eval=$lt_finish_eval
26452
26453# Take the output of nm and produce a listing of raw symbols and C names.
26454global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26455
26456# Transform the output of nm in a proper C declaration
26457global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26458
26459# Transform the output of nm in a C name address pair
26460global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26461
26462# This is the shared library runtime path variable.
26463runpath_var=$runpath_var
26464
26465# This is the shared library path variable.
26466shlibpath_var=$shlibpath_var
26467
26468# Is shlibpath searched before the hard-coded library search path?
26469shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26470
26471# How to hardcode a shared library path into an executable.
26472hardcode_action=$hardcode_action_GCJ
26473
26474# Whether we should hardcode library paths into libraries.
26475hardcode_into_libs=$hardcode_into_libs
26476
26477# Flag to hardcode \$libdir into a binary during linking.
26478# This must work even if \$libdir does not exist.
26479hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26480
26481# If ld is used when linking, flag to hardcode \$libdir into
26482# a binary during linking. This must work even if \$libdir does
26483# not exist.
26484hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26485
26486# Whether we need a single -rpath flag with a separated argument.
26487hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26488
26489# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26490# resulting binary.
26491hardcode_direct=$hardcode_direct_GCJ
26492
26493# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26494# resulting binary.
26495hardcode_minus_L=$hardcode_minus_L_GCJ
26496
26497# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26498# the resulting binary.
26499hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26500
26501# Set to yes if building a shared library automatically hardcodes DIR into the library
26502# and all subsequent libraries and executables linked against it.
26503hardcode_automatic=$hardcode_automatic_GCJ
26504
26505# Variables whose values should be saved in libtool wrapper scripts and
26506# restored at relink time.
26507variables_saved_for_relink="$variables_saved_for_relink"
26508
26509# Whether libtool must link a program against all its dependency libraries.
26510link_all_deplibs=$link_all_deplibs_GCJ
26511
26512# Compile-time system search path for libraries
26513sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26514
26515# Run-time system search path for libraries
26516sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26517
26518# Fix the shell variable \$srcfile for the compiler.
26519fix_srcfile_path="$fix_srcfile_path_GCJ"
26520
26521# Set to yes if exported symbols are required.
26522always_export_symbols=$always_export_symbols_GCJ
26523
26524# The commands to list exported symbols.
26525export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26526
26527# The commands to extract the exported symbol list from a shared archive.
26528extract_expsyms_cmds=$lt_extract_expsyms_cmds
26529
26530# Symbols that should not be listed in the preloaded symbols.
26531exclude_expsyms=$lt_exclude_expsyms_GCJ
26532
26533# Symbols that must always be exported.
26534include_expsyms=$lt_include_expsyms_GCJ
26535
26536# ### END LIBTOOL TAG CONFIG: $tagname
26537
26538__EOF__
26539
26540
26541else
26542  # If there is no Makefile yet, we rely on a make rule to execute
26543  # `config.status --recheck' to rerun these tests and create the
26544  # libtool script then.
26545  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26546  if test -f "$ltmain_in"; then
26547    test -f Makefile && make "$ltmain"
26548  fi
26549fi
26550
26551
26552ac_ext=c
26553ac_cpp='$CPP $CPPFLAGS'
26554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26556ac_compiler_gnu=$ac_cv_c_compiler_gnu
26557
26558CC="$lt_save_CC"
26559
26560	else
26561	  tagname=""
26562	fi
26563	;;
26564
26565      RC)
26566	ac_ext=c
26567ac_cpp='$CPP $CPPFLAGS'
26568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26570ac_compiler_gnu=$ac_cv_c_compiler_gnu
26571
26572
26573# Source file extension for RC test sources.
26574ac_ext=rc
26575
26576# Object file extension for compiled RC test sources.
26577objext=o
26578objext_RC=$objext
26579
26580# Code to be used in simple compile tests
26581lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26582
26583# Code to be used in simple link tests
26584lt_simple_link_test_code="$lt_simple_compile_test_code"
26585
26586# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26587
26588# If no C compiler was specified, use CC.
26589LTCC=${LTCC-"$CC"}
26590
26591# If no C compiler flags were specified, use CFLAGS.
26592LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26593
26594# Allow CC to be a program name with arguments.
26595compiler=$CC
26596
26597
26598# save warnings/boilerplate of simple test code
26599ac_outfile=conftest.$ac_objext
26600printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26601eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26602_lt_compiler_boilerplate=`cat conftest.err`
26603$rm conftest*
26604
26605ac_outfile=conftest.$ac_objext
26606printf "$lt_simple_link_test_code" >conftest.$ac_ext
26607eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26608_lt_linker_boilerplate=`cat conftest.err`
26609$rm conftest*
26610
26611
26612# Allow CC to be a program name with arguments.
26613lt_save_CC="$CC"
26614CC=${RC-"windres"}
26615compiler=$CC
26616compiler_RC=$CC
26617for cc_temp in $compiler""; do
26618  case $cc_temp in
26619    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26620    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26621    \-*) ;;
26622    *) break;;
26623  esac
26624done
26625cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26626
26627lt_cv_prog_compiler_c_o_RC=yes
26628
26629# The else clause should only fire when bootstrapping the
26630# libtool distribution, otherwise you forgot to ship ltmain.sh
26631# with your package, and you will get complaints that there are
26632# no rules to generate ltmain.sh.
26633if test -f "$ltmain"; then
26634  # See if we are running on zsh, and set the options which allow our commands through
26635  # without removal of \ escapes.
26636  if test -n "${ZSH_VERSION+set}" ; then
26637    setopt NO_GLOB_SUBST
26638  fi
26639  # Now quote all the things that may contain metacharacters while being
26640  # careful not to overquote the AC_SUBSTed values.  We take copies of the
26641  # variables and quote the copies for generation of the libtool script.
26642  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26643    SED SHELL STRIP \
26644    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26645    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26646    deplibs_check_method reload_flag reload_cmds need_locks \
26647    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26648    lt_cv_sys_global_symbol_to_c_name_address \
26649    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26650    old_postinstall_cmds old_postuninstall_cmds \
26651    compiler_RC \
26652    CC_RC \
26653    LD_RC \
26654    lt_prog_compiler_wl_RC \
26655    lt_prog_compiler_pic_RC \
26656    lt_prog_compiler_static_RC \
26657    lt_prog_compiler_no_builtin_flag_RC \
26658    export_dynamic_flag_spec_RC \
26659    thread_safe_flag_spec_RC \
26660    whole_archive_flag_spec_RC \
26661    enable_shared_with_static_runtimes_RC \
26662    old_archive_cmds_RC \
26663    old_archive_from_new_cmds_RC \
26664    predep_objects_RC \
26665    postdep_objects_RC \
26666    predeps_RC \
26667    postdeps_RC \
26668    compiler_lib_search_path_RC \
26669    archive_cmds_RC \
26670    archive_expsym_cmds_RC \
26671    postinstall_cmds_RC \
26672    postuninstall_cmds_RC \
26673    old_archive_from_expsyms_cmds_RC \
26674    allow_undefined_flag_RC \
26675    no_undefined_flag_RC \
26676    export_symbols_cmds_RC \
26677    hardcode_libdir_flag_spec_RC \
26678    hardcode_libdir_flag_spec_ld_RC \
26679    hardcode_libdir_separator_RC \
26680    hardcode_automatic_RC \
26681    module_cmds_RC \
26682    module_expsym_cmds_RC \
26683    lt_cv_prog_compiler_c_o_RC \
26684    exclude_expsyms_RC \
26685    include_expsyms_RC; do
26686
26687    case $var in
26688    old_archive_cmds_RC | \
26689    old_archive_from_new_cmds_RC | \
26690    archive_cmds_RC | \
26691    archive_expsym_cmds_RC | \
26692    module_cmds_RC | \
26693    module_expsym_cmds_RC | \
26694    old_archive_from_expsyms_cmds_RC | \
26695    export_symbols_cmds_RC | \
26696    extract_expsyms_cmds | reload_cmds | finish_cmds | \
26697    postinstall_cmds | postuninstall_cmds | \
26698    old_postinstall_cmds | old_postuninstall_cmds | \
26699    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26700      # Double-quote double-evaled strings.
26701      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26702      ;;
26703    *)
26704      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26705      ;;
26706    esac
26707  done
26708
26709  case $lt_echo in
26710  *'\$0 --fallback-echo"')
26711    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26712    ;;
26713  esac
26714
26715cfgfile="$ofile"
26716
26717  cat <<__EOF__ >> "$cfgfile"
26718# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26719
26720# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26721
26722# Shell to use when invoking shell scripts.
26723SHELL=$lt_SHELL
26724
26725# Whether or not to build shared libraries.
26726build_libtool_libs=$enable_shared
26727
26728# Whether or not to build static libraries.
26729build_old_libs=$enable_static
26730
26731# Whether or not to add -lc for building shared libraries.
26732build_libtool_need_lc=$archive_cmds_need_lc_RC
26733
26734# Whether or not to disallow shared libs when runtime libs are static
26735allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26736
26737# Whether or not to optimize for fast installation.
26738fast_install=$enable_fast_install
26739
26740# The host system.
26741host_alias=$host_alias
26742host=$host
26743host_os=$host_os
26744
26745# The build system.
26746build_alias=$build_alias
26747build=$build
26748build_os=$build_os
26749
26750# An echo program that does not interpret backslashes.
26751echo=$lt_echo
26752
26753# The archiver.
26754AR=$lt_AR
26755AR_FLAGS=$lt_AR_FLAGS
26756
26757# A C compiler.
26758LTCC=$lt_LTCC
26759
26760# LTCC compiler flags.
26761LTCFLAGS=$lt_LTCFLAGS
26762
26763# A language-specific compiler.
26764CC=$lt_compiler_RC
26765
26766# Is the compiler the GNU C compiler?
26767with_gcc=$GCC_RC
26768
26769# An ERE matcher.
26770EGREP=$lt_EGREP
26771
26772# The linker used to build libraries.
26773LD=$lt_LD_RC
26774
26775# Whether we need hard or soft links.
26776LN_S=$lt_LN_S
26777
26778# A BSD-compatible nm program.
26779NM=$lt_NM
26780
26781# A symbol stripping program
26782STRIP=$lt_STRIP
26783
26784# Used to examine libraries when file_magic_cmd begins "file"
26785MAGIC_CMD=$MAGIC_CMD
26786
26787# Used on cygwin: DLL creation program.
26788DLLTOOL="$DLLTOOL"
26789
26790# Used on cygwin: object dumper.
26791OBJDUMP="$OBJDUMP"
26792
26793# Used on cygwin: assembler.
26794AS="$AS"
26795
26796# The name of the directory that contains temporary libtool files.
26797objdir=$objdir
26798
26799# How to create reloadable object files.
26800reload_flag=$lt_reload_flag
26801reload_cmds=$lt_reload_cmds
26802
26803# How to pass a linker flag through the compiler.
26804wl=$lt_lt_prog_compiler_wl_RC
26805
26806# Object file suffix (normally "o").
26807objext="$ac_objext"
26808
26809# Old archive suffix (normally "a").
26810libext="$libext"
26811
26812# Shared library suffix (normally ".so").
26813shrext_cmds='$shrext_cmds'
26814
26815# Executable file suffix (normally "").
26816exeext="$exeext"
26817
26818# Additional compiler flags for building library objects.
26819pic_flag=$lt_lt_prog_compiler_pic_RC
26820pic_mode=$pic_mode
26821
26822# What is the maximum length of a command?
26823max_cmd_len=$lt_cv_sys_max_cmd_len
26824
26825# Does compiler simultaneously support -c and -o options?
26826compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26827
26828# Must we lock files when doing compilation?
26829need_locks=$lt_need_locks
26830
26831# Do we need the lib prefix for modules?
26832need_lib_prefix=$need_lib_prefix
26833
26834# Do we need a version for libraries?
26835need_version=$need_version
26836
26837# Whether dlopen is supported.
26838dlopen_support=$enable_dlopen
26839
26840# Whether dlopen of programs is supported.
26841dlopen_self=$enable_dlopen_self
26842
26843# Whether dlopen of statically linked programs is supported.
26844dlopen_self_static=$enable_dlopen_self_static
26845
26846# Compiler flag to prevent dynamic linking.
26847link_static_flag=$lt_lt_prog_compiler_static_RC
26848
26849# Compiler flag to turn off builtin functions.
26850no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26851
26852# Compiler flag to allow reflexive dlopens.
26853export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26854
26855# Compiler flag to generate shared objects directly from archives.
26856whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26857
26858# Compiler flag to generate thread-safe objects.
26859thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26860
26861# Library versioning type.
26862version_type=$version_type
26863
26864# Format of library name prefix.
26865libname_spec=$lt_libname_spec
26866
26867# List of archive names.  First name is the real one, the rest are links.
26868# The last name is the one that the linker finds with -lNAME.
26869library_names_spec=$lt_library_names_spec
26870
26871# The coded name of the library, if different from the real name.
26872soname_spec=$lt_soname_spec
26873
26874# Commands used to build and install an old-style archive.
26875RANLIB=$lt_RANLIB
26876old_archive_cmds=$lt_old_archive_cmds_RC
26877old_postinstall_cmds=$lt_old_postinstall_cmds
26878old_postuninstall_cmds=$lt_old_postuninstall_cmds
26879
26880# Create an old-style archive from a shared archive.
26881old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26882
26883# Create a temporary old-style archive to link instead of a shared archive.
26884old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26885
26886# Commands used to build and install a shared archive.
26887archive_cmds=$lt_archive_cmds_RC
26888archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26889postinstall_cmds=$lt_postinstall_cmds
26890postuninstall_cmds=$lt_postuninstall_cmds
26891
26892# Commands used to build a loadable module (assumed same as above if empty)
26893module_cmds=$lt_module_cmds_RC
26894module_expsym_cmds=$lt_module_expsym_cmds_RC
26895
26896# Commands to strip libraries.
26897old_striplib=$lt_old_striplib
26898striplib=$lt_striplib
26899
26900# Dependencies to place before the objects being linked to create a
26901# shared library.
26902predep_objects=$lt_predep_objects_RC
26903
26904# Dependencies to place after the objects being linked to create a
26905# shared library.
26906postdep_objects=$lt_postdep_objects_RC
26907
26908# Dependencies to place before the objects being linked to create a
26909# shared library.
26910predeps=$lt_predeps_RC
26911
26912# Dependencies to place after the objects being linked to create a
26913# shared library.
26914postdeps=$lt_postdeps_RC
26915
26916# The library search path used internally by the compiler when linking
26917# a shared library.
26918compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26919
26920# Method to check whether dependent libraries are shared objects.
26921deplibs_check_method=$lt_deplibs_check_method
26922
26923# Command to use when deplibs_check_method == file_magic.
26924file_magic_cmd=$lt_file_magic_cmd
26925
26926# Flag that allows shared libraries with undefined symbols to be built.
26927allow_undefined_flag=$lt_allow_undefined_flag_RC
26928
26929# Flag that forces no undefined symbols.
26930no_undefined_flag=$lt_no_undefined_flag_RC
26931
26932# Commands used to finish a libtool library installation in a directory.
26933finish_cmds=$lt_finish_cmds
26934
26935# Same as above, but a single script fragment to be evaled but not shown.
26936finish_eval=$lt_finish_eval
26937
26938# Take the output of nm and produce a listing of raw symbols and C names.
26939global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26940
26941# Transform the output of nm in a proper C declaration
26942global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26943
26944# Transform the output of nm in a C name address pair
26945global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26946
26947# This is the shared library runtime path variable.
26948runpath_var=$runpath_var
26949
26950# This is the shared library path variable.
26951shlibpath_var=$shlibpath_var
26952
26953# Is shlibpath searched before the hard-coded library search path?
26954shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26955
26956# How to hardcode a shared library path into an executable.
26957hardcode_action=$hardcode_action_RC
26958
26959# Whether we should hardcode library paths into libraries.
26960hardcode_into_libs=$hardcode_into_libs
26961
26962# Flag to hardcode \$libdir into a binary during linking.
26963# This must work even if \$libdir does not exist.
26964hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26965
26966# If ld is used when linking, flag to hardcode \$libdir into
26967# a binary during linking. This must work even if \$libdir does
26968# not exist.
26969hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26970
26971# Whether we need a single -rpath flag with a separated argument.
26972hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26973
26974# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26975# resulting binary.
26976hardcode_direct=$hardcode_direct_RC
26977
26978# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26979# resulting binary.
26980hardcode_minus_L=$hardcode_minus_L_RC
26981
26982# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26983# the resulting binary.
26984hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26985
26986# Set to yes if building a shared library automatically hardcodes DIR into the library
26987# and all subsequent libraries and executables linked against it.
26988hardcode_automatic=$hardcode_automatic_RC
26989
26990# Variables whose values should be saved in libtool wrapper scripts and
26991# restored at relink time.
26992variables_saved_for_relink="$variables_saved_for_relink"
26993
26994# Whether libtool must link a program against all its dependency libraries.
26995link_all_deplibs=$link_all_deplibs_RC
26996
26997# Compile-time system search path for libraries
26998sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26999
27000# Run-time system search path for libraries
27001sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27002
27003# Fix the shell variable \$srcfile for the compiler.
27004fix_srcfile_path="$fix_srcfile_path_RC"
27005
27006# Set to yes if exported symbols are required.
27007always_export_symbols=$always_export_symbols_RC
27008
27009# The commands to list exported symbols.
27010export_symbols_cmds=$lt_export_symbols_cmds_RC
27011
27012# The commands to extract the exported symbol list from a shared archive.
27013extract_expsyms_cmds=$lt_extract_expsyms_cmds
27014
27015# Symbols that should not be listed in the preloaded symbols.
27016exclude_expsyms=$lt_exclude_expsyms_RC
27017
27018# Symbols that must always be exported.
27019include_expsyms=$lt_include_expsyms_RC
27020
27021# ### END LIBTOOL TAG CONFIG: $tagname
27022
27023__EOF__
27024
27025
27026else
27027  # If there is no Makefile yet, we rely on a make rule to execute
27028  # `config.status --recheck' to rerun these tests and create the
27029  # libtool script then.
27030  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27031  if test -f "$ltmain_in"; then
27032    test -f Makefile && make "$ltmain"
27033  fi
27034fi
27035
27036
27037ac_ext=c
27038ac_cpp='$CPP $CPPFLAGS'
27039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27041ac_compiler_gnu=$ac_cv_c_compiler_gnu
27042
27043CC="$lt_save_CC"
27044
27045	;;
27046
27047      *)
27048	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27049echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27050   { (exit 1); exit 1; }; }
27051	;;
27052      esac
27053
27054      # Append the new tag name to the list of available tags.
27055      if test -n "$tagname" ; then
27056      available_tags="$available_tags $tagname"
27057    fi
27058    fi
27059  done
27060  IFS="$lt_save_ifs"
27061
27062  # Now substitute the updated list of available tags.
27063  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27064    mv "${ofile}T" "$ofile"
27065    chmod +x "$ofile"
27066  else
27067    rm -f "${ofile}T"
27068    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27069echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27070   { (exit 1); exit 1; }; }
27071  fi
27072fi
27073
27074
27075
27076# This can be used to rebuild libtool when needed
27077LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27078
27079# Always use our own libtool.
27080LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27081
27082# Prevent multiple expansion
27083
27084
27085
27086
27087
27088
27089
27090
27091
27092
27093
27094
27095
27096
27097
27098
27099
27100
27101
27102
27103
27104if test "$lt_cv_dlopen_self" = "yes" ; then
27105
27106cat >>confdefs.h <<\_ACEOF
27107#define CAN_DLOPEN_SELF 1
27108_ACEOF
27109
27110fi
27111
27112if test "$WITH_LLVMGCCDIR" = "default" ; then
27113  LLVMGCC="llvm-gcc${EXEEXT}"
27114  LLVMGXX="llvm-g++${EXEEXT}"
27115  # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27116set dummy $LLVMGCC; ac_word=$2
27117{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27119if test "${ac_cv_path_LLVMGCC+set}" = set; then
27120  echo $ECHO_N "(cached) $ECHO_C" >&6
27121else
27122  case $LLVMGCC in
27123  [\\/]* | ?:[\\/]*)
27124  ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27125  ;;
27126  *)
27127  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27128for as_dir in $PATH
27129do
27130  IFS=$as_save_IFS
27131  test -z "$as_dir" && as_dir=.
27132  for ac_exec_ext in '' $ac_executable_extensions; do
27133  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27134    ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27135    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27136    break 2
27137  fi
27138done
27139done
27140IFS=$as_save_IFS
27141
27142  ;;
27143esac
27144fi
27145LLVMGCC=$ac_cv_path_LLVMGCC
27146if test -n "$LLVMGCC"; then
27147  { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27148echo "${ECHO_T}$LLVMGCC" >&6; }
27149else
27150  { echo "$as_me:$LINENO: result: no" >&5
27151echo "${ECHO_T}no" >&6; }
27152fi
27153
27154
27155  # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27156set dummy $LLVMGXX; ac_word=$2
27157{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27159if test "${ac_cv_path_LLVMGXX+set}" = set; then
27160  echo $ECHO_N "(cached) $ECHO_C" >&6
27161else
27162  case $LLVMGXX in
27163  [\\/]* | ?:[\\/]*)
27164  ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27165  ;;
27166  *)
27167  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27168for as_dir in $PATH
27169do
27170  IFS=$as_save_IFS
27171  test -z "$as_dir" && as_dir=.
27172  for ac_exec_ext in '' $ac_executable_extensions; do
27173  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27174    ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27175    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27176    break 2
27177  fi
27178done
27179done
27180IFS=$as_save_IFS
27181
27182  ;;
27183esac
27184fi
27185LLVMGXX=$ac_cv_path_LLVMGXX
27186if test -n "$LLVMGXX"; then
27187  { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27188echo "${ECHO_T}$LLVMGXX" >&6; }
27189else
27190  { echo "$as_me:$LINENO: result: no" >&5
27191echo "${ECHO_T}no" >&6; }
27192fi
27193
27194
27195else
27196  if test -z "$LLVMGCC"; then
27197    LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27198  fi
27199  if test -z "$LLVMGXX"; then
27200    LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27201  fi
27202  LLVMGCC=$LLVMGCC
27203
27204  LLVMGXX=$LLVMGXX
27205
27206fi
27207
27208{ echo "$as_me:$LINENO: checking tool compatibility" >&5
27209echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27210
27211ICC=no
27212IXX=no
27213case $CC in
27214  icc*|icpc*)
27215    ICC=yes
27216    IXX=yes
27217    ;;
27218   *)
27219    ;;
27220esac
27221
27222if test "$GCC" != "yes" && test "$ICC" != "yes"
27223then
27224  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27225echo "$as_me: error: gcc|icc required but not found" >&2;}
27226   { (exit 1); exit 1; }; }
27227fi
27228
27229if test "$GXX" != "yes" && test "$IXX" != "yes"
27230then
27231  { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27232echo "$as_me: error: g++|icc required but not found" >&2;}
27233   { (exit 1); exit 1; }; }
27234fi
27235
27236if test "$GCC" = "yes"
27237then
27238  cat >conftest.$ac_ext <<_ACEOF
27239#if !defined(__GNUC__) || __GNUC__ < 3
27240#error Unsupported GCC version
27241#endif
27242
27243_ACEOF
27244rm -f conftest.$ac_objext
27245if { (ac_try="$ac_compile"
27246case "(($ac_try" in
27247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27248  *) ac_try_echo=$ac_try;;
27249esac
27250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27251  (eval "$ac_compile") 2>conftest.er1
27252  ac_status=$?
27253  grep -v '^ *+' conftest.er1 >conftest.err
27254  rm -f conftest.er1
27255  cat conftest.err >&5
27256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257  (exit $ac_status); } &&
27258	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27259  { (case "(($ac_try" in
27260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27261  *) ac_try_echo=$ac_try;;
27262esac
27263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27264  (eval "$ac_try") 2>&5
27265  ac_status=$?
27266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27267  (exit $ac_status); }; } &&
27268	 { ac_try='test -s conftest.$ac_objext'
27269  { (case "(($ac_try" in
27270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27271  *) ac_try_echo=$ac_try;;
27272esac
27273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27274  (eval "$ac_try") 2>&5
27275  ac_status=$?
27276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27277  (exit $ac_status); }; }; then
27278  :
27279else
27280  echo "$as_me: failed program was:" >&5
27281sed 's/^/| /' conftest.$ac_ext >&5
27282
27283	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27284echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27285   { (exit 1); exit 1; }; }
27286fi
27287
27288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27289fi
27290
27291if test -z "$llvm_cv_gnu_make_command"
27292then
27293  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27294echo "$as_me: error: GNU Make required but not found" >&2;}
27295   { (exit 1); exit 1; }; }
27296fi
27297
27298{ echo "$as_me:$LINENO: result: ok" >&5
27299echo "${ECHO_T}ok" >&6; }
27300
27301
27302
27303{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27304echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27305if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27306  echo $ECHO_N "(cached) $ECHO_C" >&6
27307else
27308  ac_check_lib_save_LIBS=$LIBS
27309LIBS="-lelf  $LIBS"
27310cat >conftest.$ac_ext <<_ACEOF
27311/* confdefs.h.  */
27312_ACEOF
27313cat confdefs.h >>conftest.$ac_ext
27314cat >>conftest.$ac_ext <<_ACEOF
27315/* end confdefs.h.  */
27316
27317/* Override any GCC internal prototype to avoid an error.
27318   Use char because int might match the return type of a GCC
27319   builtin and then its argument prototype would still apply.  */
27320#ifdef __cplusplus
27321extern "C"
27322#endif
27323char elf_begin ();
27324int
27325main ()
27326{
27327return elf_begin ();
27328  ;
27329  return 0;
27330}
27331_ACEOF
27332rm -f conftest.$ac_objext conftest$ac_exeext
27333if { (ac_try="$ac_link"
27334case "(($ac_try" in
27335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27336  *) ac_try_echo=$ac_try;;
27337esac
27338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27339  (eval "$ac_link") 2>conftest.er1
27340  ac_status=$?
27341  grep -v '^ *+' conftest.er1 >conftest.err
27342  rm -f conftest.er1
27343  cat conftest.err >&5
27344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27345  (exit $ac_status); } &&
27346	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27347  { (case "(($ac_try" in
27348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27349  *) ac_try_echo=$ac_try;;
27350esac
27351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27352  (eval "$ac_try") 2>&5
27353  ac_status=$?
27354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27355  (exit $ac_status); }; } &&
27356	 { ac_try='test -s conftest$ac_exeext'
27357  { (case "(($ac_try" in
27358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27359  *) ac_try_echo=$ac_try;;
27360esac
27361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27362  (eval "$ac_try") 2>&5
27363  ac_status=$?
27364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365  (exit $ac_status); }; }; then
27366  ac_cv_lib_elf_elf_begin=yes
27367else
27368  echo "$as_me: failed program was:" >&5
27369sed 's/^/| /' conftest.$ac_ext >&5
27370
27371	ac_cv_lib_elf_elf_begin=no
27372fi
27373
27374rm -f core conftest.err conftest.$ac_objext \
27375      conftest$ac_exeext conftest.$ac_ext
27376LIBS=$ac_check_lib_save_LIBS
27377fi
27378{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27379echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27380if test $ac_cv_lib_elf_elf_begin = yes; then
27381  cat >>confdefs.h <<_ACEOF
27382#define HAVE_LIBELF 1
27383_ACEOF
27384
27385  LIBS="-lelf $LIBS"
27386
27387fi
27388
27389
27390{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27391echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27392if test "${ac_cv_lib_m_sin+set}" = set; then
27393  echo $ECHO_N "(cached) $ECHO_C" >&6
27394else
27395  ac_check_lib_save_LIBS=$LIBS
27396LIBS="-lm  $LIBS"
27397cat >conftest.$ac_ext <<_ACEOF
27398/* confdefs.h.  */
27399_ACEOF
27400cat confdefs.h >>conftest.$ac_ext
27401cat >>conftest.$ac_ext <<_ACEOF
27402/* end confdefs.h.  */
27403
27404/* Override any GCC internal prototype to avoid an error.
27405   Use char because int might match the return type of a GCC
27406   builtin and then its argument prototype would still apply.  */
27407#ifdef __cplusplus
27408extern "C"
27409#endif
27410char sin ();
27411int
27412main ()
27413{
27414return sin ();
27415  ;
27416  return 0;
27417}
27418_ACEOF
27419rm -f conftest.$ac_objext conftest$ac_exeext
27420if { (ac_try="$ac_link"
27421case "(($ac_try" in
27422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27423  *) ac_try_echo=$ac_try;;
27424esac
27425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27426  (eval "$ac_link") 2>conftest.er1
27427  ac_status=$?
27428  grep -v '^ *+' conftest.er1 >conftest.err
27429  rm -f conftest.er1
27430  cat conftest.err >&5
27431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27432  (exit $ac_status); } &&
27433	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27434  { (case "(($ac_try" in
27435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27436  *) ac_try_echo=$ac_try;;
27437esac
27438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27439  (eval "$ac_try") 2>&5
27440  ac_status=$?
27441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27442  (exit $ac_status); }; } &&
27443	 { ac_try='test -s conftest$ac_exeext'
27444  { (case "(($ac_try" in
27445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27446  *) ac_try_echo=$ac_try;;
27447esac
27448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27449  (eval "$ac_try") 2>&5
27450  ac_status=$?
27451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27452  (exit $ac_status); }; }; then
27453  ac_cv_lib_m_sin=yes
27454else
27455  echo "$as_me: failed program was:" >&5
27456sed 's/^/| /' conftest.$ac_ext >&5
27457
27458	ac_cv_lib_m_sin=no
27459fi
27460
27461rm -f core conftest.err conftest.$ac_objext \
27462      conftest$ac_exeext conftest.$ac_ext
27463LIBS=$ac_check_lib_save_LIBS
27464fi
27465{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27466echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27467if test $ac_cv_lib_m_sin = yes; then
27468  cat >>confdefs.h <<_ACEOF
27469#define HAVE_LIBM 1
27470_ACEOF
27471
27472  LIBS="-lm $LIBS"
27473
27474fi
27475
27476if test "$llvm_cv_os_type" = "MingW" ; then
27477
27478{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27479echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27480if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27481  echo $ECHO_N "(cached) $ECHO_C" >&6
27482else
27483  ac_check_lib_save_LIBS=$LIBS
27484LIBS="-limagehlp  $LIBS"
27485cat >conftest.$ac_ext <<_ACEOF
27486/* confdefs.h.  */
27487_ACEOF
27488cat confdefs.h >>conftest.$ac_ext
27489cat >>conftest.$ac_ext <<_ACEOF
27490/* end confdefs.h.  */
27491
27492
27493int
27494main ()
27495{
27496return main ();
27497  ;
27498  return 0;
27499}
27500_ACEOF
27501rm -f conftest.$ac_objext conftest$ac_exeext
27502if { (ac_try="$ac_link"
27503case "(($ac_try" in
27504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27505  *) ac_try_echo=$ac_try;;
27506esac
27507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27508  (eval "$ac_link") 2>conftest.er1
27509  ac_status=$?
27510  grep -v '^ *+' conftest.er1 >conftest.err
27511  rm -f conftest.er1
27512  cat conftest.err >&5
27513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514  (exit $ac_status); } &&
27515	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27516  { (case "(($ac_try" in
27517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27518  *) ac_try_echo=$ac_try;;
27519esac
27520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27521  (eval "$ac_try") 2>&5
27522  ac_status=$?
27523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524  (exit $ac_status); }; } &&
27525	 { ac_try='test -s conftest$ac_exeext'
27526  { (case "(($ac_try" in
27527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27528  *) ac_try_echo=$ac_try;;
27529esac
27530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27531  (eval "$ac_try") 2>&5
27532  ac_status=$?
27533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534  (exit $ac_status); }; }; then
27535  ac_cv_lib_imagehlp_main=yes
27536else
27537  echo "$as_me: failed program was:" >&5
27538sed 's/^/| /' conftest.$ac_ext >&5
27539
27540	ac_cv_lib_imagehlp_main=no
27541fi
27542
27543rm -f core conftest.err conftest.$ac_objext \
27544      conftest$ac_exeext conftest.$ac_ext
27545LIBS=$ac_check_lib_save_LIBS
27546fi
27547{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27548echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27549if test $ac_cv_lib_imagehlp_main = yes; then
27550  cat >>confdefs.h <<_ACEOF
27551#define HAVE_LIBIMAGEHLP 1
27552_ACEOF
27553
27554  LIBS="-limagehlp $LIBS"
27555
27556fi
27557
27558
27559{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27560echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27561if test "${ac_cv_lib_psapi_main+set}" = set; then
27562  echo $ECHO_N "(cached) $ECHO_C" >&6
27563else
27564  ac_check_lib_save_LIBS=$LIBS
27565LIBS="-lpsapi  $LIBS"
27566cat >conftest.$ac_ext <<_ACEOF
27567/* confdefs.h.  */
27568_ACEOF
27569cat confdefs.h >>conftest.$ac_ext
27570cat >>conftest.$ac_ext <<_ACEOF
27571/* end confdefs.h.  */
27572
27573
27574int
27575main ()
27576{
27577return main ();
27578  ;
27579  return 0;
27580}
27581_ACEOF
27582rm -f conftest.$ac_objext conftest$ac_exeext
27583if { (ac_try="$ac_link"
27584case "(($ac_try" in
27585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27586  *) ac_try_echo=$ac_try;;
27587esac
27588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27589  (eval "$ac_link") 2>conftest.er1
27590  ac_status=$?
27591  grep -v '^ *+' conftest.er1 >conftest.err
27592  rm -f conftest.er1
27593  cat conftest.err >&5
27594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595  (exit $ac_status); } &&
27596	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27597  { (case "(($ac_try" in
27598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27599  *) ac_try_echo=$ac_try;;
27600esac
27601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27602  (eval "$ac_try") 2>&5
27603  ac_status=$?
27604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27605  (exit $ac_status); }; } &&
27606	 { ac_try='test -s conftest$ac_exeext'
27607  { (case "(($ac_try" in
27608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27609  *) ac_try_echo=$ac_try;;
27610esac
27611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27612  (eval "$ac_try") 2>&5
27613  ac_status=$?
27614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615  (exit $ac_status); }; }; then
27616  ac_cv_lib_psapi_main=yes
27617else
27618  echo "$as_me: failed program was:" >&5
27619sed 's/^/| /' conftest.$ac_ext >&5
27620
27621	ac_cv_lib_psapi_main=no
27622fi
27623
27624rm -f core conftest.err conftest.$ac_objext \
27625      conftest$ac_exeext conftest.$ac_ext
27626LIBS=$ac_check_lib_save_LIBS
27627fi
27628{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27629echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27630if test $ac_cv_lib_psapi_main = yes; then
27631  cat >>confdefs.h <<_ACEOF
27632#define HAVE_LIBPSAPI 1
27633_ACEOF
27634
27635  LIBS="-lpsapi $LIBS"
27636
27637fi
27638
27639fi
27640
27641{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27642echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27643if test "${ac_cv_search_dlopen+set}" = set; then
27644  echo $ECHO_N "(cached) $ECHO_C" >&6
27645else
27646  ac_func_search_save_LIBS=$LIBS
27647cat >conftest.$ac_ext <<_ACEOF
27648/* confdefs.h.  */
27649_ACEOF
27650cat confdefs.h >>conftest.$ac_ext
27651cat >>conftest.$ac_ext <<_ACEOF
27652/* end confdefs.h.  */
27653
27654/* Override any GCC internal prototype to avoid an error.
27655   Use char because int might match the return type of a GCC
27656   builtin and then its argument prototype would still apply.  */
27657#ifdef __cplusplus
27658extern "C"
27659#endif
27660char dlopen ();
27661int
27662main ()
27663{
27664return dlopen ();
27665  ;
27666  return 0;
27667}
27668_ACEOF
27669for ac_lib in '' dl; do
27670  if test -z "$ac_lib"; then
27671    ac_res="none required"
27672  else
27673    ac_res=-l$ac_lib
27674    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27675  fi
27676  rm -f conftest.$ac_objext conftest$ac_exeext
27677if { (ac_try="$ac_link"
27678case "(($ac_try" in
27679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27680  *) ac_try_echo=$ac_try;;
27681esac
27682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27683  (eval "$ac_link") 2>conftest.er1
27684  ac_status=$?
27685  grep -v '^ *+' conftest.er1 >conftest.err
27686  rm -f conftest.er1
27687  cat conftest.err >&5
27688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27689  (exit $ac_status); } &&
27690	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27691  { (case "(($ac_try" in
27692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27693  *) ac_try_echo=$ac_try;;
27694esac
27695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27696  (eval "$ac_try") 2>&5
27697  ac_status=$?
27698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699  (exit $ac_status); }; } &&
27700	 { ac_try='test -s conftest$ac_exeext'
27701  { (case "(($ac_try" in
27702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27703  *) ac_try_echo=$ac_try;;
27704esac
27705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27706  (eval "$ac_try") 2>&5
27707  ac_status=$?
27708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27709  (exit $ac_status); }; }; then
27710  ac_cv_search_dlopen=$ac_res
27711else
27712  echo "$as_me: failed program was:" >&5
27713sed 's/^/| /' conftest.$ac_ext >&5
27714
27715
27716fi
27717
27718rm -f core conftest.err conftest.$ac_objext \
27719      conftest$ac_exeext
27720  if test "${ac_cv_search_dlopen+set}" = set; then
27721  break
27722fi
27723done
27724if test "${ac_cv_search_dlopen+set}" = set; then
27725  :
27726else
27727  ac_cv_search_dlopen=no
27728fi
27729rm conftest.$ac_ext
27730LIBS=$ac_func_search_save_LIBS
27731fi
27732{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27733echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27734ac_res=$ac_cv_search_dlopen
27735if test "$ac_res" != no; then
27736  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27737
27738cat >>confdefs.h <<\_ACEOF
27739#define HAVE_DLOPEN 1
27740_ACEOF
27741
27742else
27743  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27744echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27745fi
27746
27747
27748{ echo "$as_me:$LINENO: checking for ffi_call in -lffi" >&5
27749echo $ECHO_N "checking for ffi_call in -lffi... $ECHO_C" >&6; }
27750if test "${ac_cv_lib_ffi_ffi_call+set}" = set; then
27751  echo $ECHO_N "(cached) $ECHO_C" >&6
27752else
27753  ac_check_lib_save_LIBS=$LIBS
27754LIBS="-lffi  $LIBS"
27755cat >conftest.$ac_ext <<_ACEOF
27756/* confdefs.h.  */
27757_ACEOF
27758cat confdefs.h >>conftest.$ac_ext
27759cat >>conftest.$ac_ext <<_ACEOF
27760/* end confdefs.h.  */
27761
27762/* Override any GCC internal prototype to avoid an error.
27763   Use char because int might match the return type of a GCC
27764   builtin and then its argument prototype would still apply.  */
27765#ifdef __cplusplus
27766extern "C"
27767#endif
27768char ffi_call ();
27769int
27770main ()
27771{
27772return ffi_call ();
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_ffi_ffi_call=yes
27812else
27813  echo "$as_me: failed program was:" >&5
27814sed 's/^/| /' conftest.$ac_ext >&5
27815
27816	ac_cv_lib_ffi_ffi_call=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_ffi_ffi_call" >&5
27824echo "${ECHO_T}$ac_cv_lib_ffi_ffi_call" >&6; }
27825if test $ac_cv_lib_ffi_ffi_call = yes; then
27826  have_libffi=1
27827else
27828  { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27829echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27830fi
27831
27832
27833{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27834echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27835if test "${ac_cv_search_mallinfo+set}" = set; then
27836  echo $ECHO_N "(cached) $ECHO_C" >&6
27837else
27838  ac_func_search_save_LIBS=$LIBS
27839cat >conftest.$ac_ext <<_ACEOF
27840/* confdefs.h.  */
27841_ACEOF
27842cat confdefs.h >>conftest.$ac_ext
27843cat >>conftest.$ac_ext <<_ACEOF
27844/* end confdefs.h.  */
27845
27846/* Override any GCC internal prototype to avoid an error.
27847   Use char because int might match the return type of a GCC
27848   builtin and then its argument prototype would still apply.  */
27849#ifdef __cplusplus
27850extern "C"
27851#endif
27852char mallinfo ();
27853int
27854main ()
27855{
27856return mallinfo ();
27857  ;
27858  return 0;
27859}
27860_ACEOF
27861for ac_lib in '' malloc; do
27862  if test -z "$ac_lib"; then
27863    ac_res="none required"
27864  else
27865    ac_res=-l$ac_lib
27866    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27867  fi
27868  rm -f conftest.$ac_objext conftest$ac_exeext
27869if { (ac_try="$ac_link"
27870case "(($ac_try" in
27871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27872  *) ac_try_echo=$ac_try;;
27873esac
27874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27875  (eval "$ac_link") 2>conftest.er1
27876  ac_status=$?
27877  grep -v '^ *+' conftest.er1 >conftest.err
27878  rm -f conftest.er1
27879  cat conftest.err >&5
27880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881  (exit $ac_status); } &&
27882	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27883  { (case "(($ac_try" in
27884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27885  *) ac_try_echo=$ac_try;;
27886esac
27887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27888  (eval "$ac_try") 2>&5
27889  ac_status=$?
27890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891  (exit $ac_status); }; } &&
27892	 { ac_try='test -s conftest$ac_exeext'
27893  { (case "(($ac_try" in
27894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27895  *) ac_try_echo=$ac_try;;
27896esac
27897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27898  (eval "$ac_try") 2>&5
27899  ac_status=$?
27900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901  (exit $ac_status); }; }; then
27902  ac_cv_search_mallinfo=$ac_res
27903else
27904  echo "$as_me: failed program was:" >&5
27905sed 's/^/| /' conftest.$ac_ext >&5
27906
27907
27908fi
27909
27910rm -f core conftest.err conftest.$ac_objext \
27911      conftest$ac_exeext
27912  if test "${ac_cv_search_mallinfo+set}" = set; then
27913  break
27914fi
27915done
27916if test "${ac_cv_search_mallinfo+set}" = set; then
27917  :
27918else
27919  ac_cv_search_mallinfo=no
27920fi
27921rm conftest.$ac_ext
27922LIBS=$ac_func_search_save_LIBS
27923fi
27924{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27925echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27926ac_res=$ac_cv_search_mallinfo
27927if test "$ac_res" != no; then
27928  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27929
27930cat >>confdefs.h <<\_ACEOF
27931#define HAVE_MALLINFO 1
27932_ACEOF
27933
27934fi
27935
27936
27937if test "$ENABLE_THREADS" -eq 1 ; then
27938
27939{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27940echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27941if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27942  echo $ECHO_N "(cached) $ECHO_C" >&6
27943else
27944  ac_check_lib_save_LIBS=$LIBS
27945LIBS="-lpthread  $LIBS"
27946cat >conftest.$ac_ext <<_ACEOF
27947/* confdefs.h.  */
27948_ACEOF
27949cat confdefs.h >>conftest.$ac_ext
27950cat >>conftest.$ac_ext <<_ACEOF
27951/* end confdefs.h.  */
27952
27953/* Override any GCC internal prototype to avoid an error.
27954   Use char because int might match the return type of a GCC
27955   builtin and then its argument prototype would still apply.  */
27956#ifdef __cplusplus
27957extern "C"
27958#endif
27959char pthread_mutex_init ();
27960int
27961main ()
27962{
27963return pthread_mutex_init ();
27964  ;
27965  return 0;
27966}
27967_ACEOF
27968rm -f conftest.$ac_objext conftest$ac_exeext
27969if { (ac_try="$ac_link"
27970case "(($ac_try" in
27971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27972  *) ac_try_echo=$ac_try;;
27973esac
27974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27975  (eval "$ac_link") 2>conftest.er1
27976  ac_status=$?
27977  grep -v '^ *+' conftest.er1 >conftest.err
27978  rm -f conftest.er1
27979  cat conftest.err >&5
27980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981  (exit $ac_status); } &&
27982	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27983  { (case "(($ac_try" in
27984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27985  *) ac_try_echo=$ac_try;;
27986esac
27987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27988  (eval "$ac_try") 2>&5
27989  ac_status=$?
27990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991  (exit $ac_status); }; } &&
27992	 { ac_try='test -s conftest$ac_exeext'
27993  { (case "(($ac_try" in
27994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27995  *) ac_try_echo=$ac_try;;
27996esac
27997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27998  (eval "$ac_try") 2>&5
27999  ac_status=$?
28000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28001  (exit $ac_status); }; }; then
28002  ac_cv_lib_pthread_pthread_mutex_init=yes
28003else
28004  echo "$as_me: failed program was:" >&5
28005sed 's/^/| /' conftest.$ac_ext >&5
28006
28007	ac_cv_lib_pthread_pthread_mutex_init=no
28008fi
28009
28010rm -f core conftest.err conftest.$ac_objext \
28011      conftest$ac_exeext conftest.$ac_ext
28012LIBS=$ac_check_lib_save_LIBS
28013fi
28014{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28015echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28016if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28017  cat >>confdefs.h <<_ACEOF
28018#define HAVE_LIBPTHREAD 1
28019_ACEOF
28020
28021  LIBS="-lpthread $LIBS"
28022
28023fi
28024
28025  { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28026echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28027if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28028  echo $ECHO_N "(cached) $ECHO_C" >&6
28029else
28030  ac_func_search_save_LIBS=$LIBS
28031cat >conftest.$ac_ext <<_ACEOF
28032/* confdefs.h.  */
28033_ACEOF
28034cat confdefs.h >>conftest.$ac_ext
28035cat >>conftest.$ac_ext <<_ACEOF
28036/* end confdefs.h.  */
28037
28038/* Override any GCC internal prototype to avoid an error.
28039   Use char because int might match the return type of a GCC
28040   builtin and then its argument prototype would still apply.  */
28041#ifdef __cplusplus
28042extern "C"
28043#endif
28044char pthread_mutex_lock ();
28045int
28046main ()
28047{
28048return pthread_mutex_lock ();
28049  ;
28050  return 0;
28051}
28052_ACEOF
28053for ac_lib in '' pthread; do
28054  if test -z "$ac_lib"; then
28055    ac_res="none required"
28056  else
28057    ac_res=-l$ac_lib
28058    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28059  fi
28060  rm -f conftest.$ac_objext conftest$ac_exeext
28061if { (ac_try="$ac_link"
28062case "(($ac_try" in
28063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28064  *) ac_try_echo=$ac_try;;
28065esac
28066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28067  (eval "$ac_link") 2>conftest.er1
28068  ac_status=$?
28069  grep -v '^ *+' conftest.er1 >conftest.err
28070  rm -f conftest.er1
28071  cat conftest.err >&5
28072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073  (exit $ac_status); } &&
28074	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28075  { (case "(($ac_try" in
28076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28077  *) ac_try_echo=$ac_try;;
28078esac
28079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28080  (eval "$ac_try") 2>&5
28081  ac_status=$?
28082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28083  (exit $ac_status); }; } &&
28084	 { ac_try='test -s conftest$ac_exeext'
28085  { (case "(($ac_try" in
28086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28087  *) ac_try_echo=$ac_try;;
28088esac
28089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28090  (eval "$ac_try") 2>&5
28091  ac_status=$?
28092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28093  (exit $ac_status); }; }; then
28094  ac_cv_search_pthread_mutex_lock=$ac_res
28095else
28096  echo "$as_me: failed program was:" >&5
28097sed 's/^/| /' conftest.$ac_ext >&5
28098
28099
28100fi
28101
28102rm -f core conftest.err conftest.$ac_objext \
28103      conftest$ac_exeext
28104  if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28105  break
28106fi
28107done
28108if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28109  :
28110else
28111  ac_cv_search_pthread_mutex_lock=no
28112fi
28113rm conftest.$ac_ext
28114LIBS=$ac_func_search_save_LIBS
28115fi
28116{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28117echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28118ac_res=$ac_cv_search_pthread_mutex_lock
28119if test "$ac_res" != no; then
28120  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28121
28122cat >>confdefs.h <<\_ACEOF
28123#define HAVE_PTHREAD_MUTEX_LOCK 1
28124_ACEOF
28125
28126fi
28127
28128fi
28129
28130
28131# Check whether --with-udis86 was given.
28132if test "${with_udis86+set}" = set; then
28133  withval=$with_udis86;
28134      USE_UDIS86=1
28135
28136      case "$withval" in
28137        /usr/lib|yes) ;;
28138        *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28139      esac
28140
28141{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28142echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28143if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28144  echo $ECHO_N "(cached) $ECHO_C" >&6
28145else
28146  ac_check_lib_save_LIBS=$LIBS
28147LIBS="-ludis86  $LIBS"
28148cat >conftest.$ac_ext <<_ACEOF
28149/* confdefs.h.  */
28150_ACEOF
28151cat confdefs.h >>conftest.$ac_ext
28152cat >>conftest.$ac_ext <<_ACEOF
28153/* end confdefs.h.  */
28154
28155/* Override any GCC internal prototype to avoid an error.
28156   Use char because int might match the return type of a GCC
28157   builtin and then its argument prototype would still apply.  */
28158#ifdef __cplusplus
28159extern "C"
28160#endif
28161char ud_init ();
28162int
28163main ()
28164{
28165return ud_init ();
28166  ;
28167  return 0;
28168}
28169_ACEOF
28170rm -f conftest.$ac_objext conftest$ac_exeext
28171if { (ac_try="$ac_link"
28172case "(($ac_try" in
28173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28174  *) ac_try_echo=$ac_try;;
28175esac
28176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28177  (eval "$ac_link") 2>conftest.er1
28178  ac_status=$?
28179  grep -v '^ *+' conftest.er1 >conftest.err
28180  rm -f conftest.er1
28181  cat conftest.err >&5
28182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183  (exit $ac_status); } &&
28184	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28185  { (case "(($ac_try" in
28186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28187  *) ac_try_echo=$ac_try;;
28188esac
28189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28190  (eval "$ac_try") 2>&5
28191  ac_status=$?
28192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28193  (exit $ac_status); }; } &&
28194	 { ac_try='test -s conftest$ac_exeext'
28195  { (case "(($ac_try" in
28196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28197  *) ac_try_echo=$ac_try;;
28198esac
28199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28200  (eval "$ac_try") 2>&5
28201  ac_status=$?
28202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203  (exit $ac_status); }; }; then
28204  ac_cv_lib_udis86_ud_init=yes
28205else
28206  echo "$as_me: failed program was:" >&5
28207sed 's/^/| /' conftest.$ac_ext >&5
28208
28209	ac_cv_lib_udis86_ud_init=no
28210fi
28211
28212rm -f core conftest.err conftest.$ac_objext \
28213      conftest$ac_exeext conftest.$ac_ext
28214LIBS=$ac_check_lib_save_LIBS
28215fi
28216{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28217echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28218if test $ac_cv_lib_udis86_ud_init = yes; then
28219  cat >>confdefs.h <<_ACEOF
28220#define HAVE_LIBUDIS86 1
28221_ACEOF
28222
28223  LIBS="-ludis86 $LIBS"
28224
28225else
28226
28227        echo "Error! You need to have libudis86 around."
28228        exit -1
28229
28230fi
28231
28232
28233else
28234  USE_UDIS86=0
28235
28236fi
28237
28238
28239cat >>confdefs.h <<_ACEOF
28240#define USE_UDIS86 $USE_UDIS86
28241_ACEOF
28242
28243
28244
28245
28246
28247
28248
28249
28250ac_header_dirent=no
28251for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28252  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28253{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28254echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28255if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28256  echo $ECHO_N "(cached) $ECHO_C" >&6
28257else
28258  cat >conftest.$ac_ext <<_ACEOF
28259/* confdefs.h.  */
28260_ACEOF
28261cat confdefs.h >>conftest.$ac_ext
28262cat >>conftest.$ac_ext <<_ACEOF
28263/* end confdefs.h.  */
28264#include <sys/types.h>
28265#include <$ac_hdr>
28266
28267int
28268main ()
28269{
28270if ((DIR *) 0)
28271return 0;
28272  ;
28273  return 0;
28274}
28275_ACEOF
28276rm -f conftest.$ac_objext
28277if { (ac_try="$ac_compile"
28278case "(($ac_try" in
28279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28280  *) ac_try_echo=$ac_try;;
28281esac
28282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28283  (eval "$ac_compile") 2>conftest.er1
28284  ac_status=$?
28285  grep -v '^ *+' conftest.er1 >conftest.err
28286  rm -f conftest.er1
28287  cat conftest.err >&5
28288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289  (exit $ac_status); } &&
28290	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28291  { (case "(($ac_try" in
28292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28293  *) ac_try_echo=$ac_try;;
28294esac
28295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28296  (eval "$ac_try") 2>&5
28297  ac_status=$?
28298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299  (exit $ac_status); }; } &&
28300	 { ac_try='test -s conftest.$ac_objext'
28301  { (case "(($ac_try" in
28302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28303  *) ac_try_echo=$ac_try;;
28304esac
28305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28306  (eval "$ac_try") 2>&5
28307  ac_status=$?
28308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309  (exit $ac_status); }; }; then
28310  eval "$as_ac_Header=yes"
28311else
28312  echo "$as_me: failed program was:" >&5
28313sed 's/^/| /' conftest.$ac_ext >&5
28314
28315	eval "$as_ac_Header=no"
28316fi
28317
28318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28319fi
28320ac_res=`eval echo '${'$as_ac_Header'}'`
28321	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28322echo "${ECHO_T}$ac_res" >&6; }
28323if test `eval echo '${'$as_ac_Header'}'` = yes; then
28324  cat >>confdefs.h <<_ACEOF
28325#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28326_ACEOF
28327
28328ac_header_dirent=$ac_hdr; break
28329fi
28330
28331done
28332# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28333if test $ac_header_dirent = dirent.h; then
28334  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28335echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28336if test "${ac_cv_search_opendir+set}" = set; then
28337  echo $ECHO_N "(cached) $ECHO_C" >&6
28338else
28339  ac_func_search_save_LIBS=$LIBS
28340cat >conftest.$ac_ext <<_ACEOF
28341/* confdefs.h.  */
28342_ACEOF
28343cat confdefs.h >>conftest.$ac_ext
28344cat >>conftest.$ac_ext <<_ACEOF
28345/* end confdefs.h.  */
28346
28347/* Override any GCC internal prototype to avoid an error.
28348   Use char because int might match the return type of a GCC
28349   builtin and then its argument prototype would still apply.  */
28350#ifdef __cplusplus
28351extern "C"
28352#endif
28353char opendir ();
28354int
28355main ()
28356{
28357return opendir ();
28358  ;
28359  return 0;
28360}
28361_ACEOF
28362for ac_lib in '' dir; do
28363  if test -z "$ac_lib"; then
28364    ac_res="none required"
28365  else
28366    ac_res=-l$ac_lib
28367    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28368  fi
28369  rm -f conftest.$ac_objext conftest$ac_exeext
28370if { (ac_try="$ac_link"
28371case "(($ac_try" in
28372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28373  *) ac_try_echo=$ac_try;;
28374esac
28375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28376  (eval "$ac_link") 2>conftest.er1
28377  ac_status=$?
28378  grep -v '^ *+' conftest.er1 >conftest.err
28379  rm -f conftest.er1
28380  cat conftest.err >&5
28381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28382  (exit $ac_status); } &&
28383	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28384  { (case "(($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_try") 2>&5
28390  ac_status=$?
28391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28392  (exit $ac_status); }; } &&
28393	 { ac_try='test -s conftest$ac_exeext'
28394  { (case "(($ac_try" in
28395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28396  *) ac_try_echo=$ac_try;;
28397esac
28398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28399  (eval "$ac_try") 2>&5
28400  ac_status=$?
28401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28402  (exit $ac_status); }; }; then
28403  ac_cv_search_opendir=$ac_res
28404else
28405  echo "$as_me: failed program was:" >&5
28406sed 's/^/| /' conftest.$ac_ext >&5
28407
28408
28409fi
28410
28411rm -f core conftest.err conftest.$ac_objext \
28412      conftest$ac_exeext
28413  if test "${ac_cv_search_opendir+set}" = set; then
28414  break
28415fi
28416done
28417if test "${ac_cv_search_opendir+set}" = set; then
28418  :
28419else
28420  ac_cv_search_opendir=no
28421fi
28422rm conftest.$ac_ext
28423LIBS=$ac_func_search_save_LIBS
28424fi
28425{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28426echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28427ac_res=$ac_cv_search_opendir
28428if test "$ac_res" != no; then
28429  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28430
28431fi
28432
28433else
28434  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28435echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28436if test "${ac_cv_search_opendir+set}" = set; then
28437  echo $ECHO_N "(cached) $ECHO_C" >&6
28438else
28439  ac_func_search_save_LIBS=$LIBS
28440cat >conftest.$ac_ext <<_ACEOF
28441/* confdefs.h.  */
28442_ACEOF
28443cat confdefs.h >>conftest.$ac_ext
28444cat >>conftest.$ac_ext <<_ACEOF
28445/* end confdefs.h.  */
28446
28447/* Override any GCC internal prototype to avoid an error.
28448   Use char because int might match the return type of a GCC
28449   builtin and then its argument prototype would still apply.  */
28450#ifdef __cplusplus
28451extern "C"
28452#endif
28453char opendir ();
28454int
28455main ()
28456{
28457return opendir ();
28458  ;
28459  return 0;
28460}
28461_ACEOF
28462for ac_lib in '' x; do
28463  if test -z "$ac_lib"; then
28464    ac_res="none required"
28465  else
28466    ac_res=-l$ac_lib
28467    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28468  fi
28469  rm -f conftest.$ac_objext conftest$ac_exeext
28470if { (ac_try="$ac_link"
28471case "(($ac_try" in
28472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28473  *) ac_try_echo=$ac_try;;
28474esac
28475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28476  (eval "$ac_link") 2>conftest.er1
28477  ac_status=$?
28478  grep -v '^ *+' conftest.er1 >conftest.err
28479  rm -f conftest.er1
28480  cat conftest.err >&5
28481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28482  (exit $ac_status); } &&
28483	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28484  { (case "(($ac_try" in
28485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28486  *) ac_try_echo=$ac_try;;
28487esac
28488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28489  (eval "$ac_try") 2>&5
28490  ac_status=$?
28491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28492  (exit $ac_status); }; } &&
28493	 { ac_try='test -s conftest$ac_exeext'
28494  { (case "(($ac_try" in
28495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28496  *) ac_try_echo=$ac_try;;
28497esac
28498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28499  (eval "$ac_try") 2>&5
28500  ac_status=$?
28501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28502  (exit $ac_status); }; }; then
28503  ac_cv_search_opendir=$ac_res
28504else
28505  echo "$as_me: failed program was:" >&5
28506sed 's/^/| /' conftest.$ac_ext >&5
28507
28508
28509fi
28510
28511rm -f core conftest.err conftest.$ac_objext \
28512      conftest$ac_exeext
28513  if test "${ac_cv_search_opendir+set}" = set; then
28514  break
28515fi
28516done
28517if test "${ac_cv_search_opendir+set}" = set; then
28518  :
28519else
28520  ac_cv_search_opendir=no
28521fi
28522rm conftest.$ac_ext
28523LIBS=$ac_func_search_save_LIBS
28524fi
28525{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28526echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28527ac_res=$ac_cv_search_opendir
28528if test "$ac_res" != no; then
28529  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28530
28531fi
28532
28533fi
28534
28535{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28536echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28537if test "${ac_cv_header_mmap_anon+set}" = set; then
28538  echo $ECHO_N "(cached) $ECHO_C" >&6
28539else
28540   ac_ext=c
28541ac_cpp='$CPP $CPPFLAGS'
28542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28544ac_compiler_gnu=$ac_cv_c_compiler_gnu
28545
28546  cat >conftest.$ac_ext <<_ACEOF
28547/* confdefs.h.  */
28548_ACEOF
28549cat confdefs.h >>conftest.$ac_ext
28550cat >>conftest.$ac_ext <<_ACEOF
28551/* end confdefs.h.  */
28552#include <sys/mman.h>
28553#include <unistd.h>
28554#include <fcntl.h>
28555int
28556main ()
28557{
28558mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28559  ;
28560  return 0;
28561}
28562_ACEOF
28563rm -f conftest.$ac_objext
28564if { (ac_try="$ac_compile"
28565case "(($ac_try" in
28566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28567  *) ac_try_echo=$ac_try;;
28568esac
28569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28570  (eval "$ac_compile") 2>conftest.er1
28571  ac_status=$?
28572  grep -v '^ *+' conftest.er1 >conftest.err
28573  rm -f conftest.er1
28574  cat conftest.err >&5
28575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576  (exit $ac_status); } &&
28577	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28578  { (case "(($ac_try" in
28579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28580  *) ac_try_echo=$ac_try;;
28581esac
28582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28583  (eval "$ac_try") 2>&5
28584  ac_status=$?
28585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28586  (exit $ac_status); }; } &&
28587	 { ac_try='test -s conftest.$ac_objext'
28588  { (case "(($ac_try" in
28589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28590  *) ac_try_echo=$ac_try;;
28591esac
28592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28593  (eval "$ac_try") 2>&5
28594  ac_status=$?
28595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596  (exit $ac_status); }; }; then
28597  ac_cv_header_mmap_anon=yes
28598else
28599  echo "$as_me: failed program was:" >&5
28600sed 's/^/| /' conftest.$ac_ext >&5
28601
28602	ac_cv_header_mmap_anon=no
28603fi
28604
28605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28606  ac_ext=c
28607ac_cpp='$CPP $CPPFLAGS'
28608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28610ac_compiler_gnu=$ac_cv_c_compiler_gnu
28611
28612
28613fi
28614{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28615echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28616if test "$ac_cv_header_mmap_anon" = yes; then
28617
28618cat >>confdefs.h <<\_ACEOF
28619#define HAVE_MMAP_ANONYMOUS 1
28620_ACEOF
28621
28622fi
28623
28624{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28625echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28626if test "${ac_cv_header_stat_broken+set}" = set; then
28627  echo $ECHO_N "(cached) $ECHO_C" >&6
28628else
28629  cat >conftest.$ac_ext <<_ACEOF
28630/* confdefs.h.  */
28631_ACEOF
28632cat confdefs.h >>conftest.$ac_ext
28633cat >>conftest.$ac_ext <<_ACEOF
28634/* end confdefs.h.  */
28635#include <sys/types.h>
28636#include <sys/stat.h>
28637
28638#if defined S_ISBLK && defined S_IFDIR
28639# if S_ISBLK (S_IFDIR)
28640You lose.
28641# endif
28642#endif
28643
28644#if defined S_ISBLK && defined S_IFCHR
28645# if S_ISBLK (S_IFCHR)
28646You lose.
28647# endif
28648#endif
28649
28650#if defined S_ISLNK && defined S_IFREG
28651# if S_ISLNK (S_IFREG)
28652You lose.
28653# endif
28654#endif
28655
28656#if defined S_ISSOCK && defined S_IFREG
28657# if S_ISSOCK (S_IFREG)
28658You lose.
28659# endif
28660#endif
28661
28662_ACEOF
28663if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28664  $EGREP "You lose" >/dev/null 2>&1; then
28665  ac_cv_header_stat_broken=yes
28666else
28667  ac_cv_header_stat_broken=no
28668fi
28669rm -f conftest*
28670
28671fi
28672{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28673echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28674if test $ac_cv_header_stat_broken = yes; then
28675
28676cat >>confdefs.h <<\_ACEOF
28677#define STAT_MACROS_BROKEN 1
28678_ACEOF
28679
28680fi
28681
28682{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28683echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28684if test "${ac_cv_header_stdc+set}" = set; then
28685  echo $ECHO_N "(cached) $ECHO_C" >&6
28686else
28687  cat >conftest.$ac_ext <<_ACEOF
28688/* confdefs.h.  */
28689_ACEOF
28690cat confdefs.h >>conftest.$ac_ext
28691cat >>conftest.$ac_ext <<_ACEOF
28692/* end confdefs.h.  */
28693#include <stdlib.h>
28694#include <stdarg.h>
28695#include <string.h>
28696#include <float.h>
28697
28698int
28699main ()
28700{
28701
28702  ;
28703  return 0;
28704}
28705_ACEOF
28706rm -f conftest.$ac_objext
28707if { (ac_try="$ac_compile"
28708case "(($ac_try" in
28709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28710  *) ac_try_echo=$ac_try;;
28711esac
28712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28713  (eval "$ac_compile") 2>conftest.er1
28714  ac_status=$?
28715  grep -v '^ *+' conftest.er1 >conftest.err
28716  rm -f conftest.er1
28717  cat conftest.err >&5
28718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28719  (exit $ac_status); } &&
28720	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28721  { (case "(($ac_try" in
28722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28723  *) ac_try_echo=$ac_try;;
28724esac
28725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28726  (eval "$ac_try") 2>&5
28727  ac_status=$?
28728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28729  (exit $ac_status); }; } &&
28730	 { ac_try='test -s conftest.$ac_objext'
28731  { (case "(($ac_try" in
28732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28733  *) ac_try_echo=$ac_try;;
28734esac
28735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28736  (eval "$ac_try") 2>&5
28737  ac_status=$?
28738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739  (exit $ac_status); }; }; then
28740  ac_cv_header_stdc=yes
28741else
28742  echo "$as_me: failed program was:" >&5
28743sed 's/^/| /' conftest.$ac_ext >&5
28744
28745	ac_cv_header_stdc=no
28746fi
28747
28748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28749
28750if test $ac_cv_header_stdc = yes; then
28751  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28752  cat >conftest.$ac_ext <<_ACEOF
28753/* confdefs.h.  */
28754_ACEOF
28755cat confdefs.h >>conftest.$ac_ext
28756cat >>conftest.$ac_ext <<_ACEOF
28757/* end confdefs.h.  */
28758#include <string.h>
28759
28760_ACEOF
28761if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28762  $EGREP "memchr" >/dev/null 2>&1; then
28763  :
28764else
28765  ac_cv_header_stdc=no
28766fi
28767rm -f conftest*
28768
28769fi
28770
28771if test $ac_cv_header_stdc = yes; then
28772  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28773  cat >conftest.$ac_ext <<_ACEOF
28774/* confdefs.h.  */
28775_ACEOF
28776cat confdefs.h >>conftest.$ac_ext
28777cat >>conftest.$ac_ext <<_ACEOF
28778/* end confdefs.h.  */
28779#include <stdlib.h>
28780
28781_ACEOF
28782if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28783  $EGREP "free" >/dev/null 2>&1; then
28784  :
28785else
28786  ac_cv_header_stdc=no
28787fi
28788rm -f conftest*
28789
28790fi
28791
28792if test $ac_cv_header_stdc = yes; then
28793  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28794  if test "$cross_compiling" = yes; then
28795  :
28796else
28797  cat >conftest.$ac_ext <<_ACEOF
28798/* confdefs.h.  */
28799_ACEOF
28800cat confdefs.h >>conftest.$ac_ext
28801cat >>conftest.$ac_ext <<_ACEOF
28802/* end confdefs.h.  */
28803#include <ctype.h>
28804#include <stdlib.h>
28805#if ((' ' & 0x0FF) == 0x020)
28806# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28807# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28808#else
28809# define ISLOWER(c) \
28810		   (('a' <= (c) && (c) <= 'i') \
28811		     || ('j' <= (c) && (c) <= 'r') \
28812		     || ('s' <= (c) && (c) <= 'z'))
28813# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28814#endif
28815
28816#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28817int
28818main ()
28819{
28820  int i;
28821  for (i = 0; i < 256; i++)
28822    if (XOR (islower (i), ISLOWER (i))
28823	|| toupper (i) != TOUPPER (i))
28824      return 2;
28825  return 0;
28826}
28827_ACEOF
28828rm -f conftest$ac_exeext
28829if { (ac_try="$ac_link"
28830case "(($ac_try" in
28831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28832  *) ac_try_echo=$ac_try;;
28833esac
28834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28835  (eval "$ac_link") 2>&5
28836  ac_status=$?
28837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28839  { (case "(($ac_try" in
28840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28841  *) ac_try_echo=$ac_try;;
28842esac
28843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28844  (eval "$ac_try") 2>&5
28845  ac_status=$?
28846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28847  (exit $ac_status); }; }; then
28848  :
28849else
28850  echo "$as_me: program exited with status $ac_status" >&5
28851echo "$as_me: failed program was:" >&5
28852sed 's/^/| /' conftest.$ac_ext >&5
28853
28854( exit $ac_status )
28855ac_cv_header_stdc=no
28856fi
28857rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28858fi
28859
28860
28861fi
28862fi
28863{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28864echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28865if test $ac_cv_header_stdc = yes; then
28866
28867cat >>confdefs.h <<\_ACEOF
28868#define STDC_HEADERS 1
28869_ACEOF
28870
28871fi
28872
28873{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28874echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28875if test "${ac_cv_header_sys_wait_h+set}" = set; then
28876  echo $ECHO_N "(cached) $ECHO_C" >&6
28877else
28878  cat >conftest.$ac_ext <<_ACEOF
28879/* confdefs.h.  */
28880_ACEOF
28881cat confdefs.h >>conftest.$ac_ext
28882cat >>conftest.$ac_ext <<_ACEOF
28883/* end confdefs.h.  */
28884#include <sys/types.h>
28885#include <sys/wait.h>
28886#ifndef WEXITSTATUS
28887# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28888#endif
28889#ifndef WIFEXITED
28890# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28891#endif
28892
28893int
28894main ()
28895{
28896  int s;
28897  wait (&s);
28898  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28899  ;
28900  return 0;
28901}
28902_ACEOF
28903rm -f conftest.$ac_objext
28904if { (ac_try="$ac_compile"
28905case "(($ac_try" in
28906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28907  *) ac_try_echo=$ac_try;;
28908esac
28909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28910  (eval "$ac_compile") 2>conftest.er1
28911  ac_status=$?
28912  grep -v '^ *+' conftest.er1 >conftest.err
28913  rm -f conftest.er1
28914  cat conftest.err >&5
28915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28916  (exit $ac_status); } &&
28917	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28918  { (case "(($ac_try" in
28919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28920  *) ac_try_echo=$ac_try;;
28921esac
28922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28923  (eval "$ac_try") 2>&5
28924  ac_status=$?
28925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28926  (exit $ac_status); }; } &&
28927	 { ac_try='test -s conftest.$ac_objext'
28928  { (case "(($ac_try" in
28929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28930  *) ac_try_echo=$ac_try;;
28931esac
28932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28933  (eval "$ac_try") 2>&5
28934  ac_status=$?
28935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28936  (exit $ac_status); }; }; then
28937  ac_cv_header_sys_wait_h=yes
28938else
28939  echo "$as_me: failed program was:" >&5
28940sed 's/^/| /' conftest.$ac_ext >&5
28941
28942	ac_cv_header_sys_wait_h=no
28943fi
28944
28945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28946fi
28947{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28948echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28949if test $ac_cv_header_sys_wait_h = yes; then
28950
28951cat >>confdefs.h <<\_ACEOF
28952#define HAVE_SYS_WAIT_H 1
28953_ACEOF
28954
28955fi
28956
28957{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28958echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28959if test "${ac_cv_header_time+set}" = set; then
28960  echo $ECHO_N "(cached) $ECHO_C" >&6
28961else
28962  cat >conftest.$ac_ext <<_ACEOF
28963/* confdefs.h.  */
28964_ACEOF
28965cat confdefs.h >>conftest.$ac_ext
28966cat >>conftest.$ac_ext <<_ACEOF
28967/* end confdefs.h.  */
28968#include <sys/types.h>
28969#include <sys/time.h>
28970#include <time.h>
28971
28972int
28973main ()
28974{
28975if ((struct tm *) 0)
28976return 0;
28977  ;
28978  return 0;
28979}
28980_ACEOF
28981rm -f conftest.$ac_objext
28982if { (ac_try="$ac_compile"
28983case "(($ac_try" in
28984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28985  *) ac_try_echo=$ac_try;;
28986esac
28987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28988  (eval "$ac_compile") 2>conftest.er1
28989  ac_status=$?
28990  grep -v '^ *+' conftest.er1 >conftest.err
28991  rm -f conftest.er1
28992  cat conftest.err >&5
28993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28994  (exit $ac_status); } &&
28995	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28996  { (case "(($ac_try" in
28997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28998  *) ac_try_echo=$ac_try;;
28999esac
29000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29001  (eval "$ac_try") 2>&5
29002  ac_status=$?
29003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29004  (exit $ac_status); }; } &&
29005	 { ac_try='test -s conftest.$ac_objext'
29006  { (case "(($ac_try" in
29007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29008  *) ac_try_echo=$ac_try;;
29009esac
29010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29011  (eval "$ac_try") 2>&5
29012  ac_status=$?
29013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29014  (exit $ac_status); }; }; then
29015  ac_cv_header_time=yes
29016else
29017  echo "$as_me: failed program was:" >&5
29018sed 's/^/| /' conftest.$ac_ext >&5
29019
29020	ac_cv_header_time=no
29021fi
29022
29023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29024fi
29025{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29026echo "${ECHO_T}$ac_cv_header_time" >&6; }
29027if test $ac_cv_header_time = yes; then
29028
29029cat >>confdefs.h <<\_ACEOF
29030#define TIME_WITH_SYS_TIME 1
29031_ACEOF
29032
29033fi
29034
29035
29036
29037
29038
29039
29040
29041
29042for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29043do
29044as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29045if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29046  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29047echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29048if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29049  echo $ECHO_N "(cached) $ECHO_C" >&6
29050fi
29051ac_res=`eval echo '${'$as_ac_Header'}'`
29052	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29053echo "${ECHO_T}$ac_res" >&6; }
29054else
29055  # Is the header compilable?
29056{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29057echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29058cat >conftest.$ac_ext <<_ACEOF
29059/* confdefs.h.  */
29060_ACEOF
29061cat confdefs.h >>conftest.$ac_ext
29062cat >>conftest.$ac_ext <<_ACEOF
29063/* end confdefs.h.  */
29064$ac_includes_default
29065#include <$ac_header>
29066_ACEOF
29067rm -f conftest.$ac_objext
29068if { (ac_try="$ac_compile"
29069case "(($ac_try" in
29070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29071  *) ac_try_echo=$ac_try;;
29072esac
29073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29074  (eval "$ac_compile") 2>conftest.er1
29075  ac_status=$?
29076  grep -v '^ *+' conftest.er1 >conftest.err
29077  rm -f conftest.er1
29078  cat conftest.err >&5
29079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080  (exit $ac_status); } &&
29081	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29082  { (case "(($ac_try" in
29083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29084  *) ac_try_echo=$ac_try;;
29085esac
29086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29087  (eval "$ac_try") 2>&5
29088  ac_status=$?
29089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29090  (exit $ac_status); }; } &&
29091	 { ac_try='test -s conftest.$ac_objext'
29092  { (case "(($ac_try" in
29093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29094  *) ac_try_echo=$ac_try;;
29095esac
29096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29097  (eval "$ac_try") 2>&5
29098  ac_status=$?
29099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100  (exit $ac_status); }; }; then
29101  ac_header_compiler=yes
29102else
29103  echo "$as_me: failed program was:" >&5
29104sed 's/^/| /' conftest.$ac_ext >&5
29105
29106	ac_header_compiler=no
29107fi
29108
29109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29110{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29111echo "${ECHO_T}$ac_header_compiler" >&6; }
29112
29113# Is the header present?
29114{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29115echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29116cat >conftest.$ac_ext <<_ACEOF
29117/* confdefs.h.  */
29118_ACEOF
29119cat confdefs.h >>conftest.$ac_ext
29120cat >>conftest.$ac_ext <<_ACEOF
29121/* end confdefs.h.  */
29122#include <$ac_header>
29123_ACEOF
29124if { (ac_try="$ac_cpp conftest.$ac_ext"
29125case "(($ac_try" in
29126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29127  *) ac_try_echo=$ac_try;;
29128esac
29129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29130  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29131  ac_status=$?
29132  grep -v '^ *+' conftest.er1 >conftest.err
29133  rm -f conftest.er1
29134  cat conftest.err >&5
29135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136  (exit $ac_status); } >/dev/null; then
29137  if test -s conftest.err; then
29138    ac_cpp_err=$ac_c_preproc_warn_flag
29139    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29140  else
29141    ac_cpp_err=
29142  fi
29143else
29144  ac_cpp_err=yes
29145fi
29146if test -z "$ac_cpp_err"; then
29147  ac_header_preproc=yes
29148else
29149  echo "$as_me: failed program was:" >&5
29150sed 's/^/| /' conftest.$ac_ext >&5
29151
29152  ac_header_preproc=no
29153fi
29154
29155rm -f conftest.err conftest.$ac_ext
29156{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29157echo "${ECHO_T}$ac_header_preproc" >&6; }
29158
29159# So?  What about this header?
29160case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29161  yes:no: )
29162    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29163echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29164    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29165echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29166    ac_header_preproc=yes
29167    ;;
29168  no:yes:* )
29169    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29170echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29171    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29172echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29173    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29174echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29175    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29176echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29177    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29178echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29179    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29180echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29181    ( cat <<\_ASBOX
29182## ----------------------------------- ##
29183## Report this to llvmbugs@cs.uiuc.edu ##
29184## ----------------------------------- ##
29185_ASBOX
29186     ) | sed "s/^/$as_me: WARNING:     /" >&2
29187    ;;
29188esac
29189{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29191if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29192  echo $ECHO_N "(cached) $ECHO_C" >&6
29193else
29194  eval "$as_ac_Header=\$ac_header_preproc"
29195fi
29196ac_res=`eval echo '${'$as_ac_Header'}'`
29197	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29198echo "${ECHO_T}$ac_res" >&6; }
29199
29200fi
29201if test `eval echo '${'$as_ac_Header'}'` = yes; then
29202  cat >>confdefs.h <<_ACEOF
29203#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29204_ACEOF
29205
29206fi
29207
29208done
29209
29210
29211
29212
29213
29214
29215
29216for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
29217do
29218as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29219if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29220  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29221echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29222if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29223  echo $ECHO_N "(cached) $ECHO_C" >&6
29224fi
29225ac_res=`eval echo '${'$as_ac_Header'}'`
29226	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29227echo "${ECHO_T}$ac_res" >&6; }
29228else
29229  # Is the header compilable?
29230{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29231echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29232cat >conftest.$ac_ext <<_ACEOF
29233/* confdefs.h.  */
29234_ACEOF
29235cat confdefs.h >>conftest.$ac_ext
29236cat >>conftest.$ac_ext <<_ACEOF
29237/* end confdefs.h.  */
29238$ac_includes_default
29239#include <$ac_header>
29240_ACEOF
29241rm -f conftest.$ac_objext
29242if { (ac_try="$ac_compile"
29243case "(($ac_try" in
29244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29245  *) ac_try_echo=$ac_try;;
29246esac
29247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29248  (eval "$ac_compile") 2>conftest.er1
29249  ac_status=$?
29250  grep -v '^ *+' conftest.er1 >conftest.err
29251  rm -f conftest.er1
29252  cat conftest.err >&5
29253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29254  (exit $ac_status); } &&
29255	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29256  { (case "(($ac_try" in
29257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29258  *) ac_try_echo=$ac_try;;
29259esac
29260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29261  (eval "$ac_try") 2>&5
29262  ac_status=$?
29263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29264  (exit $ac_status); }; } &&
29265	 { ac_try='test -s conftest.$ac_objext'
29266  { (case "(($ac_try" in
29267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29268  *) ac_try_echo=$ac_try;;
29269esac
29270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29271  (eval "$ac_try") 2>&5
29272  ac_status=$?
29273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274  (exit $ac_status); }; }; then
29275  ac_header_compiler=yes
29276else
29277  echo "$as_me: failed program was:" >&5
29278sed 's/^/| /' conftest.$ac_ext >&5
29279
29280	ac_header_compiler=no
29281fi
29282
29283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29284{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29285echo "${ECHO_T}$ac_header_compiler" >&6; }
29286
29287# Is the header present?
29288{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29289echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29290cat >conftest.$ac_ext <<_ACEOF
29291/* confdefs.h.  */
29292_ACEOF
29293cat confdefs.h >>conftest.$ac_ext
29294cat >>conftest.$ac_ext <<_ACEOF
29295/* end confdefs.h.  */
29296#include <$ac_header>
29297_ACEOF
29298if { (ac_try="$ac_cpp conftest.$ac_ext"
29299case "(($ac_try" in
29300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29301  *) ac_try_echo=$ac_try;;
29302esac
29303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29304  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29305  ac_status=$?
29306  grep -v '^ *+' conftest.er1 >conftest.err
29307  rm -f conftest.er1
29308  cat conftest.err >&5
29309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310  (exit $ac_status); } >/dev/null; then
29311  if test -s conftest.err; then
29312    ac_cpp_err=$ac_c_preproc_warn_flag
29313    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29314  else
29315    ac_cpp_err=
29316  fi
29317else
29318  ac_cpp_err=yes
29319fi
29320if test -z "$ac_cpp_err"; then
29321  ac_header_preproc=yes
29322else
29323  echo "$as_me: failed program was:" >&5
29324sed 's/^/| /' conftest.$ac_ext >&5
29325
29326  ac_header_preproc=no
29327fi
29328
29329rm -f conftest.err conftest.$ac_ext
29330{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29331echo "${ECHO_T}$ac_header_preproc" >&6; }
29332
29333# So?  What about this header?
29334case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29335  yes:no: )
29336    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29337echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29338    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29339echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29340    ac_header_preproc=yes
29341    ;;
29342  no:yes:* )
29343    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29344echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29345    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29346echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29347    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29348echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29349    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29350echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29351    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29352echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29353    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29354echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29355    ( cat <<\_ASBOX
29356## ----------------------------------- ##
29357## Report this to llvmbugs@cs.uiuc.edu ##
29358## ----------------------------------- ##
29359_ASBOX
29360     ) | sed "s/^/$as_me: WARNING:     /" >&2
29361    ;;
29362esac
29363{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29366  echo $ECHO_N "(cached) $ECHO_C" >&6
29367else
29368  eval "$as_ac_Header=\$ac_header_preproc"
29369fi
29370ac_res=`eval echo '${'$as_ac_Header'}'`
29371	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29372echo "${ECHO_T}$ac_res" >&6; }
29373
29374fi
29375if test `eval echo '${'$as_ac_Header'}'` = yes; then
29376  cat >>confdefs.h <<_ACEOF
29377#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29378_ACEOF
29379
29380fi
29381
29382done
29383
29384
29385for ac_header in windows.h
29386do
29387as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29388if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29389  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29391if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29392  echo $ECHO_N "(cached) $ECHO_C" >&6
29393fi
29394ac_res=`eval echo '${'$as_ac_Header'}'`
29395	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29396echo "${ECHO_T}$ac_res" >&6; }
29397else
29398  # Is the header compilable?
29399{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29400echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29401cat >conftest.$ac_ext <<_ACEOF
29402/* confdefs.h.  */
29403_ACEOF
29404cat confdefs.h >>conftest.$ac_ext
29405cat >>conftest.$ac_ext <<_ACEOF
29406/* end confdefs.h.  */
29407$ac_includes_default
29408#include <$ac_header>
29409_ACEOF
29410rm -f conftest.$ac_objext
29411if { (ac_try="$ac_compile"
29412case "(($ac_try" in
29413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29414  *) ac_try_echo=$ac_try;;
29415esac
29416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29417  (eval "$ac_compile") 2>conftest.er1
29418  ac_status=$?
29419  grep -v '^ *+' conftest.er1 >conftest.err
29420  rm -f conftest.er1
29421  cat conftest.err >&5
29422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423  (exit $ac_status); } &&
29424	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29425  { (case "(($ac_try" in
29426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29427  *) ac_try_echo=$ac_try;;
29428esac
29429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29430  (eval "$ac_try") 2>&5
29431  ac_status=$?
29432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29433  (exit $ac_status); }; } &&
29434	 { ac_try='test -s conftest.$ac_objext'
29435  { (case "(($ac_try" in
29436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29437  *) ac_try_echo=$ac_try;;
29438esac
29439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29440  (eval "$ac_try") 2>&5
29441  ac_status=$?
29442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29443  (exit $ac_status); }; }; then
29444  ac_header_compiler=yes
29445else
29446  echo "$as_me: failed program was:" >&5
29447sed 's/^/| /' conftest.$ac_ext >&5
29448
29449	ac_header_compiler=no
29450fi
29451
29452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29453{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29454echo "${ECHO_T}$ac_header_compiler" >&6; }
29455
29456# Is the header present?
29457{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29458echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29459cat >conftest.$ac_ext <<_ACEOF
29460/* confdefs.h.  */
29461_ACEOF
29462cat confdefs.h >>conftest.$ac_ext
29463cat >>conftest.$ac_ext <<_ACEOF
29464/* end confdefs.h.  */
29465#include <$ac_header>
29466_ACEOF
29467if { (ac_try="$ac_cpp conftest.$ac_ext"
29468case "(($ac_try" in
29469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29470  *) ac_try_echo=$ac_try;;
29471esac
29472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29473  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29474  ac_status=$?
29475  grep -v '^ *+' conftest.er1 >conftest.err
29476  rm -f conftest.er1
29477  cat conftest.err >&5
29478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479  (exit $ac_status); } >/dev/null; then
29480  if test -s conftest.err; then
29481    ac_cpp_err=$ac_c_preproc_warn_flag
29482    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29483  else
29484    ac_cpp_err=
29485  fi
29486else
29487  ac_cpp_err=yes
29488fi
29489if test -z "$ac_cpp_err"; then
29490  ac_header_preproc=yes
29491else
29492  echo "$as_me: failed program was:" >&5
29493sed 's/^/| /' conftest.$ac_ext >&5
29494
29495  ac_header_preproc=no
29496fi
29497
29498rm -f conftest.err conftest.$ac_ext
29499{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29500echo "${ECHO_T}$ac_header_preproc" >&6; }
29501
29502# So?  What about this header?
29503case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29504  yes:no: )
29505    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29506echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29507    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29508echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29509    ac_header_preproc=yes
29510    ;;
29511  no:yes:* )
29512    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29513echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29514    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29515echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29516    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29517echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29518    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29519echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29520    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29521echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29522    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29523echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29524    ( cat <<\_ASBOX
29525## ----------------------------------- ##
29526## Report this to llvmbugs@cs.uiuc.edu ##
29527## ----------------------------------- ##
29528_ASBOX
29529     ) | sed "s/^/$as_me: WARNING:     /" >&2
29530    ;;
29531esac
29532{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29534if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29535  echo $ECHO_N "(cached) $ECHO_C" >&6
29536else
29537  eval "$as_ac_Header=\$ac_header_preproc"
29538fi
29539ac_res=`eval echo '${'$as_ac_Header'}'`
29540	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29541echo "${ECHO_T}$ac_res" >&6; }
29542
29543fi
29544if test `eval echo '${'$as_ac_Header'}'` = yes; then
29545  cat >>confdefs.h <<_ACEOF
29546#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29547_ACEOF
29548
29549fi
29550
29551done
29552
29553
29554
29555
29556
29557for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29558do
29559as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29560if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29561  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29562echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29563if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29564  echo $ECHO_N "(cached) $ECHO_C" >&6
29565fi
29566ac_res=`eval echo '${'$as_ac_Header'}'`
29567	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29568echo "${ECHO_T}$ac_res" >&6; }
29569else
29570  # Is the header compilable?
29571{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29572echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29573cat >conftest.$ac_ext <<_ACEOF
29574/* confdefs.h.  */
29575_ACEOF
29576cat confdefs.h >>conftest.$ac_ext
29577cat >>conftest.$ac_ext <<_ACEOF
29578/* end confdefs.h.  */
29579$ac_includes_default
29580#include <$ac_header>
29581_ACEOF
29582rm -f conftest.$ac_objext
29583if { (ac_try="$ac_compile"
29584case "(($ac_try" in
29585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29586  *) ac_try_echo=$ac_try;;
29587esac
29588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29589  (eval "$ac_compile") 2>conftest.er1
29590  ac_status=$?
29591  grep -v '^ *+' conftest.er1 >conftest.err
29592  rm -f conftest.er1
29593  cat conftest.err >&5
29594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595  (exit $ac_status); } &&
29596	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29597  { (case "(($ac_try" in
29598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29599  *) ac_try_echo=$ac_try;;
29600esac
29601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29602  (eval "$ac_try") 2>&5
29603  ac_status=$?
29604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605  (exit $ac_status); }; } &&
29606	 { ac_try='test -s conftest.$ac_objext'
29607  { (case "(($ac_try" in
29608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29609  *) ac_try_echo=$ac_try;;
29610esac
29611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29612  (eval "$ac_try") 2>&5
29613  ac_status=$?
29614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615  (exit $ac_status); }; }; then
29616  ac_header_compiler=yes
29617else
29618  echo "$as_me: failed program was:" >&5
29619sed 's/^/| /' conftest.$ac_ext >&5
29620
29621	ac_header_compiler=no
29622fi
29623
29624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29625{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29626echo "${ECHO_T}$ac_header_compiler" >&6; }
29627
29628# Is the header present?
29629{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29630echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29631cat >conftest.$ac_ext <<_ACEOF
29632/* confdefs.h.  */
29633_ACEOF
29634cat confdefs.h >>conftest.$ac_ext
29635cat >>conftest.$ac_ext <<_ACEOF
29636/* end confdefs.h.  */
29637#include <$ac_header>
29638_ACEOF
29639if { (ac_try="$ac_cpp conftest.$ac_ext"
29640case "(($ac_try" in
29641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29642  *) ac_try_echo=$ac_try;;
29643esac
29644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29645  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29646  ac_status=$?
29647  grep -v '^ *+' conftest.er1 >conftest.err
29648  rm -f conftest.er1
29649  cat conftest.err >&5
29650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651  (exit $ac_status); } >/dev/null; then
29652  if test -s conftest.err; then
29653    ac_cpp_err=$ac_c_preproc_warn_flag
29654    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29655  else
29656    ac_cpp_err=
29657  fi
29658else
29659  ac_cpp_err=yes
29660fi
29661if test -z "$ac_cpp_err"; then
29662  ac_header_preproc=yes
29663else
29664  echo "$as_me: failed program was:" >&5
29665sed 's/^/| /' conftest.$ac_ext >&5
29666
29667  ac_header_preproc=no
29668fi
29669
29670rm -f conftest.err conftest.$ac_ext
29671{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29672echo "${ECHO_T}$ac_header_preproc" >&6; }
29673
29674# So?  What about this header?
29675case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29676  yes:no: )
29677    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29678echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29679    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29680echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29681    ac_header_preproc=yes
29682    ;;
29683  no:yes:* )
29684    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29685echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29686    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29687echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29688    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29689echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29690    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29691echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29692    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29693echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29694    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29695echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29696    ( cat <<\_ASBOX
29697## ----------------------------------- ##
29698## Report this to llvmbugs@cs.uiuc.edu ##
29699## ----------------------------------- ##
29700_ASBOX
29701     ) | sed "s/^/$as_me: WARNING:     /" >&2
29702    ;;
29703esac
29704{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29705echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29706if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29707  echo $ECHO_N "(cached) $ECHO_C" >&6
29708else
29709  eval "$as_ac_Header=\$ac_header_preproc"
29710fi
29711ac_res=`eval echo '${'$as_ac_Header'}'`
29712	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29713echo "${ECHO_T}$ac_res" >&6; }
29714
29715fi
29716if test `eval echo '${'$as_ac_Header'}'` = yes; then
29717  cat >>confdefs.h <<_ACEOF
29718#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29719_ACEOF
29720
29721fi
29722
29723done
29724
29725
29726
29727
29728for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29729do
29730as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29731if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29732  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29733echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29734if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29735  echo $ECHO_N "(cached) $ECHO_C" >&6
29736fi
29737ac_res=`eval echo '${'$as_ac_Header'}'`
29738	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29739echo "${ECHO_T}$ac_res" >&6; }
29740else
29741  # Is the header compilable?
29742{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29743echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29744cat >conftest.$ac_ext <<_ACEOF
29745/* confdefs.h.  */
29746_ACEOF
29747cat confdefs.h >>conftest.$ac_ext
29748cat >>conftest.$ac_ext <<_ACEOF
29749/* end confdefs.h.  */
29750$ac_includes_default
29751#include <$ac_header>
29752_ACEOF
29753rm -f conftest.$ac_objext
29754if { (ac_try="$ac_compile"
29755case "(($ac_try" in
29756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29757  *) ac_try_echo=$ac_try;;
29758esac
29759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29760  (eval "$ac_compile") 2>conftest.er1
29761  ac_status=$?
29762  grep -v '^ *+' conftest.er1 >conftest.err
29763  rm -f conftest.er1
29764  cat conftest.err >&5
29765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766  (exit $ac_status); } &&
29767	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29768  { (case "(($ac_try" in
29769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29770  *) ac_try_echo=$ac_try;;
29771esac
29772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29773  (eval "$ac_try") 2>&5
29774  ac_status=$?
29775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29776  (exit $ac_status); }; } &&
29777	 { ac_try='test -s conftest.$ac_objext'
29778  { (case "(($ac_try" in
29779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29780  *) ac_try_echo=$ac_try;;
29781esac
29782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29783  (eval "$ac_try") 2>&5
29784  ac_status=$?
29785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786  (exit $ac_status); }; }; then
29787  ac_header_compiler=yes
29788else
29789  echo "$as_me: failed program was:" >&5
29790sed 's/^/| /' conftest.$ac_ext >&5
29791
29792	ac_header_compiler=no
29793fi
29794
29795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29796{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29797echo "${ECHO_T}$ac_header_compiler" >&6; }
29798
29799# Is the header present?
29800{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29801echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29802cat >conftest.$ac_ext <<_ACEOF
29803/* confdefs.h.  */
29804_ACEOF
29805cat confdefs.h >>conftest.$ac_ext
29806cat >>conftest.$ac_ext <<_ACEOF
29807/* end confdefs.h.  */
29808#include <$ac_header>
29809_ACEOF
29810if { (ac_try="$ac_cpp conftest.$ac_ext"
29811case "(($ac_try" in
29812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29813  *) ac_try_echo=$ac_try;;
29814esac
29815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29816  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29817  ac_status=$?
29818  grep -v '^ *+' conftest.er1 >conftest.err
29819  rm -f conftest.er1
29820  cat conftest.err >&5
29821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822  (exit $ac_status); } >/dev/null; then
29823  if test -s conftest.err; then
29824    ac_cpp_err=$ac_c_preproc_warn_flag
29825    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29826  else
29827    ac_cpp_err=
29828  fi
29829else
29830  ac_cpp_err=yes
29831fi
29832if test -z "$ac_cpp_err"; then
29833  ac_header_preproc=yes
29834else
29835  echo "$as_me: failed program was:" >&5
29836sed 's/^/| /' conftest.$ac_ext >&5
29837
29838  ac_header_preproc=no
29839fi
29840
29841rm -f conftest.err conftest.$ac_ext
29842{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29843echo "${ECHO_T}$ac_header_preproc" >&6; }
29844
29845# So?  What about this header?
29846case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29847  yes:no: )
29848    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29849echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29850    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29851echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29852    ac_header_preproc=yes
29853    ;;
29854  no:yes:* )
29855    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29856echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29857    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29858echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29859    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29860echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29861    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29862echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29863    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29864echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29865    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29866echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29867    ( cat <<\_ASBOX
29868## ----------------------------------- ##
29869## Report this to llvmbugs@cs.uiuc.edu ##
29870## ----------------------------------- ##
29871_ASBOX
29872     ) | sed "s/^/$as_me: WARNING:     /" >&2
29873    ;;
29874esac
29875{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29877if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29878  echo $ECHO_N "(cached) $ECHO_C" >&6
29879else
29880  eval "$as_ac_Header=\$ac_header_preproc"
29881fi
29882ac_res=`eval echo '${'$as_ac_Header'}'`
29883	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29884echo "${ECHO_T}$ac_res" >&6; }
29885
29886fi
29887if test `eval echo '${'$as_ac_Header'}'` = yes; then
29888  cat >>confdefs.h <<_ACEOF
29889#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29890_ACEOF
29891
29892fi
29893
29894done
29895
29896if test "$ENABLE_THREADS" -eq 1 ; then
29897
29898for ac_header in pthread.h
29899do
29900as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29901if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29902  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29904if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29905  echo $ECHO_N "(cached) $ECHO_C" >&6
29906fi
29907ac_res=`eval echo '${'$as_ac_Header'}'`
29908	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29909echo "${ECHO_T}$ac_res" >&6; }
29910else
29911  # Is the header compilable?
29912{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29913echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29914cat >conftest.$ac_ext <<_ACEOF
29915/* confdefs.h.  */
29916_ACEOF
29917cat confdefs.h >>conftest.$ac_ext
29918cat >>conftest.$ac_ext <<_ACEOF
29919/* end confdefs.h.  */
29920$ac_includes_default
29921#include <$ac_header>
29922_ACEOF
29923rm -f conftest.$ac_objext
29924if { (ac_try="$ac_compile"
29925case "(($ac_try" in
29926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29927  *) ac_try_echo=$ac_try;;
29928esac
29929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29930  (eval "$ac_compile") 2>conftest.er1
29931  ac_status=$?
29932  grep -v '^ *+' conftest.er1 >conftest.err
29933  rm -f conftest.er1
29934  cat conftest.err >&5
29935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29936  (exit $ac_status); } &&
29937	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29938  { (case "(($ac_try" in
29939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29940  *) ac_try_echo=$ac_try;;
29941esac
29942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29943  (eval "$ac_try") 2>&5
29944  ac_status=$?
29945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29946  (exit $ac_status); }; } &&
29947	 { ac_try='test -s conftest.$ac_objext'
29948  { (case "(($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_try") 2>&5
29954  ac_status=$?
29955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29956  (exit $ac_status); }; }; then
29957  ac_header_compiler=yes
29958else
29959  echo "$as_me: failed program was:" >&5
29960sed 's/^/| /' conftest.$ac_ext >&5
29961
29962	ac_header_compiler=no
29963fi
29964
29965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29966{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29967echo "${ECHO_T}$ac_header_compiler" >&6; }
29968
29969# Is the header present?
29970{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29971echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29972cat >conftest.$ac_ext <<_ACEOF
29973/* confdefs.h.  */
29974_ACEOF
29975cat confdefs.h >>conftest.$ac_ext
29976cat >>conftest.$ac_ext <<_ACEOF
29977/* end confdefs.h.  */
29978#include <$ac_header>
29979_ACEOF
29980if { (ac_try="$ac_cpp conftest.$ac_ext"
29981case "(($ac_try" in
29982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29983  *) ac_try_echo=$ac_try;;
29984esac
29985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29986  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29987  ac_status=$?
29988  grep -v '^ *+' conftest.er1 >conftest.err
29989  rm -f conftest.er1
29990  cat conftest.err >&5
29991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992  (exit $ac_status); } >/dev/null; then
29993  if test -s conftest.err; then
29994    ac_cpp_err=$ac_c_preproc_warn_flag
29995    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29996  else
29997    ac_cpp_err=
29998  fi
29999else
30000  ac_cpp_err=yes
30001fi
30002if test -z "$ac_cpp_err"; then
30003  ac_header_preproc=yes
30004else
30005  echo "$as_me: failed program was:" >&5
30006sed 's/^/| /' conftest.$ac_ext >&5
30007
30008  ac_header_preproc=no
30009fi
30010
30011rm -f conftest.err conftest.$ac_ext
30012{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30013echo "${ECHO_T}$ac_header_preproc" >&6; }
30014
30015# So?  What about this header?
30016case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30017  yes:no: )
30018    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30019echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30020    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30021echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30022    ac_header_preproc=yes
30023    ;;
30024  no:yes:* )
30025    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30026echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30027    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30028echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30029    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30030echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30031    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30032echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30033    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30034echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30035    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30036echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30037    ( cat <<\_ASBOX
30038## ----------------------------------- ##
30039## Report this to llvmbugs@cs.uiuc.edu ##
30040## ----------------------------------- ##
30041_ASBOX
30042     ) | sed "s/^/$as_me: WARNING:     /" >&2
30043    ;;
30044esac
30045{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30046echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30047if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30048  echo $ECHO_N "(cached) $ECHO_C" >&6
30049else
30050  eval "$as_ac_Header=\$ac_header_preproc"
30051fi
30052ac_res=`eval echo '${'$as_ac_Header'}'`
30053	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30054echo "${ECHO_T}$ac_res" >&6; }
30055
30056fi
30057if test `eval echo '${'$as_ac_Header'}'` = yes; then
30058  cat >>confdefs.h <<_ACEOF
30059#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30060_ACEOF
30061 HAVE_PTHREAD=1
30062
30063else
30064  HAVE_PTHREAD=0
30065
30066fi
30067
30068done
30069
30070else
30071  HAVE_PTHREAD=0
30072
30073fi
30074
30075if test -n "$have_libffi" ; then
30076
30077
30078for ac_header in ffi.h ffi/ffi.h
30079do
30080as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30081if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30082  { echo "$as_me:$LINENO: checking for $ac_header" >&5
30083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30084if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30085  echo $ECHO_N "(cached) $ECHO_C" >&6
30086fi
30087ac_res=`eval echo '${'$as_ac_Header'}'`
30088	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30089echo "${ECHO_T}$ac_res" >&6; }
30090else
30091  # Is the header compilable?
30092{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30093echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30094cat >conftest.$ac_ext <<_ACEOF
30095/* confdefs.h.  */
30096_ACEOF
30097cat confdefs.h >>conftest.$ac_ext
30098cat >>conftest.$ac_ext <<_ACEOF
30099/* end confdefs.h.  */
30100$ac_includes_default
30101#include <$ac_header>
30102_ACEOF
30103rm -f conftest.$ac_objext
30104if { (ac_try="$ac_compile"
30105case "(($ac_try" in
30106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30107  *) ac_try_echo=$ac_try;;
30108esac
30109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30110  (eval "$ac_compile") 2>conftest.er1
30111  ac_status=$?
30112  grep -v '^ *+' conftest.er1 >conftest.err
30113  rm -f conftest.er1
30114  cat conftest.err >&5
30115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30116  (exit $ac_status); } &&
30117	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30118  { (case "(($ac_try" in
30119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30120  *) ac_try_echo=$ac_try;;
30121esac
30122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30123  (eval "$ac_try") 2>&5
30124  ac_status=$?
30125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30126  (exit $ac_status); }; } &&
30127	 { ac_try='test -s conftest.$ac_objext'
30128  { (case "(($ac_try" in
30129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30130  *) ac_try_echo=$ac_try;;
30131esac
30132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30133  (eval "$ac_try") 2>&5
30134  ac_status=$?
30135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30136  (exit $ac_status); }; }; then
30137  ac_header_compiler=yes
30138else
30139  echo "$as_me: failed program was:" >&5
30140sed 's/^/| /' conftest.$ac_ext >&5
30141
30142	ac_header_compiler=no
30143fi
30144
30145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30146{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30147echo "${ECHO_T}$ac_header_compiler" >&6; }
30148
30149# Is the header present?
30150{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30151echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30152cat >conftest.$ac_ext <<_ACEOF
30153/* confdefs.h.  */
30154_ACEOF
30155cat confdefs.h >>conftest.$ac_ext
30156cat >>conftest.$ac_ext <<_ACEOF
30157/* end confdefs.h.  */
30158#include <$ac_header>
30159_ACEOF
30160if { (ac_try="$ac_cpp conftest.$ac_ext"
30161case "(($ac_try" in
30162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30163  *) ac_try_echo=$ac_try;;
30164esac
30165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30166  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30167  ac_status=$?
30168  grep -v '^ *+' conftest.er1 >conftest.err
30169  rm -f conftest.er1
30170  cat conftest.err >&5
30171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30172  (exit $ac_status); } >/dev/null; then
30173  if test -s conftest.err; then
30174    ac_cpp_err=$ac_c_preproc_warn_flag
30175    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30176  else
30177    ac_cpp_err=
30178  fi
30179else
30180  ac_cpp_err=yes
30181fi
30182if test -z "$ac_cpp_err"; then
30183  ac_header_preproc=yes
30184else
30185  echo "$as_me: failed program was:" >&5
30186sed 's/^/| /' conftest.$ac_ext >&5
30187
30188  ac_header_preproc=no
30189fi
30190
30191rm -f conftest.err conftest.$ac_ext
30192{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30193echo "${ECHO_T}$ac_header_preproc" >&6; }
30194
30195# So?  What about this header?
30196case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30197  yes:no: )
30198    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30199echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30200    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30201echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30202    ac_header_preproc=yes
30203    ;;
30204  no:yes:* )
30205    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30206echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30207    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30208echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30209    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30210echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30211    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30212echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30213    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30214echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30215    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30216echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30217    ( cat <<\_ASBOX
30218## ----------------------------------- ##
30219## Report this to llvmbugs@cs.uiuc.edu ##
30220## ----------------------------------- ##
30221_ASBOX
30222     ) | sed "s/^/$as_me: WARNING:     /" >&2
30223    ;;
30224esac
30225{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30226echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30227if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30228  echo $ECHO_N "(cached) $ECHO_C" >&6
30229else
30230  eval "$as_ac_Header=\$ac_header_preproc"
30231fi
30232ac_res=`eval echo '${'$as_ac_Header'}'`
30233	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30234echo "${ECHO_T}$ac_res" >&6; }
30235
30236fi
30237if test `eval echo '${'$as_ac_Header'}'` = yes; then
30238  cat >>confdefs.h <<_ACEOF
30239#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30240_ACEOF
30241 HAVE_FFI=1
30242
30243fi
30244
30245done
30246
30247fi
30248
30249
30250
30251  { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30252echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30253if test "${ac_cv_huge_val_sanity+set}" = set; then
30254  echo $ECHO_N "(cached) $ECHO_C" >&6
30255else
30256
30257    ac_ext=cpp
30258ac_cpp='$CXXCPP $CPPFLAGS'
30259ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30260ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30261ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30262
30263    CXXFLAGS=-pedantic
30264    if test "$cross_compiling" = yes; then
30265  ac_cv_huge_val_sanity=yes
30266else
30267  cat >conftest.$ac_ext <<_ACEOF
30268/* confdefs.h.  */
30269_ACEOF
30270cat confdefs.h >>conftest.$ac_ext
30271cat >>conftest.$ac_ext <<_ACEOF
30272/* end confdefs.h.  */
30273#include <math.h>
30274int
30275main ()
30276{
30277double x = HUGE_VAL; return x != x;
30278  ;
30279  return 0;
30280}
30281_ACEOF
30282rm -f conftest$ac_exeext
30283if { (ac_try="$ac_link"
30284case "(($ac_try" in
30285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30286  *) ac_try_echo=$ac_try;;
30287esac
30288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30289  (eval "$ac_link") 2>&5
30290  ac_status=$?
30291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30292  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30293  { (case "(($ac_try" in
30294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30295  *) ac_try_echo=$ac_try;;
30296esac
30297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30298  (eval "$ac_try") 2>&5
30299  ac_status=$?
30300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30301  (exit $ac_status); }; }; then
30302  ac_cv_huge_val_sanity=yes
30303else
30304  echo "$as_me: program exited with status $ac_status" >&5
30305echo "$as_me: failed program was:" >&5
30306sed 's/^/| /' conftest.$ac_ext >&5
30307
30308( exit $ac_status )
30309ac_cv_huge_val_sanity=no
30310fi
30311rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30312fi
30313
30314
30315    ac_ext=c
30316ac_cpp='$CPP $CPPFLAGS'
30317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30319ac_compiler_gnu=$ac_cv_c_compiler_gnu
30320
30321
30322fi
30323{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30324echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30325  HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30326
30327
30328{ echo "$as_me:$LINENO: checking for pid_t" >&5
30329echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30330if test "${ac_cv_type_pid_t+set}" = set; then
30331  echo $ECHO_N "(cached) $ECHO_C" >&6
30332else
30333  cat >conftest.$ac_ext <<_ACEOF
30334/* confdefs.h.  */
30335_ACEOF
30336cat confdefs.h >>conftest.$ac_ext
30337cat >>conftest.$ac_ext <<_ACEOF
30338/* end confdefs.h.  */
30339$ac_includes_default
30340typedef pid_t ac__type_new_;
30341int
30342main ()
30343{
30344if ((ac__type_new_ *) 0)
30345  return 0;
30346if (sizeof (ac__type_new_))
30347  return 0;
30348  ;
30349  return 0;
30350}
30351_ACEOF
30352rm -f conftest.$ac_objext
30353if { (ac_try="$ac_compile"
30354case "(($ac_try" in
30355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30356  *) ac_try_echo=$ac_try;;
30357esac
30358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30359  (eval "$ac_compile") 2>conftest.er1
30360  ac_status=$?
30361  grep -v '^ *+' conftest.er1 >conftest.err
30362  rm -f conftest.er1
30363  cat conftest.err >&5
30364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30365  (exit $ac_status); } &&
30366	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30367  { (case "(($ac_try" in
30368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30369  *) ac_try_echo=$ac_try;;
30370esac
30371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30372  (eval "$ac_try") 2>&5
30373  ac_status=$?
30374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30375  (exit $ac_status); }; } &&
30376	 { ac_try='test -s conftest.$ac_objext'
30377  { (case "(($ac_try" in
30378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30379  *) ac_try_echo=$ac_try;;
30380esac
30381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30382  (eval "$ac_try") 2>&5
30383  ac_status=$?
30384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30385  (exit $ac_status); }; }; then
30386  ac_cv_type_pid_t=yes
30387else
30388  echo "$as_me: failed program was:" >&5
30389sed 's/^/| /' conftest.$ac_ext >&5
30390
30391	ac_cv_type_pid_t=no
30392fi
30393
30394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30395fi
30396{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30397echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30398if test $ac_cv_type_pid_t = yes; then
30399  :
30400else
30401
30402cat >>confdefs.h <<_ACEOF
30403#define pid_t int
30404_ACEOF
30405
30406fi
30407
30408{ echo "$as_me:$LINENO: checking for size_t" >&5
30409echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30410if test "${ac_cv_type_size_t+set}" = set; then
30411  echo $ECHO_N "(cached) $ECHO_C" >&6
30412else
30413  cat >conftest.$ac_ext <<_ACEOF
30414/* confdefs.h.  */
30415_ACEOF
30416cat confdefs.h >>conftest.$ac_ext
30417cat >>conftest.$ac_ext <<_ACEOF
30418/* end confdefs.h.  */
30419$ac_includes_default
30420typedef size_t ac__type_new_;
30421int
30422main ()
30423{
30424if ((ac__type_new_ *) 0)
30425  return 0;
30426if (sizeof (ac__type_new_))
30427  return 0;
30428  ;
30429  return 0;
30430}
30431_ACEOF
30432rm -f conftest.$ac_objext
30433if { (ac_try="$ac_compile"
30434case "(($ac_try" in
30435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30436  *) ac_try_echo=$ac_try;;
30437esac
30438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30439  (eval "$ac_compile") 2>conftest.er1
30440  ac_status=$?
30441  grep -v '^ *+' conftest.er1 >conftest.err
30442  rm -f conftest.er1
30443  cat conftest.err >&5
30444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30445  (exit $ac_status); } &&
30446	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30447  { (case "(($ac_try" in
30448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30449  *) ac_try_echo=$ac_try;;
30450esac
30451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30452  (eval "$ac_try") 2>&5
30453  ac_status=$?
30454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30455  (exit $ac_status); }; } &&
30456	 { ac_try='test -s conftest.$ac_objext'
30457  { (case "(($ac_try" in
30458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30459  *) ac_try_echo=$ac_try;;
30460esac
30461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30462  (eval "$ac_try") 2>&5
30463  ac_status=$?
30464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30465  (exit $ac_status); }; }; then
30466  ac_cv_type_size_t=yes
30467else
30468  echo "$as_me: failed program was:" >&5
30469sed 's/^/| /' conftest.$ac_ext >&5
30470
30471	ac_cv_type_size_t=no
30472fi
30473
30474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30475fi
30476{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30477echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30478if test $ac_cv_type_size_t = yes; then
30479  :
30480else
30481
30482cat >>confdefs.h <<_ACEOF
30483#define size_t unsigned int
30484_ACEOF
30485
30486fi
30487
30488{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30489echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30490if test "${ac_cv_type_signal+set}" = set; then
30491  echo $ECHO_N "(cached) $ECHO_C" >&6
30492else
30493  cat >conftest.$ac_ext <<_ACEOF
30494/* confdefs.h.  */
30495_ACEOF
30496cat confdefs.h >>conftest.$ac_ext
30497cat >>conftest.$ac_ext <<_ACEOF
30498/* end confdefs.h.  */
30499#include <sys/types.h>
30500#include <signal.h>
30501
30502int
30503main ()
30504{
30505return *(signal (0, 0)) (0) == 1;
30506  ;
30507  return 0;
30508}
30509_ACEOF
30510rm -f conftest.$ac_objext
30511if { (ac_try="$ac_compile"
30512case "(($ac_try" in
30513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30514  *) ac_try_echo=$ac_try;;
30515esac
30516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30517  (eval "$ac_compile") 2>conftest.er1
30518  ac_status=$?
30519  grep -v '^ *+' conftest.er1 >conftest.err
30520  rm -f conftest.er1
30521  cat conftest.err >&5
30522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30523  (exit $ac_status); } &&
30524	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30525  { (case "(($ac_try" in
30526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30527  *) ac_try_echo=$ac_try;;
30528esac
30529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30530  (eval "$ac_try") 2>&5
30531  ac_status=$?
30532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30533  (exit $ac_status); }; } &&
30534	 { ac_try='test -s conftest.$ac_objext'
30535  { (case "(($ac_try" in
30536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30537  *) ac_try_echo=$ac_try;;
30538esac
30539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30540  (eval "$ac_try") 2>&5
30541  ac_status=$?
30542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30543  (exit $ac_status); }; }; then
30544  ac_cv_type_signal=int
30545else
30546  echo "$as_me: failed program was:" >&5
30547sed 's/^/| /' conftest.$ac_ext >&5
30548
30549	ac_cv_type_signal=void
30550fi
30551
30552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30553fi
30554{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30555echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30556
30557cat >>confdefs.h <<_ACEOF
30558#define RETSIGTYPE $ac_cv_type_signal
30559_ACEOF
30560
30561
30562{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30563echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30564if test "${ac_cv_struct_tm+set}" = set; then
30565  echo $ECHO_N "(cached) $ECHO_C" >&6
30566else
30567  cat >conftest.$ac_ext <<_ACEOF
30568/* confdefs.h.  */
30569_ACEOF
30570cat confdefs.h >>conftest.$ac_ext
30571cat >>conftest.$ac_ext <<_ACEOF
30572/* end confdefs.h.  */
30573#include <sys/types.h>
30574#include <time.h>
30575
30576int
30577main ()
30578{
30579struct tm *tp; tp->tm_sec;
30580  ;
30581  return 0;
30582}
30583_ACEOF
30584rm -f conftest.$ac_objext
30585if { (ac_try="$ac_compile"
30586case "(($ac_try" in
30587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30588  *) ac_try_echo=$ac_try;;
30589esac
30590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30591  (eval "$ac_compile") 2>conftest.er1
30592  ac_status=$?
30593  grep -v '^ *+' conftest.er1 >conftest.err
30594  rm -f conftest.er1
30595  cat conftest.err >&5
30596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30597  (exit $ac_status); } &&
30598	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30599  { (case "(($ac_try" in
30600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30601  *) ac_try_echo=$ac_try;;
30602esac
30603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30604  (eval "$ac_try") 2>&5
30605  ac_status=$?
30606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30607  (exit $ac_status); }; } &&
30608	 { ac_try='test -s conftest.$ac_objext'
30609  { (case "(($ac_try" in
30610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30611  *) ac_try_echo=$ac_try;;
30612esac
30613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30614  (eval "$ac_try") 2>&5
30615  ac_status=$?
30616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617  (exit $ac_status); }; }; then
30618  ac_cv_struct_tm=time.h
30619else
30620  echo "$as_me: failed program was:" >&5
30621sed 's/^/| /' conftest.$ac_ext >&5
30622
30623	ac_cv_struct_tm=sys/time.h
30624fi
30625
30626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30627fi
30628{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30629echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30630if test $ac_cv_struct_tm = sys/time.h; then
30631
30632cat >>confdefs.h <<\_ACEOF
30633#define TM_IN_SYS_TIME 1
30634_ACEOF
30635
30636fi
30637
30638{ echo "$as_me:$LINENO: checking for int64_t" >&5
30639echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30640if test "${ac_cv_type_int64_t+set}" = set; then
30641  echo $ECHO_N "(cached) $ECHO_C" >&6
30642else
30643  cat >conftest.$ac_ext <<_ACEOF
30644/* confdefs.h.  */
30645_ACEOF
30646cat confdefs.h >>conftest.$ac_ext
30647cat >>conftest.$ac_ext <<_ACEOF
30648/* end confdefs.h.  */
30649$ac_includes_default
30650typedef int64_t ac__type_new_;
30651int
30652main ()
30653{
30654if ((ac__type_new_ *) 0)
30655  return 0;
30656if (sizeof (ac__type_new_))
30657  return 0;
30658  ;
30659  return 0;
30660}
30661_ACEOF
30662rm -f conftest.$ac_objext
30663if { (ac_try="$ac_compile"
30664case "(($ac_try" in
30665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30666  *) ac_try_echo=$ac_try;;
30667esac
30668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30669  (eval "$ac_compile") 2>conftest.er1
30670  ac_status=$?
30671  grep -v '^ *+' conftest.er1 >conftest.err
30672  rm -f conftest.er1
30673  cat conftest.err >&5
30674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30675  (exit $ac_status); } &&
30676	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30677  { (case "(($ac_try" in
30678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30679  *) ac_try_echo=$ac_try;;
30680esac
30681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30682  (eval "$ac_try") 2>&5
30683  ac_status=$?
30684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30685  (exit $ac_status); }; } &&
30686	 { ac_try='test -s conftest.$ac_objext'
30687  { (case "(($ac_try" in
30688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30689  *) ac_try_echo=$ac_try;;
30690esac
30691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30692  (eval "$ac_try") 2>&5
30693  ac_status=$?
30694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30695  (exit $ac_status); }; }; then
30696  ac_cv_type_int64_t=yes
30697else
30698  echo "$as_me: failed program was:" >&5
30699sed 's/^/| /' conftest.$ac_ext >&5
30700
30701	ac_cv_type_int64_t=no
30702fi
30703
30704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30705fi
30706{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30707echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30708if test $ac_cv_type_int64_t = yes; then
30709
30710cat >>confdefs.h <<_ACEOF
30711#define HAVE_INT64_T 1
30712_ACEOF
30713
30714
30715else
30716  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30717echo "$as_me: error: Type int64_t required but not found" >&2;}
30718   { (exit 1); exit 1; }; }
30719fi
30720
30721{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30722echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30723if test "${ac_cv_type_uint64_t+set}" = set; then
30724  echo $ECHO_N "(cached) $ECHO_C" >&6
30725else
30726  cat >conftest.$ac_ext <<_ACEOF
30727/* confdefs.h.  */
30728_ACEOF
30729cat confdefs.h >>conftest.$ac_ext
30730cat >>conftest.$ac_ext <<_ACEOF
30731/* end confdefs.h.  */
30732$ac_includes_default
30733typedef uint64_t ac__type_new_;
30734int
30735main ()
30736{
30737if ((ac__type_new_ *) 0)
30738  return 0;
30739if (sizeof (ac__type_new_))
30740  return 0;
30741  ;
30742  return 0;
30743}
30744_ACEOF
30745rm -f conftest.$ac_objext
30746if { (ac_try="$ac_compile"
30747case "(($ac_try" in
30748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30749  *) ac_try_echo=$ac_try;;
30750esac
30751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30752  (eval "$ac_compile") 2>conftest.er1
30753  ac_status=$?
30754  grep -v '^ *+' conftest.er1 >conftest.err
30755  rm -f conftest.er1
30756  cat conftest.err >&5
30757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758  (exit $ac_status); } &&
30759	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30760  { (case "(($ac_try" in
30761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30762  *) ac_try_echo=$ac_try;;
30763esac
30764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30765  (eval "$ac_try") 2>&5
30766  ac_status=$?
30767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30768  (exit $ac_status); }; } &&
30769	 { ac_try='test -s conftest.$ac_objext'
30770  { (case "(($ac_try" in
30771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30772  *) ac_try_echo=$ac_try;;
30773esac
30774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30775  (eval "$ac_try") 2>&5
30776  ac_status=$?
30777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30778  (exit $ac_status); }; }; then
30779  ac_cv_type_uint64_t=yes
30780else
30781  echo "$as_me: failed program was:" >&5
30782sed 's/^/| /' conftest.$ac_ext >&5
30783
30784	ac_cv_type_uint64_t=no
30785fi
30786
30787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30788fi
30789{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30790echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30791if test $ac_cv_type_uint64_t = yes; then
30792
30793cat >>confdefs.h <<_ACEOF
30794#define HAVE_UINT64_T 1
30795_ACEOF
30796
30797
30798else
30799  { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30800echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30801if test "${ac_cv_type_u_int64_t+set}" = set; then
30802  echo $ECHO_N "(cached) $ECHO_C" >&6
30803else
30804  cat >conftest.$ac_ext <<_ACEOF
30805/* confdefs.h.  */
30806_ACEOF
30807cat confdefs.h >>conftest.$ac_ext
30808cat >>conftest.$ac_ext <<_ACEOF
30809/* end confdefs.h.  */
30810$ac_includes_default
30811typedef u_int64_t ac__type_new_;
30812int
30813main ()
30814{
30815if ((ac__type_new_ *) 0)
30816  return 0;
30817if (sizeof (ac__type_new_))
30818  return 0;
30819  ;
30820  return 0;
30821}
30822_ACEOF
30823rm -f conftest.$ac_objext
30824if { (ac_try="$ac_compile"
30825case "(($ac_try" in
30826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30827  *) ac_try_echo=$ac_try;;
30828esac
30829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30830  (eval "$ac_compile") 2>conftest.er1
30831  ac_status=$?
30832  grep -v '^ *+' conftest.er1 >conftest.err
30833  rm -f conftest.er1
30834  cat conftest.err >&5
30835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30836  (exit $ac_status); } &&
30837	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30838  { (case "(($ac_try" in
30839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30840  *) ac_try_echo=$ac_try;;
30841esac
30842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30843  (eval "$ac_try") 2>&5
30844  ac_status=$?
30845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30846  (exit $ac_status); }; } &&
30847	 { ac_try='test -s conftest.$ac_objext'
30848  { (case "(($ac_try" in
30849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30850  *) ac_try_echo=$ac_try;;
30851esac
30852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30853  (eval "$ac_try") 2>&5
30854  ac_status=$?
30855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30856  (exit $ac_status); }; }; then
30857  ac_cv_type_u_int64_t=yes
30858else
30859  echo "$as_me: failed program was:" >&5
30860sed 's/^/| /' conftest.$ac_ext >&5
30861
30862	ac_cv_type_u_int64_t=no
30863fi
30864
30865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30866fi
30867{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30868echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30869if test $ac_cv_type_u_int64_t = yes; then
30870
30871cat >>confdefs.h <<_ACEOF
30872#define HAVE_U_INT64_T 1
30873_ACEOF
30874
30875
30876else
30877  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30878echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30879   { (exit 1); exit 1; }; }
30880fi
30881
30882fi
30883
30884
30885
30886
30887
30888
30889
30890
30891
30892
30893for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30894do
30895as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30896{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30897echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30898if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30899  echo $ECHO_N "(cached) $ECHO_C" >&6
30900else
30901  cat >conftest.$ac_ext <<_ACEOF
30902/* confdefs.h.  */
30903_ACEOF
30904cat confdefs.h >>conftest.$ac_ext
30905cat >>conftest.$ac_ext <<_ACEOF
30906/* end confdefs.h.  */
30907/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30908   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30909#define $ac_func innocuous_$ac_func
30910
30911/* System header to define __stub macros and hopefully few prototypes,
30912    which can conflict with char $ac_func (); below.
30913    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30914    <limits.h> exists even on freestanding compilers.  */
30915
30916#ifdef __STDC__
30917# include <limits.h>
30918#else
30919# include <assert.h>
30920#endif
30921
30922#undef $ac_func
30923
30924/* Override any GCC internal prototype to avoid an error.
30925   Use char because int might match the return type of a GCC
30926   builtin and then its argument prototype would still apply.  */
30927#ifdef __cplusplus
30928extern "C"
30929#endif
30930char $ac_func ();
30931/* The GNU C library defines this for functions which it implements
30932    to always fail with ENOSYS.  Some functions are actually named
30933    something starting with __ and the normal name is an alias.  */
30934#if defined __stub_$ac_func || defined __stub___$ac_func
30935choke me
30936#endif
30937
30938int
30939main ()
30940{
30941return $ac_func ();
30942  ;
30943  return 0;
30944}
30945_ACEOF
30946rm -f conftest.$ac_objext conftest$ac_exeext
30947if { (ac_try="$ac_link"
30948case "(($ac_try" in
30949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30950  *) ac_try_echo=$ac_try;;
30951esac
30952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30953  (eval "$ac_link") 2>conftest.er1
30954  ac_status=$?
30955  grep -v '^ *+' conftest.er1 >conftest.err
30956  rm -f conftest.er1
30957  cat conftest.err >&5
30958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959  (exit $ac_status); } &&
30960	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30961  { (case "(($ac_try" in
30962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30963  *) ac_try_echo=$ac_try;;
30964esac
30965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30966  (eval "$ac_try") 2>&5
30967  ac_status=$?
30968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30969  (exit $ac_status); }; } &&
30970	 { ac_try='test -s conftest$ac_exeext'
30971  { (case "(($ac_try" in
30972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30973  *) ac_try_echo=$ac_try;;
30974esac
30975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30976  (eval "$ac_try") 2>&5
30977  ac_status=$?
30978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30979  (exit $ac_status); }; }; then
30980  eval "$as_ac_var=yes"
30981else
30982  echo "$as_me: failed program was:" >&5
30983sed 's/^/| /' conftest.$ac_ext >&5
30984
30985	eval "$as_ac_var=no"
30986fi
30987
30988rm -f core conftest.err conftest.$ac_objext \
30989      conftest$ac_exeext conftest.$ac_ext
30990fi
30991ac_res=`eval echo '${'$as_ac_var'}'`
30992	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30993echo "${ECHO_T}$ac_res" >&6; }
30994if test `eval echo '${'$as_ac_var'}'` = yes; then
30995  cat >>confdefs.h <<_ACEOF
30996#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30997_ACEOF
30998
30999fi
31000done
31001
31002
31003
31004
31005
31006for ac_func in powf fmodf strtof round
31007do
31008as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31009{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31010echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31011if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31012  echo $ECHO_N "(cached) $ECHO_C" >&6
31013else
31014  cat >conftest.$ac_ext <<_ACEOF
31015/* confdefs.h.  */
31016_ACEOF
31017cat confdefs.h >>conftest.$ac_ext
31018cat >>conftest.$ac_ext <<_ACEOF
31019/* end confdefs.h.  */
31020/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31021   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31022#define $ac_func innocuous_$ac_func
31023
31024/* System header to define __stub macros and hopefully few prototypes,
31025    which can conflict with char $ac_func (); below.
31026    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31027    <limits.h> exists even on freestanding compilers.  */
31028
31029#ifdef __STDC__
31030# include <limits.h>
31031#else
31032# include <assert.h>
31033#endif
31034
31035#undef $ac_func
31036
31037/* Override any GCC internal prototype to avoid an error.
31038   Use char because int might match the return type of a GCC
31039   builtin and then its argument prototype would still apply.  */
31040#ifdef __cplusplus
31041extern "C"
31042#endif
31043char $ac_func ();
31044/* The GNU C library defines this for functions which it implements
31045    to always fail with ENOSYS.  Some functions are actually named
31046    something starting with __ and the normal name is an alias.  */
31047#if defined __stub_$ac_func || defined __stub___$ac_func
31048choke me
31049#endif
31050
31051int
31052main ()
31053{
31054return $ac_func ();
31055  ;
31056  return 0;
31057}
31058_ACEOF
31059rm -f conftest.$ac_objext conftest$ac_exeext
31060if { (ac_try="$ac_link"
31061case "(($ac_try" in
31062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31063  *) ac_try_echo=$ac_try;;
31064esac
31065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31066  (eval "$ac_link") 2>conftest.er1
31067  ac_status=$?
31068  grep -v '^ *+' conftest.er1 >conftest.err
31069  rm -f conftest.er1
31070  cat conftest.err >&5
31071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31072  (exit $ac_status); } &&
31073	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31074  { (case "(($ac_try" in
31075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31076  *) ac_try_echo=$ac_try;;
31077esac
31078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31079  (eval "$ac_try") 2>&5
31080  ac_status=$?
31081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31082  (exit $ac_status); }; } &&
31083	 { ac_try='test -s conftest$ac_exeext'
31084  { (case "(($ac_try" in
31085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31086  *) ac_try_echo=$ac_try;;
31087esac
31088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31089  (eval "$ac_try") 2>&5
31090  ac_status=$?
31091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31092  (exit $ac_status); }; }; then
31093  eval "$as_ac_var=yes"
31094else
31095  echo "$as_me: failed program was:" >&5
31096sed 's/^/| /' conftest.$ac_ext >&5
31097
31098	eval "$as_ac_var=no"
31099fi
31100
31101rm -f core conftest.err conftest.$ac_objext \
31102      conftest$ac_exeext conftest.$ac_ext
31103fi
31104ac_res=`eval echo '${'$as_ac_var'}'`
31105	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31106echo "${ECHO_T}$ac_res" >&6; }
31107if test `eval echo '${'$as_ac_var'}'` = yes; then
31108  cat >>confdefs.h <<_ACEOF
31109#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31110_ACEOF
31111
31112fi
31113done
31114
31115
31116
31117
31118
31119
31120for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31121do
31122as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31123{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31124echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31125if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31126  echo $ECHO_N "(cached) $ECHO_C" >&6
31127else
31128  cat >conftest.$ac_ext <<_ACEOF
31129/* confdefs.h.  */
31130_ACEOF
31131cat confdefs.h >>conftest.$ac_ext
31132cat >>conftest.$ac_ext <<_ACEOF
31133/* end confdefs.h.  */
31134/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31135   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31136#define $ac_func innocuous_$ac_func
31137
31138/* System header to define __stub macros and hopefully few prototypes,
31139    which can conflict with char $ac_func (); below.
31140    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31141    <limits.h> exists even on freestanding compilers.  */
31142
31143#ifdef __STDC__
31144# include <limits.h>
31145#else
31146# include <assert.h>
31147#endif
31148
31149#undef $ac_func
31150
31151/* Override any GCC internal prototype to avoid an error.
31152   Use char because int might match the return type of a GCC
31153   builtin and then its argument prototype would still apply.  */
31154#ifdef __cplusplus
31155extern "C"
31156#endif
31157char $ac_func ();
31158/* The GNU C library defines this for functions which it implements
31159    to always fail with ENOSYS.  Some functions are actually named
31160    something starting with __ and the normal name is an alias.  */
31161#if defined __stub_$ac_func || defined __stub___$ac_func
31162choke me
31163#endif
31164
31165int
31166main ()
31167{
31168return $ac_func ();
31169  ;
31170  return 0;
31171}
31172_ACEOF
31173rm -f conftest.$ac_objext conftest$ac_exeext
31174if { (ac_try="$ac_link"
31175case "(($ac_try" in
31176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31177  *) ac_try_echo=$ac_try;;
31178esac
31179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31180  (eval "$ac_link") 2>conftest.er1
31181  ac_status=$?
31182  grep -v '^ *+' conftest.er1 >conftest.err
31183  rm -f conftest.er1
31184  cat conftest.err >&5
31185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31186  (exit $ac_status); } &&
31187	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31188  { (case "(($ac_try" in
31189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31190  *) ac_try_echo=$ac_try;;
31191esac
31192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31193  (eval "$ac_try") 2>&5
31194  ac_status=$?
31195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31196  (exit $ac_status); }; } &&
31197	 { ac_try='test -s conftest$ac_exeext'
31198  { (case "(($ac_try" in
31199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31200  *) ac_try_echo=$ac_try;;
31201esac
31202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31203  (eval "$ac_try") 2>&5
31204  ac_status=$?
31205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31206  (exit $ac_status); }; }; then
31207  eval "$as_ac_var=yes"
31208else
31209  echo "$as_me: failed program was:" >&5
31210sed 's/^/| /' conftest.$ac_ext >&5
31211
31212	eval "$as_ac_var=no"
31213fi
31214
31215rm -f core conftest.err conftest.$ac_objext \
31216      conftest$ac_exeext conftest.$ac_ext
31217fi
31218ac_res=`eval echo '${'$as_ac_var'}'`
31219	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31220echo "${ECHO_T}$ac_res" >&6; }
31221if test `eval echo '${'$as_ac_var'}'` = yes; then
31222  cat >>confdefs.h <<_ACEOF
31223#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31224_ACEOF
31225
31226fi
31227done
31228
31229
31230
31231
31232for ac_func in isatty mkdtemp mkstemp
31233do
31234as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31235{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31236echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31237if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31238  echo $ECHO_N "(cached) $ECHO_C" >&6
31239else
31240  cat >conftest.$ac_ext <<_ACEOF
31241/* confdefs.h.  */
31242_ACEOF
31243cat confdefs.h >>conftest.$ac_ext
31244cat >>conftest.$ac_ext <<_ACEOF
31245/* end confdefs.h.  */
31246/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31247   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31248#define $ac_func innocuous_$ac_func
31249
31250/* System header to define __stub macros and hopefully few prototypes,
31251    which can conflict with char $ac_func (); below.
31252    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31253    <limits.h> exists even on freestanding compilers.  */
31254
31255#ifdef __STDC__
31256# include <limits.h>
31257#else
31258# include <assert.h>
31259#endif
31260
31261#undef $ac_func
31262
31263/* Override any GCC internal prototype to avoid an error.
31264   Use char because int might match the return type of a GCC
31265   builtin and then its argument prototype would still apply.  */
31266#ifdef __cplusplus
31267extern "C"
31268#endif
31269char $ac_func ();
31270/* The GNU C library defines this for functions which it implements
31271    to always fail with ENOSYS.  Some functions are actually named
31272    something starting with __ and the normal name is an alias.  */
31273#if defined __stub_$ac_func || defined __stub___$ac_func
31274choke me
31275#endif
31276
31277int
31278main ()
31279{
31280return $ac_func ();
31281  ;
31282  return 0;
31283}
31284_ACEOF
31285rm -f conftest.$ac_objext conftest$ac_exeext
31286if { (ac_try="$ac_link"
31287case "(($ac_try" in
31288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31289  *) ac_try_echo=$ac_try;;
31290esac
31291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31292  (eval "$ac_link") 2>conftest.er1
31293  ac_status=$?
31294  grep -v '^ *+' conftest.er1 >conftest.err
31295  rm -f conftest.er1
31296  cat conftest.err >&5
31297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31298  (exit $ac_status); } &&
31299	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31300  { (case "(($ac_try" in
31301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31302  *) ac_try_echo=$ac_try;;
31303esac
31304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31305  (eval "$ac_try") 2>&5
31306  ac_status=$?
31307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31308  (exit $ac_status); }; } &&
31309	 { ac_try='test -s conftest$ac_exeext'
31310  { (case "(($ac_try" in
31311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31312  *) ac_try_echo=$ac_try;;
31313esac
31314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31315  (eval "$ac_try") 2>&5
31316  ac_status=$?
31317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31318  (exit $ac_status); }; }; then
31319  eval "$as_ac_var=yes"
31320else
31321  echo "$as_me: failed program was:" >&5
31322sed 's/^/| /' conftest.$ac_ext >&5
31323
31324	eval "$as_ac_var=no"
31325fi
31326
31327rm -f core conftest.err conftest.$ac_objext \
31328      conftest$ac_exeext conftest.$ac_ext
31329fi
31330ac_res=`eval echo '${'$as_ac_var'}'`
31331	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31332echo "${ECHO_T}$ac_res" >&6; }
31333if test `eval echo '${'$as_ac_var'}'` = yes; then
31334  cat >>confdefs.h <<_ACEOF
31335#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31336_ACEOF
31337
31338fi
31339done
31340
31341
31342
31343
31344
31345
31346
31347
31348for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31349do
31350as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31351{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31352echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31353if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31354  echo $ECHO_N "(cached) $ECHO_C" >&6
31355else
31356  cat >conftest.$ac_ext <<_ACEOF
31357/* confdefs.h.  */
31358_ACEOF
31359cat confdefs.h >>conftest.$ac_ext
31360cat >>conftest.$ac_ext <<_ACEOF
31361/* end confdefs.h.  */
31362/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31363   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31364#define $ac_func innocuous_$ac_func
31365
31366/* System header to define __stub macros and hopefully few prototypes,
31367    which can conflict with char $ac_func (); below.
31368    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31369    <limits.h> exists even on freestanding compilers.  */
31370
31371#ifdef __STDC__
31372# include <limits.h>
31373#else
31374# include <assert.h>
31375#endif
31376
31377#undef $ac_func
31378
31379/* Override any GCC internal prototype to avoid an error.
31380   Use char because int might match the return type of a GCC
31381   builtin and then its argument prototype would still apply.  */
31382#ifdef __cplusplus
31383extern "C"
31384#endif
31385char $ac_func ();
31386/* The GNU C library defines this for functions which it implements
31387    to always fail with ENOSYS.  Some functions are actually named
31388    something starting with __ and the normal name is an alias.  */
31389#if defined __stub_$ac_func || defined __stub___$ac_func
31390choke me
31391#endif
31392
31393int
31394main ()
31395{
31396return $ac_func ();
31397  ;
31398  return 0;
31399}
31400_ACEOF
31401rm -f conftest.$ac_objext conftest$ac_exeext
31402if { (ac_try="$ac_link"
31403case "(($ac_try" in
31404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31405  *) ac_try_echo=$ac_try;;
31406esac
31407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31408  (eval "$ac_link") 2>conftest.er1
31409  ac_status=$?
31410  grep -v '^ *+' conftest.er1 >conftest.err
31411  rm -f conftest.er1
31412  cat conftest.err >&5
31413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31414  (exit $ac_status); } &&
31415	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31416  { (case "(($ac_try" in
31417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31418  *) ac_try_echo=$ac_try;;
31419esac
31420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31421  (eval "$ac_try") 2>&5
31422  ac_status=$?
31423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31424  (exit $ac_status); }; } &&
31425	 { ac_try='test -s conftest$ac_exeext'
31426  { (case "(($ac_try" in
31427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31428  *) ac_try_echo=$ac_try;;
31429esac
31430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31431  (eval "$ac_try") 2>&5
31432  ac_status=$?
31433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31434  (exit $ac_status); }; }; then
31435  eval "$as_ac_var=yes"
31436else
31437  echo "$as_me: failed program was:" >&5
31438sed 's/^/| /' conftest.$ac_ext >&5
31439
31440	eval "$as_ac_var=no"
31441fi
31442
31443rm -f core conftest.err conftest.$ac_objext \
31444      conftest$ac_exeext conftest.$ac_ext
31445fi
31446ac_res=`eval echo '${'$as_ac_var'}'`
31447	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31448echo "${ECHO_T}$ac_res" >&6; }
31449if test `eval echo '${'$as_ac_var'}'` = yes; then
31450  cat >>confdefs.h <<_ACEOF
31451#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31452_ACEOF
31453
31454fi
31455done
31456
31457
31458
31459
31460
31461for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31462do
31463as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31464{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31465echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31466if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31467  echo $ECHO_N "(cached) $ECHO_C" >&6
31468else
31469  cat >conftest.$ac_ext <<_ACEOF
31470/* confdefs.h.  */
31471_ACEOF
31472cat confdefs.h >>conftest.$ac_ext
31473cat >>conftest.$ac_ext <<_ACEOF
31474/* end confdefs.h.  */
31475/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31476   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31477#define $ac_func innocuous_$ac_func
31478
31479/* System header to define __stub macros and hopefully few prototypes,
31480    which can conflict with char $ac_func (); below.
31481    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31482    <limits.h> exists even on freestanding compilers.  */
31483
31484#ifdef __STDC__
31485# include <limits.h>
31486#else
31487# include <assert.h>
31488#endif
31489
31490#undef $ac_func
31491
31492/* Override any GCC internal prototype to avoid an error.
31493   Use char because int might match the return type of a GCC
31494   builtin and then its argument prototype would still apply.  */
31495#ifdef __cplusplus
31496extern "C"
31497#endif
31498char $ac_func ();
31499/* The GNU C library defines this for functions which it implements
31500    to always fail with ENOSYS.  Some functions are actually named
31501    something starting with __ and the normal name is an alias.  */
31502#if defined __stub_$ac_func || defined __stub___$ac_func
31503choke me
31504#endif
31505
31506int
31507main ()
31508{
31509return $ac_func ();
31510  ;
31511  return 0;
31512}
31513_ACEOF
31514rm -f conftest.$ac_objext conftest$ac_exeext
31515if { (ac_try="$ac_link"
31516case "(($ac_try" in
31517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31518  *) ac_try_echo=$ac_try;;
31519esac
31520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31521  (eval "$ac_link") 2>conftest.er1
31522  ac_status=$?
31523  grep -v '^ *+' conftest.er1 >conftest.err
31524  rm -f conftest.er1
31525  cat conftest.err >&5
31526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31527  (exit $ac_status); } &&
31528	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31529  { (case "(($ac_try" in
31530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31531  *) ac_try_echo=$ac_try;;
31532esac
31533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31534  (eval "$ac_try") 2>&5
31535  ac_status=$?
31536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31537  (exit $ac_status); }; } &&
31538	 { ac_try='test -s conftest$ac_exeext'
31539  { (case "(($ac_try" in
31540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31541  *) ac_try_echo=$ac_try;;
31542esac
31543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31544  (eval "$ac_try") 2>&5
31545  ac_status=$?
31546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547  (exit $ac_status); }; }; then
31548  eval "$as_ac_var=yes"
31549else
31550  echo "$as_me: failed program was:" >&5
31551sed 's/^/| /' conftest.$ac_ext >&5
31552
31553	eval "$as_ac_var=no"
31554fi
31555
31556rm -f core conftest.err conftest.$ac_objext \
31557      conftest$ac_exeext conftest.$ac_ext
31558fi
31559ac_res=`eval echo '${'$as_ac_var'}'`
31560	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31561echo "${ECHO_T}$ac_res" >&6; }
31562if test `eval echo '${'$as_ac_var'}'` = yes; then
31563  cat >>confdefs.h <<_ACEOF
31564#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31565_ACEOF
31566
31567fi
31568done
31569
31570
31571
31572
31573
31574for ac_func in setjmp longjmp sigsetjmp siglongjmp
31575do
31576as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31577{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31578echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31579if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31580  echo $ECHO_N "(cached) $ECHO_C" >&6
31581else
31582  cat >conftest.$ac_ext <<_ACEOF
31583/* confdefs.h.  */
31584_ACEOF
31585cat confdefs.h >>conftest.$ac_ext
31586cat >>conftest.$ac_ext <<_ACEOF
31587/* end confdefs.h.  */
31588/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31589   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31590#define $ac_func innocuous_$ac_func
31591
31592/* System header to define __stub macros and hopefully few prototypes,
31593    which can conflict with char $ac_func (); below.
31594    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31595    <limits.h> exists even on freestanding compilers.  */
31596
31597#ifdef __STDC__
31598# include <limits.h>
31599#else
31600# include <assert.h>
31601#endif
31602
31603#undef $ac_func
31604
31605/* Override any GCC internal prototype to avoid an error.
31606   Use char because int might match the return type of a GCC
31607   builtin and then its argument prototype would still apply.  */
31608#ifdef __cplusplus
31609extern "C"
31610#endif
31611char $ac_func ();
31612/* The GNU C library defines this for functions which it implements
31613    to always fail with ENOSYS.  Some functions are actually named
31614    something starting with __ and the normal name is an alias.  */
31615#if defined __stub_$ac_func || defined __stub___$ac_func
31616choke me
31617#endif
31618
31619int
31620main ()
31621{
31622return $ac_func ();
31623  ;
31624  return 0;
31625}
31626_ACEOF
31627rm -f conftest.$ac_objext conftest$ac_exeext
31628if { (ac_try="$ac_link"
31629case "(($ac_try" in
31630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31631  *) ac_try_echo=$ac_try;;
31632esac
31633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31634  (eval "$ac_link") 2>conftest.er1
31635  ac_status=$?
31636  grep -v '^ *+' conftest.er1 >conftest.err
31637  rm -f conftest.er1
31638  cat conftest.err >&5
31639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31640  (exit $ac_status); } &&
31641	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31642  { (case "(($ac_try" in
31643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31644  *) ac_try_echo=$ac_try;;
31645esac
31646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31647  (eval "$ac_try") 2>&5
31648  ac_status=$?
31649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31650  (exit $ac_status); }; } &&
31651	 { ac_try='test -s conftest$ac_exeext'
31652  { (case "(($ac_try" in
31653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31654  *) ac_try_echo=$ac_try;;
31655esac
31656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31657  (eval "$ac_try") 2>&5
31658  ac_status=$?
31659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31660  (exit $ac_status); }; }; then
31661  eval "$as_ac_var=yes"
31662else
31663  echo "$as_me: failed program was:" >&5
31664sed 's/^/| /' conftest.$ac_ext >&5
31665
31666	eval "$as_ac_var=no"
31667fi
31668
31669rm -f core conftest.err conftest.$ac_objext \
31670      conftest$ac_exeext conftest.$ac_ext
31671fi
31672ac_res=`eval echo '${'$as_ac_var'}'`
31673	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31674echo "${ECHO_T}$ac_res" >&6; }
31675if test `eval echo '${'$as_ac_var'}'` = yes; then
31676  cat >>confdefs.h <<_ACEOF
31677#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31678_ACEOF
31679
31680fi
31681done
31682
31683{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31684echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31685if test "${llvm_cv_c_printf_a+set}" = set; then
31686  echo $ECHO_N "(cached) $ECHO_C" >&6
31687else
31688  ac_ext=c
31689ac_cpp='$CPP $CPPFLAGS'
31690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31692ac_compiler_gnu=$ac_cv_c_compiler_gnu
31693
31694 if test "$cross_compiling" = yes; then
31695  llvmac_cv_c_printf_a=no
31696else
31697  cat >conftest.$ac_ext <<_ACEOF
31698
31699  /* confdefs.h.  */
31700_ACEOF
31701cat confdefs.h >>conftest.$ac_ext
31702cat >>conftest.$ac_ext <<_ACEOF
31703/* end confdefs.h.  */
31704
31705#include <stdio.h>
31706#include <stdlib.h>
31707
31708int
31709main ()
31710{
31711
31712volatile double A, B;
31713char Buffer[100];
31714A = 1;
31715A /= 10.0;
31716sprintf(Buffer, "%a", A);
31717B = atof(Buffer);
31718if (A != B)
31719  return (1);
31720if (A != 0x1.999999999999ap-4)
31721  return (1);
31722return (0);
31723  ;
31724  return 0;
31725}
31726_ACEOF
31727rm -f conftest$ac_exeext
31728if { (ac_try="$ac_link"
31729case "(($ac_try" in
31730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31731  *) ac_try_echo=$ac_try;;
31732esac
31733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31734  (eval "$ac_link") 2>&5
31735  ac_status=$?
31736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31737  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31738  { (case "(($ac_try" in
31739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31740  *) ac_try_echo=$ac_try;;
31741esac
31742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31743  (eval "$ac_try") 2>&5
31744  ac_status=$?
31745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31746  (exit $ac_status); }; }; then
31747  llvm_cv_c_printf_a=yes
31748else
31749  echo "$as_me: program exited with status $ac_status" >&5
31750echo "$as_me: failed program was:" >&5
31751sed 's/^/| /' conftest.$ac_ext >&5
31752
31753( exit $ac_status )
31754llvmac_cv_c_printf_a=no
31755fi
31756rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31757fi
31758
31759
31760 ac_ext=c
31761ac_cpp='$CPP $CPPFLAGS'
31762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31764ac_compiler_gnu=$ac_cv_c_compiler_gnu
31765
31766fi
31767{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31768echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31769 if test "$llvm_cv_c_printf_a" = "yes"; then
31770
31771cat >>confdefs.h <<\_ACEOF
31772#define HAVE_PRINTF_A 1
31773_ACEOF
31774
31775 fi
31776
31777# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31778# for constant arguments.  Useless!
31779{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31780echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31781if test "${ac_cv_working_alloca_h+set}" = set; then
31782  echo $ECHO_N "(cached) $ECHO_C" >&6
31783else
31784  cat >conftest.$ac_ext <<_ACEOF
31785/* confdefs.h.  */
31786_ACEOF
31787cat confdefs.h >>conftest.$ac_ext
31788cat >>conftest.$ac_ext <<_ACEOF
31789/* end confdefs.h.  */
31790#include <alloca.h>
31791int
31792main ()
31793{
31794char *p = (char *) alloca (2 * sizeof (int));
31795			  if (p) return 0;
31796  ;
31797  return 0;
31798}
31799_ACEOF
31800rm -f conftest.$ac_objext conftest$ac_exeext
31801if { (ac_try="$ac_link"
31802case "(($ac_try" in
31803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31804  *) ac_try_echo=$ac_try;;
31805esac
31806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31807  (eval "$ac_link") 2>conftest.er1
31808  ac_status=$?
31809  grep -v '^ *+' conftest.er1 >conftest.err
31810  rm -f conftest.er1
31811  cat conftest.err >&5
31812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31813  (exit $ac_status); } &&
31814	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31815  { (case "(($ac_try" in
31816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31817  *) ac_try_echo=$ac_try;;
31818esac
31819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31820  (eval "$ac_try") 2>&5
31821  ac_status=$?
31822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31823  (exit $ac_status); }; } &&
31824	 { ac_try='test -s conftest$ac_exeext'
31825  { (case "(($ac_try" in
31826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31827  *) ac_try_echo=$ac_try;;
31828esac
31829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31830  (eval "$ac_try") 2>&5
31831  ac_status=$?
31832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833  (exit $ac_status); }; }; then
31834  ac_cv_working_alloca_h=yes
31835else
31836  echo "$as_me: failed program was:" >&5
31837sed 's/^/| /' conftest.$ac_ext >&5
31838
31839	ac_cv_working_alloca_h=no
31840fi
31841
31842rm -f core conftest.err conftest.$ac_objext \
31843      conftest$ac_exeext conftest.$ac_ext
31844fi
31845{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31846echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31847if test $ac_cv_working_alloca_h = yes; then
31848
31849cat >>confdefs.h <<\_ACEOF
31850#define HAVE_ALLOCA_H 1
31851_ACEOF
31852
31853fi
31854
31855{ echo "$as_me:$LINENO: checking for alloca" >&5
31856echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31857if test "${ac_cv_func_alloca_works+set}" = set; then
31858  echo $ECHO_N "(cached) $ECHO_C" >&6
31859else
31860  cat >conftest.$ac_ext <<_ACEOF
31861/* confdefs.h.  */
31862_ACEOF
31863cat confdefs.h >>conftest.$ac_ext
31864cat >>conftest.$ac_ext <<_ACEOF
31865/* end confdefs.h.  */
31866#ifdef __GNUC__
31867# define alloca __builtin_alloca
31868#else
31869# ifdef _MSC_VER
31870#  include <malloc.h>
31871#  define alloca _alloca
31872# else
31873#  if HAVE_ALLOCA_H
31874#   include <alloca.h>
31875#  else
31876#   ifdef _AIX
31877 #pragma alloca
31878#   else
31879#    ifndef alloca /* predefined by HP cc +Olibcalls */
31880char *alloca ();
31881#    endif
31882#   endif
31883#  endif
31884# endif
31885#endif
31886
31887int
31888main ()
31889{
31890char *p = (char *) alloca (1);
31891				    if (p) return 0;
31892  ;
31893  return 0;
31894}
31895_ACEOF
31896rm -f conftest.$ac_objext conftest$ac_exeext
31897if { (ac_try="$ac_link"
31898case "(($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_link") 2>conftest.er1
31904  ac_status=$?
31905  grep -v '^ *+' conftest.er1 >conftest.err
31906  rm -f conftest.er1
31907  cat conftest.err >&5
31908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31909  (exit $ac_status); } &&
31910	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31911  { (case "(($ac_try" in
31912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31913  *) ac_try_echo=$ac_try;;
31914esac
31915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31916  (eval "$ac_try") 2>&5
31917  ac_status=$?
31918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31919  (exit $ac_status); }; } &&
31920	 { ac_try='test -s conftest$ac_exeext'
31921  { (case "(($ac_try" in
31922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31923  *) ac_try_echo=$ac_try;;
31924esac
31925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31926  (eval "$ac_try") 2>&5
31927  ac_status=$?
31928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31929  (exit $ac_status); }; }; then
31930  ac_cv_func_alloca_works=yes
31931else
31932  echo "$as_me: failed program was:" >&5
31933sed 's/^/| /' conftest.$ac_ext >&5
31934
31935	ac_cv_func_alloca_works=no
31936fi
31937
31938rm -f core conftest.err conftest.$ac_objext \
31939      conftest$ac_exeext conftest.$ac_ext
31940fi
31941{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31942echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31943
31944if test $ac_cv_func_alloca_works = yes; then
31945
31946cat >>confdefs.h <<\_ACEOF
31947#define HAVE_ALLOCA 1
31948_ACEOF
31949
31950else
31951  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31952# that cause trouble.  Some versions do not even contain alloca or
31953# contain a buggy version.  If you still want to use their alloca,
31954# use ar to extract alloca.o from them instead of compiling alloca.c.
31955
31956ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31957
31958cat >>confdefs.h <<\_ACEOF
31959#define C_ALLOCA 1
31960_ACEOF
31961
31962
31963{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31964echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31965if test "${ac_cv_os_cray+set}" = set; then
31966  echo $ECHO_N "(cached) $ECHO_C" >&6
31967else
31968  cat >conftest.$ac_ext <<_ACEOF
31969/* confdefs.h.  */
31970_ACEOF
31971cat confdefs.h >>conftest.$ac_ext
31972cat >>conftest.$ac_ext <<_ACEOF
31973/* end confdefs.h.  */
31974#if defined CRAY && ! defined CRAY2
31975webecray
31976#else
31977wenotbecray
31978#endif
31979
31980_ACEOF
31981if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31982  $EGREP "webecray" >/dev/null 2>&1; then
31983  ac_cv_os_cray=yes
31984else
31985  ac_cv_os_cray=no
31986fi
31987rm -f conftest*
31988
31989fi
31990{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31991echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31992if test $ac_cv_os_cray = yes; then
31993  for ac_func in _getb67 GETB67 getb67; do
31994    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31995{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31996echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31997if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31998  echo $ECHO_N "(cached) $ECHO_C" >&6
31999else
32000  cat >conftest.$ac_ext <<_ACEOF
32001/* confdefs.h.  */
32002_ACEOF
32003cat confdefs.h >>conftest.$ac_ext
32004cat >>conftest.$ac_ext <<_ACEOF
32005/* end confdefs.h.  */
32006/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32007   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32008#define $ac_func innocuous_$ac_func
32009
32010/* System header to define __stub macros and hopefully few prototypes,
32011    which can conflict with char $ac_func (); below.
32012    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32013    <limits.h> exists even on freestanding compilers.  */
32014
32015#ifdef __STDC__
32016# include <limits.h>
32017#else
32018# include <assert.h>
32019#endif
32020
32021#undef $ac_func
32022
32023/* Override any GCC internal prototype to avoid an error.
32024   Use char because int might match the return type of a GCC
32025   builtin and then its argument prototype would still apply.  */
32026#ifdef __cplusplus
32027extern "C"
32028#endif
32029char $ac_func ();
32030/* The GNU C library defines this for functions which it implements
32031    to always fail with ENOSYS.  Some functions are actually named
32032    something starting with __ and the normal name is an alias.  */
32033#if defined __stub_$ac_func || defined __stub___$ac_func
32034choke me
32035#endif
32036
32037int
32038main ()
32039{
32040return $ac_func ();
32041  ;
32042  return 0;
32043}
32044_ACEOF
32045rm -f conftest.$ac_objext conftest$ac_exeext
32046if { (ac_try="$ac_link"
32047case "(($ac_try" in
32048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32049  *) ac_try_echo=$ac_try;;
32050esac
32051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32052  (eval "$ac_link") 2>conftest.er1
32053  ac_status=$?
32054  grep -v '^ *+' conftest.er1 >conftest.err
32055  rm -f conftest.er1
32056  cat conftest.err >&5
32057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32058  (exit $ac_status); } &&
32059	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32060  { (case "(($ac_try" in
32061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32062  *) ac_try_echo=$ac_try;;
32063esac
32064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32065  (eval "$ac_try") 2>&5
32066  ac_status=$?
32067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068  (exit $ac_status); }; } &&
32069	 { ac_try='test -s conftest$ac_exeext'
32070  { (case "(($ac_try" in
32071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32072  *) ac_try_echo=$ac_try;;
32073esac
32074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32075  (eval "$ac_try") 2>&5
32076  ac_status=$?
32077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32078  (exit $ac_status); }; }; then
32079  eval "$as_ac_var=yes"
32080else
32081  echo "$as_me: failed program was:" >&5
32082sed 's/^/| /' conftest.$ac_ext >&5
32083
32084	eval "$as_ac_var=no"
32085fi
32086
32087rm -f core conftest.err conftest.$ac_objext \
32088      conftest$ac_exeext conftest.$ac_ext
32089fi
32090ac_res=`eval echo '${'$as_ac_var'}'`
32091	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32092echo "${ECHO_T}$ac_res" >&6; }
32093if test `eval echo '${'$as_ac_var'}'` = yes; then
32094
32095cat >>confdefs.h <<_ACEOF
32096#define CRAY_STACKSEG_END $ac_func
32097_ACEOF
32098
32099    break
32100fi
32101
32102  done
32103fi
32104
32105{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32106echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32107if test "${ac_cv_c_stack_direction+set}" = set; then
32108  echo $ECHO_N "(cached) $ECHO_C" >&6
32109else
32110  if test "$cross_compiling" = yes; then
32111  ac_cv_c_stack_direction=0
32112else
32113  cat >conftest.$ac_ext <<_ACEOF
32114/* confdefs.h.  */
32115_ACEOF
32116cat confdefs.h >>conftest.$ac_ext
32117cat >>conftest.$ac_ext <<_ACEOF
32118/* end confdefs.h.  */
32119$ac_includes_default
32120int
32121find_stack_direction ()
32122{
32123  static char *addr = 0;
32124  auto char dummy;
32125  if (addr == 0)
32126    {
32127      addr = &dummy;
32128      return find_stack_direction ();
32129    }
32130  else
32131    return (&dummy > addr) ? 1 : -1;
32132}
32133
32134int
32135main ()
32136{
32137  return find_stack_direction () < 0;
32138}
32139_ACEOF
32140rm -f conftest$ac_exeext
32141if { (ac_try="$ac_link"
32142case "(($ac_try" in
32143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32144  *) ac_try_echo=$ac_try;;
32145esac
32146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32147  (eval "$ac_link") 2>&5
32148  ac_status=$?
32149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32150  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32151  { (case "(($ac_try" in
32152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32153  *) ac_try_echo=$ac_try;;
32154esac
32155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32156  (eval "$ac_try") 2>&5
32157  ac_status=$?
32158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32159  (exit $ac_status); }; }; then
32160  ac_cv_c_stack_direction=1
32161else
32162  echo "$as_me: program exited with status $ac_status" >&5
32163echo "$as_me: failed program was:" >&5
32164sed 's/^/| /' conftest.$ac_ext >&5
32165
32166( exit $ac_status )
32167ac_cv_c_stack_direction=-1
32168fi
32169rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32170fi
32171
32172
32173fi
32174{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32175echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
32176
32177cat >>confdefs.h <<_ACEOF
32178#define STACK_DIRECTION $ac_cv_c_stack_direction
32179_ACEOF
32180
32181
32182fi
32183
32184
32185{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
32186echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
32187if test "${ac_cv_func_rand48+set}" = set; then
32188  echo $ECHO_N "(cached) $ECHO_C" >&6
32189else
32190  ac_ext=cpp
32191ac_cpp='$CXXCPP $CPPFLAGS'
32192ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32193ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32194ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32195
32196   cat >conftest.$ac_ext <<_ACEOF
32197/* confdefs.h.  */
32198_ACEOF
32199cat confdefs.h >>conftest.$ac_ext
32200cat >>conftest.$ac_ext <<_ACEOF
32201/* end confdefs.h.  */
32202#include <stdlib.h>
32203int
32204main ()
32205{
32206srand48(0);lrand48();drand48();
32207  ;
32208  return 0;
32209}
32210_ACEOF
32211rm -f conftest.$ac_objext
32212if { (ac_try="$ac_compile"
32213case "(($ac_try" in
32214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32215  *) ac_try_echo=$ac_try;;
32216esac
32217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32218  (eval "$ac_compile") 2>conftest.er1
32219  ac_status=$?
32220  grep -v '^ *+' conftest.er1 >conftest.err
32221  rm -f conftest.er1
32222  cat conftest.err >&5
32223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32224  (exit $ac_status); } &&
32225	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32226  { (case "(($ac_try" in
32227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32228  *) ac_try_echo=$ac_try;;
32229esac
32230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32231  (eval "$ac_try") 2>&5
32232  ac_status=$?
32233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32234  (exit $ac_status); }; } &&
32235	 { ac_try='test -s conftest.$ac_objext'
32236  { (case "(($ac_try" in
32237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32238  *) ac_try_echo=$ac_try;;
32239esac
32240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32241  (eval "$ac_try") 2>&5
32242  ac_status=$?
32243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32244  (exit $ac_status); }; }; then
32245  ac_cv_func_rand48=yes
32246else
32247  echo "$as_me: failed program was:" >&5
32248sed 's/^/| /' conftest.$ac_ext >&5
32249
32250	ac_cv_func_rand48=no
32251fi
32252
32253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32254  ac_ext=c
32255ac_cpp='$CPP $CPPFLAGS'
32256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32258ac_compiler_gnu=$ac_cv_c_compiler_gnu
32259
32260fi
32261{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32262echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
32263
32264if test "$ac_cv_func_rand48" = "yes" ; then
32265
32266cat >>confdefs.h <<\_ACEOF
32267#define HAVE_RAND48 1
32268_ACEOF
32269
32270fi
32271
32272
32273{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32274echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
32275if test "${ac_cv_cxx_namespaces+set}" = set; then
32276  echo $ECHO_N "(cached) $ECHO_C" >&6
32277else
32278  ac_ext=cpp
32279ac_cpp='$CXXCPP $CPPFLAGS'
32280ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32281ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32282ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32283
32284 cat >conftest.$ac_ext <<_ACEOF
32285/* confdefs.h.  */
32286_ACEOF
32287cat confdefs.h >>conftest.$ac_ext
32288cat >>conftest.$ac_ext <<_ACEOF
32289/* end confdefs.h.  */
32290namespace Outer { namespace Inner { int i = 0; }}
32291int
32292main ()
32293{
32294using namespace Outer::Inner; return i;
32295  ;
32296  return 0;
32297}
32298_ACEOF
32299rm -f conftest.$ac_objext
32300if { (ac_try="$ac_compile"
32301case "(($ac_try" in
32302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32303  *) ac_try_echo=$ac_try;;
32304esac
32305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32306  (eval "$ac_compile") 2>conftest.er1
32307  ac_status=$?
32308  grep -v '^ *+' conftest.er1 >conftest.err
32309  rm -f conftest.er1
32310  cat conftest.err >&5
32311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312  (exit $ac_status); } &&
32313	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32314  { (case "(($ac_try" in
32315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32316  *) ac_try_echo=$ac_try;;
32317esac
32318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32319  (eval "$ac_try") 2>&5
32320  ac_status=$?
32321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322  (exit $ac_status); }; } &&
32323	 { ac_try='test -s conftest.$ac_objext'
32324  { (case "(($ac_try" in
32325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32326  *) ac_try_echo=$ac_try;;
32327esac
32328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32329  (eval "$ac_try") 2>&5
32330  ac_status=$?
32331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32332  (exit $ac_status); }; }; then
32333  ac_cv_cxx_namespaces=yes
32334else
32335  echo "$as_me: failed program was:" >&5
32336sed 's/^/| /' conftest.$ac_ext >&5
32337
32338	ac_cv_cxx_namespaces=no
32339fi
32340
32341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32342 ac_ext=c
32343ac_cpp='$CPP $CPPFLAGS'
32344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32346ac_compiler_gnu=$ac_cv_c_compiler_gnu
32347
32348
32349fi
32350{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32351echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32352if test "$ac_cv_cxx_namespaces" = yes; then
32353
32354cat >>confdefs.h <<\_ACEOF
32355#define HAVE_NAMESPACES
32356_ACEOF
32357
32358fi
32359
32360{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
32361echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
32362if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
32363  echo $ECHO_N "(cached) $ECHO_C" >&6
32364else
32365
32366  ac_ext=cpp
32367ac_cpp='$CXXCPP $CPPFLAGS'
32368ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32369ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32370ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32371
32372  cat >conftest.$ac_ext <<_ACEOF
32373/* confdefs.h.  */
32374_ACEOF
32375cat confdefs.h >>conftest.$ac_ext
32376cat >>conftest.$ac_ext <<_ACEOF
32377/* end confdefs.h.  */
32378#include <ext/hash_map>
32379#ifdef HAVE_NAMESPACES
32380using namespace std;
32381#endif
32382int
32383main ()
32384{
32385hash_map<int, int> t;
32386  ;
32387  return 0;
32388}
32389_ACEOF
32390rm -f conftest.$ac_objext
32391if { (ac_try="$ac_compile"
32392case "(($ac_try" in
32393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32394  *) ac_try_echo=$ac_try;;
32395esac
32396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32397  (eval "$ac_compile") 2>conftest.er1
32398  ac_status=$?
32399  grep -v '^ *+' conftest.er1 >conftest.err
32400  rm -f conftest.er1
32401  cat conftest.err >&5
32402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32403  (exit $ac_status); } &&
32404	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32405  { (case "(($ac_try" in
32406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32407  *) ac_try_echo=$ac_try;;
32408esac
32409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32410  (eval "$ac_try") 2>&5
32411  ac_status=$?
32412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32413  (exit $ac_status); }; } &&
32414	 { ac_try='test -s conftest.$ac_objext'
32415  { (case "(($ac_try" in
32416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32417  *) ac_try_echo=$ac_try;;
32418esac
32419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32420  (eval "$ac_try") 2>&5
32421  ac_status=$?
32422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32423  (exit $ac_status); }; }; then
32424  ac_cv_cxx_have_std_ext_hash_map=yes
32425else
32426  echo "$as_me: failed program was:" >&5
32427sed 's/^/| /' conftest.$ac_ext >&5
32428
32429	ac_cv_cxx_have_std_ext_hash_map=no
32430fi
32431
32432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32433  ac_ext=c
32434ac_cpp='$CPP $CPPFLAGS'
32435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32437ac_compiler_gnu=$ac_cv_c_compiler_gnu
32438
32439fi
32440{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
32441echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
32442 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
32443 then
32444
32445cat >>confdefs.h <<\_ACEOF
32446#define HAVE_STD_EXT_HASH_MAP 1
32447_ACEOF
32448
32449 else
32450
32451cat >>confdefs.h <<\_ACEOF
32452#define HAVE_STD_EXT_HASH_MAP 0
32453_ACEOF
32454
32455 fi
32456
32457 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
32458echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
32459if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
32460  echo $ECHO_N "(cached) $ECHO_C" >&6
32461else
32462
32463  ac_ext=cpp
32464ac_cpp='$CXXCPP $CPPFLAGS'
32465ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32466ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32467ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32468
32469  cat >conftest.$ac_ext <<_ACEOF
32470/* confdefs.h.  */
32471_ACEOF
32472cat confdefs.h >>conftest.$ac_ext
32473cat >>conftest.$ac_ext <<_ACEOF
32474/* end confdefs.h.  */
32475#include <ext/hash_map>
32476#ifdef HAVE_NAMESPACES
32477using namespace __gnu_cxx;
32478#endif
32479int
32480main ()
32481{
32482hash_map<int,int> t;
32483  ;
32484  return 0;
32485}
32486_ACEOF
32487rm -f conftest.$ac_objext
32488if { (ac_try="$ac_compile"
32489case "(($ac_try" in
32490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32491  *) ac_try_echo=$ac_try;;
32492esac
32493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32494  (eval "$ac_compile") 2>conftest.er1
32495  ac_status=$?
32496  grep -v '^ *+' conftest.er1 >conftest.err
32497  rm -f conftest.er1
32498  cat conftest.err >&5
32499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32500  (exit $ac_status); } &&
32501	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32502  { (case "(($ac_try" in
32503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32504  *) ac_try_echo=$ac_try;;
32505esac
32506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32507  (eval "$ac_try") 2>&5
32508  ac_status=$?
32509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32510  (exit $ac_status); }; } &&
32511	 { ac_try='test -s conftest.$ac_objext'
32512  { (case "(($ac_try" in
32513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32514  *) ac_try_echo=$ac_try;;
32515esac
32516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32517  (eval "$ac_try") 2>&5
32518  ac_status=$?
32519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32520  (exit $ac_status); }; }; then
32521  ac_cv_cxx_have_gnu_ext_hash_map=yes
32522else
32523  echo "$as_me: failed program was:" >&5
32524sed 's/^/| /' conftest.$ac_ext >&5
32525
32526	ac_cv_cxx_have_gnu_ext_hash_map=no
32527fi
32528
32529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32530  ac_ext=c
32531ac_cpp='$CPP $CPPFLAGS'
32532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32534ac_compiler_gnu=$ac_cv_c_compiler_gnu
32535
32536fi
32537{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32538echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32539 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32540 then
32541
32542cat >>confdefs.h <<\_ACEOF
32543#define HAVE_GNU_EXT_HASH_MAP 1
32544_ACEOF
32545
32546 else
32547
32548cat >>confdefs.h <<\_ACEOF
32549#define HAVE_GNU_EXT_HASH_MAP 0
32550_ACEOF
32551
32552 fi
32553
32554 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32555echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32556if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32557  echo $ECHO_N "(cached) $ECHO_C" >&6
32558else
32559
32560  ac_ext=cpp
32561ac_cpp='$CXXCPP $CPPFLAGS'
32562ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32563ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32564ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32565
32566  cat >conftest.$ac_ext <<_ACEOF
32567/* confdefs.h.  */
32568_ACEOF
32569cat confdefs.h >>conftest.$ac_ext
32570cat >>conftest.$ac_ext <<_ACEOF
32571/* end confdefs.h.  */
32572#include <hash_map>
32573int
32574main ()
32575{
32576hash_map<int,int> t;
32577  ;
32578  return 0;
32579}
32580_ACEOF
32581rm -f conftest.$ac_objext
32582if { (ac_try="$ac_compile"
32583case "(($ac_try" in
32584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32585  *) ac_try_echo=$ac_try;;
32586esac
32587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32588  (eval "$ac_compile") 2>conftest.er1
32589  ac_status=$?
32590  grep -v '^ *+' conftest.er1 >conftest.err
32591  rm -f conftest.er1
32592  cat conftest.err >&5
32593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32594  (exit $ac_status); } &&
32595	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32596  { (case "(($ac_try" in
32597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32598  *) ac_try_echo=$ac_try;;
32599esac
32600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32601  (eval "$ac_try") 2>&5
32602  ac_status=$?
32603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32604  (exit $ac_status); }; } &&
32605	 { ac_try='test -s conftest.$ac_objext'
32606  { (case "(($ac_try" in
32607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32608  *) ac_try_echo=$ac_try;;
32609esac
32610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32611  (eval "$ac_try") 2>&5
32612  ac_status=$?
32613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32614  (exit $ac_status); }; }; then
32615  ac_cv_cxx_have_global_hash_map=yes
32616else
32617  echo "$as_me: failed program was:" >&5
32618sed 's/^/| /' conftest.$ac_ext >&5
32619
32620	ac_cv_cxx_have_global_hash_map=no
32621fi
32622
32623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32624  ac_ext=c
32625ac_cpp='$CPP $CPPFLAGS'
32626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32628ac_compiler_gnu=$ac_cv_c_compiler_gnu
32629
32630fi
32631{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32632echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32633 if test "$ac_cv_cxx_have_global_hash_map" = yes
32634 then
32635
32636cat >>confdefs.h <<\_ACEOF
32637#define HAVE_GLOBAL_HASH_MAP 1
32638_ACEOF
32639
32640 else
32641
32642cat >>confdefs.h <<\_ACEOF
32643#define HAVE_GLOBAL_HASH_MAP 0
32644_ACEOF
32645
32646 fi
32647
32648{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32649echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32650if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32651  echo $ECHO_N "(cached) $ECHO_C" >&6
32652else
32653
32654  ac_ext=cpp
32655ac_cpp='$CXXCPP $CPPFLAGS'
32656ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32657ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32658ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32659
32660  cat >conftest.$ac_ext <<_ACEOF
32661/* confdefs.h.  */
32662_ACEOF
32663cat confdefs.h >>conftest.$ac_ext
32664cat >>conftest.$ac_ext <<_ACEOF
32665/* end confdefs.h.  */
32666#include <ext/hash_set>
32667#ifdef HAVE_NAMESPACES
32668using namespace std;
32669#endif
32670int
32671main ()
32672{
32673hash_set<int> t;
32674  ;
32675  return 0;
32676}
32677_ACEOF
32678rm -f conftest.$ac_objext
32679if { (ac_try="$ac_compile"
32680case "(($ac_try" in
32681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32682  *) ac_try_echo=$ac_try;;
32683esac
32684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32685  (eval "$ac_compile") 2>conftest.er1
32686  ac_status=$?
32687  grep -v '^ *+' conftest.er1 >conftest.err
32688  rm -f conftest.er1
32689  cat conftest.err >&5
32690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691  (exit $ac_status); } &&
32692	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32693  { (case "(($ac_try" in
32694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32695  *) ac_try_echo=$ac_try;;
32696esac
32697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32698  (eval "$ac_try") 2>&5
32699  ac_status=$?
32700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32701  (exit $ac_status); }; } &&
32702	 { ac_try='test -s conftest.$ac_objext'
32703  { (case "(($ac_try" in
32704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32705  *) ac_try_echo=$ac_try;;
32706esac
32707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32708  (eval "$ac_try") 2>&5
32709  ac_status=$?
32710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711  (exit $ac_status); }; }; then
32712  ac_cv_cxx_have_std_ext_hash_set=yes
32713else
32714  echo "$as_me: failed program was:" >&5
32715sed 's/^/| /' conftest.$ac_ext >&5
32716
32717	ac_cv_cxx_have_std_ext_hash_set=no
32718fi
32719
32720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32721  ac_ext=c
32722ac_cpp='$CPP $CPPFLAGS'
32723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32725ac_compiler_gnu=$ac_cv_c_compiler_gnu
32726
32727fi
32728{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32729echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32730 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32731 then
32732
32733cat >>confdefs.h <<\_ACEOF
32734#define HAVE_STD_EXT_HASH_SET 1
32735_ACEOF
32736
32737 else
32738
32739cat >>confdefs.h <<\_ACEOF
32740#define HAVE_STD_EXT_HASH_SET 0
32741_ACEOF
32742
32743 fi
32744
32745 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32746echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32747if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32748  echo $ECHO_N "(cached) $ECHO_C" >&6
32749else
32750
32751  ac_ext=cpp
32752ac_cpp='$CXXCPP $CPPFLAGS'
32753ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32754ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32755ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32756
32757  cat >conftest.$ac_ext <<_ACEOF
32758/* confdefs.h.  */
32759_ACEOF
32760cat confdefs.h >>conftest.$ac_ext
32761cat >>conftest.$ac_ext <<_ACEOF
32762/* end confdefs.h.  */
32763#include <ext/hash_set>
32764#ifdef HAVE_NAMESPACES
32765using namespace __gnu_cxx;
32766#endif
32767int
32768main ()
32769{
32770hash_set<int> t;
32771  ;
32772  return 0;
32773}
32774_ACEOF
32775rm -f conftest.$ac_objext
32776if { (ac_try="$ac_compile"
32777case "(($ac_try" in
32778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32779  *) ac_try_echo=$ac_try;;
32780esac
32781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32782  (eval "$ac_compile") 2>conftest.er1
32783  ac_status=$?
32784  grep -v '^ *+' conftest.er1 >conftest.err
32785  rm -f conftest.er1
32786  cat conftest.err >&5
32787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32788  (exit $ac_status); } &&
32789	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32790  { (case "(($ac_try" in
32791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32792  *) ac_try_echo=$ac_try;;
32793esac
32794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32795  (eval "$ac_try") 2>&5
32796  ac_status=$?
32797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32798  (exit $ac_status); }; } &&
32799	 { ac_try='test -s conftest.$ac_objext'
32800  { (case "(($ac_try" in
32801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32802  *) ac_try_echo=$ac_try;;
32803esac
32804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32805  (eval "$ac_try") 2>&5
32806  ac_status=$?
32807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32808  (exit $ac_status); }; }; then
32809  ac_cv_cxx_have_gnu_ext_hash_set=yes
32810else
32811  echo "$as_me: failed program was:" >&5
32812sed 's/^/| /' conftest.$ac_ext >&5
32813
32814	ac_cv_cxx_have_gnu_ext_hash_set=no
32815fi
32816
32817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32818  ac_ext=c
32819ac_cpp='$CPP $CPPFLAGS'
32820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32822ac_compiler_gnu=$ac_cv_c_compiler_gnu
32823
32824fi
32825{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32826echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32827 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32828 then
32829
32830cat >>confdefs.h <<\_ACEOF
32831#define HAVE_GNU_EXT_HASH_SET 1
32832_ACEOF
32833
32834 else
32835
32836cat >>confdefs.h <<\_ACEOF
32837#define HAVE_GNU_EXT_HASH_SET 0
32838_ACEOF
32839
32840 fi
32841
32842 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32843echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32844if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32845  echo $ECHO_N "(cached) $ECHO_C" >&6
32846else
32847
32848  ac_ext=cpp
32849ac_cpp='$CXXCPP $CPPFLAGS'
32850ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32851ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32852ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32853
32854  cat >conftest.$ac_ext <<_ACEOF
32855/* confdefs.h.  */
32856_ACEOF
32857cat confdefs.h >>conftest.$ac_ext
32858cat >>conftest.$ac_ext <<_ACEOF
32859/* end confdefs.h.  */
32860#include <hash_set>
32861int
32862main ()
32863{
32864hash_set<int> t; return 0;
32865  ;
32866  return 0;
32867}
32868_ACEOF
32869rm -f conftest.$ac_objext
32870if { (ac_try="$ac_compile"
32871case "(($ac_try" in
32872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32873  *) ac_try_echo=$ac_try;;
32874esac
32875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32876  (eval "$ac_compile") 2>conftest.er1
32877  ac_status=$?
32878  grep -v '^ *+' conftest.er1 >conftest.err
32879  rm -f conftest.er1
32880  cat conftest.err >&5
32881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32882  (exit $ac_status); } &&
32883	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32884  { (case "(($ac_try" in
32885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32886  *) ac_try_echo=$ac_try;;
32887esac
32888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32889  (eval "$ac_try") 2>&5
32890  ac_status=$?
32891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32892  (exit $ac_status); }; } &&
32893	 { ac_try='test -s conftest.$ac_objext'
32894  { (case "(($ac_try" in
32895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32896  *) ac_try_echo=$ac_try;;
32897esac
32898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32899  (eval "$ac_try") 2>&5
32900  ac_status=$?
32901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32902  (exit $ac_status); }; }; then
32903  ac_cv_cxx_have_global_hash_set=yes
32904else
32905  echo "$as_me: failed program was:" >&5
32906sed 's/^/| /' conftest.$ac_ext >&5
32907
32908	ac_cv_cxx_have_global_hash_set=no
32909fi
32910
32911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32912  ac_ext=c
32913ac_cpp='$CPP $CPPFLAGS'
32914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32916ac_compiler_gnu=$ac_cv_c_compiler_gnu
32917
32918fi
32919{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32920echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32921 if test "$ac_cv_cxx_have_global_hash_set" = yes
32922 then
32923
32924cat >>confdefs.h <<\_ACEOF
32925#define HAVE_GLOBAL_HASH_SET 1
32926_ACEOF
32927
32928 else
32929
32930cat >>confdefs.h <<\_ACEOF
32931#define HAVE_GLOBAL_HASH_SET 0
32932_ACEOF
32933
32934 fi
32935
32936{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32937echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32938if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32939  echo $ECHO_N "(cached) $ECHO_C" >&6
32940else
32941
32942  ac_ext=cpp
32943ac_cpp='$CXXCPP $CPPFLAGS'
32944ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32945ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32946ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32947
32948  cat >conftest.$ac_ext <<_ACEOF
32949/* confdefs.h.  */
32950_ACEOF
32951cat confdefs.h >>conftest.$ac_ext
32952cat >>conftest.$ac_ext <<_ACEOF
32953/* end confdefs.h.  */
32954#include <iterator>
32955#ifdef HAVE_NAMESPACES
32956using namespace std;
32957#endif
32958int
32959main ()
32960{
32961iterator<int,int,int> t; return 0;
32962  ;
32963  return 0;
32964}
32965_ACEOF
32966rm -f conftest.$ac_objext
32967if { (ac_try="$ac_compile"
32968case "(($ac_try" in
32969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32970  *) ac_try_echo=$ac_try;;
32971esac
32972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32973  (eval "$ac_compile") 2>conftest.er1
32974  ac_status=$?
32975  grep -v '^ *+' conftest.er1 >conftest.err
32976  rm -f conftest.er1
32977  cat conftest.err >&5
32978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32979  (exit $ac_status); } &&
32980	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32981  { (case "(($ac_try" in
32982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32983  *) ac_try_echo=$ac_try;;
32984esac
32985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32986  (eval "$ac_try") 2>&5
32987  ac_status=$?
32988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32989  (exit $ac_status); }; } &&
32990	 { ac_try='test -s conftest.$ac_objext'
32991  { (case "(($ac_try" in
32992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32993  *) ac_try_echo=$ac_try;;
32994esac
32995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32996  (eval "$ac_try") 2>&5
32997  ac_status=$?
32998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32999  (exit $ac_status); }; }; then
33000  ac_cv_cxx_have_std_iterator=yes
33001else
33002  echo "$as_me: failed program was:" >&5
33003sed 's/^/| /' conftest.$ac_ext >&5
33004
33005	ac_cv_cxx_have_std_iterator=no
33006fi
33007
33008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33009  ac_ext=c
33010ac_cpp='$CPP $CPPFLAGS'
33011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33013ac_compiler_gnu=$ac_cv_c_compiler_gnu
33014
33015
33016fi
33017{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33018echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33019if test "$ac_cv_cxx_have_std_iterator" = yes
33020then
33021
33022cat >>confdefs.h <<\_ACEOF
33023#define HAVE_STD_ITERATOR 1
33024_ACEOF
33025
33026else
33027
33028cat >>confdefs.h <<\_ACEOF
33029#define HAVE_STD_ITERATOR 0
33030_ACEOF
33031
33032fi
33033
33034{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33035echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33036if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33037  echo $ECHO_N "(cached) $ECHO_C" >&6
33038else
33039
33040  ac_ext=cpp
33041ac_cpp='$CXXCPP $CPPFLAGS'
33042ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33043ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33044ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33045
33046  cat >conftest.$ac_ext <<_ACEOF
33047/* confdefs.h.  */
33048_ACEOF
33049cat confdefs.h >>conftest.$ac_ext
33050cat >>conftest.$ac_ext <<_ACEOF
33051/* end confdefs.h.  */
33052#include <iterator>
33053#ifdef HAVE_NAMESPACES
33054using namespace std;
33055#endif
33056int
33057main ()
33058{
33059bidirectional_iterator<int,int> t; return 0;
33060  ;
33061  return 0;
33062}
33063_ACEOF
33064rm -f conftest.$ac_objext
33065if { (ac_try="$ac_compile"
33066case "(($ac_try" in
33067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33068  *) ac_try_echo=$ac_try;;
33069esac
33070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33071  (eval "$ac_compile") 2>conftest.er1
33072  ac_status=$?
33073  grep -v '^ *+' conftest.er1 >conftest.err
33074  rm -f conftest.er1
33075  cat conftest.err >&5
33076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33077  (exit $ac_status); } &&
33078	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33079  { (case "(($ac_try" in
33080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33081  *) ac_try_echo=$ac_try;;
33082esac
33083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33084  (eval "$ac_try") 2>&5
33085  ac_status=$?
33086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33087  (exit $ac_status); }; } &&
33088	 { ac_try='test -s conftest.$ac_objext'
33089  { (case "(($ac_try" in
33090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33091  *) ac_try_echo=$ac_try;;
33092esac
33093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33094  (eval "$ac_try") 2>&5
33095  ac_status=$?
33096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33097  (exit $ac_status); }; }; then
33098  ac_cv_cxx_have_bi_iterator=yes
33099else
33100  echo "$as_me: failed program was:" >&5
33101sed 's/^/| /' conftest.$ac_ext >&5
33102
33103	ac_cv_cxx_have_bi_iterator=no
33104fi
33105
33106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33107  ac_ext=c
33108ac_cpp='$CPP $CPPFLAGS'
33109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33111ac_compiler_gnu=$ac_cv_c_compiler_gnu
33112
33113
33114fi
33115{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33116echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33117if test "$ac_cv_cxx_have_bi_iterator" = yes
33118then
33119
33120cat >>confdefs.h <<\_ACEOF
33121#define HAVE_BI_ITERATOR 1
33122_ACEOF
33123
33124else
33125
33126cat >>confdefs.h <<\_ACEOF
33127#define HAVE_BI_ITERATOR 0
33128_ACEOF
33129
33130fi
33131
33132{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33133echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33134if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33135  echo $ECHO_N "(cached) $ECHO_C" >&6
33136else
33137
33138  ac_ext=cpp
33139ac_cpp='$CXXCPP $CPPFLAGS'
33140ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33141ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33142ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33143
33144  cat >conftest.$ac_ext <<_ACEOF
33145/* confdefs.h.  */
33146_ACEOF
33147cat confdefs.h >>conftest.$ac_ext
33148cat >>conftest.$ac_ext <<_ACEOF
33149/* end confdefs.h.  */
33150#include <iterator>
33151#ifdef HAVE_NAMESPACES
33152using namespace std;
33153#endif
33154int
33155main ()
33156{
33157forward_iterator<int,int> t; return 0;
33158  ;
33159  return 0;
33160}
33161_ACEOF
33162rm -f conftest.$ac_objext
33163if { (ac_try="$ac_compile"
33164case "(($ac_try" in
33165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33166  *) ac_try_echo=$ac_try;;
33167esac
33168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33169  (eval "$ac_compile") 2>conftest.er1
33170  ac_status=$?
33171  grep -v '^ *+' conftest.er1 >conftest.err
33172  rm -f conftest.er1
33173  cat conftest.err >&5
33174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33175  (exit $ac_status); } &&
33176	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33177  { (case "(($ac_try" in
33178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33179  *) ac_try_echo=$ac_try;;
33180esac
33181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33182  (eval "$ac_try") 2>&5
33183  ac_status=$?
33184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33185  (exit $ac_status); }; } &&
33186	 { ac_try='test -s conftest.$ac_objext'
33187  { (case "(($ac_try" in
33188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33189  *) ac_try_echo=$ac_try;;
33190esac
33191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33192  (eval "$ac_try") 2>&5
33193  ac_status=$?
33194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33195  (exit $ac_status); }; }; then
33196  ac_cv_cxx_have_fwd_iterator=yes
33197else
33198  echo "$as_me: failed program was:" >&5
33199sed 's/^/| /' conftest.$ac_ext >&5
33200
33201	ac_cv_cxx_have_fwd_iterator=no
33202fi
33203
33204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33205  ac_ext=c
33206ac_cpp='$CPP $CPPFLAGS'
33207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33209ac_compiler_gnu=$ac_cv_c_compiler_gnu
33210
33211
33212fi
33213{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33214echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33215if test "$ac_cv_cxx_have_fwd_iterator" = yes
33216then
33217
33218cat >>confdefs.h <<\_ACEOF
33219#define HAVE_FWD_ITERATOR 1
33220_ACEOF
33221
33222else
33223
33224cat >>confdefs.h <<\_ACEOF
33225#define HAVE_FWD_ITERATOR 0
33226_ACEOF
33227
33228fi
33229
33230
33231{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33232echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33233if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33234  echo $ECHO_N "(cached) $ECHO_C" >&6
33235else
33236  ac_ext=cpp
33237ac_cpp='$CXXCPP $CPPFLAGS'
33238ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33239ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33240ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33241
33242   cat >conftest.$ac_ext <<_ACEOF
33243/* confdefs.h.  */
33244_ACEOF
33245cat confdefs.h >>conftest.$ac_ext
33246cat >>conftest.$ac_ext <<_ACEOF
33247/* end confdefs.h.  */
33248#include <math.h>
33249int
33250main ()
33251{
33252float f; isnan(f);
33253  ;
33254  return 0;
33255}
33256_ACEOF
33257rm -f conftest.$ac_objext
33258if { (ac_try="$ac_compile"
33259case "(($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_compile") 2>conftest.er1
33265  ac_status=$?
33266  grep -v '^ *+' conftest.er1 >conftest.err
33267  rm -f conftest.er1
33268  cat conftest.err >&5
33269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33270  (exit $ac_status); } &&
33271	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33272  { (case "(($ac_try" in
33273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33274  *) ac_try_echo=$ac_try;;
33275esac
33276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33277  (eval "$ac_try") 2>&5
33278  ac_status=$?
33279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33280  (exit $ac_status); }; } &&
33281	 { ac_try='test -s conftest.$ac_objext'
33282  { (case "(($ac_try" in
33283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33284  *) ac_try_echo=$ac_try;;
33285esac
33286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33287  (eval "$ac_try") 2>&5
33288  ac_status=$?
33289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33290  (exit $ac_status); }; }; then
33291  ac_cv_func_isnan_in_math_h=yes
33292else
33293  echo "$as_me: failed program was:" >&5
33294sed 's/^/| /' conftest.$ac_ext >&5
33295
33296	ac_cv_func_isnan_in_math_h=no
33297fi
33298
33299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33300  ac_ext=c
33301ac_cpp='$CPP $CPPFLAGS'
33302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33304ac_compiler_gnu=$ac_cv_c_compiler_gnu
33305
33306fi
33307{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33308echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33309
33310
33311if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33312
33313cat >>confdefs.h <<\_ACEOF
33314#define HAVE_ISNAN_IN_MATH_H 1
33315_ACEOF
33316
33317fi
33318
33319{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33320echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33321if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33322  echo $ECHO_N "(cached) $ECHO_C" >&6
33323else
33324  ac_ext=cpp
33325ac_cpp='$CXXCPP $CPPFLAGS'
33326ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33327ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33328ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33329
33330   cat >conftest.$ac_ext <<_ACEOF
33331/* confdefs.h.  */
33332_ACEOF
33333cat confdefs.h >>conftest.$ac_ext
33334cat >>conftest.$ac_ext <<_ACEOF
33335/* end confdefs.h.  */
33336#include <cmath>
33337int
33338main ()
33339{
33340float f; isnan(f);
33341  ;
33342  return 0;
33343}
33344_ACEOF
33345rm -f conftest.$ac_objext
33346if { (ac_try="$ac_compile"
33347case "(($ac_try" in
33348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33349  *) ac_try_echo=$ac_try;;
33350esac
33351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33352  (eval "$ac_compile") 2>conftest.er1
33353  ac_status=$?
33354  grep -v '^ *+' conftest.er1 >conftest.err
33355  rm -f conftest.er1
33356  cat conftest.err >&5
33357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33358  (exit $ac_status); } &&
33359	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33360  { (case "(($ac_try" in
33361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33362  *) ac_try_echo=$ac_try;;
33363esac
33364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33365  (eval "$ac_try") 2>&5
33366  ac_status=$?
33367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33368  (exit $ac_status); }; } &&
33369	 { ac_try='test -s conftest.$ac_objext'
33370  { (case "(($ac_try" in
33371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33372  *) ac_try_echo=$ac_try;;
33373esac
33374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33375  (eval "$ac_try") 2>&5
33376  ac_status=$?
33377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33378  (exit $ac_status); }; }; then
33379  ac_cv_func_isnan_in_cmath=yes
33380else
33381  echo "$as_me: failed program was:" >&5
33382sed 's/^/| /' conftest.$ac_ext >&5
33383
33384	ac_cv_func_isnan_in_cmath=no
33385fi
33386
33387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33388  ac_ext=c
33389ac_cpp='$CPP $CPPFLAGS'
33390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33392ac_compiler_gnu=$ac_cv_c_compiler_gnu
33393
33394fi
33395{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33396echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33397
33398if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33399
33400cat >>confdefs.h <<\_ACEOF
33401#define HAVE_ISNAN_IN_CMATH 1
33402_ACEOF
33403
33404fi
33405
33406{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33407echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33408if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33409  echo $ECHO_N "(cached) $ECHO_C" >&6
33410else
33411  ac_ext=cpp
33412ac_cpp='$CXXCPP $CPPFLAGS'
33413ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33414ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33415ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33416
33417   cat >conftest.$ac_ext <<_ACEOF
33418/* confdefs.h.  */
33419_ACEOF
33420cat confdefs.h >>conftest.$ac_ext
33421cat >>conftest.$ac_ext <<_ACEOF
33422/* end confdefs.h.  */
33423#include <cmath>
33424int
33425main ()
33426{
33427float f; std::isnan(f);
33428  ;
33429  return 0;
33430}
33431_ACEOF
33432rm -f conftest.$ac_objext
33433if { (ac_try="$ac_compile"
33434case "(($ac_try" in
33435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33436  *) ac_try_echo=$ac_try;;
33437esac
33438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33439  (eval "$ac_compile") 2>conftest.er1
33440  ac_status=$?
33441  grep -v '^ *+' conftest.er1 >conftest.err
33442  rm -f conftest.er1
33443  cat conftest.err >&5
33444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33445  (exit $ac_status); } &&
33446	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33447  { (case "(($ac_try" in
33448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33449  *) ac_try_echo=$ac_try;;
33450esac
33451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33452  (eval "$ac_try") 2>&5
33453  ac_status=$?
33454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33455  (exit $ac_status); }; } &&
33456	 { ac_try='test -s conftest.$ac_objext'
33457  { (case "(($ac_try" in
33458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33459  *) ac_try_echo=$ac_try;;
33460esac
33461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33462  (eval "$ac_try") 2>&5
33463  ac_status=$?
33464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33465  (exit $ac_status); }; }; then
33466  ac_cv_func_std_isnan_in_cmath=yes
33467else
33468  echo "$as_me: failed program was:" >&5
33469sed 's/^/| /' conftest.$ac_ext >&5
33470
33471	ac_cv_func_std_isnan_in_cmath=no
33472fi
33473
33474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33475  ac_ext=c
33476ac_cpp='$CPP $CPPFLAGS'
33477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33479ac_compiler_gnu=$ac_cv_c_compiler_gnu
33480
33481fi
33482{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33483echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33484
33485if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33486
33487cat >>confdefs.h <<\_ACEOF
33488#define HAVE_STD_ISNAN_IN_CMATH 1
33489_ACEOF
33490
33491fi
33492
33493
33494{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33495echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33496if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33497  echo $ECHO_N "(cached) $ECHO_C" >&6
33498else
33499  ac_ext=cpp
33500ac_cpp='$CXXCPP $CPPFLAGS'
33501ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33502ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33503ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33504
33505   cat >conftest.$ac_ext <<_ACEOF
33506/* confdefs.h.  */
33507_ACEOF
33508cat confdefs.h >>conftest.$ac_ext
33509cat >>conftest.$ac_ext <<_ACEOF
33510/* end confdefs.h.  */
33511#include <math.h>
33512int
33513main ()
33514{
33515float f; isinf(f);
33516  ;
33517  return 0;
33518}
33519_ACEOF
33520rm -f conftest.$ac_objext
33521if { (ac_try="$ac_compile"
33522case "(($ac_try" in
33523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33524  *) ac_try_echo=$ac_try;;
33525esac
33526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33527  (eval "$ac_compile") 2>conftest.er1
33528  ac_status=$?
33529  grep -v '^ *+' conftest.er1 >conftest.err
33530  rm -f conftest.er1
33531  cat conftest.err >&5
33532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33533  (exit $ac_status); } &&
33534	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33535  { (case "(($ac_try" in
33536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33537  *) ac_try_echo=$ac_try;;
33538esac
33539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33540  (eval "$ac_try") 2>&5
33541  ac_status=$?
33542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33543  (exit $ac_status); }; } &&
33544	 { ac_try='test -s conftest.$ac_objext'
33545  { (case "(($ac_try" in
33546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33547  *) ac_try_echo=$ac_try;;
33548esac
33549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33550  (eval "$ac_try") 2>&5
33551  ac_status=$?
33552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33553  (exit $ac_status); }; }; then
33554  ac_cv_func_isinf_in_math_h=yes
33555else
33556  echo "$as_me: failed program was:" >&5
33557sed 's/^/| /' conftest.$ac_ext >&5
33558
33559	ac_cv_func_isinf_in_math_h=no
33560fi
33561
33562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33563  ac_ext=c
33564ac_cpp='$CPP $CPPFLAGS'
33565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33567ac_compiler_gnu=$ac_cv_c_compiler_gnu
33568
33569fi
33570{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33571echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33572
33573if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33574
33575cat >>confdefs.h <<\_ACEOF
33576#define HAVE_ISINF_IN_MATH_H 1
33577_ACEOF
33578
33579fi
33580
33581{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33582echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33583if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33584  echo $ECHO_N "(cached) $ECHO_C" >&6
33585else
33586  ac_ext=cpp
33587ac_cpp='$CXXCPP $CPPFLAGS'
33588ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33589ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33590ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33591
33592   cat >conftest.$ac_ext <<_ACEOF
33593/* confdefs.h.  */
33594_ACEOF
33595cat confdefs.h >>conftest.$ac_ext
33596cat >>conftest.$ac_ext <<_ACEOF
33597/* end confdefs.h.  */
33598#include <cmath>
33599int
33600main ()
33601{
33602float f; isinf(f);
33603  ;
33604  return 0;
33605}
33606_ACEOF
33607rm -f conftest.$ac_objext
33608if { (ac_try="$ac_compile"
33609case "(($ac_try" in
33610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33611  *) ac_try_echo=$ac_try;;
33612esac
33613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33614  (eval "$ac_compile") 2>conftest.er1
33615  ac_status=$?
33616  grep -v '^ *+' conftest.er1 >conftest.err
33617  rm -f conftest.er1
33618  cat conftest.err >&5
33619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33620  (exit $ac_status); } &&
33621	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33622  { (case "(($ac_try" in
33623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33624  *) ac_try_echo=$ac_try;;
33625esac
33626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33627  (eval "$ac_try") 2>&5
33628  ac_status=$?
33629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33630  (exit $ac_status); }; } &&
33631	 { ac_try='test -s conftest.$ac_objext'
33632  { (case "(($ac_try" in
33633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33634  *) ac_try_echo=$ac_try;;
33635esac
33636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33637  (eval "$ac_try") 2>&5
33638  ac_status=$?
33639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33640  (exit $ac_status); }; }; then
33641  ac_cv_func_isinf_in_cmath=yes
33642else
33643  echo "$as_me: failed program was:" >&5
33644sed 's/^/| /' conftest.$ac_ext >&5
33645
33646	ac_cv_func_isinf_in_cmath=no
33647fi
33648
33649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33650  ac_ext=c
33651ac_cpp='$CPP $CPPFLAGS'
33652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33654ac_compiler_gnu=$ac_cv_c_compiler_gnu
33655
33656fi
33657{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33658echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33659
33660if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33661
33662cat >>confdefs.h <<\_ACEOF
33663#define HAVE_ISINF_IN_CMATH 1
33664_ACEOF
33665
33666fi
33667
33668{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33669echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33670if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33671  echo $ECHO_N "(cached) $ECHO_C" >&6
33672else
33673  ac_ext=cpp
33674ac_cpp='$CXXCPP $CPPFLAGS'
33675ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33676ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33677ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33678
33679   cat >conftest.$ac_ext <<_ACEOF
33680/* confdefs.h.  */
33681_ACEOF
33682cat confdefs.h >>conftest.$ac_ext
33683cat >>conftest.$ac_ext <<_ACEOF
33684/* end confdefs.h.  */
33685#include <cmath>
33686int
33687main ()
33688{
33689float f; std::isinf(f)}
33690  ;
33691  return 0;
33692}
33693_ACEOF
33694rm -f conftest.$ac_objext
33695if { (ac_try="$ac_compile"
33696case "(($ac_try" in
33697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33698  *) ac_try_echo=$ac_try;;
33699esac
33700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33701  (eval "$ac_compile") 2>conftest.er1
33702  ac_status=$?
33703  grep -v '^ *+' conftest.er1 >conftest.err
33704  rm -f conftest.er1
33705  cat conftest.err >&5
33706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33707  (exit $ac_status); } &&
33708	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33709  { (case "(($ac_try" in
33710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33711  *) ac_try_echo=$ac_try;;
33712esac
33713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33714  (eval "$ac_try") 2>&5
33715  ac_status=$?
33716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33717  (exit $ac_status); }; } &&
33718	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
33728  ac_cv_func_std_isinf_in_cmath=yes
33729else
33730  echo "$as_me: failed program was:" >&5
33731sed 's/^/| /' conftest.$ac_ext >&5
33732
33733	ac_cv_func_std_isinf_in_cmath=no
33734fi
33735
33736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33737  ac_ext=c
33738ac_cpp='$CPP $CPPFLAGS'
33739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33741ac_compiler_gnu=$ac_cv_c_compiler_gnu
33742
33743fi
33744{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33745echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33746
33747if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33748
33749cat >>confdefs.h <<\_ACEOF
33750#define HAVE_STD_ISINF_IN_CMATH 1
33751_ACEOF
33752
33753fi
33754
33755{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33756echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33757if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33758  echo $ECHO_N "(cached) $ECHO_C" >&6
33759else
33760  ac_ext=cpp
33761ac_cpp='$CXXCPP $CPPFLAGS'
33762ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33763ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33764ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33765
33766   cat >conftest.$ac_ext <<_ACEOF
33767/* confdefs.h.  */
33768_ACEOF
33769cat confdefs.h >>conftest.$ac_ext
33770cat >>conftest.$ac_ext <<_ACEOF
33771/* end confdefs.h.  */
33772#include <ieeefp.h>
33773int
33774main ()
33775{
33776float f; finite(f);
33777  ;
33778  return 0;
33779}
33780_ACEOF
33781rm -f conftest.$ac_objext
33782if { (ac_try="$ac_compile"
33783case "(($ac_try" in
33784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33785  *) ac_try_echo=$ac_try;;
33786esac
33787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33788  (eval "$ac_compile") 2>conftest.er1
33789  ac_status=$?
33790  grep -v '^ *+' conftest.er1 >conftest.err
33791  rm -f conftest.er1
33792  cat conftest.err >&5
33793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794  (exit $ac_status); } &&
33795	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33796  { (case "(($ac_try" in
33797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33798  *) ac_try_echo=$ac_try;;
33799esac
33800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33801  (eval "$ac_try") 2>&5
33802  ac_status=$?
33803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33804  (exit $ac_status); }; } &&
33805	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
33815  ac_cv_func_finite_in_ieeefp_h=yes
33816else
33817  echo "$as_me: failed program was:" >&5
33818sed 's/^/| /' conftest.$ac_ext >&5
33819
33820	ac_cv_func_finite_in_ieeefp_h=no
33821fi
33822
33823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33824  ac_ext=c
33825ac_cpp='$CPP $CPPFLAGS'
33826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33828ac_compiler_gnu=$ac_cv_c_compiler_gnu
33829
33830fi
33831{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33832echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33833
33834if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33835
33836cat >>confdefs.h <<\_ACEOF
33837#define HAVE_FINITE_IN_IEEEFP_H 1
33838_ACEOF
33839
33840fi
33841
33842
33843
33844if test "$llvm_cv_platform_type" = "Unix" ; then
33845
33846
33847for ac_header in stdlib.h unistd.h
33848do
33849as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33850if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33851  { echo "$as_me:$LINENO: checking for $ac_header" >&5
33852echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33853if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33854  echo $ECHO_N "(cached) $ECHO_C" >&6
33855fi
33856ac_res=`eval echo '${'$as_ac_Header'}'`
33857	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33858echo "${ECHO_T}$ac_res" >&6; }
33859else
33860  # Is the header compilable?
33861{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33862echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33863cat >conftest.$ac_ext <<_ACEOF
33864/* confdefs.h.  */
33865_ACEOF
33866cat confdefs.h >>conftest.$ac_ext
33867cat >>conftest.$ac_ext <<_ACEOF
33868/* end confdefs.h.  */
33869$ac_includes_default
33870#include <$ac_header>
33871_ACEOF
33872rm -f conftest.$ac_objext
33873if { (ac_try="$ac_compile"
33874case "(($ac_try" in
33875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33876  *) ac_try_echo=$ac_try;;
33877esac
33878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33879  (eval "$ac_compile") 2>conftest.er1
33880  ac_status=$?
33881  grep -v '^ *+' conftest.er1 >conftest.err
33882  rm -f conftest.er1
33883  cat conftest.err >&5
33884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33885  (exit $ac_status); } &&
33886	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33887  { (case "(($ac_try" in
33888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33889  *) ac_try_echo=$ac_try;;
33890esac
33891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33892  (eval "$ac_try") 2>&5
33893  ac_status=$?
33894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33895  (exit $ac_status); }; } &&
33896	 { ac_try='test -s conftest.$ac_objext'
33897  { (case "(($ac_try" in
33898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33899  *) ac_try_echo=$ac_try;;
33900esac
33901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33902  (eval "$ac_try") 2>&5
33903  ac_status=$?
33904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33905  (exit $ac_status); }; }; then
33906  ac_header_compiler=yes
33907else
33908  echo "$as_me: failed program was:" >&5
33909sed 's/^/| /' conftest.$ac_ext >&5
33910
33911	ac_header_compiler=no
33912fi
33913
33914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33915{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33916echo "${ECHO_T}$ac_header_compiler" >&6; }
33917
33918# Is the header present?
33919{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33920echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33921cat >conftest.$ac_ext <<_ACEOF
33922/* confdefs.h.  */
33923_ACEOF
33924cat confdefs.h >>conftest.$ac_ext
33925cat >>conftest.$ac_ext <<_ACEOF
33926/* end confdefs.h.  */
33927#include <$ac_header>
33928_ACEOF
33929if { (ac_try="$ac_cpp conftest.$ac_ext"
33930case "(($ac_try" in
33931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33932  *) ac_try_echo=$ac_try;;
33933esac
33934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33935  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33936  ac_status=$?
33937  grep -v '^ *+' conftest.er1 >conftest.err
33938  rm -f conftest.er1
33939  cat conftest.err >&5
33940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33941  (exit $ac_status); } >/dev/null; then
33942  if test -s conftest.err; then
33943    ac_cpp_err=$ac_c_preproc_warn_flag
33944    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33945  else
33946    ac_cpp_err=
33947  fi
33948else
33949  ac_cpp_err=yes
33950fi
33951if test -z "$ac_cpp_err"; then
33952  ac_header_preproc=yes
33953else
33954  echo "$as_me: failed program was:" >&5
33955sed 's/^/| /' conftest.$ac_ext >&5
33956
33957  ac_header_preproc=no
33958fi
33959
33960rm -f conftest.err conftest.$ac_ext
33961{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33962echo "${ECHO_T}$ac_header_preproc" >&6; }
33963
33964# So?  What about this header?
33965case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33966  yes:no: )
33967    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33968echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33969    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33970echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33971    ac_header_preproc=yes
33972    ;;
33973  no:yes:* )
33974    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33975echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33976    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33977echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33978    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33979echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33980    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33981echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33982    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33983echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33984    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33985echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33986    ( cat <<\_ASBOX
33987## ----------------------------------- ##
33988## Report this to llvmbugs@cs.uiuc.edu ##
33989## ----------------------------------- ##
33990_ASBOX
33991     ) | sed "s/^/$as_me: WARNING:     /" >&2
33992    ;;
33993esac
33994{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33996if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33997  echo $ECHO_N "(cached) $ECHO_C" >&6
33998else
33999  eval "$as_ac_Header=\$ac_header_preproc"
34000fi
34001ac_res=`eval echo '${'$as_ac_Header'}'`
34002	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34003echo "${ECHO_T}$ac_res" >&6; }
34004
34005fi
34006if test `eval echo '${'$as_ac_Header'}'` = yes; then
34007  cat >>confdefs.h <<_ACEOF
34008#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34009_ACEOF
34010
34011fi
34012
34013done
34014
34015
34016for ac_func in getpagesize
34017do
34018as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34019{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34020echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34021if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34022  echo $ECHO_N "(cached) $ECHO_C" >&6
34023else
34024  cat >conftest.$ac_ext <<_ACEOF
34025/* confdefs.h.  */
34026_ACEOF
34027cat confdefs.h >>conftest.$ac_ext
34028cat >>conftest.$ac_ext <<_ACEOF
34029/* end confdefs.h.  */
34030/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34031   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34032#define $ac_func innocuous_$ac_func
34033
34034/* System header to define __stub macros and hopefully few prototypes,
34035    which can conflict with char $ac_func (); below.
34036    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34037    <limits.h> exists even on freestanding compilers.  */
34038
34039#ifdef __STDC__
34040# include <limits.h>
34041#else
34042# include <assert.h>
34043#endif
34044
34045#undef $ac_func
34046
34047/* Override any GCC internal prototype to avoid an error.
34048   Use char because int might match the return type of a GCC
34049   builtin and then its argument prototype would still apply.  */
34050#ifdef __cplusplus
34051extern "C"
34052#endif
34053char $ac_func ();
34054/* The GNU C library defines this for functions which it implements
34055    to always fail with ENOSYS.  Some functions are actually named
34056    something starting with __ and the normal name is an alias.  */
34057#if defined __stub_$ac_func || defined __stub___$ac_func
34058choke me
34059#endif
34060
34061int
34062main ()
34063{
34064return $ac_func ();
34065  ;
34066  return 0;
34067}
34068_ACEOF
34069rm -f conftest.$ac_objext conftest$ac_exeext
34070if { (ac_try="$ac_link"
34071case "(($ac_try" in
34072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34073  *) ac_try_echo=$ac_try;;
34074esac
34075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34076  (eval "$ac_link") 2>conftest.er1
34077  ac_status=$?
34078  grep -v '^ *+' conftest.er1 >conftest.err
34079  rm -f conftest.er1
34080  cat conftest.err >&5
34081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34082  (exit $ac_status); } &&
34083	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34084  { (case "(($ac_try" in
34085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34086  *) ac_try_echo=$ac_try;;
34087esac
34088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34089  (eval "$ac_try") 2>&5
34090  ac_status=$?
34091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34092  (exit $ac_status); }; } &&
34093	 { ac_try='test -s conftest$ac_exeext'
34094  { (case "(($ac_try" in
34095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34096  *) ac_try_echo=$ac_try;;
34097esac
34098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34099  (eval "$ac_try") 2>&5
34100  ac_status=$?
34101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34102  (exit $ac_status); }; }; then
34103  eval "$as_ac_var=yes"
34104else
34105  echo "$as_me: failed program was:" >&5
34106sed 's/^/| /' conftest.$ac_ext >&5
34107
34108	eval "$as_ac_var=no"
34109fi
34110
34111rm -f core conftest.err conftest.$ac_objext \
34112      conftest$ac_exeext conftest.$ac_ext
34113fi
34114ac_res=`eval echo '${'$as_ac_var'}'`
34115	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34116echo "${ECHO_T}$ac_res" >&6; }
34117if test `eval echo '${'$as_ac_var'}'` = yes; then
34118  cat >>confdefs.h <<_ACEOF
34119#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34120_ACEOF
34121
34122fi
34123done
34124
34125{ echo "$as_me:$LINENO: checking for working mmap" >&5
34126echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34127if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34128  echo $ECHO_N "(cached) $ECHO_C" >&6
34129else
34130  if test "$cross_compiling" = yes; then
34131  ac_cv_func_mmap_fixed_mapped=no
34132else
34133  cat >conftest.$ac_ext <<_ACEOF
34134/* confdefs.h.  */
34135_ACEOF
34136cat confdefs.h >>conftest.$ac_ext
34137cat >>conftest.$ac_ext <<_ACEOF
34138/* end confdefs.h.  */
34139$ac_includes_default
34140/* malloc might have been renamed as rpl_malloc. */
34141#undef malloc
34142
34143/* Thanks to Mike Haertel and Jim Avera for this test.
34144   Here is a matrix of mmap possibilities:
34145	mmap private not fixed
34146	mmap private fixed at somewhere currently unmapped
34147	mmap private fixed at somewhere already mapped
34148	mmap shared not fixed
34149	mmap shared fixed at somewhere currently unmapped
34150	mmap shared fixed at somewhere already mapped
34151   For private mappings, we should verify that changes cannot be read()
34152   back from the file, nor mmap's back from the file at a different
34153   address.  (There have been systems where private was not correctly
34154   implemented like the infamous i386 svr4.0, and systems where the
34155   VM page cache was not coherent with the file system buffer cache
34156   like early versions of FreeBSD and possibly contemporary NetBSD.)
34157   For shared mappings, we should conversely verify that changes get
34158   propagated back to all the places they're supposed to be.
34159
34160   Grep wants private fixed already mapped.
34161   The main things grep needs to know about mmap are:
34162   * does it exist and is it safe to write into the mmap'd area
34163   * how to use it (BSD variants)  */
34164
34165#include <fcntl.h>
34166#include <sys/mman.h>
34167
34168#if !STDC_HEADERS && !HAVE_STDLIB_H
34169char *malloc ();
34170#endif
34171
34172/* This mess was copied from the GNU getpagesize.h.  */
34173#if !HAVE_GETPAGESIZE
34174/* Assume that all systems that can run configure have sys/param.h.  */
34175# if !HAVE_SYS_PARAM_H
34176#  define HAVE_SYS_PARAM_H 1
34177# endif
34178
34179# ifdef _SC_PAGESIZE
34180#  define getpagesize() sysconf(_SC_PAGESIZE)
34181# else /* no _SC_PAGESIZE */
34182#  if HAVE_SYS_PARAM_H
34183#   include <sys/param.h>
34184#   ifdef EXEC_PAGESIZE
34185#    define getpagesize() EXEC_PAGESIZE
34186#   else /* no EXEC_PAGESIZE */
34187#    ifdef NBPG
34188#     define getpagesize() NBPG * CLSIZE
34189#     ifndef CLSIZE
34190#      define CLSIZE 1
34191#     endif /* no CLSIZE */
34192#    else /* no NBPG */
34193#     ifdef NBPC
34194#      define getpagesize() NBPC
34195#     else /* no NBPC */
34196#      ifdef PAGESIZE
34197#       define getpagesize() PAGESIZE
34198#      endif /* PAGESIZE */
34199#     endif /* no NBPC */
34200#    endif /* no NBPG */
34201#   endif /* no EXEC_PAGESIZE */
34202#  else /* no HAVE_SYS_PARAM_H */
34203#   define getpagesize() 8192	/* punt totally */
34204#  endif /* no HAVE_SYS_PARAM_H */
34205# endif /* no _SC_PAGESIZE */
34206
34207#endif /* no HAVE_GETPAGESIZE */
34208
34209int
34210main ()
34211{
34212  char *data, *data2, *data3;
34213  int i, pagesize;
34214  int fd;
34215
34216  pagesize = getpagesize ();
34217
34218  /* First, make a file with some known garbage in it. */
34219  data = (char *) malloc (pagesize);
34220  if (!data)
34221    return 1;
34222  for (i = 0; i < pagesize; ++i)
34223    *(data + i) = rand ();
34224  umask (0);
34225  fd = creat ("conftest.mmap", 0600);
34226  if (fd < 0)
34227    return 1;
34228  if (write (fd, data, pagesize) != pagesize)
34229    return 1;
34230  close (fd);
34231
34232  /* Next, try to mmap the file at a fixed address which already has
34233     something else allocated at it.  If we can, also make sure that
34234     we see the same garbage.  */
34235  fd = open ("conftest.mmap", O_RDWR);
34236  if (fd < 0)
34237    return 1;
34238  data2 = (char *) malloc (2 * pagesize);
34239  if (!data2)
34240    return 1;
34241  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34242  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34243		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
34244    return 1;
34245  for (i = 0; i < pagesize; ++i)
34246    if (*(data + i) != *(data2 + i))
34247      return 1;
34248
34249  /* Finally, make sure that changes to the mapped area do not
34250     percolate back to the file as seen by read().  (This is a bug on
34251     some variants of i386 svr4.0.)  */
34252  for (i = 0; i < pagesize; ++i)
34253    *(data2 + i) = *(data2 + i) + 1;
34254  data3 = (char *) malloc (pagesize);
34255  if (!data3)
34256    return 1;
34257  if (read (fd, data3, pagesize) != pagesize)
34258    return 1;
34259  for (i = 0; i < pagesize; ++i)
34260    if (*(data + i) != *(data3 + i))
34261      return 1;
34262  close (fd);
34263  return 0;
34264}
34265_ACEOF
34266rm -f conftest$ac_exeext
34267if { (ac_try="$ac_link"
34268case "(($ac_try" in
34269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34270  *) ac_try_echo=$ac_try;;
34271esac
34272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34273  (eval "$ac_link") 2>&5
34274  ac_status=$?
34275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34276  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34277  { (case "(($ac_try" in
34278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34279  *) ac_try_echo=$ac_try;;
34280esac
34281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34282  (eval "$ac_try") 2>&5
34283  ac_status=$?
34284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34285  (exit $ac_status); }; }; then
34286  ac_cv_func_mmap_fixed_mapped=yes
34287else
34288  echo "$as_me: program exited with status $ac_status" >&5
34289echo "$as_me: failed program was:" >&5
34290sed 's/^/| /' conftest.$ac_ext >&5
34291
34292( exit $ac_status )
34293ac_cv_func_mmap_fixed_mapped=no
34294fi
34295rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34296fi
34297
34298
34299fi
34300{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34301echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34302if test $ac_cv_func_mmap_fixed_mapped = yes; then
34303
34304cat >>confdefs.h <<\_ACEOF
34305#define HAVE_MMAP 1
34306_ACEOF
34307
34308fi
34309rm -f conftest.mmap
34310
34311  { echo "$as_me:$LINENO: checking for mmap of files" >&5
34312echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34313if test "${ac_cv_func_mmap_file+set}" = set; then
34314  echo $ECHO_N "(cached) $ECHO_C" >&6
34315else
34316   ac_ext=c
34317ac_cpp='$CPP $CPPFLAGS'
34318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34320ac_compiler_gnu=$ac_cv_c_compiler_gnu
34321
34322  if test "$cross_compiling" = yes; then
34323  ac_cv_func_mmap_file=no
34324else
34325  cat >conftest.$ac_ext <<_ACEOF
34326
34327    /* confdefs.h.  */
34328_ACEOF
34329cat confdefs.h >>conftest.$ac_ext
34330cat >>conftest.$ac_ext <<_ACEOF
34331/* end confdefs.h.  */
34332
34333#include <sys/types.h>
34334#include <sys/mman.h>
34335#include <fcntl.h>
34336
34337int
34338main ()
34339{
34340
34341  int fd;
34342  fd = creat ("foo",0777);
34343  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34344  unlink ("foo");
34345  return (fd != (int) MAP_FAILED);
34346  ;
34347  return 0;
34348}
34349_ACEOF
34350rm -f conftest$ac_exeext
34351if { (ac_try="$ac_link"
34352case "(($ac_try" in
34353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34354  *) ac_try_echo=$ac_try;;
34355esac
34356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34357  (eval "$ac_link") 2>&5
34358  ac_status=$?
34359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34360  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34361  { (case "(($ac_try" in
34362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34363  *) ac_try_echo=$ac_try;;
34364esac
34365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34366  (eval "$ac_try") 2>&5
34367  ac_status=$?
34368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34369  (exit $ac_status); }; }; then
34370  ac_cv_func_mmap_file=yes
34371else
34372  echo "$as_me: program exited with status $ac_status" >&5
34373echo "$as_me: failed program was:" >&5
34374sed 's/^/| /' conftest.$ac_ext >&5
34375
34376( exit $ac_status )
34377ac_cv_func_mmap_file=no
34378fi
34379rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34380fi
34381
34382
34383  ac_ext=c
34384ac_cpp='$CPP $CPPFLAGS'
34385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34387ac_compiler_gnu=$ac_cv_c_compiler_gnu
34388
34389
34390fi
34391{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34392echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34393if test "$ac_cv_func_mmap_file" = yes; then
34394
34395cat >>confdefs.h <<\_ACEOF
34396#define HAVE_MMAP_FILE
34397_ACEOF
34398
34399   MMAP_FILE=yes
34400
34401fi
34402
34403  { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34404echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34405if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34406  echo $ECHO_N "(cached) $ECHO_C" >&6
34407else
34408  if test "$llvm_cv_os_type" = "Interix" ; then
34409   ac_cv_need_dev_zero_for_mmap=yes
34410 else
34411   ac_cv_need_dev_zero_for_mmap=no
34412 fi
34413
34414fi
34415{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34416echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34417if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34418
34419cat >>confdefs.h <<\_ACEOF
34420#define NEED_DEV_ZERO_FOR_MMAP 1
34421_ACEOF
34422
34423fi
34424
34425  if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34426  then
34427    { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34428echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34429  fi
34430  if test "$ac_cv_func_mmap_file" = "no"
34431  then
34432    { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34433echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34434  fi
34435fi
34436
34437
34438
34439for ac_func in __dso_handle
34440do
34441as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34442{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34443echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34444if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34445  echo $ECHO_N "(cached) $ECHO_C" >&6
34446else
34447  cat >conftest.$ac_ext <<_ACEOF
34448/* confdefs.h.  */
34449_ACEOF
34450cat confdefs.h >>conftest.$ac_ext
34451cat >>conftest.$ac_ext <<_ACEOF
34452/* end confdefs.h.  */
34453/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34454   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34455#define $ac_func innocuous_$ac_func
34456
34457/* System header to define __stub macros and hopefully few prototypes,
34458    which can conflict with char $ac_func (); below.
34459    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34460    <limits.h> exists even on freestanding compilers.  */
34461
34462#ifdef __STDC__
34463# include <limits.h>
34464#else
34465# include <assert.h>
34466#endif
34467
34468#undef $ac_func
34469
34470/* Override any GCC internal prototype to avoid an error.
34471   Use char because int might match the return type of a GCC
34472   builtin and then its argument prototype would still apply.  */
34473#ifdef __cplusplus
34474extern "C"
34475#endif
34476char $ac_func ();
34477/* The GNU C library defines this for functions which it implements
34478    to always fail with ENOSYS.  Some functions are actually named
34479    something starting with __ and the normal name is an alias.  */
34480#if defined __stub_$ac_func || defined __stub___$ac_func
34481choke me
34482#endif
34483
34484int
34485main ()
34486{
34487return $ac_func ();
34488  ;
34489  return 0;
34490}
34491_ACEOF
34492rm -f conftest.$ac_objext conftest$ac_exeext
34493if { (ac_try="$ac_link"
34494case "(($ac_try" in
34495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34496  *) ac_try_echo=$ac_try;;
34497esac
34498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34499  (eval "$ac_link") 2>conftest.er1
34500  ac_status=$?
34501  grep -v '^ *+' conftest.er1 >conftest.err
34502  rm -f conftest.er1
34503  cat conftest.err >&5
34504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34505  (exit $ac_status); } &&
34506	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34507  { (case "(($ac_try" in
34508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34509  *) ac_try_echo=$ac_try;;
34510esac
34511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34512  (eval "$ac_try") 2>&5
34513  ac_status=$?
34514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34515  (exit $ac_status); }; } &&
34516	 { ac_try='test -s conftest$ac_exeext'
34517  { (case "(($ac_try" in
34518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34519  *) ac_try_echo=$ac_try;;
34520esac
34521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34522  (eval "$ac_try") 2>&5
34523  ac_status=$?
34524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34525  (exit $ac_status); }; }; then
34526  eval "$as_ac_var=yes"
34527else
34528  echo "$as_me: failed program was:" >&5
34529sed 's/^/| /' conftest.$ac_ext >&5
34530
34531	eval "$as_ac_var=no"
34532fi
34533
34534rm -f core conftest.err conftest.$ac_objext \
34535      conftest$ac_exeext conftest.$ac_ext
34536fi
34537ac_res=`eval echo '${'$as_ac_var'}'`
34538	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34539echo "${ECHO_T}$ac_res" >&6; }
34540if test `eval echo '${'$as_ac_var'}'` = yes; then
34541  cat >>confdefs.h <<_ACEOF
34542#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34543_ACEOF
34544
34545fi
34546done
34547
34548
34549{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34550echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34551if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34552  echo $ECHO_N "(cached) $ECHO_C" >&6
34553else
34554  llvm_cv_llvmgcc_sanity="no"
34555if test -x "$LLVMGCC" ; then
34556  cp /dev/null conftest.c
34557  "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34558      grep 'target datalayout =' > /dev/null 2>&1
34559  if test $? -eq 0 ; then
34560    llvm_cv_llvmgcc_sanity="yes"
34561  fi
34562  rm conftest.c
34563fi
34564fi
34565{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34566echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34567
34568if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34569  { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34570echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34571  llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34572  LLVMCC1=$llvmcc1path
34573
34574  llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34575  LLVMCC1PLUS=$llvmcc1pluspath
34576
34577  llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34578  LLVMGCCDIR=$llvmgccdir
34579
34580  llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34581  LLVMGCCLIBEXEC=$llvmgcclibexec
34582
34583  llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34584  llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34585  LLVMGCC_VERSION=$llvmgccversion
34586
34587  LLVMGCC_MAJVERS=$llvmgccmajvers
34588
34589  llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34590  LLVMGCC_LANGS=$llvmgcclangs
34591
34592  { echo "$as_me:$LINENO: result: ok" >&5
34593echo "${ECHO_T}ok" >&6; }
34594fi
34595
34596SHLIBEXT=$libltdl_cv_shlibext
34597
34598
34599# Translate the various configuration directories and other basic
34600# information into substitutions that will end up in Makefile.config.in
34601# that these configured values can be used by the makefiles
34602if test "${prefix}" = "NONE" ; then
34603  prefix="/usr/local"
34604fi
34605eval LLVM_PREFIX="${prefix}";
34606eval LLVM_BINDIR="${prefix}/bin";
34607eval LLVM_LIBDIR="${prefix}/lib";
34608eval LLVM_DATADIR="${prefix}/share/llvm";
34609eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34610eval LLVM_ETCDIR="${prefix}/etc/llvm";
34611eval LLVM_INCLUDEDIR="${prefix}/include";
34612eval LLVM_INFODIR="${prefix}/info";
34613eval LLVM_MANDIR="${prefix}/man";
34614LLVM_CONFIGTIME=`date`
34615
34616
34617
34618
34619
34620
34621
34622
34623
34624
34625
34626# Place the various directores into the config.h file as #defines so that we
34627# can know about the installation paths within LLVM.
34628
34629cat >>confdefs.h <<_ACEOF
34630#define LLVM_PREFIX "$LLVM_PREFIX"
34631_ACEOF
34632
34633
34634cat >>confdefs.h <<_ACEOF
34635#define LLVM_BINDIR "$LLVM_BINDIR"
34636_ACEOF
34637
34638
34639cat >>confdefs.h <<_ACEOF
34640#define LLVM_LIBDIR "$LLVM_LIBDIR"
34641_ACEOF
34642
34643
34644cat >>confdefs.h <<_ACEOF
34645#define LLVM_DATADIR "$LLVM_DATADIR"
34646_ACEOF
34647
34648
34649cat >>confdefs.h <<_ACEOF
34650#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34651_ACEOF
34652
34653
34654cat >>confdefs.h <<_ACEOF
34655#define LLVM_ETCDIR "$LLVM_ETCDIR"
34656_ACEOF
34657
34658
34659cat >>confdefs.h <<_ACEOF
34660#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34661_ACEOF
34662
34663
34664cat >>confdefs.h <<_ACEOF
34665#define LLVM_INFODIR "$LLVM_INFODIR"
34666_ACEOF
34667
34668
34669cat >>confdefs.h <<_ACEOF
34670#define LLVM_MANDIR "$LLVM_MANDIR"
34671_ACEOF
34672
34673
34674cat >>confdefs.h <<_ACEOF
34675#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34676_ACEOF
34677
34678
34679cat >>confdefs.h <<_ACEOF
34680#define LLVM_HOSTTRIPLE "$host"
34681_ACEOF
34682
34683
34684# Determine which bindings to build.
34685if test "$BINDINGS_TO_BUILD" = auto ; then
34686  BINDINGS_TO_BUILD=""
34687  if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34688    BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34689  fi
34690fi
34691BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34692
34693
34694# This isn't really configurey, but it avoids having to repeat the list in
34695# other files.
34696ALL_BINDINGS=ocaml
34697
34698
34699# Do any work necessary to ensure that bindings have what they need.
34700binding_prereqs_failed=0
34701for a_binding in $BINDINGS_TO_BUILD ; do
34702  case "$a_binding" in
34703  ocaml)
34704    if test "x$OCAMLC" = x ; then
34705      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34706echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34707      binding_prereqs_failed=1
34708    fi
34709    if test "x$OCAMLDEP" = x ; then
34710      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34711echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34712      binding_prereqs_failed=1
34713    fi
34714    if test "x$OCAMLOPT" = x ; then
34715      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34716echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34717          fi
34718    if test "x$with_ocaml_libdir" != xauto ; then
34719      OCAML_LIBDIR=$with_ocaml_libdir
34720
34721    else
34722      ocaml_stdlib="`"$OCAMLC" -where`"
34723      if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34724      then
34725        # ocaml stdlib is beneath our prefix; use stdlib
34726        OCAML_LIBDIR=$ocaml_stdlib
34727
34728      else
34729        # ocaml stdlib is outside our prefix; use libdir/ocaml
34730        OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34731
34732      fi
34733    fi
34734    ;;
34735  esac
34736done
34737if test "$binding_prereqs_failed" = 1 ; then
34738  { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34739echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34740   { (exit 1); exit 1; }; }
34741fi
34742
34743{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34744echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34745if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34746  echo $ECHO_N "(cached) $ECHO_C" >&6
34747else
34748   ac_ext=cpp
34749ac_cpp='$CXXCPP $CPPFLAGS'
34750ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34751ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34752ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34753
34754  oldcxxflags="$CXXFLAGS"
34755  CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34756  cat >conftest.$ac_ext <<_ACEOF
34757/* confdefs.h.  */
34758_ACEOF
34759cat confdefs.h >>conftest.$ac_ext
34760cat >>conftest.$ac_ext <<_ACEOF
34761/* end confdefs.h.  */
34762
34763int
34764main ()
34765{
34766
34767  ;
34768  return 0;
34769}
34770_ACEOF
34771rm -f conftest.$ac_objext
34772if { (ac_try="$ac_compile"
34773case "(($ac_try" in
34774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34775  *) ac_try_echo=$ac_try;;
34776esac
34777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34778  (eval "$ac_compile") 2>conftest.er1
34779  ac_status=$?
34780  grep -v '^ *+' conftest.er1 >conftest.err
34781  rm -f conftest.er1
34782  cat conftest.err >&5
34783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34784  (exit $ac_status); } &&
34785	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34786  { (case "(($ac_try" in
34787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34788  *) ac_try_echo=$ac_try;;
34789esac
34790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34791  (eval "$ac_try") 2>&5
34792  ac_status=$?
34793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34794  (exit $ac_status); }; } &&
34795	 { ac_try='test -s conftest.$ac_objext'
34796  { (case "(($ac_try" in
34797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34798  *) ac_try_echo=$ac_try;;
34799esac
34800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34801  (eval "$ac_try") 2>&5
34802  ac_status=$?
34803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34804  (exit $ac_status); }; }; then
34805  llvm_cv_cxx_visibility_inlines_hidden=yes
34806else
34807  echo "$as_me: failed program was:" >&5
34808sed 's/^/| /' conftest.$ac_ext >&5
34809
34810	llvm_cv_cxx_visibility_inlines_hidden=no
34811fi
34812
34813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34814  CXXFLAGS="$oldcxxflags"
34815  ac_ext=c
34816ac_cpp='$CPP $CPPFLAGS'
34817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34819ac_compiler_gnu=$ac_cv_c_compiler_gnu
34820
34821
34822fi
34823{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34824echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34825if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34826  ENABLE_VISIBILITY_INLINES_HIDDEN=1
34827
34828else
34829  ENABLE_VISIBILITY_INLINES_HIDDEN=0
34830
34831fi
34832
34833
34834
34835ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34836
34837ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34838
34839ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
34840
34841ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
34842
34843ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34844
34845
34846ac_config_files="$ac_config_files Makefile.config"
34847
34848
34849ac_config_files="$ac_config_files llvm.spec"
34850
34851
34852ac_config_files="$ac_config_files docs/doxygen.cfg"
34853
34854
34855ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34856
34857
34858ac_config_commands="$ac_config_commands setup"
34859
34860ac_config_commands="$ac_config_commands Makefile"
34861
34862
34863ac_config_commands="$ac_config_commands Makefile.common"
34864
34865
34866ac_config_commands="$ac_config_commands examples/Makefile"
34867
34868
34869ac_config_commands="$ac_config_commands lib/Makefile"
34870
34871
34872ac_config_commands="$ac_config_commands runtime/Makefile"
34873
34874
34875ac_config_commands="$ac_config_commands test/Makefile"
34876
34877
34878ac_config_commands="$ac_config_commands test/Makefile.tests"
34879
34880
34881ac_config_commands="$ac_config_commands unittests/Makefile"
34882
34883
34884ac_config_commands="$ac_config_commands tools/Makefile"
34885
34886
34887ac_config_commands="$ac_config_commands utils/Makefile"
34888
34889
34890ac_config_commands="$ac_config_commands projects/Makefile"
34891
34892
34893ac_config_commands="$ac_config_commands bindings/Makefile"
34894
34895
34896ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34897
34898
34899
34900cat >confcache <<\_ACEOF
34901# This file is a shell script that caches the results of configure
34902# tests run on this system so they can be shared between configure
34903# scripts and configure runs, see configure's option --config-cache.
34904# It is not useful on other systems.  If it contains results you don't
34905# want to keep, you may remove or edit it.
34906#
34907# config.status only pays attention to the cache file if you give it
34908# the --recheck option to rerun configure.
34909#
34910# `ac_cv_env_foo' variables (set or unset) will be overridden when
34911# loading this file, other *unset* `ac_cv_foo' will be assigned the
34912# following values.
34913
34914_ACEOF
34915
34916# The following way of writing the cache mishandles newlines in values,
34917# but we know of no workaround that is simple, portable, and efficient.
34918# So, we kill variables containing newlines.
34919# Ultrix sh set writes to stderr and can't be redirected directly,
34920# and sets the high bit in the cache file unless we assign to the vars.
34921(
34922  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34923    eval ac_val=\$$ac_var
34924    case $ac_val in #(
34925    *${as_nl}*)
34926      case $ac_var in #(
34927      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34928echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34929      esac
34930      case $ac_var in #(
34931      _ | IFS | as_nl) ;; #(
34932      *) $as_unset $ac_var ;;
34933      esac ;;
34934    esac
34935  done
34936
34937  (set) 2>&1 |
34938    case $as_nl`(ac_space=' '; set) 2>&1` in #(
34939    *${as_nl}ac_space=\ *)
34940      # `set' does not quote correctly, so add quotes (double-quote
34941      # substitution turns \\\\ into \\, and sed turns \\ into \).
34942      sed -n \
34943	"s/'/'\\\\''/g;
34944	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34945      ;; #(
34946    *)
34947      # `set' quotes correctly as required by POSIX, so do not add quotes.
34948      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34949      ;;
34950    esac |
34951    sort
34952) |
34953  sed '
34954     /^ac_cv_env_/b end
34955     t clear
34956     :clear
34957     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34958     t end
34959     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34960     :end' >>confcache
34961if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34962  if test -w "$cache_file"; then
34963    test "x$cache_file" != "x/dev/null" &&
34964      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34965echo "$as_me: updating cache $cache_file" >&6;}
34966    cat confcache >$cache_file
34967  else
34968    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34969echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34970  fi
34971fi
34972rm -f confcache
34973
34974test "x$prefix" = xNONE && prefix=$ac_default_prefix
34975# Let make expand exec_prefix.
34976test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34977
34978DEFS=-DHAVE_CONFIG_H
34979
34980ac_libobjs=
34981ac_ltlibobjs=
34982for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34983  # 1. Remove the extension, and $U if already installed.
34984  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34985  ac_i=`echo "$ac_i" | sed "$ac_script"`
34986  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34987  #    will be set to the directory where LIBOBJS objects are built.
34988  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34989  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34990done
34991LIBOBJS=$ac_libobjs
34992
34993LTLIBOBJS=$ac_ltlibobjs
34994
34995
34996if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34997  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34998Usually this means the macro was only invoked conditionally." >&5
34999echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35000Usually this means the macro was only invoked conditionally." >&2;}
35001   { (exit 1); exit 1; }; }
35002fi
35003if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35004  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35005Usually this means the macro was only invoked conditionally." >&5
35006echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35007Usually this means the macro was only invoked conditionally." >&2;}
35008   { (exit 1); exit 1; }; }
35009fi
35010
35011: ${CONFIG_STATUS=./config.status}
35012ac_clean_files_save=$ac_clean_files
35013ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35014{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35015echo "$as_me: creating $CONFIG_STATUS" >&6;}
35016cat >$CONFIG_STATUS <<_ACEOF
35017#! $SHELL
35018# Generated by $as_me.
35019# Run this file to recreate the current configuration.
35020# Compiler output produced by configure, useful for debugging
35021# configure, is in config.log if it exists.
35022
35023debug=false
35024ac_cs_recheck=false
35025ac_cs_silent=false
35026SHELL=\${CONFIG_SHELL-$SHELL}
35027_ACEOF
35028
35029cat >>$CONFIG_STATUS <<\_ACEOF
35030## --------------------- ##
35031## M4sh Initialization.  ##
35032## --------------------- ##
35033
35034# Be Bourne compatible
35035if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35036  emulate sh
35037  NULLCMD=:
35038  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35039  # is contrary to our usage.  Disable this feature.
35040  alias -g '${1+"$@"}'='"$@"'
35041  setopt NO_GLOB_SUBST
35042else
35043  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
35044fi
35045BIN_SH=xpg4; export BIN_SH # for Tru64
35046DUALCASE=1; export DUALCASE # for MKS sh
35047
35048
35049# PATH needs CR
35050# Avoid depending upon Character Ranges.
35051as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35052as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35053as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35054as_cr_digits='0123456789'
35055as_cr_alnum=$as_cr_Letters$as_cr_digits
35056
35057# The user is always right.
35058if test "${PATH_SEPARATOR+set}" != set; then
35059  echo "#! /bin/sh" >conf$$.sh
35060  echo  "exit 0"   >>conf$$.sh
35061  chmod +x conf$$.sh
35062  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35063    PATH_SEPARATOR=';'
35064  else
35065    PATH_SEPARATOR=:
35066  fi
35067  rm -f conf$$.sh
35068fi
35069
35070# Support unset when possible.
35071if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35072  as_unset=unset
35073else
35074  as_unset=false
35075fi
35076
35077
35078# IFS
35079# We need space, tab and new line, in precisely that order.  Quoting is
35080# there to prevent editors from complaining about space-tab.
35081# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35082# splitting by setting IFS to empty value.)
35083as_nl='
35084'
35085IFS=" ""	$as_nl"
35086
35087# Find who we are.  Look in the path if we contain no directory separator.
35088case $0 in
35089  *[\\/]* ) as_myself=$0 ;;
35090  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35091for as_dir in $PATH
35092do
35093  IFS=$as_save_IFS
35094  test -z "$as_dir" && as_dir=.
35095  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35096done
35097IFS=$as_save_IFS
35098
35099     ;;
35100esac
35101# We did not find ourselves, most probably we were run as `sh COMMAND'
35102# in which case we are not to be found in the path.
35103if test "x$as_myself" = x; then
35104  as_myself=$0
35105fi
35106if test ! -f "$as_myself"; then
35107  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35108  { (exit 1); exit 1; }
35109fi
35110
35111# Work around bugs in pre-3.0 UWIN ksh.
35112for as_var in ENV MAIL MAILPATH
35113do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35114done
35115PS1='$ '
35116PS2='> '
35117PS4='+ '
35118
35119# NLS nuisances.
35120for as_var in \
35121  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35122  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35123  LC_TELEPHONE LC_TIME
35124do
35125  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35126    eval $as_var=C; export $as_var
35127  else
35128    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35129  fi
35130done
35131
35132# Required to use basename.
35133if expr a : '\(a\)' >/dev/null 2>&1 &&
35134   test "X`expr 00001 : '.*\(...\)'`" = X001; then
35135  as_expr=expr
35136else
35137  as_expr=false
35138fi
35139
35140if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35141  as_basename=basename
35142else
35143  as_basename=false
35144fi
35145
35146
35147# Name of the executable.
35148as_me=`$as_basename -- "$0" ||
35149$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35150	 X"$0" : 'X\(//\)$' \| \
35151	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35152echo X/"$0" |
35153    sed '/^.*\/\([^/][^/]*\)\/*$/{
35154	    s//\1/
35155	    q
35156	  }
35157	  /^X\/\(\/\/\)$/{
35158	    s//\1/
35159	    q
35160	  }
35161	  /^X\/\(\/\).*/{
35162	    s//\1/
35163	    q
35164	  }
35165	  s/.*/./; q'`
35166
35167# CDPATH.
35168$as_unset CDPATH
35169
35170
35171
35172  as_lineno_1=$LINENO
35173  as_lineno_2=$LINENO
35174  test "x$as_lineno_1" != "x$as_lineno_2" &&
35175  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35176
35177  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35178  # uniformly replaced by the line number.  The first 'sed' inserts a
35179  # line-number line after each line using $LINENO; the second 'sed'
35180  # does the real work.  The second script uses 'N' to pair each
35181  # line-number line with the line containing $LINENO, and appends
35182  # trailing '-' during substitution so that $LINENO is not a special
35183  # case at line end.
35184  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35185  # scripts with optimization help from Paolo Bonzini.  Blame Lee
35186  # E. McMahon (1931-1989) for sed's syntax.  :-)
35187  sed -n '
35188    p
35189    /[$]LINENO/=
35190  ' <$as_myself |
35191    sed '
35192      s/[$]LINENO.*/&-/
35193      t lineno
35194      b
35195      :lineno
35196      N
35197      :loop
35198      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35199      t loop
35200      s/-\n.*//
35201    ' >$as_me.lineno &&
35202  chmod +x "$as_me.lineno" ||
35203    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35204   { (exit 1); exit 1; }; }
35205
35206  # Don't try to exec as it changes $[0], causing all sort of problems
35207  # (the dirname of $[0] is not the place where we might find the
35208  # original and so on.  Autoconf is especially sensitive to this).
35209  . "./$as_me.lineno"
35210  # Exit status is that of the last command.
35211  exit
35212}
35213
35214
35215if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35216  as_dirname=dirname
35217else
35218  as_dirname=false
35219fi
35220
35221ECHO_C= ECHO_N= ECHO_T=
35222case `echo -n x` in
35223-n*)
35224  case `echo 'x\c'` in
35225  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
35226  *)   ECHO_C='\c';;
35227  esac;;
35228*)
35229  ECHO_N='-n';;
35230esac
35231
35232if expr a : '\(a\)' >/dev/null 2>&1 &&
35233   test "X`expr 00001 : '.*\(...\)'`" = X001; then
35234  as_expr=expr
35235else
35236  as_expr=false
35237fi
35238
35239rm -f conf$$ conf$$.exe conf$$.file
35240if test -d conf$$.dir; then
35241  rm -f conf$$.dir/conf$$.file
35242else
35243  rm -f conf$$.dir
35244  mkdir conf$$.dir
35245fi
35246echo >conf$$.file
35247if ln -s conf$$.file conf$$ 2>/dev/null; then
35248  as_ln_s='ln -s'
35249  # ... but there are two gotchas:
35250  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35251  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35252  # In both cases, we have to default to `cp -p'.
35253  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35254    as_ln_s='cp -p'
35255elif ln conf$$.file conf$$ 2>/dev/null; then
35256  as_ln_s=ln
35257else
35258  as_ln_s='cp -p'
35259fi
35260rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35261rmdir conf$$.dir 2>/dev/null
35262
35263if mkdir -p . 2>/dev/null; then
35264  as_mkdir_p=:
35265else
35266  test -d ./-p && rmdir ./-p
35267  as_mkdir_p=false
35268fi
35269
35270# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
35271# systems may use methods other than mode bits to determine executability.
35272cat >conf$$.file <<_ASEOF
35273#! /bin/sh
35274exit 0
35275_ASEOF
35276chmod +x conf$$.file
35277if test -x conf$$.file >/dev/null 2>&1; then
35278  as_executable_p="test -x"
35279else
35280  as_executable_p=:
35281fi
35282rm -f conf$$.file
35283
35284# Sed expression to map a string onto a valid CPP name.
35285as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35286
35287# Sed expression to map a string onto a valid variable name.
35288as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35289
35290
35291exec 6>&1
35292
35293# Save the log message, to keep $[0] and so on meaningful, and to
35294# report actual input values of CONFIG_FILES etc. instead of their
35295# values after options handling.
35296ac_log="
35297This file was extended by llvm $as_me 2.6svn, which was
35298generated by GNU Autoconf 2.60.  Invocation command line was
35299
35300  CONFIG_FILES    = $CONFIG_FILES
35301  CONFIG_HEADERS  = $CONFIG_HEADERS
35302  CONFIG_LINKS    = $CONFIG_LINKS
35303  CONFIG_COMMANDS = $CONFIG_COMMANDS
35304  $ $0 $@
35305
35306on `(hostname || uname -n) 2>/dev/null | sed 1q`
35307"
35308
35309_ACEOF
35310
35311cat >>$CONFIG_STATUS <<_ACEOF
35312# Files that config.status was made for.
35313config_files="$ac_config_files"
35314config_headers="$ac_config_headers"
35315config_commands="$ac_config_commands"
35316
35317_ACEOF
35318
35319cat >>$CONFIG_STATUS <<\_ACEOF
35320ac_cs_usage="\
35321\`$as_me' instantiates files from templates according to the
35322current configuration.
35323
35324Usage: $0 [OPTIONS] [FILE]...
35325
35326  -h, --help       print this help, then exit
35327  -V, --version    print version number, then exit
35328  -q, --quiet      do not print progress messages
35329  -d, --debug      don't remove temporary files
35330      --recheck    update $as_me by reconfiguring in the same conditions
35331  --file=FILE[:TEMPLATE]
35332		   instantiate the configuration file FILE
35333  --header=FILE[:TEMPLATE]
35334		   instantiate the configuration header FILE
35335
35336Configuration files:
35337$config_files
35338
35339Configuration headers:
35340$config_headers
35341
35342Configuration commands:
35343$config_commands
35344
35345Report bugs to <bug-autoconf@gnu.org>."
35346
35347_ACEOF
35348cat >>$CONFIG_STATUS <<_ACEOF
35349ac_cs_version="\\
35350llvm config.status 2.6svn
35351configured by $0, generated by GNU Autoconf 2.60,
35352  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35353
35354Copyright (C) 2006 Free Software Foundation, Inc.
35355This config.status script is free software; the Free Software Foundation
35356gives unlimited permission to copy, distribute and modify it."
35357
35358ac_pwd='$ac_pwd'
35359srcdir='$srcdir'
35360INSTALL='$INSTALL'
35361_ACEOF
35362
35363cat >>$CONFIG_STATUS <<\_ACEOF
35364# If no file are specified by the user, then we need to provide default
35365# value.  By we need to know if files were specified by the user.
35366ac_need_defaults=:
35367while test $# != 0
35368do
35369  case $1 in
35370  --*=*)
35371    ac_option=`expr "X$1" : 'X\([^=]*\)='`
35372    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35373    ac_shift=:
35374    ;;
35375  *)
35376    ac_option=$1
35377    ac_optarg=$2
35378    ac_shift=shift
35379    ;;
35380  esac
35381
35382  case $ac_option in
35383  # Handling of the options.
35384  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35385    ac_cs_recheck=: ;;
35386  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35387    echo "$ac_cs_version"; exit ;;
35388  --debug | --debu | --deb | --de | --d | -d )
35389    debug=: ;;
35390  --file | --fil | --fi | --f )
35391    $ac_shift
35392    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35393    ac_need_defaults=false;;
35394  --header | --heade | --head | --hea )
35395    $ac_shift
35396    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35397    ac_need_defaults=false;;
35398  --he | --h)
35399    # Conflict between --help and --header
35400    { echo "$as_me: error: ambiguous option: $1
35401Try \`$0 --help' for more information." >&2
35402   { (exit 1); exit 1; }; };;
35403  --help | --hel | -h )
35404    echo "$ac_cs_usage"; exit ;;
35405  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35406  | -silent | --silent | --silen | --sile | --sil | --si | --s)
35407    ac_cs_silent=: ;;
35408
35409  # This is an error.
35410  -*) { echo "$as_me: error: unrecognized option: $1
35411Try \`$0 --help' for more information." >&2
35412   { (exit 1); exit 1; }; } ;;
35413
35414  *) ac_config_targets="$ac_config_targets $1"
35415     ac_need_defaults=false ;;
35416
35417  esac
35418  shift
35419done
35420
35421ac_configure_extra_args=
35422
35423if $ac_cs_silent; then
35424  exec 6>/dev/null
35425  ac_configure_extra_args="$ac_configure_extra_args --silent"
35426fi
35427
35428_ACEOF
35429cat >>$CONFIG_STATUS <<_ACEOF
35430if \$ac_cs_recheck; then
35431  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35432  CONFIG_SHELL=$SHELL
35433  export CONFIG_SHELL
35434  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35435fi
35436
35437_ACEOF
35438cat >>$CONFIG_STATUS <<\_ACEOF
35439exec 5>>config.log
35440{
35441  echo
35442  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35443## Running $as_me. ##
35444_ASBOX
35445  echo "$ac_log"
35446} >&5
35447
35448_ACEOF
35449cat >>$CONFIG_STATUS <<_ACEOF
35450#
35451# INIT-COMMANDS
35452#
35453llvm_src="${srcdir}"
35454
35455_ACEOF
35456
35457cat >>$CONFIG_STATUS <<\_ACEOF
35458
35459# Handling of arguments.
35460for ac_config_target in $ac_config_targets
35461do
35462  case $ac_config_target in
35463    "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35464    "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35465    "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
35466    "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
35467    "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35468    "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35469    "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35470    "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35471    "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35472    "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35473    "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35474    "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35475    "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35476    "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35477    "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35478    "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35479    "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35480    "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35481    "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35482    "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35483    "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35484    "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35485    "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35486
35487  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35488echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35489   { (exit 1); exit 1; }; };;
35490  esac
35491done
35492
35493
35494# If the user did not use the arguments to specify the items to instantiate,
35495# then the envvar interface is used.  Set only those that are not.
35496# We use the long form for the default assignment because of an extremely
35497# bizarre bug on SunOS 4.1.3.
35498if $ac_need_defaults; then
35499  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35500  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35501  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35502fi
35503
35504# Have a temporary directory for convenience.  Make it in the build tree
35505# simply because there is no reason against having it here, and in addition,
35506# creating and moving files from /tmp can sometimes cause problems.
35507# Hook for its removal unless debugging.
35508# Note that there is a small window in which the directory will not be cleaned:
35509# after its creation but before its name has been assigned to `$tmp'.
35510$debug ||
35511{
35512  tmp=
35513  trap 'exit_status=$?
35514  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35515' 0
35516  trap '{ (exit 1); exit 1; }' 1 2 13 15
35517}
35518# Create a (secure) tmp directory for tmp files.
35519
35520{
35521  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35522  test -n "$tmp" && test -d "$tmp"
35523}  ||
35524{
35525  tmp=./conf$$-$RANDOM
35526  (umask 077 && mkdir "$tmp")
35527} ||
35528{
35529   echo "$me: cannot create a temporary directory in ." >&2
35530   { (exit 1); exit 1; }
35531}
35532
35533#
35534# Set up the sed scripts for CONFIG_FILES section.
35535#
35536
35537# No need to generate the scripts if there are no CONFIG_FILES.
35538# This happens for instance when ./config.status config.h
35539if test -n "$CONFIG_FILES"; then
35540
35541_ACEOF
35542
35543
35544
35545ac_delim='%!_!# '
35546for ac_last_try in false false false false false :; do
35547  cat >conf$$subs.sed <<_ACEOF
35548SHELL!$SHELL$ac_delim
35549PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35550PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35551PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35552PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35553PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35554PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35555exec_prefix!$exec_prefix$ac_delim
35556prefix!$prefix$ac_delim
35557program_transform_name!$program_transform_name$ac_delim
35558bindir!$bindir$ac_delim
35559sbindir!$sbindir$ac_delim
35560libexecdir!$libexecdir$ac_delim
35561datarootdir!$datarootdir$ac_delim
35562datadir!$datadir$ac_delim
35563sysconfdir!$sysconfdir$ac_delim
35564sharedstatedir!$sharedstatedir$ac_delim
35565localstatedir!$localstatedir$ac_delim
35566includedir!$includedir$ac_delim
35567oldincludedir!$oldincludedir$ac_delim
35568docdir!$docdir$ac_delim
35569infodir!$infodir$ac_delim
35570htmldir!$htmldir$ac_delim
35571dvidir!$dvidir$ac_delim
35572pdfdir!$pdfdir$ac_delim
35573psdir!$psdir$ac_delim
35574libdir!$libdir$ac_delim
35575localedir!$localedir$ac_delim
35576mandir!$mandir$ac_delim
35577DEFS!$DEFS$ac_delim
35578ECHO_C!$ECHO_C$ac_delim
35579ECHO_N!$ECHO_N$ac_delim
35580ECHO_T!$ECHO_T$ac_delim
35581LIBS!$LIBS$ac_delim
35582build_alias!$build_alias$ac_delim
35583host_alias!$host_alias$ac_delim
35584target_alias!$target_alias$ac_delim
35585LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35586subdirs!$subdirs$ac_delim
35587build!$build$ac_delim
35588build_cpu!$build_cpu$ac_delim
35589build_vendor!$build_vendor$ac_delim
35590build_os!$build_os$ac_delim
35591host!$host$ac_delim
35592host_cpu!$host_cpu$ac_delim
35593host_vendor!$host_vendor$ac_delim
35594host_os!$host_os$ac_delim
35595target!$target$ac_delim
35596target_cpu!$target_cpu$ac_delim
35597target_vendor!$target_vendor$ac_delim
35598target_os!$target_os$ac_delim
35599OS!$OS$ac_delim
35600LINKALL!$LINKALL$ac_delim
35601NOLINKALL!$NOLINKALL$ac_delim
35602LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35603LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35604ARCH!$ARCH$ac_delim
35605ENDIAN!$ENDIAN$ac_delim
35606CC!$CC$ac_delim
35607CFLAGS!$CFLAGS$ac_delim
35608LDFLAGS!$LDFLAGS$ac_delim
35609CPPFLAGS!$CPPFLAGS$ac_delim
35610ac_ct_CC!$ac_ct_CC$ac_delim
35611EXEEXT!$EXEEXT$ac_delim
35612OBJEXT!$OBJEXT$ac_delim
35613CPP!$CPP$ac_delim
35614GREP!$GREP$ac_delim
35615EGREP!$EGREP$ac_delim
35616LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35617BUILD_CC!$BUILD_CC$ac_delim
35618BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35619BUILD_CXX!$BUILD_CXX$ac_delim
35620CVSBUILD!$CVSBUILD$ac_delim
35621ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35622DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35623ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35624EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35625DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35626JIT!$JIT$ac_delim
35627TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35628ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35629ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35630ENABLE_PIC!$ENABLE_PIC$ac_delim
35631TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35632ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35633EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35634BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
35635CXX!$CXX$ac_delim
35636CXXFLAGS!$CXXFLAGS$ac_delim
35637ac_ct_CXX!$ac_ct_CXX$ac_delim
35638LEX!$LEX$ac_delim
35639LEXLIB!$LEXLIB$ac_delim
35640LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35641FLEX!$FLEX$ac_delim
35642YACC!$YACC$ac_delim
35643YFLAGS!$YFLAGS$ac_delim
35644BISON!$BISON$ac_delim
35645_ACEOF
35646
35647  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35648    break
35649  elif $ac_last_try; then
35650    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35651echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35652   { (exit 1); exit 1; }; }
35653  else
35654    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35655  fi
35656done
35657
35658ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35659if test -n "$ac_eof"; then
35660  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35661  ac_eof=`expr $ac_eof + 1`
35662fi
35663
35664cat >>$CONFIG_STATUS <<_ACEOF
35665cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35666/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35667_ACEOF
35668sed '
35669s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35670s/^/s,@/; s/!/@,|#_!!_#|/
35671:n
35672t n
35673s/'"$ac_delim"'$/,g/; t
35674s/$/\\/; p
35675N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35676' >>$CONFIG_STATUS <conf$$subs.sed
35677rm -f conf$$subs.sed
35678cat >>$CONFIG_STATUS <<_ACEOF
35679CEOF$ac_eof
35680_ACEOF
35681
35682
35683ac_delim='%!_!# '
35684for ac_last_try in false false false false false :; do
35685  cat >conf$$subs.sed <<_ACEOF
35686NM!$NM$ac_delim
35687ifGNUmake!$ifGNUmake$ac_delim
35688LN_S!$LN_S$ac_delim
35689CMP!$CMP$ac_delim
35690CP!$CP$ac_delim
35691DATE!$DATE$ac_delim
35692FIND!$FIND$ac_delim
35693MKDIR!$MKDIR$ac_delim
35694MV!$MV$ac_delim
35695RANLIB!$RANLIB$ac_delim
35696RM!$RM$ac_delim
35697SED!$SED$ac_delim
35698TAR!$TAR$ac_delim
35699BINPWD!$BINPWD$ac_delim
35700GRAPHVIZ!$GRAPHVIZ$ac_delim
35701DOT!$DOT$ac_delim
35702GV!$GV$ac_delim
35703DOTTY!$DOTTY$ac_delim
35704PERL!$PERL$ac_delim
35705HAVE_PERL!$HAVE_PERL$ac_delim
35706INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35707INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35708INSTALL_DATA!$INSTALL_DATA$ac_delim
35709BZIP2!$BZIP2$ac_delim
35710DOXYGEN!$DOXYGEN$ac_delim
35711GROFF!$GROFF$ac_delim
35712GZIP!$GZIP$ac_delim
35713POD2HTML!$POD2HTML$ac_delim
35714POD2MAN!$POD2MAN$ac_delim
35715RUNTEST!$RUNTEST$ac_delim
35716TCLSH!$TCLSH$ac_delim
35717ZIP!$ZIP$ac_delim
35718OCAMLC!$OCAMLC$ac_delim
35719OCAMLOPT!$OCAMLOPT$ac_delim
35720OCAMLDEP!$OCAMLDEP$ac_delim
35721OCAMLDOC!$OCAMLDOC$ac_delim
35722GAS!$GAS$ac_delim
35723INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35724INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35725CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35726CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35727LIBADD_DL!$LIBADD_DL$ac_delim
35728ECHO!$ECHO$ac_delim
35729AR!$AR$ac_delim
35730STRIP!$STRIP$ac_delim
35731CXXCPP!$CXXCPP$ac_delim
35732F77!$F77$ac_delim
35733FFLAGS!$FFLAGS$ac_delim
35734ac_ct_F77!$ac_ct_F77$ac_delim
35735LIBTOOL!$LIBTOOL$ac_delim
35736LLVMGCC!$LLVMGCC$ac_delim
35737LLVMGXX!$LLVMGXX$ac_delim
35738USE_UDIS86!$USE_UDIS86$ac_delim
35739HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35740HAVE_FFI!$HAVE_FFI$ac_delim
35741HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35742ALLOCA!$ALLOCA$ac_delim
35743MMAP_FILE!$MMAP_FILE$ac_delim
35744LLVMCC1!$LLVMCC1$ac_delim
35745LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35746LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35747LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35748LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35749LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35750LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35751SHLIBEXT!$SHLIBEXT$ac_delim
35752LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35753LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35754LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35755LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35756LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35757LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35758LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35759LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35760LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35761LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35762BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35763ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35764OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35765ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35766LIBOBJS!$LIBOBJS$ac_delim
35767LTLIBOBJS!$LTLIBOBJS$ac_delim
35768_ACEOF
35769
35770  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
35771    break
35772  elif $ac_last_try; then
35773    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35774echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35775   { (exit 1); exit 1; }; }
35776  else
35777    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35778  fi
35779done
35780
35781ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35782if test -n "$ac_eof"; then
35783  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35784  ac_eof=`expr $ac_eof + 1`
35785fi
35786
35787cat >>$CONFIG_STATUS <<_ACEOF
35788cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35789/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35790_ACEOF
35791sed '
35792s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35793s/^/s,@/; s/!/@,|#_!!_#|/
35794:n
35795t n
35796s/'"$ac_delim"'$/,g/; t
35797s/$/\\/; p
35798N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35799' >>$CONFIG_STATUS <conf$$subs.sed
35800rm -f conf$$subs.sed
35801cat >>$CONFIG_STATUS <<_ACEOF
35802:end
35803s/|#_!!_#|//g
35804CEOF$ac_eof
35805_ACEOF
35806
35807
35808# VPATH may cause trouble with some makes, so we remove $(srcdir),
35809# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35810# trailing colons and then remove the whole line if VPATH becomes empty
35811# (actually we leave an empty line to preserve line numbers).
35812if test "x$srcdir" = x.; then
35813  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
35814s/:*\$(srcdir):*/:/
35815s/:*\${srcdir}:*/:/
35816s/:*@srcdir@:*/:/
35817s/^\([^=]*=[	 ]*\):*/\1/
35818s/:*$//
35819s/^[^=]*=[	 ]*$//
35820}'
35821fi
35822
35823cat >>$CONFIG_STATUS <<\_ACEOF
35824fi # test -n "$CONFIG_FILES"
35825
35826
35827for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35828do
35829  case $ac_tag in
35830  :[FHLC]) ac_mode=$ac_tag; continue;;
35831  esac
35832  case $ac_mode$ac_tag in
35833  :[FHL]*:*);;
35834  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35835echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35836   { (exit 1); exit 1; }; };;
35837  :[FH]-) ac_tag=-:-;;
35838  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35839  esac
35840  ac_save_IFS=$IFS
35841  IFS=:
35842  set x $ac_tag
35843  IFS=$ac_save_IFS
35844  shift
35845  ac_file=$1
35846  shift
35847
35848  case $ac_mode in
35849  :L) ac_source=$1;;
35850  :[FH])
35851    ac_file_inputs=
35852    for ac_f
35853    do
35854      case $ac_f in
35855      -) ac_f="$tmp/stdin";;
35856      *) # Look for the file first in the build tree, then in the source tree
35857	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
35858	 # because $ac_f cannot contain `:'.
35859	 test -f "$ac_f" ||
35860	   case $ac_f in
35861	   [\\/$]*) false;;
35862	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35863	   esac ||
35864	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35865echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35866   { (exit 1); exit 1; }; };;
35867      esac
35868      ac_file_inputs="$ac_file_inputs $ac_f"
35869    done
35870
35871    # Let's still pretend it is `configure' which instantiates (i.e., don't
35872    # use $as_me), people would be surprised to read:
35873    #    /* config.h.  Generated by config.status.  */
35874    configure_input="Generated from "`IFS=:
35875	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35876    if test x"$ac_file" != x-; then
35877      configure_input="$ac_file.  $configure_input"
35878      { echo "$as_me:$LINENO: creating $ac_file" >&5
35879echo "$as_me: creating $ac_file" >&6;}
35880    fi
35881
35882    case $ac_tag in
35883    *:-:* | *:-) cat >"$tmp/stdin";;
35884    esac
35885    ;;
35886  esac
35887
35888  ac_dir=`$as_dirname -- "$ac_file" ||
35889$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35890	 X"$ac_file" : 'X\(//\)[^/]' \| \
35891	 X"$ac_file" : 'X\(//\)$' \| \
35892	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35893echo X"$ac_file" |
35894    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35895	    s//\1/
35896	    q
35897	  }
35898	  /^X\(\/\/\)[^/].*/{
35899	    s//\1/
35900	    q
35901	  }
35902	  /^X\(\/\/\)$/{
35903	    s//\1/
35904	    q
35905	  }
35906	  /^X\(\/\).*/{
35907	    s//\1/
35908	    q
35909	  }
35910	  s/.*/./; q'`
35911  { as_dir="$ac_dir"
35912  case $as_dir in #(
35913  -*) as_dir=./$as_dir;;
35914  esac
35915  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35916    as_dirs=
35917    while :; do
35918      case $as_dir in #(
35919      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35920      *) as_qdir=$as_dir;;
35921      esac
35922      as_dirs="'$as_qdir' $as_dirs"
35923      as_dir=`$as_dirname -- "$as_dir" ||
35924$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35925	 X"$as_dir" : 'X\(//\)[^/]' \| \
35926	 X"$as_dir" : 'X\(//\)$' \| \
35927	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35928echo X"$as_dir" |
35929    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35930	    s//\1/
35931	    q
35932	  }
35933	  /^X\(\/\/\)[^/].*/{
35934	    s//\1/
35935	    q
35936	  }
35937	  /^X\(\/\/\)$/{
35938	    s//\1/
35939	    q
35940	  }
35941	  /^X\(\/\).*/{
35942	    s//\1/
35943	    q
35944	  }
35945	  s/.*/./; q'`
35946      test -d "$as_dir" && break
35947    done
35948    test -z "$as_dirs" || eval "mkdir $as_dirs"
35949  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35950echo "$as_me: error: cannot create directory $as_dir" >&2;}
35951   { (exit 1); exit 1; }; }; }
35952  ac_builddir=.
35953
35954case "$ac_dir" in
35955.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35956*)
35957  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35958  # A ".." for each directory in $ac_dir_suffix.
35959  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35960  case $ac_top_builddir_sub in
35961  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35962  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35963  esac ;;
35964esac
35965ac_abs_top_builddir=$ac_pwd
35966ac_abs_builddir=$ac_pwd$ac_dir_suffix
35967# for backward compatibility:
35968ac_top_builddir=$ac_top_build_prefix
35969
35970case $srcdir in
35971  .)  # We are building in place.
35972    ac_srcdir=.
35973    ac_top_srcdir=$ac_top_builddir_sub
35974    ac_abs_top_srcdir=$ac_pwd ;;
35975  [\\/]* | ?:[\\/]* )  # Absolute name.
35976    ac_srcdir=$srcdir$ac_dir_suffix;
35977    ac_top_srcdir=$srcdir
35978    ac_abs_top_srcdir=$srcdir ;;
35979  *) # Relative name.
35980    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35981    ac_top_srcdir=$ac_top_build_prefix$srcdir
35982    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35983esac
35984ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35985
35986
35987  case $ac_mode in
35988  :F)
35989  #
35990  # CONFIG_FILE
35991  #
35992
35993  case $INSTALL in
35994  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35995  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35996  esac
35997_ACEOF
35998
35999cat >>$CONFIG_STATUS <<\_ACEOF
36000# If the template does not know about datarootdir, expand it.
36001# FIXME: This hack should be removed a few years after 2.60.
36002ac_datarootdir_hack=; ac_datarootdir_seen=
36003
36004case `sed -n '/datarootdir/ {
36005  p
36006  q
36007}
36008/@datadir@/p
36009/@docdir@/p
36010/@infodir@/p
36011/@localedir@/p
36012/@mandir@/p
36013' $ac_file_inputs` in
36014*datarootdir*) ac_datarootdir_seen=yes;;
36015*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36016  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36017echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36018_ACEOF
36019cat >>$CONFIG_STATUS <<_ACEOF
36020  ac_datarootdir_hack='
36021  s&@datadir@&$datadir&g
36022  s&@docdir@&$docdir&g
36023  s&@infodir@&$infodir&g
36024  s&@localedir@&$localedir&g
36025  s&@mandir@&$mandir&g
36026    s&\\\${datarootdir}&$datarootdir&g' ;;
36027esac
36028_ACEOF
36029
36030# Neutralize VPATH when `$srcdir' = `.'.
36031# Shell code in configure.ac might set extrasub.
36032# FIXME: do we really want to maintain this feature?
36033cat >>$CONFIG_STATUS <<_ACEOF
36034  sed "$ac_vpsub
36035$extrasub
36036_ACEOF
36037cat >>$CONFIG_STATUS <<\_ACEOF
36038:t
36039/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36040s&@configure_input@&$configure_input&;t t
36041s&@top_builddir@&$ac_top_builddir_sub&;t t
36042s&@srcdir@&$ac_srcdir&;t t
36043s&@abs_srcdir@&$ac_abs_srcdir&;t t
36044s&@top_srcdir@&$ac_top_srcdir&;t t
36045s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36046s&@builddir@&$ac_builddir&;t t
36047s&@abs_builddir@&$ac_abs_builddir&;t t
36048s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36049s&@INSTALL@&$ac_INSTALL&;t t
36050$ac_datarootdir_hack
36051" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36052
36053test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36054  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36055  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36056  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36057which seems to be undefined.  Please make sure it is defined." >&5
36058echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36059which seems to be undefined.  Please make sure it is defined." >&2;}
36060
36061  rm -f "$tmp/stdin"
36062  case $ac_file in
36063  -) cat "$tmp/out"; rm -f "$tmp/out";;
36064  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36065  esac
36066 ;;
36067  :H)
36068  #
36069  # CONFIG_HEADER
36070  #
36071_ACEOF
36072
36073# Transform confdefs.h into a sed script `conftest.defines', that
36074# substitutes the proper values into config.h.in to produce config.h.
36075rm -f conftest.defines conftest.tail
36076# First, append a space to every undef/define line, to ease matching.
36077echo 's/$/ /' >conftest.defines
36078# Then, protect against being on the right side of a sed subst, or in
36079# an unquoted here document, in config.status.  If some macros were
36080# called several times there might be several #defines for the same
36081# symbol, which is useless.  But do not sort them, since the last
36082# AC_DEFINE must be honored.
36083ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36084# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36085# NAME is the cpp macro being defined, VALUE is the value it is being given.
36086# PARAMS is the parameter list in the macro definition--in most cases, it's
36087# just an empty string.
36088ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
36089ac_dB='\\)[	 (].*,\\1define\\2'
36090ac_dC=' '
36091ac_dD=' ,'
36092
36093uniq confdefs.h |
36094  sed -n '
36095	t rset
36096	:rset
36097	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
36098	t ok
36099	d
36100	:ok
36101	s/[\\&,]/\\&/g
36102	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36103	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36104  ' >>conftest.defines
36105
36106# Remove the space that was appended to ease matching.
36107# Then replace #undef with comments.  This is necessary, for
36108# example, in the case of _POSIX_SOURCE, which is predefined and required
36109# on some systems where configure will not decide to define it.
36110# (The regexp can be short, since the line contains either #define or #undef.)
36111echo 's/ $//
36112s,^[	 #]*u.*,/* & */,' >>conftest.defines
36113
36114# Break up conftest.defines:
36115ac_max_sed_lines=50
36116
36117# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36118# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36119# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36120# et cetera.
36121ac_in='$ac_file_inputs'
36122ac_out='"$tmp/out1"'
36123ac_nxt='"$tmp/out2"'
36124
36125while :
36126do
36127  # Write a here document:
36128    cat >>$CONFIG_STATUS <<_ACEOF
36129    # First, check the format of the line:
36130    cat >"\$tmp/defines.sed" <<\\CEOF
36131/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
36132/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
36133b
36134:def
36135_ACEOF
36136  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36137  echo 'CEOF
36138    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36139  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36140  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36141  grep . conftest.tail >/dev/null || break
36142  rm -f conftest.defines
36143  mv conftest.tail conftest.defines
36144done
36145rm -f conftest.defines conftest.tail
36146
36147echo "ac_result=$ac_in" >>$CONFIG_STATUS
36148cat >>$CONFIG_STATUS <<\_ACEOF
36149  if test x"$ac_file" != x-; then
36150    echo "/* $configure_input  */" >"$tmp/config.h"
36151    cat "$ac_result" >>"$tmp/config.h"
36152    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36153      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36154echo "$as_me: $ac_file is unchanged" >&6;}
36155    else
36156      rm -f $ac_file
36157      mv "$tmp/config.h" $ac_file
36158    fi
36159  else
36160    echo "/* $configure_input  */"
36161    cat "$ac_result"
36162  fi
36163  rm -f "$tmp/out12"
36164 ;;
36165
36166  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36167echo "$as_me: executing $ac_file commands" >&6;}
36168 ;;
36169  esac
36170
36171
36172  case $ac_file$ac_mode in
36173    "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36174   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
36175    "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36176   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
36177    "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36178   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
36179    "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36180   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
36181    "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36182   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36183    "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36184   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
36185    "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36186   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
36187    "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36188   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
36189    "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36190   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
36191    "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36192   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
36193    "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36194   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
36195    "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36196   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36197    "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36198   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
36199
36200  esac
36201done # for ac_tag
36202
36203
36204{ (exit 0); exit 0; }
36205_ACEOF
36206chmod +x $CONFIG_STATUS
36207ac_clean_files=$ac_clean_files_save
36208
36209
36210# configure is writing to config.log, and then calls config.status.
36211# config.status does its own redirection, appending to config.log.
36212# Unfortunately, on DOS this fails, as config.log is still kept open
36213# by configure, so config.status won't be able to write to it; its
36214# output is simply discarded.  So we exec the FD to /dev/null,
36215# effectively closing config.log, so it can be properly (re)opened and
36216# appended to by config.status.  When coming back to configure, we
36217# need to make the FD available again.
36218if test "$no_create" != yes; then
36219  ac_cs_success=:
36220  ac_config_status_args=
36221  test "$silent" = yes &&
36222    ac_config_status_args="$ac_config_status_args --quiet"
36223  exec 5>/dev/null
36224  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36225  exec 5>>config.log
36226  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36227  # would make configure fail if this is the last instruction.
36228  $ac_cs_success || { (exit 1); exit 1; }
36229fi
36230
36231#
36232# CONFIG_SUBDIRS section.
36233#
36234if test "$no_recursion" != yes; then
36235
36236  # Remove --cache-file and --srcdir arguments so they do not pile up.
36237  ac_sub_configure_args=
36238  ac_prev=
36239  eval "set x $ac_configure_args"
36240  shift
36241  for ac_arg
36242  do
36243    if test -n "$ac_prev"; then
36244      ac_prev=
36245      continue
36246    fi
36247    case $ac_arg in
36248    -cache-file | --cache-file | --cache-fil | --cache-fi \
36249    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36250      ac_prev=cache_file ;;
36251    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36252    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36253    | --c=*)
36254      ;;
36255    --config-cache | -C)
36256      ;;
36257    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36258      ac_prev=srcdir ;;
36259    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36260      ;;
36261    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36262      ac_prev=prefix ;;
36263    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36264      ;;
36265    *)
36266      case $ac_arg in
36267      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36268      esac
36269      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36270    esac
36271  done
36272
36273  # Always prepend --prefix to ensure using the same prefix
36274  # in subdir configurations.
36275  ac_arg="--prefix=$prefix"
36276  case $ac_arg in
36277  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36278  esac
36279  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36280
36281  ac_popdir=`pwd`
36282  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36283
36284    # Do not complain, so a configure script can configure whichever
36285    # parts of a large source tree are present.
36286    test -d "$srcdir/$ac_dir" || continue
36287
36288    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36289    echo "$as_me:$LINENO: $ac_msg" >&5
36290    echo "$ac_msg" >&6
36291    { as_dir="$ac_dir"
36292  case $as_dir in #(
36293  -*) as_dir=./$as_dir;;
36294  esac
36295  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36296    as_dirs=
36297    while :; do
36298      case $as_dir in #(
36299      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36300      *) as_qdir=$as_dir;;
36301      esac
36302      as_dirs="'$as_qdir' $as_dirs"
36303      as_dir=`$as_dirname -- "$as_dir" ||
36304$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36305	 X"$as_dir" : 'X\(//\)[^/]' \| \
36306	 X"$as_dir" : 'X\(//\)$' \| \
36307	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36308echo X"$as_dir" |
36309    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36310	    s//\1/
36311	    q
36312	  }
36313	  /^X\(\/\/\)[^/].*/{
36314	    s//\1/
36315	    q
36316	  }
36317	  /^X\(\/\/\)$/{
36318	    s//\1/
36319	    q
36320	  }
36321	  /^X\(\/\).*/{
36322	    s//\1/
36323	    q
36324	  }
36325	  s/.*/./; q'`
36326      test -d "$as_dir" && break
36327    done
36328    test -z "$as_dirs" || eval "mkdir $as_dirs"
36329  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36330echo "$as_me: error: cannot create directory $as_dir" >&2;}
36331   { (exit 1); exit 1; }; }; }
36332    ac_builddir=.
36333
36334case "$ac_dir" in
36335.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36336*)
36337  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36338  # A ".." for each directory in $ac_dir_suffix.
36339  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36340  case $ac_top_builddir_sub in
36341  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36342  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36343  esac ;;
36344esac
36345ac_abs_top_builddir=$ac_pwd
36346ac_abs_builddir=$ac_pwd$ac_dir_suffix
36347# for backward compatibility:
36348ac_top_builddir=$ac_top_build_prefix
36349
36350case $srcdir in
36351  .)  # We are building in place.
36352    ac_srcdir=.
36353    ac_top_srcdir=$ac_top_builddir_sub
36354    ac_abs_top_srcdir=$ac_pwd ;;
36355  [\\/]* | ?:[\\/]* )  # Absolute name.
36356    ac_srcdir=$srcdir$ac_dir_suffix;
36357    ac_top_srcdir=$srcdir
36358    ac_abs_top_srcdir=$srcdir ;;
36359  *) # Relative name.
36360    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36361    ac_top_srcdir=$ac_top_build_prefix$srcdir
36362    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36363esac
36364ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36365
36366
36367    cd "$ac_dir"
36368
36369    # Check for guested configure; otherwise get Cygnus style configure.
36370    if test -f "$ac_srcdir/configure.gnu"; then
36371      ac_sub_configure=$ac_srcdir/configure.gnu
36372    elif test -f "$ac_srcdir/configure"; then
36373      ac_sub_configure=$ac_srcdir/configure
36374    elif test -f "$ac_srcdir/configure.in"; then
36375      # This should be Cygnus configure.
36376      ac_sub_configure=$ac_aux_dir/configure
36377    else
36378      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36379echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36380      ac_sub_configure=
36381    fi
36382
36383    # The recursion is here.
36384    if test -n "$ac_sub_configure"; then
36385      # Make the cache file name correct relative to the subdirectory.
36386      case $cache_file in
36387      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36388      *) # Relative name.
36389	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36390      esac
36391
36392      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36393echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36394      # The eval makes quoting arguments work.
36395      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36396	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36397	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36398echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36399   { (exit 1); exit 1; }; }
36400    fi
36401
36402    cd "$ac_popdir"
36403  done
36404fi
36405
36406