configure revision 53b2486c8f3034a0cde583a80d8bb2edac73025e
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60 for llvm 2.1svn.
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-2007 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.1svn'
719PACKAGE_STRING='llvm 2.1svn'
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
830CVSBUILD
831ENABLE_OPTIMIZED
832DISABLE_ASSERTIONS
833ENABLE_EXPENSIVE_CHECKS
834EXPENSIVE_CHECKS
835DEBUG_RUNTIME
836JIT
837TARGET_HAS_JIT
838ENABLE_DOXYGEN
839ENABLE_THREADS
840ENABLE_PIC
841TARGETS_TO_BUILD
842ENABLE_CBE_PRINTF_A
843EXTRA_OPTIONS
844CXX
845CXXFLAGS
846ac_ct_CXX
847LEX
848LEXLIB
849LEX_OUTPUT_ROOT
850FLEX
851YACC
852YFLAGS
853BISON
854NM
855ifGNUmake
856LN_S
857CMP
858CP
859DATE
860FIND
861MKDIR
862MV
863RANLIB
864RM
865SED
866TAR
867BINPWD
868GRAPHVIZ
869DOT
870GV
871DOTTY
872PERL
873HAVE_PERL
874INSTALL_PROGRAM
875INSTALL_SCRIPT
876INSTALL_DATA
877BZIP2
878DOXYGEN
879GROFF
880GZIP
881POD2HTML
882POD2MAN
883RUNTEST
884TCLSH
885ZIP
886INSTALL_LTDL_TRUE
887INSTALL_LTDL_FALSE
888CONVENIENCE_LTDL_TRUE
889CONVENIENCE_LTDL_FALSE
890LIBADD_DL
891ECHO
892AR
893STRIP
894CXXCPP
895F77
896FFLAGS
897ac_ct_F77
898LIBTOOL
899ETAGSFLAGS
900LLVMGCC
901LLVMGXX
902USE_UDIS86
903HAVE_PTHREAD
904HUGE_VAL_SANITY
905ALLOCA
906MMAP_FILE
907LLVMCC1
908LLVMCC1PLUS
909LLVMGCCDIR
910LLVMGCCLIBEXEC
911LLVMGCC_VERSION
912LLVMGCC_MAJVERS
913LLVMGCC_LANGS
914SHLIBEXT
915LLVM_PREFIX
916LLVM_BINDIR
917LLVM_LIBDIR
918LLVM_DATADIR
919LLVM_DOCSDIR
920LLVM_ETCDIR
921LLVM_INCLUDEDIR
922LLVM_INFODIR
923LLVM_MANDIR
924LLVM_CONFIGTIME
925LIBOBJS
926LTLIBOBJS'
927ac_subst_files=''
928      ac_precious_vars='build_alias
929host_alias
930target_alias
931CC
932CFLAGS
933LDFLAGS
934CPPFLAGS
935CPP
936CXX
937CXXFLAGS
938CCC
939YACC
940YFLAGS
941CXXCPP
942F77
943FFLAGS'
944ac_subdirs_all='projects/sample
945projects/privbracket
946projects/llvm-stacker
947projects/llvm-test
948projects/llvm-reopt
949projects/llvm-gcc
950projects/llvm-java
951projects/llvm-tv
952projects/llvm-poolalloc
953projects/llvm-kernel'
954
955# Initialize some variables set by options.
956ac_init_help=
957ac_init_version=false
958# The variables have the same names as the options, with
959# dashes changed to underlines.
960cache_file=/dev/null
961exec_prefix=NONE
962no_create=
963no_recursion=
964prefix=NONE
965program_prefix=NONE
966program_suffix=NONE
967program_transform_name=s,x,x,
968silent=
969site=
970srcdir=
971verbose=
972x_includes=NONE
973x_libraries=NONE
974
975# Installation directory options.
976# These are left unexpanded so users can "make install exec_prefix=/foo"
977# and all the variables that are supposed to be based on exec_prefix
978# by default will actually change.
979# Use braces instead of parens because sh, perl, etc. also accept them.
980# (The list follows the same order as the GNU Coding Standards.)
981bindir='${exec_prefix}/bin'
982sbindir='${exec_prefix}/sbin'
983libexecdir='${exec_prefix}/libexec'
984datarootdir='${prefix}/share'
985datadir='${datarootdir}'
986sysconfdir='${prefix}/etc'
987sharedstatedir='${prefix}/com'
988localstatedir='${prefix}/var'
989includedir='${prefix}/include'
990oldincludedir='/usr/include'
991docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
992infodir='${datarootdir}/info'
993htmldir='${docdir}'
994dvidir='${docdir}'
995pdfdir='${docdir}'
996psdir='${docdir}'
997libdir='${exec_prefix}/lib'
998localedir='${datarootdir}/locale'
999mandir='${datarootdir}/man'
1000
1001ac_prev=
1002ac_dashdash=
1003for ac_option
1004do
1005  # If the previous option needs an argument, assign it.
1006  if test -n "$ac_prev"; then
1007    eval $ac_prev=\$ac_option
1008    ac_prev=
1009    continue
1010  fi
1011
1012  case $ac_option in
1013  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1014  *)	ac_optarg=yes ;;
1015  esac
1016
1017  # Accept the important Cygnus configure options, so we can diagnose typos.
1018
1019  case $ac_dashdash$ac_option in
1020  --)
1021    ac_dashdash=yes ;;
1022
1023  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1024    ac_prev=bindir ;;
1025  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026    bindir=$ac_optarg ;;
1027
1028  -build | --build | --buil | --bui | --bu)
1029    ac_prev=build_alias ;;
1030  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031    build_alias=$ac_optarg ;;
1032
1033  -cache-file | --cache-file | --cache-fil | --cache-fi \
1034  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035    ac_prev=cache_file ;;
1036  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1038    cache_file=$ac_optarg ;;
1039
1040  --config-cache | -C)
1041    cache_file=config.cache ;;
1042
1043  -datadir | --datadir | --datadi | --datad)
1044    ac_prev=datadir ;;
1045  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1046    datadir=$ac_optarg ;;
1047
1048  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049  | --dataroo | --dataro | --datar)
1050    ac_prev=datarootdir ;;
1051  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053    datarootdir=$ac_optarg ;;
1054
1055  -disable-* | --disable-*)
1056    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057    # Reject names that are not valid shell variable names.
1058    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1059      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1060   { (exit 1); exit 1; }; }
1061    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1062    eval enable_$ac_feature=no ;;
1063
1064  -docdir | --docdir | --docdi | --doc | --do)
1065    ac_prev=docdir ;;
1066  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1067    docdir=$ac_optarg ;;
1068
1069  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1070    ac_prev=dvidir ;;
1071  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1072    dvidir=$ac_optarg ;;
1073
1074  -enable-* | --enable-*)
1075    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1076    # Reject names that are not valid shell variable names.
1077    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1078      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1079   { (exit 1); exit 1; }; }
1080    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1081    eval enable_$ac_feature=\$ac_optarg ;;
1082
1083  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1084  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1085  | --exec | --exe | --ex)
1086    ac_prev=exec_prefix ;;
1087  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1088  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1089  | --exec=* | --exe=* | --ex=*)
1090    exec_prefix=$ac_optarg ;;
1091
1092  -gas | --gas | --ga | --g)
1093    # Obsolete; use --with-gas.
1094    with_gas=yes ;;
1095
1096  -help | --help | --hel | --he | -h)
1097    ac_init_help=long ;;
1098  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1099    ac_init_help=recursive ;;
1100  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1101    ac_init_help=short ;;
1102
1103  -host | --host | --hos | --ho)
1104    ac_prev=host_alias ;;
1105  -host=* | --host=* | --hos=* | --ho=*)
1106    host_alias=$ac_optarg ;;
1107
1108  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1109    ac_prev=htmldir ;;
1110  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1111  | --ht=*)
1112    htmldir=$ac_optarg ;;
1113
1114  -includedir | --includedir | --includedi | --included | --include \
1115  | --includ | --inclu | --incl | --inc)
1116    ac_prev=includedir ;;
1117  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1118  | --includ=* | --inclu=* | --incl=* | --inc=*)
1119    includedir=$ac_optarg ;;
1120
1121  -infodir | --infodir | --infodi | --infod | --info | --inf)
1122    ac_prev=infodir ;;
1123  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1124    infodir=$ac_optarg ;;
1125
1126  -libdir | --libdir | --libdi | --libd)
1127    ac_prev=libdir ;;
1128  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1129    libdir=$ac_optarg ;;
1130
1131  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1132  | --libexe | --libex | --libe)
1133    ac_prev=libexecdir ;;
1134  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1135  | --libexe=* | --libex=* | --libe=*)
1136    libexecdir=$ac_optarg ;;
1137
1138  -localedir | --localedir | --localedi | --localed | --locale)
1139    ac_prev=localedir ;;
1140  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1141    localedir=$ac_optarg ;;
1142
1143  -localstatedir | --localstatedir | --localstatedi | --localstated \
1144  | --localstate | --localstat | --localsta | --localst | --locals)
1145    ac_prev=localstatedir ;;
1146  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1147  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1148    localstatedir=$ac_optarg ;;
1149
1150  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1151    ac_prev=mandir ;;
1152  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1153    mandir=$ac_optarg ;;
1154
1155  -nfp | --nfp | --nf)
1156    # Obsolete; use --without-fp.
1157    with_fp=no ;;
1158
1159  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1160  | --no-cr | --no-c | -n)
1161    no_create=yes ;;
1162
1163  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1164  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1165    no_recursion=yes ;;
1166
1167  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1168  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1169  | --oldin | --oldi | --old | --ol | --o)
1170    ac_prev=oldincludedir ;;
1171  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1172  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1173  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1174    oldincludedir=$ac_optarg ;;
1175
1176  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1177    ac_prev=prefix ;;
1178  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1179    prefix=$ac_optarg ;;
1180
1181  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1182  | --program-pre | --program-pr | --program-p)
1183    ac_prev=program_prefix ;;
1184  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1185  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1186    program_prefix=$ac_optarg ;;
1187
1188  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1189  | --program-suf | --program-su | --program-s)
1190    ac_prev=program_suffix ;;
1191  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1192  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1193    program_suffix=$ac_optarg ;;
1194
1195  -program-transform-name | --program-transform-name \
1196  | --program-transform-nam | --program-transform-na \
1197  | --program-transform-n | --program-transform- \
1198  | --program-transform | --program-transfor \
1199  | --program-transfo | --program-transf \
1200  | --program-trans | --program-tran \
1201  | --progr-tra | --program-tr | --program-t)
1202    ac_prev=program_transform_name ;;
1203  -program-transform-name=* | --program-transform-name=* \
1204  | --program-transform-nam=* | --program-transform-na=* \
1205  | --program-transform-n=* | --program-transform-=* \
1206  | --program-transform=* | --program-transfor=* \
1207  | --program-transfo=* | --program-transf=* \
1208  | --program-trans=* | --program-tran=* \
1209  | --progr-tra=* | --program-tr=* | --program-t=*)
1210    program_transform_name=$ac_optarg ;;
1211
1212  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1213    ac_prev=pdfdir ;;
1214  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1215    pdfdir=$ac_optarg ;;
1216
1217  -psdir | --psdir | --psdi | --psd | --ps)
1218    ac_prev=psdir ;;
1219  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1220    psdir=$ac_optarg ;;
1221
1222  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223  | -silent | --silent | --silen | --sile | --sil)
1224    silent=yes ;;
1225
1226  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1227    ac_prev=sbindir ;;
1228  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1229  | --sbi=* | --sb=*)
1230    sbindir=$ac_optarg ;;
1231
1232  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1233  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1234  | --sharedst | --shareds | --shared | --share | --shar \
1235  | --sha | --sh)
1236    ac_prev=sharedstatedir ;;
1237  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1238  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1239  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1240  | --sha=* | --sh=*)
1241    sharedstatedir=$ac_optarg ;;
1242
1243  -site | --site | --sit)
1244    ac_prev=site ;;
1245  -site=* | --site=* | --sit=*)
1246    site=$ac_optarg ;;
1247
1248  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1249    ac_prev=srcdir ;;
1250  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1251    srcdir=$ac_optarg ;;
1252
1253  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1254  | --syscon | --sysco | --sysc | --sys | --sy)
1255    ac_prev=sysconfdir ;;
1256  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1257  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1258    sysconfdir=$ac_optarg ;;
1259
1260  -target | --target | --targe | --targ | --tar | --ta | --t)
1261    ac_prev=target_alias ;;
1262  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1263    target_alias=$ac_optarg ;;
1264
1265  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1266    verbose=yes ;;
1267
1268  -version | --version | --versio | --versi | --vers | -V)
1269    ac_init_version=: ;;
1270
1271  -with-* | --with-*)
1272    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1273    # Reject names that are not valid shell variable names.
1274    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1275      { echo "$as_me: error: invalid package name: $ac_package" >&2
1276   { (exit 1); exit 1; }; }
1277    ac_package=`echo $ac_package| sed 's/-/_/g'`
1278    eval with_$ac_package=\$ac_optarg ;;
1279
1280  -without-* | --without-*)
1281    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1282    # Reject names that are not valid shell variable names.
1283    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1284      { echo "$as_me: error: invalid package name: $ac_package" >&2
1285   { (exit 1); exit 1; }; }
1286    ac_package=`echo $ac_package | sed 's/-/_/g'`
1287    eval with_$ac_package=no ;;
1288
1289  --x)
1290    # Obsolete; use --with-x.
1291    with_x=yes ;;
1292
1293  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1294  | --x-incl | --x-inc | --x-in | --x-i)
1295    ac_prev=x_includes ;;
1296  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1297  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1298    x_includes=$ac_optarg ;;
1299
1300  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1301  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1302    ac_prev=x_libraries ;;
1303  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1304  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1305    x_libraries=$ac_optarg ;;
1306
1307  -*) { echo "$as_me: error: unrecognized option: $ac_option
1308Try \`$0 --help' for more information." >&2
1309   { (exit 1); exit 1; }; }
1310    ;;
1311
1312  *=*)
1313    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1314    # Reject names that are not valid shell variable names.
1315    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1316      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1317   { (exit 1); exit 1; }; }
1318    eval $ac_envvar=\$ac_optarg
1319    export $ac_envvar ;;
1320
1321  *)
1322    # FIXME: should be removed in autoconf 3.0.
1323    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1324    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1325      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1326    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1327    ;;
1328
1329  esac
1330done
1331
1332if test -n "$ac_prev"; then
1333  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1334  { echo "$as_me: error: missing argument to $ac_option" >&2
1335   { (exit 1); exit 1; }; }
1336fi
1337
1338# Be sure to have absolute directory names.
1339for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1340		datadir sysconfdir sharedstatedir localstatedir includedir \
1341		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1342		libdir localedir mandir
1343do
1344  eval ac_val=\$$ac_var
1345  case $ac_val in
1346    [\\/$]* | ?:[\\/]* )  continue;;
1347    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1348  esac
1349  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1350   { (exit 1); exit 1; }; }
1351done
1352
1353# There might be people who depend on the old broken behavior: `$host'
1354# used to hold the argument of --host etc.
1355# FIXME: To remove some day.
1356build=$build_alias
1357host=$host_alias
1358target=$target_alias
1359
1360# FIXME: To remove some day.
1361if test "x$host_alias" != x; then
1362  if test "x$build_alias" = x; then
1363    cross_compiling=maybe
1364    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1365    If a cross compiler is detected then cross compile mode will be used." >&2
1366  elif test "x$build_alias" != "x$host_alias"; then
1367    cross_compiling=yes
1368  fi
1369fi
1370
1371ac_tool_prefix=
1372test -n "$host_alias" && ac_tool_prefix=$host_alias-
1373
1374test "$silent" = yes && exec 6>/dev/null
1375
1376
1377ac_pwd=`pwd` && test -n "$ac_pwd" &&
1378ac_ls_di=`ls -di .` &&
1379ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1380  { echo "$as_me: error: Working directory cannot be determined" >&2
1381   { (exit 1); exit 1; }; }
1382test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1383  { echo "$as_me: error: pwd does not report name of working directory" >&2
1384   { (exit 1); exit 1; }; }
1385
1386
1387# Find the source files, if location was not specified.
1388if test -z "$srcdir"; then
1389  ac_srcdir_defaulted=yes
1390  # Try the directory containing this script, then the parent directory.
1391  ac_confdir=`$as_dirname -- "$0" ||
1392$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1393	 X"$0" : 'X\(//\)[^/]' \| \
1394	 X"$0" : 'X\(//\)$' \| \
1395	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1396echo X"$0" |
1397    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1398	    s//\1/
1399	    q
1400	  }
1401	  /^X\(\/\/\)[^/].*/{
1402	    s//\1/
1403	    q
1404	  }
1405	  /^X\(\/\/\)$/{
1406	    s//\1/
1407	    q
1408	  }
1409	  /^X\(\/\).*/{
1410	    s//\1/
1411	    q
1412	  }
1413	  s/.*/./; q'`
1414  srcdir=$ac_confdir
1415  if test ! -r "$srcdir/$ac_unique_file"; then
1416    srcdir=..
1417  fi
1418else
1419  ac_srcdir_defaulted=no
1420fi
1421if test ! -r "$srcdir/$ac_unique_file"; then
1422  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1423  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1424   { (exit 1); exit 1; }; }
1425fi
1426ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1427ac_abs_confdir=`(
1428	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1429   { (exit 1); exit 1; }; }
1430	pwd)`
1431# When building in place, set srcdir=.
1432if test "$ac_abs_confdir" = "$ac_pwd"; then
1433  srcdir=.
1434fi
1435# Remove unnecessary trailing slashes from srcdir.
1436# Double slashes in file names in object file debugging info
1437# mess up M-x gdb in Emacs.
1438case $srcdir in
1439*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1440esac
1441for ac_var in $ac_precious_vars; do
1442  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1443  eval ac_env_${ac_var}_value=\$${ac_var}
1444  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1445  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1446done
1447
1448#
1449# Report the --help message.
1450#
1451if test "$ac_init_help" = "long"; then
1452  # Omit some internal or obsolete options to make the list less imposing.
1453  # This message is too long to be a string in the A/UX 3.1 sh.
1454  cat <<_ACEOF
1455\`configure' configures llvm 2.1svn to adapt to many kinds of systems.
1456
1457Usage: $0 [OPTION]... [VAR=VALUE]...
1458
1459To assign environment variables (e.g., CC, CFLAGS...), specify them as
1460VAR=VALUE.  See below for descriptions of some of the useful variables.
1461
1462Defaults for the options are specified in brackets.
1463
1464Configuration:
1465  -h, --help              display this help and exit
1466      --help=short        display options specific to this package
1467      --help=recursive    display the short help of all the included packages
1468  -V, --version           display version information and exit
1469  -q, --quiet, --silent   do not print \`checking...' messages
1470      --cache-file=FILE   cache test results in FILE [disabled]
1471  -C, --config-cache      alias for \`--cache-file=config.cache'
1472  -n, --no-create         do not create output files
1473      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1474
1475Installation directories:
1476  --prefix=PREFIX         install architecture-independent files in PREFIX
1477			  [$ac_default_prefix]
1478  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1479			  [PREFIX]
1480
1481By default, \`make install' will install all the files in
1482\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1483an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1484for instance \`--prefix=\$HOME'.
1485
1486For better control, use the options below.
1487
1488Fine tuning of the installation directories:
1489  --bindir=DIR           user executables [EPREFIX/bin]
1490  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1491  --libexecdir=DIR       program executables [EPREFIX/libexec]
1492  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1493  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1494  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1495  --libdir=DIR           object code libraries [EPREFIX/lib]
1496  --includedir=DIR       C header files [PREFIX/include]
1497  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1498  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1499  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1500  --infodir=DIR          info documentation [DATAROOTDIR/info]
1501  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1502  --mandir=DIR           man documentation [DATAROOTDIR/man]
1503  --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1504  --htmldir=DIR          html documentation [DOCDIR]
1505  --dvidir=DIR           dvi documentation [DOCDIR]
1506  --pdfdir=DIR           pdf documentation [DOCDIR]
1507  --psdir=DIR            ps documentation [DOCDIR]
1508_ACEOF
1509
1510  cat <<\_ACEOF
1511
1512System types:
1513  --build=BUILD     configure for building on BUILD [guessed]
1514  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1515  --target=TARGET   configure for building compilers for TARGET [HOST]
1516_ACEOF
1517fi
1518
1519if test -n "$ac_init_help"; then
1520  case $ac_init_help in
1521     short | recursive ) echo "Configuration of llvm 2.1svn:";;
1522   esac
1523  cat <<\_ACEOF
1524
1525Optional Features:
1526  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1527  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1528  --enable-optimized
1529  --enable-assertions
1530  --enable-expensive-checks
1531
1532  --enable-debug-runtime
1533  --enable-jit            Enable Just In Time Compiling (default is YES)
1534  --enable-doxygen        Build doxygen documentation (default is NO)
1535  --enable-threads        Use threads if available (default is YES)
1536  --enable-pic            Build LLVM with Position Independent Code (default
1537                          is NO)
1538  --enable-targets        Build specific host targets:
1539                          all,host-only,{target-name} (default=all)
1540  --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1541                          %a (default is YES)
1542  --enable-ltdl-install   install libltdl
1543  --enable-shared[=PKGS]  build shared libraries
1544                          [default=enable_shared_default]
1545  --enable-static[=PKGS]  build static libraries
1546                          [default=enable_static_default]
1547  --enable-fast-install[=PKGS]
1548                          optimize for fast installation
1549                          [default=enable_Fast_install_default]
1550  --disable-libtool-lock  avoid locking (might break parallel builds)
1551
1552Optional Packages:
1553  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1554  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1555  --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1556                          searches PATH)
1557  --with-extra-options    Specify addtional options to compile LLVM with
1558  --with-tclinclude       directory where tcl headers are
1559  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1560  --with-pic              try to use only PIC/non-PIC objects [default=use
1561                          both]
1562  --with-tags[=TAGS]      include additional configurations [automatic]
1563  --with-udis86=<path>    Use udis86 external x86 disassembler library
1564
1565Some influential environment variables:
1566  CC          C compiler command
1567  CFLAGS      C compiler flags
1568  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1569              nonstandard directory <lib dir>
1570  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1571              you have headers in a nonstandard directory <include dir>
1572  CPP         C preprocessor
1573  CXX         C++ compiler command
1574  CXXFLAGS    C++ compiler flags
1575  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1576              the first program found out of: `bison -y', `byacc', `yacc'.
1577  YFLAGS      The list of arguments that will be passed by default to $YACC.
1578              This script will default YFLAGS to the empty string to avoid a
1579              default value of `-d' given by some make applications.
1580  CXXCPP      C++ preprocessor
1581  F77         Fortran 77 compiler command
1582  FFLAGS      Fortran 77 compiler flags
1583
1584Use these variables to override the choices made by `configure' or to help
1585it to find libraries and programs with nonstandard names/locations.
1586
1587Report bugs to <llvmbugs@cs.uiuc.edu>.
1588_ACEOF
1589ac_status=$?
1590fi
1591
1592if test "$ac_init_help" = "recursive"; then
1593  # If there are subdirs, report their specific --help.
1594  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1595    test -d "$ac_dir" || continue
1596    ac_builddir=.
1597
1598case "$ac_dir" in
1599.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1600*)
1601  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1602  # A ".." for each directory in $ac_dir_suffix.
1603  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1604  case $ac_top_builddir_sub in
1605  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1606  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1607  esac ;;
1608esac
1609ac_abs_top_builddir=$ac_pwd
1610ac_abs_builddir=$ac_pwd$ac_dir_suffix
1611# for backward compatibility:
1612ac_top_builddir=$ac_top_build_prefix
1613
1614case $srcdir in
1615  .)  # We are building in place.
1616    ac_srcdir=.
1617    ac_top_srcdir=$ac_top_builddir_sub
1618    ac_abs_top_srcdir=$ac_pwd ;;
1619  [\\/]* | ?:[\\/]* )  # Absolute name.
1620    ac_srcdir=$srcdir$ac_dir_suffix;
1621    ac_top_srcdir=$srcdir
1622    ac_abs_top_srcdir=$srcdir ;;
1623  *) # Relative name.
1624    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1625    ac_top_srcdir=$ac_top_build_prefix$srcdir
1626    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1627esac
1628ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1629
1630    cd "$ac_dir" || { ac_status=$?; continue; }
1631    # Check for guested configure.
1632    if test -f "$ac_srcdir/configure.gnu"; then
1633      echo &&
1634      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1635    elif test -f "$ac_srcdir/configure"; then
1636      echo &&
1637      $SHELL "$ac_srcdir/configure" --help=recursive
1638    else
1639      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1640    fi || ac_status=$?
1641    cd "$ac_pwd" || { ac_status=$?; break; }
1642  done
1643fi
1644
1645test -n "$ac_init_help" && exit $ac_status
1646if $ac_init_version; then
1647  cat <<\_ACEOF
1648llvm configure 2.1svn
1649generated by GNU Autoconf 2.60
1650
1651Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16522002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1653This configure script is free software; the Free Software Foundation
1654gives unlimited permission to copy, distribute and modify it.
1655
1656Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
1657_ACEOF
1658  exit
1659fi
1660cat >config.log <<_ACEOF
1661This file contains any messages produced by compilers while
1662running configure, to aid debugging if configure makes a mistake.
1663
1664It was created by llvm $as_me 2.1svn, which was
1665generated by GNU Autoconf 2.60.  Invocation command line was
1666
1667  $ $0 $@
1668
1669_ACEOF
1670exec 5>>config.log
1671{
1672cat <<_ASUNAME
1673## --------- ##
1674## Platform. ##
1675## --------- ##
1676
1677hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1678uname -m = `(uname -m) 2>/dev/null || echo unknown`
1679uname -r = `(uname -r) 2>/dev/null || echo unknown`
1680uname -s = `(uname -s) 2>/dev/null || echo unknown`
1681uname -v = `(uname -v) 2>/dev/null || echo unknown`
1682
1683/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1684/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1685
1686/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1687/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1688/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1689/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1690/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1691/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1692/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1693
1694_ASUNAME
1695
1696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697for as_dir in $PATH
1698do
1699  IFS=$as_save_IFS
1700  test -z "$as_dir" && as_dir=.
1701  echo "PATH: $as_dir"
1702done
1703IFS=$as_save_IFS
1704
1705} >&5
1706
1707cat >&5 <<_ACEOF
1708
1709
1710## ----------- ##
1711## Core tests. ##
1712## ----------- ##
1713
1714_ACEOF
1715
1716
1717# Keep a trace of the command line.
1718# Strip out --no-create and --no-recursion so they do not pile up.
1719# Strip out --silent because we don't want to record it for future runs.
1720# Also quote any args containing shell meta-characters.
1721# Make two passes to allow for proper duplicate-argument suppression.
1722ac_configure_args=
1723ac_configure_args0=
1724ac_configure_args1=
1725ac_must_keep_next=false
1726for ac_pass in 1 2
1727do
1728  for ac_arg
1729  do
1730    case $ac_arg in
1731    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1732    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1733    | -silent | --silent | --silen | --sile | --sil)
1734      continue ;;
1735    *\'*)
1736      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1737    esac
1738    case $ac_pass in
1739    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1740    2)
1741      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1742      if test $ac_must_keep_next = true; then
1743	ac_must_keep_next=false # Got value, back to normal.
1744      else
1745	case $ac_arg in
1746	  *=* | --config-cache | -C | -disable-* | --disable-* \
1747	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1748	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1749	  | -with-* | --with-* | -without-* | --without-* | --x)
1750	    case "$ac_configure_args0 " in
1751	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1752	    esac
1753	    ;;
1754	  -* ) ac_must_keep_next=true ;;
1755	esac
1756      fi
1757      ac_configure_args="$ac_configure_args '$ac_arg'"
1758      ;;
1759    esac
1760  done
1761done
1762$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1763$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1764
1765# When interrupted or exit'd, cleanup temporary files, and complete
1766# config.log.  We remove comments because anyway the quotes in there
1767# would cause problems or look ugly.
1768# WARNING: Use '\'' to represent an apostrophe within the trap.
1769# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1770trap 'exit_status=$?
1771  # Save into config.log some information that might help in debugging.
1772  {
1773    echo
1774
1775    cat <<\_ASBOX
1776## ---------------- ##
1777## Cache variables. ##
1778## ---------------- ##
1779_ASBOX
1780    echo
1781    # The following way of writing the cache mishandles newlines in values,
1782(
1783  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1784    eval ac_val=\$$ac_var
1785    case $ac_val in #(
1786    *${as_nl}*)
1787      case $ac_var in #(
1788      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1789echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1790      esac
1791      case $ac_var in #(
1792      _ | IFS | as_nl) ;; #(
1793      *) $as_unset $ac_var ;;
1794      esac ;;
1795    esac
1796  done
1797  (set) 2>&1 |
1798    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1799    *${as_nl}ac_space=\ *)
1800      sed -n \
1801	"s/'\''/'\''\\\\'\'''\''/g;
1802	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1803      ;; #(
1804    *)
1805      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1806      ;;
1807    esac |
1808    sort
1809)
1810    echo
1811
1812    cat <<\_ASBOX
1813## ----------------- ##
1814## Output variables. ##
1815## ----------------- ##
1816_ASBOX
1817    echo
1818    for ac_var in $ac_subst_vars
1819    do
1820      eval ac_val=\$$ac_var
1821      case $ac_val in
1822      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1823      esac
1824      echo "$ac_var='\''$ac_val'\''"
1825    done | sort
1826    echo
1827
1828    if test -n "$ac_subst_files"; then
1829      cat <<\_ASBOX
1830## ------------------- ##
1831## File substitutions. ##
1832## ------------------- ##
1833_ASBOX
1834      echo
1835      for ac_var in $ac_subst_files
1836      do
1837	eval ac_val=\$$ac_var
1838	case $ac_val in
1839	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1840	esac
1841	echo "$ac_var='\''$ac_val'\''"
1842      done | sort
1843      echo
1844    fi
1845
1846    if test -s confdefs.h; then
1847      cat <<\_ASBOX
1848## ----------- ##
1849## confdefs.h. ##
1850## ----------- ##
1851_ASBOX
1852      echo
1853      cat confdefs.h
1854      echo
1855    fi
1856    test "$ac_signal" != 0 &&
1857      echo "$as_me: caught signal $ac_signal"
1858    echo "$as_me: exit $exit_status"
1859  } >&5
1860  rm -f core *.core core.conftest.* &&
1861    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1862    exit $exit_status
1863' 0
1864for ac_signal in 1 2 13 15; do
1865  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1866done
1867ac_signal=0
1868
1869# confdefs.h avoids OS command line length limits that DEFS can exceed.
1870rm -f -r conftest* confdefs.h
1871
1872# Predefined preprocessor variables.
1873
1874cat >>confdefs.h <<_ACEOF
1875#define PACKAGE_NAME "$PACKAGE_NAME"
1876_ACEOF
1877
1878
1879cat >>confdefs.h <<_ACEOF
1880#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1881_ACEOF
1882
1883
1884cat >>confdefs.h <<_ACEOF
1885#define PACKAGE_VERSION "$PACKAGE_VERSION"
1886_ACEOF
1887
1888
1889cat >>confdefs.h <<_ACEOF
1890#define PACKAGE_STRING "$PACKAGE_STRING"
1891_ACEOF
1892
1893
1894cat >>confdefs.h <<_ACEOF
1895#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1896_ACEOF
1897
1898
1899# Let the site file select an alternate cache file if it wants to.
1900# Prefer explicitly selected file to automatically selected ones.
1901if test -n "$CONFIG_SITE"; then
1902  set x "$CONFIG_SITE"
1903elif test "x$prefix" != xNONE; then
1904  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1905else
1906  set x "$ac_default_prefix/share/config.site" \
1907	"$ac_default_prefix/etc/config.site"
1908fi
1909shift
1910for ac_site_file
1911do
1912  if test -r "$ac_site_file"; then
1913    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1914echo "$as_me: loading site script $ac_site_file" >&6;}
1915    sed 's/^/| /' "$ac_site_file" >&5
1916    . "$ac_site_file"
1917  fi
1918done
1919
1920if test -r "$cache_file"; then
1921  # Some versions of bash will fail to source /dev/null (special
1922  # files actually), so we avoid doing that.
1923  if test -f "$cache_file"; then
1924    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1925echo "$as_me: loading cache $cache_file" >&6;}
1926    case $cache_file in
1927      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1928      *)                      . "./$cache_file";;
1929    esac
1930  fi
1931else
1932  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1933echo "$as_me: creating cache $cache_file" >&6;}
1934  >$cache_file
1935fi
1936
1937# Check that the precious variables saved in the cache have kept the same
1938# value.
1939ac_cache_corrupted=false
1940for ac_var in $ac_precious_vars; do
1941  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1942  eval ac_new_set=\$ac_env_${ac_var}_set
1943  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1944  eval ac_new_val=\$ac_env_${ac_var}_value
1945  case $ac_old_set,$ac_new_set in
1946    set,)
1947      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1948echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1949      ac_cache_corrupted=: ;;
1950    ,set)
1951      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1952echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1953      ac_cache_corrupted=: ;;
1954    ,);;
1955    *)
1956      if test "x$ac_old_val" != "x$ac_new_val"; then
1957	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1958echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1959	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1960echo "$as_me:   former value:  $ac_old_val" >&2;}
1961	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1962echo "$as_me:   current value: $ac_new_val" >&2;}
1963	ac_cache_corrupted=:
1964      fi;;
1965  esac
1966  # Pass precious variables to config.status.
1967  if test "$ac_new_set" = set; then
1968    case $ac_new_val in
1969    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1970    *) ac_arg=$ac_var=$ac_new_val ;;
1971    esac
1972    case " $ac_configure_args " in
1973      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1974      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1975    esac
1976  fi
1977done
1978if $ac_cache_corrupted; then
1979  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1980echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1981  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1982echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1983   { (exit 1); exit 1; }; }
1984fi
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010ac_ext=c
2011ac_cpp='$CPP $CPPFLAGS'
2012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2014ac_compiler_gnu=$ac_cv_c_compiler_gnu
2015
2016
2017
2018LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
2019
2020
2021
2022
2023
2024
2025
2026ac_aux_dir=
2027for ac_dir in autoconf "$srcdir"/autoconf; do
2028  if test -f "$ac_dir/install-sh"; then
2029    ac_aux_dir=$ac_dir
2030    ac_install_sh="$ac_aux_dir/install-sh -c"
2031    break
2032  elif test -f "$ac_dir/install.sh"; then
2033    ac_aux_dir=$ac_dir
2034    ac_install_sh="$ac_aux_dir/install.sh -c"
2035    break
2036  elif test -f "$ac_dir/shtool"; then
2037    ac_aux_dir=$ac_dir
2038    ac_install_sh="$ac_aux_dir/shtool install -c"
2039    break
2040  fi
2041done
2042if test -z "$ac_aux_dir"; then
2043  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2044echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2045   { (exit 1); exit 1; }; }
2046fi
2047
2048# These three variables are undocumented and unsupported,
2049# and are intended to be withdrawn in a future Autoconf release.
2050# They can cause serious problems if a builder's source tree is in a directory
2051# whose full name contains unusual characters.
2052ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2053ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2054ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2055
2056
2057
2058if test ${srcdir} != "." ; then
2059  if test -f ${srcdir}/include/llvm/Config/config.h ; then
2060    { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2061echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2062   { (exit 1); exit 1; }; }
2063  fi
2064fi
2065
2066for i in `ls ${srcdir}/projects`
2067do
2068  if test -d ${srcdir}/projects/${i} ; then
2069    case ${i} in
2070      CVS) ;;
2071      sample)       subdirs="$subdirs projects/sample"
2072    ;;
2073      privbracket)  subdirs="$subdirs projects/privbracket"
2074 ;;
2075      llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2076 ;;
2077      llvm-test)    subdirs="$subdirs projects/llvm-test"
2078 ;;
2079      llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2080;;
2081      llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2082  ;;
2083      llvm-java)    subdirs="$subdirs projects/llvm-java"
2084 ;;
2085      llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2086   ;;
2087      llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2088 ;;
2089      llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2090 ;;
2091      *)
2092        { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2093echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2094        ;;
2095    esac
2096  fi
2097done
2098
2099
2100# Make sure we can run config.sub.
2101$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2102  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2103echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2104   { (exit 1); exit 1; }; }
2105
2106{ echo "$as_me:$LINENO: checking build system type" >&5
2107echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2108if test "${ac_cv_build+set}" = set; then
2109  echo $ECHO_N "(cached) $ECHO_C" >&6
2110else
2111  ac_build_alias=$build_alias
2112test "x$ac_build_alias" = x &&
2113  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2114test "x$ac_build_alias" = x &&
2115  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2116echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2117   { (exit 1); exit 1; }; }
2118ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2119  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2120echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2121   { (exit 1); exit 1; }; }
2122
2123fi
2124{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2125echo "${ECHO_T}$ac_cv_build" >&6; }
2126case $ac_cv_build in
2127*-*-*) ;;
2128*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2129echo "$as_me: error: invalid value of canonical build" >&2;}
2130   { (exit 1); exit 1; }; };;
2131esac
2132build=$ac_cv_build
2133ac_save_IFS=$IFS; IFS='-'
2134set x $ac_cv_build
2135shift
2136build_cpu=$1
2137build_vendor=$2
2138shift; shift
2139# Remember, the first character of IFS is used to create $*,
2140# except with old shells:
2141build_os=$*
2142IFS=$ac_save_IFS
2143case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2144
2145
2146{ echo "$as_me:$LINENO: checking host system type" >&5
2147echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2148if test "${ac_cv_host+set}" = set; then
2149  echo $ECHO_N "(cached) $ECHO_C" >&6
2150else
2151  if test "x$host_alias" = x; then
2152  ac_cv_host=$ac_cv_build
2153else
2154  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2155    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2156echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2157   { (exit 1); exit 1; }; }
2158fi
2159
2160fi
2161{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2162echo "${ECHO_T}$ac_cv_host" >&6; }
2163case $ac_cv_host in
2164*-*-*) ;;
2165*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2166echo "$as_me: error: invalid value of canonical host" >&2;}
2167   { (exit 1); exit 1; }; };;
2168esac
2169host=$ac_cv_host
2170ac_save_IFS=$IFS; IFS='-'
2171set x $ac_cv_host
2172shift
2173host_cpu=$1
2174host_vendor=$2
2175shift; shift
2176# Remember, the first character of IFS is used to create $*,
2177# except with old shells:
2178host_os=$*
2179IFS=$ac_save_IFS
2180case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2181
2182
2183{ echo "$as_me:$LINENO: checking target system type" >&5
2184echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2185if test "${ac_cv_target+set}" = set; then
2186  echo $ECHO_N "(cached) $ECHO_C" >&6
2187else
2188  if test "x$target_alias" = x; then
2189  ac_cv_target=$ac_cv_host
2190else
2191  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2192    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2193echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2194   { (exit 1); exit 1; }; }
2195fi
2196
2197fi
2198{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2199echo "${ECHO_T}$ac_cv_target" >&6; }
2200case $ac_cv_target in
2201*-*-*) ;;
2202*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2203echo "$as_me: error: invalid value of canonical target" >&2;}
2204   { (exit 1); exit 1; }; };;
2205esac
2206target=$ac_cv_target
2207ac_save_IFS=$IFS; IFS='-'
2208set x $ac_cv_target
2209shift
2210target_cpu=$1
2211target_vendor=$2
2212shift; shift
2213# Remember, the first character of IFS is used to create $*,
2214# except with old shells:
2215target_os=$*
2216IFS=$ac_save_IFS
2217case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2218
2219
2220# The aliases save the names the user supplied, while $host etc.
2221# will get canonicalized.
2222test -n "$target_alias" &&
2223  test "$program_prefix$program_suffix$program_transform_name" = \
2224    NONENONEs,x,x, &&
2225  program_prefix=${target_alias}-
2226
2227{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2228echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2229if test "${llvm_cv_os_type+set}" = set; then
2230  echo $ECHO_N "(cached) $ECHO_C" >&6
2231else
2232  case $host in
2233  *-*-aix*)
2234    llvm_cv_link_all_option="-Wl,--whole-archive"
2235    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2236    llvm_cv_os_type="AIX"
2237    llvm_cv_platform_type="Unix" ;;
2238  *-*-irix*)
2239    llvm_cv_link_all_option="-Wl,--whole-archive"
2240    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2241    llvm_cv_os_type="IRIX"
2242    llvm_cv_platform_type="Unix" ;;
2243  *-*-cygwin*)
2244    llvm_cv_link_all_option="-Wl,--whole-archive"
2245    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2246    llvm_cv_os_type="Cygwin"
2247    llvm_cv_platform_type="Unix" ;;
2248  *-*-darwin*)
2249    llvm_cv_link_all_option="-Wl,-all_load"
2250    llvm_cv_link_all_option="-Wl,-noall_load"
2251    llvm_cv_os_type="Darwin"
2252    llvm_cv_platform_type="Unix" ;;
2253  *-*-freebsd*)
2254    llvm_cv_link_all_option="-Wl,--whole-archive"
2255    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2256    llvm_cv_os_type="FreeBSD"
2257    llvm_cv_platform_type="Unix" ;;
2258  *-*-openbsd*)
2259    llvm_cv_link_all_option="-Wl,--whole-archive"
2260    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2261    llvm_cv_os_type="OpenBSD"
2262    llvm_cv_platform_type="Unix" ;;
2263  *-*-netbsd*)
2264    llvm_cv_link_all_option="-Wl,--whole-archive"
2265    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2266    llvm_cv_os_type="NetBSD"
2267    llvm_cv_platform_type="Unix" ;;
2268  *-*-hpux*)
2269    llvm_cv_link_all_option="-Wl,--whole-archive"
2270    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2271    llvm_cv_os_type="HP-UX"
2272    llvm_cv_platform_type="Unix" ;;
2273  *-*-interix*)
2274    llvm_cv_link_all_option="-Wl,--whole-archive"
2275    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2276    llvm_cv_os_type="Interix"
2277    llvm_cv_platform_type="Unix" ;;
2278  *-*-linux*)
2279    llvm_cv_link_all_option="-Wl,--whole-archive"
2280    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281    llvm_cv_os_type="Linux"
2282    llvm_cv_platform_type="Unix" ;;
2283  *-*-solaris*)
2284    llvm_cv_link_all_option="-Wl,-z,allextract"
2285    llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2286    llvm_cv_os_type="SunOS"
2287    llvm_cv_platform_type="Unix" ;;
2288  *-*-win32*)
2289    llvm_cv_link_all_option="-Wl,--whole-archive"
2290    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2291    llvm_cv_os_type="Win32"
2292    llvm_cv_platform_type="Win32" ;;
2293  *-*-mingw*)
2294    llvm_cv_link_all_option="-Wl,--whole-archive"
2295    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2296    llvm_cv_os_type="MingW"
2297    llvm_cv_platform_type="Win32" ;;
2298  *)
2299    llvm_cv_link_all_option=""
2300    llvm_cv_no_link_all_option=""
2301    llvm_cv_os_type="Unknown"
2302    llvm_cv_platform_type="Unknown" ;;
2303esac
2304fi
2305{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2306echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2307
2308if test "$llvm_cv_os_type" = "Unknown" ; then
2309  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2310echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2311   { (exit 1); exit 1; }; }
2312fi
2313
2314OS=$llvm_cv_os_type
2315
2316
2317LINKALL=$llvm_cv_link_all_option
2318
2319NOLINKALL=$llvm_cv_no_link_all_option
2320
2321
2322case $llvm_cv_platform_type in
2323  Unix)
2324
2325cat >>confdefs.h <<\_ACEOF
2326#define LLVM_ON_UNIX 1
2327_ACEOF
2328
2329    LLVM_ON_UNIX=1
2330
2331    LLVM_ON_WIN32=0
2332
2333    ;;
2334  Win32)
2335
2336cat >>confdefs.h <<\_ACEOF
2337#define LLVM_ON_WIN32 1
2338_ACEOF
2339
2340    LLVM_ON_UNIX=0
2341
2342    LLVM_ON_WIN32=1
2343
2344    ;;
2345esac
2346
2347{ echo "$as_me:$LINENO: checking target architecture" >&5
2348echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2349if test "${llvm_cv_target_arch+set}" = set; then
2350  echo $ECHO_N "(cached) $ECHO_C" >&6
2351else
2352  case $target in
2353  i?86-*)                 llvm_cv_target_arch="x86" ;;
2354  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2355  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2356  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2357  alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2358  ia64-*)                 llvm_cv_target_arch="IA64" ;;
2359  arm-*)                  llvm_cv_target_arch="ARM" ;;
2360  *)                      llvm_cv_target_arch="Unknown" ;;
2361esac
2362fi
2363{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2364echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2365
2366if test "$llvm_cv_target_arch" = "Unknown" ; then
2367  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2368echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2369fi
2370
2371ARCH=$llvm_cv_target_arch
2372
2373
2374ac_ext=c
2375ac_cpp='$CPP $CPPFLAGS'
2376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2378ac_compiler_gnu=$ac_cv_c_compiler_gnu
2379if test -n "$ac_tool_prefix"; then
2380  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2381set dummy ${ac_tool_prefix}gcc; ac_word=$2
2382{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2384if test "${ac_cv_prog_CC+set}" = set; then
2385  echo $ECHO_N "(cached) $ECHO_C" >&6
2386else
2387  if test -n "$CC"; then
2388  ac_cv_prog_CC="$CC" # Let the user override the test.
2389else
2390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391for as_dir in $PATH
2392do
2393  IFS=$as_save_IFS
2394  test -z "$as_dir" && as_dir=.
2395  for ac_exec_ext in '' $ac_executable_extensions; do
2396  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2397    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2398    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2399    break 2
2400  fi
2401done
2402done
2403IFS=$as_save_IFS
2404
2405fi
2406fi
2407CC=$ac_cv_prog_CC
2408if test -n "$CC"; then
2409  { echo "$as_me:$LINENO: result: $CC" >&5
2410echo "${ECHO_T}$CC" >&6; }
2411else
2412  { echo "$as_me:$LINENO: result: no" >&5
2413echo "${ECHO_T}no" >&6; }
2414fi
2415
2416
2417fi
2418if test -z "$ac_cv_prog_CC"; then
2419  ac_ct_CC=$CC
2420  # Extract the first word of "gcc", so it can be a program name with args.
2421set dummy gcc; ac_word=$2
2422{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2424if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2425  echo $ECHO_N "(cached) $ECHO_C" >&6
2426else
2427  if test -n "$ac_ct_CC"; then
2428  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2429else
2430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431for as_dir in $PATH
2432do
2433  IFS=$as_save_IFS
2434  test -z "$as_dir" && as_dir=.
2435  for ac_exec_ext in '' $ac_executable_extensions; do
2436  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2437    ac_cv_prog_ac_ct_CC="gcc"
2438    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2439    break 2
2440  fi
2441done
2442done
2443IFS=$as_save_IFS
2444
2445fi
2446fi
2447ac_ct_CC=$ac_cv_prog_ac_ct_CC
2448if test -n "$ac_ct_CC"; then
2449  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2450echo "${ECHO_T}$ac_ct_CC" >&6; }
2451else
2452  { echo "$as_me:$LINENO: result: no" >&5
2453echo "${ECHO_T}no" >&6; }
2454fi
2455
2456  if test "x$ac_ct_CC" = x; then
2457    CC=""
2458  else
2459    case $cross_compiling:$ac_tool_warned in
2460yes:)
2461{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2462whose name does not start with the host triplet.  If you think this
2463configuration is useful to you, please write to autoconf@gnu.org." >&5
2464echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2465whose name does not start with the host triplet.  If you think this
2466configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2467ac_tool_warned=yes ;;
2468esac
2469    CC=$ac_ct_CC
2470  fi
2471else
2472  CC="$ac_cv_prog_CC"
2473fi
2474
2475if test -z "$CC"; then
2476          if test -n "$ac_tool_prefix"; then
2477    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2478set dummy ${ac_tool_prefix}cc; ac_word=$2
2479{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2481if test "${ac_cv_prog_CC+set}" = set; then
2482  echo $ECHO_N "(cached) $ECHO_C" >&6
2483else
2484  if test -n "$CC"; then
2485  ac_cv_prog_CC="$CC" # Let the user override the test.
2486else
2487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488for as_dir in $PATH
2489do
2490  IFS=$as_save_IFS
2491  test -z "$as_dir" && as_dir=.
2492  for ac_exec_ext in '' $ac_executable_extensions; do
2493  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2494    ac_cv_prog_CC="${ac_tool_prefix}cc"
2495    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496    break 2
2497  fi
2498done
2499done
2500IFS=$as_save_IFS
2501
2502fi
2503fi
2504CC=$ac_cv_prog_CC
2505if test -n "$CC"; then
2506  { echo "$as_me:$LINENO: result: $CC" >&5
2507echo "${ECHO_T}$CC" >&6; }
2508else
2509  { echo "$as_me:$LINENO: result: no" >&5
2510echo "${ECHO_T}no" >&6; }
2511fi
2512
2513
2514  fi
2515fi
2516if test -z "$CC"; then
2517  # Extract the first word of "cc", so it can be a program name with args.
2518set dummy cc; ac_word=$2
2519{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2521if test "${ac_cv_prog_CC+set}" = set; then
2522  echo $ECHO_N "(cached) $ECHO_C" >&6
2523else
2524  if test -n "$CC"; then
2525  ac_cv_prog_CC="$CC" # Let the user override the test.
2526else
2527  ac_prog_rejected=no
2528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529for as_dir in $PATH
2530do
2531  IFS=$as_save_IFS
2532  test -z "$as_dir" && as_dir=.
2533  for ac_exec_ext in '' $ac_executable_extensions; do
2534  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2535    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2536       ac_prog_rejected=yes
2537       continue
2538     fi
2539    ac_cv_prog_CC="cc"
2540    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2541    break 2
2542  fi
2543done
2544done
2545IFS=$as_save_IFS
2546
2547if test $ac_prog_rejected = yes; then
2548  # We found a bogon in the path, so make sure we never use it.
2549  set dummy $ac_cv_prog_CC
2550  shift
2551  if test $# != 0; then
2552    # We chose a different compiler from the bogus one.
2553    # However, it has the same basename, so the bogon will be chosen
2554    # first if we set CC to just the basename; use the full file name.
2555    shift
2556    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2557  fi
2558fi
2559fi
2560fi
2561CC=$ac_cv_prog_CC
2562if test -n "$CC"; then
2563  { echo "$as_me:$LINENO: result: $CC" >&5
2564echo "${ECHO_T}$CC" >&6; }
2565else
2566  { echo "$as_me:$LINENO: result: no" >&5
2567echo "${ECHO_T}no" >&6; }
2568fi
2569
2570
2571fi
2572if test -z "$CC"; then
2573  if test -n "$ac_tool_prefix"; then
2574  for ac_prog in cl.exe
2575  do
2576    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2577set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2578{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2580if test "${ac_cv_prog_CC+set}" = set; then
2581  echo $ECHO_N "(cached) $ECHO_C" >&6
2582else
2583  if test -n "$CC"; then
2584  ac_cv_prog_CC="$CC" # Let the user override the test.
2585else
2586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587for as_dir in $PATH
2588do
2589  IFS=$as_save_IFS
2590  test -z "$as_dir" && as_dir=.
2591  for ac_exec_ext in '' $ac_executable_extensions; do
2592  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2593    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2594    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2595    break 2
2596  fi
2597done
2598done
2599IFS=$as_save_IFS
2600
2601fi
2602fi
2603CC=$ac_cv_prog_CC
2604if test -n "$CC"; then
2605  { echo "$as_me:$LINENO: result: $CC" >&5
2606echo "${ECHO_T}$CC" >&6; }
2607else
2608  { echo "$as_me:$LINENO: result: no" >&5
2609echo "${ECHO_T}no" >&6; }
2610fi
2611
2612
2613    test -n "$CC" && break
2614  done
2615fi
2616if test -z "$CC"; then
2617  ac_ct_CC=$CC
2618  for ac_prog in cl.exe
2619do
2620  # Extract the first word of "$ac_prog", so it can be a program name with args.
2621set dummy $ac_prog; ac_word=$2
2622{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2624if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2625  echo $ECHO_N "(cached) $ECHO_C" >&6
2626else
2627  if test -n "$ac_ct_CC"; then
2628  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2629else
2630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631for as_dir in $PATH
2632do
2633  IFS=$as_save_IFS
2634  test -z "$as_dir" && as_dir=.
2635  for ac_exec_ext in '' $ac_executable_extensions; do
2636  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2637    ac_cv_prog_ac_ct_CC="$ac_prog"
2638    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2639    break 2
2640  fi
2641done
2642done
2643IFS=$as_save_IFS
2644
2645fi
2646fi
2647ac_ct_CC=$ac_cv_prog_ac_ct_CC
2648if test -n "$ac_ct_CC"; then
2649  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2650echo "${ECHO_T}$ac_ct_CC" >&6; }
2651else
2652  { echo "$as_me:$LINENO: result: no" >&5
2653echo "${ECHO_T}no" >&6; }
2654fi
2655
2656
2657  test -n "$ac_ct_CC" && break
2658done
2659
2660  if test "x$ac_ct_CC" = x; then
2661    CC=""
2662  else
2663    case $cross_compiling:$ac_tool_warned in
2664yes:)
2665{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2666whose name does not start with the host triplet.  If you think this
2667configuration is useful to you, please write to autoconf@gnu.org." >&5
2668echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2669whose name does not start with the host triplet.  If you think this
2670configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2671ac_tool_warned=yes ;;
2672esac
2673    CC=$ac_ct_CC
2674  fi
2675fi
2676
2677fi
2678
2679
2680test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2681See \`config.log' for more details." >&5
2682echo "$as_me: error: no acceptable C compiler found in \$PATH
2683See \`config.log' for more details." >&2;}
2684   { (exit 1); exit 1; }; }
2685
2686# Provide some information about the compiler.
2687echo "$as_me:$LINENO: checking for C compiler version" >&5
2688ac_compiler=`set X $ac_compile; echo $2`
2689{ (ac_try="$ac_compiler --version >&5"
2690case "(($ac_try" in
2691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692  *) ac_try_echo=$ac_try;;
2693esac
2694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695  (eval "$ac_compiler --version >&5") 2>&5
2696  ac_status=$?
2697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698  (exit $ac_status); }
2699{ (ac_try="$ac_compiler -v >&5"
2700case "(($ac_try" in
2701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702  *) ac_try_echo=$ac_try;;
2703esac
2704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705  (eval "$ac_compiler -v >&5") 2>&5
2706  ac_status=$?
2707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708  (exit $ac_status); }
2709{ (ac_try="$ac_compiler -V >&5"
2710case "(($ac_try" in
2711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712  *) ac_try_echo=$ac_try;;
2713esac
2714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715  (eval "$ac_compiler -V >&5") 2>&5
2716  ac_status=$?
2717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718  (exit $ac_status); }
2719
2720cat >conftest.$ac_ext <<_ACEOF
2721/* confdefs.h.  */
2722_ACEOF
2723cat confdefs.h >>conftest.$ac_ext
2724cat >>conftest.$ac_ext <<_ACEOF
2725/* end confdefs.h.  */
2726
2727int
2728main ()
2729{
2730
2731  ;
2732  return 0;
2733}
2734_ACEOF
2735ac_clean_files_save=$ac_clean_files
2736ac_clean_files="$ac_clean_files a.out a.exe b.out"
2737# Try to create an executable without -o first, disregard a.out.
2738# It will help us diagnose broken compilers, and finding out an intuition
2739# of exeext.
2740{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2741echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2742ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2743#
2744# List of possible output files, starting from the most likely.
2745# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2746# only as a last resort.  b.out is created by i960 compilers.
2747ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2748#
2749# The IRIX 6 linker writes into existing files which may not be
2750# executable, retaining their permissions.  Remove them first so a
2751# subsequent execution test works.
2752ac_rmfiles=
2753for ac_file in $ac_files
2754do
2755  case $ac_file in
2756    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2757    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2758  esac
2759done
2760rm -f $ac_rmfiles
2761
2762if { (ac_try="$ac_link_default"
2763case "(($ac_try" in
2764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765  *) ac_try_echo=$ac_try;;
2766esac
2767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2768  (eval "$ac_link_default") 2>&5
2769  ac_status=$?
2770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771  (exit $ac_status); }; then
2772  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2773# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2774# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2775# so that the user can short-circuit this test for compilers unknown to
2776# Autoconf.
2777for ac_file in $ac_files
2778do
2779  test -f "$ac_file" || continue
2780  case $ac_file in
2781    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2782	;;
2783    [ab].out )
2784	# We found the default executable, but exeext='' is most
2785	# certainly right.
2786	break;;
2787    *.* )
2788        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2789	then :; else
2790	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2791	fi
2792	# We set ac_cv_exeext here because the later test for it is not
2793	# safe: cross compilers may not add the suffix if given an `-o'
2794	# argument, so we may need to know it at that point already.
2795	# Even if this section looks crufty: it has the advantage of
2796	# actually working.
2797	break;;
2798    * )
2799	break;;
2800  esac
2801done
2802test "$ac_cv_exeext" = no && ac_cv_exeext=
2803
2804else
2805  echo "$as_me: failed program was:" >&5
2806sed 's/^/| /' conftest.$ac_ext >&5
2807
2808{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2809See \`config.log' for more details." >&5
2810echo "$as_me: error: C compiler cannot create executables
2811See \`config.log' for more details." >&2;}
2812   { (exit 77); exit 77; }; }
2813fi
2814
2815ac_exeext=$ac_cv_exeext
2816{ echo "$as_me:$LINENO: result: $ac_file" >&5
2817echo "${ECHO_T}$ac_file" >&6; }
2818
2819# Check that the compiler produces executables we can run.  If not, either
2820# the compiler is broken, or we cross compile.
2821{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2822echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2823# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2824# If not cross compiling, check that we can run a simple program.
2825if test "$cross_compiling" != yes; then
2826  if { ac_try='./$ac_file'
2827  { (case "(($ac_try" in
2828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829  *) ac_try_echo=$ac_try;;
2830esac
2831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832  (eval "$ac_try") 2>&5
2833  ac_status=$?
2834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835  (exit $ac_status); }; }; then
2836    cross_compiling=no
2837  else
2838    if test "$cross_compiling" = maybe; then
2839	cross_compiling=yes
2840    else
2841	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2842If you meant to cross compile, use \`--host'.
2843See \`config.log' for more details." >&5
2844echo "$as_me: error: cannot run C compiled programs.
2845If you meant to cross compile, use \`--host'.
2846See \`config.log' for more details." >&2;}
2847   { (exit 1); exit 1; }; }
2848    fi
2849  fi
2850fi
2851{ echo "$as_me:$LINENO: result: yes" >&5
2852echo "${ECHO_T}yes" >&6; }
2853
2854rm -f a.out a.exe conftest$ac_cv_exeext b.out
2855ac_clean_files=$ac_clean_files_save
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 we are cross compiling" >&5
2859echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2860{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2861echo "${ECHO_T}$cross_compiling" >&6; }
2862
2863{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2864echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2865if { (ac_try="$ac_link"
2866case "(($ac_try" in
2867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868  *) ac_try_echo=$ac_try;;
2869esac
2870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2871  (eval "$ac_link") 2>&5
2872  ac_status=$?
2873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874  (exit $ac_status); }; then
2875  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2876# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2877# work properly (i.e., refer to `conftest.exe'), while it won't with
2878# `rm'.
2879for ac_file in conftest.exe conftest conftest.*; do
2880  test -f "$ac_file" || continue
2881  case $ac_file in
2882    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2883    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2884	  break;;
2885    * ) break;;
2886  esac
2887done
2888else
2889  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2890See \`config.log' for more details." >&5
2891echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2892See \`config.log' for more details." >&2;}
2893   { (exit 1); exit 1; }; }
2894fi
2895
2896rm -f conftest$ac_cv_exeext
2897{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2898echo "${ECHO_T}$ac_cv_exeext" >&6; }
2899
2900rm -f conftest.$ac_ext
2901EXEEXT=$ac_cv_exeext
2902ac_exeext=$EXEEXT
2903{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2904echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2905if test "${ac_cv_objext+set}" = set; then
2906  echo $ECHO_N "(cached) $ECHO_C" >&6
2907else
2908  cat >conftest.$ac_ext <<_ACEOF
2909/* confdefs.h.  */
2910_ACEOF
2911cat confdefs.h >>conftest.$ac_ext
2912cat >>conftest.$ac_ext <<_ACEOF
2913/* end confdefs.h.  */
2914
2915int
2916main ()
2917{
2918
2919  ;
2920  return 0;
2921}
2922_ACEOF
2923rm -f conftest.o conftest.obj
2924if { (ac_try="$ac_compile"
2925case "(($ac_try" in
2926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927  *) ac_try_echo=$ac_try;;
2928esac
2929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930  (eval "$ac_compile") 2>&5
2931  ac_status=$?
2932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933  (exit $ac_status); }; then
2934  for ac_file in conftest.o conftest.obj conftest.*; do
2935  test -f "$ac_file" || continue;
2936  case $ac_file in
2937    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2938    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2939       break;;
2940  esac
2941done
2942else
2943  echo "$as_me: failed program was:" >&5
2944sed 's/^/| /' conftest.$ac_ext >&5
2945
2946{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2947See \`config.log' for more details." >&5
2948echo "$as_me: error: cannot compute suffix of object files: cannot compile
2949See \`config.log' for more details." >&2;}
2950   { (exit 1); exit 1; }; }
2951fi
2952
2953rm -f conftest.$ac_cv_objext conftest.$ac_ext
2954fi
2955{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2956echo "${ECHO_T}$ac_cv_objext" >&6; }
2957OBJEXT=$ac_cv_objext
2958ac_objext=$OBJEXT
2959{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2960echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2961if test "${ac_cv_c_compiler_gnu+set}" = set; then
2962  echo $ECHO_N "(cached) $ECHO_C" >&6
2963else
2964  cat >conftest.$ac_ext <<_ACEOF
2965/* confdefs.h.  */
2966_ACEOF
2967cat confdefs.h >>conftest.$ac_ext
2968cat >>conftest.$ac_ext <<_ACEOF
2969/* end confdefs.h.  */
2970
2971int
2972main ()
2973{
2974#ifndef __GNUC__
2975       choke me
2976#endif
2977
2978  ;
2979  return 0;
2980}
2981_ACEOF
2982rm -f conftest.$ac_objext
2983if { (ac_try="$ac_compile"
2984case "(($ac_try" in
2985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986  *) ac_try_echo=$ac_try;;
2987esac
2988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989  (eval "$ac_compile") 2>conftest.er1
2990  ac_status=$?
2991  grep -v '^ *+' conftest.er1 >conftest.err
2992  rm -f conftest.er1
2993  cat conftest.err >&5
2994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995  (exit $ac_status); } &&
2996	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2997  { (case "(($ac_try" in
2998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999  *) ac_try_echo=$ac_try;;
3000esac
3001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002  (eval "$ac_try") 2>&5
3003  ac_status=$?
3004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005  (exit $ac_status); }; } &&
3006	 { ac_try='test -s conftest.$ac_objext'
3007  { (case "(($ac_try" in
3008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009  *) ac_try_echo=$ac_try;;
3010esac
3011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012  (eval "$ac_try") 2>&5
3013  ac_status=$?
3014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015  (exit $ac_status); }; }; then
3016  ac_compiler_gnu=yes
3017else
3018  echo "$as_me: failed program was:" >&5
3019sed 's/^/| /' conftest.$ac_ext >&5
3020
3021	ac_compiler_gnu=no
3022fi
3023
3024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3025ac_cv_c_compiler_gnu=$ac_compiler_gnu
3026
3027fi
3028{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3029echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3030GCC=`test $ac_compiler_gnu = yes && echo yes`
3031ac_test_CFLAGS=${CFLAGS+set}
3032ac_save_CFLAGS=$CFLAGS
3033{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3034echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3035if test "${ac_cv_prog_cc_g+set}" = set; then
3036  echo $ECHO_N "(cached) $ECHO_C" >&6
3037else
3038  ac_save_c_werror_flag=$ac_c_werror_flag
3039   ac_c_werror_flag=yes
3040   ac_cv_prog_cc_g=no
3041   CFLAGS="-g"
3042   cat >conftest.$ac_ext <<_ACEOF
3043/* confdefs.h.  */
3044_ACEOF
3045cat confdefs.h >>conftest.$ac_ext
3046cat >>conftest.$ac_ext <<_ACEOF
3047/* end confdefs.h.  */
3048
3049int
3050main ()
3051{
3052
3053  ;
3054  return 0;
3055}
3056_ACEOF
3057rm -f conftest.$ac_objext
3058if { (ac_try="$ac_compile"
3059case "(($ac_try" in
3060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061  *) ac_try_echo=$ac_try;;
3062esac
3063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064  (eval "$ac_compile") 2>conftest.er1
3065  ac_status=$?
3066  grep -v '^ *+' conftest.er1 >conftest.err
3067  rm -f conftest.er1
3068  cat conftest.err >&5
3069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070  (exit $ac_status); } &&
3071	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3072  { (case "(($ac_try" in
3073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074  *) ac_try_echo=$ac_try;;
3075esac
3076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077  (eval "$ac_try") 2>&5
3078  ac_status=$?
3079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080  (exit $ac_status); }; } &&
3081	 { ac_try='test -s conftest.$ac_objext'
3082  { (case "(($ac_try" in
3083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084  *) ac_try_echo=$ac_try;;
3085esac
3086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087  (eval "$ac_try") 2>&5
3088  ac_status=$?
3089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090  (exit $ac_status); }; }; then
3091  ac_cv_prog_cc_g=yes
3092else
3093  echo "$as_me: failed program was:" >&5
3094sed 's/^/| /' conftest.$ac_ext >&5
3095
3096	CFLAGS=""
3097      cat >conftest.$ac_ext <<_ACEOF
3098/* confdefs.h.  */
3099_ACEOF
3100cat confdefs.h >>conftest.$ac_ext
3101cat >>conftest.$ac_ext <<_ACEOF
3102/* end confdefs.h.  */
3103
3104int
3105main ()
3106{
3107
3108  ;
3109  return 0;
3110}
3111_ACEOF
3112rm -f conftest.$ac_objext
3113if { (ac_try="$ac_compile"
3114case "(($ac_try" in
3115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116  *) ac_try_echo=$ac_try;;
3117esac
3118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119  (eval "$ac_compile") 2>conftest.er1
3120  ac_status=$?
3121  grep -v '^ *+' conftest.er1 >conftest.err
3122  rm -f conftest.er1
3123  cat conftest.err >&5
3124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125  (exit $ac_status); } &&
3126	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3127  { (case "(($ac_try" in
3128  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129  *) ac_try_echo=$ac_try;;
3130esac
3131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132  (eval "$ac_try") 2>&5
3133  ac_status=$?
3134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135  (exit $ac_status); }; } &&
3136	 { ac_try='test -s conftest.$ac_objext'
3137  { (case "(($ac_try" in
3138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139  *) ac_try_echo=$ac_try;;
3140esac
3141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142  (eval "$ac_try") 2>&5
3143  ac_status=$?
3144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145  (exit $ac_status); }; }; then
3146  :
3147else
3148  echo "$as_me: failed program was:" >&5
3149sed 's/^/| /' conftest.$ac_ext >&5
3150
3151	ac_c_werror_flag=$ac_save_c_werror_flag
3152	 CFLAGS="-g"
3153	 cat >conftest.$ac_ext <<_ACEOF
3154/* confdefs.h.  */
3155_ACEOF
3156cat confdefs.h >>conftest.$ac_ext
3157cat >>conftest.$ac_ext <<_ACEOF
3158/* end confdefs.h.  */
3159
3160int
3161main ()
3162{
3163
3164  ;
3165  return 0;
3166}
3167_ACEOF
3168rm -f conftest.$ac_objext
3169if { (ac_try="$ac_compile"
3170case "(($ac_try" in
3171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172  *) ac_try_echo=$ac_try;;
3173esac
3174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175  (eval "$ac_compile") 2>conftest.er1
3176  ac_status=$?
3177  grep -v '^ *+' conftest.er1 >conftest.err
3178  rm -f conftest.er1
3179  cat conftest.err >&5
3180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181  (exit $ac_status); } &&
3182	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3183  { (case "(($ac_try" in
3184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185  *) ac_try_echo=$ac_try;;
3186esac
3187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188  (eval "$ac_try") 2>&5
3189  ac_status=$?
3190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191  (exit $ac_status); }; } &&
3192	 { ac_try='test -s conftest.$ac_objext'
3193  { (case "(($ac_try" in
3194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195  *) ac_try_echo=$ac_try;;
3196esac
3197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198  (eval "$ac_try") 2>&5
3199  ac_status=$?
3200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201  (exit $ac_status); }; }; then
3202  ac_cv_prog_cc_g=yes
3203else
3204  echo "$as_me: failed program was:" >&5
3205sed 's/^/| /' conftest.$ac_ext >&5
3206
3207
3208fi
3209
3210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211fi
3212
3213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214fi
3215
3216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217   ac_c_werror_flag=$ac_save_c_werror_flag
3218fi
3219{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3220echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3221if test "$ac_test_CFLAGS" = set; then
3222  CFLAGS=$ac_save_CFLAGS
3223elif test $ac_cv_prog_cc_g = yes; then
3224  if test "$GCC" = yes; then
3225    CFLAGS="-g -O2"
3226  else
3227    CFLAGS="-g"
3228  fi
3229else
3230  if test "$GCC" = yes; then
3231    CFLAGS="-O2"
3232  else
3233    CFLAGS=
3234  fi
3235fi
3236{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3237echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3238if test "${ac_cv_prog_cc_c89+set}" = set; then
3239  echo $ECHO_N "(cached) $ECHO_C" >&6
3240else
3241  ac_cv_prog_cc_c89=no
3242ac_save_CC=$CC
3243cat >conftest.$ac_ext <<_ACEOF
3244/* confdefs.h.  */
3245_ACEOF
3246cat confdefs.h >>conftest.$ac_ext
3247cat >>conftest.$ac_ext <<_ACEOF
3248/* end confdefs.h.  */
3249#include <stdarg.h>
3250#include <stdio.h>
3251#include <sys/types.h>
3252#include <sys/stat.h>
3253/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3254struct buf { int x; };
3255FILE * (*rcsopen) (struct buf *, struct stat *, int);
3256static char *e (p, i)
3257     char **p;
3258     int i;
3259{
3260  return p[i];
3261}
3262static char *f (char * (*g) (char **, int), char **p, ...)
3263{
3264  char *s;
3265  va_list v;
3266  va_start (v,p);
3267  s = g (p, va_arg (v,int));
3268  va_end (v);
3269  return s;
3270}
3271
3272/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3273   function prototypes and stuff, but not '\xHH' hex character constants.
3274   These don't provoke an error unfortunately, instead are silently treated
3275   as 'x'.  The following induces an error, until -std is added to get
3276   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3277   array size at least.  It's necessary to write '\x00'==0 to get something
3278   that's true only with -std.  */
3279int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3280
3281/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3282   inside strings and character constants.  */
3283#define FOO(x) 'x'
3284int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3285
3286int test (int i, double x);
3287struct s1 {int (*f) (int a);};
3288struct s2 {int (*f) (double a);};
3289int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3290int argc;
3291char **argv;
3292int
3293main ()
3294{
3295return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3296  ;
3297  return 0;
3298}
3299_ACEOF
3300for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3301	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3302do
3303  CC="$ac_save_CC $ac_arg"
3304  rm -f conftest.$ac_objext
3305if { (ac_try="$ac_compile"
3306case "(($ac_try" in
3307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308  *) ac_try_echo=$ac_try;;
3309esac
3310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3311  (eval "$ac_compile") 2>conftest.er1
3312  ac_status=$?
3313  grep -v '^ *+' conftest.er1 >conftest.err
3314  rm -f conftest.er1
3315  cat conftest.err >&5
3316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317  (exit $ac_status); } &&
3318	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3319  { (case "(($ac_try" in
3320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321  *) ac_try_echo=$ac_try;;
3322esac
3323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324  (eval "$ac_try") 2>&5
3325  ac_status=$?
3326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327  (exit $ac_status); }; } &&
3328	 { ac_try='test -s conftest.$ac_objext'
3329  { (case "(($ac_try" in
3330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331  *) ac_try_echo=$ac_try;;
3332esac
3333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3334  (eval "$ac_try") 2>&5
3335  ac_status=$?
3336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337  (exit $ac_status); }; }; then
3338  ac_cv_prog_cc_c89=$ac_arg
3339else
3340  echo "$as_me: failed program was:" >&5
3341sed 's/^/| /' conftest.$ac_ext >&5
3342
3343
3344fi
3345
3346rm -f core conftest.err conftest.$ac_objext
3347  test "x$ac_cv_prog_cc_c89" != "xno" && break
3348done
3349rm -f conftest.$ac_ext
3350CC=$ac_save_CC
3351
3352fi
3353# AC_CACHE_VAL
3354case "x$ac_cv_prog_cc_c89" in
3355  x)
3356    { echo "$as_me:$LINENO: result: none needed" >&5
3357echo "${ECHO_T}none needed" >&6; } ;;
3358  xno)
3359    { echo "$as_me:$LINENO: result: unsupported" >&5
3360echo "${ECHO_T}unsupported" >&6; } ;;
3361  *)
3362    CC="$CC $ac_cv_prog_cc_c89"
3363    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3364echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3365esac
3366
3367
3368ac_ext=c
3369ac_cpp='$CPP $CPPFLAGS'
3370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3372ac_compiler_gnu=$ac_cv_c_compiler_gnu
3373
3374
3375ac_ext=c
3376ac_cpp='$CPP $CPPFLAGS'
3377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3379ac_compiler_gnu=$ac_cv_c_compiler_gnu
3380{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3381echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3382# On Suns, sometimes $CPP names a directory.
3383if test -n "$CPP" && test -d "$CPP"; then
3384  CPP=
3385fi
3386if test -z "$CPP"; then
3387  if test "${ac_cv_prog_CPP+set}" = set; then
3388  echo $ECHO_N "(cached) $ECHO_C" >&6
3389else
3390      # Double quotes because CPP needs to be expanded
3391    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3392    do
3393      ac_preproc_ok=false
3394for ac_c_preproc_warn_flag in '' yes
3395do
3396  # Use a header file that comes with gcc, so configuring glibc
3397  # with a fresh cross-compiler works.
3398  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3399  # <limits.h> exists even on freestanding compilers.
3400  # On the NeXT, cc -E runs the code through the compiler's parser,
3401  # not just through cpp. "Syntax error" is here to catch this case.
3402  cat >conftest.$ac_ext <<_ACEOF
3403/* confdefs.h.  */
3404_ACEOF
3405cat confdefs.h >>conftest.$ac_ext
3406cat >>conftest.$ac_ext <<_ACEOF
3407/* end confdefs.h.  */
3408#ifdef __STDC__
3409# include <limits.h>
3410#else
3411# include <assert.h>
3412#endif
3413		     Syntax error
3414_ACEOF
3415if { (ac_try="$ac_cpp conftest.$ac_ext"
3416case "(($ac_try" in
3417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418  *) ac_try_echo=$ac_try;;
3419esac
3420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3422  ac_status=$?
3423  grep -v '^ *+' conftest.er1 >conftest.err
3424  rm -f conftest.er1
3425  cat conftest.err >&5
3426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427  (exit $ac_status); } >/dev/null; then
3428  if test -s conftest.err; then
3429    ac_cpp_err=$ac_c_preproc_warn_flag
3430    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3431  else
3432    ac_cpp_err=
3433  fi
3434else
3435  ac_cpp_err=yes
3436fi
3437if test -z "$ac_cpp_err"; then
3438  :
3439else
3440  echo "$as_me: failed program was:" >&5
3441sed 's/^/| /' conftest.$ac_ext >&5
3442
3443  # Broken: fails on valid input.
3444continue
3445fi
3446
3447rm -f conftest.err conftest.$ac_ext
3448
3449  # OK, works on sane cases.  Now check whether nonexistent headers
3450  # can be detected and how.
3451  cat >conftest.$ac_ext <<_ACEOF
3452/* confdefs.h.  */
3453_ACEOF
3454cat confdefs.h >>conftest.$ac_ext
3455cat >>conftest.$ac_ext <<_ACEOF
3456/* end confdefs.h.  */
3457#include <ac_nonexistent.h>
3458_ACEOF
3459if { (ac_try="$ac_cpp conftest.$ac_ext"
3460case "(($ac_try" in
3461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462  *) ac_try_echo=$ac_try;;
3463esac
3464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3465  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3466  ac_status=$?
3467  grep -v '^ *+' conftest.er1 >conftest.err
3468  rm -f conftest.er1
3469  cat conftest.err >&5
3470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471  (exit $ac_status); } >/dev/null; then
3472  if test -s conftest.err; then
3473    ac_cpp_err=$ac_c_preproc_warn_flag
3474    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3475  else
3476    ac_cpp_err=
3477  fi
3478else
3479  ac_cpp_err=yes
3480fi
3481if test -z "$ac_cpp_err"; then
3482  # Broken: success on invalid input.
3483continue
3484else
3485  echo "$as_me: failed program was:" >&5
3486sed 's/^/| /' conftest.$ac_ext >&5
3487
3488  # Passes both tests.
3489ac_preproc_ok=:
3490break
3491fi
3492
3493rm -f conftest.err conftest.$ac_ext
3494
3495done
3496# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3497rm -f conftest.err conftest.$ac_ext
3498if $ac_preproc_ok; then
3499  break
3500fi
3501
3502    done
3503    ac_cv_prog_CPP=$CPP
3504
3505fi
3506  CPP=$ac_cv_prog_CPP
3507else
3508  ac_cv_prog_CPP=$CPP
3509fi
3510{ echo "$as_me:$LINENO: result: $CPP" >&5
3511echo "${ECHO_T}$CPP" >&6; }
3512ac_preproc_ok=false
3513for ac_c_preproc_warn_flag in '' yes
3514do
3515  # Use a header file that comes with gcc, so configuring glibc
3516  # with a fresh cross-compiler works.
3517  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3518  # <limits.h> exists even on freestanding compilers.
3519  # On the NeXT, cc -E runs the code through the compiler's parser,
3520  # not just through cpp. "Syntax error" is here to catch this case.
3521  cat >conftest.$ac_ext <<_ACEOF
3522/* confdefs.h.  */
3523_ACEOF
3524cat confdefs.h >>conftest.$ac_ext
3525cat >>conftest.$ac_ext <<_ACEOF
3526/* end confdefs.h.  */
3527#ifdef __STDC__
3528# include <limits.h>
3529#else
3530# include <assert.h>
3531#endif
3532		     Syntax error
3533_ACEOF
3534if { (ac_try="$ac_cpp conftest.$ac_ext"
3535case "(($ac_try" in
3536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537  *) ac_try_echo=$ac_try;;
3538esac
3539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3541  ac_status=$?
3542  grep -v '^ *+' conftest.er1 >conftest.err
3543  rm -f conftest.er1
3544  cat conftest.err >&5
3545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546  (exit $ac_status); } >/dev/null; then
3547  if test -s conftest.err; then
3548    ac_cpp_err=$ac_c_preproc_warn_flag
3549    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3550  else
3551    ac_cpp_err=
3552  fi
3553else
3554  ac_cpp_err=yes
3555fi
3556if test -z "$ac_cpp_err"; then
3557  :
3558else
3559  echo "$as_me: failed program was:" >&5
3560sed 's/^/| /' conftest.$ac_ext >&5
3561
3562  # Broken: fails on valid input.
3563continue
3564fi
3565
3566rm -f conftest.err conftest.$ac_ext
3567
3568  # OK, works on sane cases.  Now check whether nonexistent headers
3569  # can be detected and how.
3570  cat >conftest.$ac_ext <<_ACEOF
3571/* confdefs.h.  */
3572_ACEOF
3573cat confdefs.h >>conftest.$ac_ext
3574cat >>conftest.$ac_ext <<_ACEOF
3575/* end confdefs.h.  */
3576#include <ac_nonexistent.h>
3577_ACEOF
3578if { (ac_try="$ac_cpp conftest.$ac_ext"
3579case "(($ac_try" in
3580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581  *) ac_try_echo=$ac_try;;
3582esac
3583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3584  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3585  ac_status=$?
3586  grep -v '^ *+' conftest.er1 >conftest.err
3587  rm -f conftest.er1
3588  cat conftest.err >&5
3589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590  (exit $ac_status); } >/dev/null; then
3591  if test -s conftest.err; then
3592    ac_cpp_err=$ac_c_preproc_warn_flag
3593    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3594  else
3595    ac_cpp_err=
3596  fi
3597else
3598  ac_cpp_err=yes
3599fi
3600if test -z "$ac_cpp_err"; then
3601  # Broken: success on invalid input.
3602continue
3603else
3604  echo "$as_me: failed program was:" >&5
3605sed 's/^/| /' conftest.$ac_ext >&5
3606
3607  # Passes both tests.
3608ac_preproc_ok=:
3609break
3610fi
3611
3612rm -f conftest.err conftest.$ac_ext
3613
3614done
3615# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3616rm -f conftest.err conftest.$ac_ext
3617if $ac_preproc_ok; then
3618  :
3619else
3620  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3621See \`config.log' for more details." >&5
3622echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3623See \`config.log' for more details." >&2;}
3624   { (exit 1); exit 1; }; }
3625fi
3626
3627ac_ext=c
3628ac_cpp='$CPP $CPPFLAGS'
3629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632
3633
3634{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3635echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3636if test "${ac_cv_path_GREP+set}" = set; then
3637  echo $ECHO_N "(cached) $ECHO_C" >&6
3638else
3639  # Extract the first word of "grep ggrep" to use in msg output
3640if test -z "$GREP"; then
3641set dummy grep ggrep; ac_prog_name=$2
3642if test "${ac_cv_path_GREP+set}" = set; then
3643  echo $ECHO_N "(cached) $ECHO_C" >&6
3644else
3645  ac_path_GREP_found=false
3646# Loop through the user's path and test for each of PROGNAME-LIST
3647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3649do
3650  IFS=$as_save_IFS
3651  test -z "$as_dir" && as_dir=.
3652  for ac_prog in grep ggrep; do
3653  for ac_exec_ext in '' $ac_executable_extensions; do
3654    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3655    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3656    # Check for GNU ac_path_GREP and select it if it is found.
3657  # Check for GNU $ac_path_GREP
3658case `"$ac_path_GREP" --version 2>&1` in
3659*GNU*)
3660  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3661*)
3662  ac_count=0
3663  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3664  while :
3665  do
3666    cat "conftest.in" "conftest.in" >"conftest.tmp"
3667    mv "conftest.tmp" "conftest.in"
3668    cp "conftest.in" "conftest.nl"
3669    echo 'GREP' >> "conftest.nl"
3670    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3671    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3672    ac_count=`expr $ac_count + 1`
3673    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3674      # Best one so far, save it but keep looking for a better one
3675      ac_cv_path_GREP="$ac_path_GREP"
3676      ac_path_GREP_max=$ac_count
3677    fi
3678    # 10*(2^10) chars as input seems more than enough
3679    test $ac_count -gt 10 && break
3680  done
3681  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3682esac
3683
3684
3685    $ac_path_GREP_found && break 3
3686  done
3687done
3688
3689done
3690IFS=$as_save_IFS
3691
3692
3693fi
3694
3695GREP="$ac_cv_path_GREP"
3696if test -z "$GREP"; then
3697  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3698echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3699   { (exit 1); exit 1; }; }
3700fi
3701
3702else
3703  ac_cv_path_GREP=$GREP
3704fi
3705
3706
3707fi
3708{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3709echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3710 GREP="$ac_cv_path_GREP"
3711
3712
3713{ echo "$as_me:$LINENO: checking for egrep" >&5
3714echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3715if test "${ac_cv_path_EGREP+set}" = set; then
3716  echo $ECHO_N "(cached) $ECHO_C" >&6
3717else
3718  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3719   then ac_cv_path_EGREP="$GREP -E"
3720   else
3721     # Extract the first word of "egrep" to use in msg output
3722if test -z "$EGREP"; then
3723set dummy egrep; ac_prog_name=$2
3724if test "${ac_cv_path_EGREP+set}" = set; then
3725  echo $ECHO_N "(cached) $ECHO_C" >&6
3726else
3727  ac_path_EGREP_found=false
3728# Loop through the user's path and test for each of PROGNAME-LIST
3729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3731do
3732  IFS=$as_save_IFS
3733  test -z "$as_dir" && as_dir=.
3734  for ac_prog in egrep; do
3735  for ac_exec_ext in '' $ac_executable_extensions; do
3736    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3737    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3738    # Check for GNU ac_path_EGREP and select it if it is found.
3739  # Check for GNU $ac_path_EGREP
3740case `"$ac_path_EGREP" --version 2>&1` in
3741*GNU*)
3742  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3743*)
3744  ac_count=0
3745  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3746  while :
3747  do
3748    cat "conftest.in" "conftest.in" >"conftest.tmp"
3749    mv "conftest.tmp" "conftest.in"
3750    cp "conftest.in" "conftest.nl"
3751    echo 'EGREP' >> "conftest.nl"
3752    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3753    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3754    ac_count=`expr $ac_count + 1`
3755    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3756      # Best one so far, save it but keep looking for a better one
3757      ac_cv_path_EGREP="$ac_path_EGREP"
3758      ac_path_EGREP_max=$ac_count
3759    fi
3760    # 10*(2^10) chars as input seems more than enough
3761    test $ac_count -gt 10 && break
3762  done
3763  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3764esac
3765
3766
3767    $ac_path_EGREP_found && break 3
3768  done
3769done
3770
3771done
3772IFS=$as_save_IFS
3773
3774
3775fi
3776
3777EGREP="$ac_cv_path_EGREP"
3778if test -z "$EGREP"; then
3779  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3780echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3781   { (exit 1); exit 1; }; }
3782fi
3783
3784else
3785  ac_cv_path_EGREP=$EGREP
3786fi
3787
3788
3789   fi
3790fi
3791{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3792echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3793 EGREP="$ac_cv_path_EGREP"
3794
3795
3796{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3797echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3798if test "${ac_cv_header_stdc+set}" = set; then
3799  echo $ECHO_N "(cached) $ECHO_C" >&6
3800else
3801  cat >conftest.$ac_ext <<_ACEOF
3802/* confdefs.h.  */
3803_ACEOF
3804cat confdefs.h >>conftest.$ac_ext
3805cat >>conftest.$ac_ext <<_ACEOF
3806/* end confdefs.h.  */
3807#include <stdlib.h>
3808#include <stdarg.h>
3809#include <string.h>
3810#include <float.h>
3811
3812int
3813main ()
3814{
3815
3816  ;
3817  return 0;
3818}
3819_ACEOF
3820rm -f conftest.$ac_objext
3821if { (ac_try="$ac_compile"
3822case "(($ac_try" in
3823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824  *) ac_try_echo=$ac_try;;
3825esac
3826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3827  (eval "$ac_compile") 2>conftest.er1
3828  ac_status=$?
3829  grep -v '^ *+' conftest.er1 >conftest.err
3830  rm -f conftest.er1
3831  cat conftest.err >&5
3832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833  (exit $ac_status); } &&
3834	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3835  { (case "(($ac_try" in
3836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837  *) ac_try_echo=$ac_try;;
3838esac
3839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840  (eval "$ac_try") 2>&5
3841  ac_status=$?
3842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843  (exit $ac_status); }; } &&
3844	 { ac_try='test -s conftest.$ac_objext'
3845  { (case "(($ac_try" in
3846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847  *) ac_try_echo=$ac_try;;
3848esac
3849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3850  (eval "$ac_try") 2>&5
3851  ac_status=$?
3852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853  (exit $ac_status); }; }; then
3854  ac_cv_header_stdc=yes
3855else
3856  echo "$as_me: failed program was:" >&5
3857sed 's/^/| /' conftest.$ac_ext >&5
3858
3859	ac_cv_header_stdc=no
3860fi
3861
3862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3863
3864if test $ac_cv_header_stdc = yes; then
3865  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3866  cat >conftest.$ac_ext <<_ACEOF
3867/* confdefs.h.  */
3868_ACEOF
3869cat confdefs.h >>conftest.$ac_ext
3870cat >>conftest.$ac_ext <<_ACEOF
3871/* end confdefs.h.  */
3872#include <string.h>
3873
3874_ACEOF
3875if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3876  $EGREP "memchr" >/dev/null 2>&1; then
3877  :
3878else
3879  ac_cv_header_stdc=no
3880fi
3881rm -f conftest*
3882
3883fi
3884
3885if test $ac_cv_header_stdc = yes; then
3886  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3887  cat >conftest.$ac_ext <<_ACEOF
3888/* confdefs.h.  */
3889_ACEOF
3890cat confdefs.h >>conftest.$ac_ext
3891cat >>conftest.$ac_ext <<_ACEOF
3892/* end confdefs.h.  */
3893#include <stdlib.h>
3894
3895_ACEOF
3896if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3897  $EGREP "free" >/dev/null 2>&1; then
3898  :
3899else
3900  ac_cv_header_stdc=no
3901fi
3902rm -f conftest*
3903
3904fi
3905
3906if test $ac_cv_header_stdc = yes; then
3907  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3908  if test "$cross_compiling" = yes; then
3909  :
3910else
3911  cat >conftest.$ac_ext <<_ACEOF
3912/* confdefs.h.  */
3913_ACEOF
3914cat confdefs.h >>conftest.$ac_ext
3915cat >>conftest.$ac_ext <<_ACEOF
3916/* end confdefs.h.  */
3917#include <ctype.h>
3918#include <stdlib.h>
3919#if ((' ' & 0x0FF) == 0x020)
3920# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3921# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3922#else
3923# define ISLOWER(c) \
3924		   (('a' <= (c) && (c) <= 'i') \
3925		     || ('j' <= (c) && (c) <= 'r') \
3926		     || ('s' <= (c) && (c) <= 'z'))
3927# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3928#endif
3929
3930#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3931int
3932main ()
3933{
3934  int i;
3935  for (i = 0; i < 256; i++)
3936    if (XOR (islower (i), ISLOWER (i))
3937	|| toupper (i) != TOUPPER (i))
3938      return 2;
3939  return 0;
3940}
3941_ACEOF
3942rm -f conftest$ac_exeext
3943if { (ac_try="$ac_link"
3944case "(($ac_try" in
3945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946  *) ac_try_echo=$ac_try;;
3947esac
3948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3949  (eval "$ac_link") 2>&5
3950  ac_status=$?
3951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3953  { (case "(($ac_try" in
3954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955  *) ac_try_echo=$ac_try;;
3956esac
3957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3958  (eval "$ac_try") 2>&5
3959  ac_status=$?
3960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961  (exit $ac_status); }; }; then
3962  :
3963else
3964  echo "$as_me: program exited with status $ac_status" >&5
3965echo "$as_me: failed program was:" >&5
3966sed 's/^/| /' conftest.$ac_ext >&5
3967
3968( exit $ac_status )
3969ac_cv_header_stdc=no
3970fi
3971rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3972fi
3973
3974
3975fi
3976fi
3977{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3978echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3979if test $ac_cv_header_stdc = yes; then
3980
3981cat >>confdefs.h <<\_ACEOF
3982#define STDC_HEADERS 1
3983_ACEOF
3984
3985fi
3986
3987# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3998		  inttypes.h stdint.h unistd.h
3999do
4000as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4001{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4002echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4003if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4004  echo $ECHO_N "(cached) $ECHO_C" >&6
4005else
4006  cat >conftest.$ac_ext <<_ACEOF
4007/* confdefs.h.  */
4008_ACEOF
4009cat confdefs.h >>conftest.$ac_ext
4010cat >>conftest.$ac_ext <<_ACEOF
4011/* end confdefs.h.  */
4012$ac_includes_default
4013
4014#include <$ac_header>
4015_ACEOF
4016rm -f conftest.$ac_objext
4017if { (ac_try="$ac_compile"
4018case "(($ac_try" in
4019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020  *) ac_try_echo=$ac_try;;
4021esac
4022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4023  (eval "$ac_compile") 2>conftest.er1
4024  ac_status=$?
4025  grep -v '^ *+' conftest.er1 >conftest.err
4026  rm -f conftest.er1
4027  cat conftest.err >&5
4028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029  (exit $ac_status); } &&
4030	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4031  { (case "(($ac_try" in
4032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033  *) ac_try_echo=$ac_try;;
4034esac
4035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036  (eval "$ac_try") 2>&5
4037  ac_status=$?
4038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039  (exit $ac_status); }; } &&
4040	 { ac_try='test -s conftest.$ac_objext'
4041  { (case "(($ac_try" in
4042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043  *) ac_try_echo=$ac_try;;
4044esac
4045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4046  (eval "$ac_try") 2>&5
4047  ac_status=$?
4048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049  (exit $ac_status); }; }; then
4050  eval "$as_ac_Header=yes"
4051else
4052  echo "$as_me: failed program was:" >&5
4053sed 's/^/| /' conftest.$ac_ext >&5
4054
4055	eval "$as_ac_Header=no"
4056fi
4057
4058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059fi
4060ac_res=`eval echo '${'$as_ac_Header'}'`
4061	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4062echo "${ECHO_T}$ac_res" >&6; }
4063if test `eval echo '${'$as_ac_Header'}'` = yes; then
4064  cat >>confdefs.h <<_ACEOF
4065#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4066_ACEOF
4067
4068fi
4069
4070done
4071
4072
4073{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4074echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4075if test "${ac_cv_c_bigendian+set}" = set; then
4076  echo $ECHO_N "(cached) $ECHO_C" >&6
4077else
4078  # See if sys/param.h defines the BYTE_ORDER macro.
4079cat >conftest.$ac_ext <<_ACEOF
4080/* confdefs.h.  */
4081_ACEOF
4082cat confdefs.h >>conftest.$ac_ext
4083cat >>conftest.$ac_ext <<_ACEOF
4084/* end confdefs.h.  */
4085#include <sys/types.h>
4086#include <sys/param.h>
4087
4088int
4089main ()
4090{
4091#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4092 bogus endian macros
4093#endif
4094
4095  ;
4096  return 0;
4097}
4098_ACEOF
4099rm -f conftest.$ac_objext
4100if { (ac_try="$ac_compile"
4101case "(($ac_try" in
4102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103  *) ac_try_echo=$ac_try;;
4104esac
4105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106  (eval "$ac_compile") 2>conftest.er1
4107  ac_status=$?
4108  grep -v '^ *+' conftest.er1 >conftest.err
4109  rm -f conftest.er1
4110  cat conftest.err >&5
4111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112  (exit $ac_status); } &&
4113	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4114  { (case "(($ac_try" in
4115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116  *) ac_try_echo=$ac_try;;
4117esac
4118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4119  (eval "$ac_try") 2>&5
4120  ac_status=$?
4121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122  (exit $ac_status); }; } &&
4123	 { ac_try='test -s conftest.$ac_objext'
4124  { (case "(($ac_try" in
4125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126  *) ac_try_echo=$ac_try;;
4127esac
4128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4129  (eval "$ac_try") 2>&5
4130  ac_status=$?
4131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132  (exit $ac_status); }; }; then
4133  # It does; now see whether it defined to BIG_ENDIAN or not.
4134cat >conftest.$ac_ext <<_ACEOF
4135/* confdefs.h.  */
4136_ACEOF
4137cat confdefs.h >>conftest.$ac_ext
4138cat >>conftest.$ac_ext <<_ACEOF
4139/* end confdefs.h.  */
4140#include <sys/types.h>
4141#include <sys/param.h>
4142
4143int
4144main ()
4145{
4146#if BYTE_ORDER != BIG_ENDIAN
4147 not big endian
4148#endif
4149
4150  ;
4151  return 0;
4152}
4153_ACEOF
4154rm -f conftest.$ac_objext
4155if { (ac_try="$ac_compile"
4156case "(($ac_try" in
4157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158  *) ac_try_echo=$ac_try;;
4159esac
4160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161  (eval "$ac_compile") 2>conftest.er1
4162  ac_status=$?
4163  grep -v '^ *+' conftest.er1 >conftest.err
4164  rm -f conftest.er1
4165  cat conftest.err >&5
4166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167  (exit $ac_status); } &&
4168	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4169  { (case "(($ac_try" in
4170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171  *) ac_try_echo=$ac_try;;
4172esac
4173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174  (eval "$ac_try") 2>&5
4175  ac_status=$?
4176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177  (exit $ac_status); }; } &&
4178	 { ac_try='test -s conftest.$ac_objext'
4179  { (case "(($ac_try" in
4180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181  *) ac_try_echo=$ac_try;;
4182esac
4183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184  (eval "$ac_try") 2>&5
4185  ac_status=$?
4186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187  (exit $ac_status); }; }; then
4188  ac_cv_c_bigendian=yes
4189else
4190  echo "$as_me: failed program was:" >&5
4191sed 's/^/| /' conftest.$ac_ext >&5
4192
4193	ac_cv_c_bigendian=no
4194fi
4195
4196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4197else
4198  echo "$as_me: failed program was:" >&5
4199sed 's/^/| /' conftest.$ac_ext >&5
4200
4201	# It does not; compile a test program.
4202if test "$cross_compiling" = yes; then
4203  # try to guess the endianness by grepping values into an object file
4204  ac_cv_c_bigendian=unknown
4205  cat >conftest.$ac_ext <<_ACEOF
4206/* confdefs.h.  */
4207_ACEOF
4208cat confdefs.h >>conftest.$ac_ext
4209cat >>conftest.$ac_ext <<_ACEOF
4210/* end confdefs.h.  */
4211short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4212short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4213void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4214short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4215short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4216void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4217int
4218main ()
4219{
4220 _ascii (); _ebcdic ();
4221  ;
4222  return 0;
4223}
4224_ACEOF
4225rm -f conftest.$ac_objext
4226if { (ac_try="$ac_compile"
4227case "(($ac_try" in
4228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229  *) ac_try_echo=$ac_try;;
4230esac
4231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232  (eval "$ac_compile") 2>conftest.er1
4233  ac_status=$?
4234  grep -v '^ *+' conftest.er1 >conftest.err
4235  rm -f conftest.er1
4236  cat conftest.err >&5
4237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238  (exit $ac_status); } &&
4239	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4240  { (case "(($ac_try" in
4241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242  *) ac_try_echo=$ac_try;;
4243esac
4244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245  (eval "$ac_try") 2>&5
4246  ac_status=$?
4247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248  (exit $ac_status); }; } &&
4249	 { ac_try='test -s conftest.$ac_objext'
4250  { (case "(($ac_try" in
4251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252  *) ac_try_echo=$ac_try;;
4253esac
4254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4255  (eval "$ac_try") 2>&5
4256  ac_status=$?
4257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258  (exit $ac_status); }; }; then
4259  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4260  ac_cv_c_bigendian=yes
4261fi
4262if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4263  if test "$ac_cv_c_bigendian" = unknown; then
4264    ac_cv_c_bigendian=no
4265  else
4266    # finding both strings is unlikely to happen, but who knows?
4267    ac_cv_c_bigendian=unknown
4268  fi
4269fi
4270else
4271  echo "$as_me: failed program was:" >&5
4272sed 's/^/| /' conftest.$ac_ext >&5
4273
4274
4275fi
4276
4277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4278else
4279  cat >conftest.$ac_ext <<_ACEOF
4280/* confdefs.h.  */
4281_ACEOF
4282cat confdefs.h >>conftest.$ac_ext
4283cat >>conftest.$ac_ext <<_ACEOF
4284/* end confdefs.h.  */
4285$ac_includes_default
4286int
4287main ()
4288{
4289
4290  /* Are we little or big endian?  From Harbison&Steele.  */
4291  union
4292  {
4293    long int l;
4294    char c[sizeof (long int)];
4295  } u;
4296  u.l = 1;
4297  return u.c[sizeof (long int) - 1] == 1;
4298
4299  ;
4300  return 0;
4301}
4302_ACEOF
4303rm -f conftest$ac_exeext
4304if { (ac_try="$ac_link"
4305case "(($ac_try" in
4306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307  *) ac_try_echo=$ac_try;;
4308esac
4309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310  (eval "$ac_link") 2>&5
4311  ac_status=$?
4312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4314  { (case "(($ac_try" in
4315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316  *) ac_try_echo=$ac_try;;
4317esac
4318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319  (eval "$ac_try") 2>&5
4320  ac_status=$?
4321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322  (exit $ac_status); }; }; then
4323  ac_cv_c_bigendian=no
4324else
4325  echo "$as_me: program exited with status $ac_status" >&5
4326echo "$as_me: failed program was:" >&5
4327sed 's/^/| /' conftest.$ac_ext >&5
4328
4329( exit $ac_status )
4330ac_cv_c_bigendian=yes
4331fi
4332rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4333fi
4334
4335
4336fi
4337
4338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4339fi
4340{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4341echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4342case $ac_cv_c_bigendian in
4343  yes)
4344    ENDIAN=big
4345 ;;
4346  no)
4347    ENDIAN=little
4348 ;;
4349  *)
4350    { { echo "$as_me:$LINENO: error: unknown endianness
4351presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4352echo "$as_me: error: unknown endianness
4353presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4354   { (exit 1); exit 1; }; } ;;
4355esac
4356
4357
4358if test "$cross_compiling" = yes; then
4359  LLVM_CROSS_COMPILING=1
4360
4361
4362{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4363echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4364if test "${ac_cv_build_exeext+set}" = set; then
4365  echo $ECHO_N "(cached) $ECHO_C" >&6
4366else
4367  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4368  ac_cv_build_exeext=.exe
4369else
4370  ac_build_prefix=${build_alias}-
4371
4372  # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4373set dummy ${ac_build_prefix}gcc; ac_word=$2
4374{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4376if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4377  echo $ECHO_N "(cached) $ECHO_C" >&6
4378else
4379  if test -n "$BUILD_CC"; then
4380  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4381else
4382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383for as_dir in $PATH
4384do
4385  IFS=$as_save_IFS
4386  test -z "$as_dir" && as_dir=.
4387  for ac_exec_ext in '' $ac_executable_extensions; do
4388  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4389    ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4390    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4391    break 2
4392  fi
4393done
4394done
4395IFS=$as_save_IFS
4396
4397fi
4398fi
4399BUILD_CC=$ac_cv_prog_BUILD_CC
4400if test -n "$BUILD_CC"; then
4401  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4402echo "${ECHO_T}$BUILD_CC" >&6; }
4403else
4404  { echo "$as_me:$LINENO: result: no" >&5
4405echo "${ECHO_T}no" >&6; }
4406fi
4407
4408
4409  if test -z "$BUILD_CC"; then
4410     # Extract the first word of "gcc", so it can be a program name with args.
4411set dummy gcc; ac_word=$2
4412{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4414if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4415  echo $ECHO_N "(cached) $ECHO_C" >&6
4416else
4417  if test -n "$BUILD_CC"; then
4418  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4419else
4420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421for as_dir in $PATH
4422do
4423  IFS=$as_save_IFS
4424  test -z "$as_dir" && as_dir=.
4425  for ac_exec_ext in '' $ac_executable_extensions; do
4426  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4427    ac_cv_prog_BUILD_CC="gcc"
4428    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4429    break 2
4430  fi
4431done
4432done
4433IFS=$as_save_IFS
4434
4435fi
4436fi
4437BUILD_CC=$ac_cv_prog_BUILD_CC
4438if test -n "$BUILD_CC"; then
4439  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4440echo "${ECHO_T}$BUILD_CC" >&6; }
4441else
4442  { echo "$as_me:$LINENO: result: no" >&5
4443echo "${ECHO_T}no" >&6; }
4444fi
4445
4446
4447     if test -z "$BUILD_CC"; then
4448       # Extract the first word of "cc", so it can be a program name with args.
4449set dummy cc; ac_word=$2
4450{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4452if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4453  echo $ECHO_N "(cached) $ECHO_C" >&6
4454else
4455  if test -n "$BUILD_CC"; then
4456  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4457else
4458  ac_prog_rejected=no
4459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460for as_dir in $PATH
4461do
4462  IFS=$as_save_IFS
4463  test -z "$as_dir" && as_dir=.
4464  for ac_exec_ext in '' $ac_executable_extensions; do
4465  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4466    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4467       ac_prog_rejected=yes
4468       continue
4469     fi
4470    ac_cv_prog_BUILD_CC="cc"
4471    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4472    break 2
4473  fi
4474done
4475done
4476IFS=$as_save_IFS
4477
4478if test $ac_prog_rejected = yes; then
4479  # We found a bogon in the path, so make sure we never use it.
4480  set dummy $ac_cv_prog_BUILD_CC
4481  shift
4482  if test $# != 0; then
4483    # We chose a different compiler from the bogus one.
4484    # However, it has the same basename, so the bogon will be chosen
4485    # first if we set BUILD_CC to just the basename; use the full file name.
4486    shift
4487    ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4488  fi
4489fi
4490fi
4491fi
4492BUILD_CC=$ac_cv_prog_BUILD_CC
4493if test -n "$BUILD_CC"; then
4494  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4495echo "${ECHO_T}$BUILD_CC" >&6; }
4496else
4497  { echo "$as_me:$LINENO: result: no" >&5
4498echo "${ECHO_T}no" >&6; }
4499fi
4500
4501
4502     fi
4503  fi
4504  test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4505echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4506   { (exit 1); exit 1; }; }
4507  ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4508  rm -f conftest*
4509  echo 'int main () { return 0; }' > conftest.$ac_ext
4510  ac_cv_build_exeext=
4511  if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4512  (eval $ac_build_link) 2>&5
4513  ac_status=$?
4514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515  (exit $ac_status); }; then
4516    for file in conftest.*; do
4517      case $file in
4518      *.c | *.o | *.obj) ;;
4519      *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4520      esac
4521    done
4522  else
4523    { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4524echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4525   { (exit 1); exit 1; }; }
4526  fi
4527  rm -f conftest*
4528  test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4529fi
4530fi
4531
4532BUILD_EXEEXT=""
4533test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4534{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4535echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4536ac_build_exeext=$BUILD_EXEEXT
4537
4538else
4539  LLVM_CROSS_COMPILING=0
4540
4541fi
4542
4543if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4544  cvsbuild="yes"
4545  optimize="no"
4546  CVSBUILD=CVSBUILD=1
4547
4548else
4549  cvsbuild="no"
4550  optimize="yes"
4551fi
4552
4553
4554# Check whether --enable-optimized was given.
4555if test "${enable_optimized+set}" = set; then
4556  enableval=$enable_optimized;
4557else
4558  enableval=$optimize
4559fi
4560
4561if test ${enableval} = "no" ; then
4562  ENABLE_OPTIMIZED=
4563
4564else
4565  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4566
4567fi
4568
4569# Check whether --enable-assertions was given.
4570if test "${enable_assertions+set}" = set; then
4571  enableval=$enable_assertions;
4572else
4573  enableval="yes"
4574fi
4575
4576if test ${enableval} = "yes" ; then
4577  DISABLE_ASSERTIONS=
4578
4579else
4580  DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4581
4582fi
4583
4584# Check whether --enable-expensive-checks was given.
4585if test "${enable_expensive_checks+set}" = set; then
4586  enableval=$enable_expensive_checks;
4587else
4588  enableval="no"
4589fi
4590
4591if test ${enableval} = "yes" ; then
4592  ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4593
4594  EXPENSIVE_CHECKS=yes
4595
4596else
4597  ENABLE_EXPENSIVE_CHECKS=
4598
4599  EXPENSIVE_CHECKS=no
4600
4601fi
4602
4603# Check whether --enable-debug-runtime was given.
4604if test "${enable_debug_runtime+set}" = set; then
4605  enableval=$enable_debug_runtime;
4606else
4607  enableval=no
4608fi
4609
4610if test ${enableval} = "no" ; then
4611  DEBUG_RUNTIME=
4612
4613else
4614  DEBUG_RUNTIME=DEBUG_RUNTIME=1
4615
4616fi
4617
4618# Check whether --enable-jit was given.
4619if test "${enable_jit+set}" = set; then
4620  enableval=$enable_jit;
4621else
4622  enableval=default
4623fi
4624
4625if test ${enableval} = "no"
4626then
4627  JIT=
4628
4629else
4630  case "$llvm_cv_target_arch" in
4631    x86)     TARGET_HAS_JIT=1
4632 ;;
4633    Sparc)   TARGET_HAS_JIT=0
4634 ;;
4635    PowerPC) TARGET_HAS_JIT=1
4636 ;;
4637    x86_64)  TARGET_HAS_JIT=1
4638 ;;
4639    Alpha)   TARGET_HAS_JIT=1
4640 ;;
4641    IA64)    TARGET_HAS_JIT=0
4642 ;;
4643    ARM)     TARGET_HAS_JIT=0
4644 ;;
4645    *)       TARGET_HAS_JIT=0
4646 ;;
4647  esac
4648fi
4649
4650# Check whether --enable-doxygen was given.
4651if test "${enable_doxygen+set}" = set; then
4652  enableval=$enable_doxygen;
4653else
4654  enableval=default
4655fi
4656
4657case "$enableval" in
4658  yes) ENABLE_DOXYGEN=1
4659 ;;
4660  no)  ENABLE_DOXYGEN=0
4661 ;;
4662  default) ENABLE_DOXYGEN=0
4663 ;;
4664  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4665echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4666   { (exit 1); exit 1; }; } ;;
4667esac
4668
4669# Check whether --enable-threads was given.
4670if test "${enable_threads+set}" = set; then
4671  enableval=$enable_threads;
4672else
4673  enableval=default
4674fi
4675
4676case "$enableval" in
4677  yes) ENABLE_THREADS=1
4678 ;;
4679  no)  ENABLE_THREADS=0
4680 ;;
4681  default) ENABLE_THREADS=1
4682 ;;
4683  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4684echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4685   { (exit 1); exit 1; }; } ;;
4686esac
4687
4688cat >>confdefs.h <<_ACEOF
4689#define ENABLE_THREADS $ENABLE_THREADS
4690_ACEOF
4691
4692
4693# Check whether --enable-pic was given.
4694if test "${enable_pic+set}" = set; then
4695  enableval=$enable_pic;
4696else
4697  enableval=default
4698fi
4699
4700case "$enableval" in
4701  yes) ENABLE_PIC=1
4702 ;;
4703  no)  ENABLE_PIC=0
4704 ;;
4705  default) ENABLE_PIC=0
4706 ;;
4707  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4708echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4709   { (exit 1); exit 1; }; } ;;
4710esac
4711
4712cat >>confdefs.h <<_ACEOF
4713#define ENABLE_PIC $ENABLE_PIC
4714_ACEOF
4715
4716
4717TARGETS_TO_BUILD=""
4718# Check whether --enable-targets was given.
4719if test "${enable_targets+set}" = set; then
4720  enableval=$enable_targets;
4721else
4722  enableval=all
4723fi
4724
4725case "$enableval" in
4726  all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4727  host-only)
4728    case "$llvm_cv_target_arch" in
4729      x86)     TARGETS_TO_BUILD="X86" ;;
4730      x86_64)  TARGETS_TO_BUILD="X86" ;;
4731      Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4732      PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4733      Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4734      IA64)    TARGETS_TO_BUILD="IA64" ;;
4735      ARM)     TARGETS_TO_BUILD="ARM" ;;
4736      *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4737echo "$as_me: error: Can not set target to build" >&2;}
4738   { (exit 1); exit 1; }; } ;;
4739    esac
4740    ;;
4741  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4742      case "$a_target" in
4743        x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4744        x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4745        sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4746        powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4747        alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4748        ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4749        arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4750        *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4751echo "$as_me: error: Unrecognized target $a_target" >&2;}
4752   { (exit 1); exit 1; }; } ;;
4753      esac
4754  done
4755  ;;
4756esac
4757TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
4758TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4759
4760
4761# Check whether --enable-cbe-printf-a was given.
4762if test "${enable_cbe_printf_a+set}" = set; then
4763  enableval=$enable_cbe_printf_a;
4764else
4765  enableval=default
4766fi
4767
4768case "$enableval" in
4769  yes) ENABLE_CBE_PRINTF_A=1
4770 ;;
4771  no)  ENABLE_CBE_PRINTF_A=0
4772 ;;
4773  default)  ENABLE_CBE_PRINTF_A=1
4774 ;;
4775  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4776echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4777   { (exit 1); exit 1; }; } ;;
4778esac
4779
4780cat >>confdefs.h <<_ACEOF
4781#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4782_ACEOF
4783
4784
4785
4786# Check whether --with-llvmgccdir was given.
4787if test "${with_llvmgccdir+set}" = set; then
4788  withval=$with_llvmgccdir;
4789else
4790  withval=default
4791fi
4792
4793case "$withval" in
4794  default) WITH_LLVMGCCDIR=default ;;
4795  /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4796  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4797echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4798   { (exit 1); exit 1; }; } ;;
4799esac
4800
4801
4802# Check whether --with-extra-options was given.
4803if test "${with_extra_options+set}" = set; then
4804  withval=$with_extra_options;
4805else
4806  withval=default
4807fi
4808
4809case "$withval" in
4810  default) EXTRA_OPTIONS= ;;
4811  *) EXTRA_OPTIONS=$withval ;;
4812esac
4813EXTRA_OPTIONS=$EXTRA_OPTIONS
4814
4815
4816
4817ac_ext=c
4818ac_cpp='$CPP $CPPFLAGS'
4819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4821ac_compiler_gnu=$ac_cv_c_compiler_gnu
4822{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4823echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4824# On Suns, sometimes $CPP names a directory.
4825if test -n "$CPP" && test -d "$CPP"; then
4826  CPP=
4827fi
4828if test -z "$CPP"; then
4829  if test "${ac_cv_prog_CPP+set}" = set; then
4830  echo $ECHO_N "(cached) $ECHO_C" >&6
4831else
4832      # Double quotes because CPP needs to be expanded
4833    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4834    do
4835      ac_preproc_ok=false
4836for ac_c_preproc_warn_flag in '' yes
4837do
4838  # Use a header file that comes with gcc, so configuring glibc
4839  # with a fresh cross-compiler works.
4840  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4841  # <limits.h> exists even on freestanding compilers.
4842  # On the NeXT, cc -E runs the code through the compiler's parser,
4843  # not just through cpp. "Syntax error" is here to catch this case.
4844  cat >conftest.$ac_ext <<_ACEOF
4845/* confdefs.h.  */
4846_ACEOF
4847cat confdefs.h >>conftest.$ac_ext
4848cat >>conftest.$ac_ext <<_ACEOF
4849/* end confdefs.h.  */
4850#ifdef __STDC__
4851# include <limits.h>
4852#else
4853# include <assert.h>
4854#endif
4855		     Syntax error
4856_ACEOF
4857if { (ac_try="$ac_cpp conftest.$ac_ext"
4858case "(($ac_try" in
4859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860  *) ac_try_echo=$ac_try;;
4861esac
4862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4863  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4864  ac_status=$?
4865  grep -v '^ *+' conftest.er1 >conftest.err
4866  rm -f conftest.er1
4867  cat conftest.err >&5
4868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869  (exit $ac_status); } >/dev/null; then
4870  if test -s conftest.err; then
4871    ac_cpp_err=$ac_c_preproc_warn_flag
4872    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4873  else
4874    ac_cpp_err=
4875  fi
4876else
4877  ac_cpp_err=yes
4878fi
4879if test -z "$ac_cpp_err"; then
4880  :
4881else
4882  echo "$as_me: failed program was:" >&5
4883sed 's/^/| /' conftest.$ac_ext >&5
4884
4885  # Broken: fails on valid input.
4886continue
4887fi
4888
4889rm -f conftest.err conftest.$ac_ext
4890
4891  # OK, works on sane cases.  Now check whether nonexistent headers
4892  # can be detected and how.
4893  cat >conftest.$ac_ext <<_ACEOF
4894/* confdefs.h.  */
4895_ACEOF
4896cat confdefs.h >>conftest.$ac_ext
4897cat >>conftest.$ac_ext <<_ACEOF
4898/* end confdefs.h.  */
4899#include <ac_nonexistent.h>
4900_ACEOF
4901if { (ac_try="$ac_cpp conftest.$ac_ext"
4902case "(($ac_try" in
4903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904  *) ac_try_echo=$ac_try;;
4905esac
4906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4907  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4908  ac_status=$?
4909  grep -v '^ *+' conftest.er1 >conftest.err
4910  rm -f conftest.er1
4911  cat conftest.err >&5
4912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913  (exit $ac_status); } >/dev/null; then
4914  if test -s conftest.err; then
4915    ac_cpp_err=$ac_c_preproc_warn_flag
4916    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4917  else
4918    ac_cpp_err=
4919  fi
4920else
4921  ac_cpp_err=yes
4922fi
4923if test -z "$ac_cpp_err"; then
4924  # Broken: success on invalid input.
4925continue
4926else
4927  echo "$as_me: failed program was:" >&5
4928sed 's/^/| /' conftest.$ac_ext >&5
4929
4930  # Passes both tests.
4931ac_preproc_ok=:
4932break
4933fi
4934
4935rm -f conftest.err conftest.$ac_ext
4936
4937done
4938# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4939rm -f conftest.err conftest.$ac_ext
4940if $ac_preproc_ok; then
4941  break
4942fi
4943
4944    done
4945    ac_cv_prog_CPP=$CPP
4946
4947fi
4948  CPP=$ac_cv_prog_CPP
4949else
4950  ac_cv_prog_CPP=$CPP
4951fi
4952{ echo "$as_me:$LINENO: result: $CPP" >&5
4953echo "${ECHO_T}$CPP" >&6; }
4954ac_preproc_ok=false
4955for ac_c_preproc_warn_flag in '' yes
4956do
4957  # Use a header file that comes with gcc, so configuring glibc
4958  # with a fresh cross-compiler works.
4959  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4960  # <limits.h> exists even on freestanding compilers.
4961  # On the NeXT, cc -E runs the code through the compiler's parser,
4962  # not just through cpp. "Syntax error" is here to catch this case.
4963  cat >conftest.$ac_ext <<_ACEOF
4964/* confdefs.h.  */
4965_ACEOF
4966cat confdefs.h >>conftest.$ac_ext
4967cat >>conftest.$ac_ext <<_ACEOF
4968/* end confdefs.h.  */
4969#ifdef __STDC__
4970# include <limits.h>
4971#else
4972# include <assert.h>
4973#endif
4974		     Syntax error
4975_ACEOF
4976if { (ac_try="$ac_cpp conftest.$ac_ext"
4977case "(($ac_try" in
4978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979  *) ac_try_echo=$ac_try;;
4980esac
4981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4982  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4983  ac_status=$?
4984  grep -v '^ *+' conftest.er1 >conftest.err
4985  rm -f conftest.er1
4986  cat conftest.err >&5
4987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988  (exit $ac_status); } >/dev/null; then
4989  if test -s conftest.err; then
4990    ac_cpp_err=$ac_c_preproc_warn_flag
4991    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4992  else
4993    ac_cpp_err=
4994  fi
4995else
4996  ac_cpp_err=yes
4997fi
4998if test -z "$ac_cpp_err"; then
4999  :
5000else
5001  echo "$as_me: failed program was:" >&5
5002sed 's/^/| /' conftest.$ac_ext >&5
5003
5004  # Broken: fails on valid input.
5005continue
5006fi
5007
5008rm -f conftest.err conftest.$ac_ext
5009
5010  # OK, works on sane cases.  Now check whether nonexistent headers
5011  # can be detected and how.
5012  cat >conftest.$ac_ext <<_ACEOF
5013/* confdefs.h.  */
5014_ACEOF
5015cat confdefs.h >>conftest.$ac_ext
5016cat >>conftest.$ac_ext <<_ACEOF
5017/* end confdefs.h.  */
5018#include <ac_nonexistent.h>
5019_ACEOF
5020if { (ac_try="$ac_cpp conftest.$ac_ext"
5021case "(($ac_try" in
5022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5023  *) ac_try_echo=$ac_try;;
5024esac
5025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5026  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5027  ac_status=$?
5028  grep -v '^ *+' conftest.er1 >conftest.err
5029  rm -f conftest.er1
5030  cat conftest.err >&5
5031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032  (exit $ac_status); } >/dev/null; then
5033  if test -s conftest.err; then
5034    ac_cpp_err=$ac_c_preproc_warn_flag
5035    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5036  else
5037    ac_cpp_err=
5038  fi
5039else
5040  ac_cpp_err=yes
5041fi
5042if test -z "$ac_cpp_err"; then
5043  # Broken: success on invalid input.
5044continue
5045else
5046  echo "$as_me: failed program was:" >&5
5047sed 's/^/| /' conftest.$ac_ext >&5
5048
5049  # Passes both tests.
5050ac_preproc_ok=:
5051break
5052fi
5053
5054rm -f conftest.err conftest.$ac_ext
5055
5056done
5057# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5058rm -f conftest.err conftest.$ac_ext
5059if $ac_preproc_ok; then
5060  :
5061else
5062  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5063See \`config.log' for more details." >&5
5064echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5065See \`config.log' for more details." >&2;}
5066   { (exit 1); exit 1; }; }
5067fi
5068
5069ac_ext=c
5070ac_cpp='$CPP $CPPFLAGS'
5071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5073ac_compiler_gnu=$ac_cv_c_compiler_gnu
5074
5075ac_ext=c
5076ac_cpp='$CPP $CPPFLAGS'
5077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5079ac_compiler_gnu=$ac_cv_c_compiler_gnu
5080if test -n "$ac_tool_prefix"; then
5081  for ac_prog in gcc
5082  do
5083    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5084set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5085{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5087if test "${ac_cv_prog_CC+set}" = set; then
5088  echo $ECHO_N "(cached) $ECHO_C" >&6
5089else
5090  if test -n "$CC"; then
5091  ac_cv_prog_CC="$CC" # Let the user override the test.
5092else
5093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094for as_dir in $PATH
5095do
5096  IFS=$as_save_IFS
5097  test -z "$as_dir" && as_dir=.
5098  for ac_exec_ext in '' $ac_executable_extensions; do
5099  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5100    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5101    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5102    break 2
5103  fi
5104done
5105done
5106IFS=$as_save_IFS
5107
5108fi
5109fi
5110CC=$ac_cv_prog_CC
5111if test -n "$CC"; then
5112  { echo "$as_me:$LINENO: result: $CC" >&5
5113echo "${ECHO_T}$CC" >&6; }
5114else
5115  { echo "$as_me:$LINENO: result: no" >&5
5116echo "${ECHO_T}no" >&6; }
5117fi
5118
5119
5120    test -n "$CC" && break
5121  done
5122fi
5123if test -z "$CC"; then
5124  ac_ct_CC=$CC
5125  for ac_prog in gcc
5126do
5127  # Extract the first word of "$ac_prog", so it can be a program name with args.
5128set dummy $ac_prog; ac_word=$2
5129{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5131if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5132  echo $ECHO_N "(cached) $ECHO_C" >&6
5133else
5134  if test -n "$ac_ct_CC"; then
5135  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5136else
5137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138for as_dir in $PATH
5139do
5140  IFS=$as_save_IFS
5141  test -z "$as_dir" && as_dir=.
5142  for ac_exec_ext in '' $ac_executable_extensions; do
5143  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5144    ac_cv_prog_ac_ct_CC="$ac_prog"
5145    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5146    break 2
5147  fi
5148done
5149done
5150IFS=$as_save_IFS
5151
5152fi
5153fi
5154ac_ct_CC=$ac_cv_prog_ac_ct_CC
5155if test -n "$ac_ct_CC"; then
5156  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5157echo "${ECHO_T}$ac_ct_CC" >&6; }
5158else
5159  { echo "$as_me:$LINENO: result: no" >&5
5160echo "${ECHO_T}no" >&6; }
5161fi
5162
5163
5164  test -n "$ac_ct_CC" && break
5165done
5166
5167  if test "x$ac_ct_CC" = x; then
5168    CC=""
5169  else
5170    case $cross_compiling:$ac_tool_warned in
5171yes:)
5172{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5173whose name does not start with the host triplet.  If you think this
5174configuration is useful to you, please write to autoconf@gnu.org." >&5
5175echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5176whose name does not start with the host triplet.  If you think this
5177configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5178ac_tool_warned=yes ;;
5179esac
5180    CC=$ac_ct_CC
5181  fi
5182fi
5183
5184
5185test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5186See \`config.log' for more details." >&5
5187echo "$as_me: error: no acceptable C compiler found in \$PATH
5188See \`config.log' for more details." >&2;}
5189   { (exit 1); exit 1; }; }
5190
5191# Provide some information about the compiler.
5192echo "$as_me:$LINENO: checking for C compiler version" >&5
5193ac_compiler=`set X $ac_compile; echo $2`
5194{ (ac_try="$ac_compiler --version >&5"
5195case "(($ac_try" in
5196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197  *) ac_try_echo=$ac_try;;
5198esac
5199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200  (eval "$ac_compiler --version >&5") 2>&5
5201  ac_status=$?
5202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203  (exit $ac_status); }
5204{ (ac_try="$ac_compiler -v >&5"
5205case "(($ac_try" in
5206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5207  *) ac_try_echo=$ac_try;;
5208esac
5209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5210  (eval "$ac_compiler -v >&5") 2>&5
5211  ac_status=$?
5212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213  (exit $ac_status); }
5214{ (ac_try="$ac_compiler -V >&5"
5215case "(($ac_try" in
5216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5217  *) ac_try_echo=$ac_try;;
5218esac
5219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5220  (eval "$ac_compiler -V >&5") 2>&5
5221  ac_status=$?
5222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223  (exit $ac_status); }
5224
5225{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5226echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5227if test "${ac_cv_c_compiler_gnu+set}" = set; then
5228  echo $ECHO_N "(cached) $ECHO_C" >&6
5229else
5230  cat >conftest.$ac_ext <<_ACEOF
5231/* confdefs.h.  */
5232_ACEOF
5233cat confdefs.h >>conftest.$ac_ext
5234cat >>conftest.$ac_ext <<_ACEOF
5235/* end confdefs.h.  */
5236
5237int
5238main ()
5239{
5240#ifndef __GNUC__
5241       choke me
5242#endif
5243
5244  ;
5245  return 0;
5246}
5247_ACEOF
5248rm -f conftest.$ac_objext
5249if { (ac_try="$ac_compile"
5250case "(($ac_try" in
5251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5252  *) ac_try_echo=$ac_try;;
5253esac
5254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5255  (eval "$ac_compile") 2>conftest.er1
5256  ac_status=$?
5257  grep -v '^ *+' conftest.er1 >conftest.err
5258  rm -f conftest.er1
5259  cat conftest.err >&5
5260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261  (exit $ac_status); } &&
5262	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5263  { (case "(($ac_try" in
5264  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5265  *) ac_try_echo=$ac_try;;
5266esac
5267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5268  (eval "$ac_try") 2>&5
5269  ac_status=$?
5270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271  (exit $ac_status); }; } &&
5272	 { ac_try='test -s conftest.$ac_objext'
5273  { (case "(($ac_try" in
5274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5275  *) ac_try_echo=$ac_try;;
5276esac
5277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5278  (eval "$ac_try") 2>&5
5279  ac_status=$?
5280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281  (exit $ac_status); }; }; then
5282  ac_compiler_gnu=yes
5283else
5284  echo "$as_me: failed program was:" >&5
5285sed 's/^/| /' conftest.$ac_ext >&5
5286
5287	ac_compiler_gnu=no
5288fi
5289
5290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5291ac_cv_c_compiler_gnu=$ac_compiler_gnu
5292
5293fi
5294{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5295echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5296GCC=`test $ac_compiler_gnu = yes && echo yes`
5297ac_test_CFLAGS=${CFLAGS+set}
5298ac_save_CFLAGS=$CFLAGS
5299{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5300echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5301if test "${ac_cv_prog_cc_g+set}" = set; then
5302  echo $ECHO_N "(cached) $ECHO_C" >&6
5303else
5304  ac_save_c_werror_flag=$ac_c_werror_flag
5305   ac_c_werror_flag=yes
5306   ac_cv_prog_cc_g=no
5307   CFLAGS="-g"
5308   cat >conftest.$ac_ext <<_ACEOF
5309/* confdefs.h.  */
5310_ACEOF
5311cat confdefs.h >>conftest.$ac_ext
5312cat >>conftest.$ac_ext <<_ACEOF
5313/* end confdefs.h.  */
5314
5315int
5316main ()
5317{
5318
5319  ;
5320  return 0;
5321}
5322_ACEOF
5323rm -f conftest.$ac_objext
5324if { (ac_try="$ac_compile"
5325case "(($ac_try" in
5326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5327  *) ac_try_echo=$ac_try;;
5328esac
5329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5330  (eval "$ac_compile") 2>conftest.er1
5331  ac_status=$?
5332  grep -v '^ *+' conftest.er1 >conftest.err
5333  rm -f conftest.er1
5334  cat conftest.err >&5
5335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336  (exit $ac_status); } &&
5337	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5338  { (case "(($ac_try" in
5339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340  *) ac_try_echo=$ac_try;;
5341esac
5342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343  (eval "$ac_try") 2>&5
5344  ac_status=$?
5345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346  (exit $ac_status); }; } &&
5347	 { ac_try='test -s conftest.$ac_objext'
5348  { (case "(($ac_try" in
5349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350  *) ac_try_echo=$ac_try;;
5351esac
5352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353  (eval "$ac_try") 2>&5
5354  ac_status=$?
5355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356  (exit $ac_status); }; }; then
5357  ac_cv_prog_cc_g=yes
5358else
5359  echo "$as_me: failed program was:" >&5
5360sed 's/^/| /' conftest.$ac_ext >&5
5361
5362	CFLAGS=""
5363      cat >conftest.$ac_ext <<_ACEOF
5364/* confdefs.h.  */
5365_ACEOF
5366cat confdefs.h >>conftest.$ac_ext
5367cat >>conftest.$ac_ext <<_ACEOF
5368/* end confdefs.h.  */
5369
5370int
5371main ()
5372{
5373
5374  ;
5375  return 0;
5376}
5377_ACEOF
5378rm -f conftest.$ac_objext
5379if { (ac_try="$ac_compile"
5380case "(($ac_try" in
5381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382  *) ac_try_echo=$ac_try;;
5383esac
5384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5385  (eval "$ac_compile") 2>conftest.er1
5386  ac_status=$?
5387  grep -v '^ *+' conftest.er1 >conftest.err
5388  rm -f conftest.er1
5389  cat conftest.err >&5
5390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391  (exit $ac_status); } &&
5392	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5393  { (case "(($ac_try" in
5394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395  *) ac_try_echo=$ac_try;;
5396esac
5397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5398  (eval "$ac_try") 2>&5
5399  ac_status=$?
5400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401  (exit $ac_status); }; } &&
5402	 { ac_try='test -s conftest.$ac_objext'
5403  { (case "(($ac_try" in
5404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5405  *) ac_try_echo=$ac_try;;
5406esac
5407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5408  (eval "$ac_try") 2>&5
5409  ac_status=$?
5410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411  (exit $ac_status); }; }; then
5412  :
5413else
5414  echo "$as_me: failed program was:" >&5
5415sed 's/^/| /' conftest.$ac_ext >&5
5416
5417	ac_c_werror_flag=$ac_save_c_werror_flag
5418	 CFLAGS="-g"
5419	 cat >conftest.$ac_ext <<_ACEOF
5420/* confdefs.h.  */
5421_ACEOF
5422cat confdefs.h >>conftest.$ac_ext
5423cat >>conftest.$ac_ext <<_ACEOF
5424/* end confdefs.h.  */
5425
5426int
5427main ()
5428{
5429
5430  ;
5431  return 0;
5432}
5433_ACEOF
5434rm -f conftest.$ac_objext
5435if { (ac_try="$ac_compile"
5436case "(($ac_try" in
5437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438  *) ac_try_echo=$ac_try;;
5439esac
5440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5441  (eval "$ac_compile") 2>conftest.er1
5442  ac_status=$?
5443  grep -v '^ *+' conftest.er1 >conftest.err
5444  rm -f conftest.er1
5445  cat conftest.err >&5
5446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447  (exit $ac_status); } &&
5448	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5449  { (case "(($ac_try" in
5450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451  *) ac_try_echo=$ac_try;;
5452esac
5453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5454  (eval "$ac_try") 2>&5
5455  ac_status=$?
5456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457  (exit $ac_status); }; } &&
5458	 { ac_try='test -s conftest.$ac_objext'
5459  { (case "(($ac_try" in
5460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461  *) ac_try_echo=$ac_try;;
5462esac
5463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464  (eval "$ac_try") 2>&5
5465  ac_status=$?
5466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467  (exit $ac_status); }; }; then
5468  ac_cv_prog_cc_g=yes
5469else
5470  echo "$as_me: failed program was:" >&5
5471sed 's/^/| /' conftest.$ac_ext >&5
5472
5473
5474fi
5475
5476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5477fi
5478
5479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480fi
5481
5482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483   ac_c_werror_flag=$ac_save_c_werror_flag
5484fi
5485{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5486echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5487if test "$ac_test_CFLAGS" = set; then
5488  CFLAGS=$ac_save_CFLAGS
5489elif test $ac_cv_prog_cc_g = yes; then
5490  if test "$GCC" = yes; then
5491    CFLAGS="-g -O2"
5492  else
5493    CFLAGS="-g"
5494  fi
5495else
5496  if test "$GCC" = yes; then
5497    CFLAGS="-O2"
5498  else
5499    CFLAGS=
5500  fi
5501fi
5502{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5503echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5504if test "${ac_cv_prog_cc_c89+set}" = set; then
5505  echo $ECHO_N "(cached) $ECHO_C" >&6
5506else
5507  ac_cv_prog_cc_c89=no
5508ac_save_CC=$CC
5509cat >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#include <stdarg.h>
5516#include <stdio.h>
5517#include <sys/types.h>
5518#include <sys/stat.h>
5519/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5520struct buf { int x; };
5521FILE * (*rcsopen) (struct buf *, struct stat *, int);
5522static char *e (p, i)
5523     char **p;
5524     int i;
5525{
5526  return p[i];
5527}
5528static char *f (char * (*g) (char **, int), char **p, ...)
5529{
5530  char *s;
5531  va_list v;
5532  va_start (v,p);
5533  s = g (p, va_arg (v,int));
5534  va_end (v);
5535  return s;
5536}
5537
5538/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5539   function prototypes and stuff, but not '\xHH' hex character constants.
5540   These don't provoke an error unfortunately, instead are silently treated
5541   as 'x'.  The following induces an error, until -std is added to get
5542   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5543   array size at least.  It's necessary to write '\x00'==0 to get something
5544   that's true only with -std.  */
5545int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5546
5547/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5548   inside strings and character constants.  */
5549#define FOO(x) 'x'
5550int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5551
5552int test (int i, double x);
5553struct s1 {int (*f) (int a);};
5554struct s2 {int (*f) (double a);};
5555int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5556int argc;
5557char **argv;
5558int
5559main ()
5560{
5561return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5562  ;
5563  return 0;
5564}
5565_ACEOF
5566for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5567	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5568do
5569  CC="$ac_save_CC $ac_arg"
5570  rm -f conftest.$ac_objext
5571if { (ac_try="$ac_compile"
5572case "(($ac_try" in
5573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574  *) ac_try_echo=$ac_try;;
5575esac
5576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577  (eval "$ac_compile") 2>conftest.er1
5578  ac_status=$?
5579  grep -v '^ *+' conftest.er1 >conftest.err
5580  rm -f conftest.er1
5581  cat conftest.err >&5
5582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583  (exit $ac_status); } &&
5584	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5585  { (case "(($ac_try" in
5586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5587  *) ac_try_echo=$ac_try;;
5588esac
5589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5590  (eval "$ac_try") 2>&5
5591  ac_status=$?
5592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593  (exit $ac_status); }; } &&
5594	 { ac_try='test -s conftest.$ac_objext'
5595  { (case "(($ac_try" in
5596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597  *) ac_try_echo=$ac_try;;
5598esac
5599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5600  (eval "$ac_try") 2>&5
5601  ac_status=$?
5602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603  (exit $ac_status); }; }; then
5604  ac_cv_prog_cc_c89=$ac_arg
5605else
5606  echo "$as_me: failed program was:" >&5
5607sed 's/^/| /' conftest.$ac_ext >&5
5608
5609
5610fi
5611
5612rm -f core conftest.err conftest.$ac_objext
5613  test "x$ac_cv_prog_cc_c89" != "xno" && break
5614done
5615rm -f conftest.$ac_ext
5616CC=$ac_save_CC
5617
5618fi
5619# AC_CACHE_VAL
5620case "x$ac_cv_prog_cc_c89" in
5621  x)
5622    { echo "$as_me:$LINENO: result: none needed" >&5
5623echo "${ECHO_T}none needed" >&6; } ;;
5624  xno)
5625    { echo "$as_me:$LINENO: result: unsupported" >&5
5626echo "${ECHO_T}unsupported" >&6; } ;;
5627  *)
5628    CC="$CC $ac_cv_prog_cc_c89"
5629    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5630echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5631esac
5632
5633
5634ac_ext=c
5635ac_cpp='$CPP $CPPFLAGS'
5636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5638ac_compiler_gnu=$ac_cv_c_compiler_gnu
5639
5640ac_ext=cpp
5641ac_cpp='$CXXCPP $CPPFLAGS'
5642ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5643ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5644ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5645if test -z "$CXX"; then
5646  if test -n "$CCC"; then
5647    CXX=$CCC
5648  else
5649    if test -n "$ac_tool_prefix"; then
5650  for ac_prog in g++
5651  do
5652    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5653set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5654{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5656if test "${ac_cv_prog_CXX+set}" = set; then
5657  echo $ECHO_N "(cached) $ECHO_C" >&6
5658else
5659  if test -n "$CXX"; then
5660  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5661else
5662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663for as_dir in $PATH
5664do
5665  IFS=$as_save_IFS
5666  test -z "$as_dir" && as_dir=.
5667  for ac_exec_ext in '' $ac_executable_extensions; do
5668  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5669    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5670    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5671    break 2
5672  fi
5673done
5674done
5675IFS=$as_save_IFS
5676
5677fi
5678fi
5679CXX=$ac_cv_prog_CXX
5680if test -n "$CXX"; then
5681  { echo "$as_me:$LINENO: result: $CXX" >&5
5682echo "${ECHO_T}$CXX" >&6; }
5683else
5684  { echo "$as_me:$LINENO: result: no" >&5
5685echo "${ECHO_T}no" >&6; }
5686fi
5687
5688
5689    test -n "$CXX" && break
5690  done
5691fi
5692if test -z "$CXX"; then
5693  ac_ct_CXX=$CXX
5694  for ac_prog in g++
5695do
5696  # Extract the first word of "$ac_prog", so it can be a program name with args.
5697set dummy $ac_prog; ac_word=$2
5698{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5700if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5701  echo $ECHO_N "(cached) $ECHO_C" >&6
5702else
5703  if test -n "$ac_ct_CXX"; then
5704  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5705else
5706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707for as_dir in $PATH
5708do
5709  IFS=$as_save_IFS
5710  test -z "$as_dir" && as_dir=.
5711  for ac_exec_ext in '' $ac_executable_extensions; do
5712  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5713    ac_cv_prog_ac_ct_CXX="$ac_prog"
5714    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5715    break 2
5716  fi
5717done
5718done
5719IFS=$as_save_IFS
5720
5721fi
5722fi
5723ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5724if test -n "$ac_ct_CXX"; then
5725  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5726echo "${ECHO_T}$ac_ct_CXX" >&6; }
5727else
5728  { echo "$as_me:$LINENO: result: no" >&5
5729echo "${ECHO_T}no" >&6; }
5730fi
5731
5732
5733  test -n "$ac_ct_CXX" && break
5734done
5735
5736  if test "x$ac_ct_CXX" = x; then
5737    CXX="g++"
5738  else
5739    case $cross_compiling:$ac_tool_warned in
5740yes:)
5741{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5742whose name does not start with the host triplet.  If you think this
5743configuration is useful to you, please write to autoconf@gnu.org." >&5
5744echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5745whose name does not start with the host triplet.  If you think this
5746configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5747ac_tool_warned=yes ;;
5748esac
5749    CXX=$ac_ct_CXX
5750  fi
5751fi
5752
5753  fi
5754fi
5755# Provide some information about the compiler.
5756echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5757ac_compiler=`set X $ac_compile; echo $2`
5758{ (ac_try="$ac_compiler --version >&5"
5759case "(($ac_try" in
5760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5761  *) ac_try_echo=$ac_try;;
5762esac
5763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5764  (eval "$ac_compiler --version >&5") 2>&5
5765  ac_status=$?
5766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767  (exit $ac_status); }
5768{ (ac_try="$ac_compiler -v >&5"
5769case "(($ac_try" in
5770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771  *) ac_try_echo=$ac_try;;
5772esac
5773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5774  (eval "$ac_compiler -v >&5") 2>&5
5775  ac_status=$?
5776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777  (exit $ac_status); }
5778{ (ac_try="$ac_compiler -V >&5"
5779case "(($ac_try" in
5780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5781  *) ac_try_echo=$ac_try;;
5782esac
5783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5784  (eval "$ac_compiler -V >&5") 2>&5
5785  ac_status=$?
5786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787  (exit $ac_status); }
5788
5789{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5790echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5791if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5792  echo $ECHO_N "(cached) $ECHO_C" >&6
5793else
5794  cat >conftest.$ac_ext <<_ACEOF
5795/* confdefs.h.  */
5796_ACEOF
5797cat confdefs.h >>conftest.$ac_ext
5798cat >>conftest.$ac_ext <<_ACEOF
5799/* end confdefs.h.  */
5800
5801int
5802main ()
5803{
5804#ifndef __GNUC__
5805       choke me
5806#endif
5807
5808  ;
5809  return 0;
5810}
5811_ACEOF
5812rm -f conftest.$ac_objext
5813if { (ac_try="$ac_compile"
5814case "(($ac_try" in
5815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816  *) ac_try_echo=$ac_try;;
5817esac
5818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819  (eval "$ac_compile") 2>conftest.er1
5820  ac_status=$?
5821  grep -v '^ *+' conftest.er1 >conftest.err
5822  rm -f conftest.er1
5823  cat conftest.err >&5
5824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825  (exit $ac_status); } &&
5826	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5827  { (case "(($ac_try" in
5828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829  *) ac_try_echo=$ac_try;;
5830esac
5831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5832  (eval "$ac_try") 2>&5
5833  ac_status=$?
5834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835  (exit $ac_status); }; } &&
5836	 { ac_try='test -s conftest.$ac_objext'
5837  { (case "(($ac_try" in
5838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839  *) ac_try_echo=$ac_try;;
5840esac
5841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842  (eval "$ac_try") 2>&5
5843  ac_status=$?
5844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845  (exit $ac_status); }; }; then
5846  ac_compiler_gnu=yes
5847else
5848  echo "$as_me: failed program was:" >&5
5849sed 's/^/| /' conftest.$ac_ext >&5
5850
5851	ac_compiler_gnu=no
5852fi
5853
5854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5856
5857fi
5858{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5859echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5860GXX=`test $ac_compiler_gnu = yes && echo yes`
5861ac_test_CXXFLAGS=${CXXFLAGS+set}
5862ac_save_CXXFLAGS=$CXXFLAGS
5863{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5864echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5865if test "${ac_cv_prog_cxx_g+set}" = set; then
5866  echo $ECHO_N "(cached) $ECHO_C" >&6
5867else
5868  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5869   ac_cxx_werror_flag=yes
5870   ac_cv_prog_cxx_g=no
5871   CXXFLAGS="-g"
5872   cat >conftest.$ac_ext <<_ACEOF
5873/* confdefs.h.  */
5874_ACEOF
5875cat confdefs.h >>conftest.$ac_ext
5876cat >>conftest.$ac_ext <<_ACEOF
5877/* end confdefs.h.  */
5878
5879int
5880main ()
5881{
5882
5883  ;
5884  return 0;
5885}
5886_ACEOF
5887rm -f conftest.$ac_objext
5888if { (ac_try="$ac_compile"
5889case "(($ac_try" in
5890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891  *) ac_try_echo=$ac_try;;
5892esac
5893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894  (eval "$ac_compile") 2>conftest.er1
5895  ac_status=$?
5896  grep -v '^ *+' conftest.er1 >conftest.err
5897  rm -f conftest.er1
5898  cat conftest.err >&5
5899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900  (exit $ac_status); } &&
5901	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5902  { (case "(($ac_try" in
5903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904  *) ac_try_echo=$ac_try;;
5905esac
5906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907  (eval "$ac_try") 2>&5
5908  ac_status=$?
5909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910  (exit $ac_status); }; } &&
5911	 { ac_try='test -s conftest.$ac_objext'
5912  { (case "(($ac_try" in
5913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914  *) ac_try_echo=$ac_try;;
5915esac
5916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5917  (eval "$ac_try") 2>&5
5918  ac_status=$?
5919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920  (exit $ac_status); }; }; then
5921  ac_cv_prog_cxx_g=yes
5922else
5923  echo "$as_me: failed program was:" >&5
5924sed 's/^/| /' conftest.$ac_ext >&5
5925
5926	CXXFLAGS=""
5927      cat >conftest.$ac_ext <<_ACEOF
5928/* confdefs.h.  */
5929_ACEOF
5930cat confdefs.h >>conftest.$ac_ext
5931cat >>conftest.$ac_ext <<_ACEOF
5932/* end confdefs.h.  */
5933
5934int
5935main ()
5936{
5937
5938  ;
5939  return 0;
5940}
5941_ACEOF
5942rm -f conftest.$ac_objext
5943if { (ac_try="$ac_compile"
5944case "(($ac_try" in
5945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946  *) ac_try_echo=$ac_try;;
5947esac
5948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949  (eval "$ac_compile") 2>conftest.er1
5950  ac_status=$?
5951  grep -v '^ *+' conftest.er1 >conftest.err
5952  rm -f conftest.er1
5953  cat conftest.err >&5
5954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955  (exit $ac_status); } &&
5956	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5957  { (case "(($ac_try" in
5958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959  *) ac_try_echo=$ac_try;;
5960esac
5961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5962  (eval "$ac_try") 2>&5
5963  ac_status=$?
5964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965  (exit $ac_status); }; } &&
5966	 { ac_try='test -s conftest.$ac_objext'
5967  { (case "(($ac_try" in
5968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969  *) ac_try_echo=$ac_try;;
5970esac
5971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5972  (eval "$ac_try") 2>&5
5973  ac_status=$?
5974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975  (exit $ac_status); }; }; then
5976  :
5977else
5978  echo "$as_me: failed program was:" >&5
5979sed 's/^/| /' conftest.$ac_ext >&5
5980
5981	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5982	 CXXFLAGS="-g"
5983	 cat >conftest.$ac_ext <<_ACEOF
5984/* confdefs.h.  */
5985_ACEOF
5986cat confdefs.h >>conftest.$ac_ext
5987cat >>conftest.$ac_ext <<_ACEOF
5988/* end confdefs.h.  */
5989
5990int
5991main ()
5992{
5993
5994  ;
5995  return 0;
5996}
5997_ACEOF
5998rm -f conftest.$ac_objext
5999if { (ac_try="$ac_compile"
6000case "(($ac_try" in
6001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002  *) ac_try_echo=$ac_try;;
6003esac
6004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005  (eval "$ac_compile") 2>conftest.er1
6006  ac_status=$?
6007  grep -v '^ *+' conftest.er1 >conftest.err
6008  rm -f conftest.er1
6009  cat conftest.err >&5
6010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011  (exit $ac_status); } &&
6012	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6013  { (case "(($ac_try" in
6014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015  *) ac_try_echo=$ac_try;;
6016esac
6017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018  (eval "$ac_try") 2>&5
6019  ac_status=$?
6020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021  (exit $ac_status); }; } &&
6022	 { ac_try='test -s conftest.$ac_objext'
6023  { (case "(($ac_try" in
6024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025  *) ac_try_echo=$ac_try;;
6026esac
6027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028  (eval "$ac_try") 2>&5
6029  ac_status=$?
6030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031  (exit $ac_status); }; }; then
6032  ac_cv_prog_cxx_g=yes
6033else
6034  echo "$as_me: failed program was:" >&5
6035sed 's/^/| /' conftest.$ac_ext >&5
6036
6037
6038fi
6039
6040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041fi
6042
6043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6044fi
6045
6046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6047   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6048fi
6049{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6050echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6051if test "$ac_test_CXXFLAGS" = set; then
6052  CXXFLAGS=$ac_save_CXXFLAGS
6053elif test $ac_cv_prog_cxx_g = yes; then
6054  if test "$GXX" = yes; then
6055    CXXFLAGS="-g -O2"
6056  else
6057    CXXFLAGS="-g"
6058  fi
6059else
6060  if test "$GXX" = yes; then
6061    CXXFLAGS="-O2"
6062  else
6063    CXXFLAGS=
6064  fi
6065fi
6066ac_ext=c
6067ac_cpp='$CPP $CPPFLAGS'
6068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6070ac_compiler_gnu=$ac_cv_c_compiler_gnu
6071
6072{ echo "$as_me:$LINENO: checking " >&5
6073echo $ECHO_N "checking ... $ECHO_C" >&6; }
6074if test "${ac_cv_has_flex+set}" = set; then
6075  echo $ECHO_N "(cached) $ECHO_C" >&6
6076else
6077  for ac_prog in flex lex
6078do
6079  # Extract the first word of "$ac_prog", so it can be a program name with args.
6080set dummy $ac_prog; ac_word=$2
6081{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6083if test "${ac_cv_prog_LEX+set}" = set; then
6084  echo $ECHO_N "(cached) $ECHO_C" >&6
6085else
6086  if test -n "$LEX"; then
6087  ac_cv_prog_LEX="$LEX" # Let the user override the test.
6088else
6089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090for as_dir in $PATH
6091do
6092  IFS=$as_save_IFS
6093  test -z "$as_dir" && as_dir=.
6094  for ac_exec_ext in '' $ac_executable_extensions; do
6095  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6096    ac_cv_prog_LEX="$ac_prog"
6097    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6098    break 2
6099  fi
6100done
6101done
6102IFS=$as_save_IFS
6103
6104fi
6105fi
6106LEX=$ac_cv_prog_LEX
6107if test -n "$LEX"; then
6108  { echo "$as_me:$LINENO: result: $LEX" >&5
6109echo "${ECHO_T}$LEX" >&6; }
6110else
6111  { echo "$as_me:$LINENO: result: no" >&5
6112echo "${ECHO_T}no" >&6; }
6113fi
6114
6115
6116  test -n "$LEX" && break
6117done
6118test -n "$LEX" || LEX=":"
6119
6120if test -z "$LEXLIB"
6121then
6122  { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6123echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6124if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6125  echo $ECHO_N "(cached) $ECHO_C" >&6
6126else
6127  ac_check_lib_save_LIBS=$LIBS
6128LIBS="-lfl  $LIBS"
6129cat >conftest.$ac_ext <<_ACEOF
6130/* confdefs.h.  */
6131_ACEOF
6132cat confdefs.h >>conftest.$ac_ext
6133cat >>conftest.$ac_ext <<_ACEOF
6134/* end confdefs.h.  */
6135
6136/* Override any GCC internal prototype to avoid an error.
6137   Use char because int might match the return type of a GCC
6138   builtin and then its argument prototype would still apply.  */
6139#ifdef __cplusplus
6140extern "C"
6141#endif
6142char yywrap ();
6143int
6144main ()
6145{
6146return yywrap ();
6147  ;
6148  return 0;
6149}
6150_ACEOF
6151rm -f conftest.$ac_objext conftest$ac_exeext
6152if { (ac_try="$ac_link"
6153case "(($ac_try" in
6154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155  *) ac_try_echo=$ac_try;;
6156esac
6157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158  (eval "$ac_link") 2>conftest.er1
6159  ac_status=$?
6160  grep -v '^ *+' conftest.er1 >conftest.err
6161  rm -f conftest.er1
6162  cat conftest.err >&5
6163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164  (exit $ac_status); } &&
6165	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6166  { (case "(($ac_try" in
6167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6168  *) ac_try_echo=$ac_try;;
6169esac
6170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6171  (eval "$ac_try") 2>&5
6172  ac_status=$?
6173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174  (exit $ac_status); }; } &&
6175	 { ac_try='test -s conftest$ac_exeext'
6176  { (case "(($ac_try" in
6177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178  *) ac_try_echo=$ac_try;;
6179esac
6180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181  (eval "$ac_try") 2>&5
6182  ac_status=$?
6183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184  (exit $ac_status); }; }; then
6185  ac_cv_lib_fl_yywrap=yes
6186else
6187  echo "$as_me: failed program was:" >&5
6188sed 's/^/| /' conftest.$ac_ext >&5
6189
6190	ac_cv_lib_fl_yywrap=no
6191fi
6192
6193rm -f core conftest.err conftest.$ac_objext \
6194      conftest$ac_exeext conftest.$ac_ext
6195LIBS=$ac_check_lib_save_LIBS
6196fi
6197{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6198echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6199if test $ac_cv_lib_fl_yywrap = yes; then
6200  LEXLIB="-lfl"
6201else
6202  { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6203echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6204if test "${ac_cv_lib_l_yywrap+set}" = set; then
6205  echo $ECHO_N "(cached) $ECHO_C" >&6
6206else
6207  ac_check_lib_save_LIBS=$LIBS
6208LIBS="-ll  $LIBS"
6209cat >conftest.$ac_ext <<_ACEOF
6210/* confdefs.h.  */
6211_ACEOF
6212cat confdefs.h >>conftest.$ac_ext
6213cat >>conftest.$ac_ext <<_ACEOF
6214/* end confdefs.h.  */
6215
6216/* Override any GCC internal prototype to avoid an error.
6217   Use char because int might match the return type of a GCC
6218   builtin and then its argument prototype would still apply.  */
6219#ifdef __cplusplus
6220extern "C"
6221#endif
6222char yywrap ();
6223int
6224main ()
6225{
6226return yywrap ();
6227  ;
6228  return 0;
6229}
6230_ACEOF
6231rm -f conftest.$ac_objext conftest$ac_exeext
6232if { (ac_try="$ac_link"
6233case "(($ac_try" in
6234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235  *) ac_try_echo=$ac_try;;
6236esac
6237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6238  (eval "$ac_link") 2>conftest.er1
6239  ac_status=$?
6240  grep -v '^ *+' conftest.er1 >conftest.err
6241  rm -f conftest.er1
6242  cat conftest.err >&5
6243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244  (exit $ac_status); } &&
6245	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
6255	 { ac_try='test -s conftest$ac_exeext'
6256  { (case "(($ac_try" in
6257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258  *) ac_try_echo=$ac_try;;
6259esac
6260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6261  (eval "$ac_try") 2>&5
6262  ac_status=$?
6263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264  (exit $ac_status); }; }; then
6265  ac_cv_lib_l_yywrap=yes
6266else
6267  echo "$as_me: failed program was:" >&5
6268sed 's/^/| /' conftest.$ac_ext >&5
6269
6270	ac_cv_lib_l_yywrap=no
6271fi
6272
6273rm -f core conftest.err conftest.$ac_objext \
6274      conftest$ac_exeext conftest.$ac_ext
6275LIBS=$ac_check_lib_save_LIBS
6276fi
6277{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6278echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6279if test $ac_cv_lib_l_yywrap = yes; then
6280  LEXLIB="-ll"
6281fi
6282
6283fi
6284
6285fi
6286
6287if test "x$LEX" != "x:"; then
6288  { echo "$as_me:$LINENO: checking lex output file root" >&5
6289echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6290if test "${ac_cv_prog_lex_root+set}" = set; then
6291  echo $ECHO_N "(cached) $ECHO_C" >&6
6292else
6293  # The minimal lex program is just a single line: %%.  But some broken lexes
6294# (Solaris, I think it was) want two %% lines, so accommodate them.
6295cat >conftest.l <<_ACEOF
6296%%
6297%%
6298_ACEOF
6299{ (ac_try="$LEX conftest.l"
6300case "(($ac_try" in
6301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302  *) ac_try_echo=$ac_try;;
6303esac
6304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305  (eval "$LEX conftest.l") 2>&5
6306  ac_status=$?
6307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308  (exit $ac_status); }
6309if test -f lex.yy.c; then
6310  ac_cv_prog_lex_root=lex.yy
6311elif test -f lexyy.c; then
6312  ac_cv_prog_lex_root=lexyy
6313else
6314  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6315echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6316   { (exit 1); exit 1; }; }
6317fi
6318fi
6319{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6320echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6321rm -f conftest.l
6322LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6323
6324{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6325echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6326if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6327  echo $ECHO_N "(cached) $ECHO_C" >&6
6328else
6329  # POSIX says lex can declare yytext either as a pointer or an array; the
6330# default is implementation-dependent. Figure out which it is, since
6331# not all implementations provide the %pointer and %array declarations.
6332ac_cv_prog_lex_yytext_pointer=no
6333echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6334ac_save_LIBS=$LIBS
6335LIBS="$LIBS $LEXLIB"
6336cat >conftest.$ac_ext <<_ACEOF
6337`cat $LEX_OUTPUT_ROOT.c`
6338_ACEOF
6339rm -f conftest.$ac_objext conftest$ac_exeext
6340if { (ac_try="$ac_link"
6341case "(($ac_try" in
6342  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6343  *) ac_try_echo=$ac_try;;
6344esac
6345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6346  (eval "$ac_link") 2>conftest.er1
6347  ac_status=$?
6348  grep -v '^ *+' conftest.er1 >conftest.err
6349  rm -f conftest.er1
6350  cat conftest.err >&5
6351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352  (exit $ac_status); } &&
6353	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6354  { (case "(($ac_try" in
6355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356  *) ac_try_echo=$ac_try;;
6357esac
6358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6359  (eval "$ac_try") 2>&5
6360  ac_status=$?
6361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362  (exit $ac_status); }; } &&
6363	 { ac_try='test -s conftest$ac_exeext'
6364  { (case "(($ac_try" in
6365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6366  *) ac_try_echo=$ac_try;;
6367esac
6368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6369  (eval "$ac_try") 2>&5
6370  ac_status=$?
6371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372  (exit $ac_status); }; }; then
6373  ac_cv_prog_lex_yytext_pointer=yes
6374else
6375  echo "$as_me: failed program was:" >&5
6376sed 's/^/| /' conftest.$ac_ext >&5
6377
6378
6379fi
6380
6381rm -f core conftest.err conftest.$ac_objext \
6382      conftest$ac_exeext conftest.$ac_ext
6383LIBS=$ac_save_LIBS
6384rm -f "${LEX_OUTPUT_ROOT}.c"
6385
6386fi
6387{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6388echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6389if test $ac_cv_prog_lex_yytext_pointer = yes; then
6390
6391cat >>confdefs.h <<\_ACEOF
6392#define YYTEXT_POINTER 1
6393_ACEOF
6394
6395fi
6396
6397fi
6398
6399fi
6400{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6401echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6402if test "$LEX" != "flex"; then
6403  { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6404echo "$as_me: error: flex not found but required" >&2;}
6405   { (exit 1); exit 1; }; }
6406else
6407  FLEX=flex
6408
6409fi
6410
6411{ echo "$as_me:$LINENO: checking " >&5
6412echo $ECHO_N "checking ... $ECHO_C" >&6; }
6413if test "${llvm_cv_has_bison+set}" = set; then
6414  echo $ECHO_N "(cached) $ECHO_C" >&6
6415else
6416  for ac_prog in 'bison -y' byacc
6417do
6418  # Extract the first word of "$ac_prog", so it can be a program name with args.
6419set dummy $ac_prog; ac_word=$2
6420{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6422if test "${ac_cv_prog_YACC+set}" = set; then
6423  echo $ECHO_N "(cached) $ECHO_C" >&6
6424else
6425  if test -n "$YACC"; then
6426  ac_cv_prog_YACC="$YACC" # Let the user override the test.
6427else
6428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429for as_dir in $PATH
6430do
6431  IFS=$as_save_IFS
6432  test -z "$as_dir" && as_dir=.
6433  for ac_exec_ext in '' $ac_executable_extensions; do
6434  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6435    ac_cv_prog_YACC="$ac_prog"
6436    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6437    break 2
6438  fi
6439done
6440done
6441IFS=$as_save_IFS
6442
6443fi
6444fi
6445YACC=$ac_cv_prog_YACC
6446if test -n "$YACC"; then
6447  { echo "$as_me:$LINENO: result: $YACC" >&5
6448echo "${ECHO_T}$YACC" >&6; }
6449else
6450  { echo "$as_me:$LINENO: result: no" >&5
6451echo "${ECHO_T}no" >&6; }
6452fi
6453
6454
6455  test -n "$YACC" && break
6456done
6457test -n "$YACC" || YACC="yacc"
6458
6459fi
6460{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6461echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6462if test "$YACC" != "bison -y"; then
6463
6464  { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6465echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6466else
6467  BISON=bison
6468
6469fi
6470
6471{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6472echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6473if test "${lt_cv_path_NM+set}" = set; then
6474  echo $ECHO_N "(cached) $ECHO_C" >&6
6475else
6476  if test -n "$NM"; then
6477  # Let the user override the test.
6478  lt_cv_path_NM="$NM"
6479else
6480  lt_nm_to_check="${ac_tool_prefix}nm"
6481  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6482    lt_nm_to_check="$lt_nm_to_check nm"
6483  fi
6484  for lt_tmp_nm in $lt_nm_to_check; do
6485    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6486    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6487      IFS="$lt_save_ifs"
6488      test -z "$ac_dir" && ac_dir=.
6489      tmp_nm="$ac_dir/$lt_tmp_nm"
6490      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6491	# Check to see if the nm accepts a BSD-compat flag.
6492	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6493	#   nm: unknown option "B" ignored
6494	# Tru64's nm complains that /dev/null is an invalid object file
6495	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6496	*/dev/null* | *'Invalid file or object type'*)
6497	  lt_cv_path_NM="$tmp_nm -B"
6498	  break
6499	  ;;
6500	*)
6501	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6502	  */dev/null*)
6503	    lt_cv_path_NM="$tmp_nm -p"
6504	    break
6505	    ;;
6506	  *)
6507	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6508	    continue # so that we can try to find one that supports BSD flags
6509	    ;;
6510	  esac
6511	  ;;
6512	esac
6513      fi
6514    done
6515    IFS="$lt_save_ifs"
6516  done
6517  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6518fi
6519fi
6520{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6521echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6522NM="$lt_cv_path_NM"
6523
6524
6525
6526{ echo "$as_me:$LINENO: checking for GNU make" >&5
6527echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6528if test "${llvm_cv_gnu_make_command+set}" = set; then
6529  echo $ECHO_N "(cached) $ECHO_C" >&6
6530else
6531  llvm_cv_gnu_make_command=''
6532 for a in "$MAKE" make gmake gnumake ; do
6533  if test -z "$a" ; then continue ; fi ;
6534  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6535  then
6536   llvm_cv_gnu_make_command=$a ;
6537   break;
6538  fi
6539 done
6540fi
6541{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6542echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6543 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6544   ifGNUmake='' ;
6545 else
6546   ifGNUmake='#' ;
6547   { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6548echo "${ECHO_T}\"Not found\"" >&6; };
6549 fi
6550
6551
6552{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6553echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6554LN_S=$as_ln_s
6555if test "$LN_S" = "ln -s"; then
6556  { echo "$as_me:$LINENO: result: yes" >&5
6557echo "${ECHO_T}yes" >&6; }
6558else
6559  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6560echo "${ECHO_T}no, using $LN_S" >&6; }
6561fi
6562
6563# Extract the first word of "cmp", so it can be a program name with args.
6564set dummy cmp; ac_word=$2
6565{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6567if test "${ac_cv_path_CMP+set}" = set; then
6568  echo $ECHO_N "(cached) $ECHO_C" >&6
6569else
6570  case $CMP in
6571  [\\/]* | ?:[\\/]*)
6572  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6573  ;;
6574  *)
6575  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576for as_dir in $PATH
6577do
6578  IFS=$as_save_IFS
6579  test -z "$as_dir" && as_dir=.
6580  for ac_exec_ext in '' $ac_executable_extensions; do
6581  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6582    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6583    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6584    break 2
6585  fi
6586done
6587done
6588IFS=$as_save_IFS
6589
6590  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6591  ;;
6592esac
6593fi
6594CMP=$ac_cv_path_CMP
6595if test -n "$CMP"; then
6596  { echo "$as_me:$LINENO: result: $CMP" >&5
6597echo "${ECHO_T}$CMP" >&6; }
6598else
6599  { echo "$as_me:$LINENO: result: no" >&5
6600echo "${ECHO_T}no" >&6; }
6601fi
6602
6603
6604# Extract the first word of "cp", so it can be a program name with args.
6605set dummy cp; ac_word=$2
6606{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608if test "${ac_cv_path_CP+set}" = set; then
6609  echo $ECHO_N "(cached) $ECHO_C" >&6
6610else
6611  case $CP in
6612  [\\/]* | ?:[\\/]*)
6613  ac_cv_path_CP="$CP" # Let the user override the test with a path.
6614  ;;
6615  *)
6616  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617for as_dir in $PATH
6618do
6619  IFS=$as_save_IFS
6620  test -z "$as_dir" && as_dir=.
6621  for ac_exec_ext in '' $ac_executable_extensions; do
6622  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6623    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6624    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6625    break 2
6626  fi
6627done
6628done
6629IFS=$as_save_IFS
6630
6631  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6632  ;;
6633esac
6634fi
6635CP=$ac_cv_path_CP
6636if test -n "$CP"; then
6637  { echo "$as_me:$LINENO: result: $CP" >&5
6638echo "${ECHO_T}$CP" >&6; }
6639else
6640  { echo "$as_me:$LINENO: result: no" >&5
6641echo "${ECHO_T}no" >&6; }
6642fi
6643
6644
6645# Extract the first word of "date", so it can be a program name with args.
6646set dummy date; ac_word=$2
6647{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6649if test "${ac_cv_path_DATE+set}" = set; then
6650  echo $ECHO_N "(cached) $ECHO_C" >&6
6651else
6652  case $DATE in
6653  [\\/]* | ?:[\\/]*)
6654  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6655  ;;
6656  *)
6657  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658for as_dir in $PATH
6659do
6660  IFS=$as_save_IFS
6661  test -z "$as_dir" && as_dir=.
6662  for ac_exec_ext in '' $ac_executable_extensions; do
6663  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6664    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6665    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666    break 2
6667  fi
6668done
6669done
6670IFS=$as_save_IFS
6671
6672  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6673  ;;
6674esac
6675fi
6676DATE=$ac_cv_path_DATE
6677if test -n "$DATE"; then
6678  { echo "$as_me:$LINENO: result: $DATE" >&5
6679echo "${ECHO_T}$DATE" >&6; }
6680else
6681  { echo "$as_me:$LINENO: result: no" >&5
6682echo "${ECHO_T}no" >&6; }
6683fi
6684
6685
6686# Extract the first word of "find", so it can be a program name with args.
6687set dummy find; ac_word=$2
6688{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6690if test "${ac_cv_path_FIND+set}" = set; then
6691  echo $ECHO_N "(cached) $ECHO_C" >&6
6692else
6693  case $FIND in
6694  [\\/]* | ?:[\\/]*)
6695  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6696  ;;
6697  *)
6698  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699for as_dir in $PATH
6700do
6701  IFS=$as_save_IFS
6702  test -z "$as_dir" && as_dir=.
6703  for ac_exec_ext in '' $ac_executable_extensions; do
6704  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6705    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6706    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6707    break 2
6708  fi
6709done
6710done
6711IFS=$as_save_IFS
6712
6713  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6714  ;;
6715esac
6716fi
6717FIND=$ac_cv_path_FIND
6718if test -n "$FIND"; then
6719  { echo "$as_me:$LINENO: result: $FIND" >&5
6720echo "${ECHO_T}$FIND" >&6; }
6721else
6722  { echo "$as_me:$LINENO: result: no" >&5
6723echo "${ECHO_T}no" >&6; }
6724fi
6725
6726
6727# Extract the first word of "grep", so it can be a program name with args.
6728set dummy grep; ac_word=$2
6729{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731if test "${ac_cv_path_GREP+set}" = set; then
6732  echo $ECHO_N "(cached) $ECHO_C" >&6
6733else
6734  case $GREP in
6735  [\\/]* | ?:[\\/]*)
6736  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6737  ;;
6738  *)
6739  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740for as_dir in $PATH
6741do
6742  IFS=$as_save_IFS
6743  test -z "$as_dir" && as_dir=.
6744  for ac_exec_ext in '' $ac_executable_extensions; do
6745  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6746    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6747    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748    break 2
6749  fi
6750done
6751done
6752IFS=$as_save_IFS
6753
6754  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6755  ;;
6756esac
6757fi
6758GREP=$ac_cv_path_GREP
6759if test -n "$GREP"; then
6760  { echo "$as_me:$LINENO: result: $GREP" >&5
6761echo "${ECHO_T}$GREP" >&6; }
6762else
6763  { echo "$as_me:$LINENO: result: no" >&5
6764echo "${ECHO_T}no" >&6; }
6765fi
6766
6767
6768# Extract the first word of "mkdir", so it can be a program name with args.
6769set dummy mkdir; ac_word=$2
6770{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6772if test "${ac_cv_path_MKDIR+set}" = set; then
6773  echo $ECHO_N "(cached) $ECHO_C" >&6
6774else
6775  case $MKDIR in
6776  [\\/]* | ?:[\\/]*)
6777  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6778  ;;
6779  *)
6780  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781for as_dir in $PATH
6782do
6783  IFS=$as_save_IFS
6784  test -z "$as_dir" && as_dir=.
6785  for ac_exec_ext in '' $ac_executable_extensions; do
6786  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6787    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6788    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789    break 2
6790  fi
6791done
6792done
6793IFS=$as_save_IFS
6794
6795  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6796  ;;
6797esac
6798fi
6799MKDIR=$ac_cv_path_MKDIR
6800if test -n "$MKDIR"; then
6801  { echo "$as_me:$LINENO: result: $MKDIR" >&5
6802echo "${ECHO_T}$MKDIR" >&6; }
6803else
6804  { echo "$as_me:$LINENO: result: no" >&5
6805echo "${ECHO_T}no" >&6; }
6806fi
6807
6808
6809# Extract the first word of "mv", so it can be a program name with args.
6810set dummy mv; ac_word=$2
6811{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6813if test "${ac_cv_path_MV+set}" = set; then
6814  echo $ECHO_N "(cached) $ECHO_C" >&6
6815else
6816  case $MV in
6817  [\\/]* | ?:[\\/]*)
6818  ac_cv_path_MV="$MV" # Let the user override the test with a path.
6819  ;;
6820  *)
6821  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822for as_dir in $PATH
6823do
6824  IFS=$as_save_IFS
6825  test -z "$as_dir" && as_dir=.
6826  for ac_exec_ext in '' $ac_executable_extensions; do
6827  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6828    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6829    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6830    break 2
6831  fi
6832done
6833done
6834IFS=$as_save_IFS
6835
6836  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6837  ;;
6838esac
6839fi
6840MV=$ac_cv_path_MV
6841if test -n "$MV"; then
6842  { echo "$as_me:$LINENO: result: $MV" >&5
6843echo "${ECHO_T}$MV" >&6; }
6844else
6845  { echo "$as_me:$LINENO: result: no" >&5
6846echo "${ECHO_T}no" >&6; }
6847fi
6848
6849
6850if test -n "$ac_tool_prefix"; then
6851  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6852set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6853{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6855if test "${ac_cv_prog_RANLIB+set}" = set; then
6856  echo $ECHO_N "(cached) $ECHO_C" >&6
6857else
6858  if test -n "$RANLIB"; then
6859  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6860else
6861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862for as_dir in $PATH
6863do
6864  IFS=$as_save_IFS
6865  test -z "$as_dir" && as_dir=.
6866  for ac_exec_ext in '' $ac_executable_extensions; do
6867  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6868    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6869    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6870    break 2
6871  fi
6872done
6873done
6874IFS=$as_save_IFS
6875
6876fi
6877fi
6878RANLIB=$ac_cv_prog_RANLIB
6879if test -n "$RANLIB"; then
6880  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6881echo "${ECHO_T}$RANLIB" >&6; }
6882else
6883  { echo "$as_me:$LINENO: result: no" >&5
6884echo "${ECHO_T}no" >&6; }
6885fi
6886
6887
6888fi
6889if test -z "$ac_cv_prog_RANLIB"; then
6890  ac_ct_RANLIB=$RANLIB
6891  # Extract the first word of "ranlib", so it can be a program name with args.
6892set dummy ranlib; ac_word=$2
6893{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6895if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6896  echo $ECHO_N "(cached) $ECHO_C" >&6
6897else
6898  if test -n "$ac_ct_RANLIB"; then
6899  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6900else
6901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902for as_dir in $PATH
6903do
6904  IFS=$as_save_IFS
6905  test -z "$as_dir" && as_dir=.
6906  for ac_exec_ext in '' $ac_executable_extensions; do
6907  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6908    ac_cv_prog_ac_ct_RANLIB="ranlib"
6909    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6910    break 2
6911  fi
6912done
6913done
6914IFS=$as_save_IFS
6915
6916fi
6917fi
6918ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6919if test -n "$ac_ct_RANLIB"; then
6920  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6921echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6922else
6923  { echo "$as_me:$LINENO: result: no" >&5
6924echo "${ECHO_T}no" >&6; }
6925fi
6926
6927  if test "x$ac_ct_RANLIB" = x; then
6928    RANLIB=":"
6929  else
6930    case $cross_compiling:$ac_tool_warned in
6931yes:)
6932{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6933whose name does not start with the host triplet.  If you think this
6934configuration is useful to you, please write to autoconf@gnu.org." >&5
6935echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6936whose name does not start with the host triplet.  If you think this
6937configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6938ac_tool_warned=yes ;;
6939esac
6940    RANLIB=$ac_ct_RANLIB
6941  fi
6942else
6943  RANLIB="$ac_cv_prog_RANLIB"
6944fi
6945
6946# Extract the first word of "rm", so it can be a program name with args.
6947set dummy rm; ac_word=$2
6948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6950if test "${ac_cv_path_RM+set}" = set; then
6951  echo $ECHO_N "(cached) $ECHO_C" >&6
6952else
6953  case $RM in
6954  [\\/]* | ?:[\\/]*)
6955  ac_cv_path_RM="$RM" # Let the user override the test with a path.
6956  ;;
6957  *)
6958  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959for as_dir in $PATH
6960do
6961  IFS=$as_save_IFS
6962  test -z "$as_dir" && as_dir=.
6963  for ac_exec_ext in '' $ac_executable_extensions; do
6964  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6965    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6966    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6967    break 2
6968  fi
6969done
6970done
6971IFS=$as_save_IFS
6972
6973  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6974  ;;
6975esac
6976fi
6977RM=$ac_cv_path_RM
6978if test -n "$RM"; then
6979  { echo "$as_me:$LINENO: result: $RM" >&5
6980echo "${ECHO_T}$RM" >&6; }
6981else
6982  { echo "$as_me:$LINENO: result: no" >&5
6983echo "${ECHO_T}no" >&6; }
6984fi
6985
6986
6987# Extract the first word of "sed", so it can be a program name with args.
6988set dummy sed; ac_word=$2
6989{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6991if test "${ac_cv_path_SED+set}" = set; then
6992  echo $ECHO_N "(cached) $ECHO_C" >&6
6993else
6994  case $SED in
6995  [\\/]* | ?:[\\/]*)
6996  ac_cv_path_SED="$SED" # Let the user override the test with a path.
6997  ;;
6998  *)
6999  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000for as_dir in $PATH
7001do
7002  IFS=$as_save_IFS
7003  test -z "$as_dir" && as_dir=.
7004  for ac_exec_ext in '' $ac_executable_extensions; do
7005  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7006    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7007    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7008    break 2
7009  fi
7010done
7011done
7012IFS=$as_save_IFS
7013
7014  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7015  ;;
7016esac
7017fi
7018SED=$ac_cv_path_SED
7019if test -n "$SED"; then
7020  { echo "$as_me:$LINENO: result: $SED" >&5
7021echo "${ECHO_T}$SED" >&6; }
7022else
7023  { echo "$as_me:$LINENO: result: no" >&5
7024echo "${ECHO_T}no" >&6; }
7025fi
7026
7027
7028# Extract the first word of "tar", so it can be a program name with args.
7029set dummy tar; ac_word=$2
7030{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7032if test "${ac_cv_path_TAR+set}" = set; then
7033  echo $ECHO_N "(cached) $ECHO_C" >&6
7034else
7035  case $TAR in
7036  [\\/]* | ?:[\\/]*)
7037  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7038  ;;
7039  *)
7040  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041for as_dir in $PATH
7042do
7043  IFS=$as_save_IFS
7044  test -z "$as_dir" && as_dir=.
7045  for ac_exec_ext in '' $ac_executable_extensions; do
7046  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7047    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7048    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7049    break 2
7050  fi
7051done
7052done
7053IFS=$as_save_IFS
7054
7055  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7056  ;;
7057esac
7058fi
7059TAR=$ac_cv_path_TAR
7060if test -n "$TAR"; then
7061  { echo "$as_me:$LINENO: result: $TAR" >&5
7062echo "${ECHO_T}$TAR" >&6; }
7063else
7064  { echo "$as_me:$LINENO: result: no" >&5
7065echo "${ECHO_T}no" >&6; }
7066fi
7067
7068
7069# Extract the first word of "pwd", so it can be a program name with args.
7070set dummy pwd; ac_word=$2
7071{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7073if test "${ac_cv_path_BINPWD+set}" = set; then
7074  echo $ECHO_N "(cached) $ECHO_C" >&6
7075else
7076  case $BINPWD in
7077  [\\/]* | ?:[\\/]*)
7078  ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7079  ;;
7080  *)
7081  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082for as_dir in $PATH
7083do
7084  IFS=$as_save_IFS
7085  test -z "$as_dir" && as_dir=.
7086  for ac_exec_ext in '' $ac_executable_extensions; do
7087  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7088    ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7089    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090    break 2
7091  fi
7092done
7093done
7094IFS=$as_save_IFS
7095
7096  test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7097  ;;
7098esac
7099fi
7100BINPWD=$ac_cv_path_BINPWD
7101if test -n "$BINPWD"; then
7102  { echo "$as_me:$LINENO: result: $BINPWD" >&5
7103echo "${ECHO_T}$BINPWD" >&6; }
7104else
7105  { echo "$as_me:$LINENO: result: no" >&5
7106echo "${ECHO_T}no" >&6; }
7107fi
7108
7109
7110
7111# Extract the first word of "Graphviz", so it can be a program name with args.
7112set dummy Graphviz; ac_word=$2
7113{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7115if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7116  echo $ECHO_N "(cached) $ECHO_C" >&6
7117else
7118  case $GRAPHVIZ in
7119  [\\/]* | ?:[\\/]*)
7120  ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7121  ;;
7122  *)
7123  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124for as_dir in $PATH
7125do
7126  IFS=$as_save_IFS
7127  test -z "$as_dir" && as_dir=.
7128  for ac_exec_ext in '' $ac_executable_extensions; do
7129  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7130    ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7131    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7132    break 2
7133  fi
7134done
7135done
7136IFS=$as_save_IFS
7137
7138  test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7139  ;;
7140esac
7141fi
7142GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7143if test -n "$GRAPHVIZ"; then
7144  { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7145echo "${ECHO_T}$GRAPHVIZ" >&6; }
7146else
7147  { echo "$as_me:$LINENO: result: no" >&5
7148echo "${ECHO_T}no" >&6; }
7149fi
7150
7151
7152if test "$GRAPHVIZ" != "echo Graphviz" ; then
7153
7154cat >>confdefs.h <<\_ACEOF
7155#define HAVE_GRAPHVIZ 1
7156_ACEOF
7157
7158    if test "$llvm_cv_os_type" = "MingW" ; then
7159    GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7160  fi
7161
7162cat >>confdefs.h <<_ACEOF
7163#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7164_ACEOF
7165
7166fi
7167# Extract the first word of "dot", so it can be a program name with args.
7168set dummy dot; ac_word=$2
7169{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7171if test "${ac_cv_path_DOT+set}" = set; then
7172  echo $ECHO_N "(cached) $ECHO_C" >&6
7173else
7174  case $DOT in
7175  [\\/]* | ?:[\\/]*)
7176  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7177  ;;
7178  *)
7179  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180for as_dir in $PATH
7181do
7182  IFS=$as_save_IFS
7183  test -z "$as_dir" && as_dir=.
7184  for ac_exec_ext in '' $ac_executable_extensions; do
7185  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7186    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7187    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7188    break 2
7189  fi
7190done
7191done
7192IFS=$as_save_IFS
7193
7194  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7195  ;;
7196esac
7197fi
7198DOT=$ac_cv_path_DOT
7199if test -n "$DOT"; then
7200  { echo "$as_me:$LINENO: result: $DOT" >&5
7201echo "${ECHO_T}$DOT" >&6; }
7202else
7203  { echo "$as_me:$LINENO: result: no" >&5
7204echo "${ECHO_T}no" >&6; }
7205fi
7206
7207
7208if test "$DOT" != "echo dot" ; then
7209
7210cat >>confdefs.h <<\_ACEOF
7211#define HAVE_DOT 1
7212_ACEOF
7213
7214    if test "$llvm_cv_os_type" = "MingW" ; then
7215    DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7216  fi
7217
7218cat >>confdefs.h <<_ACEOF
7219#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7220_ACEOF
7221
7222fi
7223for ac_prog in gv gsview32
7224do
7225  # Extract the first word of "$ac_prog", so it can be a program name with args.
7226set dummy $ac_prog; 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_GV+set}" = set; then
7230  echo $ECHO_N "(cached) $ECHO_C" >&6
7231else
7232  case $GV in
7233  [\\/]* | ?:[\\/]*)
7234  ac_cv_path_GV="$GV" # 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_GV="$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  ;;
7253esac
7254fi
7255GV=$ac_cv_path_GV
7256if test -n "$GV"; then
7257  { echo "$as_me:$LINENO: result: $GV" >&5
7258echo "${ECHO_T}$GV" >&6; }
7259else
7260  { echo "$as_me:$LINENO: result: no" >&5
7261echo "${ECHO_T}no" >&6; }
7262fi
7263
7264
7265  test -n "$GV" && break
7266done
7267test -n "$GV" || GV="echo gv"
7268
7269if test "$GV" != "echo gv" ; then
7270
7271cat >>confdefs.h <<\_ACEOF
7272#define HAVE_GV 1
7273_ACEOF
7274
7275    if test "$llvm_cv_os_type" = "MingW" ; then
7276    GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7277  fi
7278
7279cat >>confdefs.h <<_ACEOF
7280#define LLVM_PATH_GV "$GV${EXEEXT}"
7281_ACEOF
7282
7283fi
7284# Extract the first word of "dotty", so it can be a program name with args.
7285set dummy dotty; ac_word=$2
7286{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7288if test "${ac_cv_path_DOTTY+set}" = set; then
7289  echo $ECHO_N "(cached) $ECHO_C" >&6
7290else
7291  case $DOTTY in
7292  [\\/]* | ?:[\\/]*)
7293  ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7294  ;;
7295  *)
7296  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297for as_dir in $PATH
7298do
7299  IFS=$as_save_IFS
7300  test -z "$as_dir" && as_dir=.
7301  for ac_exec_ext in '' $ac_executable_extensions; do
7302  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7303    ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7304    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7305    break 2
7306  fi
7307done
7308done
7309IFS=$as_save_IFS
7310
7311  test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7312  ;;
7313esac
7314fi
7315DOTTY=$ac_cv_path_DOTTY
7316if test -n "$DOTTY"; then
7317  { echo "$as_me:$LINENO: result: $DOTTY" >&5
7318echo "${ECHO_T}$DOTTY" >&6; }
7319else
7320  { echo "$as_me:$LINENO: result: no" >&5
7321echo "${ECHO_T}no" >&6; }
7322fi
7323
7324
7325if test "$DOTTY" != "echo dotty" ; then
7326
7327cat >>confdefs.h <<\_ACEOF
7328#define HAVE_DOTTY 1
7329_ACEOF
7330
7331    if test "$llvm_cv_os_type" = "MingW" ; then
7332    DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7333  fi
7334
7335cat >>confdefs.h <<_ACEOF
7336#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7337_ACEOF
7338
7339fi
7340
7341
7342# Extract the first word of "perl", so it can be a program name with args.
7343set dummy perl; ac_word=$2
7344{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7346if test "${ac_cv_path_PERL+set}" = set; then
7347  echo $ECHO_N "(cached) $ECHO_C" >&6
7348else
7349  case $PERL in
7350  [\\/]* | ?:[\\/]*)
7351  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7352  ;;
7353  *)
7354  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355for as_dir in $PATH
7356do
7357  IFS=$as_save_IFS
7358  test -z "$as_dir" && as_dir=.
7359  for ac_exec_ext in '' $ac_executable_extensions; do
7360  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7361    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7362    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7363    break 2
7364  fi
7365done
7366done
7367IFS=$as_save_IFS
7368
7369  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7370  ;;
7371esac
7372fi
7373PERL=$ac_cv_path_PERL
7374if test -n "$PERL"; then
7375  { echo "$as_me:$LINENO: result: $PERL" >&5
7376echo "${ECHO_T}$PERL" >&6; }
7377else
7378  { echo "$as_me:$LINENO: result: no" >&5
7379echo "${ECHO_T}no" >&6; }
7380fi
7381
7382
7383if test "$PERL" != "none"; then
7384  { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7385echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7386  if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7387    { echo "$as_me:$LINENO: result: yes" >&5
7388echo "${ECHO_T}yes" >&6; }
7389  else
7390    PERL=none
7391    { echo "$as_me:$LINENO: result: not found" >&5
7392echo "${ECHO_T}not found" >&6; }
7393  fi
7394fi
7395
7396
7397if test x"$PERL" = xnone; then
7398   HAVE_PERL=0
7399
7400   { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7401echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7402   { (exit 1); exit 1; }; }
7403else
7404   HAVE_PERL=1
7405
7406fi
7407
7408# Find a good install program.  We prefer a C program (faster),
7409# so one script is as good as another.  But avoid the broken or
7410# incompatible versions:
7411# SysV /etc/install, /usr/sbin/install
7412# SunOS /usr/etc/install
7413# IRIX /sbin/install
7414# AIX /bin/install
7415# AmigaOS /C/install, which installs bootblocks on floppy discs
7416# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7417# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7418# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7419# OS/2's system install, which has a completely different semantic
7420# ./install, which can be erroneously created by make from ./install.sh.
7421{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7422echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7423if test -z "$INSTALL"; then
7424if test "${ac_cv_path_install+set}" = set; then
7425  echo $ECHO_N "(cached) $ECHO_C" >&6
7426else
7427  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428for as_dir in $PATH
7429do
7430  IFS=$as_save_IFS
7431  test -z "$as_dir" && as_dir=.
7432  # Account for people who put trailing slashes in PATH elements.
7433case $as_dir/ in
7434  ./ | .// | /cC/* | \
7435  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7436  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7437  /usr/ucb/* ) ;;
7438  *)
7439    # OSF1 and SCO ODT 3.0 have their own names for install.
7440    # Don't use installbsd from OSF since it installs stuff as root
7441    # by default.
7442    for ac_prog in ginstall scoinst install; do
7443      for ac_exec_ext in '' $ac_executable_extensions; do
7444	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7445	  if test $ac_prog = install &&
7446	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7447	    # AIX install.  It has an incompatible calling convention.
7448	    :
7449	  elif test $ac_prog = install &&
7450	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7451	    # program-specific install script used by HP pwplus--don't use.
7452	    :
7453	  else
7454	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7455	    break 3
7456	  fi
7457	fi
7458      done
7459    done
7460    ;;
7461esac
7462done
7463IFS=$as_save_IFS
7464
7465
7466fi
7467  if test "${ac_cv_path_install+set}" = set; then
7468    INSTALL=$ac_cv_path_install
7469  else
7470    # As a last resort, use the slow shell script.  Don't cache a
7471    # value for INSTALL within a source directory, because that will
7472    # break other packages using the cache if that directory is
7473    # removed, or if the value is a relative name.
7474    INSTALL=$ac_install_sh
7475  fi
7476fi
7477{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7478echo "${ECHO_T}$INSTALL" >&6; }
7479
7480# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7481# It thinks the first close brace ends the variable substitution.
7482test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7483
7484test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7485
7486test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7487
7488
7489# Extract the first word of "bzip2", so it can be a program name with args.
7490set dummy bzip2; ac_word=$2
7491{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7493if test "${ac_cv_path_BZIP2+set}" = set; then
7494  echo $ECHO_N "(cached) $ECHO_C" >&6
7495else
7496  case $BZIP2 in
7497  [\\/]* | ?:[\\/]*)
7498  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7499  ;;
7500  *)
7501  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502for as_dir in $PATH
7503do
7504  IFS=$as_save_IFS
7505  test -z "$as_dir" && as_dir=.
7506  for ac_exec_ext in '' $ac_executable_extensions; do
7507  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7508    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7509    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7510    break 2
7511  fi
7512done
7513done
7514IFS=$as_save_IFS
7515
7516  test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7517  ;;
7518esac
7519fi
7520BZIP2=$ac_cv_path_BZIP2
7521if test -n "$BZIP2"; then
7522  { echo "$as_me:$LINENO: result: $BZIP2" >&5
7523echo "${ECHO_T}$BZIP2" >&6; }
7524else
7525  { echo "$as_me:$LINENO: result: no" >&5
7526echo "${ECHO_T}no" >&6; }
7527fi
7528
7529
7530# Extract the first word of "doxygen", so it can be a program name with args.
7531set dummy doxygen; ac_word=$2
7532{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7534if test "${ac_cv_path_DOXYGEN+set}" = set; then
7535  echo $ECHO_N "(cached) $ECHO_C" >&6
7536else
7537  case $DOXYGEN in
7538  [\\/]* | ?:[\\/]*)
7539  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7540  ;;
7541  *)
7542  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543for as_dir in $PATH
7544do
7545  IFS=$as_save_IFS
7546  test -z "$as_dir" && as_dir=.
7547  for ac_exec_ext in '' $ac_executable_extensions; do
7548  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7549    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7550    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7551    break 2
7552  fi
7553done
7554done
7555IFS=$as_save_IFS
7556
7557  test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7558  ;;
7559esac
7560fi
7561DOXYGEN=$ac_cv_path_DOXYGEN
7562if test -n "$DOXYGEN"; then
7563  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7564echo "${ECHO_T}$DOXYGEN" >&6; }
7565else
7566  { echo "$as_me:$LINENO: result: no" >&5
7567echo "${ECHO_T}no" >&6; }
7568fi
7569
7570
7571# Extract the first word of "groff", so it can be a program name with args.
7572set dummy groff; ac_word=$2
7573{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7575if test "${ac_cv_path_GROFF+set}" = set; then
7576  echo $ECHO_N "(cached) $ECHO_C" >&6
7577else
7578  case $GROFF in
7579  [\\/]* | ?:[\\/]*)
7580  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7581  ;;
7582  *)
7583  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584for as_dir in $PATH
7585do
7586  IFS=$as_save_IFS
7587  test -z "$as_dir" && as_dir=.
7588  for ac_exec_ext in '' $ac_executable_extensions; do
7589  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7590    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7591    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7592    break 2
7593  fi
7594done
7595done
7596IFS=$as_save_IFS
7597
7598  test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7599  ;;
7600esac
7601fi
7602GROFF=$ac_cv_path_GROFF
7603if test -n "$GROFF"; then
7604  { echo "$as_me:$LINENO: result: $GROFF" >&5
7605echo "${ECHO_T}$GROFF" >&6; }
7606else
7607  { echo "$as_me:$LINENO: result: no" >&5
7608echo "${ECHO_T}no" >&6; }
7609fi
7610
7611
7612# Extract the first word of "gzip", so it can be a program name with args.
7613set dummy gzip; ac_word=$2
7614{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7616if test "${ac_cv_path_GZIP+set}" = set; then
7617  echo $ECHO_N "(cached) $ECHO_C" >&6
7618else
7619  case $GZIP in
7620  [\\/]* | ?:[\\/]*)
7621  ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7622  ;;
7623  *)
7624  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625for as_dir in $PATH
7626do
7627  IFS=$as_save_IFS
7628  test -z "$as_dir" && as_dir=.
7629  for ac_exec_ext in '' $ac_executable_extensions; do
7630  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7631    ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7632    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7633    break 2
7634  fi
7635done
7636done
7637IFS=$as_save_IFS
7638
7639  test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7640  ;;
7641esac
7642fi
7643GZIP=$ac_cv_path_GZIP
7644if test -n "$GZIP"; then
7645  { echo "$as_me:$LINENO: result: $GZIP" >&5
7646echo "${ECHO_T}$GZIP" >&6; }
7647else
7648  { echo "$as_me:$LINENO: result: no" >&5
7649echo "${ECHO_T}no" >&6; }
7650fi
7651
7652
7653# Extract the first word of "pod2html", so it can be a program name with args.
7654set dummy pod2html; ac_word=$2
7655{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7657if test "${ac_cv_path_POD2HTML+set}" = set; then
7658  echo $ECHO_N "(cached) $ECHO_C" >&6
7659else
7660  case $POD2HTML in
7661  [\\/]* | ?:[\\/]*)
7662  ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7663  ;;
7664  *)
7665  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666for as_dir in $PATH
7667do
7668  IFS=$as_save_IFS
7669  test -z "$as_dir" && as_dir=.
7670  for ac_exec_ext in '' $ac_executable_extensions; do
7671  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7672    ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7673    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7674    break 2
7675  fi
7676done
7677done
7678IFS=$as_save_IFS
7679
7680  test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7681  ;;
7682esac
7683fi
7684POD2HTML=$ac_cv_path_POD2HTML
7685if test -n "$POD2HTML"; then
7686  { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7687echo "${ECHO_T}$POD2HTML" >&6; }
7688else
7689  { echo "$as_me:$LINENO: result: no" >&5
7690echo "${ECHO_T}no" >&6; }
7691fi
7692
7693
7694# Extract the first word of "pod2man", so it can be a program name with args.
7695set dummy pod2man; ac_word=$2
7696{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7698if test "${ac_cv_path_POD2MAN+set}" = set; then
7699  echo $ECHO_N "(cached) $ECHO_C" >&6
7700else
7701  case $POD2MAN in
7702  [\\/]* | ?:[\\/]*)
7703  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7704  ;;
7705  *)
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  for ac_exec_ext in '' $ac_executable_extensions; do
7712  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7713    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7714    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7715    break 2
7716  fi
7717done
7718done
7719IFS=$as_save_IFS
7720
7721  test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7722  ;;
7723esac
7724fi
7725POD2MAN=$ac_cv_path_POD2MAN
7726if test -n "$POD2MAN"; then
7727  { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7728echo "${ECHO_T}$POD2MAN" >&6; }
7729else
7730  { echo "$as_me:$LINENO: result: no" >&5
7731echo "${ECHO_T}no" >&6; }
7732fi
7733
7734
7735# Extract the first word of "runtest", so it can be a program name with args.
7736set dummy runtest; ac_word=$2
7737{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7739if test "${ac_cv_path_RUNTEST+set}" = set; then
7740  echo $ECHO_N "(cached) $ECHO_C" >&6
7741else
7742  case $RUNTEST in
7743  [\\/]* | ?:[\\/]*)
7744  ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7745  ;;
7746  *)
7747  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748for as_dir in $PATH
7749do
7750  IFS=$as_save_IFS
7751  test -z "$as_dir" && as_dir=.
7752  for ac_exec_ext in '' $ac_executable_extensions; do
7753  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7754    ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7755    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7756    break 2
7757  fi
7758done
7759done
7760IFS=$as_save_IFS
7761
7762  test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7763  ;;
7764esac
7765fi
7766RUNTEST=$ac_cv_path_RUNTEST
7767if test -n "$RUNTEST"; then
7768  { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7769echo "${ECHO_T}$RUNTEST" >&6; }
7770else
7771  { echo "$as_me:$LINENO: result: no" >&5
7772echo "${ECHO_T}no" >&6; }
7773fi
7774
7775
7776
7777no_itcl=true
7778{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7779echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7780
7781# Check whether --with-tclinclude was given.
7782if test "${with_tclinclude+set}" = set; then
7783  withval=$with_tclinclude; with_tclinclude=${withval}
7784else
7785  with_tclinclude=''
7786fi
7787
7788if test "${ac_cv_path_tclsh+set}" = set; then
7789  echo $ECHO_N "(cached) $ECHO_C" >&6
7790else
7791
7792if test x"${with_tclinclude}" != x ; then
7793  if test -f ${with_tclinclude}/tclsh ; then
7794    ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7795  elif test -f ${with_tclinclude}/src/tclsh ; then
7796    ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7797  else
7798    { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7799echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7800   { (exit 1); exit 1; }; }
7801  fi
7802fi
7803
7804if test x"${ac_cv_path_tclsh}" = x ; then
7805  { echo "$as_me:$LINENO: result: none" >&5
7806echo "${ECHO_T}none" >&6; }
7807  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
7808do
7809  # Extract the first word of "$ac_prog", so it can be a program name with args.
7810set dummy $ac_prog; ac_word=$2
7811{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7813if test "${ac_cv_path_TCLSH+set}" = set; then
7814  echo $ECHO_N "(cached) $ECHO_C" >&6
7815else
7816  case $TCLSH in
7817  [\\/]* | ?:[\\/]*)
7818  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7819  ;;
7820  *)
7821  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822for as_dir in $PATH
7823do
7824  IFS=$as_save_IFS
7825  test -z "$as_dir" && as_dir=.
7826  for ac_exec_ext in '' $ac_executable_extensions; do
7827  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7828    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7829    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7830    break 2
7831  fi
7832done
7833done
7834IFS=$as_save_IFS
7835
7836  ;;
7837esac
7838fi
7839TCLSH=$ac_cv_path_TCLSH
7840if test -n "$TCLSH"; then
7841  { echo "$as_me:$LINENO: result: $TCLSH" >&5
7842echo "${ECHO_T}$TCLSH" >&6; }
7843else
7844  { echo "$as_me:$LINENO: result: no" >&5
7845echo "${ECHO_T}no" >&6; }
7846fi
7847
7848
7849  test -n "$TCLSH" && break
7850done
7851
7852  if test x"${TCLSH}" = x ; then
7853    ac_cv_path_tclsh='';
7854  else
7855    ac_cv_path_tclsh="${TCLSH}";
7856  fi
7857else
7858  { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7859echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7860  TCLSH="${ac_cv_path_tclsh}"
7861
7862fi
7863
7864fi
7865
7866# Extract the first word of "zip", so it can be a program name with args.
7867set dummy zip; ac_word=$2
7868{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7870if test "${ac_cv_path_ZIP+set}" = set; then
7871  echo $ECHO_N "(cached) $ECHO_C" >&6
7872else
7873  case $ZIP in
7874  [\\/]* | ?:[\\/]*)
7875  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7876  ;;
7877  *)
7878  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879for as_dir in $PATH
7880do
7881  IFS=$as_save_IFS
7882  test -z "$as_dir" && as_dir=.
7883  for ac_exec_ext in '' $ac_executable_extensions; do
7884  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7885    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7886    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7887    break 2
7888  fi
7889done
7890done
7891IFS=$as_save_IFS
7892
7893  test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7894  ;;
7895esac
7896fi
7897ZIP=$ac_cv_path_ZIP
7898if test -n "$ZIP"; then
7899  { echo "$as_me:$LINENO: result: $ZIP" >&5
7900echo "${ECHO_T}$ZIP" >&6; }
7901else
7902  { echo "$as_me:$LINENO: result: no" >&5
7903echo "${ECHO_T}no" >&6; }
7904fi
7905
7906
7907
7908{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7909echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7910if test "${llvm_cv_link_use_r+set}" = set; then
7911  echo $ECHO_N "(cached) $ECHO_C" >&6
7912else
7913   ac_ext=c
7914ac_cpp='$CPP $CPPFLAGS'
7915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7917ac_compiler_gnu=$ac_cv_c_compiler_gnu
7918
7919  oldcflags="$CFLAGS"
7920  CFLAGS="$CFLAGS -Wl,-R."
7921  cat >conftest.$ac_ext <<_ACEOF
7922/* confdefs.h.  */
7923_ACEOF
7924cat confdefs.h >>conftest.$ac_ext
7925cat >>conftest.$ac_ext <<_ACEOF
7926/* end confdefs.h.  */
7927
7928int
7929main ()
7930{
7931int main() { return 0; }
7932  ;
7933  return 0;
7934}
7935_ACEOF
7936rm -f conftest.$ac_objext conftest$ac_exeext
7937if { (ac_try="$ac_link"
7938case "(($ac_try" in
7939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940  *) ac_try_echo=$ac_try;;
7941esac
7942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7943  (eval "$ac_link") 2>conftest.er1
7944  ac_status=$?
7945  grep -v '^ *+' conftest.er1 >conftest.err
7946  rm -f conftest.er1
7947  cat conftest.err >&5
7948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949  (exit $ac_status); } &&
7950	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7951  { (case "(($ac_try" in
7952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7953  *) ac_try_echo=$ac_try;;
7954esac
7955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7956  (eval "$ac_try") 2>&5
7957  ac_status=$?
7958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959  (exit $ac_status); }; } &&
7960	 { ac_try='test -s conftest$ac_exeext'
7961  { (case "(($ac_try" in
7962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963  *) ac_try_echo=$ac_try;;
7964esac
7965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966  (eval "$ac_try") 2>&5
7967  ac_status=$?
7968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969  (exit $ac_status); }; }; then
7970  llvm_cv_link_use_r=yes
7971else
7972  echo "$as_me: failed program was:" >&5
7973sed 's/^/| /' conftest.$ac_ext >&5
7974
7975	llvm_cv_link_use_r=no
7976fi
7977
7978rm -f core conftest.err conftest.$ac_objext \
7979      conftest$ac_exeext conftest.$ac_ext
7980  CFLAGS="$oldcflags"
7981  ac_ext=c
7982ac_cpp='$CPP $CPPFLAGS'
7983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7985ac_compiler_gnu=$ac_cv_c_compiler_gnu
7986
7987
7988fi
7989{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7990echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7991if test "$llvm_cv_link_use_r" = yes ; then
7992
7993cat >>confdefs.h <<\_ACEOF
7994#define HAVE_LINK_R 1
7995_ACEOF
7996
7997  fi
7998
7999
8000
8001
8002{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8003echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8004if test "${ac_cv_c_const+set}" = set; then
8005  echo $ECHO_N "(cached) $ECHO_C" >&6
8006else
8007  cat >conftest.$ac_ext <<_ACEOF
8008/* confdefs.h.  */
8009_ACEOF
8010cat confdefs.h >>conftest.$ac_ext
8011cat >>conftest.$ac_ext <<_ACEOF
8012/* end confdefs.h.  */
8013
8014int
8015main ()
8016{
8017/* FIXME: Include the comments suggested by Paul. */
8018#ifndef __cplusplus
8019  /* Ultrix mips cc rejects this.  */
8020  typedef int charset[2];
8021  const charset x;
8022  /* SunOS 4.1.1 cc rejects this.  */
8023  char const *const *ccp;
8024  char **p;
8025  /* NEC SVR4.0.2 mips cc rejects this.  */
8026  struct point {int x, y;};
8027  static struct point const zero = {0,0};
8028  /* AIX XL C 1.02.0.0 rejects this.
8029     It does not let you subtract one const X* pointer from another in
8030     an arm of an if-expression whose if-part is not a constant
8031     expression */
8032  const char *g = "string";
8033  ccp = &g + (g ? g-g : 0);
8034  /* HPUX 7.0 cc rejects these. */
8035  ++ccp;
8036  p = (char**) ccp;
8037  ccp = (char const *const *) p;
8038  { /* SCO 3.2v4 cc rejects this.  */
8039    char *t;
8040    char const *s = 0 ? (char *) 0 : (char const *) 0;
8041
8042    *t++ = 0;
8043    if (s) return 0;
8044  }
8045  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8046    int x[] = {25, 17};
8047    const int *foo = &x[0];
8048    ++foo;
8049  }
8050  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8051    typedef const int *iptr;
8052    iptr p = 0;
8053    ++p;
8054  }
8055  { /* AIX XL C 1.02.0.0 rejects this saying
8056       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8057    struct s { int j; const int *ap[3]; };
8058    struct s *b; b->j = 5;
8059  }
8060  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8061    const int foo = 10;
8062    if (!foo) return 0;
8063  }
8064  return !x[0] && !zero.x;
8065#endif
8066
8067  ;
8068  return 0;
8069}
8070_ACEOF
8071rm -f conftest.$ac_objext
8072if { (ac_try="$ac_compile"
8073case "(($ac_try" in
8074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075  *) ac_try_echo=$ac_try;;
8076esac
8077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078  (eval "$ac_compile") 2>conftest.er1
8079  ac_status=$?
8080  grep -v '^ *+' conftest.er1 >conftest.err
8081  rm -f conftest.er1
8082  cat conftest.err >&5
8083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084  (exit $ac_status); } &&
8085	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8086  { (case "(($ac_try" in
8087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088  *) ac_try_echo=$ac_try;;
8089esac
8090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091  (eval "$ac_try") 2>&5
8092  ac_status=$?
8093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094  (exit $ac_status); }; } &&
8095	 { ac_try='test -s conftest.$ac_objext'
8096  { (case "(($ac_try" in
8097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098  *) ac_try_echo=$ac_try;;
8099esac
8100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101  (eval "$ac_try") 2>&5
8102  ac_status=$?
8103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104  (exit $ac_status); }; }; then
8105  ac_cv_c_const=yes
8106else
8107  echo "$as_me: failed program was:" >&5
8108sed 's/^/| /' conftest.$ac_ext >&5
8109
8110	ac_cv_c_const=no
8111fi
8112
8113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114fi
8115{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8116echo "${ECHO_T}$ac_cv_c_const" >&6; }
8117if test $ac_cv_c_const = no; then
8118
8119cat >>confdefs.h <<\_ACEOF
8120#define const
8121_ACEOF
8122
8123fi
8124
8125
8126
8127
8128
8129
8130ac_header_dirent=no
8131for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8132  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8133{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8134echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8136  echo $ECHO_N "(cached) $ECHO_C" >&6
8137else
8138  cat >conftest.$ac_ext <<_ACEOF
8139/* confdefs.h.  */
8140_ACEOF
8141cat confdefs.h >>conftest.$ac_ext
8142cat >>conftest.$ac_ext <<_ACEOF
8143/* end confdefs.h.  */
8144#include <sys/types.h>
8145#include <$ac_hdr>
8146
8147int
8148main ()
8149{
8150if ((DIR *) 0)
8151return 0;
8152  ;
8153  return 0;
8154}
8155_ACEOF
8156rm -f conftest.$ac_objext
8157if { (ac_try="$ac_compile"
8158case "(($ac_try" in
8159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160  *) ac_try_echo=$ac_try;;
8161esac
8162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8163  (eval "$ac_compile") 2>conftest.er1
8164  ac_status=$?
8165  grep -v '^ *+' conftest.er1 >conftest.err
8166  rm -f conftest.er1
8167  cat conftest.err >&5
8168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169  (exit $ac_status); } &&
8170	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8171  { (case "(($ac_try" in
8172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173  *) ac_try_echo=$ac_try;;
8174esac
8175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8176  (eval "$ac_try") 2>&5
8177  ac_status=$?
8178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179  (exit $ac_status); }; } &&
8180	 { ac_try='test -s conftest.$ac_objext'
8181  { (case "(($ac_try" in
8182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183  *) ac_try_echo=$ac_try;;
8184esac
8185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186  (eval "$ac_try") 2>&5
8187  ac_status=$?
8188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189  (exit $ac_status); }; }; then
8190  eval "$as_ac_Header=yes"
8191else
8192  echo "$as_me: failed program was:" >&5
8193sed 's/^/| /' conftest.$ac_ext >&5
8194
8195	eval "$as_ac_Header=no"
8196fi
8197
8198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8199fi
8200ac_res=`eval echo '${'$as_ac_Header'}'`
8201	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8202echo "${ECHO_T}$ac_res" >&6; }
8203if test `eval echo '${'$as_ac_Header'}'` = yes; then
8204  cat >>confdefs.h <<_ACEOF
8205#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8206_ACEOF
8207
8208ac_header_dirent=$ac_hdr; break
8209fi
8210
8211done
8212# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8213if test $ac_header_dirent = dirent.h; then
8214  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8215echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8216if test "${ac_cv_search_opendir+set}" = set; then
8217  echo $ECHO_N "(cached) $ECHO_C" >&6
8218else
8219  ac_func_search_save_LIBS=$LIBS
8220cat >conftest.$ac_ext <<_ACEOF
8221/* confdefs.h.  */
8222_ACEOF
8223cat confdefs.h >>conftest.$ac_ext
8224cat >>conftest.$ac_ext <<_ACEOF
8225/* end confdefs.h.  */
8226
8227/* Override any GCC internal prototype to avoid an error.
8228   Use char because int might match the return type of a GCC
8229   builtin and then its argument prototype would still apply.  */
8230#ifdef __cplusplus
8231extern "C"
8232#endif
8233char opendir ();
8234int
8235main ()
8236{
8237return opendir ();
8238  ;
8239  return 0;
8240}
8241_ACEOF
8242for ac_lib in '' dir; do
8243  if test -z "$ac_lib"; then
8244    ac_res="none required"
8245  else
8246    ac_res=-l$ac_lib
8247    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8248  fi
8249  rm -f conftest.$ac_objext conftest$ac_exeext
8250if { (ac_try="$ac_link"
8251case "(($ac_try" in
8252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253  *) ac_try_echo=$ac_try;;
8254esac
8255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8256  (eval "$ac_link") 2>conftest.er1
8257  ac_status=$?
8258  grep -v '^ *+' conftest.er1 >conftest.err
8259  rm -f conftest.er1
8260  cat conftest.err >&5
8261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262  (exit $ac_status); } &&
8263	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8264  { (case "(($ac_try" in
8265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266  *) ac_try_echo=$ac_try;;
8267esac
8268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269  (eval "$ac_try") 2>&5
8270  ac_status=$?
8271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272  (exit $ac_status); }; } &&
8273	 { ac_try='test -s conftest$ac_exeext'
8274  { (case "(($ac_try" in
8275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276  *) ac_try_echo=$ac_try;;
8277esac
8278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8279  (eval "$ac_try") 2>&5
8280  ac_status=$?
8281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282  (exit $ac_status); }; }; then
8283  ac_cv_search_opendir=$ac_res
8284else
8285  echo "$as_me: failed program was:" >&5
8286sed 's/^/| /' conftest.$ac_ext >&5
8287
8288
8289fi
8290
8291rm -f core conftest.err conftest.$ac_objext \
8292      conftest$ac_exeext
8293  if test "${ac_cv_search_opendir+set}" = set; then
8294  break
8295fi
8296done
8297if test "${ac_cv_search_opendir+set}" = set; then
8298  :
8299else
8300  ac_cv_search_opendir=no
8301fi
8302rm conftest.$ac_ext
8303LIBS=$ac_func_search_save_LIBS
8304fi
8305{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8306echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8307ac_res=$ac_cv_search_opendir
8308if test "$ac_res" != no; then
8309  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8310
8311fi
8312
8313else
8314  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8315echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8316if test "${ac_cv_search_opendir+set}" = set; then
8317  echo $ECHO_N "(cached) $ECHO_C" >&6
8318else
8319  ac_func_search_save_LIBS=$LIBS
8320cat >conftest.$ac_ext <<_ACEOF
8321/* confdefs.h.  */
8322_ACEOF
8323cat confdefs.h >>conftest.$ac_ext
8324cat >>conftest.$ac_ext <<_ACEOF
8325/* end confdefs.h.  */
8326
8327/* Override any GCC internal prototype to avoid an error.
8328   Use char because int might match the return type of a GCC
8329   builtin and then its argument prototype would still apply.  */
8330#ifdef __cplusplus
8331extern "C"
8332#endif
8333char opendir ();
8334int
8335main ()
8336{
8337return opendir ();
8338  ;
8339  return 0;
8340}
8341_ACEOF
8342for ac_lib in '' x; do
8343  if test -z "$ac_lib"; then
8344    ac_res="none required"
8345  else
8346    ac_res=-l$ac_lib
8347    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8348  fi
8349  rm -f conftest.$ac_objext conftest$ac_exeext
8350if { (ac_try="$ac_link"
8351case "(($ac_try" in
8352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353  *) ac_try_echo=$ac_try;;
8354esac
8355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356  (eval "$ac_link") 2>conftest.er1
8357  ac_status=$?
8358  grep -v '^ *+' conftest.er1 >conftest.err
8359  rm -f conftest.er1
8360  cat conftest.err >&5
8361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362  (exit $ac_status); } &&
8363	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8364  { (case "(($ac_try" in
8365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366  *) ac_try_echo=$ac_try;;
8367esac
8368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8369  (eval "$ac_try") 2>&5
8370  ac_status=$?
8371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372  (exit $ac_status); }; } &&
8373	 { ac_try='test -s conftest$ac_exeext'
8374  { (case "(($ac_try" in
8375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376  *) ac_try_echo=$ac_try;;
8377esac
8378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379  (eval "$ac_try") 2>&5
8380  ac_status=$?
8381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382  (exit $ac_status); }; }; then
8383  ac_cv_search_opendir=$ac_res
8384else
8385  echo "$as_me: failed program was:" >&5
8386sed 's/^/| /' conftest.$ac_ext >&5
8387
8388
8389fi
8390
8391rm -f core conftest.err conftest.$ac_objext \
8392      conftest$ac_exeext
8393  if test "${ac_cv_search_opendir+set}" = set; then
8394  break
8395fi
8396done
8397if test "${ac_cv_search_opendir+set}" = set; then
8398  :
8399else
8400  ac_cv_search_opendir=no
8401fi
8402rm conftest.$ac_ext
8403LIBS=$ac_func_search_save_LIBS
8404fi
8405{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8406echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8407ac_res=$ac_cv_search_opendir
8408if test "$ac_res" != no; then
8409  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8410
8411fi
8412
8413fi
8414
8415
8416for ac_header in dlfcn.h
8417do
8418as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8419if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8420  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8421echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8422if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8423  echo $ECHO_N "(cached) $ECHO_C" >&6
8424fi
8425ac_res=`eval echo '${'$as_ac_Header'}'`
8426	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8427echo "${ECHO_T}$ac_res" >&6; }
8428else
8429  # Is the header compilable?
8430{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8431echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8432cat >conftest.$ac_ext <<_ACEOF
8433/* confdefs.h.  */
8434_ACEOF
8435cat confdefs.h >>conftest.$ac_ext
8436cat >>conftest.$ac_ext <<_ACEOF
8437/* end confdefs.h.  */
8438$ac_includes_default
8439#include <$ac_header>
8440_ACEOF
8441rm -f conftest.$ac_objext
8442if { (ac_try="$ac_compile"
8443case "(($ac_try" in
8444  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445  *) ac_try_echo=$ac_try;;
8446esac
8447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448  (eval "$ac_compile") 2>conftest.er1
8449  ac_status=$?
8450  grep -v '^ *+' conftest.er1 >conftest.err
8451  rm -f conftest.er1
8452  cat conftest.err >&5
8453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454  (exit $ac_status); } &&
8455	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8456  { (case "(($ac_try" in
8457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458  *) ac_try_echo=$ac_try;;
8459esac
8460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461  (eval "$ac_try") 2>&5
8462  ac_status=$?
8463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464  (exit $ac_status); }; } &&
8465	 { ac_try='test -s conftest.$ac_objext'
8466  { (case "(($ac_try" in
8467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8468  *) ac_try_echo=$ac_try;;
8469esac
8470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8471  (eval "$ac_try") 2>&5
8472  ac_status=$?
8473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474  (exit $ac_status); }; }; then
8475  ac_header_compiler=yes
8476else
8477  echo "$as_me: failed program was:" >&5
8478sed 's/^/| /' conftest.$ac_ext >&5
8479
8480	ac_header_compiler=no
8481fi
8482
8483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8484{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8485echo "${ECHO_T}$ac_header_compiler" >&6; }
8486
8487# Is the header present?
8488{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8489echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8490cat >conftest.$ac_ext <<_ACEOF
8491/* confdefs.h.  */
8492_ACEOF
8493cat confdefs.h >>conftest.$ac_ext
8494cat >>conftest.$ac_ext <<_ACEOF
8495/* end confdefs.h.  */
8496#include <$ac_header>
8497_ACEOF
8498if { (ac_try="$ac_cpp conftest.$ac_ext"
8499case "(($ac_try" in
8500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8501  *) ac_try_echo=$ac_try;;
8502esac
8503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8504  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8505  ac_status=$?
8506  grep -v '^ *+' conftest.er1 >conftest.err
8507  rm -f conftest.er1
8508  cat conftest.err >&5
8509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510  (exit $ac_status); } >/dev/null; then
8511  if test -s conftest.err; then
8512    ac_cpp_err=$ac_c_preproc_warn_flag
8513    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8514  else
8515    ac_cpp_err=
8516  fi
8517else
8518  ac_cpp_err=yes
8519fi
8520if test -z "$ac_cpp_err"; then
8521  ac_header_preproc=yes
8522else
8523  echo "$as_me: failed program was:" >&5
8524sed 's/^/| /' conftest.$ac_ext >&5
8525
8526  ac_header_preproc=no
8527fi
8528
8529rm -f conftest.err conftest.$ac_ext
8530{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8531echo "${ECHO_T}$ac_header_preproc" >&6; }
8532
8533# So?  What about this header?
8534case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8535  yes:no: )
8536    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8537echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8538    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8539echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8540    ac_header_preproc=yes
8541    ;;
8542  no:yes:* )
8543    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8544echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8545    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8546echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8547    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8548echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8549    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8550echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8551    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8552echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8553    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8554echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8555    ( cat <<\_ASBOX
8556## ----------------------------------- ##
8557## Report this to llvmbugs@cs.uiuc.edu ##
8558## ----------------------------------- ##
8559_ASBOX
8560     ) | sed "s/^/$as_me: WARNING:     /" >&2
8561    ;;
8562esac
8563{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8564echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8565if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8566  echo $ECHO_N "(cached) $ECHO_C" >&6
8567else
8568  eval "$as_ac_Header=\$ac_header_preproc"
8569fi
8570ac_res=`eval echo '${'$as_ac_Header'}'`
8571	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8572echo "${ECHO_T}$ac_res" >&6; }
8573
8574fi
8575if test `eval echo '${'$as_ac_Header'}'` = yes; then
8576  cat >>confdefs.h <<_ACEOF
8577#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8578_ACEOF
8579
8580fi
8581
8582done
8583
8584# Check whether --enable-ltdl-install was given.
8585if test "${enable_ltdl_install+set}" = set; then
8586  enableval=$enable_ltdl_install;
8587fi
8588
8589
8590
8591
8592if test x"${enable_ltdl_install-no}" != xno; then
8593  INSTALL_LTDL_TRUE=
8594  INSTALL_LTDL_FALSE='#'
8595else
8596  INSTALL_LTDL_TRUE='#'
8597  INSTALL_LTDL_FALSE=
8598fi
8599
8600
8601
8602if test x"${enable_ltdl_convenience-no}" != xno; then
8603  CONVENIENCE_LTDL_TRUE=
8604  CONVENIENCE_LTDL_FALSE='#'
8605else
8606  CONVENIENCE_LTDL_TRUE='#'
8607  CONVENIENCE_LTDL_FALSE=
8608fi
8609
8610
8611{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8612echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8613library_names_spec=
8614libname_spec='lib$name'
8615soname_spec=
8616shrext_cmds=".so"
8617postinstall_cmds=
8618postuninstall_cmds=
8619finish_cmds=
8620finish_eval=
8621shlibpath_var=
8622shlibpath_overrides_runpath=unknown
8623version_type=none
8624dynamic_linker="$host_os ld.so"
8625sys_lib_dlsearch_path_spec="/lib /usr/lib"
8626if test "$GCC" = yes; then
8627  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8628  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8629    # if the path contains ";" then we assume it to be the separator
8630    # otherwise default to the standard path separator (i.e. ":") - it is
8631    # assumed that no part of a normal pathname contains ";" but that should
8632    # okay in the real world where ";" in dirpaths is itself problematic.
8633    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8634  else
8635    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8636  fi
8637else
8638  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8639fi
8640need_lib_prefix=unknown
8641hardcode_into_libs=no
8642
8643# when you set need_version to no, make sure it does not cause -set_version
8644# flags to be left without arguments
8645need_version=unknown
8646
8647case $host_os in
8648aix3*)
8649  version_type=linux
8650  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8651  shlibpath_var=LIBPATH
8652
8653  # AIX 3 has no versioning support, so we append a major version to the name.
8654  soname_spec='${libname}${release}${shared_ext}$major'
8655  ;;
8656
8657aix4* | aix5*)
8658  version_type=linux
8659  need_lib_prefix=no
8660  need_version=no
8661  hardcode_into_libs=yes
8662  if test "$host_cpu" = ia64; then
8663    # AIX 5 supports IA64
8664    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8665    shlibpath_var=LD_LIBRARY_PATH
8666  else
8667    # With GCC up to 2.95.x, collect2 would create an import file
8668    # for dependence libraries.  The import file would start with
8669    # the line `#! .'.  This would cause the generated library to
8670    # depend on `.', always an invalid library.  This was fixed in
8671    # development snapshots of GCC prior to 3.0.
8672    case $host_os in
8673      aix4 | aix4.[01] | aix4.[01].*)
8674      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8675	   echo ' yes '
8676	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8677	:
8678      else
8679	can_build_shared=no
8680      fi
8681      ;;
8682    esac
8683    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8684    # soname into executable. Probably we can add versioning support to
8685    # collect2, so additional links can be useful in future.
8686    if test "$aix_use_runtimelinking" = yes; then
8687      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8688      # instead of lib<name>.a to let people know that these are not
8689      # typical AIX shared libraries.
8690      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8691    else
8692      # We preserve .a as extension for shared libraries through AIX4.2
8693      # and later when we are not doing run time linking.
8694      library_names_spec='${libname}${release}.a $libname.a'
8695      soname_spec='${libname}${release}${shared_ext}$major'
8696    fi
8697    shlibpath_var=LIBPATH
8698  fi
8699  ;;
8700
8701amigaos*)
8702  library_names_spec='$libname.ixlibrary $libname.a'
8703  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8704  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'
8705  ;;
8706
8707beos*)
8708  library_names_spec='${libname}${shared_ext}'
8709  dynamic_linker="$host_os ld.so"
8710  shlibpath_var=LIBRARY_PATH
8711  ;;
8712
8713bsdi[45]*)
8714  version_type=linux
8715  need_version=no
8716  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8717  soname_spec='${libname}${release}${shared_ext}$major'
8718  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8719  shlibpath_var=LD_LIBRARY_PATH
8720  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8721  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8722  # the default ld.so.conf also contains /usr/contrib/lib and
8723  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8724  # libtool to hard-code these into programs
8725  ;;
8726
8727cygwin* | mingw* | pw32*)
8728  version_type=windows
8729  shrext_cmds=".dll"
8730  need_version=no
8731  need_lib_prefix=no
8732
8733  case $GCC,$host_os in
8734  yes,cygwin* | yes,mingw* | yes,pw32*)
8735    library_names_spec='$libname.dll.a'
8736    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8737    postinstall_cmds='base_file=`basename \${file}`~
8738      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8739      dldir=$destdir/`dirname \$dlpath`~
8740      test -d \$dldir || mkdir -p \$dldir~
8741      $install_prog $dir/$dlname \$dldir/$dlname~
8742      chmod a+x \$dldir/$dlname'
8743    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8744      dlpath=$dir/\$dldll~
8745       $rm \$dlpath'
8746    shlibpath_overrides_runpath=yes
8747
8748    case $host_os in
8749    cygwin*)
8750      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8751      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8752      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8753      ;;
8754    mingw*)
8755      # MinGW DLLs use traditional 'lib' prefix
8756      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8757      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8758      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8759        # It is most probably a Windows format PATH printed by
8760        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8761        # path with ; separators, and with drive letters. We can handle the
8762        # drive letters (cygwin fileutils understands them), so leave them,
8763        # especially as we might pass files found there to a mingw objdump,
8764        # which wouldn't understand a cygwinified path. Ahh.
8765        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8766      else
8767        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8768      fi
8769      ;;
8770    pw32*)
8771      # pw32 DLLs use 'pw' prefix rather than 'lib'
8772      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8773      ;;
8774    esac
8775    ;;
8776
8777  *)
8778    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8779    ;;
8780  esac
8781  dynamic_linker='Win32 ld.exe'
8782  # FIXME: first we should search . and the directory the executable is in
8783  shlibpath_var=PATH
8784  ;;
8785
8786darwin* | rhapsody*)
8787  dynamic_linker="$host_os dyld"
8788  version_type=darwin
8789  need_lib_prefix=no
8790  need_version=no
8791  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8792  soname_spec='${libname}${release}${major}$shared_ext'
8793  shlibpath_overrides_runpath=yes
8794  shlibpath_var=DYLD_LIBRARY_PATH
8795  shrext_cmds='.dylib'
8796  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8797  if test "$GCC" = yes; then
8798    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"`
8799  else
8800    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8801  fi
8802  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8803  ;;
8804
8805dgux*)
8806  version_type=linux
8807  need_lib_prefix=no
8808  need_version=no
8809  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8810  soname_spec='${libname}${release}${shared_ext}$major'
8811  shlibpath_var=LD_LIBRARY_PATH
8812  ;;
8813
8814freebsd1*)
8815  dynamic_linker=no
8816  ;;
8817
8818kfreebsd*-gnu)
8819  version_type=linux
8820  need_lib_prefix=no
8821  need_version=no
8822  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8823  soname_spec='${libname}${release}${shared_ext}$major'
8824  shlibpath_var=LD_LIBRARY_PATH
8825  shlibpath_overrides_runpath=no
8826  hardcode_into_libs=yes
8827  dynamic_linker='GNU ld.so'
8828  ;;
8829
8830freebsd* | dragonfly*)
8831  # DragonFly does not have aout.  When/if they implement a new
8832  # versioning mechanism, adjust this.
8833  if test -x /usr/bin/objformat; then
8834    objformat=`/usr/bin/objformat`
8835  else
8836    case $host_os in
8837    freebsd[123]*) objformat=aout ;;
8838    *) objformat=elf ;;
8839    esac
8840  fi
8841  version_type=freebsd-$objformat
8842  case $version_type in
8843    freebsd-elf*)
8844      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8845      need_version=no
8846      need_lib_prefix=no
8847      ;;
8848    freebsd-*)
8849      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8850      need_version=yes
8851      ;;
8852  esac
8853  shlibpath_var=LD_LIBRARY_PATH
8854  case $host_os in
8855  freebsd2*)
8856    shlibpath_overrides_runpath=yes
8857    ;;
8858  freebsd3.[01]* | freebsdelf3.[01]*)
8859    shlibpath_overrides_runpath=yes
8860    hardcode_into_libs=yes
8861    ;;
8862  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8863  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8864    shlibpath_overrides_runpath=no
8865    hardcode_into_libs=yes
8866    ;;
8867  freebsd*) # from 4.6 on
8868    shlibpath_overrides_runpath=yes
8869    hardcode_into_libs=yes
8870    ;;
8871  esac
8872  ;;
8873
8874gnu*)
8875  version_type=linux
8876  need_lib_prefix=no
8877  need_version=no
8878  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8879  soname_spec='${libname}${release}${shared_ext}$major'
8880  shlibpath_var=LD_LIBRARY_PATH
8881  hardcode_into_libs=yes
8882  ;;
8883
8884hpux9* | hpux10* | hpux11*)
8885  # Give a soname corresponding to the major version so that dld.sl refuses to
8886  # link against other versions.
8887  version_type=sunos
8888  need_lib_prefix=no
8889  need_version=no
8890  case $host_cpu in
8891  ia64*)
8892    shrext_cmds='.so'
8893    hardcode_into_libs=yes
8894    dynamic_linker="$host_os dld.so"
8895    shlibpath_var=LD_LIBRARY_PATH
8896    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8897    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8898    soname_spec='${libname}${release}${shared_ext}$major'
8899    if test "X$HPUX_IA64_MODE" = X32; then
8900      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8901    else
8902      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8903    fi
8904    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8905    ;;
8906   hppa*64*)
8907     shrext_cmds='.sl'
8908     hardcode_into_libs=yes
8909     dynamic_linker="$host_os dld.sl"
8910     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8911     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8912     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8913     soname_spec='${libname}${release}${shared_ext}$major'
8914     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8915     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8916     ;;
8917   *)
8918    shrext_cmds='.sl'
8919    dynamic_linker="$host_os dld.sl"
8920    shlibpath_var=SHLIB_PATH
8921    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8922    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8923    soname_spec='${libname}${release}${shared_ext}$major'
8924    ;;
8925  esac
8926  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8927  postinstall_cmds='chmod 555 $lib'
8928  ;;
8929
8930interix3*)
8931  version_type=linux
8932  need_lib_prefix=no
8933  need_version=no
8934  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8935  soname_spec='${libname}${release}${shared_ext}$major'
8936  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8937  shlibpath_var=LD_LIBRARY_PATH
8938  shlibpath_overrides_runpath=no
8939  hardcode_into_libs=yes
8940  ;;
8941
8942irix5* | irix6* | nonstopux*)
8943  case $host_os in
8944    nonstopux*) version_type=nonstopux ;;
8945    *)
8946	if test "$lt_cv_prog_gnu_ld" = yes; then
8947		version_type=linux
8948	else
8949		version_type=irix
8950	fi ;;
8951  esac
8952  need_lib_prefix=no
8953  need_version=no
8954  soname_spec='${libname}${release}${shared_ext}$major'
8955  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8956  case $host_os in
8957  irix5* | nonstopux*)
8958    libsuff= shlibsuff=
8959    ;;
8960  *)
8961    case $LD in # libtool.m4 will add one of these switches to LD
8962    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8963      libsuff= shlibsuff= libmagic=32-bit;;
8964    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8965      libsuff=32 shlibsuff=N32 libmagic=N32;;
8966    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8967      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8968    *) libsuff= shlibsuff= libmagic=never-match;;
8969    esac
8970    ;;
8971  esac
8972  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8973  shlibpath_overrides_runpath=no
8974  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8975  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8976  hardcode_into_libs=yes
8977  ;;
8978
8979# No shared lib support for Linux oldld, aout, or coff.
8980linux*oldld* | linux*aout* | linux*coff*)
8981  dynamic_linker=no
8982  ;;
8983
8984# This must be Linux ELF.
8985linux*)
8986  version_type=linux
8987  need_lib_prefix=no
8988  need_version=no
8989  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8990  soname_spec='${libname}${release}${shared_ext}$major'
8991  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8992  shlibpath_var=LD_LIBRARY_PATH
8993  shlibpath_overrides_runpath=no
8994  # This implies no fast_install, which is unacceptable.
8995  # Some rework will be needed to allow for fast_install
8996  # before this can be enabled.
8997  hardcode_into_libs=yes
8998
8999  # Append ld.so.conf contents to the search path
9000  if test -f /etc/ld.so.conf; then
9001    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' ' '`
9002    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9003  fi
9004
9005  # We used to test for /lib/ld.so.1 and disable shared libraries on
9006  # powerpc, because MkLinux only supported shared libraries with the
9007  # GNU dynamic linker.  Since this was broken with cross compilers,
9008  # most powerpc-linux boxes support dynamic linking these days and
9009  # people can always --disable-shared, the test was removed, and we
9010  # assume the GNU/Linux dynamic linker is in use.
9011  dynamic_linker='GNU/Linux ld.so'
9012  ;;
9013
9014knetbsd*-gnu)
9015  version_type=linux
9016  need_lib_prefix=no
9017  need_version=no
9018  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9019  soname_spec='${libname}${release}${shared_ext}$major'
9020  shlibpath_var=LD_LIBRARY_PATH
9021  shlibpath_overrides_runpath=no
9022  hardcode_into_libs=yes
9023  dynamic_linker='GNU ld.so'
9024  ;;
9025
9026netbsd*)
9027  version_type=sunos
9028  need_lib_prefix=no
9029  need_version=no
9030  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9031    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9032    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9033    dynamic_linker='NetBSD (a.out) ld.so'
9034  else
9035    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9036    soname_spec='${libname}${release}${shared_ext}$major'
9037    dynamic_linker='NetBSD ld.elf_so'
9038  fi
9039  shlibpath_var=LD_LIBRARY_PATH
9040  shlibpath_overrides_runpath=yes
9041  hardcode_into_libs=yes
9042  ;;
9043
9044newsos6)
9045  version_type=linux
9046  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9047  shlibpath_var=LD_LIBRARY_PATH
9048  shlibpath_overrides_runpath=yes
9049  ;;
9050
9051nto-qnx*)
9052  version_type=linux
9053  need_lib_prefix=no
9054  need_version=no
9055  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9056  soname_spec='${libname}${release}${shared_ext}$major'
9057  shlibpath_var=LD_LIBRARY_PATH
9058  shlibpath_overrides_runpath=yes
9059  ;;
9060
9061openbsd*)
9062  version_type=sunos
9063  sys_lib_dlsearch_path_spec="/usr/lib"
9064  need_lib_prefix=no
9065  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9066  case $host_os in
9067    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9068    *)                         need_version=no  ;;
9069  esac
9070  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9071  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9072  shlibpath_var=LD_LIBRARY_PATH
9073  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9074    case $host_os in
9075      openbsd2.[89] | openbsd2.[89].*)
9076	shlibpath_overrides_runpath=no
9077	;;
9078      *)
9079	shlibpath_overrides_runpath=yes
9080	;;
9081      esac
9082  else
9083    shlibpath_overrides_runpath=yes
9084  fi
9085  ;;
9086
9087os2*)
9088  libname_spec='$name'
9089  shrext_cmds=".dll"
9090  need_lib_prefix=no
9091  library_names_spec='$libname${shared_ext} $libname.a'
9092  dynamic_linker='OS/2 ld.exe'
9093  shlibpath_var=LIBPATH
9094  ;;
9095
9096osf3* | osf4* | osf5*)
9097  version_type=osf
9098  need_lib_prefix=no
9099  need_version=no
9100  soname_spec='${libname}${release}${shared_ext}$major'
9101  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9102  shlibpath_var=LD_LIBRARY_PATH
9103  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9104  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9105  ;;
9106
9107solaris*)
9108  version_type=linux
9109  need_lib_prefix=no
9110  need_version=no
9111  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9112  soname_spec='${libname}${release}${shared_ext}$major'
9113  shlibpath_var=LD_LIBRARY_PATH
9114  shlibpath_overrides_runpath=yes
9115  hardcode_into_libs=yes
9116  # ldd complains unless libraries are executable
9117  postinstall_cmds='chmod +x $lib'
9118  ;;
9119
9120sunos4*)
9121  version_type=sunos
9122  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9123  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9124  shlibpath_var=LD_LIBRARY_PATH
9125  shlibpath_overrides_runpath=yes
9126  if test "$with_gnu_ld" = yes; then
9127    need_lib_prefix=no
9128  fi
9129  need_version=yes
9130  ;;
9131
9132sysv4 | sysv4.3*)
9133  version_type=linux
9134  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9135  soname_spec='${libname}${release}${shared_ext}$major'
9136  shlibpath_var=LD_LIBRARY_PATH
9137  case $host_vendor in
9138    sni)
9139      shlibpath_overrides_runpath=no
9140      need_lib_prefix=no
9141      export_dynamic_flag_spec='${wl}-Blargedynsym'
9142      runpath_var=LD_RUN_PATH
9143      ;;
9144    siemens)
9145      need_lib_prefix=no
9146      ;;
9147    motorola)
9148      need_lib_prefix=no
9149      need_version=no
9150      shlibpath_overrides_runpath=no
9151      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9152      ;;
9153  esac
9154  ;;
9155
9156sysv4*MP*)
9157  if test -d /usr/nec ;then
9158    version_type=linux
9159    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9160    soname_spec='$libname${shared_ext}.$major'
9161    shlibpath_var=LD_LIBRARY_PATH
9162  fi
9163  ;;
9164
9165sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9166  version_type=freebsd-elf
9167  need_lib_prefix=no
9168  need_version=no
9169  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9170  soname_spec='${libname}${release}${shared_ext}$major'
9171  shlibpath_var=LD_LIBRARY_PATH
9172  hardcode_into_libs=yes
9173  if test "$with_gnu_ld" = yes; then
9174    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9175    shlibpath_overrides_runpath=no
9176  else
9177    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9178    shlibpath_overrides_runpath=yes
9179    case $host_os in
9180      sco3.2v5*)
9181        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9182	;;
9183    esac
9184  fi
9185  sys_lib_dlsearch_path_spec='/usr/lib'
9186  ;;
9187
9188uts4*)
9189  version_type=linux
9190  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9191  soname_spec='${libname}${release}${shared_ext}$major'
9192  shlibpath_var=LD_LIBRARY_PATH
9193  ;;
9194
9195*)
9196  dynamic_linker=no
9197  ;;
9198esac
9199{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9200echo "${ECHO_T}$dynamic_linker" >&6; }
9201test "$dynamic_linker" = no && can_build_shared=no
9202
9203variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9204if test "$GCC" = yes; then
9205  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9206fi
9207
9208
9209{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9210echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9211if test "${libltdl_cv_shlibext+set}" = set; then
9212  echo $ECHO_N "(cached) $ECHO_C" >&6
9213else
9214
9215module=yes
9216eval libltdl_cv_shlibext=$shrext_cmds
9217
9218fi
9219{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9220echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9221if test -n "$libltdl_cv_shlibext"; then
9222
9223cat >>confdefs.h <<_ACEOF
9224#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9225_ACEOF
9226
9227fi
9228
9229
9230{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9231echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9232if test "${libltdl_cv_shlibpath_var+set}" = set; then
9233  echo $ECHO_N "(cached) $ECHO_C" >&6
9234else
9235  libltdl_cv_shlibpath_var="$shlibpath_var"
9236fi
9237{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9238echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9239if test -n "$libltdl_cv_shlibpath_var"; then
9240
9241cat >>confdefs.h <<_ACEOF
9242#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9243_ACEOF
9244
9245fi
9246
9247
9248{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9249echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9250if test "${libltdl_cv_sys_search_path+set}" = set; then
9251  echo $ECHO_N "(cached) $ECHO_C" >&6
9252else
9253  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9254fi
9255{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9256echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9257if test -n "$libltdl_cv_sys_search_path"; then
9258  sys_search_path=
9259  for dir in $libltdl_cv_sys_search_path; do
9260    if test -z "$sys_search_path"; then
9261      sys_search_path="$dir"
9262    else
9263      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9264    fi
9265  done
9266
9267cat >>confdefs.h <<_ACEOF
9268#define LTDL_SYSSEARCHPATH "$sys_search_path"
9269_ACEOF
9270
9271fi
9272
9273{ echo "$as_me:$LINENO: checking for objdir" >&5
9274echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9275if test "${libltdl_cv_objdir+set}" = set; then
9276  echo $ECHO_N "(cached) $ECHO_C" >&6
9277else
9278  libltdl_cv_objdir="$objdir"
9279  if test -n "$objdir"; then
9280    :
9281  else
9282    rm -f .libs 2>/dev/null
9283    mkdir .libs 2>/dev/null
9284    if test -d .libs; then
9285      libltdl_cv_objdir=.libs
9286    else
9287      # MS-DOS does not allow filenames that begin with a dot.
9288      libltdl_cv_objdir=_libs
9289    fi
9290  rmdir .libs 2>/dev/null
9291  fi
9292
9293fi
9294{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9295echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9296
9297cat >>confdefs.h <<_ACEOF
9298#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9299_ACEOF
9300
9301
9302
9303
9304
9305
9306# Check for command to grab the raw symbol name followed by C symbol from nm.
9307{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9308echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9309if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9310  echo $ECHO_N "(cached) $ECHO_C" >&6
9311else
9312
9313# These are sane defaults that work on at least a few old systems.
9314# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9315
9316# Character class describing NM global symbol codes.
9317symcode='[BCDEGRST]'
9318
9319# Regexp to match symbols that can be accessed directly from C.
9320sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9321
9322# Transform an extracted symbol line into a proper C declaration
9323lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9324
9325# Transform an extracted symbol line into symbol name and symbol address
9326lt_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'"
9327
9328# Define system-specific variables.
9329case $host_os in
9330aix*)
9331  symcode='[BCDT]'
9332  ;;
9333cygwin* | mingw* | pw32*)
9334  symcode='[ABCDGISTW]'
9335  ;;
9336hpux*) # Its linker distinguishes data from code symbols
9337  if test "$host_cpu" = ia64; then
9338    symcode='[ABCDEGRST]'
9339  fi
9340  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9341  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'"
9342  ;;
9343linux*)
9344  if test "$host_cpu" = ia64; then
9345    symcode='[ABCDGIRSTW]'
9346    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9347    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'"
9348  fi
9349  ;;
9350irix* | nonstopux*)
9351  symcode='[BCDEGRST]'
9352  ;;
9353osf*)
9354  symcode='[BCDEGQRST]'
9355  ;;
9356solaris*)
9357  symcode='[BDRT]'
9358  ;;
9359sco3.2v5*)
9360  symcode='[DT]'
9361  ;;
9362sysv4.2uw2*)
9363  symcode='[DT]'
9364  ;;
9365sysv5* | sco5v6* | unixware* | OpenUNIX*)
9366  symcode='[ABDT]'
9367  ;;
9368sysv4)
9369  symcode='[DFNSTU]'
9370  ;;
9371esac
9372
9373# Handle CRLF in mingw tool chain
9374opt_cr=
9375case $build_os in
9376mingw*)
9377  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9378  ;;
9379esac
9380
9381# If we're using GNU nm, then use its standard symbol codes.
9382case `$NM -V 2>&1` in
9383*GNU* | *'with BFD'*)
9384  symcode='[ABCDGIRSTW]' ;;
9385esac
9386
9387# Try without a prefix undercore, then with it.
9388for ac_symprfx in "" "_"; do
9389
9390  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9391  symxfrm="\\1 $ac_symprfx\\2 \\2"
9392
9393  # Write the raw and C identifiers.
9394  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9395
9396  # Check to see that the pipe works correctly.
9397  pipe_works=no
9398
9399  rm -f conftest*
9400  cat > conftest.$ac_ext <<EOF
9401#ifdef __cplusplus
9402extern "C" {
9403#endif
9404char nm_test_var;
9405void nm_test_func(){}
9406#ifdef __cplusplus
9407}
9408#endif
9409int main(){nm_test_var='a';nm_test_func();return(0);}
9410EOF
9411
9412  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9413  (eval $ac_compile) 2>&5
9414  ac_status=$?
9415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416  (exit $ac_status); }; then
9417    # Now try to grab the symbols.
9418    nlist=conftest.nm
9419    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9420  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9421  ac_status=$?
9422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423  (exit $ac_status); } && test -s "$nlist"; then
9424      # Try sorting and uniquifying the output.
9425      if sort "$nlist" | uniq > "$nlist"T; then
9426	mv -f "$nlist"T "$nlist"
9427      else
9428	rm -f "$nlist"T
9429      fi
9430
9431      # Make sure that we snagged all the symbols we need.
9432      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9433	if grep ' nm_test_func$' "$nlist" >/dev/null; then
9434	  cat <<EOF > conftest.$ac_ext
9435#ifdef __cplusplus
9436extern "C" {
9437#endif
9438
9439EOF
9440	  # Now generate the symbol file.
9441	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9442
9443	  cat <<EOF >> conftest.$ac_ext
9444#if defined (__STDC__) && __STDC__
9445# define lt_ptr_t void *
9446#else
9447# define lt_ptr_t char *
9448# define const
9449#endif
9450
9451/* The mapping between symbol names and symbols. */
9452const struct {
9453  const char *name;
9454  lt_ptr_t address;
9455}
9456lt_preloaded_symbols[] =
9457{
9458EOF
9459	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9460	  cat <<\EOF >> conftest.$ac_ext
9461  {0, (lt_ptr_t) 0}
9462};
9463
9464#ifdef __cplusplus
9465}
9466#endif
9467EOF
9468	  # Now try linking the two files.
9469	  mv conftest.$ac_objext conftstm.$ac_objext
9470	  lt_save_LIBS="$LIBS"
9471	  lt_save_CFLAGS="$CFLAGS"
9472	  LIBS="conftstm.$ac_objext"
9473	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9474	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9475  (eval $ac_link) 2>&5
9476  ac_status=$?
9477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9479	    pipe_works=yes
9480	  fi
9481	  LIBS="$lt_save_LIBS"
9482	  CFLAGS="$lt_save_CFLAGS"
9483	else
9484	  echo "cannot find nm_test_func in $nlist" >&5
9485	fi
9486      else
9487	echo "cannot find nm_test_var in $nlist" >&5
9488      fi
9489    else
9490      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9491    fi
9492  else
9493    echo "$progname: failed program was:" >&5
9494    cat conftest.$ac_ext >&5
9495  fi
9496  rm -f conftest* conftst*
9497
9498  # Do not use the global_symbol_pipe unless it works.
9499  if test "$pipe_works" = yes; then
9500    break
9501  else
9502    lt_cv_sys_global_symbol_pipe=
9503  fi
9504done
9505
9506fi
9507
9508if test -z "$lt_cv_sys_global_symbol_pipe"; then
9509  lt_cv_sys_global_symbol_to_cdecl=
9510fi
9511if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9512  { echo "$as_me:$LINENO: result: failed" >&5
9513echo "${ECHO_T}failed" >&6; }
9514else
9515  { echo "$as_me:$LINENO: result: ok" >&5
9516echo "${ECHO_T}ok" >&6; }
9517fi
9518
9519
9520{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9521echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9522if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9523  echo $ECHO_N "(cached) $ECHO_C" >&6
9524else
9525  if test -n "$lt_cv_sys_global_symbol_pipe"; then
9526    libltdl_cv_preloaded_symbols=yes
9527  else
9528    libltdl_cv_preloaded_symbols=no
9529  fi
9530
9531fi
9532{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9533echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9534if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9535
9536cat >>confdefs.h <<\_ACEOF
9537#define HAVE_PRELOADED_SYMBOLS 1
9538_ACEOF
9539
9540fi
9541
9542LIBADD_DL=
9543
9544ac_ext=c
9545ac_cpp='$CPP $CPPFLAGS'
9546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9548ac_compiler_gnu=$ac_cv_c_compiler_gnu
9549
9550
9551{ echo "$as_me:$LINENO: checking for shl_load" >&5
9552echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9553if test "${ac_cv_func_shl_load+set}" = set; then
9554  echo $ECHO_N "(cached) $ECHO_C" >&6
9555else
9556  cat >conftest.$ac_ext <<_ACEOF
9557/* confdefs.h.  */
9558_ACEOF
9559cat confdefs.h >>conftest.$ac_ext
9560cat >>conftest.$ac_ext <<_ACEOF
9561/* end confdefs.h.  */
9562/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9563   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9564#define shl_load innocuous_shl_load
9565
9566/* System header to define __stub macros and hopefully few prototypes,
9567    which can conflict with char shl_load (); below.
9568    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9569    <limits.h> exists even on freestanding compilers.  */
9570
9571#ifdef __STDC__
9572# include <limits.h>
9573#else
9574# include <assert.h>
9575#endif
9576
9577#undef shl_load
9578
9579/* Override any GCC internal prototype to avoid an error.
9580   Use char because int might match the return type of a GCC
9581   builtin and then its argument prototype would still apply.  */
9582#ifdef __cplusplus
9583extern "C"
9584#endif
9585char shl_load ();
9586/* The GNU C library defines this for functions which it implements
9587    to always fail with ENOSYS.  Some functions are actually named
9588    something starting with __ and the normal name is an alias.  */
9589#if defined __stub_shl_load || defined __stub___shl_load
9590choke me
9591#endif
9592
9593int
9594main ()
9595{
9596return shl_load ();
9597  ;
9598  return 0;
9599}
9600_ACEOF
9601rm -f conftest.$ac_objext conftest$ac_exeext
9602if { (ac_try="$ac_link"
9603case "(($ac_try" in
9604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605  *) ac_try_echo=$ac_try;;
9606esac
9607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9608  (eval "$ac_link") 2>conftest.er1
9609  ac_status=$?
9610  grep -v '^ *+' conftest.er1 >conftest.err
9611  rm -f conftest.er1
9612  cat conftest.err >&5
9613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614  (exit $ac_status); } &&
9615	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9616  { (case "(($ac_try" in
9617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618  *) ac_try_echo=$ac_try;;
9619esac
9620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621  (eval "$ac_try") 2>&5
9622  ac_status=$?
9623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624  (exit $ac_status); }; } &&
9625	 { ac_try='test -s conftest$ac_exeext'
9626  { (case "(($ac_try" in
9627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628  *) ac_try_echo=$ac_try;;
9629esac
9630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631  (eval "$ac_try") 2>&5
9632  ac_status=$?
9633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634  (exit $ac_status); }; }; then
9635  ac_cv_func_shl_load=yes
9636else
9637  echo "$as_me: failed program was:" >&5
9638sed 's/^/| /' conftest.$ac_ext >&5
9639
9640	ac_cv_func_shl_load=no
9641fi
9642
9643rm -f core conftest.err conftest.$ac_objext \
9644      conftest$ac_exeext conftest.$ac_ext
9645fi
9646{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9647echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9648if test $ac_cv_func_shl_load = yes; then
9649
9650cat >>confdefs.h <<\_ACEOF
9651#define HAVE_SHL_LOAD 1
9652_ACEOF
9653
9654else
9655  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9656echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9657if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9658  echo $ECHO_N "(cached) $ECHO_C" >&6
9659else
9660  ac_check_lib_save_LIBS=$LIBS
9661LIBS="-ldld  $LIBS"
9662cat >conftest.$ac_ext <<_ACEOF
9663/* confdefs.h.  */
9664_ACEOF
9665cat confdefs.h >>conftest.$ac_ext
9666cat >>conftest.$ac_ext <<_ACEOF
9667/* end confdefs.h.  */
9668
9669/* Override any GCC internal prototype to avoid an error.
9670   Use char because int might match the return type of a GCC
9671   builtin and then its argument prototype would still apply.  */
9672#ifdef __cplusplus
9673extern "C"
9674#endif
9675char shl_load ();
9676int
9677main ()
9678{
9679return shl_load ();
9680  ;
9681  return 0;
9682}
9683_ACEOF
9684rm -f conftest.$ac_objext conftest$ac_exeext
9685if { (ac_try="$ac_link"
9686case "(($ac_try" in
9687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688  *) ac_try_echo=$ac_try;;
9689esac
9690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691  (eval "$ac_link") 2>conftest.er1
9692  ac_status=$?
9693  grep -v '^ *+' conftest.er1 >conftest.err
9694  rm -f conftest.er1
9695  cat conftest.err >&5
9696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697  (exit $ac_status); } &&
9698	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9699  { (case "(($ac_try" in
9700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9701  *) ac_try_echo=$ac_try;;
9702esac
9703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9704  (eval "$ac_try") 2>&5
9705  ac_status=$?
9706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707  (exit $ac_status); }; } &&
9708	 { ac_try='test -s conftest$ac_exeext'
9709  { (case "(($ac_try" in
9710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9711  *) ac_try_echo=$ac_try;;
9712esac
9713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9714  (eval "$ac_try") 2>&5
9715  ac_status=$?
9716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717  (exit $ac_status); }; }; then
9718  ac_cv_lib_dld_shl_load=yes
9719else
9720  echo "$as_me: failed program was:" >&5
9721sed 's/^/| /' conftest.$ac_ext >&5
9722
9723	ac_cv_lib_dld_shl_load=no
9724fi
9725
9726rm -f core conftest.err conftest.$ac_objext \
9727      conftest$ac_exeext conftest.$ac_ext
9728LIBS=$ac_check_lib_save_LIBS
9729fi
9730{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9731echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9732if test $ac_cv_lib_dld_shl_load = yes; then
9733
9734cat >>confdefs.h <<\_ACEOF
9735#define HAVE_SHL_LOAD 1
9736_ACEOF
9737
9738	LIBADD_DL="$LIBADD_DL -ldld"
9739else
9740  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9741echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9742if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9743  echo $ECHO_N "(cached) $ECHO_C" >&6
9744else
9745  ac_check_lib_save_LIBS=$LIBS
9746LIBS="-ldl  $LIBS"
9747cat >conftest.$ac_ext <<_ACEOF
9748/* confdefs.h.  */
9749_ACEOF
9750cat confdefs.h >>conftest.$ac_ext
9751cat >>conftest.$ac_ext <<_ACEOF
9752/* end confdefs.h.  */
9753
9754/* Override any GCC internal prototype to avoid an error.
9755   Use char because int might match the return type of a GCC
9756   builtin and then its argument prototype would still apply.  */
9757#ifdef __cplusplus
9758extern "C"
9759#endif
9760char dlopen ();
9761int
9762main ()
9763{
9764return dlopen ();
9765  ;
9766  return 0;
9767}
9768_ACEOF
9769rm -f conftest.$ac_objext conftest$ac_exeext
9770if { (ac_try="$ac_link"
9771case "(($ac_try" in
9772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773  *) ac_try_echo=$ac_try;;
9774esac
9775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776  (eval "$ac_link") 2>conftest.er1
9777  ac_status=$?
9778  grep -v '^ *+' conftest.er1 >conftest.err
9779  rm -f conftest.er1
9780  cat conftest.err >&5
9781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782  (exit $ac_status); } &&
9783	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9784  { (case "(($ac_try" in
9785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786  *) ac_try_echo=$ac_try;;
9787esac
9788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789  (eval "$ac_try") 2>&5
9790  ac_status=$?
9791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792  (exit $ac_status); }; } &&
9793	 { ac_try='test -s conftest$ac_exeext'
9794  { (case "(($ac_try" in
9795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796  *) ac_try_echo=$ac_try;;
9797esac
9798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799  (eval "$ac_try") 2>&5
9800  ac_status=$?
9801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802  (exit $ac_status); }; }; then
9803  ac_cv_lib_dl_dlopen=yes
9804else
9805  echo "$as_me: failed program was:" >&5
9806sed 's/^/| /' conftest.$ac_ext >&5
9807
9808	ac_cv_lib_dl_dlopen=no
9809fi
9810
9811rm -f core conftest.err conftest.$ac_objext \
9812      conftest$ac_exeext conftest.$ac_ext
9813LIBS=$ac_check_lib_save_LIBS
9814fi
9815{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9816echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9817if test $ac_cv_lib_dl_dlopen = yes; then
9818
9819cat >>confdefs.h <<\_ACEOF
9820#define HAVE_LIBDL 1
9821_ACEOF
9822
9823	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9824else
9825  cat >conftest.$ac_ext <<_ACEOF
9826/* confdefs.h.  */
9827_ACEOF
9828cat confdefs.h >>conftest.$ac_ext
9829cat >>conftest.$ac_ext <<_ACEOF
9830/* end confdefs.h.  */
9831#if HAVE_DLFCN_H
9832#  include <dlfcn.h>
9833#endif
9834
9835int
9836main ()
9837{
9838dlopen(0, 0);
9839  ;
9840  return 0;
9841}
9842_ACEOF
9843rm -f conftest.$ac_objext conftest$ac_exeext
9844if { (ac_try="$ac_link"
9845case "(($ac_try" in
9846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847  *) ac_try_echo=$ac_try;;
9848esac
9849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850  (eval "$ac_link") 2>conftest.er1
9851  ac_status=$?
9852  grep -v '^ *+' conftest.er1 >conftest.err
9853  rm -f conftest.er1
9854  cat conftest.err >&5
9855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856  (exit $ac_status); } &&
9857	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9858  { (case "(($ac_try" in
9859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9860  *) ac_try_echo=$ac_try;;
9861esac
9862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9863  (eval "$ac_try") 2>&5
9864  ac_status=$?
9865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866  (exit $ac_status); }; } &&
9867	 { ac_try='test -s conftest$ac_exeext'
9868  { (case "(($ac_try" in
9869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870  *) ac_try_echo=$ac_try;;
9871esac
9872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873  (eval "$ac_try") 2>&5
9874  ac_status=$?
9875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876  (exit $ac_status); }; }; then
9877
9878cat >>confdefs.h <<\_ACEOF
9879#define HAVE_LIBDL 1
9880_ACEOF
9881 libltdl_cv_func_dlopen="yes"
9882else
9883  echo "$as_me: failed program was:" >&5
9884sed 's/^/| /' conftest.$ac_ext >&5
9885
9886	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9887echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9888if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9889  echo $ECHO_N "(cached) $ECHO_C" >&6
9890else
9891  ac_check_lib_save_LIBS=$LIBS
9892LIBS="-lsvld  $LIBS"
9893cat >conftest.$ac_ext <<_ACEOF
9894/* confdefs.h.  */
9895_ACEOF
9896cat confdefs.h >>conftest.$ac_ext
9897cat >>conftest.$ac_ext <<_ACEOF
9898/* end confdefs.h.  */
9899
9900/* Override any GCC internal prototype to avoid an error.
9901   Use char because int might match the return type of a GCC
9902   builtin and then its argument prototype would still apply.  */
9903#ifdef __cplusplus
9904extern "C"
9905#endif
9906char dlopen ();
9907int
9908main ()
9909{
9910return dlopen ();
9911  ;
9912  return 0;
9913}
9914_ACEOF
9915rm -f conftest.$ac_objext conftest$ac_exeext
9916if { (ac_try="$ac_link"
9917case "(($ac_try" in
9918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919  *) ac_try_echo=$ac_try;;
9920esac
9921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922  (eval "$ac_link") 2>conftest.er1
9923  ac_status=$?
9924  grep -v '^ *+' conftest.er1 >conftest.err
9925  rm -f conftest.er1
9926  cat conftest.err >&5
9927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928  (exit $ac_status); } &&
9929	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9930  { (case "(($ac_try" in
9931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932  *) ac_try_echo=$ac_try;;
9933esac
9934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935  (eval "$ac_try") 2>&5
9936  ac_status=$?
9937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938  (exit $ac_status); }; } &&
9939	 { ac_try='test -s conftest$ac_exeext'
9940  { (case "(($ac_try" in
9941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942  *) ac_try_echo=$ac_try;;
9943esac
9944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945  (eval "$ac_try") 2>&5
9946  ac_status=$?
9947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948  (exit $ac_status); }; }; then
9949  ac_cv_lib_svld_dlopen=yes
9950else
9951  echo "$as_me: failed program was:" >&5
9952sed 's/^/| /' conftest.$ac_ext >&5
9953
9954	ac_cv_lib_svld_dlopen=no
9955fi
9956
9957rm -f core conftest.err conftest.$ac_objext \
9958      conftest$ac_exeext conftest.$ac_ext
9959LIBS=$ac_check_lib_save_LIBS
9960fi
9961{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9962echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9963if test $ac_cv_lib_svld_dlopen = yes; then
9964
9965cat >>confdefs.h <<\_ACEOF
9966#define HAVE_LIBDL 1
9967_ACEOF
9968
9969	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9970else
9971  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9972echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9973if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9974  echo $ECHO_N "(cached) $ECHO_C" >&6
9975else
9976  ac_check_lib_save_LIBS=$LIBS
9977LIBS="-ldld  $LIBS"
9978cat >conftest.$ac_ext <<_ACEOF
9979/* confdefs.h.  */
9980_ACEOF
9981cat confdefs.h >>conftest.$ac_ext
9982cat >>conftest.$ac_ext <<_ACEOF
9983/* end confdefs.h.  */
9984
9985/* Override any GCC internal prototype to avoid an error.
9986   Use char because int might match the return type of a GCC
9987   builtin and then its argument prototype would still apply.  */
9988#ifdef __cplusplus
9989extern "C"
9990#endif
9991char dld_link ();
9992int
9993main ()
9994{
9995return dld_link ();
9996  ;
9997  return 0;
9998}
9999_ACEOF
10000rm -f conftest.$ac_objext conftest$ac_exeext
10001if { (ac_try="$ac_link"
10002case "(($ac_try" in
10003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004  *) ac_try_echo=$ac_try;;
10005esac
10006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007  (eval "$ac_link") 2>conftest.er1
10008  ac_status=$?
10009  grep -v '^ *+' conftest.er1 >conftest.err
10010  rm -f conftest.er1
10011  cat conftest.err >&5
10012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013  (exit $ac_status); } &&
10014	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10015  { (case "(($ac_try" in
10016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017  *) ac_try_echo=$ac_try;;
10018esac
10019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10020  (eval "$ac_try") 2>&5
10021  ac_status=$?
10022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023  (exit $ac_status); }; } &&
10024	 { ac_try='test -s conftest$ac_exeext'
10025  { (case "(($ac_try" in
10026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027  *) ac_try_echo=$ac_try;;
10028esac
10029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10030  (eval "$ac_try") 2>&5
10031  ac_status=$?
10032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033  (exit $ac_status); }; }; then
10034  ac_cv_lib_dld_dld_link=yes
10035else
10036  echo "$as_me: failed program was:" >&5
10037sed 's/^/| /' conftest.$ac_ext >&5
10038
10039	ac_cv_lib_dld_dld_link=no
10040fi
10041
10042rm -f core conftest.err conftest.$ac_objext \
10043      conftest$ac_exeext conftest.$ac_ext
10044LIBS=$ac_check_lib_save_LIBS
10045fi
10046{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10047echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10048if test $ac_cv_lib_dld_dld_link = yes; then
10049
10050cat >>confdefs.h <<\_ACEOF
10051#define HAVE_DLD 1
10052_ACEOF
10053
10054	 	LIBADD_DL="$LIBADD_DL -ldld"
10055else
10056  { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10057echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10058if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10059  echo $ECHO_N "(cached) $ECHO_C" >&6
10060else
10061  cat >conftest.$ac_ext <<_ACEOF
10062/* confdefs.h.  */
10063_ACEOF
10064cat confdefs.h >>conftest.$ac_ext
10065cat >>conftest.$ac_ext <<_ACEOF
10066/* end confdefs.h.  */
10067/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10068   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10069#define _dyld_func_lookup innocuous__dyld_func_lookup
10070
10071/* System header to define __stub macros and hopefully few prototypes,
10072    which can conflict with char _dyld_func_lookup (); below.
10073    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10074    <limits.h> exists even on freestanding compilers.  */
10075
10076#ifdef __STDC__
10077# include <limits.h>
10078#else
10079# include <assert.h>
10080#endif
10081
10082#undef _dyld_func_lookup
10083
10084/* Override any GCC internal prototype to avoid an error.
10085   Use char because int might match the return type of a GCC
10086   builtin and then its argument prototype would still apply.  */
10087#ifdef __cplusplus
10088extern "C"
10089#endif
10090char _dyld_func_lookup ();
10091/* The GNU C library defines this for functions which it implements
10092    to always fail with ENOSYS.  Some functions are actually named
10093    something starting with __ and the normal name is an alias.  */
10094#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10095choke me
10096#endif
10097
10098int
10099main ()
10100{
10101return _dyld_func_lookup ();
10102  ;
10103  return 0;
10104}
10105_ACEOF
10106rm -f conftest.$ac_objext conftest$ac_exeext
10107if { (ac_try="$ac_link"
10108case "(($ac_try" in
10109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110  *) ac_try_echo=$ac_try;;
10111esac
10112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113  (eval "$ac_link") 2>conftest.er1
10114  ac_status=$?
10115  grep -v '^ *+' conftest.er1 >conftest.err
10116  rm -f conftest.er1
10117  cat conftest.err >&5
10118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119  (exit $ac_status); } &&
10120	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10121  { (case "(($ac_try" in
10122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123  *) ac_try_echo=$ac_try;;
10124esac
10125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126  (eval "$ac_try") 2>&5
10127  ac_status=$?
10128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129  (exit $ac_status); }; } &&
10130	 { ac_try='test -s conftest$ac_exeext'
10131  { (case "(($ac_try" in
10132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133  *) ac_try_echo=$ac_try;;
10134esac
10135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136  (eval "$ac_try") 2>&5
10137  ac_status=$?
10138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139  (exit $ac_status); }; }; then
10140  ac_cv_func__dyld_func_lookup=yes
10141else
10142  echo "$as_me: failed program was:" >&5
10143sed 's/^/| /' conftest.$ac_ext >&5
10144
10145	ac_cv_func__dyld_func_lookup=no
10146fi
10147
10148rm -f core conftest.err conftest.$ac_objext \
10149      conftest$ac_exeext conftest.$ac_ext
10150fi
10151{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10152echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10153if test $ac_cv_func__dyld_func_lookup = yes; then
10154
10155cat >>confdefs.h <<\_ACEOF
10156#define HAVE_DYLD 1
10157_ACEOF
10158
10159fi
10160
10161
10162fi
10163
10164
10165fi
10166
10167
10168fi
10169
10170rm -f core conftest.err conftest.$ac_objext \
10171      conftest$ac_exeext conftest.$ac_ext
10172
10173fi
10174
10175
10176fi
10177
10178
10179fi
10180
10181
10182if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10183then
10184  lt_save_LIBS="$LIBS"
10185  LIBS="$LIBS $LIBADD_DL"
10186
10187for ac_func in dlerror
10188do
10189as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10190{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10191echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10192if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10193  echo $ECHO_N "(cached) $ECHO_C" >&6
10194else
10195  cat >conftest.$ac_ext <<_ACEOF
10196/* confdefs.h.  */
10197_ACEOF
10198cat confdefs.h >>conftest.$ac_ext
10199cat >>conftest.$ac_ext <<_ACEOF
10200/* end confdefs.h.  */
10201/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10202   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10203#define $ac_func innocuous_$ac_func
10204
10205/* System header to define __stub macros and hopefully few prototypes,
10206    which can conflict with char $ac_func (); below.
10207    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10208    <limits.h> exists even on freestanding compilers.  */
10209
10210#ifdef __STDC__
10211# include <limits.h>
10212#else
10213# include <assert.h>
10214#endif
10215
10216#undef $ac_func
10217
10218/* Override any GCC internal prototype to avoid an error.
10219   Use char because int might match the return type of a GCC
10220   builtin and then its argument prototype would still apply.  */
10221#ifdef __cplusplus
10222extern "C"
10223#endif
10224char $ac_func ();
10225/* The GNU C library defines this for functions which it implements
10226    to always fail with ENOSYS.  Some functions are actually named
10227    something starting with __ and the normal name is an alias.  */
10228#if defined __stub_$ac_func || defined __stub___$ac_func
10229choke me
10230#endif
10231
10232int
10233main ()
10234{
10235return $ac_func ();
10236  ;
10237  return 0;
10238}
10239_ACEOF
10240rm -f conftest.$ac_objext conftest$ac_exeext
10241if { (ac_try="$ac_link"
10242case "(($ac_try" in
10243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244  *) ac_try_echo=$ac_try;;
10245esac
10246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247  (eval "$ac_link") 2>conftest.er1
10248  ac_status=$?
10249  grep -v '^ *+' conftest.er1 >conftest.err
10250  rm -f conftest.er1
10251  cat conftest.err >&5
10252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253  (exit $ac_status); } &&
10254	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10255  { (case "(($ac_try" in
10256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257  *) ac_try_echo=$ac_try;;
10258esac
10259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260  (eval "$ac_try") 2>&5
10261  ac_status=$?
10262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263  (exit $ac_status); }; } &&
10264	 { ac_try='test -s conftest$ac_exeext'
10265  { (case "(($ac_try" in
10266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10267  *) ac_try_echo=$ac_try;;
10268esac
10269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270  (eval "$ac_try") 2>&5
10271  ac_status=$?
10272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273  (exit $ac_status); }; }; then
10274  eval "$as_ac_var=yes"
10275else
10276  echo "$as_me: failed program was:" >&5
10277sed 's/^/| /' conftest.$ac_ext >&5
10278
10279	eval "$as_ac_var=no"
10280fi
10281
10282rm -f core conftest.err conftest.$ac_objext \
10283      conftest$ac_exeext conftest.$ac_ext
10284fi
10285ac_res=`eval echo '${'$as_ac_var'}'`
10286	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10287echo "${ECHO_T}$ac_res" >&6; }
10288if test `eval echo '${'$as_ac_var'}'` = yes; then
10289  cat >>confdefs.h <<_ACEOF
10290#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10291_ACEOF
10292
10293fi
10294done
10295
10296  LIBS="$lt_save_LIBS"
10297fi
10298ac_ext=c
10299ac_cpp='$CPP $CPPFLAGS'
10300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10302ac_compiler_gnu=$ac_cv_c_compiler_gnu
10303
10304
10305
10306{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10307echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10308if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10309  echo $ECHO_N "(cached) $ECHO_C" >&6
10310else
10311  ac_cv_sys_symbol_underscore=no
10312  cat > conftest.$ac_ext <<EOF
10313void nm_test_func(){}
10314int main(){nm_test_func;return 0;}
10315EOF
10316  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10317  (eval $ac_compile) 2>&5
10318  ac_status=$?
10319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320  (exit $ac_status); }; then
10321    # Now try to grab the symbols.
10322    ac_nlist=conftest.nm
10323    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10324  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10325  ac_status=$?
10326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327  (exit $ac_status); } && test -s "$ac_nlist"; then
10328      # See whether the symbols have a leading underscore.
10329      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10330        ac_cv_sys_symbol_underscore=yes
10331      else
10332        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10333	  :
10334        else
10335	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10336        fi
10337      fi
10338    else
10339      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10340    fi
10341  else
10342    echo "configure: failed program was:" >&5
10343    cat conftest.c >&5
10344  fi
10345  rm -rf conftest*
10346
10347fi
10348{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10349echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10350
10351
10352if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10353  if test x"$libltdl_cv_func_dlopen" = xyes ||
10354     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10355	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10356echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10357if test "${libltdl_cv_need_uscore+set}" = set; then
10358  echo $ECHO_N "(cached) $ECHO_C" >&6
10359else
10360  libltdl_cv_need_uscore=unknown
10361          save_LIBS="$LIBS"
10362          LIBS="$LIBS $LIBADD_DL"
10363	  if test "$cross_compiling" = yes; then :
10364  libltdl_cv_need_uscore=cross
10365else
10366  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10367  lt_status=$lt_dlunknown
10368  cat > conftest.$ac_ext <<EOF
10369#line 10369 "configure"
10370#include "confdefs.h"
10371
10372#if HAVE_DLFCN_H
10373#include <dlfcn.h>
10374#endif
10375
10376#include <stdio.h>
10377
10378#ifdef RTLD_GLOBAL
10379#  define LT_DLGLOBAL		RTLD_GLOBAL
10380#else
10381#  ifdef DL_GLOBAL
10382#    define LT_DLGLOBAL		DL_GLOBAL
10383#  else
10384#    define LT_DLGLOBAL		0
10385#  endif
10386#endif
10387
10388/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10389   find out it does not work in some platform. */
10390#ifndef LT_DLLAZY_OR_NOW
10391#  ifdef RTLD_LAZY
10392#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10393#  else
10394#    ifdef DL_LAZY
10395#      define LT_DLLAZY_OR_NOW		DL_LAZY
10396#    else
10397#      ifdef RTLD_NOW
10398#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10399#      else
10400#        ifdef DL_NOW
10401#          define LT_DLLAZY_OR_NOW	DL_NOW
10402#        else
10403#          define LT_DLLAZY_OR_NOW	0
10404#        endif
10405#      endif
10406#    endif
10407#  endif
10408#endif
10409
10410#ifdef __cplusplus
10411extern "C" void exit (int);
10412#endif
10413
10414void fnord() { int i=42;}
10415int main ()
10416{
10417  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10418  int status = $lt_dlunknown;
10419
10420  if (self)
10421    {
10422      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10423      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10424      /* dlclose (self); */
10425    }
10426  else
10427    puts (dlerror ());
10428
10429    exit (status);
10430}
10431EOF
10432  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10433  (eval $ac_link) 2>&5
10434  ac_status=$?
10435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10437    (./conftest; exit; ) >&5 2>/dev/null
10438    lt_status=$?
10439    case x$lt_status in
10440      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10441      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10442      x$lt_dlunknown|x*)  ;;
10443    esac
10444  else :
10445    # compilation failed
10446
10447  fi
10448fi
10449rm -fr conftest*
10450
10451	  LIBS="$save_LIBS"
10452
10453fi
10454{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10455echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10456  fi
10457fi
10458
10459if test x"$libltdl_cv_need_uscore" = xyes; then
10460
10461cat >>confdefs.h <<\_ACEOF
10462#define NEED_USCORE 1
10463_ACEOF
10464
10465fi
10466
10467
10468{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10469echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10470if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10471  echo $ECHO_N "(cached) $ECHO_C" >&6
10472else
10473  # PORTME does your system automatically load deplibs for dlopen?
10474  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10475  # For now, we just catch OSes we know something about -- in the
10476  # future, we'll try test this programmatically.
10477  libltdl_cv_sys_dlopen_deplibs=unknown
10478  case "$host_os" in
10479  aix3*|aix4.1.*|aix4.2.*)
10480    # Unknown whether this is true for these versions of AIX, but
10481    # we want this `case' here to explicitly catch those versions.
10482    libltdl_cv_sys_dlopen_deplibs=unknown
10483    ;;
10484  aix[45]*)
10485    libltdl_cv_sys_dlopen_deplibs=yes
10486    ;;
10487  darwin*)
10488    # Assuming the user has installed a libdl from somewhere, this is true
10489    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10490    libltdl_cv_sys_dlopen_deplibs=yes
10491    ;;
10492  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10493    # GNU and its variants, using gnu ld.so (Glibc)
10494    libltdl_cv_sys_dlopen_deplibs=yes
10495    ;;
10496  hpux10*|hpux11*)
10497    libltdl_cv_sys_dlopen_deplibs=yes
10498    ;;
10499  interix*)
10500    libltdl_cv_sys_dlopen_deplibs=yes
10501    ;;
10502  irix[12345]*|irix6.[01]*)
10503    # Catch all versions of IRIX before 6.2, and indicate that we don't
10504    # know how it worked for any of those versions.
10505    libltdl_cv_sys_dlopen_deplibs=unknown
10506    ;;
10507  irix*)
10508    # The case above catches anything before 6.2, and it's known that
10509    # at 6.2 and later dlopen does load deplibs.
10510    libltdl_cv_sys_dlopen_deplibs=yes
10511    ;;
10512  netbsd*)
10513    libltdl_cv_sys_dlopen_deplibs=yes
10514    ;;
10515  openbsd*)
10516    libltdl_cv_sys_dlopen_deplibs=yes
10517    ;;
10518  osf[1234]*)
10519    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10520    # it did *not* use an RPATH in a shared library to find objects the
10521    # library depends on, so we explictly say `no'.
10522    libltdl_cv_sys_dlopen_deplibs=no
10523    ;;
10524  osf5.0|osf5.0a|osf5.1)
10525    # dlopen *does* load deplibs and with the right loader patch applied
10526    # it even uses RPATH in a shared library to search for shared objects
10527    # that the library depends on, but there's no easy way to know if that
10528    # patch is installed.  Since this is the case, all we can really
10529    # say is unknown -- it depends on the patch being installed.  If
10530    # it is, this changes to `yes'.  Without it, it would be `no'.
10531    libltdl_cv_sys_dlopen_deplibs=unknown
10532    ;;
10533  osf*)
10534    # the two cases above should catch all versions of osf <= 5.1.  Read
10535    # the comments above for what we know about them.
10536    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10537    # is used to find them so we can finally say `yes'.
10538    libltdl_cv_sys_dlopen_deplibs=yes
10539    ;;
10540  solaris*)
10541    libltdl_cv_sys_dlopen_deplibs=yes
10542    ;;
10543  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10544    libltdl_cv_sys_dlopen_deplibs=yes
10545    ;;
10546  esac
10547
10548fi
10549{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10550echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10551if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10552
10553cat >>confdefs.h <<\_ACEOF
10554#define LTDL_DLOPEN_DEPLIBS 1
10555_ACEOF
10556
10557fi
10558
10559
10560for ac_header in argz.h
10561do
10562as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10563if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10564  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10565echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10566if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10567  echo $ECHO_N "(cached) $ECHO_C" >&6
10568fi
10569ac_res=`eval echo '${'$as_ac_Header'}'`
10570	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10571echo "${ECHO_T}$ac_res" >&6; }
10572else
10573  # Is the header compilable?
10574{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10575echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10576cat >conftest.$ac_ext <<_ACEOF
10577/* confdefs.h.  */
10578_ACEOF
10579cat confdefs.h >>conftest.$ac_ext
10580cat >>conftest.$ac_ext <<_ACEOF
10581/* end confdefs.h.  */
10582$ac_includes_default
10583#include <$ac_header>
10584_ACEOF
10585rm -f conftest.$ac_objext
10586if { (ac_try="$ac_compile"
10587case "(($ac_try" in
10588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589  *) ac_try_echo=$ac_try;;
10590esac
10591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10592  (eval "$ac_compile") 2>conftest.er1
10593  ac_status=$?
10594  grep -v '^ *+' conftest.er1 >conftest.err
10595  rm -f conftest.er1
10596  cat conftest.err >&5
10597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598  (exit $ac_status); } &&
10599	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10600  { (case "(($ac_try" in
10601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10602  *) ac_try_echo=$ac_try;;
10603esac
10604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10605  (eval "$ac_try") 2>&5
10606  ac_status=$?
10607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608  (exit $ac_status); }; } &&
10609	 { ac_try='test -s conftest.$ac_objext'
10610  { (case "(($ac_try" in
10611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612  *) ac_try_echo=$ac_try;;
10613esac
10614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10615  (eval "$ac_try") 2>&5
10616  ac_status=$?
10617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618  (exit $ac_status); }; }; then
10619  ac_header_compiler=yes
10620else
10621  echo "$as_me: failed program was:" >&5
10622sed 's/^/| /' conftest.$ac_ext >&5
10623
10624	ac_header_compiler=no
10625fi
10626
10627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10628{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10629echo "${ECHO_T}$ac_header_compiler" >&6; }
10630
10631# Is the header present?
10632{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10633echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10634cat >conftest.$ac_ext <<_ACEOF
10635/* confdefs.h.  */
10636_ACEOF
10637cat confdefs.h >>conftest.$ac_ext
10638cat >>conftest.$ac_ext <<_ACEOF
10639/* end confdefs.h.  */
10640#include <$ac_header>
10641_ACEOF
10642if { (ac_try="$ac_cpp conftest.$ac_ext"
10643case "(($ac_try" in
10644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645  *) ac_try_echo=$ac_try;;
10646esac
10647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10648  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10649  ac_status=$?
10650  grep -v '^ *+' conftest.er1 >conftest.err
10651  rm -f conftest.er1
10652  cat conftest.err >&5
10653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654  (exit $ac_status); } >/dev/null; then
10655  if test -s conftest.err; then
10656    ac_cpp_err=$ac_c_preproc_warn_flag
10657    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10658  else
10659    ac_cpp_err=
10660  fi
10661else
10662  ac_cpp_err=yes
10663fi
10664if test -z "$ac_cpp_err"; then
10665  ac_header_preproc=yes
10666else
10667  echo "$as_me: failed program was:" >&5
10668sed 's/^/| /' conftest.$ac_ext >&5
10669
10670  ac_header_preproc=no
10671fi
10672
10673rm -f conftest.err conftest.$ac_ext
10674{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10675echo "${ECHO_T}$ac_header_preproc" >&6; }
10676
10677# So?  What about this header?
10678case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10679  yes:no: )
10680    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10681echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10682    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10683echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10684    ac_header_preproc=yes
10685    ;;
10686  no:yes:* )
10687    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10688echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10689    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10690echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10691    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10692echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10693    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10694echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10695    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10696echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10697    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10698echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10699    ( cat <<\_ASBOX
10700## ----------------------------------- ##
10701## Report this to llvmbugs@cs.uiuc.edu ##
10702## ----------------------------------- ##
10703_ASBOX
10704     ) | sed "s/^/$as_me: WARNING:     /" >&2
10705    ;;
10706esac
10707{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10709if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10710  echo $ECHO_N "(cached) $ECHO_C" >&6
10711else
10712  eval "$as_ac_Header=\$ac_header_preproc"
10713fi
10714ac_res=`eval echo '${'$as_ac_Header'}'`
10715	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10716echo "${ECHO_T}$ac_res" >&6; }
10717
10718fi
10719if test `eval echo '${'$as_ac_Header'}'` = yes; then
10720  cat >>confdefs.h <<_ACEOF
10721#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10722_ACEOF
10723
10724fi
10725
10726done
10727
10728
10729{ echo "$as_me:$LINENO: checking for error_t" >&5
10730echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10731if test "${ac_cv_type_error_t+set}" = set; then
10732  echo $ECHO_N "(cached) $ECHO_C" >&6
10733else
10734  cat >conftest.$ac_ext <<_ACEOF
10735/* confdefs.h.  */
10736_ACEOF
10737cat confdefs.h >>conftest.$ac_ext
10738cat >>conftest.$ac_ext <<_ACEOF
10739/* end confdefs.h.  */
10740#if HAVE_ARGZ_H
10741#  include <argz.h>
10742#endif
10743
10744typedef error_t ac__type_new_;
10745int
10746main ()
10747{
10748if ((ac__type_new_ *) 0)
10749  return 0;
10750if (sizeof (ac__type_new_))
10751  return 0;
10752  ;
10753  return 0;
10754}
10755_ACEOF
10756rm -f conftest.$ac_objext
10757if { (ac_try="$ac_compile"
10758case "(($ac_try" in
10759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10760  *) ac_try_echo=$ac_try;;
10761esac
10762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10763  (eval "$ac_compile") 2>conftest.er1
10764  ac_status=$?
10765  grep -v '^ *+' conftest.er1 >conftest.err
10766  rm -f conftest.er1
10767  cat conftest.err >&5
10768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769  (exit $ac_status); } &&
10770	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10771  { (case "(($ac_try" in
10772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773  *) ac_try_echo=$ac_try;;
10774esac
10775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10776  (eval "$ac_try") 2>&5
10777  ac_status=$?
10778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779  (exit $ac_status); }; } &&
10780	 { ac_try='test -s conftest.$ac_objext'
10781  { (case "(($ac_try" in
10782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783  *) ac_try_echo=$ac_try;;
10784esac
10785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786  (eval "$ac_try") 2>&5
10787  ac_status=$?
10788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789  (exit $ac_status); }; }; then
10790  ac_cv_type_error_t=yes
10791else
10792  echo "$as_me: failed program was:" >&5
10793sed 's/^/| /' conftest.$ac_ext >&5
10794
10795	ac_cv_type_error_t=no
10796fi
10797
10798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10799fi
10800{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10801echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10802if test $ac_cv_type_error_t = yes; then
10803
10804cat >>confdefs.h <<_ACEOF
10805#define HAVE_ERROR_T 1
10806_ACEOF
10807
10808
10809else
10810
10811cat >>confdefs.h <<\_ACEOF
10812#define error_t int
10813_ACEOF
10814
10815fi
10816
10817
10818
10819
10820
10821
10822
10823for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10824do
10825as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10826{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10827echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10828if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10829  echo $ECHO_N "(cached) $ECHO_C" >&6
10830else
10831  cat >conftest.$ac_ext <<_ACEOF
10832/* confdefs.h.  */
10833_ACEOF
10834cat confdefs.h >>conftest.$ac_ext
10835cat >>conftest.$ac_ext <<_ACEOF
10836/* end confdefs.h.  */
10837/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10838   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10839#define $ac_func innocuous_$ac_func
10840
10841/* System header to define __stub macros and hopefully few prototypes,
10842    which can conflict with char $ac_func (); below.
10843    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10844    <limits.h> exists even on freestanding compilers.  */
10845
10846#ifdef __STDC__
10847# include <limits.h>
10848#else
10849# include <assert.h>
10850#endif
10851
10852#undef $ac_func
10853
10854/* Override any GCC internal prototype to avoid an error.
10855   Use char because int might match the return type of a GCC
10856   builtin and then its argument prototype would still apply.  */
10857#ifdef __cplusplus
10858extern "C"
10859#endif
10860char $ac_func ();
10861/* The GNU C library defines this for functions which it implements
10862    to always fail with ENOSYS.  Some functions are actually named
10863    something starting with __ and the normal name is an alias.  */
10864#if defined __stub_$ac_func || defined __stub___$ac_func
10865choke me
10866#endif
10867
10868int
10869main ()
10870{
10871return $ac_func ();
10872  ;
10873  return 0;
10874}
10875_ACEOF
10876rm -f conftest.$ac_objext conftest$ac_exeext
10877if { (ac_try="$ac_link"
10878case "(($ac_try" in
10879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880  *) ac_try_echo=$ac_try;;
10881esac
10882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883  (eval "$ac_link") 2>conftest.er1
10884  ac_status=$?
10885  grep -v '^ *+' conftest.er1 >conftest.err
10886  rm -f conftest.er1
10887  cat conftest.err >&5
10888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889  (exit $ac_status); } &&
10890	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10891  { (case "(($ac_try" in
10892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893  *) ac_try_echo=$ac_try;;
10894esac
10895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896  (eval "$ac_try") 2>&5
10897  ac_status=$?
10898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899  (exit $ac_status); }; } &&
10900	 { ac_try='test -s conftest$ac_exeext'
10901  { (case "(($ac_try" in
10902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10903  *) ac_try_echo=$ac_try;;
10904esac
10905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10906  (eval "$ac_try") 2>&5
10907  ac_status=$?
10908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909  (exit $ac_status); }; }; then
10910  eval "$as_ac_var=yes"
10911else
10912  echo "$as_me: failed program was:" >&5
10913sed 's/^/| /' conftest.$ac_ext >&5
10914
10915	eval "$as_ac_var=no"
10916fi
10917
10918rm -f core conftest.err conftest.$ac_objext \
10919      conftest$ac_exeext conftest.$ac_ext
10920fi
10921ac_res=`eval echo '${'$as_ac_var'}'`
10922	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10923echo "${ECHO_T}$ac_res" >&6; }
10924if test `eval echo '${'$as_ac_var'}'` = yes; then
10925  cat >>confdefs.h <<_ACEOF
10926#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10927_ACEOF
10928
10929fi
10930done
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10960		  stdio.h unistd.h
10961do
10962as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10963if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10964  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10965echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10966if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10967  echo $ECHO_N "(cached) $ECHO_C" >&6
10968fi
10969ac_res=`eval echo '${'$as_ac_Header'}'`
10970	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10971echo "${ECHO_T}$ac_res" >&6; }
10972else
10973  # Is the header compilable?
10974{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10975echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10976cat >conftest.$ac_ext <<_ACEOF
10977/* confdefs.h.  */
10978_ACEOF
10979cat confdefs.h >>conftest.$ac_ext
10980cat >>conftest.$ac_ext <<_ACEOF
10981/* end confdefs.h.  */
10982$ac_includes_default
10983#include <$ac_header>
10984_ACEOF
10985rm -f conftest.$ac_objext
10986if { (ac_try="$ac_compile"
10987case "(($ac_try" in
10988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989  *) ac_try_echo=$ac_try;;
10990esac
10991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992  (eval "$ac_compile") 2>conftest.er1
10993  ac_status=$?
10994  grep -v '^ *+' conftest.er1 >conftest.err
10995  rm -f conftest.er1
10996  cat conftest.err >&5
10997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998  (exit $ac_status); } &&
10999	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11000  { (case "(($ac_try" in
11001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002  *) ac_try_echo=$ac_try;;
11003esac
11004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005  (eval "$ac_try") 2>&5
11006  ac_status=$?
11007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008  (exit $ac_status); }; } &&
11009	 { ac_try='test -s conftest.$ac_objext'
11010  { (case "(($ac_try" in
11011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012  *) ac_try_echo=$ac_try;;
11013esac
11014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015  (eval "$ac_try") 2>&5
11016  ac_status=$?
11017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018  (exit $ac_status); }; }; then
11019  ac_header_compiler=yes
11020else
11021  echo "$as_me: failed program was:" >&5
11022sed 's/^/| /' conftest.$ac_ext >&5
11023
11024	ac_header_compiler=no
11025fi
11026
11027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11028{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11029echo "${ECHO_T}$ac_header_compiler" >&6; }
11030
11031# Is the header present?
11032{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11033echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11034cat >conftest.$ac_ext <<_ACEOF
11035/* confdefs.h.  */
11036_ACEOF
11037cat confdefs.h >>conftest.$ac_ext
11038cat >>conftest.$ac_ext <<_ACEOF
11039/* end confdefs.h.  */
11040#include <$ac_header>
11041_ACEOF
11042if { (ac_try="$ac_cpp conftest.$ac_ext"
11043case "(($ac_try" in
11044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045  *) ac_try_echo=$ac_try;;
11046esac
11047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11049  ac_status=$?
11050  grep -v '^ *+' conftest.er1 >conftest.err
11051  rm -f conftest.er1
11052  cat conftest.err >&5
11053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054  (exit $ac_status); } >/dev/null; then
11055  if test -s conftest.err; then
11056    ac_cpp_err=$ac_c_preproc_warn_flag
11057    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11058  else
11059    ac_cpp_err=
11060  fi
11061else
11062  ac_cpp_err=yes
11063fi
11064if test -z "$ac_cpp_err"; then
11065  ac_header_preproc=yes
11066else
11067  echo "$as_me: failed program was:" >&5
11068sed 's/^/| /' conftest.$ac_ext >&5
11069
11070  ac_header_preproc=no
11071fi
11072
11073rm -f conftest.err conftest.$ac_ext
11074{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11075echo "${ECHO_T}$ac_header_preproc" >&6; }
11076
11077# So?  What about this header?
11078case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11079  yes:no: )
11080    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11081echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11082    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11083echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11084    ac_header_preproc=yes
11085    ;;
11086  no:yes:* )
11087    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11088echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11089    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11090echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11091    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11092echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11093    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11094echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11095    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11096echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11097    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11098echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11099    ( cat <<\_ASBOX
11100## ----------------------------------- ##
11101## Report this to llvmbugs@cs.uiuc.edu ##
11102## ----------------------------------- ##
11103_ASBOX
11104     ) | sed "s/^/$as_me: WARNING:     /" >&2
11105    ;;
11106esac
11107{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11109if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11110  echo $ECHO_N "(cached) $ECHO_C" >&6
11111else
11112  eval "$as_ac_Header=\$ac_header_preproc"
11113fi
11114ac_res=`eval echo '${'$as_ac_Header'}'`
11115	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11116echo "${ECHO_T}$ac_res" >&6; }
11117
11118fi
11119if test `eval echo '${'$as_ac_Header'}'` = yes; then
11120  cat >>confdefs.h <<_ACEOF
11121#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11122_ACEOF
11123
11124fi
11125
11126done
11127
11128
11129
11130
11131
11132for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11133do
11134as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11136  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11137echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11138if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11139  echo $ECHO_N "(cached) $ECHO_C" >&6
11140fi
11141ac_res=`eval echo '${'$as_ac_Header'}'`
11142	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11143echo "${ECHO_T}$ac_res" >&6; }
11144else
11145  # Is the header compilable?
11146{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11147echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11148cat >conftest.$ac_ext <<_ACEOF
11149/* confdefs.h.  */
11150_ACEOF
11151cat confdefs.h >>conftest.$ac_ext
11152cat >>conftest.$ac_ext <<_ACEOF
11153/* end confdefs.h.  */
11154$ac_includes_default
11155#include <$ac_header>
11156_ACEOF
11157rm -f conftest.$ac_objext
11158if { (ac_try="$ac_compile"
11159case "(($ac_try" in
11160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11161  *) ac_try_echo=$ac_try;;
11162esac
11163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11164  (eval "$ac_compile") 2>conftest.er1
11165  ac_status=$?
11166  grep -v '^ *+' conftest.er1 >conftest.err
11167  rm -f conftest.er1
11168  cat conftest.err >&5
11169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170  (exit $ac_status); } &&
11171	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11172  { (case "(($ac_try" in
11173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11174  *) ac_try_echo=$ac_try;;
11175esac
11176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11177  (eval "$ac_try") 2>&5
11178  ac_status=$?
11179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180  (exit $ac_status); }; } &&
11181	 { ac_try='test -s conftest.$ac_objext'
11182  { (case "(($ac_try" in
11183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184  *) ac_try_echo=$ac_try;;
11185esac
11186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187  (eval "$ac_try") 2>&5
11188  ac_status=$?
11189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190  (exit $ac_status); }; }; then
11191  ac_header_compiler=yes
11192else
11193  echo "$as_me: failed program was:" >&5
11194sed 's/^/| /' conftest.$ac_ext >&5
11195
11196	ac_header_compiler=no
11197fi
11198
11199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11200{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11201echo "${ECHO_T}$ac_header_compiler" >&6; }
11202
11203# Is the header present?
11204{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11205echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11206cat >conftest.$ac_ext <<_ACEOF
11207/* confdefs.h.  */
11208_ACEOF
11209cat confdefs.h >>conftest.$ac_ext
11210cat >>conftest.$ac_ext <<_ACEOF
11211/* end confdefs.h.  */
11212#include <$ac_header>
11213_ACEOF
11214if { (ac_try="$ac_cpp conftest.$ac_ext"
11215case "(($ac_try" in
11216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217  *) ac_try_echo=$ac_try;;
11218esac
11219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11221  ac_status=$?
11222  grep -v '^ *+' conftest.er1 >conftest.err
11223  rm -f conftest.er1
11224  cat conftest.err >&5
11225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226  (exit $ac_status); } >/dev/null; then
11227  if test -s conftest.err; then
11228    ac_cpp_err=$ac_c_preproc_warn_flag
11229    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11230  else
11231    ac_cpp_err=
11232  fi
11233else
11234  ac_cpp_err=yes
11235fi
11236if test -z "$ac_cpp_err"; then
11237  ac_header_preproc=yes
11238else
11239  echo "$as_me: failed program was:" >&5
11240sed 's/^/| /' conftest.$ac_ext >&5
11241
11242  ac_header_preproc=no
11243fi
11244
11245rm -f conftest.err conftest.$ac_ext
11246{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11247echo "${ECHO_T}$ac_header_preproc" >&6; }
11248
11249# So?  What about this header?
11250case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11251  yes:no: )
11252    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11253echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11254    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11255echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11256    ac_header_preproc=yes
11257    ;;
11258  no:yes:* )
11259    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11260echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11261    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11262echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11263    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11264echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11265    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11266echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11267    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11268echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11269    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11270echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11271    ( cat <<\_ASBOX
11272## ----------------------------------- ##
11273## Report this to llvmbugs@cs.uiuc.edu ##
11274## ----------------------------------- ##
11275_ASBOX
11276     ) | sed "s/^/$as_me: WARNING:     /" >&2
11277    ;;
11278esac
11279{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11280echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11281if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11282  echo $ECHO_N "(cached) $ECHO_C" >&6
11283else
11284  eval "$as_ac_Header=\$ac_header_preproc"
11285fi
11286ac_res=`eval echo '${'$as_ac_Header'}'`
11287	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11288echo "${ECHO_T}$ac_res" >&6; }
11289
11290fi
11291if test `eval echo '${'$as_ac_Header'}'` = yes; then
11292  cat >>confdefs.h <<_ACEOF
11293#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11294_ACEOF
11295
11296fi
11297
11298done
11299
11300
11301
11302for ac_header in string.h strings.h
11303do
11304as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11305if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11306  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11307echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11308if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11309  echo $ECHO_N "(cached) $ECHO_C" >&6
11310fi
11311ac_res=`eval echo '${'$as_ac_Header'}'`
11312	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11313echo "${ECHO_T}$ac_res" >&6; }
11314else
11315  # Is the header compilable?
11316{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11317echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11318cat >conftest.$ac_ext <<_ACEOF
11319/* confdefs.h.  */
11320_ACEOF
11321cat confdefs.h >>conftest.$ac_ext
11322cat >>conftest.$ac_ext <<_ACEOF
11323/* end confdefs.h.  */
11324$ac_includes_default
11325#include <$ac_header>
11326_ACEOF
11327rm -f conftest.$ac_objext
11328if { (ac_try="$ac_compile"
11329case "(($ac_try" in
11330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331  *) ac_try_echo=$ac_try;;
11332esac
11333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334  (eval "$ac_compile") 2>conftest.er1
11335  ac_status=$?
11336  grep -v '^ *+' conftest.er1 >conftest.err
11337  rm -f conftest.er1
11338  cat conftest.err >&5
11339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340  (exit $ac_status); } &&
11341	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11342  { (case "(($ac_try" in
11343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344  *) ac_try_echo=$ac_try;;
11345esac
11346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347  (eval "$ac_try") 2>&5
11348  ac_status=$?
11349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350  (exit $ac_status); }; } &&
11351	 { ac_try='test -s conftest.$ac_objext'
11352  { (case "(($ac_try" in
11353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354  *) ac_try_echo=$ac_try;;
11355esac
11356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11357  (eval "$ac_try") 2>&5
11358  ac_status=$?
11359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360  (exit $ac_status); }; }; then
11361  ac_header_compiler=yes
11362else
11363  echo "$as_me: failed program was:" >&5
11364sed 's/^/| /' conftest.$ac_ext >&5
11365
11366	ac_header_compiler=no
11367fi
11368
11369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11370{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11371echo "${ECHO_T}$ac_header_compiler" >&6; }
11372
11373# Is the header present?
11374{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11375echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11376cat >conftest.$ac_ext <<_ACEOF
11377/* confdefs.h.  */
11378_ACEOF
11379cat confdefs.h >>conftest.$ac_ext
11380cat >>conftest.$ac_ext <<_ACEOF
11381/* end confdefs.h.  */
11382#include <$ac_header>
11383_ACEOF
11384if { (ac_try="$ac_cpp conftest.$ac_ext"
11385case "(($ac_try" in
11386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11387  *) ac_try_echo=$ac_try;;
11388esac
11389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11390  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11391  ac_status=$?
11392  grep -v '^ *+' conftest.er1 >conftest.err
11393  rm -f conftest.er1
11394  cat conftest.err >&5
11395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396  (exit $ac_status); } >/dev/null; then
11397  if test -s conftest.err; then
11398    ac_cpp_err=$ac_c_preproc_warn_flag
11399    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11400  else
11401    ac_cpp_err=
11402  fi
11403else
11404  ac_cpp_err=yes
11405fi
11406if test -z "$ac_cpp_err"; then
11407  ac_header_preproc=yes
11408else
11409  echo "$as_me: failed program was:" >&5
11410sed 's/^/| /' conftest.$ac_ext >&5
11411
11412  ac_header_preproc=no
11413fi
11414
11415rm -f conftest.err conftest.$ac_ext
11416{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11417echo "${ECHO_T}$ac_header_preproc" >&6; }
11418
11419# So?  What about this header?
11420case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11421  yes:no: )
11422    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11423echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11424    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11425echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11426    ac_header_preproc=yes
11427    ;;
11428  no:yes:* )
11429    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11430echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11431    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11432echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11433    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11434echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11435    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11436echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11437    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11438echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11439    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11440echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11441    ( cat <<\_ASBOX
11442## ----------------------------------- ##
11443## Report this to llvmbugs@cs.uiuc.edu ##
11444## ----------------------------------- ##
11445_ASBOX
11446     ) | sed "s/^/$as_me: WARNING:     /" >&2
11447    ;;
11448esac
11449{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11450echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11451if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11452  echo $ECHO_N "(cached) $ECHO_C" >&6
11453else
11454  eval "$as_ac_Header=\$ac_header_preproc"
11455fi
11456ac_res=`eval echo '${'$as_ac_Header'}'`
11457	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11458echo "${ECHO_T}$ac_res" >&6; }
11459
11460fi
11461if test `eval echo '${'$as_ac_Header'}'` = yes; then
11462  cat >>confdefs.h <<_ACEOF
11463#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11464_ACEOF
11465 break
11466fi
11467
11468done
11469
11470
11471
11472
11473for ac_func in strchr index
11474do
11475as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11476{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11477echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11478if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11479  echo $ECHO_N "(cached) $ECHO_C" >&6
11480else
11481  cat >conftest.$ac_ext <<_ACEOF
11482/* confdefs.h.  */
11483_ACEOF
11484cat confdefs.h >>conftest.$ac_ext
11485cat >>conftest.$ac_ext <<_ACEOF
11486/* end confdefs.h.  */
11487/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11488   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11489#define $ac_func innocuous_$ac_func
11490
11491/* System header to define __stub macros and hopefully few prototypes,
11492    which can conflict with char $ac_func (); below.
11493    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11494    <limits.h> exists even on freestanding compilers.  */
11495
11496#ifdef __STDC__
11497# include <limits.h>
11498#else
11499# include <assert.h>
11500#endif
11501
11502#undef $ac_func
11503
11504/* Override any GCC internal prototype to avoid an error.
11505   Use char because int might match the return type of a GCC
11506   builtin and then its argument prototype would still apply.  */
11507#ifdef __cplusplus
11508extern "C"
11509#endif
11510char $ac_func ();
11511/* The GNU C library defines this for functions which it implements
11512    to always fail with ENOSYS.  Some functions are actually named
11513    something starting with __ and the normal name is an alias.  */
11514#if defined __stub_$ac_func || defined __stub___$ac_func
11515choke me
11516#endif
11517
11518int
11519main ()
11520{
11521return $ac_func ();
11522  ;
11523  return 0;
11524}
11525_ACEOF
11526rm -f conftest.$ac_objext conftest$ac_exeext
11527if { (ac_try="$ac_link"
11528case "(($ac_try" in
11529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530  *) ac_try_echo=$ac_try;;
11531esac
11532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11533  (eval "$ac_link") 2>conftest.er1
11534  ac_status=$?
11535  grep -v '^ *+' conftest.er1 >conftest.err
11536  rm -f conftest.er1
11537  cat conftest.err >&5
11538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539  (exit $ac_status); } &&
11540	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11541  { (case "(($ac_try" in
11542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11543  *) ac_try_echo=$ac_try;;
11544esac
11545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11546  (eval "$ac_try") 2>&5
11547  ac_status=$?
11548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549  (exit $ac_status); }; } &&
11550	 { ac_try='test -s conftest$ac_exeext'
11551  { (case "(($ac_try" in
11552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553  *) ac_try_echo=$ac_try;;
11554esac
11555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556  (eval "$ac_try") 2>&5
11557  ac_status=$?
11558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559  (exit $ac_status); }; }; then
11560  eval "$as_ac_var=yes"
11561else
11562  echo "$as_me: failed program was:" >&5
11563sed 's/^/| /' conftest.$ac_ext >&5
11564
11565	eval "$as_ac_var=no"
11566fi
11567
11568rm -f core conftest.err conftest.$ac_objext \
11569      conftest$ac_exeext conftest.$ac_ext
11570fi
11571ac_res=`eval echo '${'$as_ac_var'}'`
11572	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11573echo "${ECHO_T}$ac_res" >&6; }
11574if test `eval echo '${'$as_ac_var'}'` = yes; then
11575  cat >>confdefs.h <<_ACEOF
11576#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11577_ACEOF
11578 break
11579fi
11580done
11581
11582
11583
11584for ac_func in strrchr rindex
11585do
11586as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11587{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11588echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11589if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11590  echo $ECHO_N "(cached) $ECHO_C" >&6
11591else
11592  cat >conftest.$ac_ext <<_ACEOF
11593/* confdefs.h.  */
11594_ACEOF
11595cat confdefs.h >>conftest.$ac_ext
11596cat >>conftest.$ac_ext <<_ACEOF
11597/* end confdefs.h.  */
11598/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11599   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11600#define $ac_func innocuous_$ac_func
11601
11602/* System header to define __stub macros and hopefully few prototypes,
11603    which can conflict with char $ac_func (); below.
11604    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11605    <limits.h> exists even on freestanding compilers.  */
11606
11607#ifdef __STDC__
11608# include <limits.h>
11609#else
11610# include <assert.h>
11611#endif
11612
11613#undef $ac_func
11614
11615/* Override any GCC internal prototype to avoid an error.
11616   Use char because int might match the return type of a GCC
11617   builtin and then its argument prototype would still apply.  */
11618#ifdef __cplusplus
11619extern "C"
11620#endif
11621char $ac_func ();
11622/* The GNU C library defines this for functions which it implements
11623    to always fail with ENOSYS.  Some functions are actually named
11624    something starting with __ and the normal name is an alias.  */
11625#if defined __stub_$ac_func || defined __stub___$ac_func
11626choke me
11627#endif
11628
11629int
11630main ()
11631{
11632return $ac_func ();
11633  ;
11634  return 0;
11635}
11636_ACEOF
11637rm -f conftest.$ac_objext conftest$ac_exeext
11638if { (ac_try="$ac_link"
11639case "(($ac_try" in
11640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641  *) ac_try_echo=$ac_try;;
11642esac
11643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644  (eval "$ac_link") 2>conftest.er1
11645  ac_status=$?
11646  grep -v '^ *+' conftest.er1 >conftest.err
11647  rm -f conftest.er1
11648  cat conftest.err >&5
11649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650  (exit $ac_status); } &&
11651	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11652  { (case "(($ac_try" in
11653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654  *) ac_try_echo=$ac_try;;
11655esac
11656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657  (eval "$ac_try") 2>&5
11658  ac_status=$?
11659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660  (exit $ac_status); }; } &&
11661	 { ac_try='test -s conftest$ac_exeext'
11662  { (case "(($ac_try" in
11663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664  *) ac_try_echo=$ac_try;;
11665esac
11666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11667  (eval "$ac_try") 2>&5
11668  ac_status=$?
11669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670  (exit $ac_status); }; }; then
11671  eval "$as_ac_var=yes"
11672else
11673  echo "$as_me: failed program was:" >&5
11674sed 's/^/| /' conftest.$ac_ext >&5
11675
11676	eval "$as_ac_var=no"
11677fi
11678
11679rm -f core conftest.err conftest.$ac_objext \
11680      conftest$ac_exeext conftest.$ac_ext
11681fi
11682ac_res=`eval echo '${'$as_ac_var'}'`
11683	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11684echo "${ECHO_T}$ac_res" >&6; }
11685if test `eval echo '${'$as_ac_var'}'` = yes; then
11686  cat >>confdefs.h <<_ACEOF
11687#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11688_ACEOF
11689 break
11690fi
11691done
11692
11693
11694
11695for ac_func in memcpy bcopy
11696do
11697as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11698{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11699echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11700if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11701  echo $ECHO_N "(cached) $ECHO_C" >&6
11702else
11703  cat >conftest.$ac_ext <<_ACEOF
11704/* confdefs.h.  */
11705_ACEOF
11706cat confdefs.h >>conftest.$ac_ext
11707cat >>conftest.$ac_ext <<_ACEOF
11708/* end confdefs.h.  */
11709/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11710   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11711#define $ac_func innocuous_$ac_func
11712
11713/* System header to define __stub macros and hopefully few prototypes,
11714    which can conflict with char $ac_func (); below.
11715    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11716    <limits.h> exists even on freestanding compilers.  */
11717
11718#ifdef __STDC__
11719# include <limits.h>
11720#else
11721# include <assert.h>
11722#endif
11723
11724#undef $ac_func
11725
11726/* Override any GCC internal prototype to avoid an error.
11727   Use char because int might match the return type of a GCC
11728   builtin and then its argument prototype would still apply.  */
11729#ifdef __cplusplus
11730extern "C"
11731#endif
11732char $ac_func ();
11733/* The GNU C library defines this for functions which it implements
11734    to always fail with ENOSYS.  Some functions are actually named
11735    something starting with __ and the normal name is an alias.  */
11736#if defined __stub_$ac_func || defined __stub___$ac_func
11737choke me
11738#endif
11739
11740int
11741main ()
11742{
11743return $ac_func ();
11744  ;
11745  return 0;
11746}
11747_ACEOF
11748rm -f conftest.$ac_objext conftest$ac_exeext
11749if { (ac_try="$ac_link"
11750case "(($ac_try" in
11751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752  *) ac_try_echo=$ac_try;;
11753esac
11754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755  (eval "$ac_link") 2>conftest.er1
11756  ac_status=$?
11757  grep -v '^ *+' conftest.er1 >conftest.err
11758  rm -f conftest.er1
11759  cat conftest.err >&5
11760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761  (exit $ac_status); } &&
11762	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11763  { (case "(($ac_try" in
11764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11765  *) ac_try_echo=$ac_try;;
11766esac
11767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11768  (eval "$ac_try") 2>&5
11769  ac_status=$?
11770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771  (exit $ac_status); }; } &&
11772	 { ac_try='test -s conftest$ac_exeext'
11773  { (case "(($ac_try" in
11774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775  *) ac_try_echo=$ac_try;;
11776esac
11777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11778  (eval "$ac_try") 2>&5
11779  ac_status=$?
11780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781  (exit $ac_status); }; }; then
11782  eval "$as_ac_var=yes"
11783else
11784  echo "$as_me: failed program was:" >&5
11785sed 's/^/| /' conftest.$ac_ext >&5
11786
11787	eval "$as_ac_var=no"
11788fi
11789
11790rm -f core conftest.err conftest.$ac_objext \
11791      conftest$ac_exeext conftest.$ac_ext
11792fi
11793ac_res=`eval echo '${'$as_ac_var'}'`
11794	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11795echo "${ECHO_T}$ac_res" >&6; }
11796if test `eval echo '${'$as_ac_var'}'` = yes; then
11797  cat >>confdefs.h <<_ACEOF
11798#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11799_ACEOF
11800 break
11801fi
11802done
11803
11804
11805
11806for ac_func in memmove strcmp
11807do
11808as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11809{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11810echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11811if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11812  echo $ECHO_N "(cached) $ECHO_C" >&6
11813else
11814  cat >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/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11821   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11822#define $ac_func innocuous_$ac_func
11823
11824/* System header to define __stub macros and hopefully few prototypes,
11825    which can conflict with char $ac_func (); below.
11826    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11827    <limits.h> exists even on freestanding compilers.  */
11828
11829#ifdef __STDC__
11830# include <limits.h>
11831#else
11832# include <assert.h>
11833#endif
11834
11835#undef $ac_func
11836
11837/* Override any GCC internal prototype to avoid an error.
11838   Use char because int might match the return type of a GCC
11839   builtin and then its argument prototype would still apply.  */
11840#ifdef __cplusplus
11841extern "C"
11842#endif
11843char $ac_func ();
11844/* The GNU C library defines this for functions which it implements
11845    to always fail with ENOSYS.  Some functions are actually named
11846    something starting with __ and the normal name is an alias.  */
11847#if defined __stub_$ac_func || defined __stub___$ac_func
11848choke me
11849#endif
11850
11851int
11852main ()
11853{
11854return $ac_func ();
11855  ;
11856  return 0;
11857}
11858_ACEOF
11859rm -f conftest.$ac_objext conftest$ac_exeext
11860if { (ac_try="$ac_link"
11861case "(($ac_try" in
11862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863  *) ac_try_echo=$ac_try;;
11864esac
11865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866  (eval "$ac_link") 2>conftest.er1
11867  ac_status=$?
11868  grep -v '^ *+' conftest.er1 >conftest.err
11869  rm -f conftest.er1
11870  cat conftest.err >&5
11871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872  (exit $ac_status); } &&
11873	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11874  { (case "(($ac_try" in
11875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11876  *) ac_try_echo=$ac_try;;
11877esac
11878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11879  (eval "$ac_try") 2>&5
11880  ac_status=$?
11881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882  (exit $ac_status); }; } &&
11883	 { ac_try='test -s conftest$ac_exeext'
11884  { (case "(($ac_try" in
11885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11886  *) ac_try_echo=$ac_try;;
11887esac
11888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11889  (eval "$ac_try") 2>&5
11890  ac_status=$?
11891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892  (exit $ac_status); }; }; then
11893  eval "$as_ac_var=yes"
11894else
11895  echo "$as_me: failed program was:" >&5
11896sed 's/^/| /' conftest.$ac_ext >&5
11897
11898	eval "$as_ac_var=no"
11899fi
11900
11901rm -f core conftest.err conftest.$ac_objext \
11902      conftest$ac_exeext conftest.$ac_ext
11903fi
11904ac_res=`eval echo '${'$as_ac_var'}'`
11905	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11906echo "${ECHO_T}$ac_res" >&6; }
11907if test `eval echo '${'$as_ac_var'}'` = yes; then
11908  cat >>confdefs.h <<_ACEOF
11909#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11910_ACEOF
11911
11912fi
11913done
11914
11915
11916
11917
11918for ac_func in closedir opendir readdir
11919do
11920as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11921{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11922echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11923if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11924  echo $ECHO_N "(cached) $ECHO_C" >&6
11925else
11926  cat >conftest.$ac_ext <<_ACEOF
11927/* confdefs.h.  */
11928_ACEOF
11929cat confdefs.h >>conftest.$ac_ext
11930cat >>conftest.$ac_ext <<_ACEOF
11931/* end confdefs.h.  */
11932/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11933   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11934#define $ac_func innocuous_$ac_func
11935
11936/* System header to define __stub macros and hopefully few prototypes,
11937    which can conflict with char $ac_func (); below.
11938    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11939    <limits.h> exists even on freestanding compilers.  */
11940
11941#ifdef __STDC__
11942# include <limits.h>
11943#else
11944# include <assert.h>
11945#endif
11946
11947#undef $ac_func
11948
11949/* Override any GCC internal prototype to avoid an error.
11950   Use char because int might match the return type of a GCC
11951   builtin and then its argument prototype would still apply.  */
11952#ifdef __cplusplus
11953extern "C"
11954#endif
11955char $ac_func ();
11956/* The GNU C library defines this for functions which it implements
11957    to always fail with ENOSYS.  Some functions are actually named
11958    something starting with __ and the normal name is an alias.  */
11959#if defined __stub_$ac_func || defined __stub___$ac_func
11960choke me
11961#endif
11962
11963int
11964main ()
11965{
11966return $ac_func ();
11967  ;
11968  return 0;
11969}
11970_ACEOF
11971rm -f conftest.$ac_objext conftest$ac_exeext
11972if { (ac_try="$ac_link"
11973case "(($ac_try" in
11974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975  *) ac_try_echo=$ac_try;;
11976esac
11977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978  (eval "$ac_link") 2>conftest.er1
11979  ac_status=$?
11980  grep -v '^ *+' conftest.er1 >conftest.err
11981  rm -f conftest.er1
11982  cat conftest.err >&5
11983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984  (exit $ac_status); } &&
11985	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11986  { (case "(($ac_try" in
11987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988  *) ac_try_echo=$ac_try;;
11989esac
11990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11991  (eval "$ac_try") 2>&5
11992  ac_status=$?
11993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994  (exit $ac_status); }; } &&
11995	 { ac_try='test -s conftest$ac_exeext'
11996  { (case "(($ac_try" in
11997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11998  *) ac_try_echo=$ac_try;;
11999esac
12000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12001  (eval "$ac_try") 2>&5
12002  ac_status=$?
12003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004  (exit $ac_status); }; }; then
12005  eval "$as_ac_var=yes"
12006else
12007  echo "$as_me: failed program was:" >&5
12008sed 's/^/| /' conftest.$ac_ext >&5
12009
12010	eval "$as_ac_var=no"
12011fi
12012
12013rm -f core conftest.err conftest.$ac_objext \
12014      conftest$ac_exeext conftest.$ac_ext
12015fi
12016ac_res=`eval echo '${'$as_ac_var'}'`
12017	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12018echo "${ECHO_T}$ac_res" >&6; }
12019if test `eval echo '${'$as_ac_var'}'` = yes; then
12020  cat >>confdefs.h <<_ACEOF
12021#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12022_ACEOF
12023
12024fi
12025done
12026
12027
12028# Check whether --enable-shared was given.
12029if test "${enable_shared+set}" = set; then
12030  enableval=$enable_shared; p=${PACKAGE-default}
12031    case $enableval in
12032    yes) enable_shared=yes ;;
12033    no) enable_shared=no ;;
12034    *)
12035      enable_shared=no
12036      # Look at the argument we got.  We use all the common list separators.
12037      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12038      for pkg in $enableval; do
12039	IFS="$lt_save_ifs"
12040	if test "X$pkg" = "X$p"; then
12041	  enable_shared=yes
12042	fi
12043      done
12044      IFS="$lt_save_ifs"
12045      ;;
12046    esac
12047else
12048  enable_shared=yes
12049fi
12050
12051
12052# Check whether --enable-static was given.
12053if test "${enable_static+set}" = set; then
12054  enableval=$enable_static; p=${PACKAGE-default}
12055    case $enableval in
12056    yes) enable_static=yes ;;
12057    no) enable_static=no ;;
12058    *)
12059     enable_static=no
12060      # Look at the argument we got.  We use all the common list separators.
12061      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12062      for pkg in $enableval; do
12063	IFS="$lt_save_ifs"
12064	if test "X$pkg" = "X$p"; then
12065	  enable_static=yes
12066	fi
12067      done
12068      IFS="$lt_save_ifs"
12069      ;;
12070    esac
12071else
12072  enable_static=yes
12073fi
12074
12075
12076# Check whether --enable-fast-install was given.
12077if test "${enable_fast_install+set}" = set; then
12078  enableval=$enable_fast_install; p=${PACKAGE-default}
12079    case $enableval in
12080    yes) enable_fast_install=yes ;;
12081    no) enable_fast_install=no ;;
12082    *)
12083      enable_fast_install=no
12084      # Look at the argument we got.  We use all the common list separators.
12085      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12086      for pkg in $enableval; do
12087	IFS="$lt_save_ifs"
12088	if test "X$pkg" = "X$p"; then
12089	  enable_fast_install=yes
12090	fi
12091      done
12092      IFS="$lt_save_ifs"
12093      ;;
12094    esac
12095else
12096  enable_fast_install=yes
12097fi
12098
12099
12100{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12101echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12102if test "${lt_cv_path_SED+set}" = set; then
12103  echo $ECHO_N "(cached) $ECHO_C" >&6
12104else
12105  # Loop through the user's path and test for sed and gsed.
12106# Then use that list of sed's as ones to test for truncation.
12107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12108for as_dir in $PATH
12109do
12110  IFS=$as_save_IFS
12111  test -z "$as_dir" && as_dir=.
12112  for lt_ac_prog in sed gsed; do
12113    for ac_exec_ext in '' $ac_executable_extensions; do
12114      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12115        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12116      fi
12117    done
12118  done
12119done
12120lt_ac_max=0
12121lt_ac_count=0
12122# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12123# along with /bin/sed that truncates output.
12124for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12125  test ! -f $lt_ac_sed && continue
12126  cat /dev/null > conftest.in
12127  lt_ac_count=0
12128  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12129  # Check for GNU sed and select it if it is found.
12130  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12131    lt_cv_path_SED=$lt_ac_sed
12132    break
12133  fi
12134  while true; do
12135    cat conftest.in conftest.in >conftest.tmp
12136    mv conftest.tmp conftest.in
12137    cp conftest.in conftest.nl
12138    echo >>conftest.nl
12139    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12140    cmp -s conftest.out conftest.nl || break
12141    # 10000 chars as input seems more than enough
12142    test $lt_ac_count -gt 10 && break
12143    lt_ac_count=`expr $lt_ac_count + 1`
12144    if test $lt_ac_count -gt $lt_ac_max; then
12145      lt_ac_max=$lt_ac_count
12146      lt_cv_path_SED=$lt_ac_sed
12147    fi
12148  done
12149done
12150
12151fi
12152
12153SED=$lt_cv_path_SED
12154{ echo "$as_me:$LINENO: result: $SED" >&5
12155echo "${ECHO_T}$SED" >&6; }
12156
12157
12158# Check whether --with-gnu-ld was given.
12159if test "${with_gnu_ld+set}" = set; then
12160  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12161else
12162  with_gnu_ld=no
12163fi
12164
12165ac_prog=ld
12166if test "$GCC" = yes; then
12167  # Check if gcc -print-prog-name=ld gives a path.
12168  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12169echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12170  case $host in
12171  *-*-mingw*)
12172    # gcc leaves a trailing carriage return which upsets mingw
12173    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12174  *)
12175    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12176  esac
12177  case $ac_prog in
12178    # Accept absolute paths.
12179    [\\/]* | ?:[\\/]*)
12180      re_direlt='/[^/][^/]*/\.\./'
12181      # Canonicalize the pathname of ld
12182      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12183      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12184	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12185      done
12186      test -z "$LD" && LD="$ac_prog"
12187      ;;
12188  "")
12189    # If it fails, then pretend we aren't using GCC.
12190    ac_prog=ld
12191    ;;
12192  *)
12193    # If it is relative, then search for the first ld in PATH.
12194    with_gnu_ld=unknown
12195    ;;
12196  esac
12197elif test "$with_gnu_ld" = yes; then
12198  { echo "$as_me:$LINENO: checking for GNU ld" >&5
12199echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12200else
12201  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12202echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12203fi
12204if test "${lt_cv_path_LD+set}" = set; then
12205  echo $ECHO_N "(cached) $ECHO_C" >&6
12206else
12207  if test -z "$LD"; then
12208  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12209  for ac_dir in $PATH; do
12210    IFS="$lt_save_ifs"
12211    test -z "$ac_dir" && ac_dir=.
12212    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12213      lt_cv_path_LD="$ac_dir/$ac_prog"
12214      # Check to see if the program is GNU ld.  I'd rather use --version,
12215      # but apparently some variants of GNU ld only accept -v.
12216      # Break only if it was the GNU/non-GNU ld that we prefer.
12217      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12218      *GNU* | *'with BFD'*)
12219	test "$with_gnu_ld" != no && break
12220	;;
12221      *)
12222	test "$with_gnu_ld" != yes && break
12223	;;
12224      esac
12225    fi
12226  done
12227  IFS="$lt_save_ifs"
12228else
12229  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12230fi
12231fi
12232
12233LD="$lt_cv_path_LD"
12234if test -n "$LD"; then
12235  { echo "$as_me:$LINENO: result: $LD" >&5
12236echo "${ECHO_T}$LD" >&6; }
12237else
12238  { echo "$as_me:$LINENO: result: no" >&5
12239echo "${ECHO_T}no" >&6; }
12240fi
12241test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12242echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12243   { (exit 1); exit 1; }; }
12244{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12245echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12246if test "${lt_cv_prog_gnu_ld+set}" = set; then
12247  echo $ECHO_N "(cached) $ECHO_C" >&6
12248else
12249  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12250case `$LD -v 2>&1 </dev/null` in
12251*GNU* | *'with BFD'*)
12252  lt_cv_prog_gnu_ld=yes
12253  ;;
12254*)
12255  lt_cv_prog_gnu_ld=no
12256  ;;
12257esac
12258fi
12259{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12260echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12261with_gnu_ld=$lt_cv_prog_gnu_ld
12262
12263
12264{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12265echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12266if test "${lt_cv_ld_reload_flag+set}" = set; then
12267  echo $ECHO_N "(cached) $ECHO_C" >&6
12268else
12269  lt_cv_ld_reload_flag='-r'
12270fi
12271{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12272echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12273reload_flag=$lt_cv_ld_reload_flag
12274case $reload_flag in
12275"" | " "*) ;;
12276*) reload_flag=" $reload_flag" ;;
12277esac
12278reload_cmds='$LD$reload_flag -o $output$reload_objs'
12279case $host_os in
12280  darwin*)
12281    if test "$GCC" = yes; then
12282      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12283    else
12284      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12285    fi
12286    ;;
12287esac
12288
12289{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12290echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12291if test "${lt_cv_deplibs_check_method+set}" = set; then
12292  echo $ECHO_N "(cached) $ECHO_C" >&6
12293else
12294  lt_cv_file_magic_cmd='$MAGIC_CMD'
12295lt_cv_file_magic_test_file=
12296lt_cv_deplibs_check_method='unknown'
12297# Need to set the preceding variable on all platforms that support
12298# interlibrary dependencies.
12299# 'none' -- dependencies not supported.
12300# `unknown' -- same as none, but documents that we really don't know.
12301# 'pass_all' -- all dependencies passed with no checks.
12302# 'test_compile' -- check by making test program.
12303# 'file_magic [[regex]]' -- check by looking for files in library path
12304# which responds to the $file_magic_cmd with a given extended regex.
12305# If you have `file' or equivalent on your system and you're not sure
12306# whether `pass_all' will *always* work, you probably want this one.
12307
12308case $host_os in
12309aix4* | aix5*)
12310  lt_cv_deplibs_check_method=pass_all
12311  ;;
12312
12313beos*)
12314  lt_cv_deplibs_check_method=pass_all
12315  ;;
12316
12317bsdi[45]*)
12318  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12319  lt_cv_file_magic_cmd='/usr/bin/file -L'
12320  lt_cv_file_magic_test_file=/shlib/libc.so
12321  ;;
12322
12323cygwin*)
12324  # func_win32_libid is a shell function defined in ltmain.sh
12325  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12326  lt_cv_file_magic_cmd='func_win32_libid'
12327  ;;
12328
12329mingw* | pw32*)
12330  # Base MSYS/MinGW do not provide the 'file' command needed by
12331  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12332  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12333  lt_cv_file_magic_cmd='$OBJDUMP -f'
12334  ;;
12335
12336darwin* | rhapsody*)
12337  lt_cv_deplibs_check_method=pass_all
12338  ;;
12339
12340freebsd* | kfreebsd*-gnu | dragonfly*)
12341  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12342    case $host_cpu in
12343    i*86 )
12344      # Not sure whether the presence of OpenBSD here was a mistake.
12345      # Let's accept both of them until this is cleared up.
12346      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12347      lt_cv_file_magic_cmd=/usr/bin/file
12348      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12349      ;;
12350    esac
12351  else
12352    lt_cv_deplibs_check_method=pass_all
12353  fi
12354  ;;
12355
12356gnu*)
12357  lt_cv_deplibs_check_method=pass_all
12358  ;;
12359
12360hpux10.20* | hpux11*)
12361  lt_cv_file_magic_cmd=/usr/bin/file
12362  case $host_cpu in
12363  ia64*)
12364    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12365    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12366    ;;
12367  hppa*64*)
12368    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]'
12369    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12370    ;;
12371  *)
12372    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12373    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12374    ;;
12375  esac
12376  ;;
12377
12378interix3*)
12379  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12380  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12381  ;;
12382
12383irix5* | irix6* | nonstopux*)
12384  case $LD in
12385  *-32|*"-32 ") libmagic=32-bit;;
12386  *-n32|*"-n32 ") libmagic=N32;;
12387  *-64|*"-64 ") libmagic=64-bit;;
12388  *) libmagic=never-match;;
12389  esac
12390  lt_cv_deplibs_check_method=pass_all
12391  ;;
12392
12393# This must be Linux ELF.
12394linux*)
12395  lt_cv_deplibs_check_method=pass_all
12396  ;;
12397
12398netbsd*)
12399  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12400    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12401  else
12402    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12403  fi
12404  ;;
12405
12406newos6*)
12407  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12408  lt_cv_file_magic_cmd=/usr/bin/file
12409  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12410  ;;
12411
12412nto-qnx*)
12413  lt_cv_deplibs_check_method=unknown
12414  ;;
12415
12416openbsd*)
12417  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12418    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12419  else
12420    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12421  fi
12422  ;;
12423
12424osf3* | osf4* | osf5*)
12425  lt_cv_deplibs_check_method=pass_all
12426  ;;
12427
12428solaris*)
12429  lt_cv_deplibs_check_method=pass_all
12430  ;;
12431
12432sysv4 | sysv4.3*)
12433  case $host_vendor in
12434  motorola)
12435    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]'
12436    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12437    ;;
12438  ncr)
12439    lt_cv_deplibs_check_method=pass_all
12440    ;;
12441  sequent)
12442    lt_cv_file_magic_cmd='/bin/file'
12443    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12444    ;;
12445  sni)
12446    lt_cv_file_magic_cmd='/bin/file'
12447    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12448    lt_cv_file_magic_test_file=/lib/libc.so
12449    ;;
12450  siemens)
12451    lt_cv_deplibs_check_method=pass_all
12452    ;;
12453  pc)
12454    lt_cv_deplibs_check_method=pass_all
12455    ;;
12456  esac
12457  ;;
12458
12459sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12460  lt_cv_deplibs_check_method=pass_all
12461  ;;
12462esac
12463
12464fi
12465{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12466echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12467file_magic_cmd=$lt_cv_file_magic_cmd
12468deplibs_check_method=$lt_cv_deplibs_check_method
12469test -z "$deplibs_check_method" && deplibs_check_method=unknown
12470
12471
12472
12473# If no C compiler was specified, use CC.
12474LTCC=${LTCC-"$CC"}
12475
12476# If no C compiler flags were specified, use CFLAGS.
12477LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12478
12479# Allow CC to be a program name with arguments.
12480compiler=$CC
12481
12482# Check whether --enable-libtool-lock was given.
12483if test "${enable_libtool_lock+set}" = set; then
12484  enableval=$enable_libtool_lock;
12485fi
12486
12487test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12488
12489# Some flags need to be propagated to the compiler or linker for good
12490# libtool support.
12491case $host in
12492ia64-*-hpux*)
12493  # Find out which ABI we are using.
12494  echo 'int i;' > conftest.$ac_ext
12495  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12496  (eval $ac_compile) 2>&5
12497  ac_status=$?
12498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499  (exit $ac_status); }; then
12500    case `/usr/bin/file conftest.$ac_objext` in
12501    *ELF-32*)
12502      HPUX_IA64_MODE="32"
12503      ;;
12504    *ELF-64*)
12505      HPUX_IA64_MODE="64"
12506      ;;
12507    esac
12508  fi
12509  rm -rf conftest*
12510  ;;
12511*-*-irix6*)
12512  # Find out which ABI we are using.
12513  echo '#line 12513 "configure"' > conftest.$ac_ext
12514  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12515  (eval $ac_compile) 2>&5
12516  ac_status=$?
12517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518  (exit $ac_status); }; then
12519   if test "$lt_cv_prog_gnu_ld" = yes; then
12520    case `/usr/bin/file conftest.$ac_objext` in
12521    *32-bit*)
12522      LD="${LD-ld} -melf32bsmip"
12523      ;;
12524    *N32*)
12525      LD="${LD-ld} -melf32bmipn32"
12526      ;;
12527    *64-bit*)
12528      LD="${LD-ld} -melf64bmip"
12529      ;;
12530    esac
12531   else
12532    case `/usr/bin/file conftest.$ac_objext` in
12533    *32-bit*)
12534      LD="${LD-ld} -32"
12535      ;;
12536    *N32*)
12537      LD="${LD-ld} -n32"
12538      ;;
12539    *64-bit*)
12540      LD="${LD-ld} -64"
12541      ;;
12542    esac
12543   fi
12544  fi
12545  rm -rf conftest*
12546  ;;
12547
12548x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12549  # Find out which ABI we are using.
12550  echo 'int i;' > conftest.$ac_ext
12551  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12552  (eval $ac_compile) 2>&5
12553  ac_status=$?
12554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555  (exit $ac_status); }; then
12556    case `/usr/bin/file conftest.o` in
12557    *32-bit*)
12558      case $host in
12559        x86_64-*linux*)
12560          LD="${LD-ld} -m elf_i386"
12561          ;;
12562        ppc64-*linux*|powerpc64-*linux*)
12563          LD="${LD-ld} -m elf32ppclinux"
12564          ;;
12565        s390x-*linux*)
12566          LD="${LD-ld} -m elf_s390"
12567          ;;
12568        sparc64-*linux*)
12569          LD="${LD-ld} -m elf32_sparc"
12570          ;;
12571      esac
12572      ;;
12573    *64-bit*)
12574      case $host in
12575        x86_64-*linux*)
12576          LD="${LD-ld} -m elf_x86_64"
12577          ;;
12578        ppc*-*linux*|powerpc*-*linux*)
12579          LD="${LD-ld} -m elf64ppc"
12580          ;;
12581        s390*-*linux*)
12582          LD="${LD-ld} -m elf64_s390"
12583          ;;
12584        sparc*-*linux*)
12585          LD="${LD-ld} -m elf64_sparc"
12586          ;;
12587      esac
12588      ;;
12589    esac
12590  fi
12591  rm -rf conftest*
12592  ;;
12593
12594*-*-sco3.2v5*)
12595  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12596  SAVE_CFLAGS="$CFLAGS"
12597  CFLAGS="$CFLAGS -belf"
12598  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12599echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12600if test "${lt_cv_cc_needs_belf+set}" = set; then
12601  echo $ECHO_N "(cached) $ECHO_C" >&6
12602else
12603  ac_ext=c
12604ac_cpp='$CPP $CPPFLAGS'
12605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12607ac_compiler_gnu=$ac_cv_c_compiler_gnu
12608
12609     cat >conftest.$ac_ext <<_ACEOF
12610/* confdefs.h.  */
12611_ACEOF
12612cat confdefs.h >>conftest.$ac_ext
12613cat >>conftest.$ac_ext <<_ACEOF
12614/* end confdefs.h.  */
12615
12616int
12617main ()
12618{
12619
12620  ;
12621  return 0;
12622}
12623_ACEOF
12624rm -f conftest.$ac_objext conftest$ac_exeext
12625if { (ac_try="$ac_link"
12626case "(($ac_try" in
12627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628  *) ac_try_echo=$ac_try;;
12629esac
12630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631  (eval "$ac_link") 2>conftest.er1
12632  ac_status=$?
12633  grep -v '^ *+' conftest.er1 >conftest.err
12634  rm -f conftest.er1
12635  cat conftest.err >&5
12636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637  (exit $ac_status); } &&
12638	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12639  { (case "(($ac_try" in
12640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641  *) ac_try_echo=$ac_try;;
12642esac
12643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12644  (eval "$ac_try") 2>&5
12645  ac_status=$?
12646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647  (exit $ac_status); }; } &&
12648	 { ac_try='test -s conftest$ac_exeext'
12649  { (case "(($ac_try" in
12650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651  *) ac_try_echo=$ac_try;;
12652esac
12653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12654  (eval "$ac_try") 2>&5
12655  ac_status=$?
12656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657  (exit $ac_status); }; }; then
12658  lt_cv_cc_needs_belf=yes
12659else
12660  echo "$as_me: failed program was:" >&5
12661sed 's/^/| /' conftest.$ac_ext >&5
12662
12663	lt_cv_cc_needs_belf=no
12664fi
12665
12666rm -f core conftest.err conftest.$ac_objext \
12667      conftest$ac_exeext conftest.$ac_ext
12668     ac_ext=c
12669ac_cpp='$CPP $CPPFLAGS'
12670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12672ac_compiler_gnu=$ac_cv_c_compiler_gnu
12673
12674fi
12675{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12676echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12677  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12678    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12679    CFLAGS="$SAVE_CFLAGS"
12680  fi
12681  ;;
12682sparc*-*solaris*)
12683  # Find out which ABI we are using.
12684  echo 'int i;' > conftest.$ac_ext
12685  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12686  (eval $ac_compile) 2>&5
12687  ac_status=$?
12688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689  (exit $ac_status); }; then
12690    case `/usr/bin/file conftest.o` in
12691    *64-bit*)
12692      case $lt_cv_prog_gnu_ld in
12693      yes*) LD="${LD-ld} -m elf64_sparc" ;;
12694      *)    LD="${LD-ld} -64" ;;
12695      esac
12696      ;;
12697    esac
12698  fi
12699  rm -rf conftest*
12700  ;;
12701
12702
12703esac
12704
12705need_locks="$enable_libtool_lock"
12706
12707
12708
12709
12710if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12711    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12712    (test "X$CXX" != "Xg++"))) ; then
12713  ac_ext=cpp
12714ac_cpp='$CXXCPP $CPPFLAGS'
12715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12718{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12719echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12720if test -z "$CXXCPP"; then
12721  if test "${ac_cv_prog_CXXCPP+set}" = set; then
12722  echo $ECHO_N "(cached) $ECHO_C" >&6
12723else
12724      # Double quotes because CXXCPP needs to be expanded
12725    for CXXCPP in "$CXX -E" "/lib/cpp"
12726    do
12727      ac_preproc_ok=false
12728for ac_cxx_preproc_warn_flag in '' yes
12729do
12730  # Use a header file that comes with gcc, so configuring glibc
12731  # with a fresh cross-compiler works.
12732  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12733  # <limits.h> exists even on freestanding compilers.
12734  # On the NeXT, cc -E runs the code through the compiler's parser,
12735  # not just through cpp. "Syntax error" is here to catch this case.
12736  cat >conftest.$ac_ext <<_ACEOF
12737/* confdefs.h.  */
12738_ACEOF
12739cat confdefs.h >>conftest.$ac_ext
12740cat >>conftest.$ac_ext <<_ACEOF
12741/* end confdefs.h.  */
12742#ifdef __STDC__
12743# include <limits.h>
12744#else
12745# include <assert.h>
12746#endif
12747		     Syntax error
12748_ACEOF
12749if { (ac_try="$ac_cpp conftest.$ac_ext"
12750case "(($ac_try" in
12751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752  *) ac_try_echo=$ac_try;;
12753esac
12754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12756  ac_status=$?
12757  grep -v '^ *+' conftest.er1 >conftest.err
12758  rm -f conftest.er1
12759  cat conftest.err >&5
12760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761  (exit $ac_status); } >/dev/null; then
12762  if test -s conftest.err; then
12763    ac_cpp_err=$ac_cxx_preproc_warn_flag
12764    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12765  else
12766    ac_cpp_err=
12767  fi
12768else
12769  ac_cpp_err=yes
12770fi
12771if test -z "$ac_cpp_err"; then
12772  :
12773else
12774  echo "$as_me: failed program was:" >&5
12775sed 's/^/| /' conftest.$ac_ext >&5
12776
12777  # Broken: fails on valid input.
12778continue
12779fi
12780
12781rm -f conftest.err conftest.$ac_ext
12782
12783  # OK, works on sane cases.  Now check whether nonexistent headers
12784  # can be detected and how.
12785  cat >conftest.$ac_ext <<_ACEOF
12786/* confdefs.h.  */
12787_ACEOF
12788cat confdefs.h >>conftest.$ac_ext
12789cat >>conftest.$ac_ext <<_ACEOF
12790/* end confdefs.h.  */
12791#include <ac_nonexistent.h>
12792_ACEOF
12793if { (ac_try="$ac_cpp conftest.$ac_ext"
12794case "(($ac_try" in
12795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796  *) ac_try_echo=$ac_try;;
12797esac
12798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12800  ac_status=$?
12801  grep -v '^ *+' conftest.er1 >conftest.err
12802  rm -f conftest.er1
12803  cat conftest.err >&5
12804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805  (exit $ac_status); } >/dev/null; then
12806  if test -s conftest.err; then
12807    ac_cpp_err=$ac_cxx_preproc_warn_flag
12808    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12809  else
12810    ac_cpp_err=
12811  fi
12812else
12813  ac_cpp_err=yes
12814fi
12815if test -z "$ac_cpp_err"; then
12816  # Broken: success on invalid input.
12817continue
12818else
12819  echo "$as_me: failed program was:" >&5
12820sed 's/^/| /' conftest.$ac_ext >&5
12821
12822  # Passes both tests.
12823ac_preproc_ok=:
12824break
12825fi
12826
12827rm -f conftest.err conftest.$ac_ext
12828
12829done
12830# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12831rm -f conftest.err conftest.$ac_ext
12832if $ac_preproc_ok; then
12833  break
12834fi
12835
12836    done
12837    ac_cv_prog_CXXCPP=$CXXCPP
12838
12839fi
12840  CXXCPP=$ac_cv_prog_CXXCPP
12841else
12842  ac_cv_prog_CXXCPP=$CXXCPP
12843fi
12844{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12845echo "${ECHO_T}$CXXCPP" >&6; }
12846ac_preproc_ok=false
12847for ac_cxx_preproc_warn_flag in '' yes
12848do
12849  # Use a header file that comes with gcc, so configuring glibc
12850  # with a fresh cross-compiler works.
12851  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12852  # <limits.h> exists even on freestanding compilers.
12853  # On the NeXT, cc -E runs the code through the compiler's parser,
12854  # not just through cpp. "Syntax error" is here to catch this case.
12855  cat >conftest.$ac_ext <<_ACEOF
12856/* confdefs.h.  */
12857_ACEOF
12858cat confdefs.h >>conftest.$ac_ext
12859cat >>conftest.$ac_ext <<_ACEOF
12860/* end confdefs.h.  */
12861#ifdef __STDC__
12862# include <limits.h>
12863#else
12864# include <assert.h>
12865#endif
12866		     Syntax error
12867_ACEOF
12868if { (ac_try="$ac_cpp conftest.$ac_ext"
12869case "(($ac_try" in
12870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871  *) ac_try_echo=$ac_try;;
12872esac
12873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12875  ac_status=$?
12876  grep -v '^ *+' conftest.er1 >conftest.err
12877  rm -f conftest.er1
12878  cat conftest.err >&5
12879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880  (exit $ac_status); } >/dev/null; then
12881  if test -s conftest.err; then
12882    ac_cpp_err=$ac_cxx_preproc_warn_flag
12883    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12884  else
12885    ac_cpp_err=
12886  fi
12887else
12888  ac_cpp_err=yes
12889fi
12890if test -z "$ac_cpp_err"; then
12891  :
12892else
12893  echo "$as_me: failed program was:" >&5
12894sed 's/^/| /' conftest.$ac_ext >&5
12895
12896  # Broken: fails on valid input.
12897continue
12898fi
12899
12900rm -f conftest.err conftest.$ac_ext
12901
12902  # OK, works on sane cases.  Now check whether nonexistent headers
12903  # can be detected and how.
12904  cat >conftest.$ac_ext <<_ACEOF
12905/* confdefs.h.  */
12906_ACEOF
12907cat confdefs.h >>conftest.$ac_ext
12908cat >>conftest.$ac_ext <<_ACEOF
12909/* end confdefs.h.  */
12910#include <ac_nonexistent.h>
12911_ACEOF
12912if { (ac_try="$ac_cpp conftest.$ac_ext"
12913case "(($ac_try" in
12914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12915  *) ac_try_echo=$ac_try;;
12916esac
12917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12918  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12919  ac_status=$?
12920  grep -v '^ *+' conftest.er1 >conftest.err
12921  rm -f conftest.er1
12922  cat conftest.err >&5
12923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924  (exit $ac_status); } >/dev/null; then
12925  if test -s conftest.err; then
12926    ac_cpp_err=$ac_cxx_preproc_warn_flag
12927    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12928  else
12929    ac_cpp_err=
12930  fi
12931else
12932  ac_cpp_err=yes
12933fi
12934if test -z "$ac_cpp_err"; then
12935  # Broken: success on invalid input.
12936continue
12937else
12938  echo "$as_me: failed program was:" >&5
12939sed 's/^/| /' conftest.$ac_ext >&5
12940
12941  # Passes both tests.
12942ac_preproc_ok=:
12943break
12944fi
12945
12946rm -f conftest.err conftest.$ac_ext
12947
12948done
12949# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12950rm -f conftest.err conftest.$ac_ext
12951if $ac_preproc_ok; then
12952  :
12953else
12954  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12955See \`config.log' for more details." >&5
12956echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12957See \`config.log' for more details." >&2;}
12958   { (exit 1); exit 1; }; }
12959fi
12960
12961ac_ext=cpp
12962ac_cpp='$CXXCPP $CPPFLAGS'
12963ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12964ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12965ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12966
12967fi
12968
12969
12970ac_ext=f
12971ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12972ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12973ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12974if test -n "$ac_tool_prefix"; then
12975  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
12976  do
12977    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12978set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12979{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12981if test "${ac_cv_prog_F77+set}" = set; then
12982  echo $ECHO_N "(cached) $ECHO_C" >&6
12983else
12984  if test -n "$F77"; then
12985  ac_cv_prog_F77="$F77" # Let the user override the test.
12986else
12987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12988for as_dir in $PATH
12989do
12990  IFS=$as_save_IFS
12991  test -z "$as_dir" && as_dir=.
12992  for ac_exec_ext in '' $ac_executable_extensions; do
12993  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12994    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12995    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12996    break 2
12997  fi
12998done
12999done
13000IFS=$as_save_IFS
13001
13002fi
13003fi
13004F77=$ac_cv_prog_F77
13005if test -n "$F77"; then
13006  { echo "$as_me:$LINENO: result: $F77" >&5
13007echo "${ECHO_T}$F77" >&6; }
13008else
13009  { echo "$as_me:$LINENO: result: no" >&5
13010echo "${ECHO_T}no" >&6; }
13011fi
13012
13013
13014    test -n "$F77" && break
13015  done
13016fi
13017if test -z "$F77"; then
13018  ac_ct_F77=$F77
13019  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
13020do
13021  # Extract the first word of "$ac_prog", so it can be a program name with args.
13022set dummy $ac_prog; ac_word=$2
13023{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13025if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13026  echo $ECHO_N "(cached) $ECHO_C" >&6
13027else
13028  if test -n "$ac_ct_F77"; then
13029  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13030else
13031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13032for as_dir in $PATH
13033do
13034  IFS=$as_save_IFS
13035  test -z "$as_dir" && as_dir=.
13036  for ac_exec_ext in '' $ac_executable_extensions; do
13037  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13038    ac_cv_prog_ac_ct_F77="$ac_prog"
13039    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13040    break 2
13041  fi
13042done
13043done
13044IFS=$as_save_IFS
13045
13046fi
13047fi
13048ac_ct_F77=$ac_cv_prog_ac_ct_F77
13049if test -n "$ac_ct_F77"; then
13050  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13051echo "${ECHO_T}$ac_ct_F77" >&6; }
13052else
13053  { echo "$as_me:$LINENO: result: no" >&5
13054echo "${ECHO_T}no" >&6; }
13055fi
13056
13057
13058  test -n "$ac_ct_F77" && break
13059done
13060
13061  if test "x$ac_ct_F77" = x; then
13062    F77=""
13063  else
13064    case $cross_compiling:$ac_tool_warned in
13065yes:)
13066{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13067whose name does not start with the host triplet.  If you think this
13068configuration is useful to you, please write to autoconf@gnu.org." >&5
13069echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13070whose name does not start with the host triplet.  If you think this
13071configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13072ac_tool_warned=yes ;;
13073esac
13074    F77=$ac_ct_F77
13075  fi
13076fi
13077
13078
13079# Provide some information about the compiler.
13080echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13081ac_compiler=`set X $ac_compile; echo $2`
13082{ (ac_try="$ac_compiler --version >&5"
13083case "(($ac_try" in
13084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13085  *) ac_try_echo=$ac_try;;
13086esac
13087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13088  (eval "$ac_compiler --version >&5") 2>&5
13089  ac_status=$?
13090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091  (exit $ac_status); }
13092{ (ac_try="$ac_compiler -v >&5"
13093case "(($ac_try" in
13094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13095  *) ac_try_echo=$ac_try;;
13096esac
13097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13098  (eval "$ac_compiler -v >&5") 2>&5
13099  ac_status=$?
13100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101  (exit $ac_status); }
13102{ (ac_try="$ac_compiler -V >&5"
13103case "(($ac_try" in
13104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105  *) ac_try_echo=$ac_try;;
13106esac
13107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13108  (eval "$ac_compiler -V >&5") 2>&5
13109  ac_status=$?
13110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111  (exit $ac_status); }
13112rm -f a.out
13113
13114# If we don't use `.F' as extension, the preprocessor is not run on the
13115# input file.  (Note that this only needs to work for GNU compilers.)
13116ac_save_ext=$ac_ext
13117ac_ext=F
13118{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13119echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13120if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13121  echo $ECHO_N "(cached) $ECHO_C" >&6
13122else
13123  cat >conftest.$ac_ext <<_ACEOF
13124      program main
13125#ifndef __GNUC__
13126       choke me
13127#endif
13128
13129      end
13130_ACEOF
13131rm -f conftest.$ac_objext
13132if { (ac_try="$ac_compile"
13133case "(($ac_try" in
13134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135  *) ac_try_echo=$ac_try;;
13136esac
13137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13138  (eval "$ac_compile") 2>conftest.er1
13139  ac_status=$?
13140  grep -v '^ *+' conftest.er1 >conftest.err
13141  rm -f conftest.er1
13142  cat conftest.err >&5
13143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144  (exit $ac_status); } &&
13145	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13146  { (case "(($ac_try" in
13147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13148  *) ac_try_echo=$ac_try;;
13149esac
13150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13151  (eval "$ac_try") 2>&5
13152  ac_status=$?
13153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154  (exit $ac_status); }; } &&
13155	 { ac_try='test -s conftest.$ac_objext'
13156  { (case "(($ac_try" in
13157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158  *) ac_try_echo=$ac_try;;
13159esac
13160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161  (eval "$ac_try") 2>&5
13162  ac_status=$?
13163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164  (exit $ac_status); }; }; then
13165  ac_compiler_gnu=yes
13166else
13167  echo "$as_me: failed program was:" >&5
13168sed 's/^/| /' conftest.$ac_ext >&5
13169
13170	ac_compiler_gnu=no
13171fi
13172
13173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13174ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13175
13176fi
13177{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13178echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13179ac_ext=$ac_save_ext
13180ac_test_FFLAGS=${FFLAGS+set}
13181ac_save_FFLAGS=$FFLAGS
13182FFLAGS=
13183{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13184echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13185if test "${ac_cv_prog_f77_g+set}" = set; then
13186  echo $ECHO_N "(cached) $ECHO_C" >&6
13187else
13188  FFLAGS=-g
13189cat >conftest.$ac_ext <<_ACEOF
13190      program main
13191
13192      end
13193_ACEOF
13194rm -f conftest.$ac_objext
13195if { (ac_try="$ac_compile"
13196case "(($ac_try" in
13197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13198  *) ac_try_echo=$ac_try;;
13199esac
13200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13201  (eval "$ac_compile") 2>conftest.er1
13202  ac_status=$?
13203  grep -v '^ *+' conftest.er1 >conftest.err
13204  rm -f conftest.er1
13205  cat conftest.err >&5
13206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207  (exit $ac_status); } &&
13208	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13209  { (case "(($ac_try" in
13210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13211  *) ac_try_echo=$ac_try;;
13212esac
13213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13214  (eval "$ac_try") 2>&5
13215  ac_status=$?
13216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217  (exit $ac_status); }; } &&
13218	 { ac_try='test -s conftest.$ac_objext'
13219  { (case "(($ac_try" in
13220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221  *) ac_try_echo=$ac_try;;
13222esac
13223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13224  (eval "$ac_try") 2>&5
13225  ac_status=$?
13226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227  (exit $ac_status); }; }; then
13228  ac_cv_prog_f77_g=yes
13229else
13230  echo "$as_me: failed program was:" >&5
13231sed 's/^/| /' conftest.$ac_ext >&5
13232
13233	ac_cv_prog_f77_g=no
13234fi
13235
13236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13237
13238fi
13239{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13240echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13241if test "$ac_test_FFLAGS" = set; then
13242  FFLAGS=$ac_save_FFLAGS
13243elif test $ac_cv_prog_f77_g = yes; then
13244  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13245    FFLAGS="-g -O2"
13246  else
13247    FFLAGS="-g"
13248  fi
13249else
13250  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13251    FFLAGS="-O2"
13252  else
13253    FFLAGS=
13254  fi
13255fi
13256
13257G77=`test $ac_compiler_gnu = yes && echo yes`
13258ac_ext=c
13259ac_cpp='$CPP $CPPFLAGS'
13260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13262ac_compiler_gnu=$ac_cv_c_compiler_gnu
13263
13264
13265
13266# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13267
13268# find the maximum length of command line arguments
13269{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13270echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13271if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13272  echo $ECHO_N "(cached) $ECHO_C" >&6
13273else
13274    i=0
13275  teststring="ABCD"
13276
13277  case $build_os in
13278  msdosdjgpp*)
13279    # On DJGPP, this test can blow up pretty badly due to problems in libc
13280    # (any single argument exceeding 2000 bytes causes a buffer overrun
13281    # during glob expansion).  Even if it were fixed, the result of this
13282    # check would be larger than it should be.
13283    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13284    ;;
13285
13286  gnu*)
13287    # Under GNU Hurd, this test is not required because there is
13288    # no limit to the length of command line arguments.
13289    # Libtool will interpret -1 as no limit whatsoever
13290    lt_cv_sys_max_cmd_len=-1;
13291    ;;
13292
13293  cygwin* | mingw*)
13294    # On Win9x/ME, this test blows up -- it succeeds, but takes
13295    # about 5 minutes as the teststring grows exponentially.
13296    # Worse, since 9x/ME are not pre-emptively multitasking,
13297    # you end up with a "frozen" computer, even though with patience
13298    # the test eventually succeeds (with a max line length of 256k).
13299    # Instead, let's just punt: use the minimum linelength reported by
13300    # all of the supported platforms: 8192 (on NT/2K/XP).
13301    lt_cv_sys_max_cmd_len=8192;
13302    ;;
13303
13304  amigaos*)
13305    # On AmigaOS with pdksh, this test takes hours, literally.
13306    # So we just punt and use a minimum line length of 8192.
13307    lt_cv_sys_max_cmd_len=8192;
13308    ;;
13309
13310  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13311    # This has been around since 386BSD, at least.  Likely further.
13312    if test -x /sbin/sysctl; then
13313      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13314    elif test -x /usr/sbin/sysctl; then
13315      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13316    else
13317      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
13318    fi
13319    # And add a safety zone
13320    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13321    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13322    ;;
13323
13324  interix*)
13325    # We know the value 262144 and hardcode it with a safety zone (like BSD)
13326    lt_cv_sys_max_cmd_len=196608
13327    ;;
13328
13329  osf*)
13330    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13331    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13332    # nice to cause kernel panics so lets avoid the loop below.
13333    # First set a reasonable default.
13334    lt_cv_sys_max_cmd_len=16384
13335    #
13336    if test -x /sbin/sysconfig; then
13337      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13338        *1*) lt_cv_sys_max_cmd_len=-1 ;;
13339      esac
13340    fi
13341    ;;
13342  sco3.2v5*)
13343    lt_cv_sys_max_cmd_len=102400
13344    ;;
13345  sysv5* | sco5v6* | sysv4.2uw2*)
13346    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13347    if test -n "$kargmax"; then
13348      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
13349    else
13350      lt_cv_sys_max_cmd_len=32768
13351    fi
13352    ;;
13353  *)
13354    # If test is not a shell built-in, we'll probably end up computing a
13355    # maximum length that is only half of the actual maximum length, but
13356    # we can't tell.
13357    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13358    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13359	       = "XX$teststring") >/dev/null 2>&1 &&
13360	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
13361	    lt_cv_sys_max_cmd_len=$new_result &&
13362	    test $i != 17 # 1/2 MB should be enough
13363    do
13364      i=`expr $i + 1`
13365      teststring=$teststring$teststring
13366    done
13367    teststring=
13368    # Add a significant safety factor because C++ compilers can tack on massive
13369    # amounts of additional arguments before passing them to the linker.
13370    # It appears as though 1/2 is a usable value.
13371    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13372    ;;
13373  esac
13374
13375fi
13376
13377if test -n $lt_cv_sys_max_cmd_len ; then
13378  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13379echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13380else
13381  { echo "$as_me:$LINENO: result: none" >&5
13382echo "${ECHO_T}none" >&6; }
13383fi
13384
13385
13386
13387
13388# Check for command to grab the raw symbol name followed by C symbol from nm.
13389{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13390echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13391if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13392  echo $ECHO_N "(cached) $ECHO_C" >&6
13393else
13394
13395# These are sane defaults that work on at least a few old systems.
13396# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13397
13398# Character class describing NM global symbol codes.
13399symcode='[BCDEGRST]'
13400
13401# Regexp to match symbols that can be accessed directly from C.
13402sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13403
13404# Transform an extracted symbol line into a proper C declaration
13405lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13406
13407# Transform an extracted symbol line into symbol name and symbol address
13408lt_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'"
13409
13410# Define system-specific variables.
13411case $host_os in
13412aix*)
13413  symcode='[BCDT]'
13414  ;;
13415cygwin* | mingw* | pw32*)
13416  symcode='[ABCDGISTW]'
13417  ;;
13418hpux*) # Its linker distinguishes data from code symbols
13419  if test "$host_cpu" = ia64; then
13420    symcode='[ABCDEGRST]'
13421  fi
13422  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13423  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'"
13424  ;;
13425linux*)
13426  if test "$host_cpu" = ia64; then
13427    symcode='[ABCDGIRSTW]'
13428    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13429    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'"
13430  fi
13431  ;;
13432irix* | nonstopux*)
13433  symcode='[BCDEGRST]'
13434  ;;
13435osf*)
13436  symcode='[BCDEGQRST]'
13437  ;;
13438solaris*)
13439  symcode='[BDRT]'
13440  ;;
13441sco3.2v5*)
13442  symcode='[DT]'
13443  ;;
13444sysv4.2uw2*)
13445  symcode='[DT]'
13446  ;;
13447sysv5* | sco5v6* | unixware* | OpenUNIX*)
13448  symcode='[ABDT]'
13449  ;;
13450sysv4)
13451  symcode='[DFNSTU]'
13452  ;;
13453esac
13454
13455# Handle CRLF in mingw tool chain
13456opt_cr=
13457case $build_os in
13458mingw*)
13459  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13460  ;;
13461esac
13462
13463# If we're using GNU nm, then use its standard symbol codes.
13464case `$NM -V 2>&1` in
13465*GNU* | *'with BFD'*)
13466  symcode='[ABCDGIRSTW]' ;;
13467esac
13468
13469# Try without a prefix undercore, then with it.
13470for ac_symprfx in "" "_"; do
13471
13472  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13473  symxfrm="\\1 $ac_symprfx\\2 \\2"
13474
13475  # Write the raw and C identifiers.
13476  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13477
13478  # Check to see that the pipe works correctly.
13479  pipe_works=no
13480
13481  rm -f conftest*
13482  cat > conftest.$ac_ext <<EOF
13483#ifdef __cplusplus
13484extern "C" {
13485#endif
13486char nm_test_var;
13487void nm_test_func(){}
13488#ifdef __cplusplus
13489}
13490#endif
13491int main(){nm_test_var='a';nm_test_func();return(0);}
13492EOF
13493
13494  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13495  (eval $ac_compile) 2>&5
13496  ac_status=$?
13497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498  (exit $ac_status); }; then
13499    # Now try to grab the symbols.
13500    nlist=conftest.nm
13501    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13502  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13503  ac_status=$?
13504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505  (exit $ac_status); } && test -s "$nlist"; then
13506      # Try sorting and uniquifying the output.
13507      if sort "$nlist" | uniq > "$nlist"T; then
13508	mv -f "$nlist"T "$nlist"
13509      else
13510	rm -f "$nlist"T
13511      fi
13512
13513      # Make sure that we snagged all the symbols we need.
13514      if grep ' nm_test_var$' "$nlist" >/dev/null; then
13515	if grep ' nm_test_func$' "$nlist" >/dev/null; then
13516	  cat <<EOF > conftest.$ac_ext
13517#ifdef __cplusplus
13518extern "C" {
13519#endif
13520
13521EOF
13522	  # Now generate the symbol file.
13523	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13524
13525	  cat <<EOF >> conftest.$ac_ext
13526#if defined (__STDC__) && __STDC__
13527# define lt_ptr_t void *
13528#else
13529# define lt_ptr_t char *
13530# define const
13531#endif
13532
13533/* The mapping between symbol names and symbols. */
13534const struct {
13535  const char *name;
13536  lt_ptr_t address;
13537}
13538lt_preloaded_symbols[] =
13539{
13540EOF
13541	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13542	  cat <<\EOF >> conftest.$ac_ext
13543  {0, (lt_ptr_t) 0}
13544};
13545
13546#ifdef __cplusplus
13547}
13548#endif
13549EOF
13550	  # Now try linking the two files.
13551	  mv conftest.$ac_objext conftstm.$ac_objext
13552	  lt_save_LIBS="$LIBS"
13553	  lt_save_CFLAGS="$CFLAGS"
13554	  LIBS="conftstm.$ac_objext"
13555	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13556	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13557  (eval $ac_link) 2>&5
13558  ac_status=$?
13559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560  (exit $ac_status); } && test -s conftest${ac_exeext}; then
13561	    pipe_works=yes
13562	  fi
13563	  LIBS="$lt_save_LIBS"
13564	  CFLAGS="$lt_save_CFLAGS"
13565	else
13566	  echo "cannot find nm_test_func in $nlist" >&5
13567	fi
13568      else
13569	echo "cannot find nm_test_var in $nlist" >&5
13570      fi
13571    else
13572      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13573    fi
13574  else
13575    echo "$progname: failed program was:" >&5
13576    cat conftest.$ac_ext >&5
13577  fi
13578  rm -f conftest* conftst*
13579
13580  # Do not use the global_symbol_pipe unless it works.
13581  if test "$pipe_works" = yes; then
13582    break
13583  else
13584    lt_cv_sys_global_symbol_pipe=
13585  fi
13586done
13587
13588fi
13589
13590if test -z "$lt_cv_sys_global_symbol_pipe"; then
13591  lt_cv_sys_global_symbol_to_cdecl=
13592fi
13593if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13594  { echo "$as_me:$LINENO: result: failed" >&5
13595echo "${ECHO_T}failed" >&6; }
13596else
13597  { echo "$as_me:$LINENO: result: ok" >&5
13598echo "${ECHO_T}ok" >&6; }
13599fi
13600
13601{ echo "$as_me:$LINENO: checking for objdir" >&5
13602echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13603if test "${lt_cv_objdir+set}" = set; then
13604  echo $ECHO_N "(cached) $ECHO_C" >&6
13605else
13606  rm -f .libs 2>/dev/null
13607mkdir .libs 2>/dev/null
13608if test -d .libs; then
13609  lt_cv_objdir=.libs
13610else
13611  # MS-DOS does not allow filenames that begin with a dot.
13612  lt_cv_objdir=_libs
13613fi
13614rmdir .libs 2>/dev/null
13615fi
13616{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13617echo "${ECHO_T}$lt_cv_objdir" >&6; }
13618objdir=$lt_cv_objdir
13619
13620
13621
13622
13623
13624case $host_os in
13625aix3*)
13626  # AIX sometimes has problems with the GCC collect2 program.  For some
13627  # reason, if we set the COLLECT_NAMES environment variable, the problems
13628  # vanish in a puff of smoke.
13629  if test "X${COLLECT_NAMES+set}" != Xset; then
13630    COLLECT_NAMES=
13631    export COLLECT_NAMES
13632  fi
13633  ;;
13634esac
13635
13636# Sed substitution that helps us do robust quoting.  It backslashifies
13637# metacharacters that are still active within double-quoted strings.
13638Xsed='sed -e 1s/^X//'
13639sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13640
13641# Same as above, but do not quote variable references.
13642double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13643
13644# Sed substitution to delay expansion of an escaped shell variable in a
13645# double_quote_subst'ed string.
13646delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13647
13648# Sed substitution to avoid accidental globbing in evaled expressions
13649no_glob_subst='s/\*/\\\*/g'
13650
13651# Constants:
13652rm="rm -f"
13653
13654# Global variables:
13655default_ofile=mklib
13656can_build_shared=yes
13657
13658# All known linkers require a `.a' archive for static linking (except MSVC,
13659# which needs '.lib').
13660libext=a
13661ltmain="$ac_aux_dir/ltmain.sh"
13662ofile="$default_ofile"
13663with_gnu_ld="$lt_cv_prog_gnu_ld"
13664
13665if test -n "$ac_tool_prefix"; then
13666  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13667set dummy ${ac_tool_prefix}ar; ac_word=$2
13668{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13670if test "${ac_cv_prog_AR+set}" = set; then
13671  echo $ECHO_N "(cached) $ECHO_C" >&6
13672else
13673  if test -n "$AR"; then
13674  ac_cv_prog_AR="$AR" # Let the user override the test.
13675else
13676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13677for as_dir in $PATH
13678do
13679  IFS=$as_save_IFS
13680  test -z "$as_dir" && as_dir=.
13681  for ac_exec_ext in '' $ac_executable_extensions; do
13682  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13683    ac_cv_prog_AR="${ac_tool_prefix}ar"
13684    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13685    break 2
13686  fi
13687done
13688done
13689IFS=$as_save_IFS
13690
13691fi
13692fi
13693AR=$ac_cv_prog_AR
13694if test -n "$AR"; then
13695  { echo "$as_me:$LINENO: result: $AR" >&5
13696echo "${ECHO_T}$AR" >&6; }
13697else
13698  { echo "$as_me:$LINENO: result: no" >&5
13699echo "${ECHO_T}no" >&6; }
13700fi
13701
13702
13703fi
13704if test -z "$ac_cv_prog_AR"; then
13705  ac_ct_AR=$AR
13706  # Extract the first word of "ar", so it can be a program name with args.
13707set dummy ar; ac_word=$2
13708{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13710if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13711  echo $ECHO_N "(cached) $ECHO_C" >&6
13712else
13713  if test -n "$ac_ct_AR"; then
13714  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13715else
13716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13717for as_dir in $PATH
13718do
13719  IFS=$as_save_IFS
13720  test -z "$as_dir" && as_dir=.
13721  for ac_exec_ext in '' $ac_executable_extensions; do
13722  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13723    ac_cv_prog_ac_ct_AR="ar"
13724    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13725    break 2
13726  fi
13727done
13728done
13729IFS=$as_save_IFS
13730
13731fi
13732fi
13733ac_ct_AR=$ac_cv_prog_ac_ct_AR
13734if test -n "$ac_ct_AR"; then
13735  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13736echo "${ECHO_T}$ac_ct_AR" >&6; }
13737else
13738  { echo "$as_me:$LINENO: result: no" >&5
13739echo "${ECHO_T}no" >&6; }
13740fi
13741
13742  if test "x$ac_ct_AR" = x; then
13743    AR="false"
13744  else
13745    case $cross_compiling:$ac_tool_warned in
13746yes:)
13747{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13748whose name does not start with the host triplet.  If you think this
13749configuration is useful to you, please write to autoconf@gnu.org." >&5
13750echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13751whose name does not start with the host triplet.  If you think this
13752configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13753ac_tool_warned=yes ;;
13754esac
13755    AR=$ac_ct_AR
13756  fi
13757else
13758  AR="$ac_cv_prog_AR"
13759fi
13760
13761if test -n "$ac_tool_prefix"; then
13762  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13763set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13764{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13766if test "${ac_cv_prog_RANLIB+set}" = set; then
13767  echo $ECHO_N "(cached) $ECHO_C" >&6
13768else
13769  if test -n "$RANLIB"; then
13770  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13771else
13772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13773for as_dir in $PATH
13774do
13775  IFS=$as_save_IFS
13776  test -z "$as_dir" && as_dir=.
13777  for ac_exec_ext in '' $ac_executable_extensions; do
13778  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13779    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13780    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13781    break 2
13782  fi
13783done
13784done
13785IFS=$as_save_IFS
13786
13787fi
13788fi
13789RANLIB=$ac_cv_prog_RANLIB
13790if test -n "$RANLIB"; then
13791  { echo "$as_me:$LINENO: result: $RANLIB" >&5
13792echo "${ECHO_T}$RANLIB" >&6; }
13793else
13794  { echo "$as_me:$LINENO: result: no" >&5
13795echo "${ECHO_T}no" >&6; }
13796fi
13797
13798
13799fi
13800if test -z "$ac_cv_prog_RANLIB"; then
13801  ac_ct_RANLIB=$RANLIB
13802  # Extract the first word of "ranlib", so it can be a program name with args.
13803set dummy ranlib; ac_word=$2
13804{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13806if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13807  echo $ECHO_N "(cached) $ECHO_C" >&6
13808else
13809  if test -n "$ac_ct_RANLIB"; then
13810  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13811else
13812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13813for as_dir in $PATH
13814do
13815  IFS=$as_save_IFS
13816  test -z "$as_dir" && as_dir=.
13817  for ac_exec_ext in '' $ac_executable_extensions; do
13818  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13819    ac_cv_prog_ac_ct_RANLIB="ranlib"
13820    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13821    break 2
13822  fi
13823done
13824done
13825IFS=$as_save_IFS
13826
13827fi
13828fi
13829ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13830if test -n "$ac_ct_RANLIB"; then
13831  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13832echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13833else
13834  { echo "$as_me:$LINENO: result: no" >&5
13835echo "${ECHO_T}no" >&6; }
13836fi
13837
13838  if test "x$ac_ct_RANLIB" = x; then
13839    RANLIB=":"
13840  else
13841    case $cross_compiling:$ac_tool_warned in
13842yes:)
13843{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13844whose name does not start with the host triplet.  If you think this
13845configuration is useful to you, please write to autoconf@gnu.org." >&5
13846echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13847whose name does not start with the host triplet.  If you think this
13848configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13849ac_tool_warned=yes ;;
13850esac
13851    RANLIB=$ac_ct_RANLIB
13852  fi
13853else
13854  RANLIB="$ac_cv_prog_RANLIB"
13855fi
13856
13857if test -n "$ac_tool_prefix"; then
13858  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13859set dummy ${ac_tool_prefix}strip; ac_word=$2
13860{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13862if test "${ac_cv_prog_STRIP+set}" = set; then
13863  echo $ECHO_N "(cached) $ECHO_C" >&6
13864else
13865  if test -n "$STRIP"; then
13866  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13867else
13868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13869for as_dir in $PATH
13870do
13871  IFS=$as_save_IFS
13872  test -z "$as_dir" && as_dir=.
13873  for ac_exec_ext in '' $ac_executable_extensions; do
13874  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13875    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13876    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13877    break 2
13878  fi
13879done
13880done
13881IFS=$as_save_IFS
13882
13883fi
13884fi
13885STRIP=$ac_cv_prog_STRIP
13886if test -n "$STRIP"; then
13887  { echo "$as_me:$LINENO: result: $STRIP" >&5
13888echo "${ECHO_T}$STRIP" >&6; }
13889else
13890  { echo "$as_me:$LINENO: result: no" >&5
13891echo "${ECHO_T}no" >&6; }
13892fi
13893
13894
13895fi
13896if test -z "$ac_cv_prog_STRIP"; then
13897  ac_ct_STRIP=$STRIP
13898  # Extract the first word of "strip", so it can be a program name with args.
13899set dummy strip; ac_word=$2
13900{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13902if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13903  echo $ECHO_N "(cached) $ECHO_C" >&6
13904else
13905  if test -n "$ac_ct_STRIP"; then
13906  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13907else
13908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13909for as_dir in $PATH
13910do
13911  IFS=$as_save_IFS
13912  test -z "$as_dir" && as_dir=.
13913  for ac_exec_ext in '' $ac_executable_extensions; do
13914  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13915    ac_cv_prog_ac_ct_STRIP="strip"
13916    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13917    break 2
13918  fi
13919done
13920done
13921IFS=$as_save_IFS
13922
13923fi
13924fi
13925ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13926if test -n "$ac_ct_STRIP"; then
13927  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13928echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13929else
13930  { echo "$as_me:$LINENO: result: no" >&5
13931echo "${ECHO_T}no" >&6; }
13932fi
13933
13934  if test "x$ac_ct_STRIP" = x; then
13935    STRIP=":"
13936  else
13937    case $cross_compiling:$ac_tool_warned in
13938yes:)
13939{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13940whose name does not start with the host triplet.  If you think this
13941configuration is useful to you, please write to autoconf@gnu.org." >&5
13942echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13943whose name does not start with the host triplet.  If you think this
13944configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13945ac_tool_warned=yes ;;
13946esac
13947    STRIP=$ac_ct_STRIP
13948  fi
13949else
13950  STRIP="$ac_cv_prog_STRIP"
13951fi
13952
13953
13954old_CC="$CC"
13955old_CFLAGS="$CFLAGS"
13956
13957# Set sane defaults for various variables
13958test -z "$AR" && AR=ar
13959test -z "$AR_FLAGS" && AR_FLAGS=cru
13960test -z "$AS" && AS=as
13961test -z "$CC" && CC=cc
13962test -z "$LTCC" && LTCC=$CC
13963test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13964test -z "$DLLTOOL" && DLLTOOL=dlltool
13965test -z "$LD" && LD=ld
13966test -z "$LN_S" && LN_S="ln -s"
13967test -z "$MAGIC_CMD" && MAGIC_CMD=file
13968test -z "$NM" && NM=nm
13969test -z "$SED" && SED=sed
13970test -z "$OBJDUMP" && OBJDUMP=objdump
13971test -z "$RANLIB" && RANLIB=:
13972test -z "$STRIP" && STRIP=:
13973test -z "$ac_objext" && ac_objext=o
13974
13975# Determine commands to create old-style static archives.
13976old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13977old_postinstall_cmds='chmod 644 $oldlib'
13978old_postuninstall_cmds=
13979
13980if test -n "$RANLIB"; then
13981  case $host_os in
13982  openbsd*)
13983    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13984    ;;
13985  *)
13986    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13987    ;;
13988  esac
13989  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13990fi
13991
13992for cc_temp in $compiler""; do
13993  case $cc_temp in
13994    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13995    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13996    \-*) ;;
13997    *) break;;
13998  esac
13999done
14000cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14001
14002
14003# Only perform the check for file, if the check method requires it
14004case $deplibs_check_method in
14005file_magic*)
14006  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14007    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14008echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14009if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14010  echo $ECHO_N "(cached) $ECHO_C" >&6
14011else
14012  case $MAGIC_CMD in
14013[\\/*] |  ?:[\\/]*)
14014  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14015  ;;
14016*)
14017  lt_save_MAGIC_CMD="$MAGIC_CMD"
14018  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14019  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14020  for ac_dir in $ac_dummy; do
14021    IFS="$lt_save_ifs"
14022    test -z "$ac_dir" && ac_dir=.
14023    if test -f $ac_dir/${ac_tool_prefix}file; then
14024      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14025      if test -n "$file_magic_test_file"; then
14026	case $deplibs_check_method in
14027	"file_magic "*)
14028	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14029	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14030	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14031	    $EGREP "$file_magic_regex" > /dev/null; then
14032	    :
14033	  else
14034	    cat <<EOF 1>&2
14035
14036*** Warning: the command libtool uses to detect shared libraries,
14037*** $file_magic_cmd, produces output that libtool cannot recognize.
14038*** The result is that libtool may fail to recognize shared libraries
14039*** as such.  This will affect the creation of libtool libraries that
14040*** depend on shared libraries, but programs linked with such libtool
14041*** libraries will work regardless of this problem.  Nevertheless, you
14042*** may want to report the problem to your system manager and/or to
14043*** bug-libtool@gnu.org
14044
14045EOF
14046	  fi ;;
14047	esac
14048      fi
14049      break
14050    fi
14051  done
14052  IFS="$lt_save_ifs"
14053  MAGIC_CMD="$lt_save_MAGIC_CMD"
14054  ;;
14055esac
14056fi
14057
14058MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14059if test -n "$MAGIC_CMD"; then
14060  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14061echo "${ECHO_T}$MAGIC_CMD" >&6; }
14062else
14063  { echo "$as_me:$LINENO: result: no" >&5
14064echo "${ECHO_T}no" >&6; }
14065fi
14066
14067if test -z "$lt_cv_path_MAGIC_CMD"; then
14068  if test -n "$ac_tool_prefix"; then
14069    { echo "$as_me:$LINENO: checking for file" >&5
14070echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14071if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14072  echo $ECHO_N "(cached) $ECHO_C" >&6
14073else
14074  case $MAGIC_CMD in
14075[\\/*] |  ?:[\\/]*)
14076  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14077  ;;
14078*)
14079  lt_save_MAGIC_CMD="$MAGIC_CMD"
14080  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14081  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14082  for ac_dir in $ac_dummy; do
14083    IFS="$lt_save_ifs"
14084    test -z "$ac_dir" && ac_dir=.
14085    if test -f $ac_dir/file; then
14086      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14087      if test -n "$file_magic_test_file"; then
14088	case $deplibs_check_method in
14089	"file_magic "*)
14090	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14091	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14092	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14093	    $EGREP "$file_magic_regex" > /dev/null; then
14094	    :
14095	  else
14096	    cat <<EOF 1>&2
14097
14098*** Warning: the command libtool uses to detect shared libraries,
14099*** $file_magic_cmd, produces output that libtool cannot recognize.
14100*** The result is that libtool may fail to recognize shared libraries
14101*** as such.  This will affect the creation of libtool libraries that
14102*** depend on shared libraries, but programs linked with such libtool
14103*** libraries will work regardless of this problem.  Nevertheless, you
14104*** may want to report the problem to your system manager and/or to
14105*** bug-libtool@gnu.org
14106
14107EOF
14108	  fi ;;
14109	esac
14110      fi
14111      break
14112    fi
14113  done
14114  IFS="$lt_save_ifs"
14115  MAGIC_CMD="$lt_save_MAGIC_CMD"
14116  ;;
14117esac
14118fi
14119
14120MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14121if test -n "$MAGIC_CMD"; then
14122  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14123echo "${ECHO_T}$MAGIC_CMD" >&6; }
14124else
14125  { echo "$as_me:$LINENO: result: no" >&5
14126echo "${ECHO_T}no" >&6; }
14127fi
14128
14129  else
14130    MAGIC_CMD=:
14131  fi
14132fi
14133
14134  fi
14135  ;;
14136esac
14137
14138enable_dlopen=yes
14139enable_win32_dll=no
14140
14141# Check whether --enable-libtool-lock was given.
14142if test "${enable_libtool_lock+set}" = set; then
14143  enableval=$enable_libtool_lock;
14144fi
14145
14146test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14147
14148
14149# Check whether --with-pic was given.
14150if test "${with_pic+set}" = set; then
14151  withval=$with_pic; pic_mode="$withval"
14152else
14153  pic_mode=default
14154fi
14155
14156test -z "$pic_mode" && pic_mode=default
14157
14158# Use C for the default configuration in the libtool script
14159tagname=
14160lt_save_CC="$CC"
14161ac_ext=c
14162ac_cpp='$CPP $CPPFLAGS'
14163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14165ac_compiler_gnu=$ac_cv_c_compiler_gnu
14166
14167
14168# Source file extension for C test sources.
14169ac_ext=c
14170
14171# Object file extension for compiled C test sources.
14172objext=o
14173objext=$objext
14174
14175# Code to be used in simple compile tests
14176lt_simple_compile_test_code="int some_variable = 0;\n"
14177
14178# Code to be used in simple link tests
14179lt_simple_link_test_code='int main(){return(0);}\n'
14180
14181
14182# If no C compiler was specified, use CC.
14183LTCC=${LTCC-"$CC"}
14184
14185# If no C compiler flags were specified, use CFLAGS.
14186LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14187
14188# Allow CC to be a program name with arguments.
14189compiler=$CC
14190
14191
14192# save warnings/boilerplate of simple test code
14193ac_outfile=conftest.$ac_objext
14194printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14195eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14196_lt_compiler_boilerplate=`cat conftest.err`
14197$rm conftest*
14198
14199ac_outfile=conftest.$ac_objext
14200printf "$lt_simple_link_test_code" >conftest.$ac_ext
14201eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14202_lt_linker_boilerplate=`cat conftest.err`
14203$rm conftest*
14204
14205
14206
14207lt_prog_compiler_no_builtin_flag=
14208
14209if test "$GCC" = yes; then
14210  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14211
14212
14213{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14214echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14215if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14216  echo $ECHO_N "(cached) $ECHO_C" >&6
14217else
14218  lt_cv_prog_compiler_rtti_exceptions=no
14219  ac_outfile=conftest.$ac_objext
14220   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14221   lt_compiler_flag="-fno-rtti -fno-exceptions"
14222   # Insert the option either (1) after the last *FLAGS variable, or
14223   # (2) before a word containing "conftest.", or (3) at the end.
14224   # Note that $ac_compile itself does not contain backslashes and begins
14225   # with a dollar sign (not a hyphen), so the echo should work correctly.
14226   # The option is referenced via a variable to avoid confusing sed.
14227   lt_compile=`echo "$ac_compile" | $SED \
14228   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14229   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14230   -e 's:$: $lt_compiler_flag:'`
14231   (eval echo "\"\$as_me:14231: $lt_compile\"" >&5)
14232   (eval "$lt_compile" 2>conftest.err)
14233   ac_status=$?
14234   cat conftest.err >&5
14235   echo "$as_me:14235: \$? = $ac_status" >&5
14236   if (exit $ac_status) && test -s "$ac_outfile"; then
14237     # The compiler can only warn and ignore the option if not recognized
14238     # So say no if there are warnings other than the usual output.
14239     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14240     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14241     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14242       lt_cv_prog_compiler_rtti_exceptions=yes
14243     fi
14244   fi
14245   $rm conftest*
14246
14247fi
14248{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14249echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14250
14251if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14252    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14253else
14254    :
14255fi
14256
14257fi
14258
14259lt_prog_compiler_wl=
14260lt_prog_compiler_pic=
14261lt_prog_compiler_static=
14262
14263{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14264echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14265
14266  if test "$GCC" = yes; then
14267    lt_prog_compiler_wl='-Wl,'
14268    lt_prog_compiler_static='-static'
14269
14270    case $host_os in
14271      aix*)
14272      # All AIX code is PIC.
14273      if test "$host_cpu" = ia64; then
14274	# AIX 5 now supports IA64 processor
14275	lt_prog_compiler_static='-Bstatic'
14276      fi
14277      ;;
14278
14279    amigaos*)
14280      # FIXME: we need at least 68020 code to build shared libraries, but
14281      # adding the `-m68020' flag to GCC prevents building anything better,
14282      # like `-m68040'.
14283      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14284      ;;
14285
14286    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14287      # PIC is the default for these OSes.
14288      ;;
14289
14290    mingw* | pw32* | os2*)
14291      # This hack is so that the source file can tell whether it is being
14292      # built for inclusion in a dll (and should export symbols for example).
14293      lt_prog_compiler_pic='-DDLL_EXPORT'
14294      ;;
14295
14296    darwin* | rhapsody*)
14297      # PIC is the default on this platform
14298      # Common symbols not allowed in MH_DYLIB files
14299      lt_prog_compiler_pic='-fno-common'
14300      ;;
14301
14302    interix3*)
14303      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14304      # Instead, we relocate shared libraries at runtime.
14305      ;;
14306
14307    msdosdjgpp*)
14308      # Just because we use GCC doesn't mean we suddenly get shared libraries
14309      # on systems that don't support them.
14310      lt_prog_compiler_can_build_shared=no
14311      enable_shared=no
14312      ;;
14313
14314    sysv4*MP*)
14315      if test -d /usr/nec; then
14316	lt_prog_compiler_pic=-Kconform_pic
14317      fi
14318      ;;
14319
14320    hpux*)
14321      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14322      # not for PA HP-UX.
14323      case $host_cpu in
14324      hppa*64*|ia64*)
14325	# +Z the default
14326	;;
14327      *)
14328	lt_prog_compiler_pic='-fPIC'
14329	;;
14330      esac
14331      ;;
14332
14333    *)
14334      lt_prog_compiler_pic='-fPIC'
14335      ;;
14336    esac
14337  else
14338    # PORTME Check for flag to pass linker flags through the system compiler.
14339    case $host_os in
14340    aix*)
14341      lt_prog_compiler_wl='-Wl,'
14342      if test "$host_cpu" = ia64; then
14343	# AIX 5 now supports IA64 processor
14344	lt_prog_compiler_static='-Bstatic'
14345      else
14346	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14347      fi
14348      ;;
14349      darwin*)
14350        # PIC is the default on this platform
14351        # Common symbols not allowed in MH_DYLIB files
14352       case $cc_basename in
14353         xlc*)
14354         lt_prog_compiler_pic='-qnocommon'
14355         lt_prog_compiler_wl='-Wl,'
14356         ;;
14357       esac
14358       ;;
14359
14360    mingw* | pw32* | os2*)
14361      # This hack is so that the source file can tell whether it is being
14362      # built for inclusion in a dll (and should export symbols for example).
14363      lt_prog_compiler_pic='-DDLL_EXPORT'
14364      ;;
14365
14366    hpux9* | hpux10* | hpux11*)
14367      lt_prog_compiler_wl='-Wl,'
14368      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14369      # not for PA HP-UX.
14370      case $host_cpu in
14371      hppa*64*|ia64*)
14372	# +Z the default
14373	;;
14374      *)
14375	lt_prog_compiler_pic='+Z'
14376	;;
14377      esac
14378      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14379      lt_prog_compiler_static='${wl}-a ${wl}archive'
14380      ;;
14381
14382    irix5* | irix6* | nonstopux*)
14383      lt_prog_compiler_wl='-Wl,'
14384      # PIC (with -KPIC) is the default.
14385      lt_prog_compiler_static='-non_shared'
14386      ;;
14387
14388    newsos6)
14389      lt_prog_compiler_pic='-KPIC'
14390      lt_prog_compiler_static='-Bstatic'
14391      ;;
14392
14393    linux*)
14394      case $cc_basename in
14395      icc* | ecc*)
14396	lt_prog_compiler_wl='-Wl,'
14397	lt_prog_compiler_pic='-KPIC'
14398	lt_prog_compiler_static='-static'
14399        ;;
14400      pgcc* | pgf77* | pgf90* | pgf95*)
14401        # Portland Group compilers (*not* the Pentium gcc compiler,
14402	# which looks to be a dead project)
14403	lt_prog_compiler_wl='-Wl,'
14404	lt_prog_compiler_pic='-fpic'
14405	lt_prog_compiler_static='-Bstatic'
14406        ;;
14407      ccc*)
14408        lt_prog_compiler_wl='-Wl,'
14409        # All Alpha code is PIC.
14410        lt_prog_compiler_static='-non_shared'
14411        ;;
14412      esac
14413      ;;
14414
14415    osf3* | osf4* | osf5*)
14416      lt_prog_compiler_wl='-Wl,'
14417      # All OSF/1 code is PIC.
14418      lt_prog_compiler_static='-non_shared'
14419      ;;
14420
14421    solaris*)
14422      lt_prog_compiler_pic='-KPIC'
14423      lt_prog_compiler_static='-Bstatic'
14424      case $cc_basename in
14425      f77* | f90* | f95*)
14426	lt_prog_compiler_wl='-Qoption ld ';;
14427      *)
14428	lt_prog_compiler_wl='-Wl,';;
14429      esac
14430      ;;
14431
14432    sunos4*)
14433      lt_prog_compiler_wl='-Qoption ld '
14434      lt_prog_compiler_pic='-PIC'
14435      lt_prog_compiler_static='-Bstatic'
14436      ;;
14437
14438    sysv4 | sysv4.2uw2* | sysv4.3*)
14439      lt_prog_compiler_wl='-Wl,'
14440      lt_prog_compiler_pic='-KPIC'
14441      lt_prog_compiler_static='-Bstatic'
14442      ;;
14443
14444    sysv4*MP*)
14445      if test -d /usr/nec ;then
14446	lt_prog_compiler_pic='-Kconform_pic'
14447	lt_prog_compiler_static='-Bstatic'
14448      fi
14449      ;;
14450
14451    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14452      lt_prog_compiler_wl='-Wl,'
14453      lt_prog_compiler_pic='-KPIC'
14454      lt_prog_compiler_static='-Bstatic'
14455      ;;
14456
14457    unicos*)
14458      lt_prog_compiler_wl='-Wl,'
14459      lt_prog_compiler_can_build_shared=no
14460      ;;
14461
14462    uts4*)
14463      lt_prog_compiler_pic='-pic'
14464      lt_prog_compiler_static='-Bstatic'
14465      ;;
14466
14467    *)
14468      lt_prog_compiler_can_build_shared=no
14469      ;;
14470    esac
14471  fi
14472
14473{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14474echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14475
14476#
14477# Check to make sure the PIC flag actually works.
14478#
14479if test -n "$lt_prog_compiler_pic"; then
14480
14481{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14482echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14483if test "${lt_prog_compiler_pic_works+set}" = set; then
14484  echo $ECHO_N "(cached) $ECHO_C" >&6
14485else
14486  lt_prog_compiler_pic_works=no
14487  ac_outfile=conftest.$ac_objext
14488   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14489   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14490   # Insert the option either (1) after the last *FLAGS variable, or
14491   # (2) before a word containing "conftest.", or (3) at the end.
14492   # Note that $ac_compile itself does not contain backslashes and begins
14493   # with a dollar sign (not a hyphen), so the echo should work correctly.
14494   # The option is referenced via a variable to avoid confusing sed.
14495   lt_compile=`echo "$ac_compile" | $SED \
14496   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14497   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14498   -e 's:$: $lt_compiler_flag:'`
14499   (eval echo "\"\$as_me:14499: $lt_compile\"" >&5)
14500   (eval "$lt_compile" 2>conftest.err)
14501   ac_status=$?
14502   cat conftest.err >&5
14503   echo "$as_me:14503: \$? = $ac_status" >&5
14504   if (exit $ac_status) && test -s "$ac_outfile"; then
14505     # The compiler can only warn and ignore the option if not recognized
14506     # So say no if there are warnings other than the usual output.
14507     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14508     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14509     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14510       lt_prog_compiler_pic_works=yes
14511     fi
14512   fi
14513   $rm conftest*
14514
14515fi
14516{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14517echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14518
14519if test x"$lt_prog_compiler_pic_works" = xyes; then
14520    case $lt_prog_compiler_pic in
14521     "" | " "*) ;;
14522     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14523     esac
14524else
14525    lt_prog_compiler_pic=
14526     lt_prog_compiler_can_build_shared=no
14527fi
14528
14529fi
14530case $host_os in
14531  # For platforms which do not support PIC, -DPIC is meaningless:
14532  *djgpp*)
14533    lt_prog_compiler_pic=
14534    ;;
14535  *)
14536    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14537    ;;
14538esac
14539
14540#
14541# Check to make sure the static flag actually works.
14542#
14543wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14544{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14545echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14546if test "${lt_prog_compiler_static_works+set}" = set; then
14547  echo $ECHO_N "(cached) $ECHO_C" >&6
14548else
14549  lt_prog_compiler_static_works=no
14550   save_LDFLAGS="$LDFLAGS"
14551   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14552   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14553   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14554     # The linker can only warn and ignore the option if not recognized
14555     # So say no if there are warnings
14556     if test -s conftest.err; then
14557       # Append any errors to the config.log.
14558       cat conftest.err 1>&5
14559       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14560       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14561       if diff conftest.exp conftest.er2 >/dev/null; then
14562         lt_prog_compiler_static_works=yes
14563       fi
14564     else
14565       lt_prog_compiler_static_works=yes
14566     fi
14567   fi
14568   $rm conftest*
14569   LDFLAGS="$save_LDFLAGS"
14570
14571fi
14572{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14573echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14574
14575if test x"$lt_prog_compiler_static_works" = xyes; then
14576    :
14577else
14578    lt_prog_compiler_static=
14579fi
14580
14581
14582{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14583echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14584if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14585  echo $ECHO_N "(cached) $ECHO_C" >&6
14586else
14587  lt_cv_prog_compiler_c_o=no
14588   $rm -r conftest 2>/dev/null
14589   mkdir conftest
14590   cd conftest
14591   mkdir out
14592   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14593
14594   lt_compiler_flag="-o out/conftest2.$ac_objext"
14595   # Insert the option either (1) after the last *FLAGS variable, or
14596   # (2) before a word containing "conftest.", or (3) at the end.
14597   # Note that $ac_compile itself does not contain backslashes and begins
14598   # with a dollar sign (not a hyphen), so the echo should work correctly.
14599   lt_compile=`echo "$ac_compile" | $SED \
14600   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14601   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14602   -e 's:$: $lt_compiler_flag:'`
14603   (eval echo "\"\$as_me:14603: $lt_compile\"" >&5)
14604   (eval "$lt_compile" 2>out/conftest.err)
14605   ac_status=$?
14606   cat out/conftest.err >&5
14607   echo "$as_me:14607: \$? = $ac_status" >&5
14608   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14609   then
14610     # The compiler can only warn and ignore the option if not recognized
14611     # So say no if there are warnings
14612     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14613     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14614     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14615       lt_cv_prog_compiler_c_o=yes
14616     fi
14617   fi
14618   chmod u+w . 2>&5
14619   $rm conftest*
14620   # SGI C++ compiler will create directory out/ii_files/ for
14621   # template instantiation
14622   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14623   $rm out/* && rmdir out
14624   cd ..
14625   rmdir conftest
14626   $rm conftest*
14627
14628fi
14629{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14630echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14631
14632
14633hard_links="nottested"
14634if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14635  # do not overwrite the value of need_locks provided by the user
14636  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14637echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14638  hard_links=yes
14639  $rm conftest*
14640  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14641  touch conftest.a
14642  ln conftest.a conftest.b 2>&5 || hard_links=no
14643  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14644  { echo "$as_me:$LINENO: result: $hard_links" >&5
14645echo "${ECHO_T}$hard_links" >&6; }
14646  if test "$hard_links" = no; then
14647    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14648echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14649    need_locks=warn
14650  fi
14651else
14652  need_locks=no
14653fi
14654
14655{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14656echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14657
14658  runpath_var=
14659  allow_undefined_flag=
14660  enable_shared_with_static_runtimes=no
14661  archive_cmds=
14662  archive_expsym_cmds=
14663  old_archive_From_new_cmds=
14664  old_archive_from_expsyms_cmds=
14665  export_dynamic_flag_spec=
14666  whole_archive_flag_spec=
14667  thread_safe_flag_spec=
14668  hardcode_libdir_flag_spec=
14669  hardcode_libdir_flag_spec_ld=
14670  hardcode_libdir_separator=
14671  hardcode_direct=no
14672  hardcode_minus_L=no
14673  hardcode_shlibpath_var=unsupported
14674  link_all_deplibs=unknown
14675  hardcode_automatic=no
14676  module_cmds=
14677  module_expsym_cmds=
14678  always_export_symbols=no
14679  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14680  # include_expsyms should be a list of space-separated symbols to be *always*
14681  # included in the symbol list
14682  include_expsyms=
14683  # exclude_expsyms can be an extended regexp of symbols to exclude
14684  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14685  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14686  # as well as any symbol that contains `d'.
14687  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14688  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14689  # platforms (ab)use it in PIC code, but their linkers get confused if
14690  # the symbol is explicitly referenced.  Since portable code cannot
14691  # rely on this symbol name, it's probably fine to never include it in
14692  # preloaded symbol tables.
14693  extract_expsyms_cmds=
14694  # Just being paranoid about ensuring that cc_basename is set.
14695  for cc_temp in $compiler""; do
14696  case $cc_temp in
14697    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14698    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14699    \-*) ;;
14700    *) break;;
14701  esac
14702done
14703cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14704
14705  case $host_os in
14706  cygwin* | mingw* | pw32*)
14707    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14708    # When not using gcc, we currently assume that we are using
14709    # Microsoft Visual C++.
14710    if test "$GCC" != yes; then
14711      with_gnu_ld=no
14712    fi
14713    ;;
14714  interix*)
14715    # we just hope/assume this is gcc and not c89 (= MSVC++)
14716    with_gnu_ld=yes
14717    ;;
14718  openbsd*)
14719    with_gnu_ld=no
14720    ;;
14721  esac
14722
14723  ld_shlibs=yes
14724  if test "$with_gnu_ld" = yes; then
14725    # If archive_cmds runs LD, not CC, wlarc should be empty
14726    wlarc='${wl}'
14727
14728    # Set some defaults for GNU ld with shared library support. These
14729    # are reset later if shared libraries are not supported. Putting them
14730    # here allows them to be overridden if necessary.
14731    runpath_var=LD_RUN_PATH
14732    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14733    export_dynamic_flag_spec='${wl}--export-dynamic'
14734    # ancient GNU ld didn't support --whole-archive et. al.
14735    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14736	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14737      else
14738  	whole_archive_flag_spec=
14739    fi
14740    supports_anon_versioning=no
14741    case `$LD -v 2>/dev/null` in
14742      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14743      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14744      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14745      *\ 2.11.*) ;; # other 2.11 versions
14746      *) supports_anon_versioning=yes ;;
14747    esac
14748
14749    # See if GNU ld supports shared libraries.
14750    case $host_os in
14751    aix3* | aix4* | aix5*)
14752      # On AIX/PPC, the GNU linker is very broken
14753      if test "$host_cpu" != ia64; then
14754	ld_shlibs=no
14755	cat <<EOF 1>&2
14756
14757*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14758*** to be unable to reliably create shared libraries on AIX.
14759*** Therefore, libtool is disabling shared libraries support.  If you
14760*** really care for shared libraries, you may want to modify your PATH
14761*** so that a non-GNU linker is found, and then restart.
14762
14763EOF
14764      fi
14765      ;;
14766
14767    amigaos*)
14768      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)'
14769      hardcode_libdir_flag_spec='-L$libdir'
14770      hardcode_minus_L=yes
14771
14772      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14773      # that the semantics of dynamic libraries on AmigaOS, at least up
14774      # to version 4, is to share data among multiple programs linked
14775      # with the same dynamic library.  Since this doesn't match the
14776      # behavior of shared libraries on other platforms, we can't use
14777      # them.
14778      ld_shlibs=no
14779      ;;
14780
14781    beos*)
14782      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14783	allow_undefined_flag=unsupported
14784	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14785	# support --undefined.  This deserves some investigation.  FIXME
14786	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14787      else
14788	ld_shlibs=no
14789      fi
14790      ;;
14791
14792    cygwin* | mingw* | pw32*)
14793      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14794      # as there is no search path for DLLs.
14795      hardcode_libdir_flag_spec='-L$libdir'
14796      allow_undefined_flag=unsupported
14797      always_export_symbols=no
14798      enable_shared_with_static_runtimes=yes
14799      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14800
14801      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14802        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14803	# If the export-symbols file already is a .def file (1st line
14804	# is EXPORTS), use it as is; otherwise, prepend...
14805	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14806	  cp $export_symbols $output_objdir/$soname.def;
14807	else
14808	  echo EXPORTS > $output_objdir/$soname.def;
14809	  cat $export_symbols >> $output_objdir/$soname.def;
14810	fi~
14811	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14812      else
14813	ld_shlibs=no
14814      fi
14815      ;;
14816
14817    interix3*)
14818      hardcode_direct=no
14819      hardcode_shlibpath_var=no
14820      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14821      export_dynamic_flag_spec='${wl}-E'
14822      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14823      # Instead, shared libraries are loaded at an image base (0x10000000 by
14824      # default) and relocated if they conflict, which is a slow very memory
14825      # consuming and fragmenting process.  To avoid this, we pick a random,
14826      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14827      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14828      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14829      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'
14830      ;;
14831
14832    linux*)
14833      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14834	tmp_addflag=
14835	case $cc_basename,$host_cpu in
14836	pgcc*)				# Portland Group C compiler
14837	  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'
14838	  tmp_addflag=' $pic_flag'
14839	  ;;
14840	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14841	  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'
14842	  tmp_addflag=' $pic_flag -Mnomain' ;;
14843	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14844	  tmp_addflag=' -i_dynamic' ;;
14845	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14846	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14847	ifc* | ifort*)			# Intel Fortran compiler
14848	  tmp_addflag=' -nofor_main' ;;
14849	esac
14850	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14851
14852	if test $supports_anon_versioning = yes; then
14853	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14854  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14855  $echo "local: *; };" >> $output_objdir/$libname.ver~
14856	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14857	fi
14858      else
14859	ld_shlibs=no
14860      fi
14861      ;;
14862
14863    netbsd*)
14864      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14865	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14866	wlarc=
14867      else
14868	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14869	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14870      fi
14871      ;;
14872
14873    solaris*)
14874      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14875	ld_shlibs=no
14876	cat <<EOF 1>&2
14877
14878*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14879*** create shared libraries on Solaris systems.  Therefore, libtool
14880*** is disabling shared libraries support.  We urge you to upgrade GNU
14881*** binutils to release 2.9.1 or newer.  Another option is to modify
14882*** your PATH or compiler configuration so that the native linker is
14883*** used, and then restart.
14884
14885EOF
14886      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14887	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14888	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14889      else
14890	ld_shlibs=no
14891      fi
14892      ;;
14893
14894    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14895      case `$LD -v 2>&1` in
14896        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14897	ld_shlibs=no
14898	cat <<_LT_EOF 1>&2
14899
14900*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14901*** reliably create shared libraries on SCO systems.  Therefore, libtool
14902*** is disabling shared libraries support.  We urge you to upgrade GNU
14903*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14904*** your PATH or compiler configuration so that the native linker is
14905*** used, and then restart.
14906
14907_LT_EOF
14908	;;
14909	*)
14910	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14911	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14912	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14913	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14914	  else
14915	    ld_shlibs=no
14916	  fi
14917	;;
14918      esac
14919      ;;
14920
14921    sunos4*)
14922      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14923      wlarc=
14924      hardcode_direct=yes
14925      hardcode_shlibpath_var=no
14926      ;;
14927
14928    *)
14929      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14930	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14931	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14932      else
14933	ld_shlibs=no
14934      fi
14935      ;;
14936    esac
14937
14938    if test "$ld_shlibs" = no; then
14939      runpath_var=
14940      hardcode_libdir_flag_spec=
14941      export_dynamic_flag_spec=
14942      whole_archive_flag_spec=
14943    fi
14944  else
14945    # PORTME fill in a description of your system's linker (not GNU ld)
14946    case $host_os in
14947    aix3*)
14948      allow_undefined_flag=unsupported
14949      always_export_symbols=yes
14950      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'
14951      # Note: this linker hardcodes the directories in LIBPATH if there
14952      # are no directories specified by -L.
14953      hardcode_minus_L=yes
14954      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14955	# Neither direct hardcoding nor static linking is supported with a
14956	# broken collect2.
14957	hardcode_direct=unsupported
14958      fi
14959      ;;
14960
14961    aix4* | aix5*)
14962      if test "$host_cpu" = ia64; then
14963	# On IA64, the linker does run time linking by default, so we don't
14964	# have to do anything special.
14965	aix_use_runtimelinking=no
14966	exp_sym_flag='-Bexport'
14967	no_entry_flag=""
14968      else
14969	# If we're using GNU nm, then we don't want the "-C" option.
14970	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14971	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14972	  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'
14973	else
14974	  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'
14975	fi
14976	aix_use_runtimelinking=no
14977
14978	# Test if we are trying to use run time linking or normal
14979	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14980	# need to do runtime linking.
14981	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14982	  for ld_flag in $LDFLAGS; do
14983  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14984  	    aix_use_runtimelinking=yes
14985  	    break
14986  	  fi
14987	  done
14988	  ;;
14989	esac
14990
14991	exp_sym_flag='-bexport'
14992	no_entry_flag='-bnoentry'
14993      fi
14994
14995      # When large executables or shared objects are built, AIX ld can
14996      # have problems creating the table of contents.  If linking a library
14997      # or program results in "error TOC overflow" add -mminimal-toc to
14998      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14999      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15000
15001      archive_cmds=''
15002      hardcode_direct=yes
15003      hardcode_libdir_separator=':'
15004      link_all_deplibs=yes
15005
15006      if test "$GCC" = yes; then
15007	case $host_os in aix4.[012]|aix4.[012].*)
15008	# We only want to do this on AIX 4.2 and lower, the check
15009	# below for broken collect2 doesn't work under 4.3+
15010	  collect2name=`${CC} -print-prog-name=collect2`
15011	  if test -f "$collect2name" && \
15012  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15013	  then
15014  	  # We have reworked collect2
15015  	  hardcode_direct=yes
15016	  else
15017  	  # We have old collect2
15018  	  hardcode_direct=unsupported
15019  	  # It fails to find uninstalled libraries when the uninstalled
15020  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15021  	  # to unsupported forces relinking
15022  	  hardcode_minus_L=yes
15023  	  hardcode_libdir_flag_spec='-L$libdir'
15024  	  hardcode_libdir_separator=
15025	  fi
15026	  ;;
15027	esac
15028	shared_flag='-shared'
15029	if test "$aix_use_runtimelinking" = yes; then
15030	  shared_flag="$shared_flag "'${wl}-G'
15031	fi
15032      else
15033	# not using gcc
15034	if test "$host_cpu" = ia64; then
15035  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15036  	# chokes on -Wl,-G. The following line is correct:
15037	  shared_flag='-G'
15038	else
15039	  if test "$aix_use_runtimelinking" = yes; then
15040	    shared_flag='${wl}-G'
15041	  else
15042	    shared_flag='${wl}-bM:SRE'
15043	  fi
15044	fi
15045      fi
15046
15047      # It seems that -bexpall does not export symbols beginning with
15048      # underscore (_), so it is better to generate a list of symbols to export.
15049      always_export_symbols=yes
15050      if test "$aix_use_runtimelinking" = yes; then
15051	# Warning - without using the other runtime loading flags (-brtl),
15052	# -berok will link without error, but may produce a broken library.
15053	allow_undefined_flag='-berok'
15054       # Determine the default libpath from the value encoded in an empty executable.
15055       cat >conftest.$ac_ext <<_ACEOF
15056/* confdefs.h.  */
15057_ACEOF
15058cat confdefs.h >>conftest.$ac_ext
15059cat >>conftest.$ac_ext <<_ACEOF
15060/* end confdefs.h.  */
15061
15062int
15063main ()
15064{
15065
15066  ;
15067  return 0;
15068}
15069_ACEOF
15070rm -f conftest.$ac_objext conftest$ac_exeext
15071if { (ac_try="$ac_link"
15072case "(($ac_try" in
15073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15074  *) ac_try_echo=$ac_try;;
15075esac
15076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15077  (eval "$ac_link") 2>conftest.er1
15078  ac_status=$?
15079  grep -v '^ *+' conftest.er1 >conftest.err
15080  rm -f conftest.er1
15081  cat conftest.err >&5
15082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083  (exit $ac_status); } &&
15084	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15085  { (case "(($ac_try" in
15086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15087  *) ac_try_echo=$ac_try;;
15088esac
15089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15090  (eval "$ac_try") 2>&5
15091  ac_status=$?
15092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093  (exit $ac_status); }; } &&
15094	 { ac_try='test -s conftest$ac_exeext'
15095  { (case "(($ac_try" in
15096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097  *) ac_try_echo=$ac_try;;
15098esac
15099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100  (eval "$ac_try") 2>&5
15101  ac_status=$?
15102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103  (exit $ac_status); }; }; then
15104
15105aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15106}'`
15107# Check for a 64-bit object if we didn't find anything.
15108if 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; }
15109}'`; fi
15110else
15111  echo "$as_me: failed program was:" >&5
15112sed 's/^/| /' conftest.$ac_ext >&5
15113
15114
15115fi
15116
15117rm -f core conftest.err conftest.$ac_objext \
15118      conftest$ac_exeext conftest.$ac_ext
15119if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15120
15121       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15122	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"
15123       else
15124	if test "$host_cpu" = ia64; then
15125	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15126	  allow_undefined_flag="-z nodefs"
15127	  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"
15128	else
15129	 # Determine the default libpath from the value encoded in an empty executable.
15130	 cat >conftest.$ac_ext <<_ACEOF
15131/* confdefs.h.  */
15132_ACEOF
15133cat confdefs.h >>conftest.$ac_ext
15134cat >>conftest.$ac_ext <<_ACEOF
15135/* end confdefs.h.  */
15136
15137int
15138main ()
15139{
15140
15141  ;
15142  return 0;
15143}
15144_ACEOF
15145rm -f conftest.$ac_objext conftest$ac_exeext
15146if { (ac_try="$ac_link"
15147case "(($ac_try" in
15148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149  *) ac_try_echo=$ac_try;;
15150esac
15151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15152  (eval "$ac_link") 2>conftest.er1
15153  ac_status=$?
15154  grep -v '^ *+' conftest.er1 >conftest.err
15155  rm -f conftest.er1
15156  cat conftest.err >&5
15157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158  (exit $ac_status); } &&
15159	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15160  { (case "(($ac_try" in
15161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15162  *) ac_try_echo=$ac_try;;
15163esac
15164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15165  (eval "$ac_try") 2>&5
15166  ac_status=$?
15167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168  (exit $ac_status); }; } &&
15169	 { ac_try='test -s conftest$ac_exeext'
15170  { (case "(($ac_try" in
15171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15172  *) ac_try_echo=$ac_try;;
15173esac
15174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15175  (eval "$ac_try") 2>&5
15176  ac_status=$?
15177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178  (exit $ac_status); }; }; then
15179
15180aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15181}'`
15182# Check for a 64-bit object if we didn't find anything.
15183if 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; }
15184}'`; fi
15185else
15186  echo "$as_me: failed program was:" >&5
15187sed 's/^/| /' conftest.$ac_ext >&5
15188
15189
15190fi
15191
15192rm -f core conftest.err conftest.$ac_objext \
15193      conftest$ac_exeext conftest.$ac_ext
15194if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15195
15196	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15197	  # Warning - without using the other run time loading flags,
15198	  # -berok will link without error, but may produce a broken library.
15199	  no_undefined_flag=' ${wl}-bernotok'
15200	  allow_undefined_flag=' ${wl}-berok'
15201	  # Exported symbols can be pulled into shared objects from archives
15202	  whole_archive_flag_spec='$convenience'
15203	  archive_cmds_need_lc=yes
15204	  # This is similar to how AIX traditionally builds its shared libraries.
15205	  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'
15206	fi
15207      fi
15208      ;;
15209
15210    amigaos*)
15211      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)'
15212      hardcode_libdir_flag_spec='-L$libdir'
15213      hardcode_minus_L=yes
15214      # see comment about different semantics on the GNU ld section
15215      ld_shlibs=no
15216      ;;
15217
15218    bsdi[45]*)
15219      export_dynamic_flag_spec=-rdynamic
15220      ;;
15221
15222    cygwin* | mingw* | pw32*)
15223      # When not using gcc, we currently assume that we are using
15224      # Microsoft Visual C++.
15225      # hardcode_libdir_flag_spec is actually meaningless, as there is
15226      # no search path for DLLs.
15227      hardcode_libdir_flag_spec=' '
15228      allow_undefined_flag=unsupported
15229      # Tell ltmain to make .lib files, not .a files.
15230      libext=lib
15231      # Tell ltmain to make .dll files, not .so files.
15232      shrext_cmds=".dll"
15233      # FIXME: Setting linknames here is a bad hack.
15234      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15235      # The linker will automatically build a .lib file if we build a DLL.
15236      old_archive_From_new_cmds='true'
15237      # FIXME: Should let the user specify the lib program.
15238      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15239      fix_srcfile_path='`cygpath -w "$srcfile"`'
15240      enable_shared_with_static_runtimes=yes
15241      ;;
15242
15243    darwin* | rhapsody*)
15244      case $host_os in
15245        rhapsody* | darwin1.[012])
15246         allow_undefined_flag='${wl}-undefined ${wl}suppress'
15247         ;;
15248       *) # Darwin 1.3 on
15249         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15250           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15251         else
15252           case ${MACOSX_DEPLOYMENT_TARGET} in
15253             10.[012])
15254               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15255               ;;
15256             10.*)
15257               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15258               ;;
15259           esac
15260         fi
15261         ;;
15262      esac
15263      archive_cmds_need_lc=no
15264      hardcode_direct=no
15265      hardcode_automatic=yes
15266      hardcode_shlibpath_var=unsupported
15267      whole_archive_flag_spec=''
15268      link_all_deplibs=yes
15269    if test "$GCC" = yes ; then
15270    	output_verbose_link_cmd='echo'
15271        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15272      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15273      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15274      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}'
15275      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}'
15276    else
15277      case $cc_basename in
15278        xlc*)
15279         output_verbose_link_cmd='echo'
15280         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15281         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15282          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15283         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}'
15284          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}'
15285          ;;
15286       *)
15287         ld_shlibs=no
15288          ;;
15289      esac
15290    fi
15291      ;;
15292
15293    dgux*)
15294      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15295      hardcode_libdir_flag_spec='-L$libdir'
15296      hardcode_shlibpath_var=no
15297      ;;
15298
15299    freebsd1*)
15300      ld_shlibs=no
15301      ;;
15302
15303    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15304    # support.  Future versions do this automatically, but an explicit c++rt0.o
15305    # does not break anything, and helps significantly (at the cost of a little
15306    # extra space).
15307    freebsd2.2*)
15308      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15309      hardcode_libdir_flag_spec='-R$libdir'
15310      hardcode_direct=yes
15311      hardcode_shlibpath_var=no
15312      ;;
15313
15314    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15315    freebsd2*)
15316      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15317      hardcode_direct=yes
15318      hardcode_minus_L=yes
15319      hardcode_shlibpath_var=no
15320      ;;
15321
15322    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15323    freebsd* | kfreebsd*-gnu | dragonfly*)
15324      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15325      hardcode_libdir_flag_spec='-R$libdir'
15326      hardcode_direct=yes
15327      hardcode_shlibpath_var=no
15328      ;;
15329
15330    hpux9*)
15331      if test "$GCC" = yes; then
15332	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'
15333      else
15334	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'
15335      fi
15336      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15337      hardcode_libdir_separator=:
15338      hardcode_direct=yes
15339
15340      # hardcode_minus_L: Not really in the search PATH,
15341      # but as the default location of the library.
15342      hardcode_minus_L=yes
15343      export_dynamic_flag_spec='${wl}-E'
15344      ;;
15345
15346    hpux10*)
15347      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15348	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15349      else
15350	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15351      fi
15352      if test "$with_gnu_ld" = no; then
15353	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15354	hardcode_libdir_separator=:
15355
15356	hardcode_direct=yes
15357	export_dynamic_flag_spec='${wl}-E'
15358
15359	# hardcode_minus_L: Not really in the search PATH,
15360	# but as the default location of the library.
15361	hardcode_minus_L=yes
15362      fi
15363      ;;
15364
15365    hpux11*)
15366      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15367	case $host_cpu in
15368	hppa*64*)
15369	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15370	  ;;
15371	ia64*)
15372	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15373	  ;;
15374	*)
15375	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15376	  ;;
15377	esac
15378      else
15379	case $host_cpu in
15380	hppa*64*)
15381	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15382	  ;;
15383	ia64*)
15384	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15385	  ;;
15386	*)
15387	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15388	  ;;
15389	esac
15390      fi
15391      if test "$with_gnu_ld" = no; then
15392	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15393	hardcode_libdir_separator=:
15394
15395	case $host_cpu in
15396	hppa*64*|ia64*)
15397	  hardcode_libdir_flag_spec_ld='+b $libdir'
15398	  hardcode_direct=no
15399	  hardcode_shlibpath_var=no
15400	  ;;
15401	*)
15402	  hardcode_direct=yes
15403	  export_dynamic_flag_spec='${wl}-E'
15404
15405	  # hardcode_minus_L: Not really in the search PATH,
15406	  # but as the default location of the library.
15407	  hardcode_minus_L=yes
15408	  ;;
15409	esac
15410      fi
15411      ;;
15412
15413    irix5* | irix6* | nonstopux*)
15414      if test "$GCC" = yes; then
15415	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'
15416      else
15417	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'
15418	hardcode_libdir_flag_spec_ld='-rpath $libdir'
15419      fi
15420      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15421      hardcode_libdir_separator=:
15422      link_all_deplibs=yes
15423      ;;
15424
15425    netbsd*)
15426      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15427	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15428      else
15429	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15430      fi
15431      hardcode_libdir_flag_spec='-R$libdir'
15432      hardcode_direct=yes
15433      hardcode_shlibpath_var=no
15434      ;;
15435
15436    newsos6)
15437      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15438      hardcode_direct=yes
15439      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15440      hardcode_libdir_separator=:
15441      hardcode_shlibpath_var=no
15442      ;;
15443
15444    openbsd*)
15445      hardcode_direct=yes
15446      hardcode_shlibpath_var=no
15447      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15448	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15449	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15450	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15451	export_dynamic_flag_spec='${wl}-E'
15452      else
15453       case $host_os in
15454	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15455	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15456	   hardcode_libdir_flag_spec='-R$libdir'
15457	   ;;
15458	 *)
15459	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15460	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15461	   ;;
15462       esac
15463      fi
15464      ;;
15465
15466    os2*)
15467      hardcode_libdir_flag_spec='-L$libdir'
15468      hardcode_minus_L=yes
15469      allow_undefined_flag=unsupported
15470      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'
15471      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15472      ;;
15473
15474    osf3*)
15475      if test "$GCC" = yes; then
15476	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15477	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'
15478      else
15479	allow_undefined_flag=' -expect_unresolved \*'
15480	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'
15481      fi
15482      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15483      hardcode_libdir_separator=:
15484      ;;
15485
15486    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15487      if test "$GCC" = yes; then
15488	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15489	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'
15490	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15491      else
15492	allow_undefined_flag=' -expect_unresolved \*'
15493	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'
15494	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15495	$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'
15496
15497	# Both c and cxx compiler support -rpath directly
15498	hardcode_libdir_flag_spec='-rpath $libdir'
15499      fi
15500      hardcode_libdir_separator=:
15501      ;;
15502
15503    solaris*)
15504      no_undefined_flag=' -z text'
15505      if test "$GCC" = yes; then
15506	wlarc='${wl}'
15507	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15508	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15509	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15510      else
15511	wlarc=''
15512	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15513	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15514  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15515      fi
15516      hardcode_libdir_flag_spec='-R$libdir'
15517      hardcode_shlibpath_var=no
15518      case $host_os in
15519      solaris2.[0-5] | solaris2.[0-5].*) ;;
15520      *)
15521 	# The compiler driver will combine linker options so we
15522 	# cannot just pass the convience library names through
15523 	# without $wl, iff we do not link with $LD.
15524 	# Luckily, gcc supports the same syntax we need for Sun Studio.
15525 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15526 	case $wlarc in
15527 	'')
15528 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15529 	*)
15530 	  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' ;;
15531 	esac ;;
15532      esac
15533      link_all_deplibs=yes
15534      ;;
15535
15536    sunos4*)
15537      if test "x$host_vendor" = xsequent; then
15538	# Use $CC to link under sequent, because it throws in some extra .o
15539	# files that make .init and .fini sections work.
15540	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15541      else
15542	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15543      fi
15544      hardcode_libdir_flag_spec='-L$libdir'
15545      hardcode_direct=yes
15546      hardcode_minus_L=yes
15547      hardcode_shlibpath_var=no
15548      ;;
15549
15550    sysv4)
15551      case $host_vendor in
15552	sni)
15553	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15554	  hardcode_direct=yes # is this really true???
15555	;;
15556	siemens)
15557	  ## LD is ld it makes a PLAMLIB
15558	  ## CC just makes a GrossModule.
15559	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15560	  reload_cmds='$CC -r -o $output$reload_objs'
15561	  hardcode_direct=no
15562        ;;
15563	motorola)
15564	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15565	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15566	;;
15567      esac
15568      runpath_var='LD_RUN_PATH'
15569      hardcode_shlibpath_var=no
15570      ;;
15571
15572    sysv4.3*)
15573      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15574      hardcode_shlibpath_var=no
15575      export_dynamic_flag_spec='-Bexport'
15576      ;;
15577
15578    sysv4*MP*)
15579      if test -d /usr/nec; then
15580	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15581	hardcode_shlibpath_var=no
15582	runpath_var=LD_RUN_PATH
15583	hardcode_runpath_var=yes
15584	ld_shlibs=yes
15585      fi
15586      ;;
15587
15588    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15589      no_undefined_flag='${wl}-z,text'
15590      archive_cmds_need_lc=no
15591      hardcode_shlibpath_var=no
15592      runpath_var='LD_RUN_PATH'
15593
15594      if test "$GCC" = yes; then
15595	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15596	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15597      else
15598	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15599	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15600      fi
15601      ;;
15602
15603    sysv5* | sco3.2v5* | sco5v6*)
15604      # Note: We can NOT use -z defs as we might desire, because we do not
15605      # link with -lc, and that would cause any symbols used from libc to
15606      # always be unresolved, which means just about no library would
15607      # ever link correctly.  If we're not using GNU ld we use -z text
15608      # though, which does catch some bad symbols but isn't as heavy-handed
15609      # as -z defs.
15610      no_undefined_flag='${wl}-z,text'
15611      allow_undefined_flag='${wl}-z,nodefs'
15612      archive_cmds_need_lc=no
15613      hardcode_shlibpath_var=no
15614      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15615      hardcode_libdir_separator=':'
15616      link_all_deplibs=yes
15617      export_dynamic_flag_spec='${wl}-Bexport'
15618      runpath_var='LD_RUN_PATH'
15619
15620      if test "$GCC" = yes; then
15621	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15622	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15623      else
15624	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15625	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15626      fi
15627      ;;
15628
15629    uts4*)
15630      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15631      hardcode_libdir_flag_spec='-L$libdir'
15632      hardcode_shlibpath_var=no
15633      ;;
15634
15635    *)
15636      ld_shlibs=no
15637      ;;
15638    esac
15639  fi
15640
15641{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15642echo "${ECHO_T}$ld_shlibs" >&6; }
15643test "$ld_shlibs" = no && can_build_shared=no
15644
15645#
15646# Do we need to explicitly link libc?
15647#
15648case "x$archive_cmds_need_lc" in
15649x|xyes)
15650  # Assume -lc should be added
15651  archive_cmds_need_lc=yes
15652
15653  if test "$enable_shared" = yes && test "$GCC" = yes; then
15654    case $archive_cmds in
15655    *'~'*)
15656      # FIXME: we may have to deal with multi-command sequences.
15657      ;;
15658    '$CC '*)
15659      # Test whether the compiler implicitly links with -lc since on some
15660      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15661      # to ld, don't add -lc before -lgcc.
15662      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15663echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15664      $rm conftest*
15665      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15666
15667      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15668  (eval $ac_compile) 2>&5
15669  ac_status=$?
15670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671  (exit $ac_status); } 2>conftest.err; then
15672        soname=conftest
15673        lib=conftest
15674        libobjs=conftest.$ac_objext
15675        deplibs=
15676        wl=$lt_prog_compiler_wl
15677	pic_flag=$lt_prog_compiler_pic
15678        compiler_flags=-v
15679        linker_flags=-v
15680        verstring=
15681        output_objdir=.
15682        libname=conftest
15683        lt_save_allow_undefined_flag=$allow_undefined_flag
15684        allow_undefined_flag=
15685        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15686  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15687  ac_status=$?
15688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689  (exit $ac_status); }
15690        then
15691	  archive_cmds_need_lc=no
15692        else
15693	  archive_cmds_need_lc=yes
15694        fi
15695        allow_undefined_flag=$lt_save_allow_undefined_flag
15696      else
15697        cat conftest.err 1>&5
15698      fi
15699      $rm conftest*
15700      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15701echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15702      ;;
15703    esac
15704  fi
15705  ;;
15706esac
15707
15708{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15709echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15710library_names_spec=
15711libname_spec='lib$name'
15712soname_spec=
15713shrext_cmds=".so"
15714postinstall_cmds=
15715postuninstall_cmds=
15716finish_cmds=
15717finish_eval=
15718shlibpath_var=
15719shlibpath_overrides_runpath=unknown
15720version_type=none
15721dynamic_linker="$host_os ld.so"
15722sys_lib_dlsearch_path_spec="/lib /usr/lib"
15723if test "$GCC" = yes; then
15724  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15725  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15726    # if the path contains ";" then we assume it to be the separator
15727    # otherwise default to the standard path separator (i.e. ":") - it is
15728    # assumed that no part of a normal pathname contains ";" but that should
15729    # okay in the real world where ";" in dirpaths is itself problematic.
15730    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15731  else
15732    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15733  fi
15734else
15735  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15736fi
15737need_lib_prefix=unknown
15738hardcode_into_libs=no
15739
15740# when you set need_version to no, make sure it does not cause -set_version
15741# flags to be left without arguments
15742need_version=unknown
15743
15744case $host_os in
15745aix3*)
15746  version_type=linux
15747  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15748  shlibpath_var=LIBPATH
15749
15750  # AIX 3 has no versioning support, so we append a major version to the name.
15751  soname_spec='${libname}${release}${shared_ext}$major'
15752  ;;
15753
15754aix4* | aix5*)
15755  version_type=linux
15756  need_lib_prefix=no
15757  need_version=no
15758  hardcode_into_libs=yes
15759  if test "$host_cpu" = ia64; then
15760    # AIX 5 supports IA64
15761    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15762    shlibpath_var=LD_LIBRARY_PATH
15763  else
15764    # With GCC up to 2.95.x, collect2 would create an import file
15765    # for dependence libraries.  The import file would start with
15766    # the line `#! .'.  This would cause the generated library to
15767    # depend on `.', always an invalid library.  This was fixed in
15768    # development snapshots of GCC prior to 3.0.
15769    case $host_os in
15770      aix4 | aix4.[01] | aix4.[01].*)
15771      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15772	   echo ' yes '
15773	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15774	:
15775      else
15776	can_build_shared=no
15777      fi
15778      ;;
15779    esac
15780    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15781    # soname into executable. Probably we can add versioning support to
15782    # collect2, so additional links can be useful in future.
15783    if test "$aix_use_runtimelinking" = yes; then
15784      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15785      # instead of lib<name>.a to let people know that these are not
15786      # typical AIX shared libraries.
15787      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15788    else
15789      # We preserve .a as extension for shared libraries through AIX4.2
15790      # and later when we are not doing run time linking.
15791      library_names_spec='${libname}${release}.a $libname.a'
15792      soname_spec='${libname}${release}${shared_ext}$major'
15793    fi
15794    shlibpath_var=LIBPATH
15795  fi
15796  ;;
15797
15798amigaos*)
15799  library_names_spec='$libname.ixlibrary $libname.a'
15800  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15801  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'
15802  ;;
15803
15804beos*)
15805  library_names_spec='${libname}${shared_ext}'
15806  dynamic_linker="$host_os ld.so"
15807  shlibpath_var=LIBRARY_PATH
15808  ;;
15809
15810bsdi[45]*)
15811  version_type=linux
15812  need_version=no
15813  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15814  soname_spec='${libname}${release}${shared_ext}$major'
15815  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15816  shlibpath_var=LD_LIBRARY_PATH
15817  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15818  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15819  # the default ld.so.conf also contains /usr/contrib/lib and
15820  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15821  # libtool to hard-code these into programs
15822  ;;
15823
15824cygwin* | mingw* | pw32*)
15825  version_type=windows
15826  shrext_cmds=".dll"
15827  need_version=no
15828  need_lib_prefix=no
15829
15830  case $GCC,$host_os in
15831  yes,cygwin* | yes,mingw* | yes,pw32*)
15832    library_names_spec='$libname.dll.a'
15833    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15834    postinstall_cmds='base_file=`basename \${file}`~
15835      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15836      dldir=$destdir/`dirname \$dlpath`~
15837      test -d \$dldir || mkdir -p \$dldir~
15838      $install_prog $dir/$dlname \$dldir/$dlname~
15839      chmod a+x \$dldir/$dlname'
15840    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15841      dlpath=$dir/\$dldll~
15842       $rm \$dlpath'
15843    shlibpath_overrides_runpath=yes
15844
15845    case $host_os in
15846    cygwin*)
15847      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15848      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15849      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15850      ;;
15851    mingw*)
15852      # MinGW DLLs use traditional 'lib' prefix
15853      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15854      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15855      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15856        # It is most probably a Windows format PATH printed by
15857        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15858        # path with ; separators, and with drive letters. We can handle the
15859        # drive letters (cygwin fileutils understands them), so leave them,
15860        # especially as we might pass files found there to a mingw objdump,
15861        # which wouldn't understand a cygwinified path. Ahh.
15862        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15863      else
15864        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15865      fi
15866      ;;
15867    pw32*)
15868      # pw32 DLLs use 'pw' prefix rather than 'lib'
15869      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15870      ;;
15871    esac
15872    ;;
15873
15874  *)
15875    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15876    ;;
15877  esac
15878  dynamic_linker='Win32 ld.exe'
15879  # FIXME: first we should search . and the directory the executable is in
15880  shlibpath_var=PATH
15881  ;;
15882
15883darwin* | rhapsody*)
15884  dynamic_linker="$host_os dyld"
15885  version_type=darwin
15886  need_lib_prefix=no
15887  need_version=no
15888  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15889  soname_spec='${libname}${release}${major}$shared_ext'
15890  shlibpath_overrides_runpath=yes
15891  shlibpath_var=DYLD_LIBRARY_PATH
15892  shrext_cmds='.dylib'
15893  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15894  if test "$GCC" = yes; then
15895    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"`
15896  else
15897    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15898  fi
15899  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15900  ;;
15901
15902dgux*)
15903  version_type=linux
15904  need_lib_prefix=no
15905  need_version=no
15906  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15907  soname_spec='${libname}${release}${shared_ext}$major'
15908  shlibpath_var=LD_LIBRARY_PATH
15909  ;;
15910
15911freebsd1*)
15912  dynamic_linker=no
15913  ;;
15914
15915kfreebsd*-gnu)
15916  version_type=linux
15917  need_lib_prefix=no
15918  need_version=no
15919  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15920  soname_spec='${libname}${release}${shared_ext}$major'
15921  shlibpath_var=LD_LIBRARY_PATH
15922  shlibpath_overrides_runpath=no
15923  hardcode_into_libs=yes
15924  dynamic_linker='GNU ld.so'
15925  ;;
15926
15927freebsd* | dragonfly*)
15928  # DragonFly does not have aout.  When/if they implement a new
15929  # versioning mechanism, adjust this.
15930  if test -x /usr/bin/objformat; then
15931    objformat=`/usr/bin/objformat`
15932  else
15933    case $host_os in
15934    freebsd[123]*) objformat=aout ;;
15935    *) objformat=elf ;;
15936    esac
15937  fi
15938  version_type=freebsd-$objformat
15939  case $version_type in
15940    freebsd-elf*)
15941      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15942      need_version=no
15943      need_lib_prefix=no
15944      ;;
15945    freebsd-*)
15946      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15947      need_version=yes
15948      ;;
15949  esac
15950  shlibpath_var=LD_LIBRARY_PATH
15951  case $host_os in
15952  freebsd2*)
15953    shlibpath_overrides_runpath=yes
15954    ;;
15955  freebsd3.[01]* | freebsdelf3.[01]*)
15956    shlibpath_overrides_runpath=yes
15957    hardcode_into_libs=yes
15958    ;;
15959  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15960  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15961    shlibpath_overrides_runpath=no
15962    hardcode_into_libs=yes
15963    ;;
15964  freebsd*) # from 4.6 on
15965    shlibpath_overrides_runpath=yes
15966    hardcode_into_libs=yes
15967    ;;
15968  esac
15969  ;;
15970
15971gnu*)
15972  version_type=linux
15973  need_lib_prefix=no
15974  need_version=no
15975  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15976  soname_spec='${libname}${release}${shared_ext}$major'
15977  shlibpath_var=LD_LIBRARY_PATH
15978  hardcode_into_libs=yes
15979  ;;
15980
15981hpux9* | hpux10* | hpux11*)
15982  # Give a soname corresponding to the major version so that dld.sl refuses to
15983  # link against other versions.
15984  version_type=sunos
15985  need_lib_prefix=no
15986  need_version=no
15987  case $host_cpu in
15988  ia64*)
15989    shrext_cmds='.so'
15990    hardcode_into_libs=yes
15991    dynamic_linker="$host_os dld.so"
15992    shlibpath_var=LD_LIBRARY_PATH
15993    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15994    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15995    soname_spec='${libname}${release}${shared_ext}$major'
15996    if test "X$HPUX_IA64_MODE" = X32; then
15997      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15998    else
15999      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16000    fi
16001    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16002    ;;
16003   hppa*64*)
16004     shrext_cmds='.sl'
16005     hardcode_into_libs=yes
16006     dynamic_linker="$host_os dld.sl"
16007     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16008     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16009     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16010     soname_spec='${libname}${release}${shared_ext}$major'
16011     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16012     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16013     ;;
16014   *)
16015    shrext_cmds='.sl'
16016    dynamic_linker="$host_os dld.sl"
16017    shlibpath_var=SHLIB_PATH
16018    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16019    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16020    soname_spec='${libname}${release}${shared_ext}$major'
16021    ;;
16022  esac
16023  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16024  postinstall_cmds='chmod 555 $lib'
16025  ;;
16026
16027interix3*)
16028  version_type=linux
16029  need_lib_prefix=no
16030  need_version=no
16031  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16032  soname_spec='${libname}${release}${shared_ext}$major'
16033  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16034  shlibpath_var=LD_LIBRARY_PATH
16035  shlibpath_overrides_runpath=no
16036  hardcode_into_libs=yes
16037  ;;
16038
16039irix5* | irix6* | nonstopux*)
16040  case $host_os in
16041    nonstopux*) version_type=nonstopux ;;
16042    *)
16043	if test "$lt_cv_prog_gnu_ld" = yes; then
16044		version_type=linux
16045	else
16046		version_type=irix
16047	fi ;;
16048  esac
16049  need_lib_prefix=no
16050  need_version=no
16051  soname_spec='${libname}${release}${shared_ext}$major'
16052  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16053  case $host_os in
16054  irix5* | nonstopux*)
16055    libsuff= shlibsuff=
16056    ;;
16057  *)
16058    case $LD in # libtool.m4 will add one of these switches to LD
16059    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16060      libsuff= shlibsuff= libmagic=32-bit;;
16061    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16062      libsuff=32 shlibsuff=N32 libmagic=N32;;
16063    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16064      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16065    *) libsuff= shlibsuff= libmagic=never-match;;
16066    esac
16067    ;;
16068  esac
16069  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16070  shlibpath_overrides_runpath=no
16071  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16072  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16073  hardcode_into_libs=yes
16074  ;;
16075
16076# No shared lib support for Linux oldld, aout, or coff.
16077linux*oldld* | linux*aout* | linux*coff*)
16078  dynamic_linker=no
16079  ;;
16080
16081# This must be Linux ELF.
16082linux*)
16083  version_type=linux
16084  need_lib_prefix=no
16085  need_version=no
16086  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16087  soname_spec='${libname}${release}${shared_ext}$major'
16088  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16089  shlibpath_var=LD_LIBRARY_PATH
16090  shlibpath_overrides_runpath=no
16091  # This implies no fast_install, which is unacceptable.
16092  # Some rework will be needed to allow for fast_install
16093  # before this can be enabled.
16094  hardcode_into_libs=yes
16095
16096  # Append ld.so.conf contents to the search path
16097  if test -f /etc/ld.so.conf; then
16098    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' ' '`
16099    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16100  fi
16101
16102  # We used to test for /lib/ld.so.1 and disable shared libraries on
16103  # powerpc, because MkLinux only supported shared libraries with the
16104  # GNU dynamic linker.  Since this was broken with cross compilers,
16105  # most powerpc-linux boxes support dynamic linking these days and
16106  # people can always --disable-shared, the test was removed, and we
16107  # assume the GNU/Linux dynamic linker is in use.
16108  dynamic_linker='GNU/Linux ld.so'
16109  ;;
16110
16111knetbsd*-gnu)
16112  version_type=linux
16113  need_lib_prefix=no
16114  need_version=no
16115  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16116  soname_spec='${libname}${release}${shared_ext}$major'
16117  shlibpath_var=LD_LIBRARY_PATH
16118  shlibpath_overrides_runpath=no
16119  hardcode_into_libs=yes
16120  dynamic_linker='GNU ld.so'
16121  ;;
16122
16123netbsd*)
16124  version_type=sunos
16125  need_lib_prefix=no
16126  need_version=no
16127  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16128    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16129    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16130    dynamic_linker='NetBSD (a.out) ld.so'
16131  else
16132    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16133    soname_spec='${libname}${release}${shared_ext}$major'
16134    dynamic_linker='NetBSD ld.elf_so'
16135  fi
16136  shlibpath_var=LD_LIBRARY_PATH
16137  shlibpath_overrides_runpath=yes
16138  hardcode_into_libs=yes
16139  ;;
16140
16141newsos6)
16142  version_type=linux
16143  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16144  shlibpath_var=LD_LIBRARY_PATH
16145  shlibpath_overrides_runpath=yes
16146  ;;
16147
16148nto-qnx*)
16149  version_type=linux
16150  need_lib_prefix=no
16151  need_version=no
16152  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16153  soname_spec='${libname}${release}${shared_ext}$major'
16154  shlibpath_var=LD_LIBRARY_PATH
16155  shlibpath_overrides_runpath=yes
16156  ;;
16157
16158openbsd*)
16159  version_type=sunos
16160  sys_lib_dlsearch_path_spec="/usr/lib"
16161  need_lib_prefix=no
16162  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16163  case $host_os in
16164    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16165    *)                         need_version=no  ;;
16166  esac
16167  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16168  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16169  shlibpath_var=LD_LIBRARY_PATH
16170  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16171    case $host_os in
16172      openbsd2.[89] | openbsd2.[89].*)
16173	shlibpath_overrides_runpath=no
16174	;;
16175      *)
16176	shlibpath_overrides_runpath=yes
16177	;;
16178      esac
16179  else
16180    shlibpath_overrides_runpath=yes
16181  fi
16182  ;;
16183
16184os2*)
16185  libname_spec='$name'
16186  shrext_cmds=".dll"
16187  need_lib_prefix=no
16188  library_names_spec='$libname${shared_ext} $libname.a'
16189  dynamic_linker='OS/2 ld.exe'
16190  shlibpath_var=LIBPATH
16191  ;;
16192
16193osf3* | osf4* | osf5*)
16194  version_type=osf
16195  need_lib_prefix=no
16196  need_version=no
16197  soname_spec='${libname}${release}${shared_ext}$major'
16198  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16199  shlibpath_var=LD_LIBRARY_PATH
16200  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16201  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16202  ;;
16203
16204solaris*)
16205  version_type=linux
16206  need_lib_prefix=no
16207  need_version=no
16208  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16209  soname_spec='${libname}${release}${shared_ext}$major'
16210  shlibpath_var=LD_LIBRARY_PATH
16211  shlibpath_overrides_runpath=yes
16212  hardcode_into_libs=yes
16213  # ldd complains unless libraries are executable
16214  postinstall_cmds='chmod +x $lib'
16215  ;;
16216
16217sunos4*)
16218  version_type=sunos
16219  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16220  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16221  shlibpath_var=LD_LIBRARY_PATH
16222  shlibpath_overrides_runpath=yes
16223  if test "$with_gnu_ld" = yes; then
16224    need_lib_prefix=no
16225  fi
16226  need_version=yes
16227  ;;
16228
16229sysv4 | sysv4.3*)
16230  version_type=linux
16231  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16232  soname_spec='${libname}${release}${shared_ext}$major'
16233  shlibpath_var=LD_LIBRARY_PATH
16234  case $host_vendor in
16235    sni)
16236      shlibpath_overrides_runpath=no
16237      need_lib_prefix=no
16238      export_dynamic_flag_spec='${wl}-Blargedynsym'
16239      runpath_var=LD_RUN_PATH
16240      ;;
16241    siemens)
16242      need_lib_prefix=no
16243      ;;
16244    motorola)
16245      need_lib_prefix=no
16246      need_version=no
16247      shlibpath_overrides_runpath=no
16248      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16249      ;;
16250  esac
16251  ;;
16252
16253sysv4*MP*)
16254  if test -d /usr/nec ;then
16255    version_type=linux
16256    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16257    soname_spec='$libname${shared_ext}.$major'
16258    shlibpath_var=LD_LIBRARY_PATH
16259  fi
16260  ;;
16261
16262sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16263  version_type=freebsd-elf
16264  need_lib_prefix=no
16265  need_version=no
16266  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16267  soname_spec='${libname}${release}${shared_ext}$major'
16268  shlibpath_var=LD_LIBRARY_PATH
16269  hardcode_into_libs=yes
16270  if test "$with_gnu_ld" = yes; then
16271    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16272    shlibpath_overrides_runpath=no
16273  else
16274    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16275    shlibpath_overrides_runpath=yes
16276    case $host_os in
16277      sco3.2v5*)
16278        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16279	;;
16280    esac
16281  fi
16282  sys_lib_dlsearch_path_spec='/usr/lib'
16283  ;;
16284
16285uts4*)
16286  version_type=linux
16287  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16288  soname_spec='${libname}${release}${shared_ext}$major'
16289  shlibpath_var=LD_LIBRARY_PATH
16290  ;;
16291
16292*)
16293  dynamic_linker=no
16294  ;;
16295esac
16296{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16297echo "${ECHO_T}$dynamic_linker" >&6; }
16298test "$dynamic_linker" = no && can_build_shared=no
16299
16300variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16301if test "$GCC" = yes; then
16302  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16303fi
16304
16305{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16306echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16307hardcode_action=
16308if test -n "$hardcode_libdir_flag_spec" || \
16309   test -n "$runpath_var" || \
16310   test "X$hardcode_automatic" = "Xyes" ; then
16311
16312  # We can hardcode non-existant directories.
16313  if test "$hardcode_direct" != no &&
16314     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16315     # have to relink, otherwise we might link with an installed library
16316     # when we should be linking with a yet-to-be-installed one
16317     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16318     test "$hardcode_minus_L" != no; then
16319    # Linking always hardcodes the temporary library directory.
16320    hardcode_action=relink
16321  else
16322    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16323    hardcode_action=immediate
16324  fi
16325else
16326  # We cannot hardcode anything, or else we can only hardcode existing
16327  # directories.
16328  hardcode_action=unsupported
16329fi
16330{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16331echo "${ECHO_T}$hardcode_action" >&6; }
16332
16333if test "$hardcode_action" = relink; then
16334  # Fast installation is not supported
16335  enable_fast_install=no
16336elif test "$shlibpath_overrides_runpath" = yes ||
16337     test "$enable_shared" = no; then
16338  # Fast installation is not necessary
16339  enable_fast_install=needless
16340fi
16341
16342striplib=
16343old_striplib=
16344{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16345echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16346if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16347  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16348  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16349  { echo "$as_me:$LINENO: result: yes" >&5
16350echo "${ECHO_T}yes" >&6; }
16351else
16352# FIXME - insert some real tests, host_os isn't really good enough
16353  case $host_os in
16354   darwin*)
16355       if test -n "$STRIP" ; then
16356         striplib="$STRIP -x"
16357         { echo "$as_me:$LINENO: result: yes" >&5
16358echo "${ECHO_T}yes" >&6; }
16359       else
16360  { echo "$as_me:$LINENO: result: no" >&5
16361echo "${ECHO_T}no" >&6; }
16362fi
16363       ;;
16364   *)
16365  { echo "$as_me:$LINENO: result: no" >&5
16366echo "${ECHO_T}no" >&6; }
16367    ;;
16368  esac
16369fi
16370
16371if test "x$enable_dlopen" != xyes; then
16372  enable_dlopen=unknown
16373  enable_dlopen_self=unknown
16374  enable_dlopen_self_static=unknown
16375else
16376  lt_cv_dlopen=no
16377  lt_cv_dlopen_libs=
16378
16379  case $host_os in
16380  beos*)
16381    lt_cv_dlopen="load_add_on"
16382    lt_cv_dlopen_libs=
16383    lt_cv_dlopen_self=yes
16384    ;;
16385
16386  mingw* | pw32*)
16387    lt_cv_dlopen="LoadLibrary"
16388    lt_cv_dlopen_libs=
16389   ;;
16390
16391  cygwin*)
16392    lt_cv_dlopen="dlopen"
16393    lt_cv_dlopen_libs=
16394   ;;
16395
16396  darwin*)
16397  # if libdl is installed we need to link against it
16398    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16399echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16400if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16401  echo $ECHO_N "(cached) $ECHO_C" >&6
16402else
16403  ac_check_lib_save_LIBS=$LIBS
16404LIBS="-ldl  $LIBS"
16405cat >conftest.$ac_ext <<_ACEOF
16406/* confdefs.h.  */
16407_ACEOF
16408cat confdefs.h >>conftest.$ac_ext
16409cat >>conftest.$ac_ext <<_ACEOF
16410/* end confdefs.h.  */
16411
16412/* Override any GCC internal prototype to avoid an error.
16413   Use char because int might match the return type of a GCC
16414   builtin and then its argument prototype would still apply.  */
16415#ifdef __cplusplus
16416extern "C"
16417#endif
16418char dlopen ();
16419int
16420main ()
16421{
16422return dlopen ();
16423  ;
16424  return 0;
16425}
16426_ACEOF
16427rm -f conftest.$ac_objext conftest$ac_exeext
16428if { (ac_try="$ac_link"
16429case "(($ac_try" in
16430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431  *) ac_try_echo=$ac_try;;
16432esac
16433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16434  (eval "$ac_link") 2>conftest.er1
16435  ac_status=$?
16436  grep -v '^ *+' conftest.er1 >conftest.err
16437  rm -f conftest.er1
16438  cat conftest.err >&5
16439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440  (exit $ac_status); } &&
16441	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16442  { (case "(($ac_try" in
16443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444  *) ac_try_echo=$ac_try;;
16445esac
16446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447  (eval "$ac_try") 2>&5
16448  ac_status=$?
16449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450  (exit $ac_status); }; } &&
16451	 { ac_try='test -s conftest$ac_exeext'
16452  { (case "(($ac_try" in
16453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16454  *) ac_try_echo=$ac_try;;
16455esac
16456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16457  (eval "$ac_try") 2>&5
16458  ac_status=$?
16459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460  (exit $ac_status); }; }; then
16461  ac_cv_lib_dl_dlopen=yes
16462else
16463  echo "$as_me: failed program was:" >&5
16464sed 's/^/| /' conftest.$ac_ext >&5
16465
16466	ac_cv_lib_dl_dlopen=no
16467fi
16468
16469rm -f core conftest.err conftest.$ac_objext \
16470      conftest$ac_exeext conftest.$ac_ext
16471LIBS=$ac_check_lib_save_LIBS
16472fi
16473{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16474echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16475if test $ac_cv_lib_dl_dlopen = yes; then
16476  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16477else
16478
16479    lt_cv_dlopen="dyld"
16480    lt_cv_dlopen_libs=
16481    lt_cv_dlopen_self=yes
16482
16483fi
16484
16485   ;;
16486
16487  *)
16488    { echo "$as_me:$LINENO: checking for shl_load" >&5
16489echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16490if test "${ac_cv_func_shl_load+set}" = set; then
16491  echo $ECHO_N "(cached) $ECHO_C" >&6
16492else
16493  cat >conftest.$ac_ext <<_ACEOF
16494/* confdefs.h.  */
16495_ACEOF
16496cat confdefs.h >>conftest.$ac_ext
16497cat >>conftest.$ac_ext <<_ACEOF
16498/* end confdefs.h.  */
16499/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16500   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16501#define shl_load innocuous_shl_load
16502
16503/* System header to define __stub macros and hopefully few prototypes,
16504    which can conflict with char shl_load (); below.
16505    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16506    <limits.h> exists even on freestanding compilers.  */
16507
16508#ifdef __STDC__
16509# include <limits.h>
16510#else
16511# include <assert.h>
16512#endif
16513
16514#undef shl_load
16515
16516/* Override any GCC internal prototype to avoid an error.
16517   Use char because int might match the return type of a GCC
16518   builtin and then its argument prototype would still apply.  */
16519#ifdef __cplusplus
16520extern "C"
16521#endif
16522char shl_load ();
16523/* The GNU C library defines this for functions which it implements
16524    to always fail with ENOSYS.  Some functions are actually named
16525    something starting with __ and the normal name is an alias.  */
16526#if defined __stub_shl_load || defined __stub___shl_load
16527choke me
16528#endif
16529
16530int
16531main ()
16532{
16533return shl_load ();
16534  ;
16535  return 0;
16536}
16537_ACEOF
16538rm -f conftest.$ac_objext conftest$ac_exeext
16539if { (ac_try="$ac_link"
16540case "(($ac_try" in
16541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16542  *) ac_try_echo=$ac_try;;
16543esac
16544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16545  (eval "$ac_link") 2>conftest.er1
16546  ac_status=$?
16547  grep -v '^ *+' conftest.er1 >conftest.err
16548  rm -f conftest.er1
16549  cat conftest.err >&5
16550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551  (exit $ac_status); } &&
16552	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16553  { (case "(($ac_try" in
16554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16555  *) ac_try_echo=$ac_try;;
16556esac
16557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16558  (eval "$ac_try") 2>&5
16559  ac_status=$?
16560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561  (exit $ac_status); }; } &&
16562	 { ac_try='test -s conftest$ac_exeext'
16563  { (case "(($ac_try" in
16564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16565  *) ac_try_echo=$ac_try;;
16566esac
16567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16568  (eval "$ac_try") 2>&5
16569  ac_status=$?
16570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571  (exit $ac_status); }; }; then
16572  ac_cv_func_shl_load=yes
16573else
16574  echo "$as_me: failed program was:" >&5
16575sed 's/^/| /' conftest.$ac_ext >&5
16576
16577	ac_cv_func_shl_load=no
16578fi
16579
16580rm -f core conftest.err conftest.$ac_objext \
16581      conftest$ac_exeext conftest.$ac_ext
16582fi
16583{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16584echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16585if test $ac_cv_func_shl_load = yes; then
16586  lt_cv_dlopen="shl_load"
16587else
16588  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16589echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16590if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16591  echo $ECHO_N "(cached) $ECHO_C" >&6
16592else
16593  ac_check_lib_save_LIBS=$LIBS
16594LIBS="-ldld  $LIBS"
16595cat >conftest.$ac_ext <<_ACEOF
16596/* confdefs.h.  */
16597_ACEOF
16598cat confdefs.h >>conftest.$ac_ext
16599cat >>conftest.$ac_ext <<_ACEOF
16600/* end confdefs.h.  */
16601
16602/* Override any GCC internal prototype to avoid an error.
16603   Use char because int might match the return type of a GCC
16604   builtin and then its argument prototype would still apply.  */
16605#ifdef __cplusplus
16606extern "C"
16607#endif
16608char shl_load ();
16609int
16610main ()
16611{
16612return shl_load ();
16613  ;
16614  return 0;
16615}
16616_ACEOF
16617rm -f conftest.$ac_objext conftest$ac_exeext
16618if { (ac_try="$ac_link"
16619case "(($ac_try" in
16620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621  *) ac_try_echo=$ac_try;;
16622esac
16623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16624  (eval "$ac_link") 2>conftest.er1
16625  ac_status=$?
16626  grep -v '^ *+' conftest.er1 >conftest.err
16627  rm -f conftest.er1
16628  cat conftest.err >&5
16629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630  (exit $ac_status); } &&
16631	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16632  { (case "(($ac_try" in
16633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634  *) ac_try_echo=$ac_try;;
16635esac
16636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637  (eval "$ac_try") 2>&5
16638  ac_status=$?
16639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640  (exit $ac_status); }; } &&
16641	 { ac_try='test -s conftest$ac_exeext'
16642  { (case "(($ac_try" in
16643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16644  *) ac_try_echo=$ac_try;;
16645esac
16646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16647  (eval "$ac_try") 2>&5
16648  ac_status=$?
16649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650  (exit $ac_status); }; }; then
16651  ac_cv_lib_dld_shl_load=yes
16652else
16653  echo "$as_me: failed program was:" >&5
16654sed 's/^/| /' conftest.$ac_ext >&5
16655
16656	ac_cv_lib_dld_shl_load=no
16657fi
16658
16659rm -f core conftest.err conftest.$ac_objext \
16660      conftest$ac_exeext conftest.$ac_ext
16661LIBS=$ac_check_lib_save_LIBS
16662fi
16663{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16664echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16665if test $ac_cv_lib_dld_shl_load = yes; then
16666  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16667else
16668  { echo "$as_me:$LINENO: checking for dlopen" >&5
16669echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16670if test "${ac_cv_func_dlopen+set}" = set; then
16671  echo $ECHO_N "(cached) $ECHO_C" >&6
16672else
16673  cat >conftest.$ac_ext <<_ACEOF
16674/* confdefs.h.  */
16675_ACEOF
16676cat confdefs.h >>conftest.$ac_ext
16677cat >>conftest.$ac_ext <<_ACEOF
16678/* end confdefs.h.  */
16679/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16680   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16681#define dlopen innocuous_dlopen
16682
16683/* System header to define __stub macros and hopefully few prototypes,
16684    which can conflict with char dlopen (); below.
16685    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16686    <limits.h> exists even on freestanding compilers.  */
16687
16688#ifdef __STDC__
16689# include <limits.h>
16690#else
16691# include <assert.h>
16692#endif
16693
16694#undef dlopen
16695
16696/* Override any GCC internal prototype to avoid an error.
16697   Use char because int might match the return type of a GCC
16698   builtin and then its argument prototype would still apply.  */
16699#ifdef __cplusplus
16700extern "C"
16701#endif
16702char dlopen ();
16703/* The GNU C library defines this for functions which it implements
16704    to always fail with ENOSYS.  Some functions are actually named
16705    something starting with __ and the normal name is an alias.  */
16706#if defined __stub_dlopen || defined __stub___dlopen
16707choke me
16708#endif
16709
16710int
16711main ()
16712{
16713return dlopen ();
16714  ;
16715  return 0;
16716}
16717_ACEOF
16718rm -f conftest.$ac_objext conftest$ac_exeext
16719if { (ac_try="$ac_link"
16720case "(($ac_try" in
16721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722  *) ac_try_echo=$ac_try;;
16723esac
16724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725  (eval "$ac_link") 2>conftest.er1
16726  ac_status=$?
16727  grep -v '^ *+' conftest.er1 >conftest.err
16728  rm -f conftest.er1
16729  cat conftest.err >&5
16730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731  (exit $ac_status); } &&
16732	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16733  { (case "(($ac_try" in
16734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16735  *) ac_try_echo=$ac_try;;
16736esac
16737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16738  (eval "$ac_try") 2>&5
16739  ac_status=$?
16740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741  (exit $ac_status); }; } &&
16742	 { ac_try='test -s conftest$ac_exeext'
16743  { (case "(($ac_try" in
16744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16745  *) ac_try_echo=$ac_try;;
16746esac
16747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16748  (eval "$ac_try") 2>&5
16749  ac_status=$?
16750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751  (exit $ac_status); }; }; then
16752  ac_cv_func_dlopen=yes
16753else
16754  echo "$as_me: failed program was:" >&5
16755sed 's/^/| /' conftest.$ac_ext >&5
16756
16757	ac_cv_func_dlopen=no
16758fi
16759
16760rm -f core conftest.err conftest.$ac_objext \
16761      conftest$ac_exeext conftest.$ac_ext
16762fi
16763{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16764echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16765if test $ac_cv_func_dlopen = yes; then
16766  lt_cv_dlopen="dlopen"
16767else
16768  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16769echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16770if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16771  echo $ECHO_N "(cached) $ECHO_C" >&6
16772else
16773  ac_check_lib_save_LIBS=$LIBS
16774LIBS="-ldl  $LIBS"
16775cat >conftest.$ac_ext <<_ACEOF
16776/* confdefs.h.  */
16777_ACEOF
16778cat confdefs.h >>conftest.$ac_ext
16779cat >>conftest.$ac_ext <<_ACEOF
16780/* end confdefs.h.  */
16781
16782/* Override any GCC internal prototype to avoid an error.
16783   Use char because int might match the return type of a GCC
16784   builtin and then its argument prototype would still apply.  */
16785#ifdef __cplusplus
16786extern "C"
16787#endif
16788char dlopen ();
16789int
16790main ()
16791{
16792return dlopen ();
16793  ;
16794  return 0;
16795}
16796_ACEOF
16797rm -f conftest.$ac_objext conftest$ac_exeext
16798if { (ac_try="$ac_link"
16799case "(($ac_try" in
16800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16801  *) ac_try_echo=$ac_try;;
16802esac
16803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16804  (eval "$ac_link") 2>conftest.er1
16805  ac_status=$?
16806  grep -v '^ *+' conftest.er1 >conftest.err
16807  rm -f conftest.er1
16808  cat conftest.err >&5
16809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810  (exit $ac_status); } &&
16811	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16812  { (case "(($ac_try" in
16813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814  *) ac_try_echo=$ac_try;;
16815esac
16816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817  (eval "$ac_try") 2>&5
16818  ac_status=$?
16819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820  (exit $ac_status); }; } &&
16821	 { ac_try='test -s conftest$ac_exeext'
16822  { (case "(($ac_try" in
16823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16824  *) ac_try_echo=$ac_try;;
16825esac
16826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16827  (eval "$ac_try") 2>&5
16828  ac_status=$?
16829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830  (exit $ac_status); }; }; then
16831  ac_cv_lib_dl_dlopen=yes
16832else
16833  echo "$as_me: failed program was:" >&5
16834sed 's/^/| /' conftest.$ac_ext >&5
16835
16836	ac_cv_lib_dl_dlopen=no
16837fi
16838
16839rm -f core conftest.err conftest.$ac_objext \
16840      conftest$ac_exeext conftest.$ac_ext
16841LIBS=$ac_check_lib_save_LIBS
16842fi
16843{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16844echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16845if test $ac_cv_lib_dl_dlopen = yes; then
16846  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16847else
16848  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16849echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16850if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16851  echo $ECHO_N "(cached) $ECHO_C" >&6
16852else
16853  ac_check_lib_save_LIBS=$LIBS
16854LIBS="-lsvld  $LIBS"
16855cat >conftest.$ac_ext <<_ACEOF
16856/* confdefs.h.  */
16857_ACEOF
16858cat confdefs.h >>conftest.$ac_ext
16859cat >>conftest.$ac_ext <<_ACEOF
16860/* end confdefs.h.  */
16861
16862/* Override any GCC internal prototype to avoid an error.
16863   Use char because int might match the return type of a GCC
16864   builtin and then its argument prototype would still apply.  */
16865#ifdef __cplusplus
16866extern "C"
16867#endif
16868char dlopen ();
16869int
16870main ()
16871{
16872return dlopen ();
16873  ;
16874  return 0;
16875}
16876_ACEOF
16877rm -f conftest.$ac_objext conftest$ac_exeext
16878if { (ac_try="$ac_link"
16879case "(($ac_try" in
16880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16881  *) ac_try_echo=$ac_try;;
16882esac
16883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16884  (eval "$ac_link") 2>conftest.er1
16885  ac_status=$?
16886  grep -v '^ *+' conftest.er1 >conftest.err
16887  rm -f conftest.er1
16888  cat conftest.err >&5
16889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890  (exit $ac_status); } &&
16891	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16892  { (case "(($ac_try" in
16893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16894  *) ac_try_echo=$ac_try;;
16895esac
16896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16897  (eval "$ac_try") 2>&5
16898  ac_status=$?
16899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900  (exit $ac_status); }; } &&
16901	 { ac_try='test -s conftest$ac_exeext'
16902  { (case "(($ac_try" in
16903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904  *) ac_try_echo=$ac_try;;
16905esac
16906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907  (eval "$ac_try") 2>&5
16908  ac_status=$?
16909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910  (exit $ac_status); }; }; then
16911  ac_cv_lib_svld_dlopen=yes
16912else
16913  echo "$as_me: failed program was:" >&5
16914sed 's/^/| /' conftest.$ac_ext >&5
16915
16916	ac_cv_lib_svld_dlopen=no
16917fi
16918
16919rm -f core conftest.err conftest.$ac_objext \
16920      conftest$ac_exeext conftest.$ac_ext
16921LIBS=$ac_check_lib_save_LIBS
16922fi
16923{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16924echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16925if test $ac_cv_lib_svld_dlopen = yes; then
16926  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16927else
16928  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16929echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16930if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16931  echo $ECHO_N "(cached) $ECHO_C" >&6
16932else
16933  ac_check_lib_save_LIBS=$LIBS
16934LIBS="-ldld  $LIBS"
16935cat >conftest.$ac_ext <<_ACEOF
16936/* confdefs.h.  */
16937_ACEOF
16938cat confdefs.h >>conftest.$ac_ext
16939cat >>conftest.$ac_ext <<_ACEOF
16940/* end confdefs.h.  */
16941
16942/* Override any GCC internal prototype to avoid an error.
16943   Use char because int might match the return type of a GCC
16944   builtin and then its argument prototype would still apply.  */
16945#ifdef __cplusplus
16946extern "C"
16947#endif
16948char dld_link ();
16949int
16950main ()
16951{
16952return dld_link ();
16953  ;
16954  return 0;
16955}
16956_ACEOF
16957rm -f conftest.$ac_objext conftest$ac_exeext
16958if { (ac_try="$ac_link"
16959case "(($ac_try" in
16960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961  *) ac_try_echo=$ac_try;;
16962esac
16963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964  (eval "$ac_link") 2>conftest.er1
16965  ac_status=$?
16966  grep -v '^ *+' conftest.er1 >conftest.err
16967  rm -f conftest.er1
16968  cat conftest.err >&5
16969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970  (exit $ac_status); } &&
16971	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16972  { (case "(($ac_try" in
16973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16974  *) ac_try_echo=$ac_try;;
16975esac
16976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16977  (eval "$ac_try") 2>&5
16978  ac_status=$?
16979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980  (exit $ac_status); }; } &&
16981	 { ac_try='test -s conftest$ac_exeext'
16982  { (case "(($ac_try" in
16983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984  *) ac_try_echo=$ac_try;;
16985esac
16986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987  (eval "$ac_try") 2>&5
16988  ac_status=$?
16989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990  (exit $ac_status); }; }; then
16991  ac_cv_lib_dld_dld_link=yes
16992else
16993  echo "$as_me: failed program was:" >&5
16994sed 's/^/| /' conftest.$ac_ext >&5
16995
16996	ac_cv_lib_dld_dld_link=no
16997fi
16998
16999rm -f core conftest.err conftest.$ac_objext \
17000      conftest$ac_exeext conftest.$ac_ext
17001LIBS=$ac_check_lib_save_LIBS
17002fi
17003{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17004echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17005if test $ac_cv_lib_dld_dld_link = yes; then
17006  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17007fi
17008
17009
17010fi
17011
17012
17013fi
17014
17015
17016fi
17017
17018
17019fi
17020
17021
17022fi
17023
17024    ;;
17025  esac
17026
17027  if test "x$lt_cv_dlopen" != xno; then
17028    enable_dlopen=yes
17029  else
17030    enable_dlopen=no
17031  fi
17032
17033  case $lt_cv_dlopen in
17034  dlopen)
17035    save_CPPFLAGS="$CPPFLAGS"
17036    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17037
17038    save_LDFLAGS="$LDFLAGS"
17039    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17040
17041    save_LIBS="$LIBS"
17042    LIBS="$lt_cv_dlopen_libs $LIBS"
17043
17044    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17045echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17046if test "${lt_cv_dlopen_self+set}" = set; then
17047  echo $ECHO_N "(cached) $ECHO_C" >&6
17048else
17049  	  if test "$cross_compiling" = yes; then :
17050  lt_cv_dlopen_self=cross
17051else
17052  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17053  lt_status=$lt_dlunknown
17054  cat > conftest.$ac_ext <<EOF
17055#line 17055 "configure"
17056#include "confdefs.h"
17057
17058#if HAVE_DLFCN_H
17059#include <dlfcn.h>
17060#endif
17061
17062#include <stdio.h>
17063
17064#ifdef RTLD_GLOBAL
17065#  define LT_DLGLOBAL		RTLD_GLOBAL
17066#else
17067#  ifdef DL_GLOBAL
17068#    define LT_DLGLOBAL		DL_GLOBAL
17069#  else
17070#    define LT_DLGLOBAL		0
17071#  endif
17072#endif
17073
17074/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17075   find out it does not work in some platform. */
17076#ifndef LT_DLLAZY_OR_NOW
17077#  ifdef RTLD_LAZY
17078#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17079#  else
17080#    ifdef DL_LAZY
17081#      define LT_DLLAZY_OR_NOW		DL_LAZY
17082#    else
17083#      ifdef RTLD_NOW
17084#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17085#      else
17086#        ifdef DL_NOW
17087#          define LT_DLLAZY_OR_NOW	DL_NOW
17088#        else
17089#          define LT_DLLAZY_OR_NOW	0
17090#        endif
17091#      endif
17092#    endif
17093#  endif
17094#endif
17095
17096#ifdef __cplusplus
17097extern "C" void exit (int);
17098#endif
17099
17100void fnord() { int i=42;}
17101int main ()
17102{
17103  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17104  int status = $lt_dlunknown;
17105
17106  if (self)
17107    {
17108      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17109      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17110      /* dlclose (self); */
17111    }
17112  else
17113    puts (dlerror ());
17114
17115    exit (status);
17116}
17117EOF
17118  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17119  (eval $ac_link) 2>&5
17120  ac_status=$?
17121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17123    (./conftest; exit; ) >&5 2>/dev/null
17124    lt_status=$?
17125    case x$lt_status in
17126      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17127      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17128      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17129    esac
17130  else :
17131    # compilation failed
17132    lt_cv_dlopen_self=no
17133  fi
17134fi
17135rm -fr conftest*
17136
17137
17138fi
17139{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17140echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17141
17142    if test "x$lt_cv_dlopen_self" = xyes; then
17143      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17144      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17145echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17146if test "${lt_cv_dlopen_self_static+set}" = set; then
17147  echo $ECHO_N "(cached) $ECHO_C" >&6
17148else
17149  	  if test "$cross_compiling" = yes; then :
17150  lt_cv_dlopen_self_static=cross
17151else
17152  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17153  lt_status=$lt_dlunknown
17154  cat > conftest.$ac_ext <<EOF
17155#line 17155 "configure"
17156#include "confdefs.h"
17157
17158#if HAVE_DLFCN_H
17159#include <dlfcn.h>
17160#endif
17161
17162#include <stdio.h>
17163
17164#ifdef RTLD_GLOBAL
17165#  define LT_DLGLOBAL		RTLD_GLOBAL
17166#else
17167#  ifdef DL_GLOBAL
17168#    define LT_DLGLOBAL		DL_GLOBAL
17169#  else
17170#    define LT_DLGLOBAL		0
17171#  endif
17172#endif
17173
17174/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17175   find out it does not work in some platform. */
17176#ifndef LT_DLLAZY_OR_NOW
17177#  ifdef RTLD_LAZY
17178#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17179#  else
17180#    ifdef DL_LAZY
17181#      define LT_DLLAZY_OR_NOW		DL_LAZY
17182#    else
17183#      ifdef RTLD_NOW
17184#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17185#      else
17186#        ifdef DL_NOW
17187#          define LT_DLLAZY_OR_NOW	DL_NOW
17188#        else
17189#          define LT_DLLAZY_OR_NOW	0
17190#        endif
17191#      endif
17192#    endif
17193#  endif
17194#endif
17195
17196#ifdef __cplusplus
17197extern "C" void exit (int);
17198#endif
17199
17200void fnord() { int i=42;}
17201int main ()
17202{
17203  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17204  int status = $lt_dlunknown;
17205
17206  if (self)
17207    {
17208      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17209      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17210      /* dlclose (self); */
17211    }
17212  else
17213    puts (dlerror ());
17214
17215    exit (status);
17216}
17217EOF
17218  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17219  (eval $ac_link) 2>&5
17220  ac_status=$?
17221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17223    (./conftest; exit; ) >&5 2>/dev/null
17224    lt_status=$?
17225    case x$lt_status in
17226      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17227      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17228      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17229    esac
17230  else :
17231    # compilation failed
17232    lt_cv_dlopen_self_static=no
17233  fi
17234fi
17235rm -fr conftest*
17236
17237
17238fi
17239{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17240echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17241    fi
17242
17243    CPPFLAGS="$save_CPPFLAGS"
17244    LDFLAGS="$save_LDFLAGS"
17245    LIBS="$save_LIBS"
17246    ;;
17247  esac
17248
17249  case $lt_cv_dlopen_self in
17250  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17251  *) enable_dlopen_self=unknown ;;
17252  esac
17253
17254  case $lt_cv_dlopen_self_static in
17255  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17256  *) enable_dlopen_self_static=unknown ;;
17257  esac
17258fi
17259
17260
17261# Report which library types will actually be built
17262{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17263echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17264{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17265echo "${ECHO_T}$can_build_shared" >&6; }
17266
17267{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17268echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17269test "$can_build_shared" = "no" && enable_shared=no
17270
17271# On AIX, shared libraries and static libraries use the same namespace, and
17272# are all built from PIC.
17273case $host_os in
17274aix3*)
17275  test "$enable_shared" = yes && enable_static=no
17276  if test -n "$RANLIB"; then
17277    archive_cmds="$archive_cmds~\$RANLIB \$lib"
17278    postinstall_cmds='$RANLIB $lib'
17279  fi
17280  ;;
17281
17282aix4* | aix5*)
17283  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17284    test "$enable_shared" = yes && enable_static=no
17285  fi
17286    ;;
17287esac
17288{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17289echo "${ECHO_T}$enable_shared" >&6; }
17290
17291{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17292echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17293# Make sure either enable_shared or enable_static is yes.
17294test "$enable_shared" = yes || enable_static=yes
17295{ echo "$as_me:$LINENO: result: $enable_static" >&5
17296echo "${ECHO_T}$enable_static" >&6; }
17297
17298# The else clause should only fire when bootstrapping the
17299# libtool distribution, otherwise you forgot to ship ltmain.sh
17300# with your package, and you will get complaints that there are
17301# no rules to generate ltmain.sh.
17302if test -f "$ltmain"; then
17303  # See if we are running on zsh, and set the options which allow our commands through
17304  # without removal of \ escapes.
17305  if test -n "${ZSH_VERSION+set}" ; then
17306    setopt NO_GLOB_SUBST
17307  fi
17308  # Now quote all the things that may contain metacharacters while being
17309  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17310  # variables and quote the copies for generation of the libtool script.
17311  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17312    SED SHELL STRIP \
17313    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17314    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17315    deplibs_check_method reload_flag reload_cmds need_locks \
17316    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17317    lt_cv_sys_global_symbol_to_c_name_address \
17318    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17319    old_postinstall_cmds old_postuninstall_cmds \
17320    compiler \
17321    CC \
17322    LD \
17323    lt_prog_compiler_wl \
17324    lt_prog_compiler_pic \
17325    lt_prog_compiler_static \
17326    lt_prog_compiler_no_builtin_flag \
17327    export_dynamic_flag_spec \
17328    thread_safe_flag_spec \
17329    whole_archive_flag_spec \
17330    enable_shared_with_static_runtimes \
17331    old_archive_cmds \
17332    old_archive_from_new_cmds \
17333    predep_objects \
17334    postdep_objects \
17335    predeps \
17336    postdeps \
17337    compiler_lib_search_path \
17338    archive_cmds \
17339    archive_expsym_cmds \
17340    postinstall_cmds \
17341    postuninstall_cmds \
17342    old_archive_from_expsyms_cmds \
17343    allow_undefined_flag \
17344    no_undefined_flag \
17345    export_symbols_cmds \
17346    hardcode_libdir_flag_spec \
17347    hardcode_libdir_flag_spec_ld \
17348    hardcode_libdir_separator \
17349    hardcode_automatic \
17350    module_cmds \
17351    module_expsym_cmds \
17352    lt_cv_prog_compiler_c_o \
17353    exclude_expsyms \
17354    include_expsyms; do
17355
17356    case $var in
17357    old_archive_cmds | \
17358    old_archive_from_new_cmds | \
17359    archive_cmds | \
17360    archive_expsym_cmds | \
17361    module_cmds | \
17362    module_expsym_cmds | \
17363    old_archive_from_expsyms_cmds | \
17364    export_symbols_cmds | \
17365    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17366    postinstall_cmds | postuninstall_cmds | \
17367    old_postinstall_cmds | old_postuninstall_cmds | \
17368    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17369      # Double-quote double-evaled strings.
17370      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17371      ;;
17372    *)
17373      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17374      ;;
17375    esac
17376  done
17377
17378  case $lt_echo in
17379  *'\$0 --fallback-echo"')
17380    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17381    ;;
17382  esac
17383
17384cfgfile="${ofile}T"
17385  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17386  $rm -f "$cfgfile"
17387  { echo "$as_me:$LINENO: creating $ofile" >&5
17388echo "$as_me: creating $ofile" >&6;}
17389
17390  cat <<__EOF__ >> "$cfgfile"
17391#! $SHELL
17392
17393# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17394# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17395# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17396#
17397# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17398# Free Software Foundation, Inc.
17399#
17400# This file is part of GNU Libtool:
17401# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17402#
17403# This program is free software; you can redistribute it and/or modify
17404# it under the terms of the GNU General Public License as published by
17405# the Free Software Foundation; either version 2 of the License, or
17406# (at your option) any later version.
17407#
17408# This program is distributed in the hope that it will be useful, but
17409# WITHOUT ANY WARRANTY; without even the implied warranty of
17410# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17411# General Public License for more details.
17412#
17413# You should have received a copy of the GNU General Public License
17414# along with this program; if not, write to the Free Software
17415# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17416#
17417# As a special exception to the GNU General Public License, if you
17418# distribute this file as part of a program that contains a
17419# configuration script generated by Autoconf, you may include it under
17420# the same distribution terms that you use for the rest of that program.
17421
17422# A sed program that does not truncate output.
17423SED=$lt_SED
17424
17425# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17426Xsed="$SED -e 1s/^X//"
17427
17428# The HP-UX ksh and POSIX shell print the target directory to stdout
17429# if CDPATH is set.
17430(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17431
17432# The names of the tagged configurations supported by this script.
17433available_tags=
17434
17435# ### BEGIN LIBTOOL CONFIG
17436
17437# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17438
17439# Shell to use when invoking shell scripts.
17440SHELL=$lt_SHELL
17441
17442# Whether or not to build shared libraries.
17443build_libtool_libs=$enable_shared
17444
17445# Whether or not to build static libraries.
17446build_old_libs=$enable_static
17447
17448# Whether or not to add -lc for building shared libraries.
17449build_libtool_need_lc=$archive_cmds_need_lc
17450
17451# Whether or not to disallow shared libs when runtime libs are static
17452allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17453
17454# Whether or not to optimize for fast installation.
17455fast_install=$enable_fast_install
17456
17457# The host system.
17458host_alias=$host_alias
17459host=$host
17460host_os=$host_os
17461
17462# The build system.
17463build_alias=$build_alias
17464build=$build
17465build_os=$build_os
17466
17467# An echo program that does not interpret backslashes.
17468echo=$lt_echo
17469
17470# The archiver.
17471AR=$lt_AR
17472AR_FLAGS=$lt_AR_FLAGS
17473
17474# A C compiler.
17475LTCC=$lt_LTCC
17476
17477# LTCC compiler flags.
17478LTCFLAGS=$lt_LTCFLAGS
17479
17480# A language-specific compiler.
17481CC=$lt_compiler
17482
17483# Is the compiler the GNU C compiler?
17484with_gcc=$GCC
17485
17486# An ERE matcher.
17487EGREP=$lt_EGREP
17488
17489# The linker used to build libraries.
17490LD=$lt_LD
17491
17492# Whether we need hard or soft links.
17493LN_S=$lt_LN_S
17494
17495# A BSD-compatible nm program.
17496NM=$lt_NM
17497
17498# A symbol stripping program
17499STRIP=$lt_STRIP
17500
17501# Used to examine libraries when file_magic_cmd begins "file"
17502MAGIC_CMD=$MAGIC_CMD
17503
17504# Used on cygwin: DLL creation program.
17505DLLTOOL="$DLLTOOL"
17506
17507# Used on cygwin: object dumper.
17508OBJDUMP="$OBJDUMP"
17509
17510# Used on cygwin: assembler.
17511AS="$AS"
17512
17513# The name of the directory that contains temporary libtool files.
17514objdir=$objdir
17515
17516# How to create reloadable object files.
17517reload_flag=$lt_reload_flag
17518reload_cmds=$lt_reload_cmds
17519
17520# How to pass a linker flag through the compiler.
17521wl=$lt_lt_prog_compiler_wl
17522
17523# Object file suffix (normally "o").
17524objext="$ac_objext"
17525
17526# Old archive suffix (normally "a").
17527libext="$libext"
17528
17529# Shared library suffix (normally ".so").
17530shrext_cmds='$shrext_cmds'
17531
17532# Executable file suffix (normally "").
17533exeext="$exeext"
17534
17535# Additional compiler flags for building library objects.
17536pic_flag=$lt_lt_prog_compiler_pic
17537pic_mode=$pic_mode
17538
17539# What is the maximum length of a command?
17540max_cmd_len=$lt_cv_sys_max_cmd_len
17541
17542# Does compiler simultaneously support -c and -o options?
17543compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17544
17545# Must we lock files when doing compilation?
17546need_locks=$lt_need_locks
17547
17548# Do we need the lib prefix for modules?
17549need_lib_prefix=$need_lib_prefix
17550
17551# Do we need a version for libraries?
17552need_version=$need_version
17553
17554# Whether dlopen is supported.
17555dlopen_support=$enable_dlopen
17556
17557# Whether dlopen of programs is supported.
17558dlopen_self=$enable_dlopen_self
17559
17560# Whether dlopen of statically linked programs is supported.
17561dlopen_self_static=$enable_dlopen_self_static
17562
17563# Compiler flag to prevent dynamic linking.
17564link_static_flag=$lt_lt_prog_compiler_static
17565
17566# Compiler flag to turn off builtin functions.
17567no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17568
17569# Compiler flag to allow reflexive dlopens.
17570export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17571
17572# Compiler flag to generate shared objects directly from archives.
17573whole_archive_flag_spec=$lt_whole_archive_flag_spec
17574
17575# Compiler flag to generate thread-safe objects.
17576thread_safe_flag_spec=$lt_thread_safe_flag_spec
17577
17578# Library versioning type.
17579version_type=$version_type
17580
17581# Format of library name prefix.
17582libname_spec=$lt_libname_spec
17583
17584# List of archive names.  First name is the real one, the rest are links.
17585# The last name is the one that the linker finds with -lNAME.
17586library_names_spec=$lt_library_names_spec
17587
17588# The coded name of the library, if different from the real name.
17589soname_spec=$lt_soname_spec
17590
17591# Commands used to build and install an old-style archive.
17592RANLIB=$lt_RANLIB
17593old_archive_cmds=$lt_old_archive_cmds
17594old_postinstall_cmds=$lt_old_postinstall_cmds
17595old_postuninstall_cmds=$lt_old_postuninstall_cmds
17596
17597# Create an old-style archive from a shared archive.
17598old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17599
17600# Create a temporary old-style archive to link instead of a shared archive.
17601old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17602
17603# Commands used to build and install a shared archive.
17604archive_cmds=$lt_archive_cmds
17605archive_expsym_cmds=$lt_archive_expsym_cmds
17606postinstall_cmds=$lt_postinstall_cmds
17607postuninstall_cmds=$lt_postuninstall_cmds
17608
17609# Commands used to build a loadable module (assumed same as above if empty)
17610module_cmds=$lt_module_cmds
17611module_expsym_cmds=$lt_module_expsym_cmds
17612
17613# Commands to strip libraries.
17614old_striplib=$lt_old_striplib
17615striplib=$lt_striplib
17616
17617# Dependencies to place before the objects being linked to create a
17618# shared library.
17619predep_objects=$lt_predep_objects
17620
17621# Dependencies to place after the objects being linked to create a
17622# shared library.
17623postdep_objects=$lt_postdep_objects
17624
17625# Dependencies to place before the objects being linked to create a
17626# shared library.
17627predeps=$lt_predeps
17628
17629# Dependencies to place after the objects being linked to create a
17630# shared library.
17631postdeps=$lt_postdeps
17632
17633# The library search path used internally by the compiler when linking
17634# a shared library.
17635compiler_lib_search_path=$lt_compiler_lib_search_path
17636
17637# Method to check whether dependent libraries are shared objects.
17638deplibs_check_method=$lt_deplibs_check_method
17639
17640# Command to use when deplibs_check_method == file_magic.
17641file_magic_cmd=$lt_file_magic_cmd
17642
17643# Flag that allows shared libraries with undefined symbols to be built.
17644allow_undefined_flag=$lt_allow_undefined_flag
17645
17646# Flag that forces no undefined symbols.
17647no_undefined_flag=$lt_no_undefined_flag
17648
17649# Commands used to finish a libtool library installation in a directory.
17650finish_cmds=$lt_finish_cmds
17651
17652# Same as above, but a single script fragment to be evaled but not shown.
17653finish_eval=$lt_finish_eval
17654
17655# Take the output of nm and produce a listing of raw symbols and C names.
17656global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17657
17658# Transform the output of nm in a proper C declaration
17659global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17660
17661# Transform the output of nm in a C name address pair
17662global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17663
17664# This is the shared library runtime path variable.
17665runpath_var=$runpath_var
17666
17667# This is the shared library path variable.
17668shlibpath_var=$shlibpath_var
17669
17670# Is shlibpath searched before the hard-coded library search path?
17671shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17672
17673# How to hardcode a shared library path into an executable.
17674hardcode_action=$hardcode_action
17675
17676# Whether we should hardcode library paths into libraries.
17677hardcode_into_libs=$hardcode_into_libs
17678
17679# Flag to hardcode \$libdir into a binary during linking.
17680# This must work even if \$libdir does not exist.
17681hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17682
17683# If ld is used when linking, flag to hardcode \$libdir into
17684# a binary during linking. This must work even if \$libdir does
17685# not exist.
17686hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17687
17688# Whether we need a single -rpath flag with a separated argument.
17689hardcode_libdir_separator=$lt_hardcode_libdir_separator
17690
17691# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17692# resulting binary.
17693hardcode_direct=$hardcode_direct
17694
17695# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17696# resulting binary.
17697hardcode_minus_L=$hardcode_minus_L
17698
17699# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17700# the resulting binary.
17701hardcode_shlibpath_var=$hardcode_shlibpath_var
17702
17703# Set to yes if building a shared library automatically hardcodes DIR into the library
17704# and all subsequent libraries and executables linked against it.
17705hardcode_automatic=$hardcode_automatic
17706
17707# Variables whose values should be saved in libtool wrapper scripts and
17708# restored at relink time.
17709variables_saved_for_relink="$variables_saved_for_relink"
17710
17711# Whether libtool must link a program against all its dependency libraries.
17712link_all_deplibs=$link_all_deplibs
17713
17714# Compile-time system search path for libraries
17715sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17716
17717# Run-time system search path for libraries
17718sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17719
17720# Fix the shell variable \$srcfile for the compiler.
17721fix_srcfile_path="$fix_srcfile_path"
17722
17723# Set to yes if exported symbols are required.
17724always_export_symbols=$always_export_symbols
17725
17726# The commands to list exported symbols.
17727export_symbols_cmds=$lt_export_symbols_cmds
17728
17729# The commands to extract the exported symbol list from a shared archive.
17730extract_expsyms_cmds=$lt_extract_expsyms_cmds
17731
17732# Symbols that should not be listed in the preloaded symbols.
17733exclude_expsyms=$lt_exclude_expsyms
17734
17735# Symbols that must always be exported.
17736include_expsyms=$lt_include_expsyms
17737
17738# ### END LIBTOOL CONFIG
17739
17740__EOF__
17741
17742
17743  case $host_os in
17744  aix3*)
17745    cat <<\EOF >> "$cfgfile"
17746
17747# AIX sometimes has problems with the GCC collect2 program.  For some
17748# reason, if we set the COLLECT_NAMES environment variable, the problems
17749# vanish in a puff of smoke.
17750if test "X${COLLECT_NAMES+set}" != Xset; then
17751  COLLECT_NAMES=
17752  export COLLECT_NAMES
17753fi
17754EOF
17755    ;;
17756  esac
17757
17758  # We use sed instead of cat because bash on DJGPP gets confused if
17759  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17760  # text mode, it properly converts lines to CR/LF.  This bash problem
17761  # is reportedly fixed, but why not run on old versions too?
17762  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17763
17764  mv -f "$cfgfile" "$ofile" || \
17765    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17766  chmod +x "$ofile"
17767
17768else
17769  # If there is no Makefile yet, we rely on a make rule to execute
17770  # `config.status --recheck' to rerun these tests and create the
17771  # libtool script then.
17772  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17773  if test -f "$ltmain_in"; then
17774    test -f Makefile && make "$ltmain"
17775  fi
17776fi
17777
17778
17779ac_ext=c
17780ac_cpp='$CPP $CPPFLAGS'
17781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17783ac_compiler_gnu=$ac_cv_c_compiler_gnu
17784
17785CC="$lt_save_CC"
17786
17787
17788# Check whether --with-tags was given.
17789if test "${with_tags+set}" = set; then
17790  withval=$with_tags; tagnames="$withval"
17791fi
17792
17793
17794if test -f "$ltmain" && test -n "$tagnames"; then
17795  if test ! -f "${ofile}"; then
17796    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17797echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17798  fi
17799
17800  if test -z "$LTCC"; then
17801    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17802    if test -z "$LTCC"; then
17803      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17804echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17805    else
17806      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17807echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17808    fi
17809  fi
17810  if test -z "$LTCFLAGS"; then
17811    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17812  fi
17813
17814  # Extract list of available tagged configurations in $ofile.
17815  # Note that this assumes the entire list is on one line.
17816  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17817
17818  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17819  for tagname in $tagnames; do
17820    IFS="$lt_save_ifs"
17821    # Check whether tagname contains only valid characters
17822    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17823    "") ;;
17824    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17825echo "$as_me: error: invalid tag name: $tagname" >&2;}
17826   { (exit 1); exit 1; }; }
17827	;;
17828    esac
17829
17830    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17831    then
17832      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17833echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17834   { (exit 1); exit 1; }; }
17835    fi
17836
17837    # Update the list of available tags.
17838    if test -n "$tagname"; then
17839      echo appending configuration tag \"$tagname\" to $ofile
17840
17841      case $tagname in
17842      CXX)
17843	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17844	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17845	    (test "X$CXX" != "Xg++"))) ; then
17846	  ac_ext=cpp
17847ac_cpp='$CXXCPP $CPPFLAGS'
17848ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17849ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17850ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17851
17852
17853
17854
17855archive_cmds_need_lc_CXX=no
17856allow_undefined_flag_CXX=
17857always_export_symbols_CXX=no
17858archive_expsym_cmds_CXX=
17859export_dynamic_flag_spec_CXX=
17860hardcode_direct_CXX=no
17861hardcode_libdir_flag_spec_CXX=
17862hardcode_libdir_flag_spec_ld_CXX=
17863hardcode_libdir_separator_CXX=
17864hardcode_minus_L_CXX=no
17865hardcode_shlibpath_var_CXX=unsupported
17866hardcode_automatic_CXX=no
17867module_cmds_CXX=
17868module_expsym_cmds_CXX=
17869link_all_deplibs_CXX=unknown
17870old_archive_cmds_CXX=$old_archive_cmds
17871no_undefined_flag_CXX=
17872whole_archive_flag_spec_CXX=
17873enable_shared_with_static_runtimes_CXX=no
17874
17875# Dependencies to place before and after the object being linked:
17876predep_objects_CXX=
17877postdep_objects_CXX=
17878predeps_CXX=
17879postdeps_CXX=
17880compiler_lib_search_path_CXX=
17881
17882# Source file extension for C++ test sources.
17883ac_ext=cpp
17884
17885# Object file extension for compiled C++ test sources.
17886objext=o
17887objext_CXX=$objext
17888
17889# Code to be used in simple compile tests
17890lt_simple_compile_test_code="int some_variable = 0;\n"
17891
17892# Code to be used in simple link tests
17893lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17894
17895# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17896
17897# If no C compiler was specified, use CC.
17898LTCC=${LTCC-"$CC"}
17899
17900# If no C compiler flags were specified, use CFLAGS.
17901LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17902
17903# Allow CC to be a program name with arguments.
17904compiler=$CC
17905
17906
17907# save warnings/boilerplate of simple test code
17908ac_outfile=conftest.$ac_objext
17909printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17910eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17911_lt_compiler_boilerplate=`cat conftest.err`
17912$rm conftest*
17913
17914ac_outfile=conftest.$ac_objext
17915printf "$lt_simple_link_test_code" >conftest.$ac_ext
17916eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17917_lt_linker_boilerplate=`cat conftest.err`
17918$rm conftest*
17919
17920
17921# Allow CC to be a program name with arguments.
17922lt_save_CC=$CC
17923lt_save_LD=$LD
17924lt_save_GCC=$GCC
17925GCC=$GXX
17926lt_save_with_gnu_ld=$with_gnu_ld
17927lt_save_path_LD=$lt_cv_path_LD
17928if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17929  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17930else
17931  $as_unset lt_cv_prog_gnu_ld
17932fi
17933if test -n "${lt_cv_path_LDCXX+set}"; then
17934  lt_cv_path_LD=$lt_cv_path_LDCXX
17935else
17936  $as_unset lt_cv_path_LD
17937fi
17938test -z "${LDCXX+set}" || LD=$LDCXX
17939CC=${CXX-"c++"}
17940compiler=$CC
17941compiler_CXX=$CC
17942for cc_temp in $compiler""; do
17943  case $cc_temp in
17944    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17945    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17946    \-*) ;;
17947    *) break;;
17948  esac
17949done
17950cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17951
17952
17953# We don't want -fno-exception wen compiling C++ code, so set the
17954# no_builtin_flag separately
17955if test "$GXX" = yes; then
17956  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17957else
17958  lt_prog_compiler_no_builtin_flag_CXX=
17959fi
17960
17961if test "$GXX" = yes; then
17962  # Set up default GNU C++ configuration
17963
17964
17965# Check whether --with-gnu-ld was given.
17966if test "${with_gnu_ld+set}" = set; then
17967  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17968else
17969  with_gnu_ld=no
17970fi
17971
17972ac_prog=ld
17973if test "$GCC" = yes; then
17974  # Check if gcc -print-prog-name=ld gives a path.
17975  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17976echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17977  case $host in
17978  *-*-mingw*)
17979    # gcc leaves a trailing carriage return which upsets mingw
17980    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17981  *)
17982    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17983  esac
17984  case $ac_prog in
17985    # Accept absolute paths.
17986    [\\/]* | ?:[\\/]*)
17987      re_direlt='/[^/][^/]*/\.\./'
17988      # Canonicalize the pathname of ld
17989      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17990      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17991	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17992      done
17993      test -z "$LD" && LD="$ac_prog"
17994      ;;
17995  "")
17996    # If it fails, then pretend we aren't using GCC.
17997    ac_prog=ld
17998    ;;
17999  *)
18000    # If it is relative, then search for the first ld in PATH.
18001    with_gnu_ld=unknown
18002    ;;
18003  esac
18004elif test "$with_gnu_ld" = yes; then
18005  { echo "$as_me:$LINENO: checking for GNU ld" >&5
18006echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18007else
18008  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18009echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18010fi
18011if test "${lt_cv_path_LD+set}" = set; then
18012  echo $ECHO_N "(cached) $ECHO_C" >&6
18013else
18014  if test -z "$LD"; then
18015  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18016  for ac_dir in $PATH; do
18017    IFS="$lt_save_ifs"
18018    test -z "$ac_dir" && ac_dir=.
18019    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18020      lt_cv_path_LD="$ac_dir/$ac_prog"
18021      # Check to see if the program is GNU ld.  I'd rather use --version,
18022      # but apparently some variants of GNU ld only accept -v.
18023      # Break only if it was the GNU/non-GNU ld that we prefer.
18024      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18025      *GNU* | *'with BFD'*)
18026	test "$with_gnu_ld" != no && break
18027	;;
18028      *)
18029	test "$with_gnu_ld" != yes && break
18030	;;
18031      esac
18032    fi
18033  done
18034  IFS="$lt_save_ifs"
18035else
18036  lt_cv_path_LD="$LD" # Let the user override the test with a path.
18037fi
18038fi
18039
18040LD="$lt_cv_path_LD"
18041if test -n "$LD"; then
18042  { echo "$as_me:$LINENO: result: $LD" >&5
18043echo "${ECHO_T}$LD" >&6; }
18044else
18045  { echo "$as_me:$LINENO: result: no" >&5
18046echo "${ECHO_T}no" >&6; }
18047fi
18048test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18049echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18050   { (exit 1); exit 1; }; }
18051{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18052echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18053if test "${lt_cv_prog_gnu_ld+set}" = set; then
18054  echo $ECHO_N "(cached) $ECHO_C" >&6
18055else
18056  # I'd rather use --version here, but apparently some GNU lds only accept -v.
18057case `$LD -v 2>&1 </dev/null` in
18058*GNU* | *'with BFD'*)
18059  lt_cv_prog_gnu_ld=yes
18060  ;;
18061*)
18062  lt_cv_prog_gnu_ld=no
18063  ;;
18064esac
18065fi
18066{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18067echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18068with_gnu_ld=$lt_cv_prog_gnu_ld
18069
18070
18071
18072  # Check if GNU C++ uses GNU ld as the underlying linker, since the
18073  # archiving commands below assume that GNU ld is being used.
18074  if test "$with_gnu_ld" = yes; then
18075    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18076    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'
18077
18078    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18079    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18080
18081    # If archive_cmds runs LD, not CC, wlarc should be empty
18082    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18083    #     investigate it a little bit more. (MM)
18084    wlarc='${wl}'
18085
18086    # ancient GNU ld didn't support --whole-archive et. al.
18087    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18088	grep 'no-whole-archive' > /dev/null; then
18089      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18090    else
18091      whole_archive_flag_spec_CXX=
18092    fi
18093  else
18094    with_gnu_ld=no
18095    wlarc=
18096
18097    # A generic and very simple default shared library creation
18098    # command for GNU C++ for the case where it uses the native
18099    # linker, instead of GNU ld.  If possible, this setting should
18100    # overridden to take advantage of the native linker features on
18101    # the platform it is being used on.
18102    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18103  fi
18104
18105  # Commands to make compiler produce verbose output that lists
18106  # what "hidden" libraries, object files and flags are used when
18107  # linking a shared library.
18108  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18109
18110else
18111  GXX=no
18112  with_gnu_ld=no
18113  wlarc=
18114fi
18115
18116# PORTME: fill in a description of your system's C++ link characteristics
18117{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18118echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18119ld_shlibs_CXX=yes
18120case $host_os in
18121  aix3*)
18122    # FIXME: insert proper C++ library support
18123    ld_shlibs_CXX=no
18124    ;;
18125  aix4* | aix5*)
18126    if test "$host_cpu" = ia64; then
18127      # On IA64, the linker does run time linking by default, so we don't
18128      # have to do anything special.
18129      aix_use_runtimelinking=no
18130      exp_sym_flag='-Bexport'
18131      no_entry_flag=""
18132    else
18133      aix_use_runtimelinking=no
18134
18135      # Test if we are trying to use run time linking or normal
18136      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18137      # need to do runtime linking.
18138      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18139	for ld_flag in $LDFLAGS; do
18140	  case $ld_flag in
18141	  *-brtl*)
18142	    aix_use_runtimelinking=yes
18143	    break
18144	    ;;
18145	  esac
18146	done
18147	;;
18148      esac
18149
18150      exp_sym_flag='-bexport'
18151      no_entry_flag='-bnoentry'
18152    fi
18153
18154    # When large executables or shared objects are built, AIX ld can
18155    # have problems creating the table of contents.  If linking a library
18156    # or program results in "error TOC overflow" add -mminimal-toc to
18157    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18158    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18159
18160    archive_cmds_CXX=''
18161    hardcode_direct_CXX=yes
18162    hardcode_libdir_separator_CXX=':'
18163    link_all_deplibs_CXX=yes
18164
18165    if test "$GXX" = yes; then
18166      case $host_os in aix4.[012]|aix4.[012].*)
18167      # We only want to do this on AIX 4.2 and lower, the check
18168      # below for broken collect2 doesn't work under 4.3+
18169	collect2name=`${CC} -print-prog-name=collect2`
18170	if test -f "$collect2name" && \
18171	   strings "$collect2name" | grep resolve_lib_name >/dev/null
18172	then
18173	  # We have reworked collect2
18174	  hardcode_direct_CXX=yes
18175	else
18176	  # We have old collect2
18177	  hardcode_direct_CXX=unsupported
18178	  # It fails to find uninstalled libraries when the uninstalled
18179	  # path is not listed in the libpath.  Setting hardcode_minus_L
18180	  # to unsupported forces relinking
18181	  hardcode_minus_L_CXX=yes
18182	  hardcode_libdir_flag_spec_CXX='-L$libdir'
18183	  hardcode_libdir_separator_CXX=
18184	fi
18185	;;
18186      esac
18187      shared_flag='-shared'
18188      if test "$aix_use_runtimelinking" = yes; then
18189	shared_flag="$shared_flag "'${wl}-G'
18190      fi
18191    else
18192      # not using gcc
18193      if test "$host_cpu" = ia64; then
18194	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18195	# chokes on -Wl,-G. The following line is correct:
18196	shared_flag='-G'
18197      else
18198	if test "$aix_use_runtimelinking" = yes; then
18199	  shared_flag='${wl}-G'
18200	else
18201	  shared_flag='${wl}-bM:SRE'
18202	fi
18203      fi
18204    fi
18205
18206    # It seems that -bexpall does not export symbols beginning with
18207    # underscore (_), so it is better to generate a list of symbols to export.
18208    always_export_symbols_CXX=yes
18209    if test "$aix_use_runtimelinking" = yes; then
18210      # Warning - without using the other runtime loading flags (-brtl),
18211      # -berok will link without error, but may produce a broken library.
18212      allow_undefined_flag_CXX='-berok'
18213      # Determine the default libpath from the value encoded in an empty executable.
18214      cat >conftest.$ac_ext <<_ACEOF
18215/* confdefs.h.  */
18216_ACEOF
18217cat confdefs.h >>conftest.$ac_ext
18218cat >>conftest.$ac_ext <<_ACEOF
18219/* end confdefs.h.  */
18220
18221int
18222main ()
18223{
18224
18225  ;
18226  return 0;
18227}
18228_ACEOF
18229rm -f conftest.$ac_objext conftest$ac_exeext
18230if { (ac_try="$ac_link"
18231case "(($ac_try" in
18232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18233  *) ac_try_echo=$ac_try;;
18234esac
18235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18236  (eval "$ac_link") 2>conftest.er1
18237  ac_status=$?
18238  grep -v '^ *+' conftest.er1 >conftest.err
18239  rm -f conftest.er1
18240  cat conftest.err >&5
18241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242  (exit $ac_status); } &&
18243	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18244  { (case "(($ac_try" in
18245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18246  *) ac_try_echo=$ac_try;;
18247esac
18248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18249  (eval "$ac_try") 2>&5
18250  ac_status=$?
18251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252  (exit $ac_status); }; } &&
18253	 { ac_try='test -s conftest$ac_exeext'
18254  { (case "(($ac_try" in
18255  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18256  *) ac_try_echo=$ac_try;;
18257esac
18258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18259  (eval "$ac_try") 2>&5
18260  ac_status=$?
18261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262  (exit $ac_status); }; }; then
18263
18264aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18265}'`
18266# Check for a 64-bit object if we didn't find anything.
18267if 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; }
18268}'`; fi
18269else
18270  echo "$as_me: failed program was:" >&5
18271sed 's/^/| /' conftest.$ac_ext >&5
18272
18273
18274fi
18275
18276rm -f core conftest.err conftest.$ac_objext \
18277      conftest$ac_exeext conftest.$ac_ext
18278if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18279
18280      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18281
18282      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"
18283     else
18284      if test "$host_cpu" = ia64; then
18285	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18286	allow_undefined_flag_CXX="-z nodefs"
18287	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"
18288      else
18289	# Determine the default libpath from the value encoded in an empty executable.
18290	cat >conftest.$ac_ext <<_ACEOF
18291/* confdefs.h.  */
18292_ACEOF
18293cat confdefs.h >>conftest.$ac_ext
18294cat >>conftest.$ac_ext <<_ACEOF
18295/* end confdefs.h.  */
18296
18297int
18298main ()
18299{
18300
18301  ;
18302  return 0;
18303}
18304_ACEOF
18305rm -f conftest.$ac_objext conftest$ac_exeext
18306if { (ac_try="$ac_link"
18307case "(($ac_try" in
18308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18309  *) ac_try_echo=$ac_try;;
18310esac
18311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18312  (eval "$ac_link") 2>conftest.er1
18313  ac_status=$?
18314  grep -v '^ *+' conftest.er1 >conftest.err
18315  rm -f conftest.er1
18316  cat conftest.err >&5
18317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318  (exit $ac_status); } &&
18319	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18320  { (case "(($ac_try" in
18321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322  *) ac_try_echo=$ac_try;;
18323esac
18324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18325  (eval "$ac_try") 2>&5
18326  ac_status=$?
18327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328  (exit $ac_status); }; } &&
18329	 { ac_try='test -s conftest$ac_exeext'
18330  { (case "(($ac_try" in
18331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332  *) ac_try_echo=$ac_try;;
18333esac
18334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18335  (eval "$ac_try") 2>&5
18336  ac_status=$?
18337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338  (exit $ac_status); }; }; then
18339
18340aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18341}'`
18342# Check for a 64-bit object if we didn't find anything.
18343if 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; }
18344}'`; fi
18345else
18346  echo "$as_me: failed program was:" >&5
18347sed 's/^/| /' conftest.$ac_ext >&5
18348
18349
18350fi
18351
18352rm -f core conftest.err conftest.$ac_objext \
18353      conftest$ac_exeext conftest.$ac_ext
18354if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18355
18356	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18357	# Warning - without using the other run time loading flags,
18358	# -berok will link without error, but may produce a broken library.
18359	no_undefined_flag_CXX=' ${wl}-bernotok'
18360	allow_undefined_flag_CXX=' ${wl}-berok'
18361	# Exported symbols can be pulled into shared objects from archives
18362	whole_archive_flag_spec_CXX='$convenience'
18363	archive_cmds_need_lc_CXX=yes
18364	# This is similar to how AIX traditionally builds its shared libraries.
18365	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'
18366      fi
18367    fi
18368    ;;
18369
18370  beos*)
18371    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18372      allow_undefined_flag_CXX=unsupported
18373      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18374      # support --undefined.  This deserves some investigation.  FIXME
18375      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18376    else
18377      ld_shlibs_CXX=no
18378    fi
18379    ;;
18380
18381  chorus*)
18382    case $cc_basename in
18383      *)
18384	# FIXME: insert proper C++ library support
18385	ld_shlibs_CXX=no
18386	;;
18387    esac
18388    ;;
18389
18390  cygwin* | mingw* | pw32*)
18391    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18392    # as there is no search path for DLLs.
18393    hardcode_libdir_flag_spec_CXX='-L$libdir'
18394    allow_undefined_flag_CXX=unsupported
18395    always_export_symbols_CXX=no
18396    enable_shared_with_static_runtimes_CXX=yes
18397
18398    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18399      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'
18400      # If the export-symbols file already is a .def file (1st line
18401      # is EXPORTS), use it as is; otherwise, prepend...
18402      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18403	cp $export_symbols $output_objdir/$soname.def;
18404      else
18405	echo EXPORTS > $output_objdir/$soname.def;
18406	cat $export_symbols >> $output_objdir/$soname.def;
18407      fi~
18408      $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'
18409    else
18410      ld_shlibs_CXX=no
18411    fi
18412  ;;
18413      darwin* | rhapsody*)
18414        case $host_os in
18415        rhapsody* | darwin1.[012])
18416         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18417         ;;
18418       *) # Darwin 1.3 on
18419         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18420           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18421         else
18422           case ${MACOSX_DEPLOYMENT_TARGET} in
18423             10.[012])
18424               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18425               ;;
18426             10.*)
18427               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18428               ;;
18429           esac
18430         fi
18431         ;;
18432        esac
18433      archive_cmds_need_lc_CXX=no
18434      hardcode_direct_CXX=no
18435      hardcode_automatic_CXX=yes
18436      hardcode_shlibpath_var_CXX=unsupported
18437      whole_archive_flag_spec_CXX=''
18438      link_all_deplibs_CXX=yes
18439
18440    if test "$GXX" = yes ; then
18441      lt_int_apple_cc_single_mod=no
18442      output_verbose_link_cmd='echo'
18443      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18444       lt_int_apple_cc_single_mod=yes
18445      fi
18446      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18447       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18448      else
18449          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'
18450        fi
18451        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18452        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18453          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18454            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}'
18455          else
18456            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}'
18457          fi
18458            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}'
18459      else
18460      case $cc_basename in
18461        xlc*)
18462         output_verbose_link_cmd='echo'
18463          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'
18464          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18465          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18466          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}'
18467          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}'
18468          ;;
18469       *)
18470         ld_shlibs_CXX=no
18471          ;;
18472      esac
18473      fi
18474        ;;
18475
18476  dgux*)
18477    case $cc_basename in
18478      ec++*)
18479	# FIXME: insert proper C++ library support
18480	ld_shlibs_CXX=no
18481	;;
18482      ghcx*)
18483	# Green Hills C++ Compiler
18484	# FIXME: insert proper C++ library support
18485	ld_shlibs_CXX=no
18486	;;
18487      *)
18488	# FIXME: insert proper C++ library support
18489	ld_shlibs_CXX=no
18490	;;
18491    esac
18492    ;;
18493  freebsd[12]*)
18494    # C++ shared libraries reported to be fairly broken before switch to ELF
18495    ld_shlibs_CXX=no
18496    ;;
18497  freebsd-elf*)
18498    archive_cmds_need_lc_CXX=no
18499    ;;
18500  freebsd* | kfreebsd*-gnu | dragonfly*)
18501    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18502    # conventions
18503    ld_shlibs_CXX=yes
18504    ;;
18505  gnu*)
18506    ;;
18507  hpux9*)
18508    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18509    hardcode_libdir_separator_CXX=:
18510    export_dynamic_flag_spec_CXX='${wl}-E'
18511    hardcode_direct_CXX=yes
18512    hardcode_minus_L_CXX=yes # Not in the search PATH,
18513				# but as the default
18514				# location of the library.
18515
18516    case $cc_basename in
18517    CC*)
18518      # FIXME: insert proper C++ library support
18519      ld_shlibs_CXX=no
18520      ;;
18521    aCC*)
18522      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'
18523      # Commands to make compiler produce verbose output that lists
18524      # what "hidden" libraries, object files and flags are used when
18525      # linking a shared library.
18526      #
18527      # There doesn't appear to be a way to prevent this compiler from
18528      # explicitly linking system object files so we need to strip them
18529      # from the output so that they don't get included in the library
18530      # dependencies.
18531      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'
18532      ;;
18533    *)
18534      if test "$GXX" = yes; then
18535        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'
18536      else
18537        # FIXME: insert proper C++ library support
18538        ld_shlibs_CXX=no
18539      fi
18540      ;;
18541    esac
18542    ;;
18543  hpux10*|hpux11*)
18544    if test $with_gnu_ld = no; then
18545      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18546      hardcode_libdir_separator_CXX=:
18547
18548      case $host_cpu in
18549      hppa*64*|ia64*)
18550	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18551        ;;
18552      *)
18553	export_dynamic_flag_spec_CXX='${wl}-E'
18554        ;;
18555      esac
18556    fi
18557    case $host_cpu in
18558    hppa*64*|ia64*)
18559      hardcode_direct_CXX=no
18560      hardcode_shlibpath_var_CXX=no
18561      ;;
18562    *)
18563      hardcode_direct_CXX=yes
18564      hardcode_minus_L_CXX=yes # Not in the search PATH,
18565					      # but as the default
18566					      # location of the library.
18567      ;;
18568    esac
18569
18570    case $cc_basename in
18571      CC*)
18572	# FIXME: insert proper C++ library support
18573	ld_shlibs_CXX=no
18574	;;
18575      aCC*)
18576	case $host_cpu in
18577	hppa*64*)
18578	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18579	  ;;
18580	ia64*)
18581	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18582	  ;;
18583	*)
18584	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18585	  ;;
18586	esac
18587	# Commands to make compiler produce verbose output that lists
18588	# what "hidden" libraries, object files and flags are used when
18589	# linking a shared library.
18590	#
18591	# There doesn't appear to be a way to prevent this compiler from
18592	# explicitly linking system object files so we need to strip them
18593	# from the output so that they don't get included in the library
18594	# dependencies.
18595	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'
18596	;;
18597      *)
18598	if test "$GXX" = yes; then
18599	  if test $with_gnu_ld = no; then
18600	    case $host_cpu in
18601	    hppa*64*)
18602	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18603	      ;;
18604	    ia64*)
18605	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18606	      ;;
18607	    *)
18608	      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'
18609	      ;;
18610	    esac
18611	  fi
18612	else
18613	  # FIXME: insert proper C++ library support
18614	  ld_shlibs_CXX=no
18615	fi
18616	;;
18617    esac
18618    ;;
18619  interix3*)
18620    hardcode_direct_CXX=no
18621    hardcode_shlibpath_var_CXX=no
18622    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18623    export_dynamic_flag_spec_CXX='${wl}-E'
18624    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18625    # Instead, shared libraries are loaded at an image base (0x10000000 by
18626    # default) and relocated if they conflict, which is a slow very memory
18627    # consuming and fragmenting process.  To avoid this, we pick a random,
18628    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18629    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18630    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'
18631    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'
18632    ;;
18633  irix5* | irix6*)
18634    case $cc_basename in
18635      CC*)
18636	# SGI C++
18637	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'
18638
18639	# Archives containing C++ object files must be created using
18640	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18641	# necessary to make sure instantiated templates are included
18642	# in the archive.
18643	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18644	;;
18645      *)
18646	if test "$GXX" = yes; then
18647	  if test "$with_gnu_ld" = no; then
18648	    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'
18649	  else
18650	    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'
18651	  fi
18652	fi
18653	link_all_deplibs_CXX=yes
18654	;;
18655    esac
18656    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18657    hardcode_libdir_separator_CXX=:
18658    ;;
18659  linux*)
18660    case $cc_basename in
18661      KCC*)
18662	# Kuck and Associates, Inc. (KAI) C++ Compiler
18663
18664	# KCC will only create a shared library if the output file
18665	# ends with ".so" (or ".sl" for HP-UX), so rename the library
18666	# to its proper name (with version) after linking.
18667	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'
18668	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'
18669	# Commands to make compiler produce verbose output that lists
18670	# what "hidden" libraries, object files and flags are used when
18671	# linking a shared library.
18672	#
18673	# There doesn't appear to be a way to prevent this compiler from
18674	# explicitly linking system object files so we need to strip them
18675	# from the output so that they don't get included in the library
18676	# dependencies.
18677	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'
18678
18679	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18680	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18681
18682	# Archives containing C++ object files must be created using
18683	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
18684	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18685	;;
18686      icpc*)
18687	# Intel C++
18688	with_gnu_ld=yes
18689	# version 8.0 and above of icpc choke on multiply defined symbols
18690	# if we add $predep_objects and $postdep_objects, however 7.1 and
18691	# earlier do not add the objects themselves.
18692	case `$CC -V 2>&1` in
18693	*"Version 7."*)
18694  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18695  	  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'
18696	  ;;
18697	*)  # Version 8.0 or newer
18698	  tmp_idyn=
18699	  case $host_cpu in
18700	    ia64*) tmp_idyn=' -i_dynamic';;
18701	  esac
18702  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18703	  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'
18704	  ;;
18705	esac
18706	archive_cmds_need_lc_CXX=no
18707	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18708	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18709	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18710	;;
18711      pgCC*)
18712        # Portland Group C++ compiler
18713	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18714  	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'
18715
18716	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18717	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18718	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'
18719        ;;
18720      cxx*)
18721	# Compaq C++
18722	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18723	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'
18724
18725	runpath_var=LD_RUN_PATH
18726	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18727	hardcode_libdir_separator_CXX=:
18728
18729	# Commands to make compiler produce verbose output that lists
18730	# what "hidden" libraries, object files and flags are used when
18731	# linking a shared library.
18732	#
18733	# There doesn't appear to be a way to prevent this compiler from
18734	# explicitly linking system object files so we need to strip them
18735	# from the output so that they don't get included in the library
18736	# dependencies.
18737	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'
18738	;;
18739    esac
18740    ;;
18741  lynxos*)
18742    # FIXME: insert proper C++ library support
18743    ld_shlibs_CXX=no
18744    ;;
18745  m88k*)
18746    # FIXME: insert proper C++ library support
18747    ld_shlibs_CXX=no
18748    ;;
18749  mvs*)
18750    case $cc_basename in
18751      cxx*)
18752	# FIXME: insert proper C++ library support
18753	ld_shlibs_CXX=no
18754	;;
18755      *)
18756	# FIXME: insert proper C++ library support
18757	ld_shlibs_CXX=no
18758	;;
18759    esac
18760    ;;
18761  netbsd*)
18762    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18763      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18764      wlarc=
18765      hardcode_libdir_flag_spec_CXX='-R$libdir'
18766      hardcode_direct_CXX=yes
18767      hardcode_shlibpath_var_CXX=no
18768    fi
18769    # Workaround some broken pre-1.5 toolchains
18770    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18771    ;;
18772  openbsd2*)
18773    # C++ shared libraries are fairly broken
18774    ld_shlibs_CXX=no
18775    ;;
18776  openbsd*)
18777    hardcode_direct_CXX=yes
18778    hardcode_shlibpath_var_CXX=no
18779    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18780    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18781    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18782      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18783      export_dynamic_flag_spec_CXX='${wl}-E'
18784      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18785    fi
18786    output_verbose_link_cmd='echo'
18787    ;;
18788  osf3*)
18789    case $cc_basename in
18790      KCC*)
18791	# Kuck and Associates, Inc. (KAI) C++ Compiler
18792
18793	# KCC will only create a shared library if the output file
18794	# ends with ".so" (or ".sl" for HP-UX), so rename the library
18795	# to its proper name (with version) after linking.
18796	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'
18797
18798	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18799	hardcode_libdir_separator_CXX=:
18800
18801	# Archives containing C++ object files must be created using
18802	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
18803	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18804
18805	;;
18806      RCC*)
18807	# Rational C++ 2.4.1
18808	# FIXME: insert proper C++ library support
18809	ld_shlibs_CXX=no
18810	;;
18811      cxx*)
18812	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18813	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'
18814
18815	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18816	hardcode_libdir_separator_CXX=:
18817
18818	# Commands to make compiler produce verbose output that lists
18819	# what "hidden" libraries, object files and flags are used when
18820	# linking a shared library.
18821	#
18822	# There doesn't appear to be a way to prevent this compiler from
18823	# explicitly linking system object files so we need to strip them
18824	# from the output so that they don't get included in the library
18825	# dependencies.
18826	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'
18827	;;
18828      *)
18829	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18830	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18831	  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'
18832
18833	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18834	  hardcode_libdir_separator_CXX=:
18835
18836	  # Commands to make compiler produce verbose output that lists
18837	  # what "hidden" libraries, object files and flags are used when
18838	  # linking a shared library.
18839	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18840
18841	else
18842	  # FIXME: insert proper C++ library support
18843	  ld_shlibs_CXX=no
18844	fi
18845	;;
18846    esac
18847    ;;
18848  osf4* | osf5*)
18849    case $cc_basename in
18850      KCC*)
18851	# Kuck and Associates, Inc. (KAI) C++ Compiler
18852
18853	# KCC will only create a shared library if the output file
18854	# ends with ".so" (or ".sl" for HP-UX), so rename the library
18855	# to its proper name (with version) after linking.
18856	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'
18857
18858	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18859	hardcode_libdir_separator_CXX=:
18860
18861	# Archives containing C++ object files must be created using
18862	# the KAI C++ compiler.
18863	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18864	;;
18865      RCC*)
18866	# Rational C++ 2.4.1
18867	# FIXME: insert proper C++ library support
18868	ld_shlibs_CXX=no
18869	;;
18870      cxx*)
18871	allow_undefined_flag_CXX=' -expect_unresolved \*'
18872	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'
18873	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18874	  echo "-hidden">> $lib.exp~
18875	  $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~
18876	  $rm $lib.exp'
18877
18878	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18879	hardcode_libdir_separator_CXX=:
18880
18881	# Commands to make compiler produce verbose output that lists
18882	# what "hidden" libraries, object files and flags are used when
18883	# linking a shared library.
18884	#
18885	# There doesn't appear to be a way to prevent this compiler from
18886	# explicitly linking system object files so we need to strip them
18887	# from the output so that they don't get included in the library
18888	# dependencies.
18889	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'
18890	;;
18891      *)
18892	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18893	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18894	 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'
18895
18896	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18897	  hardcode_libdir_separator_CXX=:
18898
18899	  # Commands to make compiler produce verbose output that lists
18900	  # what "hidden" libraries, object files and flags are used when
18901	  # linking a shared library.
18902	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18903
18904	else
18905	  # FIXME: insert proper C++ library support
18906	  ld_shlibs_CXX=no
18907	fi
18908	;;
18909    esac
18910    ;;
18911  psos*)
18912    # FIXME: insert proper C++ library support
18913    ld_shlibs_CXX=no
18914    ;;
18915  sunos4*)
18916    case $cc_basename in
18917      CC*)
18918	# Sun C++ 4.x
18919	# FIXME: insert proper C++ library support
18920	ld_shlibs_CXX=no
18921	;;
18922      lcc*)
18923	# Lucid
18924	# FIXME: insert proper C++ library support
18925	ld_shlibs_CXX=no
18926	;;
18927      *)
18928	# FIXME: insert proper C++ library support
18929	ld_shlibs_CXX=no
18930	;;
18931    esac
18932    ;;
18933  solaris*)
18934    case $cc_basename in
18935      CC*)
18936	# Sun C++ 4.2, 5.x and Centerline C++
18937        archive_cmds_need_lc_CXX=yes
18938	no_undefined_flag_CXX=' -zdefs'
18939	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18940	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18941	$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'
18942
18943	hardcode_libdir_flag_spec_CXX='-R$libdir'
18944	hardcode_shlibpath_var_CXX=no
18945	case $host_os in
18946	  solaris2.[0-5] | solaris2.[0-5].*) ;;
18947	  *)
18948	    # The C++ compiler is used as linker so we must use $wl
18949	    # flag to pass the commands to the underlying system
18950	    # linker. We must also pass each convience library through
18951	    # to the system linker between allextract/defaultextract.
18952	    # The C++ compiler will combine linker options so we
18953	    # cannot just pass the convience library names through
18954	    # without $wl.
18955	    # Supported since Solaris 2.6 (maybe 2.5.1?)
18956	    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'
18957	    ;;
18958	esac
18959	link_all_deplibs_CXX=yes
18960
18961	output_verbose_link_cmd='echo'
18962
18963	# Archives containing C++ object files must be created using
18964	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
18965	# necessary to make sure instantiated templates are included
18966	# in the archive.
18967	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18968	;;
18969      gcx*)
18970	# Green Hills C++ Compiler
18971	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18972
18973	# The C++ compiler must be used to create the archive.
18974	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18975	;;
18976      *)
18977	# GNU C++ compiler with Solaris linker
18978	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18979	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18980	  if $CC --version | grep -v '^2\.7' > /dev/null; then
18981	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18982	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18983		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18984
18985	    # Commands to make compiler produce verbose output that lists
18986	    # what "hidden" libraries, object files and flags are used when
18987	    # linking a shared library.
18988	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18989	  else
18990	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
18991	    # platform.
18992	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18993	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18994		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18995
18996	    # Commands to make compiler produce verbose output that lists
18997	    # what "hidden" libraries, object files and flags are used when
18998	    # linking a shared library.
18999	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19000	  fi
19001
19002	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19003	fi
19004	;;
19005    esac
19006    ;;
19007  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19008    no_undefined_flag_CXX='${wl}-z,text'
19009    archive_cmds_need_lc_CXX=no
19010    hardcode_shlibpath_var_CXX=no
19011    runpath_var='LD_RUN_PATH'
19012
19013    case $cc_basename in
19014      CC*)
19015	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19016	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19017	;;
19018      *)
19019	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19020	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19021	;;
19022    esac
19023    ;;
19024  sysv5* | sco3.2v5* | sco5v6*)
19025    # Note: We can NOT use -z defs as we might desire, because we do not
19026    # link with -lc, and that would cause any symbols used from libc to
19027    # always be unresolved, which means just about no library would
19028    # ever link correctly.  If we're not using GNU ld we use -z text
19029    # though, which does catch some bad symbols but isn't as heavy-handed
19030    # as -z defs.
19031    # For security reasons, it is highly recommended that you always
19032    # use absolute paths for naming shared libraries, and exclude the
19033    # DT_RUNPATH tag from executables and libraries.  But doing so
19034    # requires that you compile everything twice, which is a pain.
19035    # So that behaviour is only enabled if SCOABSPATH is set to a
19036    # non-empty value in the environment.  Most likely only useful for
19037    # creating official distributions of packages.
19038    # This is a hack until libtool officially supports absolute path
19039    # names for shared libraries.
19040    no_undefined_flag_CXX='${wl}-z,text'
19041    allow_undefined_flag_CXX='${wl}-z,nodefs'
19042    archive_cmds_need_lc_CXX=no
19043    hardcode_shlibpath_var_CXX=no
19044    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19045    hardcode_libdir_separator_CXX=':'
19046    link_all_deplibs_CXX=yes
19047    export_dynamic_flag_spec_CXX='${wl}-Bexport'
19048    runpath_var='LD_RUN_PATH'
19049
19050    case $cc_basename in
19051      CC*)
19052	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19053	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19054	;;
19055      *)
19056	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19057	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19058	;;
19059    esac
19060    ;;
19061  tandem*)
19062    case $cc_basename in
19063      NCC*)
19064	# NonStop-UX NCC 3.20
19065	# FIXME: insert proper C++ library support
19066	ld_shlibs_CXX=no
19067	;;
19068      *)
19069	# FIXME: insert proper C++ library support
19070	ld_shlibs_CXX=no
19071	;;
19072    esac
19073    ;;
19074  vxworks*)
19075    # FIXME: insert proper C++ library support
19076    ld_shlibs_CXX=no
19077    ;;
19078  *)
19079    # FIXME: insert proper C++ library support
19080    ld_shlibs_CXX=no
19081    ;;
19082esac
19083{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19084echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19085test "$ld_shlibs_CXX" = no && can_build_shared=no
19086
19087GCC_CXX="$GXX"
19088LD_CXX="$LD"
19089
19090
19091cat > conftest.$ac_ext <<EOF
19092class Foo
19093{
19094public:
19095  Foo (void) { a = 0; }
19096private:
19097  int a;
19098};
19099EOF
19100
19101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19102  (eval $ac_compile) 2>&5
19103  ac_status=$?
19104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105  (exit $ac_status); }; then
19106  # Parse the compiler output and extract the necessary
19107  # objects, libraries and library flags.
19108
19109  # Sentinel used to keep track of whether or not we are before
19110  # the conftest object file.
19111  pre_test_object_deps_done=no
19112
19113  # The `*' in the case matches for architectures that use `case' in
19114  # $output_verbose_cmd can trigger glob expansion during the loop
19115  # eval without this substitution.
19116  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19117
19118  for p in `eval $output_verbose_link_cmd`; do
19119    case $p in
19120
19121    -L* | -R* | -l*)
19122       # Some compilers place space between "-{L,R}" and the path.
19123       # Remove the space.
19124       if test $p = "-L" \
19125	  || test $p = "-R"; then
19126	 prev=$p
19127	 continue
19128       else
19129	 prev=
19130       fi
19131
19132       if test "$pre_test_object_deps_done" = no; then
19133	 case $p in
19134	 -L* | -R*)
19135	   # Internal compiler library paths should come after those
19136	   # provided the user.  The postdeps already come after the
19137	   # user supplied libs so there is no need to process them.
19138	   if test -z "$compiler_lib_search_path_CXX"; then
19139	     compiler_lib_search_path_CXX="${prev}${p}"
19140	   else
19141	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19142	   fi
19143	   ;;
19144	 # The "-l" case would never come before the object being
19145	 # linked, so don't bother handling this case.
19146	 esac
19147       else
19148	 if test -z "$postdeps_CXX"; then
19149	   postdeps_CXX="${prev}${p}"
19150	 else
19151	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19152	 fi
19153       fi
19154       ;;
19155
19156    *.$objext)
19157       # This assumes that the test object file only shows up
19158       # once in the compiler output.
19159       if test "$p" = "conftest.$objext"; then
19160	 pre_test_object_deps_done=yes
19161	 continue
19162       fi
19163
19164       if test "$pre_test_object_deps_done" = no; then
19165	 if test -z "$predep_objects_CXX"; then
19166	   predep_objects_CXX="$p"
19167	 else
19168	   predep_objects_CXX="$predep_objects_CXX $p"
19169	 fi
19170       else
19171	 if test -z "$postdep_objects_CXX"; then
19172	   postdep_objects_CXX="$p"
19173	 else
19174	   postdep_objects_CXX="$postdep_objects_CXX $p"
19175	 fi
19176       fi
19177       ;;
19178
19179    *) ;; # Ignore the rest.
19180
19181    esac
19182  done
19183
19184  # Clean up.
19185  rm -f a.out a.exe
19186else
19187  echo "libtool.m4: error: problem compiling CXX test program"
19188fi
19189
19190$rm -f confest.$objext
19191
19192# PORTME: override above test on systems where it is broken
19193case $host_os in
19194interix3*)
19195  # Interix 3.5 installs completely hosed .la files for C++, so rather than
19196  # hack all around it, let's just trust "g++" to DTRT.
19197  predep_objects_CXX=
19198  postdep_objects_CXX=
19199  postdeps_CXX=
19200  ;;
19201
19202solaris*)
19203  case $cc_basename in
19204  CC*)
19205    # Adding this requires a known-good setup of shared libraries for
19206    # Sun compiler versions before 5.6, else PIC objects from an old
19207    # archive will be linked into the output, leading to subtle bugs.
19208    postdeps_CXX='-lCstd -lCrun'
19209    ;;
19210  esac
19211  ;;
19212esac
19213
19214
19215case " $postdeps_CXX " in
19216*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19217esac
19218
19219lt_prog_compiler_wl_CXX=
19220lt_prog_compiler_pic_CXX=
19221lt_prog_compiler_static_CXX=
19222
19223{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19224echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19225
19226  # C++ specific cases for pic, static, wl, etc.
19227  if test "$GXX" = yes; then
19228    lt_prog_compiler_wl_CXX='-Wl,'
19229    lt_prog_compiler_static_CXX='-static'
19230
19231    case $host_os in
19232    aix*)
19233      # All AIX code is PIC.
19234      if test "$host_cpu" = ia64; then
19235	# AIX 5 now supports IA64 processor
19236	lt_prog_compiler_static_CXX='-Bstatic'
19237      fi
19238      ;;
19239    amigaos*)
19240      # FIXME: we need at least 68020 code to build shared libraries, but
19241      # adding the `-m68020' flag to GCC prevents building anything better,
19242      # like `-m68040'.
19243      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19244      ;;
19245    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19246      # PIC is the default for these OSes.
19247      ;;
19248    mingw* | os2* | pw32*)
19249      # This hack is so that the source file can tell whether it is being
19250      # built for inclusion in a dll (and should export symbols for example).
19251      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19252      ;;
19253    darwin* | rhapsody*)
19254      # PIC is the default on this platform
19255      # Common symbols not allowed in MH_DYLIB files
19256      lt_prog_compiler_pic_CXX='-fno-common'
19257      ;;
19258    *djgpp*)
19259      # DJGPP does not support shared libraries at all
19260      lt_prog_compiler_pic_CXX=
19261      ;;
19262    interix3*)
19263      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19264      # Instead, we relocate shared libraries at runtime.
19265      ;;
19266    sysv4*MP*)
19267      if test -d /usr/nec; then
19268	lt_prog_compiler_pic_CXX=-Kconform_pic
19269      fi
19270      ;;
19271    hpux*)
19272      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19273      # not for PA HP-UX.
19274      case $host_cpu in
19275      hppa*64*|ia64*)
19276	;;
19277      *)
19278	lt_prog_compiler_pic_CXX='-fPIC'
19279	;;
19280      esac
19281      ;;
19282    *)
19283      lt_prog_compiler_pic_CXX='-fPIC'
19284      ;;
19285    esac
19286  else
19287    case $host_os in
19288      aix4* | aix5*)
19289	# All AIX code is PIC.
19290	if test "$host_cpu" = ia64; then
19291	  # AIX 5 now supports IA64 processor
19292	  lt_prog_compiler_static_CXX='-Bstatic'
19293	else
19294	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19295	fi
19296	;;
19297      chorus*)
19298	case $cc_basename in
19299	cxch68*)
19300	  # Green Hills C++ Compiler
19301	  # _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"
19302	  ;;
19303	esac
19304	;;
19305       darwin*)
19306         # PIC is the default on this platform
19307         # Common symbols not allowed in MH_DYLIB files
19308         case $cc_basename in
19309           xlc*)
19310           lt_prog_compiler_pic_CXX='-qnocommon'
19311           lt_prog_compiler_wl_CXX='-Wl,'
19312           ;;
19313         esac
19314       ;;
19315      dgux*)
19316	case $cc_basename in
19317	  ec++*)
19318	    lt_prog_compiler_pic_CXX='-KPIC'
19319	    ;;
19320	  ghcx*)
19321	    # Green Hills C++ Compiler
19322	    lt_prog_compiler_pic_CXX='-pic'
19323	    ;;
19324	  *)
19325	    ;;
19326	esac
19327	;;
19328      freebsd* | kfreebsd*-gnu | dragonfly*)
19329	# FreeBSD uses GNU C++
19330	;;
19331      hpux9* | hpux10* | hpux11*)
19332	case $cc_basename in
19333	  CC*)
19334	    lt_prog_compiler_wl_CXX='-Wl,'
19335	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19336	    if test "$host_cpu" != ia64; then
19337	      lt_prog_compiler_pic_CXX='+Z'
19338	    fi
19339	    ;;
19340	  aCC*)
19341	    lt_prog_compiler_wl_CXX='-Wl,'
19342	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19343	    case $host_cpu in
19344	    hppa*64*|ia64*)
19345	      # +Z the default
19346	      ;;
19347	    *)
19348	      lt_prog_compiler_pic_CXX='+Z'
19349	      ;;
19350	    esac
19351	    ;;
19352	  *)
19353	    ;;
19354	esac
19355	;;
19356      interix*)
19357	# This is c89, which is MS Visual C++ (no shared libs)
19358	# Anyone wants to do a port?
19359	;;
19360      irix5* | irix6* | nonstopux*)
19361	case $cc_basename in
19362	  CC*)
19363	    lt_prog_compiler_wl_CXX='-Wl,'
19364	    lt_prog_compiler_static_CXX='-non_shared'
19365	    # CC pic flag -KPIC is the default.
19366	    ;;
19367	  *)
19368	    ;;
19369	esac
19370	;;
19371      linux*)
19372	case $cc_basename in
19373	  KCC*)
19374	    # KAI C++ Compiler
19375	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19376	    lt_prog_compiler_pic_CXX='-fPIC'
19377	    ;;
19378	  icpc* | ecpc*)
19379	    # Intel C++
19380	    lt_prog_compiler_wl_CXX='-Wl,'
19381	    lt_prog_compiler_pic_CXX='-KPIC'
19382	    lt_prog_compiler_static_CXX='-static'
19383	    ;;
19384	  pgCC*)
19385	    # Portland Group C++ compiler.
19386	    lt_prog_compiler_wl_CXX='-Wl,'
19387	    lt_prog_compiler_pic_CXX='-fpic'
19388	    lt_prog_compiler_static_CXX='-Bstatic'
19389	    ;;
19390	  cxx*)
19391	    # Compaq C++
19392	    # Make sure the PIC flag is empty.  It appears that all Alpha
19393	    # Linux and Compaq Tru64 Unix objects are PIC.
19394	    lt_prog_compiler_pic_CXX=
19395	    lt_prog_compiler_static_CXX='-non_shared'
19396	    ;;
19397	  *)
19398	    ;;
19399	esac
19400	;;
19401      lynxos*)
19402	;;
19403      m88k*)
19404	;;
19405      mvs*)
19406	case $cc_basename in
19407	  cxx*)
19408	    lt_prog_compiler_pic_CXX='-W c,exportall'
19409	    ;;
19410	  *)
19411	    ;;
19412	esac
19413	;;
19414      netbsd*)
19415	;;
19416      osf3* | osf4* | osf5*)
19417	case $cc_basename in
19418	  KCC*)
19419	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19420	    ;;
19421	  RCC*)
19422	    # Rational C++ 2.4.1
19423	    lt_prog_compiler_pic_CXX='-pic'
19424	    ;;
19425	  cxx*)
19426	    # Digital/Compaq C++
19427	    lt_prog_compiler_wl_CXX='-Wl,'
19428	    # Make sure the PIC flag is empty.  It appears that all Alpha
19429	    # Linux and Compaq Tru64 Unix objects are PIC.
19430	    lt_prog_compiler_pic_CXX=
19431	    lt_prog_compiler_static_CXX='-non_shared'
19432	    ;;
19433	  *)
19434	    ;;
19435	esac
19436	;;
19437      psos*)
19438	;;
19439      solaris*)
19440	case $cc_basename in
19441	  CC*)
19442	    # Sun C++ 4.2, 5.x and Centerline C++
19443	    lt_prog_compiler_pic_CXX='-KPIC'
19444	    lt_prog_compiler_static_CXX='-Bstatic'
19445	    lt_prog_compiler_wl_CXX='-Qoption ld '
19446	    ;;
19447	  gcx*)
19448	    # Green Hills C++ Compiler
19449	    lt_prog_compiler_pic_CXX='-PIC'
19450	    ;;
19451	  *)
19452	    ;;
19453	esac
19454	;;
19455      sunos4*)
19456	case $cc_basename in
19457	  CC*)
19458	    # Sun C++ 4.x
19459	    lt_prog_compiler_pic_CXX='-pic'
19460	    lt_prog_compiler_static_CXX='-Bstatic'
19461	    ;;
19462	  lcc*)
19463	    # Lucid
19464	    lt_prog_compiler_pic_CXX='-pic'
19465	    ;;
19466	  *)
19467	    ;;
19468	esac
19469	;;
19470      tandem*)
19471	case $cc_basename in
19472	  NCC*)
19473	    # NonStop-UX NCC 3.20
19474	    lt_prog_compiler_pic_CXX='-KPIC'
19475	    ;;
19476	  *)
19477	    ;;
19478	esac
19479	;;
19480      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19481	case $cc_basename in
19482	  CC*)
19483	    lt_prog_compiler_wl_CXX='-Wl,'
19484	    lt_prog_compiler_pic_CXX='-KPIC'
19485	    lt_prog_compiler_static_CXX='-Bstatic'
19486	    ;;
19487	esac
19488	;;
19489      vxworks*)
19490	;;
19491      *)
19492	lt_prog_compiler_can_build_shared_CXX=no
19493	;;
19494    esac
19495  fi
19496
19497{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19498echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19499
19500#
19501# Check to make sure the PIC flag actually works.
19502#
19503if test -n "$lt_prog_compiler_pic_CXX"; then
19504
19505{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19506echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19507if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19508  echo $ECHO_N "(cached) $ECHO_C" >&6
19509else
19510  lt_prog_compiler_pic_works_CXX=no
19511  ac_outfile=conftest.$ac_objext
19512   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19513   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19514   # Insert the option either (1) after the last *FLAGS variable, or
19515   # (2) before a word containing "conftest.", or (3) at the end.
19516   # Note that $ac_compile itself does not contain backslashes and begins
19517   # with a dollar sign (not a hyphen), so the echo should work correctly.
19518   # The option is referenced via a variable to avoid confusing sed.
19519   lt_compile=`echo "$ac_compile" | $SED \
19520   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19521   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19522   -e 's:$: $lt_compiler_flag:'`
19523   (eval echo "\"\$as_me:19523: $lt_compile\"" >&5)
19524   (eval "$lt_compile" 2>conftest.err)
19525   ac_status=$?
19526   cat conftest.err >&5
19527   echo "$as_me:19527: \$? = $ac_status" >&5
19528   if (exit $ac_status) && test -s "$ac_outfile"; then
19529     # The compiler can only warn and ignore the option if not recognized
19530     # So say no if there are warnings other than the usual output.
19531     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19532     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19533     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19534       lt_prog_compiler_pic_works_CXX=yes
19535     fi
19536   fi
19537   $rm conftest*
19538
19539fi
19540{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19541echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19542
19543if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19544    case $lt_prog_compiler_pic_CXX in
19545     "" | " "*) ;;
19546     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19547     esac
19548else
19549    lt_prog_compiler_pic_CXX=
19550     lt_prog_compiler_can_build_shared_CXX=no
19551fi
19552
19553fi
19554case $host_os in
19555  # For platforms which do not support PIC, -DPIC is meaningless:
19556  *djgpp*)
19557    lt_prog_compiler_pic_CXX=
19558    ;;
19559  *)
19560    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19561    ;;
19562esac
19563
19564#
19565# Check to make sure the static flag actually works.
19566#
19567wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19568{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19569echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19570if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19571  echo $ECHO_N "(cached) $ECHO_C" >&6
19572else
19573  lt_prog_compiler_static_works_CXX=no
19574   save_LDFLAGS="$LDFLAGS"
19575   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19576   printf "$lt_simple_link_test_code" > conftest.$ac_ext
19577   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19578     # The linker can only warn and ignore the option if not recognized
19579     # So say no if there are warnings
19580     if test -s conftest.err; then
19581       # Append any errors to the config.log.
19582       cat conftest.err 1>&5
19583       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19584       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19585       if diff conftest.exp conftest.er2 >/dev/null; then
19586         lt_prog_compiler_static_works_CXX=yes
19587       fi
19588     else
19589       lt_prog_compiler_static_works_CXX=yes
19590     fi
19591   fi
19592   $rm conftest*
19593   LDFLAGS="$save_LDFLAGS"
19594
19595fi
19596{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19597echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19598
19599if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19600    :
19601else
19602    lt_prog_compiler_static_CXX=
19603fi
19604
19605
19606{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19607echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19608if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19609  echo $ECHO_N "(cached) $ECHO_C" >&6
19610else
19611  lt_cv_prog_compiler_c_o_CXX=no
19612   $rm -r conftest 2>/dev/null
19613   mkdir conftest
19614   cd conftest
19615   mkdir out
19616   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19617
19618   lt_compiler_flag="-o out/conftest2.$ac_objext"
19619   # Insert the option either (1) after the last *FLAGS variable, or
19620   # (2) before a word containing "conftest.", or (3) at the end.
19621   # Note that $ac_compile itself does not contain backslashes and begins
19622   # with a dollar sign (not a hyphen), so the echo should work correctly.
19623   lt_compile=`echo "$ac_compile" | $SED \
19624   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19625   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19626   -e 's:$: $lt_compiler_flag:'`
19627   (eval echo "\"\$as_me:19627: $lt_compile\"" >&5)
19628   (eval "$lt_compile" 2>out/conftest.err)
19629   ac_status=$?
19630   cat out/conftest.err >&5
19631   echo "$as_me:19631: \$? = $ac_status" >&5
19632   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19633   then
19634     # The compiler can only warn and ignore the option if not recognized
19635     # So say no if there are warnings
19636     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19637     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19638     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19639       lt_cv_prog_compiler_c_o_CXX=yes
19640     fi
19641   fi
19642   chmod u+w . 2>&5
19643   $rm conftest*
19644   # SGI C++ compiler will create directory out/ii_files/ for
19645   # template instantiation
19646   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19647   $rm out/* && rmdir out
19648   cd ..
19649   rmdir conftest
19650   $rm conftest*
19651
19652fi
19653{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19654echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19655
19656
19657hard_links="nottested"
19658if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19659  # do not overwrite the value of need_locks provided by the user
19660  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19661echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19662  hard_links=yes
19663  $rm conftest*
19664  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19665  touch conftest.a
19666  ln conftest.a conftest.b 2>&5 || hard_links=no
19667  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19668  { echo "$as_me:$LINENO: result: $hard_links" >&5
19669echo "${ECHO_T}$hard_links" >&6; }
19670  if test "$hard_links" = no; then
19671    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19672echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19673    need_locks=warn
19674  fi
19675else
19676  need_locks=no
19677fi
19678
19679{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19680echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19681
19682  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19683  case $host_os in
19684  aix4* | aix5*)
19685    # If we're using GNU nm, then we don't want the "-C" option.
19686    # -C means demangle to AIX nm, but means don't demangle with GNU nm
19687    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19688      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'
19689    else
19690      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'
19691    fi
19692    ;;
19693  pw32*)
19694    export_symbols_cmds_CXX="$ltdll_cmds"
19695  ;;
19696  cygwin* | mingw*)
19697    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'
19698  ;;
19699  *)
19700    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19701  ;;
19702  esac
19703
19704{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19705echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19706test "$ld_shlibs_CXX" = no && can_build_shared=no
19707
19708#
19709# Do we need to explicitly link libc?
19710#
19711case "x$archive_cmds_need_lc_CXX" in
19712x|xyes)
19713  # Assume -lc should be added
19714  archive_cmds_need_lc_CXX=yes
19715
19716  if test "$enable_shared" = yes && test "$GCC" = yes; then
19717    case $archive_cmds_CXX in
19718    *'~'*)
19719      # FIXME: we may have to deal with multi-command sequences.
19720      ;;
19721    '$CC '*)
19722      # Test whether the compiler implicitly links with -lc since on some
19723      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19724      # to ld, don't add -lc before -lgcc.
19725      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19726echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19727      $rm conftest*
19728      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19729
19730      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19731  (eval $ac_compile) 2>&5
19732  ac_status=$?
19733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734  (exit $ac_status); } 2>conftest.err; then
19735        soname=conftest
19736        lib=conftest
19737        libobjs=conftest.$ac_objext
19738        deplibs=
19739        wl=$lt_prog_compiler_wl_CXX
19740	pic_flag=$lt_prog_compiler_pic_CXX
19741        compiler_flags=-v
19742        linker_flags=-v
19743        verstring=
19744        output_objdir=.
19745        libname=conftest
19746        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19747        allow_undefined_flag_CXX=
19748        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19749  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19750  ac_status=$?
19751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752  (exit $ac_status); }
19753        then
19754	  archive_cmds_need_lc_CXX=no
19755        else
19756	  archive_cmds_need_lc_CXX=yes
19757        fi
19758        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19759      else
19760        cat conftest.err 1>&5
19761      fi
19762      $rm conftest*
19763      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19764echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19765      ;;
19766    esac
19767  fi
19768  ;;
19769esac
19770
19771{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19772echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19773library_names_spec=
19774libname_spec='lib$name'
19775soname_spec=
19776shrext_cmds=".so"
19777postinstall_cmds=
19778postuninstall_cmds=
19779finish_cmds=
19780finish_eval=
19781shlibpath_var=
19782shlibpath_overrides_runpath=unknown
19783version_type=none
19784dynamic_linker="$host_os ld.so"
19785sys_lib_dlsearch_path_spec="/lib /usr/lib"
19786if test "$GCC" = yes; then
19787  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19788  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19789    # if the path contains ";" then we assume it to be the separator
19790    # otherwise default to the standard path separator (i.e. ":") - it is
19791    # assumed that no part of a normal pathname contains ";" but that should
19792    # okay in the real world where ";" in dirpaths is itself problematic.
19793    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19794  else
19795    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19796  fi
19797else
19798  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19799fi
19800need_lib_prefix=unknown
19801hardcode_into_libs=no
19802
19803# when you set need_version to no, make sure it does not cause -set_version
19804# flags to be left without arguments
19805need_version=unknown
19806
19807case $host_os in
19808aix3*)
19809  version_type=linux
19810  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19811  shlibpath_var=LIBPATH
19812
19813  # AIX 3 has no versioning support, so we append a major version to the name.
19814  soname_spec='${libname}${release}${shared_ext}$major'
19815  ;;
19816
19817aix4* | aix5*)
19818  version_type=linux
19819  need_lib_prefix=no
19820  need_version=no
19821  hardcode_into_libs=yes
19822  if test "$host_cpu" = ia64; then
19823    # AIX 5 supports IA64
19824    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19825    shlibpath_var=LD_LIBRARY_PATH
19826  else
19827    # With GCC up to 2.95.x, collect2 would create an import file
19828    # for dependence libraries.  The import file would start with
19829    # the line `#! .'.  This would cause the generated library to
19830    # depend on `.', always an invalid library.  This was fixed in
19831    # development snapshots of GCC prior to 3.0.
19832    case $host_os in
19833      aix4 | aix4.[01] | aix4.[01].*)
19834      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19835	   echo ' yes '
19836	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19837	:
19838      else
19839	can_build_shared=no
19840      fi
19841      ;;
19842    esac
19843    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19844    # soname into executable. Probably we can add versioning support to
19845    # collect2, so additional links can be useful in future.
19846    if test "$aix_use_runtimelinking" = yes; then
19847      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19848      # instead of lib<name>.a to let people know that these are not
19849      # typical AIX shared libraries.
19850      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19851    else
19852      # We preserve .a as extension for shared libraries through AIX4.2
19853      # and later when we are not doing run time linking.
19854      library_names_spec='${libname}${release}.a $libname.a'
19855      soname_spec='${libname}${release}${shared_ext}$major'
19856    fi
19857    shlibpath_var=LIBPATH
19858  fi
19859  ;;
19860
19861amigaos*)
19862  library_names_spec='$libname.ixlibrary $libname.a'
19863  # Create ${libname}_ixlibrary.a entries in /sys/libs.
19864  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'
19865  ;;
19866
19867beos*)
19868  library_names_spec='${libname}${shared_ext}'
19869  dynamic_linker="$host_os ld.so"
19870  shlibpath_var=LIBRARY_PATH
19871  ;;
19872
19873bsdi[45]*)
19874  version_type=linux
19875  need_version=no
19876  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19877  soname_spec='${libname}${release}${shared_ext}$major'
19878  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19879  shlibpath_var=LD_LIBRARY_PATH
19880  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19881  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19882  # the default ld.so.conf also contains /usr/contrib/lib and
19883  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19884  # libtool to hard-code these into programs
19885  ;;
19886
19887cygwin* | mingw* | pw32*)
19888  version_type=windows
19889  shrext_cmds=".dll"
19890  need_version=no
19891  need_lib_prefix=no
19892
19893  case $GCC,$host_os in
19894  yes,cygwin* | yes,mingw* | yes,pw32*)
19895    library_names_spec='$libname.dll.a'
19896    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19897    postinstall_cmds='base_file=`basename \${file}`~
19898      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19899      dldir=$destdir/`dirname \$dlpath`~
19900      test -d \$dldir || mkdir -p \$dldir~
19901      $install_prog $dir/$dlname \$dldir/$dlname~
19902      chmod a+x \$dldir/$dlname'
19903    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19904      dlpath=$dir/\$dldll~
19905       $rm \$dlpath'
19906    shlibpath_overrides_runpath=yes
19907
19908    case $host_os in
19909    cygwin*)
19910      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19911      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19912      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19913      ;;
19914    mingw*)
19915      # MinGW DLLs use traditional 'lib' prefix
19916      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19917      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19918      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19919        # It is most probably a Windows format PATH printed by
19920        # mingw gcc, but we are running on Cygwin. Gcc prints its search
19921        # path with ; separators, and with drive letters. We can handle the
19922        # drive letters (cygwin fileutils understands them), so leave them,
19923        # especially as we might pass files found there to a mingw objdump,
19924        # which wouldn't understand a cygwinified path. Ahh.
19925        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19926      else
19927        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19928      fi
19929      ;;
19930    pw32*)
19931      # pw32 DLLs use 'pw' prefix rather than 'lib'
19932      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19933      ;;
19934    esac
19935    ;;
19936
19937  *)
19938    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19939    ;;
19940  esac
19941  dynamic_linker='Win32 ld.exe'
19942  # FIXME: first we should search . and the directory the executable is in
19943  shlibpath_var=PATH
19944  ;;
19945
19946darwin* | rhapsody*)
19947  dynamic_linker="$host_os dyld"
19948  version_type=darwin
19949  need_lib_prefix=no
19950  need_version=no
19951  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19952  soname_spec='${libname}${release}${major}$shared_ext'
19953  shlibpath_overrides_runpath=yes
19954  shlibpath_var=DYLD_LIBRARY_PATH
19955  shrext_cmds='.dylib'
19956  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19957  if test "$GCC" = yes; then
19958    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"`
19959  else
19960    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19961  fi
19962  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19963  ;;
19964
19965dgux*)
19966  version_type=linux
19967  need_lib_prefix=no
19968  need_version=no
19969  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19970  soname_spec='${libname}${release}${shared_ext}$major'
19971  shlibpath_var=LD_LIBRARY_PATH
19972  ;;
19973
19974freebsd1*)
19975  dynamic_linker=no
19976  ;;
19977
19978kfreebsd*-gnu)
19979  version_type=linux
19980  need_lib_prefix=no
19981  need_version=no
19982  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19983  soname_spec='${libname}${release}${shared_ext}$major'
19984  shlibpath_var=LD_LIBRARY_PATH
19985  shlibpath_overrides_runpath=no
19986  hardcode_into_libs=yes
19987  dynamic_linker='GNU ld.so'
19988  ;;
19989
19990freebsd* | dragonfly*)
19991  # DragonFly does not have aout.  When/if they implement a new
19992  # versioning mechanism, adjust this.
19993  if test -x /usr/bin/objformat; then
19994    objformat=`/usr/bin/objformat`
19995  else
19996    case $host_os in
19997    freebsd[123]*) objformat=aout ;;
19998    *) objformat=elf ;;
19999    esac
20000  fi
20001  version_type=freebsd-$objformat
20002  case $version_type in
20003    freebsd-elf*)
20004      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20005      need_version=no
20006      need_lib_prefix=no
20007      ;;
20008    freebsd-*)
20009      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20010      need_version=yes
20011      ;;
20012  esac
20013  shlibpath_var=LD_LIBRARY_PATH
20014  case $host_os in
20015  freebsd2*)
20016    shlibpath_overrides_runpath=yes
20017    ;;
20018  freebsd3.[01]* | freebsdelf3.[01]*)
20019    shlibpath_overrides_runpath=yes
20020    hardcode_into_libs=yes
20021    ;;
20022  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20023  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20024    shlibpath_overrides_runpath=no
20025    hardcode_into_libs=yes
20026    ;;
20027  freebsd*) # from 4.6 on
20028    shlibpath_overrides_runpath=yes
20029    hardcode_into_libs=yes
20030    ;;
20031  esac
20032  ;;
20033
20034gnu*)
20035  version_type=linux
20036  need_lib_prefix=no
20037  need_version=no
20038  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20039  soname_spec='${libname}${release}${shared_ext}$major'
20040  shlibpath_var=LD_LIBRARY_PATH
20041  hardcode_into_libs=yes
20042  ;;
20043
20044hpux9* | hpux10* | hpux11*)
20045  # Give a soname corresponding to the major version so that dld.sl refuses to
20046  # link against other versions.
20047  version_type=sunos
20048  need_lib_prefix=no
20049  need_version=no
20050  case $host_cpu in
20051  ia64*)
20052    shrext_cmds='.so'
20053    hardcode_into_libs=yes
20054    dynamic_linker="$host_os dld.so"
20055    shlibpath_var=LD_LIBRARY_PATH
20056    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20057    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20058    soname_spec='${libname}${release}${shared_ext}$major'
20059    if test "X$HPUX_IA64_MODE" = X32; then
20060      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20061    else
20062      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20063    fi
20064    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20065    ;;
20066   hppa*64*)
20067     shrext_cmds='.sl'
20068     hardcode_into_libs=yes
20069     dynamic_linker="$host_os dld.sl"
20070     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20071     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20072     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20073     soname_spec='${libname}${release}${shared_ext}$major'
20074     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20075     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20076     ;;
20077   *)
20078    shrext_cmds='.sl'
20079    dynamic_linker="$host_os dld.sl"
20080    shlibpath_var=SHLIB_PATH
20081    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20082    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20083    soname_spec='${libname}${release}${shared_ext}$major'
20084    ;;
20085  esac
20086  # HP-UX runs *really* slowly unless shared libraries are mode 555.
20087  postinstall_cmds='chmod 555 $lib'
20088  ;;
20089
20090interix3*)
20091  version_type=linux
20092  need_lib_prefix=no
20093  need_version=no
20094  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20095  soname_spec='${libname}${release}${shared_ext}$major'
20096  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20097  shlibpath_var=LD_LIBRARY_PATH
20098  shlibpath_overrides_runpath=no
20099  hardcode_into_libs=yes
20100  ;;
20101
20102irix5* | irix6* | nonstopux*)
20103  case $host_os in
20104    nonstopux*) version_type=nonstopux ;;
20105    *)
20106	if test "$lt_cv_prog_gnu_ld" = yes; then
20107		version_type=linux
20108	else
20109		version_type=irix
20110	fi ;;
20111  esac
20112  need_lib_prefix=no
20113  need_version=no
20114  soname_spec='${libname}${release}${shared_ext}$major'
20115  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20116  case $host_os in
20117  irix5* | nonstopux*)
20118    libsuff= shlibsuff=
20119    ;;
20120  *)
20121    case $LD in # libtool.m4 will add one of these switches to LD
20122    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20123      libsuff= shlibsuff= libmagic=32-bit;;
20124    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20125      libsuff=32 shlibsuff=N32 libmagic=N32;;
20126    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20127      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20128    *) libsuff= shlibsuff= libmagic=never-match;;
20129    esac
20130    ;;
20131  esac
20132  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20133  shlibpath_overrides_runpath=no
20134  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20135  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20136  hardcode_into_libs=yes
20137  ;;
20138
20139# No shared lib support for Linux oldld, aout, or coff.
20140linux*oldld* | linux*aout* | linux*coff*)
20141  dynamic_linker=no
20142  ;;
20143
20144# This must be Linux ELF.
20145linux*)
20146  version_type=linux
20147  need_lib_prefix=no
20148  need_version=no
20149  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20150  soname_spec='${libname}${release}${shared_ext}$major'
20151  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20152  shlibpath_var=LD_LIBRARY_PATH
20153  shlibpath_overrides_runpath=no
20154  # This implies no fast_install, which is unacceptable.
20155  # Some rework will be needed to allow for fast_install
20156  # before this can be enabled.
20157  hardcode_into_libs=yes
20158
20159  # Append ld.so.conf contents to the search path
20160  if test -f /etc/ld.so.conf; then
20161    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' ' '`
20162    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20163  fi
20164
20165  # We used to test for /lib/ld.so.1 and disable shared libraries on
20166  # powerpc, because MkLinux only supported shared libraries with the
20167  # GNU dynamic linker.  Since this was broken with cross compilers,
20168  # most powerpc-linux boxes support dynamic linking these days and
20169  # people can always --disable-shared, the test was removed, and we
20170  # assume the GNU/Linux dynamic linker is in use.
20171  dynamic_linker='GNU/Linux ld.so'
20172  ;;
20173
20174knetbsd*-gnu)
20175  version_type=linux
20176  need_lib_prefix=no
20177  need_version=no
20178  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20179  soname_spec='${libname}${release}${shared_ext}$major'
20180  shlibpath_var=LD_LIBRARY_PATH
20181  shlibpath_overrides_runpath=no
20182  hardcode_into_libs=yes
20183  dynamic_linker='GNU ld.so'
20184  ;;
20185
20186netbsd*)
20187  version_type=sunos
20188  need_lib_prefix=no
20189  need_version=no
20190  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20191    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20192    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20193    dynamic_linker='NetBSD (a.out) ld.so'
20194  else
20195    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20196    soname_spec='${libname}${release}${shared_ext}$major'
20197    dynamic_linker='NetBSD ld.elf_so'
20198  fi
20199  shlibpath_var=LD_LIBRARY_PATH
20200  shlibpath_overrides_runpath=yes
20201  hardcode_into_libs=yes
20202  ;;
20203
20204newsos6)
20205  version_type=linux
20206  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20207  shlibpath_var=LD_LIBRARY_PATH
20208  shlibpath_overrides_runpath=yes
20209  ;;
20210
20211nto-qnx*)
20212  version_type=linux
20213  need_lib_prefix=no
20214  need_version=no
20215  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20216  soname_spec='${libname}${release}${shared_ext}$major'
20217  shlibpath_var=LD_LIBRARY_PATH
20218  shlibpath_overrides_runpath=yes
20219  ;;
20220
20221openbsd*)
20222  version_type=sunos
20223  sys_lib_dlsearch_path_spec="/usr/lib"
20224  need_lib_prefix=no
20225  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20226  case $host_os in
20227    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20228    *)                         need_version=no  ;;
20229  esac
20230  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20231  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20232  shlibpath_var=LD_LIBRARY_PATH
20233  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20234    case $host_os in
20235      openbsd2.[89] | openbsd2.[89].*)
20236	shlibpath_overrides_runpath=no
20237	;;
20238      *)
20239	shlibpath_overrides_runpath=yes
20240	;;
20241      esac
20242  else
20243    shlibpath_overrides_runpath=yes
20244  fi
20245  ;;
20246
20247os2*)
20248  libname_spec='$name'
20249  shrext_cmds=".dll"
20250  need_lib_prefix=no
20251  library_names_spec='$libname${shared_ext} $libname.a'
20252  dynamic_linker='OS/2 ld.exe'
20253  shlibpath_var=LIBPATH
20254  ;;
20255
20256osf3* | osf4* | osf5*)
20257  version_type=osf
20258  need_lib_prefix=no
20259  need_version=no
20260  soname_spec='${libname}${release}${shared_ext}$major'
20261  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20262  shlibpath_var=LD_LIBRARY_PATH
20263  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20264  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20265  ;;
20266
20267solaris*)
20268  version_type=linux
20269  need_lib_prefix=no
20270  need_version=no
20271  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20272  soname_spec='${libname}${release}${shared_ext}$major'
20273  shlibpath_var=LD_LIBRARY_PATH
20274  shlibpath_overrides_runpath=yes
20275  hardcode_into_libs=yes
20276  # ldd complains unless libraries are executable
20277  postinstall_cmds='chmod +x $lib'
20278  ;;
20279
20280sunos4*)
20281  version_type=sunos
20282  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20283  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20284  shlibpath_var=LD_LIBRARY_PATH
20285  shlibpath_overrides_runpath=yes
20286  if test "$with_gnu_ld" = yes; then
20287    need_lib_prefix=no
20288  fi
20289  need_version=yes
20290  ;;
20291
20292sysv4 | sysv4.3*)
20293  version_type=linux
20294  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20295  soname_spec='${libname}${release}${shared_ext}$major'
20296  shlibpath_var=LD_LIBRARY_PATH
20297  case $host_vendor in
20298    sni)
20299      shlibpath_overrides_runpath=no
20300      need_lib_prefix=no
20301      export_dynamic_flag_spec='${wl}-Blargedynsym'
20302      runpath_var=LD_RUN_PATH
20303      ;;
20304    siemens)
20305      need_lib_prefix=no
20306      ;;
20307    motorola)
20308      need_lib_prefix=no
20309      need_version=no
20310      shlibpath_overrides_runpath=no
20311      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20312      ;;
20313  esac
20314  ;;
20315
20316sysv4*MP*)
20317  if test -d /usr/nec ;then
20318    version_type=linux
20319    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20320    soname_spec='$libname${shared_ext}.$major'
20321    shlibpath_var=LD_LIBRARY_PATH
20322  fi
20323  ;;
20324
20325sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20326  version_type=freebsd-elf
20327  need_lib_prefix=no
20328  need_version=no
20329  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20330  soname_spec='${libname}${release}${shared_ext}$major'
20331  shlibpath_var=LD_LIBRARY_PATH
20332  hardcode_into_libs=yes
20333  if test "$with_gnu_ld" = yes; then
20334    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20335    shlibpath_overrides_runpath=no
20336  else
20337    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20338    shlibpath_overrides_runpath=yes
20339    case $host_os in
20340      sco3.2v5*)
20341        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20342	;;
20343    esac
20344  fi
20345  sys_lib_dlsearch_path_spec='/usr/lib'
20346  ;;
20347
20348uts4*)
20349  version_type=linux
20350  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20351  soname_spec='${libname}${release}${shared_ext}$major'
20352  shlibpath_var=LD_LIBRARY_PATH
20353  ;;
20354
20355*)
20356  dynamic_linker=no
20357  ;;
20358esac
20359{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20360echo "${ECHO_T}$dynamic_linker" >&6; }
20361test "$dynamic_linker" = no && can_build_shared=no
20362
20363variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20364if test "$GCC" = yes; then
20365  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20366fi
20367
20368{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20369echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20370hardcode_action_CXX=
20371if test -n "$hardcode_libdir_flag_spec_CXX" || \
20372   test -n "$runpath_var_CXX" || \
20373   test "X$hardcode_automatic_CXX" = "Xyes" ; then
20374
20375  # We can hardcode non-existant directories.
20376  if test "$hardcode_direct_CXX" != no &&
20377     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20378     # have to relink, otherwise we might link with an installed library
20379     # when we should be linking with a yet-to-be-installed one
20380     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20381     test "$hardcode_minus_L_CXX" != no; then
20382    # Linking always hardcodes the temporary library directory.
20383    hardcode_action_CXX=relink
20384  else
20385    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20386    hardcode_action_CXX=immediate
20387  fi
20388else
20389  # We cannot hardcode anything, or else we can only hardcode existing
20390  # directories.
20391  hardcode_action_CXX=unsupported
20392fi
20393{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20394echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20395
20396if test "$hardcode_action_CXX" = relink; then
20397  # Fast installation is not supported
20398  enable_fast_install=no
20399elif test "$shlibpath_overrides_runpath" = yes ||
20400     test "$enable_shared" = no; then
20401  # Fast installation is not necessary
20402  enable_fast_install=needless
20403fi
20404
20405
20406# The else clause should only fire when bootstrapping the
20407# libtool distribution, otherwise you forgot to ship ltmain.sh
20408# with your package, and you will get complaints that there are
20409# no rules to generate ltmain.sh.
20410if test -f "$ltmain"; then
20411  # See if we are running on zsh, and set the options which allow our commands through
20412  # without removal of \ escapes.
20413  if test -n "${ZSH_VERSION+set}" ; then
20414    setopt NO_GLOB_SUBST
20415  fi
20416  # Now quote all the things that may contain metacharacters while being
20417  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20418  # variables and quote the copies for generation of the libtool script.
20419  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20420    SED SHELL STRIP \
20421    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20422    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20423    deplibs_check_method reload_flag reload_cmds need_locks \
20424    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20425    lt_cv_sys_global_symbol_to_c_name_address \
20426    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20427    old_postinstall_cmds old_postuninstall_cmds \
20428    compiler_CXX \
20429    CC_CXX \
20430    LD_CXX \
20431    lt_prog_compiler_wl_CXX \
20432    lt_prog_compiler_pic_CXX \
20433    lt_prog_compiler_static_CXX \
20434    lt_prog_compiler_no_builtin_flag_CXX \
20435    export_dynamic_flag_spec_CXX \
20436    thread_safe_flag_spec_CXX \
20437    whole_archive_flag_spec_CXX \
20438    enable_shared_with_static_runtimes_CXX \
20439    old_archive_cmds_CXX \
20440    old_archive_from_new_cmds_CXX \
20441    predep_objects_CXX \
20442    postdep_objects_CXX \
20443    predeps_CXX \
20444    postdeps_CXX \
20445    compiler_lib_search_path_CXX \
20446    archive_cmds_CXX \
20447    archive_expsym_cmds_CXX \
20448    postinstall_cmds_CXX \
20449    postuninstall_cmds_CXX \
20450    old_archive_from_expsyms_cmds_CXX \
20451    allow_undefined_flag_CXX \
20452    no_undefined_flag_CXX \
20453    export_symbols_cmds_CXX \
20454    hardcode_libdir_flag_spec_CXX \
20455    hardcode_libdir_flag_spec_ld_CXX \
20456    hardcode_libdir_separator_CXX \
20457    hardcode_automatic_CXX \
20458    module_cmds_CXX \
20459    module_expsym_cmds_CXX \
20460    lt_cv_prog_compiler_c_o_CXX \
20461    exclude_expsyms_CXX \
20462    include_expsyms_CXX; do
20463
20464    case $var in
20465    old_archive_cmds_CXX | \
20466    old_archive_from_new_cmds_CXX | \
20467    archive_cmds_CXX | \
20468    archive_expsym_cmds_CXX | \
20469    module_cmds_CXX | \
20470    module_expsym_cmds_CXX | \
20471    old_archive_from_expsyms_cmds_CXX | \
20472    export_symbols_cmds_CXX | \
20473    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20474    postinstall_cmds | postuninstall_cmds | \
20475    old_postinstall_cmds | old_postuninstall_cmds | \
20476    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20477      # Double-quote double-evaled strings.
20478      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20479      ;;
20480    *)
20481      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20482      ;;
20483    esac
20484  done
20485
20486  case $lt_echo in
20487  *'\$0 --fallback-echo"')
20488    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20489    ;;
20490  esac
20491
20492cfgfile="$ofile"
20493
20494  cat <<__EOF__ >> "$cfgfile"
20495# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20496
20497# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20498
20499# Shell to use when invoking shell scripts.
20500SHELL=$lt_SHELL
20501
20502# Whether or not to build shared libraries.
20503build_libtool_libs=$enable_shared
20504
20505# Whether or not to build static libraries.
20506build_old_libs=$enable_static
20507
20508# Whether or not to add -lc for building shared libraries.
20509build_libtool_need_lc=$archive_cmds_need_lc_CXX
20510
20511# Whether or not to disallow shared libs when runtime libs are static
20512allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20513
20514# Whether or not to optimize for fast installation.
20515fast_install=$enable_fast_install
20516
20517# The host system.
20518host_alias=$host_alias
20519host=$host
20520host_os=$host_os
20521
20522# The build system.
20523build_alias=$build_alias
20524build=$build
20525build_os=$build_os
20526
20527# An echo program that does not interpret backslashes.
20528echo=$lt_echo
20529
20530# The archiver.
20531AR=$lt_AR
20532AR_FLAGS=$lt_AR_FLAGS
20533
20534# A C compiler.
20535LTCC=$lt_LTCC
20536
20537# LTCC compiler flags.
20538LTCFLAGS=$lt_LTCFLAGS
20539
20540# A language-specific compiler.
20541CC=$lt_compiler_CXX
20542
20543# Is the compiler the GNU C compiler?
20544with_gcc=$GCC_CXX
20545
20546# An ERE matcher.
20547EGREP=$lt_EGREP
20548
20549# The linker used to build libraries.
20550LD=$lt_LD_CXX
20551
20552# Whether we need hard or soft links.
20553LN_S=$lt_LN_S
20554
20555# A BSD-compatible nm program.
20556NM=$lt_NM
20557
20558# A symbol stripping program
20559STRIP=$lt_STRIP
20560
20561# Used to examine libraries when file_magic_cmd begins "file"
20562MAGIC_CMD=$MAGIC_CMD
20563
20564# Used on cygwin: DLL creation program.
20565DLLTOOL="$DLLTOOL"
20566
20567# Used on cygwin: object dumper.
20568OBJDUMP="$OBJDUMP"
20569
20570# Used on cygwin: assembler.
20571AS="$AS"
20572
20573# The name of the directory that contains temporary libtool files.
20574objdir=$objdir
20575
20576# How to create reloadable object files.
20577reload_flag=$lt_reload_flag
20578reload_cmds=$lt_reload_cmds
20579
20580# How to pass a linker flag through the compiler.
20581wl=$lt_lt_prog_compiler_wl_CXX
20582
20583# Object file suffix (normally "o").
20584objext="$ac_objext"
20585
20586# Old archive suffix (normally "a").
20587libext="$libext"
20588
20589# Shared library suffix (normally ".so").
20590shrext_cmds='$shrext_cmds'
20591
20592# Executable file suffix (normally "").
20593exeext="$exeext"
20594
20595# Additional compiler flags for building library objects.
20596pic_flag=$lt_lt_prog_compiler_pic_CXX
20597pic_mode=$pic_mode
20598
20599# What is the maximum length of a command?
20600max_cmd_len=$lt_cv_sys_max_cmd_len
20601
20602# Does compiler simultaneously support -c and -o options?
20603compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20604
20605# Must we lock files when doing compilation?
20606need_locks=$lt_need_locks
20607
20608# Do we need the lib prefix for modules?
20609need_lib_prefix=$need_lib_prefix
20610
20611# Do we need a version for libraries?
20612need_version=$need_version
20613
20614# Whether dlopen is supported.
20615dlopen_support=$enable_dlopen
20616
20617# Whether dlopen of programs is supported.
20618dlopen_self=$enable_dlopen_self
20619
20620# Whether dlopen of statically linked programs is supported.
20621dlopen_self_static=$enable_dlopen_self_static
20622
20623# Compiler flag to prevent dynamic linking.
20624link_static_flag=$lt_lt_prog_compiler_static_CXX
20625
20626# Compiler flag to turn off builtin functions.
20627no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20628
20629# Compiler flag to allow reflexive dlopens.
20630export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20631
20632# Compiler flag to generate shared objects directly from archives.
20633whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20634
20635# Compiler flag to generate thread-safe objects.
20636thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20637
20638# Library versioning type.
20639version_type=$version_type
20640
20641# Format of library name prefix.
20642libname_spec=$lt_libname_spec
20643
20644# List of archive names.  First name is the real one, the rest are links.
20645# The last name is the one that the linker finds with -lNAME.
20646library_names_spec=$lt_library_names_spec
20647
20648# The coded name of the library, if different from the real name.
20649soname_spec=$lt_soname_spec
20650
20651# Commands used to build and install an old-style archive.
20652RANLIB=$lt_RANLIB
20653old_archive_cmds=$lt_old_archive_cmds_CXX
20654old_postinstall_cmds=$lt_old_postinstall_cmds
20655old_postuninstall_cmds=$lt_old_postuninstall_cmds
20656
20657# Create an old-style archive from a shared archive.
20658old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20659
20660# Create a temporary old-style archive to link instead of a shared archive.
20661old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20662
20663# Commands used to build and install a shared archive.
20664archive_cmds=$lt_archive_cmds_CXX
20665archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20666postinstall_cmds=$lt_postinstall_cmds
20667postuninstall_cmds=$lt_postuninstall_cmds
20668
20669# Commands used to build a loadable module (assumed same as above if empty)
20670module_cmds=$lt_module_cmds_CXX
20671module_expsym_cmds=$lt_module_expsym_cmds_CXX
20672
20673# Commands to strip libraries.
20674old_striplib=$lt_old_striplib
20675striplib=$lt_striplib
20676
20677# Dependencies to place before the objects being linked to create a
20678# shared library.
20679predep_objects=$lt_predep_objects_CXX
20680
20681# Dependencies to place after the objects being linked to create a
20682# shared library.
20683postdep_objects=$lt_postdep_objects_CXX
20684
20685# Dependencies to place before the objects being linked to create a
20686# shared library.
20687predeps=$lt_predeps_CXX
20688
20689# Dependencies to place after the objects being linked to create a
20690# shared library.
20691postdeps=$lt_postdeps_CXX
20692
20693# The library search path used internally by the compiler when linking
20694# a shared library.
20695compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20696
20697# Method to check whether dependent libraries are shared objects.
20698deplibs_check_method=$lt_deplibs_check_method
20699
20700# Command to use when deplibs_check_method == file_magic.
20701file_magic_cmd=$lt_file_magic_cmd
20702
20703# Flag that allows shared libraries with undefined symbols to be built.
20704allow_undefined_flag=$lt_allow_undefined_flag_CXX
20705
20706# Flag that forces no undefined symbols.
20707no_undefined_flag=$lt_no_undefined_flag_CXX
20708
20709# Commands used to finish a libtool library installation in a directory.
20710finish_cmds=$lt_finish_cmds
20711
20712# Same as above, but a single script fragment to be evaled but not shown.
20713finish_eval=$lt_finish_eval
20714
20715# Take the output of nm and produce a listing of raw symbols and C names.
20716global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20717
20718# Transform the output of nm in a proper C declaration
20719global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20720
20721# Transform the output of nm in a C name address pair
20722global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20723
20724# This is the shared library runtime path variable.
20725runpath_var=$runpath_var
20726
20727# This is the shared library path variable.
20728shlibpath_var=$shlibpath_var
20729
20730# Is shlibpath searched before the hard-coded library search path?
20731shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20732
20733# How to hardcode a shared library path into an executable.
20734hardcode_action=$hardcode_action_CXX
20735
20736# Whether we should hardcode library paths into libraries.
20737hardcode_into_libs=$hardcode_into_libs
20738
20739# Flag to hardcode \$libdir into a binary during linking.
20740# This must work even if \$libdir does not exist.
20741hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20742
20743# If ld is used when linking, flag to hardcode \$libdir into
20744# a binary during linking. This must work even if \$libdir does
20745# not exist.
20746hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20747
20748# Whether we need a single -rpath flag with a separated argument.
20749hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20750
20751# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20752# resulting binary.
20753hardcode_direct=$hardcode_direct_CXX
20754
20755# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20756# resulting binary.
20757hardcode_minus_L=$hardcode_minus_L_CXX
20758
20759# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20760# the resulting binary.
20761hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20762
20763# Set to yes if building a shared library automatically hardcodes DIR into the library
20764# and all subsequent libraries and executables linked against it.
20765hardcode_automatic=$hardcode_automatic_CXX
20766
20767# Variables whose values should be saved in libtool wrapper scripts and
20768# restored at relink time.
20769variables_saved_for_relink="$variables_saved_for_relink"
20770
20771# Whether libtool must link a program against all its dependency libraries.
20772link_all_deplibs=$link_all_deplibs_CXX
20773
20774# Compile-time system search path for libraries
20775sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20776
20777# Run-time system search path for libraries
20778sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20779
20780# Fix the shell variable \$srcfile for the compiler.
20781fix_srcfile_path="$fix_srcfile_path_CXX"
20782
20783# Set to yes if exported symbols are required.
20784always_export_symbols=$always_export_symbols_CXX
20785
20786# The commands to list exported symbols.
20787export_symbols_cmds=$lt_export_symbols_cmds_CXX
20788
20789# The commands to extract the exported symbol list from a shared archive.
20790extract_expsyms_cmds=$lt_extract_expsyms_cmds
20791
20792# Symbols that should not be listed in the preloaded symbols.
20793exclude_expsyms=$lt_exclude_expsyms_CXX
20794
20795# Symbols that must always be exported.
20796include_expsyms=$lt_include_expsyms_CXX
20797
20798# ### END LIBTOOL TAG CONFIG: $tagname
20799
20800__EOF__
20801
20802
20803else
20804  # If there is no Makefile yet, we rely on a make rule to execute
20805  # `config.status --recheck' to rerun these tests and create the
20806  # libtool script then.
20807  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20808  if test -f "$ltmain_in"; then
20809    test -f Makefile && make "$ltmain"
20810  fi
20811fi
20812
20813
20814ac_ext=c
20815ac_cpp='$CPP $CPPFLAGS'
20816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20818ac_compiler_gnu=$ac_cv_c_compiler_gnu
20819
20820CC=$lt_save_CC
20821LDCXX=$LD
20822LD=$lt_save_LD
20823GCC=$lt_save_GCC
20824with_gnu_ldcxx=$with_gnu_ld
20825with_gnu_ld=$lt_save_with_gnu_ld
20826lt_cv_path_LDCXX=$lt_cv_path_LD
20827lt_cv_path_LD=$lt_save_path_LD
20828lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20829lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20830
20831	else
20832	  tagname=""
20833	fi
20834	;;
20835
20836      F77)
20837	if test -n "$F77" && test "X$F77" != "Xno"; then
20838
20839ac_ext=f
20840ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20841ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20842ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20843
20844
20845archive_cmds_need_lc_F77=no
20846allow_undefined_flag_F77=
20847always_export_symbols_F77=no
20848archive_expsym_cmds_F77=
20849export_dynamic_flag_spec_F77=
20850hardcode_direct_F77=no
20851hardcode_libdir_flag_spec_F77=
20852hardcode_libdir_flag_spec_ld_F77=
20853hardcode_libdir_separator_F77=
20854hardcode_minus_L_F77=no
20855hardcode_automatic_F77=no
20856module_cmds_F77=
20857module_expsym_cmds_F77=
20858link_all_deplibs_F77=unknown
20859old_archive_cmds_F77=$old_archive_cmds
20860no_undefined_flag_F77=
20861whole_archive_flag_spec_F77=
20862enable_shared_with_static_runtimes_F77=no
20863
20864# Source file extension for f77 test sources.
20865ac_ext=f
20866
20867# Object file extension for compiled f77 test sources.
20868objext=o
20869objext_F77=$objext
20870
20871# Code to be used in simple compile tests
20872lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
20873
20874# Code to be used in simple link tests
20875lt_simple_link_test_code="      program t\n      end\n"
20876
20877# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20878
20879# If no C compiler was specified, use CC.
20880LTCC=${LTCC-"$CC"}
20881
20882# If no C compiler flags were specified, use CFLAGS.
20883LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20884
20885# Allow CC to be a program name with arguments.
20886compiler=$CC
20887
20888
20889# save warnings/boilerplate of simple test code
20890ac_outfile=conftest.$ac_objext
20891printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20892eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20893_lt_compiler_boilerplate=`cat conftest.err`
20894$rm conftest*
20895
20896ac_outfile=conftest.$ac_objext
20897printf "$lt_simple_link_test_code" >conftest.$ac_ext
20898eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20899_lt_linker_boilerplate=`cat conftest.err`
20900$rm conftest*
20901
20902
20903# Allow CC to be a program name with arguments.
20904lt_save_CC="$CC"
20905CC=${F77-"f77"}
20906compiler=$CC
20907compiler_F77=$CC
20908for cc_temp in $compiler""; do
20909  case $cc_temp in
20910    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20911    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20912    \-*) ;;
20913    *) break;;
20914  esac
20915done
20916cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20917
20918
20919{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20920echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20921{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
20922echo "${ECHO_T}$can_build_shared" >&6; }
20923
20924{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20925echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20926test "$can_build_shared" = "no" && enable_shared=no
20927
20928# On AIX, shared libraries and static libraries use the same namespace, and
20929# are all built from PIC.
20930case $host_os in
20931aix3*)
20932  test "$enable_shared" = yes && enable_static=no
20933  if test -n "$RANLIB"; then
20934    archive_cmds="$archive_cmds~\$RANLIB \$lib"
20935    postinstall_cmds='$RANLIB $lib'
20936  fi
20937  ;;
20938aix4* | aix5*)
20939  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20940    test "$enable_shared" = yes && enable_static=no
20941  fi
20942  ;;
20943esac
20944{ echo "$as_me:$LINENO: result: $enable_shared" >&5
20945echo "${ECHO_T}$enable_shared" >&6; }
20946
20947{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20948echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20949# Make sure either enable_shared or enable_static is yes.
20950test "$enable_shared" = yes || enable_static=yes
20951{ echo "$as_me:$LINENO: result: $enable_static" >&5
20952echo "${ECHO_T}$enable_static" >&6; }
20953
20954GCC_F77="$G77"
20955LD_F77="$LD"
20956
20957lt_prog_compiler_wl_F77=
20958lt_prog_compiler_pic_F77=
20959lt_prog_compiler_static_F77=
20960
20961{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20962echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20963
20964  if test "$GCC" = yes; then
20965    lt_prog_compiler_wl_F77='-Wl,'
20966    lt_prog_compiler_static_F77='-static'
20967
20968    case $host_os in
20969      aix*)
20970      # All AIX code is PIC.
20971      if test "$host_cpu" = ia64; then
20972	# AIX 5 now supports IA64 processor
20973	lt_prog_compiler_static_F77='-Bstatic'
20974      fi
20975      ;;
20976
20977    amigaos*)
20978      # FIXME: we need at least 68020 code to build shared libraries, but
20979      # adding the `-m68020' flag to GCC prevents building anything better,
20980      # like `-m68040'.
20981      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20982      ;;
20983
20984    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20985      # PIC is the default for these OSes.
20986      ;;
20987
20988    mingw* | pw32* | os2*)
20989      # This hack is so that the source file can tell whether it is being
20990      # built for inclusion in a dll (and should export symbols for example).
20991      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20992      ;;
20993
20994    darwin* | rhapsody*)
20995      # PIC is the default on this platform
20996      # Common symbols not allowed in MH_DYLIB files
20997      lt_prog_compiler_pic_F77='-fno-common'
20998      ;;
20999
21000    interix3*)
21001      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21002      # Instead, we relocate shared libraries at runtime.
21003      ;;
21004
21005    msdosdjgpp*)
21006      # Just because we use GCC doesn't mean we suddenly get shared libraries
21007      # on systems that don't support them.
21008      lt_prog_compiler_can_build_shared_F77=no
21009      enable_shared=no
21010      ;;
21011
21012    sysv4*MP*)
21013      if test -d /usr/nec; then
21014	lt_prog_compiler_pic_F77=-Kconform_pic
21015      fi
21016      ;;
21017
21018    hpux*)
21019      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21020      # not for PA HP-UX.
21021      case $host_cpu in
21022      hppa*64*|ia64*)
21023	# +Z the default
21024	;;
21025      *)
21026	lt_prog_compiler_pic_F77='-fPIC'
21027	;;
21028      esac
21029      ;;
21030
21031    *)
21032      lt_prog_compiler_pic_F77='-fPIC'
21033      ;;
21034    esac
21035  else
21036    # PORTME Check for flag to pass linker flags through the system compiler.
21037    case $host_os in
21038    aix*)
21039      lt_prog_compiler_wl_F77='-Wl,'
21040      if test "$host_cpu" = ia64; then
21041	# AIX 5 now supports IA64 processor
21042	lt_prog_compiler_static_F77='-Bstatic'
21043      else
21044	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21045      fi
21046      ;;
21047      darwin*)
21048        # PIC is the default on this platform
21049        # Common symbols not allowed in MH_DYLIB files
21050       case $cc_basename in
21051         xlc*)
21052         lt_prog_compiler_pic_F77='-qnocommon'
21053         lt_prog_compiler_wl_F77='-Wl,'
21054         ;;
21055       esac
21056       ;;
21057
21058    mingw* | pw32* | os2*)
21059      # This hack is so that the source file can tell whether it is being
21060      # built for inclusion in a dll (and should export symbols for example).
21061      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21062      ;;
21063
21064    hpux9* | hpux10* | hpux11*)
21065      lt_prog_compiler_wl_F77='-Wl,'
21066      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21067      # not for PA HP-UX.
21068      case $host_cpu in
21069      hppa*64*|ia64*)
21070	# +Z the default
21071	;;
21072      *)
21073	lt_prog_compiler_pic_F77='+Z'
21074	;;
21075      esac
21076      # Is there a better lt_prog_compiler_static that works with the bundled CC?
21077      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21078      ;;
21079
21080    irix5* | irix6* | nonstopux*)
21081      lt_prog_compiler_wl_F77='-Wl,'
21082      # PIC (with -KPIC) is the default.
21083      lt_prog_compiler_static_F77='-non_shared'
21084      ;;
21085
21086    newsos6)
21087      lt_prog_compiler_pic_F77='-KPIC'
21088      lt_prog_compiler_static_F77='-Bstatic'
21089      ;;
21090
21091    linux*)
21092      case $cc_basename in
21093      icc* | ecc*)
21094	lt_prog_compiler_wl_F77='-Wl,'
21095	lt_prog_compiler_pic_F77='-KPIC'
21096	lt_prog_compiler_static_F77='-static'
21097        ;;
21098      pgcc* | pgf77* | pgf90* | pgf95*)
21099        # Portland Group compilers (*not* the Pentium gcc compiler,
21100	# which looks to be a dead project)
21101	lt_prog_compiler_wl_F77='-Wl,'
21102	lt_prog_compiler_pic_F77='-fpic'
21103	lt_prog_compiler_static_F77='-Bstatic'
21104        ;;
21105      ccc*)
21106        lt_prog_compiler_wl_F77='-Wl,'
21107        # All Alpha code is PIC.
21108        lt_prog_compiler_static_F77='-non_shared'
21109        ;;
21110      esac
21111      ;;
21112
21113    osf3* | osf4* | osf5*)
21114      lt_prog_compiler_wl_F77='-Wl,'
21115      # All OSF/1 code is PIC.
21116      lt_prog_compiler_static_F77='-non_shared'
21117      ;;
21118
21119    solaris*)
21120      lt_prog_compiler_pic_F77='-KPIC'
21121      lt_prog_compiler_static_F77='-Bstatic'
21122      case $cc_basename in
21123      f77* | f90* | f95*)
21124	lt_prog_compiler_wl_F77='-Qoption ld ';;
21125      *)
21126	lt_prog_compiler_wl_F77='-Wl,';;
21127      esac
21128      ;;
21129
21130    sunos4*)
21131      lt_prog_compiler_wl_F77='-Qoption ld '
21132      lt_prog_compiler_pic_F77='-PIC'
21133      lt_prog_compiler_static_F77='-Bstatic'
21134      ;;
21135
21136    sysv4 | sysv4.2uw2* | sysv4.3*)
21137      lt_prog_compiler_wl_F77='-Wl,'
21138      lt_prog_compiler_pic_F77='-KPIC'
21139      lt_prog_compiler_static_F77='-Bstatic'
21140      ;;
21141
21142    sysv4*MP*)
21143      if test -d /usr/nec ;then
21144	lt_prog_compiler_pic_F77='-Kconform_pic'
21145	lt_prog_compiler_static_F77='-Bstatic'
21146      fi
21147      ;;
21148
21149    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21150      lt_prog_compiler_wl_F77='-Wl,'
21151      lt_prog_compiler_pic_F77='-KPIC'
21152      lt_prog_compiler_static_F77='-Bstatic'
21153      ;;
21154
21155    unicos*)
21156      lt_prog_compiler_wl_F77='-Wl,'
21157      lt_prog_compiler_can_build_shared_F77=no
21158      ;;
21159
21160    uts4*)
21161      lt_prog_compiler_pic_F77='-pic'
21162      lt_prog_compiler_static_F77='-Bstatic'
21163      ;;
21164
21165    *)
21166      lt_prog_compiler_can_build_shared_F77=no
21167      ;;
21168    esac
21169  fi
21170
21171{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21172echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21173
21174#
21175# Check to make sure the PIC flag actually works.
21176#
21177if test -n "$lt_prog_compiler_pic_F77"; then
21178
21179{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21180echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21181if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21182  echo $ECHO_N "(cached) $ECHO_C" >&6
21183else
21184  lt_prog_compiler_pic_works_F77=no
21185  ac_outfile=conftest.$ac_objext
21186   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21187   lt_compiler_flag="$lt_prog_compiler_pic_F77"
21188   # Insert the option either (1) after the last *FLAGS variable, or
21189   # (2) before a word containing "conftest.", or (3) at the end.
21190   # Note that $ac_compile itself does not contain backslashes and begins
21191   # with a dollar sign (not a hyphen), so the echo should work correctly.
21192   # The option is referenced via a variable to avoid confusing sed.
21193   lt_compile=`echo "$ac_compile" | $SED \
21194   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21195   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21196   -e 's:$: $lt_compiler_flag:'`
21197   (eval echo "\"\$as_me:21197: $lt_compile\"" >&5)
21198   (eval "$lt_compile" 2>conftest.err)
21199   ac_status=$?
21200   cat conftest.err >&5
21201   echo "$as_me:21201: \$? = $ac_status" >&5
21202   if (exit $ac_status) && test -s "$ac_outfile"; then
21203     # The compiler can only warn and ignore the option if not recognized
21204     # So say no if there are warnings other than the usual output.
21205     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21206     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21207     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21208       lt_prog_compiler_pic_works_F77=yes
21209     fi
21210   fi
21211   $rm conftest*
21212
21213fi
21214{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21215echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21216
21217if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21218    case $lt_prog_compiler_pic_F77 in
21219     "" | " "*) ;;
21220     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21221     esac
21222else
21223    lt_prog_compiler_pic_F77=
21224     lt_prog_compiler_can_build_shared_F77=no
21225fi
21226
21227fi
21228case $host_os in
21229  # For platforms which do not support PIC, -DPIC is meaningless:
21230  *djgpp*)
21231    lt_prog_compiler_pic_F77=
21232    ;;
21233  *)
21234    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21235    ;;
21236esac
21237
21238#
21239# Check to make sure the static flag actually works.
21240#
21241wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21242{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21243echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21244if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21245  echo $ECHO_N "(cached) $ECHO_C" >&6
21246else
21247  lt_prog_compiler_static_works_F77=no
21248   save_LDFLAGS="$LDFLAGS"
21249   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21250   printf "$lt_simple_link_test_code" > conftest.$ac_ext
21251   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21252     # The linker can only warn and ignore the option if not recognized
21253     # So say no if there are warnings
21254     if test -s conftest.err; then
21255       # Append any errors to the config.log.
21256       cat conftest.err 1>&5
21257       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21258       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21259       if diff conftest.exp conftest.er2 >/dev/null; then
21260         lt_prog_compiler_static_works_F77=yes
21261       fi
21262     else
21263       lt_prog_compiler_static_works_F77=yes
21264     fi
21265   fi
21266   $rm conftest*
21267   LDFLAGS="$save_LDFLAGS"
21268
21269fi
21270{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21271echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21272
21273if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21274    :
21275else
21276    lt_prog_compiler_static_F77=
21277fi
21278
21279
21280{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21281echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21282if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21283  echo $ECHO_N "(cached) $ECHO_C" >&6
21284else
21285  lt_cv_prog_compiler_c_o_F77=no
21286   $rm -r conftest 2>/dev/null
21287   mkdir conftest
21288   cd conftest
21289   mkdir out
21290   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21291
21292   lt_compiler_flag="-o out/conftest2.$ac_objext"
21293   # Insert the option either (1) after the last *FLAGS variable, or
21294   # (2) before a word containing "conftest.", or (3) at the end.
21295   # Note that $ac_compile itself does not contain backslashes and begins
21296   # with a dollar sign (not a hyphen), so the echo should work correctly.
21297   lt_compile=`echo "$ac_compile" | $SED \
21298   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21299   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21300   -e 's:$: $lt_compiler_flag:'`
21301   (eval echo "\"\$as_me:21301: $lt_compile\"" >&5)
21302   (eval "$lt_compile" 2>out/conftest.err)
21303   ac_status=$?
21304   cat out/conftest.err >&5
21305   echo "$as_me:21305: \$? = $ac_status" >&5
21306   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21307   then
21308     # The compiler can only warn and ignore the option if not recognized
21309     # So say no if there are warnings
21310     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21311     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21312     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21313       lt_cv_prog_compiler_c_o_F77=yes
21314     fi
21315   fi
21316   chmod u+w . 2>&5
21317   $rm conftest*
21318   # SGI C++ compiler will create directory out/ii_files/ for
21319   # template instantiation
21320   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21321   $rm out/* && rmdir out
21322   cd ..
21323   rmdir conftest
21324   $rm conftest*
21325
21326fi
21327{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21328echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21329
21330
21331hard_links="nottested"
21332if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21333  # do not overwrite the value of need_locks provided by the user
21334  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21335echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21336  hard_links=yes
21337  $rm conftest*
21338  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21339  touch conftest.a
21340  ln conftest.a conftest.b 2>&5 || hard_links=no
21341  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21342  { echo "$as_me:$LINENO: result: $hard_links" >&5
21343echo "${ECHO_T}$hard_links" >&6; }
21344  if test "$hard_links" = no; then
21345    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21346echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21347    need_locks=warn
21348  fi
21349else
21350  need_locks=no
21351fi
21352
21353{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21354echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21355
21356  runpath_var=
21357  allow_undefined_flag_F77=
21358  enable_shared_with_static_runtimes_F77=no
21359  archive_cmds_F77=
21360  archive_expsym_cmds_F77=
21361  old_archive_From_new_cmds_F77=
21362  old_archive_from_expsyms_cmds_F77=
21363  export_dynamic_flag_spec_F77=
21364  whole_archive_flag_spec_F77=
21365  thread_safe_flag_spec_F77=
21366  hardcode_libdir_flag_spec_F77=
21367  hardcode_libdir_flag_spec_ld_F77=
21368  hardcode_libdir_separator_F77=
21369  hardcode_direct_F77=no
21370  hardcode_minus_L_F77=no
21371  hardcode_shlibpath_var_F77=unsupported
21372  link_all_deplibs_F77=unknown
21373  hardcode_automatic_F77=no
21374  module_cmds_F77=
21375  module_expsym_cmds_F77=
21376  always_export_symbols_F77=no
21377  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21378  # include_expsyms should be a list of space-separated symbols to be *always*
21379  # included in the symbol list
21380  include_expsyms_F77=
21381  # exclude_expsyms can be an extended regexp of symbols to exclude
21382  # it will be wrapped by ` (' and `)$', so one must not match beginning or
21383  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21384  # as well as any symbol that contains `d'.
21385  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21386  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21387  # platforms (ab)use it in PIC code, but their linkers get confused if
21388  # the symbol is explicitly referenced.  Since portable code cannot
21389  # rely on this symbol name, it's probably fine to never include it in
21390  # preloaded symbol tables.
21391  extract_expsyms_cmds=
21392  # Just being paranoid about ensuring that cc_basename is set.
21393  for cc_temp in $compiler""; do
21394  case $cc_temp in
21395    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21396    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21397    \-*) ;;
21398    *) break;;
21399  esac
21400done
21401cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21402
21403  case $host_os in
21404  cygwin* | mingw* | pw32*)
21405    # FIXME: the MSVC++ port hasn't been tested in a loooong time
21406    # When not using gcc, we currently assume that we are using
21407    # Microsoft Visual C++.
21408    if test "$GCC" != yes; then
21409      with_gnu_ld=no
21410    fi
21411    ;;
21412  interix*)
21413    # we just hope/assume this is gcc and not c89 (= MSVC++)
21414    with_gnu_ld=yes
21415    ;;
21416  openbsd*)
21417    with_gnu_ld=no
21418    ;;
21419  esac
21420
21421  ld_shlibs_F77=yes
21422  if test "$with_gnu_ld" = yes; then
21423    # If archive_cmds runs LD, not CC, wlarc should be empty
21424    wlarc='${wl}'
21425
21426    # Set some defaults for GNU ld with shared library support. These
21427    # are reset later if shared libraries are not supported. Putting them
21428    # here allows them to be overridden if necessary.
21429    runpath_var=LD_RUN_PATH
21430    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21431    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21432    # ancient GNU ld didn't support --whole-archive et. al.
21433    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21434	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21435      else
21436  	whole_archive_flag_spec_F77=
21437    fi
21438    supports_anon_versioning=no
21439    case `$LD -v 2>/dev/null` in
21440      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21441      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21442      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21443      *\ 2.11.*) ;; # other 2.11 versions
21444      *) supports_anon_versioning=yes ;;
21445    esac
21446
21447    # See if GNU ld supports shared libraries.
21448    case $host_os in
21449    aix3* | aix4* | aix5*)
21450      # On AIX/PPC, the GNU linker is very broken
21451      if test "$host_cpu" != ia64; then
21452	ld_shlibs_F77=no
21453	cat <<EOF 1>&2
21454
21455*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21456*** to be unable to reliably create shared libraries on AIX.
21457*** Therefore, libtool is disabling shared libraries support.  If you
21458*** really care for shared libraries, you may want to modify your PATH
21459*** so that a non-GNU linker is found, and then restart.
21460
21461EOF
21462      fi
21463      ;;
21464
21465    amigaos*)
21466      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)'
21467      hardcode_libdir_flag_spec_F77='-L$libdir'
21468      hardcode_minus_L_F77=yes
21469
21470      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21471      # that the semantics of dynamic libraries on AmigaOS, at least up
21472      # to version 4, is to share data among multiple programs linked
21473      # with the same dynamic library.  Since this doesn't match the
21474      # behavior of shared libraries on other platforms, we can't use
21475      # them.
21476      ld_shlibs_F77=no
21477      ;;
21478
21479    beos*)
21480      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21481	allow_undefined_flag_F77=unsupported
21482	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21483	# support --undefined.  This deserves some investigation.  FIXME
21484	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21485      else
21486	ld_shlibs_F77=no
21487      fi
21488      ;;
21489
21490    cygwin* | mingw* | pw32*)
21491      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21492      # as there is no search path for DLLs.
21493      hardcode_libdir_flag_spec_F77='-L$libdir'
21494      allow_undefined_flag_F77=unsupported
21495      always_export_symbols_F77=no
21496      enable_shared_with_static_runtimes_F77=yes
21497      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21498
21499      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21500        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21501	# If the export-symbols file already is a .def file (1st line
21502	# is EXPORTS), use it as is; otherwise, prepend...
21503	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21504	  cp $export_symbols $output_objdir/$soname.def;
21505	else
21506	  echo EXPORTS > $output_objdir/$soname.def;
21507	  cat $export_symbols >> $output_objdir/$soname.def;
21508	fi~
21509	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21510      else
21511	ld_shlibs_F77=no
21512      fi
21513      ;;
21514
21515    interix3*)
21516      hardcode_direct_F77=no
21517      hardcode_shlibpath_var_F77=no
21518      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21519      export_dynamic_flag_spec_F77='${wl}-E'
21520      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21521      # Instead, shared libraries are loaded at an image base (0x10000000 by
21522      # default) and relocated if they conflict, which is a slow very memory
21523      # consuming and fragmenting process.  To avoid this, we pick a random,
21524      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21525      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21526      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'
21527      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'
21528      ;;
21529
21530    linux*)
21531      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21532	tmp_addflag=
21533	case $cc_basename,$host_cpu in
21534	pgcc*)				# Portland Group C compiler
21535	  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'
21536	  tmp_addflag=' $pic_flag'
21537	  ;;
21538	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
21539	  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'
21540	  tmp_addflag=' $pic_flag -Mnomain' ;;
21541	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
21542	  tmp_addflag=' -i_dynamic' ;;
21543	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
21544	  tmp_addflag=' -i_dynamic -nofor_main' ;;
21545	ifc* | ifort*)			# Intel Fortran compiler
21546	  tmp_addflag=' -nofor_main' ;;
21547	esac
21548	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21549
21550	if test $supports_anon_versioning = yes; then
21551	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21552  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21553  $echo "local: *; };" >> $output_objdir/$libname.ver~
21554	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21555	fi
21556      else
21557	ld_shlibs_F77=no
21558      fi
21559      ;;
21560
21561    netbsd*)
21562      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21563	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21564	wlarc=
21565      else
21566	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21567	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21568      fi
21569      ;;
21570
21571    solaris*)
21572      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21573	ld_shlibs_F77=no
21574	cat <<EOF 1>&2
21575
21576*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21577*** create shared libraries on Solaris systems.  Therefore, libtool
21578*** is disabling shared libraries support.  We urge you to upgrade GNU
21579*** binutils to release 2.9.1 or newer.  Another option is to modify
21580*** your PATH or compiler configuration so that the native linker is
21581*** used, and then restart.
21582
21583EOF
21584      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21585	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21586	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21587      else
21588	ld_shlibs_F77=no
21589      fi
21590      ;;
21591
21592    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21593      case `$LD -v 2>&1` in
21594        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21595	ld_shlibs_F77=no
21596	cat <<_LT_EOF 1>&2
21597
21598*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21599*** reliably create shared libraries on SCO systems.  Therefore, libtool
21600*** is disabling shared libraries support.  We urge you to upgrade GNU
21601*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21602*** your PATH or compiler configuration so that the native linker is
21603*** used, and then restart.
21604
21605_LT_EOF
21606	;;
21607	*)
21608	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21609	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21610	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21611	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21612	  else
21613	    ld_shlibs_F77=no
21614	  fi
21615	;;
21616      esac
21617      ;;
21618
21619    sunos4*)
21620      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21621      wlarc=
21622      hardcode_direct_F77=yes
21623      hardcode_shlibpath_var_F77=no
21624      ;;
21625
21626    *)
21627      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21628	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21629	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21630      else
21631	ld_shlibs_F77=no
21632      fi
21633      ;;
21634    esac
21635
21636    if test "$ld_shlibs_F77" = no; then
21637      runpath_var=
21638      hardcode_libdir_flag_spec_F77=
21639      export_dynamic_flag_spec_F77=
21640      whole_archive_flag_spec_F77=
21641    fi
21642  else
21643    # PORTME fill in a description of your system's linker (not GNU ld)
21644    case $host_os in
21645    aix3*)
21646      allow_undefined_flag_F77=unsupported
21647      always_export_symbols_F77=yes
21648      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'
21649      # Note: this linker hardcodes the directories in LIBPATH if there
21650      # are no directories specified by -L.
21651      hardcode_minus_L_F77=yes
21652      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21653	# Neither direct hardcoding nor static linking is supported with a
21654	# broken collect2.
21655	hardcode_direct_F77=unsupported
21656      fi
21657      ;;
21658
21659    aix4* | aix5*)
21660      if test "$host_cpu" = ia64; then
21661	# On IA64, the linker does run time linking by default, so we don't
21662	# have to do anything special.
21663	aix_use_runtimelinking=no
21664	exp_sym_flag='-Bexport'
21665	no_entry_flag=""
21666      else
21667	# If we're using GNU nm, then we don't want the "-C" option.
21668	# -C means demangle to AIX nm, but means don't demangle with GNU nm
21669	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21670	  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'
21671	else
21672	  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'
21673	fi
21674	aix_use_runtimelinking=no
21675
21676	# Test if we are trying to use run time linking or normal
21677	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
21678	# need to do runtime linking.
21679	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21680	  for ld_flag in $LDFLAGS; do
21681  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21682  	    aix_use_runtimelinking=yes
21683  	    break
21684  	  fi
21685	  done
21686	  ;;
21687	esac
21688
21689	exp_sym_flag='-bexport'
21690	no_entry_flag='-bnoentry'
21691      fi
21692
21693      # When large executables or shared objects are built, AIX ld can
21694      # have problems creating the table of contents.  If linking a library
21695      # or program results in "error TOC overflow" add -mminimal-toc to
21696      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21697      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21698
21699      archive_cmds_F77=''
21700      hardcode_direct_F77=yes
21701      hardcode_libdir_separator_F77=':'
21702      link_all_deplibs_F77=yes
21703
21704      if test "$GCC" = yes; then
21705	case $host_os in aix4.[012]|aix4.[012].*)
21706	# We only want to do this on AIX 4.2 and lower, the check
21707	# below for broken collect2 doesn't work under 4.3+
21708	  collect2name=`${CC} -print-prog-name=collect2`
21709	  if test -f "$collect2name" && \
21710  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
21711	  then
21712  	  # We have reworked collect2
21713  	  hardcode_direct_F77=yes
21714	  else
21715  	  # We have old collect2
21716  	  hardcode_direct_F77=unsupported
21717  	  # It fails to find uninstalled libraries when the uninstalled
21718  	  # path is not listed in the libpath.  Setting hardcode_minus_L
21719  	  # to unsupported forces relinking
21720  	  hardcode_minus_L_F77=yes
21721  	  hardcode_libdir_flag_spec_F77='-L$libdir'
21722  	  hardcode_libdir_separator_F77=
21723	  fi
21724	  ;;
21725	esac
21726	shared_flag='-shared'
21727	if test "$aix_use_runtimelinking" = yes; then
21728	  shared_flag="$shared_flag "'${wl}-G'
21729	fi
21730      else
21731	# not using gcc
21732	if test "$host_cpu" = ia64; then
21733  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21734  	# chokes on -Wl,-G. The following line is correct:
21735	  shared_flag='-G'
21736	else
21737	  if test "$aix_use_runtimelinking" = yes; then
21738	    shared_flag='${wl}-G'
21739	  else
21740	    shared_flag='${wl}-bM:SRE'
21741	  fi
21742	fi
21743      fi
21744
21745      # It seems that -bexpall does not export symbols beginning with
21746      # underscore (_), so it is better to generate a list of symbols to export.
21747      always_export_symbols_F77=yes
21748      if test "$aix_use_runtimelinking" = yes; then
21749	# Warning - without using the other runtime loading flags (-brtl),
21750	# -berok will link without error, but may produce a broken library.
21751	allow_undefined_flag_F77='-berok'
21752       # Determine the default libpath from the value encoded in an empty executable.
21753       cat >conftest.$ac_ext <<_ACEOF
21754      program main
21755
21756      end
21757_ACEOF
21758rm -f conftest.$ac_objext conftest$ac_exeext
21759if { (ac_try="$ac_link"
21760case "(($ac_try" in
21761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21762  *) ac_try_echo=$ac_try;;
21763esac
21764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21765  (eval "$ac_link") 2>conftest.er1
21766  ac_status=$?
21767  grep -v '^ *+' conftest.er1 >conftest.err
21768  rm -f conftest.er1
21769  cat conftest.err >&5
21770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771  (exit $ac_status); } &&
21772	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21773  { (case "(($ac_try" in
21774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21775  *) ac_try_echo=$ac_try;;
21776esac
21777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21778  (eval "$ac_try") 2>&5
21779  ac_status=$?
21780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781  (exit $ac_status); }; } &&
21782	 { ac_try='test -s conftest$ac_exeext'
21783  { (case "(($ac_try" in
21784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21785  *) ac_try_echo=$ac_try;;
21786esac
21787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21788  (eval "$ac_try") 2>&5
21789  ac_status=$?
21790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791  (exit $ac_status); }; }; then
21792
21793aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21794}'`
21795# Check for a 64-bit object if we didn't find anything.
21796if 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; }
21797}'`; fi
21798else
21799  echo "$as_me: failed program was:" >&5
21800sed 's/^/| /' conftest.$ac_ext >&5
21801
21802
21803fi
21804
21805rm -f core conftest.err conftest.$ac_objext \
21806      conftest$ac_exeext conftest.$ac_ext
21807if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21808
21809       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21810	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"
21811       else
21812	if test "$host_cpu" = ia64; then
21813	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21814	  allow_undefined_flag_F77="-z nodefs"
21815	  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"
21816	else
21817	 # Determine the default libpath from the value encoded in an empty executable.
21818	 cat >conftest.$ac_ext <<_ACEOF
21819      program main
21820
21821      end
21822_ACEOF
21823rm -f conftest.$ac_objext conftest$ac_exeext
21824if { (ac_try="$ac_link"
21825case "(($ac_try" in
21826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21827  *) ac_try_echo=$ac_try;;
21828esac
21829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21830  (eval "$ac_link") 2>conftest.er1
21831  ac_status=$?
21832  grep -v '^ *+' conftest.er1 >conftest.err
21833  rm -f conftest.er1
21834  cat conftest.err >&5
21835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21836  (exit $ac_status); } &&
21837	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21838  { (case "(($ac_try" in
21839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21840  *) ac_try_echo=$ac_try;;
21841esac
21842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21843  (eval "$ac_try") 2>&5
21844  ac_status=$?
21845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846  (exit $ac_status); }; } &&
21847	 { ac_try='test -s conftest$ac_exeext'
21848  { (case "(($ac_try" in
21849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21850  *) ac_try_echo=$ac_try;;
21851esac
21852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21853  (eval "$ac_try") 2>&5
21854  ac_status=$?
21855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856  (exit $ac_status); }; }; then
21857
21858aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21859}'`
21860# Check for a 64-bit object if we didn't find anything.
21861if 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; }
21862}'`; fi
21863else
21864  echo "$as_me: failed program was:" >&5
21865sed 's/^/| /' conftest.$ac_ext >&5
21866
21867
21868fi
21869
21870rm -f core conftest.err conftest.$ac_objext \
21871      conftest$ac_exeext conftest.$ac_ext
21872if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21873
21874	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21875	  # Warning - without using the other run time loading flags,
21876	  # -berok will link without error, but may produce a broken library.
21877	  no_undefined_flag_F77=' ${wl}-bernotok'
21878	  allow_undefined_flag_F77=' ${wl}-berok'
21879	  # Exported symbols can be pulled into shared objects from archives
21880	  whole_archive_flag_spec_F77='$convenience'
21881	  archive_cmds_need_lc_F77=yes
21882	  # This is similar to how AIX traditionally builds its shared libraries.
21883	  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'
21884	fi
21885      fi
21886      ;;
21887
21888    amigaos*)
21889      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)'
21890      hardcode_libdir_flag_spec_F77='-L$libdir'
21891      hardcode_minus_L_F77=yes
21892      # see comment about different semantics on the GNU ld section
21893      ld_shlibs_F77=no
21894      ;;
21895
21896    bsdi[45]*)
21897      export_dynamic_flag_spec_F77=-rdynamic
21898      ;;
21899
21900    cygwin* | mingw* | pw32*)
21901      # When not using gcc, we currently assume that we are using
21902      # Microsoft Visual C++.
21903      # hardcode_libdir_flag_spec is actually meaningless, as there is
21904      # no search path for DLLs.
21905      hardcode_libdir_flag_spec_F77=' '
21906      allow_undefined_flag_F77=unsupported
21907      # Tell ltmain to make .lib files, not .a files.
21908      libext=lib
21909      # Tell ltmain to make .dll files, not .so files.
21910      shrext_cmds=".dll"
21911      # FIXME: Setting linknames here is a bad hack.
21912      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21913      # The linker will automatically build a .lib file if we build a DLL.
21914      old_archive_From_new_cmds_F77='true'
21915      # FIXME: Should let the user specify the lib program.
21916      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21917      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21918      enable_shared_with_static_runtimes_F77=yes
21919      ;;
21920
21921    darwin* | rhapsody*)
21922      case $host_os in
21923        rhapsody* | darwin1.[012])
21924         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21925         ;;
21926       *) # Darwin 1.3 on
21927         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21928           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21929         else
21930           case ${MACOSX_DEPLOYMENT_TARGET} in
21931             10.[012])
21932               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21933               ;;
21934             10.*)
21935               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21936               ;;
21937           esac
21938         fi
21939         ;;
21940      esac
21941      archive_cmds_need_lc_F77=no
21942      hardcode_direct_F77=no
21943      hardcode_automatic_F77=yes
21944      hardcode_shlibpath_var_F77=unsupported
21945      whole_archive_flag_spec_F77=''
21946      link_all_deplibs_F77=yes
21947    if test "$GCC" = yes ; then
21948    	output_verbose_link_cmd='echo'
21949        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21950      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21951      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21952      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}'
21953      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}'
21954    else
21955      case $cc_basename in
21956        xlc*)
21957         output_verbose_link_cmd='echo'
21958         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21959         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21960          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21961         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}'
21962          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}'
21963          ;;
21964       *)
21965         ld_shlibs_F77=no
21966          ;;
21967      esac
21968    fi
21969      ;;
21970
21971    dgux*)
21972      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21973      hardcode_libdir_flag_spec_F77='-L$libdir'
21974      hardcode_shlibpath_var_F77=no
21975      ;;
21976
21977    freebsd1*)
21978      ld_shlibs_F77=no
21979      ;;
21980
21981    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21982    # support.  Future versions do this automatically, but an explicit c++rt0.o
21983    # does not break anything, and helps significantly (at the cost of a little
21984    # extra space).
21985    freebsd2.2*)
21986      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21987      hardcode_libdir_flag_spec_F77='-R$libdir'
21988      hardcode_direct_F77=yes
21989      hardcode_shlibpath_var_F77=no
21990      ;;
21991
21992    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21993    freebsd2*)
21994      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21995      hardcode_direct_F77=yes
21996      hardcode_minus_L_F77=yes
21997      hardcode_shlibpath_var_F77=no
21998      ;;
21999
22000    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22001    freebsd* | kfreebsd*-gnu | dragonfly*)
22002      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22003      hardcode_libdir_flag_spec_F77='-R$libdir'
22004      hardcode_direct_F77=yes
22005      hardcode_shlibpath_var_F77=no
22006      ;;
22007
22008    hpux9*)
22009      if test "$GCC" = yes; then
22010	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'
22011      else
22012	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'
22013      fi
22014      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22015      hardcode_libdir_separator_F77=:
22016      hardcode_direct_F77=yes
22017
22018      # hardcode_minus_L: Not really in the search PATH,
22019      # but as the default location of the library.
22020      hardcode_minus_L_F77=yes
22021      export_dynamic_flag_spec_F77='${wl}-E'
22022      ;;
22023
22024    hpux10*)
22025      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22026	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22027      else
22028	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22029      fi
22030      if test "$with_gnu_ld" = no; then
22031	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22032	hardcode_libdir_separator_F77=:
22033
22034	hardcode_direct_F77=yes
22035	export_dynamic_flag_spec_F77='${wl}-E'
22036
22037	# hardcode_minus_L: Not really in the search PATH,
22038	# but as the default location of the library.
22039	hardcode_minus_L_F77=yes
22040      fi
22041      ;;
22042
22043    hpux11*)
22044      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22045	case $host_cpu in
22046	hppa*64*)
22047	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22048	  ;;
22049	ia64*)
22050	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22051	  ;;
22052	*)
22053	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22054	  ;;
22055	esac
22056      else
22057	case $host_cpu in
22058	hppa*64*)
22059	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22060	  ;;
22061	ia64*)
22062	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22063	  ;;
22064	*)
22065	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22066	  ;;
22067	esac
22068      fi
22069      if test "$with_gnu_ld" = no; then
22070	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22071	hardcode_libdir_separator_F77=:
22072
22073	case $host_cpu in
22074	hppa*64*|ia64*)
22075	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22076	  hardcode_direct_F77=no
22077	  hardcode_shlibpath_var_F77=no
22078	  ;;
22079	*)
22080	  hardcode_direct_F77=yes
22081	  export_dynamic_flag_spec_F77='${wl}-E'
22082
22083	  # hardcode_minus_L: Not really in the search PATH,
22084	  # but as the default location of the library.
22085	  hardcode_minus_L_F77=yes
22086	  ;;
22087	esac
22088      fi
22089      ;;
22090
22091    irix5* | irix6* | nonstopux*)
22092      if test "$GCC" = yes; then
22093	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'
22094      else
22095	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'
22096	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22097      fi
22098      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22099      hardcode_libdir_separator_F77=:
22100      link_all_deplibs_F77=yes
22101      ;;
22102
22103    netbsd*)
22104      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22105	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22106      else
22107	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22108      fi
22109      hardcode_libdir_flag_spec_F77='-R$libdir'
22110      hardcode_direct_F77=yes
22111      hardcode_shlibpath_var_F77=no
22112      ;;
22113
22114    newsos6)
22115      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22116      hardcode_direct_F77=yes
22117      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22118      hardcode_libdir_separator_F77=:
22119      hardcode_shlibpath_var_F77=no
22120      ;;
22121
22122    openbsd*)
22123      hardcode_direct_F77=yes
22124      hardcode_shlibpath_var_F77=no
22125      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22126	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22127	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22128	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22129	export_dynamic_flag_spec_F77='${wl}-E'
22130      else
22131       case $host_os in
22132	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22133	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22134	   hardcode_libdir_flag_spec_F77='-R$libdir'
22135	   ;;
22136	 *)
22137	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22138	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22139	   ;;
22140       esac
22141      fi
22142      ;;
22143
22144    os2*)
22145      hardcode_libdir_flag_spec_F77='-L$libdir'
22146      hardcode_minus_L_F77=yes
22147      allow_undefined_flag_F77=unsupported
22148      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'
22149      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22150      ;;
22151
22152    osf3*)
22153      if test "$GCC" = yes; then
22154	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22155	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'
22156      else
22157	allow_undefined_flag_F77=' -expect_unresolved \*'
22158	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'
22159      fi
22160      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22161      hardcode_libdir_separator_F77=:
22162      ;;
22163
22164    osf4* | osf5*)	# as osf3* with the addition of -msym flag
22165      if test "$GCC" = yes; then
22166	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22167	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'
22168	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22169      else
22170	allow_undefined_flag_F77=' -expect_unresolved \*'
22171	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'
22172	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~
22173	$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'
22174
22175	# Both c and cxx compiler support -rpath directly
22176	hardcode_libdir_flag_spec_F77='-rpath $libdir'
22177      fi
22178      hardcode_libdir_separator_F77=:
22179      ;;
22180
22181    solaris*)
22182      no_undefined_flag_F77=' -z text'
22183      if test "$GCC" = yes; then
22184	wlarc='${wl}'
22185	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22186	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22187	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22188      else
22189	wlarc=''
22190	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22191	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22192  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22193      fi
22194      hardcode_libdir_flag_spec_F77='-R$libdir'
22195      hardcode_shlibpath_var_F77=no
22196      case $host_os in
22197      solaris2.[0-5] | solaris2.[0-5].*) ;;
22198      *)
22199 	# The compiler driver will combine linker options so we
22200 	# cannot just pass the convience library names through
22201 	# without $wl, iff we do not link with $LD.
22202 	# Luckily, gcc supports the same syntax we need for Sun Studio.
22203 	# Supported since Solaris 2.6 (maybe 2.5.1?)
22204 	case $wlarc in
22205 	'')
22206 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22207 	*)
22208 	  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' ;;
22209 	esac ;;
22210      esac
22211      link_all_deplibs_F77=yes
22212      ;;
22213
22214    sunos4*)
22215      if test "x$host_vendor" = xsequent; then
22216	# Use $CC to link under sequent, because it throws in some extra .o
22217	# files that make .init and .fini sections work.
22218	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22219      else
22220	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22221      fi
22222      hardcode_libdir_flag_spec_F77='-L$libdir'
22223      hardcode_direct_F77=yes
22224      hardcode_minus_L_F77=yes
22225      hardcode_shlibpath_var_F77=no
22226      ;;
22227
22228    sysv4)
22229      case $host_vendor in
22230	sni)
22231	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22232	  hardcode_direct_F77=yes # is this really true???
22233	;;
22234	siemens)
22235	  ## LD is ld it makes a PLAMLIB
22236	  ## CC just makes a GrossModule.
22237	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22238	  reload_cmds_F77='$CC -r -o $output$reload_objs'
22239	  hardcode_direct_F77=no
22240        ;;
22241	motorola)
22242	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22243	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22244	;;
22245      esac
22246      runpath_var='LD_RUN_PATH'
22247      hardcode_shlibpath_var_F77=no
22248      ;;
22249
22250    sysv4.3*)
22251      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22252      hardcode_shlibpath_var_F77=no
22253      export_dynamic_flag_spec_F77='-Bexport'
22254      ;;
22255
22256    sysv4*MP*)
22257      if test -d /usr/nec; then
22258	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22259	hardcode_shlibpath_var_F77=no
22260	runpath_var=LD_RUN_PATH
22261	hardcode_runpath_var=yes
22262	ld_shlibs_F77=yes
22263      fi
22264      ;;
22265
22266    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22267      no_undefined_flag_F77='${wl}-z,text'
22268      archive_cmds_need_lc_F77=no
22269      hardcode_shlibpath_var_F77=no
22270      runpath_var='LD_RUN_PATH'
22271
22272      if test "$GCC" = yes; then
22273	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22274	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22275      else
22276	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22277	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22278      fi
22279      ;;
22280
22281    sysv5* | sco3.2v5* | sco5v6*)
22282      # Note: We can NOT use -z defs as we might desire, because we do not
22283      # link with -lc, and that would cause any symbols used from libc to
22284      # always be unresolved, which means just about no library would
22285      # ever link correctly.  If we're not using GNU ld we use -z text
22286      # though, which does catch some bad symbols but isn't as heavy-handed
22287      # as -z defs.
22288      no_undefined_flag_F77='${wl}-z,text'
22289      allow_undefined_flag_F77='${wl}-z,nodefs'
22290      archive_cmds_need_lc_F77=no
22291      hardcode_shlibpath_var_F77=no
22292      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22293      hardcode_libdir_separator_F77=':'
22294      link_all_deplibs_F77=yes
22295      export_dynamic_flag_spec_F77='${wl}-Bexport'
22296      runpath_var='LD_RUN_PATH'
22297
22298      if test "$GCC" = yes; then
22299	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22300	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22301      else
22302	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22303	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22304      fi
22305      ;;
22306
22307    uts4*)
22308      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22309      hardcode_libdir_flag_spec_F77='-L$libdir'
22310      hardcode_shlibpath_var_F77=no
22311      ;;
22312
22313    *)
22314      ld_shlibs_F77=no
22315      ;;
22316    esac
22317  fi
22318
22319{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22320echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22321test "$ld_shlibs_F77" = no && can_build_shared=no
22322
22323#
22324# Do we need to explicitly link libc?
22325#
22326case "x$archive_cmds_need_lc_F77" in
22327x|xyes)
22328  # Assume -lc should be added
22329  archive_cmds_need_lc_F77=yes
22330
22331  if test "$enable_shared" = yes && test "$GCC" = yes; then
22332    case $archive_cmds_F77 in
22333    *'~'*)
22334      # FIXME: we may have to deal with multi-command sequences.
22335      ;;
22336    '$CC '*)
22337      # Test whether the compiler implicitly links with -lc since on some
22338      # systems, -lgcc has to come before -lc. If gcc already passes -lc
22339      # to ld, don't add -lc before -lgcc.
22340      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22341echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22342      $rm conftest*
22343      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22344
22345      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22346  (eval $ac_compile) 2>&5
22347  ac_status=$?
22348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349  (exit $ac_status); } 2>conftest.err; then
22350        soname=conftest
22351        lib=conftest
22352        libobjs=conftest.$ac_objext
22353        deplibs=
22354        wl=$lt_prog_compiler_wl_F77
22355	pic_flag=$lt_prog_compiler_pic_F77
22356        compiler_flags=-v
22357        linker_flags=-v
22358        verstring=
22359        output_objdir=.
22360        libname=conftest
22361        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22362        allow_undefined_flag_F77=
22363        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22364  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22365  ac_status=$?
22366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367  (exit $ac_status); }
22368        then
22369	  archive_cmds_need_lc_F77=no
22370        else
22371	  archive_cmds_need_lc_F77=yes
22372        fi
22373        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22374      else
22375        cat conftest.err 1>&5
22376      fi
22377      $rm conftest*
22378      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22379echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22380      ;;
22381    esac
22382  fi
22383  ;;
22384esac
22385
22386{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22387echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22388library_names_spec=
22389libname_spec='lib$name'
22390soname_spec=
22391shrext_cmds=".so"
22392postinstall_cmds=
22393postuninstall_cmds=
22394finish_cmds=
22395finish_eval=
22396shlibpath_var=
22397shlibpath_overrides_runpath=unknown
22398version_type=none
22399dynamic_linker="$host_os ld.so"
22400sys_lib_dlsearch_path_spec="/lib /usr/lib"
22401if test "$GCC" = yes; then
22402  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22403  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22404    # if the path contains ";" then we assume it to be the separator
22405    # otherwise default to the standard path separator (i.e. ":") - it is
22406    # assumed that no part of a normal pathname contains ";" but that should
22407    # okay in the real world where ";" in dirpaths is itself problematic.
22408    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22409  else
22410    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22411  fi
22412else
22413  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22414fi
22415need_lib_prefix=unknown
22416hardcode_into_libs=no
22417
22418# when you set need_version to no, make sure it does not cause -set_version
22419# flags to be left without arguments
22420need_version=unknown
22421
22422case $host_os in
22423aix3*)
22424  version_type=linux
22425  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22426  shlibpath_var=LIBPATH
22427
22428  # AIX 3 has no versioning support, so we append a major version to the name.
22429  soname_spec='${libname}${release}${shared_ext}$major'
22430  ;;
22431
22432aix4* | aix5*)
22433  version_type=linux
22434  need_lib_prefix=no
22435  need_version=no
22436  hardcode_into_libs=yes
22437  if test "$host_cpu" = ia64; then
22438    # AIX 5 supports IA64
22439    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22440    shlibpath_var=LD_LIBRARY_PATH
22441  else
22442    # With GCC up to 2.95.x, collect2 would create an import file
22443    # for dependence libraries.  The import file would start with
22444    # the line `#! .'.  This would cause the generated library to
22445    # depend on `.', always an invalid library.  This was fixed in
22446    # development snapshots of GCC prior to 3.0.
22447    case $host_os in
22448      aix4 | aix4.[01] | aix4.[01].*)
22449      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22450	   echo ' yes '
22451	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22452	:
22453      else
22454	can_build_shared=no
22455      fi
22456      ;;
22457    esac
22458    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22459    # soname into executable. Probably we can add versioning support to
22460    # collect2, so additional links can be useful in future.
22461    if test "$aix_use_runtimelinking" = yes; then
22462      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22463      # instead of lib<name>.a to let people know that these are not
22464      # typical AIX shared libraries.
22465      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22466    else
22467      # We preserve .a as extension for shared libraries through AIX4.2
22468      # and later when we are not doing run time linking.
22469      library_names_spec='${libname}${release}.a $libname.a'
22470      soname_spec='${libname}${release}${shared_ext}$major'
22471    fi
22472    shlibpath_var=LIBPATH
22473  fi
22474  ;;
22475
22476amigaos*)
22477  library_names_spec='$libname.ixlibrary $libname.a'
22478  # Create ${libname}_ixlibrary.a entries in /sys/libs.
22479  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'
22480  ;;
22481
22482beos*)
22483  library_names_spec='${libname}${shared_ext}'
22484  dynamic_linker="$host_os ld.so"
22485  shlibpath_var=LIBRARY_PATH
22486  ;;
22487
22488bsdi[45]*)
22489  version_type=linux
22490  need_version=no
22491  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22492  soname_spec='${libname}${release}${shared_ext}$major'
22493  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22494  shlibpath_var=LD_LIBRARY_PATH
22495  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22496  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22497  # the default ld.so.conf also contains /usr/contrib/lib and
22498  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22499  # libtool to hard-code these into programs
22500  ;;
22501
22502cygwin* | mingw* | pw32*)
22503  version_type=windows
22504  shrext_cmds=".dll"
22505  need_version=no
22506  need_lib_prefix=no
22507
22508  case $GCC,$host_os in
22509  yes,cygwin* | yes,mingw* | yes,pw32*)
22510    library_names_spec='$libname.dll.a'
22511    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22512    postinstall_cmds='base_file=`basename \${file}`~
22513      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22514      dldir=$destdir/`dirname \$dlpath`~
22515      test -d \$dldir || mkdir -p \$dldir~
22516      $install_prog $dir/$dlname \$dldir/$dlname~
22517      chmod a+x \$dldir/$dlname'
22518    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22519      dlpath=$dir/\$dldll~
22520       $rm \$dlpath'
22521    shlibpath_overrides_runpath=yes
22522
22523    case $host_os in
22524    cygwin*)
22525      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22526      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22527      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22528      ;;
22529    mingw*)
22530      # MinGW DLLs use traditional 'lib' prefix
22531      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22532      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22533      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22534        # It is most probably a Windows format PATH printed by
22535        # mingw gcc, but we are running on Cygwin. Gcc prints its search
22536        # path with ; separators, and with drive letters. We can handle the
22537        # drive letters (cygwin fileutils understands them), so leave them,
22538        # especially as we might pass files found there to a mingw objdump,
22539        # which wouldn't understand a cygwinified path. Ahh.
22540        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22541      else
22542        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22543      fi
22544      ;;
22545    pw32*)
22546      # pw32 DLLs use 'pw' prefix rather than 'lib'
22547      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22548      ;;
22549    esac
22550    ;;
22551
22552  *)
22553    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22554    ;;
22555  esac
22556  dynamic_linker='Win32 ld.exe'
22557  # FIXME: first we should search . and the directory the executable is in
22558  shlibpath_var=PATH
22559  ;;
22560
22561darwin* | rhapsody*)
22562  dynamic_linker="$host_os dyld"
22563  version_type=darwin
22564  need_lib_prefix=no
22565  need_version=no
22566  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22567  soname_spec='${libname}${release}${major}$shared_ext'
22568  shlibpath_overrides_runpath=yes
22569  shlibpath_var=DYLD_LIBRARY_PATH
22570  shrext_cmds='.dylib'
22571  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22572  if test "$GCC" = yes; then
22573    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"`
22574  else
22575    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22576  fi
22577  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22578  ;;
22579
22580dgux*)
22581  version_type=linux
22582  need_lib_prefix=no
22583  need_version=no
22584  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22585  soname_spec='${libname}${release}${shared_ext}$major'
22586  shlibpath_var=LD_LIBRARY_PATH
22587  ;;
22588
22589freebsd1*)
22590  dynamic_linker=no
22591  ;;
22592
22593kfreebsd*-gnu)
22594  version_type=linux
22595  need_lib_prefix=no
22596  need_version=no
22597  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22598  soname_spec='${libname}${release}${shared_ext}$major'
22599  shlibpath_var=LD_LIBRARY_PATH
22600  shlibpath_overrides_runpath=no
22601  hardcode_into_libs=yes
22602  dynamic_linker='GNU ld.so'
22603  ;;
22604
22605freebsd* | dragonfly*)
22606  # DragonFly does not have aout.  When/if they implement a new
22607  # versioning mechanism, adjust this.
22608  if test -x /usr/bin/objformat; then
22609    objformat=`/usr/bin/objformat`
22610  else
22611    case $host_os in
22612    freebsd[123]*) objformat=aout ;;
22613    *) objformat=elf ;;
22614    esac
22615  fi
22616  version_type=freebsd-$objformat
22617  case $version_type in
22618    freebsd-elf*)
22619      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22620      need_version=no
22621      need_lib_prefix=no
22622      ;;
22623    freebsd-*)
22624      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22625      need_version=yes
22626      ;;
22627  esac
22628  shlibpath_var=LD_LIBRARY_PATH
22629  case $host_os in
22630  freebsd2*)
22631    shlibpath_overrides_runpath=yes
22632    ;;
22633  freebsd3.[01]* | freebsdelf3.[01]*)
22634    shlibpath_overrides_runpath=yes
22635    hardcode_into_libs=yes
22636    ;;
22637  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22638  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22639    shlibpath_overrides_runpath=no
22640    hardcode_into_libs=yes
22641    ;;
22642  freebsd*) # from 4.6 on
22643    shlibpath_overrides_runpath=yes
22644    hardcode_into_libs=yes
22645    ;;
22646  esac
22647  ;;
22648
22649gnu*)
22650  version_type=linux
22651  need_lib_prefix=no
22652  need_version=no
22653  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22654  soname_spec='${libname}${release}${shared_ext}$major'
22655  shlibpath_var=LD_LIBRARY_PATH
22656  hardcode_into_libs=yes
22657  ;;
22658
22659hpux9* | hpux10* | hpux11*)
22660  # Give a soname corresponding to the major version so that dld.sl refuses to
22661  # link against other versions.
22662  version_type=sunos
22663  need_lib_prefix=no
22664  need_version=no
22665  case $host_cpu in
22666  ia64*)
22667    shrext_cmds='.so'
22668    hardcode_into_libs=yes
22669    dynamic_linker="$host_os dld.so"
22670    shlibpath_var=LD_LIBRARY_PATH
22671    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22672    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22673    soname_spec='${libname}${release}${shared_ext}$major'
22674    if test "X$HPUX_IA64_MODE" = X32; then
22675      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22676    else
22677      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22678    fi
22679    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22680    ;;
22681   hppa*64*)
22682     shrext_cmds='.sl'
22683     hardcode_into_libs=yes
22684     dynamic_linker="$host_os dld.sl"
22685     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22686     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22687     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22688     soname_spec='${libname}${release}${shared_ext}$major'
22689     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22690     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22691     ;;
22692   *)
22693    shrext_cmds='.sl'
22694    dynamic_linker="$host_os dld.sl"
22695    shlibpath_var=SHLIB_PATH
22696    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22697    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22698    soname_spec='${libname}${release}${shared_ext}$major'
22699    ;;
22700  esac
22701  # HP-UX runs *really* slowly unless shared libraries are mode 555.
22702  postinstall_cmds='chmod 555 $lib'
22703  ;;
22704
22705interix3*)
22706  version_type=linux
22707  need_lib_prefix=no
22708  need_version=no
22709  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22710  soname_spec='${libname}${release}${shared_ext}$major'
22711  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22712  shlibpath_var=LD_LIBRARY_PATH
22713  shlibpath_overrides_runpath=no
22714  hardcode_into_libs=yes
22715  ;;
22716
22717irix5* | irix6* | nonstopux*)
22718  case $host_os in
22719    nonstopux*) version_type=nonstopux ;;
22720    *)
22721	if test "$lt_cv_prog_gnu_ld" = yes; then
22722		version_type=linux
22723	else
22724		version_type=irix
22725	fi ;;
22726  esac
22727  need_lib_prefix=no
22728  need_version=no
22729  soname_spec='${libname}${release}${shared_ext}$major'
22730  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22731  case $host_os in
22732  irix5* | nonstopux*)
22733    libsuff= shlibsuff=
22734    ;;
22735  *)
22736    case $LD in # libtool.m4 will add one of these switches to LD
22737    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22738      libsuff= shlibsuff= libmagic=32-bit;;
22739    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22740      libsuff=32 shlibsuff=N32 libmagic=N32;;
22741    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22742      libsuff=64 shlibsuff=64 libmagic=64-bit;;
22743    *) libsuff= shlibsuff= libmagic=never-match;;
22744    esac
22745    ;;
22746  esac
22747  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22748  shlibpath_overrides_runpath=no
22749  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22750  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22751  hardcode_into_libs=yes
22752  ;;
22753
22754# No shared lib support for Linux oldld, aout, or coff.
22755linux*oldld* | linux*aout* | linux*coff*)
22756  dynamic_linker=no
22757  ;;
22758
22759# This must be Linux ELF.
22760linux*)
22761  version_type=linux
22762  need_lib_prefix=no
22763  need_version=no
22764  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22765  soname_spec='${libname}${release}${shared_ext}$major'
22766  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22767  shlibpath_var=LD_LIBRARY_PATH
22768  shlibpath_overrides_runpath=no
22769  # This implies no fast_install, which is unacceptable.
22770  # Some rework will be needed to allow for fast_install
22771  # before this can be enabled.
22772  hardcode_into_libs=yes
22773
22774  # Append ld.so.conf contents to the search path
22775  if test -f /etc/ld.so.conf; then
22776    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' ' '`
22777    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22778  fi
22779
22780  # We used to test for /lib/ld.so.1 and disable shared libraries on
22781  # powerpc, because MkLinux only supported shared libraries with the
22782  # GNU dynamic linker.  Since this was broken with cross compilers,
22783  # most powerpc-linux boxes support dynamic linking these days and
22784  # people can always --disable-shared, the test was removed, and we
22785  # assume the GNU/Linux dynamic linker is in use.
22786  dynamic_linker='GNU/Linux ld.so'
22787  ;;
22788
22789knetbsd*-gnu)
22790  version_type=linux
22791  need_lib_prefix=no
22792  need_version=no
22793  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22794  soname_spec='${libname}${release}${shared_ext}$major'
22795  shlibpath_var=LD_LIBRARY_PATH
22796  shlibpath_overrides_runpath=no
22797  hardcode_into_libs=yes
22798  dynamic_linker='GNU ld.so'
22799  ;;
22800
22801netbsd*)
22802  version_type=sunos
22803  need_lib_prefix=no
22804  need_version=no
22805  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22806    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22807    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22808    dynamic_linker='NetBSD (a.out) ld.so'
22809  else
22810    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22811    soname_spec='${libname}${release}${shared_ext}$major'
22812    dynamic_linker='NetBSD ld.elf_so'
22813  fi
22814  shlibpath_var=LD_LIBRARY_PATH
22815  shlibpath_overrides_runpath=yes
22816  hardcode_into_libs=yes
22817  ;;
22818
22819newsos6)
22820  version_type=linux
22821  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22822  shlibpath_var=LD_LIBRARY_PATH
22823  shlibpath_overrides_runpath=yes
22824  ;;
22825
22826nto-qnx*)
22827  version_type=linux
22828  need_lib_prefix=no
22829  need_version=no
22830  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22831  soname_spec='${libname}${release}${shared_ext}$major'
22832  shlibpath_var=LD_LIBRARY_PATH
22833  shlibpath_overrides_runpath=yes
22834  ;;
22835
22836openbsd*)
22837  version_type=sunos
22838  sys_lib_dlsearch_path_spec="/usr/lib"
22839  need_lib_prefix=no
22840  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22841  case $host_os in
22842    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22843    *)                         need_version=no  ;;
22844  esac
22845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22846  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22847  shlibpath_var=LD_LIBRARY_PATH
22848  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22849    case $host_os in
22850      openbsd2.[89] | openbsd2.[89].*)
22851	shlibpath_overrides_runpath=no
22852	;;
22853      *)
22854	shlibpath_overrides_runpath=yes
22855	;;
22856      esac
22857  else
22858    shlibpath_overrides_runpath=yes
22859  fi
22860  ;;
22861
22862os2*)
22863  libname_spec='$name'
22864  shrext_cmds=".dll"
22865  need_lib_prefix=no
22866  library_names_spec='$libname${shared_ext} $libname.a'
22867  dynamic_linker='OS/2 ld.exe'
22868  shlibpath_var=LIBPATH
22869  ;;
22870
22871osf3* | osf4* | osf5*)
22872  version_type=osf
22873  need_lib_prefix=no
22874  need_version=no
22875  soname_spec='${libname}${release}${shared_ext}$major'
22876  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22877  shlibpath_var=LD_LIBRARY_PATH
22878  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22879  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22880  ;;
22881
22882solaris*)
22883  version_type=linux
22884  need_lib_prefix=no
22885  need_version=no
22886  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22887  soname_spec='${libname}${release}${shared_ext}$major'
22888  shlibpath_var=LD_LIBRARY_PATH
22889  shlibpath_overrides_runpath=yes
22890  hardcode_into_libs=yes
22891  # ldd complains unless libraries are executable
22892  postinstall_cmds='chmod +x $lib'
22893  ;;
22894
22895sunos4*)
22896  version_type=sunos
22897  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22898  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22899  shlibpath_var=LD_LIBRARY_PATH
22900  shlibpath_overrides_runpath=yes
22901  if test "$with_gnu_ld" = yes; then
22902    need_lib_prefix=no
22903  fi
22904  need_version=yes
22905  ;;
22906
22907sysv4 | sysv4.3*)
22908  version_type=linux
22909  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22910  soname_spec='${libname}${release}${shared_ext}$major'
22911  shlibpath_var=LD_LIBRARY_PATH
22912  case $host_vendor in
22913    sni)
22914      shlibpath_overrides_runpath=no
22915      need_lib_prefix=no
22916      export_dynamic_flag_spec='${wl}-Blargedynsym'
22917      runpath_var=LD_RUN_PATH
22918      ;;
22919    siemens)
22920      need_lib_prefix=no
22921      ;;
22922    motorola)
22923      need_lib_prefix=no
22924      need_version=no
22925      shlibpath_overrides_runpath=no
22926      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22927      ;;
22928  esac
22929  ;;
22930
22931sysv4*MP*)
22932  if test -d /usr/nec ;then
22933    version_type=linux
22934    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22935    soname_spec='$libname${shared_ext}.$major'
22936    shlibpath_var=LD_LIBRARY_PATH
22937  fi
22938  ;;
22939
22940sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22941  version_type=freebsd-elf
22942  need_lib_prefix=no
22943  need_version=no
22944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22945  soname_spec='${libname}${release}${shared_ext}$major'
22946  shlibpath_var=LD_LIBRARY_PATH
22947  hardcode_into_libs=yes
22948  if test "$with_gnu_ld" = yes; then
22949    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22950    shlibpath_overrides_runpath=no
22951  else
22952    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22953    shlibpath_overrides_runpath=yes
22954    case $host_os in
22955      sco3.2v5*)
22956        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22957	;;
22958    esac
22959  fi
22960  sys_lib_dlsearch_path_spec='/usr/lib'
22961  ;;
22962
22963uts4*)
22964  version_type=linux
22965  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22966  soname_spec='${libname}${release}${shared_ext}$major'
22967  shlibpath_var=LD_LIBRARY_PATH
22968  ;;
22969
22970*)
22971  dynamic_linker=no
22972  ;;
22973esac
22974{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22975echo "${ECHO_T}$dynamic_linker" >&6; }
22976test "$dynamic_linker" = no && can_build_shared=no
22977
22978variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22979if test "$GCC" = yes; then
22980  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22981fi
22982
22983{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22984echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22985hardcode_action_F77=
22986if test -n "$hardcode_libdir_flag_spec_F77" || \
22987   test -n "$runpath_var_F77" || \
22988   test "X$hardcode_automatic_F77" = "Xyes" ; then
22989
22990  # We can hardcode non-existant directories.
22991  if test "$hardcode_direct_F77" != no &&
22992     # If the only mechanism to avoid hardcoding is shlibpath_var, we
22993     # have to relink, otherwise we might link with an installed library
22994     # when we should be linking with a yet-to-be-installed one
22995     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22996     test "$hardcode_minus_L_F77" != no; then
22997    # Linking always hardcodes the temporary library directory.
22998    hardcode_action_F77=relink
22999  else
23000    # We can link without hardcoding, and we can hardcode nonexisting dirs.
23001    hardcode_action_F77=immediate
23002  fi
23003else
23004  # We cannot hardcode anything, or else we can only hardcode existing
23005  # directories.
23006  hardcode_action_F77=unsupported
23007fi
23008{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23009echo "${ECHO_T}$hardcode_action_F77" >&6; }
23010
23011if test "$hardcode_action_F77" = relink; then
23012  # Fast installation is not supported
23013  enable_fast_install=no
23014elif test "$shlibpath_overrides_runpath" = yes ||
23015     test "$enable_shared" = no; then
23016  # Fast installation is not necessary
23017  enable_fast_install=needless
23018fi
23019
23020
23021# The else clause should only fire when bootstrapping the
23022# libtool distribution, otherwise you forgot to ship ltmain.sh
23023# with your package, and you will get complaints that there are
23024# no rules to generate ltmain.sh.
23025if test -f "$ltmain"; then
23026  # See if we are running on zsh, and set the options which allow our commands through
23027  # without removal of \ escapes.
23028  if test -n "${ZSH_VERSION+set}" ; then
23029    setopt NO_GLOB_SUBST
23030  fi
23031  # Now quote all the things that may contain metacharacters while being
23032  # careful not to overquote the AC_SUBSTed values.  We take copies of the
23033  # variables and quote the copies for generation of the libtool script.
23034  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23035    SED SHELL STRIP \
23036    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23037    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23038    deplibs_check_method reload_flag reload_cmds need_locks \
23039    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23040    lt_cv_sys_global_symbol_to_c_name_address \
23041    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23042    old_postinstall_cmds old_postuninstall_cmds \
23043    compiler_F77 \
23044    CC_F77 \
23045    LD_F77 \
23046    lt_prog_compiler_wl_F77 \
23047    lt_prog_compiler_pic_F77 \
23048    lt_prog_compiler_static_F77 \
23049    lt_prog_compiler_no_builtin_flag_F77 \
23050    export_dynamic_flag_spec_F77 \
23051    thread_safe_flag_spec_F77 \
23052    whole_archive_flag_spec_F77 \
23053    enable_shared_with_static_runtimes_F77 \
23054    old_archive_cmds_F77 \
23055    old_archive_from_new_cmds_F77 \
23056    predep_objects_F77 \
23057    postdep_objects_F77 \
23058    predeps_F77 \
23059    postdeps_F77 \
23060    compiler_lib_search_path_F77 \
23061    archive_cmds_F77 \
23062    archive_expsym_cmds_F77 \
23063    postinstall_cmds_F77 \
23064    postuninstall_cmds_F77 \
23065    old_archive_from_expsyms_cmds_F77 \
23066    allow_undefined_flag_F77 \
23067    no_undefined_flag_F77 \
23068    export_symbols_cmds_F77 \
23069    hardcode_libdir_flag_spec_F77 \
23070    hardcode_libdir_flag_spec_ld_F77 \
23071    hardcode_libdir_separator_F77 \
23072    hardcode_automatic_F77 \
23073    module_cmds_F77 \
23074    module_expsym_cmds_F77 \
23075    lt_cv_prog_compiler_c_o_F77 \
23076    exclude_expsyms_F77 \
23077    include_expsyms_F77; do
23078
23079    case $var in
23080    old_archive_cmds_F77 | \
23081    old_archive_from_new_cmds_F77 | \
23082    archive_cmds_F77 | \
23083    archive_expsym_cmds_F77 | \
23084    module_cmds_F77 | \
23085    module_expsym_cmds_F77 | \
23086    old_archive_from_expsyms_cmds_F77 | \
23087    export_symbols_cmds_F77 | \
23088    extract_expsyms_cmds | reload_cmds | finish_cmds | \
23089    postinstall_cmds | postuninstall_cmds | \
23090    old_postinstall_cmds | old_postuninstall_cmds | \
23091    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23092      # Double-quote double-evaled strings.
23093      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23094      ;;
23095    *)
23096      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23097      ;;
23098    esac
23099  done
23100
23101  case $lt_echo in
23102  *'\$0 --fallback-echo"')
23103    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23104    ;;
23105  esac
23106
23107cfgfile="$ofile"
23108
23109  cat <<__EOF__ >> "$cfgfile"
23110# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23111
23112# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23113
23114# Shell to use when invoking shell scripts.
23115SHELL=$lt_SHELL
23116
23117# Whether or not to build shared libraries.
23118build_libtool_libs=$enable_shared
23119
23120# Whether or not to build static libraries.
23121build_old_libs=$enable_static
23122
23123# Whether or not to add -lc for building shared libraries.
23124build_libtool_need_lc=$archive_cmds_need_lc_F77
23125
23126# Whether or not to disallow shared libs when runtime libs are static
23127allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23128
23129# Whether or not to optimize for fast installation.
23130fast_install=$enable_fast_install
23131
23132# The host system.
23133host_alias=$host_alias
23134host=$host
23135host_os=$host_os
23136
23137# The build system.
23138build_alias=$build_alias
23139build=$build
23140build_os=$build_os
23141
23142# An echo program that does not interpret backslashes.
23143echo=$lt_echo
23144
23145# The archiver.
23146AR=$lt_AR
23147AR_FLAGS=$lt_AR_FLAGS
23148
23149# A C compiler.
23150LTCC=$lt_LTCC
23151
23152# LTCC compiler flags.
23153LTCFLAGS=$lt_LTCFLAGS
23154
23155# A language-specific compiler.
23156CC=$lt_compiler_F77
23157
23158# Is the compiler the GNU C compiler?
23159with_gcc=$GCC_F77
23160
23161# An ERE matcher.
23162EGREP=$lt_EGREP
23163
23164# The linker used to build libraries.
23165LD=$lt_LD_F77
23166
23167# Whether we need hard or soft links.
23168LN_S=$lt_LN_S
23169
23170# A BSD-compatible nm program.
23171NM=$lt_NM
23172
23173# A symbol stripping program
23174STRIP=$lt_STRIP
23175
23176# Used to examine libraries when file_magic_cmd begins "file"
23177MAGIC_CMD=$MAGIC_CMD
23178
23179# Used on cygwin: DLL creation program.
23180DLLTOOL="$DLLTOOL"
23181
23182# Used on cygwin: object dumper.
23183OBJDUMP="$OBJDUMP"
23184
23185# Used on cygwin: assembler.
23186AS="$AS"
23187
23188# The name of the directory that contains temporary libtool files.
23189objdir=$objdir
23190
23191# How to create reloadable object files.
23192reload_flag=$lt_reload_flag
23193reload_cmds=$lt_reload_cmds
23194
23195# How to pass a linker flag through the compiler.
23196wl=$lt_lt_prog_compiler_wl_F77
23197
23198# Object file suffix (normally "o").
23199objext="$ac_objext"
23200
23201# Old archive suffix (normally "a").
23202libext="$libext"
23203
23204# Shared library suffix (normally ".so").
23205shrext_cmds='$shrext_cmds'
23206
23207# Executable file suffix (normally "").
23208exeext="$exeext"
23209
23210# Additional compiler flags for building library objects.
23211pic_flag=$lt_lt_prog_compiler_pic_F77
23212pic_mode=$pic_mode
23213
23214# What is the maximum length of a command?
23215max_cmd_len=$lt_cv_sys_max_cmd_len
23216
23217# Does compiler simultaneously support -c and -o options?
23218compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23219
23220# Must we lock files when doing compilation?
23221need_locks=$lt_need_locks
23222
23223# Do we need the lib prefix for modules?
23224need_lib_prefix=$need_lib_prefix
23225
23226# Do we need a version for libraries?
23227need_version=$need_version
23228
23229# Whether dlopen is supported.
23230dlopen_support=$enable_dlopen
23231
23232# Whether dlopen of programs is supported.
23233dlopen_self=$enable_dlopen_self
23234
23235# Whether dlopen of statically linked programs is supported.
23236dlopen_self_static=$enable_dlopen_self_static
23237
23238# Compiler flag to prevent dynamic linking.
23239link_static_flag=$lt_lt_prog_compiler_static_F77
23240
23241# Compiler flag to turn off builtin functions.
23242no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23243
23244# Compiler flag to allow reflexive dlopens.
23245export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23246
23247# Compiler flag to generate shared objects directly from archives.
23248whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23249
23250# Compiler flag to generate thread-safe objects.
23251thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23252
23253# Library versioning type.
23254version_type=$version_type
23255
23256# Format of library name prefix.
23257libname_spec=$lt_libname_spec
23258
23259# List of archive names.  First name is the real one, the rest are links.
23260# The last name is the one that the linker finds with -lNAME.
23261library_names_spec=$lt_library_names_spec
23262
23263# The coded name of the library, if different from the real name.
23264soname_spec=$lt_soname_spec
23265
23266# Commands used to build and install an old-style archive.
23267RANLIB=$lt_RANLIB
23268old_archive_cmds=$lt_old_archive_cmds_F77
23269old_postinstall_cmds=$lt_old_postinstall_cmds
23270old_postuninstall_cmds=$lt_old_postuninstall_cmds
23271
23272# Create an old-style archive from a shared archive.
23273old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23274
23275# Create a temporary old-style archive to link instead of a shared archive.
23276old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23277
23278# Commands used to build and install a shared archive.
23279archive_cmds=$lt_archive_cmds_F77
23280archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23281postinstall_cmds=$lt_postinstall_cmds
23282postuninstall_cmds=$lt_postuninstall_cmds
23283
23284# Commands used to build a loadable module (assumed same as above if empty)
23285module_cmds=$lt_module_cmds_F77
23286module_expsym_cmds=$lt_module_expsym_cmds_F77
23287
23288# Commands to strip libraries.
23289old_striplib=$lt_old_striplib
23290striplib=$lt_striplib
23291
23292# Dependencies to place before the objects being linked to create a
23293# shared library.
23294predep_objects=$lt_predep_objects_F77
23295
23296# Dependencies to place after the objects being linked to create a
23297# shared library.
23298postdep_objects=$lt_postdep_objects_F77
23299
23300# Dependencies to place before the objects being linked to create a
23301# shared library.
23302predeps=$lt_predeps_F77
23303
23304# Dependencies to place after the objects being linked to create a
23305# shared library.
23306postdeps=$lt_postdeps_F77
23307
23308# The library search path used internally by the compiler when linking
23309# a shared library.
23310compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23311
23312# Method to check whether dependent libraries are shared objects.
23313deplibs_check_method=$lt_deplibs_check_method
23314
23315# Command to use when deplibs_check_method == file_magic.
23316file_magic_cmd=$lt_file_magic_cmd
23317
23318# Flag that allows shared libraries with undefined symbols to be built.
23319allow_undefined_flag=$lt_allow_undefined_flag_F77
23320
23321# Flag that forces no undefined symbols.
23322no_undefined_flag=$lt_no_undefined_flag_F77
23323
23324# Commands used to finish a libtool library installation in a directory.
23325finish_cmds=$lt_finish_cmds
23326
23327# Same as above, but a single script fragment to be evaled but not shown.
23328finish_eval=$lt_finish_eval
23329
23330# Take the output of nm and produce a listing of raw symbols and C names.
23331global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23332
23333# Transform the output of nm in a proper C declaration
23334global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23335
23336# Transform the output of nm in a C name address pair
23337global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23338
23339# This is the shared library runtime path variable.
23340runpath_var=$runpath_var
23341
23342# This is the shared library path variable.
23343shlibpath_var=$shlibpath_var
23344
23345# Is shlibpath searched before the hard-coded library search path?
23346shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23347
23348# How to hardcode a shared library path into an executable.
23349hardcode_action=$hardcode_action_F77
23350
23351# Whether we should hardcode library paths into libraries.
23352hardcode_into_libs=$hardcode_into_libs
23353
23354# Flag to hardcode \$libdir into a binary during linking.
23355# This must work even if \$libdir does not exist.
23356hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23357
23358# If ld is used when linking, flag to hardcode \$libdir into
23359# a binary during linking. This must work even if \$libdir does
23360# not exist.
23361hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23362
23363# Whether we need a single -rpath flag with a separated argument.
23364hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23365
23366# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23367# resulting binary.
23368hardcode_direct=$hardcode_direct_F77
23369
23370# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23371# resulting binary.
23372hardcode_minus_L=$hardcode_minus_L_F77
23373
23374# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23375# the resulting binary.
23376hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23377
23378# Set to yes if building a shared library automatically hardcodes DIR into the library
23379# and all subsequent libraries and executables linked against it.
23380hardcode_automatic=$hardcode_automatic_F77
23381
23382# Variables whose values should be saved in libtool wrapper scripts and
23383# restored at relink time.
23384variables_saved_for_relink="$variables_saved_for_relink"
23385
23386# Whether libtool must link a program against all its dependency libraries.
23387link_all_deplibs=$link_all_deplibs_F77
23388
23389# Compile-time system search path for libraries
23390sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23391
23392# Run-time system search path for libraries
23393sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23394
23395# Fix the shell variable \$srcfile for the compiler.
23396fix_srcfile_path="$fix_srcfile_path_F77"
23397
23398# Set to yes if exported symbols are required.
23399always_export_symbols=$always_export_symbols_F77
23400
23401# The commands to list exported symbols.
23402export_symbols_cmds=$lt_export_symbols_cmds_F77
23403
23404# The commands to extract the exported symbol list from a shared archive.
23405extract_expsyms_cmds=$lt_extract_expsyms_cmds
23406
23407# Symbols that should not be listed in the preloaded symbols.
23408exclude_expsyms=$lt_exclude_expsyms_F77
23409
23410# Symbols that must always be exported.
23411include_expsyms=$lt_include_expsyms_F77
23412
23413# ### END LIBTOOL TAG CONFIG: $tagname
23414
23415__EOF__
23416
23417
23418else
23419  # If there is no Makefile yet, we rely on a make rule to execute
23420  # `config.status --recheck' to rerun these tests and create the
23421  # libtool script then.
23422  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23423  if test -f "$ltmain_in"; then
23424    test -f Makefile && make "$ltmain"
23425  fi
23426fi
23427
23428
23429ac_ext=c
23430ac_cpp='$CPP $CPPFLAGS'
23431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23433ac_compiler_gnu=$ac_cv_c_compiler_gnu
23434
23435CC="$lt_save_CC"
23436
23437	else
23438	  tagname=""
23439	fi
23440	;;
23441
23442      GCJ)
23443	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23444	  ac_ext=c
23445ac_cpp='$CPP $CPPFLAGS'
23446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23448ac_compiler_gnu=$ac_cv_c_compiler_gnu
23449
23450
23451# Source file extension for Java test sources.
23452ac_ext=java
23453
23454# Object file extension for compiled Java test sources.
23455objext=o
23456objext_GCJ=$objext
23457
23458# Code to be used in simple compile tests
23459lt_simple_compile_test_code="class foo {}\n"
23460
23461# Code to be used in simple link tests
23462lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23463
23464# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23465
23466# If no C compiler was specified, use CC.
23467LTCC=${LTCC-"$CC"}
23468
23469# If no C compiler flags were specified, use CFLAGS.
23470LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23471
23472# Allow CC to be a program name with arguments.
23473compiler=$CC
23474
23475
23476# save warnings/boilerplate of simple test code
23477ac_outfile=conftest.$ac_objext
23478printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23479eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23480_lt_compiler_boilerplate=`cat conftest.err`
23481$rm conftest*
23482
23483ac_outfile=conftest.$ac_objext
23484printf "$lt_simple_link_test_code" >conftest.$ac_ext
23485eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23486_lt_linker_boilerplate=`cat conftest.err`
23487$rm conftest*
23488
23489
23490# Allow CC to be a program name with arguments.
23491lt_save_CC="$CC"
23492CC=${GCJ-"gcj"}
23493compiler=$CC
23494compiler_GCJ=$CC
23495for cc_temp in $compiler""; do
23496  case $cc_temp in
23497    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23498    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23499    \-*) ;;
23500    *) break;;
23501  esac
23502done
23503cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23504
23505
23506# GCJ did not exist at the time GCC didn't implicitly link libc in.
23507archive_cmds_need_lc_GCJ=no
23508
23509old_archive_cmds_GCJ=$old_archive_cmds
23510
23511
23512lt_prog_compiler_no_builtin_flag_GCJ=
23513
23514if test "$GCC" = yes; then
23515  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23516
23517
23518{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23519echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23520if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23521  echo $ECHO_N "(cached) $ECHO_C" >&6
23522else
23523  lt_cv_prog_compiler_rtti_exceptions=no
23524  ac_outfile=conftest.$ac_objext
23525   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23526   lt_compiler_flag="-fno-rtti -fno-exceptions"
23527   # Insert the option either (1) after the last *FLAGS variable, or
23528   # (2) before a word containing "conftest.", or (3) at the end.
23529   # Note that $ac_compile itself does not contain backslashes and begins
23530   # with a dollar sign (not a hyphen), so the echo should work correctly.
23531   # The option is referenced via a variable to avoid confusing sed.
23532   lt_compile=`echo "$ac_compile" | $SED \
23533   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23534   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23535   -e 's:$: $lt_compiler_flag:'`
23536   (eval echo "\"\$as_me:23536: $lt_compile\"" >&5)
23537   (eval "$lt_compile" 2>conftest.err)
23538   ac_status=$?
23539   cat conftest.err >&5
23540   echo "$as_me:23540: \$? = $ac_status" >&5
23541   if (exit $ac_status) && test -s "$ac_outfile"; then
23542     # The compiler can only warn and ignore the option if not recognized
23543     # So say no if there are warnings other than the usual output.
23544     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23545     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23546     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23547       lt_cv_prog_compiler_rtti_exceptions=yes
23548     fi
23549   fi
23550   $rm conftest*
23551
23552fi
23553{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23554echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23555
23556if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23557    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23558else
23559    :
23560fi
23561
23562fi
23563
23564lt_prog_compiler_wl_GCJ=
23565lt_prog_compiler_pic_GCJ=
23566lt_prog_compiler_static_GCJ=
23567
23568{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23569echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23570
23571  if test "$GCC" = yes; then
23572    lt_prog_compiler_wl_GCJ='-Wl,'
23573    lt_prog_compiler_static_GCJ='-static'
23574
23575    case $host_os in
23576      aix*)
23577      # All AIX code is PIC.
23578      if test "$host_cpu" = ia64; then
23579	# AIX 5 now supports IA64 processor
23580	lt_prog_compiler_static_GCJ='-Bstatic'
23581      fi
23582      ;;
23583
23584    amigaos*)
23585      # FIXME: we need at least 68020 code to build shared libraries, but
23586      # adding the `-m68020' flag to GCC prevents building anything better,
23587      # like `-m68040'.
23588      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23589      ;;
23590
23591    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23592      # PIC is the default for these OSes.
23593      ;;
23594
23595    mingw* | pw32* | os2*)
23596      # This hack is so that the source file can tell whether it is being
23597      # built for inclusion in a dll (and should export symbols for example).
23598      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23599      ;;
23600
23601    darwin* | rhapsody*)
23602      # PIC is the default on this platform
23603      # Common symbols not allowed in MH_DYLIB files
23604      lt_prog_compiler_pic_GCJ='-fno-common'
23605      ;;
23606
23607    interix3*)
23608      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23609      # Instead, we relocate shared libraries at runtime.
23610      ;;
23611
23612    msdosdjgpp*)
23613      # Just because we use GCC doesn't mean we suddenly get shared libraries
23614      # on systems that don't support them.
23615      lt_prog_compiler_can_build_shared_GCJ=no
23616      enable_shared=no
23617      ;;
23618
23619    sysv4*MP*)
23620      if test -d /usr/nec; then
23621	lt_prog_compiler_pic_GCJ=-Kconform_pic
23622      fi
23623      ;;
23624
23625    hpux*)
23626      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23627      # not for PA HP-UX.
23628      case $host_cpu in
23629      hppa*64*|ia64*)
23630	# +Z the default
23631	;;
23632      *)
23633	lt_prog_compiler_pic_GCJ='-fPIC'
23634	;;
23635      esac
23636      ;;
23637
23638    *)
23639      lt_prog_compiler_pic_GCJ='-fPIC'
23640      ;;
23641    esac
23642  else
23643    # PORTME Check for flag to pass linker flags through the system compiler.
23644    case $host_os in
23645    aix*)
23646      lt_prog_compiler_wl_GCJ='-Wl,'
23647      if test "$host_cpu" = ia64; then
23648	# AIX 5 now supports IA64 processor
23649	lt_prog_compiler_static_GCJ='-Bstatic'
23650      else
23651	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23652      fi
23653      ;;
23654      darwin*)
23655        # PIC is the default on this platform
23656        # Common symbols not allowed in MH_DYLIB files
23657       case $cc_basename in
23658         xlc*)
23659         lt_prog_compiler_pic_GCJ='-qnocommon'
23660         lt_prog_compiler_wl_GCJ='-Wl,'
23661         ;;
23662       esac
23663       ;;
23664
23665    mingw* | pw32* | os2*)
23666      # This hack is so that the source file can tell whether it is being
23667      # built for inclusion in a dll (and should export symbols for example).
23668      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23669      ;;
23670
23671    hpux9* | hpux10* | hpux11*)
23672      lt_prog_compiler_wl_GCJ='-Wl,'
23673      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23674      # not for PA HP-UX.
23675      case $host_cpu in
23676      hppa*64*|ia64*)
23677	# +Z the default
23678	;;
23679      *)
23680	lt_prog_compiler_pic_GCJ='+Z'
23681	;;
23682      esac
23683      # Is there a better lt_prog_compiler_static that works with the bundled CC?
23684      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23685      ;;
23686
23687    irix5* | irix6* | nonstopux*)
23688      lt_prog_compiler_wl_GCJ='-Wl,'
23689      # PIC (with -KPIC) is the default.
23690      lt_prog_compiler_static_GCJ='-non_shared'
23691      ;;
23692
23693    newsos6)
23694      lt_prog_compiler_pic_GCJ='-KPIC'
23695      lt_prog_compiler_static_GCJ='-Bstatic'
23696      ;;
23697
23698    linux*)
23699      case $cc_basename in
23700      icc* | ecc*)
23701	lt_prog_compiler_wl_GCJ='-Wl,'
23702	lt_prog_compiler_pic_GCJ='-KPIC'
23703	lt_prog_compiler_static_GCJ='-static'
23704        ;;
23705      pgcc* | pgf77* | pgf90* | pgf95*)
23706        # Portland Group compilers (*not* the Pentium gcc compiler,
23707	# which looks to be a dead project)
23708	lt_prog_compiler_wl_GCJ='-Wl,'
23709	lt_prog_compiler_pic_GCJ='-fpic'
23710	lt_prog_compiler_static_GCJ='-Bstatic'
23711        ;;
23712      ccc*)
23713        lt_prog_compiler_wl_GCJ='-Wl,'
23714        # All Alpha code is PIC.
23715        lt_prog_compiler_static_GCJ='-non_shared'
23716        ;;
23717      esac
23718      ;;
23719
23720    osf3* | osf4* | osf5*)
23721      lt_prog_compiler_wl_GCJ='-Wl,'
23722      # All OSF/1 code is PIC.
23723      lt_prog_compiler_static_GCJ='-non_shared'
23724      ;;
23725
23726    solaris*)
23727      lt_prog_compiler_pic_GCJ='-KPIC'
23728      lt_prog_compiler_static_GCJ='-Bstatic'
23729      case $cc_basename in
23730      f77* | f90* | f95*)
23731	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23732      *)
23733	lt_prog_compiler_wl_GCJ='-Wl,';;
23734      esac
23735      ;;
23736
23737    sunos4*)
23738      lt_prog_compiler_wl_GCJ='-Qoption ld '
23739      lt_prog_compiler_pic_GCJ='-PIC'
23740      lt_prog_compiler_static_GCJ='-Bstatic'
23741      ;;
23742
23743    sysv4 | sysv4.2uw2* | sysv4.3*)
23744      lt_prog_compiler_wl_GCJ='-Wl,'
23745      lt_prog_compiler_pic_GCJ='-KPIC'
23746      lt_prog_compiler_static_GCJ='-Bstatic'
23747      ;;
23748
23749    sysv4*MP*)
23750      if test -d /usr/nec ;then
23751	lt_prog_compiler_pic_GCJ='-Kconform_pic'
23752	lt_prog_compiler_static_GCJ='-Bstatic'
23753      fi
23754      ;;
23755
23756    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23757      lt_prog_compiler_wl_GCJ='-Wl,'
23758      lt_prog_compiler_pic_GCJ='-KPIC'
23759      lt_prog_compiler_static_GCJ='-Bstatic'
23760      ;;
23761
23762    unicos*)
23763      lt_prog_compiler_wl_GCJ='-Wl,'
23764      lt_prog_compiler_can_build_shared_GCJ=no
23765      ;;
23766
23767    uts4*)
23768      lt_prog_compiler_pic_GCJ='-pic'
23769      lt_prog_compiler_static_GCJ='-Bstatic'
23770      ;;
23771
23772    *)
23773      lt_prog_compiler_can_build_shared_GCJ=no
23774      ;;
23775    esac
23776  fi
23777
23778{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23779echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23780
23781#
23782# Check to make sure the PIC flag actually works.
23783#
23784if test -n "$lt_prog_compiler_pic_GCJ"; then
23785
23786{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23787echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23788if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23789  echo $ECHO_N "(cached) $ECHO_C" >&6
23790else
23791  lt_prog_compiler_pic_works_GCJ=no
23792  ac_outfile=conftest.$ac_objext
23793   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23794   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23795   # Insert the option either (1) after the last *FLAGS variable, or
23796   # (2) before a word containing "conftest.", or (3) at the end.
23797   # Note that $ac_compile itself does not contain backslashes and begins
23798   # with a dollar sign (not a hyphen), so the echo should work correctly.
23799   # The option is referenced via a variable to avoid confusing sed.
23800   lt_compile=`echo "$ac_compile" | $SED \
23801   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23802   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23803   -e 's:$: $lt_compiler_flag:'`
23804   (eval echo "\"\$as_me:23804: $lt_compile\"" >&5)
23805   (eval "$lt_compile" 2>conftest.err)
23806   ac_status=$?
23807   cat conftest.err >&5
23808   echo "$as_me:23808: \$? = $ac_status" >&5
23809   if (exit $ac_status) && test -s "$ac_outfile"; then
23810     # The compiler can only warn and ignore the option if not recognized
23811     # So say no if there are warnings other than the usual output.
23812     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23813     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23814     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23815       lt_prog_compiler_pic_works_GCJ=yes
23816     fi
23817   fi
23818   $rm conftest*
23819
23820fi
23821{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23822echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23823
23824if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23825    case $lt_prog_compiler_pic_GCJ in
23826     "" | " "*) ;;
23827     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23828     esac
23829else
23830    lt_prog_compiler_pic_GCJ=
23831     lt_prog_compiler_can_build_shared_GCJ=no
23832fi
23833
23834fi
23835case $host_os in
23836  # For platforms which do not support PIC, -DPIC is meaningless:
23837  *djgpp*)
23838    lt_prog_compiler_pic_GCJ=
23839    ;;
23840  *)
23841    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23842    ;;
23843esac
23844
23845#
23846# Check to make sure the static flag actually works.
23847#
23848wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23849{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23850echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23851if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23852  echo $ECHO_N "(cached) $ECHO_C" >&6
23853else
23854  lt_prog_compiler_static_works_GCJ=no
23855   save_LDFLAGS="$LDFLAGS"
23856   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23857   printf "$lt_simple_link_test_code" > conftest.$ac_ext
23858   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23859     # The linker can only warn and ignore the option if not recognized
23860     # So say no if there are warnings
23861     if test -s conftest.err; then
23862       # Append any errors to the config.log.
23863       cat conftest.err 1>&5
23864       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23865       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23866       if diff conftest.exp conftest.er2 >/dev/null; then
23867         lt_prog_compiler_static_works_GCJ=yes
23868       fi
23869     else
23870       lt_prog_compiler_static_works_GCJ=yes
23871     fi
23872   fi
23873   $rm conftest*
23874   LDFLAGS="$save_LDFLAGS"
23875
23876fi
23877{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23878echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23879
23880if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23881    :
23882else
23883    lt_prog_compiler_static_GCJ=
23884fi
23885
23886
23887{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23888echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23889if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23890  echo $ECHO_N "(cached) $ECHO_C" >&6
23891else
23892  lt_cv_prog_compiler_c_o_GCJ=no
23893   $rm -r conftest 2>/dev/null
23894   mkdir conftest
23895   cd conftest
23896   mkdir out
23897   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23898
23899   lt_compiler_flag="-o out/conftest2.$ac_objext"
23900   # Insert the option either (1) after the last *FLAGS variable, or
23901   # (2) before a word containing "conftest.", or (3) at the end.
23902   # Note that $ac_compile itself does not contain backslashes and begins
23903   # with a dollar sign (not a hyphen), so the echo should work correctly.
23904   lt_compile=`echo "$ac_compile" | $SED \
23905   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23906   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23907   -e 's:$: $lt_compiler_flag:'`
23908   (eval echo "\"\$as_me:23908: $lt_compile\"" >&5)
23909   (eval "$lt_compile" 2>out/conftest.err)
23910   ac_status=$?
23911   cat out/conftest.err >&5
23912   echo "$as_me:23912: \$? = $ac_status" >&5
23913   if (exit $ac_status) && test -s out/conftest2.$ac_objext
23914   then
23915     # The compiler can only warn and ignore the option if not recognized
23916     # So say no if there are warnings
23917     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23918     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23919     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23920       lt_cv_prog_compiler_c_o_GCJ=yes
23921     fi
23922   fi
23923   chmod u+w . 2>&5
23924   $rm conftest*
23925   # SGI C++ compiler will create directory out/ii_files/ for
23926   # template instantiation
23927   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23928   $rm out/* && rmdir out
23929   cd ..
23930   rmdir conftest
23931   $rm conftest*
23932
23933fi
23934{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23935echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23936
23937
23938hard_links="nottested"
23939if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23940  # do not overwrite the value of need_locks provided by the user
23941  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23942echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23943  hard_links=yes
23944  $rm conftest*
23945  ln conftest.a conftest.b 2>/dev/null && hard_links=no
23946  touch conftest.a
23947  ln conftest.a conftest.b 2>&5 || hard_links=no
23948  ln conftest.a conftest.b 2>/dev/null && hard_links=no
23949  { echo "$as_me:$LINENO: result: $hard_links" >&5
23950echo "${ECHO_T}$hard_links" >&6; }
23951  if test "$hard_links" = no; then
23952    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23953echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23954    need_locks=warn
23955  fi
23956else
23957  need_locks=no
23958fi
23959
23960{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23961echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23962
23963  runpath_var=
23964  allow_undefined_flag_GCJ=
23965  enable_shared_with_static_runtimes_GCJ=no
23966  archive_cmds_GCJ=
23967  archive_expsym_cmds_GCJ=
23968  old_archive_From_new_cmds_GCJ=
23969  old_archive_from_expsyms_cmds_GCJ=
23970  export_dynamic_flag_spec_GCJ=
23971  whole_archive_flag_spec_GCJ=
23972  thread_safe_flag_spec_GCJ=
23973  hardcode_libdir_flag_spec_GCJ=
23974  hardcode_libdir_flag_spec_ld_GCJ=
23975  hardcode_libdir_separator_GCJ=
23976  hardcode_direct_GCJ=no
23977  hardcode_minus_L_GCJ=no
23978  hardcode_shlibpath_var_GCJ=unsupported
23979  link_all_deplibs_GCJ=unknown
23980  hardcode_automatic_GCJ=no
23981  module_cmds_GCJ=
23982  module_expsym_cmds_GCJ=
23983  always_export_symbols_GCJ=no
23984  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23985  # include_expsyms should be a list of space-separated symbols to be *always*
23986  # included in the symbol list
23987  include_expsyms_GCJ=
23988  # exclude_expsyms can be an extended regexp of symbols to exclude
23989  # it will be wrapped by ` (' and `)$', so one must not match beginning or
23990  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23991  # as well as any symbol that contains `d'.
23992  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23993  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23994  # platforms (ab)use it in PIC code, but their linkers get confused if
23995  # the symbol is explicitly referenced.  Since portable code cannot
23996  # rely on this symbol name, it's probably fine to never include it in
23997  # preloaded symbol tables.
23998  extract_expsyms_cmds=
23999  # Just being paranoid about ensuring that cc_basename is set.
24000  for cc_temp in $compiler""; do
24001  case $cc_temp in
24002    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24003    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24004    \-*) ;;
24005    *) break;;
24006  esac
24007done
24008cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24009
24010  case $host_os in
24011  cygwin* | mingw* | pw32*)
24012    # FIXME: the MSVC++ port hasn't been tested in a loooong time
24013    # When not using gcc, we currently assume that we are using
24014    # Microsoft Visual C++.
24015    if test "$GCC" != yes; then
24016      with_gnu_ld=no
24017    fi
24018    ;;
24019  interix*)
24020    # we just hope/assume this is gcc and not c89 (= MSVC++)
24021    with_gnu_ld=yes
24022    ;;
24023  openbsd*)
24024    with_gnu_ld=no
24025    ;;
24026  esac
24027
24028  ld_shlibs_GCJ=yes
24029  if test "$with_gnu_ld" = yes; then
24030    # If archive_cmds runs LD, not CC, wlarc should be empty
24031    wlarc='${wl}'
24032
24033    # Set some defaults for GNU ld with shared library support. These
24034    # are reset later if shared libraries are not supported. Putting them
24035    # here allows them to be overridden if necessary.
24036    runpath_var=LD_RUN_PATH
24037    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24038    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24039    # ancient GNU ld didn't support --whole-archive et. al.
24040    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24041	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24042      else
24043  	whole_archive_flag_spec_GCJ=
24044    fi
24045    supports_anon_versioning=no
24046    case `$LD -v 2>/dev/null` in
24047      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24048      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24049      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24050      *\ 2.11.*) ;; # other 2.11 versions
24051      *) supports_anon_versioning=yes ;;
24052    esac
24053
24054    # See if GNU ld supports shared libraries.
24055    case $host_os in
24056    aix3* | aix4* | aix5*)
24057      # On AIX/PPC, the GNU linker is very broken
24058      if test "$host_cpu" != ia64; then
24059	ld_shlibs_GCJ=no
24060	cat <<EOF 1>&2
24061
24062*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24063*** to be unable to reliably create shared libraries on AIX.
24064*** Therefore, libtool is disabling shared libraries support.  If you
24065*** really care for shared libraries, you may want to modify your PATH
24066*** so that a non-GNU linker is found, and then restart.
24067
24068EOF
24069      fi
24070      ;;
24071
24072    amigaos*)
24073      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)'
24074      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24075      hardcode_minus_L_GCJ=yes
24076
24077      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24078      # that the semantics of dynamic libraries on AmigaOS, at least up
24079      # to version 4, is to share data among multiple programs linked
24080      # with the same dynamic library.  Since this doesn't match the
24081      # behavior of shared libraries on other platforms, we can't use
24082      # them.
24083      ld_shlibs_GCJ=no
24084      ;;
24085
24086    beos*)
24087      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24088	allow_undefined_flag_GCJ=unsupported
24089	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24090	# support --undefined.  This deserves some investigation.  FIXME
24091	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24092      else
24093	ld_shlibs_GCJ=no
24094      fi
24095      ;;
24096
24097    cygwin* | mingw* | pw32*)
24098      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24099      # as there is no search path for DLLs.
24100      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24101      allow_undefined_flag_GCJ=unsupported
24102      always_export_symbols_GCJ=no
24103      enable_shared_with_static_runtimes_GCJ=yes
24104      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24105
24106      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24107        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24108	# If the export-symbols file already is a .def file (1st line
24109	# is EXPORTS), use it as is; otherwise, prepend...
24110	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24111	  cp $export_symbols $output_objdir/$soname.def;
24112	else
24113	  echo EXPORTS > $output_objdir/$soname.def;
24114	  cat $export_symbols >> $output_objdir/$soname.def;
24115	fi~
24116	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24117      else
24118	ld_shlibs_GCJ=no
24119      fi
24120      ;;
24121
24122    interix3*)
24123      hardcode_direct_GCJ=no
24124      hardcode_shlibpath_var_GCJ=no
24125      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24126      export_dynamic_flag_spec_GCJ='${wl}-E'
24127      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24128      # Instead, shared libraries are loaded at an image base (0x10000000 by
24129      # default) and relocated if they conflict, which is a slow very memory
24130      # consuming and fragmenting process.  To avoid this, we pick a random,
24131      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24132      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24133      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'
24134      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'
24135      ;;
24136
24137    linux*)
24138      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24139	tmp_addflag=
24140	case $cc_basename,$host_cpu in
24141	pgcc*)				# Portland Group C compiler
24142	  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'
24143	  tmp_addflag=' $pic_flag'
24144	  ;;
24145	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
24146	  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'
24147	  tmp_addflag=' $pic_flag -Mnomain' ;;
24148	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
24149	  tmp_addflag=' -i_dynamic' ;;
24150	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
24151	  tmp_addflag=' -i_dynamic -nofor_main' ;;
24152	ifc* | ifort*)			# Intel Fortran compiler
24153	  tmp_addflag=' -nofor_main' ;;
24154	esac
24155	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24156
24157	if test $supports_anon_versioning = yes; then
24158	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24159  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24160  $echo "local: *; };" >> $output_objdir/$libname.ver~
24161	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24162	fi
24163      else
24164	ld_shlibs_GCJ=no
24165      fi
24166      ;;
24167
24168    netbsd*)
24169      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24170	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24171	wlarc=
24172      else
24173	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24174	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24175      fi
24176      ;;
24177
24178    solaris*)
24179      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24180	ld_shlibs_GCJ=no
24181	cat <<EOF 1>&2
24182
24183*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24184*** create shared libraries on Solaris systems.  Therefore, libtool
24185*** is disabling shared libraries support.  We urge you to upgrade GNU
24186*** binutils to release 2.9.1 or newer.  Another option is to modify
24187*** your PATH or compiler configuration so that the native linker is
24188*** used, and then restart.
24189
24190EOF
24191      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24192	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24193	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24194      else
24195	ld_shlibs_GCJ=no
24196      fi
24197      ;;
24198
24199    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24200      case `$LD -v 2>&1` in
24201        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24202	ld_shlibs_GCJ=no
24203	cat <<_LT_EOF 1>&2
24204
24205*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24206*** reliably create shared libraries on SCO systems.  Therefore, libtool
24207*** is disabling shared libraries support.  We urge you to upgrade GNU
24208*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24209*** your PATH or compiler configuration so that the native linker is
24210*** used, and then restart.
24211
24212_LT_EOF
24213	;;
24214	*)
24215	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24216	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24217	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24218	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24219	  else
24220	    ld_shlibs_GCJ=no
24221	  fi
24222	;;
24223      esac
24224      ;;
24225
24226    sunos4*)
24227      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24228      wlarc=
24229      hardcode_direct_GCJ=yes
24230      hardcode_shlibpath_var_GCJ=no
24231      ;;
24232
24233    *)
24234      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24235	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24236	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24237      else
24238	ld_shlibs_GCJ=no
24239      fi
24240      ;;
24241    esac
24242
24243    if test "$ld_shlibs_GCJ" = no; then
24244      runpath_var=
24245      hardcode_libdir_flag_spec_GCJ=
24246      export_dynamic_flag_spec_GCJ=
24247      whole_archive_flag_spec_GCJ=
24248    fi
24249  else
24250    # PORTME fill in a description of your system's linker (not GNU ld)
24251    case $host_os in
24252    aix3*)
24253      allow_undefined_flag_GCJ=unsupported
24254      always_export_symbols_GCJ=yes
24255      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'
24256      # Note: this linker hardcodes the directories in LIBPATH if there
24257      # are no directories specified by -L.
24258      hardcode_minus_L_GCJ=yes
24259      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24260	# Neither direct hardcoding nor static linking is supported with a
24261	# broken collect2.
24262	hardcode_direct_GCJ=unsupported
24263      fi
24264      ;;
24265
24266    aix4* | aix5*)
24267      if test "$host_cpu" = ia64; then
24268	# On IA64, the linker does run time linking by default, so we don't
24269	# have to do anything special.
24270	aix_use_runtimelinking=no
24271	exp_sym_flag='-Bexport'
24272	no_entry_flag=""
24273      else
24274	# If we're using GNU nm, then we don't want the "-C" option.
24275	# -C means demangle to AIX nm, but means don't demangle with GNU nm
24276	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24277	  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'
24278	else
24279	  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'
24280	fi
24281	aix_use_runtimelinking=no
24282
24283	# Test if we are trying to use run time linking or normal
24284	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
24285	# need to do runtime linking.
24286	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24287	  for ld_flag in $LDFLAGS; do
24288  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24289  	    aix_use_runtimelinking=yes
24290  	    break
24291  	  fi
24292	  done
24293	  ;;
24294	esac
24295
24296	exp_sym_flag='-bexport'
24297	no_entry_flag='-bnoentry'
24298      fi
24299
24300      # When large executables or shared objects are built, AIX ld can
24301      # have problems creating the table of contents.  If linking a library
24302      # or program results in "error TOC overflow" add -mminimal-toc to
24303      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24304      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24305
24306      archive_cmds_GCJ=''
24307      hardcode_direct_GCJ=yes
24308      hardcode_libdir_separator_GCJ=':'
24309      link_all_deplibs_GCJ=yes
24310
24311      if test "$GCC" = yes; then
24312	case $host_os in aix4.[012]|aix4.[012].*)
24313	# We only want to do this on AIX 4.2 and lower, the check
24314	# below for broken collect2 doesn't work under 4.3+
24315	  collect2name=`${CC} -print-prog-name=collect2`
24316	  if test -f "$collect2name" && \
24317  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
24318	  then
24319  	  # We have reworked collect2
24320  	  hardcode_direct_GCJ=yes
24321	  else
24322  	  # We have old collect2
24323  	  hardcode_direct_GCJ=unsupported
24324  	  # It fails to find uninstalled libraries when the uninstalled
24325  	  # path is not listed in the libpath.  Setting hardcode_minus_L
24326  	  # to unsupported forces relinking
24327  	  hardcode_minus_L_GCJ=yes
24328  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
24329  	  hardcode_libdir_separator_GCJ=
24330	  fi
24331	  ;;
24332	esac
24333	shared_flag='-shared'
24334	if test "$aix_use_runtimelinking" = yes; then
24335	  shared_flag="$shared_flag "'${wl}-G'
24336	fi
24337      else
24338	# not using gcc
24339	if test "$host_cpu" = ia64; then
24340  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24341  	# chokes on -Wl,-G. The following line is correct:
24342	  shared_flag='-G'
24343	else
24344	  if test "$aix_use_runtimelinking" = yes; then
24345	    shared_flag='${wl}-G'
24346	  else
24347	    shared_flag='${wl}-bM:SRE'
24348	  fi
24349	fi
24350      fi
24351
24352      # It seems that -bexpall does not export symbols beginning with
24353      # underscore (_), so it is better to generate a list of symbols to export.
24354      always_export_symbols_GCJ=yes
24355      if test "$aix_use_runtimelinking" = yes; then
24356	# Warning - without using the other runtime loading flags (-brtl),
24357	# -berok will link without error, but may produce a broken library.
24358	allow_undefined_flag_GCJ='-berok'
24359       # Determine the default libpath from the value encoded in an empty executable.
24360       cat >conftest.$ac_ext <<_ACEOF
24361/* confdefs.h.  */
24362_ACEOF
24363cat confdefs.h >>conftest.$ac_ext
24364cat >>conftest.$ac_ext <<_ACEOF
24365/* end confdefs.h.  */
24366
24367int
24368main ()
24369{
24370
24371  ;
24372  return 0;
24373}
24374_ACEOF
24375rm -f conftest.$ac_objext conftest$ac_exeext
24376if { (ac_try="$ac_link"
24377case "(($ac_try" in
24378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24379  *) ac_try_echo=$ac_try;;
24380esac
24381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24382  (eval "$ac_link") 2>conftest.er1
24383  ac_status=$?
24384  grep -v '^ *+' conftest.er1 >conftest.err
24385  rm -f conftest.er1
24386  cat conftest.err >&5
24387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388  (exit $ac_status); } &&
24389	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24390  { (case "(($ac_try" in
24391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24392  *) ac_try_echo=$ac_try;;
24393esac
24394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24395  (eval "$ac_try") 2>&5
24396  ac_status=$?
24397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398  (exit $ac_status); }; } &&
24399	 { ac_try='test -s conftest$ac_exeext'
24400  { (case "(($ac_try" in
24401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24402  *) ac_try_echo=$ac_try;;
24403esac
24404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24405  (eval "$ac_try") 2>&5
24406  ac_status=$?
24407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24408  (exit $ac_status); }; }; then
24409
24410aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24411}'`
24412# Check for a 64-bit object if we didn't find anything.
24413if 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; }
24414}'`; fi
24415else
24416  echo "$as_me: failed program was:" >&5
24417sed 's/^/| /' conftest.$ac_ext >&5
24418
24419
24420fi
24421
24422rm -f core conftest.err conftest.$ac_objext \
24423      conftest$ac_exeext conftest.$ac_ext
24424if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24425
24426       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24427	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"
24428       else
24429	if test "$host_cpu" = ia64; then
24430	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24431	  allow_undefined_flag_GCJ="-z nodefs"
24432	  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"
24433	else
24434	 # Determine the default libpath from the value encoded in an empty executable.
24435	 cat >conftest.$ac_ext <<_ACEOF
24436/* confdefs.h.  */
24437_ACEOF
24438cat confdefs.h >>conftest.$ac_ext
24439cat >>conftest.$ac_ext <<_ACEOF
24440/* end confdefs.h.  */
24441
24442int
24443main ()
24444{
24445
24446  ;
24447  return 0;
24448}
24449_ACEOF
24450rm -f conftest.$ac_objext conftest$ac_exeext
24451if { (ac_try="$ac_link"
24452case "(($ac_try" in
24453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24454  *) ac_try_echo=$ac_try;;
24455esac
24456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24457  (eval "$ac_link") 2>conftest.er1
24458  ac_status=$?
24459  grep -v '^ *+' conftest.er1 >conftest.err
24460  rm -f conftest.er1
24461  cat conftest.err >&5
24462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24463  (exit $ac_status); } &&
24464	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24465  { (case "(($ac_try" in
24466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24467  *) ac_try_echo=$ac_try;;
24468esac
24469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24470  (eval "$ac_try") 2>&5
24471  ac_status=$?
24472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24473  (exit $ac_status); }; } &&
24474	 { ac_try='test -s conftest$ac_exeext'
24475  { (case "(($ac_try" in
24476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24477  *) ac_try_echo=$ac_try;;
24478esac
24479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24480  (eval "$ac_try") 2>&5
24481  ac_status=$?
24482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483  (exit $ac_status); }; }; then
24484
24485aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24486}'`
24487# Check for a 64-bit object if we didn't find anything.
24488if 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; }
24489}'`; fi
24490else
24491  echo "$as_me: failed program was:" >&5
24492sed 's/^/| /' conftest.$ac_ext >&5
24493
24494
24495fi
24496
24497rm -f core conftest.err conftest.$ac_objext \
24498      conftest$ac_exeext conftest.$ac_ext
24499if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24500
24501	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24502	  # Warning - without using the other run time loading flags,
24503	  # -berok will link without error, but may produce a broken library.
24504	  no_undefined_flag_GCJ=' ${wl}-bernotok'
24505	  allow_undefined_flag_GCJ=' ${wl}-berok'
24506	  # Exported symbols can be pulled into shared objects from archives
24507	  whole_archive_flag_spec_GCJ='$convenience'
24508	  archive_cmds_need_lc_GCJ=yes
24509	  # This is similar to how AIX traditionally builds its shared libraries.
24510	  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'
24511	fi
24512      fi
24513      ;;
24514
24515    amigaos*)
24516      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)'
24517      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24518      hardcode_minus_L_GCJ=yes
24519      # see comment about different semantics on the GNU ld section
24520      ld_shlibs_GCJ=no
24521      ;;
24522
24523    bsdi[45]*)
24524      export_dynamic_flag_spec_GCJ=-rdynamic
24525      ;;
24526
24527    cygwin* | mingw* | pw32*)
24528      # When not using gcc, we currently assume that we are using
24529      # Microsoft Visual C++.
24530      # hardcode_libdir_flag_spec is actually meaningless, as there is
24531      # no search path for DLLs.
24532      hardcode_libdir_flag_spec_GCJ=' '
24533      allow_undefined_flag_GCJ=unsupported
24534      # Tell ltmain to make .lib files, not .a files.
24535      libext=lib
24536      # Tell ltmain to make .dll files, not .so files.
24537      shrext_cmds=".dll"
24538      # FIXME: Setting linknames here is a bad hack.
24539      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24540      # The linker will automatically build a .lib file if we build a DLL.
24541      old_archive_From_new_cmds_GCJ='true'
24542      # FIXME: Should let the user specify the lib program.
24543      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24544      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24545      enable_shared_with_static_runtimes_GCJ=yes
24546      ;;
24547
24548    darwin* | rhapsody*)
24549      case $host_os in
24550        rhapsody* | darwin1.[012])
24551         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24552         ;;
24553       *) # Darwin 1.3 on
24554         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24555           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24556         else
24557           case ${MACOSX_DEPLOYMENT_TARGET} in
24558             10.[012])
24559               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24560               ;;
24561             10.*)
24562               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24563               ;;
24564           esac
24565         fi
24566         ;;
24567      esac
24568      archive_cmds_need_lc_GCJ=no
24569      hardcode_direct_GCJ=no
24570      hardcode_automatic_GCJ=yes
24571      hardcode_shlibpath_var_GCJ=unsupported
24572      whole_archive_flag_spec_GCJ=''
24573      link_all_deplibs_GCJ=yes
24574    if test "$GCC" = yes ; then
24575    	output_verbose_link_cmd='echo'
24576        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24577      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24578      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24579      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}'
24580      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}'
24581    else
24582      case $cc_basename in
24583        xlc*)
24584         output_verbose_link_cmd='echo'
24585         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24586         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24587          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24588         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}'
24589          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}'
24590          ;;
24591       *)
24592         ld_shlibs_GCJ=no
24593          ;;
24594      esac
24595    fi
24596      ;;
24597
24598    dgux*)
24599      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24600      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24601      hardcode_shlibpath_var_GCJ=no
24602      ;;
24603
24604    freebsd1*)
24605      ld_shlibs_GCJ=no
24606      ;;
24607
24608    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24609    # support.  Future versions do this automatically, but an explicit c++rt0.o
24610    # does not break anything, and helps significantly (at the cost of a little
24611    # extra space).
24612    freebsd2.2*)
24613      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24614      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24615      hardcode_direct_GCJ=yes
24616      hardcode_shlibpath_var_GCJ=no
24617      ;;
24618
24619    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24620    freebsd2*)
24621      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24622      hardcode_direct_GCJ=yes
24623      hardcode_minus_L_GCJ=yes
24624      hardcode_shlibpath_var_GCJ=no
24625      ;;
24626
24627    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24628    freebsd* | kfreebsd*-gnu | dragonfly*)
24629      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24630      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24631      hardcode_direct_GCJ=yes
24632      hardcode_shlibpath_var_GCJ=no
24633      ;;
24634
24635    hpux9*)
24636      if test "$GCC" = yes; then
24637	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'
24638      else
24639	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'
24640      fi
24641      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24642      hardcode_libdir_separator_GCJ=:
24643      hardcode_direct_GCJ=yes
24644
24645      # hardcode_minus_L: Not really in the search PATH,
24646      # but as the default location of the library.
24647      hardcode_minus_L_GCJ=yes
24648      export_dynamic_flag_spec_GCJ='${wl}-E'
24649      ;;
24650
24651    hpux10*)
24652      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24653	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24654      else
24655	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24656      fi
24657      if test "$with_gnu_ld" = no; then
24658	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24659	hardcode_libdir_separator_GCJ=:
24660
24661	hardcode_direct_GCJ=yes
24662	export_dynamic_flag_spec_GCJ='${wl}-E'
24663
24664	# hardcode_minus_L: Not really in the search PATH,
24665	# but as the default location of the library.
24666	hardcode_minus_L_GCJ=yes
24667      fi
24668      ;;
24669
24670    hpux11*)
24671      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24672	case $host_cpu in
24673	hppa*64*)
24674	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24675	  ;;
24676	ia64*)
24677	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24678	  ;;
24679	*)
24680	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24681	  ;;
24682	esac
24683      else
24684	case $host_cpu in
24685	hppa*64*)
24686	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24687	  ;;
24688	ia64*)
24689	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24690	  ;;
24691	*)
24692	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24693	  ;;
24694	esac
24695      fi
24696      if test "$with_gnu_ld" = no; then
24697	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24698	hardcode_libdir_separator_GCJ=:
24699
24700	case $host_cpu in
24701	hppa*64*|ia64*)
24702	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24703	  hardcode_direct_GCJ=no
24704	  hardcode_shlibpath_var_GCJ=no
24705	  ;;
24706	*)
24707	  hardcode_direct_GCJ=yes
24708	  export_dynamic_flag_spec_GCJ='${wl}-E'
24709
24710	  # hardcode_minus_L: Not really in the search PATH,
24711	  # but as the default location of the library.
24712	  hardcode_minus_L_GCJ=yes
24713	  ;;
24714	esac
24715      fi
24716      ;;
24717
24718    irix5* | irix6* | nonstopux*)
24719      if test "$GCC" = yes; then
24720	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'
24721      else
24722	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'
24723	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24724      fi
24725      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24726      hardcode_libdir_separator_GCJ=:
24727      link_all_deplibs_GCJ=yes
24728      ;;
24729
24730    netbsd*)
24731      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24732	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24733      else
24734	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24735      fi
24736      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24737      hardcode_direct_GCJ=yes
24738      hardcode_shlibpath_var_GCJ=no
24739      ;;
24740
24741    newsos6)
24742      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24743      hardcode_direct_GCJ=yes
24744      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24745      hardcode_libdir_separator_GCJ=:
24746      hardcode_shlibpath_var_GCJ=no
24747      ;;
24748
24749    openbsd*)
24750      hardcode_direct_GCJ=yes
24751      hardcode_shlibpath_var_GCJ=no
24752      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24753	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24754	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24755	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24756	export_dynamic_flag_spec_GCJ='${wl}-E'
24757      else
24758       case $host_os in
24759	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24760	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24761	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
24762	   ;;
24763	 *)
24764	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24765	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24766	   ;;
24767       esac
24768      fi
24769      ;;
24770
24771    os2*)
24772      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24773      hardcode_minus_L_GCJ=yes
24774      allow_undefined_flag_GCJ=unsupported
24775      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'
24776      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24777      ;;
24778
24779    osf3*)
24780      if test "$GCC" = yes; then
24781	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24782	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'
24783      else
24784	allow_undefined_flag_GCJ=' -expect_unresolved \*'
24785	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'
24786      fi
24787      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24788      hardcode_libdir_separator_GCJ=:
24789      ;;
24790
24791    osf4* | osf5*)	# as osf3* with the addition of -msym flag
24792      if test "$GCC" = yes; then
24793	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24794	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'
24795	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24796      else
24797	allow_undefined_flag_GCJ=' -expect_unresolved \*'
24798	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'
24799	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~
24800	$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'
24801
24802	# Both c and cxx compiler support -rpath directly
24803	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24804      fi
24805      hardcode_libdir_separator_GCJ=:
24806      ;;
24807
24808    solaris*)
24809      no_undefined_flag_GCJ=' -z text'
24810      if test "$GCC" = yes; then
24811	wlarc='${wl}'
24812	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24813	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24814	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24815      else
24816	wlarc=''
24817	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24818	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24819  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24820      fi
24821      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24822      hardcode_shlibpath_var_GCJ=no
24823      case $host_os in
24824      solaris2.[0-5] | solaris2.[0-5].*) ;;
24825      *)
24826 	# The compiler driver will combine linker options so we
24827 	# cannot just pass the convience library names through
24828 	# without $wl, iff we do not link with $LD.
24829 	# Luckily, gcc supports the same syntax we need for Sun Studio.
24830 	# Supported since Solaris 2.6 (maybe 2.5.1?)
24831 	case $wlarc in
24832 	'')
24833 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24834 	*)
24835 	  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' ;;
24836 	esac ;;
24837      esac
24838      link_all_deplibs_GCJ=yes
24839      ;;
24840
24841    sunos4*)
24842      if test "x$host_vendor" = xsequent; then
24843	# Use $CC to link under sequent, because it throws in some extra .o
24844	# files that make .init and .fini sections work.
24845	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24846      else
24847	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24848      fi
24849      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24850      hardcode_direct_GCJ=yes
24851      hardcode_minus_L_GCJ=yes
24852      hardcode_shlibpath_var_GCJ=no
24853      ;;
24854
24855    sysv4)
24856      case $host_vendor in
24857	sni)
24858	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24859	  hardcode_direct_GCJ=yes # is this really true???
24860	;;
24861	siemens)
24862	  ## LD is ld it makes a PLAMLIB
24863	  ## CC just makes a GrossModule.
24864	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24865	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24866	  hardcode_direct_GCJ=no
24867        ;;
24868	motorola)
24869	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24870	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24871	;;
24872      esac
24873      runpath_var='LD_RUN_PATH'
24874      hardcode_shlibpath_var_GCJ=no
24875      ;;
24876
24877    sysv4.3*)
24878      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24879      hardcode_shlibpath_var_GCJ=no
24880      export_dynamic_flag_spec_GCJ='-Bexport'
24881      ;;
24882
24883    sysv4*MP*)
24884      if test -d /usr/nec; then
24885	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24886	hardcode_shlibpath_var_GCJ=no
24887	runpath_var=LD_RUN_PATH
24888	hardcode_runpath_var=yes
24889	ld_shlibs_GCJ=yes
24890      fi
24891      ;;
24892
24893    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24894      no_undefined_flag_GCJ='${wl}-z,text'
24895      archive_cmds_need_lc_GCJ=no
24896      hardcode_shlibpath_var_GCJ=no
24897      runpath_var='LD_RUN_PATH'
24898
24899      if test "$GCC" = yes; then
24900	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24901	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24902      else
24903	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24904	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24905      fi
24906      ;;
24907
24908    sysv5* | sco3.2v5* | sco5v6*)
24909      # Note: We can NOT use -z defs as we might desire, because we do not
24910      # link with -lc, and that would cause any symbols used from libc to
24911      # always be unresolved, which means just about no library would
24912      # ever link correctly.  If we're not using GNU ld we use -z text
24913      # though, which does catch some bad symbols but isn't as heavy-handed
24914      # as -z defs.
24915      no_undefined_flag_GCJ='${wl}-z,text'
24916      allow_undefined_flag_GCJ='${wl}-z,nodefs'
24917      archive_cmds_need_lc_GCJ=no
24918      hardcode_shlibpath_var_GCJ=no
24919      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24920      hardcode_libdir_separator_GCJ=':'
24921      link_all_deplibs_GCJ=yes
24922      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24923      runpath_var='LD_RUN_PATH'
24924
24925      if test "$GCC" = yes; then
24926	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24927	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24928      else
24929	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24930	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24931      fi
24932      ;;
24933
24934    uts4*)
24935      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24936      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24937      hardcode_shlibpath_var_GCJ=no
24938      ;;
24939
24940    *)
24941      ld_shlibs_GCJ=no
24942      ;;
24943    esac
24944  fi
24945
24946{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24947echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24948test "$ld_shlibs_GCJ" = no && can_build_shared=no
24949
24950#
24951# Do we need to explicitly link libc?
24952#
24953case "x$archive_cmds_need_lc_GCJ" in
24954x|xyes)
24955  # Assume -lc should be added
24956  archive_cmds_need_lc_GCJ=yes
24957
24958  if test "$enable_shared" = yes && test "$GCC" = yes; then
24959    case $archive_cmds_GCJ in
24960    *'~'*)
24961      # FIXME: we may have to deal with multi-command sequences.
24962      ;;
24963    '$CC '*)
24964      # Test whether the compiler implicitly links with -lc since on some
24965      # systems, -lgcc has to come before -lc. If gcc already passes -lc
24966      # to ld, don't add -lc before -lgcc.
24967      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24968echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24969      $rm conftest*
24970      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24971
24972      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24973  (eval $ac_compile) 2>&5
24974  ac_status=$?
24975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976  (exit $ac_status); } 2>conftest.err; then
24977        soname=conftest
24978        lib=conftest
24979        libobjs=conftest.$ac_objext
24980        deplibs=
24981        wl=$lt_prog_compiler_wl_GCJ
24982	pic_flag=$lt_prog_compiler_pic_GCJ
24983        compiler_flags=-v
24984        linker_flags=-v
24985        verstring=
24986        output_objdir=.
24987        libname=conftest
24988        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24989        allow_undefined_flag_GCJ=
24990        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24991  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24992  ac_status=$?
24993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994  (exit $ac_status); }
24995        then
24996	  archive_cmds_need_lc_GCJ=no
24997        else
24998	  archive_cmds_need_lc_GCJ=yes
24999        fi
25000        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25001      else
25002        cat conftest.err 1>&5
25003      fi
25004      $rm conftest*
25005      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25006echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25007      ;;
25008    esac
25009  fi
25010  ;;
25011esac
25012
25013{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25014echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25015library_names_spec=
25016libname_spec='lib$name'
25017soname_spec=
25018shrext_cmds=".so"
25019postinstall_cmds=
25020postuninstall_cmds=
25021finish_cmds=
25022finish_eval=
25023shlibpath_var=
25024shlibpath_overrides_runpath=unknown
25025version_type=none
25026dynamic_linker="$host_os ld.so"
25027sys_lib_dlsearch_path_spec="/lib /usr/lib"
25028if test "$GCC" = yes; then
25029  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25030  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25031    # if the path contains ";" then we assume it to be the separator
25032    # otherwise default to the standard path separator (i.e. ":") - it is
25033    # assumed that no part of a normal pathname contains ";" but that should
25034    # okay in the real world where ";" in dirpaths is itself problematic.
25035    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25036  else
25037    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25038  fi
25039else
25040  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25041fi
25042need_lib_prefix=unknown
25043hardcode_into_libs=no
25044
25045# when you set need_version to no, make sure it does not cause -set_version
25046# flags to be left without arguments
25047need_version=unknown
25048
25049case $host_os in
25050aix3*)
25051  version_type=linux
25052  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25053  shlibpath_var=LIBPATH
25054
25055  # AIX 3 has no versioning support, so we append a major version to the name.
25056  soname_spec='${libname}${release}${shared_ext}$major'
25057  ;;
25058
25059aix4* | aix5*)
25060  version_type=linux
25061  need_lib_prefix=no
25062  need_version=no
25063  hardcode_into_libs=yes
25064  if test "$host_cpu" = ia64; then
25065    # AIX 5 supports IA64
25066    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25067    shlibpath_var=LD_LIBRARY_PATH
25068  else
25069    # With GCC up to 2.95.x, collect2 would create an import file
25070    # for dependence libraries.  The import file would start with
25071    # the line `#! .'.  This would cause the generated library to
25072    # depend on `.', always an invalid library.  This was fixed in
25073    # development snapshots of GCC prior to 3.0.
25074    case $host_os in
25075      aix4 | aix4.[01] | aix4.[01].*)
25076      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25077	   echo ' yes '
25078	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25079	:
25080      else
25081	can_build_shared=no
25082      fi
25083      ;;
25084    esac
25085    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25086    # soname into executable. Probably we can add versioning support to
25087    # collect2, so additional links can be useful in future.
25088    if test "$aix_use_runtimelinking" = yes; then
25089      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25090      # instead of lib<name>.a to let people know that these are not
25091      # typical AIX shared libraries.
25092      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25093    else
25094      # We preserve .a as extension for shared libraries through AIX4.2
25095      # and later when we are not doing run time linking.
25096      library_names_spec='${libname}${release}.a $libname.a'
25097      soname_spec='${libname}${release}${shared_ext}$major'
25098    fi
25099    shlibpath_var=LIBPATH
25100  fi
25101  ;;
25102
25103amigaos*)
25104  library_names_spec='$libname.ixlibrary $libname.a'
25105  # Create ${libname}_ixlibrary.a entries in /sys/libs.
25106  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'
25107  ;;
25108
25109beos*)
25110  library_names_spec='${libname}${shared_ext}'
25111  dynamic_linker="$host_os ld.so"
25112  shlibpath_var=LIBRARY_PATH
25113  ;;
25114
25115bsdi[45]*)
25116  version_type=linux
25117  need_version=no
25118  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25119  soname_spec='${libname}${release}${shared_ext}$major'
25120  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25121  shlibpath_var=LD_LIBRARY_PATH
25122  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25123  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25124  # the default ld.so.conf also contains /usr/contrib/lib and
25125  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25126  # libtool to hard-code these into programs
25127  ;;
25128
25129cygwin* | mingw* | pw32*)
25130  version_type=windows
25131  shrext_cmds=".dll"
25132  need_version=no
25133  need_lib_prefix=no
25134
25135  case $GCC,$host_os in
25136  yes,cygwin* | yes,mingw* | yes,pw32*)
25137    library_names_spec='$libname.dll.a'
25138    # DLL is installed to $(libdir)/../bin by postinstall_cmds
25139    postinstall_cmds='base_file=`basename \${file}`~
25140      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25141      dldir=$destdir/`dirname \$dlpath`~
25142      test -d \$dldir || mkdir -p \$dldir~
25143      $install_prog $dir/$dlname \$dldir/$dlname~
25144      chmod a+x \$dldir/$dlname'
25145    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25146      dlpath=$dir/\$dldll~
25147       $rm \$dlpath'
25148    shlibpath_overrides_runpath=yes
25149
25150    case $host_os in
25151    cygwin*)
25152      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25153      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25154      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25155      ;;
25156    mingw*)
25157      # MinGW DLLs use traditional 'lib' prefix
25158      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25159      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25160      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25161        # It is most probably a Windows format PATH printed by
25162        # mingw gcc, but we are running on Cygwin. Gcc prints its search
25163        # path with ; separators, and with drive letters. We can handle the
25164        # drive letters (cygwin fileutils understands them), so leave them,
25165        # especially as we might pass files found there to a mingw objdump,
25166        # which wouldn't understand a cygwinified path. Ahh.
25167        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25168      else
25169        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25170      fi
25171      ;;
25172    pw32*)
25173      # pw32 DLLs use 'pw' prefix rather than 'lib'
25174      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25175      ;;
25176    esac
25177    ;;
25178
25179  *)
25180    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25181    ;;
25182  esac
25183  dynamic_linker='Win32 ld.exe'
25184  # FIXME: first we should search . and the directory the executable is in
25185  shlibpath_var=PATH
25186  ;;
25187
25188darwin* | rhapsody*)
25189  dynamic_linker="$host_os dyld"
25190  version_type=darwin
25191  need_lib_prefix=no
25192  need_version=no
25193  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25194  soname_spec='${libname}${release}${major}$shared_ext'
25195  shlibpath_overrides_runpath=yes
25196  shlibpath_var=DYLD_LIBRARY_PATH
25197  shrext_cmds='.dylib'
25198  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25199  if test "$GCC" = yes; then
25200    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"`
25201  else
25202    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25203  fi
25204  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25205  ;;
25206
25207dgux*)
25208  version_type=linux
25209  need_lib_prefix=no
25210  need_version=no
25211  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25212  soname_spec='${libname}${release}${shared_ext}$major'
25213  shlibpath_var=LD_LIBRARY_PATH
25214  ;;
25215
25216freebsd1*)
25217  dynamic_linker=no
25218  ;;
25219
25220kfreebsd*-gnu)
25221  version_type=linux
25222  need_lib_prefix=no
25223  need_version=no
25224  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25225  soname_spec='${libname}${release}${shared_ext}$major'
25226  shlibpath_var=LD_LIBRARY_PATH
25227  shlibpath_overrides_runpath=no
25228  hardcode_into_libs=yes
25229  dynamic_linker='GNU ld.so'
25230  ;;
25231
25232freebsd* | dragonfly*)
25233  # DragonFly does not have aout.  When/if they implement a new
25234  # versioning mechanism, adjust this.
25235  if test -x /usr/bin/objformat; then
25236    objformat=`/usr/bin/objformat`
25237  else
25238    case $host_os in
25239    freebsd[123]*) objformat=aout ;;
25240    *) objformat=elf ;;
25241    esac
25242  fi
25243  version_type=freebsd-$objformat
25244  case $version_type in
25245    freebsd-elf*)
25246      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25247      need_version=no
25248      need_lib_prefix=no
25249      ;;
25250    freebsd-*)
25251      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25252      need_version=yes
25253      ;;
25254  esac
25255  shlibpath_var=LD_LIBRARY_PATH
25256  case $host_os in
25257  freebsd2*)
25258    shlibpath_overrides_runpath=yes
25259    ;;
25260  freebsd3.[01]* | freebsdelf3.[01]*)
25261    shlibpath_overrides_runpath=yes
25262    hardcode_into_libs=yes
25263    ;;
25264  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25265  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25266    shlibpath_overrides_runpath=no
25267    hardcode_into_libs=yes
25268    ;;
25269  freebsd*) # from 4.6 on
25270    shlibpath_overrides_runpath=yes
25271    hardcode_into_libs=yes
25272    ;;
25273  esac
25274  ;;
25275
25276gnu*)
25277  version_type=linux
25278  need_lib_prefix=no
25279  need_version=no
25280  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25281  soname_spec='${libname}${release}${shared_ext}$major'
25282  shlibpath_var=LD_LIBRARY_PATH
25283  hardcode_into_libs=yes
25284  ;;
25285
25286hpux9* | hpux10* | hpux11*)
25287  # Give a soname corresponding to the major version so that dld.sl refuses to
25288  # link against other versions.
25289  version_type=sunos
25290  need_lib_prefix=no
25291  need_version=no
25292  case $host_cpu in
25293  ia64*)
25294    shrext_cmds='.so'
25295    hardcode_into_libs=yes
25296    dynamic_linker="$host_os dld.so"
25297    shlibpath_var=LD_LIBRARY_PATH
25298    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25299    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25300    soname_spec='${libname}${release}${shared_ext}$major'
25301    if test "X$HPUX_IA64_MODE" = X32; then
25302      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25303    else
25304      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25305    fi
25306    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25307    ;;
25308   hppa*64*)
25309     shrext_cmds='.sl'
25310     hardcode_into_libs=yes
25311     dynamic_linker="$host_os dld.sl"
25312     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25313     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25314     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25315     soname_spec='${libname}${release}${shared_ext}$major'
25316     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25317     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25318     ;;
25319   *)
25320    shrext_cmds='.sl'
25321    dynamic_linker="$host_os dld.sl"
25322    shlibpath_var=SHLIB_PATH
25323    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25324    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25325    soname_spec='${libname}${release}${shared_ext}$major'
25326    ;;
25327  esac
25328  # HP-UX runs *really* slowly unless shared libraries are mode 555.
25329  postinstall_cmds='chmod 555 $lib'
25330  ;;
25331
25332interix3*)
25333  version_type=linux
25334  need_lib_prefix=no
25335  need_version=no
25336  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25337  soname_spec='${libname}${release}${shared_ext}$major'
25338  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25339  shlibpath_var=LD_LIBRARY_PATH
25340  shlibpath_overrides_runpath=no
25341  hardcode_into_libs=yes
25342  ;;
25343
25344irix5* | irix6* | nonstopux*)
25345  case $host_os in
25346    nonstopux*) version_type=nonstopux ;;
25347    *)
25348	if test "$lt_cv_prog_gnu_ld" = yes; then
25349		version_type=linux
25350	else
25351		version_type=irix
25352	fi ;;
25353  esac
25354  need_lib_prefix=no
25355  need_version=no
25356  soname_spec='${libname}${release}${shared_ext}$major'
25357  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25358  case $host_os in
25359  irix5* | nonstopux*)
25360    libsuff= shlibsuff=
25361    ;;
25362  *)
25363    case $LD in # libtool.m4 will add one of these switches to LD
25364    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25365      libsuff= shlibsuff= libmagic=32-bit;;
25366    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25367      libsuff=32 shlibsuff=N32 libmagic=N32;;
25368    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25369      libsuff=64 shlibsuff=64 libmagic=64-bit;;
25370    *) libsuff= shlibsuff= libmagic=never-match;;
25371    esac
25372    ;;
25373  esac
25374  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25375  shlibpath_overrides_runpath=no
25376  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25377  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25378  hardcode_into_libs=yes
25379  ;;
25380
25381# No shared lib support for Linux oldld, aout, or coff.
25382linux*oldld* | linux*aout* | linux*coff*)
25383  dynamic_linker=no
25384  ;;
25385
25386# This must be Linux ELF.
25387linux*)
25388  version_type=linux
25389  need_lib_prefix=no
25390  need_version=no
25391  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25392  soname_spec='${libname}${release}${shared_ext}$major'
25393  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25394  shlibpath_var=LD_LIBRARY_PATH
25395  shlibpath_overrides_runpath=no
25396  # This implies no fast_install, which is unacceptable.
25397  # Some rework will be needed to allow for fast_install
25398  # before this can be enabled.
25399  hardcode_into_libs=yes
25400
25401  # Append ld.so.conf contents to the search path
25402  if test -f /etc/ld.so.conf; then
25403    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' ' '`
25404    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25405  fi
25406
25407  # We used to test for /lib/ld.so.1 and disable shared libraries on
25408  # powerpc, because MkLinux only supported shared libraries with the
25409  # GNU dynamic linker.  Since this was broken with cross compilers,
25410  # most powerpc-linux boxes support dynamic linking these days and
25411  # people can always --disable-shared, the test was removed, and we
25412  # assume the GNU/Linux dynamic linker is in use.
25413  dynamic_linker='GNU/Linux ld.so'
25414  ;;
25415
25416knetbsd*-gnu)
25417  version_type=linux
25418  need_lib_prefix=no
25419  need_version=no
25420  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25421  soname_spec='${libname}${release}${shared_ext}$major'
25422  shlibpath_var=LD_LIBRARY_PATH
25423  shlibpath_overrides_runpath=no
25424  hardcode_into_libs=yes
25425  dynamic_linker='GNU ld.so'
25426  ;;
25427
25428netbsd*)
25429  version_type=sunos
25430  need_lib_prefix=no
25431  need_version=no
25432  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25433    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25434    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25435    dynamic_linker='NetBSD (a.out) ld.so'
25436  else
25437    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25438    soname_spec='${libname}${release}${shared_ext}$major'
25439    dynamic_linker='NetBSD ld.elf_so'
25440  fi
25441  shlibpath_var=LD_LIBRARY_PATH
25442  shlibpath_overrides_runpath=yes
25443  hardcode_into_libs=yes
25444  ;;
25445
25446newsos6)
25447  version_type=linux
25448  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25449  shlibpath_var=LD_LIBRARY_PATH
25450  shlibpath_overrides_runpath=yes
25451  ;;
25452
25453nto-qnx*)
25454  version_type=linux
25455  need_lib_prefix=no
25456  need_version=no
25457  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25458  soname_spec='${libname}${release}${shared_ext}$major'
25459  shlibpath_var=LD_LIBRARY_PATH
25460  shlibpath_overrides_runpath=yes
25461  ;;
25462
25463openbsd*)
25464  version_type=sunos
25465  sys_lib_dlsearch_path_spec="/usr/lib"
25466  need_lib_prefix=no
25467  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25468  case $host_os in
25469    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25470    *)                         need_version=no  ;;
25471  esac
25472  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25473  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25474  shlibpath_var=LD_LIBRARY_PATH
25475  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25476    case $host_os in
25477      openbsd2.[89] | openbsd2.[89].*)
25478	shlibpath_overrides_runpath=no
25479	;;
25480      *)
25481	shlibpath_overrides_runpath=yes
25482	;;
25483      esac
25484  else
25485    shlibpath_overrides_runpath=yes
25486  fi
25487  ;;
25488
25489os2*)
25490  libname_spec='$name'
25491  shrext_cmds=".dll"
25492  need_lib_prefix=no
25493  library_names_spec='$libname${shared_ext} $libname.a'
25494  dynamic_linker='OS/2 ld.exe'
25495  shlibpath_var=LIBPATH
25496  ;;
25497
25498osf3* | osf4* | osf5*)
25499  version_type=osf
25500  need_lib_prefix=no
25501  need_version=no
25502  soname_spec='${libname}${release}${shared_ext}$major'
25503  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25504  shlibpath_var=LD_LIBRARY_PATH
25505  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25506  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25507  ;;
25508
25509solaris*)
25510  version_type=linux
25511  need_lib_prefix=no
25512  need_version=no
25513  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25514  soname_spec='${libname}${release}${shared_ext}$major'
25515  shlibpath_var=LD_LIBRARY_PATH
25516  shlibpath_overrides_runpath=yes
25517  hardcode_into_libs=yes
25518  # ldd complains unless libraries are executable
25519  postinstall_cmds='chmod +x $lib'
25520  ;;
25521
25522sunos4*)
25523  version_type=sunos
25524  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25525  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25526  shlibpath_var=LD_LIBRARY_PATH
25527  shlibpath_overrides_runpath=yes
25528  if test "$with_gnu_ld" = yes; then
25529    need_lib_prefix=no
25530  fi
25531  need_version=yes
25532  ;;
25533
25534sysv4 | sysv4.3*)
25535  version_type=linux
25536  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25537  soname_spec='${libname}${release}${shared_ext}$major'
25538  shlibpath_var=LD_LIBRARY_PATH
25539  case $host_vendor in
25540    sni)
25541      shlibpath_overrides_runpath=no
25542      need_lib_prefix=no
25543      export_dynamic_flag_spec='${wl}-Blargedynsym'
25544      runpath_var=LD_RUN_PATH
25545      ;;
25546    siemens)
25547      need_lib_prefix=no
25548      ;;
25549    motorola)
25550      need_lib_prefix=no
25551      need_version=no
25552      shlibpath_overrides_runpath=no
25553      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25554      ;;
25555  esac
25556  ;;
25557
25558sysv4*MP*)
25559  if test -d /usr/nec ;then
25560    version_type=linux
25561    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25562    soname_spec='$libname${shared_ext}.$major'
25563    shlibpath_var=LD_LIBRARY_PATH
25564  fi
25565  ;;
25566
25567sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25568  version_type=freebsd-elf
25569  need_lib_prefix=no
25570  need_version=no
25571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25572  soname_spec='${libname}${release}${shared_ext}$major'
25573  shlibpath_var=LD_LIBRARY_PATH
25574  hardcode_into_libs=yes
25575  if test "$with_gnu_ld" = yes; then
25576    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25577    shlibpath_overrides_runpath=no
25578  else
25579    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25580    shlibpath_overrides_runpath=yes
25581    case $host_os in
25582      sco3.2v5*)
25583        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25584	;;
25585    esac
25586  fi
25587  sys_lib_dlsearch_path_spec='/usr/lib'
25588  ;;
25589
25590uts4*)
25591  version_type=linux
25592  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25593  soname_spec='${libname}${release}${shared_ext}$major'
25594  shlibpath_var=LD_LIBRARY_PATH
25595  ;;
25596
25597*)
25598  dynamic_linker=no
25599  ;;
25600esac
25601{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25602echo "${ECHO_T}$dynamic_linker" >&6; }
25603test "$dynamic_linker" = no && can_build_shared=no
25604
25605variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25606if test "$GCC" = yes; then
25607  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25608fi
25609
25610{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25611echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25612hardcode_action_GCJ=
25613if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25614   test -n "$runpath_var_GCJ" || \
25615   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25616
25617  # We can hardcode non-existant directories.
25618  if test "$hardcode_direct_GCJ" != no &&
25619     # If the only mechanism to avoid hardcoding is shlibpath_var, we
25620     # have to relink, otherwise we might link with an installed library
25621     # when we should be linking with a yet-to-be-installed one
25622     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25623     test "$hardcode_minus_L_GCJ" != no; then
25624    # Linking always hardcodes the temporary library directory.
25625    hardcode_action_GCJ=relink
25626  else
25627    # We can link without hardcoding, and we can hardcode nonexisting dirs.
25628    hardcode_action_GCJ=immediate
25629  fi
25630else
25631  # We cannot hardcode anything, or else we can only hardcode existing
25632  # directories.
25633  hardcode_action_GCJ=unsupported
25634fi
25635{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25636echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25637
25638if test "$hardcode_action_GCJ" = relink; then
25639  # Fast installation is not supported
25640  enable_fast_install=no
25641elif test "$shlibpath_overrides_runpath" = yes ||
25642     test "$enable_shared" = no; then
25643  # Fast installation is not necessary
25644  enable_fast_install=needless
25645fi
25646
25647
25648# The else clause should only fire when bootstrapping the
25649# libtool distribution, otherwise you forgot to ship ltmain.sh
25650# with your package, and you will get complaints that there are
25651# no rules to generate ltmain.sh.
25652if test -f "$ltmain"; then
25653  # See if we are running on zsh, and set the options which allow our commands through
25654  # without removal of \ escapes.
25655  if test -n "${ZSH_VERSION+set}" ; then
25656    setopt NO_GLOB_SUBST
25657  fi
25658  # Now quote all the things that may contain metacharacters while being
25659  # careful not to overquote the AC_SUBSTed values.  We take copies of the
25660  # variables and quote the copies for generation of the libtool script.
25661  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25662    SED SHELL STRIP \
25663    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25664    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25665    deplibs_check_method reload_flag reload_cmds need_locks \
25666    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25667    lt_cv_sys_global_symbol_to_c_name_address \
25668    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25669    old_postinstall_cmds old_postuninstall_cmds \
25670    compiler_GCJ \
25671    CC_GCJ \
25672    LD_GCJ \
25673    lt_prog_compiler_wl_GCJ \
25674    lt_prog_compiler_pic_GCJ \
25675    lt_prog_compiler_static_GCJ \
25676    lt_prog_compiler_no_builtin_flag_GCJ \
25677    export_dynamic_flag_spec_GCJ \
25678    thread_safe_flag_spec_GCJ \
25679    whole_archive_flag_spec_GCJ \
25680    enable_shared_with_static_runtimes_GCJ \
25681    old_archive_cmds_GCJ \
25682    old_archive_from_new_cmds_GCJ \
25683    predep_objects_GCJ \
25684    postdep_objects_GCJ \
25685    predeps_GCJ \
25686    postdeps_GCJ \
25687    compiler_lib_search_path_GCJ \
25688    archive_cmds_GCJ \
25689    archive_expsym_cmds_GCJ \
25690    postinstall_cmds_GCJ \
25691    postuninstall_cmds_GCJ \
25692    old_archive_from_expsyms_cmds_GCJ \
25693    allow_undefined_flag_GCJ \
25694    no_undefined_flag_GCJ \
25695    export_symbols_cmds_GCJ \
25696    hardcode_libdir_flag_spec_GCJ \
25697    hardcode_libdir_flag_spec_ld_GCJ \
25698    hardcode_libdir_separator_GCJ \
25699    hardcode_automatic_GCJ \
25700    module_cmds_GCJ \
25701    module_expsym_cmds_GCJ \
25702    lt_cv_prog_compiler_c_o_GCJ \
25703    exclude_expsyms_GCJ \
25704    include_expsyms_GCJ; do
25705
25706    case $var in
25707    old_archive_cmds_GCJ | \
25708    old_archive_from_new_cmds_GCJ | \
25709    archive_cmds_GCJ | \
25710    archive_expsym_cmds_GCJ | \
25711    module_cmds_GCJ | \
25712    module_expsym_cmds_GCJ | \
25713    old_archive_from_expsyms_cmds_GCJ | \
25714    export_symbols_cmds_GCJ | \
25715    extract_expsyms_cmds | reload_cmds | finish_cmds | \
25716    postinstall_cmds | postuninstall_cmds | \
25717    old_postinstall_cmds | old_postuninstall_cmds | \
25718    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25719      # Double-quote double-evaled strings.
25720      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25721      ;;
25722    *)
25723      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25724      ;;
25725    esac
25726  done
25727
25728  case $lt_echo in
25729  *'\$0 --fallback-echo"')
25730    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25731    ;;
25732  esac
25733
25734cfgfile="$ofile"
25735
25736  cat <<__EOF__ >> "$cfgfile"
25737# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25738
25739# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25740
25741# Shell to use when invoking shell scripts.
25742SHELL=$lt_SHELL
25743
25744# Whether or not to build shared libraries.
25745build_libtool_libs=$enable_shared
25746
25747# Whether or not to build static libraries.
25748build_old_libs=$enable_static
25749
25750# Whether or not to add -lc for building shared libraries.
25751build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25752
25753# Whether or not to disallow shared libs when runtime libs are static
25754allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25755
25756# Whether or not to optimize for fast installation.
25757fast_install=$enable_fast_install
25758
25759# The host system.
25760host_alias=$host_alias
25761host=$host
25762host_os=$host_os
25763
25764# The build system.
25765build_alias=$build_alias
25766build=$build
25767build_os=$build_os
25768
25769# An echo program that does not interpret backslashes.
25770echo=$lt_echo
25771
25772# The archiver.
25773AR=$lt_AR
25774AR_FLAGS=$lt_AR_FLAGS
25775
25776# A C compiler.
25777LTCC=$lt_LTCC
25778
25779# LTCC compiler flags.
25780LTCFLAGS=$lt_LTCFLAGS
25781
25782# A language-specific compiler.
25783CC=$lt_compiler_GCJ
25784
25785# Is the compiler the GNU C compiler?
25786with_gcc=$GCC_GCJ
25787
25788# An ERE matcher.
25789EGREP=$lt_EGREP
25790
25791# The linker used to build libraries.
25792LD=$lt_LD_GCJ
25793
25794# Whether we need hard or soft links.
25795LN_S=$lt_LN_S
25796
25797# A BSD-compatible nm program.
25798NM=$lt_NM
25799
25800# A symbol stripping program
25801STRIP=$lt_STRIP
25802
25803# Used to examine libraries when file_magic_cmd begins "file"
25804MAGIC_CMD=$MAGIC_CMD
25805
25806# Used on cygwin: DLL creation program.
25807DLLTOOL="$DLLTOOL"
25808
25809# Used on cygwin: object dumper.
25810OBJDUMP="$OBJDUMP"
25811
25812# Used on cygwin: assembler.
25813AS="$AS"
25814
25815# The name of the directory that contains temporary libtool files.
25816objdir=$objdir
25817
25818# How to create reloadable object files.
25819reload_flag=$lt_reload_flag
25820reload_cmds=$lt_reload_cmds
25821
25822# How to pass a linker flag through the compiler.
25823wl=$lt_lt_prog_compiler_wl_GCJ
25824
25825# Object file suffix (normally "o").
25826objext="$ac_objext"
25827
25828# Old archive suffix (normally "a").
25829libext="$libext"
25830
25831# Shared library suffix (normally ".so").
25832shrext_cmds='$shrext_cmds'
25833
25834# Executable file suffix (normally "").
25835exeext="$exeext"
25836
25837# Additional compiler flags for building library objects.
25838pic_flag=$lt_lt_prog_compiler_pic_GCJ
25839pic_mode=$pic_mode
25840
25841# What is the maximum length of a command?
25842max_cmd_len=$lt_cv_sys_max_cmd_len
25843
25844# Does compiler simultaneously support -c and -o options?
25845compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25846
25847# Must we lock files when doing compilation?
25848need_locks=$lt_need_locks
25849
25850# Do we need the lib prefix for modules?
25851need_lib_prefix=$need_lib_prefix
25852
25853# Do we need a version for libraries?
25854need_version=$need_version
25855
25856# Whether dlopen is supported.
25857dlopen_support=$enable_dlopen
25858
25859# Whether dlopen of programs is supported.
25860dlopen_self=$enable_dlopen_self
25861
25862# Whether dlopen of statically linked programs is supported.
25863dlopen_self_static=$enable_dlopen_self_static
25864
25865# Compiler flag to prevent dynamic linking.
25866link_static_flag=$lt_lt_prog_compiler_static_GCJ
25867
25868# Compiler flag to turn off builtin functions.
25869no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25870
25871# Compiler flag to allow reflexive dlopens.
25872export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25873
25874# Compiler flag to generate shared objects directly from archives.
25875whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25876
25877# Compiler flag to generate thread-safe objects.
25878thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25879
25880# Library versioning type.
25881version_type=$version_type
25882
25883# Format of library name prefix.
25884libname_spec=$lt_libname_spec
25885
25886# List of archive names.  First name is the real one, the rest are links.
25887# The last name is the one that the linker finds with -lNAME.
25888library_names_spec=$lt_library_names_spec
25889
25890# The coded name of the library, if different from the real name.
25891soname_spec=$lt_soname_spec
25892
25893# Commands used to build and install an old-style archive.
25894RANLIB=$lt_RANLIB
25895old_archive_cmds=$lt_old_archive_cmds_GCJ
25896old_postinstall_cmds=$lt_old_postinstall_cmds
25897old_postuninstall_cmds=$lt_old_postuninstall_cmds
25898
25899# Create an old-style archive from a shared archive.
25900old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25901
25902# Create a temporary old-style archive to link instead of a shared archive.
25903old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25904
25905# Commands used to build and install a shared archive.
25906archive_cmds=$lt_archive_cmds_GCJ
25907archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25908postinstall_cmds=$lt_postinstall_cmds
25909postuninstall_cmds=$lt_postuninstall_cmds
25910
25911# Commands used to build a loadable module (assumed same as above if empty)
25912module_cmds=$lt_module_cmds_GCJ
25913module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25914
25915# Commands to strip libraries.
25916old_striplib=$lt_old_striplib
25917striplib=$lt_striplib
25918
25919# Dependencies to place before the objects being linked to create a
25920# shared library.
25921predep_objects=$lt_predep_objects_GCJ
25922
25923# Dependencies to place after the objects being linked to create a
25924# shared library.
25925postdep_objects=$lt_postdep_objects_GCJ
25926
25927# Dependencies to place before the objects being linked to create a
25928# shared library.
25929predeps=$lt_predeps_GCJ
25930
25931# Dependencies to place after the objects being linked to create a
25932# shared library.
25933postdeps=$lt_postdeps_GCJ
25934
25935# The library search path used internally by the compiler when linking
25936# a shared library.
25937compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25938
25939# Method to check whether dependent libraries are shared objects.
25940deplibs_check_method=$lt_deplibs_check_method
25941
25942# Command to use when deplibs_check_method == file_magic.
25943file_magic_cmd=$lt_file_magic_cmd
25944
25945# Flag that allows shared libraries with undefined symbols to be built.
25946allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25947
25948# Flag that forces no undefined symbols.
25949no_undefined_flag=$lt_no_undefined_flag_GCJ
25950
25951# Commands used to finish a libtool library installation in a directory.
25952finish_cmds=$lt_finish_cmds
25953
25954# Same as above, but a single script fragment to be evaled but not shown.
25955finish_eval=$lt_finish_eval
25956
25957# Take the output of nm and produce a listing of raw symbols and C names.
25958global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25959
25960# Transform the output of nm in a proper C declaration
25961global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25962
25963# Transform the output of nm in a C name address pair
25964global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25965
25966# This is the shared library runtime path variable.
25967runpath_var=$runpath_var
25968
25969# This is the shared library path variable.
25970shlibpath_var=$shlibpath_var
25971
25972# Is shlibpath searched before the hard-coded library search path?
25973shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25974
25975# How to hardcode a shared library path into an executable.
25976hardcode_action=$hardcode_action_GCJ
25977
25978# Whether we should hardcode library paths into libraries.
25979hardcode_into_libs=$hardcode_into_libs
25980
25981# Flag to hardcode \$libdir into a binary during linking.
25982# This must work even if \$libdir does not exist.
25983hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25984
25985# If ld is used when linking, flag to hardcode \$libdir into
25986# a binary during linking. This must work even if \$libdir does
25987# not exist.
25988hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25989
25990# Whether we need a single -rpath flag with a separated argument.
25991hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25992
25993# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25994# resulting binary.
25995hardcode_direct=$hardcode_direct_GCJ
25996
25997# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25998# resulting binary.
25999hardcode_minus_L=$hardcode_minus_L_GCJ
26000
26001# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26002# the resulting binary.
26003hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26004
26005# Set to yes if building a shared library automatically hardcodes DIR into the library
26006# and all subsequent libraries and executables linked against it.
26007hardcode_automatic=$hardcode_automatic_GCJ
26008
26009# Variables whose values should be saved in libtool wrapper scripts and
26010# restored at relink time.
26011variables_saved_for_relink="$variables_saved_for_relink"
26012
26013# Whether libtool must link a program against all its dependency libraries.
26014link_all_deplibs=$link_all_deplibs_GCJ
26015
26016# Compile-time system search path for libraries
26017sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26018
26019# Run-time system search path for libraries
26020sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26021
26022# Fix the shell variable \$srcfile for the compiler.
26023fix_srcfile_path="$fix_srcfile_path_GCJ"
26024
26025# Set to yes if exported symbols are required.
26026always_export_symbols=$always_export_symbols_GCJ
26027
26028# The commands to list exported symbols.
26029export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26030
26031# The commands to extract the exported symbol list from a shared archive.
26032extract_expsyms_cmds=$lt_extract_expsyms_cmds
26033
26034# Symbols that should not be listed in the preloaded symbols.
26035exclude_expsyms=$lt_exclude_expsyms_GCJ
26036
26037# Symbols that must always be exported.
26038include_expsyms=$lt_include_expsyms_GCJ
26039
26040# ### END LIBTOOL TAG CONFIG: $tagname
26041
26042__EOF__
26043
26044
26045else
26046  # If there is no Makefile yet, we rely on a make rule to execute
26047  # `config.status --recheck' to rerun these tests and create the
26048  # libtool script then.
26049  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26050  if test -f "$ltmain_in"; then
26051    test -f Makefile && make "$ltmain"
26052  fi
26053fi
26054
26055
26056ac_ext=c
26057ac_cpp='$CPP $CPPFLAGS'
26058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26060ac_compiler_gnu=$ac_cv_c_compiler_gnu
26061
26062CC="$lt_save_CC"
26063
26064	else
26065	  tagname=""
26066	fi
26067	;;
26068
26069      RC)
26070	ac_ext=c
26071ac_cpp='$CPP $CPPFLAGS'
26072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26074ac_compiler_gnu=$ac_cv_c_compiler_gnu
26075
26076
26077# Source file extension for RC test sources.
26078ac_ext=rc
26079
26080# Object file extension for compiled RC test sources.
26081objext=o
26082objext_RC=$objext
26083
26084# Code to be used in simple compile tests
26085lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26086
26087# Code to be used in simple link tests
26088lt_simple_link_test_code="$lt_simple_compile_test_code"
26089
26090# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26091
26092# If no C compiler was specified, use CC.
26093LTCC=${LTCC-"$CC"}
26094
26095# If no C compiler flags were specified, use CFLAGS.
26096LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26097
26098# Allow CC to be a program name with arguments.
26099compiler=$CC
26100
26101
26102# save warnings/boilerplate of simple test code
26103ac_outfile=conftest.$ac_objext
26104printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26105eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26106_lt_compiler_boilerplate=`cat conftest.err`
26107$rm conftest*
26108
26109ac_outfile=conftest.$ac_objext
26110printf "$lt_simple_link_test_code" >conftest.$ac_ext
26111eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26112_lt_linker_boilerplate=`cat conftest.err`
26113$rm conftest*
26114
26115
26116# Allow CC to be a program name with arguments.
26117lt_save_CC="$CC"
26118CC=${RC-"windres"}
26119compiler=$CC
26120compiler_RC=$CC
26121for cc_temp in $compiler""; do
26122  case $cc_temp in
26123    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26124    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26125    \-*) ;;
26126    *) break;;
26127  esac
26128done
26129cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26130
26131lt_cv_prog_compiler_c_o_RC=yes
26132
26133# The else clause should only fire when bootstrapping the
26134# libtool distribution, otherwise you forgot to ship ltmain.sh
26135# with your package, and you will get complaints that there are
26136# no rules to generate ltmain.sh.
26137if test -f "$ltmain"; then
26138  # See if we are running on zsh, and set the options which allow our commands through
26139  # without removal of \ escapes.
26140  if test -n "${ZSH_VERSION+set}" ; then
26141    setopt NO_GLOB_SUBST
26142  fi
26143  # Now quote all the things that may contain metacharacters while being
26144  # careful not to overquote the AC_SUBSTed values.  We take copies of the
26145  # variables and quote the copies for generation of the libtool script.
26146  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26147    SED SHELL STRIP \
26148    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26149    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26150    deplibs_check_method reload_flag reload_cmds need_locks \
26151    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26152    lt_cv_sys_global_symbol_to_c_name_address \
26153    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26154    old_postinstall_cmds old_postuninstall_cmds \
26155    compiler_RC \
26156    CC_RC \
26157    LD_RC \
26158    lt_prog_compiler_wl_RC \
26159    lt_prog_compiler_pic_RC \
26160    lt_prog_compiler_static_RC \
26161    lt_prog_compiler_no_builtin_flag_RC \
26162    export_dynamic_flag_spec_RC \
26163    thread_safe_flag_spec_RC \
26164    whole_archive_flag_spec_RC \
26165    enable_shared_with_static_runtimes_RC \
26166    old_archive_cmds_RC \
26167    old_archive_from_new_cmds_RC \
26168    predep_objects_RC \
26169    postdep_objects_RC \
26170    predeps_RC \
26171    postdeps_RC \
26172    compiler_lib_search_path_RC \
26173    archive_cmds_RC \
26174    archive_expsym_cmds_RC \
26175    postinstall_cmds_RC \
26176    postuninstall_cmds_RC \
26177    old_archive_from_expsyms_cmds_RC \
26178    allow_undefined_flag_RC \
26179    no_undefined_flag_RC \
26180    export_symbols_cmds_RC \
26181    hardcode_libdir_flag_spec_RC \
26182    hardcode_libdir_flag_spec_ld_RC \
26183    hardcode_libdir_separator_RC \
26184    hardcode_automatic_RC \
26185    module_cmds_RC \
26186    module_expsym_cmds_RC \
26187    lt_cv_prog_compiler_c_o_RC \
26188    exclude_expsyms_RC \
26189    include_expsyms_RC; do
26190
26191    case $var in
26192    old_archive_cmds_RC | \
26193    old_archive_from_new_cmds_RC | \
26194    archive_cmds_RC | \
26195    archive_expsym_cmds_RC | \
26196    module_cmds_RC | \
26197    module_expsym_cmds_RC | \
26198    old_archive_from_expsyms_cmds_RC | \
26199    export_symbols_cmds_RC | \
26200    extract_expsyms_cmds | reload_cmds | finish_cmds | \
26201    postinstall_cmds | postuninstall_cmds | \
26202    old_postinstall_cmds | old_postuninstall_cmds | \
26203    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26204      # Double-quote double-evaled strings.
26205      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26206      ;;
26207    *)
26208      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26209      ;;
26210    esac
26211  done
26212
26213  case $lt_echo in
26214  *'\$0 --fallback-echo"')
26215    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26216    ;;
26217  esac
26218
26219cfgfile="$ofile"
26220
26221  cat <<__EOF__ >> "$cfgfile"
26222# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26223
26224# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26225
26226# Shell to use when invoking shell scripts.
26227SHELL=$lt_SHELL
26228
26229# Whether or not to build shared libraries.
26230build_libtool_libs=$enable_shared
26231
26232# Whether or not to build static libraries.
26233build_old_libs=$enable_static
26234
26235# Whether or not to add -lc for building shared libraries.
26236build_libtool_need_lc=$archive_cmds_need_lc_RC
26237
26238# Whether or not to disallow shared libs when runtime libs are static
26239allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26240
26241# Whether or not to optimize for fast installation.
26242fast_install=$enable_fast_install
26243
26244# The host system.
26245host_alias=$host_alias
26246host=$host
26247host_os=$host_os
26248
26249# The build system.
26250build_alias=$build_alias
26251build=$build
26252build_os=$build_os
26253
26254# An echo program that does not interpret backslashes.
26255echo=$lt_echo
26256
26257# The archiver.
26258AR=$lt_AR
26259AR_FLAGS=$lt_AR_FLAGS
26260
26261# A C compiler.
26262LTCC=$lt_LTCC
26263
26264# LTCC compiler flags.
26265LTCFLAGS=$lt_LTCFLAGS
26266
26267# A language-specific compiler.
26268CC=$lt_compiler_RC
26269
26270# Is the compiler the GNU C compiler?
26271with_gcc=$GCC_RC
26272
26273# An ERE matcher.
26274EGREP=$lt_EGREP
26275
26276# The linker used to build libraries.
26277LD=$lt_LD_RC
26278
26279# Whether we need hard or soft links.
26280LN_S=$lt_LN_S
26281
26282# A BSD-compatible nm program.
26283NM=$lt_NM
26284
26285# A symbol stripping program
26286STRIP=$lt_STRIP
26287
26288# Used to examine libraries when file_magic_cmd begins "file"
26289MAGIC_CMD=$MAGIC_CMD
26290
26291# Used on cygwin: DLL creation program.
26292DLLTOOL="$DLLTOOL"
26293
26294# Used on cygwin: object dumper.
26295OBJDUMP="$OBJDUMP"
26296
26297# Used on cygwin: assembler.
26298AS="$AS"
26299
26300# The name of the directory that contains temporary libtool files.
26301objdir=$objdir
26302
26303# How to create reloadable object files.
26304reload_flag=$lt_reload_flag
26305reload_cmds=$lt_reload_cmds
26306
26307# How to pass a linker flag through the compiler.
26308wl=$lt_lt_prog_compiler_wl_RC
26309
26310# Object file suffix (normally "o").
26311objext="$ac_objext"
26312
26313# Old archive suffix (normally "a").
26314libext="$libext"
26315
26316# Shared library suffix (normally ".so").
26317shrext_cmds='$shrext_cmds'
26318
26319# Executable file suffix (normally "").
26320exeext="$exeext"
26321
26322# Additional compiler flags for building library objects.
26323pic_flag=$lt_lt_prog_compiler_pic_RC
26324pic_mode=$pic_mode
26325
26326# What is the maximum length of a command?
26327max_cmd_len=$lt_cv_sys_max_cmd_len
26328
26329# Does compiler simultaneously support -c and -o options?
26330compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26331
26332# Must we lock files when doing compilation?
26333need_locks=$lt_need_locks
26334
26335# Do we need the lib prefix for modules?
26336need_lib_prefix=$need_lib_prefix
26337
26338# Do we need a version for libraries?
26339need_version=$need_version
26340
26341# Whether dlopen is supported.
26342dlopen_support=$enable_dlopen
26343
26344# Whether dlopen of programs is supported.
26345dlopen_self=$enable_dlopen_self
26346
26347# Whether dlopen of statically linked programs is supported.
26348dlopen_self_static=$enable_dlopen_self_static
26349
26350# Compiler flag to prevent dynamic linking.
26351link_static_flag=$lt_lt_prog_compiler_static_RC
26352
26353# Compiler flag to turn off builtin functions.
26354no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26355
26356# Compiler flag to allow reflexive dlopens.
26357export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26358
26359# Compiler flag to generate shared objects directly from archives.
26360whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26361
26362# Compiler flag to generate thread-safe objects.
26363thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26364
26365# Library versioning type.
26366version_type=$version_type
26367
26368# Format of library name prefix.
26369libname_spec=$lt_libname_spec
26370
26371# List of archive names.  First name is the real one, the rest are links.
26372# The last name is the one that the linker finds with -lNAME.
26373library_names_spec=$lt_library_names_spec
26374
26375# The coded name of the library, if different from the real name.
26376soname_spec=$lt_soname_spec
26377
26378# Commands used to build and install an old-style archive.
26379RANLIB=$lt_RANLIB
26380old_archive_cmds=$lt_old_archive_cmds_RC
26381old_postinstall_cmds=$lt_old_postinstall_cmds
26382old_postuninstall_cmds=$lt_old_postuninstall_cmds
26383
26384# Create an old-style archive from a shared archive.
26385old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26386
26387# Create a temporary old-style archive to link instead of a shared archive.
26388old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26389
26390# Commands used to build and install a shared archive.
26391archive_cmds=$lt_archive_cmds_RC
26392archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26393postinstall_cmds=$lt_postinstall_cmds
26394postuninstall_cmds=$lt_postuninstall_cmds
26395
26396# Commands used to build a loadable module (assumed same as above if empty)
26397module_cmds=$lt_module_cmds_RC
26398module_expsym_cmds=$lt_module_expsym_cmds_RC
26399
26400# Commands to strip libraries.
26401old_striplib=$lt_old_striplib
26402striplib=$lt_striplib
26403
26404# Dependencies to place before the objects being linked to create a
26405# shared library.
26406predep_objects=$lt_predep_objects_RC
26407
26408# Dependencies to place after the objects being linked to create a
26409# shared library.
26410postdep_objects=$lt_postdep_objects_RC
26411
26412# Dependencies to place before the objects being linked to create a
26413# shared library.
26414predeps=$lt_predeps_RC
26415
26416# Dependencies to place after the objects being linked to create a
26417# shared library.
26418postdeps=$lt_postdeps_RC
26419
26420# The library search path used internally by the compiler when linking
26421# a shared library.
26422compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26423
26424# Method to check whether dependent libraries are shared objects.
26425deplibs_check_method=$lt_deplibs_check_method
26426
26427# Command to use when deplibs_check_method == file_magic.
26428file_magic_cmd=$lt_file_magic_cmd
26429
26430# Flag that allows shared libraries with undefined symbols to be built.
26431allow_undefined_flag=$lt_allow_undefined_flag_RC
26432
26433# Flag that forces no undefined symbols.
26434no_undefined_flag=$lt_no_undefined_flag_RC
26435
26436# Commands used to finish a libtool library installation in a directory.
26437finish_cmds=$lt_finish_cmds
26438
26439# Same as above, but a single script fragment to be evaled but not shown.
26440finish_eval=$lt_finish_eval
26441
26442# Take the output of nm and produce a listing of raw symbols and C names.
26443global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26444
26445# Transform the output of nm in a proper C declaration
26446global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26447
26448# Transform the output of nm in a C name address pair
26449global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26450
26451# This is the shared library runtime path variable.
26452runpath_var=$runpath_var
26453
26454# This is the shared library path variable.
26455shlibpath_var=$shlibpath_var
26456
26457# Is shlibpath searched before the hard-coded library search path?
26458shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26459
26460# How to hardcode a shared library path into an executable.
26461hardcode_action=$hardcode_action_RC
26462
26463# Whether we should hardcode library paths into libraries.
26464hardcode_into_libs=$hardcode_into_libs
26465
26466# Flag to hardcode \$libdir into a binary during linking.
26467# This must work even if \$libdir does not exist.
26468hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26469
26470# If ld is used when linking, flag to hardcode \$libdir into
26471# a binary during linking. This must work even if \$libdir does
26472# not exist.
26473hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26474
26475# Whether we need a single -rpath flag with a separated argument.
26476hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26477
26478# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26479# resulting binary.
26480hardcode_direct=$hardcode_direct_RC
26481
26482# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26483# resulting binary.
26484hardcode_minus_L=$hardcode_minus_L_RC
26485
26486# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26487# the resulting binary.
26488hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26489
26490# Set to yes if building a shared library automatically hardcodes DIR into the library
26491# and all subsequent libraries and executables linked against it.
26492hardcode_automatic=$hardcode_automatic_RC
26493
26494# Variables whose values should be saved in libtool wrapper scripts and
26495# restored at relink time.
26496variables_saved_for_relink="$variables_saved_for_relink"
26497
26498# Whether libtool must link a program against all its dependency libraries.
26499link_all_deplibs=$link_all_deplibs_RC
26500
26501# Compile-time system search path for libraries
26502sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26503
26504# Run-time system search path for libraries
26505sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26506
26507# Fix the shell variable \$srcfile for the compiler.
26508fix_srcfile_path="$fix_srcfile_path_RC"
26509
26510# Set to yes if exported symbols are required.
26511always_export_symbols=$always_export_symbols_RC
26512
26513# The commands to list exported symbols.
26514export_symbols_cmds=$lt_export_symbols_cmds_RC
26515
26516# The commands to extract the exported symbol list from a shared archive.
26517extract_expsyms_cmds=$lt_extract_expsyms_cmds
26518
26519# Symbols that should not be listed in the preloaded symbols.
26520exclude_expsyms=$lt_exclude_expsyms_RC
26521
26522# Symbols that must always be exported.
26523include_expsyms=$lt_include_expsyms_RC
26524
26525# ### END LIBTOOL TAG CONFIG: $tagname
26526
26527__EOF__
26528
26529
26530else
26531  # If there is no Makefile yet, we rely on a make rule to execute
26532  # `config.status --recheck' to rerun these tests and create the
26533  # libtool script then.
26534  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26535  if test -f "$ltmain_in"; then
26536    test -f Makefile && make "$ltmain"
26537  fi
26538fi
26539
26540
26541ac_ext=c
26542ac_cpp='$CPP $CPPFLAGS'
26543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26545ac_compiler_gnu=$ac_cv_c_compiler_gnu
26546
26547CC="$lt_save_CC"
26548
26549	;;
26550
26551      *)
26552	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26553echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26554   { (exit 1); exit 1; }; }
26555	;;
26556      esac
26557
26558      # Append the new tag name to the list of available tags.
26559      if test -n "$tagname" ; then
26560      available_tags="$available_tags $tagname"
26561    fi
26562    fi
26563  done
26564  IFS="$lt_save_ifs"
26565
26566  # Now substitute the updated list of available tags.
26567  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26568    mv "${ofile}T" "$ofile"
26569    chmod +x "$ofile"
26570  else
26571    rm -f "${ofile}T"
26572    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26573echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26574   { (exit 1); exit 1; }; }
26575  fi
26576fi
26577
26578
26579
26580# This can be used to rebuild libtool when needed
26581LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26582
26583# Always use our own libtool.
26584LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26585
26586# Prevent multiple expansion
26587
26588
26589
26590
26591
26592
26593
26594
26595
26596
26597
26598
26599
26600
26601
26602
26603
26604
26605
26606
26607
26608if test "$lt_cv_dlopen_self" = "yes" ; then
26609
26610cat >>confdefs.h <<\_ACEOF
26611#define CAN_DLOPEN_SELF 1
26612_ACEOF
26613
26614fi
26615
26616etags_version=`$ETAGS --version 2>&1`
26617case "$etags_version" in
26618	*Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26619	*GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26620	*) ETAGSFLAGS="" ;;
26621esac
26622ETAGSFLAGS=$ETAGSFLAGS
26623
26624
26625if test "$WITH_LLVMGCCDIR" = "default" ; then
26626  LLVMGCC="llvm-gcc${EXEEXT}"
26627  LLVMGXX="llvm-g++${EXEEXT}"
26628  # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26629set dummy $LLVMGCC; ac_word=$2
26630{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26632if test "${ac_cv_path_LLVMGCC+set}" = set; then
26633  echo $ECHO_N "(cached) $ECHO_C" >&6
26634else
26635  case $LLVMGCC in
26636  [\\/]* | ?:[\\/]*)
26637  ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26638  ;;
26639  *)
26640  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26641for as_dir in $PATH
26642do
26643  IFS=$as_save_IFS
26644  test -z "$as_dir" && as_dir=.
26645  for ac_exec_ext in '' $ac_executable_extensions; do
26646  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26647    ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26648    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26649    break 2
26650  fi
26651done
26652done
26653IFS=$as_save_IFS
26654
26655  ;;
26656esac
26657fi
26658LLVMGCC=$ac_cv_path_LLVMGCC
26659if test -n "$LLVMGCC"; then
26660  { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26661echo "${ECHO_T}$LLVMGCC" >&6; }
26662else
26663  { echo "$as_me:$LINENO: result: no" >&5
26664echo "${ECHO_T}no" >&6; }
26665fi
26666
26667
26668  # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26669set dummy $LLVMGXX; ac_word=$2
26670{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26672if test "${ac_cv_path_LLVMGXX+set}" = set; then
26673  echo $ECHO_N "(cached) $ECHO_C" >&6
26674else
26675  case $LLVMGXX in
26676  [\\/]* | ?:[\\/]*)
26677  ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26678  ;;
26679  *)
26680  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26681for as_dir in $PATH
26682do
26683  IFS=$as_save_IFS
26684  test -z "$as_dir" && as_dir=.
26685  for ac_exec_ext in '' $ac_executable_extensions; do
26686  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26687    ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26688    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26689    break 2
26690  fi
26691done
26692done
26693IFS=$as_save_IFS
26694
26695  ;;
26696esac
26697fi
26698LLVMGXX=$ac_cv_path_LLVMGXX
26699if test -n "$LLVMGXX"; then
26700  { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26701echo "${ECHO_T}$LLVMGXX" >&6; }
26702else
26703  { echo "$as_me:$LINENO: result: no" >&5
26704echo "${ECHO_T}no" >&6; }
26705fi
26706
26707
26708else
26709  LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26710  LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26711  LLVMGCC=$LLVMGCC
26712
26713  LLVMGXX=$LLVMGXX
26714
26715fi
26716
26717{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26718echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26719
26720ICC=no
26721IXX=no
26722case $CC in
26723  icc*|icpc*)
26724    ICC=yes
26725    IXX=yes
26726    ;;
26727   *)
26728    ;;
26729esac
26730
26731if test "$GCC" != "yes" && test "$ICC" != "yes"
26732then
26733  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26734echo "$as_me: error: gcc|icc required but not found" >&2;}
26735   { (exit 1); exit 1; }; }
26736fi
26737
26738if test "$GXX" != "yes" && test "$IXX" != "yes"
26739then
26740  { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26741echo "$as_me: error: g++|icc required but not found" >&2;}
26742   { (exit 1); exit 1; }; }
26743fi
26744
26745if test "$GCC" = "yes"
26746then
26747  gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26748  if test "$gccmajor" -lt "3"
26749  then
26750    { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26751echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26752   { (exit 1); exit 1; }; }
26753  fi
26754fi
26755
26756if test -z "$llvm_cv_gnu_make_command"
26757then
26758  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26759echo "$as_me: error: GNU Make required but not found" >&2;}
26760   { (exit 1); exit 1; }; }
26761fi
26762
26763{ echo "$as_me:$LINENO: result: ok" >&5
26764echo "${ECHO_T}ok" >&6; }
26765
26766
26767
26768{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26769echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26770if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26771  echo $ECHO_N "(cached) $ECHO_C" >&6
26772else
26773  ac_check_lib_save_LIBS=$LIBS
26774LIBS="-lelf  $LIBS"
26775cat >conftest.$ac_ext <<_ACEOF
26776/* confdefs.h.  */
26777_ACEOF
26778cat confdefs.h >>conftest.$ac_ext
26779cat >>conftest.$ac_ext <<_ACEOF
26780/* end confdefs.h.  */
26781
26782/* Override any GCC internal prototype to avoid an error.
26783   Use char because int might match the return type of a GCC
26784   builtin and then its argument prototype would still apply.  */
26785#ifdef __cplusplus
26786extern "C"
26787#endif
26788char elf_begin ();
26789int
26790main ()
26791{
26792return elf_begin ();
26793  ;
26794  return 0;
26795}
26796_ACEOF
26797rm -f conftest.$ac_objext conftest$ac_exeext
26798if { (ac_try="$ac_link"
26799case "(($ac_try" in
26800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26801  *) ac_try_echo=$ac_try;;
26802esac
26803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26804  (eval "$ac_link") 2>conftest.er1
26805  ac_status=$?
26806  grep -v '^ *+' conftest.er1 >conftest.err
26807  rm -f conftest.er1
26808  cat conftest.err >&5
26809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810  (exit $ac_status); } &&
26811	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26812  { (case "(($ac_try" in
26813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26814  *) ac_try_echo=$ac_try;;
26815esac
26816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26817  (eval "$ac_try") 2>&5
26818  ac_status=$?
26819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820  (exit $ac_status); }; } &&
26821	 { ac_try='test -s conftest$ac_exeext'
26822  { (case "(($ac_try" in
26823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26824  *) ac_try_echo=$ac_try;;
26825esac
26826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26827  (eval "$ac_try") 2>&5
26828  ac_status=$?
26829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830  (exit $ac_status); }; }; then
26831  ac_cv_lib_elf_elf_begin=yes
26832else
26833  echo "$as_me: failed program was:" >&5
26834sed 's/^/| /' conftest.$ac_ext >&5
26835
26836	ac_cv_lib_elf_elf_begin=no
26837fi
26838
26839rm -f core conftest.err conftest.$ac_objext \
26840      conftest$ac_exeext conftest.$ac_ext
26841LIBS=$ac_check_lib_save_LIBS
26842fi
26843{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26844echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26845if test $ac_cv_lib_elf_elf_begin = yes; then
26846  cat >>confdefs.h <<_ACEOF
26847#define HAVE_LIBELF 1
26848_ACEOF
26849
26850  LIBS="-lelf $LIBS"
26851
26852fi
26853
26854
26855{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
26856echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26857if test "${ac_cv_lib_m_sin+set}" = set; then
26858  echo $ECHO_N "(cached) $ECHO_C" >&6
26859else
26860  ac_check_lib_save_LIBS=$LIBS
26861LIBS="-lm  $LIBS"
26862cat >conftest.$ac_ext <<_ACEOF
26863/* confdefs.h.  */
26864_ACEOF
26865cat confdefs.h >>conftest.$ac_ext
26866cat >>conftest.$ac_ext <<_ACEOF
26867/* end confdefs.h.  */
26868
26869/* Override any GCC internal prototype to avoid an error.
26870   Use char because int might match the return type of a GCC
26871   builtin and then its argument prototype would still apply.  */
26872#ifdef __cplusplus
26873extern "C"
26874#endif
26875char sin ();
26876int
26877main ()
26878{
26879return sin ();
26880  ;
26881  return 0;
26882}
26883_ACEOF
26884rm -f conftest.$ac_objext conftest$ac_exeext
26885if { (ac_try="$ac_link"
26886case "(($ac_try" in
26887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26888  *) ac_try_echo=$ac_try;;
26889esac
26890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26891  (eval "$ac_link") 2>conftest.er1
26892  ac_status=$?
26893  grep -v '^ *+' conftest.er1 >conftest.err
26894  rm -f conftest.er1
26895  cat conftest.err >&5
26896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26897  (exit $ac_status); } &&
26898	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26899  { (case "(($ac_try" in
26900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26901  *) ac_try_echo=$ac_try;;
26902esac
26903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26904  (eval "$ac_try") 2>&5
26905  ac_status=$?
26906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26907  (exit $ac_status); }; } &&
26908	 { ac_try='test -s conftest$ac_exeext'
26909  { (case "(($ac_try" in
26910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26911  *) ac_try_echo=$ac_try;;
26912esac
26913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26914  (eval "$ac_try") 2>&5
26915  ac_status=$?
26916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917  (exit $ac_status); }; }; then
26918  ac_cv_lib_m_sin=yes
26919else
26920  echo "$as_me: failed program was:" >&5
26921sed 's/^/| /' conftest.$ac_ext >&5
26922
26923	ac_cv_lib_m_sin=no
26924fi
26925
26926rm -f core conftest.err conftest.$ac_objext \
26927      conftest$ac_exeext conftest.$ac_ext
26928LIBS=$ac_check_lib_save_LIBS
26929fi
26930{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26931echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
26932if test $ac_cv_lib_m_sin = yes; then
26933  cat >>confdefs.h <<_ACEOF
26934#define HAVE_LIBM 1
26935_ACEOF
26936
26937  LIBS="-lm $LIBS"
26938
26939fi
26940
26941if test "$llvm_cv_os_type" = "MingW" ; then
26942
26943{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26944echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
26945if test "${ac_cv_lib_imagehlp_main+set}" = set; then
26946  echo $ECHO_N "(cached) $ECHO_C" >&6
26947else
26948  ac_check_lib_save_LIBS=$LIBS
26949LIBS="-limagehlp  $LIBS"
26950cat >conftest.$ac_ext <<_ACEOF
26951/* confdefs.h.  */
26952_ACEOF
26953cat confdefs.h >>conftest.$ac_ext
26954cat >>conftest.$ac_ext <<_ACEOF
26955/* end confdefs.h.  */
26956
26957
26958int
26959main ()
26960{
26961return main ();
26962  ;
26963  return 0;
26964}
26965_ACEOF
26966rm -f conftest.$ac_objext conftest$ac_exeext
26967if { (ac_try="$ac_link"
26968case "(($ac_try" in
26969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26970  *) ac_try_echo=$ac_try;;
26971esac
26972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26973  (eval "$ac_link") 2>conftest.er1
26974  ac_status=$?
26975  grep -v '^ *+' conftest.er1 >conftest.err
26976  rm -f conftest.er1
26977  cat conftest.err >&5
26978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979  (exit $ac_status); } &&
26980	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26981  { (case "(($ac_try" in
26982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26983  *) ac_try_echo=$ac_try;;
26984esac
26985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26986  (eval "$ac_try") 2>&5
26987  ac_status=$?
26988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989  (exit $ac_status); }; } &&
26990	 { ac_try='test -s conftest$ac_exeext'
26991  { (case "(($ac_try" in
26992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26993  *) ac_try_echo=$ac_try;;
26994esac
26995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26996  (eval "$ac_try") 2>&5
26997  ac_status=$?
26998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999  (exit $ac_status); }; }; then
27000  ac_cv_lib_imagehlp_main=yes
27001else
27002  echo "$as_me: failed program was:" >&5
27003sed 's/^/| /' conftest.$ac_ext >&5
27004
27005	ac_cv_lib_imagehlp_main=no
27006fi
27007
27008rm -f core conftest.err conftest.$ac_objext \
27009      conftest$ac_exeext conftest.$ac_ext
27010LIBS=$ac_check_lib_save_LIBS
27011fi
27012{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27013echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27014if test $ac_cv_lib_imagehlp_main = yes; then
27015  cat >>confdefs.h <<_ACEOF
27016#define HAVE_LIBIMAGEHLP 1
27017_ACEOF
27018
27019  LIBS="-limagehlp $LIBS"
27020
27021fi
27022
27023
27024{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27025echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27026if test "${ac_cv_lib_psapi_main+set}" = set; then
27027  echo $ECHO_N "(cached) $ECHO_C" >&6
27028else
27029  ac_check_lib_save_LIBS=$LIBS
27030LIBS="-lpsapi  $LIBS"
27031cat >conftest.$ac_ext <<_ACEOF
27032/* confdefs.h.  */
27033_ACEOF
27034cat confdefs.h >>conftest.$ac_ext
27035cat >>conftest.$ac_ext <<_ACEOF
27036/* end confdefs.h.  */
27037
27038
27039int
27040main ()
27041{
27042return main ();
27043  ;
27044  return 0;
27045}
27046_ACEOF
27047rm -f conftest.$ac_objext conftest$ac_exeext
27048if { (ac_try="$ac_link"
27049case "(($ac_try" in
27050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27051  *) ac_try_echo=$ac_try;;
27052esac
27053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27054  (eval "$ac_link") 2>conftest.er1
27055  ac_status=$?
27056  grep -v '^ *+' conftest.er1 >conftest.err
27057  rm -f conftest.er1
27058  cat conftest.err >&5
27059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060  (exit $ac_status); } &&
27061	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27062  { (case "(($ac_try" in
27063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27064  *) ac_try_echo=$ac_try;;
27065esac
27066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27067  (eval "$ac_try") 2>&5
27068  ac_status=$?
27069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27070  (exit $ac_status); }; } &&
27071	 { ac_try='test -s conftest$ac_exeext'
27072  { (case "(($ac_try" in
27073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27074  *) ac_try_echo=$ac_try;;
27075esac
27076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27077  (eval "$ac_try") 2>&5
27078  ac_status=$?
27079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27080  (exit $ac_status); }; }; then
27081  ac_cv_lib_psapi_main=yes
27082else
27083  echo "$as_me: failed program was:" >&5
27084sed 's/^/| /' conftest.$ac_ext >&5
27085
27086	ac_cv_lib_psapi_main=no
27087fi
27088
27089rm -f core conftest.err conftest.$ac_objext \
27090      conftest$ac_exeext conftest.$ac_ext
27091LIBS=$ac_check_lib_save_LIBS
27092fi
27093{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27094echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27095if test $ac_cv_lib_psapi_main = yes; then
27096  cat >>confdefs.h <<_ACEOF
27097#define HAVE_LIBPSAPI 1
27098_ACEOF
27099
27100  LIBS="-lpsapi $LIBS"
27101
27102fi
27103
27104fi
27105
27106{ echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27107echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27108if test "${ac_cv_search_lt_dlopen+set}" = set; then
27109  echo $ECHO_N "(cached) $ECHO_C" >&6
27110else
27111  ac_func_search_save_LIBS=$LIBS
27112cat >conftest.$ac_ext <<_ACEOF
27113/* confdefs.h.  */
27114_ACEOF
27115cat confdefs.h >>conftest.$ac_ext
27116cat >>conftest.$ac_ext <<_ACEOF
27117/* end confdefs.h.  */
27118
27119/* Override any GCC internal prototype to avoid an error.
27120   Use char because int might match the return type of a GCC
27121   builtin and then its argument prototype would still apply.  */
27122#ifdef __cplusplus
27123extern "C"
27124#endif
27125char lt_dlopen ();
27126int
27127main ()
27128{
27129return lt_dlopen ();
27130  ;
27131  return 0;
27132}
27133_ACEOF
27134for ac_lib in '' ltdl; do
27135  if test -z "$ac_lib"; then
27136    ac_res="none required"
27137  else
27138    ac_res=-l$ac_lib
27139    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27140  fi
27141  rm -f conftest.$ac_objext conftest$ac_exeext
27142if { (ac_try="$ac_link"
27143case "(($ac_try" in
27144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27145  *) ac_try_echo=$ac_try;;
27146esac
27147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27148  (eval "$ac_link") 2>conftest.er1
27149  ac_status=$?
27150  grep -v '^ *+' conftest.er1 >conftest.err
27151  rm -f conftest.er1
27152  cat conftest.err >&5
27153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154  (exit $ac_status); } &&
27155	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27156  { (case "(($ac_try" in
27157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27158  *) ac_try_echo=$ac_try;;
27159esac
27160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27161  (eval "$ac_try") 2>&5
27162  ac_status=$?
27163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27164  (exit $ac_status); }; } &&
27165	 { ac_try='test -s conftest$ac_exeext'
27166  { (case "(($ac_try" in
27167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27168  *) ac_try_echo=$ac_try;;
27169esac
27170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27171  (eval "$ac_try") 2>&5
27172  ac_status=$?
27173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27174  (exit $ac_status); }; }; then
27175  ac_cv_search_lt_dlopen=$ac_res
27176else
27177  echo "$as_me: failed program was:" >&5
27178sed 's/^/| /' conftest.$ac_ext >&5
27179
27180
27181fi
27182
27183rm -f core conftest.err conftest.$ac_objext \
27184      conftest$ac_exeext
27185  if test "${ac_cv_search_lt_dlopen+set}" = set; then
27186  break
27187fi
27188done
27189if test "${ac_cv_search_lt_dlopen+set}" = set; then
27190  :
27191else
27192  ac_cv_search_lt_dlopen=no
27193fi
27194rm conftest.$ac_ext
27195LIBS=$ac_func_search_save_LIBS
27196fi
27197{ echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27198echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27199ac_res=$ac_cv_search_lt_dlopen
27200if test "$ac_res" != no; then
27201  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27202
27203cat >>confdefs.h <<\_ACEOF
27204#define HAVE_LT_DLOPEN 1
27205_ACEOF
27206
27207else
27208  { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27209                           not be available" >&5
27210echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27211                           not be available" >&2;}
27212fi
27213
27214
27215{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27216echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27217if test "${ac_cv_search_dlopen+set}" = set; then
27218  echo $ECHO_N "(cached) $ECHO_C" >&6
27219else
27220  ac_func_search_save_LIBS=$LIBS
27221cat >conftest.$ac_ext <<_ACEOF
27222/* confdefs.h.  */
27223_ACEOF
27224cat confdefs.h >>conftest.$ac_ext
27225cat >>conftest.$ac_ext <<_ACEOF
27226/* end confdefs.h.  */
27227
27228/* Override any GCC internal prototype to avoid an error.
27229   Use char because int might match the return type of a GCC
27230   builtin and then its argument prototype would still apply.  */
27231#ifdef __cplusplus
27232extern "C"
27233#endif
27234char dlopen ();
27235int
27236main ()
27237{
27238return dlopen ();
27239  ;
27240  return 0;
27241}
27242_ACEOF
27243for ac_lib in '' dl; do
27244  if test -z "$ac_lib"; then
27245    ac_res="none required"
27246  else
27247    ac_res=-l$ac_lib
27248    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27249  fi
27250  rm -f conftest.$ac_objext conftest$ac_exeext
27251if { (ac_try="$ac_link"
27252case "(($ac_try" in
27253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27254  *) ac_try_echo=$ac_try;;
27255esac
27256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27257  (eval "$ac_link") 2>conftest.er1
27258  ac_status=$?
27259  grep -v '^ *+' conftest.er1 >conftest.err
27260  rm -f conftest.er1
27261  cat conftest.err >&5
27262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263  (exit $ac_status); } &&
27264	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27265  { (case "(($ac_try" in
27266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27267  *) ac_try_echo=$ac_try;;
27268esac
27269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27270  (eval "$ac_try") 2>&5
27271  ac_status=$?
27272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273  (exit $ac_status); }; } &&
27274	 { ac_try='test -s conftest$ac_exeext'
27275  { (case "(($ac_try" in
27276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27277  *) ac_try_echo=$ac_try;;
27278esac
27279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27280  (eval "$ac_try") 2>&5
27281  ac_status=$?
27282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27283  (exit $ac_status); }; }; then
27284  ac_cv_search_dlopen=$ac_res
27285else
27286  echo "$as_me: failed program was:" >&5
27287sed 's/^/| /' conftest.$ac_ext >&5
27288
27289
27290fi
27291
27292rm -f core conftest.err conftest.$ac_objext \
27293      conftest$ac_exeext
27294  if test "${ac_cv_search_dlopen+set}" = set; then
27295  break
27296fi
27297done
27298if test "${ac_cv_search_dlopen+set}" = set; then
27299  :
27300else
27301  ac_cv_search_dlopen=no
27302fi
27303rm conftest.$ac_ext
27304LIBS=$ac_func_search_save_LIBS
27305fi
27306{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27307echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27308ac_res=$ac_cv_search_dlopen
27309if test "$ac_res" != no; then
27310  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27311
27312cat >>confdefs.h <<\_ACEOF
27313#define HAVE_DLOPEN 1
27314_ACEOF
27315
27316else
27317  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27318echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27319fi
27320
27321
27322{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27323echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27324if test "${ac_cv_search_mallinfo+set}" = set; then
27325  echo $ECHO_N "(cached) $ECHO_C" >&6
27326else
27327  ac_func_search_save_LIBS=$LIBS
27328cat >conftest.$ac_ext <<_ACEOF
27329/* confdefs.h.  */
27330_ACEOF
27331cat confdefs.h >>conftest.$ac_ext
27332cat >>conftest.$ac_ext <<_ACEOF
27333/* end confdefs.h.  */
27334
27335/* Override any GCC internal prototype to avoid an error.
27336   Use char because int might match the return type of a GCC
27337   builtin and then its argument prototype would still apply.  */
27338#ifdef __cplusplus
27339extern "C"
27340#endif
27341char mallinfo ();
27342int
27343main ()
27344{
27345return mallinfo ();
27346  ;
27347  return 0;
27348}
27349_ACEOF
27350for ac_lib in '' malloc; do
27351  if test -z "$ac_lib"; then
27352    ac_res="none required"
27353  else
27354    ac_res=-l$ac_lib
27355    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27356  fi
27357  rm -f conftest.$ac_objext conftest$ac_exeext
27358if { (ac_try="$ac_link"
27359case "(($ac_try" in
27360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27361  *) ac_try_echo=$ac_try;;
27362esac
27363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27364  (eval "$ac_link") 2>conftest.er1
27365  ac_status=$?
27366  grep -v '^ *+' conftest.er1 >conftest.err
27367  rm -f conftest.er1
27368  cat conftest.err >&5
27369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27370  (exit $ac_status); } &&
27371	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27372  { (case "(($ac_try" in
27373  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27374  *) ac_try_echo=$ac_try;;
27375esac
27376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27377  (eval "$ac_try") 2>&5
27378  ac_status=$?
27379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380  (exit $ac_status); }; } &&
27381	 { ac_try='test -s conftest$ac_exeext'
27382  { (case "(($ac_try" in
27383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27384  *) ac_try_echo=$ac_try;;
27385esac
27386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27387  (eval "$ac_try") 2>&5
27388  ac_status=$?
27389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390  (exit $ac_status); }; }; then
27391  ac_cv_search_mallinfo=$ac_res
27392else
27393  echo "$as_me: failed program was:" >&5
27394sed 's/^/| /' conftest.$ac_ext >&5
27395
27396
27397fi
27398
27399rm -f core conftest.err conftest.$ac_objext \
27400      conftest$ac_exeext
27401  if test "${ac_cv_search_mallinfo+set}" = set; then
27402  break
27403fi
27404done
27405if test "${ac_cv_search_mallinfo+set}" = set; then
27406  :
27407else
27408  ac_cv_search_mallinfo=no
27409fi
27410rm conftest.$ac_ext
27411LIBS=$ac_func_search_save_LIBS
27412fi
27413{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27414echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27415ac_res=$ac_cv_search_mallinfo
27416if test "$ac_res" != no; then
27417  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27418
27419cat >>confdefs.h <<\_ACEOF
27420#define HAVE_MALLINFO 1
27421_ACEOF
27422
27423fi
27424
27425
27426if test "$ENABLE_THREADS" -eq 1 ; then
27427
27428{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27429echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27430if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27431  echo $ECHO_N "(cached) $ECHO_C" >&6
27432else
27433  ac_check_lib_save_LIBS=$LIBS
27434LIBS="-lpthread  $LIBS"
27435cat >conftest.$ac_ext <<_ACEOF
27436/* confdefs.h.  */
27437_ACEOF
27438cat confdefs.h >>conftest.$ac_ext
27439cat >>conftest.$ac_ext <<_ACEOF
27440/* end confdefs.h.  */
27441
27442/* Override any GCC internal prototype to avoid an error.
27443   Use char because int might match the return type of a GCC
27444   builtin and then its argument prototype would still apply.  */
27445#ifdef __cplusplus
27446extern "C"
27447#endif
27448char pthread_mutex_init ();
27449int
27450main ()
27451{
27452return pthread_mutex_init ();
27453  ;
27454  return 0;
27455}
27456_ACEOF
27457rm -f conftest.$ac_objext conftest$ac_exeext
27458if { (ac_try="$ac_link"
27459case "(($ac_try" in
27460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27461  *) ac_try_echo=$ac_try;;
27462esac
27463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27464  (eval "$ac_link") 2>conftest.er1
27465  ac_status=$?
27466  grep -v '^ *+' conftest.er1 >conftest.err
27467  rm -f conftest.er1
27468  cat conftest.err >&5
27469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470  (exit $ac_status); } &&
27471	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27472  { (case "(($ac_try" in
27473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27474  *) ac_try_echo=$ac_try;;
27475esac
27476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27477  (eval "$ac_try") 2>&5
27478  ac_status=$?
27479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480  (exit $ac_status); }; } &&
27481	 { ac_try='test -s conftest$ac_exeext'
27482  { (case "(($ac_try" in
27483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27484  *) ac_try_echo=$ac_try;;
27485esac
27486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27487  (eval "$ac_try") 2>&5
27488  ac_status=$?
27489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27490  (exit $ac_status); }; }; then
27491  ac_cv_lib_pthread_pthread_mutex_init=yes
27492else
27493  echo "$as_me: failed program was:" >&5
27494sed 's/^/| /' conftest.$ac_ext >&5
27495
27496	ac_cv_lib_pthread_pthread_mutex_init=no
27497fi
27498
27499rm -f core conftest.err conftest.$ac_objext \
27500      conftest$ac_exeext conftest.$ac_ext
27501LIBS=$ac_check_lib_save_LIBS
27502fi
27503{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27504echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27505if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27506  cat >>confdefs.h <<_ACEOF
27507#define HAVE_LIBPTHREAD 1
27508_ACEOF
27509
27510  LIBS="-lpthread $LIBS"
27511
27512fi
27513
27514  { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27515echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27516if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27517  echo $ECHO_N "(cached) $ECHO_C" >&6
27518else
27519  ac_func_search_save_LIBS=$LIBS
27520cat >conftest.$ac_ext <<_ACEOF
27521/* confdefs.h.  */
27522_ACEOF
27523cat confdefs.h >>conftest.$ac_ext
27524cat >>conftest.$ac_ext <<_ACEOF
27525/* end confdefs.h.  */
27526
27527/* Override any GCC internal prototype to avoid an error.
27528   Use char because int might match the return type of a GCC
27529   builtin and then its argument prototype would still apply.  */
27530#ifdef __cplusplus
27531extern "C"
27532#endif
27533char pthread_mutex_lock ();
27534int
27535main ()
27536{
27537return pthread_mutex_lock ();
27538  ;
27539  return 0;
27540}
27541_ACEOF
27542for ac_lib in '' pthread; do
27543  if test -z "$ac_lib"; then
27544    ac_res="none required"
27545  else
27546    ac_res=-l$ac_lib
27547    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27548  fi
27549  rm -f conftest.$ac_objext conftest$ac_exeext
27550if { (ac_try="$ac_link"
27551case "(($ac_try" in
27552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27553  *) ac_try_echo=$ac_try;;
27554esac
27555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27556  (eval "$ac_link") 2>conftest.er1
27557  ac_status=$?
27558  grep -v '^ *+' conftest.er1 >conftest.err
27559  rm -f conftest.er1
27560  cat conftest.err >&5
27561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562  (exit $ac_status); } &&
27563	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27564  { (case "(($ac_try" in
27565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27566  *) ac_try_echo=$ac_try;;
27567esac
27568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27569  (eval "$ac_try") 2>&5
27570  ac_status=$?
27571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572  (exit $ac_status); }; } &&
27573	 { ac_try='test -s conftest$ac_exeext'
27574  { (case "(($ac_try" in
27575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27576  *) ac_try_echo=$ac_try;;
27577esac
27578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27579  (eval "$ac_try") 2>&5
27580  ac_status=$?
27581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27582  (exit $ac_status); }; }; then
27583  ac_cv_search_pthread_mutex_lock=$ac_res
27584else
27585  echo "$as_me: failed program was:" >&5
27586sed 's/^/| /' conftest.$ac_ext >&5
27587
27588
27589fi
27590
27591rm -f core conftest.err conftest.$ac_objext \
27592      conftest$ac_exeext
27593  if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27594  break
27595fi
27596done
27597if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27598  :
27599else
27600  ac_cv_search_pthread_mutex_lock=no
27601fi
27602rm conftest.$ac_ext
27603LIBS=$ac_func_search_save_LIBS
27604fi
27605{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27606echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27607ac_res=$ac_cv_search_pthread_mutex_lock
27608if test "$ac_res" != no; then
27609  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27610
27611cat >>confdefs.h <<\_ACEOF
27612#define HAVE_PTHREAD_MUTEX_LOCK 1
27613_ACEOF
27614
27615fi
27616
27617fi
27618
27619
27620# Check whether --with-udis86 was given.
27621if test "${with_udis86+set}" = set; then
27622  withval=$with_udis86;
27623      USE_UDIS86=1
27624
27625      case "$withval" in
27626        /usr/lib|yes) ;;
27627        *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27628      esac
27629
27630{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27631echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27632if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27633  echo $ECHO_N "(cached) $ECHO_C" >&6
27634else
27635  ac_check_lib_save_LIBS=$LIBS
27636LIBS="-ludis86  $LIBS"
27637cat >conftest.$ac_ext <<_ACEOF
27638/* confdefs.h.  */
27639_ACEOF
27640cat confdefs.h >>conftest.$ac_ext
27641cat >>conftest.$ac_ext <<_ACEOF
27642/* end confdefs.h.  */
27643
27644/* Override any GCC internal prototype to avoid an error.
27645   Use char because int might match the return type of a GCC
27646   builtin and then its argument prototype would still apply.  */
27647#ifdef __cplusplus
27648extern "C"
27649#endif
27650char ud_init ();
27651int
27652main ()
27653{
27654return ud_init ();
27655  ;
27656  return 0;
27657}
27658_ACEOF
27659rm -f conftest.$ac_objext conftest$ac_exeext
27660if { (ac_try="$ac_link"
27661case "(($ac_try" in
27662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27663  *) ac_try_echo=$ac_try;;
27664esac
27665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27666  (eval "$ac_link") 2>conftest.er1
27667  ac_status=$?
27668  grep -v '^ *+' conftest.er1 >conftest.err
27669  rm -f conftest.er1
27670  cat conftest.err >&5
27671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672  (exit $ac_status); } &&
27673	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27674  { (case "(($ac_try" in
27675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27676  *) ac_try_echo=$ac_try;;
27677esac
27678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27679  (eval "$ac_try") 2>&5
27680  ac_status=$?
27681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27682  (exit $ac_status); }; } &&
27683	 { ac_try='test -s conftest$ac_exeext'
27684  { (case "(($ac_try" in
27685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27686  *) ac_try_echo=$ac_try;;
27687esac
27688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27689  (eval "$ac_try") 2>&5
27690  ac_status=$?
27691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27692  (exit $ac_status); }; }; then
27693  ac_cv_lib_udis86_ud_init=yes
27694else
27695  echo "$as_me: failed program was:" >&5
27696sed 's/^/| /' conftest.$ac_ext >&5
27697
27698	ac_cv_lib_udis86_ud_init=no
27699fi
27700
27701rm -f core conftest.err conftest.$ac_objext \
27702      conftest$ac_exeext conftest.$ac_ext
27703LIBS=$ac_check_lib_save_LIBS
27704fi
27705{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27706echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27707if test $ac_cv_lib_udis86_ud_init = yes; then
27708  cat >>confdefs.h <<_ACEOF
27709#define HAVE_LIBUDIS86 1
27710_ACEOF
27711
27712  LIBS="-ludis86 $LIBS"
27713
27714else
27715
27716        echo "Error! You need to have libudis86 around."
27717        exit -1
27718
27719fi
27720
27721
27722else
27723  USE_UDIS86=0
27724
27725fi
27726
27727
27728cat >>confdefs.h <<_ACEOF
27729#define USE_UDIS86 $USE_UDIS86
27730_ACEOF
27731
27732
27733
27734
27735
27736
27737
27738
27739ac_header_dirent=no
27740for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27741  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27742{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27743echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27744if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27745  echo $ECHO_N "(cached) $ECHO_C" >&6
27746else
27747  cat >conftest.$ac_ext <<_ACEOF
27748/* confdefs.h.  */
27749_ACEOF
27750cat confdefs.h >>conftest.$ac_ext
27751cat >>conftest.$ac_ext <<_ACEOF
27752/* end confdefs.h.  */
27753#include <sys/types.h>
27754#include <$ac_hdr>
27755
27756int
27757main ()
27758{
27759if ((DIR *) 0)
27760return 0;
27761  ;
27762  return 0;
27763}
27764_ACEOF
27765rm -f conftest.$ac_objext
27766if { (ac_try="$ac_compile"
27767case "(($ac_try" in
27768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27769  *) ac_try_echo=$ac_try;;
27770esac
27771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27772  (eval "$ac_compile") 2>conftest.er1
27773  ac_status=$?
27774  grep -v '^ *+' conftest.er1 >conftest.err
27775  rm -f conftest.er1
27776  cat conftest.err >&5
27777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27778  (exit $ac_status); } &&
27779	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27780  { (case "(($ac_try" in
27781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27782  *) ac_try_echo=$ac_try;;
27783esac
27784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27785  (eval "$ac_try") 2>&5
27786  ac_status=$?
27787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788  (exit $ac_status); }; } &&
27789	 { ac_try='test -s conftest.$ac_objext'
27790  { (case "(($ac_try" in
27791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27792  *) ac_try_echo=$ac_try;;
27793esac
27794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27795  (eval "$ac_try") 2>&5
27796  ac_status=$?
27797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27798  (exit $ac_status); }; }; then
27799  eval "$as_ac_Header=yes"
27800else
27801  echo "$as_me: failed program was:" >&5
27802sed 's/^/| /' conftest.$ac_ext >&5
27803
27804	eval "$as_ac_Header=no"
27805fi
27806
27807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27808fi
27809ac_res=`eval echo '${'$as_ac_Header'}'`
27810	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27811echo "${ECHO_T}$ac_res" >&6; }
27812if test `eval echo '${'$as_ac_Header'}'` = yes; then
27813  cat >>confdefs.h <<_ACEOF
27814#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27815_ACEOF
27816
27817ac_header_dirent=$ac_hdr; break
27818fi
27819
27820done
27821# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27822if test $ac_header_dirent = dirent.h; then
27823  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27824echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27825if test "${ac_cv_search_opendir+set}" = set; then
27826  echo $ECHO_N "(cached) $ECHO_C" >&6
27827else
27828  ac_func_search_save_LIBS=$LIBS
27829cat >conftest.$ac_ext <<_ACEOF
27830/* confdefs.h.  */
27831_ACEOF
27832cat confdefs.h >>conftest.$ac_ext
27833cat >>conftest.$ac_ext <<_ACEOF
27834/* end confdefs.h.  */
27835
27836/* Override any GCC internal prototype to avoid an error.
27837   Use char because int might match the return type of a GCC
27838   builtin and then its argument prototype would still apply.  */
27839#ifdef __cplusplus
27840extern "C"
27841#endif
27842char opendir ();
27843int
27844main ()
27845{
27846return opendir ();
27847  ;
27848  return 0;
27849}
27850_ACEOF
27851for ac_lib in '' dir; do
27852  if test -z "$ac_lib"; then
27853    ac_res="none required"
27854  else
27855    ac_res=-l$ac_lib
27856    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27857  fi
27858  rm -f conftest.$ac_objext conftest$ac_exeext
27859if { (ac_try="$ac_link"
27860case "(($ac_try" in
27861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27862  *) ac_try_echo=$ac_try;;
27863esac
27864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27865  (eval "$ac_link") 2>conftest.er1
27866  ac_status=$?
27867  grep -v '^ *+' conftest.er1 >conftest.err
27868  rm -f conftest.er1
27869  cat conftest.err >&5
27870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27871  (exit $ac_status); } &&
27872	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27873  { (case "(($ac_try" in
27874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27875  *) ac_try_echo=$ac_try;;
27876esac
27877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27878  (eval "$ac_try") 2>&5
27879  ac_status=$?
27880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881  (exit $ac_status); }; } &&
27882	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27892  ac_cv_search_opendir=$ac_res
27893else
27894  echo "$as_me: failed program was:" >&5
27895sed 's/^/| /' conftest.$ac_ext >&5
27896
27897
27898fi
27899
27900rm -f core conftest.err conftest.$ac_objext \
27901      conftest$ac_exeext
27902  if test "${ac_cv_search_opendir+set}" = set; then
27903  break
27904fi
27905done
27906if test "${ac_cv_search_opendir+set}" = set; then
27907  :
27908else
27909  ac_cv_search_opendir=no
27910fi
27911rm conftest.$ac_ext
27912LIBS=$ac_func_search_save_LIBS
27913fi
27914{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27915echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27916ac_res=$ac_cv_search_opendir
27917if test "$ac_res" != no; then
27918  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27919
27920fi
27921
27922else
27923  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27924echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27925if test "${ac_cv_search_opendir+set}" = set; then
27926  echo $ECHO_N "(cached) $ECHO_C" >&6
27927else
27928  ac_func_search_save_LIBS=$LIBS
27929cat >conftest.$ac_ext <<_ACEOF
27930/* confdefs.h.  */
27931_ACEOF
27932cat confdefs.h >>conftest.$ac_ext
27933cat >>conftest.$ac_ext <<_ACEOF
27934/* end confdefs.h.  */
27935
27936/* Override any GCC internal prototype to avoid an error.
27937   Use char because int might match the return type of a GCC
27938   builtin and then its argument prototype would still apply.  */
27939#ifdef __cplusplus
27940extern "C"
27941#endif
27942char opendir ();
27943int
27944main ()
27945{
27946return opendir ();
27947  ;
27948  return 0;
27949}
27950_ACEOF
27951for ac_lib in '' x; do
27952  if test -z "$ac_lib"; then
27953    ac_res="none required"
27954  else
27955    ac_res=-l$ac_lib
27956    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27957  fi
27958  rm -f conftest.$ac_objext conftest$ac_exeext
27959if { (ac_try="$ac_link"
27960case "(($ac_try" in
27961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27962  *) ac_try_echo=$ac_try;;
27963esac
27964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27965  (eval "$ac_link") 2>conftest.er1
27966  ac_status=$?
27967  grep -v '^ *+' conftest.er1 >conftest.err
27968  rm -f conftest.er1
27969  cat conftest.err >&5
27970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27971  (exit $ac_status); } &&
27972	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27973  { (case "(($ac_try" in
27974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27975  *) ac_try_echo=$ac_try;;
27976esac
27977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27978  (eval "$ac_try") 2>&5
27979  ac_status=$?
27980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981  (exit $ac_status); }; } &&
27982	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27992  ac_cv_search_opendir=$ac_res
27993else
27994  echo "$as_me: failed program was:" >&5
27995sed 's/^/| /' conftest.$ac_ext >&5
27996
27997
27998fi
27999
28000rm -f core conftest.err conftest.$ac_objext \
28001      conftest$ac_exeext
28002  if test "${ac_cv_search_opendir+set}" = set; then
28003  break
28004fi
28005done
28006if test "${ac_cv_search_opendir+set}" = set; then
28007  :
28008else
28009  ac_cv_search_opendir=no
28010fi
28011rm conftest.$ac_ext
28012LIBS=$ac_func_search_save_LIBS
28013fi
28014{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28015echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28016ac_res=$ac_cv_search_opendir
28017if test "$ac_res" != no; then
28018  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28019
28020fi
28021
28022fi
28023
28024{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28025echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28026if test "${ac_cv_header_mmap_anon+set}" = set; then
28027  echo $ECHO_N "(cached) $ECHO_C" >&6
28028else
28029   ac_ext=c
28030ac_cpp='$CPP $CPPFLAGS'
28031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28033ac_compiler_gnu=$ac_cv_c_compiler_gnu
28034
28035  cat >conftest.$ac_ext <<_ACEOF
28036/* confdefs.h.  */
28037_ACEOF
28038cat confdefs.h >>conftest.$ac_ext
28039cat >>conftest.$ac_ext <<_ACEOF
28040/* end confdefs.h.  */
28041#include <sys/mman.h>
28042#include <unistd.h>
28043#include <fcntl.h>
28044int
28045main ()
28046{
28047mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28048  ;
28049  return 0;
28050}
28051_ACEOF
28052rm -f conftest.$ac_objext
28053if { (ac_try="$ac_compile"
28054case "(($ac_try" in
28055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28056  *) ac_try_echo=$ac_try;;
28057esac
28058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28059  (eval "$ac_compile") 2>conftest.er1
28060  ac_status=$?
28061  grep -v '^ *+' conftest.er1 >conftest.err
28062  rm -f conftest.er1
28063  cat conftest.err >&5
28064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065  (exit $ac_status); } &&
28066	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28067  { (case "(($ac_try" in
28068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28069  *) ac_try_echo=$ac_try;;
28070esac
28071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28072  (eval "$ac_try") 2>&5
28073  ac_status=$?
28074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075  (exit $ac_status); }; } &&
28076	 { ac_try='test -s conftest.$ac_objext'
28077  { (case "(($ac_try" in
28078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28079  *) ac_try_echo=$ac_try;;
28080esac
28081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28082  (eval "$ac_try") 2>&5
28083  ac_status=$?
28084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085  (exit $ac_status); }; }; then
28086  ac_cv_header_mmap_anon=yes
28087else
28088  echo "$as_me: failed program was:" >&5
28089sed 's/^/| /' conftest.$ac_ext >&5
28090
28091	ac_cv_header_mmap_anon=no
28092fi
28093
28094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28095  ac_ext=c
28096ac_cpp='$CPP $CPPFLAGS'
28097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28099ac_compiler_gnu=$ac_cv_c_compiler_gnu
28100
28101
28102fi
28103{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28104echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28105if test "$ac_cv_header_mmap_anon" = yes; then
28106
28107cat >>confdefs.h <<\_ACEOF
28108#define HAVE_MMAP_ANONYMOUS 1
28109_ACEOF
28110
28111fi
28112
28113{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28114echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28115if test "${ac_cv_header_stat_broken+set}" = set; then
28116  echo $ECHO_N "(cached) $ECHO_C" >&6
28117else
28118  cat >conftest.$ac_ext <<_ACEOF
28119/* confdefs.h.  */
28120_ACEOF
28121cat confdefs.h >>conftest.$ac_ext
28122cat >>conftest.$ac_ext <<_ACEOF
28123/* end confdefs.h.  */
28124#include <sys/types.h>
28125#include <sys/stat.h>
28126
28127#if defined S_ISBLK && defined S_IFDIR
28128# if S_ISBLK (S_IFDIR)
28129You lose.
28130# endif
28131#endif
28132
28133#if defined S_ISBLK && defined S_IFCHR
28134# if S_ISBLK (S_IFCHR)
28135You lose.
28136# endif
28137#endif
28138
28139#if defined S_ISLNK && defined S_IFREG
28140# if S_ISLNK (S_IFREG)
28141You lose.
28142# endif
28143#endif
28144
28145#if defined S_ISSOCK && defined S_IFREG
28146# if S_ISSOCK (S_IFREG)
28147You lose.
28148# endif
28149#endif
28150
28151_ACEOF
28152if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28153  $EGREP "You lose" >/dev/null 2>&1; then
28154  ac_cv_header_stat_broken=yes
28155else
28156  ac_cv_header_stat_broken=no
28157fi
28158rm -f conftest*
28159
28160fi
28161{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28162echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28163if test $ac_cv_header_stat_broken = yes; then
28164
28165cat >>confdefs.h <<\_ACEOF
28166#define STAT_MACROS_BROKEN 1
28167_ACEOF
28168
28169fi
28170
28171{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28172echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28173if test "${ac_cv_header_stdc+set}" = set; then
28174  echo $ECHO_N "(cached) $ECHO_C" >&6
28175else
28176  cat >conftest.$ac_ext <<_ACEOF
28177/* confdefs.h.  */
28178_ACEOF
28179cat confdefs.h >>conftest.$ac_ext
28180cat >>conftest.$ac_ext <<_ACEOF
28181/* end confdefs.h.  */
28182#include <stdlib.h>
28183#include <stdarg.h>
28184#include <string.h>
28185#include <float.h>
28186
28187int
28188main ()
28189{
28190
28191  ;
28192  return 0;
28193}
28194_ACEOF
28195rm -f conftest.$ac_objext
28196if { (ac_try="$ac_compile"
28197case "(($ac_try" in
28198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28199  *) ac_try_echo=$ac_try;;
28200esac
28201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28202  (eval "$ac_compile") 2>conftest.er1
28203  ac_status=$?
28204  grep -v '^ *+' conftest.er1 >conftest.err
28205  rm -f conftest.er1
28206  cat conftest.err >&5
28207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28208  (exit $ac_status); } &&
28209	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28210  { (case "(($ac_try" in
28211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28212  *) ac_try_echo=$ac_try;;
28213esac
28214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28215  (eval "$ac_try") 2>&5
28216  ac_status=$?
28217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218  (exit $ac_status); }; } &&
28219	 { ac_try='test -s conftest.$ac_objext'
28220  { (case "(($ac_try" in
28221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28222  *) ac_try_echo=$ac_try;;
28223esac
28224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28225  (eval "$ac_try") 2>&5
28226  ac_status=$?
28227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28228  (exit $ac_status); }; }; then
28229  ac_cv_header_stdc=yes
28230else
28231  echo "$as_me: failed program was:" >&5
28232sed 's/^/| /' conftest.$ac_ext >&5
28233
28234	ac_cv_header_stdc=no
28235fi
28236
28237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28238
28239if test $ac_cv_header_stdc = yes; then
28240  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28241  cat >conftest.$ac_ext <<_ACEOF
28242/* confdefs.h.  */
28243_ACEOF
28244cat confdefs.h >>conftest.$ac_ext
28245cat >>conftest.$ac_ext <<_ACEOF
28246/* end confdefs.h.  */
28247#include <string.h>
28248
28249_ACEOF
28250if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28251  $EGREP "memchr" >/dev/null 2>&1; then
28252  :
28253else
28254  ac_cv_header_stdc=no
28255fi
28256rm -f conftest*
28257
28258fi
28259
28260if test $ac_cv_header_stdc = yes; then
28261  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28262  cat >conftest.$ac_ext <<_ACEOF
28263/* confdefs.h.  */
28264_ACEOF
28265cat confdefs.h >>conftest.$ac_ext
28266cat >>conftest.$ac_ext <<_ACEOF
28267/* end confdefs.h.  */
28268#include <stdlib.h>
28269
28270_ACEOF
28271if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28272  $EGREP "free" >/dev/null 2>&1; then
28273  :
28274else
28275  ac_cv_header_stdc=no
28276fi
28277rm -f conftest*
28278
28279fi
28280
28281if test $ac_cv_header_stdc = yes; then
28282  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28283  if test "$cross_compiling" = yes; then
28284  :
28285else
28286  cat >conftest.$ac_ext <<_ACEOF
28287/* confdefs.h.  */
28288_ACEOF
28289cat confdefs.h >>conftest.$ac_ext
28290cat >>conftest.$ac_ext <<_ACEOF
28291/* end confdefs.h.  */
28292#include <ctype.h>
28293#include <stdlib.h>
28294#if ((' ' & 0x0FF) == 0x020)
28295# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28296# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28297#else
28298# define ISLOWER(c) \
28299		   (('a' <= (c) && (c) <= 'i') \
28300		     || ('j' <= (c) && (c) <= 'r') \
28301		     || ('s' <= (c) && (c) <= 'z'))
28302# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28303#endif
28304
28305#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28306int
28307main ()
28308{
28309  int i;
28310  for (i = 0; i < 256; i++)
28311    if (XOR (islower (i), ISLOWER (i))
28312	|| toupper (i) != TOUPPER (i))
28313      return 2;
28314  return 0;
28315}
28316_ACEOF
28317rm -f conftest$ac_exeext
28318if { (ac_try="$ac_link"
28319case "(($ac_try" in
28320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28321  *) ac_try_echo=$ac_try;;
28322esac
28323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28324  (eval "$ac_link") 2>&5
28325  ac_status=$?
28326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28327  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28328  { (case "(($ac_try" in
28329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28330  *) ac_try_echo=$ac_try;;
28331esac
28332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28333  (eval "$ac_try") 2>&5
28334  ac_status=$?
28335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336  (exit $ac_status); }; }; then
28337  :
28338else
28339  echo "$as_me: program exited with status $ac_status" >&5
28340echo "$as_me: failed program was:" >&5
28341sed 's/^/| /' conftest.$ac_ext >&5
28342
28343( exit $ac_status )
28344ac_cv_header_stdc=no
28345fi
28346rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28347fi
28348
28349
28350fi
28351fi
28352{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28353echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28354if test $ac_cv_header_stdc = yes; then
28355
28356cat >>confdefs.h <<\_ACEOF
28357#define STDC_HEADERS 1
28358_ACEOF
28359
28360fi
28361
28362{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28363echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28364if test "${ac_cv_header_sys_wait_h+set}" = set; then
28365  echo $ECHO_N "(cached) $ECHO_C" >&6
28366else
28367  cat >conftest.$ac_ext <<_ACEOF
28368/* confdefs.h.  */
28369_ACEOF
28370cat confdefs.h >>conftest.$ac_ext
28371cat >>conftest.$ac_ext <<_ACEOF
28372/* end confdefs.h.  */
28373#include <sys/types.h>
28374#include <sys/wait.h>
28375#ifndef WEXITSTATUS
28376# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28377#endif
28378#ifndef WIFEXITED
28379# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28380#endif
28381
28382int
28383main ()
28384{
28385  int s;
28386  wait (&s);
28387  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28388  ;
28389  return 0;
28390}
28391_ACEOF
28392rm -f conftest.$ac_objext
28393if { (ac_try="$ac_compile"
28394case "(($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_compile") 2>conftest.er1
28400  ac_status=$?
28401  grep -v '^ *+' conftest.er1 >conftest.err
28402  rm -f conftest.er1
28403  cat conftest.err >&5
28404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405  (exit $ac_status); } &&
28406	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28407  { (case "(($ac_try" in
28408  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28409  *) ac_try_echo=$ac_try;;
28410esac
28411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28412  (eval "$ac_try") 2>&5
28413  ac_status=$?
28414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415  (exit $ac_status); }; } &&
28416	 { ac_try='test -s conftest.$ac_objext'
28417  { (case "(($ac_try" in
28418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28419  *) ac_try_echo=$ac_try;;
28420esac
28421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28422  (eval "$ac_try") 2>&5
28423  ac_status=$?
28424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425  (exit $ac_status); }; }; then
28426  ac_cv_header_sys_wait_h=yes
28427else
28428  echo "$as_me: failed program was:" >&5
28429sed 's/^/| /' conftest.$ac_ext >&5
28430
28431	ac_cv_header_sys_wait_h=no
28432fi
28433
28434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28435fi
28436{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28437echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28438if test $ac_cv_header_sys_wait_h = yes; then
28439
28440cat >>confdefs.h <<\_ACEOF
28441#define HAVE_SYS_WAIT_H 1
28442_ACEOF
28443
28444fi
28445
28446{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28447echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28448if test "${ac_cv_header_time+set}" = set; then
28449  echo $ECHO_N "(cached) $ECHO_C" >&6
28450else
28451  cat >conftest.$ac_ext <<_ACEOF
28452/* confdefs.h.  */
28453_ACEOF
28454cat confdefs.h >>conftest.$ac_ext
28455cat >>conftest.$ac_ext <<_ACEOF
28456/* end confdefs.h.  */
28457#include <sys/types.h>
28458#include <sys/time.h>
28459#include <time.h>
28460
28461int
28462main ()
28463{
28464if ((struct tm *) 0)
28465return 0;
28466  ;
28467  return 0;
28468}
28469_ACEOF
28470rm -f conftest.$ac_objext
28471if { (ac_try="$ac_compile"
28472case "(($ac_try" in
28473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28474  *) ac_try_echo=$ac_try;;
28475esac
28476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28477  (eval "$ac_compile") 2>conftest.er1
28478  ac_status=$?
28479  grep -v '^ *+' conftest.er1 >conftest.err
28480  rm -f conftest.er1
28481  cat conftest.err >&5
28482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28483  (exit $ac_status); } &&
28484	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28485  { (case "(($ac_try" in
28486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28487  *) ac_try_echo=$ac_try;;
28488esac
28489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28490  (eval "$ac_try") 2>&5
28491  ac_status=$?
28492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28493  (exit $ac_status); }; } &&
28494	 { ac_try='test -s conftest.$ac_objext'
28495  { (case "(($ac_try" in
28496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28497  *) ac_try_echo=$ac_try;;
28498esac
28499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28500  (eval "$ac_try") 2>&5
28501  ac_status=$?
28502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503  (exit $ac_status); }; }; then
28504  ac_cv_header_time=yes
28505else
28506  echo "$as_me: failed program was:" >&5
28507sed 's/^/| /' conftest.$ac_ext >&5
28508
28509	ac_cv_header_time=no
28510fi
28511
28512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28513fi
28514{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28515echo "${ECHO_T}$ac_cv_header_time" >&6; }
28516if test $ac_cv_header_time = yes; then
28517
28518cat >>confdefs.h <<\_ACEOF
28519#define TIME_WITH_SYS_TIME 1
28520_ACEOF
28521
28522fi
28523
28524
28525
28526
28527
28528
28529
28530
28531for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28532do
28533as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28534if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28535  { echo "$as_me:$LINENO: checking for $ac_header" >&5
28536echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28537if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28538  echo $ECHO_N "(cached) $ECHO_C" >&6
28539fi
28540ac_res=`eval echo '${'$as_ac_Header'}'`
28541	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28542echo "${ECHO_T}$ac_res" >&6; }
28543else
28544  # Is the header compilable?
28545{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28546echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28547cat >conftest.$ac_ext <<_ACEOF
28548/* confdefs.h.  */
28549_ACEOF
28550cat confdefs.h >>conftest.$ac_ext
28551cat >>conftest.$ac_ext <<_ACEOF
28552/* end confdefs.h.  */
28553$ac_includes_default
28554#include <$ac_header>
28555_ACEOF
28556rm -f conftest.$ac_objext
28557if { (ac_try="$ac_compile"
28558case "(($ac_try" in
28559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28560  *) ac_try_echo=$ac_try;;
28561esac
28562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28563  (eval "$ac_compile") 2>conftest.er1
28564  ac_status=$?
28565  grep -v '^ *+' conftest.er1 >conftest.err
28566  rm -f conftest.er1
28567  cat conftest.err >&5
28568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28569  (exit $ac_status); } &&
28570	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28571  { (case "(($ac_try" in
28572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28573  *) ac_try_echo=$ac_try;;
28574esac
28575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28576  (eval "$ac_try") 2>&5
28577  ac_status=$?
28578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28579  (exit $ac_status); }; } &&
28580	 { ac_try='test -s conftest.$ac_objext'
28581  { (case "(($ac_try" in
28582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28583  *) ac_try_echo=$ac_try;;
28584esac
28585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28586  (eval "$ac_try") 2>&5
28587  ac_status=$?
28588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28589  (exit $ac_status); }; }; then
28590  ac_header_compiler=yes
28591else
28592  echo "$as_me: failed program was:" >&5
28593sed 's/^/| /' conftest.$ac_ext >&5
28594
28595	ac_header_compiler=no
28596fi
28597
28598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28599{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28600echo "${ECHO_T}$ac_header_compiler" >&6; }
28601
28602# Is the header present?
28603{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28604echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28605cat >conftest.$ac_ext <<_ACEOF
28606/* confdefs.h.  */
28607_ACEOF
28608cat confdefs.h >>conftest.$ac_ext
28609cat >>conftest.$ac_ext <<_ACEOF
28610/* end confdefs.h.  */
28611#include <$ac_header>
28612_ACEOF
28613if { (ac_try="$ac_cpp conftest.$ac_ext"
28614case "(($ac_try" in
28615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28616  *) ac_try_echo=$ac_try;;
28617esac
28618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28619  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28620  ac_status=$?
28621  grep -v '^ *+' conftest.er1 >conftest.err
28622  rm -f conftest.er1
28623  cat conftest.err >&5
28624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625  (exit $ac_status); } >/dev/null; then
28626  if test -s conftest.err; then
28627    ac_cpp_err=$ac_c_preproc_warn_flag
28628    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28629  else
28630    ac_cpp_err=
28631  fi
28632else
28633  ac_cpp_err=yes
28634fi
28635if test -z "$ac_cpp_err"; then
28636  ac_header_preproc=yes
28637else
28638  echo "$as_me: failed program was:" >&5
28639sed 's/^/| /' conftest.$ac_ext >&5
28640
28641  ac_header_preproc=no
28642fi
28643
28644rm -f conftest.err conftest.$ac_ext
28645{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28646echo "${ECHO_T}$ac_header_preproc" >&6; }
28647
28648# So?  What about this header?
28649case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28650  yes:no: )
28651    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28652echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28653    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28654echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28655    ac_header_preproc=yes
28656    ;;
28657  no:yes:* )
28658    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28659echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28660    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28661echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28662    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28663echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28664    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28665echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28666    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28667echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28668    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28669echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28670    ( cat <<\_ASBOX
28671## ----------------------------------- ##
28672## Report this to llvmbugs@cs.uiuc.edu ##
28673## ----------------------------------- ##
28674_ASBOX
28675     ) | sed "s/^/$as_me: WARNING:     /" >&2
28676    ;;
28677esac
28678{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28679echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28680if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28681  echo $ECHO_N "(cached) $ECHO_C" >&6
28682else
28683  eval "$as_ac_Header=\$ac_header_preproc"
28684fi
28685ac_res=`eval echo '${'$as_ac_Header'}'`
28686	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28687echo "${ECHO_T}$ac_res" >&6; }
28688
28689fi
28690if test `eval echo '${'$as_ac_Header'}'` = yes; then
28691  cat >>confdefs.h <<_ACEOF
28692#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28693_ACEOF
28694
28695fi
28696
28697done
28698
28699
28700
28701
28702
28703
28704
28705for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28706do
28707as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28708if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28709  { echo "$as_me:$LINENO: checking for $ac_header" >&5
28710echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28711if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28712  echo $ECHO_N "(cached) $ECHO_C" >&6
28713fi
28714ac_res=`eval echo '${'$as_ac_Header'}'`
28715	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28716echo "${ECHO_T}$ac_res" >&6; }
28717else
28718  # Is the header compilable?
28719{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28720echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28721cat >conftest.$ac_ext <<_ACEOF
28722/* confdefs.h.  */
28723_ACEOF
28724cat confdefs.h >>conftest.$ac_ext
28725cat >>conftest.$ac_ext <<_ACEOF
28726/* end confdefs.h.  */
28727$ac_includes_default
28728#include <$ac_header>
28729_ACEOF
28730rm -f conftest.$ac_objext
28731if { (ac_try="$ac_compile"
28732case "(($ac_try" in
28733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28734  *) ac_try_echo=$ac_try;;
28735esac
28736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28737  (eval "$ac_compile") 2>conftest.er1
28738  ac_status=$?
28739  grep -v '^ *+' conftest.er1 >conftest.err
28740  rm -f conftest.er1
28741  cat conftest.err >&5
28742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28743  (exit $ac_status); } &&
28744	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28745  { (case "(($ac_try" in
28746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28747  *) ac_try_echo=$ac_try;;
28748esac
28749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28750  (eval "$ac_try") 2>&5
28751  ac_status=$?
28752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753  (exit $ac_status); }; } &&
28754	 { ac_try='test -s conftest.$ac_objext'
28755  { (case "(($ac_try" in
28756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28757  *) ac_try_echo=$ac_try;;
28758esac
28759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28760  (eval "$ac_try") 2>&5
28761  ac_status=$?
28762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763  (exit $ac_status); }; }; then
28764  ac_header_compiler=yes
28765else
28766  echo "$as_me: failed program was:" >&5
28767sed 's/^/| /' conftest.$ac_ext >&5
28768
28769	ac_header_compiler=no
28770fi
28771
28772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28773{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28774echo "${ECHO_T}$ac_header_compiler" >&6; }
28775
28776# Is the header present?
28777{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28778echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28779cat >conftest.$ac_ext <<_ACEOF
28780/* confdefs.h.  */
28781_ACEOF
28782cat confdefs.h >>conftest.$ac_ext
28783cat >>conftest.$ac_ext <<_ACEOF
28784/* end confdefs.h.  */
28785#include <$ac_header>
28786_ACEOF
28787if { (ac_try="$ac_cpp conftest.$ac_ext"
28788case "(($ac_try" in
28789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28790  *) ac_try_echo=$ac_try;;
28791esac
28792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28793  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28794  ac_status=$?
28795  grep -v '^ *+' conftest.er1 >conftest.err
28796  rm -f conftest.er1
28797  cat conftest.err >&5
28798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28799  (exit $ac_status); } >/dev/null; then
28800  if test -s conftest.err; then
28801    ac_cpp_err=$ac_c_preproc_warn_flag
28802    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28803  else
28804    ac_cpp_err=
28805  fi
28806else
28807  ac_cpp_err=yes
28808fi
28809if test -z "$ac_cpp_err"; then
28810  ac_header_preproc=yes
28811else
28812  echo "$as_me: failed program was:" >&5
28813sed 's/^/| /' conftest.$ac_ext >&5
28814
28815  ac_header_preproc=no
28816fi
28817
28818rm -f conftest.err conftest.$ac_ext
28819{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28820echo "${ECHO_T}$ac_header_preproc" >&6; }
28821
28822# So?  What about this header?
28823case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28824  yes:no: )
28825    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28826echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28827    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28828echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28829    ac_header_preproc=yes
28830    ;;
28831  no:yes:* )
28832    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28833echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28834    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28835echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28836    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28837echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28838    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28839echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28840    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28841echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28842    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28843echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28844    ( cat <<\_ASBOX
28845## ----------------------------------- ##
28846## Report this to llvmbugs@cs.uiuc.edu ##
28847## ----------------------------------- ##
28848_ASBOX
28849     ) | sed "s/^/$as_me: WARNING:     /" >&2
28850    ;;
28851esac
28852{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28853echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28854if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28855  echo $ECHO_N "(cached) $ECHO_C" >&6
28856else
28857  eval "$as_ac_Header=\$ac_header_preproc"
28858fi
28859ac_res=`eval echo '${'$as_ac_Header'}'`
28860	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28861echo "${ECHO_T}$ac_res" >&6; }
28862
28863fi
28864if test `eval echo '${'$as_ac_Header'}'` = yes; then
28865  cat >>confdefs.h <<_ACEOF
28866#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28867_ACEOF
28868
28869fi
28870
28871done
28872
28873
28874
28875
28876
28877
28878for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
28879do
28880as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28881if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28882  { echo "$as_me:$LINENO: checking for $ac_header" >&5
28883echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28884if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28885  echo $ECHO_N "(cached) $ECHO_C" >&6
28886fi
28887ac_res=`eval echo '${'$as_ac_Header'}'`
28888	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28889echo "${ECHO_T}$ac_res" >&6; }
28890else
28891  # Is the header compilable?
28892{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28893echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28894cat >conftest.$ac_ext <<_ACEOF
28895/* confdefs.h.  */
28896_ACEOF
28897cat confdefs.h >>conftest.$ac_ext
28898cat >>conftest.$ac_ext <<_ACEOF
28899/* end confdefs.h.  */
28900$ac_includes_default
28901#include <$ac_header>
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_header_compiler=yes
28938else
28939  echo "$as_me: failed program was:" >&5
28940sed 's/^/| /' conftest.$ac_ext >&5
28941
28942	ac_header_compiler=no
28943fi
28944
28945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28946{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28947echo "${ECHO_T}$ac_header_compiler" >&6; }
28948
28949# Is the header present?
28950{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28951echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28952cat >conftest.$ac_ext <<_ACEOF
28953/* confdefs.h.  */
28954_ACEOF
28955cat confdefs.h >>conftest.$ac_ext
28956cat >>conftest.$ac_ext <<_ACEOF
28957/* end confdefs.h.  */
28958#include <$ac_header>
28959_ACEOF
28960if { (ac_try="$ac_cpp conftest.$ac_ext"
28961case "(($ac_try" in
28962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28963  *) ac_try_echo=$ac_try;;
28964esac
28965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28966  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28967  ac_status=$?
28968  grep -v '^ *+' conftest.er1 >conftest.err
28969  rm -f conftest.er1
28970  cat conftest.err >&5
28971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28972  (exit $ac_status); } >/dev/null; then
28973  if test -s conftest.err; then
28974    ac_cpp_err=$ac_c_preproc_warn_flag
28975    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28976  else
28977    ac_cpp_err=
28978  fi
28979else
28980  ac_cpp_err=yes
28981fi
28982if test -z "$ac_cpp_err"; then
28983  ac_header_preproc=yes
28984else
28985  echo "$as_me: failed program was:" >&5
28986sed 's/^/| /' conftest.$ac_ext >&5
28987
28988  ac_header_preproc=no
28989fi
28990
28991rm -f conftest.err conftest.$ac_ext
28992{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28993echo "${ECHO_T}$ac_header_preproc" >&6; }
28994
28995# So?  What about this header?
28996case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28997  yes:no: )
28998    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28999echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29000    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29001echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29002    ac_header_preproc=yes
29003    ;;
29004  no:yes:* )
29005    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29006echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29007    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29008echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29009    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29010echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29011    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29012echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29013    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29014echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29015    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29016echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29017    ( cat <<\_ASBOX
29018## ----------------------------------- ##
29019## Report this to llvmbugs@cs.uiuc.edu ##
29020## ----------------------------------- ##
29021_ASBOX
29022     ) | sed "s/^/$as_me: WARNING:     /" >&2
29023    ;;
29024esac
29025{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29028  echo $ECHO_N "(cached) $ECHO_C" >&6
29029else
29030  eval "$as_ac_Header=\$ac_header_preproc"
29031fi
29032ac_res=`eval echo '${'$as_ac_Header'}'`
29033	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29034echo "${ECHO_T}$ac_res" >&6; }
29035
29036fi
29037if test `eval echo '${'$as_ac_Header'}'` = yes; then
29038  cat >>confdefs.h <<_ACEOF
29039#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29040_ACEOF
29041
29042fi
29043
29044done
29045
29046
29047
29048
29049for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29050do
29051as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29052if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29053  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29055if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29056  echo $ECHO_N "(cached) $ECHO_C" >&6
29057fi
29058ac_res=`eval echo '${'$as_ac_Header'}'`
29059	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29060echo "${ECHO_T}$ac_res" >&6; }
29061else
29062  # Is the header compilable?
29063{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29064echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29065cat >conftest.$ac_ext <<_ACEOF
29066/* confdefs.h.  */
29067_ACEOF
29068cat confdefs.h >>conftest.$ac_ext
29069cat >>conftest.$ac_ext <<_ACEOF
29070/* end confdefs.h.  */
29071$ac_includes_default
29072#include <$ac_header>
29073_ACEOF
29074rm -f conftest.$ac_objext
29075if { (ac_try="$ac_compile"
29076case "(($ac_try" in
29077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29078  *) ac_try_echo=$ac_try;;
29079esac
29080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29081  (eval "$ac_compile") 2>conftest.er1
29082  ac_status=$?
29083  grep -v '^ *+' conftest.er1 >conftest.err
29084  rm -f conftest.er1
29085  cat conftest.err >&5
29086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29087  (exit $ac_status); } &&
29088	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29089  { (case "(($ac_try" in
29090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29091  *) ac_try_echo=$ac_try;;
29092esac
29093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29094  (eval "$ac_try") 2>&5
29095  ac_status=$?
29096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29097  (exit $ac_status); }; } &&
29098	 { ac_try='test -s conftest.$ac_objext'
29099  { (case "(($ac_try" in
29100  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29101  *) ac_try_echo=$ac_try;;
29102esac
29103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29104  (eval "$ac_try") 2>&5
29105  ac_status=$?
29106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29107  (exit $ac_status); }; }; then
29108  ac_header_compiler=yes
29109else
29110  echo "$as_me: failed program was:" >&5
29111sed 's/^/| /' conftest.$ac_ext >&5
29112
29113	ac_header_compiler=no
29114fi
29115
29116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29117{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29118echo "${ECHO_T}$ac_header_compiler" >&6; }
29119
29120# Is the header present?
29121{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29122echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29123cat >conftest.$ac_ext <<_ACEOF
29124/* confdefs.h.  */
29125_ACEOF
29126cat confdefs.h >>conftest.$ac_ext
29127cat >>conftest.$ac_ext <<_ACEOF
29128/* end confdefs.h.  */
29129#include <$ac_header>
29130_ACEOF
29131if { (ac_try="$ac_cpp conftest.$ac_ext"
29132case "(($ac_try" in
29133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29134  *) ac_try_echo=$ac_try;;
29135esac
29136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29137  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29138  ac_status=$?
29139  grep -v '^ *+' conftest.er1 >conftest.err
29140  rm -f conftest.er1
29141  cat conftest.err >&5
29142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29143  (exit $ac_status); } >/dev/null; then
29144  if test -s conftest.err; then
29145    ac_cpp_err=$ac_c_preproc_warn_flag
29146    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29147  else
29148    ac_cpp_err=
29149  fi
29150else
29151  ac_cpp_err=yes
29152fi
29153if test -z "$ac_cpp_err"; then
29154  ac_header_preproc=yes
29155else
29156  echo "$as_me: failed program was:" >&5
29157sed 's/^/| /' conftest.$ac_ext >&5
29158
29159  ac_header_preproc=no
29160fi
29161
29162rm -f conftest.err conftest.$ac_ext
29163{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29164echo "${ECHO_T}$ac_header_preproc" >&6; }
29165
29166# So?  What about this header?
29167case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29168  yes:no: )
29169    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29170echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29171    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29172echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29173    ac_header_preproc=yes
29174    ;;
29175  no:yes:* )
29176    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29177echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29178    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29179echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29180    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29181echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29182    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29183echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29184    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29185echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29186    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29187echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29188    ( cat <<\_ASBOX
29189## ----------------------------------- ##
29190## Report this to llvmbugs@cs.uiuc.edu ##
29191## ----------------------------------- ##
29192_ASBOX
29193     ) | sed "s/^/$as_me: WARNING:     /" >&2
29194    ;;
29195esac
29196{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29197echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29198if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29199  echo $ECHO_N "(cached) $ECHO_C" >&6
29200else
29201  eval "$as_ac_Header=\$ac_header_preproc"
29202fi
29203ac_res=`eval echo '${'$as_ac_Header'}'`
29204	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29205echo "${ECHO_T}$ac_res" >&6; }
29206
29207fi
29208if test `eval echo '${'$as_ac_Header'}'` = yes; then
29209  cat >>confdefs.h <<_ACEOF
29210#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29211_ACEOF
29212
29213fi
29214
29215done
29216
29217if test "$ENABLE_THREADS" -eq 1 ; then
29218  if test "${ac_cv_header_pthread_h+set}" = set; then
29219  { echo "$as_me:$LINENO: checking for pthread.h" >&5
29220echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29221if test "${ac_cv_header_pthread_h+set}" = set; then
29222  echo $ECHO_N "(cached) $ECHO_C" >&6
29223fi
29224{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29225echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29226else
29227  # Is the header compilable?
29228{ echo "$as_me:$LINENO: checking pthread.h usability" >&5
29229echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
29230cat >conftest.$ac_ext <<_ACEOF
29231/* confdefs.h.  */
29232_ACEOF
29233cat confdefs.h >>conftest.$ac_ext
29234cat >>conftest.$ac_ext <<_ACEOF
29235/* end confdefs.h.  */
29236$ac_includes_default
29237#include <pthread.h>
29238_ACEOF
29239rm -f conftest.$ac_objext
29240if { (ac_try="$ac_compile"
29241case "(($ac_try" in
29242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29243  *) ac_try_echo=$ac_try;;
29244esac
29245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29246  (eval "$ac_compile") 2>conftest.er1
29247  ac_status=$?
29248  grep -v '^ *+' conftest.er1 >conftest.err
29249  rm -f conftest.er1
29250  cat conftest.err >&5
29251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29252  (exit $ac_status); } &&
29253	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29254  { (case "(($ac_try" in
29255  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29256  *) ac_try_echo=$ac_try;;
29257esac
29258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29259  (eval "$ac_try") 2>&5
29260  ac_status=$?
29261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29262  (exit $ac_status); }; } &&
29263	 { ac_try='test -s conftest.$ac_objext'
29264  { (case "(($ac_try" in
29265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29266  *) ac_try_echo=$ac_try;;
29267esac
29268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29269  (eval "$ac_try") 2>&5
29270  ac_status=$?
29271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272  (exit $ac_status); }; }; then
29273  ac_header_compiler=yes
29274else
29275  echo "$as_me: failed program was:" >&5
29276sed 's/^/| /' conftest.$ac_ext >&5
29277
29278	ac_header_compiler=no
29279fi
29280
29281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29282{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29283echo "${ECHO_T}$ac_header_compiler" >&6; }
29284
29285# Is the header present?
29286{ echo "$as_me:$LINENO: checking pthread.h presence" >&5
29287echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
29288cat >conftest.$ac_ext <<_ACEOF
29289/* confdefs.h.  */
29290_ACEOF
29291cat confdefs.h >>conftest.$ac_ext
29292cat >>conftest.$ac_ext <<_ACEOF
29293/* end confdefs.h.  */
29294#include <pthread.h>
29295_ACEOF
29296if { (ac_try="$ac_cpp conftest.$ac_ext"
29297case "(($ac_try" in
29298  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29299  *) ac_try_echo=$ac_try;;
29300esac
29301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29302  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29303  ac_status=$?
29304  grep -v '^ *+' conftest.er1 >conftest.err
29305  rm -f conftest.er1
29306  cat conftest.err >&5
29307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308  (exit $ac_status); } >/dev/null; then
29309  if test -s conftest.err; then
29310    ac_cpp_err=$ac_c_preproc_warn_flag
29311    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29312  else
29313    ac_cpp_err=
29314  fi
29315else
29316  ac_cpp_err=yes
29317fi
29318if test -z "$ac_cpp_err"; then
29319  ac_header_preproc=yes
29320else
29321  echo "$as_me: failed program was:" >&5
29322sed 's/^/| /' conftest.$ac_ext >&5
29323
29324  ac_header_preproc=no
29325fi
29326
29327rm -f conftest.err conftest.$ac_ext
29328{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29329echo "${ECHO_T}$ac_header_preproc" >&6; }
29330
29331# So?  What about this header?
29332case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29333  yes:no: )
29334    { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
29335echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29336    { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
29337echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
29338    ac_header_preproc=yes
29339    ;;
29340  no:yes:* )
29341    { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
29342echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
29343    { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
29344echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
29345    { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
29346echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
29347    { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
29348echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29349    { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
29350echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
29351    { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
29352echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
29353    ( cat <<\_ASBOX
29354## ----------------------------------- ##
29355## Report this to llvmbugs@cs.uiuc.edu ##
29356## ----------------------------------- ##
29357_ASBOX
29358     ) | sed "s/^/$as_me: WARNING:     /" >&2
29359    ;;
29360esac
29361{ echo "$as_me:$LINENO: checking for pthread.h" >&5
29362echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29363if test "${ac_cv_header_pthread_h+set}" = set; then
29364  echo $ECHO_N "(cached) $ECHO_C" >&6
29365else
29366  ac_cv_header_pthread_h=$ac_header_preproc
29367fi
29368{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29369echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29370
29371fi
29372if test $ac_cv_header_pthread_h = yes; then
29373  HAVE_PTHREAD=1
29374
29375else
29376  HAVE_PTHREAD=0
29377
29378fi
29379
29380
29381else
29382  HAVE_PTHREAD=0
29383
29384fi
29385
29386
29387
29388  { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29389echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29390if test "${ac_cv_huge_val_sanity+set}" = set; then
29391  echo $ECHO_N "(cached) $ECHO_C" >&6
29392else
29393
29394    ac_ext=cpp
29395ac_cpp='$CXXCPP $CPPFLAGS'
29396ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29397ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29398ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29399
29400    CXXFLAGS=-pedantic
29401    if test "$cross_compiling" = yes; then
29402  ac_cv_huge_val_sanity=yes
29403else
29404  cat >conftest.$ac_ext <<_ACEOF
29405/* confdefs.h.  */
29406_ACEOF
29407cat confdefs.h >>conftest.$ac_ext
29408cat >>conftest.$ac_ext <<_ACEOF
29409/* end confdefs.h.  */
29410#include <math.h>
29411int
29412main ()
29413{
29414double x = HUGE_VAL; return x != x;
29415  ;
29416  return 0;
29417}
29418_ACEOF
29419rm -f conftest$ac_exeext
29420if { (ac_try="$ac_link"
29421case "(($ac_try" in
29422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29423  *) ac_try_echo=$ac_try;;
29424esac
29425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29426  (eval "$ac_link") 2>&5
29427  ac_status=$?
29428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29430  { (case "(($ac_try" in
29431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29432  *) ac_try_echo=$ac_try;;
29433esac
29434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29435  (eval "$ac_try") 2>&5
29436  ac_status=$?
29437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29438  (exit $ac_status); }; }; then
29439  ac_cv_huge_val_sanity=yes
29440else
29441  echo "$as_me: program exited with status $ac_status" >&5
29442echo "$as_me: failed program was:" >&5
29443sed 's/^/| /' conftest.$ac_ext >&5
29444
29445( exit $ac_status )
29446ac_cv_huge_val_sanity=no
29447fi
29448rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29449fi
29450
29451
29452    ac_ext=c
29453ac_cpp='$CPP $CPPFLAGS'
29454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29456ac_compiler_gnu=$ac_cv_c_compiler_gnu
29457
29458
29459fi
29460{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29461echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29462  HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29463
29464
29465{ echo "$as_me:$LINENO: checking for pid_t" >&5
29466echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29467if test "${ac_cv_type_pid_t+set}" = set; then
29468  echo $ECHO_N "(cached) $ECHO_C" >&6
29469else
29470  cat >conftest.$ac_ext <<_ACEOF
29471/* confdefs.h.  */
29472_ACEOF
29473cat confdefs.h >>conftest.$ac_ext
29474cat >>conftest.$ac_ext <<_ACEOF
29475/* end confdefs.h.  */
29476$ac_includes_default
29477typedef pid_t ac__type_new_;
29478int
29479main ()
29480{
29481if ((ac__type_new_ *) 0)
29482  return 0;
29483if (sizeof (ac__type_new_))
29484  return 0;
29485  ;
29486  return 0;
29487}
29488_ACEOF
29489rm -f conftest.$ac_objext
29490if { (ac_try="$ac_compile"
29491case "(($ac_try" in
29492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29493  *) ac_try_echo=$ac_try;;
29494esac
29495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29496  (eval "$ac_compile") 2>conftest.er1
29497  ac_status=$?
29498  grep -v '^ *+' conftest.er1 >conftest.err
29499  rm -f conftest.er1
29500  cat conftest.err >&5
29501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29502  (exit $ac_status); } &&
29503	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29504  { (case "(($ac_try" in
29505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29506  *) ac_try_echo=$ac_try;;
29507esac
29508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29509  (eval "$ac_try") 2>&5
29510  ac_status=$?
29511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512  (exit $ac_status); }; } &&
29513	 { ac_try='test -s conftest.$ac_objext'
29514  { (case "(($ac_try" in
29515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29516  *) ac_try_echo=$ac_try;;
29517esac
29518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29519  (eval "$ac_try") 2>&5
29520  ac_status=$?
29521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522  (exit $ac_status); }; }; then
29523  ac_cv_type_pid_t=yes
29524else
29525  echo "$as_me: failed program was:" >&5
29526sed 's/^/| /' conftest.$ac_ext >&5
29527
29528	ac_cv_type_pid_t=no
29529fi
29530
29531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29532fi
29533{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29534echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29535if test $ac_cv_type_pid_t = yes; then
29536  :
29537else
29538
29539cat >>confdefs.h <<_ACEOF
29540#define pid_t int
29541_ACEOF
29542
29543fi
29544
29545{ echo "$as_me:$LINENO: checking for size_t" >&5
29546echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29547if test "${ac_cv_type_size_t+set}" = set; then
29548  echo $ECHO_N "(cached) $ECHO_C" >&6
29549else
29550  cat >conftest.$ac_ext <<_ACEOF
29551/* confdefs.h.  */
29552_ACEOF
29553cat confdefs.h >>conftest.$ac_ext
29554cat >>conftest.$ac_ext <<_ACEOF
29555/* end confdefs.h.  */
29556$ac_includes_default
29557typedef size_t ac__type_new_;
29558int
29559main ()
29560{
29561if ((ac__type_new_ *) 0)
29562  return 0;
29563if (sizeof (ac__type_new_))
29564  return 0;
29565  ;
29566  return 0;
29567}
29568_ACEOF
29569rm -f conftest.$ac_objext
29570if { (ac_try="$ac_compile"
29571case "(($ac_try" in
29572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29573  *) ac_try_echo=$ac_try;;
29574esac
29575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29576  (eval "$ac_compile") 2>conftest.er1
29577  ac_status=$?
29578  grep -v '^ *+' conftest.er1 >conftest.err
29579  rm -f conftest.er1
29580  cat conftest.err >&5
29581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29582  (exit $ac_status); } &&
29583	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29584  { (case "(($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_try") 2>&5
29590  ac_status=$?
29591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29592  (exit $ac_status); }; } &&
29593	 { ac_try='test -s conftest.$ac_objext'
29594  { (case "(($ac_try" in
29595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29596  *) ac_try_echo=$ac_try;;
29597esac
29598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29599  (eval "$ac_try") 2>&5
29600  ac_status=$?
29601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29602  (exit $ac_status); }; }; then
29603  ac_cv_type_size_t=yes
29604else
29605  echo "$as_me: failed program was:" >&5
29606sed 's/^/| /' conftest.$ac_ext >&5
29607
29608	ac_cv_type_size_t=no
29609fi
29610
29611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29612fi
29613{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29614echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29615if test $ac_cv_type_size_t = yes; then
29616  :
29617else
29618
29619cat >>confdefs.h <<_ACEOF
29620#define size_t unsigned int
29621_ACEOF
29622
29623fi
29624
29625{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29626echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29627if test "${ac_cv_type_signal+set}" = set; then
29628  echo $ECHO_N "(cached) $ECHO_C" >&6
29629else
29630  cat >conftest.$ac_ext <<_ACEOF
29631/* confdefs.h.  */
29632_ACEOF
29633cat confdefs.h >>conftest.$ac_ext
29634cat >>conftest.$ac_ext <<_ACEOF
29635/* end confdefs.h.  */
29636#include <sys/types.h>
29637#include <signal.h>
29638
29639int
29640main ()
29641{
29642return *(signal (0, 0)) (0) == 1;
29643  ;
29644  return 0;
29645}
29646_ACEOF
29647rm -f conftest.$ac_objext
29648if { (ac_try="$ac_compile"
29649case "(($ac_try" in
29650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29651  *) ac_try_echo=$ac_try;;
29652esac
29653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29654  (eval "$ac_compile") 2>conftest.er1
29655  ac_status=$?
29656  grep -v '^ *+' conftest.er1 >conftest.err
29657  rm -f conftest.er1
29658  cat conftest.err >&5
29659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660  (exit $ac_status); } &&
29661	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29662  { (case "(($ac_try" in
29663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29664  *) ac_try_echo=$ac_try;;
29665esac
29666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29667  (eval "$ac_try") 2>&5
29668  ac_status=$?
29669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670  (exit $ac_status); }; } &&
29671	 { ac_try='test -s conftest.$ac_objext'
29672  { (case "(($ac_try" in
29673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29674  *) ac_try_echo=$ac_try;;
29675esac
29676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29677  (eval "$ac_try") 2>&5
29678  ac_status=$?
29679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29680  (exit $ac_status); }; }; then
29681  ac_cv_type_signal=int
29682else
29683  echo "$as_me: failed program was:" >&5
29684sed 's/^/| /' conftest.$ac_ext >&5
29685
29686	ac_cv_type_signal=void
29687fi
29688
29689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29690fi
29691{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29692echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29693
29694cat >>confdefs.h <<_ACEOF
29695#define RETSIGTYPE $ac_cv_type_signal
29696_ACEOF
29697
29698
29699{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29700echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29701if test "${ac_cv_struct_tm+set}" = set; then
29702  echo $ECHO_N "(cached) $ECHO_C" >&6
29703else
29704  cat >conftest.$ac_ext <<_ACEOF
29705/* confdefs.h.  */
29706_ACEOF
29707cat confdefs.h >>conftest.$ac_ext
29708cat >>conftest.$ac_ext <<_ACEOF
29709/* end confdefs.h.  */
29710#include <sys/types.h>
29711#include <time.h>
29712
29713int
29714main ()
29715{
29716struct tm *tp; tp->tm_sec;
29717  ;
29718  return 0;
29719}
29720_ACEOF
29721rm -f conftest.$ac_objext
29722if { (ac_try="$ac_compile"
29723case "(($ac_try" in
29724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29725  *) ac_try_echo=$ac_try;;
29726esac
29727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29728  (eval "$ac_compile") 2>conftest.er1
29729  ac_status=$?
29730  grep -v '^ *+' conftest.er1 >conftest.err
29731  rm -f conftest.er1
29732  cat conftest.err >&5
29733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29734  (exit $ac_status); } &&
29735	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29736  { (case "(($ac_try" in
29737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29738  *) ac_try_echo=$ac_try;;
29739esac
29740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29741  (eval "$ac_try") 2>&5
29742  ac_status=$?
29743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29744  (exit $ac_status); }; } &&
29745	 { ac_try='test -s conftest.$ac_objext'
29746  { (case "(($ac_try" in
29747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29748  *) ac_try_echo=$ac_try;;
29749esac
29750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29751  (eval "$ac_try") 2>&5
29752  ac_status=$?
29753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29754  (exit $ac_status); }; }; then
29755  ac_cv_struct_tm=time.h
29756else
29757  echo "$as_me: failed program was:" >&5
29758sed 's/^/| /' conftest.$ac_ext >&5
29759
29760	ac_cv_struct_tm=sys/time.h
29761fi
29762
29763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29764fi
29765{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29766echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
29767if test $ac_cv_struct_tm = sys/time.h; then
29768
29769cat >>confdefs.h <<\_ACEOF
29770#define TM_IN_SYS_TIME 1
29771_ACEOF
29772
29773fi
29774
29775{ echo "$as_me:$LINENO: checking for int64_t" >&5
29776echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
29777if test "${ac_cv_type_int64_t+set}" = set; then
29778  echo $ECHO_N "(cached) $ECHO_C" >&6
29779else
29780  cat >conftest.$ac_ext <<_ACEOF
29781/* confdefs.h.  */
29782_ACEOF
29783cat confdefs.h >>conftest.$ac_ext
29784cat >>conftest.$ac_ext <<_ACEOF
29785/* end confdefs.h.  */
29786$ac_includes_default
29787typedef int64_t ac__type_new_;
29788int
29789main ()
29790{
29791if ((ac__type_new_ *) 0)
29792  return 0;
29793if (sizeof (ac__type_new_))
29794  return 0;
29795  ;
29796  return 0;
29797}
29798_ACEOF
29799rm -f conftest.$ac_objext
29800if { (ac_try="$ac_compile"
29801case "(($ac_try" in
29802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29803  *) ac_try_echo=$ac_try;;
29804esac
29805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29806  (eval "$ac_compile") 2>conftest.er1
29807  ac_status=$?
29808  grep -v '^ *+' conftest.er1 >conftest.err
29809  rm -f conftest.er1
29810  cat conftest.err >&5
29811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29812  (exit $ac_status); } &&
29813	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29814  { (case "(($ac_try" in
29815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29816  *) ac_try_echo=$ac_try;;
29817esac
29818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29819  (eval "$ac_try") 2>&5
29820  ac_status=$?
29821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822  (exit $ac_status); }; } &&
29823	 { ac_try='test -s conftest.$ac_objext'
29824  { (case "(($ac_try" in
29825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29826  *) ac_try_echo=$ac_try;;
29827esac
29828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29829  (eval "$ac_try") 2>&5
29830  ac_status=$?
29831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29832  (exit $ac_status); }; }; then
29833  ac_cv_type_int64_t=yes
29834else
29835  echo "$as_me: failed program was:" >&5
29836sed 's/^/| /' conftest.$ac_ext >&5
29837
29838	ac_cv_type_int64_t=no
29839fi
29840
29841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29842fi
29843{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29844echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
29845if test $ac_cv_type_int64_t = yes; then
29846
29847cat >>confdefs.h <<_ACEOF
29848#define HAVE_INT64_T 1
29849_ACEOF
29850
29851
29852else
29853  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29854echo "$as_me: error: Type int64_t required but not found" >&2;}
29855   { (exit 1); exit 1; }; }
29856fi
29857
29858{ echo "$as_me:$LINENO: checking for uint64_t" >&5
29859echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
29860if test "${ac_cv_type_uint64_t+set}" = set; then
29861  echo $ECHO_N "(cached) $ECHO_C" >&6
29862else
29863  cat >conftest.$ac_ext <<_ACEOF
29864/* confdefs.h.  */
29865_ACEOF
29866cat confdefs.h >>conftest.$ac_ext
29867cat >>conftest.$ac_ext <<_ACEOF
29868/* end confdefs.h.  */
29869$ac_includes_default
29870typedef uint64_t ac__type_new_;
29871int
29872main ()
29873{
29874if ((ac__type_new_ *) 0)
29875  return 0;
29876if (sizeof (ac__type_new_))
29877  return 0;
29878  ;
29879  return 0;
29880}
29881_ACEOF
29882rm -f conftest.$ac_objext
29883if { (ac_try="$ac_compile"
29884case "(($ac_try" in
29885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29886  *) ac_try_echo=$ac_try;;
29887esac
29888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29889  (eval "$ac_compile") 2>conftest.er1
29890  ac_status=$?
29891  grep -v '^ *+' conftest.er1 >conftest.err
29892  rm -f conftest.er1
29893  cat conftest.err >&5
29894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895  (exit $ac_status); } &&
29896	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29897  { (case "(($ac_try" in
29898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29899  *) ac_try_echo=$ac_try;;
29900esac
29901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29902  (eval "$ac_try") 2>&5
29903  ac_status=$?
29904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29905  (exit $ac_status); }; } &&
29906	 { ac_try='test -s conftest.$ac_objext'
29907  { (case "(($ac_try" in
29908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29909  *) ac_try_echo=$ac_try;;
29910esac
29911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29912  (eval "$ac_try") 2>&5
29913  ac_status=$?
29914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29915  (exit $ac_status); }; }; then
29916  ac_cv_type_uint64_t=yes
29917else
29918  echo "$as_me: failed program was:" >&5
29919sed 's/^/| /' conftest.$ac_ext >&5
29920
29921	ac_cv_type_uint64_t=no
29922fi
29923
29924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29925fi
29926{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29927echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
29928if test $ac_cv_type_uint64_t = yes; then
29929
29930cat >>confdefs.h <<_ACEOF
29931#define HAVE_UINT64_T 1
29932_ACEOF
29933
29934
29935else
29936  { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29937echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
29938if test "${ac_cv_type_u_int64_t+set}" = set; then
29939  echo $ECHO_N "(cached) $ECHO_C" >&6
29940else
29941  cat >conftest.$ac_ext <<_ACEOF
29942/* confdefs.h.  */
29943_ACEOF
29944cat confdefs.h >>conftest.$ac_ext
29945cat >>conftest.$ac_ext <<_ACEOF
29946/* end confdefs.h.  */
29947$ac_includes_default
29948typedef u_int64_t ac__type_new_;
29949int
29950main ()
29951{
29952if ((ac__type_new_ *) 0)
29953  return 0;
29954if (sizeof (ac__type_new_))
29955  return 0;
29956  ;
29957  return 0;
29958}
29959_ACEOF
29960rm -f conftest.$ac_objext
29961if { (ac_try="$ac_compile"
29962case "(($ac_try" in
29963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29964  *) ac_try_echo=$ac_try;;
29965esac
29966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29967  (eval "$ac_compile") 2>conftest.er1
29968  ac_status=$?
29969  grep -v '^ *+' conftest.er1 >conftest.err
29970  rm -f conftest.er1
29971  cat conftest.err >&5
29972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29973  (exit $ac_status); } &&
29974	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29975  { (case "(($ac_try" in
29976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29977  *) ac_try_echo=$ac_try;;
29978esac
29979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29980  (eval "$ac_try") 2>&5
29981  ac_status=$?
29982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983  (exit $ac_status); }; } &&
29984	 { ac_try='test -s conftest.$ac_objext'
29985  { (case "(($ac_try" in
29986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29987  *) ac_try_echo=$ac_try;;
29988esac
29989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29990  (eval "$ac_try") 2>&5
29991  ac_status=$?
29992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29993  (exit $ac_status); }; }; then
29994  ac_cv_type_u_int64_t=yes
29995else
29996  echo "$as_me: failed program was:" >&5
29997sed 's/^/| /' conftest.$ac_ext >&5
29998
29999	ac_cv_type_u_int64_t=no
30000fi
30001
30002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30003fi
30004{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30005echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30006if test $ac_cv_type_u_int64_t = yes; then
30007
30008cat >>confdefs.h <<_ACEOF
30009#define HAVE_U_INT64_T 1
30010_ACEOF
30011
30012
30013else
30014  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30015echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30016   { (exit 1); exit 1; }; }
30017fi
30018
30019fi
30020
30021
30022
30023
30024
30025
30026
30027
30028
30029
30030for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30031do
30032as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30033{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30034echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30035if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30036  echo $ECHO_N "(cached) $ECHO_C" >&6
30037else
30038  cat >conftest.$ac_ext <<_ACEOF
30039/* confdefs.h.  */
30040_ACEOF
30041cat confdefs.h >>conftest.$ac_ext
30042cat >>conftest.$ac_ext <<_ACEOF
30043/* end confdefs.h.  */
30044/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30045   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30046#define $ac_func innocuous_$ac_func
30047
30048/* System header to define __stub macros and hopefully few prototypes,
30049    which can conflict with char $ac_func (); below.
30050    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30051    <limits.h> exists even on freestanding compilers.  */
30052
30053#ifdef __STDC__
30054# include <limits.h>
30055#else
30056# include <assert.h>
30057#endif
30058
30059#undef $ac_func
30060
30061/* Override any GCC internal prototype to avoid an error.
30062   Use char because int might match the return type of a GCC
30063   builtin and then its argument prototype would still apply.  */
30064#ifdef __cplusplus
30065extern "C"
30066#endif
30067char $ac_func ();
30068/* The GNU C library defines this for functions which it implements
30069    to always fail with ENOSYS.  Some functions are actually named
30070    something starting with __ and the normal name is an alias.  */
30071#if defined __stub_$ac_func || defined __stub___$ac_func
30072choke me
30073#endif
30074
30075int
30076main ()
30077{
30078return $ac_func ();
30079  ;
30080  return 0;
30081}
30082_ACEOF
30083rm -f conftest.$ac_objext conftest$ac_exeext
30084if { (ac_try="$ac_link"
30085case "(($ac_try" in
30086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30087  *) ac_try_echo=$ac_try;;
30088esac
30089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30090  (eval "$ac_link") 2>conftest.er1
30091  ac_status=$?
30092  grep -v '^ *+' conftest.er1 >conftest.err
30093  rm -f conftest.er1
30094  cat conftest.err >&5
30095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30096  (exit $ac_status); } &&
30097	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30098  { (case "(($ac_try" in
30099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30100  *) ac_try_echo=$ac_try;;
30101esac
30102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30103  (eval "$ac_try") 2>&5
30104  ac_status=$?
30105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30106  (exit $ac_status); }; } &&
30107	 { ac_try='test -s conftest$ac_exeext'
30108  { (case "(($ac_try" in
30109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30110  *) ac_try_echo=$ac_try;;
30111esac
30112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30113  (eval "$ac_try") 2>&5
30114  ac_status=$?
30115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30116  (exit $ac_status); }; }; then
30117  eval "$as_ac_var=yes"
30118else
30119  echo "$as_me: failed program was:" >&5
30120sed 's/^/| /' conftest.$ac_ext >&5
30121
30122	eval "$as_ac_var=no"
30123fi
30124
30125rm -f core conftest.err conftest.$ac_objext \
30126      conftest$ac_exeext conftest.$ac_ext
30127fi
30128ac_res=`eval echo '${'$as_ac_var'}'`
30129	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30130echo "${ECHO_T}$ac_res" >&6; }
30131if test `eval echo '${'$as_ac_var'}'` = yes; then
30132  cat >>confdefs.h <<_ACEOF
30133#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30134_ACEOF
30135
30136fi
30137done
30138
30139
30140
30141
30142
30143
30144for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30145do
30146as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30147{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30148echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30149if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30150  echo $ECHO_N "(cached) $ECHO_C" >&6
30151else
30152  cat >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/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30159   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30160#define $ac_func innocuous_$ac_func
30161
30162/* System header to define __stub macros and hopefully few prototypes,
30163    which can conflict with char $ac_func (); below.
30164    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30165    <limits.h> exists even on freestanding compilers.  */
30166
30167#ifdef __STDC__
30168# include <limits.h>
30169#else
30170# include <assert.h>
30171#endif
30172
30173#undef $ac_func
30174
30175/* Override any GCC internal prototype to avoid an error.
30176   Use char because int might match the return type of a GCC
30177   builtin and then its argument prototype would still apply.  */
30178#ifdef __cplusplus
30179extern "C"
30180#endif
30181char $ac_func ();
30182/* The GNU C library defines this for functions which it implements
30183    to always fail with ENOSYS.  Some functions are actually named
30184    something starting with __ and the normal name is an alias.  */
30185#if defined __stub_$ac_func || defined __stub___$ac_func
30186choke me
30187#endif
30188
30189int
30190main ()
30191{
30192return $ac_func ();
30193  ;
30194  return 0;
30195}
30196_ACEOF
30197rm -f conftest.$ac_objext conftest$ac_exeext
30198if { (ac_try="$ac_link"
30199case "(($ac_try" in
30200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30201  *) ac_try_echo=$ac_try;;
30202esac
30203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30204  (eval "$ac_link") 2>conftest.er1
30205  ac_status=$?
30206  grep -v '^ *+' conftest.er1 >conftest.err
30207  rm -f conftest.er1
30208  cat conftest.err >&5
30209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210  (exit $ac_status); } &&
30211	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30212  { (case "(($ac_try" in
30213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30214  *) ac_try_echo=$ac_try;;
30215esac
30216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30217  (eval "$ac_try") 2>&5
30218  ac_status=$?
30219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30220  (exit $ac_status); }; } &&
30221	 { ac_try='test -s conftest$ac_exeext'
30222  { (case "(($ac_try" in
30223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30224  *) ac_try_echo=$ac_try;;
30225esac
30226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30227  (eval "$ac_try") 2>&5
30228  ac_status=$?
30229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30230  (exit $ac_status); }; }; then
30231  eval "$as_ac_var=yes"
30232else
30233  echo "$as_me: failed program was:" >&5
30234sed 's/^/| /' conftest.$ac_ext >&5
30235
30236	eval "$as_ac_var=no"
30237fi
30238
30239rm -f core conftest.err conftest.$ac_objext \
30240      conftest$ac_exeext conftest.$ac_ext
30241fi
30242ac_res=`eval echo '${'$as_ac_var'}'`
30243	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30244echo "${ECHO_T}$ac_res" >&6; }
30245if test `eval echo '${'$as_ac_var'}'` = yes; then
30246  cat >>confdefs.h <<_ACEOF
30247#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30248_ACEOF
30249
30250fi
30251done
30252
30253
30254
30255
30256for ac_func in isatty mkdtemp mkstemp
30257do
30258as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30259{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30260echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30261if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30262  echo $ECHO_N "(cached) $ECHO_C" >&6
30263else
30264  cat >conftest.$ac_ext <<_ACEOF
30265/* confdefs.h.  */
30266_ACEOF
30267cat confdefs.h >>conftest.$ac_ext
30268cat >>conftest.$ac_ext <<_ACEOF
30269/* end confdefs.h.  */
30270/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30271   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30272#define $ac_func innocuous_$ac_func
30273
30274/* System header to define __stub macros and hopefully few prototypes,
30275    which can conflict with char $ac_func (); below.
30276    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30277    <limits.h> exists even on freestanding compilers.  */
30278
30279#ifdef __STDC__
30280# include <limits.h>
30281#else
30282# include <assert.h>
30283#endif
30284
30285#undef $ac_func
30286
30287/* Override any GCC internal prototype to avoid an error.
30288   Use char because int might match the return type of a GCC
30289   builtin and then its argument prototype would still apply.  */
30290#ifdef __cplusplus
30291extern "C"
30292#endif
30293char $ac_func ();
30294/* The GNU C library defines this for functions which it implements
30295    to always fail with ENOSYS.  Some functions are actually named
30296    something starting with __ and the normal name is an alias.  */
30297#if defined __stub_$ac_func || defined __stub___$ac_func
30298choke me
30299#endif
30300
30301int
30302main ()
30303{
30304return $ac_func ();
30305  ;
30306  return 0;
30307}
30308_ACEOF
30309rm -f conftest.$ac_objext conftest$ac_exeext
30310if { (ac_try="$ac_link"
30311case "(($ac_try" in
30312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30313  *) ac_try_echo=$ac_try;;
30314esac
30315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30316  (eval "$ac_link") 2>conftest.er1
30317  ac_status=$?
30318  grep -v '^ *+' conftest.er1 >conftest.err
30319  rm -f conftest.er1
30320  cat conftest.err >&5
30321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30322  (exit $ac_status); } &&
30323	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30324  { (case "(($ac_try" in
30325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30326  *) ac_try_echo=$ac_try;;
30327esac
30328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30329  (eval "$ac_try") 2>&5
30330  ac_status=$?
30331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30332  (exit $ac_status); }; } &&
30333	 { ac_try='test -s conftest$ac_exeext'
30334  { (case "(($ac_try" in
30335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30336  *) ac_try_echo=$ac_try;;
30337esac
30338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30339  (eval "$ac_try") 2>&5
30340  ac_status=$?
30341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30342  (exit $ac_status); }; }; then
30343  eval "$as_ac_var=yes"
30344else
30345  echo "$as_me: failed program was:" >&5
30346sed 's/^/| /' conftest.$ac_ext >&5
30347
30348	eval "$as_ac_var=no"
30349fi
30350
30351rm -f core conftest.err conftest.$ac_objext \
30352      conftest$ac_exeext conftest.$ac_ext
30353fi
30354ac_res=`eval echo '${'$as_ac_var'}'`
30355	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30356echo "${ECHO_T}$ac_res" >&6; }
30357if test `eval echo '${'$as_ac_var'}'` = yes; then
30358  cat >>confdefs.h <<_ACEOF
30359#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30360_ACEOF
30361
30362fi
30363done
30364
30365
30366
30367
30368
30369
30370
30371
30372for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30373do
30374as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30375{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30376echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30377if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30378  echo $ECHO_N "(cached) $ECHO_C" >&6
30379else
30380  cat >conftest.$ac_ext <<_ACEOF
30381/* confdefs.h.  */
30382_ACEOF
30383cat confdefs.h >>conftest.$ac_ext
30384cat >>conftest.$ac_ext <<_ACEOF
30385/* end confdefs.h.  */
30386/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30387   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30388#define $ac_func innocuous_$ac_func
30389
30390/* System header to define __stub macros and hopefully few prototypes,
30391    which can conflict with char $ac_func (); below.
30392    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30393    <limits.h> exists even on freestanding compilers.  */
30394
30395#ifdef __STDC__
30396# include <limits.h>
30397#else
30398# include <assert.h>
30399#endif
30400
30401#undef $ac_func
30402
30403/* Override any GCC internal prototype to avoid an error.
30404   Use char because int might match the return type of a GCC
30405   builtin and then its argument prototype would still apply.  */
30406#ifdef __cplusplus
30407extern "C"
30408#endif
30409char $ac_func ();
30410/* The GNU C library defines this for functions which it implements
30411    to always fail with ENOSYS.  Some functions are actually named
30412    something starting with __ and the normal name is an alias.  */
30413#if defined __stub_$ac_func || defined __stub___$ac_func
30414choke me
30415#endif
30416
30417int
30418main ()
30419{
30420return $ac_func ();
30421  ;
30422  return 0;
30423}
30424_ACEOF
30425rm -f conftest.$ac_objext conftest$ac_exeext
30426if { (ac_try="$ac_link"
30427case "(($ac_try" in
30428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30429  *) ac_try_echo=$ac_try;;
30430esac
30431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30432  (eval "$ac_link") 2>conftest.er1
30433  ac_status=$?
30434  grep -v '^ *+' conftest.er1 >conftest.err
30435  rm -f conftest.er1
30436  cat conftest.err >&5
30437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30438  (exit $ac_status); } &&
30439	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30440  { (case "(($ac_try" in
30441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30442  *) ac_try_echo=$ac_try;;
30443esac
30444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30445  (eval "$ac_try") 2>&5
30446  ac_status=$?
30447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30448  (exit $ac_status); }; } &&
30449	 { ac_try='test -s conftest$ac_exeext'
30450  { (case "(($ac_try" in
30451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30452  *) ac_try_echo=$ac_try;;
30453esac
30454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30455  (eval "$ac_try") 2>&5
30456  ac_status=$?
30457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30458  (exit $ac_status); }; }; then
30459  eval "$as_ac_var=yes"
30460else
30461  echo "$as_me: failed program was:" >&5
30462sed 's/^/| /' conftest.$ac_ext >&5
30463
30464	eval "$as_ac_var=no"
30465fi
30466
30467rm -f core conftest.err conftest.$ac_objext \
30468      conftest$ac_exeext conftest.$ac_ext
30469fi
30470ac_res=`eval echo '${'$as_ac_var'}'`
30471	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30472echo "${ECHO_T}$ac_res" >&6; }
30473if test `eval echo '${'$as_ac_var'}'` = yes; then
30474  cat >>confdefs.h <<_ACEOF
30475#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30476_ACEOF
30477
30478fi
30479done
30480
30481
30482
30483
30484
30485for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30486do
30487as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30488{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30489echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30490if { as_var=$as_ac_var; eval "test \"\${$as_var+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/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30500   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30501#define $ac_func innocuous_$ac_func
30502
30503/* System header to define __stub macros and hopefully few prototypes,
30504    which can conflict with char $ac_func (); below.
30505    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30506    <limits.h> exists even on freestanding compilers.  */
30507
30508#ifdef __STDC__
30509# include <limits.h>
30510#else
30511# include <assert.h>
30512#endif
30513
30514#undef $ac_func
30515
30516/* Override any GCC internal prototype to avoid an error.
30517   Use char because int might match the return type of a GCC
30518   builtin and then its argument prototype would still apply.  */
30519#ifdef __cplusplus
30520extern "C"
30521#endif
30522char $ac_func ();
30523/* The GNU C library defines this for functions which it implements
30524    to always fail with ENOSYS.  Some functions are actually named
30525    something starting with __ and the normal name is an alias.  */
30526#if defined __stub_$ac_func || defined __stub___$ac_func
30527choke me
30528#endif
30529
30530int
30531main ()
30532{
30533return $ac_func ();
30534  ;
30535  return 0;
30536}
30537_ACEOF
30538rm -f conftest.$ac_objext conftest$ac_exeext
30539if { (ac_try="$ac_link"
30540case "(($ac_try" in
30541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30542  *) ac_try_echo=$ac_try;;
30543esac
30544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30545  (eval "$ac_link") 2>conftest.er1
30546  ac_status=$?
30547  grep -v '^ *+' conftest.er1 >conftest.err
30548  rm -f conftest.er1
30549  cat conftest.err >&5
30550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30551  (exit $ac_status); } &&
30552	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30553  { (case "(($ac_try" in
30554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30555  *) ac_try_echo=$ac_try;;
30556esac
30557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30558  (eval "$ac_try") 2>&5
30559  ac_status=$?
30560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30561  (exit $ac_status); }; } &&
30562	 { ac_try='test -s conftest$ac_exeext'
30563  { (case "(($ac_try" in
30564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30565  *) ac_try_echo=$ac_try;;
30566esac
30567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30568  (eval "$ac_try") 2>&5
30569  ac_status=$?
30570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30571  (exit $ac_status); }; }; then
30572  eval "$as_ac_var=yes"
30573else
30574  echo "$as_me: failed program was:" >&5
30575sed 's/^/| /' conftest.$ac_ext >&5
30576
30577	eval "$as_ac_var=no"
30578fi
30579
30580rm -f core conftest.err conftest.$ac_objext \
30581      conftest$ac_exeext conftest.$ac_ext
30582fi
30583ac_res=`eval echo '${'$as_ac_var'}'`
30584	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30585echo "${ECHO_T}$ac_res" >&6; }
30586if test `eval echo '${'$as_ac_var'}'` = yes; then
30587  cat >>confdefs.h <<_ACEOF
30588#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30589_ACEOF
30590
30591fi
30592done
30593
30594
30595
30596
30597
30598for ac_func in setjmp longjmp sigsetjmp siglongjmp
30599do
30600as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30601{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30602echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30603if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30604  echo $ECHO_N "(cached) $ECHO_C" >&6
30605else
30606  cat >conftest.$ac_ext <<_ACEOF
30607/* confdefs.h.  */
30608_ACEOF
30609cat confdefs.h >>conftest.$ac_ext
30610cat >>conftest.$ac_ext <<_ACEOF
30611/* end confdefs.h.  */
30612/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30613   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30614#define $ac_func innocuous_$ac_func
30615
30616/* System header to define __stub macros and hopefully few prototypes,
30617    which can conflict with char $ac_func (); below.
30618    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30619    <limits.h> exists even on freestanding compilers.  */
30620
30621#ifdef __STDC__
30622# include <limits.h>
30623#else
30624# include <assert.h>
30625#endif
30626
30627#undef $ac_func
30628
30629/* Override any GCC internal prototype to avoid an error.
30630   Use char because int might match the return type of a GCC
30631   builtin and then its argument prototype would still apply.  */
30632#ifdef __cplusplus
30633extern "C"
30634#endif
30635char $ac_func ();
30636/* The GNU C library defines this for functions which it implements
30637    to always fail with ENOSYS.  Some functions are actually named
30638    something starting with __ and the normal name is an alias.  */
30639#if defined __stub_$ac_func || defined __stub___$ac_func
30640choke me
30641#endif
30642
30643int
30644main ()
30645{
30646return $ac_func ();
30647  ;
30648  return 0;
30649}
30650_ACEOF
30651rm -f conftest.$ac_objext conftest$ac_exeext
30652if { (ac_try="$ac_link"
30653case "(($ac_try" in
30654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30655  *) ac_try_echo=$ac_try;;
30656esac
30657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30658  (eval "$ac_link") 2>conftest.er1
30659  ac_status=$?
30660  grep -v '^ *+' conftest.er1 >conftest.err
30661  rm -f conftest.er1
30662  cat conftest.err >&5
30663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30664  (exit $ac_status); } &&
30665	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30666  { (case "(($ac_try" in
30667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30668  *) ac_try_echo=$ac_try;;
30669esac
30670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30671  (eval "$ac_try") 2>&5
30672  ac_status=$?
30673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30674  (exit $ac_status); }; } &&
30675	 { ac_try='test -s conftest$ac_exeext'
30676  { (case "(($ac_try" in
30677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30678  *) ac_try_echo=$ac_try;;
30679esac
30680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30681  (eval "$ac_try") 2>&5
30682  ac_status=$?
30683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30684  (exit $ac_status); }; }; then
30685  eval "$as_ac_var=yes"
30686else
30687  echo "$as_me: failed program was:" >&5
30688sed 's/^/| /' conftest.$ac_ext >&5
30689
30690	eval "$as_ac_var=no"
30691fi
30692
30693rm -f core conftest.err conftest.$ac_objext \
30694      conftest$ac_exeext conftest.$ac_ext
30695fi
30696ac_res=`eval echo '${'$as_ac_var'}'`
30697	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30698echo "${ECHO_T}$ac_res" >&6; }
30699if test `eval echo '${'$as_ac_var'}'` = yes; then
30700  cat >>confdefs.h <<_ACEOF
30701#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30702_ACEOF
30703
30704fi
30705done
30706
30707{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30708echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
30709if test "${llvm_cv_c_printf_a+set}" = set; then
30710  echo $ECHO_N "(cached) $ECHO_C" >&6
30711else
30712  ac_ext=c
30713ac_cpp='$CPP $CPPFLAGS'
30714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30716ac_compiler_gnu=$ac_cv_c_compiler_gnu
30717
30718 if test "$cross_compiling" = yes; then
30719  llvmac_cv_c_printf_a=no
30720else
30721  cat >conftest.$ac_ext <<_ACEOF
30722
30723  /* confdefs.h.  */
30724_ACEOF
30725cat confdefs.h >>conftest.$ac_ext
30726cat >>conftest.$ac_ext <<_ACEOF
30727/* end confdefs.h.  */
30728
30729#include <stdio.h>
30730#include <stdlib.h>
30731
30732int
30733main ()
30734{
30735
30736volatile double A, B;
30737char Buffer[100];
30738A = 1;
30739A /= 10.0;
30740sprintf(Buffer, "%a", A);
30741B = atof(Buffer);
30742if (A != B)
30743  return (1);
30744if (A != 0x1.999999999999ap-4)
30745  return (1);
30746return (0);
30747  ;
30748  return 0;
30749}
30750_ACEOF
30751rm -f conftest$ac_exeext
30752if { (ac_try="$ac_link"
30753case "(($ac_try" in
30754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30755  *) ac_try_echo=$ac_try;;
30756esac
30757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30758  (eval "$ac_link") 2>&5
30759  ac_status=$?
30760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30761  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30762  { (case "(($ac_try" in
30763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30764  *) ac_try_echo=$ac_try;;
30765esac
30766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30767  (eval "$ac_try") 2>&5
30768  ac_status=$?
30769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30770  (exit $ac_status); }; }; then
30771  llvm_cv_c_printf_a=yes
30772else
30773  echo "$as_me: program exited with status $ac_status" >&5
30774echo "$as_me: failed program was:" >&5
30775sed 's/^/| /' conftest.$ac_ext >&5
30776
30777( exit $ac_status )
30778llvmac_cv_c_printf_a=no
30779fi
30780rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30781fi
30782
30783
30784 ac_ext=c
30785ac_cpp='$CPP $CPPFLAGS'
30786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30788ac_compiler_gnu=$ac_cv_c_compiler_gnu
30789
30790fi
30791{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30792echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
30793 if test "$llvm_cv_c_printf_a" = "yes"; then
30794
30795cat >>confdefs.h <<\_ACEOF
30796#define HAVE_PRINTF_A 1
30797_ACEOF
30798
30799 fi
30800
30801# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30802# for constant arguments.  Useless!
30803{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
30804echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
30805if test "${ac_cv_working_alloca_h+set}" = set; then
30806  echo $ECHO_N "(cached) $ECHO_C" >&6
30807else
30808  cat >conftest.$ac_ext <<_ACEOF
30809/* confdefs.h.  */
30810_ACEOF
30811cat confdefs.h >>conftest.$ac_ext
30812cat >>conftest.$ac_ext <<_ACEOF
30813/* end confdefs.h.  */
30814#include <alloca.h>
30815int
30816main ()
30817{
30818char *p = (char *) alloca (2 * sizeof (int));
30819			  if (p) return 0;
30820  ;
30821  return 0;
30822}
30823_ACEOF
30824rm -f conftest.$ac_objext conftest$ac_exeext
30825if { (ac_try="$ac_link"
30826case "(($ac_try" in
30827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30828  *) ac_try_echo=$ac_try;;
30829esac
30830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30831  (eval "$ac_link") 2>conftest.er1
30832  ac_status=$?
30833  grep -v '^ *+' conftest.er1 >conftest.err
30834  rm -f conftest.er1
30835  cat conftest.err >&5
30836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30837  (exit $ac_status); } &&
30838	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30839  { (case "(($ac_try" in
30840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30841  *) ac_try_echo=$ac_try;;
30842esac
30843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30844  (eval "$ac_try") 2>&5
30845  ac_status=$?
30846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30847  (exit $ac_status); }; } &&
30848	 { ac_try='test -s conftest$ac_exeext'
30849  { (case "(($ac_try" in
30850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30851  *) ac_try_echo=$ac_try;;
30852esac
30853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30854  (eval "$ac_try") 2>&5
30855  ac_status=$?
30856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30857  (exit $ac_status); }; }; then
30858  ac_cv_working_alloca_h=yes
30859else
30860  echo "$as_me: failed program was:" >&5
30861sed 's/^/| /' conftest.$ac_ext >&5
30862
30863	ac_cv_working_alloca_h=no
30864fi
30865
30866rm -f core conftest.err conftest.$ac_objext \
30867      conftest$ac_exeext conftest.$ac_ext
30868fi
30869{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30870echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
30871if test $ac_cv_working_alloca_h = yes; then
30872
30873cat >>confdefs.h <<\_ACEOF
30874#define HAVE_ALLOCA_H 1
30875_ACEOF
30876
30877fi
30878
30879{ echo "$as_me:$LINENO: checking for alloca" >&5
30880echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
30881if test "${ac_cv_func_alloca_works+set}" = set; then
30882  echo $ECHO_N "(cached) $ECHO_C" >&6
30883else
30884  cat >conftest.$ac_ext <<_ACEOF
30885/* confdefs.h.  */
30886_ACEOF
30887cat confdefs.h >>conftest.$ac_ext
30888cat >>conftest.$ac_ext <<_ACEOF
30889/* end confdefs.h.  */
30890#ifdef __GNUC__
30891# define alloca __builtin_alloca
30892#else
30893# ifdef _MSC_VER
30894#  include <malloc.h>
30895#  define alloca _alloca
30896# else
30897#  if HAVE_ALLOCA_H
30898#   include <alloca.h>
30899#  else
30900#   ifdef _AIX
30901 #pragma alloca
30902#   else
30903#    ifndef alloca /* predefined by HP cc +Olibcalls */
30904char *alloca ();
30905#    endif
30906#   endif
30907#  endif
30908# endif
30909#endif
30910
30911int
30912main ()
30913{
30914char *p = (char *) alloca (1);
30915				    if (p) return 0;
30916  ;
30917  return 0;
30918}
30919_ACEOF
30920rm -f conftest.$ac_objext conftest$ac_exeext
30921if { (ac_try="$ac_link"
30922case "(($ac_try" in
30923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30924  *) ac_try_echo=$ac_try;;
30925esac
30926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30927  (eval "$ac_link") 2>conftest.er1
30928  ac_status=$?
30929  grep -v '^ *+' conftest.er1 >conftest.err
30930  rm -f conftest.er1
30931  cat conftest.err >&5
30932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30933  (exit $ac_status); } &&
30934	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30935  { (case "(($ac_try" in
30936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30937  *) ac_try_echo=$ac_try;;
30938esac
30939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30940  (eval "$ac_try") 2>&5
30941  ac_status=$?
30942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30943  (exit $ac_status); }; } &&
30944	 { ac_try='test -s conftest$ac_exeext'
30945  { (case "(($ac_try" in
30946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30947  *) ac_try_echo=$ac_try;;
30948esac
30949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30950  (eval "$ac_try") 2>&5
30951  ac_status=$?
30952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30953  (exit $ac_status); }; }; then
30954  ac_cv_func_alloca_works=yes
30955else
30956  echo "$as_me: failed program was:" >&5
30957sed 's/^/| /' conftest.$ac_ext >&5
30958
30959	ac_cv_func_alloca_works=no
30960fi
30961
30962rm -f core conftest.err conftest.$ac_objext \
30963      conftest$ac_exeext conftest.$ac_ext
30964fi
30965{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30966echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
30967
30968if test $ac_cv_func_alloca_works = yes; then
30969
30970cat >>confdefs.h <<\_ACEOF
30971#define HAVE_ALLOCA 1
30972_ACEOF
30973
30974else
30975  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30976# that cause trouble.  Some versions do not even contain alloca or
30977# contain a buggy version.  If you still want to use their alloca,
30978# use ar to extract alloca.o from them instead of compiling alloca.c.
30979
30980ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
30981
30982cat >>confdefs.h <<\_ACEOF
30983#define C_ALLOCA 1
30984_ACEOF
30985
30986
30987{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30988echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
30989if test "${ac_cv_os_cray+set}" = set; then
30990  echo $ECHO_N "(cached) $ECHO_C" >&6
30991else
30992  cat >conftest.$ac_ext <<_ACEOF
30993/* confdefs.h.  */
30994_ACEOF
30995cat confdefs.h >>conftest.$ac_ext
30996cat >>conftest.$ac_ext <<_ACEOF
30997/* end confdefs.h.  */
30998#if defined CRAY && ! defined CRAY2
30999webecray
31000#else
31001wenotbecray
31002#endif
31003
31004_ACEOF
31005if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31006  $EGREP "webecray" >/dev/null 2>&1; then
31007  ac_cv_os_cray=yes
31008else
31009  ac_cv_os_cray=no
31010fi
31011rm -f conftest*
31012
31013fi
31014{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31015echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31016if test $ac_cv_os_cray = yes; then
31017  for ac_func in _getb67 GETB67 getb67; do
31018    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31019{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31020echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31021if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31022  echo $ECHO_N "(cached) $ECHO_C" >&6
31023else
31024  cat >conftest.$ac_ext <<_ACEOF
31025/* confdefs.h.  */
31026_ACEOF
31027cat confdefs.h >>conftest.$ac_ext
31028cat >>conftest.$ac_ext <<_ACEOF
31029/* end confdefs.h.  */
31030/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31031   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31032#define $ac_func innocuous_$ac_func
31033
31034/* System header to define __stub macros and hopefully few prototypes,
31035    which can conflict with char $ac_func (); below.
31036    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31037    <limits.h> exists even on freestanding compilers.  */
31038
31039#ifdef __STDC__
31040# include <limits.h>
31041#else
31042# include <assert.h>
31043#endif
31044
31045#undef $ac_func
31046
31047/* Override any GCC internal prototype to avoid an error.
31048   Use char because int might match the return type of a GCC
31049   builtin and then its argument prototype would still apply.  */
31050#ifdef __cplusplus
31051extern "C"
31052#endif
31053char $ac_func ();
31054/* The GNU C library defines this for functions which it implements
31055    to always fail with ENOSYS.  Some functions are actually named
31056    something starting with __ and the normal name is an alias.  */
31057#if defined __stub_$ac_func || defined __stub___$ac_func
31058choke me
31059#endif
31060
31061int
31062main ()
31063{
31064return $ac_func ();
31065  ;
31066  return 0;
31067}
31068_ACEOF
31069rm -f conftest.$ac_objext conftest$ac_exeext
31070if { (ac_try="$ac_link"
31071case "(($ac_try" in
31072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31073  *) ac_try_echo=$ac_try;;
31074esac
31075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31076  (eval "$ac_link") 2>conftest.er1
31077  ac_status=$?
31078  grep -v '^ *+' conftest.er1 >conftest.err
31079  rm -f conftest.er1
31080  cat conftest.err >&5
31081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31082  (exit $ac_status); } &&
31083	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
31093	 { ac_try='test -s conftest$ac_exeext'
31094  { (case "(($ac_try" in
31095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31096  *) ac_try_echo=$ac_try;;
31097esac
31098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31099  (eval "$ac_try") 2>&5
31100  ac_status=$?
31101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31102  (exit $ac_status); }; }; then
31103  eval "$as_ac_var=yes"
31104else
31105  echo "$as_me: failed program was:" >&5
31106sed 's/^/| /' conftest.$ac_ext >&5
31107
31108	eval "$as_ac_var=no"
31109fi
31110
31111rm -f core conftest.err conftest.$ac_objext \
31112      conftest$ac_exeext conftest.$ac_ext
31113fi
31114ac_res=`eval echo '${'$as_ac_var'}'`
31115	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31116echo "${ECHO_T}$ac_res" >&6; }
31117if test `eval echo '${'$as_ac_var'}'` = yes; then
31118
31119cat >>confdefs.h <<_ACEOF
31120#define CRAY_STACKSEG_END $ac_func
31121_ACEOF
31122
31123    break
31124fi
31125
31126  done
31127fi
31128
31129{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31130echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31131if test "${ac_cv_c_stack_direction+set}" = set; then
31132  echo $ECHO_N "(cached) $ECHO_C" >&6
31133else
31134  if test "$cross_compiling" = yes; then
31135  ac_cv_c_stack_direction=0
31136else
31137  cat >conftest.$ac_ext <<_ACEOF
31138/* confdefs.h.  */
31139_ACEOF
31140cat confdefs.h >>conftest.$ac_ext
31141cat >>conftest.$ac_ext <<_ACEOF
31142/* end confdefs.h.  */
31143$ac_includes_default
31144int
31145find_stack_direction ()
31146{
31147  static char *addr = 0;
31148  auto char dummy;
31149  if (addr == 0)
31150    {
31151      addr = &dummy;
31152      return find_stack_direction ();
31153    }
31154  else
31155    return (&dummy > addr) ? 1 : -1;
31156}
31157
31158int
31159main ()
31160{
31161  return find_stack_direction () < 0;
31162}
31163_ACEOF
31164rm -f conftest$ac_exeext
31165if { (ac_try="$ac_link"
31166case "(($ac_try" in
31167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31168  *) ac_try_echo=$ac_try;;
31169esac
31170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31171  (eval "$ac_link") 2>&5
31172  ac_status=$?
31173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31174  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31175  { (case "(($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_try") 2>&5
31181  ac_status=$?
31182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31183  (exit $ac_status); }; }; then
31184  ac_cv_c_stack_direction=1
31185else
31186  echo "$as_me: program exited with status $ac_status" >&5
31187echo "$as_me: failed program was:" >&5
31188sed 's/^/| /' conftest.$ac_ext >&5
31189
31190( exit $ac_status )
31191ac_cv_c_stack_direction=-1
31192fi
31193rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31194fi
31195
31196
31197fi
31198{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31199echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31200
31201cat >>confdefs.h <<_ACEOF
31202#define STACK_DIRECTION $ac_cv_c_stack_direction
31203_ACEOF
31204
31205
31206fi
31207
31208
31209{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31210echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31211if test "${ac_cv_func_rand48+set}" = set; then
31212  echo $ECHO_N "(cached) $ECHO_C" >&6
31213else
31214  ac_ext=cpp
31215ac_cpp='$CXXCPP $CPPFLAGS'
31216ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31217ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31218ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31219
31220   cat >conftest.$ac_ext <<_ACEOF
31221/* confdefs.h.  */
31222_ACEOF
31223cat confdefs.h >>conftest.$ac_ext
31224cat >>conftest.$ac_ext <<_ACEOF
31225/* end confdefs.h.  */
31226#include <stdlib.h>
31227int
31228main ()
31229{
31230srand48(0);lrand48();drand48();
31231  ;
31232  return 0;
31233}
31234_ACEOF
31235rm -f conftest.$ac_objext
31236if { (ac_try="$ac_compile"
31237case "(($ac_try" in
31238  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31239  *) ac_try_echo=$ac_try;;
31240esac
31241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31242  (eval "$ac_compile") 2>conftest.er1
31243  ac_status=$?
31244  grep -v '^ *+' conftest.er1 >conftest.err
31245  rm -f conftest.er1
31246  cat conftest.err >&5
31247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31248  (exit $ac_status); } &&
31249	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31250  { (case "(($ac_try" in
31251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31252  *) ac_try_echo=$ac_try;;
31253esac
31254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31255  (eval "$ac_try") 2>&5
31256  ac_status=$?
31257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31258  (exit $ac_status); }; } &&
31259	 { ac_try='test -s conftest.$ac_objext'
31260  { (case "(($ac_try" in
31261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31262  *) ac_try_echo=$ac_try;;
31263esac
31264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31265  (eval "$ac_try") 2>&5
31266  ac_status=$?
31267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31268  (exit $ac_status); }; }; then
31269  ac_cv_func_rand48=yes
31270else
31271  echo "$as_me: failed program was:" >&5
31272sed 's/^/| /' conftest.$ac_ext >&5
31273
31274	ac_cv_func_rand48=no
31275fi
31276
31277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31278  ac_ext=c
31279ac_cpp='$CPP $CPPFLAGS'
31280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31282ac_compiler_gnu=$ac_cv_c_compiler_gnu
31283
31284fi
31285{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31286echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31287
31288if test "$ac_cv_func_rand48" = "yes" ; then
31289
31290cat >>confdefs.h <<\_ACEOF
31291#define HAVE_RAND48 1
31292_ACEOF
31293
31294fi
31295
31296
31297{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31298echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31299if test "${ac_cv_cxx_namespaces+set}" = set; then
31300  echo $ECHO_N "(cached) $ECHO_C" >&6
31301else
31302  ac_ext=cpp
31303ac_cpp='$CXXCPP $CPPFLAGS'
31304ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31305ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31306ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31307
31308 cat >conftest.$ac_ext <<_ACEOF
31309/* confdefs.h.  */
31310_ACEOF
31311cat confdefs.h >>conftest.$ac_ext
31312cat >>conftest.$ac_ext <<_ACEOF
31313/* end confdefs.h.  */
31314namespace Outer { namespace Inner { int i = 0; }}
31315int
31316main ()
31317{
31318using namespace Outer::Inner; return i;
31319  ;
31320  return 0;
31321}
31322_ACEOF
31323rm -f conftest.$ac_objext
31324if { (ac_try="$ac_compile"
31325case "(($ac_try" in
31326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31327  *) ac_try_echo=$ac_try;;
31328esac
31329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31330  (eval "$ac_compile") 2>conftest.er1
31331  ac_status=$?
31332  grep -v '^ *+' conftest.er1 >conftest.err
31333  rm -f conftest.er1
31334  cat conftest.err >&5
31335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31336  (exit $ac_status); } &&
31337	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31338  { (case "(($ac_try" in
31339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31340  *) ac_try_echo=$ac_try;;
31341esac
31342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31343  (eval "$ac_try") 2>&5
31344  ac_status=$?
31345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31346  (exit $ac_status); }; } &&
31347	 { ac_try='test -s conftest.$ac_objext'
31348  { (case "(($ac_try" in
31349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31350  *) ac_try_echo=$ac_try;;
31351esac
31352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31353  (eval "$ac_try") 2>&5
31354  ac_status=$?
31355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31356  (exit $ac_status); }; }; then
31357  ac_cv_cxx_namespaces=yes
31358else
31359  echo "$as_me: failed program was:" >&5
31360sed 's/^/| /' conftest.$ac_ext >&5
31361
31362	ac_cv_cxx_namespaces=no
31363fi
31364
31365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31366 ac_ext=c
31367ac_cpp='$CPP $CPPFLAGS'
31368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31370ac_compiler_gnu=$ac_cv_c_compiler_gnu
31371
31372
31373fi
31374{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31375echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31376if test "$ac_cv_cxx_namespaces" = yes; then
31377
31378cat >>confdefs.h <<\_ACEOF
31379#define HAVE_NAMESPACES
31380_ACEOF
31381
31382fi
31383
31384{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31385echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31386if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31387  echo $ECHO_N "(cached) $ECHO_C" >&6
31388else
31389
31390  ac_ext=cpp
31391ac_cpp='$CXXCPP $CPPFLAGS'
31392ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31393ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31394ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31395
31396  cat >conftest.$ac_ext <<_ACEOF
31397/* confdefs.h.  */
31398_ACEOF
31399cat confdefs.h >>conftest.$ac_ext
31400cat >>conftest.$ac_ext <<_ACEOF
31401/* end confdefs.h.  */
31402#include <ext/hash_map>
31403#ifdef HAVE_NAMESPACES
31404using namespace std;
31405#endif
31406int
31407main ()
31408{
31409hash_map<int, int> t;
31410  ;
31411  return 0;
31412}
31413_ACEOF
31414rm -f conftest.$ac_objext
31415if { (ac_try="$ac_compile"
31416case "(($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_compile") 2>conftest.er1
31422  ac_status=$?
31423  grep -v '^ *+' conftest.er1 >conftest.err
31424  rm -f conftest.er1
31425  cat conftest.err >&5
31426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31427  (exit $ac_status); } &&
31428	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31429  { (case "(($ac_try" in
31430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31431  *) ac_try_echo=$ac_try;;
31432esac
31433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31434  (eval "$ac_try") 2>&5
31435  ac_status=$?
31436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437  (exit $ac_status); }; } &&
31438	 { ac_try='test -s conftest.$ac_objext'
31439  { (case "(($ac_try" in
31440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31441  *) ac_try_echo=$ac_try;;
31442esac
31443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31444  (eval "$ac_try") 2>&5
31445  ac_status=$?
31446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31447  (exit $ac_status); }; }; then
31448  ac_cv_cxx_have_std_ext_hash_map=yes
31449else
31450  echo "$as_me: failed program was:" >&5
31451sed 's/^/| /' conftest.$ac_ext >&5
31452
31453	ac_cv_cxx_have_std_ext_hash_map=no
31454fi
31455
31456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31457  ac_ext=c
31458ac_cpp='$CPP $CPPFLAGS'
31459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31461ac_compiler_gnu=$ac_cv_c_compiler_gnu
31462
31463fi
31464{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31465echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31466 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31467 then
31468
31469cat >>confdefs.h <<\_ACEOF
31470#define HAVE_STD_EXT_HASH_MAP 1
31471_ACEOF
31472
31473 else
31474
31475cat >>confdefs.h <<\_ACEOF
31476#define HAVE_STD_EXT_HASH_MAP 0
31477_ACEOF
31478
31479 fi
31480
31481 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31482echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31483if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31484  echo $ECHO_N "(cached) $ECHO_C" >&6
31485else
31486
31487  ac_ext=cpp
31488ac_cpp='$CXXCPP $CPPFLAGS'
31489ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31490ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31491ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31492
31493  cat >conftest.$ac_ext <<_ACEOF
31494/* confdefs.h.  */
31495_ACEOF
31496cat confdefs.h >>conftest.$ac_ext
31497cat >>conftest.$ac_ext <<_ACEOF
31498/* end confdefs.h.  */
31499#include <ext/hash_map>
31500#ifdef HAVE_NAMESPACES
31501using namespace __gnu_cxx;
31502#endif
31503int
31504main ()
31505{
31506hash_map<int,int> t;
31507  ;
31508  return 0;
31509}
31510_ACEOF
31511rm -f conftest.$ac_objext
31512if { (ac_try="$ac_compile"
31513case "(($ac_try" in
31514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31515  *) ac_try_echo=$ac_try;;
31516esac
31517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31518  (eval "$ac_compile") 2>conftest.er1
31519  ac_status=$?
31520  grep -v '^ *+' conftest.er1 >conftest.err
31521  rm -f conftest.er1
31522  cat conftest.err >&5
31523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31524  (exit $ac_status); } &&
31525	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31526  { (case "(($ac_try" in
31527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31528  *) ac_try_echo=$ac_try;;
31529esac
31530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31531  (eval "$ac_try") 2>&5
31532  ac_status=$?
31533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534  (exit $ac_status); }; } &&
31535	 { ac_try='test -s conftest.$ac_objext'
31536  { (case "(($ac_try" in
31537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31538  *) ac_try_echo=$ac_try;;
31539esac
31540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31541  (eval "$ac_try") 2>&5
31542  ac_status=$?
31543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544  (exit $ac_status); }; }; then
31545  ac_cv_cxx_have_gnu_ext_hash_map=yes
31546else
31547  echo "$as_me: failed program was:" >&5
31548sed 's/^/| /' conftest.$ac_ext >&5
31549
31550	ac_cv_cxx_have_gnu_ext_hash_map=no
31551fi
31552
31553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31554  ac_ext=c
31555ac_cpp='$CPP $CPPFLAGS'
31556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31558ac_compiler_gnu=$ac_cv_c_compiler_gnu
31559
31560fi
31561{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31562echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31563 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31564 then
31565
31566cat >>confdefs.h <<\_ACEOF
31567#define HAVE_GNU_EXT_HASH_MAP 1
31568_ACEOF
31569
31570 else
31571
31572cat >>confdefs.h <<\_ACEOF
31573#define HAVE_GNU_EXT_HASH_MAP 0
31574_ACEOF
31575
31576 fi
31577
31578 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31579echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31580if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31581  echo $ECHO_N "(cached) $ECHO_C" >&6
31582else
31583
31584  ac_ext=cpp
31585ac_cpp='$CXXCPP $CPPFLAGS'
31586ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31587ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31588ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31589
31590  cat >conftest.$ac_ext <<_ACEOF
31591/* confdefs.h.  */
31592_ACEOF
31593cat confdefs.h >>conftest.$ac_ext
31594cat >>conftest.$ac_ext <<_ACEOF
31595/* end confdefs.h.  */
31596#include <hash_map>
31597int
31598main ()
31599{
31600hash_map<int,int> t;
31601  ;
31602  return 0;
31603}
31604_ACEOF
31605rm -f conftest.$ac_objext
31606if { (ac_try="$ac_compile"
31607case "(($ac_try" in
31608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31609  *) ac_try_echo=$ac_try;;
31610esac
31611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31612  (eval "$ac_compile") 2>conftest.er1
31613  ac_status=$?
31614  grep -v '^ *+' conftest.er1 >conftest.err
31615  rm -f conftest.er1
31616  cat conftest.err >&5
31617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31618  (exit $ac_status); } &&
31619	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31620  { (case "(($ac_try" in
31621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31622  *) ac_try_echo=$ac_try;;
31623esac
31624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31625  (eval "$ac_try") 2>&5
31626  ac_status=$?
31627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31628  (exit $ac_status); }; } &&
31629	 { ac_try='test -s conftest.$ac_objext'
31630  { (case "(($ac_try" in
31631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31632  *) ac_try_echo=$ac_try;;
31633esac
31634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31635  (eval "$ac_try") 2>&5
31636  ac_status=$?
31637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31638  (exit $ac_status); }; }; then
31639  ac_cv_cxx_have_global_hash_map=yes
31640else
31641  echo "$as_me: failed program was:" >&5
31642sed 's/^/| /' conftest.$ac_ext >&5
31643
31644	ac_cv_cxx_have_global_hash_map=no
31645fi
31646
31647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31648  ac_ext=c
31649ac_cpp='$CPP $CPPFLAGS'
31650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31652ac_compiler_gnu=$ac_cv_c_compiler_gnu
31653
31654fi
31655{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31656echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
31657 if test "$ac_cv_cxx_have_global_hash_map" = yes
31658 then
31659
31660cat >>confdefs.h <<\_ACEOF
31661#define HAVE_GLOBAL_HASH_MAP 1
31662_ACEOF
31663
31664 else
31665
31666cat >>confdefs.h <<\_ACEOF
31667#define HAVE_GLOBAL_HASH_MAP 0
31668_ACEOF
31669
31670 fi
31671
31672{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31673echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
31674if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
31675  echo $ECHO_N "(cached) $ECHO_C" >&6
31676else
31677
31678  ac_ext=cpp
31679ac_cpp='$CXXCPP $CPPFLAGS'
31680ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31681ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31682ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31683
31684  cat >conftest.$ac_ext <<_ACEOF
31685/* confdefs.h.  */
31686_ACEOF
31687cat confdefs.h >>conftest.$ac_ext
31688cat >>conftest.$ac_ext <<_ACEOF
31689/* end confdefs.h.  */
31690#include <ext/hash_set>
31691#ifdef HAVE_NAMESPACES
31692using namespace std;
31693#endif
31694int
31695main ()
31696{
31697hash_set<int> t;
31698  ;
31699  return 0;
31700}
31701_ACEOF
31702rm -f conftest.$ac_objext
31703if { (ac_try="$ac_compile"
31704case "(($ac_try" in
31705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31706  *) ac_try_echo=$ac_try;;
31707esac
31708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31709  (eval "$ac_compile") 2>conftest.er1
31710  ac_status=$?
31711  grep -v '^ *+' conftest.er1 >conftest.err
31712  rm -f conftest.er1
31713  cat conftest.err >&5
31714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31715  (exit $ac_status); } &&
31716	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31717  { (case "(($ac_try" in
31718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31719  *) ac_try_echo=$ac_try;;
31720esac
31721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31722  (eval "$ac_try") 2>&5
31723  ac_status=$?
31724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31725  (exit $ac_status); }; } &&
31726	 { ac_try='test -s conftest.$ac_objext'
31727  { (case "(($ac_try" in
31728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31729  *) ac_try_echo=$ac_try;;
31730esac
31731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31732  (eval "$ac_try") 2>&5
31733  ac_status=$?
31734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31735  (exit $ac_status); }; }; then
31736  ac_cv_cxx_have_std_ext_hash_set=yes
31737else
31738  echo "$as_me: failed program was:" >&5
31739sed 's/^/| /' conftest.$ac_ext >&5
31740
31741	ac_cv_cxx_have_std_ext_hash_set=no
31742fi
31743
31744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31745  ac_ext=c
31746ac_cpp='$CPP $CPPFLAGS'
31747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31749ac_compiler_gnu=$ac_cv_c_compiler_gnu
31750
31751fi
31752{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31753echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
31754 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31755 then
31756
31757cat >>confdefs.h <<\_ACEOF
31758#define HAVE_STD_EXT_HASH_SET 1
31759_ACEOF
31760
31761 else
31762
31763cat >>confdefs.h <<\_ACEOF
31764#define HAVE_STD_EXT_HASH_SET 0
31765_ACEOF
31766
31767 fi
31768
31769 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31770echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
31771if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31772  echo $ECHO_N "(cached) $ECHO_C" >&6
31773else
31774
31775  ac_ext=cpp
31776ac_cpp='$CXXCPP $CPPFLAGS'
31777ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31778ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31779ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31780
31781  cat >conftest.$ac_ext <<_ACEOF
31782/* confdefs.h.  */
31783_ACEOF
31784cat confdefs.h >>conftest.$ac_ext
31785cat >>conftest.$ac_ext <<_ACEOF
31786/* end confdefs.h.  */
31787#include <ext/hash_set>
31788#ifdef HAVE_NAMESPACES
31789using namespace __gnu_cxx;
31790#endif
31791int
31792main ()
31793{
31794hash_set<int> t;
31795  ;
31796  return 0;
31797}
31798_ACEOF
31799rm -f conftest.$ac_objext
31800if { (ac_try="$ac_compile"
31801case "(($ac_try" in
31802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31803  *) ac_try_echo=$ac_try;;
31804esac
31805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31806  (eval "$ac_compile") 2>conftest.er1
31807  ac_status=$?
31808  grep -v '^ *+' conftest.er1 >conftest.err
31809  rm -f conftest.er1
31810  cat conftest.err >&5
31811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31812  (exit $ac_status); } &&
31813	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31814  { (case "(($ac_try" in
31815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31816  *) ac_try_echo=$ac_try;;
31817esac
31818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31819  (eval "$ac_try") 2>&5
31820  ac_status=$?
31821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31822  (exit $ac_status); }; } &&
31823	 { ac_try='test -s conftest.$ac_objext'
31824  { (case "(($ac_try" in
31825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31826  *) ac_try_echo=$ac_try;;
31827esac
31828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31829  (eval "$ac_try") 2>&5
31830  ac_status=$?
31831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832  (exit $ac_status); }; }; then
31833  ac_cv_cxx_have_gnu_ext_hash_set=yes
31834else
31835  echo "$as_me: failed program was:" >&5
31836sed 's/^/| /' conftest.$ac_ext >&5
31837
31838	ac_cv_cxx_have_gnu_ext_hash_set=no
31839fi
31840
31841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31842  ac_ext=c
31843ac_cpp='$CPP $CPPFLAGS'
31844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31846ac_compiler_gnu=$ac_cv_c_compiler_gnu
31847
31848fi
31849{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31850echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
31851 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31852 then
31853
31854cat >>confdefs.h <<\_ACEOF
31855#define HAVE_GNU_EXT_HASH_SET 1
31856_ACEOF
31857
31858 else
31859
31860cat >>confdefs.h <<\_ACEOF
31861#define HAVE_GNU_EXT_HASH_SET 0
31862_ACEOF
31863
31864 fi
31865
31866 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31867echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
31868if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31869  echo $ECHO_N "(cached) $ECHO_C" >&6
31870else
31871
31872  ac_ext=cpp
31873ac_cpp='$CXXCPP $CPPFLAGS'
31874ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31875ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31876ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31877
31878  cat >conftest.$ac_ext <<_ACEOF
31879/* confdefs.h.  */
31880_ACEOF
31881cat confdefs.h >>conftest.$ac_ext
31882cat >>conftest.$ac_ext <<_ACEOF
31883/* end confdefs.h.  */
31884#include <hash_set>
31885int
31886main ()
31887{
31888hash_set<int> t; return 0;
31889  ;
31890  return 0;
31891}
31892_ACEOF
31893rm -f conftest.$ac_objext
31894if { (ac_try="$ac_compile"
31895case "(($ac_try" in
31896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31897  *) ac_try_echo=$ac_try;;
31898esac
31899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31900  (eval "$ac_compile") 2>conftest.er1
31901  ac_status=$?
31902  grep -v '^ *+' conftest.er1 >conftest.err
31903  rm -f conftest.er1
31904  cat conftest.err >&5
31905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31906  (exit $ac_status); } &&
31907	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31908  { (case "(($ac_try" in
31909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31910  *) ac_try_echo=$ac_try;;
31911esac
31912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31913  (eval "$ac_try") 2>&5
31914  ac_status=$?
31915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31916  (exit $ac_status); }; } &&
31917	 { ac_try='test -s conftest.$ac_objext'
31918  { (case "(($ac_try" in
31919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31920  *) ac_try_echo=$ac_try;;
31921esac
31922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31923  (eval "$ac_try") 2>&5
31924  ac_status=$?
31925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31926  (exit $ac_status); }; }; then
31927  ac_cv_cxx_have_global_hash_set=yes
31928else
31929  echo "$as_me: failed program was:" >&5
31930sed 's/^/| /' conftest.$ac_ext >&5
31931
31932	ac_cv_cxx_have_global_hash_set=no
31933fi
31934
31935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31936  ac_ext=c
31937ac_cpp='$CPP $CPPFLAGS'
31938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31940ac_compiler_gnu=$ac_cv_c_compiler_gnu
31941
31942fi
31943{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31944echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
31945 if test "$ac_cv_cxx_have_global_hash_set" = yes
31946 then
31947
31948cat >>confdefs.h <<\_ACEOF
31949#define HAVE_GLOBAL_HASH_SET 1
31950_ACEOF
31951
31952 else
31953
31954cat >>confdefs.h <<\_ACEOF
31955#define HAVE_GLOBAL_HASH_SET 0
31956_ACEOF
31957
31958 fi
31959
31960{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31961echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
31962if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31963  echo $ECHO_N "(cached) $ECHO_C" >&6
31964else
31965
31966  ac_ext=cpp
31967ac_cpp='$CXXCPP $CPPFLAGS'
31968ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31969ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31970ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31971
31972  cat >conftest.$ac_ext <<_ACEOF
31973/* confdefs.h.  */
31974_ACEOF
31975cat confdefs.h >>conftest.$ac_ext
31976cat >>conftest.$ac_ext <<_ACEOF
31977/* end confdefs.h.  */
31978#include <iterator>
31979#ifdef HAVE_NAMESPACES
31980using namespace std;
31981#endif
31982int
31983main ()
31984{
31985iterator<int,int,int> t; return 0;
31986  ;
31987  return 0;
31988}
31989_ACEOF
31990rm -f conftest.$ac_objext
31991if { (ac_try="$ac_compile"
31992case "(($ac_try" in
31993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31994  *) ac_try_echo=$ac_try;;
31995esac
31996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31997  (eval "$ac_compile") 2>conftest.er1
31998  ac_status=$?
31999  grep -v '^ *+' conftest.er1 >conftest.err
32000  rm -f conftest.er1
32001  cat conftest.err >&5
32002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32003  (exit $ac_status); } &&
32004	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32005  { (case "(($ac_try" in
32006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32007  *) ac_try_echo=$ac_try;;
32008esac
32009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32010  (eval "$ac_try") 2>&5
32011  ac_status=$?
32012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32013  (exit $ac_status); }; } &&
32014	 { ac_try='test -s conftest.$ac_objext'
32015  { (case "(($ac_try" in
32016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32017  *) ac_try_echo=$ac_try;;
32018esac
32019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32020  (eval "$ac_try") 2>&5
32021  ac_status=$?
32022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32023  (exit $ac_status); }; }; then
32024  ac_cv_cxx_have_std_iterator=yes
32025else
32026  echo "$as_me: failed program was:" >&5
32027sed 's/^/| /' conftest.$ac_ext >&5
32028
32029	ac_cv_cxx_have_std_iterator=no
32030fi
32031
32032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32033  ac_ext=c
32034ac_cpp='$CPP $CPPFLAGS'
32035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32037ac_compiler_gnu=$ac_cv_c_compiler_gnu
32038
32039
32040fi
32041{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32042echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32043if test "$ac_cv_cxx_have_std_iterator" = yes
32044then
32045
32046cat >>confdefs.h <<\_ACEOF
32047#define HAVE_STD_ITERATOR 1
32048_ACEOF
32049
32050else
32051
32052cat >>confdefs.h <<\_ACEOF
32053#define HAVE_STD_ITERATOR 0
32054_ACEOF
32055
32056fi
32057
32058{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32059echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32060if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32061  echo $ECHO_N "(cached) $ECHO_C" >&6
32062else
32063
32064  ac_ext=cpp
32065ac_cpp='$CXXCPP $CPPFLAGS'
32066ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32067ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32068ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32069
32070  cat >conftest.$ac_ext <<_ACEOF
32071/* confdefs.h.  */
32072_ACEOF
32073cat confdefs.h >>conftest.$ac_ext
32074cat >>conftest.$ac_ext <<_ACEOF
32075/* end confdefs.h.  */
32076#include <iterator>
32077#ifdef HAVE_NAMESPACES
32078using namespace std;
32079#endif
32080int
32081main ()
32082{
32083bidirectional_iterator<int,int> t; return 0;
32084  ;
32085  return 0;
32086}
32087_ACEOF
32088rm -f conftest.$ac_objext
32089if { (ac_try="$ac_compile"
32090case "(($ac_try" in
32091  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32092  *) ac_try_echo=$ac_try;;
32093esac
32094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32095  (eval "$ac_compile") 2>conftest.er1
32096  ac_status=$?
32097  grep -v '^ *+' conftest.er1 >conftest.err
32098  rm -f conftest.er1
32099  cat conftest.err >&5
32100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32101  (exit $ac_status); } &&
32102	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32103  { (case "(($ac_try" in
32104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32105  *) ac_try_echo=$ac_try;;
32106esac
32107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32108  (eval "$ac_try") 2>&5
32109  ac_status=$?
32110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32111  (exit $ac_status); }; } &&
32112	 { ac_try='test -s conftest.$ac_objext'
32113  { (case "(($ac_try" in
32114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32115  *) ac_try_echo=$ac_try;;
32116esac
32117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32118  (eval "$ac_try") 2>&5
32119  ac_status=$?
32120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32121  (exit $ac_status); }; }; then
32122  ac_cv_cxx_have_bi_iterator=yes
32123else
32124  echo "$as_me: failed program was:" >&5
32125sed 's/^/| /' conftest.$ac_ext >&5
32126
32127	ac_cv_cxx_have_bi_iterator=no
32128fi
32129
32130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32131  ac_ext=c
32132ac_cpp='$CPP $CPPFLAGS'
32133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32135ac_compiler_gnu=$ac_cv_c_compiler_gnu
32136
32137
32138fi
32139{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32140echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32141if test "$ac_cv_cxx_have_bi_iterator" = yes
32142then
32143
32144cat >>confdefs.h <<\_ACEOF
32145#define HAVE_BI_ITERATOR 1
32146_ACEOF
32147
32148else
32149
32150cat >>confdefs.h <<\_ACEOF
32151#define HAVE_BI_ITERATOR 0
32152_ACEOF
32153
32154fi
32155
32156{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32157echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32158if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32159  echo $ECHO_N "(cached) $ECHO_C" >&6
32160else
32161
32162  ac_ext=cpp
32163ac_cpp='$CXXCPP $CPPFLAGS'
32164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32167
32168  cat >conftest.$ac_ext <<_ACEOF
32169/* confdefs.h.  */
32170_ACEOF
32171cat confdefs.h >>conftest.$ac_ext
32172cat >>conftest.$ac_ext <<_ACEOF
32173/* end confdefs.h.  */
32174#include <iterator>
32175#ifdef HAVE_NAMESPACES
32176using namespace std;
32177#endif
32178int
32179main ()
32180{
32181forward_iterator<int,int> t; return 0;
32182  ;
32183  return 0;
32184}
32185_ACEOF
32186rm -f conftest.$ac_objext
32187if { (ac_try="$ac_compile"
32188case "(($ac_try" in
32189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32190  *) ac_try_echo=$ac_try;;
32191esac
32192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32193  (eval "$ac_compile") 2>conftest.er1
32194  ac_status=$?
32195  grep -v '^ *+' conftest.er1 >conftest.err
32196  rm -f conftest.er1
32197  cat conftest.err >&5
32198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32199  (exit $ac_status); } &&
32200	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32201  { (case "(($ac_try" in
32202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32203  *) ac_try_echo=$ac_try;;
32204esac
32205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32206  (eval "$ac_try") 2>&5
32207  ac_status=$?
32208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32209  (exit $ac_status); }; } &&
32210	 { ac_try='test -s conftest.$ac_objext'
32211  { (case "(($ac_try" in
32212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32213  *) ac_try_echo=$ac_try;;
32214esac
32215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32216  (eval "$ac_try") 2>&5
32217  ac_status=$?
32218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32219  (exit $ac_status); }; }; then
32220  ac_cv_cxx_have_fwd_iterator=yes
32221else
32222  echo "$as_me: failed program was:" >&5
32223sed 's/^/| /' conftest.$ac_ext >&5
32224
32225	ac_cv_cxx_have_fwd_iterator=no
32226fi
32227
32228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32229  ac_ext=c
32230ac_cpp='$CPP $CPPFLAGS'
32231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32233ac_compiler_gnu=$ac_cv_c_compiler_gnu
32234
32235
32236fi
32237{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32238echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32239if test "$ac_cv_cxx_have_fwd_iterator" = yes
32240then
32241
32242cat >>confdefs.h <<\_ACEOF
32243#define HAVE_FWD_ITERATOR 1
32244_ACEOF
32245
32246else
32247
32248cat >>confdefs.h <<\_ACEOF
32249#define HAVE_FWD_ITERATOR 0
32250_ACEOF
32251
32252fi
32253
32254
32255{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32256echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32257if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32258  echo $ECHO_N "(cached) $ECHO_C" >&6
32259else
32260  ac_ext=cpp
32261ac_cpp='$CXXCPP $CPPFLAGS'
32262ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32263ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32264ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32265
32266   cat >conftest.$ac_ext <<_ACEOF
32267/* confdefs.h.  */
32268_ACEOF
32269cat confdefs.h >>conftest.$ac_ext
32270cat >>conftest.$ac_ext <<_ACEOF
32271/* end confdefs.h.  */
32272#include <math.h>
32273int
32274main ()
32275{
32276float f; isnan(f);
32277  ;
32278  return 0;
32279}
32280_ACEOF
32281rm -f conftest.$ac_objext
32282if { (ac_try="$ac_compile"
32283case "(($ac_try" in
32284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32285  *) ac_try_echo=$ac_try;;
32286esac
32287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32288  (eval "$ac_compile") 2>conftest.er1
32289  ac_status=$?
32290  grep -v '^ *+' conftest.er1 >conftest.err
32291  rm -f conftest.er1
32292  cat conftest.err >&5
32293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32294  (exit $ac_status); } &&
32295	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32296  { (case "(($ac_try" in
32297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32298  *) ac_try_echo=$ac_try;;
32299esac
32300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32301  (eval "$ac_try") 2>&5
32302  ac_status=$?
32303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32304  (exit $ac_status); }; } &&
32305	 { ac_try='test -s conftest.$ac_objext'
32306  { (case "(($ac_try" in
32307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32308  *) ac_try_echo=$ac_try;;
32309esac
32310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32311  (eval "$ac_try") 2>&5
32312  ac_status=$?
32313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32314  (exit $ac_status); }; }; then
32315  ac_cv_func_isnan_in_math_h=yes
32316else
32317  echo "$as_me: failed program was:" >&5
32318sed 's/^/| /' conftest.$ac_ext >&5
32319
32320	ac_cv_func_isnan_in_math_h=no
32321fi
32322
32323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32324  ac_ext=c
32325ac_cpp='$CPP $CPPFLAGS'
32326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32328ac_compiler_gnu=$ac_cv_c_compiler_gnu
32329
32330fi
32331{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32332echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32333
32334
32335if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32336
32337cat >>confdefs.h <<\_ACEOF
32338#define HAVE_ISNAN_IN_MATH_H 1
32339_ACEOF
32340
32341fi
32342
32343{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32344echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32345if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32346  echo $ECHO_N "(cached) $ECHO_C" >&6
32347else
32348  ac_ext=cpp
32349ac_cpp='$CXXCPP $CPPFLAGS'
32350ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32351ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32352ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32353
32354   cat >conftest.$ac_ext <<_ACEOF
32355/* confdefs.h.  */
32356_ACEOF
32357cat confdefs.h >>conftest.$ac_ext
32358cat >>conftest.$ac_ext <<_ACEOF
32359/* end confdefs.h.  */
32360#include <cmath>
32361int
32362main ()
32363{
32364float f; isnan(f);
32365  ;
32366  return 0;
32367}
32368_ACEOF
32369rm -f conftest.$ac_objext
32370if { (ac_try="$ac_compile"
32371case "(($ac_try" in
32372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32373  *) ac_try_echo=$ac_try;;
32374esac
32375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32376  (eval "$ac_compile") 2>conftest.er1
32377  ac_status=$?
32378  grep -v '^ *+' conftest.er1 >conftest.err
32379  rm -f conftest.er1
32380  cat conftest.err >&5
32381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32382  (exit $ac_status); } &&
32383	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32384  { (case "(($ac_try" in
32385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32386  *) ac_try_echo=$ac_try;;
32387esac
32388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32389  (eval "$ac_try") 2>&5
32390  ac_status=$?
32391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32392  (exit $ac_status); }; } &&
32393	 { ac_try='test -s conftest.$ac_objext'
32394  { (case "(($ac_try" in
32395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32396  *) ac_try_echo=$ac_try;;
32397esac
32398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32399  (eval "$ac_try") 2>&5
32400  ac_status=$?
32401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32402  (exit $ac_status); }; }; then
32403  ac_cv_func_isnan_in_cmath=yes
32404else
32405  echo "$as_me: failed program was:" >&5
32406sed 's/^/| /' conftest.$ac_ext >&5
32407
32408	ac_cv_func_isnan_in_cmath=no
32409fi
32410
32411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32412  ac_ext=c
32413ac_cpp='$CPP $CPPFLAGS'
32414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32416ac_compiler_gnu=$ac_cv_c_compiler_gnu
32417
32418fi
32419{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32420echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32421
32422if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32423
32424cat >>confdefs.h <<\_ACEOF
32425#define HAVE_ISNAN_IN_CMATH 1
32426_ACEOF
32427
32428fi
32429
32430{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32431echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32432if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32433  echo $ECHO_N "(cached) $ECHO_C" >&6
32434else
32435  ac_ext=cpp
32436ac_cpp='$CXXCPP $CPPFLAGS'
32437ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32438ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32439ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32440
32441   cat >conftest.$ac_ext <<_ACEOF
32442/* confdefs.h.  */
32443_ACEOF
32444cat confdefs.h >>conftest.$ac_ext
32445cat >>conftest.$ac_ext <<_ACEOF
32446/* end confdefs.h.  */
32447#include <cmath>
32448int
32449main ()
32450{
32451float f; std::isnan(f);
32452  ;
32453  return 0;
32454}
32455_ACEOF
32456rm -f conftest.$ac_objext
32457if { (ac_try="$ac_compile"
32458case "(($ac_try" in
32459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32460  *) ac_try_echo=$ac_try;;
32461esac
32462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32463  (eval "$ac_compile") 2>conftest.er1
32464  ac_status=$?
32465  grep -v '^ *+' conftest.er1 >conftest.err
32466  rm -f conftest.er1
32467  cat conftest.err >&5
32468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32469  (exit $ac_status); } &&
32470	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32471  { (case "(($ac_try" in
32472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32473  *) ac_try_echo=$ac_try;;
32474esac
32475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32476  (eval "$ac_try") 2>&5
32477  ac_status=$?
32478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32479  (exit $ac_status); }; } &&
32480	 { ac_try='test -s conftest.$ac_objext'
32481  { (case "(($ac_try" in
32482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32483  *) ac_try_echo=$ac_try;;
32484esac
32485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32486  (eval "$ac_try") 2>&5
32487  ac_status=$?
32488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32489  (exit $ac_status); }; }; then
32490  ac_cv_func_std_isnan_in_cmath=yes
32491else
32492  echo "$as_me: failed program was:" >&5
32493sed 's/^/| /' conftest.$ac_ext >&5
32494
32495	ac_cv_func_std_isnan_in_cmath=no
32496fi
32497
32498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32499  ac_ext=c
32500ac_cpp='$CPP $CPPFLAGS'
32501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32503ac_compiler_gnu=$ac_cv_c_compiler_gnu
32504
32505fi
32506{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32507echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32508
32509if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32510
32511cat >>confdefs.h <<\_ACEOF
32512#define HAVE_STD_ISNAN_IN_CMATH 1
32513_ACEOF
32514
32515fi
32516
32517
32518{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32519echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32520if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32521  echo $ECHO_N "(cached) $ECHO_C" >&6
32522else
32523  ac_ext=cpp
32524ac_cpp='$CXXCPP $CPPFLAGS'
32525ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32526ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32527ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32528
32529   cat >conftest.$ac_ext <<_ACEOF
32530/* confdefs.h.  */
32531_ACEOF
32532cat confdefs.h >>conftest.$ac_ext
32533cat >>conftest.$ac_ext <<_ACEOF
32534/* end confdefs.h.  */
32535#include <math.h>
32536int
32537main ()
32538{
32539float f; isinf(f);
32540  ;
32541  return 0;
32542}
32543_ACEOF
32544rm -f conftest.$ac_objext
32545if { (ac_try="$ac_compile"
32546case "(($ac_try" in
32547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32548  *) ac_try_echo=$ac_try;;
32549esac
32550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32551  (eval "$ac_compile") 2>conftest.er1
32552  ac_status=$?
32553  grep -v '^ *+' conftest.er1 >conftest.err
32554  rm -f conftest.er1
32555  cat conftest.err >&5
32556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32557  (exit $ac_status); } &&
32558	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32559  { (case "(($ac_try" in
32560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32561  *) ac_try_echo=$ac_try;;
32562esac
32563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32564  (eval "$ac_try") 2>&5
32565  ac_status=$?
32566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32567  (exit $ac_status); }; } &&
32568	 { ac_try='test -s conftest.$ac_objext'
32569  { (case "(($ac_try" in
32570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32571  *) ac_try_echo=$ac_try;;
32572esac
32573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32574  (eval "$ac_try") 2>&5
32575  ac_status=$?
32576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32577  (exit $ac_status); }; }; then
32578  ac_cv_func_isinf_in_math_h=yes
32579else
32580  echo "$as_me: failed program was:" >&5
32581sed 's/^/| /' conftest.$ac_ext >&5
32582
32583	ac_cv_func_isinf_in_math_h=no
32584fi
32585
32586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32587  ac_ext=c
32588ac_cpp='$CPP $CPPFLAGS'
32589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32591ac_compiler_gnu=$ac_cv_c_compiler_gnu
32592
32593fi
32594{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32595echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32596
32597if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32598
32599cat >>confdefs.h <<\_ACEOF
32600#define HAVE_ISINF_IN_MATH_H 1
32601_ACEOF
32602
32603fi
32604
32605{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32606echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32607if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32608  echo $ECHO_N "(cached) $ECHO_C" >&6
32609else
32610  ac_ext=cpp
32611ac_cpp='$CXXCPP $CPPFLAGS'
32612ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32613ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32614ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32615
32616   cat >conftest.$ac_ext <<_ACEOF
32617/* confdefs.h.  */
32618_ACEOF
32619cat confdefs.h >>conftest.$ac_ext
32620cat >>conftest.$ac_ext <<_ACEOF
32621/* end confdefs.h.  */
32622#include <cmath>
32623int
32624main ()
32625{
32626float f; isinf(f);
32627  ;
32628  return 0;
32629}
32630_ACEOF
32631rm -f conftest.$ac_objext
32632if { (ac_try="$ac_compile"
32633case "(($ac_try" in
32634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32635  *) ac_try_echo=$ac_try;;
32636esac
32637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32638  (eval "$ac_compile") 2>conftest.er1
32639  ac_status=$?
32640  grep -v '^ *+' conftest.er1 >conftest.err
32641  rm -f conftest.er1
32642  cat conftest.err >&5
32643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32644  (exit $ac_status); } &&
32645	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32646  { (case "(($ac_try" in
32647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32648  *) ac_try_echo=$ac_try;;
32649esac
32650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32651  (eval "$ac_try") 2>&5
32652  ac_status=$?
32653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32654  (exit $ac_status); }; } &&
32655	 { ac_try='test -s conftest.$ac_objext'
32656  { (case "(($ac_try" in
32657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32658  *) ac_try_echo=$ac_try;;
32659esac
32660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32661  (eval "$ac_try") 2>&5
32662  ac_status=$?
32663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32664  (exit $ac_status); }; }; then
32665  ac_cv_func_isinf_in_cmath=yes
32666else
32667  echo "$as_me: failed program was:" >&5
32668sed 's/^/| /' conftest.$ac_ext >&5
32669
32670	ac_cv_func_isinf_in_cmath=no
32671fi
32672
32673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32674  ac_ext=c
32675ac_cpp='$CPP $CPPFLAGS'
32676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32678ac_compiler_gnu=$ac_cv_c_compiler_gnu
32679
32680fi
32681{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32682echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32683
32684if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32685
32686cat >>confdefs.h <<\_ACEOF
32687#define HAVE_ISINF_IN_CMATH 1
32688_ACEOF
32689
32690fi
32691
32692{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32693echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32694if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32695  echo $ECHO_N "(cached) $ECHO_C" >&6
32696else
32697  ac_ext=cpp
32698ac_cpp='$CXXCPP $CPPFLAGS'
32699ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32700ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32701ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32702
32703   cat >conftest.$ac_ext <<_ACEOF
32704/* confdefs.h.  */
32705_ACEOF
32706cat confdefs.h >>conftest.$ac_ext
32707cat >>conftest.$ac_ext <<_ACEOF
32708/* end confdefs.h.  */
32709#include <cmath>
32710int
32711main ()
32712{
32713float f; std::isinf(f)}
32714  ;
32715  return 0;
32716}
32717_ACEOF
32718rm -f conftest.$ac_objext
32719if { (ac_try="$ac_compile"
32720case "(($ac_try" in
32721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32722  *) ac_try_echo=$ac_try;;
32723esac
32724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32725  (eval "$ac_compile") 2>conftest.er1
32726  ac_status=$?
32727  grep -v '^ *+' conftest.er1 >conftest.err
32728  rm -f conftest.er1
32729  cat conftest.err >&5
32730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32731  (exit $ac_status); } &&
32732	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32733  { (case "(($ac_try" in
32734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32735  *) ac_try_echo=$ac_try;;
32736esac
32737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32738  (eval "$ac_try") 2>&5
32739  ac_status=$?
32740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32741  (exit $ac_status); }; } &&
32742	 { ac_try='test -s conftest.$ac_objext'
32743  { (case "(($ac_try" in
32744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32745  *) ac_try_echo=$ac_try;;
32746esac
32747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32748  (eval "$ac_try") 2>&5
32749  ac_status=$?
32750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32751  (exit $ac_status); }; }; then
32752  ac_cv_func_std_isinf_in_cmath=yes
32753else
32754  echo "$as_me: failed program was:" >&5
32755sed 's/^/| /' conftest.$ac_ext >&5
32756
32757	ac_cv_func_std_isinf_in_cmath=no
32758fi
32759
32760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32761  ac_ext=c
32762ac_cpp='$CPP $CPPFLAGS'
32763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32765ac_compiler_gnu=$ac_cv_c_compiler_gnu
32766
32767fi
32768{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32769echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32770
32771if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32772
32773cat >>confdefs.h <<\_ACEOF
32774#define HAVE_STD_ISINF_IN_CMATH 1
32775_ACEOF
32776
32777fi
32778
32779{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32780echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32781if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32782  echo $ECHO_N "(cached) $ECHO_C" >&6
32783else
32784  ac_ext=cpp
32785ac_cpp='$CXXCPP $CPPFLAGS'
32786ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32787ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32788ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32789
32790   cat >conftest.$ac_ext <<_ACEOF
32791/* confdefs.h.  */
32792_ACEOF
32793cat confdefs.h >>conftest.$ac_ext
32794cat >>conftest.$ac_ext <<_ACEOF
32795/* end confdefs.h.  */
32796#include <ieeefp.h>
32797int
32798main ()
32799{
32800float f; finite(f);
32801  ;
32802  return 0;
32803}
32804_ACEOF
32805rm -f conftest.$ac_objext
32806if { (ac_try="$ac_compile"
32807case "(($ac_try" in
32808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32809  *) ac_try_echo=$ac_try;;
32810esac
32811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32812  (eval "$ac_compile") 2>conftest.er1
32813  ac_status=$?
32814  grep -v '^ *+' conftest.er1 >conftest.err
32815  rm -f conftest.er1
32816  cat conftest.err >&5
32817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32818  (exit $ac_status); } &&
32819	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32820  { (case "(($ac_try" in
32821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32822  *) ac_try_echo=$ac_try;;
32823esac
32824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32825  (eval "$ac_try") 2>&5
32826  ac_status=$?
32827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32828  (exit $ac_status); }; } &&
32829	 { ac_try='test -s conftest.$ac_objext'
32830  { (case "(($ac_try" in
32831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32832  *) ac_try_echo=$ac_try;;
32833esac
32834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32835  (eval "$ac_try") 2>&5
32836  ac_status=$?
32837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32838  (exit $ac_status); }; }; then
32839  ac_cv_func_finite_in_ieeefp_h=yes
32840else
32841  echo "$as_me: failed program was:" >&5
32842sed 's/^/| /' conftest.$ac_ext >&5
32843
32844	ac_cv_func_finite_in_ieeefp_h=no
32845fi
32846
32847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32848  ac_ext=c
32849ac_cpp='$CPP $CPPFLAGS'
32850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32852ac_compiler_gnu=$ac_cv_c_compiler_gnu
32853
32854fi
32855{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32856echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
32857
32858if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
32859
32860cat >>confdefs.h <<\_ACEOF
32861#define HAVE_FINITE_IN_IEEEFP_H 1
32862_ACEOF
32863
32864fi
32865
32866
32867
32868if test "$llvm_cv_platform_type" = "Unix" ; then
32869
32870
32871for ac_header in stdlib.h unistd.h
32872do
32873as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32874if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32875  { echo "$as_me:$LINENO: checking for $ac_header" >&5
32876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32877if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32878  echo $ECHO_N "(cached) $ECHO_C" >&6
32879fi
32880ac_res=`eval echo '${'$as_ac_Header'}'`
32881	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32882echo "${ECHO_T}$ac_res" >&6; }
32883else
32884  # Is the header compilable?
32885{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32886echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32887cat >conftest.$ac_ext <<_ACEOF
32888/* confdefs.h.  */
32889_ACEOF
32890cat confdefs.h >>conftest.$ac_ext
32891cat >>conftest.$ac_ext <<_ACEOF
32892/* end confdefs.h.  */
32893$ac_includes_default
32894#include <$ac_header>
32895_ACEOF
32896rm -f conftest.$ac_objext
32897if { (ac_try="$ac_compile"
32898case "(($ac_try" in
32899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32900  *) ac_try_echo=$ac_try;;
32901esac
32902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32903  (eval "$ac_compile") 2>conftest.er1
32904  ac_status=$?
32905  grep -v '^ *+' conftest.er1 >conftest.err
32906  rm -f conftest.er1
32907  cat conftest.err >&5
32908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32909  (exit $ac_status); } &&
32910	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32911  { (case "(($ac_try" in
32912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32913  *) ac_try_echo=$ac_try;;
32914esac
32915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32916  (eval "$ac_try") 2>&5
32917  ac_status=$?
32918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32919  (exit $ac_status); }; } &&
32920	 { ac_try='test -s conftest.$ac_objext'
32921  { (case "(($ac_try" in
32922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32923  *) ac_try_echo=$ac_try;;
32924esac
32925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32926  (eval "$ac_try") 2>&5
32927  ac_status=$?
32928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32929  (exit $ac_status); }; }; then
32930  ac_header_compiler=yes
32931else
32932  echo "$as_me: failed program was:" >&5
32933sed 's/^/| /' conftest.$ac_ext >&5
32934
32935	ac_header_compiler=no
32936fi
32937
32938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32939{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32940echo "${ECHO_T}$ac_header_compiler" >&6; }
32941
32942# Is the header present?
32943{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
32944echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32945cat >conftest.$ac_ext <<_ACEOF
32946/* confdefs.h.  */
32947_ACEOF
32948cat confdefs.h >>conftest.$ac_ext
32949cat >>conftest.$ac_ext <<_ACEOF
32950/* end confdefs.h.  */
32951#include <$ac_header>
32952_ACEOF
32953if { (ac_try="$ac_cpp conftest.$ac_ext"
32954case "(($ac_try" in
32955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32956  *) ac_try_echo=$ac_try;;
32957esac
32958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32959  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32960  ac_status=$?
32961  grep -v '^ *+' conftest.er1 >conftest.err
32962  rm -f conftest.er1
32963  cat conftest.err >&5
32964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32965  (exit $ac_status); } >/dev/null; then
32966  if test -s conftest.err; then
32967    ac_cpp_err=$ac_c_preproc_warn_flag
32968    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32969  else
32970    ac_cpp_err=
32971  fi
32972else
32973  ac_cpp_err=yes
32974fi
32975if test -z "$ac_cpp_err"; then
32976  ac_header_preproc=yes
32977else
32978  echo "$as_me: failed program was:" >&5
32979sed 's/^/| /' conftest.$ac_ext >&5
32980
32981  ac_header_preproc=no
32982fi
32983
32984rm -f conftest.err conftest.$ac_ext
32985{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32986echo "${ECHO_T}$ac_header_preproc" >&6; }
32987
32988# So?  What about this header?
32989case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32990  yes:no: )
32991    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32992echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32993    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32994echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32995    ac_header_preproc=yes
32996    ;;
32997  no:yes:* )
32998    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32999echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33000    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33001echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33002    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33003echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33004    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33005echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33006    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33007echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33008    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33009echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33010    ( cat <<\_ASBOX
33011## ----------------------------------- ##
33012## Report this to llvmbugs@cs.uiuc.edu ##
33013## ----------------------------------- ##
33014_ASBOX
33015     ) | sed "s/^/$as_me: WARNING:     /" >&2
33016    ;;
33017esac
33018{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33021  echo $ECHO_N "(cached) $ECHO_C" >&6
33022else
33023  eval "$as_ac_Header=\$ac_header_preproc"
33024fi
33025ac_res=`eval echo '${'$as_ac_Header'}'`
33026	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33027echo "${ECHO_T}$ac_res" >&6; }
33028
33029fi
33030if test `eval echo '${'$as_ac_Header'}'` = yes; then
33031  cat >>confdefs.h <<_ACEOF
33032#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33033_ACEOF
33034
33035fi
33036
33037done
33038
33039
33040for ac_func in getpagesize
33041do
33042as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33043{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33044echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33045if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33046  echo $ECHO_N "(cached) $ECHO_C" >&6
33047else
33048  cat >conftest.$ac_ext <<_ACEOF
33049/* confdefs.h.  */
33050_ACEOF
33051cat confdefs.h >>conftest.$ac_ext
33052cat >>conftest.$ac_ext <<_ACEOF
33053/* end confdefs.h.  */
33054/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33055   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33056#define $ac_func innocuous_$ac_func
33057
33058/* System header to define __stub macros and hopefully few prototypes,
33059    which can conflict with char $ac_func (); below.
33060    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33061    <limits.h> exists even on freestanding compilers.  */
33062
33063#ifdef __STDC__
33064# include <limits.h>
33065#else
33066# include <assert.h>
33067#endif
33068
33069#undef $ac_func
33070
33071/* Override any GCC internal prototype to avoid an error.
33072   Use char because int might match the return type of a GCC
33073   builtin and then its argument prototype would still apply.  */
33074#ifdef __cplusplus
33075extern "C"
33076#endif
33077char $ac_func ();
33078/* The GNU C library defines this for functions which it implements
33079    to always fail with ENOSYS.  Some functions are actually named
33080    something starting with __ and the normal name is an alias.  */
33081#if defined __stub_$ac_func || defined __stub___$ac_func
33082choke me
33083#endif
33084
33085int
33086main ()
33087{
33088return $ac_func ();
33089  ;
33090  return 0;
33091}
33092_ACEOF
33093rm -f conftest.$ac_objext conftest$ac_exeext
33094if { (ac_try="$ac_link"
33095case "(($ac_try" in
33096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33097  *) ac_try_echo=$ac_try;;
33098esac
33099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33100  (eval "$ac_link") 2>conftest.er1
33101  ac_status=$?
33102  grep -v '^ *+' conftest.er1 >conftest.err
33103  rm -f conftest.er1
33104  cat conftest.err >&5
33105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33106  (exit $ac_status); } &&
33107	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33108  { (case "(($ac_try" in
33109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33110  *) ac_try_echo=$ac_try;;
33111esac
33112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33113  (eval "$ac_try") 2>&5
33114  ac_status=$?
33115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33116  (exit $ac_status); }; } &&
33117	 { ac_try='test -s conftest$ac_exeext'
33118  { (case "(($ac_try" in
33119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33120  *) ac_try_echo=$ac_try;;
33121esac
33122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33123  (eval "$ac_try") 2>&5
33124  ac_status=$?
33125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33126  (exit $ac_status); }; }; then
33127  eval "$as_ac_var=yes"
33128else
33129  echo "$as_me: failed program was:" >&5
33130sed 's/^/| /' conftest.$ac_ext >&5
33131
33132	eval "$as_ac_var=no"
33133fi
33134
33135rm -f core conftest.err conftest.$ac_objext \
33136      conftest$ac_exeext conftest.$ac_ext
33137fi
33138ac_res=`eval echo '${'$as_ac_var'}'`
33139	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33140echo "${ECHO_T}$ac_res" >&6; }
33141if test `eval echo '${'$as_ac_var'}'` = yes; then
33142  cat >>confdefs.h <<_ACEOF
33143#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33144_ACEOF
33145
33146fi
33147done
33148
33149{ echo "$as_me:$LINENO: checking for working mmap" >&5
33150echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33151if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33152  echo $ECHO_N "(cached) $ECHO_C" >&6
33153else
33154  if test "$cross_compiling" = yes; then
33155  ac_cv_func_mmap_fixed_mapped=no
33156else
33157  cat >conftest.$ac_ext <<_ACEOF
33158/* confdefs.h.  */
33159_ACEOF
33160cat confdefs.h >>conftest.$ac_ext
33161cat >>conftest.$ac_ext <<_ACEOF
33162/* end confdefs.h.  */
33163$ac_includes_default
33164/* malloc might have been renamed as rpl_malloc. */
33165#undef malloc
33166
33167/* Thanks to Mike Haertel and Jim Avera for this test.
33168   Here is a matrix of mmap possibilities:
33169	mmap private not fixed
33170	mmap private fixed at somewhere currently unmapped
33171	mmap private fixed at somewhere already mapped
33172	mmap shared not fixed
33173	mmap shared fixed at somewhere currently unmapped
33174	mmap shared fixed at somewhere already mapped
33175   For private mappings, we should verify that changes cannot be read()
33176   back from the file, nor mmap's back from the file at a different
33177   address.  (There have been systems where private was not correctly
33178   implemented like the infamous i386 svr4.0, and systems where the
33179   VM page cache was not coherent with the file system buffer cache
33180   like early versions of FreeBSD and possibly contemporary NetBSD.)
33181   For shared mappings, we should conversely verify that changes get
33182   propagated back to all the places they're supposed to be.
33183
33184   Grep wants private fixed already mapped.
33185   The main things grep needs to know about mmap are:
33186   * does it exist and is it safe to write into the mmap'd area
33187   * how to use it (BSD variants)  */
33188
33189#include <fcntl.h>
33190#include <sys/mman.h>
33191
33192#if !STDC_HEADERS && !HAVE_STDLIB_H
33193char *malloc ();
33194#endif
33195
33196/* This mess was copied from the GNU getpagesize.h.  */
33197#if !HAVE_GETPAGESIZE
33198/* Assume that all systems that can run configure have sys/param.h.  */
33199# if !HAVE_SYS_PARAM_H
33200#  define HAVE_SYS_PARAM_H 1
33201# endif
33202
33203# ifdef _SC_PAGESIZE
33204#  define getpagesize() sysconf(_SC_PAGESIZE)
33205# else /* no _SC_PAGESIZE */
33206#  if HAVE_SYS_PARAM_H
33207#   include <sys/param.h>
33208#   ifdef EXEC_PAGESIZE
33209#    define getpagesize() EXEC_PAGESIZE
33210#   else /* no EXEC_PAGESIZE */
33211#    ifdef NBPG
33212#     define getpagesize() NBPG * CLSIZE
33213#     ifndef CLSIZE
33214#      define CLSIZE 1
33215#     endif /* no CLSIZE */
33216#    else /* no NBPG */
33217#     ifdef NBPC
33218#      define getpagesize() NBPC
33219#     else /* no NBPC */
33220#      ifdef PAGESIZE
33221#       define getpagesize() PAGESIZE
33222#      endif /* PAGESIZE */
33223#     endif /* no NBPC */
33224#    endif /* no NBPG */
33225#   endif /* no EXEC_PAGESIZE */
33226#  else /* no HAVE_SYS_PARAM_H */
33227#   define getpagesize() 8192	/* punt totally */
33228#  endif /* no HAVE_SYS_PARAM_H */
33229# endif /* no _SC_PAGESIZE */
33230
33231#endif /* no HAVE_GETPAGESIZE */
33232
33233int
33234main ()
33235{
33236  char *data, *data2, *data3;
33237  int i, pagesize;
33238  int fd;
33239
33240  pagesize = getpagesize ();
33241
33242  /* First, make a file with some known garbage in it. */
33243  data = (char *) malloc (pagesize);
33244  if (!data)
33245    return 1;
33246  for (i = 0; i < pagesize; ++i)
33247    *(data + i) = rand ();
33248  umask (0);
33249  fd = creat ("conftest.mmap", 0600);
33250  if (fd < 0)
33251    return 1;
33252  if (write (fd, data, pagesize) != pagesize)
33253    return 1;
33254  close (fd);
33255
33256  /* Next, try to mmap the file at a fixed address which already has
33257     something else allocated at it.  If we can, also make sure that
33258     we see the same garbage.  */
33259  fd = open ("conftest.mmap", O_RDWR);
33260  if (fd < 0)
33261    return 1;
33262  data2 = (char *) malloc (2 * pagesize);
33263  if (!data2)
33264    return 1;
33265  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33266  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33267		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
33268    return 1;
33269  for (i = 0; i < pagesize; ++i)
33270    if (*(data + i) != *(data2 + i))
33271      return 1;
33272
33273  /* Finally, make sure that changes to the mapped area do not
33274     percolate back to the file as seen by read().  (This is a bug on
33275     some variants of i386 svr4.0.)  */
33276  for (i = 0; i < pagesize; ++i)
33277    *(data2 + i) = *(data2 + i) + 1;
33278  data3 = (char *) malloc (pagesize);
33279  if (!data3)
33280    return 1;
33281  if (read (fd, data3, pagesize) != pagesize)
33282    return 1;
33283  for (i = 0; i < pagesize; ++i)
33284    if (*(data + i) != *(data3 + i))
33285      return 1;
33286  close (fd);
33287  return 0;
33288}
33289_ACEOF
33290rm -f conftest$ac_exeext
33291if { (ac_try="$ac_link"
33292case "(($ac_try" in
33293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33294  *) ac_try_echo=$ac_try;;
33295esac
33296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33297  (eval "$ac_link") 2>&5
33298  ac_status=$?
33299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33300  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33301  { (case "(($ac_try" in
33302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33303  *) ac_try_echo=$ac_try;;
33304esac
33305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33306  (eval "$ac_try") 2>&5
33307  ac_status=$?
33308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33309  (exit $ac_status); }; }; then
33310  ac_cv_func_mmap_fixed_mapped=yes
33311else
33312  echo "$as_me: program exited with status $ac_status" >&5
33313echo "$as_me: failed program was:" >&5
33314sed 's/^/| /' conftest.$ac_ext >&5
33315
33316( exit $ac_status )
33317ac_cv_func_mmap_fixed_mapped=no
33318fi
33319rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33320fi
33321
33322
33323fi
33324{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33325echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33326if test $ac_cv_func_mmap_fixed_mapped = yes; then
33327
33328cat >>confdefs.h <<\_ACEOF
33329#define HAVE_MMAP 1
33330_ACEOF
33331
33332fi
33333rm -f conftest.mmap
33334
33335  { echo "$as_me:$LINENO: checking for mmap of files" >&5
33336echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33337if test "${ac_cv_func_mmap_file+set}" = set; then
33338  echo $ECHO_N "(cached) $ECHO_C" >&6
33339else
33340   ac_ext=c
33341ac_cpp='$CPP $CPPFLAGS'
33342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33344ac_compiler_gnu=$ac_cv_c_compiler_gnu
33345
33346  if test "$cross_compiling" = yes; then
33347  ac_cv_func_mmap_file=no
33348else
33349  cat >conftest.$ac_ext <<_ACEOF
33350
33351    /* confdefs.h.  */
33352_ACEOF
33353cat confdefs.h >>conftest.$ac_ext
33354cat >>conftest.$ac_ext <<_ACEOF
33355/* end confdefs.h.  */
33356
33357#include <sys/types.h>
33358#include <sys/mman.h>
33359#include <fcntl.h>
33360
33361int
33362main ()
33363{
33364
33365  int fd;
33366  fd = creat ("foo",0777);
33367  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33368  unlink ("foo");
33369  return (fd != (int) MAP_FAILED);
33370  ;
33371  return 0;
33372}
33373_ACEOF
33374rm -f conftest$ac_exeext
33375if { (ac_try="$ac_link"
33376case "(($ac_try" in
33377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33378  *) ac_try_echo=$ac_try;;
33379esac
33380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33381  (eval "$ac_link") 2>&5
33382  ac_status=$?
33383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33384  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33385  { (case "(($ac_try" in
33386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33387  *) ac_try_echo=$ac_try;;
33388esac
33389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33390  (eval "$ac_try") 2>&5
33391  ac_status=$?
33392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33393  (exit $ac_status); }; }; then
33394  ac_cv_func_mmap_file=yes
33395else
33396  echo "$as_me: program exited with status $ac_status" >&5
33397echo "$as_me: failed program was:" >&5
33398sed 's/^/| /' conftest.$ac_ext >&5
33399
33400( exit $ac_status )
33401ac_cv_func_mmap_file=no
33402fi
33403rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33404fi
33405
33406
33407  ac_ext=c
33408ac_cpp='$CPP $CPPFLAGS'
33409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33411ac_compiler_gnu=$ac_cv_c_compiler_gnu
33412
33413
33414fi
33415{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33416echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33417if test "$ac_cv_func_mmap_file" = yes; then
33418
33419cat >>confdefs.h <<\_ACEOF
33420#define HAVE_MMAP_FILE
33421_ACEOF
33422
33423   MMAP_FILE=yes
33424
33425fi
33426
33427  { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33428echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33429if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33430  echo $ECHO_N "(cached) $ECHO_C" >&6
33431else
33432  if test "$llvm_cv_os_type" = "Interix" ; then
33433   ac_cv_need_dev_zero_for_mmap=yes
33434 else
33435   ac_cv_need_dev_zero_for_mmap=no
33436 fi
33437
33438fi
33439{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33440echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33441if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33442
33443cat >>confdefs.h <<\_ACEOF
33444#define NEED_DEV_ZERO_FOR_MMAP 1
33445_ACEOF
33446
33447fi
33448
33449  if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33450  then
33451    { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33452echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33453  fi
33454  if test "$ac_cv_func_mmap_file" = "no"
33455  then
33456    { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33457echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33458  fi
33459fi
33460
33461
33462{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33463echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33464if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33465  echo $ECHO_N "(cached) $ECHO_C" >&6
33466else
33467  llvm_cv_llvmgcc_sanity="no"
33468if test -x "$LLVMGCC" ; then
33469  cp /dev/null conftest.c
33470  "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33471      grep 'target datalayout =' > /dev/null 2>&1
33472  if test $? -eq 0 ; then
33473    llvm_cv_llvmgcc_sanity="yes"
33474  fi
33475  rm conftest.c
33476fi
33477fi
33478{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33479echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33480
33481if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33482  { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33483echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33484  llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33485  LLVMCC1=$llvmcc1path
33486
33487  llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33488  LLVMCC1PLUS=$llvmcc1pluspath
33489
33490  llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33491  LLVMGCCDIR=$llvmgccdir
33492
33493  llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33494  LLVMGCCLIBEXEC=$llvmgcclibexec
33495
33496  llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33497  llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33498  LLVMGCC_VERSION=$llvmgccversion
33499
33500  LLVMGCC_MAJVERS=$llvmgccmajvers
33501
33502  llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
33503  LLVMGCC_LANGS=$llvmgcclangs
33504
33505  { echo "$as_me:$LINENO: result: ok" >&5
33506echo "${ECHO_T}ok" >&6; }
33507fi
33508
33509SHLIBEXT=$libltdl_cv_shlibext
33510
33511
33512# Translate the various configuration directories and other basic
33513# information into substitutions that will end up in Makefile.config.in
33514# that these configured values can be used by the makefiles
33515if test "${prefix}" = "NONE" ; then
33516  prefix="/usr/local"
33517fi
33518eval LLVM_PREFIX="${prefix}";
33519eval LLVM_BINDIR="${prefix}/bin";
33520eval LLVM_LIBDIR="${prefix}/lib";
33521eval LLVM_DATADIR="${prefix}/share/llvm";
33522eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33523eval LLVM_ETCDIR="${prefix}/etc/llvm";
33524eval LLVM_INCLUDEDIR="${prefix}/include";
33525eval LLVM_INFODIR="${prefix}/info";
33526eval LLVM_MANDIR="${prefix}/man";
33527LLVM_CONFIGTIME=`date`
33528
33529
33530
33531
33532
33533
33534
33535
33536
33537
33538
33539# Place the various directores into the config.h file as #defines so that we
33540# can know about the installation paths within LLVM.
33541
33542cat >>confdefs.h <<_ACEOF
33543#define LLVM_PREFIX "$LLVM_PREFIX"
33544_ACEOF
33545
33546
33547cat >>confdefs.h <<_ACEOF
33548#define LLVM_BINDIR "$LLVM_BINDIR"
33549_ACEOF
33550
33551
33552cat >>confdefs.h <<_ACEOF
33553#define LLVM_LIBDIR "$LLVM_LIBDIR"
33554_ACEOF
33555
33556
33557cat >>confdefs.h <<_ACEOF
33558#define LLVM_DATADIR "$LLVM_DATADIR"
33559_ACEOF
33560
33561
33562cat >>confdefs.h <<_ACEOF
33563#define LLVM_DATADIR "$LLVM_DOCSDIR"
33564_ACEOF
33565
33566
33567cat >>confdefs.h <<_ACEOF
33568#define LLVM_ETCDIR "$LLVM_ETCDIR"
33569_ACEOF
33570
33571
33572cat >>confdefs.h <<_ACEOF
33573#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33574_ACEOF
33575
33576
33577cat >>confdefs.h <<_ACEOF
33578#define LLVM_INFODIR "$LLVM_INFODIR"
33579_ACEOF
33580
33581
33582cat >>confdefs.h <<_ACEOF
33583#define LLVM_MANDIR "$LLVM_MANDIR"
33584_ACEOF
33585
33586
33587cat >>confdefs.h <<_ACEOF
33588#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33589_ACEOF
33590
33591
33592
33593ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
33594
33595ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
33596
33597ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
33598
33599ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
33600
33601ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
33602
33603
33604ac_config_files="$ac_config_files Makefile.config"
33605
33606
33607ac_config_files="$ac_config_files llvm.spec"
33608
33609
33610ac_config_files="$ac_config_files docs/doxygen.cfg"
33611
33612
33613ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
33614
33615
33616ac_config_commands="$ac_config_commands setup"
33617
33618ac_config_commands="$ac_config_commands Makefile"
33619
33620
33621ac_config_commands="$ac_config_commands Makefile.common"
33622
33623
33624ac_config_commands="$ac_config_commands examples/Makefile"
33625
33626
33627ac_config_commands="$ac_config_commands lib/Makefile"
33628
33629
33630ac_config_commands="$ac_config_commands runtime/Makefile"
33631
33632
33633ac_config_commands="$ac_config_commands test/Makefile"
33634
33635
33636ac_config_commands="$ac_config_commands test/Makefile.tests"
33637
33638
33639ac_config_commands="$ac_config_commands tools/Makefile"
33640
33641
33642ac_config_commands="$ac_config_commands utils/Makefile"
33643
33644
33645ac_config_commands="$ac_config_commands projects/Makefile"
33646
33647
33648
33649cat >confcache <<\_ACEOF
33650# This file is a shell script that caches the results of configure
33651# tests run on this system so they can be shared between configure
33652# scripts and configure runs, see configure's option --config-cache.
33653# It is not useful on other systems.  If it contains results you don't
33654# want to keep, you may remove or edit it.
33655#
33656# config.status only pays attention to the cache file if you give it
33657# the --recheck option to rerun configure.
33658#
33659# `ac_cv_env_foo' variables (set or unset) will be overridden when
33660# loading this file, other *unset* `ac_cv_foo' will be assigned the
33661# following values.
33662
33663_ACEOF
33664
33665# The following way of writing the cache mishandles newlines in values,
33666# but we know of no workaround that is simple, portable, and efficient.
33667# So, we kill variables containing newlines.
33668# Ultrix sh set writes to stderr and can't be redirected directly,
33669# and sets the high bit in the cache file unless we assign to the vars.
33670(
33671  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33672    eval ac_val=\$$ac_var
33673    case $ac_val in #(
33674    *${as_nl}*)
33675      case $ac_var in #(
33676      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33677echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33678      esac
33679      case $ac_var in #(
33680      _ | IFS | as_nl) ;; #(
33681      *) $as_unset $ac_var ;;
33682      esac ;;
33683    esac
33684  done
33685
33686  (set) 2>&1 |
33687    case $as_nl`(ac_space=' '; set) 2>&1` in #(
33688    *${as_nl}ac_space=\ *)
33689      # `set' does not quote correctly, so add quotes (double-quote
33690      # substitution turns \\\\ into \\, and sed turns \\ into \).
33691      sed -n \
33692	"s/'/'\\\\''/g;
33693	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33694      ;; #(
33695    *)
33696      # `set' quotes correctly as required by POSIX, so do not add quotes.
33697      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33698      ;;
33699    esac |
33700    sort
33701) |
33702  sed '
33703     /^ac_cv_env_/b end
33704     t clear
33705     :clear
33706     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33707     t end
33708     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33709     :end' >>confcache
33710if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33711  if test -w "$cache_file"; then
33712    test "x$cache_file" != "x/dev/null" &&
33713      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33714echo "$as_me: updating cache $cache_file" >&6;}
33715    cat confcache >$cache_file
33716  else
33717    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33718echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33719  fi
33720fi
33721rm -f confcache
33722
33723test "x$prefix" = xNONE && prefix=$ac_default_prefix
33724# Let make expand exec_prefix.
33725test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33726
33727DEFS=-DHAVE_CONFIG_H
33728
33729ac_libobjs=
33730ac_ltlibobjs=
33731for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33732  # 1. Remove the extension, and $U if already installed.
33733  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33734  ac_i=`echo "$ac_i" | sed "$ac_script"`
33735  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
33736  #    will be set to the directory where LIBOBJS objects are built.
33737  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33738  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33739done
33740LIBOBJS=$ac_libobjs
33741
33742LTLIBOBJS=$ac_ltlibobjs
33743
33744
33745if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33746  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33747Usually this means the macro was only invoked conditionally." >&5
33748echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33749Usually this means the macro was only invoked conditionally." >&2;}
33750   { (exit 1); exit 1; }; }
33751fi
33752if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33753  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33754Usually this means the macro was only invoked conditionally." >&5
33755echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33756Usually this means the macro was only invoked conditionally." >&2;}
33757   { (exit 1); exit 1; }; }
33758fi
33759
33760: ${CONFIG_STATUS=./config.status}
33761ac_clean_files_save=$ac_clean_files
33762ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33763{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33764echo "$as_me: creating $CONFIG_STATUS" >&6;}
33765cat >$CONFIG_STATUS <<_ACEOF
33766#! $SHELL
33767# Generated by $as_me.
33768# Run this file to recreate the current configuration.
33769# Compiler output produced by configure, useful for debugging
33770# configure, is in config.log if it exists.
33771
33772debug=false
33773ac_cs_recheck=false
33774ac_cs_silent=false
33775SHELL=\${CONFIG_SHELL-$SHELL}
33776_ACEOF
33777
33778cat >>$CONFIG_STATUS <<\_ACEOF
33779## --------------------- ##
33780## M4sh Initialization.  ##
33781## --------------------- ##
33782
33783# Be Bourne compatible
33784if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33785  emulate sh
33786  NULLCMD=:
33787  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33788  # is contrary to our usage.  Disable this feature.
33789  alias -g '${1+"$@"}'='"$@"'
33790  setopt NO_GLOB_SUBST
33791else
33792  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
33793fi
33794BIN_SH=xpg4; export BIN_SH # for Tru64
33795DUALCASE=1; export DUALCASE # for MKS sh
33796
33797
33798# PATH needs CR
33799# Avoid depending upon Character Ranges.
33800as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33801as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33802as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33803as_cr_digits='0123456789'
33804as_cr_alnum=$as_cr_Letters$as_cr_digits
33805
33806# The user is always right.
33807if test "${PATH_SEPARATOR+set}" != set; then
33808  echo "#! /bin/sh" >conf$$.sh
33809  echo  "exit 0"   >>conf$$.sh
33810  chmod +x conf$$.sh
33811  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33812    PATH_SEPARATOR=';'
33813  else
33814    PATH_SEPARATOR=:
33815  fi
33816  rm -f conf$$.sh
33817fi
33818
33819# Support unset when possible.
33820if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33821  as_unset=unset
33822else
33823  as_unset=false
33824fi
33825
33826
33827# IFS
33828# We need space, tab and new line, in precisely that order.  Quoting is
33829# there to prevent editors from complaining about space-tab.
33830# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33831# splitting by setting IFS to empty value.)
33832as_nl='
33833'
33834IFS=" ""	$as_nl"
33835
33836# Find who we are.  Look in the path if we contain no directory separator.
33837case $0 in
33838  *[\\/]* ) as_myself=$0 ;;
33839  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33840for as_dir in $PATH
33841do
33842  IFS=$as_save_IFS
33843  test -z "$as_dir" && as_dir=.
33844  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33845done
33846IFS=$as_save_IFS
33847
33848     ;;
33849esac
33850# We did not find ourselves, most probably we were run as `sh COMMAND'
33851# in which case we are not to be found in the path.
33852if test "x$as_myself" = x; then
33853  as_myself=$0
33854fi
33855if test ! -f "$as_myself"; then
33856  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33857  { (exit 1); exit 1; }
33858fi
33859
33860# Work around bugs in pre-3.0 UWIN ksh.
33861for as_var in ENV MAIL MAILPATH
33862do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33863done
33864PS1='$ '
33865PS2='> '
33866PS4='+ '
33867
33868# NLS nuisances.
33869for as_var in \
33870  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33871  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33872  LC_TELEPHONE LC_TIME
33873do
33874  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33875    eval $as_var=C; export $as_var
33876  else
33877    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33878  fi
33879done
33880
33881# Required to use basename.
33882if expr a : '\(a\)' >/dev/null 2>&1 &&
33883   test "X`expr 00001 : '.*\(...\)'`" = X001; then
33884  as_expr=expr
33885else
33886  as_expr=false
33887fi
33888
33889if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33890  as_basename=basename
33891else
33892  as_basename=false
33893fi
33894
33895
33896# Name of the executable.
33897as_me=`$as_basename -- "$0" ||
33898$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33899	 X"$0" : 'X\(//\)$' \| \
33900	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33901echo X/"$0" |
33902    sed '/^.*\/\([^/][^/]*\)\/*$/{
33903	    s//\1/
33904	    q
33905	  }
33906	  /^X\/\(\/\/\)$/{
33907	    s//\1/
33908	    q
33909	  }
33910	  /^X\/\(\/\).*/{
33911	    s//\1/
33912	    q
33913	  }
33914	  s/.*/./; q'`
33915
33916# CDPATH.
33917$as_unset CDPATH
33918
33919
33920
33921  as_lineno_1=$LINENO
33922  as_lineno_2=$LINENO
33923  test "x$as_lineno_1" != "x$as_lineno_2" &&
33924  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33925
33926  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33927  # uniformly replaced by the line number.  The first 'sed' inserts a
33928  # line-number line after each line using $LINENO; the second 'sed'
33929  # does the real work.  The second script uses 'N' to pair each
33930  # line-number line with the line containing $LINENO, and appends
33931  # trailing '-' during substitution so that $LINENO is not a special
33932  # case at line end.
33933  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33934  # scripts with optimization help from Paolo Bonzini.  Blame Lee
33935  # E. McMahon (1931-1989) for sed's syntax.  :-)
33936  sed -n '
33937    p
33938    /[$]LINENO/=
33939  ' <$as_myself |
33940    sed '
33941      s/[$]LINENO.*/&-/
33942      t lineno
33943      b
33944      :lineno
33945      N
33946      :loop
33947      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33948      t loop
33949      s/-\n.*//
33950    ' >$as_me.lineno &&
33951  chmod +x "$as_me.lineno" ||
33952    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33953   { (exit 1); exit 1; }; }
33954
33955  # Don't try to exec as it changes $[0], causing all sort of problems
33956  # (the dirname of $[0] is not the place where we might find the
33957  # original and so on.  Autoconf is especially sensitive to this).
33958  . "./$as_me.lineno"
33959  # Exit status is that of the last command.
33960  exit
33961}
33962
33963
33964if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33965  as_dirname=dirname
33966else
33967  as_dirname=false
33968fi
33969
33970ECHO_C= ECHO_N= ECHO_T=
33971case `echo -n x` in
33972-n*)
33973  case `echo 'x\c'` in
33974  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
33975  *)   ECHO_C='\c';;
33976  esac;;
33977*)
33978  ECHO_N='-n';;
33979esac
33980
33981if expr a : '\(a\)' >/dev/null 2>&1 &&
33982   test "X`expr 00001 : '.*\(...\)'`" = X001; then
33983  as_expr=expr
33984else
33985  as_expr=false
33986fi
33987
33988rm -f conf$$ conf$$.exe conf$$.file
33989if test -d conf$$.dir; then
33990  rm -f conf$$.dir/conf$$.file
33991else
33992  rm -f conf$$.dir
33993  mkdir conf$$.dir
33994fi
33995echo >conf$$.file
33996if ln -s conf$$.file conf$$ 2>/dev/null; then
33997  as_ln_s='ln -s'
33998  # ... but there are two gotchas:
33999  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34000  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34001  # In both cases, we have to default to `cp -p'.
34002  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34003    as_ln_s='cp -p'
34004elif ln conf$$.file conf$$ 2>/dev/null; then
34005  as_ln_s=ln
34006else
34007  as_ln_s='cp -p'
34008fi
34009rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34010rmdir conf$$.dir 2>/dev/null
34011
34012if mkdir -p . 2>/dev/null; then
34013  as_mkdir_p=:
34014else
34015  test -d ./-p && rmdir ./-p
34016  as_mkdir_p=false
34017fi
34018
34019# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34020# systems may use methods other than mode bits to determine executability.
34021cat >conf$$.file <<_ASEOF
34022#! /bin/sh
34023exit 0
34024_ASEOF
34025chmod +x conf$$.file
34026if test -x conf$$.file >/dev/null 2>&1; then
34027  as_executable_p="test -x"
34028else
34029  as_executable_p=:
34030fi
34031rm -f conf$$.file
34032
34033# Sed expression to map a string onto a valid CPP name.
34034as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34035
34036# Sed expression to map a string onto a valid variable name.
34037as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34038
34039
34040exec 6>&1
34041
34042# Save the log message, to keep $[0] and so on meaningful, and to
34043# report actual input values of CONFIG_FILES etc. instead of their
34044# values after options handling.
34045ac_log="
34046This file was extended by llvm $as_me 2.1svn, which was
34047generated by GNU Autoconf 2.60.  Invocation command line was
34048
34049  CONFIG_FILES    = $CONFIG_FILES
34050  CONFIG_HEADERS  = $CONFIG_HEADERS
34051  CONFIG_LINKS    = $CONFIG_LINKS
34052  CONFIG_COMMANDS = $CONFIG_COMMANDS
34053  $ $0 $@
34054
34055on `(hostname || uname -n) 2>/dev/null | sed 1q`
34056"
34057
34058_ACEOF
34059
34060cat >>$CONFIG_STATUS <<_ACEOF
34061# Files that config.status was made for.
34062config_files="$ac_config_files"
34063config_headers="$ac_config_headers"
34064config_commands="$ac_config_commands"
34065
34066_ACEOF
34067
34068cat >>$CONFIG_STATUS <<\_ACEOF
34069ac_cs_usage="\
34070\`$as_me' instantiates files from templates according to the
34071current configuration.
34072
34073Usage: $0 [OPTIONS] [FILE]...
34074
34075  -h, --help       print this help, then exit
34076  -V, --version    print version number, then exit
34077  -q, --quiet      do not print progress messages
34078  -d, --debug      don't remove temporary files
34079      --recheck    update $as_me by reconfiguring in the same conditions
34080  --file=FILE[:TEMPLATE]
34081		   instantiate the configuration file FILE
34082  --header=FILE[:TEMPLATE]
34083		   instantiate the configuration header FILE
34084
34085Configuration files:
34086$config_files
34087
34088Configuration headers:
34089$config_headers
34090
34091Configuration commands:
34092$config_commands
34093
34094Report bugs to <bug-autoconf@gnu.org>."
34095
34096_ACEOF
34097cat >>$CONFIG_STATUS <<_ACEOF
34098ac_cs_version="\\
34099llvm config.status 2.1svn
34100configured by $0, generated by GNU Autoconf 2.60,
34101  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34102
34103Copyright (C) 2006 Free Software Foundation, Inc.
34104This config.status script is free software; the Free Software Foundation
34105gives unlimited permission to copy, distribute and modify it."
34106
34107ac_pwd='$ac_pwd'
34108srcdir='$srcdir'
34109INSTALL='$INSTALL'
34110_ACEOF
34111
34112cat >>$CONFIG_STATUS <<\_ACEOF
34113# If no file are specified by the user, then we need to provide default
34114# value.  By we need to know if files were specified by the user.
34115ac_need_defaults=:
34116while test $# != 0
34117do
34118  case $1 in
34119  --*=*)
34120    ac_option=`expr "X$1" : 'X\([^=]*\)='`
34121    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34122    ac_shift=:
34123    ;;
34124  *)
34125    ac_option=$1
34126    ac_optarg=$2
34127    ac_shift=shift
34128    ;;
34129  esac
34130
34131  case $ac_option in
34132  # Handling of the options.
34133  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34134    ac_cs_recheck=: ;;
34135  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34136    echo "$ac_cs_version"; exit ;;
34137  --debug | --debu | --deb | --de | --d | -d )
34138    debug=: ;;
34139  --file | --fil | --fi | --f )
34140    $ac_shift
34141    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34142    ac_need_defaults=false;;
34143  --header | --heade | --head | --hea )
34144    $ac_shift
34145    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34146    ac_need_defaults=false;;
34147  --he | --h)
34148    # Conflict between --help and --header
34149    { echo "$as_me: error: ambiguous option: $1
34150Try \`$0 --help' for more information." >&2
34151   { (exit 1); exit 1; }; };;
34152  --help | --hel | -h )
34153    echo "$ac_cs_usage"; exit ;;
34154  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34155  | -silent | --silent | --silen | --sile | --sil | --si | --s)
34156    ac_cs_silent=: ;;
34157
34158  # This is an error.
34159  -*) { echo "$as_me: error: unrecognized option: $1
34160Try \`$0 --help' for more information." >&2
34161   { (exit 1); exit 1; }; } ;;
34162
34163  *) ac_config_targets="$ac_config_targets $1"
34164     ac_need_defaults=false ;;
34165
34166  esac
34167  shift
34168done
34169
34170ac_configure_extra_args=
34171
34172if $ac_cs_silent; then
34173  exec 6>/dev/null
34174  ac_configure_extra_args="$ac_configure_extra_args --silent"
34175fi
34176
34177_ACEOF
34178cat >>$CONFIG_STATUS <<_ACEOF
34179if \$ac_cs_recheck; then
34180  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34181  CONFIG_SHELL=$SHELL
34182  export CONFIG_SHELL
34183  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34184fi
34185
34186_ACEOF
34187cat >>$CONFIG_STATUS <<\_ACEOF
34188exec 5>>config.log
34189{
34190  echo
34191  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34192## Running $as_me. ##
34193_ASBOX
34194  echo "$ac_log"
34195} >&5
34196
34197_ACEOF
34198cat >>$CONFIG_STATUS <<_ACEOF
34199#
34200# INIT-COMMANDS
34201#
34202llvm_src="${srcdir}"
34203
34204_ACEOF
34205
34206cat >>$CONFIG_STATUS <<\_ACEOF
34207
34208# Handling of arguments.
34209for ac_config_target in $ac_config_targets
34210do
34211  case $ac_config_target in
34212    "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34213    "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34214    "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34215    "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34216    "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34217    "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34218    "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34219    "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34220    "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34221    "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34222    "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34223    "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34224    "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34225    "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34226    "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34227    "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34228    "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34229    "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34230    "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34231    "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34232
34233  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34234echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34235   { (exit 1); exit 1; }; };;
34236  esac
34237done
34238
34239
34240# If the user did not use the arguments to specify the items to instantiate,
34241# then the envvar interface is used.  Set only those that are not.
34242# We use the long form for the default assignment because of an extremely
34243# bizarre bug on SunOS 4.1.3.
34244if $ac_need_defaults; then
34245  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34246  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34247  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34248fi
34249
34250# Have a temporary directory for convenience.  Make it in the build tree
34251# simply because there is no reason against having it here, and in addition,
34252# creating and moving files from /tmp can sometimes cause problems.
34253# Hook for its removal unless debugging.
34254# Note that there is a small window in which the directory will not be cleaned:
34255# after its creation but before its name has been assigned to `$tmp'.
34256$debug ||
34257{
34258  tmp=
34259  trap 'exit_status=$?
34260  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34261' 0
34262  trap '{ (exit 1); exit 1; }' 1 2 13 15
34263}
34264# Create a (secure) tmp directory for tmp files.
34265
34266{
34267  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34268  test -n "$tmp" && test -d "$tmp"
34269}  ||
34270{
34271  tmp=./conf$$-$RANDOM
34272  (umask 077 && mkdir "$tmp")
34273} ||
34274{
34275   echo "$me: cannot create a temporary directory in ." >&2
34276   { (exit 1); exit 1; }
34277}
34278
34279#
34280# Set up the sed scripts for CONFIG_FILES section.
34281#
34282
34283# No need to generate the scripts if there are no CONFIG_FILES.
34284# This happens for instance when ./config.status config.h
34285if test -n "$CONFIG_FILES"; then
34286
34287_ACEOF
34288
34289
34290
34291ac_delim='%!_!# '
34292for ac_last_try in false false false false false :; do
34293  cat >conf$$subs.sed <<_ACEOF
34294SHELL!$SHELL$ac_delim
34295PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34296PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34297PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34298PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34299PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34300PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34301exec_prefix!$exec_prefix$ac_delim
34302prefix!$prefix$ac_delim
34303program_transform_name!$program_transform_name$ac_delim
34304bindir!$bindir$ac_delim
34305sbindir!$sbindir$ac_delim
34306libexecdir!$libexecdir$ac_delim
34307datarootdir!$datarootdir$ac_delim
34308datadir!$datadir$ac_delim
34309sysconfdir!$sysconfdir$ac_delim
34310sharedstatedir!$sharedstatedir$ac_delim
34311localstatedir!$localstatedir$ac_delim
34312includedir!$includedir$ac_delim
34313oldincludedir!$oldincludedir$ac_delim
34314docdir!$docdir$ac_delim
34315infodir!$infodir$ac_delim
34316htmldir!$htmldir$ac_delim
34317dvidir!$dvidir$ac_delim
34318pdfdir!$pdfdir$ac_delim
34319psdir!$psdir$ac_delim
34320libdir!$libdir$ac_delim
34321localedir!$localedir$ac_delim
34322mandir!$mandir$ac_delim
34323DEFS!$DEFS$ac_delim
34324ECHO_C!$ECHO_C$ac_delim
34325ECHO_N!$ECHO_N$ac_delim
34326ECHO_T!$ECHO_T$ac_delim
34327LIBS!$LIBS$ac_delim
34328build_alias!$build_alias$ac_delim
34329host_alias!$host_alias$ac_delim
34330target_alias!$target_alias$ac_delim
34331LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34332subdirs!$subdirs$ac_delim
34333build!$build$ac_delim
34334build_cpu!$build_cpu$ac_delim
34335build_vendor!$build_vendor$ac_delim
34336build_os!$build_os$ac_delim
34337host!$host$ac_delim
34338host_cpu!$host_cpu$ac_delim
34339host_vendor!$host_vendor$ac_delim
34340host_os!$host_os$ac_delim
34341target!$target$ac_delim
34342target_cpu!$target_cpu$ac_delim
34343target_vendor!$target_vendor$ac_delim
34344target_os!$target_os$ac_delim
34345OS!$OS$ac_delim
34346LINKALL!$LINKALL$ac_delim
34347NOLINKALL!$NOLINKALL$ac_delim
34348LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34349LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34350ARCH!$ARCH$ac_delim
34351ENDIAN!$ENDIAN$ac_delim
34352CC!$CC$ac_delim
34353CFLAGS!$CFLAGS$ac_delim
34354LDFLAGS!$LDFLAGS$ac_delim
34355CPPFLAGS!$CPPFLAGS$ac_delim
34356ac_ct_CC!$ac_ct_CC$ac_delim
34357EXEEXT!$EXEEXT$ac_delim
34358OBJEXT!$OBJEXT$ac_delim
34359CPP!$CPP$ac_delim
34360GREP!$GREP$ac_delim
34361EGREP!$EGREP$ac_delim
34362LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34363BUILD_CC!$BUILD_CC$ac_delim
34364BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34365CVSBUILD!$CVSBUILD$ac_delim
34366ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34367DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34368ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34369EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34370DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34371JIT!$JIT$ac_delim
34372TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34373ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34374ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34375ENABLE_PIC!$ENABLE_PIC$ac_delim
34376TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34377ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34378EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34379CXX!$CXX$ac_delim
34380CXXFLAGS!$CXXFLAGS$ac_delim
34381ac_ct_CXX!$ac_ct_CXX$ac_delim
34382LEX!$LEX$ac_delim
34383LEXLIB!$LEXLIB$ac_delim
34384LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34385FLEX!$FLEX$ac_delim
34386YACC!$YACC$ac_delim
34387YFLAGS!$YFLAGS$ac_delim
34388BISON!$BISON$ac_delim
34389NM!$NM$ac_delim
34390ifGNUmake!$ifGNUmake$ac_delim
34391_ACEOF
34392
34393  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34394    break
34395  elif $ac_last_try; then
34396    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34397echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34398   { (exit 1); exit 1; }; }
34399  else
34400    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34401  fi
34402done
34403
34404ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34405if test -n "$ac_eof"; then
34406  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34407  ac_eof=`expr $ac_eof + 1`
34408fi
34409
34410cat >>$CONFIG_STATUS <<_ACEOF
34411cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34412/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34413_ACEOF
34414sed '
34415s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34416s/^/s,@/; s/!/@,|#_!!_#|/
34417:n
34418t n
34419s/'"$ac_delim"'$/,g/; t
34420s/$/\\/; p
34421N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34422' >>$CONFIG_STATUS <conf$$subs.sed
34423rm -f conf$$subs.sed
34424cat >>$CONFIG_STATUS <<_ACEOF
34425CEOF$ac_eof
34426_ACEOF
34427
34428
34429ac_delim='%!_!# '
34430for ac_last_try in false false false false false :; do
34431  cat >conf$$subs.sed <<_ACEOF
34432LN_S!$LN_S$ac_delim
34433CMP!$CMP$ac_delim
34434CP!$CP$ac_delim
34435DATE!$DATE$ac_delim
34436FIND!$FIND$ac_delim
34437MKDIR!$MKDIR$ac_delim
34438MV!$MV$ac_delim
34439RANLIB!$RANLIB$ac_delim
34440RM!$RM$ac_delim
34441SED!$SED$ac_delim
34442TAR!$TAR$ac_delim
34443BINPWD!$BINPWD$ac_delim
34444GRAPHVIZ!$GRAPHVIZ$ac_delim
34445DOT!$DOT$ac_delim
34446GV!$GV$ac_delim
34447DOTTY!$DOTTY$ac_delim
34448PERL!$PERL$ac_delim
34449HAVE_PERL!$HAVE_PERL$ac_delim
34450INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34451INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34452INSTALL_DATA!$INSTALL_DATA$ac_delim
34453BZIP2!$BZIP2$ac_delim
34454DOXYGEN!$DOXYGEN$ac_delim
34455GROFF!$GROFF$ac_delim
34456GZIP!$GZIP$ac_delim
34457POD2HTML!$POD2HTML$ac_delim
34458POD2MAN!$POD2MAN$ac_delim
34459RUNTEST!$RUNTEST$ac_delim
34460TCLSH!$TCLSH$ac_delim
34461ZIP!$ZIP$ac_delim
34462INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34463INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34464CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34465CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34466LIBADD_DL!$LIBADD_DL$ac_delim
34467ECHO!$ECHO$ac_delim
34468AR!$AR$ac_delim
34469STRIP!$STRIP$ac_delim
34470CXXCPP!$CXXCPP$ac_delim
34471F77!$F77$ac_delim
34472FFLAGS!$FFLAGS$ac_delim
34473ac_ct_F77!$ac_ct_F77$ac_delim
34474LIBTOOL!$LIBTOOL$ac_delim
34475ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34476LLVMGCC!$LLVMGCC$ac_delim
34477LLVMGXX!$LLVMGXX$ac_delim
34478USE_UDIS86!$USE_UDIS86$ac_delim
34479HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34480HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34481ALLOCA!$ALLOCA$ac_delim
34482MMAP_FILE!$MMAP_FILE$ac_delim
34483LLVMCC1!$LLVMCC1$ac_delim
34484LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34485LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34486LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
34487LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34488LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34489LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
34490SHLIBEXT!$SHLIBEXT$ac_delim
34491LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34492LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34493LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34494LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34495LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34496LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34497LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34498LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34499LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34500LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34501LIBOBJS!$LIBOBJS$ac_delim
34502LTLIBOBJS!$LTLIBOBJS$ac_delim
34503_ACEOF
34504
34505  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then
34506    break
34507  elif $ac_last_try; then
34508    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34509echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34510   { (exit 1); exit 1; }; }
34511  else
34512    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34513  fi
34514done
34515
34516ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34517if test -n "$ac_eof"; then
34518  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34519  ac_eof=`expr $ac_eof + 1`
34520fi
34521
34522cat >>$CONFIG_STATUS <<_ACEOF
34523cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34524/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34525_ACEOF
34526sed '
34527s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34528s/^/s,@/; s/!/@,|#_!!_#|/
34529:n
34530t n
34531s/'"$ac_delim"'$/,g/; t
34532s/$/\\/; p
34533N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34534' >>$CONFIG_STATUS <conf$$subs.sed
34535rm -f conf$$subs.sed
34536cat >>$CONFIG_STATUS <<_ACEOF
34537:end
34538s/|#_!!_#|//g
34539CEOF$ac_eof
34540_ACEOF
34541
34542
34543# VPATH may cause trouble with some makes, so we remove $(srcdir),
34544# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34545# trailing colons and then remove the whole line if VPATH becomes empty
34546# (actually we leave an empty line to preserve line numbers).
34547if test "x$srcdir" = x.; then
34548  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
34549s/:*\$(srcdir):*/:/
34550s/:*\${srcdir}:*/:/
34551s/:*@srcdir@:*/:/
34552s/^\([^=]*=[	 ]*\):*/\1/
34553s/:*$//
34554s/^[^=]*=[	 ]*$//
34555}'
34556fi
34557
34558cat >>$CONFIG_STATUS <<\_ACEOF
34559fi # test -n "$CONFIG_FILES"
34560
34561
34562for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
34563do
34564  case $ac_tag in
34565  :[FHLC]) ac_mode=$ac_tag; continue;;
34566  esac
34567  case $ac_mode$ac_tag in
34568  :[FHL]*:*);;
34569  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34570echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34571   { (exit 1); exit 1; }; };;
34572  :[FH]-) ac_tag=-:-;;
34573  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34574  esac
34575  ac_save_IFS=$IFS
34576  IFS=:
34577  set x $ac_tag
34578  IFS=$ac_save_IFS
34579  shift
34580  ac_file=$1
34581  shift
34582
34583  case $ac_mode in
34584  :L) ac_source=$1;;
34585  :[FH])
34586    ac_file_inputs=
34587    for ac_f
34588    do
34589      case $ac_f in
34590      -) ac_f="$tmp/stdin";;
34591      *) # Look for the file first in the build tree, then in the source tree
34592	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
34593	 # because $ac_f cannot contain `:'.
34594	 test -f "$ac_f" ||
34595	   case $ac_f in
34596	   [\\/$]*) false;;
34597	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34598	   esac ||
34599	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34600echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34601   { (exit 1); exit 1; }; };;
34602      esac
34603      ac_file_inputs="$ac_file_inputs $ac_f"
34604    done
34605
34606    # Let's still pretend it is `configure' which instantiates (i.e., don't
34607    # use $as_me), people would be surprised to read:
34608    #    /* config.h.  Generated by config.status.  */
34609    configure_input="Generated from "`IFS=:
34610	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34611    if test x"$ac_file" != x-; then
34612      configure_input="$ac_file.  $configure_input"
34613      { echo "$as_me:$LINENO: creating $ac_file" >&5
34614echo "$as_me: creating $ac_file" >&6;}
34615    fi
34616
34617    case $ac_tag in
34618    *:-:* | *:-) cat >"$tmp/stdin";;
34619    esac
34620    ;;
34621  esac
34622
34623  ac_dir=`$as_dirname -- "$ac_file" ||
34624$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34625	 X"$ac_file" : 'X\(//\)[^/]' \| \
34626	 X"$ac_file" : 'X\(//\)$' \| \
34627	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34628echo X"$ac_file" |
34629    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34630	    s//\1/
34631	    q
34632	  }
34633	  /^X\(\/\/\)[^/].*/{
34634	    s//\1/
34635	    q
34636	  }
34637	  /^X\(\/\/\)$/{
34638	    s//\1/
34639	    q
34640	  }
34641	  /^X\(\/\).*/{
34642	    s//\1/
34643	    q
34644	  }
34645	  s/.*/./; q'`
34646  { as_dir="$ac_dir"
34647  case $as_dir in #(
34648  -*) as_dir=./$as_dir;;
34649  esac
34650  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34651    as_dirs=
34652    while :; do
34653      case $as_dir in #(
34654      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34655      *) as_qdir=$as_dir;;
34656      esac
34657      as_dirs="'$as_qdir' $as_dirs"
34658      as_dir=`$as_dirname -- "$as_dir" ||
34659$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34660	 X"$as_dir" : 'X\(//\)[^/]' \| \
34661	 X"$as_dir" : 'X\(//\)$' \| \
34662	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34663echo X"$as_dir" |
34664    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34665	    s//\1/
34666	    q
34667	  }
34668	  /^X\(\/\/\)[^/].*/{
34669	    s//\1/
34670	    q
34671	  }
34672	  /^X\(\/\/\)$/{
34673	    s//\1/
34674	    q
34675	  }
34676	  /^X\(\/\).*/{
34677	    s//\1/
34678	    q
34679	  }
34680	  s/.*/./; q'`
34681      test -d "$as_dir" && break
34682    done
34683    test -z "$as_dirs" || eval "mkdir $as_dirs"
34684  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34685echo "$as_me: error: cannot create directory $as_dir" >&2;}
34686   { (exit 1); exit 1; }; }; }
34687  ac_builddir=.
34688
34689case "$ac_dir" in
34690.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34691*)
34692  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34693  # A ".." for each directory in $ac_dir_suffix.
34694  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34695  case $ac_top_builddir_sub in
34696  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34697  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34698  esac ;;
34699esac
34700ac_abs_top_builddir=$ac_pwd
34701ac_abs_builddir=$ac_pwd$ac_dir_suffix
34702# for backward compatibility:
34703ac_top_builddir=$ac_top_build_prefix
34704
34705case $srcdir in
34706  .)  # We are building in place.
34707    ac_srcdir=.
34708    ac_top_srcdir=$ac_top_builddir_sub
34709    ac_abs_top_srcdir=$ac_pwd ;;
34710  [\\/]* | ?:[\\/]* )  # Absolute name.
34711    ac_srcdir=$srcdir$ac_dir_suffix;
34712    ac_top_srcdir=$srcdir
34713    ac_abs_top_srcdir=$srcdir ;;
34714  *) # Relative name.
34715    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34716    ac_top_srcdir=$ac_top_build_prefix$srcdir
34717    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34718esac
34719ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34720
34721
34722  case $ac_mode in
34723  :F)
34724  #
34725  # CONFIG_FILE
34726  #
34727
34728  case $INSTALL in
34729  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34730  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34731  esac
34732_ACEOF
34733
34734cat >>$CONFIG_STATUS <<\_ACEOF
34735# If the template does not know about datarootdir, expand it.
34736# FIXME: This hack should be removed a few years after 2.60.
34737ac_datarootdir_hack=; ac_datarootdir_seen=
34738
34739case `sed -n '/datarootdir/ {
34740  p
34741  q
34742}
34743/@datadir@/p
34744/@docdir@/p
34745/@infodir@/p
34746/@localedir@/p
34747/@mandir@/p
34748' $ac_file_inputs` in
34749*datarootdir*) ac_datarootdir_seen=yes;;
34750*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34751  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34752echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34753_ACEOF
34754cat >>$CONFIG_STATUS <<_ACEOF
34755  ac_datarootdir_hack='
34756  s&@datadir@&$datadir&g
34757  s&@docdir@&$docdir&g
34758  s&@infodir@&$infodir&g
34759  s&@localedir@&$localedir&g
34760  s&@mandir@&$mandir&g
34761    s&\\\${datarootdir}&$datarootdir&g' ;;
34762esac
34763_ACEOF
34764
34765# Neutralize VPATH when `$srcdir' = `.'.
34766# Shell code in configure.ac might set extrasub.
34767# FIXME: do we really want to maintain this feature?
34768cat >>$CONFIG_STATUS <<_ACEOF
34769  sed "$ac_vpsub
34770$extrasub
34771_ACEOF
34772cat >>$CONFIG_STATUS <<\_ACEOF
34773:t
34774/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34775s&@configure_input@&$configure_input&;t t
34776s&@top_builddir@&$ac_top_builddir_sub&;t t
34777s&@srcdir@&$ac_srcdir&;t t
34778s&@abs_srcdir@&$ac_abs_srcdir&;t t
34779s&@top_srcdir@&$ac_top_srcdir&;t t
34780s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34781s&@builddir@&$ac_builddir&;t t
34782s&@abs_builddir@&$ac_abs_builddir&;t t
34783s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34784s&@INSTALL@&$ac_INSTALL&;t t
34785$ac_datarootdir_hack
34786" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
34787
34788test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34789  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34790  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34791  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34792which seems to be undefined.  Please make sure it is defined." >&5
34793echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34794which seems to be undefined.  Please make sure it is defined." >&2;}
34795
34796  rm -f "$tmp/stdin"
34797  case $ac_file in
34798  -) cat "$tmp/out"; rm -f "$tmp/out";;
34799  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34800  esac
34801 ;;
34802  :H)
34803  #
34804  # CONFIG_HEADER
34805  #
34806_ACEOF
34807
34808# Transform confdefs.h into a sed script `conftest.defines', that
34809# substitutes the proper values into config.h.in to produce config.h.
34810rm -f conftest.defines conftest.tail
34811# First, append a space to every undef/define line, to ease matching.
34812echo 's/$/ /' >conftest.defines
34813# Then, protect against being on the right side of a sed subst, or in
34814# an unquoted here document, in config.status.  If some macros were
34815# called several times there might be several #defines for the same
34816# symbol, which is useless.  But do not sort them, since the last
34817# AC_DEFINE must be honored.
34818ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34819# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34820# NAME is the cpp macro being defined, VALUE is the value it is being given.
34821# PARAMS is the parameter list in the macro definition--in most cases, it's
34822# just an empty string.
34823ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
34824ac_dB='\\)[	 (].*,\\1define\\2'
34825ac_dC=' '
34826ac_dD=' ,'
34827
34828uniq confdefs.h |
34829  sed -n '
34830	t rset
34831	:rset
34832	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
34833	t ok
34834	d
34835	:ok
34836	s/[\\&,]/\\&/g
34837	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34838	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34839  ' >>conftest.defines
34840
34841# Remove the space that was appended to ease matching.
34842# Then replace #undef with comments.  This is necessary, for
34843# example, in the case of _POSIX_SOURCE, which is predefined and required
34844# on some systems where configure will not decide to define it.
34845# (The regexp can be short, since the line contains either #define or #undef.)
34846echo 's/ $//
34847s,^[	 #]*u.*,/* & */,' >>conftest.defines
34848
34849# Break up conftest.defines:
34850ac_max_sed_lines=50
34851
34852# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34853# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34854# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34855# et cetera.
34856ac_in='$ac_file_inputs'
34857ac_out='"$tmp/out1"'
34858ac_nxt='"$tmp/out2"'
34859
34860while :
34861do
34862  # Write a here document:
34863    cat >>$CONFIG_STATUS <<_ACEOF
34864    # First, check the format of the line:
34865    cat >"\$tmp/defines.sed" <<\\CEOF
34866/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
34867/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
34868b
34869:def
34870_ACEOF
34871  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
34872  echo 'CEOF
34873    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34874  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34875  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34876  grep . conftest.tail >/dev/null || break
34877  rm -f conftest.defines
34878  mv conftest.tail conftest.defines
34879done
34880rm -f conftest.defines conftest.tail
34881
34882echo "ac_result=$ac_in" >>$CONFIG_STATUS
34883cat >>$CONFIG_STATUS <<\_ACEOF
34884  if test x"$ac_file" != x-; then
34885    echo "/* $configure_input  */" >"$tmp/config.h"
34886    cat "$ac_result" >>"$tmp/config.h"
34887    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
34888      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34889echo "$as_me: $ac_file is unchanged" >&6;}
34890    else
34891      rm -f $ac_file
34892      mv "$tmp/config.h" $ac_file
34893    fi
34894  else
34895    echo "/* $configure_input  */"
34896    cat "$ac_result"
34897  fi
34898  rm -f "$tmp/out12"
34899 ;;
34900
34901  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34902echo "$as_me: executing $ac_file commands" >&6;}
34903 ;;
34904  esac
34905
34906
34907  case $ac_file$ac_mode in
34908    "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34909   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34910    "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34911   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34912    "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34913   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34914    "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34915   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
34916    "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34917   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
34918    "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34919   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34920    "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34921   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34922    "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34923   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34924    "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34925   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34926    "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34927   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34928
34929  esac
34930done # for ac_tag
34931
34932
34933{ (exit 0); exit 0; }
34934_ACEOF
34935chmod +x $CONFIG_STATUS
34936ac_clean_files=$ac_clean_files_save
34937
34938
34939# configure is writing to config.log, and then calls config.status.
34940# config.status does its own redirection, appending to config.log.
34941# Unfortunately, on DOS this fails, as config.log is still kept open
34942# by configure, so config.status won't be able to write to it; its
34943# output is simply discarded.  So we exec the FD to /dev/null,
34944# effectively closing config.log, so it can be properly (re)opened and
34945# appended to by config.status.  When coming back to configure, we
34946# need to make the FD available again.
34947if test "$no_create" != yes; then
34948  ac_cs_success=:
34949  ac_config_status_args=
34950  test "$silent" = yes &&
34951    ac_config_status_args="$ac_config_status_args --quiet"
34952  exec 5>/dev/null
34953  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34954  exec 5>>config.log
34955  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34956  # would make configure fail if this is the last instruction.
34957  $ac_cs_success || { (exit 1); exit 1; }
34958fi
34959
34960#
34961# CONFIG_SUBDIRS section.
34962#
34963if test "$no_recursion" != yes; then
34964
34965  # Remove --cache-file and --srcdir arguments so they do not pile up.
34966  ac_sub_configure_args=
34967  ac_prev=
34968  eval "set x $ac_configure_args"
34969  shift
34970  for ac_arg
34971  do
34972    if test -n "$ac_prev"; then
34973      ac_prev=
34974      continue
34975    fi
34976    case $ac_arg in
34977    -cache-file | --cache-file | --cache-fil | --cache-fi \
34978    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34979      ac_prev=cache_file ;;
34980    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34981    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34982    | --c=*)
34983      ;;
34984    --config-cache | -C)
34985      ;;
34986    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34987      ac_prev=srcdir ;;
34988    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34989      ;;
34990    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34991      ac_prev=prefix ;;
34992    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34993      ;;
34994    *)
34995      case $ac_arg in
34996      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34997      esac
34998      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
34999    esac
35000  done
35001
35002  # Always prepend --prefix to ensure using the same prefix
35003  # in subdir configurations.
35004  ac_arg="--prefix=$prefix"
35005  case $ac_arg in
35006  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35007  esac
35008  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35009
35010  ac_popdir=`pwd`
35011  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35012
35013    # Do not complain, so a configure script can configure whichever
35014    # parts of a large source tree are present.
35015    test -d "$srcdir/$ac_dir" || continue
35016
35017    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35018    echo "$as_me:$LINENO: $ac_msg" >&5
35019    echo "$ac_msg" >&6
35020    { as_dir="$ac_dir"
35021  case $as_dir in #(
35022  -*) as_dir=./$as_dir;;
35023  esac
35024  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35025    as_dirs=
35026    while :; do
35027      case $as_dir in #(
35028      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35029      *) as_qdir=$as_dir;;
35030      esac
35031      as_dirs="'$as_qdir' $as_dirs"
35032      as_dir=`$as_dirname -- "$as_dir" ||
35033$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35034	 X"$as_dir" : 'X\(//\)[^/]' \| \
35035	 X"$as_dir" : 'X\(//\)$' \| \
35036	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35037echo X"$as_dir" |
35038    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35039	    s//\1/
35040	    q
35041	  }
35042	  /^X\(\/\/\)[^/].*/{
35043	    s//\1/
35044	    q
35045	  }
35046	  /^X\(\/\/\)$/{
35047	    s//\1/
35048	    q
35049	  }
35050	  /^X\(\/\).*/{
35051	    s//\1/
35052	    q
35053	  }
35054	  s/.*/./; q'`
35055      test -d "$as_dir" && break
35056    done
35057    test -z "$as_dirs" || eval "mkdir $as_dirs"
35058  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35059echo "$as_me: error: cannot create directory $as_dir" >&2;}
35060   { (exit 1); exit 1; }; }; }
35061    ac_builddir=.
35062
35063case "$ac_dir" in
35064.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35065*)
35066  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35067  # A ".." for each directory in $ac_dir_suffix.
35068  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35069  case $ac_top_builddir_sub in
35070  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35071  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35072  esac ;;
35073esac
35074ac_abs_top_builddir=$ac_pwd
35075ac_abs_builddir=$ac_pwd$ac_dir_suffix
35076# for backward compatibility:
35077ac_top_builddir=$ac_top_build_prefix
35078
35079case $srcdir in
35080  .)  # We are building in place.
35081    ac_srcdir=.
35082    ac_top_srcdir=$ac_top_builddir_sub
35083    ac_abs_top_srcdir=$ac_pwd ;;
35084  [\\/]* | ?:[\\/]* )  # Absolute name.
35085    ac_srcdir=$srcdir$ac_dir_suffix;
35086    ac_top_srcdir=$srcdir
35087    ac_abs_top_srcdir=$srcdir ;;
35088  *) # Relative name.
35089    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35090    ac_top_srcdir=$ac_top_build_prefix$srcdir
35091    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35092esac
35093ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35094
35095
35096    cd "$ac_dir"
35097
35098    # Check for guested configure; otherwise get Cygnus style configure.
35099    if test -f "$ac_srcdir/configure.gnu"; then
35100      ac_sub_configure=$ac_srcdir/configure.gnu
35101    elif test -f "$ac_srcdir/configure"; then
35102      ac_sub_configure=$ac_srcdir/configure
35103    elif test -f "$ac_srcdir/configure.in"; then
35104      # This should be Cygnus configure.
35105      ac_sub_configure=$ac_aux_dir/configure
35106    else
35107      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35108echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35109      ac_sub_configure=
35110    fi
35111
35112    # The recursion is here.
35113    if test -n "$ac_sub_configure"; then
35114      # Make the cache file name correct relative to the subdirectory.
35115      case $cache_file in
35116      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35117      *) # Relative name.
35118	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35119      esac
35120
35121      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35122echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35123      # The eval makes quoting arguments work.
35124      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35125	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35126	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35127echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35128   { (exit 1); exit 1; }; }
35129    fi
35130
35131    cd "$ac_popdir"
35132  done
35133fi
35134
35135
35136