configure revision 2c4718bdd926348e4b21bfd39f583e6340efe180
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60 for llvm 2.6svn.
4#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12# Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
13## --------------------- ##
14## M4sh Initialization.  ##
15## --------------------- ##
16
17# Be Bourne compatible
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19  emulate sh
20  NULLCMD=:
21  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22  # is contrary to our usage.  Disable this feature.
23  alias -g '${1+"$@"}'='"$@"'
24  setopt NO_GLOB_SUBST
25else
26  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27fi
28BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42  echo "#! /bin/sh" >conf$$.sh
43  echo  "exit 0"   >>conf$$.sh
44  chmod +x conf$$.sh
45  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46    PATH_SEPARATOR=';'
47  else
48    PATH_SEPARATOR=:
49  fi
50  rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55  as_unset=unset
56else
57  as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order.  Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" ""	$as_nl"
69
70# Find who we are.  Look in the path if we contain no directory separator.
71case $0 in
72  *[\\/]* ) as_myself=$0 ;;
73  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76  IFS=$as_save_IFS
77  test -z "$as_dir" && as_dir=.
78  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82     ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87  as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91  { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106  LC_TELEPHONE LC_TIME
107do
108  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109    eval $as_var=C; export $as_var
110  else
111    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112  fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118  as_expr=expr
119else
120  as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124  as_basename=basename
125else
126  as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133	 X"$0" : 'X\(//\)$' \| \
134	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136    sed '/^.*\/\([^/][^/]*\)\/*$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\/\)$/{
141	    s//\1/
142	    q
143	  }
144	  /^X\/\(\/\).*/{
145	    s//\1/
146	    q
147	  }
148	  s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155  if (eval ":") 2>/dev/null; then
156  as_have_required=yes
157else
158  as_have_required=no
159fi
160
161  if test $as_have_required = yes && 	 (eval ":
162(as_func_return () {
163  (exit \$1)
164}
165as_func_success () {
166  as_func_return 0
167}
168as_func_failure () {
169  as_func_return 1
170}
171as_func_ret_success () {
172  return 0
173}
174as_func_ret_failure () {
175  return 1
176}
177
178exitcode=0
179if as_func_success; then
180  :
181else
182  exitcode=1
183  echo as_func_success failed.
184fi
185
186if as_func_failure; then
187  exitcode=1
188  echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192  :
193else
194  exitcode=1
195  echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199  exitcode=1
200  echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204  :
205else
206  exitcode=1
207  echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213  as_lineno_1=\$LINENO
214  as_lineno_2=\$LINENO
215  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218  :
219else
220  as_candidate_shells=
221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224  IFS=$as_save_IFS
225  test -z "$as_dir" && as_dir=.
226  case $as_dir in
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230	   done;;
231       esac
232done
233IFS=$as_save_IFS
234
235
236      for as_shell in $as_candidate_shells $SHELL; do
237	 # Try only shells that exist, to save several forks.
238	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239		{ ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242  emulate sh
243  NULLCMD=:
244  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245  # is contrary to our usage.  Disable this feature.
246  alias -g '${1+"$@"}'='"$@"'
247  setopt NO_GLOB_SUBST
248else
249  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257  CONFIG_SHELL=$as_shell
258	       as_have_required=yes
259	       if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276  (exit $1)
277}
278as_func_success () {
279  as_func_return 0
280}
281as_func_failure () {
282  as_func_return 1
283}
284as_func_ret_success () {
285  return 0
286}
287as_func_ret_failure () {
288  return 1
289}
290
291exitcode=0
292if as_func_success; then
293  :
294else
295  exitcode=1
296  echo as_func_success failed.
297fi
298
299if as_func_failure; then
300  exitcode=1
301  echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305  :
306else
307  exitcode=1
308  echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312  exitcode=1
313  echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317  :
318else
319  exitcode=1
320  echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326  as_lineno_1=$LINENO
327  as_lineno_2=$LINENO
328  test "x$as_lineno_1" != "x$as_lineno_2" &&
329  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333  break
334fi
335
336fi
337
338      done
339
340      if test "x$CONFIG_SHELL" != x; then
341  for as_var in BASH_ENV ENV
342        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343        done
344        export CONFIG_SHELL
345        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349    if test $as_have_required = no; then
350  echo This script requires a shell more modern than all the
351      echo shells that I found on your system.  Please install a
352      echo modern shell, or manually run the script under such a
353      echo shell if you do have one.
354      { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365  (exit \$1)
366}
367as_func_success () {
368  as_func_return 0
369}
370as_func_failure () {
371  as_func_return 1
372}
373as_func_ret_success () {
374  return 0
375}
376as_func_ret_failure () {
377  return 1
378}
379
380exitcode=0
381if as_func_success; then
382  :
383else
384  exitcode=1
385  echo as_func_success failed.
386fi
387
388if as_func_failure; then
389  exitcode=1
390  echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394  :
395else
396  exitcode=1
397  echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401  exitcode=1
402  echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406  :
407else
408  exitcode=1
409  echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413  echo No shell found that supports shell functions.
414  echo Please tell autoconf@gnu.org about your system,
415  echo including any error possibly output before this
416  echo message
417}
418
419
420
421  as_lineno_1=$LINENO
422  as_lineno_2=$LINENO
423  test "x$as_lineno_1" != "x$as_lineno_2" &&
424  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427  # uniformly replaced by the line number.  The first 'sed' inserts a
428  # line-number line after each line using $LINENO; the second 'sed'
429  # does the real work.  The second script uses 'N' to pair each
430  # line-number line with the line containing $LINENO, and appends
431  # trailing '-' during substitution so that $LINENO is not a special
432  # case at line end.
433  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434  # scripts with optimization help from Paolo Bonzini.  Blame Lee
435  # E. McMahon (1931-1989) for sed's syntax.  :-)
436  sed -n '
437    p
438    /[$]LINENO/=
439  ' <$as_myself |
440    sed '
441      s/[$]LINENO.*/&-/
442      t lineno
443      b
444      :lineno
445      N
446      :loop
447      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448      t loop
449      s/-\n.*//
450    ' >$as_me.lineno &&
451  chmod +x "$as_me.lineno" ||
452    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453   { (exit 1); exit 1; }; }
454
455  # Don't try to exec as it changes $[0], causing all sort of problems
456  # (the dirname of $[0] is not the place where we might find the
457  # original and so on.  Autoconf is especially sensitive to this).
458  . "./$as_me.lineno"
459  # Exit status is that of the last command.
460  exit
461}
462
463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465  as_dirname=dirname
466else
467  as_dirname=false
468fi
469
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in
472-n*)
473  case `echo 'x\c'` in
474  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
475  *)   ECHO_C='\c';;
476  esac;;
477*)
478  ECHO_N='-n';;
479esac
480
481if expr a : '\(a\)' >/dev/null 2>&1 &&
482   test "X`expr 00001 : '.*\(...\)'`" = X001; then
483  as_expr=expr
484else
485  as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
489if test -d conf$$.dir; then
490  rm -f conf$$.dir/conf$$.file
491else
492  rm -f conf$$.dir
493  mkdir conf$$.dir
494fi
495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497  as_ln_s='ln -s'
498  # ... but there are two gotchas:
499  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501  # In both cases, we have to default to `cp -p'.
502  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503    as_ln_s='cp -p'
504elif ln conf$$.file conf$$ 2>/dev/null; then
505  as_ln_s=ln
506else
507  as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513  as_mkdir_p=:
514else
515  test -d ./-p && rmdir ./-p
516  as_mkdir_p=false
517fi
518
519# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527  as_executable_p="test -x"
528else
529  as_executable_p=:
530fi
531rm -f conf$$.file
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541
542# Check that we are running under the correct shell.
543SHELL=${CONFIG_SHELL-/bin/sh}
544
545case X$ECHO in
546X*--fallback-echo)
547  # Remove one level of quotation (which was required for Make).
548  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549  ;;
550esac
551
552echo=${ECHO-echo}
553if test "X$1" = X--no-reexec; then
554  # Discard the --no-reexec flag, and continue.
555  shift
556elif test "X$1" = X--fallback-echo; then
557  # Avoid inline document here, it may be left over
558  :
559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560  # Yippee, $echo works!
561  :
562else
563  # Restart under the correct shell.
564  exec $SHELL "$0" --no-reexec ${1+"$@"}
565fi
566
567if test "X$1" = X--fallback-echo; then
568  # used as fallback echo
569  shift
570  cat <<EOF
571$*
572EOF
573  exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
579
580if test -z "$ECHO"; then
581if test "X${echo_test_string+set}" != Xset; then
582# find a string as large as possible, as long as the shell can cope with it
583  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586       echo_test_string=`eval $cmd` &&
587       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588    then
589      break
590    fi
591  done
592fi
593
594if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596   test "X$echo_testing_string" = "X$echo_test_string"; then
597  :
598else
599  # The Solaris, AIX, and Digital Unix default echo programs unquote
600  # backslashes.  This makes it impossible to quote backslashes using
601  #   echo "$something" | sed 's/\\/\\\\/g'
602  #
603  # So, first we look for a working echo in the user's PATH.
604
605  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606  for dir in $PATH /usr/ucb; do
607    IFS="$lt_save_ifs"
608    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611       test "X$echo_testing_string" = "X$echo_test_string"; then
612      echo="$dir/echo"
613      break
614    fi
615  done
616  IFS="$lt_save_ifs"
617
618  if test "X$echo" = Xecho; then
619    # We didn't find a better echo, so look for alternatives.
620    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622       test "X$echo_testing_string" = "X$echo_test_string"; then
623      # This shell has a builtin print -r that does the trick.
624      echo='print -r'
625    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626	 test "X$CONFIG_SHELL" != X/bin/ksh; then
627      # If we have ksh, try running configure again with it.
628      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629      export ORIGINAL_CONFIG_SHELL
630      CONFIG_SHELL=/bin/ksh
631      export CONFIG_SHELL
632      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633    else
634      # Try using printf.
635      echo='printf %s\n'
636      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638	 test "X$echo_testing_string" = "X$echo_test_string"; then
639	# Cool, printf works
640	:
641      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642	   test "X$echo_testing_string" = 'X\t' &&
643	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644	   test "X$echo_testing_string" = "X$echo_test_string"; then
645	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646	export CONFIG_SHELL
647	SHELL="$CONFIG_SHELL"
648	export SHELL
649	echo="$CONFIG_SHELL $0 --fallback-echo"
650      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651	   test "X$echo_testing_string" = 'X\t' &&
652	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653	   test "X$echo_testing_string" = "X$echo_test_string"; then
654	echo="$CONFIG_SHELL $0 --fallback-echo"
655      else
656	# maybe with a smaller string...
657	prev=:
658
659	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661	  then
662	    break
663	  fi
664	  prev="$cmd"
665	done
666
667	if test "$prev" != 'sed 50q "$0"'; then
668	  echo_test_string=`eval $prev`
669	  export echo_test_string
670	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671	else
672	  # Oops.  We lost completely, so just stick with echo.
673	  echo=echo
674	fi
675      fi
676    fi
677  fi
678fi
679fi
680
681# Copy echo and quote the copy suitably for passing to libtool from
682# the Makefile, instead of quoting the original, which is used later.
683ECHO=$echo
684if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686fi
687
688
689
690
691tagnames=${tagnames+${tagnames},}CXX
692
693tagnames=${tagnames+${tagnames},}F77
694
695exec 7<&0 </dev/null 6>&1
696
697# Name of the host.
698# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699# so uname gets run too.
700ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
706ac_clean_files=
707ac_config_libobj_dir=.
708LIBOBJS=
709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713SHELL=${CONFIG_SHELL-/bin/sh}
714
715# Identity of this package.
716PACKAGE_NAME='llvm'
717PACKAGE_TARNAME='-llvm-'
718PACKAGE_VERSION='2.6svn'
719PACKAGE_STRING='llvm 2.6svn'
720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
722ac_unique_file="lib/VMCore/Module.cpp"
723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
726#if HAVE_SYS_TYPES_H
727# include <sys/types.h>
728#endif
729#if HAVE_SYS_STAT_H
730# include <sys/stat.h>
731#endif
732#if STDC_HEADERS
733# include <stdlib.h>
734# include <stddef.h>
735#else
736# if HAVE_STDLIB_H
737#  include <stdlib.h>
738# endif
739#endif
740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
742#  include <memory.h>
743# endif
744# include <string.h>
745#endif
746#if HAVE_STRINGS_H
747# include <strings.h>
748#endif
749#if HAVE_INTTYPES_H
750# include <inttypes.h>
751#endif
752#if HAVE_STDINT_H
753# include <stdint.h>
754#endif
755#if HAVE_UNISTD_H
756# include <unistd.h>
757#endif"
758
759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
811LINKALL
812NOLINKALL
813LLVM_ON_UNIX
814LLVM_ON_WIN32
815ARCH
816ENDIAN
817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
830BUILD_CXX
831CVSBUILD
832ENABLE_OPTIMIZED
833ENABLE_PROFILING
834DISABLE_ASSERTIONS
835ENABLE_EXPENSIVE_CHECKS
836EXPENSIVE_CHECKS
837DEBUG_RUNTIME
838JIT
839TARGET_HAS_JIT
840ENABLE_DOXYGEN
841ENABLE_THREADS
842ENABLE_PIC
843TARGETS_TO_BUILD
844ENABLE_CBE_PRINTF_A
845EXTRA_OPTIONS
846BINUTILS_INCDIR
847CXX
848CXXFLAGS
849ac_ct_CXX
850NM
851ifGNUmake
852LN_S
853CMP
854CP
855DATE
856FIND
857MKDIR
858MV
859RANLIB
860RM
861SED
862TAR
863BINPWD
864GRAPHVIZ
865DOT
866GV
867DOTTY
868PERL
869HAVE_PERL
870INSTALL_PROGRAM
871INSTALL_SCRIPT
872INSTALL_DATA
873BZIP2
874DOXYGEN
875GROFF
876GZIP
877POD2HTML
878POD2MAN
879RUNTEST
880TCLSH
881ZIP
882OCAMLC
883OCAMLOPT
884OCAMLDEP
885OCAMLDOC
886GAS
887INSTALL_LTDL_TRUE
888INSTALL_LTDL_FALSE
889CONVENIENCE_LTDL_TRUE
890CONVENIENCE_LTDL_FALSE
891LIBADD_DL
892ECHO
893AR
894STRIP
895CXXCPP
896F77
897FFLAGS
898ac_ct_F77
899LIBTOOL
900LLVMGCC
901LLVMGXX
902LLVMGCCCOMMAND
903LLVMGXXCOMMAND
904USE_UDIS86
905HAVE_PTHREAD
906HUGE_VAL_SANITY
907ALLOCA
908MMAP_FILE
909LLVMCC1
910LLVMCC1PLUS
911LLVMGCCDIR
912LLVMGCCLIBEXEC
913LLVMGCC_VERSION
914LLVMGCC_MAJVERS
915LLVMGCC_LANGS
916SHLIBEXT
917LLVM_PREFIX
918LLVM_BINDIR
919LLVM_LIBDIR
920LLVM_DATADIR
921LLVM_DOCSDIR
922LLVM_ETCDIR
923LLVM_INCLUDEDIR
924LLVM_INFODIR
925LLVM_MANDIR
926LLVM_CONFIGTIME
927BINDINGS_TO_BUILD
928ALL_BINDINGS
929OCAML_LIBDIR
930ENABLE_VISIBILITY_INLINES_HIDDEN
931RPATH
932RDYNAMIC
933LIBOBJS
934LTLIBOBJS'
935ac_subst_files=''
936      ac_precious_vars='build_alias
937host_alias
938target_alias
939CC
940CFLAGS
941LDFLAGS
942CPPFLAGS
943CPP
944CXX
945CXXFLAGS
946CCC
947CXXCPP
948F77
949FFLAGS'
950ac_subdirs_all='projects/sample
951projects/privbracket
952projects/llvm-stacker
953projects/llvm-test
954projects/test-suite
955projects/llvm-reopt
956projects/llvm-gcc
957projects/llvm-java
958projects/llvm-tv
959projects/llvm-poolalloc
960projects/poolalloc
961projects/llvm-kernel'
962
963# Initialize some variables set by options.
964ac_init_help=
965ac_init_version=false
966# The variables have the same names as the options, with
967# dashes changed to underlines.
968cache_file=/dev/null
969exec_prefix=NONE
970no_create=
971no_recursion=
972prefix=NONE
973program_prefix=NONE
974program_suffix=NONE
975program_transform_name=s,x,x,
976silent=
977site=
978srcdir=
979verbose=
980x_includes=NONE
981x_libraries=NONE
982
983# Installation directory options.
984# These are left unexpanded so users can "make install exec_prefix=/foo"
985# and all the variables that are supposed to be based on exec_prefix
986# by default will actually change.
987# Use braces instead of parens because sh, perl, etc. also accept them.
988# (The list follows the same order as the GNU Coding Standards.)
989bindir='${exec_prefix}/bin'
990sbindir='${exec_prefix}/sbin'
991libexecdir='${exec_prefix}/libexec'
992datarootdir='${prefix}/share'
993datadir='${datarootdir}'
994sysconfdir='${prefix}/etc'
995sharedstatedir='${prefix}/com'
996localstatedir='${prefix}/var'
997includedir='${prefix}/include'
998oldincludedir='/usr/include'
999docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1000infodir='${datarootdir}/info'
1001htmldir='${docdir}'
1002dvidir='${docdir}'
1003pdfdir='${docdir}'
1004psdir='${docdir}'
1005libdir='${exec_prefix}/lib'
1006localedir='${datarootdir}/locale'
1007mandir='${datarootdir}/man'
1008
1009ac_prev=
1010ac_dashdash=
1011for ac_option
1012do
1013  # If the previous option needs an argument, assign it.
1014  if test -n "$ac_prev"; then
1015    eval $ac_prev=\$ac_option
1016    ac_prev=
1017    continue
1018  fi
1019
1020  case $ac_option in
1021  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1022  *)	ac_optarg=yes ;;
1023  esac
1024
1025  # Accept the important Cygnus configure options, so we can diagnose typos.
1026
1027  case $ac_dashdash$ac_option in
1028  --)
1029    ac_dashdash=yes ;;
1030
1031  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1032    ac_prev=bindir ;;
1033  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1034    bindir=$ac_optarg ;;
1035
1036  -build | --build | --buil | --bui | --bu)
1037    ac_prev=build_alias ;;
1038  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1039    build_alias=$ac_optarg ;;
1040
1041  -cache-file | --cache-file | --cache-fil | --cache-fi \
1042  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1043    ac_prev=cache_file ;;
1044  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1045  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1046    cache_file=$ac_optarg ;;
1047
1048  --config-cache | -C)
1049    cache_file=config.cache ;;
1050
1051  -datadir | --datadir | --datadi | --datad)
1052    ac_prev=datadir ;;
1053  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1054    datadir=$ac_optarg ;;
1055
1056  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1057  | --dataroo | --dataro | --datar)
1058    ac_prev=datarootdir ;;
1059  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1060  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1061    datarootdir=$ac_optarg ;;
1062
1063  -disable-* | --disable-*)
1064    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065    # Reject names that are not valid shell variable names.
1066    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1067      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1068   { (exit 1); exit 1; }; }
1069    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1070    eval enable_$ac_feature=no ;;
1071
1072  -docdir | --docdir | --docdi | --doc | --do)
1073    ac_prev=docdir ;;
1074  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1075    docdir=$ac_optarg ;;
1076
1077  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1078    ac_prev=dvidir ;;
1079  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1080    dvidir=$ac_optarg ;;
1081
1082  -enable-* | --enable-*)
1083    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1084    # Reject names that are not valid shell variable names.
1085    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1086      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1087   { (exit 1); exit 1; }; }
1088    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1089    eval enable_$ac_feature=\$ac_optarg ;;
1090
1091  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093  | --exec | --exe | --ex)
1094    ac_prev=exec_prefix ;;
1095  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097  | --exec=* | --exe=* | --ex=*)
1098    exec_prefix=$ac_optarg ;;
1099
1100  -gas | --gas | --ga | --g)
1101    # Obsolete; use --with-gas.
1102    with_gas=yes ;;
1103
1104  -help | --help | --hel | --he | -h)
1105    ac_init_help=long ;;
1106  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107    ac_init_help=recursive ;;
1108  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109    ac_init_help=short ;;
1110
1111  -host | --host | --hos | --ho)
1112    ac_prev=host_alias ;;
1113  -host=* | --host=* | --hos=* | --ho=*)
1114    host_alias=$ac_optarg ;;
1115
1116  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117    ac_prev=htmldir ;;
1118  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119  | --ht=*)
1120    htmldir=$ac_optarg ;;
1121
1122  -includedir | --includedir | --includedi | --included | --include \
1123  | --includ | --inclu | --incl | --inc)
1124    ac_prev=includedir ;;
1125  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126  | --includ=* | --inclu=* | --incl=* | --inc=*)
1127    includedir=$ac_optarg ;;
1128
1129  -infodir | --infodir | --infodi | --infod | --info | --inf)
1130    ac_prev=infodir ;;
1131  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132    infodir=$ac_optarg ;;
1133
1134  -libdir | --libdir | --libdi | --libd)
1135    ac_prev=libdir ;;
1136  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137    libdir=$ac_optarg ;;
1138
1139  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140  | --libexe | --libex | --libe)
1141    ac_prev=libexecdir ;;
1142  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143  | --libexe=* | --libex=* | --libe=*)
1144    libexecdir=$ac_optarg ;;
1145
1146  -localedir | --localedir | --localedi | --localed | --locale)
1147    ac_prev=localedir ;;
1148  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149    localedir=$ac_optarg ;;
1150
1151  -localstatedir | --localstatedir | --localstatedi | --localstated \
1152  | --localstate | --localstat | --localsta | --localst | --locals)
1153    ac_prev=localstatedir ;;
1154  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1155  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1156    localstatedir=$ac_optarg ;;
1157
1158  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159    ac_prev=mandir ;;
1160  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161    mandir=$ac_optarg ;;
1162
1163  -nfp | --nfp | --nf)
1164    # Obsolete; use --without-fp.
1165    with_fp=no ;;
1166
1167  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168  | --no-cr | --no-c | -n)
1169    no_create=yes ;;
1170
1171  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173    no_recursion=yes ;;
1174
1175  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177  | --oldin | --oldi | --old | --ol | --o)
1178    ac_prev=oldincludedir ;;
1179  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182    oldincludedir=$ac_optarg ;;
1183
1184  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185    ac_prev=prefix ;;
1186  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187    prefix=$ac_optarg ;;
1188
1189  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190  | --program-pre | --program-pr | --program-p)
1191    ac_prev=program_prefix ;;
1192  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194    program_prefix=$ac_optarg ;;
1195
1196  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197  | --program-suf | --program-su | --program-s)
1198    ac_prev=program_suffix ;;
1199  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201    program_suffix=$ac_optarg ;;
1202
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    ac_prev=program_transform_name ;;
1211  -program-transform-name=* | --program-transform-name=* \
1212  | --program-transform-nam=* | --program-transform-na=* \
1213  | --program-transform-n=* | --program-transform-=* \
1214  | --program-transform=* | --program-transfor=* \
1215  | --program-transfo=* | --program-transf=* \
1216  | --program-trans=* | --program-tran=* \
1217  | --progr-tra=* | --program-tr=* | --program-t=*)
1218    program_transform_name=$ac_optarg ;;
1219
1220  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221    ac_prev=pdfdir ;;
1222  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223    pdfdir=$ac_optarg ;;
1224
1225  -psdir | --psdir | --psdi | --psd | --ps)
1226    ac_prev=psdir ;;
1227  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228    psdir=$ac_optarg ;;
1229
1230  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231  | -silent | --silent | --silen | --sile | --sil)
1232    silent=yes ;;
1233
1234  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235    ac_prev=sbindir ;;
1236  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237  | --sbi=* | --sb=*)
1238    sbindir=$ac_optarg ;;
1239
1240  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242  | --sharedst | --shareds | --shared | --share | --shar \
1243  | --sha | --sh)
1244    ac_prev=sharedstatedir ;;
1245  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248  | --sha=* | --sh=*)
1249    sharedstatedir=$ac_optarg ;;
1250
1251  -site | --site | --sit)
1252    ac_prev=site ;;
1253  -site=* | --site=* | --sit=*)
1254    site=$ac_optarg ;;
1255
1256  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257    ac_prev=srcdir ;;
1258  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259    srcdir=$ac_optarg ;;
1260
1261  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262  | --syscon | --sysco | --sysc | --sys | --sy)
1263    ac_prev=sysconfdir ;;
1264  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266    sysconfdir=$ac_optarg ;;
1267
1268  -target | --target | --targe | --targ | --tar | --ta | --t)
1269    ac_prev=target_alias ;;
1270  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271    target_alias=$ac_optarg ;;
1272
1273  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274    verbose=yes ;;
1275
1276  -version | --version | --versio | --versi | --vers | -V)
1277    ac_init_version=: ;;
1278
1279  -with-* | --with-*)
1280    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281    # Reject names that are not valid shell variable names.
1282    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1283      { echo "$as_me: error: invalid package name: $ac_package" >&2
1284   { (exit 1); exit 1; }; }
1285    ac_package=`echo $ac_package| sed 's/-/_/g'`
1286    eval with_$ac_package=\$ac_optarg ;;
1287
1288  -without-* | --without-*)
1289    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290    # Reject names that are not valid shell variable names.
1291    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1292      { echo "$as_me: error: invalid package name: $ac_package" >&2
1293   { (exit 1); exit 1; }; }
1294    ac_package=`echo $ac_package | sed 's/-/_/g'`
1295    eval with_$ac_package=no ;;
1296
1297  --x)
1298    # Obsolete; use --with-x.
1299    with_x=yes ;;
1300
1301  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1302  | --x-incl | --x-inc | --x-in | --x-i)
1303    ac_prev=x_includes ;;
1304  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1305  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1306    x_includes=$ac_optarg ;;
1307
1308  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1309  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1310    ac_prev=x_libraries ;;
1311  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1312  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1313    x_libraries=$ac_optarg ;;
1314
1315  -*) { echo "$as_me: error: unrecognized option: $ac_option
1316Try \`$0 --help' for more information." >&2
1317   { (exit 1); exit 1; }; }
1318    ;;
1319
1320  *=*)
1321    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322    # Reject names that are not valid shell variable names.
1323    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1324      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1325   { (exit 1); exit 1; }; }
1326    eval $ac_envvar=\$ac_optarg
1327    export $ac_envvar ;;
1328
1329  *)
1330    # FIXME: should be removed in autoconf 3.0.
1331    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1332    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1333      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1334    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1335    ;;
1336
1337  esac
1338done
1339
1340if test -n "$ac_prev"; then
1341  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1342  { echo "$as_me: error: missing argument to $ac_option" >&2
1343   { (exit 1); exit 1; }; }
1344fi
1345
1346# Be sure to have absolute directory names.
1347for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1348		datadir sysconfdir sharedstatedir localstatedir includedir \
1349		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1350		libdir localedir mandir
1351do
1352  eval ac_val=\$$ac_var
1353  case $ac_val in
1354    [\\/$]* | ?:[\\/]* )  continue;;
1355    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1356  esac
1357  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1358   { (exit 1); exit 1; }; }
1359done
1360
1361# There might be people who depend on the old broken behavior: `$host'
1362# used to hold the argument of --host etc.
1363# FIXME: To remove some day.
1364build=$build_alias
1365host=$host_alias
1366target=$target_alias
1367
1368# FIXME: To remove some day.
1369if test "x$host_alias" != x; then
1370  if test "x$build_alias" = x; then
1371    cross_compiling=maybe
1372    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1373    If a cross compiler is detected then cross compile mode will be used." >&2
1374  elif test "x$build_alias" != "x$host_alias"; then
1375    cross_compiling=yes
1376  fi
1377fi
1378
1379ac_tool_prefix=
1380test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381
1382test "$silent" = yes && exec 6>/dev/null
1383
1384
1385ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386ac_ls_di=`ls -di .` &&
1387ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1388  { echo "$as_me: error: Working directory cannot be determined" >&2
1389   { (exit 1); exit 1; }; }
1390test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1391  { echo "$as_me: error: pwd does not report name of working directory" >&2
1392   { (exit 1); exit 1; }; }
1393
1394
1395# Find the source files, if location was not specified.
1396if test -z "$srcdir"; then
1397  ac_srcdir_defaulted=yes
1398  # Try the directory containing this script, then the parent directory.
1399  ac_confdir=`$as_dirname -- "$0" ||
1400$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1401	 X"$0" : 'X\(//\)[^/]' \| \
1402	 X"$0" : 'X\(//\)$' \| \
1403	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1404echo X"$0" |
1405    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1406	    s//\1/
1407	    q
1408	  }
1409	  /^X\(\/\/\)[^/].*/{
1410	    s//\1/
1411	    q
1412	  }
1413	  /^X\(\/\/\)$/{
1414	    s//\1/
1415	    q
1416	  }
1417	  /^X\(\/\).*/{
1418	    s//\1/
1419	    q
1420	  }
1421	  s/.*/./; q'`
1422  srcdir=$ac_confdir
1423  if test ! -r "$srcdir/$ac_unique_file"; then
1424    srcdir=..
1425  fi
1426else
1427  ac_srcdir_defaulted=no
1428fi
1429if test ! -r "$srcdir/$ac_unique_file"; then
1430  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1431  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1432   { (exit 1); exit 1; }; }
1433fi
1434ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1435ac_abs_confdir=`(
1436	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1437   { (exit 1); exit 1; }; }
1438	pwd)`
1439# When building in place, set srcdir=.
1440if test "$ac_abs_confdir" = "$ac_pwd"; then
1441  srcdir=.
1442fi
1443# Remove unnecessary trailing slashes from srcdir.
1444# Double slashes in file names in object file debugging info
1445# mess up M-x gdb in Emacs.
1446case $srcdir in
1447*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448esac
1449for ac_var in $ac_precious_vars; do
1450  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1451  eval ac_env_${ac_var}_value=\$${ac_var}
1452  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1453  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454done
1455
1456#
1457# Report the --help message.
1458#
1459if test "$ac_init_help" = "long"; then
1460  # Omit some internal or obsolete options to make the list less imposing.
1461  # This message is too long to be a string in the A/UX 3.1 sh.
1462  cat <<_ACEOF
1463\`configure' configures llvm 2.6svn to adapt to many kinds of systems.
1464
1465Usage: $0 [OPTION]... [VAR=VALUE]...
1466
1467To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468VAR=VALUE.  See below for descriptions of some of the useful variables.
1469
1470Defaults for the options are specified in brackets.
1471
1472Configuration:
1473  -h, --help              display this help and exit
1474      --help=short        display options specific to this package
1475      --help=recursive    display the short help of all the included packages
1476  -V, --version           display version information and exit
1477  -q, --quiet, --silent   do not print \`checking...' messages
1478      --cache-file=FILE   cache test results in FILE [disabled]
1479  -C, --config-cache      alias for \`--cache-file=config.cache'
1480  -n, --no-create         do not create output files
1481      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1482
1483Installation directories:
1484  --prefix=PREFIX         install architecture-independent files in PREFIX
1485			  [$ac_default_prefix]
1486  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1487			  [PREFIX]
1488
1489By default, \`make install' will install all the files in
1490\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1491an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492for instance \`--prefix=\$HOME'.
1493
1494For better control, use the options below.
1495
1496Fine tuning of the installation directories:
1497  --bindir=DIR           user executables [EPREFIX/bin]
1498  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1499  --libexecdir=DIR       program executables [EPREFIX/libexec]
1500  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1501  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1502  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1503  --libdir=DIR           object code libraries [EPREFIX/lib]
1504  --includedir=DIR       C header files [PREFIX/include]
1505  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1506  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1507  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1508  --infodir=DIR          info documentation [DATAROOTDIR/info]
1509  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1510  --mandir=DIR           man documentation [DATAROOTDIR/man]
1511  --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1512  --htmldir=DIR          html documentation [DOCDIR]
1513  --dvidir=DIR           dvi documentation [DOCDIR]
1514  --pdfdir=DIR           pdf documentation [DOCDIR]
1515  --psdir=DIR            ps documentation [DOCDIR]
1516_ACEOF
1517
1518  cat <<\_ACEOF
1519
1520System types:
1521  --build=BUILD     configure for building on BUILD [guessed]
1522  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1523  --target=TARGET   configure for building compilers for TARGET [HOST]
1524_ACEOF
1525fi
1526
1527if test -n "$ac_init_help"; then
1528  case $ac_init_help in
1529     short | recursive ) echo "Configuration of llvm 2.6svn:";;
1530   esac
1531  cat <<\_ACEOF
1532
1533Optional Features:
1534  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1535  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1536  --enable-optimized
1537  --enable-profiling
1538  --enable-assertions
1539  --enable-expensive-checks
1540
1541  --enable-debug-runtime
1542  --enable-jit            Enable Just In Time Compiling (default is YES)
1543  --enable-doxygen        Build doxygen documentation (default is NO)
1544  --enable-threads        Use threads if available (default is YES)
1545  --enable-pic            Build LLVM with Position Independent Code (default
1546                          is YES)
1547  --enable-targets        Build specific host targets:
1548                          all,host-only,{target-name} (default=all)
1549  --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1550                          %a (default is YES)
1551  --enable-bindings       Build specific language bindings:
1552                          all,auto,none,{binding-name} (default=auto)
1553  --enable-ltdl-install   install libltdl
1554  --enable-shared[=PKGS]  build shared libraries
1555                          [default=yes]
1556  --enable-static[=PKGS]  build static libraries
1557                          [default=yes]
1558  --enable-fast-install[=PKGS]
1559                          optimize for fast installation
1560                          [default=yes]
1561  --disable-libtool-lock  avoid locking (might break parallel builds)
1562
1563Optional Packages:
1564  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1565  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1566  --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1567                          searches PATH)
1568  --with-llvmgcc          Specify location of llvm-gcc driver (default
1569                          searches PATH)
1570  --with-llvmgxx          Specify location of llvm-g++ driver (default
1571                          searches PATH)
1572  --with-extra-options    Specify addtional options to compile LLVM with
1573  --with-ocaml-libdir     Specify install location for ocaml bindings (default
1574                          is stdlib)
1575  --with-binutils-include Specify path to binutils/include/ containing
1576                          plugin-api.h file for gold plugin.
1577  --with-tclinclude       directory where tcl headers are
1578  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1579  --with-pic              try to use only PIC/non-PIC objects [default=use
1580                          both]
1581  --with-tags[=TAGS]      include additional configurations [automatic]
1582  --with-udis86=<path>    Use udis86 external x86 disassembler library
1583
1584Some influential environment variables:
1585  CC          C compiler command
1586  CFLAGS      C compiler flags
1587  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1588              nonstandard directory <lib dir>
1589  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1590              you have headers in a nonstandard directory <include dir>
1591  CPP         C preprocessor
1592  CXX         C++ compiler command
1593  CXXFLAGS    C++ compiler flags
1594  CXXCPP      C++ preprocessor
1595  F77         Fortran 77 compiler command
1596  FFLAGS      Fortran 77 compiler flags
1597
1598Use these variables to override the choices made by `configure' or to help
1599it to find libraries and programs with nonstandard names/locations.
1600
1601Report bugs to <llvmbugs@cs.uiuc.edu>.
1602_ACEOF
1603ac_status=$?
1604fi
1605
1606if test "$ac_init_help" = "recursive"; then
1607  # If there are subdirs, report their specific --help.
1608  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1609    test -d "$ac_dir" || continue
1610    ac_builddir=.
1611
1612case "$ac_dir" in
1613.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614*)
1615  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1616  # A ".." for each directory in $ac_dir_suffix.
1617  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1618  case $ac_top_builddir_sub in
1619  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1621  esac ;;
1622esac
1623ac_abs_top_builddir=$ac_pwd
1624ac_abs_builddir=$ac_pwd$ac_dir_suffix
1625# for backward compatibility:
1626ac_top_builddir=$ac_top_build_prefix
1627
1628case $srcdir in
1629  .)  # We are building in place.
1630    ac_srcdir=.
1631    ac_top_srcdir=$ac_top_builddir_sub
1632    ac_abs_top_srcdir=$ac_pwd ;;
1633  [\\/]* | ?:[\\/]* )  # Absolute name.
1634    ac_srcdir=$srcdir$ac_dir_suffix;
1635    ac_top_srcdir=$srcdir
1636    ac_abs_top_srcdir=$srcdir ;;
1637  *) # Relative name.
1638    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1639    ac_top_srcdir=$ac_top_build_prefix$srcdir
1640    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1641esac
1642ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1643
1644    cd "$ac_dir" || { ac_status=$?; continue; }
1645    # Check for guested configure.
1646    if test -f "$ac_srcdir/configure.gnu"; then
1647      echo &&
1648      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1649    elif test -f "$ac_srcdir/configure"; then
1650      echo &&
1651      $SHELL "$ac_srcdir/configure" --help=recursive
1652    else
1653      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1654    fi || ac_status=$?
1655    cd "$ac_pwd" || { ac_status=$?; break; }
1656  done
1657fi
1658
1659test -n "$ac_init_help" && exit $ac_status
1660if $ac_init_version; then
1661  cat <<\_ACEOF
1662llvm configure 2.6svn
1663generated by GNU Autoconf 2.60
1664
1665Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16662002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1667This configure script is free software; the Free Software Foundation
1668gives unlimited permission to copy, distribute and modify it.
1669
1670Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1671_ACEOF
1672  exit
1673fi
1674cat >config.log <<_ACEOF
1675This file contains any messages produced by compilers while
1676running configure, to aid debugging if configure makes a mistake.
1677
1678It was created by llvm $as_me 2.6svn, which was
1679generated by GNU Autoconf 2.60.  Invocation command line was
1680
1681  $ $0 $@
1682
1683_ACEOF
1684exec 5>>config.log
1685{
1686cat <<_ASUNAME
1687## --------- ##
1688## Platform. ##
1689## --------- ##
1690
1691hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1692uname -m = `(uname -m) 2>/dev/null || echo unknown`
1693uname -r = `(uname -r) 2>/dev/null || echo unknown`
1694uname -s = `(uname -s) 2>/dev/null || echo unknown`
1695uname -v = `(uname -v) 2>/dev/null || echo unknown`
1696
1697/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1698/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1699
1700/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1701/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1702/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1703/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1704/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1705/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1706/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1707
1708_ASUNAME
1709
1710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711for as_dir in $PATH
1712do
1713  IFS=$as_save_IFS
1714  test -z "$as_dir" && as_dir=.
1715  echo "PATH: $as_dir"
1716done
1717IFS=$as_save_IFS
1718
1719} >&5
1720
1721cat >&5 <<_ACEOF
1722
1723
1724## ----------- ##
1725## Core tests. ##
1726## ----------- ##
1727
1728_ACEOF
1729
1730
1731# Keep a trace of the command line.
1732# Strip out --no-create and --no-recursion so they do not pile up.
1733# Strip out --silent because we don't want to record it for future runs.
1734# Also quote any args containing shell meta-characters.
1735# Make two passes to allow for proper duplicate-argument suppression.
1736ac_configure_args=
1737ac_configure_args0=
1738ac_configure_args1=
1739ac_must_keep_next=false
1740for ac_pass in 1 2
1741do
1742  for ac_arg
1743  do
1744    case $ac_arg in
1745    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1746    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1747    | -silent | --silent | --silen | --sile | --sil)
1748      continue ;;
1749    *\'*)
1750      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1751    esac
1752    case $ac_pass in
1753    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1754    2)
1755      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1756      if test $ac_must_keep_next = true; then
1757	ac_must_keep_next=false # Got value, back to normal.
1758      else
1759	case $ac_arg in
1760	  *=* | --config-cache | -C | -disable-* | --disable-* \
1761	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1762	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1763	  | -with-* | --with-* | -without-* | --without-* | --x)
1764	    case "$ac_configure_args0 " in
1765	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1766	    esac
1767	    ;;
1768	  -* ) ac_must_keep_next=true ;;
1769	esac
1770      fi
1771      ac_configure_args="$ac_configure_args '$ac_arg'"
1772      ;;
1773    esac
1774  done
1775done
1776$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1777$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1778
1779# When interrupted or exit'd, cleanup temporary files, and complete
1780# config.log.  We remove comments because anyway the quotes in there
1781# would cause problems or look ugly.
1782# WARNING: Use '\'' to represent an apostrophe within the trap.
1783# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1784trap 'exit_status=$?
1785  # Save into config.log some information that might help in debugging.
1786  {
1787    echo
1788
1789    cat <<\_ASBOX
1790## ---------------- ##
1791## Cache variables. ##
1792## ---------------- ##
1793_ASBOX
1794    echo
1795    # The following way of writing the cache mishandles newlines in values,
1796(
1797  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1798    eval ac_val=\$$ac_var
1799    case $ac_val in #(
1800    *${as_nl}*)
1801      case $ac_var in #(
1802      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1803echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1804      esac
1805      case $ac_var in #(
1806      _ | IFS | as_nl) ;; #(
1807      *) $as_unset $ac_var ;;
1808      esac ;;
1809    esac
1810  done
1811  (set) 2>&1 |
1812    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1813    *${as_nl}ac_space=\ *)
1814      sed -n \
1815	"s/'\''/'\''\\\\'\'''\''/g;
1816	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1817      ;; #(
1818    *)
1819      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1820      ;;
1821    esac |
1822    sort
1823)
1824    echo
1825
1826    cat <<\_ASBOX
1827## ----------------- ##
1828## Output variables. ##
1829## ----------------- ##
1830_ASBOX
1831    echo
1832    for ac_var in $ac_subst_vars
1833    do
1834      eval ac_val=\$$ac_var
1835      case $ac_val in
1836      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1837      esac
1838      echo "$ac_var='\''$ac_val'\''"
1839    done | sort
1840    echo
1841
1842    if test -n "$ac_subst_files"; then
1843      cat <<\_ASBOX
1844## ------------------- ##
1845## File substitutions. ##
1846## ------------------- ##
1847_ASBOX
1848      echo
1849      for ac_var in $ac_subst_files
1850      do
1851	eval ac_val=\$$ac_var
1852	case $ac_val in
1853	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1854	esac
1855	echo "$ac_var='\''$ac_val'\''"
1856      done | sort
1857      echo
1858    fi
1859
1860    if test -s confdefs.h; then
1861      cat <<\_ASBOX
1862## ----------- ##
1863## confdefs.h. ##
1864## ----------- ##
1865_ASBOX
1866      echo
1867      cat confdefs.h
1868      echo
1869    fi
1870    test "$ac_signal" != 0 &&
1871      echo "$as_me: caught signal $ac_signal"
1872    echo "$as_me: exit $exit_status"
1873  } >&5
1874  rm -f core *.core core.conftest.* &&
1875    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1876    exit $exit_status
1877' 0
1878for ac_signal in 1 2 13 15; do
1879  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1880done
1881ac_signal=0
1882
1883# confdefs.h avoids OS command line length limits that DEFS can exceed.
1884rm -f -r conftest* confdefs.h
1885
1886# Predefined preprocessor variables.
1887
1888cat >>confdefs.h <<_ACEOF
1889#define PACKAGE_NAME "$PACKAGE_NAME"
1890_ACEOF
1891
1892
1893cat >>confdefs.h <<_ACEOF
1894#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1895_ACEOF
1896
1897
1898cat >>confdefs.h <<_ACEOF
1899#define PACKAGE_VERSION "$PACKAGE_VERSION"
1900_ACEOF
1901
1902
1903cat >>confdefs.h <<_ACEOF
1904#define PACKAGE_STRING "$PACKAGE_STRING"
1905_ACEOF
1906
1907
1908cat >>confdefs.h <<_ACEOF
1909#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1910_ACEOF
1911
1912
1913# Let the site file select an alternate cache file if it wants to.
1914# Prefer explicitly selected file to automatically selected ones.
1915if test -n "$CONFIG_SITE"; then
1916  set x "$CONFIG_SITE"
1917elif test "x$prefix" != xNONE; then
1918  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1919else
1920  set x "$ac_default_prefix/share/config.site" \
1921	"$ac_default_prefix/etc/config.site"
1922fi
1923shift
1924for ac_site_file
1925do
1926  if test -r "$ac_site_file"; then
1927    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1928echo "$as_me: loading site script $ac_site_file" >&6;}
1929    sed 's/^/| /' "$ac_site_file" >&5
1930    . "$ac_site_file"
1931  fi
1932done
1933
1934if test -r "$cache_file"; then
1935  # Some versions of bash will fail to source /dev/null (special
1936  # files actually), so we avoid doing that.
1937  if test -f "$cache_file"; then
1938    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1939echo "$as_me: loading cache $cache_file" >&6;}
1940    case $cache_file in
1941      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1942      *)                      . "./$cache_file";;
1943    esac
1944  fi
1945else
1946  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1947echo "$as_me: creating cache $cache_file" >&6;}
1948  >$cache_file
1949fi
1950
1951# Check that the precious variables saved in the cache have kept the same
1952# value.
1953ac_cache_corrupted=false
1954for ac_var in $ac_precious_vars; do
1955  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1956  eval ac_new_set=\$ac_env_${ac_var}_set
1957  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1958  eval ac_new_val=\$ac_env_${ac_var}_value
1959  case $ac_old_set,$ac_new_set in
1960    set,)
1961      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1962echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1963      ac_cache_corrupted=: ;;
1964    ,set)
1965      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1966echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1967      ac_cache_corrupted=: ;;
1968    ,);;
1969    *)
1970      if test "x$ac_old_val" != "x$ac_new_val"; then
1971	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1972echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1973	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1974echo "$as_me:   former value:  $ac_old_val" >&2;}
1975	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1976echo "$as_me:   current value: $ac_new_val" >&2;}
1977	ac_cache_corrupted=:
1978      fi;;
1979  esac
1980  # Pass precious variables to config.status.
1981  if test "$ac_new_set" = set; then
1982    case $ac_new_val in
1983    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1984    *) ac_arg=$ac_var=$ac_new_val ;;
1985    esac
1986    case " $ac_configure_args " in
1987      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1988      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1989    esac
1990  fi
1991done
1992if $ac_cache_corrupted; then
1993  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1994echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1995  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1996echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1997   { (exit 1); exit 1; }; }
1998fi
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024ac_ext=c
2025ac_cpp='$CPP $CPPFLAGS'
2026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2028ac_compiler_gnu=$ac_cv_c_compiler_gnu
2029
2030
2031
2032LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2033
2034
2035
2036
2037
2038
2039
2040ac_aux_dir=
2041for ac_dir in autoconf "$srcdir"/autoconf; do
2042  if test -f "$ac_dir/install-sh"; then
2043    ac_aux_dir=$ac_dir
2044    ac_install_sh="$ac_aux_dir/install-sh -c"
2045    break
2046  elif test -f "$ac_dir/install.sh"; then
2047    ac_aux_dir=$ac_dir
2048    ac_install_sh="$ac_aux_dir/install.sh -c"
2049    break
2050  elif test -f "$ac_dir/shtool"; then
2051    ac_aux_dir=$ac_dir
2052    ac_install_sh="$ac_aux_dir/shtool install -c"
2053    break
2054  fi
2055done
2056if test -z "$ac_aux_dir"; then
2057  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2058echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2059   { (exit 1); exit 1; }; }
2060fi
2061
2062# These three variables are undocumented and unsupported,
2063# and are intended to be withdrawn in a future Autoconf release.
2064# They can cause serious problems if a builder's source tree is in a directory
2065# whose full name contains unusual characters.
2066ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2067ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2068ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2069
2070
2071
2072if test ${srcdir} != "." ; then
2073  if test -f ${srcdir}/include/llvm/Config/config.h ; then
2074    { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2075echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2076   { (exit 1); exit 1; }; }
2077  fi
2078fi
2079
2080for i in `ls ${srcdir}/projects`
2081do
2082  if test -d ${srcdir}/projects/${i} ; then
2083    case ${i} in
2084      CVS) ;;
2085      sample)       subdirs="$subdirs projects/sample"
2086    ;;
2087      privbracket)  subdirs="$subdirs projects/privbracket"
2088 ;;
2089      llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2090 ;;
2091      # llvm-test is the old name of the test-suite, kept here for backwards
2092      # compatibility
2093      llvm-test)    subdirs="$subdirs projects/llvm-test"
2094 ;;
2095      test-suite)   subdirs="$subdirs projects/test-suite"
2096 ;;
2097      llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2098;;
2099      llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2100  ;;
2101      llvm-java)    subdirs="$subdirs projects/llvm-java"
2102 ;;
2103      llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2104   ;;
2105      llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2106 ;;
2107      poolalloc)    subdirs="$subdirs projects/poolalloc"
2108 ;;
2109      llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2110 ;;
2111      *)
2112        { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2113echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2114        ;;
2115    esac
2116  fi
2117done
2118
2119
2120# Make sure we can run config.sub.
2121$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2122  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2123echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2124   { (exit 1); exit 1; }; }
2125
2126{ echo "$as_me:$LINENO: checking build system type" >&5
2127echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2128if test "${ac_cv_build+set}" = set; then
2129  echo $ECHO_N "(cached) $ECHO_C" >&6
2130else
2131  ac_build_alias=$build_alias
2132test "x$ac_build_alias" = x &&
2133  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2134test "x$ac_build_alias" = x &&
2135  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2136echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2137   { (exit 1); exit 1; }; }
2138ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2139  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2140echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2141   { (exit 1); exit 1; }; }
2142
2143fi
2144{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2145echo "${ECHO_T}$ac_cv_build" >&6; }
2146case $ac_cv_build in
2147*-*-*) ;;
2148*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2149echo "$as_me: error: invalid value of canonical build" >&2;}
2150   { (exit 1); exit 1; }; };;
2151esac
2152build=$ac_cv_build
2153ac_save_IFS=$IFS; IFS='-'
2154set x $ac_cv_build
2155shift
2156build_cpu=$1
2157build_vendor=$2
2158shift; shift
2159# Remember, the first character of IFS is used to create $*,
2160# except with old shells:
2161build_os=$*
2162IFS=$ac_save_IFS
2163case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2164
2165
2166{ echo "$as_me:$LINENO: checking host system type" >&5
2167echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2168if test "${ac_cv_host+set}" = set; then
2169  echo $ECHO_N "(cached) $ECHO_C" >&6
2170else
2171  if test "x$host_alias" = x; then
2172  ac_cv_host=$ac_cv_build
2173else
2174  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2175    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2176echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2177   { (exit 1); exit 1; }; }
2178fi
2179
2180fi
2181{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2182echo "${ECHO_T}$ac_cv_host" >&6; }
2183case $ac_cv_host in
2184*-*-*) ;;
2185*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2186echo "$as_me: error: invalid value of canonical host" >&2;}
2187   { (exit 1); exit 1; }; };;
2188esac
2189host=$ac_cv_host
2190ac_save_IFS=$IFS; IFS='-'
2191set x $ac_cv_host
2192shift
2193host_cpu=$1
2194host_vendor=$2
2195shift; shift
2196# Remember, the first character of IFS is used to create $*,
2197# except with old shells:
2198host_os=$*
2199IFS=$ac_save_IFS
2200case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2201
2202
2203{ echo "$as_me:$LINENO: checking target system type" >&5
2204echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2205if test "${ac_cv_target+set}" = set; then
2206  echo $ECHO_N "(cached) $ECHO_C" >&6
2207else
2208  if test "x$target_alias" = x; then
2209  ac_cv_target=$ac_cv_host
2210else
2211  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2212    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2213echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2214   { (exit 1); exit 1; }; }
2215fi
2216
2217fi
2218{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2219echo "${ECHO_T}$ac_cv_target" >&6; }
2220case $ac_cv_target in
2221*-*-*) ;;
2222*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2223echo "$as_me: error: invalid value of canonical target" >&2;}
2224   { (exit 1); exit 1; }; };;
2225esac
2226target=$ac_cv_target
2227ac_save_IFS=$IFS; IFS='-'
2228set x $ac_cv_target
2229shift
2230target_cpu=$1
2231target_vendor=$2
2232shift; shift
2233# Remember, the first character of IFS is used to create $*,
2234# except with old shells:
2235target_os=$*
2236IFS=$ac_save_IFS
2237case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2238
2239
2240# The aliases save the names the user supplied, while $host etc.
2241# will get canonicalized.
2242test -n "$target_alias" &&
2243  test "$program_prefix$program_suffix$program_transform_name" = \
2244    NONENONEs,x,x, &&
2245  program_prefix=${target_alias}-
2246
2247{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2248echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2249if test "${llvm_cv_os_type+set}" = set; then
2250  echo $ECHO_N "(cached) $ECHO_C" >&6
2251else
2252  case $host in
2253  *-*-aix*)
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="AIX"
2257    llvm_cv_platform_type="Unix" ;;
2258  *-*-irix*)
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="IRIX"
2262    llvm_cv_platform_type="Unix" ;;
2263  *-*-cygwin*)
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="Cygwin"
2267    llvm_cv_platform_type="Unix" ;;
2268  *-*-darwin*)
2269    llvm_cv_link_all_option="-Wl,-all_load"
2270    llvm_cv_no_link_all_option="-Wl,-noall_load"
2271    llvm_cv_os_type="Darwin"
2272    llvm_cv_platform_type="Unix" ;;
2273  *-*-freebsd*)
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="FreeBSD"
2277    llvm_cv_platform_type="Unix" ;;
2278  *-*-openbsd*)
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="OpenBSD"
2282    llvm_cv_platform_type="Unix" ;;
2283  *-*-netbsd*)
2284    llvm_cv_link_all_option="-Wl,--whole-archive"
2285    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2286    llvm_cv_os_type="NetBSD"
2287    llvm_cv_platform_type="Unix" ;;
2288  *-*-dragonfly*)
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="DragonFly"
2292    llvm_cv_platform_type="Unix" ;;
2293  *-*-hpux*)
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="HP-UX"
2297    llvm_cv_platform_type="Unix" ;;
2298  *-*-interix*)
2299    llvm_cv_link_all_option="-Wl,--whole-archive"
2300    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2301    llvm_cv_os_type="Interix"
2302    llvm_cv_platform_type="Unix" ;;
2303  *-*-linux*)
2304    llvm_cv_link_all_option="-Wl,--whole-archive"
2305    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2306    llvm_cv_os_type="Linux"
2307    llvm_cv_platform_type="Unix" ;;
2308  *-*-solaris*)
2309    llvm_cv_link_all_option="-Wl,-z,allextract"
2310    llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2311    llvm_cv_os_type="SunOS"
2312    llvm_cv_platform_type="Unix" ;;
2313  *-*-win32*)
2314    llvm_cv_link_all_option="-Wl,--whole-archive"
2315    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2316    llvm_cv_os_type="Win32"
2317    llvm_cv_platform_type="Win32" ;;
2318  *-*-mingw*)
2319    llvm_cv_link_all_option="-Wl,--whole-archive"
2320    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2321    llvm_cv_os_type="MingW"
2322    llvm_cv_platform_type="Win32" ;;
2323  *)
2324    llvm_cv_link_all_option=""
2325    llvm_cv_no_link_all_option=""
2326    llvm_cv_os_type="Unknown"
2327    llvm_cv_platform_type="Unknown" ;;
2328esac
2329fi
2330{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2331echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2332
2333if test "$llvm_cv_os_type" = "Unknown" ; then
2334  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2335echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2336   { (exit 1); exit 1; }; }
2337fi
2338
2339OS=$llvm_cv_os_type
2340
2341
2342LINKALL=$llvm_cv_link_all_option
2343
2344NOLINKALL=$llvm_cv_no_link_all_option
2345
2346
2347case $llvm_cv_platform_type in
2348  Unix)
2349
2350cat >>confdefs.h <<\_ACEOF
2351#define LLVM_ON_UNIX 1
2352_ACEOF
2353
2354    LLVM_ON_UNIX=1
2355
2356    LLVM_ON_WIN32=0
2357
2358    ;;
2359  Win32)
2360
2361cat >>confdefs.h <<\_ACEOF
2362#define LLVM_ON_WIN32 1
2363_ACEOF
2364
2365    LLVM_ON_UNIX=0
2366
2367    LLVM_ON_WIN32=1
2368
2369    ;;
2370esac
2371
2372{ echo "$as_me:$LINENO: checking target architecture" >&5
2373echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2374if test "${llvm_cv_target_arch+set}" = set; then
2375  echo $ECHO_N "(cached) $ECHO_C" >&6
2376else
2377  case $target in
2378  i?86-*)                 llvm_cv_target_arch="x86" ;;
2379  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2380  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2381  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2382  alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2383  ia64-*)                 llvm_cv_target_arch="IA64" ;;
2384  arm*-*)                 llvm_cv_target_arch="ARM" ;;
2385  mips-*)                 llvm_cv_target_arch="Mips" ;;
2386  pic16-*)                llvm_cv_target_arch="PIC16" ;;
2387  xcore-*)                llvm_cv_target_arch="XCore" ;;
2388  msp430-*)               llvm_cv_target_arch="MSP430" ;;
2389  *)                      llvm_cv_target_arch="Unknown" ;;
2390esac
2391fi
2392{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2393echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2394
2395if test "$llvm_cv_target_arch" = "Unknown" ; then
2396  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2397echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2398fi
2399
2400ARCH=$llvm_cv_target_arch
2401
2402
2403ac_ext=c
2404ac_cpp='$CPP $CPPFLAGS'
2405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2407ac_compiler_gnu=$ac_cv_c_compiler_gnu
2408if test -n "$ac_tool_prefix"; then
2409  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2410set dummy ${ac_tool_prefix}gcc; ac_word=$2
2411{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2413if test "${ac_cv_prog_CC+set}" = set; then
2414  echo $ECHO_N "(cached) $ECHO_C" >&6
2415else
2416  if test -n "$CC"; then
2417  ac_cv_prog_CC="$CC" # Let the user override the test.
2418else
2419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420for as_dir in $PATH
2421do
2422  IFS=$as_save_IFS
2423  test -z "$as_dir" && as_dir=.
2424  for ac_exec_ext in '' $ac_executable_extensions; do
2425  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2426    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2427    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428    break 2
2429  fi
2430done
2431done
2432IFS=$as_save_IFS
2433
2434fi
2435fi
2436CC=$ac_cv_prog_CC
2437if test -n "$CC"; then
2438  { echo "$as_me:$LINENO: result: $CC" >&5
2439echo "${ECHO_T}$CC" >&6; }
2440else
2441  { echo "$as_me:$LINENO: result: no" >&5
2442echo "${ECHO_T}no" >&6; }
2443fi
2444
2445
2446fi
2447if test -z "$ac_cv_prog_CC"; then
2448  ac_ct_CC=$CC
2449  # Extract the first word of "gcc", so it can be a program name with args.
2450set dummy gcc; ac_word=$2
2451{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2453if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2454  echo $ECHO_N "(cached) $ECHO_C" >&6
2455else
2456  if test -n "$ac_ct_CC"; then
2457  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2458else
2459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460for as_dir in $PATH
2461do
2462  IFS=$as_save_IFS
2463  test -z "$as_dir" && as_dir=.
2464  for ac_exec_ext in '' $ac_executable_extensions; do
2465  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2466    ac_cv_prog_ac_ct_CC="gcc"
2467    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2468    break 2
2469  fi
2470done
2471done
2472IFS=$as_save_IFS
2473
2474fi
2475fi
2476ac_ct_CC=$ac_cv_prog_ac_ct_CC
2477if test -n "$ac_ct_CC"; then
2478  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2479echo "${ECHO_T}$ac_ct_CC" >&6; }
2480else
2481  { echo "$as_me:$LINENO: result: no" >&5
2482echo "${ECHO_T}no" >&6; }
2483fi
2484
2485  if test "x$ac_ct_CC" = x; then
2486    CC=""
2487  else
2488    case $cross_compiling:$ac_tool_warned in
2489yes:)
2490{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2491whose name does not start with the host triplet.  If you think this
2492configuration is useful to you, please write to autoconf@gnu.org." >&5
2493echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2494whose name does not start with the host triplet.  If you think this
2495configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2496ac_tool_warned=yes ;;
2497esac
2498    CC=$ac_ct_CC
2499  fi
2500else
2501  CC="$ac_cv_prog_CC"
2502fi
2503
2504if test -z "$CC"; then
2505          if test -n "$ac_tool_prefix"; then
2506    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2507set dummy ${ac_tool_prefix}cc; ac_word=$2
2508{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2510if test "${ac_cv_prog_CC+set}" = set; then
2511  echo $ECHO_N "(cached) $ECHO_C" >&6
2512else
2513  if test -n "$CC"; then
2514  ac_cv_prog_CC="$CC" # Let the user override the test.
2515else
2516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517for as_dir in $PATH
2518do
2519  IFS=$as_save_IFS
2520  test -z "$as_dir" && as_dir=.
2521  for ac_exec_ext in '' $ac_executable_extensions; do
2522  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2523    ac_cv_prog_CC="${ac_tool_prefix}cc"
2524    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525    break 2
2526  fi
2527done
2528done
2529IFS=$as_save_IFS
2530
2531fi
2532fi
2533CC=$ac_cv_prog_CC
2534if test -n "$CC"; then
2535  { echo "$as_me:$LINENO: result: $CC" >&5
2536echo "${ECHO_T}$CC" >&6; }
2537else
2538  { echo "$as_me:$LINENO: result: no" >&5
2539echo "${ECHO_T}no" >&6; }
2540fi
2541
2542
2543  fi
2544fi
2545if test -z "$CC"; then
2546  # Extract the first word of "cc", so it can be a program name with args.
2547set dummy cc; ac_word=$2
2548{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2550if test "${ac_cv_prog_CC+set}" = set; then
2551  echo $ECHO_N "(cached) $ECHO_C" >&6
2552else
2553  if test -n "$CC"; then
2554  ac_cv_prog_CC="$CC" # Let the user override the test.
2555else
2556  ac_prog_rejected=no
2557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558for as_dir in $PATH
2559do
2560  IFS=$as_save_IFS
2561  test -z "$as_dir" && as_dir=.
2562  for ac_exec_ext in '' $ac_executable_extensions; do
2563  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2564    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2565       ac_prog_rejected=yes
2566       continue
2567     fi
2568    ac_cv_prog_CC="cc"
2569    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570    break 2
2571  fi
2572done
2573done
2574IFS=$as_save_IFS
2575
2576if test $ac_prog_rejected = yes; then
2577  # We found a bogon in the path, so make sure we never use it.
2578  set dummy $ac_cv_prog_CC
2579  shift
2580  if test $# != 0; then
2581    # We chose a different compiler from the bogus one.
2582    # However, it has the same basename, so the bogon will be chosen
2583    # first if we set CC to just the basename; use the full file name.
2584    shift
2585    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2586  fi
2587fi
2588fi
2589fi
2590CC=$ac_cv_prog_CC
2591if test -n "$CC"; then
2592  { echo "$as_me:$LINENO: result: $CC" >&5
2593echo "${ECHO_T}$CC" >&6; }
2594else
2595  { echo "$as_me:$LINENO: result: no" >&5
2596echo "${ECHO_T}no" >&6; }
2597fi
2598
2599
2600fi
2601if test -z "$CC"; then
2602  if test -n "$ac_tool_prefix"; then
2603  for ac_prog in cl.exe
2604  do
2605    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2606set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2607{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2609if test "${ac_cv_prog_CC+set}" = set; then
2610  echo $ECHO_N "(cached) $ECHO_C" >&6
2611else
2612  if test -n "$CC"; then
2613  ac_cv_prog_CC="$CC" # Let the user override the test.
2614else
2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618  IFS=$as_save_IFS
2619  test -z "$as_dir" && as_dir=.
2620  for ac_exec_ext in '' $ac_executable_extensions; do
2621  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2622    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2623    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624    break 2
2625  fi
2626done
2627done
2628IFS=$as_save_IFS
2629
2630fi
2631fi
2632CC=$ac_cv_prog_CC
2633if test -n "$CC"; then
2634  { echo "$as_me:$LINENO: result: $CC" >&5
2635echo "${ECHO_T}$CC" >&6; }
2636else
2637  { echo "$as_me:$LINENO: result: no" >&5
2638echo "${ECHO_T}no" >&6; }
2639fi
2640
2641
2642    test -n "$CC" && break
2643  done
2644fi
2645if test -z "$CC"; then
2646  ac_ct_CC=$CC
2647  for ac_prog in cl.exe
2648do
2649  # Extract the first word of "$ac_prog", so it can be a program name with args.
2650set dummy $ac_prog; ac_word=$2
2651{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2653if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2654  echo $ECHO_N "(cached) $ECHO_C" >&6
2655else
2656  if test -n "$ac_ct_CC"; then
2657  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2658else
2659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660for as_dir in $PATH
2661do
2662  IFS=$as_save_IFS
2663  test -z "$as_dir" && as_dir=.
2664  for ac_exec_ext in '' $ac_executable_extensions; do
2665  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2666    ac_cv_prog_ac_ct_CC="$ac_prog"
2667    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2668    break 2
2669  fi
2670done
2671done
2672IFS=$as_save_IFS
2673
2674fi
2675fi
2676ac_ct_CC=$ac_cv_prog_ac_ct_CC
2677if test -n "$ac_ct_CC"; then
2678  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2679echo "${ECHO_T}$ac_ct_CC" >&6; }
2680else
2681  { echo "$as_me:$LINENO: result: no" >&5
2682echo "${ECHO_T}no" >&6; }
2683fi
2684
2685
2686  test -n "$ac_ct_CC" && break
2687done
2688
2689  if test "x$ac_ct_CC" = x; then
2690    CC=""
2691  else
2692    case $cross_compiling:$ac_tool_warned in
2693yes:)
2694{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2695whose name does not start with the host triplet.  If you think this
2696configuration is useful to you, please write to autoconf@gnu.org." >&5
2697echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2698whose name does not start with the host triplet.  If you think this
2699configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2700ac_tool_warned=yes ;;
2701esac
2702    CC=$ac_ct_CC
2703  fi
2704fi
2705
2706fi
2707
2708
2709test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2710See \`config.log' for more details." >&5
2711echo "$as_me: error: no acceptable C compiler found in \$PATH
2712See \`config.log' for more details." >&2;}
2713   { (exit 1); exit 1; }; }
2714
2715# Provide some information about the compiler.
2716echo "$as_me:$LINENO: checking for C compiler version" >&5
2717ac_compiler=`set X $ac_compile; echo $2`
2718{ (ac_try="$ac_compiler --version >&5"
2719case "(($ac_try" in
2720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721  *) ac_try_echo=$ac_try;;
2722esac
2723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724  (eval "$ac_compiler --version >&5") 2>&5
2725  ac_status=$?
2726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727  (exit $ac_status); }
2728{ (ac_try="$ac_compiler -v >&5"
2729case "(($ac_try" in
2730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731  *) ac_try_echo=$ac_try;;
2732esac
2733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734  (eval "$ac_compiler -v >&5") 2>&5
2735  ac_status=$?
2736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737  (exit $ac_status); }
2738{ (ac_try="$ac_compiler -V >&5"
2739case "(($ac_try" in
2740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741  *) ac_try_echo=$ac_try;;
2742esac
2743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744  (eval "$ac_compiler -V >&5") 2>&5
2745  ac_status=$?
2746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747  (exit $ac_status); }
2748
2749cat >conftest.$ac_ext <<_ACEOF
2750/* confdefs.h.  */
2751_ACEOF
2752cat confdefs.h >>conftest.$ac_ext
2753cat >>conftest.$ac_ext <<_ACEOF
2754/* end confdefs.h.  */
2755
2756int
2757main ()
2758{
2759
2760  ;
2761  return 0;
2762}
2763_ACEOF
2764ac_clean_files_save=$ac_clean_files
2765ac_clean_files="$ac_clean_files a.out a.exe b.out"
2766# Try to create an executable without -o first, disregard a.out.
2767# It will help us diagnose broken compilers, and finding out an intuition
2768# of exeext.
2769{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2770echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2771ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2772#
2773# List of possible output files, starting from the most likely.
2774# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2775# only as a last resort.  b.out is created by i960 compilers.
2776ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2777#
2778# The IRIX 6 linker writes into existing files which may not be
2779# executable, retaining their permissions.  Remove them first so a
2780# subsequent execution test works.
2781ac_rmfiles=
2782for ac_file in $ac_files
2783do
2784  case $ac_file in
2785    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2786    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2787  esac
2788done
2789rm -f $ac_rmfiles
2790
2791if { (ac_try="$ac_link_default"
2792case "(($ac_try" in
2793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794  *) ac_try_echo=$ac_try;;
2795esac
2796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2797  (eval "$ac_link_default") 2>&5
2798  ac_status=$?
2799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800  (exit $ac_status); }; then
2801  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2802# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2803# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2804# so that the user can short-circuit this test for compilers unknown to
2805# Autoconf.
2806for ac_file in $ac_files
2807do
2808  test -f "$ac_file" || continue
2809  case $ac_file in
2810    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2811	;;
2812    [ab].out )
2813	# We found the default executable, but exeext='' is most
2814	# certainly right.
2815	break;;
2816    *.* )
2817        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2818	then :; else
2819	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2820	fi
2821	# We set ac_cv_exeext here because the later test for it is not
2822	# safe: cross compilers may not add the suffix if given an `-o'
2823	# argument, so we may need to know it at that point already.
2824	# Even if this section looks crufty: it has the advantage of
2825	# actually working.
2826	break;;
2827    * )
2828	break;;
2829  esac
2830done
2831test "$ac_cv_exeext" = no && ac_cv_exeext=
2832
2833else
2834  echo "$as_me: failed program was:" >&5
2835sed 's/^/| /' conftest.$ac_ext >&5
2836
2837{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2838See \`config.log' for more details." >&5
2839echo "$as_me: error: C compiler cannot create executables
2840See \`config.log' for more details." >&2;}
2841   { (exit 77); exit 77; }; }
2842fi
2843
2844ac_exeext=$ac_cv_exeext
2845{ echo "$as_me:$LINENO: result: $ac_file" >&5
2846echo "${ECHO_T}$ac_file" >&6; }
2847
2848# Check that the compiler produces executables we can run.  If not, either
2849# the compiler is broken, or we cross compile.
2850{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2851echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2852# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2853# If not cross compiling, check that we can run a simple program.
2854if test "$cross_compiling" != yes; then
2855  if { ac_try='./$ac_file'
2856  { (case "(($ac_try" in
2857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858  *) ac_try_echo=$ac_try;;
2859esac
2860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2861  (eval "$ac_try") 2>&5
2862  ac_status=$?
2863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864  (exit $ac_status); }; }; then
2865    cross_compiling=no
2866  else
2867    if test "$cross_compiling" = maybe; then
2868	cross_compiling=yes
2869    else
2870	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2871If you meant to cross compile, use \`--host'.
2872See \`config.log' for more details." >&5
2873echo "$as_me: error: cannot run C compiled programs.
2874If you meant to cross compile, use \`--host'.
2875See \`config.log' for more details." >&2;}
2876   { (exit 1); exit 1; }; }
2877    fi
2878  fi
2879fi
2880{ echo "$as_me:$LINENO: result: yes" >&5
2881echo "${ECHO_T}yes" >&6; }
2882
2883rm -f a.out a.exe conftest$ac_cv_exeext b.out
2884ac_clean_files=$ac_clean_files_save
2885# Check that the compiler produces executables we can run.  If not, either
2886# the compiler is broken, or we cross compile.
2887{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2888echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2889{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2890echo "${ECHO_T}$cross_compiling" >&6; }
2891
2892{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2893echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2894if { (ac_try="$ac_link"
2895case "(($ac_try" in
2896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897  *) ac_try_echo=$ac_try;;
2898esac
2899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900  (eval "$ac_link") 2>&5
2901  ac_status=$?
2902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903  (exit $ac_status); }; then
2904  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2905# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2906# work properly (i.e., refer to `conftest.exe'), while it won't with
2907# `rm'.
2908for ac_file in conftest.exe conftest conftest.*; do
2909  test -f "$ac_file" || continue
2910  case $ac_file in
2911    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2912    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2913	  break;;
2914    * ) break;;
2915  esac
2916done
2917else
2918  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2919See \`config.log' for more details." >&5
2920echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2921See \`config.log' for more details." >&2;}
2922   { (exit 1); exit 1; }; }
2923fi
2924
2925rm -f conftest$ac_cv_exeext
2926{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2927echo "${ECHO_T}$ac_cv_exeext" >&6; }
2928
2929rm -f conftest.$ac_ext
2930EXEEXT=$ac_cv_exeext
2931ac_exeext=$EXEEXT
2932{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2933echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2934if test "${ac_cv_objext+set}" = set; then
2935  echo $ECHO_N "(cached) $ECHO_C" >&6
2936else
2937  cat >conftest.$ac_ext <<_ACEOF
2938/* confdefs.h.  */
2939_ACEOF
2940cat confdefs.h >>conftest.$ac_ext
2941cat >>conftest.$ac_ext <<_ACEOF
2942/* end confdefs.h.  */
2943
2944int
2945main ()
2946{
2947
2948  ;
2949  return 0;
2950}
2951_ACEOF
2952rm -f conftest.o conftest.obj
2953if { (ac_try="$ac_compile"
2954case "(($ac_try" in
2955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956  *) ac_try_echo=$ac_try;;
2957esac
2958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959  (eval "$ac_compile") 2>&5
2960  ac_status=$?
2961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962  (exit $ac_status); }; then
2963  for ac_file in conftest.o conftest.obj conftest.*; do
2964  test -f "$ac_file" || continue;
2965  case $ac_file in
2966    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2967    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2968       break;;
2969  esac
2970done
2971else
2972  echo "$as_me: failed program was:" >&5
2973sed 's/^/| /' conftest.$ac_ext >&5
2974
2975{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2976See \`config.log' for more details." >&5
2977echo "$as_me: error: cannot compute suffix of object files: cannot compile
2978See \`config.log' for more details." >&2;}
2979   { (exit 1); exit 1; }; }
2980fi
2981
2982rm -f conftest.$ac_cv_objext conftest.$ac_ext
2983fi
2984{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2985echo "${ECHO_T}$ac_cv_objext" >&6; }
2986OBJEXT=$ac_cv_objext
2987ac_objext=$OBJEXT
2988{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2989echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2990if test "${ac_cv_c_compiler_gnu+set}" = set; then
2991  echo $ECHO_N "(cached) $ECHO_C" >&6
2992else
2993  cat >conftest.$ac_ext <<_ACEOF
2994/* confdefs.h.  */
2995_ACEOF
2996cat confdefs.h >>conftest.$ac_ext
2997cat >>conftest.$ac_ext <<_ACEOF
2998/* end confdefs.h.  */
2999
3000int
3001main ()
3002{
3003#ifndef __GNUC__
3004       choke me
3005#endif
3006
3007  ;
3008  return 0;
3009}
3010_ACEOF
3011rm -f conftest.$ac_objext
3012if { (ac_try="$ac_compile"
3013case "(($ac_try" in
3014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015  *) ac_try_echo=$ac_try;;
3016esac
3017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018  (eval "$ac_compile") 2>conftest.er1
3019  ac_status=$?
3020  grep -v '^ *+' conftest.er1 >conftest.err
3021  rm -f conftest.er1
3022  cat conftest.err >&5
3023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024  (exit $ac_status); } &&
3025	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3026  { (case "(($ac_try" in
3027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028  *) ac_try_echo=$ac_try;;
3029esac
3030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031  (eval "$ac_try") 2>&5
3032  ac_status=$?
3033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034  (exit $ac_status); }; } &&
3035	 { ac_try='test -s conftest.$ac_objext'
3036  { (case "(($ac_try" in
3037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038  *) ac_try_echo=$ac_try;;
3039esac
3040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041  (eval "$ac_try") 2>&5
3042  ac_status=$?
3043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044  (exit $ac_status); }; }; then
3045  ac_compiler_gnu=yes
3046else
3047  echo "$as_me: failed program was:" >&5
3048sed 's/^/| /' conftest.$ac_ext >&5
3049
3050	ac_compiler_gnu=no
3051fi
3052
3053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3054ac_cv_c_compiler_gnu=$ac_compiler_gnu
3055
3056fi
3057{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3058echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3059GCC=`test $ac_compiler_gnu = yes && echo yes`
3060ac_test_CFLAGS=${CFLAGS+set}
3061ac_save_CFLAGS=$CFLAGS
3062{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3063echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3064if test "${ac_cv_prog_cc_g+set}" = set; then
3065  echo $ECHO_N "(cached) $ECHO_C" >&6
3066else
3067  ac_save_c_werror_flag=$ac_c_werror_flag
3068   ac_c_werror_flag=yes
3069   ac_cv_prog_cc_g=no
3070   CFLAGS="-g"
3071   cat >conftest.$ac_ext <<_ACEOF
3072/* confdefs.h.  */
3073_ACEOF
3074cat confdefs.h >>conftest.$ac_ext
3075cat >>conftest.$ac_ext <<_ACEOF
3076/* end confdefs.h.  */
3077
3078int
3079main ()
3080{
3081
3082  ;
3083  return 0;
3084}
3085_ACEOF
3086rm -f conftest.$ac_objext
3087if { (ac_try="$ac_compile"
3088case "(($ac_try" in
3089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090  *) ac_try_echo=$ac_try;;
3091esac
3092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093  (eval "$ac_compile") 2>conftest.er1
3094  ac_status=$?
3095  grep -v '^ *+' conftest.er1 >conftest.err
3096  rm -f conftest.er1
3097  cat conftest.err >&5
3098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099  (exit $ac_status); } &&
3100	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3101  { (case "(($ac_try" in
3102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103  *) ac_try_echo=$ac_try;;
3104esac
3105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106  (eval "$ac_try") 2>&5
3107  ac_status=$?
3108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109  (exit $ac_status); }; } &&
3110	 { ac_try='test -s conftest.$ac_objext'
3111  { (case "(($ac_try" in
3112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113  *) ac_try_echo=$ac_try;;
3114esac
3115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116  (eval "$ac_try") 2>&5
3117  ac_status=$?
3118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119  (exit $ac_status); }; }; then
3120  ac_cv_prog_cc_g=yes
3121else
3122  echo "$as_me: failed program was:" >&5
3123sed 's/^/| /' conftest.$ac_ext >&5
3124
3125	CFLAGS=""
3126      cat >conftest.$ac_ext <<_ACEOF
3127/* confdefs.h.  */
3128_ACEOF
3129cat confdefs.h >>conftest.$ac_ext
3130cat >>conftest.$ac_ext <<_ACEOF
3131/* end confdefs.h.  */
3132
3133int
3134main ()
3135{
3136
3137  ;
3138  return 0;
3139}
3140_ACEOF
3141rm -f conftest.$ac_objext
3142if { (ac_try="$ac_compile"
3143case "(($ac_try" in
3144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145  *) ac_try_echo=$ac_try;;
3146esac
3147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148  (eval "$ac_compile") 2>conftest.er1
3149  ac_status=$?
3150  grep -v '^ *+' conftest.er1 >conftest.err
3151  rm -f conftest.er1
3152  cat conftest.err >&5
3153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154  (exit $ac_status); } &&
3155	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3156  { (case "(($ac_try" in
3157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158  *) ac_try_echo=$ac_try;;
3159esac
3160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161  (eval "$ac_try") 2>&5
3162  ac_status=$?
3163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164  (exit $ac_status); }; } &&
3165	 { ac_try='test -s conftest.$ac_objext'
3166  { (case "(($ac_try" in
3167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168  *) ac_try_echo=$ac_try;;
3169esac
3170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171  (eval "$ac_try") 2>&5
3172  ac_status=$?
3173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174  (exit $ac_status); }; }; then
3175  :
3176else
3177  echo "$as_me: failed program was:" >&5
3178sed 's/^/| /' conftest.$ac_ext >&5
3179
3180	ac_c_werror_flag=$ac_save_c_werror_flag
3181	 CFLAGS="-g"
3182	 cat >conftest.$ac_ext <<_ACEOF
3183/* confdefs.h.  */
3184_ACEOF
3185cat confdefs.h >>conftest.$ac_ext
3186cat >>conftest.$ac_ext <<_ACEOF
3187/* end confdefs.h.  */
3188
3189int
3190main ()
3191{
3192
3193  ;
3194  return 0;
3195}
3196_ACEOF
3197rm -f conftest.$ac_objext
3198if { (ac_try="$ac_compile"
3199case "(($ac_try" in
3200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201  *) ac_try_echo=$ac_try;;
3202esac
3203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204  (eval "$ac_compile") 2>conftest.er1
3205  ac_status=$?
3206  grep -v '^ *+' conftest.er1 >conftest.err
3207  rm -f conftest.er1
3208  cat conftest.err >&5
3209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210  (exit $ac_status); } &&
3211	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3212  { (case "(($ac_try" in
3213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214  *) ac_try_echo=$ac_try;;
3215esac
3216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217  (eval "$ac_try") 2>&5
3218  ac_status=$?
3219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220  (exit $ac_status); }; } &&
3221	 { ac_try='test -s conftest.$ac_objext'
3222  { (case "(($ac_try" in
3223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224  *) ac_try_echo=$ac_try;;
3225esac
3226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227  (eval "$ac_try") 2>&5
3228  ac_status=$?
3229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230  (exit $ac_status); }; }; then
3231  ac_cv_prog_cc_g=yes
3232else
3233  echo "$as_me: failed program was:" >&5
3234sed 's/^/| /' conftest.$ac_ext >&5
3235
3236
3237fi
3238
3239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240fi
3241
3242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243fi
3244
3245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246   ac_c_werror_flag=$ac_save_c_werror_flag
3247fi
3248{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3249echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3250if test "$ac_test_CFLAGS" = set; then
3251  CFLAGS=$ac_save_CFLAGS
3252elif test $ac_cv_prog_cc_g = yes; then
3253  if test "$GCC" = yes; then
3254    CFLAGS="-g -O2"
3255  else
3256    CFLAGS="-g"
3257  fi
3258else
3259  if test "$GCC" = yes; then
3260    CFLAGS="-O2"
3261  else
3262    CFLAGS=
3263  fi
3264fi
3265{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3266echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3267if test "${ac_cv_prog_cc_c89+set}" = set; then
3268  echo $ECHO_N "(cached) $ECHO_C" >&6
3269else
3270  ac_cv_prog_cc_c89=no
3271ac_save_CC=$CC
3272cat >conftest.$ac_ext <<_ACEOF
3273/* confdefs.h.  */
3274_ACEOF
3275cat confdefs.h >>conftest.$ac_ext
3276cat >>conftest.$ac_ext <<_ACEOF
3277/* end confdefs.h.  */
3278#include <stdarg.h>
3279#include <stdio.h>
3280#include <sys/types.h>
3281#include <sys/stat.h>
3282/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3283struct buf { int x; };
3284FILE * (*rcsopen) (struct buf *, struct stat *, int);
3285static char *e (p, i)
3286     char **p;
3287     int i;
3288{
3289  return p[i];
3290}
3291static char *f (char * (*g) (char **, int), char **p, ...)
3292{
3293  char *s;
3294  va_list v;
3295  va_start (v,p);
3296  s = g (p, va_arg (v,int));
3297  va_end (v);
3298  return s;
3299}
3300
3301/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3302   function prototypes and stuff, but not '\xHH' hex character constants.
3303   These don't provoke an error unfortunately, instead are silently treated
3304   as 'x'.  The following induces an error, until -std is added to get
3305   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3306   array size at least.  It's necessary to write '\x00'==0 to get something
3307   that's true only with -std.  */
3308int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3309
3310/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3311   inside strings and character constants.  */
3312#define FOO(x) 'x'
3313int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3314
3315int test (int i, double x);
3316struct s1 {int (*f) (int a);};
3317struct s2 {int (*f) (double a);};
3318int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3319int argc;
3320char **argv;
3321int
3322main ()
3323{
3324return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3325  ;
3326  return 0;
3327}
3328_ACEOF
3329for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3330	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3331do
3332  CC="$ac_save_CC $ac_arg"
3333  rm -f conftest.$ac_objext
3334if { (ac_try="$ac_compile"
3335case "(($ac_try" in
3336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337  *) ac_try_echo=$ac_try;;
3338esac
3339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340  (eval "$ac_compile") 2>conftest.er1
3341  ac_status=$?
3342  grep -v '^ *+' conftest.er1 >conftest.err
3343  rm -f conftest.er1
3344  cat conftest.err >&5
3345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346  (exit $ac_status); } &&
3347	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3348  { (case "(($ac_try" in
3349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350  *) ac_try_echo=$ac_try;;
3351esac
3352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353  (eval "$ac_try") 2>&5
3354  ac_status=$?
3355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356  (exit $ac_status); }; } &&
3357	 { ac_try='test -s conftest.$ac_objext'
3358  { (case "(($ac_try" in
3359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360  *) ac_try_echo=$ac_try;;
3361esac
3362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363  (eval "$ac_try") 2>&5
3364  ac_status=$?
3365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366  (exit $ac_status); }; }; then
3367  ac_cv_prog_cc_c89=$ac_arg
3368else
3369  echo "$as_me: failed program was:" >&5
3370sed 's/^/| /' conftest.$ac_ext >&5
3371
3372
3373fi
3374
3375rm -f core conftest.err conftest.$ac_objext
3376  test "x$ac_cv_prog_cc_c89" != "xno" && break
3377done
3378rm -f conftest.$ac_ext
3379CC=$ac_save_CC
3380
3381fi
3382# AC_CACHE_VAL
3383case "x$ac_cv_prog_cc_c89" in
3384  x)
3385    { echo "$as_me:$LINENO: result: none needed" >&5
3386echo "${ECHO_T}none needed" >&6; } ;;
3387  xno)
3388    { echo "$as_me:$LINENO: result: unsupported" >&5
3389echo "${ECHO_T}unsupported" >&6; } ;;
3390  *)
3391    CC="$CC $ac_cv_prog_cc_c89"
3392    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3393echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3394esac
3395
3396
3397ac_ext=c
3398ac_cpp='$CPP $CPPFLAGS'
3399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3401ac_compiler_gnu=$ac_cv_c_compiler_gnu
3402
3403
3404ac_ext=c
3405ac_cpp='$CPP $CPPFLAGS'
3406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3410echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3411# On Suns, sometimes $CPP names a directory.
3412if test -n "$CPP" && test -d "$CPP"; then
3413  CPP=
3414fi
3415if test -z "$CPP"; then
3416  if test "${ac_cv_prog_CPP+set}" = set; then
3417  echo $ECHO_N "(cached) $ECHO_C" >&6
3418else
3419      # Double quotes because CPP needs to be expanded
3420    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3421    do
3422      ac_preproc_ok=false
3423for ac_c_preproc_warn_flag in '' yes
3424do
3425  # Use a header file that comes with gcc, so configuring glibc
3426  # with a fresh cross-compiler works.
3427  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3428  # <limits.h> exists even on freestanding compilers.
3429  # On the NeXT, cc -E runs the code through the compiler's parser,
3430  # not just through cpp. "Syntax error" is here to catch this case.
3431  cat >conftest.$ac_ext <<_ACEOF
3432/* confdefs.h.  */
3433_ACEOF
3434cat confdefs.h >>conftest.$ac_ext
3435cat >>conftest.$ac_ext <<_ACEOF
3436/* end confdefs.h.  */
3437#ifdef __STDC__
3438# include <limits.h>
3439#else
3440# include <assert.h>
3441#endif
3442		     Syntax error
3443_ACEOF
3444if { (ac_try="$ac_cpp conftest.$ac_ext"
3445case "(($ac_try" in
3446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447  *) ac_try_echo=$ac_try;;
3448esac
3449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3451  ac_status=$?
3452  grep -v '^ *+' conftest.er1 >conftest.err
3453  rm -f conftest.er1
3454  cat conftest.err >&5
3455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456  (exit $ac_status); } >/dev/null; then
3457  if test -s conftest.err; then
3458    ac_cpp_err=$ac_c_preproc_warn_flag
3459    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3460  else
3461    ac_cpp_err=
3462  fi
3463else
3464  ac_cpp_err=yes
3465fi
3466if test -z "$ac_cpp_err"; then
3467  :
3468else
3469  echo "$as_me: failed program was:" >&5
3470sed 's/^/| /' conftest.$ac_ext >&5
3471
3472  # Broken: fails on valid input.
3473continue
3474fi
3475
3476rm -f conftest.err conftest.$ac_ext
3477
3478  # OK, works on sane cases.  Now check whether nonexistent headers
3479  # can be detected and how.
3480  cat >conftest.$ac_ext <<_ACEOF
3481/* confdefs.h.  */
3482_ACEOF
3483cat confdefs.h >>conftest.$ac_ext
3484cat >>conftest.$ac_ext <<_ACEOF
3485/* end confdefs.h.  */
3486#include <ac_nonexistent.h>
3487_ACEOF
3488if { (ac_try="$ac_cpp conftest.$ac_ext"
3489case "(($ac_try" in
3490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491  *) ac_try_echo=$ac_try;;
3492esac
3493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3495  ac_status=$?
3496  grep -v '^ *+' conftest.er1 >conftest.err
3497  rm -f conftest.er1
3498  cat conftest.err >&5
3499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500  (exit $ac_status); } >/dev/null; then
3501  if test -s conftest.err; then
3502    ac_cpp_err=$ac_c_preproc_warn_flag
3503    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3504  else
3505    ac_cpp_err=
3506  fi
3507else
3508  ac_cpp_err=yes
3509fi
3510if test -z "$ac_cpp_err"; then
3511  # Broken: success on invalid input.
3512continue
3513else
3514  echo "$as_me: failed program was:" >&5
3515sed 's/^/| /' conftest.$ac_ext >&5
3516
3517  # Passes both tests.
3518ac_preproc_ok=:
3519break
3520fi
3521
3522rm -f conftest.err conftest.$ac_ext
3523
3524done
3525# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3526rm -f conftest.err conftest.$ac_ext
3527if $ac_preproc_ok; then
3528  break
3529fi
3530
3531    done
3532    ac_cv_prog_CPP=$CPP
3533
3534fi
3535  CPP=$ac_cv_prog_CPP
3536else
3537  ac_cv_prog_CPP=$CPP
3538fi
3539{ echo "$as_me:$LINENO: result: $CPP" >&5
3540echo "${ECHO_T}$CPP" >&6; }
3541ac_preproc_ok=false
3542for ac_c_preproc_warn_flag in '' yes
3543do
3544  # Use a header file that comes with gcc, so configuring glibc
3545  # with a fresh cross-compiler works.
3546  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3547  # <limits.h> exists even on freestanding compilers.
3548  # On the NeXT, cc -E runs the code through the compiler's parser,
3549  # not just through cpp. "Syntax error" is here to catch this case.
3550  cat >conftest.$ac_ext <<_ACEOF
3551/* confdefs.h.  */
3552_ACEOF
3553cat confdefs.h >>conftest.$ac_ext
3554cat >>conftest.$ac_ext <<_ACEOF
3555/* end confdefs.h.  */
3556#ifdef __STDC__
3557# include <limits.h>
3558#else
3559# include <assert.h>
3560#endif
3561		     Syntax error
3562_ACEOF
3563if { (ac_try="$ac_cpp conftest.$ac_ext"
3564case "(($ac_try" in
3565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566  *) ac_try_echo=$ac_try;;
3567esac
3568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3570  ac_status=$?
3571  grep -v '^ *+' conftest.er1 >conftest.err
3572  rm -f conftest.er1
3573  cat conftest.err >&5
3574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575  (exit $ac_status); } >/dev/null; then
3576  if test -s conftest.err; then
3577    ac_cpp_err=$ac_c_preproc_warn_flag
3578    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3579  else
3580    ac_cpp_err=
3581  fi
3582else
3583  ac_cpp_err=yes
3584fi
3585if test -z "$ac_cpp_err"; then
3586  :
3587else
3588  echo "$as_me: failed program was:" >&5
3589sed 's/^/| /' conftest.$ac_ext >&5
3590
3591  # Broken: fails on valid input.
3592continue
3593fi
3594
3595rm -f conftest.err conftest.$ac_ext
3596
3597  # OK, works on sane cases.  Now check whether nonexistent headers
3598  # can be detected and how.
3599  cat >conftest.$ac_ext <<_ACEOF
3600/* confdefs.h.  */
3601_ACEOF
3602cat confdefs.h >>conftest.$ac_ext
3603cat >>conftest.$ac_ext <<_ACEOF
3604/* end confdefs.h.  */
3605#include <ac_nonexistent.h>
3606_ACEOF
3607if { (ac_try="$ac_cpp conftest.$ac_ext"
3608case "(($ac_try" in
3609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610  *) ac_try_echo=$ac_try;;
3611esac
3612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3613  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3614  ac_status=$?
3615  grep -v '^ *+' conftest.er1 >conftest.err
3616  rm -f conftest.er1
3617  cat conftest.err >&5
3618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619  (exit $ac_status); } >/dev/null; then
3620  if test -s conftest.err; then
3621    ac_cpp_err=$ac_c_preproc_warn_flag
3622    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3623  else
3624    ac_cpp_err=
3625  fi
3626else
3627  ac_cpp_err=yes
3628fi
3629if test -z "$ac_cpp_err"; then
3630  # Broken: success on invalid input.
3631continue
3632else
3633  echo "$as_me: failed program was:" >&5
3634sed 's/^/| /' conftest.$ac_ext >&5
3635
3636  # Passes both tests.
3637ac_preproc_ok=:
3638break
3639fi
3640
3641rm -f conftest.err conftest.$ac_ext
3642
3643done
3644# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3645rm -f conftest.err conftest.$ac_ext
3646if $ac_preproc_ok; then
3647  :
3648else
3649  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3650See \`config.log' for more details." >&5
3651echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3652See \`config.log' for more details." >&2;}
3653   { (exit 1); exit 1; }; }
3654fi
3655
3656ac_ext=c
3657ac_cpp='$CPP $CPPFLAGS'
3658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3660ac_compiler_gnu=$ac_cv_c_compiler_gnu
3661
3662
3663{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3664echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3665if test "${ac_cv_path_GREP+set}" = set; then
3666  echo $ECHO_N "(cached) $ECHO_C" >&6
3667else
3668  # Extract the first word of "grep ggrep" to use in msg output
3669if test -z "$GREP"; then
3670set dummy grep ggrep; ac_prog_name=$2
3671if test "${ac_cv_path_GREP+set}" = set; then
3672  echo $ECHO_N "(cached) $ECHO_C" >&6
3673else
3674  ac_path_GREP_found=false
3675# Loop through the user's path and test for each of PROGNAME-LIST
3676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3678do
3679  IFS=$as_save_IFS
3680  test -z "$as_dir" && as_dir=.
3681  for ac_prog in grep ggrep; do
3682  for ac_exec_ext in '' $ac_executable_extensions; do
3683    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3684    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3685    # Check for GNU ac_path_GREP and select it if it is found.
3686  # Check for GNU $ac_path_GREP
3687case `"$ac_path_GREP" --version 2>&1` in
3688*GNU*)
3689  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3690*)
3691  ac_count=0
3692  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3693  while :
3694  do
3695    cat "conftest.in" "conftest.in" >"conftest.tmp"
3696    mv "conftest.tmp" "conftest.in"
3697    cp "conftest.in" "conftest.nl"
3698    echo 'GREP' >> "conftest.nl"
3699    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3700    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3701    ac_count=`expr $ac_count + 1`
3702    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3703      # Best one so far, save it but keep looking for a better one
3704      ac_cv_path_GREP="$ac_path_GREP"
3705      ac_path_GREP_max=$ac_count
3706    fi
3707    # 10*(2^10) chars as input seems more than enough
3708    test $ac_count -gt 10 && break
3709  done
3710  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3711esac
3712
3713
3714    $ac_path_GREP_found && break 3
3715  done
3716done
3717
3718done
3719IFS=$as_save_IFS
3720
3721
3722fi
3723
3724GREP="$ac_cv_path_GREP"
3725if test -z "$GREP"; then
3726  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3727echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3728   { (exit 1); exit 1; }; }
3729fi
3730
3731else
3732  ac_cv_path_GREP=$GREP
3733fi
3734
3735
3736fi
3737{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3738echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3739 GREP="$ac_cv_path_GREP"
3740
3741
3742{ echo "$as_me:$LINENO: checking for egrep" >&5
3743echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3744if test "${ac_cv_path_EGREP+set}" = set; then
3745  echo $ECHO_N "(cached) $ECHO_C" >&6
3746else
3747  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3748   then ac_cv_path_EGREP="$GREP -E"
3749   else
3750     # Extract the first word of "egrep" to use in msg output
3751if test -z "$EGREP"; then
3752set dummy egrep; ac_prog_name=$2
3753if test "${ac_cv_path_EGREP+set}" = set; then
3754  echo $ECHO_N "(cached) $ECHO_C" >&6
3755else
3756  ac_path_EGREP_found=false
3757# Loop through the user's path and test for each of PROGNAME-LIST
3758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3760do
3761  IFS=$as_save_IFS
3762  test -z "$as_dir" && as_dir=.
3763  for ac_prog in egrep; do
3764  for ac_exec_ext in '' $ac_executable_extensions; do
3765    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3766    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3767    # Check for GNU ac_path_EGREP and select it if it is found.
3768  # Check for GNU $ac_path_EGREP
3769case `"$ac_path_EGREP" --version 2>&1` in
3770*GNU*)
3771  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3772*)
3773  ac_count=0
3774  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3775  while :
3776  do
3777    cat "conftest.in" "conftest.in" >"conftest.tmp"
3778    mv "conftest.tmp" "conftest.in"
3779    cp "conftest.in" "conftest.nl"
3780    echo 'EGREP' >> "conftest.nl"
3781    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3782    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3783    ac_count=`expr $ac_count + 1`
3784    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3785      # Best one so far, save it but keep looking for a better one
3786      ac_cv_path_EGREP="$ac_path_EGREP"
3787      ac_path_EGREP_max=$ac_count
3788    fi
3789    # 10*(2^10) chars as input seems more than enough
3790    test $ac_count -gt 10 && break
3791  done
3792  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3793esac
3794
3795
3796    $ac_path_EGREP_found && break 3
3797  done
3798done
3799
3800done
3801IFS=$as_save_IFS
3802
3803
3804fi
3805
3806EGREP="$ac_cv_path_EGREP"
3807if test -z "$EGREP"; then
3808  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3809echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3810   { (exit 1); exit 1; }; }
3811fi
3812
3813else
3814  ac_cv_path_EGREP=$EGREP
3815fi
3816
3817
3818   fi
3819fi
3820{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3821echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3822 EGREP="$ac_cv_path_EGREP"
3823
3824
3825{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3826echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3827if test "${ac_cv_header_stdc+set}" = set; then
3828  echo $ECHO_N "(cached) $ECHO_C" >&6
3829else
3830  cat >conftest.$ac_ext <<_ACEOF
3831/* confdefs.h.  */
3832_ACEOF
3833cat confdefs.h >>conftest.$ac_ext
3834cat >>conftest.$ac_ext <<_ACEOF
3835/* end confdefs.h.  */
3836#include <stdlib.h>
3837#include <stdarg.h>
3838#include <string.h>
3839#include <float.h>
3840
3841int
3842main ()
3843{
3844
3845  ;
3846  return 0;
3847}
3848_ACEOF
3849rm -f conftest.$ac_objext
3850if { (ac_try="$ac_compile"
3851case "(($ac_try" in
3852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853  *) ac_try_echo=$ac_try;;
3854esac
3855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3856  (eval "$ac_compile") 2>conftest.er1
3857  ac_status=$?
3858  grep -v '^ *+' conftest.er1 >conftest.err
3859  rm -f conftest.er1
3860  cat conftest.err >&5
3861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862  (exit $ac_status); } &&
3863	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3864  { (case "(($ac_try" in
3865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866  *) ac_try_echo=$ac_try;;
3867esac
3868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3869  (eval "$ac_try") 2>&5
3870  ac_status=$?
3871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872  (exit $ac_status); }; } &&
3873	 { ac_try='test -s conftest.$ac_objext'
3874  { (case "(($ac_try" in
3875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876  *) ac_try_echo=$ac_try;;
3877esac
3878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879  (eval "$ac_try") 2>&5
3880  ac_status=$?
3881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882  (exit $ac_status); }; }; then
3883  ac_cv_header_stdc=yes
3884else
3885  echo "$as_me: failed program was:" >&5
3886sed 's/^/| /' conftest.$ac_ext >&5
3887
3888	ac_cv_header_stdc=no
3889fi
3890
3891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892
3893if test $ac_cv_header_stdc = yes; then
3894  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3895  cat >conftest.$ac_ext <<_ACEOF
3896/* confdefs.h.  */
3897_ACEOF
3898cat confdefs.h >>conftest.$ac_ext
3899cat >>conftest.$ac_ext <<_ACEOF
3900/* end confdefs.h.  */
3901#include <string.h>
3902
3903_ACEOF
3904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3905  $EGREP "memchr" >/dev/null 2>&1; then
3906  :
3907else
3908  ac_cv_header_stdc=no
3909fi
3910rm -f conftest*
3911
3912fi
3913
3914if test $ac_cv_header_stdc = yes; then
3915  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3916  cat >conftest.$ac_ext <<_ACEOF
3917/* confdefs.h.  */
3918_ACEOF
3919cat confdefs.h >>conftest.$ac_ext
3920cat >>conftest.$ac_ext <<_ACEOF
3921/* end confdefs.h.  */
3922#include <stdlib.h>
3923
3924_ACEOF
3925if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3926  $EGREP "free" >/dev/null 2>&1; then
3927  :
3928else
3929  ac_cv_header_stdc=no
3930fi
3931rm -f conftest*
3932
3933fi
3934
3935if test $ac_cv_header_stdc = yes; then
3936  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3937  if test "$cross_compiling" = yes; then
3938  :
3939else
3940  cat >conftest.$ac_ext <<_ACEOF
3941/* confdefs.h.  */
3942_ACEOF
3943cat confdefs.h >>conftest.$ac_ext
3944cat >>conftest.$ac_ext <<_ACEOF
3945/* end confdefs.h.  */
3946#include <ctype.h>
3947#include <stdlib.h>
3948#if ((' ' & 0x0FF) == 0x020)
3949# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3950# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3951#else
3952# define ISLOWER(c) \
3953		   (('a' <= (c) && (c) <= 'i') \
3954		     || ('j' <= (c) && (c) <= 'r') \
3955		     || ('s' <= (c) && (c) <= 'z'))
3956# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3957#endif
3958
3959#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3960int
3961main ()
3962{
3963  int i;
3964  for (i = 0; i < 256; i++)
3965    if (XOR (islower (i), ISLOWER (i))
3966	|| toupper (i) != TOUPPER (i))
3967      return 2;
3968  return 0;
3969}
3970_ACEOF
3971rm -f conftest$ac_exeext
3972if { (ac_try="$ac_link"
3973case "(($ac_try" in
3974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975  *) ac_try_echo=$ac_try;;
3976esac
3977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3978  (eval "$ac_link") 2>&5
3979  ac_status=$?
3980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3982  { (case "(($ac_try" in
3983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984  *) ac_try_echo=$ac_try;;
3985esac
3986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3987  (eval "$ac_try") 2>&5
3988  ac_status=$?
3989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990  (exit $ac_status); }; }; then
3991  :
3992else
3993  echo "$as_me: program exited with status $ac_status" >&5
3994echo "$as_me: failed program was:" >&5
3995sed 's/^/| /' conftest.$ac_ext >&5
3996
3997( exit $ac_status )
3998ac_cv_header_stdc=no
3999fi
4000rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4001fi
4002
4003
4004fi
4005fi
4006{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4007echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4008if test $ac_cv_header_stdc = yes; then
4009
4010cat >>confdefs.h <<\_ACEOF
4011#define STDC_HEADERS 1
4012_ACEOF
4013
4014fi
4015
4016# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4027		  inttypes.h stdint.h unistd.h
4028do
4029as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4030{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4032if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4033  echo $ECHO_N "(cached) $ECHO_C" >&6
4034else
4035  cat >conftest.$ac_ext <<_ACEOF
4036/* confdefs.h.  */
4037_ACEOF
4038cat confdefs.h >>conftest.$ac_ext
4039cat >>conftest.$ac_ext <<_ACEOF
4040/* end confdefs.h.  */
4041$ac_includes_default
4042
4043#include <$ac_header>
4044_ACEOF
4045rm -f conftest.$ac_objext
4046if { (ac_try="$ac_compile"
4047case "(($ac_try" in
4048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049  *) ac_try_echo=$ac_try;;
4050esac
4051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4052  (eval "$ac_compile") 2>conftest.er1
4053  ac_status=$?
4054  grep -v '^ *+' conftest.er1 >conftest.err
4055  rm -f conftest.er1
4056  cat conftest.err >&5
4057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058  (exit $ac_status); } &&
4059	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4060  { (case "(($ac_try" in
4061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062  *) ac_try_echo=$ac_try;;
4063esac
4064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065  (eval "$ac_try") 2>&5
4066  ac_status=$?
4067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068  (exit $ac_status); }; } &&
4069	 { ac_try='test -s conftest.$ac_objext'
4070  { (case "(($ac_try" in
4071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072  *) ac_try_echo=$ac_try;;
4073esac
4074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4075  (eval "$ac_try") 2>&5
4076  ac_status=$?
4077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078  (exit $ac_status); }; }; then
4079  eval "$as_ac_Header=yes"
4080else
4081  echo "$as_me: failed program was:" >&5
4082sed 's/^/| /' conftest.$ac_ext >&5
4083
4084	eval "$as_ac_Header=no"
4085fi
4086
4087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088fi
4089ac_res=`eval echo '${'$as_ac_Header'}'`
4090	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4091echo "${ECHO_T}$ac_res" >&6; }
4092if test `eval echo '${'$as_ac_Header'}'` = yes; then
4093  cat >>confdefs.h <<_ACEOF
4094#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4095_ACEOF
4096
4097fi
4098
4099done
4100
4101
4102{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4103echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4104if test "${ac_cv_c_bigendian+set}" = set; then
4105  echo $ECHO_N "(cached) $ECHO_C" >&6
4106else
4107  # See if sys/param.h defines the BYTE_ORDER macro.
4108cat >conftest.$ac_ext <<_ACEOF
4109/* confdefs.h.  */
4110_ACEOF
4111cat confdefs.h >>conftest.$ac_ext
4112cat >>conftest.$ac_ext <<_ACEOF
4113/* end confdefs.h.  */
4114#include <sys/types.h>
4115#include <sys/param.h>
4116
4117int
4118main ()
4119{
4120#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4121 bogus endian macros
4122#endif
4123
4124  ;
4125  return 0;
4126}
4127_ACEOF
4128rm -f conftest.$ac_objext
4129if { (ac_try="$ac_compile"
4130case "(($ac_try" in
4131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132  *) ac_try_echo=$ac_try;;
4133esac
4134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4135  (eval "$ac_compile") 2>conftest.er1
4136  ac_status=$?
4137  grep -v '^ *+' conftest.er1 >conftest.err
4138  rm -f conftest.er1
4139  cat conftest.err >&5
4140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141  (exit $ac_status); } &&
4142	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4143  { (case "(($ac_try" in
4144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145  *) ac_try_echo=$ac_try;;
4146esac
4147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148  (eval "$ac_try") 2>&5
4149  ac_status=$?
4150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151  (exit $ac_status); }; } &&
4152	 { ac_try='test -s conftest.$ac_objext'
4153  { (case "(($ac_try" in
4154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155  *) ac_try_echo=$ac_try;;
4156esac
4157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158  (eval "$ac_try") 2>&5
4159  ac_status=$?
4160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161  (exit $ac_status); }; }; then
4162  # It does; now see whether it defined to BIG_ENDIAN or not.
4163cat >conftest.$ac_ext <<_ACEOF
4164/* confdefs.h.  */
4165_ACEOF
4166cat confdefs.h >>conftest.$ac_ext
4167cat >>conftest.$ac_ext <<_ACEOF
4168/* end confdefs.h.  */
4169#include <sys/types.h>
4170#include <sys/param.h>
4171
4172int
4173main ()
4174{
4175#if BYTE_ORDER != BIG_ENDIAN
4176 not big endian
4177#endif
4178
4179  ;
4180  return 0;
4181}
4182_ACEOF
4183rm -f conftest.$ac_objext
4184if { (ac_try="$ac_compile"
4185case "(($ac_try" in
4186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187  *) ac_try_echo=$ac_try;;
4188esac
4189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4190  (eval "$ac_compile") 2>conftest.er1
4191  ac_status=$?
4192  grep -v '^ *+' conftest.er1 >conftest.err
4193  rm -f conftest.er1
4194  cat conftest.err >&5
4195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196  (exit $ac_status); } &&
4197	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4198  { (case "(($ac_try" in
4199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200  *) ac_try_echo=$ac_try;;
4201esac
4202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4203  (eval "$ac_try") 2>&5
4204  ac_status=$?
4205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206  (exit $ac_status); }; } &&
4207	 { ac_try='test -s conftest.$ac_objext'
4208  { (case "(($ac_try" in
4209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210  *) ac_try_echo=$ac_try;;
4211esac
4212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213  (eval "$ac_try") 2>&5
4214  ac_status=$?
4215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216  (exit $ac_status); }; }; then
4217  ac_cv_c_bigendian=yes
4218else
4219  echo "$as_me: failed program was:" >&5
4220sed 's/^/| /' conftest.$ac_ext >&5
4221
4222	ac_cv_c_bigendian=no
4223fi
4224
4225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226else
4227  echo "$as_me: failed program was:" >&5
4228sed 's/^/| /' conftest.$ac_ext >&5
4229
4230	# It does not; compile a test program.
4231if test "$cross_compiling" = yes; then
4232  # try to guess the endianness by grepping values into an object file
4233  ac_cv_c_bigendian=unknown
4234  cat >conftest.$ac_ext <<_ACEOF
4235/* confdefs.h.  */
4236_ACEOF
4237cat confdefs.h >>conftest.$ac_ext
4238cat >>conftest.$ac_ext <<_ACEOF
4239/* end confdefs.h.  */
4240short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4241short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4242void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4243short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4244short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4245void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4246int
4247main ()
4248{
4249 _ascii (); _ebcdic ();
4250  ;
4251  return 0;
4252}
4253_ACEOF
4254rm -f conftest.$ac_objext
4255if { (ac_try="$ac_compile"
4256case "(($ac_try" in
4257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258  *) ac_try_echo=$ac_try;;
4259esac
4260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261  (eval "$ac_compile") 2>conftest.er1
4262  ac_status=$?
4263  grep -v '^ *+' conftest.er1 >conftest.err
4264  rm -f conftest.er1
4265  cat conftest.err >&5
4266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267  (exit $ac_status); } &&
4268	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4269  { (case "(($ac_try" in
4270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271  *) ac_try_echo=$ac_try;;
4272esac
4273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274  (eval "$ac_try") 2>&5
4275  ac_status=$?
4276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277  (exit $ac_status); }; } &&
4278	 { ac_try='test -s conftest.$ac_objext'
4279  { (case "(($ac_try" in
4280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281  *) ac_try_echo=$ac_try;;
4282esac
4283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4284  (eval "$ac_try") 2>&5
4285  ac_status=$?
4286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287  (exit $ac_status); }; }; then
4288  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4289  ac_cv_c_bigendian=yes
4290fi
4291if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4292  if test "$ac_cv_c_bigendian" = unknown; then
4293    ac_cv_c_bigendian=no
4294  else
4295    # finding both strings is unlikely to happen, but who knows?
4296    ac_cv_c_bigendian=unknown
4297  fi
4298fi
4299else
4300  echo "$as_me: failed program was:" >&5
4301sed 's/^/| /' conftest.$ac_ext >&5
4302
4303
4304fi
4305
4306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307else
4308  cat >conftest.$ac_ext <<_ACEOF
4309/* confdefs.h.  */
4310_ACEOF
4311cat confdefs.h >>conftest.$ac_ext
4312cat >>conftest.$ac_ext <<_ACEOF
4313/* end confdefs.h.  */
4314$ac_includes_default
4315int
4316main ()
4317{
4318
4319  /* Are we little or big endian?  From Harbison&Steele.  */
4320  union
4321  {
4322    long int l;
4323    char c[sizeof (long int)];
4324  } u;
4325  u.l = 1;
4326  return u.c[sizeof (long int) - 1] == 1;
4327
4328  ;
4329  return 0;
4330}
4331_ACEOF
4332rm -f conftest$ac_exeext
4333if { (ac_try="$ac_link"
4334case "(($ac_try" in
4335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336  *) ac_try_echo=$ac_try;;
4337esac
4338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339  (eval "$ac_link") 2>&5
4340  ac_status=$?
4341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4343  { (case "(($ac_try" in
4344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345  *) ac_try_echo=$ac_try;;
4346esac
4347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348  (eval "$ac_try") 2>&5
4349  ac_status=$?
4350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351  (exit $ac_status); }; }; then
4352  ac_cv_c_bigendian=no
4353else
4354  echo "$as_me: program exited with status $ac_status" >&5
4355echo "$as_me: failed program was:" >&5
4356sed 's/^/| /' conftest.$ac_ext >&5
4357
4358( exit $ac_status )
4359ac_cv_c_bigendian=yes
4360fi
4361rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4362fi
4363
4364
4365fi
4366
4367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4368fi
4369{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4370echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4371case $ac_cv_c_bigendian in
4372  yes)
4373    ENDIAN=big
4374 ;;
4375  no)
4376    ENDIAN=little
4377 ;;
4378  *)
4379    { { echo "$as_me:$LINENO: error: unknown endianness
4380presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4381echo "$as_me: error: unknown endianness
4382presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4383   { (exit 1); exit 1; }; } ;;
4384esac
4385
4386
4387if test "$cross_compiling" = yes; then
4388  LLVM_CROSS_COMPILING=1
4389
4390
4391{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4392echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4393if test "${ac_cv_build_exeext+set}" = set; then
4394  echo $ECHO_N "(cached) $ECHO_C" >&6
4395else
4396  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4397  ac_cv_build_exeext=.exe
4398else
4399  ac_build_prefix=${build_alias}-
4400
4401  # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4402set dummy ${ac_build_prefix}gcc; ac_word=$2
4403{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4405if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4406  echo $ECHO_N "(cached) $ECHO_C" >&6
4407else
4408  if test -n "$BUILD_CC"; then
4409  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4410else
4411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412for as_dir in $PATH
4413do
4414  IFS=$as_save_IFS
4415  test -z "$as_dir" && as_dir=.
4416  for ac_exec_ext in '' $ac_executable_extensions; do
4417  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4418    ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4419    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4420    break 2
4421  fi
4422done
4423done
4424IFS=$as_save_IFS
4425
4426fi
4427fi
4428BUILD_CC=$ac_cv_prog_BUILD_CC
4429if test -n "$BUILD_CC"; then
4430  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4431echo "${ECHO_T}$BUILD_CC" >&6; }
4432else
4433  { echo "$as_me:$LINENO: result: no" >&5
4434echo "${ECHO_T}no" >&6; }
4435fi
4436
4437
4438  if test -z "$BUILD_CC"; then
4439     # Extract the first word of "gcc", so it can be a program name with args.
4440set dummy gcc; ac_word=$2
4441{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4443if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4444  echo $ECHO_N "(cached) $ECHO_C" >&6
4445else
4446  if test -n "$BUILD_CC"; then
4447  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4448else
4449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450for as_dir in $PATH
4451do
4452  IFS=$as_save_IFS
4453  test -z "$as_dir" && as_dir=.
4454  for ac_exec_ext in '' $ac_executable_extensions; do
4455  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4456    ac_cv_prog_BUILD_CC="gcc"
4457    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4458    break 2
4459  fi
4460done
4461done
4462IFS=$as_save_IFS
4463
4464fi
4465fi
4466BUILD_CC=$ac_cv_prog_BUILD_CC
4467if test -n "$BUILD_CC"; then
4468  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4469echo "${ECHO_T}$BUILD_CC" >&6; }
4470else
4471  { echo "$as_me:$LINENO: result: no" >&5
4472echo "${ECHO_T}no" >&6; }
4473fi
4474
4475
4476     if test -z "$BUILD_CC"; then
4477       # Extract the first word of "cc", so it can be a program name with args.
4478set dummy cc; ac_word=$2
4479{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4481if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4482  echo $ECHO_N "(cached) $ECHO_C" >&6
4483else
4484  if test -n "$BUILD_CC"; then
4485  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4486else
4487  ac_prog_rejected=no
4488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489for as_dir in $PATH
4490do
4491  IFS=$as_save_IFS
4492  test -z "$as_dir" && as_dir=.
4493  for ac_exec_ext in '' $ac_executable_extensions; do
4494  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4495    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4496       ac_prog_rejected=yes
4497       continue
4498     fi
4499    ac_cv_prog_BUILD_CC="cc"
4500    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4501    break 2
4502  fi
4503done
4504done
4505IFS=$as_save_IFS
4506
4507if test $ac_prog_rejected = yes; then
4508  # We found a bogon in the path, so make sure we never use it.
4509  set dummy $ac_cv_prog_BUILD_CC
4510  shift
4511  if test $# != 0; then
4512    # We chose a different compiler from the bogus one.
4513    # However, it has the same basename, so the bogon will be chosen
4514    # first if we set BUILD_CC to just the basename; use the full file name.
4515    shift
4516    ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4517  fi
4518fi
4519fi
4520fi
4521BUILD_CC=$ac_cv_prog_BUILD_CC
4522if test -n "$BUILD_CC"; then
4523  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4524echo "${ECHO_T}$BUILD_CC" >&6; }
4525else
4526  { echo "$as_me:$LINENO: result: no" >&5
4527echo "${ECHO_T}no" >&6; }
4528fi
4529
4530
4531     fi
4532  fi
4533  test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4534echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4535   { (exit 1); exit 1; }; }
4536  ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4537  rm -f conftest*
4538  echo 'int main () { return 0; }' > conftest.$ac_ext
4539  ac_cv_build_exeext=
4540  if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4541  (eval $ac_build_link) 2>&5
4542  ac_status=$?
4543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544  (exit $ac_status); }; then
4545    for file in conftest.*; do
4546      case $file in
4547      *.c | *.o | *.obj | *.dSYM) ;;
4548      *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4549      esac
4550    done
4551  else
4552    { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4553echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4554   { (exit 1); exit 1; }; }
4555  fi
4556  rm -f conftest*
4557  test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4558fi
4559fi
4560
4561BUILD_EXEEXT=""
4562test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4563{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4564echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4565ac_build_exeext=$BUILD_EXEEXT
4566
4567  ac_build_prefix=${build_alias}-
4568  # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4569set dummy ${ac_build_prefix}g++; ac_word=$2
4570{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4572if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4573  echo $ECHO_N "(cached) $ECHO_C" >&6
4574else
4575  if test -n "$BUILD_CXX"; then
4576  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4577else
4578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579for as_dir in $PATH
4580do
4581  IFS=$as_save_IFS
4582  test -z "$as_dir" && as_dir=.
4583  for ac_exec_ext in '' $ac_executable_extensions; do
4584  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4585    ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4586    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4587    break 2
4588  fi
4589done
4590done
4591IFS=$as_save_IFS
4592
4593fi
4594fi
4595BUILD_CXX=$ac_cv_prog_BUILD_CXX
4596if test -n "$BUILD_CXX"; then
4597  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4598echo "${ECHO_T}$BUILD_CXX" >&6; }
4599else
4600  { echo "$as_me:$LINENO: result: no" >&5
4601echo "${ECHO_T}no" >&6; }
4602fi
4603
4604
4605  if test -z "$BUILD_CXX"; then
4606     # Extract the first word of "g++", so it can be a program name with args.
4607set dummy g++; ac_word=$2
4608{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4610if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4611  echo $ECHO_N "(cached) $ECHO_C" >&6
4612else
4613  if test -n "$BUILD_CXX"; then
4614  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4615else
4616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617for as_dir in $PATH
4618do
4619  IFS=$as_save_IFS
4620  test -z "$as_dir" && as_dir=.
4621  for ac_exec_ext in '' $ac_executable_extensions; do
4622  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4623    ac_cv_prog_BUILD_CXX="g++"
4624    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4625    break 2
4626  fi
4627done
4628done
4629IFS=$as_save_IFS
4630
4631fi
4632fi
4633BUILD_CXX=$ac_cv_prog_BUILD_CXX
4634if test -n "$BUILD_CXX"; then
4635  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4636echo "${ECHO_T}$BUILD_CXX" >&6; }
4637else
4638  { echo "$as_me:$LINENO: result: no" >&5
4639echo "${ECHO_T}no" >&6; }
4640fi
4641
4642
4643     if test -z "$BUILD_CXX"; then
4644       # Extract the first word of "c++", so it can be a program name with args.
4645set dummy c++; ac_word=$2
4646{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4648if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4649  echo $ECHO_N "(cached) $ECHO_C" >&6
4650else
4651  if test -n "$BUILD_CXX"; then
4652  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4653else
4654  ac_prog_rejected=no
4655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656for as_dir in $PATH
4657do
4658  IFS=$as_save_IFS
4659  test -z "$as_dir" && as_dir=.
4660  for ac_exec_ext in '' $ac_executable_extensions; do
4661  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4662    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4663       ac_prog_rejected=yes
4664       continue
4665     fi
4666    ac_cv_prog_BUILD_CXX="c++"
4667    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4668    break 2
4669  fi
4670done
4671done
4672IFS=$as_save_IFS
4673
4674if test $ac_prog_rejected = yes; then
4675  # We found a bogon in the path, so make sure we never use it.
4676  set dummy $ac_cv_prog_BUILD_CXX
4677  shift
4678  if test $# != 0; then
4679    # We chose a different compiler from the bogus one.
4680    # However, it has the same basename, so the bogon will be chosen
4681    # first if we set BUILD_CXX to just the basename; use the full file name.
4682    shift
4683    ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4684  fi
4685fi
4686fi
4687fi
4688BUILD_CXX=$ac_cv_prog_BUILD_CXX
4689if test -n "$BUILD_CXX"; then
4690  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4691echo "${ECHO_T}$BUILD_CXX" >&6; }
4692else
4693  { echo "$as_me:$LINENO: result: no" >&5
4694echo "${ECHO_T}no" >&6; }
4695fi
4696
4697
4698     fi
4699  fi
4700else
4701  LLVM_CROSS_COMPILING=0
4702
4703fi
4704
4705if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4706  cvsbuild="yes"
4707  optimize="no"
4708  CVSBUILD=CVSBUILD=1
4709
4710else
4711  cvsbuild="no"
4712  optimize="yes"
4713fi
4714
4715
4716# Check whether --enable-optimized was given.
4717if test "${enable_optimized+set}" = set; then
4718  enableval=$enable_optimized;
4719else
4720  enableval=$optimize
4721fi
4722
4723if test ${enableval} = "no" ; then
4724  ENABLE_OPTIMIZED=
4725
4726else
4727  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4728
4729fi
4730
4731# Check whether --enable-profiling was given.
4732if test "${enable_profiling+set}" = set; then
4733  enableval=$enable_profiling;
4734else
4735  enableval="no"
4736fi
4737
4738if test ${enableval} = "no" ; then
4739  ENABLE_PROFILING=
4740
4741else
4742  ENABLE_PROFILING=ENABLE_PROFILING=1
4743
4744fi
4745
4746# Check whether --enable-assertions was given.
4747if test "${enable_assertions+set}" = set; then
4748  enableval=$enable_assertions;
4749else
4750  enableval="yes"
4751fi
4752
4753if test ${enableval} = "yes" ; then
4754  DISABLE_ASSERTIONS=
4755
4756else
4757  DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4758
4759fi
4760
4761# Check whether --enable-expensive-checks was given.
4762if test "${enable_expensive_checks+set}" = set; then
4763  enableval=$enable_expensive_checks;
4764else
4765  enableval="no"
4766fi
4767
4768if test ${enableval} = "yes" ; then
4769  ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4770
4771  EXPENSIVE_CHECKS=yes
4772
4773else
4774  ENABLE_EXPENSIVE_CHECKS=
4775
4776  EXPENSIVE_CHECKS=no
4777
4778fi
4779
4780# Check whether --enable-debug-runtime was given.
4781if test "${enable_debug_runtime+set}" = set; then
4782  enableval=$enable_debug_runtime;
4783else
4784  enableval=no
4785fi
4786
4787if test ${enableval} = "no" ; then
4788  DEBUG_RUNTIME=
4789
4790else
4791  DEBUG_RUNTIME=DEBUG_RUNTIME=1
4792
4793fi
4794
4795# Check whether --enable-jit was given.
4796if test "${enable_jit+set}" = set; then
4797  enableval=$enable_jit;
4798else
4799  enableval=default
4800fi
4801
4802if test ${enableval} = "no"
4803then
4804  JIT=
4805
4806else
4807  case "$llvm_cv_target_arch" in
4808    x86)     TARGET_HAS_JIT=1
4809 ;;
4810    Sparc)   TARGET_HAS_JIT=0
4811 ;;
4812    PowerPC) TARGET_HAS_JIT=1
4813 ;;
4814    x86_64)  TARGET_HAS_JIT=1
4815 ;;
4816    Alpha)   TARGET_HAS_JIT=1
4817 ;;
4818    IA64)    TARGET_HAS_JIT=0
4819 ;;
4820    ARM)     TARGET_HAS_JIT=0
4821 ;;
4822    Mips)    TARGET_HAS_JIT=0
4823 ;;
4824    PIC16)   TARGET_HAS_JIT=0
4825 ;;
4826    XCore)   TARGET_HAS_JIT=0
4827 ;;
4828    MSP430)  TARGET_HAS_JIT=0
4829 ;;
4830    *)       TARGET_HAS_JIT=0
4831 ;;
4832  esac
4833fi
4834
4835# Check whether --enable-doxygen was given.
4836if test "${enable_doxygen+set}" = set; then
4837  enableval=$enable_doxygen;
4838else
4839  enableval=default
4840fi
4841
4842case "$enableval" in
4843  yes) ENABLE_DOXYGEN=1
4844 ;;
4845  no)  ENABLE_DOXYGEN=0
4846 ;;
4847  default) ENABLE_DOXYGEN=0
4848 ;;
4849  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4850echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4851   { (exit 1); exit 1; }; } ;;
4852esac
4853
4854# Check whether --enable-threads was given.
4855if test "${enable_threads+set}" = set; then
4856  enableval=$enable_threads;
4857else
4858  enableval=default
4859fi
4860
4861case "$enableval" in
4862  yes) ENABLE_THREADS=1
4863 ;;
4864  no)  ENABLE_THREADS=0
4865 ;;
4866  default) ENABLE_THREADS=1
4867 ;;
4868  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4869echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4870   { (exit 1); exit 1; }; } ;;
4871esac
4872
4873cat >>confdefs.h <<_ACEOF
4874#define ENABLE_THREADS $ENABLE_THREADS
4875_ACEOF
4876
4877
4878# Check whether --enable-pic was given.
4879if test "${enable_pic+set}" = set; then
4880  enableval=$enable_pic;
4881else
4882  enableval=default
4883fi
4884
4885case "$enableval" in
4886  yes) ENABLE_PIC=1
4887 ;;
4888  no)  ENABLE_PIC=0
4889 ;;
4890  default) ENABLE_PIC=1
4891 ;;
4892  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4893echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4894   { (exit 1); exit 1; }; } ;;
4895esac
4896
4897cat >>confdefs.h <<_ACEOF
4898#define ENABLE_PIC $ENABLE_PIC
4899_ACEOF
4900
4901
4902TARGETS_TO_BUILD=""
4903# Check whether --enable-targets was given.
4904if test "${enable_targets+set}" = set; then
4905  enableval=$enable_targets;
4906else
4907  enableval=all
4908fi
4909
4910case "$enableval" in
4911  all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 CBackend MSIL CppBackend" ;;
4912  host-only)
4913    case "$llvm_cv_target_arch" in
4914      x86)     TARGETS_TO_BUILD="X86" ;;
4915      x86_64)  TARGETS_TO_BUILD="X86" ;;
4916      Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4917      PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4918      Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4919      IA64)    TARGETS_TO_BUILD="IA64" ;;
4920      ARM)     TARGETS_TO_BUILD="ARM" ;;
4921      Mips)    TARGETS_TO_BUILD="Mips" ;;
4922      CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4923      PIC16)   TARGETS_TO_BUILD="PIC16" ;;
4924      XCore)   TARGETS_TO_BUILD="XCore" ;;
4925      MSP430)  TARGETS_TO_BUILD="MSP430" ;;
4926      *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4927echo "$as_me: error: Can not set target to build" >&2;}
4928   { (exit 1); exit 1; }; } ;;
4929    esac
4930    ;;
4931  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4932      case "$a_target" in
4933        x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4934        x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4935        sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4936        powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4937        alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4938        ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4939        arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4940        mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4941        spu)     TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4942        pic16)   TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4943        xcore)   TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4944        msp430)  TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4945        cbe)     TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4946        msil)    TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4947        cpp)     TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4948        *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4949echo "$as_me: error: Unrecognized target $a_target" >&2;}
4950   { (exit 1); exit 1; }; } ;;
4951      esac
4952  done
4953  ;;
4954esac
4955TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4956
4957
4958# Check whether --enable-cbe-printf-a was given.
4959if test "${enable_cbe_printf_a+set}" = set; then
4960  enableval=$enable_cbe_printf_a;
4961else
4962  enableval=default
4963fi
4964
4965case "$enableval" in
4966  yes) ENABLE_CBE_PRINTF_A=1
4967 ;;
4968  no)  ENABLE_CBE_PRINTF_A=0
4969 ;;
4970  default)  ENABLE_CBE_PRINTF_A=1
4971 ;;
4972  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4973echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4974   { (exit 1); exit 1; }; } ;;
4975esac
4976
4977cat >>confdefs.h <<_ACEOF
4978#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4979_ACEOF
4980
4981
4982
4983# Check whether --with-llvmgccdir was given.
4984if test "${with_llvmgccdir+set}" = set; then
4985  withval=$with_llvmgccdir;
4986else
4987  withval=default
4988fi
4989
4990case "$withval" in
4991  default) WITH_LLVMGCCDIR=default ;;
4992  /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4993  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4994echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4995   { (exit 1); exit 1; }; } ;;
4996esac
4997
4998
4999# Check whether --with-llvmgcc was given.
5000if test "${with_llvmgcc+set}" = set; then
5001  withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5002      WITH_LLVMGCCDIR=""
5003fi
5004
5005
5006
5007# Check whether --with-llvmgxx was given.
5008if test "${with_llvmgxx+set}" = set; then
5009  withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5010    WITH_LLVMGCCDIR=""
5011fi
5012
5013if test -n "$LLVMGCC"; then
5014   LLVMGCCCOMMAND="$LLVMGCC"
5015fi
5016
5017if test -n "$LLVMGXX"; then
5018   LLVMGXXCOMMAND="$LLVMGXX"
5019fi
5020
5021if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5022   { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5023echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5024   { (exit 1); exit 1; }; };
5025fi
5026
5027if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5028   { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5029echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5030   { (exit 1); exit 1; }; };
5031fi
5032
5033
5034# Check whether --with-extra-options was given.
5035if test "${with_extra_options+set}" = set; then
5036  withval=$with_extra_options;
5037else
5038  withval=default
5039fi
5040
5041case "$withval" in
5042  default) EXTRA_OPTIONS= ;;
5043  *) EXTRA_OPTIONS=$withval ;;
5044esac
5045EXTRA_OPTIONS=$EXTRA_OPTIONS
5046
5047
5048# Check whether --enable-bindings was given.
5049if test "${enable_bindings+set}" = set; then
5050  enableval=$enable_bindings;
5051else
5052  enableval=default
5053fi
5054
5055BINDINGS_TO_BUILD=""
5056case "$enableval" in
5057  yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5058  all ) BINDINGS_TO_BUILD="ocaml" ;;
5059  none | no) BINDINGS_TO_BUILD="" ;;
5060  *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5061      case "$a_binding" in
5062        ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5063        *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5064echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5065   { (exit 1); exit 1; }; } ;;
5066      esac
5067  done
5068  ;;
5069esac
5070
5071
5072# Check whether --with-ocaml-libdir was given.
5073if test "${with_ocaml_libdir+set}" = set; then
5074  withval=$with_ocaml_libdir;
5075else
5076  withval=auto
5077fi
5078
5079case "$withval" in
5080  auto) with_ocaml_libdir="$withval" ;;
5081  /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5082  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5083echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5084   { (exit 1); exit 1; }; } ;;
5085esac
5086
5087
5088# Check whether --with-binutils-include was given.
5089if test "${with_binutils_include+set}" = set; then
5090  withval=$with_binutils_include;
5091else
5092  withval=default
5093fi
5094
5095case "$withval" in
5096  default) WITH_BINUTILS_INCDIR=default ;;
5097  /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5098  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5099echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5100   { (exit 1); exit 1; }; } ;;
5101esac
5102if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5103  BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5104
5105  if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5106     echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5107     { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5108echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5109   { (exit 1); exit 1; }; };
5110  fi
5111fi
5112
5113
5114ac_ext=c
5115ac_cpp='$CPP $CPPFLAGS'
5116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5118ac_compiler_gnu=$ac_cv_c_compiler_gnu
5119{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5120echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5121# On Suns, sometimes $CPP names a directory.
5122if test -n "$CPP" && test -d "$CPP"; then
5123  CPP=
5124fi
5125if test -z "$CPP"; then
5126  if test "${ac_cv_prog_CPP+set}" = set; then
5127  echo $ECHO_N "(cached) $ECHO_C" >&6
5128else
5129      # Double quotes because CPP needs to be expanded
5130    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5131    do
5132      ac_preproc_ok=false
5133for ac_c_preproc_warn_flag in '' yes
5134do
5135  # Use a header file that comes with gcc, so configuring glibc
5136  # with a fresh cross-compiler works.
5137  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5138  # <limits.h> exists even on freestanding compilers.
5139  # On the NeXT, cc -E runs the code through the compiler's parser,
5140  # not just through cpp. "Syntax error" is here to catch this case.
5141  cat >conftest.$ac_ext <<_ACEOF
5142/* confdefs.h.  */
5143_ACEOF
5144cat confdefs.h >>conftest.$ac_ext
5145cat >>conftest.$ac_ext <<_ACEOF
5146/* end confdefs.h.  */
5147#ifdef __STDC__
5148# include <limits.h>
5149#else
5150# include <assert.h>
5151#endif
5152		     Syntax error
5153_ACEOF
5154if { (ac_try="$ac_cpp conftest.$ac_ext"
5155case "(($ac_try" in
5156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5157  *) ac_try_echo=$ac_try;;
5158esac
5159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5160  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5161  ac_status=$?
5162  grep -v '^ *+' conftest.er1 >conftest.err
5163  rm -f conftest.er1
5164  cat conftest.err >&5
5165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166  (exit $ac_status); } >/dev/null; then
5167  if test -s conftest.err; then
5168    ac_cpp_err=$ac_c_preproc_warn_flag
5169    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5170  else
5171    ac_cpp_err=
5172  fi
5173else
5174  ac_cpp_err=yes
5175fi
5176if test -z "$ac_cpp_err"; then
5177  :
5178else
5179  echo "$as_me: failed program was:" >&5
5180sed 's/^/| /' conftest.$ac_ext >&5
5181
5182  # Broken: fails on valid input.
5183continue
5184fi
5185
5186rm -f conftest.err conftest.$ac_ext
5187
5188  # OK, works on sane cases.  Now check whether nonexistent headers
5189  # can be detected and how.
5190  cat >conftest.$ac_ext <<_ACEOF
5191/* confdefs.h.  */
5192_ACEOF
5193cat confdefs.h >>conftest.$ac_ext
5194cat >>conftest.$ac_ext <<_ACEOF
5195/* end confdefs.h.  */
5196#include <ac_nonexistent.h>
5197_ACEOF
5198if { (ac_try="$ac_cpp conftest.$ac_ext"
5199case "(($ac_try" in
5200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201  *) ac_try_echo=$ac_try;;
5202esac
5203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5204  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5205  ac_status=$?
5206  grep -v '^ *+' conftest.er1 >conftest.err
5207  rm -f conftest.er1
5208  cat conftest.err >&5
5209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210  (exit $ac_status); } >/dev/null; then
5211  if test -s conftest.err; then
5212    ac_cpp_err=$ac_c_preproc_warn_flag
5213    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5214  else
5215    ac_cpp_err=
5216  fi
5217else
5218  ac_cpp_err=yes
5219fi
5220if test -z "$ac_cpp_err"; then
5221  # Broken: success on invalid input.
5222continue
5223else
5224  echo "$as_me: failed program was:" >&5
5225sed 's/^/| /' conftest.$ac_ext >&5
5226
5227  # Passes both tests.
5228ac_preproc_ok=:
5229break
5230fi
5231
5232rm -f conftest.err conftest.$ac_ext
5233
5234done
5235# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5236rm -f conftest.err conftest.$ac_ext
5237if $ac_preproc_ok; then
5238  break
5239fi
5240
5241    done
5242    ac_cv_prog_CPP=$CPP
5243
5244fi
5245  CPP=$ac_cv_prog_CPP
5246else
5247  ac_cv_prog_CPP=$CPP
5248fi
5249{ echo "$as_me:$LINENO: result: $CPP" >&5
5250echo "${ECHO_T}$CPP" >&6; }
5251ac_preproc_ok=false
5252for ac_c_preproc_warn_flag in '' yes
5253do
5254  # Use a header file that comes with gcc, so configuring glibc
5255  # with a fresh cross-compiler works.
5256  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5257  # <limits.h> exists even on freestanding compilers.
5258  # On the NeXT, cc -E runs the code through the compiler's parser,
5259  # not just through cpp. "Syntax error" is here to catch this case.
5260  cat >conftest.$ac_ext <<_ACEOF
5261/* confdefs.h.  */
5262_ACEOF
5263cat confdefs.h >>conftest.$ac_ext
5264cat >>conftest.$ac_ext <<_ACEOF
5265/* end confdefs.h.  */
5266#ifdef __STDC__
5267# include <limits.h>
5268#else
5269# include <assert.h>
5270#endif
5271		     Syntax error
5272_ACEOF
5273if { (ac_try="$ac_cpp conftest.$ac_ext"
5274case "(($ac_try" in
5275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276  *) ac_try_echo=$ac_try;;
5277esac
5278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5280  ac_status=$?
5281  grep -v '^ *+' conftest.er1 >conftest.err
5282  rm -f conftest.er1
5283  cat conftest.err >&5
5284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285  (exit $ac_status); } >/dev/null; then
5286  if test -s conftest.err; then
5287    ac_cpp_err=$ac_c_preproc_warn_flag
5288    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5289  else
5290    ac_cpp_err=
5291  fi
5292else
5293  ac_cpp_err=yes
5294fi
5295if test -z "$ac_cpp_err"; then
5296  :
5297else
5298  echo "$as_me: failed program was:" >&5
5299sed 's/^/| /' conftest.$ac_ext >&5
5300
5301  # Broken: fails on valid input.
5302continue
5303fi
5304
5305rm -f conftest.err conftest.$ac_ext
5306
5307  # OK, works on sane cases.  Now check whether nonexistent headers
5308  # can be detected and how.
5309  cat >conftest.$ac_ext <<_ACEOF
5310/* confdefs.h.  */
5311_ACEOF
5312cat confdefs.h >>conftest.$ac_ext
5313cat >>conftest.$ac_ext <<_ACEOF
5314/* end confdefs.h.  */
5315#include <ac_nonexistent.h>
5316_ACEOF
5317if { (ac_try="$ac_cpp conftest.$ac_ext"
5318case "(($ac_try" in
5319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5320  *) ac_try_echo=$ac_try;;
5321esac
5322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5323  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5324  ac_status=$?
5325  grep -v '^ *+' conftest.er1 >conftest.err
5326  rm -f conftest.er1
5327  cat conftest.err >&5
5328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329  (exit $ac_status); } >/dev/null; then
5330  if test -s conftest.err; then
5331    ac_cpp_err=$ac_c_preproc_warn_flag
5332    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5333  else
5334    ac_cpp_err=
5335  fi
5336else
5337  ac_cpp_err=yes
5338fi
5339if test -z "$ac_cpp_err"; then
5340  # Broken: success on invalid input.
5341continue
5342else
5343  echo "$as_me: failed program was:" >&5
5344sed 's/^/| /' conftest.$ac_ext >&5
5345
5346  # Passes both tests.
5347ac_preproc_ok=:
5348break
5349fi
5350
5351rm -f conftest.err conftest.$ac_ext
5352
5353done
5354# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5355rm -f conftest.err conftest.$ac_ext
5356if $ac_preproc_ok; then
5357  :
5358else
5359  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5360See \`config.log' for more details." >&5
5361echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5362See \`config.log' for more details." >&2;}
5363   { (exit 1); exit 1; }; }
5364fi
5365
5366ac_ext=c
5367ac_cpp='$CPP $CPPFLAGS'
5368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5370ac_compiler_gnu=$ac_cv_c_compiler_gnu
5371
5372ac_ext=c
5373ac_cpp='$CPP $CPPFLAGS'
5374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5376ac_compiler_gnu=$ac_cv_c_compiler_gnu
5377if test -n "$ac_tool_prefix"; then
5378  for ac_prog in gcc
5379  do
5380    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5381set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5382{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5384if test "${ac_cv_prog_CC+set}" = set; then
5385  echo $ECHO_N "(cached) $ECHO_C" >&6
5386else
5387  if test -n "$CC"; then
5388  ac_cv_prog_CC="$CC" # Let the user override the test.
5389else
5390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391for as_dir in $PATH
5392do
5393  IFS=$as_save_IFS
5394  test -z "$as_dir" && as_dir=.
5395  for ac_exec_ext in '' $ac_executable_extensions; do
5396  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5397    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5398    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5399    break 2
5400  fi
5401done
5402done
5403IFS=$as_save_IFS
5404
5405fi
5406fi
5407CC=$ac_cv_prog_CC
5408if test -n "$CC"; then
5409  { echo "$as_me:$LINENO: result: $CC" >&5
5410echo "${ECHO_T}$CC" >&6; }
5411else
5412  { echo "$as_me:$LINENO: result: no" >&5
5413echo "${ECHO_T}no" >&6; }
5414fi
5415
5416
5417    test -n "$CC" && break
5418  done
5419fi
5420if test -z "$CC"; then
5421  ac_ct_CC=$CC
5422  for ac_prog in gcc
5423do
5424  # Extract the first word of "$ac_prog", so it can be a program name with args.
5425set dummy $ac_prog; ac_word=$2
5426{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5428if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5429  echo $ECHO_N "(cached) $ECHO_C" >&6
5430else
5431  if test -n "$ac_ct_CC"; then
5432  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5433else
5434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435for as_dir in $PATH
5436do
5437  IFS=$as_save_IFS
5438  test -z "$as_dir" && as_dir=.
5439  for ac_exec_ext in '' $ac_executable_extensions; do
5440  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5441    ac_cv_prog_ac_ct_CC="$ac_prog"
5442    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5443    break 2
5444  fi
5445done
5446done
5447IFS=$as_save_IFS
5448
5449fi
5450fi
5451ac_ct_CC=$ac_cv_prog_ac_ct_CC
5452if test -n "$ac_ct_CC"; then
5453  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5454echo "${ECHO_T}$ac_ct_CC" >&6; }
5455else
5456  { echo "$as_me:$LINENO: result: no" >&5
5457echo "${ECHO_T}no" >&6; }
5458fi
5459
5460
5461  test -n "$ac_ct_CC" && break
5462done
5463
5464  if test "x$ac_ct_CC" = x; then
5465    CC=""
5466  else
5467    case $cross_compiling:$ac_tool_warned in
5468yes:)
5469{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5470whose name does not start with the host triplet.  If you think this
5471configuration is useful to you, please write to autoconf@gnu.org." >&5
5472echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5473whose name does not start with the host triplet.  If you think this
5474configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5475ac_tool_warned=yes ;;
5476esac
5477    CC=$ac_ct_CC
5478  fi
5479fi
5480
5481
5482test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5483See \`config.log' for more details." >&5
5484echo "$as_me: error: no acceptable C compiler found in \$PATH
5485See \`config.log' for more details." >&2;}
5486   { (exit 1); exit 1; }; }
5487
5488# Provide some information about the compiler.
5489echo "$as_me:$LINENO: checking for C compiler version" >&5
5490ac_compiler=`set X $ac_compile; echo $2`
5491{ (ac_try="$ac_compiler --version >&5"
5492case "(($ac_try" in
5493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5494  *) ac_try_echo=$ac_try;;
5495esac
5496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5497  (eval "$ac_compiler --version >&5") 2>&5
5498  ac_status=$?
5499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500  (exit $ac_status); }
5501{ (ac_try="$ac_compiler -v >&5"
5502case "(($ac_try" in
5503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504  *) ac_try_echo=$ac_try;;
5505esac
5506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507  (eval "$ac_compiler -v >&5") 2>&5
5508  ac_status=$?
5509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510  (exit $ac_status); }
5511{ (ac_try="$ac_compiler -V >&5"
5512case "(($ac_try" in
5513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514  *) ac_try_echo=$ac_try;;
5515esac
5516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517  (eval "$ac_compiler -V >&5") 2>&5
5518  ac_status=$?
5519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520  (exit $ac_status); }
5521
5522{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5523echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5524if test "${ac_cv_c_compiler_gnu+set}" = set; then
5525  echo $ECHO_N "(cached) $ECHO_C" >&6
5526else
5527  cat >conftest.$ac_ext <<_ACEOF
5528/* confdefs.h.  */
5529_ACEOF
5530cat confdefs.h >>conftest.$ac_ext
5531cat >>conftest.$ac_ext <<_ACEOF
5532/* end confdefs.h.  */
5533
5534int
5535main ()
5536{
5537#ifndef __GNUC__
5538       choke me
5539#endif
5540
5541  ;
5542  return 0;
5543}
5544_ACEOF
5545rm -f conftest.$ac_objext
5546if { (ac_try="$ac_compile"
5547case "(($ac_try" in
5548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5549  *) ac_try_echo=$ac_try;;
5550esac
5551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5552  (eval "$ac_compile") 2>conftest.er1
5553  ac_status=$?
5554  grep -v '^ *+' conftest.er1 >conftest.err
5555  rm -f conftest.er1
5556  cat conftest.err >&5
5557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558  (exit $ac_status); } &&
5559	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5560  { (case "(($ac_try" in
5561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5562  *) ac_try_echo=$ac_try;;
5563esac
5564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5565  (eval "$ac_try") 2>&5
5566  ac_status=$?
5567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568  (exit $ac_status); }; } &&
5569	 { ac_try='test -s conftest.$ac_objext'
5570  { (case "(($ac_try" in
5571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572  *) ac_try_echo=$ac_try;;
5573esac
5574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575  (eval "$ac_try") 2>&5
5576  ac_status=$?
5577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578  (exit $ac_status); }; }; then
5579  ac_compiler_gnu=yes
5580else
5581  echo "$as_me: failed program was:" >&5
5582sed 's/^/| /' conftest.$ac_ext >&5
5583
5584	ac_compiler_gnu=no
5585fi
5586
5587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588ac_cv_c_compiler_gnu=$ac_compiler_gnu
5589
5590fi
5591{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5592echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5593GCC=`test $ac_compiler_gnu = yes && echo yes`
5594ac_test_CFLAGS=${CFLAGS+set}
5595ac_save_CFLAGS=$CFLAGS
5596{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5597echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5598if test "${ac_cv_prog_cc_g+set}" = set; then
5599  echo $ECHO_N "(cached) $ECHO_C" >&6
5600else
5601  ac_save_c_werror_flag=$ac_c_werror_flag
5602   ac_c_werror_flag=yes
5603   ac_cv_prog_cc_g=no
5604   CFLAGS="-g"
5605   cat >conftest.$ac_ext <<_ACEOF
5606/* confdefs.h.  */
5607_ACEOF
5608cat confdefs.h >>conftest.$ac_ext
5609cat >>conftest.$ac_ext <<_ACEOF
5610/* end confdefs.h.  */
5611
5612int
5613main ()
5614{
5615
5616  ;
5617  return 0;
5618}
5619_ACEOF
5620rm -f conftest.$ac_objext
5621if { (ac_try="$ac_compile"
5622case "(($ac_try" in
5623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624  *) ac_try_echo=$ac_try;;
5625esac
5626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627  (eval "$ac_compile") 2>conftest.er1
5628  ac_status=$?
5629  grep -v '^ *+' conftest.er1 >conftest.err
5630  rm -f conftest.er1
5631  cat conftest.err >&5
5632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633  (exit $ac_status); } &&
5634	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5635  { (case "(($ac_try" in
5636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5637  *) ac_try_echo=$ac_try;;
5638esac
5639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5640  (eval "$ac_try") 2>&5
5641  ac_status=$?
5642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643  (exit $ac_status); }; } &&
5644	 { ac_try='test -s conftest.$ac_objext'
5645  { (case "(($ac_try" in
5646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647  *) ac_try_echo=$ac_try;;
5648esac
5649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5650  (eval "$ac_try") 2>&5
5651  ac_status=$?
5652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653  (exit $ac_status); }; }; then
5654  ac_cv_prog_cc_g=yes
5655else
5656  echo "$as_me: failed program was:" >&5
5657sed 's/^/| /' conftest.$ac_ext >&5
5658
5659	CFLAGS=""
5660      cat >conftest.$ac_ext <<_ACEOF
5661/* confdefs.h.  */
5662_ACEOF
5663cat confdefs.h >>conftest.$ac_ext
5664cat >>conftest.$ac_ext <<_ACEOF
5665/* end confdefs.h.  */
5666
5667int
5668main ()
5669{
5670
5671  ;
5672  return 0;
5673}
5674_ACEOF
5675rm -f conftest.$ac_objext
5676if { (ac_try="$ac_compile"
5677case "(($ac_try" in
5678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679  *) ac_try_echo=$ac_try;;
5680esac
5681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682  (eval "$ac_compile") 2>conftest.er1
5683  ac_status=$?
5684  grep -v '^ *+' conftest.er1 >conftest.err
5685  rm -f conftest.er1
5686  cat conftest.err >&5
5687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688  (exit $ac_status); } &&
5689	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5690  { (case "(($ac_try" in
5691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692  *) ac_try_echo=$ac_try;;
5693esac
5694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695  (eval "$ac_try") 2>&5
5696  ac_status=$?
5697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698  (exit $ac_status); }; } &&
5699	 { ac_try='test -s conftest.$ac_objext'
5700  { (case "(($ac_try" in
5701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5702  *) ac_try_echo=$ac_try;;
5703esac
5704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5705  (eval "$ac_try") 2>&5
5706  ac_status=$?
5707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708  (exit $ac_status); }; }; then
5709  :
5710else
5711  echo "$as_me: failed program was:" >&5
5712sed 's/^/| /' conftest.$ac_ext >&5
5713
5714	ac_c_werror_flag=$ac_save_c_werror_flag
5715	 CFLAGS="-g"
5716	 cat >conftest.$ac_ext <<_ACEOF
5717/* confdefs.h.  */
5718_ACEOF
5719cat confdefs.h >>conftest.$ac_ext
5720cat >>conftest.$ac_ext <<_ACEOF
5721/* end confdefs.h.  */
5722
5723int
5724main ()
5725{
5726
5727  ;
5728  return 0;
5729}
5730_ACEOF
5731rm -f conftest.$ac_objext
5732if { (ac_try="$ac_compile"
5733case "(($ac_try" in
5734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5735  *) ac_try_echo=$ac_try;;
5736esac
5737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5738  (eval "$ac_compile") 2>conftest.er1
5739  ac_status=$?
5740  grep -v '^ *+' conftest.er1 >conftest.err
5741  rm -f conftest.er1
5742  cat conftest.err >&5
5743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744  (exit $ac_status); } &&
5745	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5746  { (case "(($ac_try" in
5747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748  *) ac_try_echo=$ac_try;;
5749esac
5750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5751  (eval "$ac_try") 2>&5
5752  ac_status=$?
5753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754  (exit $ac_status); }; } &&
5755	 { ac_try='test -s conftest.$ac_objext'
5756  { (case "(($ac_try" in
5757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5758  *) ac_try_echo=$ac_try;;
5759esac
5760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5761  (eval "$ac_try") 2>&5
5762  ac_status=$?
5763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764  (exit $ac_status); }; }; then
5765  ac_cv_prog_cc_g=yes
5766else
5767  echo "$as_me: failed program was:" >&5
5768sed 's/^/| /' conftest.$ac_ext >&5
5769
5770
5771fi
5772
5773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774fi
5775
5776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777fi
5778
5779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5780   ac_c_werror_flag=$ac_save_c_werror_flag
5781fi
5782{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5783echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5784if test "$ac_test_CFLAGS" = set; then
5785  CFLAGS=$ac_save_CFLAGS
5786elif test $ac_cv_prog_cc_g = yes; then
5787  if test "$GCC" = yes; then
5788    CFLAGS="-g -O2"
5789  else
5790    CFLAGS="-g"
5791  fi
5792else
5793  if test "$GCC" = yes; then
5794    CFLAGS="-O2"
5795  else
5796    CFLAGS=
5797  fi
5798fi
5799{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5800echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5801if test "${ac_cv_prog_cc_c89+set}" = set; then
5802  echo $ECHO_N "(cached) $ECHO_C" >&6
5803else
5804  ac_cv_prog_cc_c89=no
5805ac_save_CC=$CC
5806cat >conftest.$ac_ext <<_ACEOF
5807/* confdefs.h.  */
5808_ACEOF
5809cat confdefs.h >>conftest.$ac_ext
5810cat >>conftest.$ac_ext <<_ACEOF
5811/* end confdefs.h.  */
5812#include <stdarg.h>
5813#include <stdio.h>
5814#include <sys/types.h>
5815#include <sys/stat.h>
5816/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5817struct buf { int x; };
5818FILE * (*rcsopen) (struct buf *, struct stat *, int);
5819static char *e (p, i)
5820     char **p;
5821     int i;
5822{
5823  return p[i];
5824}
5825static char *f (char * (*g) (char **, int), char **p, ...)
5826{
5827  char *s;
5828  va_list v;
5829  va_start (v,p);
5830  s = g (p, va_arg (v,int));
5831  va_end (v);
5832  return s;
5833}
5834
5835/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5836   function prototypes and stuff, but not '\xHH' hex character constants.
5837   These don't provoke an error unfortunately, instead are silently treated
5838   as 'x'.  The following induces an error, until -std is added to get
5839   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5840   array size at least.  It's necessary to write '\x00'==0 to get something
5841   that's true only with -std.  */
5842int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5843
5844/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5845   inside strings and character constants.  */
5846#define FOO(x) 'x'
5847int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5848
5849int test (int i, double x);
5850struct s1 {int (*f) (int a);};
5851struct s2 {int (*f) (double a);};
5852int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5853int argc;
5854char **argv;
5855int
5856main ()
5857{
5858return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5859  ;
5860  return 0;
5861}
5862_ACEOF
5863for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5864	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5865do
5866  CC="$ac_save_CC $ac_arg"
5867  rm -f conftest.$ac_objext
5868if { (ac_try="$ac_compile"
5869case "(($ac_try" in
5870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5871  *) ac_try_echo=$ac_try;;
5872esac
5873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5874  (eval "$ac_compile") 2>conftest.er1
5875  ac_status=$?
5876  grep -v '^ *+' conftest.er1 >conftest.err
5877  rm -f conftest.er1
5878  cat conftest.err >&5
5879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880  (exit $ac_status); } &&
5881	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5882  { (case "(($ac_try" in
5883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5884  *) ac_try_echo=$ac_try;;
5885esac
5886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5887  (eval "$ac_try") 2>&5
5888  ac_status=$?
5889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890  (exit $ac_status); }; } &&
5891	 { ac_try='test -s conftest.$ac_objext'
5892  { (case "(($ac_try" in
5893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894  *) ac_try_echo=$ac_try;;
5895esac
5896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897  (eval "$ac_try") 2>&5
5898  ac_status=$?
5899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900  (exit $ac_status); }; }; then
5901  ac_cv_prog_cc_c89=$ac_arg
5902else
5903  echo "$as_me: failed program was:" >&5
5904sed 's/^/| /' conftest.$ac_ext >&5
5905
5906
5907fi
5908
5909rm -f core conftest.err conftest.$ac_objext
5910  test "x$ac_cv_prog_cc_c89" != "xno" && break
5911done
5912rm -f conftest.$ac_ext
5913CC=$ac_save_CC
5914
5915fi
5916# AC_CACHE_VAL
5917case "x$ac_cv_prog_cc_c89" in
5918  x)
5919    { echo "$as_me:$LINENO: result: none needed" >&5
5920echo "${ECHO_T}none needed" >&6; } ;;
5921  xno)
5922    { echo "$as_me:$LINENO: result: unsupported" >&5
5923echo "${ECHO_T}unsupported" >&6; } ;;
5924  *)
5925    CC="$CC $ac_cv_prog_cc_c89"
5926    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5927echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5928esac
5929
5930
5931ac_ext=c
5932ac_cpp='$CPP $CPPFLAGS'
5933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5935ac_compiler_gnu=$ac_cv_c_compiler_gnu
5936
5937ac_ext=cpp
5938ac_cpp='$CXXCPP $CPPFLAGS'
5939ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5940ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5941ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5942if test -z "$CXX"; then
5943  if test -n "$CCC"; then
5944    CXX=$CCC
5945  else
5946    if test -n "$ac_tool_prefix"; then
5947  for ac_prog in g++
5948  do
5949    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5950set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5951{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5953if test "${ac_cv_prog_CXX+set}" = set; then
5954  echo $ECHO_N "(cached) $ECHO_C" >&6
5955else
5956  if test -n "$CXX"; then
5957  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5958else
5959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960for as_dir in $PATH
5961do
5962  IFS=$as_save_IFS
5963  test -z "$as_dir" && as_dir=.
5964  for ac_exec_ext in '' $ac_executable_extensions; do
5965  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5966    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5967    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968    break 2
5969  fi
5970done
5971done
5972IFS=$as_save_IFS
5973
5974fi
5975fi
5976CXX=$ac_cv_prog_CXX
5977if test -n "$CXX"; then
5978  { echo "$as_me:$LINENO: result: $CXX" >&5
5979echo "${ECHO_T}$CXX" >&6; }
5980else
5981  { echo "$as_me:$LINENO: result: no" >&5
5982echo "${ECHO_T}no" >&6; }
5983fi
5984
5985
5986    test -n "$CXX" && break
5987  done
5988fi
5989if test -z "$CXX"; then
5990  ac_ct_CXX=$CXX
5991  for ac_prog in g++
5992do
5993  # Extract the first word of "$ac_prog", so it can be a program name with args.
5994set dummy $ac_prog; ac_word=$2
5995{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5997if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5998  echo $ECHO_N "(cached) $ECHO_C" >&6
5999else
6000  if test -n "$ac_ct_CXX"; then
6001  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6002else
6003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004for as_dir in $PATH
6005do
6006  IFS=$as_save_IFS
6007  test -z "$as_dir" && as_dir=.
6008  for ac_exec_ext in '' $ac_executable_extensions; do
6009  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6010    ac_cv_prog_ac_ct_CXX="$ac_prog"
6011    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6012    break 2
6013  fi
6014done
6015done
6016IFS=$as_save_IFS
6017
6018fi
6019fi
6020ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6021if test -n "$ac_ct_CXX"; then
6022  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6023echo "${ECHO_T}$ac_ct_CXX" >&6; }
6024else
6025  { echo "$as_me:$LINENO: result: no" >&5
6026echo "${ECHO_T}no" >&6; }
6027fi
6028
6029
6030  test -n "$ac_ct_CXX" && break
6031done
6032
6033  if test "x$ac_ct_CXX" = x; then
6034    CXX="g++"
6035  else
6036    case $cross_compiling:$ac_tool_warned in
6037yes:)
6038{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6039whose name does not start with the host triplet.  If you think this
6040configuration is useful to you, please write to autoconf@gnu.org." >&5
6041echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6042whose name does not start with the host triplet.  If you think this
6043configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6044ac_tool_warned=yes ;;
6045esac
6046    CXX=$ac_ct_CXX
6047  fi
6048fi
6049
6050  fi
6051fi
6052# Provide some information about the compiler.
6053echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6054ac_compiler=`set X $ac_compile; echo $2`
6055{ (ac_try="$ac_compiler --version >&5"
6056case "(($ac_try" in
6057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058  *) ac_try_echo=$ac_try;;
6059esac
6060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061  (eval "$ac_compiler --version >&5") 2>&5
6062  ac_status=$?
6063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064  (exit $ac_status); }
6065{ (ac_try="$ac_compiler -v >&5"
6066case "(($ac_try" in
6067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6068  *) ac_try_echo=$ac_try;;
6069esac
6070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6071  (eval "$ac_compiler -v >&5") 2>&5
6072  ac_status=$?
6073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074  (exit $ac_status); }
6075{ (ac_try="$ac_compiler -V >&5"
6076case "(($ac_try" in
6077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6078  *) ac_try_echo=$ac_try;;
6079esac
6080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081  (eval "$ac_compiler -V >&5") 2>&5
6082  ac_status=$?
6083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084  (exit $ac_status); }
6085
6086{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6087echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6088if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6089  echo $ECHO_N "(cached) $ECHO_C" >&6
6090else
6091  cat >conftest.$ac_ext <<_ACEOF
6092/* confdefs.h.  */
6093_ACEOF
6094cat confdefs.h >>conftest.$ac_ext
6095cat >>conftest.$ac_ext <<_ACEOF
6096/* end confdefs.h.  */
6097
6098int
6099main ()
6100{
6101#ifndef __GNUC__
6102       choke me
6103#endif
6104
6105  ;
6106  return 0;
6107}
6108_ACEOF
6109rm -f conftest.$ac_objext
6110if { (ac_try="$ac_compile"
6111case "(($ac_try" in
6112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113  *) ac_try_echo=$ac_try;;
6114esac
6115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116  (eval "$ac_compile") 2>conftest.er1
6117  ac_status=$?
6118  grep -v '^ *+' conftest.er1 >conftest.err
6119  rm -f conftest.er1
6120  cat conftest.err >&5
6121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122  (exit $ac_status); } &&
6123	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6124  { (case "(($ac_try" in
6125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126  *) ac_try_echo=$ac_try;;
6127esac
6128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129  (eval "$ac_try") 2>&5
6130  ac_status=$?
6131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132  (exit $ac_status); }; } &&
6133	 { ac_try='test -s conftest.$ac_objext'
6134  { (case "(($ac_try" in
6135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6136  *) ac_try_echo=$ac_try;;
6137esac
6138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139  (eval "$ac_try") 2>&5
6140  ac_status=$?
6141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142  (exit $ac_status); }; }; then
6143  ac_compiler_gnu=yes
6144else
6145  echo "$as_me: failed program was:" >&5
6146sed 's/^/| /' conftest.$ac_ext >&5
6147
6148	ac_compiler_gnu=no
6149fi
6150
6151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6152ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6153
6154fi
6155{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6156echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6157GXX=`test $ac_compiler_gnu = yes && echo yes`
6158ac_test_CXXFLAGS=${CXXFLAGS+set}
6159ac_save_CXXFLAGS=$CXXFLAGS
6160{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6161echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6162if test "${ac_cv_prog_cxx_g+set}" = set; then
6163  echo $ECHO_N "(cached) $ECHO_C" >&6
6164else
6165  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6166   ac_cxx_werror_flag=yes
6167   ac_cv_prog_cxx_g=no
6168   CXXFLAGS="-g"
6169   cat >conftest.$ac_ext <<_ACEOF
6170/* confdefs.h.  */
6171_ACEOF
6172cat confdefs.h >>conftest.$ac_ext
6173cat >>conftest.$ac_ext <<_ACEOF
6174/* end confdefs.h.  */
6175
6176int
6177main ()
6178{
6179
6180  ;
6181  return 0;
6182}
6183_ACEOF
6184rm -f conftest.$ac_objext
6185if { (ac_try="$ac_compile"
6186case "(($ac_try" in
6187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188  *) ac_try_echo=$ac_try;;
6189esac
6190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191  (eval "$ac_compile") 2>conftest.er1
6192  ac_status=$?
6193  grep -v '^ *+' conftest.er1 >conftest.err
6194  rm -f conftest.er1
6195  cat conftest.err >&5
6196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197  (exit $ac_status); } &&
6198	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6199  { (case "(($ac_try" in
6200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6201  *) ac_try_echo=$ac_try;;
6202esac
6203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6204  (eval "$ac_try") 2>&5
6205  ac_status=$?
6206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207  (exit $ac_status); }; } &&
6208	 { ac_try='test -s conftest.$ac_objext'
6209  { (case "(($ac_try" in
6210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211  *) ac_try_echo=$ac_try;;
6212esac
6213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6214  (eval "$ac_try") 2>&5
6215  ac_status=$?
6216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217  (exit $ac_status); }; }; then
6218  ac_cv_prog_cxx_g=yes
6219else
6220  echo "$as_me: failed program was:" >&5
6221sed 's/^/| /' conftest.$ac_ext >&5
6222
6223	CXXFLAGS=""
6224      cat >conftest.$ac_ext <<_ACEOF
6225/* confdefs.h.  */
6226_ACEOF
6227cat confdefs.h >>conftest.$ac_ext
6228cat >>conftest.$ac_ext <<_ACEOF
6229/* end confdefs.h.  */
6230
6231int
6232main ()
6233{
6234
6235  ;
6236  return 0;
6237}
6238_ACEOF
6239rm -f conftest.$ac_objext
6240if { (ac_try="$ac_compile"
6241case "(($ac_try" in
6242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6243  *) ac_try_echo=$ac_try;;
6244esac
6245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6246  (eval "$ac_compile") 2>conftest.er1
6247  ac_status=$?
6248  grep -v '^ *+' conftest.er1 >conftest.err
6249  rm -f conftest.er1
6250  cat conftest.err >&5
6251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252  (exit $ac_status); } &&
6253	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6254  { (case "(($ac_try" in
6255  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256  *) ac_try_echo=$ac_try;;
6257esac
6258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6259  (eval "$ac_try") 2>&5
6260  ac_status=$?
6261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262  (exit $ac_status); }; } &&
6263	 { ac_try='test -s conftest.$ac_objext'
6264  { (case "(($ac_try" in
6265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266  *) ac_try_echo=$ac_try;;
6267esac
6268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269  (eval "$ac_try") 2>&5
6270  ac_status=$?
6271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272  (exit $ac_status); }; }; then
6273  :
6274else
6275  echo "$as_me: failed program was:" >&5
6276sed 's/^/| /' conftest.$ac_ext >&5
6277
6278	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6279	 CXXFLAGS="-g"
6280	 cat >conftest.$ac_ext <<_ACEOF
6281/* confdefs.h.  */
6282_ACEOF
6283cat confdefs.h >>conftest.$ac_ext
6284cat >>conftest.$ac_ext <<_ACEOF
6285/* end confdefs.h.  */
6286
6287int
6288main ()
6289{
6290
6291  ;
6292  return 0;
6293}
6294_ACEOF
6295rm -f conftest.$ac_objext
6296if { (ac_try="$ac_compile"
6297case "(($ac_try" in
6298  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6299  *) ac_try_echo=$ac_try;;
6300esac
6301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6302  (eval "$ac_compile") 2>conftest.er1
6303  ac_status=$?
6304  grep -v '^ *+' conftest.er1 >conftest.err
6305  rm -f conftest.er1
6306  cat conftest.err >&5
6307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308  (exit $ac_status); } &&
6309	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6310  { (case "(($ac_try" in
6311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312  *) ac_try_echo=$ac_try;;
6313esac
6314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315  (eval "$ac_try") 2>&5
6316  ac_status=$?
6317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318  (exit $ac_status); }; } &&
6319	 { ac_try='test -s conftest.$ac_objext'
6320  { (case "(($ac_try" in
6321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6322  *) ac_try_echo=$ac_try;;
6323esac
6324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6325  (eval "$ac_try") 2>&5
6326  ac_status=$?
6327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328  (exit $ac_status); }; }; then
6329  ac_cv_prog_cxx_g=yes
6330else
6331  echo "$as_me: failed program was:" >&5
6332sed 's/^/| /' conftest.$ac_ext >&5
6333
6334
6335fi
6336
6337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6338fi
6339
6340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6341fi
6342
6343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6344   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6345fi
6346{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6347echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6348if test "$ac_test_CXXFLAGS" = set; then
6349  CXXFLAGS=$ac_save_CXXFLAGS
6350elif test $ac_cv_prog_cxx_g = yes; then
6351  if test "$GXX" = yes; then
6352    CXXFLAGS="-g -O2"
6353  else
6354    CXXFLAGS="-g"
6355  fi
6356else
6357  if test "$GXX" = yes; then
6358    CXXFLAGS="-O2"
6359  else
6360    CXXFLAGS=
6361  fi
6362fi
6363ac_ext=c
6364ac_cpp='$CPP $CPPFLAGS'
6365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6367ac_compiler_gnu=$ac_cv_c_compiler_gnu
6368
6369
6370{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6371echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6372if test "${lt_cv_path_NM+set}" = set; then
6373  echo $ECHO_N "(cached) $ECHO_C" >&6
6374else
6375  if test -n "$NM"; then
6376  # Let the user override the test.
6377  lt_cv_path_NM="$NM"
6378else
6379  lt_nm_to_check="${ac_tool_prefix}nm"
6380  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6381    lt_nm_to_check="$lt_nm_to_check nm"
6382  fi
6383  for lt_tmp_nm in $lt_nm_to_check; do
6384    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6385    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6386      IFS="$lt_save_ifs"
6387      test -z "$ac_dir" && ac_dir=.
6388      tmp_nm="$ac_dir/$lt_tmp_nm"
6389      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6390	# Check to see if the nm accepts a BSD-compat flag.
6391	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6392	#   nm: unknown option "B" ignored
6393	# Tru64's nm complains that /dev/null is an invalid object file
6394	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6395	*/dev/null* | *'Invalid file or object type'*)
6396	  lt_cv_path_NM="$tmp_nm -B"
6397	  break
6398	  ;;
6399	*)
6400	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6401	  */dev/null*)
6402	    lt_cv_path_NM="$tmp_nm -p"
6403	    break
6404	    ;;
6405	  *)
6406	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6407	    continue # so that we can try to find one that supports BSD flags
6408	    ;;
6409	  esac
6410	  ;;
6411	esac
6412      fi
6413    done
6414    IFS="$lt_save_ifs"
6415  done
6416  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6417fi
6418fi
6419{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6420echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6421NM="$lt_cv_path_NM"
6422
6423
6424
6425{ echo "$as_me:$LINENO: checking for GNU make" >&5
6426echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6427if test "${llvm_cv_gnu_make_command+set}" = set; then
6428  echo $ECHO_N "(cached) $ECHO_C" >&6
6429else
6430  llvm_cv_gnu_make_command=''
6431 for a in "$MAKE" make gmake gnumake ; do
6432  if test -z "$a" ; then continue ; fi ;
6433  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6434  then
6435   llvm_cv_gnu_make_command=$a ;
6436   break;
6437  fi
6438 done
6439fi
6440{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6441echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6442 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6443   ifGNUmake='' ;
6444 else
6445   ifGNUmake='#' ;
6446   { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6447echo "${ECHO_T}\"Not found\"" >&6; };
6448 fi
6449
6450
6451{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6452echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6453LN_S=$as_ln_s
6454if test "$LN_S" = "ln -s"; then
6455  { echo "$as_me:$LINENO: result: yes" >&5
6456echo "${ECHO_T}yes" >&6; }
6457else
6458  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6459echo "${ECHO_T}no, using $LN_S" >&6; }
6460fi
6461
6462# Extract the first word of "cmp", so it can be a program name with args.
6463set dummy cmp; ac_word=$2
6464{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6466if test "${ac_cv_path_CMP+set}" = set; then
6467  echo $ECHO_N "(cached) $ECHO_C" >&6
6468else
6469  case $CMP in
6470  [\\/]* | ?:[\\/]*)
6471  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6472  ;;
6473  *)
6474  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475for as_dir in $PATH
6476do
6477  IFS=$as_save_IFS
6478  test -z "$as_dir" && as_dir=.
6479  for ac_exec_ext in '' $ac_executable_extensions; do
6480  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6481    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6482    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6483    break 2
6484  fi
6485done
6486done
6487IFS=$as_save_IFS
6488
6489  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6490  ;;
6491esac
6492fi
6493CMP=$ac_cv_path_CMP
6494if test -n "$CMP"; then
6495  { echo "$as_me:$LINENO: result: $CMP" >&5
6496echo "${ECHO_T}$CMP" >&6; }
6497else
6498  { echo "$as_me:$LINENO: result: no" >&5
6499echo "${ECHO_T}no" >&6; }
6500fi
6501
6502
6503# Extract the first word of "cp", so it can be a program name with args.
6504set dummy cp; ac_word=$2
6505{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6507if test "${ac_cv_path_CP+set}" = set; then
6508  echo $ECHO_N "(cached) $ECHO_C" >&6
6509else
6510  case $CP in
6511  [\\/]* | ?:[\\/]*)
6512  ac_cv_path_CP="$CP" # Let the user override the test with a path.
6513  ;;
6514  *)
6515  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516for as_dir in $PATH
6517do
6518  IFS=$as_save_IFS
6519  test -z "$as_dir" && as_dir=.
6520  for ac_exec_ext in '' $ac_executable_extensions; do
6521  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6522    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6523    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6524    break 2
6525  fi
6526done
6527done
6528IFS=$as_save_IFS
6529
6530  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6531  ;;
6532esac
6533fi
6534CP=$ac_cv_path_CP
6535if test -n "$CP"; then
6536  { echo "$as_me:$LINENO: result: $CP" >&5
6537echo "${ECHO_T}$CP" >&6; }
6538else
6539  { echo "$as_me:$LINENO: result: no" >&5
6540echo "${ECHO_T}no" >&6; }
6541fi
6542
6543
6544# Extract the first word of "date", so it can be a program name with args.
6545set dummy date; ac_word=$2
6546{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6548if test "${ac_cv_path_DATE+set}" = set; then
6549  echo $ECHO_N "(cached) $ECHO_C" >&6
6550else
6551  case $DATE in
6552  [\\/]* | ?:[\\/]*)
6553  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6554  ;;
6555  *)
6556  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557for as_dir in $PATH
6558do
6559  IFS=$as_save_IFS
6560  test -z "$as_dir" && as_dir=.
6561  for ac_exec_ext in '' $ac_executable_extensions; do
6562  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6563    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6564    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6565    break 2
6566  fi
6567done
6568done
6569IFS=$as_save_IFS
6570
6571  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6572  ;;
6573esac
6574fi
6575DATE=$ac_cv_path_DATE
6576if test -n "$DATE"; then
6577  { echo "$as_me:$LINENO: result: $DATE" >&5
6578echo "${ECHO_T}$DATE" >&6; }
6579else
6580  { echo "$as_me:$LINENO: result: no" >&5
6581echo "${ECHO_T}no" >&6; }
6582fi
6583
6584
6585# Extract the first word of "find", so it can be a program name with args.
6586set dummy find; ac_word=$2
6587{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6589if test "${ac_cv_path_FIND+set}" = set; then
6590  echo $ECHO_N "(cached) $ECHO_C" >&6
6591else
6592  case $FIND in
6593  [\\/]* | ?:[\\/]*)
6594  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6595  ;;
6596  *)
6597  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598for as_dir in $PATH
6599do
6600  IFS=$as_save_IFS
6601  test -z "$as_dir" && as_dir=.
6602  for ac_exec_ext in '' $ac_executable_extensions; do
6603  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6604    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6605    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6606    break 2
6607  fi
6608done
6609done
6610IFS=$as_save_IFS
6611
6612  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6613  ;;
6614esac
6615fi
6616FIND=$ac_cv_path_FIND
6617if test -n "$FIND"; then
6618  { echo "$as_me:$LINENO: result: $FIND" >&5
6619echo "${ECHO_T}$FIND" >&6; }
6620else
6621  { echo "$as_me:$LINENO: result: no" >&5
6622echo "${ECHO_T}no" >&6; }
6623fi
6624
6625
6626# Extract the first word of "grep", so it can be a program name with args.
6627set dummy grep; ac_word=$2
6628{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6630if test "${ac_cv_path_GREP+set}" = set; then
6631  echo $ECHO_N "(cached) $ECHO_C" >&6
6632else
6633  case $GREP in
6634  [\\/]* | ?:[\\/]*)
6635  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6636  ;;
6637  *)
6638  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639for as_dir in $PATH
6640do
6641  IFS=$as_save_IFS
6642  test -z "$as_dir" && as_dir=.
6643  for ac_exec_ext in '' $ac_executable_extensions; do
6644  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6645    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6646    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6647    break 2
6648  fi
6649done
6650done
6651IFS=$as_save_IFS
6652
6653  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6654  ;;
6655esac
6656fi
6657GREP=$ac_cv_path_GREP
6658if test -n "$GREP"; then
6659  { echo "$as_me:$LINENO: result: $GREP" >&5
6660echo "${ECHO_T}$GREP" >&6; }
6661else
6662  { echo "$as_me:$LINENO: result: no" >&5
6663echo "${ECHO_T}no" >&6; }
6664fi
6665
6666
6667# Extract the first word of "mkdir", so it can be a program name with args.
6668set dummy mkdir; ac_word=$2
6669{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6671if test "${ac_cv_path_MKDIR+set}" = set; then
6672  echo $ECHO_N "(cached) $ECHO_C" >&6
6673else
6674  case $MKDIR in
6675  [\\/]* | ?:[\\/]*)
6676  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6677  ;;
6678  *)
6679  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680for as_dir in $PATH
6681do
6682  IFS=$as_save_IFS
6683  test -z "$as_dir" && as_dir=.
6684  for ac_exec_ext in '' $ac_executable_extensions; do
6685  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6686    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6687    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6688    break 2
6689  fi
6690done
6691done
6692IFS=$as_save_IFS
6693
6694  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6695  ;;
6696esac
6697fi
6698MKDIR=$ac_cv_path_MKDIR
6699if test -n "$MKDIR"; then
6700  { echo "$as_me:$LINENO: result: $MKDIR" >&5
6701echo "${ECHO_T}$MKDIR" >&6; }
6702else
6703  { echo "$as_me:$LINENO: result: no" >&5
6704echo "${ECHO_T}no" >&6; }
6705fi
6706
6707
6708# Extract the first word of "mv", so it can be a program name with args.
6709set dummy mv; ac_word=$2
6710{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6712if test "${ac_cv_path_MV+set}" = set; then
6713  echo $ECHO_N "(cached) $ECHO_C" >&6
6714else
6715  case $MV in
6716  [\\/]* | ?:[\\/]*)
6717  ac_cv_path_MV="$MV" # Let the user override the test with a path.
6718  ;;
6719  *)
6720  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721for as_dir in $PATH
6722do
6723  IFS=$as_save_IFS
6724  test -z "$as_dir" && as_dir=.
6725  for ac_exec_ext in '' $ac_executable_extensions; do
6726  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6727    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6728    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6729    break 2
6730  fi
6731done
6732done
6733IFS=$as_save_IFS
6734
6735  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6736  ;;
6737esac
6738fi
6739MV=$ac_cv_path_MV
6740if test -n "$MV"; then
6741  { echo "$as_me:$LINENO: result: $MV" >&5
6742echo "${ECHO_T}$MV" >&6; }
6743else
6744  { echo "$as_me:$LINENO: result: no" >&5
6745echo "${ECHO_T}no" >&6; }
6746fi
6747
6748
6749if test -n "$ac_tool_prefix"; then
6750  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6751set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6752{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6754if test "${ac_cv_prog_RANLIB+set}" = set; then
6755  echo $ECHO_N "(cached) $ECHO_C" >&6
6756else
6757  if test -n "$RANLIB"; then
6758  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6759else
6760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761for as_dir in $PATH
6762do
6763  IFS=$as_save_IFS
6764  test -z "$as_dir" && as_dir=.
6765  for ac_exec_ext in '' $ac_executable_extensions; do
6766  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6767    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6768    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6769    break 2
6770  fi
6771done
6772done
6773IFS=$as_save_IFS
6774
6775fi
6776fi
6777RANLIB=$ac_cv_prog_RANLIB
6778if test -n "$RANLIB"; then
6779  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6780echo "${ECHO_T}$RANLIB" >&6; }
6781else
6782  { echo "$as_me:$LINENO: result: no" >&5
6783echo "${ECHO_T}no" >&6; }
6784fi
6785
6786
6787fi
6788if test -z "$ac_cv_prog_RANLIB"; then
6789  ac_ct_RANLIB=$RANLIB
6790  # Extract the first word of "ranlib", so it can be a program name with args.
6791set dummy ranlib; ac_word=$2
6792{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6794if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6795  echo $ECHO_N "(cached) $ECHO_C" >&6
6796else
6797  if test -n "$ac_ct_RANLIB"; then
6798  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6799else
6800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801for as_dir in $PATH
6802do
6803  IFS=$as_save_IFS
6804  test -z "$as_dir" && as_dir=.
6805  for ac_exec_ext in '' $ac_executable_extensions; do
6806  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6807    ac_cv_prog_ac_ct_RANLIB="ranlib"
6808    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6809    break 2
6810  fi
6811done
6812done
6813IFS=$as_save_IFS
6814
6815fi
6816fi
6817ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6818if test -n "$ac_ct_RANLIB"; then
6819  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6820echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6821else
6822  { echo "$as_me:$LINENO: result: no" >&5
6823echo "${ECHO_T}no" >&6; }
6824fi
6825
6826  if test "x$ac_ct_RANLIB" = x; then
6827    RANLIB=":"
6828  else
6829    case $cross_compiling:$ac_tool_warned in
6830yes:)
6831{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6832whose name does not start with the host triplet.  If you think this
6833configuration is useful to you, please write to autoconf@gnu.org." >&5
6834echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6835whose name does not start with the host triplet.  If you think this
6836configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6837ac_tool_warned=yes ;;
6838esac
6839    RANLIB=$ac_ct_RANLIB
6840  fi
6841else
6842  RANLIB="$ac_cv_prog_RANLIB"
6843fi
6844
6845# Extract the first word of "rm", so it can be a program name with args.
6846set dummy rm; ac_word=$2
6847{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6849if test "${ac_cv_path_RM+set}" = set; then
6850  echo $ECHO_N "(cached) $ECHO_C" >&6
6851else
6852  case $RM in
6853  [\\/]* | ?:[\\/]*)
6854  ac_cv_path_RM="$RM" # Let the user override the test with a path.
6855  ;;
6856  *)
6857  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858for as_dir in $PATH
6859do
6860  IFS=$as_save_IFS
6861  test -z "$as_dir" && as_dir=.
6862  for ac_exec_ext in '' $ac_executable_extensions; do
6863  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6864    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6865    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6866    break 2
6867  fi
6868done
6869done
6870IFS=$as_save_IFS
6871
6872  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6873  ;;
6874esac
6875fi
6876RM=$ac_cv_path_RM
6877if test -n "$RM"; then
6878  { echo "$as_me:$LINENO: result: $RM" >&5
6879echo "${ECHO_T}$RM" >&6; }
6880else
6881  { echo "$as_me:$LINENO: result: no" >&5
6882echo "${ECHO_T}no" >&6; }
6883fi
6884
6885
6886# Extract the first word of "sed", so it can be a program name with args.
6887set dummy sed; ac_word=$2
6888{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6890if test "${ac_cv_path_SED+set}" = set; then
6891  echo $ECHO_N "(cached) $ECHO_C" >&6
6892else
6893  case $SED in
6894  [\\/]* | ?:[\\/]*)
6895  ac_cv_path_SED="$SED" # Let the user override the test with a path.
6896  ;;
6897  *)
6898  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899for as_dir in $PATH
6900do
6901  IFS=$as_save_IFS
6902  test -z "$as_dir" && as_dir=.
6903  for ac_exec_ext in '' $ac_executable_extensions; do
6904  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6905    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6906    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6907    break 2
6908  fi
6909done
6910done
6911IFS=$as_save_IFS
6912
6913  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6914  ;;
6915esac
6916fi
6917SED=$ac_cv_path_SED
6918if test -n "$SED"; then
6919  { echo "$as_me:$LINENO: result: $SED" >&5
6920echo "${ECHO_T}$SED" >&6; }
6921else
6922  { echo "$as_me:$LINENO: result: no" >&5
6923echo "${ECHO_T}no" >&6; }
6924fi
6925
6926
6927# Extract the first word of "tar", so it can be a program name with args.
6928set dummy tar; ac_word=$2
6929{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6931if test "${ac_cv_path_TAR+set}" = set; then
6932  echo $ECHO_N "(cached) $ECHO_C" >&6
6933else
6934  case $TAR in
6935  [\\/]* | ?:[\\/]*)
6936  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6937  ;;
6938  *)
6939  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940for as_dir in $PATH
6941do
6942  IFS=$as_save_IFS
6943  test -z "$as_dir" && as_dir=.
6944  for ac_exec_ext in '' $ac_executable_extensions; do
6945  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6946    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6947    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6948    break 2
6949  fi
6950done
6951done
6952IFS=$as_save_IFS
6953
6954  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6955  ;;
6956esac
6957fi
6958TAR=$ac_cv_path_TAR
6959if test -n "$TAR"; then
6960  { echo "$as_me:$LINENO: result: $TAR" >&5
6961echo "${ECHO_T}$TAR" >&6; }
6962else
6963  { echo "$as_me:$LINENO: result: no" >&5
6964echo "${ECHO_T}no" >&6; }
6965fi
6966
6967
6968# Extract the first word of "pwd", so it can be a program name with args.
6969set dummy pwd; ac_word=$2
6970{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6972if test "${ac_cv_path_BINPWD+set}" = set; then
6973  echo $ECHO_N "(cached) $ECHO_C" >&6
6974else
6975  case $BINPWD in
6976  [\\/]* | ?:[\\/]*)
6977  ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6978  ;;
6979  *)
6980  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981for as_dir in $PATH
6982do
6983  IFS=$as_save_IFS
6984  test -z "$as_dir" && as_dir=.
6985  for ac_exec_ext in '' $ac_executable_extensions; do
6986  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6987    ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6988    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6989    break 2
6990  fi
6991done
6992done
6993IFS=$as_save_IFS
6994
6995  test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6996  ;;
6997esac
6998fi
6999BINPWD=$ac_cv_path_BINPWD
7000if test -n "$BINPWD"; then
7001  { echo "$as_me:$LINENO: result: $BINPWD" >&5
7002echo "${ECHO_T}$BINPWD" >&6; }
7003else
7004  { echo "$as_me:$LINENO: result: no" >&5
7005echo "${ECHO_T}no" >&6; }
7006fi
7007
7008
7009
7010# Extract the first word of "Graphviz", so it can be a program name with args.
7011set dummy Graphviz; ac_word=$2
7012{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7014if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7015  echo $ECHO_N "(cached) $ECHO_C" >&6
7016else
7017  case $GRAPHVIZ in
7018  [\\/]* | ?:[\\/]*)
7019  ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7020  ;;
7021  *)
7022  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023for as_dir in $PATH
7024do
7025  IFS=$as_save_IFS
7026  test -z "$as_dir" && as_dir=.
7027  for ac_exec_ext in '' $ac_executable_extensions; do
7028  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7029    ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7030    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7031    break 2
7032  fi
7033done
7034done
7035IFS=$as_save_IFS
7036
7037  test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7038  ;;
7039esac
7040fi
7041GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7042if test -n "$GRAPHVIZ"; then
7043  { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7044echo "${ECHO_T}$GRAPHVIZ" >&6; }
7045else
7046  { echo "$as_me:$LINENO: result: no" >&5
7047echo "${ECHO_T}no" >&6; }
7048fi
7049
7050
7051if test "$GRAPHVIZ" != "echo Graphviz" ; then
7052
7053cat >>confdefs.h <<\_ACEOF
7054#define HAVE_GRAPHVIZ 1
7055_ACEOF
7056
7057    if test "$llvm_cv_os_type" = "MingW" ; then
7058    GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7059  fi
7060
7061cat >>confdefs.h <<_ACEOF
7062#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7063_ACEOF
7064
7065fi
7066# Extract the first word of "dot", so it can be a program name with args.
7067set dummy dot; ac_word=$2
7068{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7070if test "${ac_cv_path_DOT+set}" = set; then
7071  echo $ECHO_N "(cached) $ECHO_C" >&6
7072else
7073  case $DOT in
7074  [\\/]* | ?:[\\/]*)
7075  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7076  ;;
7077  *)
7078  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079for as_dir in $PATH
7080do
7081  IFS=$as_save_IFS
7082  test -z "$as_dir" && as_dir=.
7083  for ac_exec_ext in '' $ac_executable_extensions; do
7084  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7085    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7086    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7087    break 2
7088  fi
7089done
7090done
7091IFS=$as_save_IFS
7092
7093  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7094  ;;
7095esac
7096fi
7097DOT=$ac_cv_path_DOT
7098if test -n "$DOT"; then
7099  { echo "$as_me:$LINENO: result: $DOT" >&5
7100echo "${ECHO_T}$DOT" >&6; }
7101else
7102  { echo "$as_me:$LINENO: result: no" >&5
7103echo "${ECHO_T}no" >&6; }
7104fi
7105
7106
7107if test "$DOT" != "echo dot" ; then
7108
7109cat >>confdefs.h <<\_ACEOF
7110#define HAVE_DOT 1
7111_ACEOF
7112
7113    if test "$llvm_cv_os_type" = "MingW" ; then
7114    DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7115  fi
7116
7117cat >>confdefs.h <<_ACEOF
7118#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7119_ACEOF
7120
7121fi
7122for ac_prog in gv gsview32
7123do
7124  # Extract the first word of "$ac_prog", so it can be a program name with args.
7125set dummy $ac_prog; ac_word=$2
7126{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7128if test "${ac_cv_path_GV+set}" = set; then
7129  echo $ECHO_N "(cached) $ECHO_C" >&6
7130else
7131  case $GV in
7132  [\\/]* | ?:[\\/]*)
7133  ac_cv_path_GV="$GV" # Let the user override the test with a path.
7134  ;;
7135  *)
7136  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137for as_dir in $PATH
7138do
7139  IFS=$as_save_IFS
7140  test -z "$as_dir" && as_dir=.
7141  for ac_exec_ext in '' $ac_executable_extensions; do
7142  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7143    ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7144    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7145    break 2
7146  fi
7147done
7148done
7149IFS=$as_save_IFS
7150
7151  ;;
7152esac
7153fi
7154GV=$ac_cv_path_GV
7155if test -n "$GV"; then
7156  { echo "$as_me:$LINENO: result: $GV" >&5
7157echo "${ECHO_T}$GV" >&6; }
7158else
7159  { echo "$as_me:$LINENO: result: no" >&5
7160echo "${ECHO_T}no" >&6; }
7161fi
7162
7163
7164  test -n "$GV" && break
7165done
7166test -n "$GV" || GV="echo gv"
7167
7168if test "$GV" != "echo gv" ; then
7169
7170cat >>confdefs.h <<\_ACEOF
7171#define HAVE_GV 1
7172_ACEOF
7173
7174    if test "$llvm_cv_os_type" = "MingW" ; then
7175    GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7176  fi
7177
7178cat >>confdefs.h <<_ACEOF
7179#define LLVM_PATH_GV "$GV${EXEEXT}"
7180_ACEOF
7181
7182fi
7183# Extract the first word of "dotty", so it can be a program name with args.
7184set dummy dotty; ac_word=$2
7185{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7187if test "${ac_cv_path_DOTTY+set}" = set; then
7188  echo $ECHO_N "(cached) $ECHO_C" >&6
7189else
7190  case $DOTTY in
7191  [\\/]* | ?:[\\/]*)
7192  ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7193  ;;
7194  *)
7195  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196for as_dir in $PATH
7197do
7198  IFS=$as_save_IFS
7199  test -z "$as_dir" && as_dir=.
7200  for ac_exec_ext in '' $ac_executable_extensions; do
7201  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7202    ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7203    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7204    break 2
7205  fi
7206done
7207done
7208IFS=$as_save_IFS
7209
7210  test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7211  ;;
7212esac
7213fi
7214DOTTY=$ac_cv_path_DOTTY
7215if test -n "$DOTTY"; then
7216  { echo "$as_me:$LINENO: result: $DOTTY" >&5
7217echo "${ECHO_T}$DOTTY" >&6; }
7218else
7219  { echo "$as_me:$LINENO: result: no" >&5
7220echo "${ECHO_T}no" >&6; }
7221fi
7222
7223
7224if test "$DOTTY" != "echo dotty" ; then
7225
7226cat >>confdefs.h <<\_ACEOF
7227#define HAVE_DOTTY 1
7228_ACEOF
7229
7230    if test "$llvm_cv_os_type" = "MingW" ; then
7231    DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7232  fi
7233
7234cat >>confdefs.h <<_ACEOF
7235#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7236_ACEOF
7237
7238fi
7239
7240
7241# Extract the first word of "perl", so it can be a program name with args.
7242set dummy perl; ac_word=$2
7243{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7245if test "${ac_cv_path_PERL+set}" = set; then
7246  echo $ECHO_N "(cached) $ECHO_C" >&6
7247else
7248  case $PERL in
7249  [\\/]* | ?:[\\/]*)
7250  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7251  ;;
7252  *)
7253  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254for as_dir in $PATH
7255do
7256  IFS=$as_save_IFS
7257  test -z "$as_dir" && as_dir=.
7258  for ac_exec_ext in '' $ac_executable_extensions; do
7259  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7260    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7261    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7262    break 2
7263  fi
7264done
7265done
7266IFS=$as_save_IFS
7267
7268  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7269  ;;
7270esac
7271fi
7272PERL=$ac_cv_path_PERL
7273if test -n "$PERL"; then
7274  { echo "$as_me:$LINENO: result: $PERL" >&5
7275echo "${ECHO_T}$PERL" >&6; }
7276else
7277  { echo "$as_me:$LINENO: result: no" >&5
7278echo "${ECHO_T}no" >&6; }
7279fi
7280
7281
7282if test "$PERL" != "none"; then
7283  { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7284echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7285  if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7286    { echo "$as_me:$LINENO: result: yes" >&5
7287echo "${ECHO_T}yes" >&6; }
7288  else
7289    PERL=none
7290    { echo "$as_me:$LINENO: result: not found" >&5
7291echo "${ECHO_T}not found" >&6; }
7292  fi
7293fi
7294
7295
7296if test x"$PERL" = xnone; then
7297   HAVE_PERL=0
7298
7299   { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7300echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7301   { (exit 1); exit 1; }; }
7302else
7303   HAVE_PERL=1
7304
7305fi
7306
7307# Find a good install program.  We prefer a C program (faster),
7308# so one script is as good as another.  But avoid the broken or
7309# incompatible versions:
7310# SysV /etc/install, /usr/sbin/install
7311# SunOS /usr/etc/install
7312# IRIX /sbin/install
7313# AIX /bin/install
7314# AmigaOS /C/install, which installs bootblocks on floppy discs
7315# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7316# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7317# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7318# OS/2's system install, which has a completely different semantic
7319# ./install, which can be erroneously created by make from ./install.sh.
7320{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7321echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7322if test -z "$INSTALL"; then
7323if test "${ac_cv_path_install+set}" = set; then
7324  echo $ECHO_N "(cached) $ECHO_C" >&6
7325else
7326  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327for as_dir in $PATH
7328do
7329  IFS=$as_save_IFS
7330  test -z "$as_dir" && as_dir=.
7331  # Account for people who put trailing slashes in PATH elements.
7332case $as_dir/ in
7333  ./ | .// | /cC/* | \
7334  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7335  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7336  /usr/ucb/* ) ;;
7337  *)
7338    # OSF1 and SCO ODT 3.0 have their own names for install.
7339    # Don't use installbsd from OSF since it installs stuff as root
7340    # by default.
7341    for ac_prog in ginstall scoinst install; do
7342      for ac_exec_ext in '' $ac_executable_extensions; do
7343	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7344	  if test $ac_prog = install &&
7345	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7346	    # AIX install.  It has an incompatible calling convention.
7347	    :
7348	  elif test $ac_prog = install &&
7349	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7350	    # program-specific install script used by HP pwplus--don't use.
7351	    :
7352	  else
7353	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7354	    break 3
7355	  fi
7356	fi
7357      done
7358    done
7359    ;;
7360esac
7361done
7362IFS=$as_save_IFS
7363
7364
7365fi
7366  if test "${ac_cv_path_install+set}" = set; then
7367    INSTALL=$ac_cv_path_install
7368  else
7369    # As a last resort, use the slow shell script.  Don't cache a
7370    # value for INSTALL within a source directory, because that will
7371    # break other packages using the cache if that directory is
7372    # removed, or if the value is a relative name.
7373    INSTALL=$ac_install_sh
7374  fi
7375fi
7376{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7377echo "${ECHO_T}$INSTALL" >&6; }
7378
7379# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7380# It thinks the first close brace ends the variable substitution.
7381test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7382
7383test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7384
7385test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7386
7387
7388# Extract the first word of "bzip2", so it can be a program name with args.
7389set dummy bzip2; ac_word=$2
7390{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7392if test "${ac_cv_path_BZIP2+set}" = set; then
7393  echo $ECHO_N "(cached) $ECHO_C" >&6
7394else
7395  case $BZIP2 in
7396  [\\/]* | ?:[\\/]*)
7397  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7398  ;;
7399  *)
7400  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401for as_dir in $PATH
7402do
7403  IFS=$as_save_IFS
7404  test -z "$as_dir" && as_dir=.
7405  for ac_exec_ext in '' $ac_executable_extensions; do
7406  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7407    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7408    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7409    break 2
7410  fi
7411done
7412done
7413IFS=$as_save_IFS
7414
7415  ;;
7416esac
7417fi
7418BZIP2=$ac_cv_path_BZIP2
7419if test -n "$BZIP2"; then
7420  { echo "$as_me:$LINENO: result: $BZIP2" >&5
7421echo "${ECHO_T}$BZIP2" >&6; }
7422else
7423  { echo "$as_me:$LINENO: result: no" >&5
7424echo "${ECHO_T}no" >&6; }
7425fi
7426
7427
7428# Extract the first word of "doxygen", so it can be a program name with args.
7429set dummy doxygen; ac_word=$2
7430{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7432if test "${ac_cv_path_DOXYGEN+set}" = set; then
7433  echo $ECHO_N "(cached) $ECHO_C" >&6
7434else
7435  case $DOXYGEN in
7436  [\\/]* | ?:[\\/]*)
7437  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7438  ;;
7439  *)
7440  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441for as_dir in $PATH
7442do
7443  IFS=$as_save_IFS
7444  test -z "$as_dir" && as_dir=.
7445  for ac_exec_ext in '' $ac_executable_extensions; do
7446  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7447    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7448    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7449    break 2
7450  fi
7451done
7452done
7453IFS=$as_save_IFS
7454
7455  ;;
7456esac
7457fi
7458DOXYGEN=$ac_cv_path_DOXYGEN
7459if test -n "$DOXYGEN"; then
7460  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7461echo "${ECHO_T}$DOXYGEN" >&6; }
7462else
7463  { echo "$as_me:$LINENO: result: no" >&5
7464echo "${ECHO_T}no" >&6; }
7465fi
7466
7467
7468# Extract the first word of "groff", so it can be a program name with args.
7469set dummy groff; ac_word=$2
7470{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7472if test "${ac_cv_path_GROFF+set}" = set; then
7473  echo $ECHO_N "(cached) $ECHO_C" >&6
7474else
7475  case $GROFF in
7476  [\\/]* | ?:[\\/]*)
7477  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7478  ;;
7479  *)
7480  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481for as_dir in $PATH
7482do
7483  IFS=$as_save_IFS
7484  test -z "$as_dir" && as_dir=.
7485  for ac_exec_ext in '' $ac_executable_extensions; do
7486  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7487    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7488    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7489    break 2
7490  fi
7491done
7492done
7493IFS=$as_save_IFS
7494
7495  ;;
7496esac
7497fi
7498GROFF=$ac_cv_path_GROFF
7499if test -n "$GROFF"; then
7500  { echo "$as_me:$LINENO: result: $GROFF" >&5
7501echo "${ECHO_T}$GROFF" >&6; }
7502else
7503  { echo "$as_me:$LINENO: result: no" >&5
7504echo "${ECHO_T}no" >&6; }
7505fi
7506
7507
7508# Extract the first word of "gzip", so it can be a program name with args.
7509set dummy gzip; ac_word=$2
7510{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7512if test "${ac_cv_path_GZIP+set}" = set; then
7513  echo $ECHO_N "(cached) $ECHO_C" >&6
7514else
7515  case $GZIP in
7516  [\\/]* | ?:[\\/]*)
7517  ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7518  ;;
7519  *)
7520  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521for as_dir in $PATH
7522do
7523  IFS=$as_save_IFS
7524  test -z "$as_dir" && as_dir=.
7525  for ac_exec_ext in '' $ac_executable_extensions; do
7526  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7527    ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7528    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7529    break 2
7530  fi
7531done
7532done
7533IFS=$as_save_IFS
7534
7535  ;;
7536esac
7537fi
7538GZIP=$ac_cv_path_GZIP
7539if test -n "$GZIP"; then
7540  { echo "$as_me:$LINENO: result: $GZIP" >&5
7541echo "${ECHO_T}$GZIP" >&6; }
7542else
7543  { echo "$as_me:$LINENO: result: no" >&5
7544echo "${ECHO_T}no" >&6; }
7545fi
7546
7547
7548# Extract the first word of "pod2html", so it can be a program name with args.
7549set dummy pod2html; ac_word=$2
7550{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7552if test "${ac_cv_path_POD2HTML+set}" = set; then
7553  echo $ECHO_N "(cached) $ECHO_C" >&6
7554else
7555  case $POD2HTML in
7556  [\\/]* | ?:[\\/]*)
7557  ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7558  ;;
7559  *)
7560  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561for as_dir in $PATH
7562do
7563  IFS=$as_save_IFS
7564  test -z "$as_dir" && as_dir=.
7565  for ac_exec_ext in '' $ac_executable_extensions; do
7566  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7567    ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7568    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7569    break 2
7570  fi
7571done
7572done
7573IFS=$as_save_IFS
7574
7575  ;;
7576esac
7577fi
7578POD2HTML=$ac_cv_path_POD2HTML
7579if test -n "$POD2HTML"; then
7580  { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7581echo "${ECHO_T}$POD2HTML" >&6; }
7582else
7583  { echo "$as_me:$LINENO: result: no" >&5
7584echo "${ECHO_T}no" >&6; }
7585fi
7586
7587
7588# Extract the first word of "pod2man", so it can be a program name with args.
7589set dummy pod2man; ac_word=$2
7590{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7592if test "${ac_cv_path_POD2MAN+set}" = set; then
7593  echo $ECHO_N "(cached) $ECHO_C" >&6
7594else
7595  case $POD2MAN in
7596  [\\/]* | ?:[\\/]*)
7597  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7598  ;;
7599  *)
7600  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601for as_dir in $PATH
7602do
7603  IFS=$as_save_IFS
7604  test -z "$as_dir" && as_dir=.
7605  for ac_exec_ext in '' $ac_executable_extensions; do
7606  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7607    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7608    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7609    break 2
7610  fi
7611done
7612done
7613IFS=$as_save_IFS
7614
7615  ;;
7616esac
7617fi
7618POD2MAN=$ac_cv_path_POD2MAN
7619if test -n "$POD2MAN"; then
7620  { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7621echo "${ECHO_T}$POD2MAN" >&6; }
7622else
7623  { echo "$as_me:$LINENO: result: no" >&5
7624echo "${ECHO_T}no" >&6; }
7625fi
7626
7627
7628# Extract the first word of "runtest", so it can be a program name with args.
7629set dummy runtest; ac_word=$2
7630{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7632if test "${ac_cv_path_RUNTEST+set}" = set; then
7633  echo $ECHO_N "(cached) $ECHO_C" >&6
7634else
7635  case $RUNTEST in
7636  [\\/]* | ?:[\\/]*)
7637  ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7638  ;;
7639  *)
7640  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641for as_dir in $PATH
7642do
7643  IFS=$as_save_IFS
7644  test -z "$as_dir" && as_dir=.
7645  for ac_exec_ext in '' $ac_executable_extensions; do
7646  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7647    ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7648    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7649    break 2
7650  fi
7651done
7652done
7653IFS=$as_save_IFS
7654
7655  ;;
7656esac
7657fi
7658RUNTEST=$ac_cv_path_RUNTEST
7659if test -n "$RUNTEST"; then
7660  { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7661echo "${ECHO_T}$RUNTEST" >&6; }
7662else
7663  { echo "$as_me:$LINENO: result: no" >&5
7664echo "${ECHO_T}no" >&6; }
7665fi
7666
7667
7668
7669no_itcl=true
7670{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7671echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7672
7673# Check whether --with-tclinclude was given.
7674if test "${with_tclinclude+set}" = set; then
7675  withval=$with_tclinclude; with_tclinclude=${withval}
7676else
7677  with_tclinclude=''
7678fi
7679
7680if test "${ac_cv_path_tclsh+set}" = set; then
7681  echo $ECHO_N "(cached) $ECHO_C" >&6
7682else
7683
7684if test x"${with_tclinclude}" != x ; then
7685  if test -f ${with_tclinclude}/tclsh ; then
7686    ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7687  elif test -f ${with_tclinclude}/src/tclsh ; then
7688    ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7689  else
7690    { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7691echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7692   { (exit 1); exit 1; }; }
7693  fi
7694fi
7695
7696if test x"${ac_cv_path_tclsh}" = x ; then
7697  { echo "$as_me:$LINENO: result: none" >&5
7698echo "${ECHO_T}none" >&6; }
7699  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
7700do
7701  # Extract the first word of "$ac_prog", so it can be a program name with args.
7702set dummy $ac_prog; ac_word=$2
7703{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7705if test "${ac_cv_path_TCLSH+set}" = set; then
7706  echo $ECHO_N "(cached) $ECHO_C" >&6
7707else
7708  case $TCLSH in
7709  [\\/]* | ?:[\\/]*)
7710  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7711  ;;
7712  *)
7713  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714for as_dir in $PATH
7715do
7716  IFS=$as_save_IFS
7717  test -z "$as_dir" && as_dir=.
7718  for ac_exec_ext in '' $ac_executable_extensions; do
7719  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7720    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7721    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7722    break 2
7723  fi
7724done
7725done
7726IFS=$as_save_IFS
7727
7728  ;;
7729esac
7730fi
7731TCLSH=$ac_cv_path_TCLSH
7732if test -n "$TCLSH"; then
7733  { echo "$as_me:$LINENO: result: $TCLSH" >&5
7734echo "${ECHO_T}$TCLSH" >&6; }
7735else
7736  { echo "$as_me:$LINENO: result: no" >&5
7737echo "${ECHO_T}no" >&6; }
7738fi
7739
7740
7741  test -n "$TCLSH" && break
7742done
7743
7744  if test x"${TCLSH}" = x ; then
7745    ac_cv_path_tclsh='';
7746  else
7747    ac_cv_path_tclsh="${TCLSH}";
7748  fi
7749else
7750  { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7751echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7752  TCLSH="${ac_cv_path_tclsh}"
7753
7754fi
7755
7756fi
7757
7758# Extract the first word of "zip", so it can be a program name with args.
7759set dummy zip; ac_word=$2
7760{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7762if test "${ac_cv_path_ZIP+set}" = set; then
7763  echo $ECHO_N "(cached) $ECHO_C" >&6
7764else
7765  case $ZIP in
7766  [\\/]* | ?:[\\/]*)
7767  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7768  ;;
7769  *)
7770  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771for as_dir in $PATH
7772do
7773  IFS=$as_save_IFS
7774  test -z "$as_dir" && as_dir=.
7775  for ac_exec_ext in '' $ac_executable_extensions; do
7776  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7777    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7778    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7779    break 2
7780  fi
7781done
7782done
7783IFS=$as_save_IFS
7784
7785  ;;
7786esac
7787fi
7788ZIP=$ac_cv_path_ZIP
7789if test -n "$ZIP"; then
7790  { echo "$as_me:$LINENO: result: $ZIP" >&5
7791echo "${ECHO_T}$ZIP" >&6; }
7792else
7793  { echo "$as_me:$LINENO: result: no" >&5
7794echo "${ECHO_T}no" >&6; }
7795fi
7796
7797
7798for ac_prog in ocamlc
7799do
7800  # Extract the first word of "$ac_prog", so it can be a program name with args.
7801set dummy $ac_prog; ac_word=$2
7802{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7804if test "${ac_cv_path_OCAMLC+set}" = set; then
7805  echo $ECHO_N "(cached) $ECHO_C" >&6
7806else
7807  case $OCAMLC in
7808  [\\/]* | ?:[\\/]*)
7809  ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7810  ;;
7811  *)
7812  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813for as_dir in $PATH
7814do
7815  IFS=$as_save_IFS
7816  test -z "$as_dir" && as_dir=.
7817  for ac_exec_ext in '' $ac_executable_extensions; do
7818  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7819    ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7820    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7821    break 2
7822  fi
7823done
7824done
7825IFS=$as_save_IFS
7826
7827  ;;
7828esac
7829fi
7830OCAMLC=$ac_cv_path_OCAMLC
7831if test -n "$OCAMLC"; then
7832  { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7833echo "${ECHO_T}$OCAMLC" >&6; }
7834else
7835  { echo "$as_me:$LINENO: result: no" >&5
7836echo "${ECHO_T}no" >&6; }
7837fi
7838
7839
7840  test -n "$OCAMLC" && break
7841done
7842
7843for ac_prog in ocamlopt
7844do
7845  # Extract the first word of "$ac_prog", so it can be a program name with args.
7846set dummy $ac_prog; ac_word=$2
7847{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7849if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7850  echo $ECHO_N "(cached) $ECHO_C" >&6
7851else
7852  case $OCAMLOPT in
7853  [\\/]* | ?:[\\/]*)
7854  ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7855  ;;
7856  *)
7857  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858for as_dir in $PATH
7859do
7860  IFS=$as_save_IFS
7861  test -z "$as_dir" && as_dir=.
7862  for ac_exec_ext in '' $ac_executable_extensions; do
7863  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7864    ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7865    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7866    break 2
7867  fi
7868done
7869done
7870IFS=$as_save_IFS
7871
7872  ;;
7873esac
7874fi
7875OCAMLOPT=$ac_cv_path_OCAMLOPT
7876if test -n "$OCAMLOPT"; then
7877  { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7878echo "${ECHO_T}$OCAMLOPT" >&6; }
7879else
7880  { echo "$as_me:$LINENO: result: no" >&5
7881echo "${ECHO_T}no" >&6; }
7882fi
7883
7884
7885  test -n "$OCAMLOPT" && break
7886done
7887
7888for ac_prog in ocamldep
7889do
7890  # Extract the first word of "$ac_prog", so it can be a program name with args.
7891set dummy $ac_prog; ac_word=$2
7892{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7894if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7895  echo $ECHO_N "(cached) $ECHO_C" >&6
7896else
7897  case $OCAMLDEP in
7898  [\\/]* | ?:[\\/]*)
7899  ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7900  ;;
7901  *)
7902  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903for as_dir in $PATH
7904do
7905  IFS=$as_save_IFS
7906  test -z "$as_dir" && as_dir=.
7907  for ac_exec_ext in '' $ac_executable_extensions; do
7908  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7909    ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7910    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7911    break 2
7912  fi
7913done
7914done
7915IFS=$as_save_IFS
7916
7917  ;;
7918esac
7919fi
7920OCAMLDEP=$ac_cv_path_OCAMLDEP
7921if test -n "$OCAMLDEP"; then
7922  { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7923echo "${ECHO_T}$OCAMLDEP" >&6; }
7924else
7925  { echo "$as_me:$LINENO: result: no" >&5
7926echo "${ECHO_T}no" >&6; }
7927fi
7928
7929
7930  test -n "$OCAMLDEP" && break
7931done
7932
7933for ac_prog in ocamldoc
7934do
7935  # Extract the first word of "$ac_prog", so it can be a program name with args.
7936set dummy $ac_prog; ac_word=$2
7937{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7939if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7940  echo $ECHO_N "(cached) $ECHO_C" >&6
7941else
7942  case $OCAMLDOC in
7943  [\\/]* | ?:[\\/]*)
7944  ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7945  ;;
7946  *)
7947  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948for as_dir in $PATH
7949do
7950  IFS=$as_save_IFS
7951  test -z "$as_dir" && as_dir=.
7952  for ac_exec_ext in '' $ac_executable_extensions; do
7953  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7954    ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7955    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7956    break 2
7957  fi
7958done
7959done
7960IFS=$as_save_IFS
7961
7962  ;;
7963esac
7964fi
7965OCAMLDOC=$ac_cv_path_OCAMLDOC
7966if test -n "$OCAMLDOC"; then
7967  { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7968echo "${ECHO_T}$OCAMLDOC" >&6; }
7969else
7970  { echo "$as_me:$LINENO: result: no" >&5
7971echo "${ECHO_T}no" >&6; }
7972fi
7973
7974
7975  test -n "$OCAMLDOC" && break
7976done
7977
7978for ac_prog in gas as
7979do
7980  # Extract the first word of "$ac_prog", so it can be a program name with args.
7981set dummy $ac_prog; ac_word=$2
7982{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7984if test "${ac_cv_path_GAS+set}" = set; then
7985  echo $ECHO_N "(cached) $ECHO_C" >&6
7986else
7987  case $GAS in
7988  [\\/]* | ?:[\\/]*)
7989  ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7990  ;;
7991  *)
7992  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993for as_dir in $PATH
7994do
7995  IFS=$as_save_IFS
7996  test -z "$as_dir" && as_dir=.
7997  for ac_exec_ext in '' $ac_executable_extensions; do
7998  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7999    ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8000    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8001    break 2
8002  fi
8003done
8004done
8005IFS=$as_save_IFS
8006
8007  ;;
8008esac
8009fi
8010GAS=$ac_cv_path_GAS
8011if test -n "$GAS"; then
8012  { echo "$as_me:$LINENO: result: $GAS" >&5
8013echo "${ECHO_T}$GAS" >&6; }
8014else
8015  { echo "$as_me:$LINENO: result: no" >&5
8016echo "${ECHO_T}no" >&6; }
8017fi
8018
8019
8020  test -n "$GAS" && break
8021done
8022
8023
8024{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8025echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8026if test "${llvm_cv_link_use_r+set}" = set; then
8027  echo $ECHO_N "(cached) $ECHO_C" >&6
8028else
8029   ac_ext=c
8030ac_cpp='$CPP $CPPFLAGS'
8031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8033ac_compiler_gnu=$ac_cv_c_compiler_gnu
8034
8035  oldcflags="$CFLAGS"
8036  CFLAGS="$CFLAGS -Wl,-R."
8037  cat >conftest.$ac_ext <<_ACEOF
8038/* confdefs.h.  */
8039_ACEOF
8040cat confdefs.h >>conftest.$ac_ext
8041cat >>conftest.$ac_ext <<_ACEOF
8042/* end confdefs.h.  */
8043
8044int
8045main ()
8046{
8047int main() { return 0; }
8048  ;
8049  return 0;
8050}
8051_ACEOF
8052rm -f conftest.$ac_objext conftest$ac_exeext
8053if { (ac_try="$ac_link"
8054case "(($ac_try" in
8055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8056  *) ac_try_echo=$ac_try;;
8057esac
8058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8059  (eval "$ac_link") 2>conftest.er1
8060  ac_status=$?
8061  grep -v '^ *+' conftest.er1 >conftest.err
8062  rm -f conftest.er1
8063  cat conftest.err >&5
8064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065  (exit $ac_status); } &&
8066	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8067  { (case "(($ac_try" in
8068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8069  *) ac_try_echo=$ac_try;;
8070esac
8071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8072  (eval "$ac_try") 2>&5
8073  ac_status=$?
8074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075  (exit $ac_status); }; } &&
8076	 { ac_try='test -s conftest$ac_exeext'
8077  { (case "(($ac_try" in
8078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079  *) ac_try_echo=$ac_try;;
8080esac
8081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8082  (eval "$ac_try") 2>&5
8083  ac_status=$?
8084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085  (exit $ac_status); }; }; then
8086  llvm_cv_link_use_r=yes
8087else
8088  echo "$as_me: failed program was:" >&5
8089sed 's/^/| /' conftest.$ac_ext >&5
8090
8091	llvm_cv_link_use_r=no
8092fi
8093
8094rm -f core conftest.err conftest.$ac_objext \
8095      conftest$ac_exeext conftest.$ac_ext
8096  CFLAGS="$oldcflags"
8097  ac_ext=c
8098ac_cpp='$CPP $CPPFLAGS'
8099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8101ac_compiler_gnu=$ac_cv_c_compiler_gnu
8102
8103
8104fi
8105{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8106echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8107if test "$llvm_cv_link_use_r" = yes ; then
8108
8109cat >>confdefs.h <<\_ACEOF
8110#define HAVE_LINK_R 1
8111_ACEOF
8112
8113  fi
8114
8115
8116{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8117echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8118if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8119  echo $ECHO_N "(cached) $ECHO_C" >&6
8120else
8121   ac_ext=c
8122ac_cpp='$CPP $CPPFLAGS'
8123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8125ac_compiler_gnu=$ac_cv_c_compiler_gnu
8126
8127  oldcflags="$CFLAGS"
8128  CFLAGS="$CFLAGS -Wl,-export-dynamic"
8129  cat >conftest.$ac_ext <<_ACEOF
8130/* confdefs.h.  */
8131_ACEOF
8132cat confdefs.h >>conftest.$ac_ext
8133cat >>conftest.$ac_ext <<_ACEOF
8134/* end confdefs.h.  */
8135
8136int
8137main ()
8138{
8139int main() { return 0; }
8140  ;
8141  return 0;
8142}
8143_ACEOF
8144rm -f conftest.$ac_objext conftest$ac_exeext
8145if { (ac_try="$ac_link"
8146case "(($ac_try" in
8147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8148  *) ac_try_echo=$ac_try;;
8149esac
8150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8151  (eval "$ac_link") 2>conftest.er1
8152  ac_status=$?
8153  grep -v '^ *+' conftest.er1 >conftest.err
8154  rm -f conftest.er1
8155  cat conftest.err >&5
8156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157  (exit $ac_status); } &&
8158	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8159  { (case "(($ac_try" in
8160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8161  *) ac_try_echo=$ac_try;;
8162esac
8163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8164  (eval "$ac_try") 2>&5
8165  ac_status=$?
8166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167  (exit $ac_status); }; } &&
8168	 { ac_try='test -s conftest$ac_exeext'
8169  { (case "(($ac_try" in
8170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8171  *) ac_try_echo=$ac_try;;
8172esac
8173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8174  (eval "$ac_try") 2>&5
8175  ac_status=$?
8176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177  (exit $ac_status); }; }; then
8178  llvm_cv_link_use_export_dynamic=yes
8179else
8180  echo "$as_me: failed program was:" >&5
8181sed 's/^/| /' conftest.$ac_ext >&5
8182
8183	llvm_cv_link_use_export_dynamic=no
8184fi
8185
8186rm -f core conftest.err conftest.$ac_objext \
8187      conftest$ac_exeext conftest.$ac_ext
8188  CFLAGS="$oldcflags"
8189  ac_ext=c
8190ac_cpp='$CPP $CPPFLAGS'
8191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8193ac_compiler_gnu=$ac_cv_c_compiler_gnu
8194
8195
8196fi
8197{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8198echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8199if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8200
8201cat >>confdefs.h <<\_ACEOF
8202#define HAVE_LINK_EXPORT_DYNAMIC 1
8203_ACEOF
8204
8205  fi
8206
8207
8208
8209
8210{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8211echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8212if test "${ac_cv_c_const+set}" = set; then
8213  echo $ECHO_N "(cached) $ECHO_C" >&6
8214else
8215  cat >conftest.$ac_ext <<_ACEOF
8216/* confdefs.h.  */
8217_ACEOF
8218cat confdefs.h >>conftest.$ac_ext
8219cat >>conftest.$ac_ext <<_ACEOF
8220/* end confdefs.h.  */
8221
8222int
8223main ()
8224{
8225/* FIXME: Include the comments suggested by Paul. */
8226#ifndef __cplusplus
8227  /* Ultrix mips cc rejects this.  */
8228  typedef int charset[2];
8229  const charset x;
8230  /* SunOS 4.1.1 cc rejects this.  */
8231  char const *const *ccp;
8232  char **p;
8233  /* NEC SVR4.0.2 mips cc rejects this.  */
8234  struct point {int x, y;};
8235  static struct point const zero = {0,0};
8236  /* AIX XL C 1.02.0.0 rejects this.
8237     It does not let you subtract one const X* pointer from another in
8238     an arm of an if-expression whose if-part is not a constant
8239     expression */
8240  const char *g = "string";
8241  ccp = &g + (g ? g-g : 0);
8242  /* HPUX 7.0 cc rejects these. */
8243  ++ccp;
8244  p = (char**) ccp;
8245  ccp = (char const *const *) p;
8246  { /* SCO 3.2v4 cc rejects this.  */
8247    char *t;
8248    char const *s = 0 ? (char *) 0 : (char const *) 0;
8249
8250    *t++ = 0;
8251    if (s) return 0;
8252  }
8253  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8254    int x[] = {25, 17};
8255    const int *foo = &x[0];
8256    ++foo;
8257  }
8258  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8259    typedef const int *iptr;
8260    iptr p = 0;
8261    ++p;
8262  }
8263  { /* AIX XL C 1.02.0.0 rejects this saying
8264       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8265    struct s { int j; const int *ap[3]; };
8266    struct s *b; b->j = 5;
8267  }
8268  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8269    const int foo = 10;
8270    if (!foo) return 0;
8271  }
8272  return !x[0] && !zero.x;
8273#endif
8274
8275  ;
8276  return 0;
8277}
8278_ACEOF
8279rm -f conftest.$ac_objext
8280if { (ac_try="$ac_compile"
8281case "(($ac_try" in
8282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283  *) ac_try_echo=$ac_try;;
8284esac
8285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8286  (eval "$ac_compile") 2>conftest.er1
8287  ac_status=$?
8288  grep -v '^ *+' conftest.er1 >conftest.err
8289  rm -f conftest.er1
8290  cat conftest.err >&5
8291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292  (exit $ac_status); } &&
8293	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8294  { (case "(($ac_try" in
8295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296  *) ac_try_echo=$ac_try;;
8297esac
8298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299  (eval "$ac_try") 2>&5
8300  ac_status=$?
8301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302  (exit $ac_status); }; } &&
8303	 { ac_try='test -s conftest.$ac_objext'
8304  { (case "(($ac_try" in
8305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306  *) ac_try_echo=$ac_try;;
8307esac
8308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309  (eval "$ac_try") 2>&5
8310  ac_status=$?
8311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312  (exit $ac_status); }; }; then
8313  ac_cv_c_const=yes
8314else
8315  echo "$as_me: failed program was:" >&5
8316sed 's/^/| /' conftest.$ac_ext >&5
8317
8318	ac_cv_c_const=no
8319fi
8320
8321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8322fi
8323{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8324echo "${ECHO_T}$ac_cv_c_const" >&6; }
8325if test $ac_cv_c_const = no; then
8326
8327cat >>confdefs.h <<\_ACEOF
8328#define const
8329_ACEOF
8330
8331fi
8332
8333
8334
8335
8336
8337
8338ac_header_dirent=no
8339for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8340  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8341{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8342echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8343if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8344  echo $ECHO_N "(cached) $ECHO_C" >&6
8345else
8346  cat >conftest.$ac_ext <<_ACEOF
8347/* confdefs.h.  */
8348_ACEOF
8349cat confdefs.h >>conftest.$ac_ext
8350cat >>conftest.$ac_ext <<_ACEOF
8351/* end confdefs.h.  */
8352#include <sys/types.h>
8353#include <$ac_hdr>
8354
8355int
8356main ()
8357{
8358if ((DIR *) 0)
8359return 0;
8360  ;
8361  return 0;
8362}
8363_ACEOF
8364rm -f conftest.$ac_objext
8365if { (ac_try="$ac_compile"
8366case "(($ac_try" in
8367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8368  *) ac_try_echo=$ac_try;;
8369esac
8370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8371  (eval "$ac_compile") 2>conftest.er1
8372  ac_status=$?
8373  grep -v '^ *+' conftest.er1 >conftest.err
8374  rm -f conftest.er1
8375  cat conftest.err >&5
8376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377  (exit $ac_status); } &&
8378	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8379  { (case "(($ac_try" in
8380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381  *) ac_try_echo=$ac_try;;
8382esac
8383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8384  (eval "$ac_try") 2>&5
8385  ac_status=$?
8386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387  (exit $ac_status); }; } &&
8388	 { ac_try='test -s conftest.$ac_objext'
8389  { (case "(($ac_try" in
8390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391  *) ac_try_echo=$ac_try;;
8392esac
8393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8394  (eval "$ac_try") 2>&5
8395  ac_status=$?
8396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397  (exit $ac_status); }; }; then
8398  eval "$as_ac_Header=yes"
8399else
8400  echo "$as_me: failed program was:" >&5
8401sed 's/^/| /' conftest.$ac_ext >&5
8402
8403	eval "$as_ac_Header=no"
8404fi
8405
8406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8407fi
8408ac_res=`eval echo '${'$as_ac_Header'}'`
8409	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8410echo "${ECHO_T}$ac_res" >&6; }
8411if test `eval echo '${'$as_ac_Header'}'` = yes; then
8412  cat >>confdefs.h <<_ACEOF
8413#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8414_ACEOF
8415
8416ac_header_dirent=$ac_hdr; break
8417fi
8418
8419done
8420# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8421if test $ac_header_dirent = dirent.h; then
8422  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8423echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8424if test "${ac_cv_search_opendir+set}" = set; then
8425  echo $ECHO_N "(cached) $ECHO_C" >&6
8426else
8427  ac_func_search_save_LIBS=$LIBS
8428cat >conftest.$ac_ext <<_ACEOF
8429/* confdefs.h.  */
8430_ACEOF
8431cat confdefs.h >>conftest.$ac_ext
8432cat >>conftest.$ac_ext <<_ACEOF
8433/* end confdefs.h.  */
8434
8435/* Override any GCC internal prototype to avoid an error.
8436   Use char because int might match the return type of a GCC
8437   builtin and then its argument prototype would still apply.  */
8438#ifdef __cplusplus
8439extern "C"
8440#endif
8441char opendir ();
8442int
8443main ()
8444{
8445return opendir ();
8446  ;
8447  return 0;
8448}
8449_ACEOF
8450for ac_lib in '' dir; do
8451  if test -z "$ac_lib"; then
8452    ac_res="none required"
8453  else
8454    ac_res=-l$ac_lib
8455    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8456  fi
8457  rm -f conftest.$ac_objext conftest$ac_exeext
8458if { (ac_try="$ac_link"
8459case "(($ac_try" in
8460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461  *) ac_try_echo=$ac_try;;
8462esac
8463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464  (eval "$ac_link") 2>conftest.er1
8465  ac_status=$?
8466  grep -v '^ *+' conftest.er1 >conftest.err
8467  rm -f conftest.er1
8468  cat conftest.err >&5
8469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470  (exit $ac_status); } &&
8471	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8472  { (case "(($ac_try" in
8473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474  *) ac_try_echo=$ac_try;;
8475esac
8476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8477  (eval "$ac_try") 2>&5
8478  ac_status=$?
8479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480  (exit $ac_status); }; } &&
8481	 { ac_try='test -s conftest$ac_exeext'
8482  { (case "(($ac_try" in
8483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8484  *) ac_try_echo=$ac_try;;
8485esac
8486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8487  (eval "$ac_try") 2>&5
8488  ac_status=$?
8489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490  (exit $ac_status); }; }; then
8491  ac_cv_search_opendir=$ac_res
8492else
8493  echo "$as_me: failed program was:" >&5
8494sed 's/^/| /' conftest.$ac_ext >&5
8495
8496
8497fi
8498
8499rm -f core conftest.err conftest.$ac_objext \
8500      conftest$ac_exeext
8501  if test "${ac_cv_search_opendir+set}" = set; then
8502  break
8503fi
8504done
8505if test "${ac_cv_search_opendir+set}" = set; then
8506  :
8507else
8508  ac_cv_search_opendir=no
8509fi
8510rm conftest.$ac_ext
8511LIBS=$ac_func_search_save_LIBS
8512fi
8513{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8514echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8515ac_res=$ac_cv_search_opendir
8516if test "$ac_res" != no; then
8517  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8518
8519fi
8520
8521else
8522  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8523echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8524if test "${ac_cv_search_opendir+set}" = set; then
8525  echo $ECHO_N "(cached) $ECHO_C" >&6
8526else
8527  ac_func_search_save_LIBS=$LIBS
8528cat >conftest.$ac_ext <<_ACEOF
8529/* confdefs.h.  */
8530_ACEOF
8531cat confdefs.h >>conftest.$ac_ext
8532cat >>conftest.$ac_ext <<_ACEOF
8533/* end confdefs.h.  */
8534
8535/* Override any GCC internal prototype to avoid an error.
8536   Use char because int might match the return type of a GCC
8537   builtin and then its argument prototype would still apply.  */
8538#ifdef __cplusplus
8539extern "C"
8540#endif
8541char opendir ();
8542int
8543main ()
8544{
8545return opendir ();
8546  ;
8547  return 0;
8548}
8549_ACEOF
8550for ac_lib in '' x; do
8551  if test -z "$ac_lib"; then
8552    ac_res="none required"
8553  else
8554    ac_res=-l$ac_lib
8555    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8556  fi
8557  rm -f conftest.$ac_objext conftest$ac_exeext
8558if { (ac_try="$ac_link"
8559case "(($ac_try" in
8560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8561  *) ac_try_echo=$ac_try;;
8562esac
8563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8564  (eval "$ac_link") 2>conftest.er1
8565  ac_status=$?
8566  grep -v '^ *+' conftest.er1 >conftest.err
8567  rm -f conftest.er1
8568  cat conftest.err >&5
8569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570  (exit $ac_status); } &&
8571	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8572  { (case "(($ac_try" in
8573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8574  *) ac_try_echo=$ac_try;;
8575esac
8576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8577  (eval "$ac_try") 2>&5
8578  ac_status=$?
8579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580  (exit $ac_status); }; } &&
8581	 { ac_try='test -s conftest$ac_exeext'
8582  { (case "(($ac_try" in
8583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584  *) ac_try_echo=$ac_try;;
8585esac
8586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8587  (eval "$ac_try") 2>&5
8588  ac_status=$?
8589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590  (exit $ac_status); }; }; then
8591  ac_cv_search_opendir=$ac_res
8592else
8593  echo "$as_me: failed program was:" >&5
8594sed 's/^/| /' conftest.$ac_ext >&5
8595
8596
8597fi
8598
8599rm -f core conftest.err conftest.$ac_objext \
8600      conftest$ac_exeext
8601  if test "${ac_cv_search_opendir+set}" = set; then
8602  break
8603fi
8604done
8605if test "${ac_cv_search_opendir+set}" = set; then
8606  :
8607else
8608  ac_cv_search_opendir=no
8609fi
8610rm conftest.$ac_ext
8611LIBS=$ac_func_search_save_LIBS
8612fi
8613{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8614echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8615ac_res=$ac_cv_search_opendir
8616if test "$ac_res" != no; then
8617  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8618
8619fi
8620
8621fi
8622
8623
8624for ac_header in dlfcn.h
8625do
8626as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8627if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8628  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8629echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8630if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8631  echo $ECHO_N "(cached) $ECHO_C" >&6
8632fi
8633ac_res=`eval echo '${'$as_ac_Header'}'`
8634	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8635echo "${ECHO_T}$ac_res" >&6; }
8636else
8637  # Is the header compilable?
8638{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8639echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8640cat >conftest.$ac_ext <<_ACEOF
8641/* confdefs.h.  */
8642_ACEOF
8643cat confdefs.h >>conftest.$ac_ext
8644cat >>conftest.$ac_ext <<_ACEOF
8645/* end confdefs.h.  */
8646$ac_includes_default
8647#include <$ac_header>
8648_ACEOF
8649rm -f conftest.$ac_objext
8650if { (ac_try="$ac_compile"
8651case "(($ac_try" in
8652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8653  *) ac_try_echo=$ac_try;;
8654esac
8655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8656  (eval "$ac_compile") 2>conftest.er1
8657  ac_status=$?
8658  grep -v '^ *+' conftest.er1 >conftest.err
8659  rm -f conftest.er1
8660  cat conftest.err >&5
8661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662  (exit $ac_status); } &&
8663	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8664  { (case "(($ac_try" in
8665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8666  *) ac_try_echo=$ac_try;;
8667esac
8668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8669  (eval "$ac_try") 2>&5
8670  ac_status=$?
8671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672  (exit $ac_status); }; } &&
8673	 { ac_try='test -s conftest.$ac_objext'
8674  { (case "(($ac_try" in
8675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8676  *) ac_try_echo=$ac_try;;
8677esac
8678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8679  (eval "$ac_try") 2>&5
8680  ac_status=$?
8681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682  (exit $ac_status); }; }; then
8683  ac_header_compiler=yes
8684else
8685  echo "$as_me: failed program was:" >&5
8686sed 's/^/| /' conftest.$ac_ext >&5
8687
8688	ac_header_compiler=no
8689fi
8690
8691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8692{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8693echo "${ECHO_T}$ac_header_compiler" >&6; }
8694
8695# Is the header present?
8696{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8697echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8698cat >conftest.$ac_ext <<_ACEOF
8699/* confdefs.h.  */
8700_ACEOF
8701cat confdefs.h >>conftest.$ac_ext
8702cat >>conftest.$ac_ext <<_ACEOF
8703/* end confdefs.h.  */
8704#include <$ac_header>
8705_ACEOF
8706if { (ac_try="$ac_cpp conftest.$ac_ext"
8707case "(($ac_try" in
8708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8709  *) ac_try_echo=$ac_try;;
8710esac
8711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8712  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8713  ac_status=$?
8714  grep -v '^ *+' conftest.er1 >conftest.err
8715  rm -f conftest.er1
8716  cat conftest.err >&5
8717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718  (exit $ac_status); } >/dev/null; then
8719  if test -s conftest.err; then
8720    ac_cpp_err=$ac_c_preproc_warn_flag
8721    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8722  else
8723    ac_cpp_err=
8724  fi
8725else
8726  ac_cpp_err=yes
8727fi
8728if test -z "$ac_cpp_err"; then
8729  ac_header_preproc=yes
8730else
8731  echo "$as_me: failed program was:" >&5
8732sed 's/^/| /' conftest.$ac_ext >&5
8733
8734  ac_header_preproc=no
8735fi
8736
8737rm -f conftest.err conftest.$ac_ext
8738{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8739echo "${ECHO_T}$ac_header_preproc" >&6; }
8740
8741# So?  What about this header?
8742case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8743  yes:no: )
8744    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8745echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8746    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8747echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8748    ac_header_preproc=yes
8749    ;;
8750  no:yes:* )
8751    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8752echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8753    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8754echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8755    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8756echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8757    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8758echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8759    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8760echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8761    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8762echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8763    ( cat <<\_ASBOX
8764## ----------------------------------- ##
8765## Report this to llvmbugs@cs.uiuc.edu ##
8766## ----------------------------------- ##
8767_ASBOX
8768     ) | sed "s/^/$as_me: WARNING:     /" >&2
8769    ;;
8770esac
8771{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8772echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8773if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8774  echo $ECHO_N "(cached) $ECHO_C" >&6
8775else
8776  eval "$as_ac_Header=\$ac_header_preproc"
8777fi
8778ac_res=`eval echo '${'$as_ac_Header'}'`
8779	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8780echo "${ECHO_T}$ac_res" >&6; }
8781
8782fi
8783if test `eval echo '${'$as_ac_Header'}'` = yes; then
8784  cat >>confdefs.h <<_ACEOF
8785#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8786_ACEOF
8787
8788fi
8789
8790done
8791
8792# Check whether --enable-ltdl-install was given.
8793if test "${enable_ltdl_install+set}" = set; then
8794  enableval=$enable_ltdl_install;
8795fi
8796
8797
8798
8799
8800if test x"${enable_ltdl_install-no}" != xno; then
8801  INSTALL_LTDL_TRUE=
8802  INSTALL_LTDL_FALSE='#'
8803else
8804  INSTALL_LTDL_TRUE='#'
8805  INSTALL_LTDL_FALSE=
8806fi
8807
8808
8809
8810if test x"${enable_ltdl_convenience-no}" != xno; then
8811  CONVENIENCE_LTDL_TRUE=
8812  CONVENIENCE_LTDL_FALSE='#'
8813else
8814  CONVENIENCE_LTDL_TRUE='#'
8815  CONVENIENCE_LTDL_FALSE=
8816fi
8817
8818
8819{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8820echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8821library_names_spec=
8822libname_spec='lib$name'
8823soname_spec=
8824shrext_cmds=".so"
8825postinstall_cmds=
8826postuninstall_cmds=
8827finish_cmds=
8828finish_eval=
8829shlibpath_var=
8830shlibpath_overrides_runpath=unknown
8831version_type=none
8832dynamic_linker="$host_os ld.so"
8833sys_lib_dlsearch_path_spec="/lib /usr/lib"
8834if test "$GCC" = yes; then
8835  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8836  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8837    # if the path contains ";" then we assume it to be the separator
8838    # otherwise default to the standard path separator (i.e. ":") - it is
8839    # assumed that no part of a normal pathname contains ";" but that should
8840    # okay in the real world where ";" in dirpaths is itself problematic.
8841    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8842  else
8843    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8844  fi
8845else
8846  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8847fi
8848need_lib_prefix=unknown
8849hardcode_into_libs=no
8850
8851# when you set need_version to no, make sure it does not cause -set_version
8852# flags to be left without arguments
8853need_version=unknown
8854
8855case $host_os in
8856aix3*)
8857  version_type=linux
8858  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8859  shlibpath_var=LIBPATH
8860
8861  # AIX 3 has no versioning support, so we append a major version to the name.
8862  soname_spec='${libname}${release}${shared_ext}$major'
8863  ;;
8864
8865aix4* | aix5*)
8866  version_type=linux
8867  need_lib_prefix=no
8868  need_version=no
8869  hardcode_into_libs=yes
8870  if test "$host_cpu" = ia64; then
8871    # AIX 5 supports IA64
8872    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8873    shlibpath_var=LD_LIBRARY_PATH
8874  else
8875    # With GCC up to 2.95.x, collect2 would create an import file
8876    # for dependence libraries.  The import file would start with
8877    # the line `#! .'.  This would cause the generated library to
8878    # depend on `.', always an invalid library.  This was fixed in
8879    # development snapshots of GCC prior to 3.0.
8880    case $host_os in
8881      aix4 | aix4.[01] | aix4.[01].*)
8882      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8883	   echo ' yes '
8884	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8885	:
8886      else
8887	can_build_shared=no
8888      fi
8889      ;;
8890    esac
8891    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8892    # soname into executable. Probably we can add versioning support to
8893    # collect2, so additional links can be useful in future.
8894    if test "$aix_use_runtimelinking" = yes; then
8895      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8896      # instead of lib<name>.a to let people know that these are not
8897      # typical AIX shared libraries.
8898      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8899    else
8900      # We preserve .a as extension for shared libraries through AIX4.2
8901      # and later when we are not doing run time linking.
8902      library_names_spec='${libname}${release}.a $libname.a'
8903      soname_spec='${libname}${release}${shared_ext}$major'
8904    fi
8905    shlibpath_var=LIBPATH
8906  fi
8907  ;;
8908
8909amigaos*)
8910  library_names_spec='$libname.ixlibrary $libname.a'
8911  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8912  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'
8913  ;;
8914
8915beos*)
8916  library_names_spec='${libname}${shared_ext}'
8917  dynamic_linker="$host_os ld.so"
8918  shlibpath_var=LIBRARY_PATH
8919  ;;
8920
8921bsdi[45]*)
8922  version_type=linux
8923  need_version=no
8924  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8925  soname_spec='${libname}${release}${shared_ext}$major'
8926  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8927  shlibpath_var=LD_LIBRARY_PATH
8928  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8929  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8930  # the default ld.so.conf also contains /usr/contrib/lib and
8931  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8932  # libtool to hard-code these into programs
8933  ;;
8934
8935cygwin* | mingw* | pw32*)
8936  version_type=windows
8937  shrext_cmds=".dll"
8938  need_version=no
8939  need_lib_prefix=no
8940
8941  case $GCC,$host_os in
8942  yes,cygwin* | yes,mingw* | yes,pw32*)
8943    library_names_spec='$libname.dll.a'
8944    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8945    postinstall_cmds='base_file=`basename \${file}`~
8946      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8947      dldir=$destdir/`dirname \$dlpath`~
8948      test -d \$dldir || mkdir -p \$dldir~
8949      $install_prog $dir/$dlname \$dldir/$dlname~
8950      chmod a+x \$dldir/$dlname'
8951    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8952      dlpath=$dir/\$dldll~
8953       $rm \$dlpath'
8954    shlibpath_overrides_runpath=yes
8955
8956    case $host_os in
8957    cygwin*)
8958      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8959      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8960      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8961      ;;
8962    mingw*)
8963      # MinGW DLLs use traditional 'lib' prefix
8964      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8965      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8966      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8967        # It is most probably a Windows format PATH printed by
8968        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8969        # path with ; separators, and with drive letters. We can handle the
8970        # drive letters (cygwin fileutils understands them), so leave them,
8971        # especially as we might pass files found there to a mingw objdump,
8972        # which wouldn't understand a cygwinified path. Ahh.
8973        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8974      else
8975        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8976      fi
8977      ;;
8978    pw32*)
8979      # pw32 DLLs use 'pw' prefix rather than 'lib'
8980      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8981      ;;
8982    esac
8983    ;;
8984
8985  *)
8986    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8987    ;;
8988  esac
8989  dynamic_linker='Win32 ld.exe'
8990  # FIXME: first we should search . and the directory the executable is in
8991  shlibpath_var=PATH
8992  ;;
8993
8994darwin* | rhapsody*)
8995  dynamic_linker="$host_os dyld"
8996  version_type=darwin
8997  need_lib_prefix=no
8998  need_version=no
8999  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9000  soname_spec='${libname}${release}${major}$shared_ext'
9001  shlibpath_overrides_runpath=yes
9002  shlibpath_var=DYLD_LIBRARY_PATH
9003  shrext_cmds='.dylib'
9004  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9005  if test "$GCC" = yes; then
9006    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"`
9007  else
9008    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9009  fi
9010  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9011  ;;
9012
9013dgux*)
9014  version_type=linux
9015  need_lib_prefix=no
9016  need_version=no
9017  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9018  soname_spec='${libname}${release}${shared_ext}$major'
9019  shlibpath_var=LD_LIBRARY_PATH
9020  ;;
9021
9022freebsd1*)
9023  dynamic_linker=no
9024  ;;
9025
9026kfreebsd*-gnu)
9027  version_type=linux
9028  need_lib_prefix=no
9029  need_version=no
9030  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9031  soname_spec='${libname}${release}${shared_ext}$major'
9032  shlibpath_var=LD_LIBRARY_PATH
9033  shlibpath_overrides_runpath=no
9034  hardcode_into_libs=yes
9035  dynamic_linker='GNU ld.so'
9036  ;;
9037
9038freebsd* | dragonfly*)
9039  # DragonFly does not have aout.  When/if they implement a new
9040  # versioning mechanism, adjust this.
9041  if test -x /usr/bin/objformat; then
9042    objformat=`/usr/bin/objformat`
9043  else
9044    case $host_os in
9045    freebsd[123]*) objformat=aout ;;
9046    *) objformat=elf ;;
9047    esac
9048  fi
9049  version_type=freebsd-$objformat
9050  case $version_type in
9051    freebsd-elf*)
9052      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9053      need_version=no
9054      need_lib_prefix=no
9055      ;;
9056    freebsd-*)
9057      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9058      need_version=yes
9059      ;;
9060  esac
9061  shlibpath_var=LD_LIBRARY_PATH
9062  case $host_os in
9063  freebsd2*)
9064    shlibpath_overrides_runpath=yes
9065    ;;
9066  freebsd3.[01]* | freebsdelf3.[01]*)
9067    shlibpath_overrides_runpath=yes
9068    hardcode_into_libs=yes
9069    ;;
9070  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9071  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9072    shlibpath_overrides_runpath=no
9073    hardcode_into_libs=yes
9074    ;;
9075  freebsd*) # from 4.6 on
9076    shlibpath_overrides_runpath=yes
9077    hardcode_into_libs=yes
9078    ;;
9079  esac
9080  ;;
9081
9082gnu*)
9083  version_type=linux
9084  need_lib_prefix=no
9085  need_version=no
9086  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9087  soname_spec='${libname}${release}${shared_ext}$major'
9088  shlibpath_var=LD_LIBRARY_PATH
9089  hardcode_into_libs=yes
9090  ;;
9091
9092hpux9* | hpux10* | hpux11*)
9093  # Give a soname corresponding to the major version so that dld.sl refuses to
9094  # link against other versions.
9095  version_type=sunos
9096  need_lib_prefix=no
9097  need_version=no
9098  case $host_cpu in
9099  ia64*)
9100    shrext_cmds='.so'
9101    hardcode_into_libs=yes
9102    dynamic_linker="$host_os dld.so"
9103    shlibpath_var=LD_LIBRARY_PATH
9104    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9105    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9106    soname_spec='${libname}${release}${shared_ext}$major'
9107    if test "X$HPUX_IA64_MODE" = X32; then
9108      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9109    else
9110      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9111    fi
9112    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9113    ;;
9114   hppa*64*)
9115     shrext_cmds='.sl'
9116     hardcode_into_libs=yes
9117     dynamic_linker="$host_os dld.sl"
9118     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9119     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9120     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121     soname_spec='${libname}${release}${shared_ext}$major'
9122     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9123     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9124     ;;
9125   *)
9126    shrext_cmds='.sl'
9127    dynamic_linker="$host_os dld.sl"
9128    shlibpath_var=SHLIB_PATH
9129    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9130    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9131    soname_spec='${libname}${release}${shared_ext}$major'
9132    ;;
9133  esac
9134  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9135  postinstall_cmds='chmod 555 $lib'
9136  ;;
9137
9138interix3*)
9139  version_type=linux
9140  need_lib_prefix=no
9141  need_version=no
9142  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9143  soname_spec='${libname}${release}${shared_ext}$major'
9144  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9145  shlibpath_var=LD_LIBRARY_PATH
9146  shlibpath_overrides_runpath=no
9147  hardcode_into_libs=yes
9148  ;;
9149
9150irix5* | irix6* | nonstopux*)
9151  case $host_os in
9152    nonstopux*) version_type=nonstopux ;;
9153    *)
9154	if test "$lt_cv_prog_gnu_ld" = yes; then
9155		version_type=linux
9156	else
9157		version_type=irix
9158	fi ;;
9159  esac
9160  need_lib_prefix=no
9161  need_version=no
9162  soname_spec='${libname}${release}${shared_ext}$major'
9163  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9164  case $host_os in
9165  irix5* | nonstopux*)
9166    libsuff= shlibsuff=
9167    ;;
9168  *)
9169    case $LD in # libtool.m4 will add one of these switches to LD
9170    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9171      libsuff= shlibsuff= libmagic=32-bit;;
9172    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9173      libsuff=32 shlibsuff=N32 libmagic=N32;;
9174    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9175      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9176    *) libsuff= shlibsuff= libmagic=never-match;;
9177    esac
9178    ;;
9179  esac
9180  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9181  shlibpath_overrides_runpath=no
9182  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9183  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9184  hardcode_into_libs=yes
9185  ;;
9186
9187# No shared lib support for Linux oldld, aout, or coff.
9188linux*oldld* | linux*aout* | linux*coff*)
9189  dynamic_linker=no
9190  ;;
9191
9192# This must be Linux ELF.
9193linux*)
9194  version_type=linux
9195  need_lib_prefix=no
9196  need_version=no
9197  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9198  soname_spec='${libname}${release}${shared_ext}$major'
9199  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9200  shlibpath_var=LD_LIBRARY_PATH
9201  shlibpath_overrides_runpath=no
9202  # This implies no fast_install, which is unacceptable.
9203  # Some rework will be needed to allow for fast_install
9204  # before this can be enabled.
9205  hardcode_into_libs=yes
9206
9207  # Append ld.so.conf contents to the search path
9208  if test -f /etc/ld.so.conf; then
9209    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' ' '`
9210    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9211  fi
9212
9213  # We used to test for /lib/ld.so.1 and disable shared libraries on
9214  # powerpc, because MkLinux only supported shared libraries with the
9215  # GNU dynamic linker.  Since this was broken with cross compilers,
9216  # most powerpc-linux boxes support dynamic linking these days and
9217  # people can always --disable-shared, the test was removed, and we
9218  # assume the GNU/Linux dynamic linker is in use.
9219  dynamic_linker='GNU/Linux ld.so'
9220  ;;
9221
9222knetbsd*-gnu)
9223  version_type=linux
9224  need_lib_prefix=no
9225  need_version=no
9226  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9227  soname_spec='${libname}${release}${shared_ext}$major'
9228  shlibpath_var=LD_LIBRARY_PATH
9229  shlibpath_overrides_runpath=no
9230  hardcode_into_libs=yes
9231  dynamic_linker='GNU ld.so'
9232  ;;
9233
9234netbsd*)
9235  version_type=sunos
9236  need_lib_prefix=no
9237  need_version=no
9238  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9239    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9240    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9241    dynamic_linker='NetBSD (a.out) ld.so'
9242  else
9243    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9244    soname_spec='${libname}${release}${shared_ext}$major'
9245    dynamic_linker='NetBSD ld.elf_so'
9246  fi
9247  shlibpath_var=LD_LIBRARY_PATH
9248  shlibpath_overrides_runpath=yes
9249  hardcode_into_libs=yes
9250  ;;
9251
9252newsos6)
9253  version_type=linux
9254  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9255  shlibpath_var=LD_LIBRARY_PATH
9256  shlibpath_overrides_runpath=yes
9257  ;;
9258
9259nto-qnx*)
9260  version_type=linux
9261  need_lib_prefix=no
9262  need_version=no
9263  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9264  soname_spec='${libname}${release}${shared_ext}$major'
9265  shlibpath_var=LD_LIBRARY_PATH
9266  shlibpath_overrides_runpath=yes
9267  ;;
9268
9269openbsd*)
9270  version_type=sunos
9271  sys_lib_dlsearch_path_spec="/usr/lib"
9272  need_lib_prefix=no
9273  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9274  case $host_os in
9275    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9276    *)                         need_version=no  ;;
9277  esac
9278  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9279  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9280  shlibpath_var=LD_LIBRARY_PATH
9281  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9282    case $host_os in
9283      openbsd2.[89] | openbsd2.[89].*)
9284	shlibpath_overrides_runpath=no
9285	;;
9286      *)
9287	shlibpath_overrides_runpath=yes
9288	;;
9289      esac
9290  else
9291    shlibpath_overrides_runpath=yes
9292  fi
9293  ;;
9294
9295os2*)
9296  libname_spec='$name'
9297  shrext_cmds=".dll"
9298  need_lib_prefix=no
9299  library_names_spec='$libname${shared_ext} $libname.a'
9300  dynamic_linker='OS/2 ld.exe'
9301  shlibpath_var=LIBPATH
9302  ;;
9303
9304osf3* | osf4* | osf5*)
9305  version_type=osf
9306  need_lib_prefix=no
9307  need_version=no
9308  soname_spec='${libname}${release}${shared_ext}$major'
9309  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9310  shlibpath_var=LD_LIBRARY_PATH
9311  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9312  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9313  ;;
9314
9315solaris*)
9316  version_type=linux
9317  need_lib_prefix=no
9318  need_version=no
9319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9320  soname_spec='${libname}${release}${shared_ext}$major'
9321  shlibpath_var=LD_LIBRARY_PATH
9322  shlibpath_overrides_runpath=yes
9323  hardcode_into_libs=yes
9324  # ldd complains unless libraries are executable
9325  postinstall_cmds='chmod +x $lib'
9326  ;;
9327
9328sunos4*)
9329  version_type=sunos
9330  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9331  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9332  shlibpath_var=LD_LIBRARY_PATH
9333  shlibpath_overrides_runpath=yes
9334  if test "$with_gnu_ld" = yes; then
9335    need_lib_prefix=no
9336  fi
9337  need_version=yes
9338  ;;
9339
9340sysv4 | sysv4.3*)
9341  version_type=linux
9342  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9343  soname_spec='${libname}${release}${shared_ext}$major'
9344  shlibpath_var=LD_LIBRARY_PATH
9345  case $host_vendor in
9346    sni)
9347      shlibpath_overrides_runpath=no
9348      need_lib_prefix=no
9349      export_dynamic_flag_spec='${wl}-Blargedynsym'
9350      runpath_var=LD_RUN_PATH
9351      ;;
9352    siemens)
9353      need_lib_prefix=no
9354      ;;
9355    motorola)
9356      need_lib_prefix=no
9357      need_version=no
9358      shlibpath_overrides_runpath=no
9359      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9360      ;;
9361  esac
9362  ;;
9363
9364sysv4*MP*)
9365  if test -d /usr/nec ;then
9366    version_type=linux
9367    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9368    soname_spec='$libname${shared_ext}.$major'
9369    shlibpath_var=LD_LIBRARY_PATH
9370  fi
9371  ;;
9372
9373sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9374  version_type=freebsd-elf
9375  need_lib_prefix=no
9376  need_version=no
9377  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9378  soname_spec='${libname}${release}${shared_ext}$major'
9379  shlibpath_var=LD_LIBRARY_PATH
9380  hardcode_into_libs=yes
9381  if test "$with_gnu_ld" = yes; then
9382    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9383    shlibpath_overrides_runpath=no
9384  else
9385    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9386    shlibpath_overrides_runpath=yes
9387    case $host_os in
9388      sco3.2v5*)
9389        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9390	;;
9391    esac
9392  fi
9393  sys_lib_dlsearch_path_spec='/usr/lib'
9394  ;;
9395
9396uts4*)
9397  version_type=linux
9398  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9399  soname_spec='${libname}${release}${shared_ext}$major'
9400  shlibpath_var=LD_LIBRARY_PATH
9401  ;;
9402
9403*)
9404  dynamic_linker=no
9405  ;;
9406esac
9407{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9408echo "${ECHO_T}$dynamic_linker" >&6; }
9409test "$dynamic_linker" = no && can_build_shared=no
9410
9411variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9412if test "$GCC" = yes; then
9413  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9414fi
9415
9416
9417{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9418echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9419if test "${libltdl_cv_shlibext+set}" = set; then
9420  echo $ECHO_N "(cached) $ECHO_C" >&6
9421else
9422
9423module=yes
9424eval libltdl_cv_shlibext=$shrext_cmds
9425
9426fi
9427{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9428echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9429if test -n "$libltdl_cv_shlibext"; then
9430
9431cat >>confdefs.h <<_ACEOF
9432#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9433_ACEOF
9434
9435fi
9436
9437
9438{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9439echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9440if test "${libltdl_cv_shlibpath_var+set}" = set; then
9441  echo $ECHO_N "(cached) $ECHO_C" >&6
9442else
9443  libltdl_cv_shlibpath_var="$shlibpath_var"
9444fi
9445{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9446echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9447if test -n "$libltdl_cv_shlibpath_var"; then
9448
9449cat >>confdefs.h <<_ACEOF
9450#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9451_ACEOF
9452
9453fi
9454
9455
9456{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9457echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9458if test "${libltdl_cv_sys_search_path+set}" = set; then
9459  echo $ECHO_N "(cached) $ECHO_C" >&6
9460else
9461  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9462fi
9463{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9464echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9465if test -n "$libltdl_cv_sys_search_path"; then
9466  sys_search_path=
9467  for dir in $libltdl_cv_sys_search_path; do
9468    if test -z "$sys_search_path"; then
9469      sys_search_path="$dir"
9470    else
9471      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9472    fi
9473  done
9474
9475cat >>confdefs.h <<_ACEOF
9476#define LTDL_SYSSEARCHPATH "$sys_search_path"
9477_ACEOF
9478
9479fi
9480
9481{ echo "$as_me:$LINENO: checking for objdir" >&5
9482echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9483if test "${libltdl_cv_objdir+set}" = set; then
9484  echo $ECHO_N "(cached) $ECHO_C" >&6
9485else
9486  libltdl_cv_objdir="$objdir"
9487  if test -n "$objdir"; then
9488    :
9489  else
9490    rm -f .libs 2>/dev/null
9491    mkdir .libs 2>/dev/null
9492    if test -d .libs; then
9493      libltdl_cv_objdir=.libs
9494    else
9495      # MS-DOS does not allow filenames that begin with a dot.
9496      libltdl_cv_objdir=_libs
9497    fi
9498  rmdir .libs 2>/dev/null
9499  fi
9500
9501fi
9502{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9503echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9504
9505cat >>confdefs.h <<_ACEOF
9506#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9507_ACEOF
9508
9509
9510
9511
9512
9513
9514# Check for command to grab the raw symbol name followed by C symbol from nm.
9515{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9516echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9517if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9518  echo $ECHO_N "(cached) $ECHO_C" >&6
9519else
9520
9521# These are sane defaults that work on at least a few old systems.
9522# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9523
9524# Character class describing NM global symbol codes.
9525symcode='[BCDEGRST]'
9526
9527# Regexp to match symbols that can be accessed directly from C.
9528sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9529
9530# Transform an extracted symbol line into a proper C declaration
9531lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9532
9533# Transform an extracted symbol line into symbol name and symbol address
9534lt_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'"
9535
9536# Define system-specific variables.
9537case $host_os in
9538aix*)
9539  symcode='[BCDT]'
9540  ;;
9541cygwin* | mingw* | pw32*)
9542  symcode='[ABCDGISTW]'
9543  ;;
9544hpux*) # Its linker distinguishes data from code symbols
9545  if test "$host_cpu" = ia64; then
9546    symcode='[ABCDEGRST]'
9547  fi
9548  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9549  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'"
9550  ;;
9551linux*)
9552  if test "$host_cpu" = ia64; then
9553    symcode='[ABCDGIRSTW]'
9554    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9555    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'"
9556  fi
9557  ;;
9558irix* | nonstopux*)
9559  symcode='[BCDEGRST]'
9560  ;;
9561osf*)
9562  symcode='[BCDEGQRST]'
9563  ;;
9564solaris*)
9565  symcode='[BDRT]'
9566  ;;
9567sco3.2v5*)
9568  symcode='[DT]'
9569  ;;
9570sysv4.2uw2*)
9571  symcode='[DT]'
9572  ;;
9573sysv5* | sco5v6* | unixware* | OpenUNIX*)
9574  symcode='[ABDT]'
9575  ;;
9576sysv4)
9577  symcode='[DFNSTU]'
9578  ;;
9579esac
9580
9581# Handle CRLF in mingw tool chain
9582opt_cr=
9583case $build_os in
9584mingw*)
9585  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9586  ;;
9587esac
9588
9589# If we're using GNU nm, then use its standard symbol codes.
9590case `$NM -V 2>&1` in
9591*GNU* | *'with BFD'*)
9592  symcode='[ABCDGIRSTW]' ;;
9593esac
9594
9595# Try without a prefix undercore, then with it.
9596for ac_symprfx in "" "_"; do
9597
9598  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9599  symxfrm="\\1 $ac_symprfx\\2 \\2"
9600
9601  # Write the raw and C identifiers.
9602  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9603
9604  # Check to see that the pipe works correctly.
9605  pipe_works=no
9606
9607  rm -f conftest*
9608  cat > conftest.$ac_ext <<EOF
9609#ifdef __cplusplus
9610extern "C" {
9611#endif
9612char nm_test_var;
9613void nm_test_func(){}
9614#ifdef __cplusplus
9615}
9616#endif
9617int main(){nm_test_var='a';nm_test_func();return(0);}
9618EOF
9619
9620  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9621  (eval $ac_compile) 2>&5
9622  ac_status=$?
9623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624  (exit $ac_status); }; then
9625    # Now try to grab the symbols.
9626    nlist=conftest.nm
9627    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9628  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9629  ac_status=$?
9630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631  (exit $ac_status); } && test -s "$nlist"; then
9632      # Try sorting and uniquifying the output.
9633      if sort "$nlist" | uniq > "$nlist"T; then
9634	mv -f "$nlist"T "$nlist"
9635      else
9636	rm -f "$nlist"T
9637      fi
9638
9639      # Make sure that we snagged all the symbols we need.
9640      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9641	if grep ' nm_test_func$' "$nlist" >/dev/null; then
9642	  cat <<EOF > conftest.$ac_ext
9643#ifdef __cplusplus
9644extern "C" {
9645#endif
9646
9647EOF
9648	  # Now generate the symbol file.
9649	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9650
9651	  cat <<EOF >> conftest.$ac_ext
9652#if defined (__STDC__) && __STDC__
9653# define lt_ptr_t void *
9654#else
9655# define lt_ptr_t char *
9656# define const
9657#endif
9658
9659/* The mapping between symbol names and symbols. */
9660const struct {
9661  const char *name;
9662  lt_ptr_t address;
9663}
9664lt_preloaded_symbols[] =
9665{
9666EOF
9667	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9668	  cat <<\EOF >> conftest.$ac_ext
9669  {0, (lt_ptr_t) 0}
9670};
9671
9672#ifdef __cplusplus
9673}
9674#endif
9675EOF
9676	  # Now try linking the two files.
9677	  mv conftest.$ac_objext conftstm.$ac_objext
9678	  lt_save_LIBS="$LIBS"
9679	  lt_save_CFLAGS="$CFLAGS"
9680	  LIBS="conftstm.$ac_objext"
9681	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9682	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9683  (eval $ac_link) 2>&5
9684  ac_status=$?
9685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9687	    pipe_works=yes
9688	  fi
9689	  LIBS="$lt_save_LIBS"
9690	  CFLAGS="$lt_save_CFLAGS"
9691	else
9692	  echo "cannot find nm_test_func in $nlist" >&5
9693	fi
9694      else
9695	echo "cannot find nm_test_var in $nlist" >&5
9696      fi
9697    else
9698      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9699    fi
9700  else
9701    echo "$progname: failed program was:" >&5
9702    cat conftest.$ac_ext >&5
9703  fi
9704  rm -f conftest* conftst*
9705
9706  # Do not use the global_symbol_pipe unless it works.
9707  if test "$pipe_works" = yes; then
9708    break
9709  else
9710    lt_cv_sys_global_symbol_pipe=
9711  fi
9712done
9713
9714fi
9715
9716if test -z "$lt_cv_sys_global_symbol_pipe"; then
9717  lt_cv_sys_global_symbol_to_cdecl=
9718fi
9719if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9720  { echo "$as_me:$LINENO: result: failed" >&5
9721echo "${ECHO_T}failed" >&6; }
9722else
9723  { echo "$as_me:$LINENO: result: ok" >&5
9724echo "${ECHO_T}ok" >&6; }
9725fi
9726
9727
9728{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9729echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9730if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9731  echo $ECHO_N "(cached) $ECHO_C" >&6
9732else
9733  if test -n "$lt_cv_sys_global_symbol_pipe"; then
9734    libltdl_cv_preloaded_symbols=yes
9735  else
9736    libltdl_cv_preloaded_symbols=no
9737  fi
9738
9739fi
9740{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9741echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9742if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9743
9744cat >>confdefs.h <<\_ACEOF
9745#define HAVE_PRELOADED_SYMBOLS 1
9746_ACEOF
9747
9748fi
9749
9750LIBADD_DL=
9751
9752ac_ext=c
9753ac_cpp='$CPP $CPPFLAGS'
9754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9756ac_compiler_gnu=$ac_cv_c_compiler_gnu
9757
9758
9759{ echo "$as_me:$LINENO: checking for shl_load" >&5
9760echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9761if test "${ac_cv_func_shl_load+set}" = set; then
9762  echo $ECHO_N "(cached) $ECHO_C" >&6
9763else
9764  cat >conftest.$ac_ext <<_ACEOF
9765/* confdefs.h.  */
9766_ACEOF
9767cat confdefs.h >>conftest.$ac_ext
9768cat >>conftest.$ac_ext <<_ACEOF
9769/* end confdefs.h.  */
9770/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9771   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9772#define shl_load innocuous_shl_load
9773
9774/* System header to define __stub macros and hopefully few prototypes,
9775    which can conflict with char shl_load (); below.
9776    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9777    <limits.h> exists even on freestanding compilers.  */
9778
9779#ifdef __STDC__
9780# include <limits.h>
9781#else
9782# include <assert.h>
9783#endif
9784
9785#undef shl_load
9786
9787/* Override any GCC internal prototype to avoid an error.
9788   Use char because int might match the return type of a GCC
9789   builtin and then its argument prototype would still apply.  */
9790#ifdef __cplusplus
9791extern "C"
9792#endif
9793char shl_load ();
9794/* The GNU C library defines this for functions which it implements
9795    to always fail with ENOSYS.  Some functions are actually named
9796    something starting with __ and the normal name is an alias.  */
9797#if defined __stub_shl_load || defined __stub___shl_load
9798choke me
9799#endif
9800
9801int
9802main ()
9803{
9804return shl_load ();
9805  ;
9806  return 0;
9807}
9808_ACEOF
9809rm -f conftest.$ac_objext conftest$ac_exeext
9810if { (ac_try="$ac_link"
9811case "(($ac_try" in
9812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813  *) ac_try_echo=$ac_try;;
9814esac
9815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816  (eval "$ac_link") 2>conftest.er1
9817  ac_status=$?
9818  grep -v '^ *+' conftest.er1 >conftest.err
9819  rm -f conftest.er1
9820  cat conftest.err >&5
9821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822  (exit $ac_status); } &&
9823	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9824  { (case "(($ac_try" in
9825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9826  *) ac_try_echo=$ac_try;;
9827esac
9828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9829  (eval "$ac_try") 2>&5
9830  ac_status=$?
9831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832  (exit $ac_status); }; } &&
9833	 { ac_try='test -s conftest$ac_exeext'
9834  { (case "(($ac_try" in
9835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836  *) ac_try_echo=$ac_try;;
9837esac
9838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9839  (eval "$ac_try") 2>&5
9840  ac_status=$?
9841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842  (exit $ac_status); }; }; then
9843  ac_cv_func_shl_load=yes
9844else
9845  echo "$as_me: failed program was:" >&5
9846sed 's/^/| /' conftest.$ac_ext >&5
9847
9848	ac_cv_func_shl_load=no
9849fi
9850
9851rm -f core conftest.err conftest.$ac_objext \
9852      conftest$ac_exeext conftest.$ac_ext
9853fi
9854{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9855echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9856if test $ac_cv_func_shl_load = yes; then
9857
9858cat >>confdefs.h <<\_ACEOF
9859#define HAVE_SHL_LOAD 1
9860_ACEOF
9861
9862else
9863  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9864echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9865if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9866  echo $ECHO_N "(cached) $ECHO_C" >&6
9867else
9868  ac_check_lib_save_LIBS=$LIBS
9869LIBS="-ldld  $LIBS"
9870cat >conftest.$ac_ext <<_ACEOF
9871/* confdefs.h.  */
9872_ACEOF
9873cat confdefs.h >>conftest.$ac_ext
9874cat >>conftest.$ac_ext <<_ACEOF
9875/* end confdefs.h.  */
9876
9877/* Override any GCC internal prototype to avoid an error.
9878   Use char because int might match the return type of a GCC
9879   builtin and then its argument prototype would still apply.  */
9880#ifdef __cplusplus
9881extern "C"
9882#endif
9883char shl_load ();
9884int
9885main ()
9886{
9887return shl_load ();
9888  ;
9889  return 0;
9890}
9891_ACEOF
9892rm -f conftest.$ac_objext conftest$ac_exeext
9893if { (ac_try="$ac_link"
9894case "(($ac_try" in
9895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896  *) ac_try_echo=$ac_try;;
9897esac
9898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899  (eval "$ac_link") 2>conftest.er1
9900  ac_status=$?
9901  grep -v '^ *+' conftest.er1 >conftest.err
9902  rm -f conftest.er1
9903  cat conftest.err >&5
9904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905  (exit $ac_status); } &&
9906	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9907  { (case "(($ac_try" in
9908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909  *) ac_try_echo=$ac_try;;
9910esac
9911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912  (eval "$ac_try") 2>&5
9913  ac_status=$?
9914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915  (exit $ac_status); }; } &&
9916	 { ac_try='test -s conftest$ac_exeext'
9917  { (case "(($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_try") 2>&5
9923  ac_status=$?
9924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925  (exit $ac_status); }; }; then
9926  ac_cv_lib_dld_shl_load=yes
9927else
9928  echo "$as_me: failed program was:" >&5
9929sed 's/^/| /' conftest.$ac_ext >&5
9930
9931	ac_cv_lib_dld_shl_load=no
9932fi
9933
9934rm -f core conftest.err conftest.$ac_objext \
9935      conftest$ac_exeext conftest.$ac_ext
9936LIBS=$ac_check_lib_save_LIBS
9937fi
9938{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9939echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9940if test $ac_cv_lib_dld_shl_load = yes; then
9941
9942cat >>confdefs.h <<\_ACEOF
9943#define HAVE_SHL_LOAD 1
9944_ACEOF
9945
9946	LIBADD_DL="$LIBADD_DL -ldld"
9947else
9948  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9949echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9950if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9951  echo $ECHO_N "(cached) $ECHO_C" >&6
9952else
9953  ac_check_lib_save_LIBS=$LIBS
9954LIBS="-ldl  $LIBS"
9955cat >conftest.$ac_ext <<_ACEOF
9956/* confdefs.h.  */
9957_ACEOF
9958cat confdefs.h >>conftest.$ac_ext
9959cat >>conftest.$ac_ext <<_ACEOF
9960/* end confdefs.h.  */
9961
9962/* Override any GCC internal prototype to avoid an error.
9963   Use char because int might match the return type of a GCC
9964   builtin and then its argument prototype would still apply.  */
9965#ifdef __cplusplus
9966extern "C"
9967#endif
9968char dlopen ();
9969int
9970main ()
9971{
9972return dlopen ();
9973  ;
9974  return 0;
9975}
9976_ACEOF
9977rm -f conftest.$ac_objext conftest$ac_exeext
9978if { (ac_try="$ac_link"
9979case "(($ac_try" in
9980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981  *) ac_try_echo=$ac_try;;
9982esac
9983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984  (eval "$ac_link") 2>conftest.er1
9985  ac_status=$?
9986  grep -v '^ *+' conftest.er1 >conftest.err
9987  rm -f conftest.er1
9988  cat conftest.err >&5
9989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990  (exit $ac_status); } &&
9991	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9992  { (case "(($ac_try" in
9993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994  *) ac_try_echo=$ac_try;;
9995esac
9996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9997  (eval "$ac_try") 2>&5
9998  ac_status=$?
9999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000  (exit $ac_status); }; } &&
10001	 { ac_try='test -s conftest$ac_exeext'
10002  { (case "(($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_try") 2>&5
10008  ac_status=$?
10009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010  (exit $ac_status); }; }; then
10011  ac_cv_lib_dl_dlopen=yes
10012else
10013  echo "$as_me: failed program was:" >&5
10014sed 's/^/| /' conftest.$ac_ext >&5
10015
10016	ac_cv_lib_dl_dlopen=no
10017fi
10018
10019rm -f core conftest.err conftest.$ac_objext \
10020      conftest$ac_exeext conftest.$ac_ext
10021LIBS=$ac_check_lib_save_LIBS
10022fi
10023{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10024echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10025if test $ac_cv_lib_dl_dlopen = yes; then
10026
10027cat >>confdefs.h <<\_ACEOF
10028#define HAVE_LIBDL 1
10029_ACEOF
10030
10031	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10032else
10033  cat >conftest.$ac_ext <<_ACEOF
10034/* confdefs.h.  */
10035_ACEOF
10036cat confdefs.h >>conftest.$ac_ext
10037cat >>conftest.$ac_ext <<_ACEOF
10038/* end confdefs.h.  */
10039#if HAVE_DLFCN_H
10040#  include <dlfcn.h>
10041#endif
10042
10043int
10044main ()
10045{
10046dlopen(0, 0);
10047  ;
10048  return 0;
10049}
10050_ACEOF
10051rm -f conftest.$ac_objext conftest$ac_exeext
10052if { (ac_try="$ac_link"
10053case "(($ac_try" in
10054  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055  *) ac_try_echo=$ac_try;;
10056esac
10057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058  (eval "$ac_link") 2>conftest.er1
10059  ac_status=$?
10060  grep -v '^ *+' conftest.er1 >conftest.err
10061  rm -f conftest.er1
10062  cat conftest.err >&5
10063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064  (exit $ac_status); } &&
10065	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10066  { (case "(($ac_try" in
10067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068  *) ac_try_echo=$ac_try;;
10069esac
10070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10071  (eval "$ac_try") 2>&5
10072  ac_status=$?
10073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074  (exit $ac_status); }; } &&
10075	 { ac_try='test -s conftest$ac_exeext'
10076  { (case "(($ac_try" in
10077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10078  *) ac_try_echo=$ac_try;;
10079esac
10080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10081  (eval "$ac_try") 2>&5
10082  ac_status=$?
10083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084  (exit $ac_status); }; }; then
10085
10086cat >>confdefs.h <<\_ACEOF
10087#define HAVE_LIBDL 1
10088_ACEOF
10089 libltdl_cv_func_dlopen="yes"
10090else
10091  echo "$as_me: failed program was:" >&5
10092sed 's/^/| /' conftest.$ac_ext >&5
10093
10094	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10095echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10096if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10097  echo $ECHO_N "(cached) $ECHO_C" >&6
10098else
10099  ac_check_lib_save_LIBS=$LIBS
10100LIBS="-lsvld  $LIBS"
10101cat >conftest.$ac_ext <<_ACEOF
10102/* confdefs.h.  */
10103_ACEOF
10104cat confdefs.h >>conftest.$ac_ext
10105cat >>conftest.$ac_ext <<_ACEOF
10106/* end confdefs.h.  */
10107
10108/* Override any GCC internal prototype to avoid an error.
10109   Use char because int might match the return type of a GCC
10110   builtin and then its argument prototype would still apply.  */
10111#ifdef __cplusplus
10112extern "C"
10113#endif
10114char dlopen ();
10115int
10116main ()
10117{
10118return dlopen ();
10119  ;
10120  return 0;
10121}
10122_ACEOF
10123rm -f conftest.$ac_objext conftest$ac_exeext
10124if { (ac_try="$ac_link"
10125case "(($ac_try" in
10126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127  *) ac_try_echo=$ac_try;;
10128esac
10129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130  (eval "$ac_link") 2>conftest.er1
10131  ac_status=$?
10132  grep -v '^ *+' conftest.er1 >conftest.err
10133  rm -f conftest.er1
10134  cat conftest.err >&5
10135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136  (exit $ac_status); } &&
10137	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10138  { (case "(($ac_try" in
10139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140  *) ac_try_echo=$ac_try;;
10141esac
10142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10143  (eval "$ac_try") 2>&5
10144  ac_status=$?
10145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146  (exit $ac_status); }; } &&
10147	 { ac_try='test -s conftest$ac_exeext'
10148  { (case "(($ac_try" in
10149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150  *) ac_try_echo=$ac_try;;
10151esac
10152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153  (eval "$ac_try") 2>&5
10154  ac_status=$?
10155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156  (exit $ac_status); }; }; then
10157  ac_cv_lib_svld_dlopen=yes
10158else
10159  echo "$as_me: failed program was:" >&5
10160sed 's/^/| /' conftest.$ac_ext >&5
10161
10162	ac_cv_lib_svld_dlopen=no
10163fi
10164
10165rm -f core conftest.err conftest.$ac_objext \
10166      conftest$ac_exeext conftest.$ac_ext
10167LIBS=$ac_check_lib_save_LIBS
10168fi
10169{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10170echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10171if test $ac_cv_lib_svld_dlopen = yes; then
10172
10173cat >>confdefs.h <<\_ACEOF
10174#define HAVE_LIBDL 1
10175_ACEOF
10176
10177	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10178else
10179  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10180echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10181if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10182  echo $ECHO_N "(cached) $ECHO_C" >&6
10183else
10184  ac_check_lib_save_LIBS=$LIBS
10185LIBS="-ldld  $LIBS"
10186cat >conftest.$ac_ext <<_ACEOF
10187/* confdefs.h.  */
10188_ACEOF
10189cat confdefs.h >>conftest.$ac_ext
10190cat >>conftest.$ac_ext <<_ACEOF
10191/* end confdefs.h.  */
10192
10193/* Override any GCC internal prototype to avoid an error.
10194   Use char because int might match the return type of a GCC
10195   builtin and then its argument prototype would still apply.  */
10196#ifdef __cplusplus
10197extern "C"
10198#endif
10199char dld_link ();
10200int
10201main ()
10202{
10203return dld_link ();
10204  ;
10205  return 0;
10206}
10207_ACEOF
10208rm -f conftest.$ac_objext conftest$ac_exeext
10209if { (ac_try="$ac_link"
10210case "(($ac_try" in
10211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10212  *) ac_try_echo=$ac_try;;
10213esac
10214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10215  (eval "$ac_link") 2>conftest.er1
10216  ac_status=$?
10217  grep -v '^ *+' conftest.er1 >conftest.err
10218  rm -f conftest.er1
10219  cat conftest.err >&5
10220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221  (exit $ac_status); } &&
10222	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10223  { (case "(($ac_try" in
10224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225  *) ac_try_echo=$ac_try;;
10226esac
10227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10228  (eval "$ac_try") 2>&5
10229  ac_status=$?
10230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231  (exit $ac_status); }; } &&
10232	 { ac_try='test -s conftest$ac_exeext'
10233  { (case "(($ac_try" in
10234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10235  *) ac_try_echo=$ac_try;;
10236esac
10237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10238  (eval "$ac_try") 2>&5
10239  ac_status=$?
10240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241  (exit $ac_status); }; }; then
10242  ac_cv_lib_dld_dld_link=yes
10243else
10244  echo "$as_me: failed program was:" >&5
10245sed 's/^/| /' conftest.$ac_ext >&5
10246
10247	ac_cv_lib_dld_dld_link=no
10248fi
10249
10250rm -f core conftest.err conftest.$ac_objext \
10251      conftest$ac_exeext conftest.$ac_ext
10252LIBS=$ac_check_lib_save_LIBS
10253fi
10254{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10255echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10256if test $ac_cv_lib_dld_dld_link = yes; then
10257
10258cat >>confdefs.h <<\_ACEOF
10259#define HAVE_DLD 1
10260_ACEOF
10261
10262	 	LIBADD_DL="$LIBADD_DL -ldld"
10263else
10264  { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10265echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10266if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10267  echo $ECHO_N "(cached) $ECHO_C" >&6
10268else
10269  cat >conftest.$ac_ext <<_ACEOF
10270/* confdefs.h.  */
10271_ACEOF
10272cat confdefs.h >>conftest.$ac_ext
10273cat >>conftest.$ac_ext <<_ACEOF
10274/* end confdefs.h.  */
10275/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10276   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10277#define _dyld_func_lookup innocuous__dyld_func_lookup
10278
10279/* System header to define __stub macros and hopefully few prototypes,
10280    which can conflict with char _dyld_func_lookup (); below.
10281    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10282    <limits.h> exists even on freestanding compilers.  */
10283
10284#ifdef __STDC__
10285# include <limits.h>
10286#else
10287# include <assert.h>
10288#endif
10289
10290#undef _dyld_func_lookup
10291
10292/* Override any GCC internal prototype to avoid an error.
10293   Use char because int might match the return type of a GCC
10294   builtin and then its argument prototype would still apply.  */
10295#ifdef __cplusplus
10296extern "C"
10297#endif
10298char _dyld_func_lookup ();
10299/* The GNU C library defines this for functions which it implements
10300    to always fail with ENOSYS.  Some functions are actually named
10301    something starting with __ and the normal name is an alias.  */
10302#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10303choke me
10304#endif
10305
10306int
10307main ()
10308{
10309return _dyld_func_lookup ();
10310  ;
10311  return 0;
10312}
10313_ACEOF
10314rm -f conftest.$ac_objext conftest$ac_exeext
10315if { (ac_try="$ac_link"
10316case "(($ac_try" in
10317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10318  *) ac_try_echo=$ac_try;;
10319esac
10320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10321  (eval "$ac_link") 2>conftest.er1
10322  ac_status=$?
10323  grep -v '^ *+' conftest.er1 >conftest.err
10324  rm -f conftest.er1
10325  cat conftest.err >&5
10326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327  (exit $ac_status); } &&
10328	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10329  { (case "(($ac_try" in
10330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10331  *) ac_try_echo=$ac_try;;
10332esac
10333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10334  (eval "$ac_try") 2>&5
10335  ac_status=$?
10336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337  (exit $ac_status); }; } &&
10338	 { ac_try='test -s conftest$ac_exeext'
10339  { (case "(($ac_try" in
10340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10341  *) ac_try_echo=$ac_try;;
10342esac
10343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10344  (eval "$ac_try") 2>&5
10345  ac_status=$?
10346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347  (exit $ac_status); }; }; then
10348  ac_cv_func__dyld_func_lookup=yes
10349else
10350  echo "$as_me: failed program was:" >&5
10351sed 's/^/| /' conftest.$ac_ext >&5
10352
10353	ac_cv_func__dyld_func_lookup=no
10354fi
10355
10356rm -f core conftest.err conftest.$ac_objext \
10357      conftest$ac_exeext conftest.$ac_ext
10358fi
10359{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10360echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10361if test $ac_cv_func__dyld_func_lookup = yes; then
10362
10363cat >>confdefs.h <<\_ACEOF
10364#define HAVE_DYLD 1
10365_ACEOF
10366
10367fi
10368
10369
10370fi
10371
10372
10373fi
10374
10375
10376fi
10377
10378rm -f core conftest.err conftest.$ac_objext \
10379      conftest$ac_exeext conftest.$ac_ext
10380
10381fi
10382
10383
10384fi
10385
10386
10387fi
10388
10389
10390if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10391then
10392  lt_save_LIBS="$LIBS"
10393  LIBS="$LIBS $LIBADD_DL"
10394
10395for ac_func in dlerror
10396do
10397as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10398{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10399echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10400if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10401  echo $ECHO_N "(cached) $ECHO_C" >&6
10402else
10403  cat >conftest.$ac_ext <<_ACEOF
10404/* confdefs.h.  */
10405_ACEOF
10406cat confdefs.h >>conftest.$ac_ext
10407cat >>conftest.$ac_ext <<_ACEOF
10408/* end confdefs.h.  */
10409/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10410   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10411#define $ac_func innocuous_$ac_func
10412
10413/* System header to define __stub macros and hopefully few prototypes,
10414    which can conflict with char $ac_func (); below.
10415    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10416    <limits.h> exists even on freestanding compilers.  */
10417
10418#ifdef __STDC__
10419# include <limits.h>
10420#else
10421# include <assert.h>
10422#endif
10423
10424#undef $ac_func
10425
10426/* Override any GCC internal prototype to avoid an error.
10427   Use char because int might match the return type of a GCC
10428   builtin and then its argument prototype would still apply.  */
10429#ifdef __cplusplus
10430extern "C"
10431#endif
10432char $ac_func ();
10433/* The GNU C library defines this for functions which it implements
10434    to always fail with ENOSYS.  Some functions are actually named
10435    something starting with __ and the normal name is an alias.  */
10436#if defined __stub_$ac_func || defined __stub___$ac_func
10437choke me
10438#endif
10439
10440int
10441main ()
10442{
10443return $ac_func ();
10444  ;
10445  return 0;
10446}
10447_ACEOF
10448rm -f conftest.$ac_objext conftest$ac_exeext
10449if { (ac_try="$ac_link"
10450case "(($ac_try" in
10451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10452  *) ac_try_echo=$ac_try;;
10453esac
10454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10455  (eval "$ac_link") 2>conftest.er1
10456  ac_status=$?
10457  grep -v '^ *+' conftest.er1 >conftest.err
10458  rm -f conftest.er1
10459  cat conftest.err >&5
10460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461  (exit $ac_status); } &&
10462	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10463  { (case "(($ac_try" in
10464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10465  *) ac_try_echo=$ac_try;;
10466esac
10467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10468  (eval "$ac_try") 2>&5
10469  ac_status=$?
10470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471  (exit $ac_status); }; } &&
10472	 { ac_try='test -s conftest$ac_exeext'
10473  { (case "(($ac_try" in
10474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10475  *) ac_try_echo=$ac_try;;
10476esac
10477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10478  (eval "$ac_try") 2>&5
10479  ac_status=$?
10480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481  (exit $ac_status); }; }; then
10482  eval "$as_ac_var=yes"
10483else
10484  echo "$as_me: failed program was:" >&5
10485sed 's/^/| /' conftest.$ac_ext >&5
10486
10487	eval "$as_ac_var=no"
10488fi
10489
10490rm -f core conftest.err conftest.$ac_objext \
10491      conftest$ac_exeext conftest.$ac_ext
10492fi
10493ac_res=`eval echo '${'$as_ac_var'}'`
10494	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10495echo "${ECHO_T}$ac_res" >&6; }
10496if test `eval echo '${'$as_ac_var'}'` = yes; then
10497  cat >>confdefs.h <<_ACEOF
10498#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10499_ACEOF
10500
10501fi
10502done
10503
10504  LIBS="$lt_save_LIBS"
10505fi
10506ac_ext=c
10507ac_cpp='$CPP $CPPFLAGS'
10508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10510ac_compiler_gnu=$ac_cv_c_compiler_gnu
10511
10512
10513
10514{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10515echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10516if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10517  echo $ECHO_N "(cached) $ECHO_C" >&6
10518else
10519  ac_cv_sys_symbol_underscore=no
10520  cat > conftest.$ac_ext <<EOF
10521void nm_test_func(){}
10522int main(){nm_test_func;return 0;}
10523EOF
10524  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10525  (eval $ac_compile) 2>&5
10526  ac_status=$?
10527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528  (exit $ac_status); }; then
10529    # Now try to grab the symbols.
10530    ac_nlist=conftest.nm
10531    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10532  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10533  ac_status=$?
10534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535  (exit $ac_status); } && test -s "$ac_nlist"; then
10536      # See whether the symbols have a leading underscore.
10537      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10538        ac_cv_sys_symbol_underscore=yes
10539      else
10540        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10541	  :
10542        else
10543	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10544        fi
10545      fi
10546    else
10547      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10548    fi
10549  else
10550    echo "configure: failed program was:" >&5
10551    cat conftest.c >&5
10552  fi
10553  rm -rf conftest*
10554
10555fi
10556{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10557echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10558
10559
10560if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10561  if test x"$libltdl_cv_func_dlopen" = xyes ||
10562     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10563	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10564echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10565if test "${libltdl_cv_need_uscore+set}" = set; then
10566  echo $ECHO_N "(cached) $ECHO_C" >&6
10567else
10568  libltdl_cv_need_uscore=unknown
10569          save_LIBS="$LIBS"
10570          LIBS="$LIBS $LIBADD_DL"
10571	  if test "$cross_compiling" = yes; then :
10572  libltdl_cv_need_uscore=cross
10573else
10574  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10575  lt_status=$lt_dlunknown
10576  cat > conftest.$ac_ext <<EOF
10577#line 10563 "configure"
10578#include "confdefs.h"
10579
10580#if HAVE_DLFCN_H
10581#include <dlfcn.h>
10582#endif
10583
10584#include <stdio.h>
10585
10586#ifdef RTLD_GLOBAL
10587#  define LT_DLGLOBAL		RTLD_GLOBAL
10588#else
10589#  ifdef DL_GLOBAL
10590#    define LT_DLGLOBAL		DL_GLOBAL
10591#  else
10592#    define LT_DLGLOBAL		0
10593#  endif
10594#endif
10595
10596/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10597   find out it does not work in some platform. */
10598#ifndef LT_DLLAZY_OR_NOW
10599#  ifdef RTLD_LAZY
10600#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10601#  else
10602#    ifdef DL_LAZY
10603#      define LT_DLLAZY_OR_NOW		DL_LAZY
10604#    else
10605#      ifdef RTLD_NOW
10606#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10607#      else
10608#        ifdef DL_NOW
10609#          define LT_DLLAZY_OR_NOW	DL_NOW
10610#        else
10611#          define LT_DLLAZY_OR_NOW	0
10612#        endif
10613#      endif
10614#    endif
10615#  endif
10616#endif
10617
10618#ifdef __cplusplus
10619extern "C" void exit (int);
10620#endif
10621
10622void fnord() { int i=42;}
10623int main ()
10624{
10625  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10626  int status = $lt_dlunknown;
10627
10628  if (self)
10629    {
10630      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10631      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10632      /* dlclose (self); */
10633    }
10634  else
10635    puts (dlerror ());
10636
10637    exit (status);
10638}
10639EOF
10640  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10641  (eval $ac_link) 2>&5
10642  ac_status=$?
10643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10645    (./conftest; exit; ) >&5 2>/dev/null
10646    lt_status=$?
10647    case x$lt_status in
10648      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10649      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10650      x$lt_dlunknown|x*)  ;;
10651    esac
10652  else :
10653    # compilation failed
10654
10655  fi
10656fi
10657rm -fr conftest*
10658
10659	  LIBS="$save_LIBS"
10660
10661fi
10662{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10663echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10664  fi
10665fi
10666
10667if test x"$libltdl_cv_need_uscore" = xyes; then
10668
10669cat >>confdefs.h <<\_ACEOF
10670#define NEED_USCORE 1
10671_ACEOF
10672
10673fi
10674
10675
10676{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10677echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10678if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10679  echo $ECHO_N "(cached) $ECHO_C" >&6
10680else
10681  # PORTME does your system automatically load deplibs for dlopen?
10682  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10683  # For now, we just catch OSes we know something about -- in the
10684  # future, we'll try test this programmatically.
10685  libltdl_cv_sys_dlopen_deplibs=unknown
10686  case "$host_os" in
10687  aix3*|aix4.1.*|aix4.2.*)
10688    # Unknown whether this is true for these versions of AIX, but
10689    # we want this `case' here to explicitly catch those versions.
10690    libltdl_cv_sys_dlopen_deplibs=unknown
10691    ;;
10692  aix[45]*)
10693    libltdl_cv_sys_dlopen_deplibs=yes
10694    ;;
10695  darwin*)
10696    # Assuming the user has installed a libdl from somewhere, this is true
10697    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10698    libltdl_cv_sys_dlopen_deplibs=yes
10699    ;;
10700  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10701    # GNU and its variants, using gnu ld.so (Glibc)
10702    libltdl_cv_sys_dlopen_deplibs=yes
10703    ;;
10704  hpux10*|hpux11*)
10705    libltdl_cv_sys_dlopen_deplibs=yes
10706    ;;
10707  interix*)
10708    libltdl_cv_sys_dlopen_deplibs=yes
10709    ;;
10710  irix[12345]*|irix6.[01]*)
10711    # Catch all versions of IRIX before 6.2, and indicate that we don't
10712    # know how it worked for any of those versions.
10713    libltdl_cv_sys_dlopen_deplibs=unknown
10714    ;;
10715  irix*)
10716    # The case above catches anything before 6.2, and it's known that
10717    # at 6.2 and later dlopen does load deplibs.
10718    libltdl_cv_sys_dlopen_deplibs=yes
10719    ;;
10720  netbsd*)
10721    libltdl_cv_sys_dlopen_deplibs=yes
10722    ;;
10723  openbsd*)
10724    libltdl_cv_sys_dlopen_deplibs=yes
10725    ;;
10726  osf[1234]*)
10727    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10728    # it did *not* use an RPATH in a shared library to find objects the
10729    # library depends on, so we explictly say `no'.
10730    libltdl_cv_sys_dlopen_deplibs=no
10731    ;;
10732  osf5.0|osf5.0a|osf5.1)
10733    # dlopen *does* load deplibs and with the right loader patch applied
10734    # it even uses RPATH in a shared library to search for shared objects
10735    # that the library depends on, but there's no easy way to know if that
10736    # patch is installed.  Since this is the case, all we can really
10737    # say is unknown -- it depends on the patch being installed.  If
10738    # it is, this changes to `yes'.  Without it, it would be `no'.
10739    libltdl_cv_sys_dlopen_deplibs=unknown
10740    ;;
10741  osf*)
10742    # the two cases above should catch all versions of osf <= 5.1.  Read
10743    # the comments above for what we know about them.
10744    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10745    # is used to find them so we can finally say `yes'.
10746    libltdl_cv_sys_dlopen_deplibs=yes
10747    ;;
10748  solaris*)
10749    libltdl_cv_sys_dlopen_deplibs=yes
10750    ;;
10751  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10752    libltdl_cv_sys_dlopen_deplibs=yes
10753    ;;
10754  esac
10755
10756fi
10757{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10758echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10759if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10760
10761cat >>confdefs.h <<\_ACEOF
10762#define LTDL_DLOPEN_DEPLIBS 1
10763_ACEOF
10764
10765fi
10766
10767
10768for ac_header in argz.h
10769do
10770as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10771if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10772  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10773echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10774if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10775  echo $ECHO_N "(cached) $ECHO_C" >&6
10776fi
10777ac_res=`eval echo '${'$as_ac_Header'}'`
10778	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10779echo "${ECHO_T}$ac_res" >&6; }
10780else
10781  # Is the header compilable?
10782{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10783echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10784cat >conftest.$ac_ext <<_ACEOF
10785/* confdefs.h.  */
10786_ACEOF
10787cat confdefs.h >>conftest.$ac_ext
10788cat >>conftest.$ac_ext <<_ACEOF
10789/* end confdefs.h.  */
10790$ac_includes_default
10791#include <$ac_header>
10792_ACEOF
10793rm -f conftest.$ac_objext
10794if { (ac_try="$ac_compile"
10795case "(($ac_try" in
10796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797  *) ac_try_echo=$ac_try;;
10798esac
10799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10800  (eval "$ac_compile") 2>conftest.er1
10801  ac_status=$?
10802  grep -v '^ *+' conftest.er1 >conftest.err
10803  rm -f conftest.er1
10804  cat conftest.err >&5
10805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806  (exit $ac_status); } &&
10807	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10808  { (case "(($ac_try" in
10809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10810  *) ac_try_echo=$ac_try;;
10811esac
10812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10813  (eval "$ac_try") 2>&5
10814  ac_status=$?
10815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816  (exit $ac_status); }; } &&
10817	 { ac_try='test -s conftest.$ac_objext'
10818  { (case "(($ac_try" in
10819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10820  *) ac_try_echo=$ac_try;;
10821esac
10822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10823  (eval "$ac_try") 2>&5
10824  ac_status=$?
10825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826  (exit $ac_status); }; }; then
10827  ac_header_compiler=yes
10828else
10829  echo "$as_me: failed program was:" >&5
10830sed 's/^/| /' conftest.$ac_ext >&5
10831
10832	ac_header_compiler=no
10833fi
10834
10835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10836{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10837echo "${ECHO_T}$ac_header_compiler" >&6; }
10838
10839# Is the header present?
10840{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10841echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10842cat >conftest.$ac_ext <<_ACEOF
10843/* confdefs.h.  */
10844_ACEOF
10845cat confdefs.h >>conftest.$ac_ext
10846cat >>conftest.$ac_ext <<_ACEOF
10847/* end confdefs.h.  */
10848#include <$ac_header>
10849_ACEOF
10850if { (ac_try="$ac_cpp conftest.$ac_ext"
10851case "(($ac_try" in
10852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853  *) ac_try_echo=$ac_try;;
10854esac
10855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10856  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10857  ac_status=$?
10858  grep -v '^ *+' conftest.er1 >conftest.err
10859  rm -f conftest.er1
10860  cat conftest.err >&5
10861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862  (exit $ac_status); } >/dev/null; then
10863  if test -s conftest.err; then
10864    ac_cpp_err=$ac_c_preproc_warn_flag
10865    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10866  else
10867    ac_cpp_err=
10868  fi
10869else
10870  ac_cpp_err=yes
10871fi
10872if test -z "$ac_cpp_err"; then
10873  ac_header_preproc=yes
10874else
10875  echo "$as_me: failed program was:" >&5
10876sed 's/^/| /' conftest.$ac_ext >&5
10877
10878  ac_header_preproc=no
10879fi
10880
10881rm -f conftest.err conftest.$ac_ext
10882{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10883echo "${ECHO_T}$ac_header_preproc" >&6; }
10884
10885# So?  What about this header?
10886case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10887  yes:no: )
10888    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10889echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10890    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10891echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10892    ac_header_preproc=yes
10893    ;;
10894  no:yes:* )
10895    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10896echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10897    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10898echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10899    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10900echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10901    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10902echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10903    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10904echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10905    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10906echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10907    ( cat <<\_ASBOX
10908## ----------------------------------- ##
10909## Report this to llvmbugs@cs.uiuc.edu ##
10910## ----------------------------------- ##
10911_ASBOX
10912     ) | sed "s/^/$as_me: WARNING:     /" >&2
10913    ;;
10914esac
10915{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10916echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10917if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10918  echo $ECHO_N "(cached) $ECHO_C" >&6
10919else
10920  eval "$as_ac_Header=\$ac_header_preproc"
10921fi
10922ac_res=`eval echo '${'$as_ac_Header'}'`
10923	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10924echo "${ECHO_T}$ac_res" >&6; }
10925
10926fi
10927if test `eval echo '${'$as_ac_Header'}'` = yes; then
10928  cat >>confdefs.h <<_ACEOF
10929#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10930_ACEOF
10931
10932fi
10933
10934done
10935
10936
10937{ echo "$as_me:$LINENO: checking for error_t" >&5
10938echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10939if test "${ac_cv_type_error_t+set}" = set; then
10940  echo $ECHO_N "(cached) $ECHO_C" >&6
10941else
10942  cat >conftest.$ac_ext <<_ACEOF
10943/* confdefs.h.  */
10944_ACEOF
10945cat confdefs.h >>conftest.$ac_ext
10946cat >>conftest.$ac_ext <<_ACEOF
10947/* end confdefs.h.  */
10948#if HAVE_ARGZ_H
10949#  include <argz.h>
10950#endif
10951
10952typedef error_t ac__type_new_;
10953int
10954main ()
10955{
10956if ((ac__type_new_ *) 0)
10957  return 0;
10958if (sizeof (ac__type_new_))
10959  return 0;
10960  ;
10961  return 0;
10962}
10963_ACEOF
10964rm -f conftest.$ac_objext
10965if { (ac_try="$ac_compile"
10966case "(($ac_try" in
10967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10968  *) ac_try_echo=$ac_try;;
10969esac
10970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10971  (eval "$ac_compile") 2>conftest.er1
10972  ac_status=$?
10973  grep -v '^ *+' conftest.er1 >conftest.err
10974  rm -f conftest.er1
10975  cat conftest.err >&5
10976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977  (exit $ac_status); } &&
10978	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10979  { (case "(($ac_try" in
10980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981  *) ac_try_echo=$ac_try;;
10982esac
10983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10984  (eval "$ac_try") 2>&5
10985  ac_status=$?
10986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987  (exit $ac_status); }; } &&
10988	 { ac_try='test -s conftest.$ac_objext'
10989  { (case "(($ac_try" in
10990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991  *) ac_try_echo=$ac_try;;
10992esac
10993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994  (eval "$ac_try") 2>&5
10995  ac_status=$?
10996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997  (exit $ac_status); }; }; then
10998  ac_cv_type_error_t=yes
10999else
11000  echo "$as_me: failed program was:" >&5
11001sed 's/^/| /' conftest.$ac_ext >&5
11002
11003	ac_cv_type_error_t=no
11004fi
11005
11006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11007fi
11008{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11009echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11010if test $ac_cv_type_error_t = yes; then
11011
11012cat >>confdefs.h <<_ACEOF
11013#define HAVE_ERROR_T 1
11014_ACEOF
11015
11016
11017else
11018
11019cat >>confdefs.h <<\_ACEOF
11020#define error_t int
11021_ACEOF
11022
11023fi
11024
11025
11026
11027
11028
11029
11030
11031for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11032do
11033as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11034{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11035echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11036if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11037  echo $ECHO_N "(cached) $ECHO_C" >&6
11038else
11039  cat >conftest.$ac_ext <<_ACEOF
11040/* confdefs.h.  */
11041_ACEOF
11042cat confdefs.h >>conftest.$ac_ext
11043cat >>conftest.$ac_ext <<_ACEOF
11044/* end confdefs.h.  */
11045/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11046   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11047#define $ac_func innocuous_$ac_func
11048
11049/* System header to define __stub macros and hopefully few prototypes,
11050    which can conflict with char $ac_func (); below.
11051    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11052    <limits.h> exists even on freestanding compilers.  */
11053
11054#ifdef __STDC__
11055# include <limits.h>
11056#else
11057# include <assert.h>
11058#endif
11059
11060#undef $ac_func
11061
11062/* Override any GCC internal prototype to avoid an error.
11063   Use char because int might match the return type of a GCC
11064   builtin and then its argument prototype would still apply.  */
11065#ifdef __cplusplus
11066extern "C"
11067#endif
11068char $ac_func ();
11069/* The GNU C library defines this for functions which it implements
11070    to always fail with ENOSYS.  Some functions are actually named
11071    something starting with __ and the normal name is an alias.  */
11072#if defined __stub_$ac_func || defined __stub___$ac_func
11073choke me
11074#endif
11075
11076int
11077main ()
11078{
11079return $ac_func ();
11080  ;
11081  return 0;
11082}
11083_ACEOF
11084rm -f conftest.$ac_objext conftest$ac_exeext
11085if { (ac_try="$ac_link"
11086case "(($ac_try" in
11087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11088  *) ac_try_echo=$ac_try;;
11089esac
11090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11091  (eval "$ac_link") 2>conftest.er1
11092  ac_status=$?
11093  grep -v '^ *+' conftest.er1 >conftest.err
11094  rm -f conftest.er1
11095  cat conftest.err >&5
11096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097  (exit $ac_status); } &&
11098	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11099  { (case "(($ac_try" in
11100  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11101  *) ac_try_echo=$ac_try;;
11102esac
11103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11104  (eval "$ac_try") 2>&5
11105  ac_status=$?
11106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107  (exit $ac_status); }; } &&
11108	 { ac_try='test -s conftest$ac_exeext'
11109  { (case "(($ac_try" in
11110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11111  *) ac_try_echo=$ac_try;;
11112esac
11113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11114  (eval "$ac_try") 2>&5
11115  ac_status=$?
11116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117  (exit $ac_status); }; }; then
11118  eval "$as_ac_var=yes"
11119else
11120  echo "$as_me: failed program was:" >&5
11121sed 's/^/| /' conftest.$ac_ext >&5
11122
11123	eval "$as_ac_var=no"
11124fi
11125
11126rm -f core conftest.err conftest.$ac_objext \
11127      conftest$ac_exeext conftest.$ac_ext
11128fi
11129ac_res=`eval echo '${'$as_ac_var'}'`
11130	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11131echo "${ECHO_T}$ac_res" >&6; }
11132if test `eval echo '${'$as_ac_var'}'` = yes; then
11133  cat >>confdefs.h <<_ACEOF
11134#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11135_ACEOF
11136
11137fi
11138done
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11168		  stdio.h unistd.h
11169do
11170as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11171if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11172  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11173echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11174if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11175  echo $ECHO_N "(cached) $ECHO_C" >&6
11176fi
11177ac_res=`eval echo '${'$as_ac_Header'}'`
11178	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11179echo "${ECHO_T}$ac_res" >&6; }
11180else
11181  # Is the header compilable?
11182{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11183echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11184cat >conftest.$ac_ext <<_ACEOF
11185/* confdefs.h.  */
11186_ACEOF
11187cat confdefs.h >>conftest.$ac_ext
11188cat >>conftest.$ac_ext <<_ACEOF
11189/* end confdefs.h.  */
11190$ac_includes_default
11191#include <$ac_header>
11192_ACEOF
11193rm -f conftest.$ac_objext
11194if { (ac_try="$ac_compile"
11195case "(($ac_try" in
11196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11197  *) ac_try_echo=$ac_try;;
11198esac
11199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11200  (eval "$ac_compile") 2>conftest.er1
11201  ac_status=$?
11202  grep -v '^ *+' conftest.er1 >conftest.err
11203  rm -f conftest.er1
11204  cat conftest.err >&5
11205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206  (exit $ac_status); } &&
11207	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11208  { (case "(($ac_try" in
11209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11210  *) ac_try_echo=$ac_try;;
11211esac
11212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11213  (eval "$ac_try") 2>&5
11214  ac_status=$?
11215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216  (exit $ac_status); }; } &&
11217	 { ac_try='test -s conftest.$ac_objext'
11218  { (case "(($ac_try" in
11219  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11220  *) ac_try_echo=$ac_try;;
11221esac
11222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11223  (eval "$ac_try") 2>&5
11224  ac_status=$?
11225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226  (exit $ac_status); }; }; then
11227  ac_header_compiler=yes
11228else
11229  echo "$as_me: failed program was:" >&5
11230sed 's/^/| /' conftest.$ac_ext >&5
11231
11232	ac_header_compiler=no
11233fi
11234
11235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11236{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11237echo "${ECHO_T}$ac_header_compiler" >&6; }
11238
11239# Is the header present?
11240{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11241echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11242cat >conftest.$ac_ext <<_ACEOF
11243/* confdefs.h.  */
11244_ACEOF
11245cat confdefs.h >>conftest.$ac_ext
11246cat >>conftest.$ac_ext <<_ACEOF
11247/* end confdefs.h.  */
11248#include <$ac_header>
11249_ACEOF
11250if { (ac_try="$ac_cpp conftest.$ac_ext"
11251case "(($ac_try" in
11252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11253  *) ac_try_echo=$ac_try;;
11254esac
11255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11256  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11257  ac_status=$?
11258  grep -v '^ *+' conftest.er1 >conftest.err
11259  rm -f conftest.er1
11260  cat conftest.err >&5
11261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262  (exit $ac_status); } >/dev/null; then
11263  if test -s conftest.err; then
11264    ac_cpp_err=$ac_c_preproc_warn_flag
11265    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11266  else
11267    ac_cpp_err=
11268  fi
11269else
11270  ac_cpp_err=yes
11271fi
11272if test -z "$ac_cpp_err"; then
11273  ac_header_preproc=yes
11274else
11275  echo "$as_me: failed program was:" >&5
11276sed 's/^/| /' conftest.$ac_ext >&5
11277
11278  ac_header_preproc=no
11279fi
11280
11281rm -f conftest.err conftest.$ac_ext
11282{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11283echo "${ECHO_T}$ac_header_preproc" >&6; }
11284
11285# So?  What about this header?
11286case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11287  yes:no: )
11288    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11289echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11290    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11291echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11292    ac_header_preproc=yes
11293    ;;
11294  no:yes:* )
11295    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11296echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11297    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11298echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11299    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11300echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11301    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11302echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11303    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11304echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11305    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11306echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11307    ( cat <<\_ASBOX
11308## ----------------------------------- ##
11309## Report this to llvmbugs@cs.uiuc.edu ##
11310## ----------------------------------- ##
11311_ASBOX
11312     ) | sed "s/^/$as_me: WARNING:     /" >&2
11313    ;;
11314esac
11315{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11316echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11317if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11318  echo $ECHO_N "(cached) $ECHO_C" >&6
11319else
11320  eval "$as_ac_Header=\$ac_header_preproc"
11321fi
11322ac_res=`eval echo '${'$as_ac_Header'}'`
11323	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11324echo "${ECHO_T}$ac_res" >&6; }
11325
11326fi
11327if test `eval echo '${'$as_ac_Header'}'` = yes; then
11328  cat >>confdefs.h <<_ACEOF
11329#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11330_ACEOF
11331
11332fi
11333
11334done
11335
11336
11337
11338
11339
11340for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11341do
11342as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11343if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11344  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11346if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11347  echo $ECHO_N "(cached) $ECHO_C" >&6
11348fi
11349ac_res=`eval echo '${'$as_ac_Header'}'`
11350	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11351echo "${ECHO_T}$ac_res" >&6; }
11352else
11353  # Is the header compilable?
11354{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11355echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11356cat >conftest.$ac_ext <<_ACEOF
11357/* confdefs.h.  */
11358_ACEOF
11359cat confdefs.h >>conftest.$ac_ext
11360cat >>conftest.$ac_ext <<_ACEOF
11361/* end confdefs.h.  */
11362$ac_includes_default
11363#include <$ac_header>
11364_ACEOF
11365rm -f conftest.$ac_objext
11366if { (ac_try="$ac_compile"
11367case "(($ac_try" in
11368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11369  *) ac_try_echo=$ac_try;;
11370esac
11371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11372  (eval "$ac_compile") 2>conftest.er1
11373  ac_status=$?
11374  grep -v '^ *+' conftest.er1 >conftest.err
11375  rm -f conftest.er1
11376  cat conftest.err >&5
11377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378  (exit $ac_status); } &&
11379	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11380  { (case "(($ac_try" in
11381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11382  *) ac_try_echo=$ac_try;;
11383esac
11384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11385  (eval "$ac_try") 2>&5
11386  ac_status=$?
11387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388  (exit $ac_status); }; } &&
11389	 { ac_try='test -s conftest.$ac_objext'
11390  { (case "(($ac_try" in
11391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11392  *) ac_try_echo=$ac_try;;
11393esac
11394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11395  (eval "$ac_try") 2>&5
11396  ac_status=$?
11397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398  (exit $ac_status); }; }; then
11399  ac_header_compiler=yes
11400else
11401  echo "$as_me: failed program was:" >&5
11402sed 's/^/| /' conftest.$ac_ext >&5
11403
11404	ac_header_compiler=no
11405fi
11406
11407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11408{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11409echo "${ECHO_T}$ac_header_compiler" >&6; }
11410
11411# Is the header present?
11412{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11413echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11414cat >conftest.$ac_ext <<_ACEOF
11415/* confdefs.h.  */
11416_ACEOF
11417cat confdefs.h >>conftest.$ac_ext
11418cat >>conftest.$ac_ext <<_ACEOF
11419/* end confdefs.h.  */
11420#include <$ac_header>
11421_ACEOF
11422if { (ac_try="$ac_cpp conftest.$ac_ext"
11423case "(($ac_try" in
11424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11425  *) ac_try_echo=$ac_try;;
11426esac
11427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11428  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11429  ac_status=$?
11430  grep -v '^ *+' conftest.er1 >conftest.err
11431  rm -f conftest.er1
11432  cat conftest.err >&5
11433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434  (exit $ac_status); } >/dev/null; then
11435  if test -s conftest.err; then
11436    ac_cpp_err=$ac_c_preproc_warn_flag
11437    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11438  else
11439    ac_cpp_err=
11440  fi
11441else
11442  ac_cpp_err=yes
11443fi
11444if test -z "$ac_cpp_err"; then
11445  ac_header_preproc=yes
11446else
11447  echo "$as_me: failed program was:" >&5
11448sed 's/^/| /' conftest.$ac_ext >&5
11449
11450  ac_header_preproc=no
11451fi
11452
11453rm -f conftest.err conftest.$ac_ext
11454{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11455echo "${ECHO_T}$ac_header_preproc" >&6; }
11456
11457# So?  What about this header?
11458case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11459  yes:no: )
11460    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11461echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11462    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11463echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11464    ac_header_preproc=yes
11465    ;;
11466  no:yes:* )
11467    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11468echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11469    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11470echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11471    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11472echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11473    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11474echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11475    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11476echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11477    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11478echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11479    ( cat <<\_ASBOX
11480## ----------------------------------- ##
11481## Report this to llvmbugs@cs.uiuc.edu ##
11482## ----------------------------------- ##
11483_ASBOX
11484     ) | sed "s/^/$as_me: WARNING:     /" >&2
11485    ;;
11486esac
11487{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11489if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11490  echo $ECHO_N "(cached) $ECHO_C" >&6
11491else
11492  eval "$as_ac_Header=\$ac_header_preproc"
11493fi
11494ac_res=`eval echo '${'$as_ac_Header'}'`
11495	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11496echo "${ECHO_T}$ac_res" >&6; }
11497
11498fi
11499if test `eval echo '${'$as_ac_Header'}'` = yes; then
11500  cat >>confdefs.h <<_ACEOF
11501#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11502_ACEOF
11503
11504fi
11505
11506done
11507
11508
11509
11510for ac_header in string.h strings.h
11511do
11512as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11513if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11514  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11516if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11517  echo $ECHO_N "(cached) $ECHO_C" >&6
11518fi
11519ac_res=`eval echo '${'$as_ac_Header'}'`
11520	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11521echo "${ECHO_T}$ac_res" >&6; }
11522else
11523  # Is the header compilable?
11524{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11525echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11526cat >conftest.$ac_ext <<_ACEOF
11527/* confdefs.h.  */
11528_ACEOF
11529cat confdefs.h >>conftest.$ac_ext
11530cat >>conftest.$ac_ext <<_ACEOF
11531/* end confdefs.h.  */
11532$ac_includes_default
11533#include <$ac_header>
11534_ACEOF
11535rm -f conftest.$ac_objext
11536if { (ac_try="$ac_compile"
11537case "(($ac_try" in
11538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11539  *) ac_try_echo=$ac_try;;
11540esac
11541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11542  (eval "$ac_compile") 2>conftest.er1
11543  ac_status=$?
11544  grep -v '^ *+' conftest.er1 >conftest.err
11545  rm -f conftest.er1
11546  cat conftest.err >&5
11547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548  (exit $ac_status); } &&
11549	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11550  { (case "(($ac_try" in
11551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11552  *) ac_try_echo=$ac_try;;
11553esac
11554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11555  (eval "$ac_try") 2>&5
11556  ac_status=$?
11557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558  (exit $ac_status); }; } &&
11559	 { ac_try='test -s conftest.$ac_objext'
11560  { (case "(($ac_try" in
11561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11562  *) ac_try_echo=$ac_try;;
11563esac
11564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11565  (eval "$ac_try") 2>&5
11566  ac_status=$?
11567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568  (exit $ac_status); }; }; then
11569  ac_header_compiler=yes
11570else
11571  echo "$as_me: failed program was:" >&5
11572sed 's/^/| /' conftest.$ac_ext >&5
11573
11574	ac_header_compiler=no
11575fi
11576
11577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11578{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11579echo "${ECHO_T}$ac_header_compiler" >&6; }
11580
11581# Is the header present?
11582{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11583echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11584cat >conftest.$ac_ext <<_ACEOF
11585/* confdefs.h.  */
11586_ACEOF
11587cat confdefs.h >>conftest.$ac_ext
11588cat >>conftest.$ac_ext <<_ACEOF
11589/* end confdefs.h.  */
11590#include <$ac_header>
11591_ACEOF
11592if { (ac_try="$ac_cpp conftest.$ac_ext"
11593case "(($ac_try" in
11594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595  *) ac_try_echo=$ac_try;;
11596esac
11597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11598  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11599  ac_status=$?
11600  grep -v '^ *+' conftest.er1 >conftest.err
11601  rm -f conftest.er1
11602  cat conftest.err >&5
11603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604  (exit $ac_status); } >/dev/null; then
11605  if test -s conftest.err; then
11606    ac_cpp_err=$ac_c_preproc_warn_flag
11607    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11608  else
11609    ac_cpp_err=
11610  fi
11611else
11612  ac_cpp_err=yes
11613fi
11614if test -z "$ac_cpp_err"; then
11615  ac_header_preproc=yes
11616else
11617  echo "$as_me: failed program was:" >&5
11618sed 's/^/| /' conftest.$ac_ext >&5
11619
11620  ac_header_preproc=no
11621fi
11622
11623rm -f conftest.err conftest.$ac_ext
11624{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11625echo "${ECHO_T}$ac_header_preproc" >&6; }
11626
11627# So?  What about this header?
11628case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11629  yes:no: )
11630    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11631echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11632    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11633echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11634    ac_header_preproc=yes
11635    ;;
11636  no:yes:* )
11637    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11638echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11639    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11640echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11641    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11642echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11643    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11644echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11645    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11646echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11647    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11648echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11649    ( cat <<\_ASBOX
11650## ----------------------------------- ##
11651## Report this to llvmbugs@cs.uiuc.edu ##
11652## ----------------------------------- ##
11653_ASBOX
11654     ) | sed "s/^/$as_me: WARNING:     /" >&2
11655    ;;
11656esac
11657{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11658echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11659if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11660  echo $ECHO_N "(cached) $ECHO_C" >&6
11661else
11662  eval "$as_ac_Header=\$ac_header_preproc"
11663fi
11664ac_res=`eval echo '${'$as_ac_Header'}'`
11665	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11666echo "${ECHO_T}$ac_res" >&6; }
11667
11668fi
11669if test `eval echo '${'$as_ac_Header'}'` = yes; then
11670  cat >>confdefs.h <<_ACEOF
11671#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11672_ACEOF
11673 break
11674fi
11675
11676done
11677
11678
11679
11680
11681for ac_func in strchr index
11682do
11683as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11684{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11685echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11686if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11687  echo $ECHO_N "(cached) $ECHO_C" >&6
11688else
11689  cat >conftest.$ac_ext <<_ACEOF
11690/* confdefs.h.  */
11691_ACEOF
11692cat confdefs.h >>conftest.$ac_ext
11693cat >>conftest.$ac_ext <<_ACEOF
11694/* end confdefs.h.  */
11695/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11696   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11697#define $ac_func innocuous_$ac_func
11698
11699/* System header to define __stub macros and hopefully few prototypes,
11700    which can conflict with char $ac_func (); below.
11701    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11702    <limits.h> exists even on freestanding compilers.  */
11703
11704#ifdef __STDC__
11705# include <limits.h>
11706#else
11707# include <assert.h>
11708#endif
11709
11710#undef $ac_func
11711
11712/* Override any GCC internal prototype to avoid an error.
11713   Use char because int might match the return type of a GCC
11714   builtin and then its argument prototype would still apply.  */
11715#ifdef __cplusplus
11716extern "C"
11717#endif
11718char $ac_func ();
11719/* The GNU C library defines this for functions which it implements
11720    to always fail with ENOSYS.  Some functions are actually named
11721    something starting with __ and the normal name is an alias.  */
11722#if defined __stub_$ac_func || defined __stub___$ac_func
11723choke me
11724#endif
11725
11726int
11727main ()
11728{
11729return $ac_func ();
11730  ;
11731  return 0;
11732}
11733_ACEOF
11734rm -f conftest.$ac_objext conftest$ac_exeext
11735if { (ac_try="$ac_link"
11736case "(($ac_try" in
11737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738  *) ac_try_echo=$ac_try;;
11739esac
11740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11741  (eval "$ac_link") 2>conftest.er1
11742  ac_status=$?
11743  grep -v '^ *+' conftest.er1 >conftest.err
11744  rm -f conftest.er1
11745  cat conftest.err >&5
11746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747  (exit $ac_status); } &&
11748	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11749  { (case "(($ac_try" in
11750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11751  *) ac_try_echo=$ac_try;;
11752esac
11753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11754  (eval "$ac_try") 2>&5
11755  ac_status=$?
11756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757  (exit $ac_status); }; } &&
11758	 { ac_try='test -s conftest$ac_exeext'
11759  { (case "(($ac_try" in
11760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11761  *) ac_try_echo=$ac_try;;
11762esac
11763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11764  (eval "$ac_try") 2>&5
11765  ac_status=$?
11766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767  (exit $ac_status); }; }; then
11768  eval "$as_ac_var=yes"
11769else
11770  echo "$as_me: failed program was:" >&5
11771sed 's/^/| /' conftest.$ac_ext >&5
11772
11773	eval "$as_ac_var=no"
11774fi
11775
11776rm -f core conftest.err conftest.$ac_objext \
11777      conftest$ac_exeext conftest.$ac_ext
11778fi
11779ac_res=`eval echo '${'$as_ac_var'}'`
11780	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11781echo "${ECHO_T}$ac_res" >&6; }
11782if test `eval echo '${'$as_ac_var'}'` = yes; then
11783  cat >>confdefs.h <<_ACEOF
11784#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11785_ACEOF
11786 break
11787fi
11788done
11789
11790
11791
11792for ac_func in strrchr rindex
11793do
11794as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11795{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11796echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11797if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11798  echo $ECHO_N "(cached) $ECHO_C" >&6
11799else
11800  cat >conftest.$ac_ext <<_ACEOF
11801/* confdefs.h.  */
11802_ACEOF
11803cat confdefs.h >>conftest.$ac_ext
11804cat >>conftest.$ac_ext <<_ACEOF
11805/* end confdefs.h.  */
11806/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11807   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11808#define $ac_func innocuous_$ac_func
11809
11810/* System header to define __stub macros and hopefully few prototypes,
11811    which can conflict with char $ac_func (); below.
11812    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11813    <limits.h> exists even on freestanding compilers.  */
11814
11815#ifdef __STDC__
11816# include <limits.h>
11817#else
11818# include <assert.h>
11819#endif
11820
11821#undef $ac_func
11822
11823/* Override any GCC internal prototype to avoid an error.
11824   Use char because int might match the return type of a GCC
11825   builtin and then its argument prototype would still apply.  */
11826#ifdef __cplusplus
11827extern "C"
11828#endif
11829char $ac_func ();
11830/* The GNU C library defines this for functions which it implements
11831    to always fail with ENOSYS.  Some functions are actually named
11832    something starting with __ and the normal name is an alias.  */
11833#if defined __stub_$ac_func || defined __stub___$ac_func
11834choke me
11835#endif
11836
11837int
11838main ()
11839{
11840return $ac_func ();
11841  ;
11842  return 0;
11843}
11844_ACEOF
11845rm -f conftest.$ac_objext conftest$ac_exeext
11846if { (ac_try="$ac_link"
11847case "(($ac_try" in
11848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11849  *) ac_try_echo=$ac_try;;
11850esac
11851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11852  (eval "$ac_link") 2>conftest.er1
11853  ac_status=$?
11854  grep -v '^ *+' conftest.er1 >conftest.err
11855  rm -f conftest.er1
11856  cat conftest.err >&5
11857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858  (exit $ac_status); } &&
11859	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11860  { (case "(($ac_try" in
11861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862  *) ac_try_echo=$ac_try;;
11863esac
11864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865  (eval "$ac_try") 2>&5
11866  ac_status=$?
11867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868  (exit $ac_status); }; } &&
11869	 { ac_try='test -s conftest$ac_exeext'
11870  { (case "(($ac_try" in
11871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11872  *) ac_try_echo=$ac_try;;
11873esac
11874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11875  (eval "$ac_try") 2>&5
11876  ac_status=$?
11877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878  (exit $ac_status); }; }; then
11879  eval "$as_ac_var=yes"
11880else
11881  echo "$as_me: failed program was:" >&5
11882sed 's/^/| /' conftest.$ac_ext >&5
11883
11884	eval "$as_ac_var=no"
11885fi
11886
11887rm -f core conftest.err conftest.$ac_objext \
11888      conftest$ac_exeext conftest.$ac_ext
11889fi
11890ac_res=`eval echo '${'$as_ac_var'}'`
11891	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11892echo "${ECHO_T}$ac_res" >&6; }
11893if test `eval echo '${'$as_ac_var'}'` = yes; then
11894  cat >>confdefs.h <<_ACEOF
11895#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11896_ACEOF
11897 break
11898fi
11899done
11900
11901
11902
11903for ac_func in memcpy bcopy
11904do
11905as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11906{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11907echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11908if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11909  echo $ECHO_N "(cached) $ECHO_C" >&6
11910else
11911  cat >conftest.$ac_ext <<_ACEOF
11912/* confdefs.h.  */
11913_ACEOF
11914cat confdefs.h >>conftest.$ac_ext
11915cat >>conftest.$ac_ext <<_ACEOF
11916/* end confdefs.h.  */
11917/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11918   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11919#define $ac_func innocuous_$ac_func
11920
11921/* System header to define __stub macros and hopefully few prototypes,
11922    which can conflict with char $ac_func (); below.
11923    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11924    <limits.h> exists even on freestanding compilers.  */
11925
11926#ifdef __STDC__
11927# include <limits.h>
11928#else
11929# include <assert.h>
11930#endif
11931
11932#undef $ac_func
11933
11934/* Override any GCC internal prototype to avoid an error.
11935   Use char because int might match the return type of a GCC
11936   builtin and then its argument prototype would still apply.  */
11937#ifdef __cplusplus
11938extern "C"
11939#endif
11940char $ac_func ();
11941/* The GNU C library defines this for functions which it implements
11942    to always fail with ENOSYS.  Some functions are actually named
11943    something starting with __ and the normal name is an alias.  */
11944#if defined __stub_$ac_func || defined __stub___$ac_func
11945choke me
11946#endif
11947
11948int
11949main ()
11950{
11951return $ac_func ();
11952  ;
11953  return 0;
11954}
11955_ACEOF
11956rm -f conftest.$ac_objext conftest$ac_exeext
11957if { (ac_try="$ac_link"
11958case "(($ac_try" in
11959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11960  *) ac_try_echo=$ac_try;;
11961esac
11962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11963  (eval "$ac_link") 2>conftest.er1
11964  ac_status=$?
11965  grep -v '^ *+' conftest.er1 >conftest.err
11966  rm -f conftest.er1
11967  cat conftest.err >&5
11968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969  (exit $ac_status); } &&
11970	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11971  { (case "(($ac_try" in
11972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11973  *) ac_try_echo=$ac_try;;
11974esac
11975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11976  (eval "$ac_try") 2>&5
11977  ac_status=$?
11978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979  (exit $ac_status); }; } &&
11980	 { ac_try='test -s conftest$ac_exeext'
11981  { (case "(($ac_try" in
11982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983  *) ac_try_echo=$ac_try;;
11984esac
11985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11986  (eval "$ac_try") 2>&5
11987  ac_status=$?
11988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989  (exit $ac_status); }; }; then
11990  eval "$as_ac_var=yes"
11991else
11992  echo "$as_me: failed program was:" >&5
11993sed 's/^/| /' conftest.$ac_ext >&5
11994
11995	eval "$as_ac_var=no"
11996fi
11997
11998rm -f core conftest.err conftest.$ac_objext \
11999      conftest$ac_exeext conftest.$ac_ext
12000fi
12001ac_res=`eval echo '${'$as_ac_var'}'`
12002	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12003echo "${ECHO_T}$ac_res" >&6; }
12004if test `eval echo '${'$as_ac_var'}'` = yes; then
12005  cat >>confdefs.h <<_ACEOF
12006#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12007_ACEOF
12008 break
12009fi
12010done
12011
12012
12013
12014for ac_func in memmove strcmp
12015do
12016as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12017{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12018echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12019if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12020  echo $ECHO_N "(cached) $ECHO_C" >&6
12021else
12022  cat >conftest.$ac_ext <<_ACEOF
12023/* confdefs.h.  */
12024_ACEOF
12025cat confdefs.h >>conftest.$ac_ext
12026cat >>conftest.$ac_ext <<_ACEOF
12027/* end confdefs.h.  */
12028/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12029   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12030#define $ac_func innocuous_$ac_func
12031
12032/* System header to define __stub macros and hopefully few prototypes,
12033    which can conflict with char $ac_func (); below.
12034    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12035    <limits.h> exists even on freestanding compilers.  */
12036
12037#ifdef __STDC__
12038# include <limits.h>
12039#else
12040# include <assert.h>
12041#endif
12042
12043#undef $ac_func
12044
12045/* Override any GCC internal prototype to avoid an error.
12046   Use char because int might match the return type of a GCC
12047   builtin and then its argument prototype would still apply.  */
12048#ifdef __cplusplus
12049extern "C"
12050#endif
12051char $ac_func ();
12052/* The GNU C library defines this for functions which it implements
12053    to always fail with ENOSYS.  Some functions are actually named
12054    something starting with __ and the normal name is an alias.  */
12055#if defined __stub_$ac_func || defined __stub___$ac_func
12056choke me
12057#endif
12058
12059int
12060main ()
12061{
12062return $ac_func ();
12063  ;
12064  return 0;
12065}
12066_ACEOF
12067rm -f conftest.$ac_objext conftest$ac_exeext
12068if { (ac_try="$ac_link"
12069case "(($ac_try" in
12070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071  *) ac_try_echo=$ac_try;;
12072esac
12073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12074  (eval "$ac_link") 2>conftest.er1
12075  ac_status=$?
12076  grep -v '^ *+' conftest.er1 >conftest.err
12077  rm -f conftest.er1
12078  cat conftest.err >&5
12079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080  (exit $ac_status); } &&
12081	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12082  { (case "(($ac_try" in
12083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084  *) ac_try_echo=$ac_try;;
12085esac
12086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12087  (eval "$ac_try") 2>&5
12088  ac_status=$?
12089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090  (exit $ac_status); }; } &&
12091	 { ac_try='test -s conftest$ac_exeext'
12092  { (case "(($ac_try" in
12093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094  *) ac_try_echo=$ac_try;;
12095esac
12096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12097  (eval "$ac_try") 2>&5
12098  ac_status=$?
12099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100  (exit $ac_status); }; }; then
12101  eval "$as_ac_var=yes"
12102else
12103  echo "$as_me: failed program was:" >&5
12104sed 's/^/| /' conftest.$ac_ext >&5
12105
12106	eval "$as_ac_var=no"
12107fi
12108
12109rm -f core conftest.err conftest.$ac_objext \
12110      conftest$ac_exeext conftest.$ac_ext
12111fi
12112ac_res=`eval echo '${'$as_ac_var'}'`
12113	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12114echo "${ECHO_T}$ac_res" >&6; }
12115if test `eval echo '${'$as_ac_var'}'` = yes; then
12116  cat >>confdefs.h <<_ACEOF
12117#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12118_ACEOF
12119
12120fi
12121done
12122
12123
12124
12125
12126for ac_func in closedir opendir readdir
12127do
12128as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12129{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12130echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12131if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12132  echo $ECHO_N "(cached) $ECHO_C" >&6
12133else
12134  cat >conftest.$ac_ext <<_ACEOF
12135/* confdefs.h.  */
12136_ACEOF
12137cat confdefs.h >>conftest.$ac_ext
12138cat >>conftest.$ac_ext <<_ACEOF
12139/* end confdefs.h.  */
12140/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12141   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12142#define $ac_func innocuous_$ac_func
12143
12144/* System header to define __stub macros and hopefully few prototypes,
12145    which can conflict with char $ac_func (); below.
12146    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12147    <limits.h> exists even on freestanding compilers.  */
12148
12149#ifdef __STDC__
12150# include <limits.h>
12151#else
12152# include <assert.h>
12153#endif
12154
12155#undef $ac_func
12156
12157/* Override any GCC internal prototype to avoid an error.
12158   Use char because int might match the return type of a GCC
12159   builtin and then its argument prototype would still apply.  */
12160#ifdef __cplusplus
12161extern "C"
12162#endif
12163char $ac_func ();
12164/* The GNU C library defines this for functions which it implements
12165    to always fail with ENOSYS.  Some functions are actually named
12166    something starting with __ and the normal name is an alias.  */
12167#if defined __stub_$ac_func || defined __stub___$ac_func
12168choke me
12169#endif
12170
12171int
12172main ()
12173{
12174return $ac_func ();
12175  ;
12176  return 0;
12177}
12178_ACEOF
12179rm -f conftest.$ac_objext conftest$ac_exeext
12180if { (ac_try="$ac_link"
12181case "(($ac_try" in
12182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12183  *) ac_try_echo=$ac_try;;
12184esac
12185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12186  (eval "$ac_link") 2>conftest.er1
12187  ac_status=$?
12188  grep -v '^ *+' conftest.er1 >conftest.err
12189  rm -f conftest.er1
12190  cat conftest.err >&5
12191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192  (exit $ac_status); } &&
12193	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12194  { (case "(($ac_try" in
12195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12196  *) ac_try_echo=$ac_try;;
12197esac
12198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12199  (eval "$ac_try") 2>&5
12200  ac_status=$?
12201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202  (exit $ac_status); }; } &&
12203	 { ac_try='test -s conftest$ac_exeext'
12204  { (case "(($ac_try" in
12205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12206  *) ac_try_echo=$ac_try;;
12207esac
12208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12209  (eval "$ac_try") 2>&5
12210  ac_status=$?
12211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212  (exit $ac_status); }; }; then
12213  eval "$as_ac_var=yes"
12214else
12215  echo "$as_me: failed program was:" >&5
12216sed 's/^/| /' conftest.$ac_ext >&5
12217
12218	eval "$as_ac_var=no"
12219fi
12220
12221rm -f core conftest.err conftest.$ac_objext \
12222      conftest$ac_exeext conftest.$ac_ext
12223fi
12224ac_res=`eval echo '${'$as_ac_var'}'`
12225	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12226echo "${ECHO_T}$ac_res" >&6; }
12227if test `eval echo '${'$as_ac_var'}'` = yes; then
12228  cat >>confdefs.h <<_ACEOF
12229#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12230_ACEOF
12231
12232fi
12233done
12234
12235
12236# Check whether --enable-shared was given.
12237if test "${enable_shared+set}" = set; then
12238  enableval=$enable_shared; p=${PACKAGE-default}
12239    case $enableval in
12240    yes) enable_shared=yes ;;
12241    no) enable_shared=no ;;
12242    *)
12243      enable_shared=no
12244      # Look at the argument we got.  We use all the common list separators.
12245      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12246      for pkg in $enableval; do
12247	IFS="$lt_save_ifs"
12248	if test "X$pkg" = "X$p"; then
12249	  enable_shared=yes
12250	fi
12251      done
12252      IFS="$lt_save_ifs"
12253      ;;
12254    esac
12255else
12256  enable_shared=yes
12257fi
12258
12259
12260# Check whether --enable-static was given.
12261if test "${enable_static+set}" = set; then
12262  enableval=$enable_static; p=${PACKAGE-default}
12263    case $enableval in
12264    yes) enable_static=yes ;;
12265    no) enable_static=no ;;
12266    *)
12267     enable_static=no
12268      # Look at the argument we got.  We use all the common list separators.
12269      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12270      for pkg in $enableval; do
12271	IFS="$lt_save_ifs"
12272	if test "X$pkg" = "X$p"; then
12273	  enable_static=yes
12274	fi
12275      done
12276      IFS="$lt_save_ifs"
12277      ;;
12278    esac
12279else
12280  enable_static=yes
12281fi
12282
12283
12284# Check whether --enable-fast-install was given.
12285if test "${enable_fast_install+set}" = set; then
12286  enableval=$enable_fast_install; p=${PACKAGE-default}
12287    case $enableval in
12288    yes) enable_fast_install=yes ;;
12289    no) enable_fast_install=no ;;
12290    *)
12291      enable_fast_install=no
12292      # Look at the argument we got.  We use all the common list separators.
12293      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12294      for pkg in $enableval; do
12295	IFS="$lt_save_ifs"
12296	if test "X$pkg" = "X$p"; then
12297	  enable_fast_install=yes
12298	fi
12299      done
12300      IFS="$lt_save_ifs"
12301      ;;
12302    esac
12303else
12304  enable_fast_install=yes
12305fi
12306
12307
12308{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12309echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12310if test "${lt_cv_path_SED+set}" = set; then
12311  echo $ECHO_N "(cached) $ECHO_C" >&6
12312else
12313  # Loop through the user's path and test for sed and gsed.
12314# Then use that list of sed's as ones to test for truncation.
12315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12316for as_dir in $PATH
12317do
12318  IFS=$as_save_IFS
12319  test -z "$as_dir" && as_dir=.
12320  for lt_ac_prog in sed gsed; do
12321    for ac_exec_ext in '' $ac_executable_extensions; do
12322      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12323        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12324      fi
12325    done
12326  done
12327done
12328lt_ac_max=0
12329lt_ac_count=0
12330# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12331# along with /bin/sed that truncates output.
12332for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12333  test ! -f $lt_ac_sed && continue
12334  cat /dev/null > conftest.in
12335  lt_ac_count=0
12336  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12337  # Check for GNU sed and select it if it is found.
12338  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12339    lt_cv_path_SED=$lt_ac_sed
12340    break
12341  fi
12342  while true; do
12343    cat conftest.in conftest.in >conftest.tmp
12344    mv conftest.tmp conftest.in
12345    cp conftest.in conftest.nl
12346    echo >>conftest.nl
12347    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12348    cmp -s conftest.out conftest.nl || break
12349    # 10000 chars as input seems more than enough
12350    test $lt_ac_count -gt 10 && break
12351    lt_ac_count=`expr $lt_ac_count + 1`
12352    if test $lt_ac_count -gt $lt_ac_max; then
12353      lt_ac_max=$lt_ac_count
12354      lt_cv_path_SED=$lt_ac_sed
12355    fi
12356  done
12357done
12358
12359fi
12360
12361SED=$lt_cv_path_SED
12362{ echo "$as_me:$LINENO: result: $SED" >&5
12363echo "${ECHO_T}$SED" >&6; }
12364
12365
12366# Check whether --with-gnu-ld was given.
12367if test "${with_gnu_ld+set}" = set; then
12368  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12369else
12370  with_gnu_ld=no
12371fi
12372
12373ac_prog=ld
12374if test "$GCC" = yes; then
12375  # Check if gcc -print-prog-name=ld gives a path.
12376  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12377echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12378  case $host in
12379  *-*-mingw*)
12380    # gcc leaves a trailing carriage return which upsets mingw
12381    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12382  *)
12383    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12384  esac
12385  case $ac_prog in
12386    # Accept absolute paths.
12387    [\\/]* | ?:[\\/]*)
12388      re_direlt='/[^/][^/]*/\.\./'
12389      # Canonicalize the pathname of ld
12390      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12391      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12392	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12393      done
12394      test -z "$LD" && LD="$ac_prog"
12395      ;;
12396  "")
12397    # If it fails, then pretend we aren't using GCC.
12398    ac_prog=ld
12399    ;;
12400  *)
12401    # If it is relative, then search for the first ld in PATH.
12402    with_gnu_ld=unknown
12403    ;;
12404  esac
12405elif test "$with_gnu_ld" = yes; then
12406  { echo "$as_me:$LINENO: checking for GNU ld" >&5
12407echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12408else
12409  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12410echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12411fi
12412if test "${lt_cv_path_LD+set}" = set; then
12413  echo $ECHO_N "(cached) $ECHO_C" >&6
12414else
12415  if test -z "$LD"; then
12416  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12417  for ac_dir in $PATH; do
12418    IFS="$lt_save_ifs"
12419    test -z "$ac_dir" && ac_dir=.
12420    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12421      lt_cv_path_LD="$ac_dir/$ac_prog"
12422      # Check to see if the program is GNU ld.  I'd rather use --version,
12423      # but apparently some variants of GNU ld only accept -v.
12424      # Break only if it was the GNU/non-GNU ld that we prefer.
12425      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12426      *GNU* | *'with BFD'*)
12427	test "$with_gnu_ld" != no && break
12428	;;
12429      *)
12430	test "$with_gnu_ld" != yes && break
12431	;;
12432      esac
12433    fi
12434  done
12435  IFS="$lt_save_ifs"
12436else
12437  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12438fi
12439fi
12440
12441LD="$lt_cv_path_LD"
12442if test -n "$LD"; then
12443  { echo "$as_me:$LINENO: result: $LD" >&5
12444echo "${ECHO_T}$LD" >&6; }
12445else
12446  { echo "$as_me:$LINENO: result: no" >&5
12447echo "${ECHO_T}no" >&6; }
12448fi
12449test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12450echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12451   { (exit 1); exit 1; }; }
12452{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12453echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12454if test "${lt_cv_prog_gnu_ld+set}" = set; then
12455  echo $ECHO_N "(cached) $ECHO_C" >&6
12456else
12457  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12458case `$LD -v 2>&1 </dev/null` in
12459*GNU* | *'with BFD'*)
12460  lt_cv_prog_gnu_ld=yes
12461  ;;
12462*)
12463  lt_cv_prog_gnu_ld=no
12464  ;;
12465esac
12466fi
12467{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12468echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12469with_gnu_ld=$lt_cv_prog_gnu_ld
12470
12471
12472{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12473echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12474if test "${lt_cv_ld_reload_flag+set}" = set; then
12475  echo $ECHO_N "(cached) $ECHO_C" >&6
12476else
12477  lt_cv_ld_reload_flag='-r'
12478fi
12479{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12480echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12481reload_flag=$lt_cv_ld_reload_flag
12482case $reload_flag in
12483"" | " "*) ;;
12484*) reload_flag=" $reload_flag" ;;
12485esac
12486reload_cmds='$LD$reload_flag -o $output$reload_objs'
12487case $host_os in
12488  darwin*)
12489    if test "$GCC" = yes; then
12490      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12491    else
12492      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12493    fi
12494    ;;
12495esac
12496
12497{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12498echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12499if test "${lt_cv_deplibs_check_method+set}" = set; then
12500  echo $ECHO_N "(cached) $ECHO_C" >&6
12501else
12502  lt_cv_file_magic_cmd='$MAGIC_CMD'
12503lt_cv_file_magic_test_file=
12504lt_cv_deplibs_check_method='unknown'
12505# Need to set the preceding variable on all platforms that support
12506# interlibrary dependencies.
12507# 'none' -- dependencies not supported.
12508# `unknown' -- same as none, but documents that we really don't know.
12509# 'pass_all' -- all dependencies passed with no checks.
12510# 'test_compile' -- check by making test program.
12511# 'file_magic [[regex]]' -- check by looking for files in library path
12512# which responds to the $file_magic_cmd with a given extended regex.
12513# If you have `file' or equivalent on your system and you're not sure
12514# whether `pass_all' will *always* work, you probably want this one.
12515
12516case $host_os in
12517aix4* | aix5*)
12518  lt_cv_deplibs_check_method=pass_all
12519  ;;
12520
12521beos*)
12522  lt_cv_deplibs_check_method=pass_all
12523  ;;
12524
12525bsdi[45]*)
12526  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12527  lt_cv_file_magic_cmd='/usr/bin/file -L'
12528  lt_cv_file_magic_test_file=/shlib/libc.so
12529  ;;
12530
12531cygwin*)
12532  # func_win32_libid is a shell function defined in ltmain.sh
12533  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12534  lt_cv_file_magic_cmd='func_win32_libid'
12535  ;;
12536
12537mingw* | pw32*)
12538  # Base MSYS/MinGW do not provide the 'file' command needed by
12539  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12540  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12541  lt_cv_file_magic_cmd='$OBJDUMP -f'
12542  ;;
12543
12544darwin* | rhapsody*)
12545  lt_cv_deplibs_check_method=pass_all
12546  ;;
12547
12548freebsd* | kfreebsd*-gnu | dragonfly*)
12549  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12550    case $host_cpu in
12551    i*86 )
12552      # Not sure whether the presence of OpenBSD here was a mistake.
12553      # Let's accept both of them until this is cleared up.
12554      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12555      lt_cv_file_magic_cmd=/usr/bin/file
12556      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12557      ;;
12558    esac
12559  else
12560    lt_cv_deplibs_check_method=pass_all
12561  fi
12562  ;;
12563
12564gnu*)
12565  lt_cv_deplibs_check_method=pass_all
12566  ;;
12567
12568hpux10.20* | hpux11*)
12569  lt_cv_file_magic_cmd=/usr/bin/file
12570  case $host_cpu in
12571  ia64*)
12572    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12573    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12574    ;;
12575  hppa*64*)
12576    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]'
12577    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12578    ;;
12579  *)
12580    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12581    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12582    ;;
12583  esac
12584  ;;
12585
12586interix3*)
12587  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12588  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12589  ;;
12590
12591irix5* | irix6* | nonstopux*)
12592  case $LD in
12593  *-32|*"-32 ") libmagic=32-bit;;
12594  *-n32|*"-n32 ") libmagic=N32;;
12595  *-64|*"-64 ") libmagic=64-bit;;
12596  *) libmagic=never-match;;
12597  esac
12598  lt_cv_deplibs_check_method=pass_all
12599  ;;
12600
12601# This must be Linux ELF.
12602linux*)
12603  lt_cv_deplibs_check_method=pass_all
12604  ;;
12605
12606netbsd*)
12607  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12608    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12609  else
12610    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12611  fi
12612  ;;
12613
12614newos6*)
12615  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12616  lt_cv_file_magic_cmd=/usr/bin/file
12617  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12618  ;;
12619
12620nto-qnx*)
12621  lt_cv_deplibs_check_method=unknown
12622  ;;
12623
12624openbsd*)
12625  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12626    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12627  else
12628    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12629  fi
12630  ;;
12631
12632osf3* | osf4* | osf5*)
12633  lt_cv_deplibs_check_method=pass_all
12634  ;;
12635
12636solaris*)
12637  lt_cv_deplibs_check_method=pass_all
12638  ;;
12639
12640sysv4 | sysv4.3*)
12641  case $host_vendor in
12642  motorola)
12643    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]'
12644    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12645    ;;
12646  ncr)
12647    lt_cv_deplibs_check_method=pass_all
12648    ;;
12649  sequent)
12650    lt_cv_file_magic_cmd='/bin/file'
12651    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12652    ;;
12653  sni)
12654    lt_cv_file_magic_cmd='/bin/file'
12655    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12656    lt_cv_file_magic_test_file=/lib/libc.so
12657    ;;
12658  siemens)
12659    lt_cv_deplibs_check_method=pass_all
12660    ;;
12661  pc)
12662    lt_cv_deplibs_check_method=pass_all
12663    ;;
12664  esac
12665  ;;
12666
12667sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12668  lt_cv_deplibs_check_method=pass_all
12669  ;;
12670esac
12671
12672fi
12673{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12674echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12675file_magic_cmd=$lt_cv_file_magic_cmd
12676deplibs_check_method=$lt_cv_deplibs_check_method
12677test -z "$deplibs_check_method" && deplibs_check_method=unknown
12678
12679
12680
12681# If no C compiler was specified, use CC.
12682LTCC=${LTCC-"$CC"}
12683
12684# If no C compiler flags were specified, use CFLAGS.
12685LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12686
12687# Allow CC to be a program name with arguments.
12688compiler=$CC
12689
12690# Check whether --enable-libtool-lock was given.
12691if test "${enable_libtool_lock+set}" = set; then
12692  enableval=$enable_libtool_lock;
12693fi
12694
12695test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12696
12697# Some flags need to be propagated to the compiler or linker for good
12698# libtool support.
12699case $host in
12700ia64-*-hpux*)
12701  # Find out which ABI we are using.
12702  echo 'int i;' > conftest.$ac_ext
12703  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12704  (eval $ac_compile) 2>&5
12705  ac_status=$?
12706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707  (exit $ac_status); }; then
12708    case `/usr/bin/file conftest.$ac_objext` in
12709    *ELF-32*)
12710      HPUX_IA64_MODE="32"
12711      ;;
12712    *ELF-64*)
12713      HPUX_IA64_MODE="64"
12714      ;;
12715    esac
12716  fi
12717  rm -rf conftest*
12718  ;;
12719*-*-irix6*)
12720  # Find out which ABI we are using.
12721  echo '#line 12707 "configure"' > conftest.$ac_ext
12722  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12723  (eval $ac_compile) 2>&5
12724  ac_status=$?
12725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726  (exit $ac_status); }; then
12727   if test "$lt_cv_prog_gnu_ld" = yes; then
12728    case `/usr/bin/file conftest.$ac_objext` in
12729    *32-bit*)
12730      LD="${LD-ld} -melf32bsmip"
12731      ;;
12732    *N32*)
12733      LD="${LD-ld} -melf32bmipn32"
12734      ;;
12735    *64-bit*)
12736      LD="${LD-ld} -melf64bmip"
12737      ;;
12738    esac
12739   else
12740    case `/usr/bin/file conftest.$ac_objext` in
12741    *32-bit*)
12742      LD="${LD-ld} -32"
12743      ;;
12744    *N32*)
12745      LD="${LD-ld} -n32"
12746      ;;
12747    *64-bit*)
12748      LD="${LD-ld} -64"
12749      ;;
12750    esac
12751   fi
12752  fi
12753  rm -rf conftest*
12754  ;;
12755
12756x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12757  # Find out which ABI we are using.
12758  echo 'int i;' > conftest.$ac_ext
12759  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12760  (eval $ac_compile) 2>&5
12761  ac_status=$?
12762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763  (exit $ac_status); }; then
12764    case `/usr/bin/file conftest.o` in
12765    *32-bit*)
12766      case $host in
12767        x86_64-*linux*)
12768          LD="${LD-ld} -m elf_i386"
12769          ;;
12770        ppc64-*linux*|powerpc64-*linux*)
12771          LD="${LD-ld} -m elf32ppclinux"
12772          ;;
12773        s390x-*linux*)
12774          LD="${LD-ld} -m elf_s390"
12775          ;;
12776        sparc64-*linux*)
12777          LD="${LD-ld} -m elf32_sparc"
12778          ;;
12779      esac
12780      ;;
12781    *64-bit*)
12782      case $host in
12783        x86_64-*linux*)
12784          LD="${LD-ld} -m elf_x86_64"
12785          ;;
12786        ppc*-*linux*|powerpc*-*linux*)
12787          LD="${LD-ld} -m elf64ppc"
12788          ;;
12789        s390*-*linux*)
12790          LD="${LD-ld} -m elf64_s390"
12791          ;;
12792        sparc*-*linux*)
12793          LD="${LD-ld} -m elf64_sparc"
12794          ;;
12795      esac
12796      ;;
12797    esac
12798  fi
12799  rm -rf conftest*
12800  ;;
12801
12802*-*-sco3.2v5*)
12803  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12804  SAVE_CFLAGS="$CFLAGS"
12805  CFLAGS="$CFLAGS -belf"
12806  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12807echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12808if test "${lt_cv_cc_needs_belf+set}" = set; then
12809  echo $ECHO_N "(cached) $ECHO_C" >&6
12810else
12811  ac_ext=c
12812ac_cpp='$CPP $CPPFLAGS'
12813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12815ac_compiler_gnu=$ac_cv_c_compiler_gnu
12816
12817     cat >conftest.$ac_ext <<_ACEOF
12818/* confdefs.h.  */
12819_ACEOF
12820cat confdefs.h >>conftest.$ac_ext
12821cat >>conftest.$ac_ext <<_ACEOF
12822/* end confdefs.h.  */
12823
12824int
12825main ()
12826{
12827
12828  ;
12829  return 0;
12830}
12831_ACEOF
12832rm -f conftest.$ac_objext conftest$ac_exeext
12833if { (ac_try="$ac_link"
12834case "(($ac_try" in
12835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12836  *) ac_try_echo=$ac_try;;
12837esac
12838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12839  (eval "$ac_link") 2>conftest.er1
12840  ac_status=$?
12841  grep -v '^ *+' conftest.er1 >conftest.err
12842  rm -f conftest.er1
12843  cat conftest.err >&5
12844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845  (exit $ac_status); } &&
12846	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12847  { (case "(($ac_try" in
12848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849  *) ac_try_echo=$ac_try;;
12850esac
12851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12852  (eval "$ac_try") 2>&5
12853  ac_status=$?
12854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855  (exit $ac_status); }; } &&
12856	 { ac_try='test -s conftest$ac_exeext'
12857  { (case "(($ac_try" in
12858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859  *) ac_try_echo=$ac_try;;
12860esac
12861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862  (eval "$ac_try") 2>&5
12863  ac_status=$?
12864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865  (exit $ac_status); }; }; then
12866  lt_cv_cc_needs_belf=yes
12867else
12868  echo "$as_me: failed program was:" >&5
12869sed 's/^/| /' conftest.$ac_ext >&5
12870
12871	lt_cv_cc_needs_belf=no
12872fi
12873
12874rm -f core conftest.err conftest.$ac_objext \
12875      conftest$ac_exeext conftest.$ac_ext
12876     ac_ext=c
12877ac_cpp='$CPP $CPPFLAGS'
12878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12880ac_compiler_gnu=$ac_cv_c_compiler_gnu
12881
12882fi
12883{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12884echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12885  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12886    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12887    CFLAGS="$SAVE_CFLAGS"
12888  fi
12889  ;;
12890sparc*-*solaris*)
12891  # Find out which ABI we are using.
12892  echo 'int i;' > conftest.$ac_ext
12893  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12894  (eval $ac_compile) 2>&5
12895  ac_status=$?
12896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897  (exit $ac_status); }; then
12898    case `/usr/bin/file conftest.o` in
12899    *64-bit*)
12900      case $lt_cv_prog_gnu_ld in
12901      yes*) LD="${LD-ld} -m elf64_sparc" ;;
12902      *)    LD="${LD-ld} -64" ;;
12903      esac
12904      ;;
12905    esac
12906  fi
12907  rm -rf conftest*
12908  ;;
12909
12910
12911esac
12912
12913need_locks="$enable_libtool_lock"
12914
12915
12916
12917
12918if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12919    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12920    (test "X$CXX" != "Xg++"))) ; then
12921  ac_ext=cpp
12922ac_cpp='$CXXCPP $CPPFLAGS'
12923ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12924ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12925ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12926{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12927echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12928if test -z "$CXXCPP"; then
12929  if test "${ac_cv_prog_CXXCPP+set}" = set; then
12930  echo $ECHO_N "(cached) $ECHO_C" >&6
12931else
12932      # Double quotes because CXXCPP needs to be expanded
12933    for CXXCPP in "$CXX -E" "/lib/cpp"
12934    do
12935      ac_preproc_ok=false
12936for ac_cxx_preproc_warn_flag in '' yes
12937do
12938  # Use a header file that comes with gcc, so configuring glibc
12939  # with a fresh cross-compiler works.
12940  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12941  # <limits.h> exists even on freestanding compilers.
12942  # On the NeXT, cc -E runs the code through the compiler's parser,
12943  # not just through cpp. "Syntax error" is here to catch this case.
12944  cat >conftest.$ac_ext <<_ACEOF
12945/* confdefs.h.  */
12946_ACEOF
12947cat confdefs.h >>conftest.$ac_ext
12948cat >>conftest.$ac_ext <<_ACEOF
12949/* end confdefs.h.  */
12950#ifdef __STDC__
12951# include <limits.h>
12952#else
12953# include <assert.h>
12954#endif
12955		     Syntax error
12956_ACEOF
12957if { (ac_try="$ac_cpp conftest.$ac_ext"
12958case "(($ac_try" in
12959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12960  *) ac_try_echo=$ac_try;;
12961esac
12962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12963  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12964  ac_status=$?
12965  grep -v '^ *+' conftest.er1 >conftest.err
12966  rm -f conftest.er1
12967  cat conftest.err >&5
12968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969  (exit $ac_status); } >/dev/null; then
12970  if test -s conftest.err; then
12971    ac_cpp_err=$ac_cxx_preproc_warn_flag
12972    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12973  else
12974    ac_cpp_err=
12975  fi
12976else
12977  ac_cpp_err=yes
12978fi
12979if test -z "$ac_cpp_err"; then
12980  :
12981else
12982  echo "$as_me: failed program was:" >&5
12983sed 's/^/| /' conftest.$ac_ext >&5
12984
12985  # Broken: fails on valid input.
12986continue
12987fi
12988
12989rm -f conftest.err conftest.$ac_ext
12990
12991  # OK, works on sane cases.  Now check whether nonexistent headers
12992  # can be detected and how.
12993  cat >conftest.$ac_ext <<_ACEOF
12994/* confdefs.h.  */
12995_ACEOF
12996cat confdefs.h >>conftest.$ac_ext
12997cat >>conftest.$ac_ext <<_ACEOF
12998/* end confdefs.h.  */
12999#include <ac_nonexistent.h>
13000_ACEOF
13001if { (ac_try="$ac_cpp conftest.$ac_ext"
13002case "(($ac_try" in
13003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13004  *) ac_try_echo=$ac_try;;
13005esac
13006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13007  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13008  ac_status=$?
13009  grep -v '^ *+' conftest.er1 >conftest.err
13010  rm -f conftest.er1
13011  cat conftest.err >&5
13012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013  (exit $ac_status); } >/dev/null; then
13014  if test -s conftest.err; then
13015    ac_cpp_err=$ac_cxx_preproc_warn_flag
13016    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13017  else
13018    ac_cpp_err=
13019  fi
13020else
13021  ac_cpp_err=yes
13022fi
13023if test -z "$ac_cpp_err"; then
13024  # Broken: success on invalid input.
13025continue
13026else
13027  echo "$as_me: failed program was:" >&5
13028sed 's/^/| /' conftest.$ac_ext >&5
13029
13030  # Passes both tests.
13031ac_preproc_ok=:
13032break
13033fi
13034
13035rm -f conftest.err conftest.$ac_ext
13036
13037done
13038# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13039rm -f conftest.err conftest.$ac_ext
13040if $ac_preproc_ok; then
13041  break
13042fi
13043
13044    done
13045    ac_cv_prog_CXXCPP=$CXXCPP
13046
13047fi
13048  CXXCPP=$ac_cv_prog_CXXCPP
13049else
13050  ac_cv_prog_CXXCPP=$CXXCPP
13051fi
13052{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13053echo "${ECHO_T}$CXXCPP" >&6; }
13054ac_preproc_ok=false
13055for ac_cxx_preproc_warn_flag in '' yes
13056do
13057  # Use a header file that comes with gcc, so configuring glibc
13058  # with a fresh cross-compiler works.
13059  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13060  # <limits.h> exists even on freestanding compilers.
13061  # On the NeXT, cc -E runs the code through the compiler's parser,
13062  # not just through cpp. "Syntax error" is here to catch this case.
13063  cat >conftest.$ac_ext <<_ACEOF
13064/* confdefs.h.  */
13065_ACEOF
13066cat confdefs.h >>conftest.$ac_ext
13067cat >>conftest.$ac_ext <<_ACEOF
13068/* end confdefs.h.  */
13069#ifdef __STDC__
13070# include <limits.h>
13071#else
13072# include <assert.h>
13073#endif
13074		     Syntax error
13075_ACEOF
13076if { (ac_try="$ac_cpp conftest.$ac_ext"
13077case "(($ac_try" in
13078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079  *) ac_try_echo=$ac_try;;
13080esac
13081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13082  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13083  ac_status=$?
13084  grep -v '^ *+' conftest.er1 >conftest.err
13085  rm -f conftest.er1
13086  cat conftest.err >&5
13087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088  (exit $ac_status); } >/dev/null; then
13089  if test -s conftest.err; then
13090    ac_cpp_err=$ac_cxx_preproc_warn_flag
13091    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13092  else
13093    ac_cpp_err=
13094  fi
13095else
13096  ac_cpp_err=yes
13097fi
13098if test -z "$ac_cpp_err"; then
13099  :
13100else
13101  echo "$as_me: failed program was:" >&5
13102sed 's/^/| /' conftest.$ac_ext >&5
13103
13104  # Broken: fails on valid input.
13105continue
13106fi
13107
13108rm -f conftest.err conftest.$ac_ext
13109
13110  # OK, works on sane cases.  Now check whether nonexistent headers
13111  # can be detected and how.
13112  cat >conftest.$ac_ext <<_ACEOF
13113/* confdefs.h.  */
13114_ACEOF
13115cat confdefs.h >>conftest.$ac_ext
13116cat >>conftest.$ac_ext <<_ACEOF
13117/* end confdefs.h.  */
13118#include <ac_nonexistent.h>
13119_ACEOF
13120if { (ac_try="$ac_cpp conftest.$ac_ext"
13121case "(($ac_try" in
13122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13123  *) ac_try_echo=$ac_try;;
13124esac
13125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13126  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13127  ac_status=$?
13128  grep -v '^ *+' conftest.er1 >conftest.err
13129  rm -f conftest.er1
13130  cat conftest.err >&5
13131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132  (exit $ac_status); } >/dev/null; then
13133  if test -s conftest.err; then
13134    ac_cpp_err=$ac_cxx_preproc_warn_flag
13135    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13136  else
13137    ac_cpp_err=
13138  fi
13139else
13140  ac_cpp_err=yes
13141fi
13142if test -z "$ac_cpp_err"; then
13143  # Broken: success on invalid input.
13144continue
13145else
13146  echo "$as_me: failed program was:" >&5
13147sed 's/^/| /' conftest.$ac_ext >&5
13148
13149  # Passes both tests.
13150ac_preproc_ok=:
13151break
13152fi
13153
13154rm -f conftest.err conftest.$ac_ext
13155
13156done
13157# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13158rm -f conftest.err conftest.$ac_ext
13159if $ac_preproc_ok; then
13160  :
13161else
13162  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13163See \`config.log' for more details." >&5
13164echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13165See \`config.log' for more details." >&2;}
13166   { (exit 1); exit 1; }; }
13167fi
13168
13169ac_ext=cpp
13170ac_cpp='$CXXCPP $CPPFLAGS'
13171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13174
13175fi
13176
13177
13178ac_ext=f
13179ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13180ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13181ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13182if test -n "$ac_tool_prefix"; then
13183  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
13184  do
13185    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13186set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13187{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13189if test "${ac_cv_prog_F77+set}" = set; then
13190  echo $ECHO_N "(cached) $ECHO_C" >&6
13191else
13192  if test -n "$F77"; then
13193  ac_cv_prog_F77="$F77" # Let the user override the test.
13194else
13195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13196for as_dir in $PATH
13197do
13198  IFS=$as_save_IFS
13199  test -z "$as_dir" && as_dir=.
13200  for ac_exec_ext in '' $ac_executable_extensions; do
13201  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13202    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13203    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13204    break 2
13205  fi
13206done
13207done
13208IFS=$as_save_IFS
13209
13210fi
13211fi
13212F77=$ac_cv_prog_F77
13213if test -n "$F77"; then
13214  { echo "$as_me:$LINENO: result: $F77" >&5
13215echo "${ECHO_T}$F77" >&6; }
13216else
13217  { echo "$as_me:$LINENO: result: no" >&5
13218echo "${ECHO_T}no" >&6; }
13219fi
13220
13221
13222    test -n "$F77" && break
13223  done
13224fi
13225if test -z "$F77"; then
13226  ac_ct_F77=$F77
13227  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
13228do
13229  # Extract the first word of "$ac_prog", so it can be a program name with args.
13230set dummy $ac_prog; ac_word=$2
13231{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13233if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13234  echo $ECHO_N "(cached) $ECHO_C" >&6
13235else
13236  if test -n "$ac_ct_F77"; then
13237  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13238else
13239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13240for as_dir in $PATH
13241do
13242  IFS=$as_save_IFS
13243  test -z "$as_dir" && as_dir=.
13244  for ac_exec_ext in '' $ac_executable_extensions; do
13245  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13246    ac_cv_prog_ac_ct_F77="$ac_prog"
13247    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13248    break 2
13249  fi
13250done
13251done
13252IFS=$as_save_IFS
13253
13254fi
13255fi
13256ac_ct_F77=$ac_cv_prog_ac_ct_F77
13257if test -n "$ac_ct_F77"; then
13258  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13259echo "${ECHO_T}$ac_ct_F77" >&6; }
13260else
13261  { echo "$as_me:$LINENO: result: no" >&5
13262echo "${ECHO_T}no" >&6; }
13263fi
13264
13265
13266  test -n "$ac_ct_F77" && break
13267done
13268
13269  if test "x$ac_ct_F77" = x; then
13270    F77=""
13271  else
13272    case $cross_compiling:$ac_tool_warned in
13273yes:)
13274{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13275whose name does not start with the host triplet.  If you think this
13276configuration is useful to you, please write to autoconf@gnu.org." >&5
13277echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13278whose name does not start with the host triplet.  If you think this
13279configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13280ac_tool_warned=yes ;;
13281esac
13282    F77=$ac_ct_F77
13283  fi
13284fi
13285
13286
13287# Provide some information about the compiler.
13288echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13289ac_compiler=`set X $ac_compile; echo $2`
13290{ (ac_try="$ac_compiler --version >&5"
13291case "(($ac_try" in
13292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293  *) ac_try_echo=$ac_try;;
13294esac
13295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13296  (eval "$ac_compiler --version >&5") 2>&5
13297  ac_status=$?
13298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299  (exit $ac_status); }
13300{ (ac_try="$ac_compiler -v >&5"
13301case "(($ac_try" in
13302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13303  *) ac_try_echo=$ac_try;;
13304esac
13305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13306  (eval "$ac_compiler -v >&5") 2>&5
13307  ac_status=$?
13308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309  (exit $ac_status); }
13310{ (ac_try="$ac_compiler -V >&5"
13311case "(($ac_try" in
13312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13313  *) ac_try_echo=$ac_try;;
13314esac
13315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13316  (eval "$ac_compiler -V >&5") 2>&5
13317  ac_status=$?
13318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319  (exit $ac_status); }
13320rm -f a.out
13321
13322# If we don't use `.F' as extension, the preprocessor is not run on the
13323# input file.  (Note that this only needs to work for GNU compilers.)
13324ac_save_ext=$ac_ext
13325ac_ext=F
13326{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13327echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13328if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13329  echo $ECHO_N "(cached) $ECHO_C" >&6
13330else
13331  cat >conftest.$ac_ext <<_ACEOF
13332      program main
13333#ifndef __GNUC__
13334       choke me
13335#endif
13336
13337      end
13338_ACEOF
13339rm -f conftest.$ac_objext
13340if { (ac_try="$ac_compile"
13341case "(($ac_try" in
13342  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13343  *) ac_try_echo=$ac_try;;
13344esac
13345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13346  (eval "$ac_compile") 2>conftest.er1
13347  ac_status=$?
13348  grep -v '^ *+' conftest.er1 >conftest.err
13349  rm -f conftest.er1
13350  cat conftest.err >&5
13351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352  (exit $ac_status); } &&
13353	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13354  { (case "(($ac_try" in
13355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13356  *) ac_try_echo=$ac_try;;
13357esac
13358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13359  (eval "$ac_try") 2>&5
13360  ac_status=$?
13361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362  (exit $ac_status); }; } &&
13363	 { ac_try='test -s conftest.$ac_objext'
13364  { (case "(($ac_try" in
13365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366  *) ac_try_echo=$ac_try;;
13367esac
13368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369  (eval "$ac_try") 2>&5
13370  ac_status=$?
13371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372  (exit $ac_status); }; }; then
13373  ac_compiler_gnu=yes
13374else
13375  echo "$as_me: failed program was:" >&5
13376sed 's/^/| /' conftest.$ac_ext >&5
13377
13378	ac_compiler_gnu=no
13379fi
13380
13381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13382ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13383
13384fi
13385{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13386echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13387ac_ext=$ac_save_ext
13388ac_test_FFLAGS=${FFLAGS+set}
13389ac_save_FFLAGS=$FFLAGS
13390FFLAGS=
13391{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13392echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13393if test "${ac_cv_prog_f77_g+set}" = set; then
13394  echo $ECHO_N "(cached) $ECHO_C" >&6
13395else
13396  FFLAGS=-g
13397cat >conftest.$ac_ext <<_ACEOF
13398      program main
13399
13400      end
13401_ACEOF
13402rm -f conftest.$ac_objext
13403if { (ac_try="$ac_compile"
13404case "(($ac_try" in
13405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13406  *) ac_try_echo=$ac_try;;
13407esac
13408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13409  (eval "$ac_compile") 2>conftest.er1
13410  ac_status=$?
13411  grep -v '^ *+' conftest.er1 >conftest.err
13412  rm -f conftest.er1
13413  cat conftest.err >&5
13414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415  (exit $ac_status); } &&
13416	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13417  { (case "(($ac_try" in
13418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419  *) ac_try_echo=$ac_try;;
13420esac
13421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13422  (eval "$ac_try") 2>&5
13423  ac_status=$?
13424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425  (exit $ac_status); }; } &&
13426	 { ac_try='test -s conftest.$ac_objext'
13427  { (case "(($ac_try" in
13428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429  *) ac_try_echo=$ac_try;;
13430esac
13431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432  (eval "$ac_try") 2>&5
13433  ac_status=$?
13434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435  (exit $ac_status); }; }; then
13436  ac_cv_prog_f77_g=yes
13437else
13438  echo "$as_me: failed program was:" >&5
13439sed 's/^/| /' conftest.$ac_ext >&5
13440
13441	ac_cv_prog_f77_g=no
13442fi
13443
13444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13445
13446fi
13447{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13448echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13449if test "$ac_test_FFLAGS" = set; then
13450  FFLAGS=$ac_save_FFLAGS
13451elif test $ac_cv_prog_f77_g = yes; then
13452  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13453    FFLAGS="-g -O2"
13454  else
13455    FFLAGS="-g"
13456  fi
13457else
13458  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13459    FFLAGS="-O2"
13460  else
13461    FFLAGS=
13462  fi
13463fi
13464
13465G77=`test $ac_compiler_gnu = yes && echo yes`
13466ac_ext=c
13467ac_cpp='$CPP $CPPFLAGS'
13468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13470ac_compiler_gnu=$ac_cv_c_compiler_gnu
13471
13472
13473
13474# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13475
13476# find the maximum length of command line arguments
13477{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13478echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13479if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13480  echo $ECHO_N "(cached) $ECHO_C" >&6
13481else
13482    i=0
13483  teststring="ABCD"
13484
13485  case $build_os in
13486  msdosdjgpp*)
13487    # On DJGPP, this test can blow up pretty badly due to problems in libc
13488    # (any single argument exceeding 2000 bytes causes a buffer overrun
13489    # during glob expansion).  Even if it were fixed, the result of this
13490    # check would be larger than it should be.
13491    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13492    ;;
13493
13494  gnu*)
13495    # Under GNU Hurd, this test is not required because there is
13496    # no limit to the length of command line arguments.
13497    # Libtool will interpret -1 as no limit whatsoever
13498    lt_cv_sys_max_cmd_len=-1;
13499    ;;
13500
13501  cygwin* | mingw*)
13502    # On Win9x/ME, this test blows up -- it succeeds, but takes
13503    # about 5 minutes as the teststring grows exponentially.
13504    # Worse, since 9x/ME are not pre-emptively multitasking,
13505    # you end up with a "frozen" computer, even though with patience
13506    # the test eventually succeeds (with a max line length of 256k).
13507    # Instead, let's just punt: use the minimum linelength reported by
13508    # all of the supported platforms: 8192 (on NT/2K/XP).
13509    lt_cv_sys_max_cmd_len=8192;
13510    ;;
13511
13512  amigaos*)
13513    # On AmigaOS with pdksh, this test takes hours, literally.
13514    # So we just punt and use a minimum line length of 8192.
13515    lt_cv_sys_max_cmd_len=8192;
13516    ;;
13517
13518  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13519    # This has been around since 386BSD, at least.  Likely further.
13520    if test -x /sbin/sysctl; then
13521      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13522    elif test -x /usr/sbin/sysctl; then
13523      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13524    else
13525      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
13526    fi
13527    # And add a safety zone
13528    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13529    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13530    ;;
13531
13532  interix*)
13533    # We know the value 262144 and hardcode it with a safety zone (like BSD)
13534    lt_cv_sys_max_cmd_len=196608
13535    ;;
13536
13537  osf*)
13538    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13539    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13540    # nice to cause kernel panics so lets avoid the loop below.
13541    # First set a reasonable default.
13542    lt_cv_sys_max_cmd_len=16384
13543    #
13544    if test -x /sbin/sysconfig; then
13545      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13546        *1*) lt_cv_sys_max_cmd_len=-1 ;;
13547      esac
13548    fi
13549    ;;
13550  sco3.2v5*)
13551    lt_cv_sys_max_cmd_len=102400
13552    ;;
13553  sysv5* | sco5v6* | sysv4.2uw2*)
13554    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13555    if test -n "$kargmax"; then
13556      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
13557    else
13558      lt_cv_sys_max_cmd_len=32768
13559    fi
13560    ;;
13561  *)
13562    # If test is not a shell built-in, we'll probably end up computing a
13563    # maximum length that is only half of the actual maximum length, but
13564    # we can't tell.
13565    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13566    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13567	       = "XX$teststring") >/dev/null 2>&1 &&
13568	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
13569	    lt_cv_sys_max_cmd_len=$new_result &&
13570	    test $i != 17 # 1/2 MB should be enough
13571    do
13572      i=`expr $i + 1`
13573      teststring=$teststring$teststring
13574    done
13575    teststring=
13576    # Add a significant safety factor because C++ compilers can tack on massive
13577    # amounts of additional arguments before passing them to the linker.
13578    # It appears as though 1/2 is a usable value.
13579    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13580    ;;
13581  esac
13582
13583fi
13584
13585if test -n $lt_cv_sys_max_cmd_len ; then
13586  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13587echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13588else
13589  { echo "$as_me:$LINENO: result: none" >&5
13590echo "${ECHO_T}none" >&6; }
13591fi
13592
13593
13594
13595
13596# Check for command to grab the raw symbol name followed by C symbol from nm.
13597{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13598echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13599if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13600  echo $ECHO_N "(cached) $ECHO_C" >&6
13601else
13602
13603# These are sane defaults that work on at least a few old systems.
13604# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13605
13606# Character class describing NM global symbol codes.
13607symcode='[BCDEGRST]'
13608
13609# Regexp to match symbols that can be accessed directly from C.
13610sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13611
13612# Transform an extracted symbol line into a proper C declaration
13613lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13614
13615# Transform an extracted symbol line into symbol name and symbol address
13616lt_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'"
13617
13618# Define system-specific variables.
13619case $host_os in
13620aix*)
13621  symcode='[BCDT]'
13622  ;;
13623cygwin* | mingw* | pw32*)
13624  symcode='[ABCDGISTW]'
13625  ;;
13626hpux*) # Its linker distinguishes data from code symbols
13627  if test "$host_cpu" = ia64; then
13628    symcode='[ABCDEGRST]'
13629  fi
13630  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13631  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'"
13632  ;;
13633linux*)
13634  if test "$host_cpu" = ia64; then
13635    symcode='[ABCDGIRSTW]'
13636    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13637    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'"
13638  fi
13639  ;;
13640irix* | nonstopux*)
13641  symcode='[BCDEGRST]'
13642  ;;
13643osf*)
13644  symcode='[BCDEGQRST]'
13645  ;;
13646solaris*)
13647  symcode='[BDRT]'
13648  ;;
13649sco3.2v5*)
13650  symcode='[DT]'
13651  ;;
13652sysv4.2uw2*)
13653  symcode='[DT]'
13654  ;;
13655sysv5* | sco5v6* | unixware* | OpenUNIX*)
13656  symcode='[ABDT]'
13657  ;;
13658sysv4)
13659  symcode='[DFNSTU]'
13660  ;;
13661esac
13662
13663# Handle CRLF in mingw tool chain
13664opt_cr=
13665case $build_os in
13666mingw*)
13667  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13668  ;;
13669esac
13670
13671# If we're using GNU nm, then use its standard symbol codes.
13672case `$NM -V 2>&1` in
13673*GNU* | *'with BFD'*)
13674  symcode='[ABCDGIRSTW]' ;;
13675esac
13676
13677# Try without a prefix undercore, then with it.
13678for ac_symprfx in "" "_"; do
13679
13680  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13681  symxfrm="\\1 $ac_symprfx\\2 \\2"
13682
13683  # Write the raw and C identifiers.
13684  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13685
13686  # Check to see that the pipe works correctly.
13687  pipe_works=no
13688
13689  rm -f conftest*
13690  cat > conftest.$ac_ext <<EOF
13691#ifdef __cplusplus
13692extern "C" {
13693#endif
13694char nm_test_var;
13695void nm_test_func(){}
13696#ifdef __cplusplus
13697}
13698#endif
13699int main(){nm_test_var='a';nm_test_func();return(0);}
13700EOF
13701
13702  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13703  (eval $ac_compile) 2>&5
13704  ac_status=$?
13705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706  (exit $ac_status); }; then
13707    # Now try to grab the symbols.
13708    nlist=conftest.nm
13709    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13710  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13711  ac_status=$?
13712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713  (exit $ac_status); } && test -s "$nlist"; then
13714      # Try sorting and uniquifying the output.
13715      if sort "$nlist" | uniq > "$nlist"T; then
13716	mv -f "$nlist"T "$nlist"
13717      else
13718	rm -f "$nlist"T
13719      fi
13720
13721      # Make sure that we snagged all the symbols we need.
13722      if grep ' nm_test_var$' "$nlist" >/dev/null; then
13723	if grep ' nm_test_func$' "$nlist" >/dev/null; then
13724	  cat <<EOF > conftest.$ac_ext
13725#ifdef __cplusplus
13726extern "C" {
13727#endif
13728
13729EOF
13730	  # Now generate the symbol file.
13731	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13732
13733	  cat <<EOF >> conftest.$ac_ext
13734#if defined (__STDC__) && __STDC__
13735# define lt_ptr_t void *
13736#else
13737# define lt_ptr_t char *
13738# define const
13739#endif
13740
13741/* The mapping between symbol names and symbols. */
13742const struct {
13743  const char *name;
13744  lt_ptr_t address;
13745}
13746lt_preloaded_symbols[] =
13747{
13748EOF
13749	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13750	  cat <<\EOF >> conftest.$ac_ext
13751  {0, (lt_ptr_t) 0}
13752};
13753
13754#ifdef __cplusplus
13755}
13756#endif
13757EOF
13758	  # Now try linking the two files.
13759	  mv conftest.$ac_objext conftstm.$ac_objext
13760	  lt_save_LIBS="$LIBS"
13761	  lt_save_CFLAGS="$CFLAGS"
13762	  LIBS="conftstm.$ac_objext"
13763	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13764	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13765  (eval $ac_link) 2>&5
13766  ac_status=$?
13767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768  (exit $ac_status); } && test -s conftest${ac_exeext}; then
13769	    pipe_works=yes
13770	  fi
13771	  LIBS="$lt_save_LIBS"
13772	  CFLAGS="$lt_save_CFLAGS"
13773	else
13774	  echo "cannot find nm_test_func in $nlist" >&5
13775	fi
13776      else
13777	echo "cannot find nm_test_var in $nlist" >&5
13778      fi
13779    else
13780      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13781    fi
13782  else
13783    echo "$progname: failed program was:" >&5
13784    cat conftest.$ac_ext >&5
13785  fi
13786  rm -f conftest* conftst*
13787
13788  # Do not use the global_symbol_pipe unless it works.
13789  if test "$pipe_works" = yes; then
13790    break
13791  else
13792    lt_cv_sys_global_symbol_pipe=
13793  fi
13794done
13795
13796fi
13797
13798if test -z "$lt_cv_sys_global_symbol_pipe"; then
13799  lt_cv_sys_global_symbol_to_cdecl=
13800fi
13801if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13802  { echo "$as_me:$LINENO: result: failed" >&5
13803echo "${ECHO_T}failed" >&6; }
13804else
13805  { echo "$as_me:$LINENO: result: ok" >&5
13806echo "${ECHO_T}ok" >&6; }
13807fi
13808
13809{ echo "$as_me:$LINENO: checking for objdir" >&5
13810echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13811if test "${lt_cv_objdir+set}" = set; then
13812  echo $ECHO_N "(cached) $ECHO_C" >&6
13813else
13814  rm -f .libs 2>/dev/null
13815mkdir .libs 2>/dev/null
13816if test -d .libs; then
13817  lt_cv_objdir=.libs
13818else
13819  # MS-DOS does not allow filenames that begin with a dot.
13820  lt_cv_objdir=_libs
13821fi
13822rmdir .libs 2>/dev/null
13823fi
13824{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13825echo "${ECHO_T}$lt_cv_objdir" >&6; }
13826objdir=$lt_cv_objdir
13827
13828
13829
13830
13831
13832case $host_os in
13833aix3*)
13834  # AIX sometimes has problems with the GCC collect2 program.  For some
13835  # reason, if we set the COLLECT_NAMES environment variable, the problems
13836  # vanish in a puff of smoke.
13837  if test "X${COLLECT_NAMES+set}" != Xset; then
13838    COLLECT_NAMES=
13839    export COLLECT_NAMES
13840  fi
13841  ;;
13842esac
13843
13844# Sed substitution that helps us do robust quoting.  It backslashifies
13845# metacharacters that are still active within double-quoted strings.
13846Xsed='sed -e 1s/^X//'
13847sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13848
13849# Same as above, but do not quote variable references.
13850double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13851
13852# Sed substitution to delay expansion of an escaped shell variable in a
13853# double_quote_subst'ed string.
13854delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13855
13856# Sed substitution to avoid accidental globbing in evaled expressions
13857no_glob_subst='s/\*/\\\*/g'
13858
13859# Constants:
13860rm="rm -f"
13861
13862# Global variables:
13863default_ofile=mklib
13864can_build_shared=yes
13865
13866# All known linkers require a `.a' archive for static linking (except MSVC,
13867# which needs '.lib').
13868libext=a
13869ltmain="$ac_aux_dir/ltmain.sh"
13870ofile="$default_ofile"
13871with_gnu_ld="$lt_cv_prog_gnu_ld"
13872
13873if test -n "$ac_tool_prefix"; then
13874  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13875set dummy ${ac_tool_prefix}ar; ac_word=$2
13876{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13878if test "${ac_cv_prog_AR+set}" = set; then
13879  echo $ECHO_N "(cached) $ECHO_C" >&6
13880else
13881  if test -n "$AR"; then
13882  ac_cv_prog_AR="$AR" # Let the user override the test.
13883else
13884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13885for as_dir in $PATH
13886do
13887  IFS=$as_save_IFS
13888  test -z "$as_dir" && as_dir=.
13889  for ac_exec_ext in '' $ac_executable_extensions; do
13890  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13891    ac_cv_prog_AR="${ac_tool_prefix}ar"
13892    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13893    break 2
13894  fi
13895done
13896done
13897IFS=$as_save_IFS
13898
13899fi
13900fi
13901AR=$ac_cv_prog_AR
13902if test -n "$AR"; then
13903  { echo "$as_me:$LINENO: result: $AR" >&5
13904echo "${ECHO_T}$AR" >&6; }
13905else
13906  { echo "$as_me:$LINENO: result: no" >&5
13907echo "${ECHO_T}no" >&6; }
13908fi
13909
13910
13911fi
13912if test -z "$ac_cv_prog_AR"; then
13913  ac_ct_AR=$AR
13914  # Extract the first word of "ar", so it can be a program name with args.
13915set dummy ar; ac_word=$2
13916{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13918if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13919  echo $ECHO_N "(cached) $ECHO_C" >&6
13920else
13921  if test -n "$ac_ct_AR"; then
13922  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13923else
13924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13925for as_dir in $PATH
13926do
13927  IFS=$as_save_IFS
13928  test -z "$as_dir" && as_dir=.
13929  for ac_exec_ext in '' $ac_executable_extensions; do
13930  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13931    ac_cv_prog_ac_ct_AR="ar"
13932    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13933    break 2
13934  fi
13935done
13936done
13937IFS=$as_save_IFS
13938
13939fi
13940fi
13941ac_ct_AR=$ac_cv_prog_ac_ct_AR
13942if test -n "$ac_ct_AR"; then
13943  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13944echo "${ECHO_T}$ac_ct_AR" >&6; }
13945else
13946  { echo "$as_me:$LINENO: result: no" >&5
13947echo "${ECHO_T}no" >&6; }
13948fi
13949
13950  if test "x$ac_ct_AR" = x; then
13951    AR="false"
13952  else
13953    case $cross_compiling:$ac_tool_warned in
13954yes:)
13955{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13956whose name does not start with the host triplet.  If you think this
13957configuration is useful to you, please write to autoconf@gnu.org." >&5
13958echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13959whose name does not start with the host triplet.  If you think this
13960configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13961ac_tool_warned=yes ;;
13962esac
13963    AR=$ac_ct_AR
13964  fi
13965else
13966  AR="$ac_cv_prog_AR"
13967fi
13968
13969if test -n "$ac_tool_prefix"; then
13970  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13971set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13972{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13974if test "${ac_cv_prog_RANLIB+set}" = set; then
13975  echo $ECHO_N "(cached) $ECHO_C" >&6
13976else
13977  if test -n "$RANLIB"; then
13978  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13979else
13980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13981for as_dir in $PATH
13982do
13983  IFS=$as_save_IFS
13984  test -z "$as_dir" && as_dir=.
13985  for ac_exec_ext in '' $ac_executable_extensions; do
13986  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13987    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13988    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13989    break 2
13990  fi
13991done
13992done
13993IFS=$as_save_IFS
13994
13995fi
13996fi
13997RANLIB=$ac_cv_prog_RANLIB
13998if test -n "$RANLIB"; then
13999  { echo "$as_me:$LINENO: result: $RANLIB" >&5
14000echo "${ECHO_T}$RANLIB" >&6; }
14001else
14002  { echo "$as_me:$LINENO: result: no" >&5
14003echo "${ECHO_T}no" >&6; }
14004fi
14005
14006
14007fi
14008if test -z "$ac_cv_prog_RANLIB"; then
14009  ac_ct_RANLIB=$RANLIB
14010  # Extract the first word of "ranlib", so it can be a program name with args.
14011set dummy ranlib; ac_word=$2
14012{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14014if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14015  echo $ECHO_N "(cached) $ECHO_C" >&6
14016else
14017  if test -n "$ac_ct_RANLIB"; then
14018  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14019else
14020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14021for as_dir in $PATH
14022do
14023  IFS=$as_save_IFS
14024  test -z "$as_dir" && as_dir=.
14025  for ac_exec_ext in '' $ac_executable_extensions; do
14026  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14027    ac_cv_prog_ac_ct_RANLIB="ranlib"
14028    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14029    break 2
14030  fi
14031done
14032done
14033IFS=$as_save_IFS
14034
14035fi
14036fi
14037ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14038if test -n "$ac_ct_RANLIB"; then
14039  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14040echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14041else
14042  { echo "$as_me:$LINENO: result: no" >&5
14043echo "${ECHO_T}no" >&6; }
14044fi
14045
14046  if test "x$ac_ct_RANLIB" = x; then
14047    RANLIB=":"
14048  else
14049    case $cross_compiling:$ac_tool_warned in
14050yes:)
14051{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14052whose name does not start with the host triplet.  If you think this
14053configuration is useful to you, please write to autoconf@gnu.org." >&5
14054echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14055whose name does not start with the host triplet.  If you think this
14056configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14057ac_tool_warned=yes ;;
14058esac
14059    RANLIB=$ac_ct_RANLIB
14060  fi
14061else
14062  RANLIB="$ac_cv_prog_RANLIB"
14063fi
14064
14065if test -n "$ac_tool_prefix"; then
14066  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14067set dummy ${ac_tool_prefix}strip; ac_word=$2
14068{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14070if test "${ac_cv_prog_STRIP+set}" = set; then
14071  echo $ECHO_N "(cached) $ECHO_C" >&6
14072else
14073  if test -n "$STRIP"; then
14074  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14075else
14076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14077for as_dir in $PATH
14078do
14079  IFS=$as_save_IFS
14080  test -z "$as_dir" && as_dir=.
14081  for ac_exec_ext in '' $ac_executable_extensions; do
14082  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14083    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14084    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14085    break 2
14086  fi
14087done
14088done
14089IFS=$as_save_IFS
14090
14091fi
14092fi
14093STRIP=$ac_cv_prog_STRIP
14094if test -n "$STRIP"; then
14095  { echo "$as_me:$LINENO: result: $STRIP" >&5
14096echo "${ECHO_T}$STRIP" >&6; }
14097else
14098  { echo "$as_me:$LINENO: result: no" >&5
14099echo "${ECHO_T}no" >&6; }
14100fi
14101
14102
14103fi
14104if test -z "$ac_cv_prog_STRIP"; then
14105  ac_ct_STRIP=$STRIP
14106  # Extract the first word of "strip", so it can be a program name with args.
14107set dummy strip; ac_word=$2
14108{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14110if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14111  echo $ECHO_N "(cached) $ECHO_C" >&6
14112else
14113  if test -n "$ac_ct_STRIP"; then
14114  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14115else
14116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14117for as_dir in $PATH
14118do
14119  IFS=$as_save_IFS
14120  test -z "$as_dir" && as_dir=.
14121  for ac_exec_ext in '' $ac_executable_extensions; do
14122  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14123    ac_cv_prog_ac_ct_STRIP="strip"
14124    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14125    break 2
14126  fi
14127done
14128done
14129IFS=$as_save_IFS
14130
14131fi
14132fi
14133ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14134if test -n "$ac_ct_STRIP"; then
14135  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14136echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14137else
14138  { echo "$as_me:$LINENO: result: no" >&5
14139echo "${ECHO_T}no" >&6; }
14140fi
14141
14142  if test "x$ac_ct_STRIP" = x; then
14143    STRIP=":"
14144  else
14145    case $cross_compiling:$ac_tool_warned in
14146yes:)
14147{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14148whose name does not start with the host triplet.  If you think this
14149configuration is useful to you, please write to autoconf@gnu.org." >&5
14150echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14151whose name does not start with the host triplet.  If you think this
14152configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14153ac_tool_warned=yes ;;
14154esac
14155    STRIP=$ac_ct_STRIP
14156  fi
14157else
14158  STRIP="$ac_cv_prog_STRIP"
14159fi
14160
14161
14162old_CC="$CC"
14163old_CFLAGS="$CFLAGS"
14164
14165# Set sane defaults for various variables
14166test -z "$AR" && AR=ar
14167test -z "$AR_FLAGS" && AR_FLAGS=cru
14168test -z "$AS" && AS=as
14169test -z "$CC" && CC=cc
14170test -z "$LTCC" && LTCC=$CC
14171test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14172test -z "$DLLTOOL" && DLLTOOL=dlltool
14173test -z "$LD" && LD=ld
14174test -z "$LN_S" && LN_S="ln -s"
14175test -z "$MAGIC_CMD" && MAGIC_CMD=file
14176test -z "$NM" && NM=nm
14177test -z "$SED" && SED=sed
14178test -z "$OBJDUMP" && OBJDUMP=objdump
14179test -z "$RANLIB" && RANLIB=:
14180test -z "$STRIP" && STRIP=:
14181test -z "$ac_objext" && ac_objext=o
14182
14183# Determine commands to create old-style static archives.
14184old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14185old_postinstall_cmds='chmod 644 $oldlib'
14186old_postuninstall_cmds=
14187
14188if test -n "$RANLIB"; then
14189  case $host_os in
14190  openbsd*)
14191    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14192    ;;
14193  *)
14194    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14195    ;;
14196  esac
14197  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14198fi
14199
14200for cc_temp in $compiler""; do
14201  case $cc_temp in
14202    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14203    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14204    \-*) ;;
14205    *) break;;
14206  esac
14207done
14208cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14209
14210
14211# Only perform the check for file, if the check method requires it
14212case $deplibs_check_method in
14213file_magic*)
14214  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14215    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14216echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14217if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14218  echo $ECHO_N "(cached) $ECHO_C" >&6
14219else
14220  case $MAGIC_CMD in
14221[\\/*] |  ?:[\\/]*)
14222  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14223  ;;
14224*)
14225  lt_save_MAGIC_CMD="$MAGIC_CMD"
14226  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14227  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14228  for ac_dir in $ac_dummy; do
14229    IFS="$lt_save_ifs"
14230    test -z "$ac_dir" && ac_dir=.
14231    if test -f $ac_dir/${ac_tool_prefix}file; then
14232      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14233      if test -n "$file_magic_test_file"; then
14234	case $deplibs_check_method in
14235	"file_magic "*)
14236	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14237	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14238	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14239	    $EGREP "$file_magic_regex" > /dev/null; then
14240	    :
14241	  else
14242	    cat <<EOF 1>&2
14243
14244*** Warning: the command libtool uses to detect shared libraries,
14245*** $file_magic_cmd, produces output that libtool cannot recognize.
14246*** The result is that libtool may fail to recognize shared libraries
14247*** as such.  This will affect the creation of libtool libraries that
14248*** depend on shared libraries, but programs linked with such libtool
14249*** libraries will work regardless of this problem.  Nevertheless, you
14250*** may want to report the problem to your system manager and/or to
14251*** bug-libtool@gnu.org
14252
14253EOF
14254	  fi ;;
14255	esac
14256      fi
14257      break
14258    fi
14259  done
14260  IFS="$lt_save_ifs"
14261  MAGIC_CMD="$lt_save_MAGIC_CMD"
14262  ;;
14263esac
14264fi
14265
14266MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14267if test -n "$MAGIC_CMD"; then
14268  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14269echo "${ECHO_T}$MAGIC_CMD" >&6; }
14270else
14271  { echo "$as_me:$LINENO: result: no" >&5
14272echo "${ECHO_T}no" >&6; }
14273fi
14274
14275if test -z "$lt_cv_path_MAGIC_CMD"; then
14276  if test -n "$ac_tool_prefix"; then
14277    { echo "$as_me:$LINENO: checking for file" >&5
14278echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14279if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14280  echo $ECHO_N "(cached) $ECHO_C" >&6
14281else
14282  case $MAGIC_CMD in
14283[\\/*] |  ?:[\\/]*)
14284  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14285  ;;
14286*)
14287  lt_save_MAGIC_CMD="$MAGIC_CMD"
14288  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14289  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14290  for ac_dir in $ac_dummy; do
14291    IFS="$lt_save_ifs"
14292    test -z "$ac_dir" && ac_dir=.
14293    if test -f $ac_dir/file; then
14294      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14295      if test -n "$file_magic_test_file"; then
14296	case $deplibs_check_method in
14297	"file_magic "*)
14298	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14299	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14300	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14301	    $EGREP "$file_magic_regex" > /dev/null; then
14302	    :
14303	  else
14304	    cat <<EOF 1>&2
14305
14306*** Warning: the command libtool uses to detect shared libraries,
14307*** $file_magic_cmd, produces output that libtool cannot recognize.
14308*** The result is that libtool may fail to recognize shared libraries
14309*** as such.  This will affect the creation of libtool libraries that
14310*** depend on shared libraries, but programs linked with such libtool
14311*** libraries will work regardless of this problem.  Nevertheless, you
14312*** may want to report the problem to your system manager and/or to
14313*** bug-libtool@gnu.org
14314
14315EOF
14316	  fi ;;
14317	esac
14318      fi
14319      break
14320    fi
14321  done
14322  IFS="$lt_save_ifs"
14323  MAGIC_CMD="$lt_save_MAGIC_CMD"
14324  ;;
14325esac
14326fi
14327
14328MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14329if test -n "$MAGIC_CMD"; then
14330  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14331echo "${ECHO_T}$MAGIC_CMD" >&6; }
14332else
14333  { echo "$as_me:$LINENO: result: no" >&5
14334echo "${ECHO_T}no" >&6; }
14335fi
14336
14337  else
14338    MAGIC_CMD=:
14339  fi
14340fi
14341
14342  fi
14343  ;;
14344esac
14345
14346enable_dlopen=yes
14347enable_win32_dll=no
14348
14349# Check whether --enable-libtool-lock was given.
14350if test "${enable_libtool_lock+set}" = set; then
14351  enableval=$enable_libtool_lock;
14352fi
14353
14354test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14355
14356
14357# Check whether --with-pic was given.
14358if test "${with_pic+set}" = set; then
14359  withval=$with_pic; pic_mode="$withval"
14360else
14361  pic_mode=default
14362fi
14363
14364test -z "$pic_mode" && pic_mode=default
14365
14366# Use C for the default configuration in the libtool script
14367tagname=
14368lt_save_CC="$CC"
14369ac_ext=c
14370ac_cpp='$CPP $CPPFLAGS'
14371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14373ac_compiler_gnu=$ac_cv_c_compiler_gnu
14374
14375
14376# Source file extension for C test sources.
14377ac_ext=c
14378
14379# Object file extension for compiled C test sources.
14380objext=o
14381objext=$objext
14382
14383# Code to be used in simple compile tests
14384lt_simple_compile_test_code="int some_variable = 0;\n"
14385
14386# Code to be used in simple link tests
14387lt_simple_link_test_code='int main(){return(0);}\n'
14388
14389
14390# If no C compiler was specified, use CC.
14391LTCC=${LTCC-"$CC"}
14392
14393# If no C compiler flags were specified, use CFLAGS.
14394LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14395
14396# Allow CC to be a program name with arguments.
14397compiler=$CC
14398
14399
14400# save warnings/boilerplate of simple test code
14401ac_outfile=conftest.$ac_objext
14402printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14403eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14404_lt_compiler_boilerplate=`cat conftest.err`
14405$rm conftest*
14406
14407ac_outfile=conftest.$ac_objext
14408printf "$lt_simple_link_test_code" >conftest.$ac_ext
14409eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14410_lt_linker_boilerplate=`cat conftest.err`
14411$rm conftest*
14412
14413
14414
14415lt_prog_compiler_no_builtin_flag=
14416
14417if test "$GCC" = yes; then
14418  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14419
14420
14421{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14422echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14423if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14424  echo $ECHO_N "(cached) $ECHO_C" >&6
14425else
14426  lt_cv_prog_compiler_rtti_exceptions=no
14427  ac_outfile=conftest.$ac_objext
14428   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14429   lt_compiler_flag="-fno-rtti -fno-exceptions"
14430   # Insert the option either (1) after the last *FLAGS variable, or
14431   # (2) before a word containing "conftest.", or (3) at the end.
14432   # Note that $ac_compile itself does not contain backslashes and begins
14433   # with a dollar sign (not a hyphen), so the echo should work correctly.
14434   # The option is referenced via a variable to avoid confusing sed.
14435   lt_compile=`echo "$ac_compile" | $SED \
14436   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14437   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14438   -e 's:$: $lt_compiler_flag:'`
14439   (eval echo "\"\$as_me:14425: $lt_compile\"" >&5)
14440   (eval "$lt_compile" 2>conftest.err)
14441   ac_status=$?
14442   cat conftest.err >&5
14443   echo "$as_me:14429: \$? = $ac_status" >&5
14444   if (exit $ac_status) && test -s "$ac_outfile"; then
14445     # The compiler can only warn and ignore the option if not recognized
14446     # So say no if there are warnings other than the usual output.
14447     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14448     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14449     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14450       lt_cv_prog_compiler_rtti_exceptions=yes
14451     fi
14452   fi
14453   $rm conftest*
14454
14455fi
14456{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14457echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14458
14459if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14460    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14461else
14462    :
14463fi
14464
14465fi
14466
14467lt_prog_compiler_wl=
14468lt_prog_compiler_pic=
14469lt_prog_compiler_static=
14470
14471{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14472echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14473
14474  if test "$GCC" = yes; then
14475    lt_prog_compiler_wl='-Wl,'
14476    lt_prog_compiler_static='-static'
14477
14478    case $host_os in
14479      aix*)
14480      # All AIX code is PIC.
14481      if test "$host_cpu" = ia64; then
14482	# AIX 5 now supports IA64 processor
14483	lt_prog_compiler_static='-Bstatic'
14484      fi
14485      ;;
14486
14487    amigaos*)
14488      # FIXME: we need at least 68020 code to build shared libraries, but
14489      # adding the `-m68020' flag to GCC prevents building anything better,
14490      # like `-m68040'.
14491      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14492      ;;
14493
14494    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14495      # PIC is the default for these OSes.
14496      ;;
14497
14498    mingw* | pw32* | os2*)
14499      # This hack is so that the source file can tell whether it is being
14500      # built for inclusion in a dll (and should export symbols for example).
14501      lt_prog_compiler_pic='-DDLL_EXPORT'
14502      ;;
14503
14504    darwin* | rhapsody*)
14505      # PIC is the default on this platform
14506      # Common symbols not allowed in MH_DYLIB files
14507      lt_prog_compiler_pic='-fno-common'
14508      ;;
14509
14510    interix3*)
14511      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14512      # Instead, we relocate shared libraries at runtime.
14513      ;;
14514
14515    msdosdjgpp*)
14516      # Just because we use GCC doesn't mean we suddenly get shared libraries
14517      # on systems that don't support them.
14518      lt_prog_compiler_can_build_shared=no
14519      enable_shared=no
14520      ;;
14521
14522    sysv4*MP*)
14523      if test -d /usr/nec; then
14524	lt_prog_compiler_pic=-Kconform_pic
14525      fi
14526      ;;
14527
14528    hpux*)
14529      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14530      # not for PA HP-UX.
14531      case $host_cpu in
14532      hppa*64*|ia64*)
14533	# +Z the default
14534	;;
14535      *)
14536	lt_prog_compiler_pic='-fPIC'
14537	;;
14538      esac
14539      ;;
14540
14541    *)
14542      lt_prog_compiler_pic='-fPIC'
14543      ;;
14544    esac
14545  else
14546    # PORTME Check for flag to pass linker flags through the system compiler.
14547    case $host_os in
14548    aix*)
14549      lt_prog_compiler_wl='-Wl,'
14550      if test "$host_cpu" = ia64; then
14551	# AIX 5 now supports IA64 processor
14552	lt_prog_compiler_static='-Bstatic'
14553      else
14554	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14555      fi
14556      ;;
14557      darwin*)
14558        # PIC is the default on this platform
14559        # Common symbols not allowed in MH_DYLIB files
14560       case $cc_basename in
14561         xlc*)
14562         lt_prog_compiler_pic='-qnocommon'
14563         lt_prog_compiler_wl='-Wl,'
14564         ;;
14565       esac
14566       ;;
14567
14568    mingw* | pw32* | os2*)
14569      # This hack is so that the source file can tell whether it is being
14570      # built for inclusion in a dll (and should export symbols for example).
14571      lt_prog_compiler_pic='-DDLL_EXPORT'
14572      ;;
14573
14574    hpux9* | hpux10* | hpux11*)
14575      lt_prog_compiler_wl='-Wl,'
14576      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14577      # not for PA HP-UX.
14578      case $host_cpu in
14579      hppa*64*|ia64*)
14580	# +Z the default
14581	;;
14582      *)
14583	lt_prog_compiler_pic='+Z'
14584	;;
14585      esac
14586      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14587      lt_prog_compiler_static='${wl}-a ${wl}archive'
14588      ;;
14589
14590    irix5* | irix6* | nonstopux*)
14591      lt_prog_compiler_wl='-Wl,'
14592      # PIC (with -KPIC) is the default.
14593      lt_prog_compiler_static='-non_shared'
14594      ;;
14595
14596    newsos6)
14597      lt_prog_compiler_pic='-KPIC'
14598      lt_prog_compiler_static='-Bstatic'
14599      ;;
14600
14601    linux*)
14602      case $cc_basename in
14603      icc* | ecc*)
14604	lt_prog_compiler_wl='-Wl,'
14605	lt_prog_compiler_pic='-KPIC'
14606	lt_prog_compiler_static='-static'
14607        ;;
14608      pgcc* | pgf77* | pgf90* | pgf95*)
14609        # Portland Group compilers (*not* the Pentium gcc compiler,
14610	# which looks to be a dead project)
14611	lt_prog_compiler_wl='-Wl,'
14612	lt_prog_compiler_pic='-fpic'
14613	lt_prog_compiler_static='-Bstatic'
14614        ;;
14615      ccc*)
14616        lt_prog_compiler_wl='-Wl,'
14617        # All Alpha code is PIC.
14618        lt_prog_compiler_static='-non_shared'
14619        ;;
14620      esac
14621      ;;
14622
14623    osf3* | osf4* | osf5*)
14624      lt_prog_compiler_wl='-Wl,'
14625      # All OSF/1 code is PIC.
14626      lt_prog_compiler_static='-non_shared'
14627      ;;
14628
14629    solaris*)
14630      lt_prog_compiler_pic='-KPIC'
14631      lt_prog_compiler_static='-Bstatic'
14632      case $cc_basename in
14633      f77* | f90* | f95*)
14634	lt_prog_compiler_wl='-Qoption ld ';;
14635      *)
14636	lt_prog_compiler_wl='-Wl,';;
14637      esac
14638      ;;
14639
14640    sunos4*)
14641      lt_prog_compiler_wl='-Qoption ld '
14642      lt_prog_compiler_pic='-PIC'
14643      lt_prog_compiler_static='-Bstatic'
14644      ;;
14645
14646    sysv4 | sysv4.2uw2* | sysv4.3*)
14647      lt_prog_compiler_wl='-Wl,'
14648      lt_prog_compiler_pic='-KPIC'
14649      lt_prog_compiler_static='-Bstatic'
14650      ;;
14651
14652    sysv4*MP*)
14653      if test -d /usr/nec ;then
14654	lt_prog_compiler_pic='-Kconform_pic'
14655	lt_prog_compiler_static='-Bstatic'
14656      fi
14657      ;;
14658
14659    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14660      lt_prog_compiler_wl='-Wl,'
14661      lt_prog_compiler_pic='-KPIC'
14662      lt_prog_compiler_static='-Bstatic'
14663      ;;
14664
14665    unicos*)
14666      lt_prog_compiler_wl='-Wl,'
14667      lt_prog_compiler_can_build_shared=no
14668      ;;
14669
14670    uts4*)
14671      lt_prog_compiler_pic='-pic'
14672      lt_prog_compiler_static='-Bstatic'
14673      ;;
14674
14675    *)
14676      lt_prog_compiler_can_build_shared=no
14677      ;;
14678    esac
14679  fi
14680
14681{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14682echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14683
14684#
14685# Check to make sure the PIC flag actually works.
14686#
14687if test -n "$lt_prog_compiler_pic"; then
14688
14689{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14690echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14691if test "${lt_prog_compiler_pic_works+set}" = set; then
14692  echo $ECHO_N "(cached) $ECHO_C" >&6
14693else
14694  lt_prog_compiler_pic_works=no
14695  ac_outfile=conftest.$ac_objext
14696   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14697   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14698   # Insert the option either (1) after the last *FLAGS variable, or
14699   # (2) before a word containing "conftest.", or (3) at the end.
14700   # Note that $ac_compile itself does not contain backslashes and begins
14701   # with a dollar sign (not a hyphen), so the echo should work correctly.
14702   # The option is referenced via a variable to avoid confusing sed.
14703   lt_compile=`echo "$ac_compile" | $SED \
14704   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14705   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14706   -e 's:$: $lt_compiler_flag:'`
14707   (eval echo "\"\$as_me:14693: $lt_compile\"" >&5)
14708   (eval "$lt_compile" 2>conftest.err)
14709   ac_status=$?
14710   cat conftest.err >&5
14711   echo "$as_me:14697: \$? = $ac_status" >&5
14712   if (exit $ac_status) && test -s "$ac_outfile"; then
14713     # The compiler can only warn and ignore the option if not recognized
14714     # So say no if there are warnings other than the usual output.
14715     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14716     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14717     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14718       lt_prog_compiler_pic_works=yes
14719     fi
14720   fi
14721   $rm conftest*
14722
14723fi
14724{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14725echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14726
14727if test x"$lt_prog_compiler_pic_works" = xyes; then
14728    case $lt_prog_compiler_pic in
14729     "" | " "*) ;;
14730     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14731     esac
14732else
14733    lt_prog_compiler_pic=
14734     lt_prog_compiler_can_build_shared=no
14735fi
14736
14737fi
14738case $host_os in
14739  # For platforms which do not support PIC, -DPIC is meaningless:
14740  *djgpp*)
14741    lt_prog_compiler_pic=
14742    ;;
14743  *)
14744    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14745    ;;
14746esac
14747
14748#
14749# Check to make sure the static flag actually works.
14750#
14751wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14752{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14753echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14754if test "${lt_prog_compiler_static_works+set}" = set; then
14755  echo $ECHO_N "(cached) $ECHO_C" >&6
14756else
14757  lt_prog_compiler_static_works=no
14758   save_LDFLAGS="$LDFLAGS"
14759   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14760   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14761   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14762     # The linker can only warn and ignore the option if not recognized
14763     # So say no if there are warnings
14764     if test -s conftest.err; then
14765       # Append any errors to the config.log.
14766       cat conftest.err 1>&5
14767       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14768       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14769       if diff conftest.exp conftest.er2 >/dev/null; then
14770         lt_prog_compiler_static_works=yes
14771       fi
14772     else
14773       lt_prog_compiler_static_works=yes
14774     fi
14775   fi
14776   $rm conftest*
14777   LDFLAGS="$save_LDFLAGS"
14778
14779fi
14780{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14781echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14782
14783if test x"$lt_prog_compiler_static_works" = xyes; then
14784    :
14785else
14786    lt_prog_compiler_static=
14787fi
14788
14789
14790{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14791echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14792if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14793  echo $ECHO_N "(cached) $ECHO_C" >&6
14794else
14795  lt_cv_prog_compiler_c_o=no
14796   $rm -r conftest 2>/dev/null
14797   mkdir conftest
14798   cd conftest
14799   mkdir out
14800   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14801
14802   lt_compiler_flag="-o out/conftest2.$ac_objext"
14803   # Insert the option either (1) after the last *FLAGS variable, or
14804   # (2) before a word containing "conftest.", or (3) at the end.
14805   # Note that $ac_compile itself does not contain backslashes and begins
14806   # with a dollar sign (not a hyphen), so the echo should work correctly.
14807   lt_compile=`echo "$ac_compile" | $SED \
14808   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14809   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14810   -e 's:$: $lt_compiler_flag:'`
14811   (eval echo "\"\$as_me:14797: $lt_compile\"" >&5)
14812   (eval "$lt_compile" 2>out/conftest.err)
14813   ac_status=$?
14814   cat out/conftest.err >&5
14815   echo "$as_me:14801: \$? = $ac_status" >&5
14816   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14817   then
14818     # The compiler can only warn and ignore the option if not recognized
14819     # So say no if there are warnings
14820     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14821     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14822     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14823       lt_cv_prog_compiler_c_o=yes
14824     fi
14825   fi
14826   chmod u+w . 2>&5
14827   $rm conftest*
14828   # SGI C++ compiler will create directory out/ii_files/ for
14829   # template instantiation
14830   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14831   $rm out/* && rmdir out
14832   cd ..
14833   rmdir conftest
14834   $rm conftest*
14835
14836fi
14837{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14838echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14839
14840
14841hard_links="nottested"
14842if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14843  # do not overwrite the value of need_locks provided by the user
14844  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14845echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14846  hard_links=yes
14847  $rm conftest*
14848  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14849  touch conftest.a
14850  ln conftest.a conftest.b 2>&5 || hard_links=no
14851  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14852  { echo "$as_me:$LINENO: result: $hard_links" >&5
14853echo "${ECHO_T}$hard_links" >&6; }
14854  if test "$hard_links" = no; then
14855    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14856echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14857    need_locks=warn
14858  fi
14859else
14860  need_locks=no
14861fi
14862
14863{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14864echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14865
14866  runpath_var=
14867  allow_undefined_flag=
14868  enable_shared_with_static_runtimes=no
14869  archive_cmds=
14870  archive_expsym_cmds=
14871  old_archive_From_new_cmds=
14872  old_archive_from_expsyms_cmds=
14873  export_dynamic_flag_spec=
14874  whole_archive_flag_spec=
14875  thread_safe_flag_spec=
14876  hardcode_libdir_flag_spec=
14877  hardcode_libdir_flag_spec_ld=
14878  hardcode_libdir_separator=
14879  hardcode_direct=no
14880  hardcode_minus_L=no
14881  hardcode_shlibpath_var=unsupported
14882  link_all_deplibs=unknown
14883  hardcode_automatic=no
14884  module_cmds=
14885  module_expsym_cmds=
14886  always_export_symbols=no
14887  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14888  # include_expsyms should be a list of space-separated symbols to be *always*
14889  # included in the symbol list
14890  include_expsyms=
14891  # exclude_expsyms can be an extended regexp of symbols to exclude
14892  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14893  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14894  # as well as any symbol that contains `d'.
14895  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14896  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14897  # platforms (ab)use it in PIC code, but their linkers get confused if
14898  # the symbol is explicitly referenced.  Since portable code cannot
14899  # rely on this symbol name, it's probably fine to never include it in
14900  # preloaded symbol tables.
14901  extract_expsyms_cmds=
14902  # Just being paranoid about ensuring that cc_basename is set.
14903  for cc_temp in $compiler""; do
14904  case $cc_temp in
14905    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14906    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14907    \-*) ;;
14908    *) break;;
14909  esac
14910done
14911cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14912
14913  case $host_os in
14914  cygwin* | mingw* | pw32*)
14915    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14916    # When not using gcc, we currently assume that we are using
14917    # Microsoft Visual C++.
14918    if test "$GCC" != yes; then
14919      with_gnu_ld=no
14920    fi
14921    ;;
14922  interix*)
14923    # we just hope/assume this is gcc and not c89 (= MSVC++)
14924    with_gnu_ld=yes
14925    ;;
14926  openbsd*)
14927    with_gnu_ld=no
14928    ;;
14929  esac
14930
14931  ld_shlibs=yes
14932  if test "$with_gnu_ld" = yes; then
14933    # If archive_cmds runs LD, not CC, wlarc should be empty
14934    wlarc='${wl}'
14935
14936    # Set some defaults for GNU ld with shared library support. These
14937    # are reset later if shared libraries are not supported. Putting them
14938    # here allows them to be overridden if necessary.
14939    runpath_var=LD_RUN_PATH
14940    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14941    export_dynamic_flag_spec='${wl}--export-dynamic'
14942    # ancient GNU ld didn't support --whole-archive et. al.
14943    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14944	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14945      else
14946  	whole_archive_flag_spec=
14947    fi
14948    supports_anon_versioning=no
14949    case `$LD -v 2>/dev/null` in
14950      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14951      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14952      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14953      *\ 2.11.*) ;; # other 2.11 versions
14954      *) supports_anon_versioning=yes ;;
14955    esac
14956
14957    # See if GNU ld supports shared libraries.
14958    case $host_os in
14959    aix3* | aix4* | aix5*)
14960      # On AIX/PPC, the GNU linker is very broken
14961      if test "$host_cpu" != ia64; then
14962	ld_shlibs=no
14963	cat <<EOF 1>&2
14964
14965*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14966*** to be unable to reliably create shared libraries on AIX.
14967*** Therefore, libtool is disabling shared libraries support.  If you
14968*** really care for shared libraries, you may want to modify your PATH
14969*** so that a non-GNU linker is found, and then restart.
14970
14971EOF
14972      fi
14973      ;;
14974
14975    amigaos*)
14976      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)'
14977      hardcode_libdir_flag_spec='-L$libdir'
14978      hardcode_minus_L=yes
14979
14980      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14981      # that the semantics of dynamic libraries on AmigaOS, at least up
14982      # to version 4, is to share data among multiple programs linked
14983      # with the same dynamic library.  Since this doesn't match the
14984      # behavior of shared libraries on other platforms, we can't use
14985      # them.
14986      ld_shlibs=no
14987      ;;
14988
14989    beos*)
14990      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14991	allow_undefined_flag=unsupported
14992	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14993	# support --undefined.  This deserves some investigation.  FIXME
14994	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14995      else
14996	ld_shlibs=no
14997      fi
14998      ;;
14999
15000    cygwin* | mingw* | pw32*)
15001      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15002      # as there is no search path for DLLs.
15003      hardcode_libdir_flag_spec='-L$libdir'
15004      allow_undefined_flag=unsupported
15005      always_export_symbols=no
15006      enable_shared_with_static_runtimes=yes
15007      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15008
15009      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15010        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15011	# If the export-symbols file already is a .def file (1st line
15012	# is EXPORTS), use it as is; otherwise, prepend...
15013	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15014	  cp $export_symbols $output_objdir/$soname.def;
15015	else
15016	  echo EXPORTS > $output_objdir/$soname.def;
15017	  cat $export_symbols >> $output_objdir/$soname.def;
15018	fi~
15019	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15020      else
15021	ld_shlibs=no
15022      fi
15023      ;;
15024
15025    interix3*)
15026      hardcode_direct=no
15027      hardcode_shlibpath_var=no
15028      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15029      export_dynamic_flag_spec='${wl}-E'
15030      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15031      # Instead, shared libraries are loaded at an image base (0x10000000 by
15032      # default) and relocated if they conflict, which is a slow very memory
15033      # consuming and fragmenting process.  To avoid this, we pick a random,
15034      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15035      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15036      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15037      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'
15038      ;;
15039
15040    linux*)
15041      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15042	tmp_addflag=
15043	case $cc_basename,$host_cpu in
15044	pgcc*)				# Portland Group C compiler
15045	  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'
15046	  tmp_addflag=' $pic_flag'
15047	  ;;
15048	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15049	  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'
15050	  tmp_addflag=' $pic_flag -Mnomain' ;;
15051	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15052	  tmp_addflag=' -i_dynamic' ;;
15053	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15054	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15055	ifc* | ifort*)			# Intel Fortran compiler
15056	  tmp_addflag=' -nofor_main' ;;
15057	esac
15058	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15059
15060	if test $supports_anon_versioning = yes; then
15061	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15062  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15063  $echo "local: *; };" >> $output_objdir/$libname.ver~
15064	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15065	fi
15066      else
15067	ld_shlibs=no
15068      fi
15069      ;;
15070
15071    netbsd*)
15072      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15073	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15074	wlarc=
15075      else
15076	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15077	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15078      fi
15079      ;;
15080
15081    solaris*)
15082      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15083	ld_shlibs=no
15084	cat <<EOF 1>&2
15085
15086*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15087*** create shared libraries on Solaris systems.  Therefore, libtool
15088*** is disabling shared libraries support.  We urge you to upgrade GNU
15089*** binutils to release 2.9.1 or newer.  Another option is to modify
15090*** your PATH or compiler configuration so that the native linker is
15091*** used, and then restart.
15092
15093EOF
15094      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15095	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15096	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15097      else
15098	ld_shlibs=no
15099      fi
15100      ;;
15101
15102    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15103      case `$LD -v 2>&1` in
15104        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15105	ld_shlibs=no
15106	cat <<_LT_EOF 1>&2
15107
15108*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15109*** reliably create shared libraries on SCO systems.  Therefore, libtool
15110*** is disabling shared libraries support.  We urge you to upgrade GNU
15111*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15112*** your PATH or compiler configuration so that the native linker is
15113*** used, and then restart.
15114
15115_LT_EOF
15116	;;
15117	*)
15118	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15119	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15120	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15121	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15122	  else
15123	    ld_shlibs=no
15124	  fi
15125	;;
15126      esac
15127      ;;
15128
15129    sunos4*)
15130      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15131      wlarc=
15132      hardcode_direct=yes
15133      hardcode_shlibpath_var=no
15134      ;;
15135
15136    *)
15137      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15138	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15139	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15140      else
15141	ld_shlibs=no
15142      fi
15143      ;;
15144    esac
15145
15146    if test "$ld_shlibs" = no; then
15147      runpath_var=
15148      hardcode_libdir_flag_spec=
15149      export_dynamic_flag_spec=
15150      whole_archive_flag_spec=
15151    fi
15152  else
15153    # PORTME fill in a description of your system's linker (not GNU ld)
15154    case $host_os in
15155    aix3*)
15156      allow_undefined_flag=unsupported
15157      always_export_symbols=yes
15158      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'
15159      # Note: this linker hardcodes the directories in LIBPATH if there
15160      # are no directories specified by -L.
15161      hardcode_minus_L=yes
15162      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15163	# Neither direct hardcoding nor static linking is supported with a
15164	# broken collect2.
15165	hardcode_direct=unsupported
15166      fi
15167      ;;
15168
15169    aix4* | aix5*)
15170      if test "$host_cpu" = ia64; then
15171	# On IA64, the linker does run time linking by default, so we don't
15172	# have to do anything special.
15173	aix_use_runtimelinking=no
15174	exp_sym_flag='-Bexport'
15175	no_entry_flag=""
15176      else
15177	# If we're using GNU nm, then we don't want the "-C" option.
15178	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15179	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15180	  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'
15181	else
15182	  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'
15183	fi
15184	aix_use_runtimelinking=no
15185
15186	# Test if we are trying to use run time linking or normal
15187	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15188	# need to do runtime linking.
15189	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15190	  for ld_flag in $LDFLAGS; do
15191  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15192  	    aix_use_runtimelinking=yes
15193  	    break
15194  	  fi
15195	  done
15196	  ;;
15197	esac
15198
15199	exp_sym_flag='-bexport'
15200	no_entry_flag='-bnoentry'
15201      fi
15202
15203      # When large executables or shared objects are built, AIX ld can
15204      # have problems creating the table of contents.  If linking a library
15205      # or program results in "error TOC overflow" add -mminimal-toc to
15206      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15207      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15208
15209      archive_cmds=''
15210      hardcode_direct=yes
15211      hardcode_libdir_separator=':'
15212      link_all_deplibs=yes
15213
15214      if test "$GCC" = yes; then
15215	case $host_os in aix4.[012]|aix4.[012].*)
15216	# We only want to do this on AIX 4.2 and lower, the check
15217	# below for broken collect2 doesn't work under 4.3+
15218	  collect2name=`${CC} -print-prog-name=collect2`
15219	  if test -f "$collect2name" && \
15220  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15221	  then
15222  	  # We have reworked collect2
15223  	  hardcode_direct=yes
15224	  else
15225  	  # We have old collect2
15226  	  hardcode_direct=unsupported
15227  	  # It fails to find uninstalled libraries when the uninstalled
15228  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15229  	  # to unsupported forces relinking
15230  	  hardcode_minus_L=yes
15231  	  hardcode_libdir_flag_spec='-L$libdir'
15232  	  hardcode_libdir_separator=
15233	  fi
15234	  ;;
15235	esac
15236	shared_flag='-shared'
15237	if test "$aix_use_runtimelinking" = yes; then
15238	  shared_flag="$shared_flag "'${wl}-G'
15239	fi
15240      else
15241	# not using gcc
15242	if test "$host_cpu" = ia64; then
15243  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15244  	# chokes on -Wl,-G. The following line is correct:
15245	  shared_flag='-G'
15246	else
15247	  if test "$aix_use_runtimelinking" = yes; then
15248	    shared_flag='${wl}-G'
15249	  else
15250	    shared_flag='${wl}-bM:SRE'
15251	  fi
15252	fi
15253      fi
15254
15255      # It seems that -bexpall does not export symbols beginning with
15256      # underscore (_), so it is better to generate a list of symbols to export.
15257      always_export_symbols=yes
15258      if test "$aix_use_runtimelinking" = yes; then
15259	# Warning - without using the other runtime loading flags (-brtl),
15260	# -berok will link without error, but may produce a broken library.
15261	allow_undefined_flag='-berok'
15262       # Determine the default libpath from the value encoded in an empty executable.
15263       cat >conftest.$ac_ext <<_ACEOF
15264/* confdefs.h.  */
15265_ACEOF
15266cat confdefs.h >>conftest.$ac_ext
15267cat >>conftest.$ac_ext <<_ACEOF
15268/* end confdefs.h.  */
15269
15270int
15271main ()
15272{
15273
15274  ;
15275  return 0;
15276}
15277_ACEOF
15278rm -f conftest.$ac_objext conftest$ac_exeext
15279if { (ac_try="$ac_link"
15280case "(($ac_try" in
15281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15282  *) ac_try_echo=$ac_try;;
15283esac
15284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15285  (eval "$ac_link") 2>conftest.er1
15286  ac_status=$?
15287  grep -v '^ *+' conftest.er1 >conftest.err
15288  rm -f conftest.er1
15289  cat conftest.err >&5
15290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291  (exit $ac_status); } &&
15292	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15293  { (case "(($ac_try" in
15294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15295  *) ac_try_echo=$ac_try;;
15296esac
15297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15298  (eval "$ac_try") 2>&5
15299  ac_status=$?
15300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301  (exit $ac_status); }; } &&
15302	 { ac_try='test -s conftest$ac_exeext'
15303  { (case "(($ac_try" in
15304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15305  *) ac_try_echo=$ac_try;;
15306esac
15307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15308  (eval "$ac_try") 2>&5
15309  ac_status=$?
15310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311  (exit $ac_status); }; }; then
15312
15313aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15314}'`
15315# Check for a 64-bit object if we didn't find anything.
15316if 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; }
15317}'`; fi
15318else
15319  echo "$as_me: failed program was:" >&5
15320sed 's/^/| /' conftest.$ac_ext >&5
15321
15322
15323fi
15324
15325rm -f core conftest.err conftest.$ac_objext \
15326      conftest$ac_exeext conftest.$ac_ext
15327if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15328
15329       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15330	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"
15331       else
15332	if test "$host_cpu" = ia64; then
15333	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15334	  allow_undefined_flag="-z nodefs"
15335	  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"
15336	else
15337	 # Determine the default libpath from the value encoded in an empty executable.
15338	 cat >conftest.$ac_ext <<_ACEOF
15339/* confdefs.h.  */
15340_ACEOF
15341cat confdefs.h >>conftest.$ac_ext
15342cat >>conftest.$ac_ext <<_ACEOF
15343/* end confdefs.h.  */
15344
15345int
15346main ()
15347{
15348
15349  ;
15350  return 0;
15351}
15352_ACEOF
15353rm -f conftest.$ac_objext conftest$ac_exeext
15354if { (ac_try="$ac_link"
15355case "(($ac_try" in
15356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15357  *) ac_try_echo=$ac_try;;
15358esac
15359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15360  (eval "$ac_link") 2>conftest.er1
15361  ac_status=$?
15362  grep -v '^ *+' conftest.er1 >conftest.err
15363  rm -f conftest.er1
15364  cat conftest.err >&5
15365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366  (exit $ac_status); } &&
15367	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15368  { (case "(($ac_try" in
15369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15370  *) ac_try_echo=$ac_try;;
15371esac
15372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15373  (eval "$ac_try") 2>&5
15374  ac_status=$?
15375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376  (exit $ac_status); }; } &&
15377	 { ac_try='test -s conftest$ac_exeext'
15378  { (case "(($ac_try" in
15379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15380  *) ac_try_echo=$ac_try;;
15381esac
15382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15383  (eval "$ac_try") 2>&5
15384  ac_status=$?
15385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386  (exit $ac_status); }; }; then
15387
15388aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15389}'`
15390# Check for a 64-bit object if we didn't find anything.
15391if 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; }
15392}'`; fi
15393else
15394  echo "$as_me: failed program was:" >&5
15395sed 's/^/| /' conftest.$ac_ext >&5
15396
15397
15398fi
15399
15400rm -f core conftest.err conftest.$ac_objext \
15401      conftest$ac_exeext conftest.$ac_ext
15402if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15403
15404	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15405	  # Warning - without using the other run time loading flags,
15406	  # -berok will link without error, but may produce a broken library.
15407	  no_undefined_flag=' ${wl}-bernotok'
15408	  allow_undefined_flag=' ${wl}-berok'
15409	  # Exported symbols can be pulled into shared objects from archives
15410	  whole_archive_flag_spec='$convenience'
15411	  archive_cmds_need_lc=yes
15412	  # This is similar to how AIX traditionally builds its shared libraries.
15413	  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'
15414	fi
15415      fi
15416      ;;
15417
15418    amigaos*)
15419      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)'
15420      hardcode_libdir_flag_spec='-L$libdir'
15421      hardcode_minus_L=yes
15422      # see comment about different semantics on the GNU ld section
15423      ld_shlibs=no
15424      ;;
15425
15426    bsdi[45]*)
15427      export_dynamic_flag_spec=-rdynamic
15428      ;;
15429
15430    cygwin* | mingw* | pw32*)
15431      # When not using gcc, we currently assume that we are using
15432      # Microsoft Visual C++.
15433      # hardcode_libdir_flag_spec is actually meaningless, as there is
15434      # no search path for DLLs.
15435      hardcode_libdir_flag_spec=' '
15436      allow_undefined_flag=unsupported
15437      # Tell ltmain to make .lib files, not .a files.
15438      libext=lib
15439      # Tell ltmain to make .dll files, not .so files.
15440      shrext_cmds=".dll"
15441      # FIXME: Setting linknames here is a bad hack.
15442      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15443      # The linker will automatically build a .lib file if we build a DLL.
15444      old_archive_From_new_cmds='true'
15445      # FIXME: Should let the user specify the lib program.
15446      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15447      fix_srcfile_path='`cygpath -w "$srcfile"`'
15448      enable_shared_with_static_runtimes=yes
15449      ;;
15450
15451    darwin* | rhapsody*)
15452      case $host_os in
15453        rhapsody* | darwin1.[012])
15454         allow_undefined_flag='${wl}-undefined ${wl}suppress'
15455         ;;
15456       *) # Darwin 1.3 on
15457         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15458           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15459         else
15460           case ${MACOSX_DEPLOYMENT_TARGET} in
15461             10.[012])
15462               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15463               ;;
15464             10.*)
15465               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15466               ;;
15467           esac
15468         fi
15469         ;;
15470      esac
15471      archive_cmds_need_lc=no
15472      hardcode_direct=no
15473      hardcode_automatic=yes
15474      hardcode_shlibpath_var=unsupported
15475      whole_archive_flag_spec=''
15476      link_all_deplibs=yes
15477    if test "$GCC" = yes ; then
15478    	output_verbose_link_cmd='echo'
15479        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15480      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15481      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15482      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}'
15483      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}'
15484    else
15485      case $cc_basename in
15486        xlc*)
15487         output_verbose_link_cmd='echo'
15488         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15489         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15490          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15491         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}'
15492          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}'
15493          ;;
15494       *)
15495         ld_shlibs=no
15496          ;;
15497      esac
15498    fi
15499      ;;
15500
15501    dgux*)
15502      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15503      hardcode_libdir_flag_spec='-L$libdir'
15504      hardcode_shlibpath_var=no
15505      ;;
15506
15507    freebsd1*)
15508      ld_shlibs=no
15509      ;;
15510
15511    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15512    # support.  Future versions do this automatically, but an explicit c++rt0.o
15513    # does not break anything, and helps significantly (at the cost of a little
15514    # extra space).
15515    freebsd2.2*)
15516      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15517      hardcode_libdir_flag_spec='-R$libdir'
15518      hardcode_direct=yes
15519      hardcode_shlibpath_var=no
15520      ;;
15521
15522    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15523    freebsd2*)
15524      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15525      hardcode_direct=yes
15526      hardcode_minus_L=yes
15527      hardcode_shlibpath_var=no
15528      ;;
15529
15530    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15531    freebsd* | kfreebsd*-gnu | dragonfly*)
15532      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15533      hardcode_libdir_flag_spec='-R$libdir'
15534      hardcode_direct=yes
15535      hardcode_shlibpath_var=no
15536      ;;
15537
15538    hpux9*)
15539      if test "$GCC" = yes; then
15540	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'
15541      else
15542	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'
15543      fi
15544      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15545      hardcode_libdir_separator=:
15546      hardcode_direct=yes
15547
15548      # hardcode_minus_L: Not really in the search PATH,
15549      # but as the default location of the library.
15550      hardcode_minus_L=yes
15551      export_dynamic_flag_spec='${wl}-E'
15552      ;;
15553
15554    hpux10*)
15555      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15556	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15557      else
15558	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15559      fi
15560      if test "$with_gnu_ld" = no; then
15561	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15562	hardcode_libdir_separator=:
15563
15564	hardcode_direct=yes
15565	export_dynamic_flag_spec='${wl}-E'
15566
15567	# hardcode_minus_L: Not really in the search PATH,
15568	# but as the default location of the library.
15569	hardcode_minus_L=yes
15570      fi
15571      ;;
15572
15573    hpux11*)
15574      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15575	case $host_cpu in
15576	hppa*64*)
15577	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15578	  ;;
15579	ia64*)
15580	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15581	  ;;
15582	*)
15583	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15584	  ;;
15585	esac
15586      else
15587	case $host_cpu in
15588	hppa*64*)
15589	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15590	  ;;
15591	ia64*)
15592	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15593	  ;;
15594	*)
15595	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15596	  ;;
15597	esac
15598      fi
15599      if test "$with_gnu_ld" = no; then
15600	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15601	hardcode_libdir_separator=:
15602
15603	case $host_cpu in
15604	hppa*64*|ia64*)
15605	  hardcode_libdir_flag_spec_ld='+b $libdir'
15606	  hardcode_direct=no
15607	  hardcode_shlibpath_var=no
15608	  ;;
15609	*)
15610	  hardcode_direct=yes
15611	  export_dynamic_flag_spec='${wl}-E'
15612
15613	  # hardcode_minus_L: Not really in the search PATH,
15614	  # but as the default location of the library.
15615	  hardcode_minus_L=yes
15616	  ;;
15617	esac
15618      fi
15619      ;;
15620
15621    irix5* | irix6* | nonstopux*)
15622      if test "$GCC" = yes; then
15623	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'
15624      else
15625	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'
15626	hardcode_libdir_flag_spec_ld='-rpath $libdir'
15627      fi
15628      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15629      hardcode_libdir_separator=:
15630      link_all_deplibs=yes
15631      ;;
15632
15633    netbsd*)
15634      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15635	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15636      else
15637	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15638      fi
15639      hardcode_libdir_flag_spec='-R$libdir'
15640      hardcode_direct=yes
15641      hardcode_shlibpath_var=no
15642      ;;
15643
15644    newsos6)
15645      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15646      hardcode_direct=yes
15647      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15648      hardcode_libdir_separator=:
15649      hardcode_shlibpath_var=no
15650      ;;
15651
15652    openbsd*)
15653      hardcode_direct=yes
15654      hardcode_shlibpath_var=no
15655      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15656	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15657	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15658	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15659	export_dynamic_flag_spec='${wl}-E'
15660      else
15661       case $host_os in
15662	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15663	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15664	   hardcode_libdir_flag_spec='-R$libdir'
15665	   ;;
15666	 *)
15667	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15668	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15669	   ;;
15670       esac
15671      fi
15672      ;;
15673
15674    os2*)
15675      hardcode_libdir_flag_spec='-L$libdir'
15676      hardcode_minus_L=yes
15677      allow_undefined_flag=unsupported
15678      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'
15679      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15680      ;;
15681
15682    osf3*)
15683      if test "$GCC" = yes; then
15684	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15685	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'
15686      else
15687	allow_undefined_flag=' -expect_unresolved \*'
15688	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'
15689      fi
15690      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15691      hardcode_libdir_separator=:
15692      ;;
15693
15694    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15695      if test "$GCC" = yes; then
15696	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15697	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'
15698	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15699      else
15700	allow_undefined_flag=' -expect_unresolved \*'
15701	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'
15702	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15703	$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'
15704
15705	# Both c and cxx compiler support -rpath directly
15706	hardcode_libdir_flag_spec='-rpath $libdir'
15707      fi
15708      hardcode_libdir_separator=:
15709      ;;
15710
15711    solaris*)
15712      no_undefined_flag=' -z text'
15713      if test "$GCC" = yes; then
15714	wlarc='${wl}'
15715	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15716	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15717	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15718      else
15719	wlarc=''
15720	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15721	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15722  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15723      fi
15724      hardcode_libdir_flag_spec='-R$libdir'
15725      hardcode_shlibpath_var=no
15726      case $host_os in
15727      solaris2.[0-5] | solaris2.[0-5].*) ;;
15728      *)
15729 	# The compiler driver will combine linker options so we
15730 	# cannot just pass the convience library names through
15731 	# without $wl, iff we do not link with $LD.
15732 	# Luckily, gcc supports the same syntax we need for Sun Studio.
15733 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15734 	case $wlarc in
15735 	'')
15736 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15737 	*)
15738 	  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' ;;
15739 	esac ;;
15740      esac
15741      link_all_deplibs=yes
15742      ;;
15743
15744    sunos4*)
15745      if test "x$host_vendor" = xsequent; then
15746	# Use $CC to link under sequent, because it throws in some extra .o
15747	# files that make .init and .fini sections work.
15748	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15749      else
15750	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15751      fi
15752      hardcode_libdir_flag_spec='-L$libdir'
15753      hardcode_direct=yes
15754      hardcode_minus_L=yes
15755      hardcode_shlibpath_var=no
15756      ;;
15757
15758    sysv4)
15759      case $host_vendor in
15760	sni)
15761	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15762	  hardcode_direct=yes # is this really true???
15763	;;
15764	siemens)
15765	  ## LD is ld it makes a PLAMLIB
15766	  ## CC just makes a GrossModule.
15767	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15768	  reload_cmds='$CC -r -o $output$reload_objs'
15769	  hardcode_direct=no
15770        ;;
15771	motorola)
15772	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15773	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15774	;;
15775      esac
15776      runpath_var='LD_RUN_PATH'
15777      hardcode_shlibpath_var=no
15778      ;;
15779
15780    sysv4.3*)
15781      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15782      hardcode_shlibpath_var=no
15783      export_dynamic_flag_spec='-Bexport'
15784      ;;
15785
15786    sysv4*MP*)
15787      if test -d /usr/nec; then
15788	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15789	hardcode_shlibpath_var=no
15790	runpath_var=LD_RUN_PATH
15791	hardcode_runpath_var=yes
15792	ld_shlibs=yes
15793      fi
15794      ;;
15795
15796    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15797      no_undefined_flag='${wl}-z,text'
15798      archive_cmds_need_lc=no
15799      hardcode_shlibpath_var=no
15800      runpath_var='LD_RUN_PATH'
15801
15802      if test "$GCC" = yes; then
15803	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15804	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15805      else
15806	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15807	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15808      fi
15809      ;;
15810
15811    sysv5* | sco3.2v5* | sco5v6*)
15812      # Note: We can NOT use -z defs as we might desire, because we do not
15813      # link with -lc, and that would cause any symbols used from libc to
15814      # always be unresolved, which means just about no library would
15815      # ever link correctly.  If we're not using GNU ld we use -z text
15816      # though, which does catch some bad symbols but isn't as heavy-handed
15817      # as -z defs.
15818      no_undefined_flag='${wl}-z,text'
15819      allow_undefined_flag='${wl}-z,nodefs'
15820      archive_cmds_need_lc=no
15821      hardcode_shlibpath_var=no
15822      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15823      hardcode_libdir_separator=':'
15824      link_all_deplibs=yes
15825      export_dynamic_flag_spec='${wl}-Bexport'
15826      runpath_var='LD_RUN_PATH'
15827
15828      if test "$GCC" = yes; then
15829	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15830	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15831      else
15832	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15833	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15834      fi
15835      ;;
15836
15837    uts4*)
15838      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15839      hardcode_libdir_flag_spec='-L$libdir'
15840      hardcode_shlibpath_var=no
15841      ;;
15842
15843    *)
15844      ld_shlibs=no
15845      ;;
15846    esac
15847  fi
15848
15849{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15850echo "${ECHO_T}$ld_shlibs" >&6; }
15851test "$ld_shlibs" = no && can_build_shared=no
15852
15853#
15854# Do we need to explicitly link libc?
15855#
15856case "x$archive_cmds_need_lc" in
15857x|xyes)
15858  # Assume -lc should be added
15859  archive_cmds_need_lc=yes
15860
15861  if test "$enable_shared" = yes && test "$GCC" = yes; then
15862    case $archive_cmds in
15863    *'~'*)
15864      # FIXME: we may have to deal with multi-command sequences.
15865      ;;
15866    '$CC '*)
15867      # Test whether the compiler implicitly links with -lc since on some
15868      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15869      # to ld, don't add -lc before -lgcc.
15870      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15871echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15872      $rm conftest*
15873      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15874
15875      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15876  (eval $ac_compile) 2>&5
15877  ac_status=$?
15878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879  (exit $ac_status); } 2>conftest.err; then
15880        soname=conftest
15881        lib=conftest
15882        libobjs=conftest.$ac_objext
15883        deplibs=
15884        wl=$lt_prog_compiler_wl
15885	pic_flag=$lt_prog_compiler_pic
15886        compiler_flags=-v
15887        linker_flags=-v
15888        verstring=
15889        output_objdir=.
15890        libname=conftest
15891        lt_save_allow_undefined_flag=$allow_undefined_flag
15892        allow_undefined_flag=
15893        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15894  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15895  ac_status=$?
15896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897  (exit $ac_status); }
15898        then
15899	  archive_cmds_need_lc=no
15900        else
15901	  archive_cmds_need_lc=yes
15902        fi
15903        allow_undefined_flag=$lt_save_allow_undefined_flag
15904      else
15905        cat conftest.err 1>&5
15906      fi
15907      $rm conftest*
15908      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15909echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15910      ;;
15911    esac
15912  fi
15913  ;;
15914esac
15915
15916{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15917echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15918library_names_spec=
15919libname_spec='lib$name'
15920soname_spec=
15921shrext_cmds=".so"
15922postinstall_cmds=
15923postuninstall_cmds=
15924finish_cmds=
15925finish_eval=
15926shlibpath_var=
15927shlibpath_overrides_runpath=unknown
15928version_type=none
15929dynamic_linker="$host_os ld.so"
15930sys_lib_dlsearch_path_spec="/lib /usr/lib"
15931if test "$GCC" = yes; then
15932  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15933  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15934    # if the path contains ";" then we assume it to be the separator
15935    # otherwise default to the standard path separator (i.e. ":") - it is
15936    # assumed that no part of a normal pathname contains ";" but that should
15937    # okay in the real world where ";" in dirpaths is itself problematic.
15938    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15939  else
15940    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15941  fi
15942else
15943  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15944fi
15945need_lib_prefix=unknown
15946hardcode_into_libs=no
15947
15948# when you set need_version to no, make sure it does not cause -set_version
15949# flags to be left without arguments
15950need_version=unknown
15951
15952case $host_os in
15953aix3*)
15954  version_type=linux
15955  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15956  shlibpath_var=LIBPATH
15957
15958  # AIX 3 has no versioning support, so we append a major version to the name.
15959  soname_spec='${libname}${release}${shared_ext}$major'
15960  ;;
15961
15962aix4* | aix5*)
15963  version_type=linux
15964  need_lib_prefix=no
15965  need_version=no
15966  hardcode_into_libs=yes
15967  if test "$host_cpu" = ia64; then
15968    # AIX 5 supports IA64
15969    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15970    shlibpath_var=LD_LIBRARY_PATH
15971  else
15972    # With GCC up to 2.95.x, collect2 would create an import file
15973    # for dependence libraries.  The import file would start with
15974    # the line `#! .'.  This would cause the generated library to
15975    # depend on `.', always an invalid library.  This was fixed in
15976    # development snapshots of GCC prior to 3.0.
15977    case $host_os in
15978      aix4 | aix4.[01] | aix4.[01].*)
15979      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15980	   echo ' yes '
15981	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15982	:
15983      else
15984	can_build_shared=no
15985      fi
15986      ;;
15987    esac
15988    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15989    # soname into executable. Probably we can add versioning support to
15990    # collect2, so additional links can be useful in future.
15991    if test "$aix_use_runtimelinking" = yes; then
15992      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15993      # instead of lib<name>.a to let people know that these are not
15994      # typical AIX shared libraries.
15995      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15996    else
15997      # We preserve .a as extension for shared libraries through AIX4.2
15998      # and later when we are not doing run time linking.
15999      library_names_spec='${libname}${release}.a $libname.a'
16000      soname_spec='${libname}${release}${shared_ext}$major'
16001    fi
16002    shlibpath_var=LIBPATH
16003  fi
16004  ;;
16005
16006amigaos*)
16007  library_names_spec='$libname.ixlibrary $libname.a'
16008  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16009  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'
16010  ;;
16011
16012beos*)
16013  library_names_spec='${libname}${shared_ext}'
16014  dynamic_linker="$host_os ld.so"
16015  shlibpath_var=LIBRARY_PATH
16016  ;;
16017
16018bsdi[45]*)
16019  version_type=linux
16020  need_version=no
16021  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16022  soname_spec='${libname}${release}${shared_ext}$major'
16023  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16024  shlibpath_var=LD_LIBRARY_PATH
16025  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16026  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16027  # the default ld.so.conf also contains /usr/contrib/lib and
16028  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16029  # libtool to hard-code these into programs
16030  ;;
16031
16032cygwin* | mingw* | pw32*)
16033  version_type=windows
16034  shrext_cmds=".dll"
16035  need_version=no
16036  need_lib_prefix=no
16037
16038  case $GCC,$host_os in
16039  yes,cygwin* | yes,mingw* | yes,pw32*)
16040    library_names_spec='$libname.dll.a'
16041    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16042    postinstall_cmds='base_file=`basename \${file}`~
16043      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16044      dldir=$destdir/`dirname \$dlpath`~
16045      test -d \$dldir || mkdir -p \$dldir~
16046      $install_prog $dir/$dlname \$dldir/$dlname~
16047      chmod a+x \$dldir/$dlname'
16048    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16049      dlpath=$dir/\$dldll~
16050       $rm \$dlpath'
16051    shlibpath_overrides_runpath=yes
16052
16053    case $host_os in
16054    cygwin*)
16055      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16056      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16057      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16058      ;;
16059    mingw*)
16060      # MinGW DLLs use traditional 'lib' prefix
16061      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16062      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16063      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16064        # It is most probably a Windows format PATH printed by
16065        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16066        # path with ; separators, and with drive letters. We can handle the
16067        # drive letters (cygwin fileutils understands them), so leave them,
16068        # especially as we might pass files found there to a mingw objdump,
16069        # which wouldn't understand a cygwinified path. Ahh.
16070        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16071      else
16072        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16073      fi
16074      ;;
16075    pw32*)
16076      # pw32 DLLs use 'pw' prefix rather than 'lib'
16077      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16078      ;;
16079    esac
16080    ;;
16081
16082  *)
16083    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16084    ;;
16085  esac
16086  dynamic_linker='Win32 ld.exe'
16087  # FIXME: first we should search . and the directory the executable is in
16088  shlibpath_var=PATH
16089  ;;
16090
16091darwin* | rhapsody*)
16092  dynamic_linker="$host_os dyld"
16093  version_type=darwin
16094  need_lib_prefix=no
16095  need_version=no
16096  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16097  soname_spec='${libname}${release}${major}$shared_ext'
16098  shlibpath_overrides_runpath=yes
16099  shlibpath_var=DYLD_LIBRARY_PATH
16100  shrext_cmds='.dylib'
16101  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16102  if test "$GCC" = yes; then
16103    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"`
16104  else
16105    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16106  fi
16107  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16108  ;;
16109
16110dgux*)
16111  version_type=linux
16112  need_lib_prefix=no
16113  need_version=no
16114  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16115  soname_spec='${libname}${release}${shared_ext}$major'
16116  shlibpath_var=LD_LIBRARY_PATH
16117  ;;
16118
16119freebsd1*)
16120  dynamic_linker=no
16121  ;;
16122
16123kfreebsd*-gnu)
16124  version_type=linux
16125  need_lib_prefix=no
16126  need_version=no
16127  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16128  soname_spec='${libname}${release}${shared_ext}$major'
16129  shlibpath_var=LD_LIBRARY_PATH
16130  shlibpath_overrides_runpath=no
16131  hardcode_into_libs=yes
16132  dynamic_linker='GNU ld.so'
16133  ;;
16134
16135freebsd* | dragonfly*)
16136  # DragonFly does not have aout.  When/if they implement a new
16137  # versioning mechanism, adjust this.
16138  if test -x /usr/bin/objformat; then
16139    objformat=`/usr/bin/objformat`
16140  else
16141    case $host_os in
16142    freebsd[123]*) objformat=aout ;;
16143    *) objformat=elf ;;
16144    esac
16145  fi
16146  version_type=freebsd-$objformat
16147  case $version_type in
16148    freebsd-elf*)
16149      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16150      need_version=no
16151      need_lib_prefix=no
16152      ;;
16153    freebsd-*)
16154      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16155      need_version=yes
16156      ;;
16157  esac
16158  shlibpath_var=LD_LIBRARY_PATH
16159  case $host_os in
16160  freebsd2*)
16161    shlibpath_overrides_runpath=yes
16162    ;;
16163  freebsd3.[01]* | freebsdelf3.[01]*)
16164    shlibpath_overrides_runpath=yes
16165    hardcode_into_libs=yes
16166    ;;
16167  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16168  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16169    shlibpath_overrides_runpath=no
16170    hardcode_into_libs=yes
16171    ;;
16172  freebsd*) # from 4.6 on
16173    shlibpath_overrides_runpath=yes
16174    hardcode_into_libs=yes
16175    ;;
16176  esac
16177  ;;
16178
16179gnu*)
16180  version_type=linux
16181  need_lib_prefix=no
16182  need_version=no
16183  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16184  soname_spec='${libname}${release}${shared_ext}$major'
16185  shlibpath_var=LD_LIBRARY_PATH
16186  hardcode_into_libs=yes
16187  ;;
16188
16189hpux9* | hpux10* | hpux11*)
16190  # Give a soname corresponding to the major version so that dld.sl refuses to
16191  # link against other versions.
16192  version_type=sunos
16193  need_lib_prefix=no
16194  need_version=no
16195  case $host_cpu in
16196  ia64*)
16197    shrext_cmds='.so'
16198    hardcode_into_libs=yes
16199    dynamic_linker="$host_os dld.so"
16200    shlibpath_var=LD_LIBRARY_PATH
16201    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16202    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16203    soname_spec='${libname}${release}${shared_ext}$major'
16204    if test "X$HPUX_IA64_MODE" = X32; then
16205      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16206    else
16207      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16208    fi
16209    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16210    ;;
16211   hppa*64*)
16212     shrext_cmds='.sl'
16213     hardcode_into_libs=yes
16214     dynamic_linker="$host_os dld.sl"
16215     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16216     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16217     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16218     soname_spec='${libname}${release}${shared_ext}$major'
16219     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16220     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16221     ;;
16222   *)
16223    shrext_cmds='.sl'
16224    dynamic_linker="$host_os dld.sl"
16225    shlibpath_var=SHLIB_PATH
16226    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16227    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16228    soname_spec='${libname}${release}${shared_ext}$major'
16229    ;;
16230  esac
16231  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16232  postinstall_cmds='chmod 555 $lib'
16233  ;;
16234
16235interix3*)
16236  version_type=linux
16237  need_lib_prefix=no
16238  need_version=no
16239  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16240  soname_spec='${libname}${release}${shared_ext}$major'
16241  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16242  shlibpath_var=LD_LIBRARY_PATH
16243  shlibpath_overrides_runpath=no
16244  hardcode_into_libs=yes
16245  ;;
16246
16247irix5* | irix6* | nonstopux*)
16248  case $host_os in
16249    nonstopux*) version_type=nonstopux ;;
16250    *)
16251	if test "$lt_cv_prog_gnu_ld" = yes; then
16252		version_type=linux
16253	else
16254		version_type=irix
16255	fi ;;
16256  esac
16257  need_lib_prefix=no
16258  need_version=no
16259  soname_spec='${libname}${release}${shared_ext}$major'
16260  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16261  case $host_os in
16262  irix5* | nonstopux*)
16263    libsuff= shlibsuff=
16264    ;;
16265  *)
16266    case $LD in # libtool.m4 will add one of these switches to LD
16267    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16268      libsuff= shlibsuff= libmagic=32-bit;;
16269    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16270      libsuff=32 shlibsuff=N32 libmagic=N32;;
16271    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16272      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16273    *) libsuff= shlibsuff= libmagic=never-match;;
16274    esac
16275    ;;
16276  esac
16277  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16278  shlibpath_overrides_runpath=no
16279  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16280  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16281  hardcode_into_libs=yes
16282  ;;
16283
16284# No shared lib support for Linux oldld, aout, or coff.
16285linux*oldld* | linux*aout* | linux*coff*)
16286  dynamic_linker=no
16287  ;;
16288
16289# This must be Linux ELF.
16290linux*)
16291  version_type=linux
16292  need_lib_prefix=no
16293  need_version=no
16294  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16295  soname_spec='${libname}${release}${shared_ext}$major'
16296  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16297  shlibpath_var=LD_LIBRARY_PATH
16298  shlibpath_overrides_runpath=no
16299  # This implies no fast_install, which is unacceptable.
16300  # Some rework will be needed to allow for fast_install
16301  # before this can be enabled.
16302  hardcode_into_libs=yes
16303
16304  # Append ld.so.conf contents to the search path
16305  if test -f /etc/ld.so.conf; then
16306    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' ' '`
16307    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16308  fi
16309
16310  # We used to test for /lib/ld.so.1 and disable shared libraries on
16311  # powerpc, because MkLinux only supported shared libraries with the
16312  # GNU dynamic linker.  Since this was broken with cross compilers,
16313  # most powerpc-linux boxes support dynamic linking these days and
16314  # people can always --disable-shared, the test was removed, and we
16315  # assume the GNU/Linux dynamic linker is in use.
16316  dynamic_linker='GNU/Linux ld.so'
16317  ;;
16318
16319knetbsd*-gnu)
16320  version_type=linux
16321  need_lib_prefix=no
16322  need_version=no
16323  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16324  soname_spec='${libname}${release}${shared_ext}$major'
16325  shlibpath_var=LD_LIBRARY_PATH
16326  shlibpath_overrides_runpath=no
16327  hardcode_into_libs=yes
16328  dynamic_linker='GNU ld.so'
16329  ;;
16330
16331netbsd*)
16332  version_type=sunos
16333  need_lib_prefix=no
16334  need_version=no
16335  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16336    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16337    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16338    dynamic_linker='NetBSD (a.out) ld.so'
16339  else
16340    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16341    soname_spec='${libname}${release}${shared_ext}$major'
16342    dynamic_linker='NetBSD ld.elf_so'
16343  fi
16344  shlibpath_var=LD_LIBRARY_PATH
16345  shlibpath_overrides_runpath=yes
16346  hardcode_into_libs=yes
16347  ;;
16348
16349newsos6)
16350  version_type=linux
16351  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16352  shlibpath_var=LD_LIBRARY_PATH
16353  shlibpath_overrides_runpath=yes
16354  ;;
16355
16356nto-qnx*)
16357  version_type=linux
16358  need_lib_prefix=no
16359  need_version=no
16360  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16361  soname_spec='${libname}${release}${shared_ext}$major'
16362  shlibpath_var=LD_LIBRARY_PATH
16363  shlibpath_overrides_runpath=yes
16364  ;;
16365
16366openbsd*)
16367  version_type=sunos
16368  sys_lib_dlsearch_path_spec="/usr/lib"
16369  need_lib_prefix=no
16370  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16371  case $host_os in
16372    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16373    *)                         need_version=no  ;;
16374  esac
16375  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16376  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16377  shlibpath_var=LD_LIBRARY_PATH
16378  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16379    case $host_os in
16380      openbsd2.[89] | openbsd2.[89].*)
16381	shlibpath_overrides_runpath=no
16382	;;
16383      *)
16384	shlibpath_overrides_runpath=yes
16385	;;
16386      esac
16387  else
16388    shlibpath_overrides_runpath=yes
16389  fi
16390  ;;
16391
16392os2*)
16393  libname_spec='$name'
16394  shrext_cmds=".dll"
16395  need_lib_prefix=no
16396  library_names_spec='$libname${shared_ext} $libname.a'
16397  dynamic_linker='OS/2 ld.exe'
16398  shlibpath_var=LIBPATH
16399  ;;
16400
16401osf3* | osf4* | osf5*)
16402  version_type=osf
16403  need_lib_prefix=no
16404  need_version=no
16405  soname_spec='${libname}${release}${shared_ext}$major'
16406  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16407  shlibpath_var=LD_LIBRARY_PATH
16408  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16409  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16410  ;;
16411
16412solaris*)
16413  version_type=linux
16414  need_lib_prefix=no
16415  need_version=no
16416  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16417  soname_spec='${libname}${release}${shared_ext}$major'
16418  shlibpath_var=LD_LIBRARY_PATH
16419  shlibpath_overrides_runpath=yes
16420  hardcode_into_libs=yes
16421  # ldd complains unless libraries are executable
16422  postinstall_cmds='chmod +x $lib'
16423  ;;
16424
16425sunos4*)
16426  version_type=sunos
16427  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16428  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16429  shlibpath_var=LD_LIBRARY_PATH
16430  shlibpath_overrides_runpath=yes
16431  if test "$with_gnu_ld" = yes; then
16432    need_lib_prefix=no
16433  fi
16434  need_version=yes
16435  ;;
16436
16437sysv4 | sysv4.3*)
16438  version_type=linux
16439  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16440  soname_spec='${libname}${release}${shared_ext}$major'
16441  shlibpath_var=LD_LIBRARY_PATH
16442  case $host_vendor in
16443    sni)
16444      shlibpath_overrides_runpath=no
16445      need_lib_prefix=no
16446      export_dynamic_flag_spec='${wl}-Blargedynsym'
16447      runpath_var=LD_RUN_PATH
16448      ;;
16449    siemens)
16450      need_lib_prefix=no
16451      ;;
16452    motorola)
16453      need_lib_prefix=no
16454      need_version=no
16455      shlibpath_overrides_runpath=no
16456      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16457      ;;
16458  esac
16459  ;;
16460
16461sysv4*MP*)
16462  if test -d /usr/nec ;then
16463    version_type=linux
16464    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16465    soname_spec='$libname${shared_ext}.$major'
16466    shlibpath_var=LD_LIBRARY_PATH
16467  fi
16468  ;;
16469
16470sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16471  version_type=freebsd-elf
16472  need_lib_prefix=no
16473  need_version=no
16474  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16475  soname_spec='${libname}${release}${shared_ext}$major'
16476  shlibpath_var=LD_LIBRARY_PATH
16477  hardcode_into_libs=yes
16478  if test "$with_gnu_ld" = yes; then
16479    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16480    shlibpath_overrides_runpath=no
16481  else
16482    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16483    shlibpath_overrides_runpath=yes
16484    case $host_os in
16485      sco3.2v5*)
16486        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16487	;;
16488    esac
16489  fi
16490  sys_lib_dlsearch_path_spec='/usr/lib'
16491  ;;
16492
16493uts4*)
16494  version_type=linux
16495  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16496  soname_spec='${libname}${release}${shared_ext}$major'
16497  shlibpath_var=LD_LIBRARY_PATH
16498  ;;
16499
16500*)
16501  dynamic_linker=no
16502  ;;
16503esac
16504{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16505echo "${ECHO_T}$dynamic_linker" >&6; }
16506test "$dynamic_linker" = no && can_build_shared=no
16507
16508variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16509if test "$GCC" = yes; then
16510  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16511fi
16512
16513{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16514echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16515hardcode_action=
16516if test -n "$hardcode_libdir_flag_spec" || \
16517   test -n "$runpath_var" || \
16518   test "X$hardcode_automatic" = "Xyes" ; then
16519
16520  # We can hardcode non-existant directories.
16521  if test "$hardcode_direct" != no &&
16522     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16523     # have to relink, otherwise we might link with an installed library
16524     # when we should be linking with a yet-to-be-installed one
16525     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16526     test "$hardcode_minus_L" != no; then
16527    # Linking always hardcodes the temporary library directory.
16528    hardcode_action=relink
16529  else
16530    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16531    hardcode_action=immediate
16532  fi
16533else
16534  # We cannot hardcode anything, or else we can only hardcode existing
16535  # directories.
16536  hardcode_action=unsupported
16537fi
16538{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16539echo "${ECHO_T}$hardcode_action" >&6; }
16540
16541if test "$hardcode_action" = relink; then
16542  # Fast installation is not supported
16543  enable_fast_install=no
16544elif test "$shlibpath_overrides_runpath" = yes ||
16545     test "$enable_shared" = no; then
16546  # Fast installation is not necessary
16547  enable_fast_install=needless
16548fi
16549
16550striplib=
16551old_striplib=
16552{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16553echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16554if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16555  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16556  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16557  { echo "$as_me:$LINENO: result: yes" >&5
16558echo "${ECHO_T}yes" >&6; }
16559else
16560# FIXME - insert some real tests, host_os isn't really good enough
16561  case $host_os in
16562   darwin*)
16563       if test -n "$STRIP" ; then
16564         striplib="$STRIP -x"
16565         { echo "$as_me:$LINENO: result: yes" >&5
16566echo "${ECHO_T}yes" >&6; }
16567       else
16568  { echo "$as_me:$LINENO: result: no" >&5
16569echo "${ECHO_T}no" >&6; }
16570fi
16571       ;;
16572   *)
16573  { echo "$as_me:$LINENO: result: no" >&5
16574echo "${ECHO_T}no" >&6; }
16575    ;;
16576  esac
16577fi
16578
16579if test "x$enable_dlopen" != xyes; then
16580  enable_dlopen=unknown
16581  enable_dlopen_self=unknown
16582  enable_dlopen_self_static=unknown
16583else
16584  lt_cv_dlopen=no
16585  lt_cv_dlopen_libs=
16586
16587  case $host_os in
16588  beos*)
16589    lt_cv_dlopen="load_add_on"
16590    lt_cv_dlopen_libs=
16591    lt_cv_dlopen_self=yes
16592    ;;
16593
16594  mingw* | pw32*)
16595    lt_cv_dlopen="LoadLibrary"
16596    lt_cv_dlopen_libs=
16597   ;;
16598
16599  cygwin*)
16600    lt_cv_dlopen="dlopen"
16601    lt_cv_dlopen_libs=
16602   ;;
16603
16604  darwin*)
16605  # if libdl is installed we need to link against it
16606    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16607echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16608if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16609  echo $ECHO_N "(cached) $ECHO_C" >&6
16610else
16611  ac_check_lib_save_LIBS=$LIBS
16612LIBS="-ldl  $LIBS"
16613cat >conftest.$ac_ext <<_ACEOF
16614/* confdefs.h.  */
16615_ACEOF
16616cat confdefs.h >>conftest.$ac_ext
16617cat >>conftest.$ac_ext <<_ACEOF
16618/* end confdefs.h.  */
16619
16620/* Override any GCC internal prototype to avoid an error.
16621   Use char because int might match the return type of a GCC
16622   builtin and then its argument prototype would still apply.  */
16623#ifdef __cplusplus
16624extern "C"
16625#endif
16626char dlopen ();
16627int
16628main ()
16629{
16630return dlopen ();
16631  ;
16632  return 0;
16633}
16634_ACEOF
16635rm -f conftest.$ac_objext conftest$ac_exeext
16636if { (ac_try="$ac_link"
16637case "(($ac_try" in
16638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639  *) ac_try_echo=$ac_try;;
16640esac
16641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16642  (eval "$ac_link") 2>conftest.er1
16643  ac_status=$?
16644  grep -v '^ *+' conftest.er1 >conftest.err
16645  rm -f conftest.er1
16646  cat conftest.err >&5
16647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648  (exit $ac_status); } &&
16649	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16650  { (case "(($ac_try" in
16651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16652  *) ac_try_echo=$ac_try;;
16653esac
16654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16655  (eval "$ac_try") 2>&5
16656  ac_status=$?
16657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658  (exit $ac_status); }; } &&
16659	 { ac_try='test -s conftest$ac_exeext'
16660  { (case "(($ac_try" in
16661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16662  *) ac_try_echo=$ac_try;;
16663esac
16664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16665  (eval "$ac_try") 2>&5
16666  ac_status=$?
16667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668  (exit $ac_status); }; }; then
16669  ac_cv_lib_dl_dlopen=yes
16670else
16671  echo "$as_me: failed program was:" >&5
16672sed 's/^/| /' conftest.$ac_ext >&5
16673
16674	ac_cv_lib_dl_dlopen=no
16675fi
16676
16677rm -f core conftest.err conftest.$ac_objext \
16678      conftest$ac_exeext conftest.$ac_ext
16679LIBS=$ac_check_lib_save_LIBS
16680fi
16681{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16682echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16683if test $ac_cv_lib_dl_dlopen = yes; then
16684  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16685else
16686
16687    lt_cv_dlopen="dyld"
16688    lt_cv_dlopen_libs=
16689    lt_cv_dlopen_self=yes
16690
16691fi
16692
16693   ;;
16694
16695  *)
16696    { echo "$as_me:$LINENO: checking for shl_load" >&5
16697echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16698if test "${ac_cv_func_shl_load+set}" = set; then
16699  echo $ECHO_N "(cached) $ECHO_C" >&6
16700else
16701  cat >conftest.$ac_ext <<_ACEOF
16702/* confdefs.h.  */
16703_ACEOF
16704cat confdefs.h >>conftest.$ac_ext
16705cat >>conftest.$ac_ext <<_ACEOF
16706/* end confdefs.h.  */
16707/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16708   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16709#define shl_load innocuous_shl_load
16710
16711/* System header to define __stub macros and hopefully few prototypes,
16712    which can conflict with char shl_load (); below.
16713    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16714    <limits.h> exists even on freestanding compilers.  */
16715
16716#ifdef __STDC__
16717# include <limits.h>
16718#else
16719# include <assert.h>
16720#endif
16721
16722#undef shl_load
16723
16724/* Override any GCC internal prototype to avoid an error.
16725   Use char because int might match the return type of a GCC
16726   builtin and then its argument prototype would still apply.  */
16727#ifdef __cplusplus
16728extern "C"
16729#endif
16730char shl_load ();
16731/* The GNU C library defines this for functions which it implements
16732    to always fail with ENOSYS.  Some functions are actually named
16733    something starting with __ and the normal name is an alias.  */
16734#if defined __stub_shl_load || defined __stub___shl_load
16735choke me
16736#endif
16737
16738int
16739main ()
16740{
16741return shl_load ();
16742  ;
16743  return 0;
16744}
16745_ACEOF
16746rm -f conftest.$ac_objext conftest$ac_exeext
16747if { (ac_try="$ac_link"
16748case "(($ac_try" in
16749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16750  *) ac_try_echo=$ac_try;;
16751esac
16752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16753  (eval "$ac_link") 2>conftest.er1
16754  ac_status=$?
16755  grep -v '^ *+' conftest.er1 >conftest.err
16756  rm -f conftest.er1
16757  cat conftest.err >&5
16758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759  (exit $ac_status); } &&
16760	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16761  { (case "(($ac_try" in
16762  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16763  *) ac_try_echo=$ac_try;;
16764esac
16765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16766  (eval "$ac_try") 2>&5
16767  ac_status=$?
16768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769  (exit $ac_status); }; } &&
16770	 { ac_try='test -s conftest$ac_exeext'
16771  { (case "(($ac_try" in
16772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16773  *) ac_try_echo=$ac_try;;
16774esac
16775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16776  (eval "$ac_try") 2>&5
16777  ac_status=$?
16778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779  (exit $ac_status); }; }; then
16780  ac_cv_func_shl_load=yes
16781else
16782  echo "$as_me: failed program was:" >&5
16783sed 's/^/| /' conftest.$ac_ext >&5
16784
16785	ac_cv_func_shl_load=no
16786fi
16787
16788rm -f core conftest.err conftest.$ac_objext \
16789      conftest$ac_exeext conftest.$ac_ext
16790fi
16791{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16792echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16793if test $ac_cv_func_shl_load = yes; then
16794  lt_cv_dlopen="shl_load"
16795else
16796  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16797echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16798if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16799  echo $ECHO_N "(cached) $ECHO_C" >&6
16800else
16801  ac_check_lib_save_LIBS=$LIBS
16802LIBS="-ldld  $LIBS"
16803cat >conftest.$ac_ext <<_ACEOF
16804/* confdefs.h.  */
16805_ACEOF
16806cat confdefs.h >>conftest.$ac_ext
16807cat >>conftest.$ac_ext <<_ACEOF
16808/* end confdefs.h.  */
16809
16810/* Override any GCC internal prototype to avoid an error.
16811   Use char because int might match the return type of a GCC
16812   builtin and then its argument prototype would still apply.  */
16813#ifdef __cplusplus
16814extern "C"
16815#endif
16816char shl_load ();
16817int
16818main ()
16819{
16820return shl_load ();
16821  ;
16822  return 0;
16823}
16824_ACEOF
16825rm -f conftest.$ac_objext conftest$ac_exeext
16826if { (ac_try="$ac_link"
16827case "(($ac_try" in
16828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829  *) ac_try_echo=$ac_try;;
16830esac
16831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16832  (eval "$ac_link") 2>conftest.er1
16833  ac_status=$?
16834  grep -v '^ *+' conftest.er1 >conftest.err
16835  rm -f conftest.er1
16836  cat conftest.err >&5
16837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838  (exit $ac_status); } &&
16839	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16840  { (case "(($ac_try" in
16841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842  *) ac_try_echo=$ac_try;;
16843esac
16844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16845  (eval "$ac_try") 2>&5
16846  ac_status=$?
16847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848  (exit $ac_status); }; } &&
16849	 { ac_try='test -s conftest$ac_exeext'
16850  { (case "(($ac_try" in
16851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16852  *) ac_try_echo=$ac_try;;
16853esac
16854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16855  (eval "$ac_try") 2>&5
16856  ac_status=$?
16857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858  (exit $ac_status); }; }; then
16859  ac_cv_lib_dld_shl_load=yes
16860else
16861  echo "$as_me: failed program was:" >&5
16862sed 's/^/| /' conftest.$ac_ext >&5
16863
16864	ac_cv_lib_dld_shl_load=no
16865fi
16866
16867rm -f core conftest.err conftest.$ac_objext \
16868      conftest$ac_exeext conftest.$ac_ext
16869LIBS=$ac_check_lib_save_LIBS
16870fi
16871{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16872echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16873if test $ac_cv_lib_dld_shl_load = yes; then
16874  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16875else
16876  { echo "$as_me:$LINENO: checking for dlopen" >&5
16877echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16878if test "${ac_cv_func_dlopen+set}" = set; then
16879  echo $ECHO_N "(cached) $ECHO_C" >&6
16880else
16881  cat >conftest.$ac_ext <<_ACEOF
16882/* confdefs.h.  */
16883_ACEOF
16884cat confdefs.h >>conftest.$ac_ext
16885cat >>conftest.$ac_ext <<_ACEOF
16886/* end confdefs.h.  */
16887/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16888   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16889#define dlopen innocuous_dlopen
16890
16891/* System header to define __stub macros and hopefully few prototypes,
16892    which can conflict with char dlopen (); below.
16893    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16894    <limits.h> exists even on freestanding compilers.  */
16895
16896#ifdef __STDC__
16897# include <limits.h>
16898#else
16899# include <assert.h>
16900#endif
16901
16902#undef dlopen
16903
16904/* Override any GCC internal prototype to avoid an error.
16905   Use char because int might match the return type of a GCC
16906   builtin and then its argument prototype would still apply.  */
16907#ifdef __cplusplus
16908extern "C"
16909#endif
16910char dlopen ();
16911/* The GNU C library defines this for functions which it implements
16912    to always fail with ENOSYS.  Some functions are actually named
16913    something starting with __ and the normal name is an alias.  */
16914#if defined __stub_dlopen || defined __stub___dlopen
16915choke me
16916#endif
16917
16918int
16919main ()
16920{
16921return dlopen ();
16922  ;
16923  return 0;
16924}
16925_ACEOF
16926rm -f conftest.$ac_objext conftest$ac_exeext
16927if { (ac_try="$ac_link"
16928case "(($ac_try" in
16929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16930  *) ac_try_echo=$ac_try;;
16931esac
16932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16933  (eval "$ac_link") 2>conftest.er1
16934  ac_status=$?
16935  grep -v '^ *+' conftest.er1 >conftest.err
16936  rm -f conftest.er1
16937  cat conftest.err >&5
16938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939  (exit $ac_status); } &&
16940	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16941  { (case "(($ac_try" in
16942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16943  *) ac_try_echo=$ac_try;;
16944esac
16945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16946  (eval "$ac_try") 2>&5
16947  ac_status=$?
16948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949  (exit $ac_status); }; } &&
16950	 { ac_try='test -s conftest$ac_exeext'
16951  { (case "(($ac_try" in
16952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16953  *) ac_try_echo=$ac_try;;
16954esac
16955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16956  (eval "$ac_try") 2>&5
16957  ac_status=$?
16958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959  (exit $ac_status); }; }; then
16960  ac_cv_func_dlopen=yes
16961else
16962  echo "$as_me: failed program was:" >&5
16963sed 's/^/| /' conftest.$ac_ext >&5
16964
16965	ac_cv_func_dlopen=no
16966fi
16967
16968rm -f core conftest.err conftest.$ac_objext \
16969      conftest$ac_exeext conftest.$ac_ext
16970fi
16971{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16972echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16973if test $ac_cv_func_dlopen = yes; then
16974  lt_cv_dlopen="dlopen"
16975else
16976  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16977echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16978if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16979  echo $ECHO_N "(cached) $ECHO_C" >&6
16980else
16981  ac_check_lib_save_LIBS=$LIBS
16982LIBS="-ldl  $LIBS"
16983cat >conftest.$ac_ext <<_ACEOF
16984/* confdefs.h.  */
16985_ACEOF
16986cat confdefs.h >>conftest.$ac_ext
16987cat >>conftest.$ac_ext <<_ACEOF
16988/* end confdefs.h.  */
16989
16990/* Override any GCC internal prototype to avoid an error.
16991   Use char because int might match the return type of a GCC
16992   builtin and then its argument prototype would still apply.  */
16993#ifdef __cplusplus
16994extern "C"
16995#endif
16996char dlopen ();
16997int
16998main ()
16999{
17000return dlopen ();
17001  ;
17002  return 0;
17003}
17004_ACEOF
17005rm -f conftest.$ac_objext conftest$ac_exeext
17006if { (ac_try="$ac_link"
17007case "(($ac_try" in
17008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17009  *) ac_try_echo=$ac_try;;
17010esac
17011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17012  (eval "$ac_link") 2>conftest.er1
17013  ac_status=$?
17014  grep -v '^ *+' conftest.er1 >conftest.err
17015  rm -f conftest.er1
17016  cat conftest.err >&5
17017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018  (exit $ac_status); } &&
17019	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17020  { (case "(($ac_try" in
17021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17022  *) ac_try_echo=$ac_try;;
17023esac
17024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17025  (eval "$ac_try") 2>&5
17026  ac_status=$?
17027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028  (exit $ac_status); }; } &&
17029	 { ac_try='test -s conftest$ac_exeext'
17030  { (case "(($ac_try" in
17031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032  *) ac_try_echo=$ac_try;;
17033esac
17034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17035  (eval "$ac_try") 2>&5
17036  ac_status=$?
17037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038  (exit $ac_status); }; }; then
17039  ac_cv_lib_dl_dlopen=yes
17040else
17041  echo "$as_me: failed program was:" >&5
17042sed 's/^/| /' conftest.$ac_ext >&5
17043
17044	ac_cv_lib_dl_dlopen=no
17045fi
17046
17047rm -f core conftest.err conftest.$ac_objext \
17048      conftest$ac_exeext conftest.$ac_ext
17049LIBS=$ac_check_lib_save_LIBS
17050fi
17051{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17052echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17053if test $ac_cv_lib_dl_dlopen = yes; then
17054  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17055else
17056  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17057echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17058if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17059  echo $ECHO_N "(cached) $ECHO_C" >&6
17060else
17061  ac_check_lib_save_LIBS=$LIBS
17062LIBS="-lsvld  $LIBS"
17063cat >conftest.$ac_ext <<_ACEOF
17064/* confdefs.h.  */
17065_ACEOF
17066cat confdefs.h >>conftest.$ac_ext
17067cat >>conftest.$ac_ext <<_ACEOF
17068/* end confdefs.h.  */
17069
17070/* Override any GCC internal prototype to avoid an error.
17071   Use char because int might match the return type of a GCC
17072   builtin and then its argument prototype would still apply.  */
17073#ifdef __cplusplus
17074extern "C"
17075#endif
17076char dlopen ();
17077int
17078main ()
17079{
17080return dlopen ();
17081  ;
17082  return 0;
17083}
17084_ACEOF
17085rm -f conftest.$ac_objext conftest$ac_exeext
17086if { (ac_try="$ac_link"
17087case "(($ac_try" in
17088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17089  *) ac_try_echo=$ac_try;;
17090esac
17091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17092  (eval "$ac_link") 2>conftest.er1
17093  ac_status=$?
17094  grep -v '^ *+' conftest.er1 >conftest.err
17095  rm -f conftest.er1
17096  cat conftest.err >&5
17097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098  (exit $ac_status); } &&
17099	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17100  { (case "(($ac_try" in
17101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17102  *) ac_try_echo=$ac_try;;
17103esac
17104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17105  (eval "$ac_try") 2>&5
17106  ac_status=$?
17107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108  (exit $ac_status); }; } &&
17109	 { ac_try='test -s conftest$ac_exeext'
17110  { (case "(($ac_try" in
17111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17112  *) ac_try_echo=$ac_try;;
17113esac
17114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17115  (eval "$ac_try") 2>&5
17116  ac_status=$?
17117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118  (exit $ac_status); }; }; then
17119  ac_cv_lib_svld_dlopen=yes
17120else
17121  echo "$as_me: failed program was:" >&5
17122sed 's/^/| /' conftest.$ac_ext >&5
17123
17124	ac_cv_lib_svld_dlopen=no
17125fi
17126
17127rm -f core conftest.err conftest.$ac_objext \
17128      conftest$ac_exeext conftest.$ac_ext
17129LIBS=$ac_check_lib_save_LIBS
17130fi
17131{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17132echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17133if test $ac_cv_lib_svld_dlopen = yes; then
17134  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17135else
17136  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17137echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17138if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17139  echo $ECHO_N "(cached) $ECHO_C" >&6
17140else
17141  ac_check_lib_save_LIBS=$LIBS
17142LIBS="-ldld  $LIBS"
17143cat >conftest.$ac_ext <<_ACEOF
17144/* confdefs.h.  */
17145_ACEOF
17146cat confdefs.h >>conftest.$ac_ext
17147cat >>conftest.$ac_ext <<_ACEOF
17148/* end confdefs.h.  */
17149
17150/* Override any GCC internal prototype to avoid an error.
17151   Use char because int might match the return type of a GCC
17152   builtin and then its argument prototype would still apply.  */
17153#ifdef __cplusplus
17154extern "C"
17155#endif
17156char dld_link ();
17157int
17158main ()
17159{
17160return dld_link ();
17161  ;
17162  return 0;
17163}
17164_ACEOF
17165rm -f conftest.$ac_objext conftest$ac_exeext
17166if { (ac_try="$ac_link"
17167case "(($ac_try" in
17168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169  *) ac_try_echo=$ac_try;;
17170esac
17171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17172  (eval "$ac_link") 2>conftest.er1
17173  ac_status=$?
17174  grep -v '^ *+' conftest.er1 >conftest.err
17175  rm -f conftest.er1
17176  cat conftest.err >&5
17177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178  (exit $ac_status); } &&
17179	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17180  { (case "(($ac_try" in
17181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182  *) ac_try_echo=$ac_try;;
17183esac
17184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185  (eval "$ac_try") 2>&5
17186  ac_status=$?
17187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188  (exit $ac_status); }; } &&
17189	 { ac_try='test -s conftest$ac_exeext'
17190  { (case "(($ac_try" in
17191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192  *) ac_try_echo=$ac_try;;
17193esac
17194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17195  (eval "$ac_try") 2>&5
17196  ac_status=$?
17197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198  (exit $ac_status); }; }; then
17199  ac_cv_lib_dld_dld_link=yes
17200else
17201  echo "$as_me: failed program was:" >&5
17202sed 's/^/| /' conftest.$ac_ext >&5
17203
17204	ac_cv_lib_dld_dld_link=no
17205fi
17206
17207rm -f core conftest.err conftest.$ac_objext \
17208      conftest$ac_exeext conftest.$ac_ext
17209LIBS=$ac_check_lib_save_LIBS
17210fi
17211{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17212echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17213if test $ac_cv_lib_dld_dld_link = yes; then
17214  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17215fi
17216
17217
17218fi
17219
17220
17221fi
17222
17223
17224fi
17225
17226
17227fi
17228
17229
17230fi
17231
17232    ;;
17233  esac
17234
17235  if test "x$lt_cv_dlopen" != xno; then
17236    enable_dlopen=yes
17237  else
17238    enable_dlopen=no
17239  fi
17240
17241  case $lt_cv_dlopen in
17242  dlopen)
17243    save_CPPFLAGS="$CPPFLAGS"
17244    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17245
17246    save_LDFLAGS="$LDFLAGS"
17247    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17248
17249    save_LIBS="$LIBS"
17250    LIBS="$lt_cv_dlopen_libs $LIBS"
17251
17252    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17253echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17254if test "${lt_cv_dlopen_self+set}" = set; then
17255  echo $ECHO_N "(cached) $ECHO_C" >&6
17256else
17257  	  if test "$cross_compiling" = yes; then :
17258  lt_cv_dlopen_self=cross
17259else
17260  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17261  lt_status=$lt_dlunknown
17262  cat > conftest.$ac_ext <<EOF
17263#line 17249 "configure"
17264#include "confdefs.h"
17265
17266#if HAVE_DLFCN_H
17267#include <dlfcn.h>
17268#endif
17269
17270#include <stdio.h>
17271
17272#ifdef RTLD_GLOBAL
17273#  define LT_DLGLOBAL		RTLD_GLOBAL
17274#else
17275#  ifdef DL_GLOBAL
17276#    define LT_DLGLOBAL		DL_GLOBAL
17277#  else
17278#    define LT_DLGLOBAL		0
17279#  endif
17280#endif
17281
17282/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17283   find out it does not work in some platform. */
17284#ifndef LT_DLLAZY_OR_NOW
17285#  ifdef RTLD_LAZY
17286#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17287#  else
17288#    ifdef DL_LAZY
17289#      define LT_DLLAZY_OR_NOW		DL_LAZY
17290#    else
17291#      ifdef RTLD_NOW
17292#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17293#      else
17294#        ifdef DL_NOW
17295#          define LT_DLLAZY_OR_NOW	DL_NOW
17296#        else
17297#          define LT_DLLAZY_OR_NOW	0
17298#        endif
17299#      endif
17300#    endif
17301#  endif
17302#endif
17303
17304#ifdef __cplusplus
17305extern "C" void exit (int);
17306#endif
17307
17308void fnord() { int i=42;}
17309int main ()
17310{
17311  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17312  int status = $lt_dlunknown;
17313
17314  if (self)
17315    {
17316      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17317      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17318      /* dlclose (self); */
17319    }
17320  else
17321    puts (dlerror ());
17322
17323    exit (status);
17324}
17325EOF
17326  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17327  (eval $ac_link) 2>&5
17328  ac_status=$?
17329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17331    (./conftest; exit; ) >&5 2>/dev/null
17332    lt_status=$?
17333    case x$lt_status in
17334      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17335      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17336      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17337    esac
17338  else :
17339    # compilation failed
17340    lt_cv_dlopen_self=no
17341  fi
17342fi
17343rm -fr conftest*
17344
17345
17346fi
17347{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17348echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17349
17350    if test "x$lt_cv_dlopen_self" = xyes; then
17351      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17352      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17353echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17354if test "${lt_cv_dlopen_self_static+set}" = set; then
17355  echo $ECHO_N "(cached) $ECHO_C" >&6
17356else
17357  	  if test "$cross_compiling" = yes; then :
17358  lt_cv_dlopen_self_static=cross
17359else
17360  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17361  lt_status=$lt_dlunknown
17362  cat > conftest.$ac_ext <<EOF
17363#line 17349 "configure"
17364#include "confdefs.h"
17365
17366#if HAVE_DLFCN_H
17367#include <dlfcn.h>
17368#endif
17369
17370#include <stdio.h>
17371
17372#ifdef RTLD_GLOBAL
17373#  define LT_DLGLOBAL		RTLD_GLOBAL
17374#else
17375#  ifdef DL_GLOBAL
17376#    define LT_DLGLOBAL		DL_GLOBAL
17377#  else
17378#    define LT_DLGLOBAL		0
17379#  endif
17380#endif
17381
17382/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17383   find out it does not work in some platform. */
17384#ifndef LT_DLLAZY_OR_NOW
17385#  ifdef RTLD_LAZY
17386#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17387#  else
17388#    ifdef DL_LAZY
17389#      define LT_DLLAZY_OR_NOW		DL_LAZY
17390#    else
17391#      ifdef RTLD_NOW
17392#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17393#      else
17394#        ifdef DL_NOW
17395#          define LT_DLLAZY_OR_NOW	DL_NOW
17396#        else
17397#          define LT_DLLAZY_OR_NOW	0
17398#        endif
17399#      endif
17400#    endif
17401#  endif
17402#endif
17403
17404#ifdef __cplusplus
17405extern "C" void exit (int);
17406#endif
17407
17408void fnord() { int i=42;}
17409int main ()
17410{
17411  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17412  int status = $lt_dlunknown;
17413
17414  if (self)
17415    {
17416      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17417      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17418      /* dlclose (self); */
17419    }
17420  else
17421    puts (dlerror ());
17422
17423    exit (status);
17424}
17425EOF
17426  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17427  (eval $ac_link) 2>&5
17428  ac_status=$?
17429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17431    (./conftest; exit; ) >&5 2>/dev/null
17432    lt_status=$?
17433    case x$lt_status in
17434      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17435      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17436      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17437    esac
17438  else :
17439    # compilation failed
17440    lt_cv_dlopen_self_static=no
17441  fi
17442fi
17443rm -fr conftest*
17444
17445
17446fi
17447{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17448echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17449    fi
17450
17451    CPPFLAGS="$save_CPPFLAGS"
17452    LDFLAGS="$save_LDFLAGS"
17453    LIBS="$save_LIBS"
17454    ;;
17455  esac
17456
17457  case $lt_cv_dlopen_self in
17458  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17459  *) enable_dlopen_self=unknown ;;
17460  esac
17461
17462  case $lt_cv_dlopen_self_static in
17463  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17464  *) enable_dlopen_self_static=unknown ;;
17465  esac
17466fi
17467
17468
17469# Report which library types will actually be built
17470{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17471echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17472{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17473echo "${ECHO_T}$can_build_shared" >&6; }
17474
17475{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17476echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17477test "$can_build_shared" = "no" && enable_shared=no
17478
17479# On AIX, shared libraries and static libraries use the same namespace, and
17480# are all built from PIC.
17481case $host_os in
17482aix3*)
17483  test "$enable_shared" = yes && enable_static=no
17484  if test -n "$RANLIB"; then
17485    archive_cmds="$archive_cmds~\$RANLIB \$lib"
17486    postinstall_cmds='$RANLIB $lib'
17487  fi
17488  ;;
17489
17490aix4* | aix5*)
17491  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17492    test "$enable_shared" = yes && enable_static=no
17493  fi
17494    ;;
17495esac
17496{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17497echo "${ECHO_T}$enable_shared" >&6; }
17498
17499{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17500echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17501# Make sure either enable_shared or enable_static is yes.
17502test "$enable_shared" = yes || enable_static=yes
17503{ echo "$as_me:$LINENO: result: $enable_static" >&5
17504echo "${ECHO_T}$enable_static" >&6; }
17505
17506# The else clause should only fire when bootstrapping the
17507# libtool distribution, otherwise you forgot to ship ltmain.sh
17508# with your package, and you will get complaints that there are
17509# no rules to generate ltmain.sh.
17510if test -f "$ltmain"; then
17511  # See if we are running on zsh, and set the options which allow our commands through
17512  # without removal of \ escapes.
17513  if test -n "${ZSH_VERSION+set}" ; then
17514    setopt NO_GLOB_SUBST
17515  fi
17516  # Now quote all the things that may contain metacharacters while being
17517  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17518  # variables and quote the copies for generation of the libtool script.
17519  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17520    SED SHELL STRIP \
17521    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17522    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17523    deplibs_check_method reload_flag reload_cmds need_locks \
17524    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17525    lt_cv_sys_global_symbol_to_c_name_address \
17526    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17527    old_postinstall_cmds old_postuninstall_cmds \
17528    compiler \
17529    CC \
17530    LD \
17531    lt_prog_compiler_wl \
17532    lt_prog_compiler_pic \
17533    lt_prog_compiler_static \
17534    lt_prog_compiler_no_builtin_flag \
17535    export_dynamic_flag_spec \
17536    thread_safe_flag_spec \
17537    whole_archive_flag_spec \
17538    enable_shared_with_static_runtimes \
17539    old_archive_cmds \
17540    old_archive_from_new_cmds \
17541    predep_objects \
17542    postdep_objects \
17543    predeps \
17544    postdeps \
17545    compiler_lib_search_path \
17546    archive_cmds \
17547    archive_expsym_cmds \
17548    postinstall_cmds \
17549    postuninstall_cmds \
17550    old_archive_from_expsyms_cmds \
17551    allow_undefined_flag \
17552    no_undefined_flag \
17553    export_symbols_cmds \
17554    hardcode_libdir_flag_spec \
17555    hardcode_libdir_flag_spec_ld \
17556    hardcode_libdir_separator \
17557    hardcode_automatic \
17558    module_cmds \
17559    module_expsym_cmds \
17560    lt_cv_prog_compiler_c_o \
17561    exclude_expsyms \
17562    include_expsyms; do
17563
17564    case $var in
17565    old_archive_cmds | \
17566    old_archive_from_new_cmds | \
17567    archive_cmds | \
17568    archive_expsym_cmds | \
17569    module_cmds | \
17570    module_expsym_cmds | \
17571    old_archive_from_expsyms_cmds | \
17572    export_symbols_cmds | \
17573    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17574    postinstall_cmds | postuninstall_cmds | \
17575    old_postinstall_cmds | old_postuninstall_cmds | \
17576    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17577      # Double-quote double-evaled strings.
17578      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17579      ;;
17580    *)
17581      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17582      ;;
17583    esac
17584  done
17585
17586  case $lt_echo in
17587  *'\$0 --fallback-echo"')
17588    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17589    ;;
17590  esac
17591
17592cfgfile="${ofile}T"
17593  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17594  $rm -f "$cfgfile"
17595  { echo "$as_me:$LINENO: creating $ofile" >&5
17596echo "$as_me: creating $ofile" >&6;}
17597
17598  cat <<__EOF__ >> "$cfgfile"
17599#! $SHELL
17600
17601# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17602# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17603# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17604#
17605# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17606# Free Software Foundation, Inc.
17607#
17608# This file is part of GNU Libtool:
17609# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17610#
17611# This program is free software; you can redistribute it and/or modify
17612# it under the terms of the GNU General Public License as published by
17613# the Free Software Foundation; either version 2 of the License, or
17614# (at your option) any later version.
17615#
17616# This program is distributed in the hope that it will be useful, but
17617# WITHOUT ANY WARRANTY; without even the implied warranty of
17618# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17619# General Public License for more details.
17620#
17621# You should have received a copy of the GNU General Public License
17622# along with this program; if not, write to the Free Software
17623# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17624#
17625# As a special exception to the GNU General Public License, if you
17626# distribute this file as part of a program that contains a
17627# configuration script generated by Autoconf, you may include it under
17628# the same distribution terms that you use for the rest of that program.
17629
17630# A sed program that does not truncate output.
17631SED=$lt_SED
17632
17633# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17634Xsed="$SED -e 1s/^X//"
17635
17636# The HP-UX ksh and POSIX shell print the target directory to stdout
17637# if CDPATH is set.
17638(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17639
17640# The names of the tagged configurations supported by this script.
17641available_tags=
17642
17643# ### BEGIN LIBTOOL CONFIG
17644
17645# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17646
17647# Shell to use when invoking shell scripts.
17648SHELL=$lt_SHELL
17649
17650# Whether or not to build shared libraries.
17651build_libtool_libs=$enable_shared
17652
17653# Whether or not to build static libraries.
17654build_old_libs=$enable_static
17655
17656# Whether or not to add -lc for building shared libraries.
17657build_libtool_need_lc=$archive_cmds_need_lc
17658
17659# Whether or not to disallow shared libs when runtime libs are static
17660allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17661
17662# Whether or not to optimize for fast installation.
17663fast_install=$enable_fast_install
17664
17665# The host system.
17666host_alias=$host_alias
17667host=$host
17668host_os=$host_os
17669
17670# The build system.
17671build_alias=$build_alias
17672build=$build
17673build_os=$build_os
17674
17675# An echo program that does not interpret backslashes.
17676echo=$lt_echo
17677
17678# The archiver.
17679AR=$lt_AR
17680AR_FLAGS=$lt_AR_FLAGS
17681
17682# A C compiler.
17683LTCC=$lt_LTCC
17684
17685# LTCC compiler flags.
17686LTCFLAGS=$lt_LTCFLAGS
17687
17688# A language-specific compiler.
17689CC=$lt_compiler
17690
17691# Is the compiler the GNU C compiler?
17692with_gcc=$GCC
17693
17694# An ERE matcher.
17695EGREP=$lt_EGREP
17696
17697# The linker used to build libraries.
17698LD=$lt_LD
17699
17700# Whether we need hard or soft links.
17701LN_S=$lt_LN_S
17702
17703# A BSD-compatible nm program.
17704NM=$lt_NM
17705
17706# A symbol stripping program
17707STRIP=$lt_STRIP
17708
17709# Used to examine libraries when file_magic_cmd begins "file"
17710MAGIC_CMD=$MAGIC_CMD
17711
17712# Used on cygwin: DLL creation program.
17713DLLTOOL="$DLLTOOL"
17714
17715# Used on cygwin: object dumper.
17716OBJDUMP="$OBJDUMP"
17717
17718# Used on cygwin: assembler.
17719AS="$AS"
17720
17721# The name of the directory that contains temporary libtool files.
17722objdir=$objdir
17723
17724# How to create reloadable object files.
17725reload_flag=$lt_reload_flag
17726reload_cmds=$lt_reload_cmds
17727
17728# How to pass a linker flag through the compiler.
17729wl=$lt_lt_prog_compiler_wl
17730
17731# Object file suffix (normally "o").
17732objext="$ac_objext"
17733
17734# Old archive suffix (normally "a").
17735libext="$libext"
17736
17737# Shared library suffix (normally ".so").
17738shrext_cmds='$shrext_cmds'
17739
17740# Executable file suffix (normally "").
17741exeext="$exeext"
17742
17743# Additional compiler flags for building library objects.
17744pic_flag=$lt_lt_prog_compiler_pic
17745pic_mode=$pic_mode
17746
17747# What is the maximum length of a command?
17748max_cmd_len=$lt_cv_sys_max_cmd_len
17749
17750# Does compiler simultaneously support -c and -o options?
17751compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17752
17753# Must we lock files when doing compilation?
17754need_locks=$lt_need_locks
17755
17756# Do we need the lib prefix for modules?
17757need_lib_prefix=$need_lib_prefix
17758
17759# Do we need a version for libraries?
17760need_version=$need_version
17761
17762# Whether dlopen is supported.
17763dlopen_support=$enable_dlopen
17764
17765# Whether dlopen of programs is supported.
17766dlopen_self=$enable_dlopen_self
17767
17768# Whether dlopen of statically linked programs is supported.
17769dlopen_self_static=$enable_dlopen_self_static
17770
17771# Compiler flag to prevent dynamic linking.
17772link_static_flag=$lt_lt_prog_compiler_static
17773
17774# Compiler flag to turn off builtin functions.
17775no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17776
17777# Compiler flag to allow reflexive dlopens.
17778export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17779
17780# Compiler flag to generate shared objects directly from archives.
17781whole_archive_flag_spec=$lt_whole_archive_flag_spec
17782
17783# Compiler flag to generate thread-safe objects.
17784thread_safe_flag_spec=$lt_thread_safe_flag_spec
17785
17786# Library versioning type.
17787version_type=$version_type
17788
17789# Format of library name prefix.
17790libname_spec=$lt_libname_spec
17791
17792# List of archive names.  First name is the real one, the rest are links.
17793# The last name is the one that the linker finds with -lNAME.
17794library_names_spec=$lt_library_names_spec
17795
17796# The coded name of the library, if different from the real name.
17797soname_spec=$lt_soname_spec
17798
17799# Commands used to build and install an old-style archive.
17800RANLIB=$lt_RANLIB
17801old_archive_cmds=$lt_old_archive_cmds
17802old_postinstall_cmds=$lt_old_postinstall_cmds
17803old_postuninstall_cmds=$lt_old_postuninstall_cmds
17804
17805# Create an old-style archive from a shared archive.
17806old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17807
17808# Create a temporary old-style archive to link instead of a shared archive.
17809old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17810
17811# Commands used to build and install a shared archive.
17812archive_cmds=$lt_archive_cmds
17813archive_expsym_cmds=$lt_archive_expsym_cmds
17814postinstall_cmds=$lt_postinstall_cmds
17815postuninstall_cmds=$lt_postuninstall_cmds
17816
17817# Commands used to build a loadable module (assumed same as above if empty)
17818module_cmds=$lt_module_cmds
17819module_expsym_cmds=$lt_module_expsym_cmds
17820
17821# Commands to strip libraries.
17822old_striplib=$lt_old_striplib
17823striplib=$lt_striplib
17824
17825# Dependencies to place before the objects being linked to create a
17826# shared library.
17827predep_objects=$lt_predep_objects
17828
17829# Dependencies to place after the objects being linked to create a
17830# shared library.
17831postdep_objects=$lt_postdep_objects
17832
17833# Dependencies to place before the objects being linked to create a
17834# shared library.
17835predeps=$lt_predeps
17836
17837# Dependencies to place after the objects being linked to create a
17838# shared library.
17839postdeps=$lt_postdeps
17840
17841# The library search path used internally by the compiler when linking
17842# a shared library.
17843compiler_lib_search_path=$lt_compiler_lib_search_path
17844
17845# Method to check whether dependent libraries are shared objects.
17846deplibs_check_method=$lt_deplibs_check_method
17847
17848# Command to use when deplibs_check_method == file_magic.
17849file_magic_cmd=$lt_file_magic_cmd
17850
17851# Flag that allows shared libraries with undefined symbols to be built.
17852allow_undefined_flag=$lt_allow_undefined_flag
17853
17854# Flag that forces no undefined symbols.
17855no_undefined_flag=$lt_no_undefined_flag
17856
17857# Commands used to finish a libtool library installation in a directory.
17858finish_cmds=$lt_finish_cmds
17859
17860# Same as above, but a single script fragment to be evaled but not shown.
17861finish_eval=$lt_finish_eval
17862
17863# Take the output of nm and produce a listing of raw symbols and C names.
17864global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17865
17866# Transform the output of nm in a proper C declaration
17867global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17868
17869# Transform the output of nm in a C name address pair
17870global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17871
17872# This is the shared library runtime path variable.
17873runpath_var=$runpath_var
17874
17875# This is the shared library path variable.
17876shlibpath_var=$shlibpath_var
17877
17878# Is shlibpath searched before the hard-coded library search path?
17879shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17880
17881# How to hardcode a shared library path into an executable.
17882hardcode_action=$hardcode_action
17883
17884# Whether we should hardcode library paths into libraries.
17885hardcode_into_libs=$hardcode_into_libs
17886
17887# Flag to hardcode \$libdir into a binary during linking.
17888# This must work even if \$libdir does not exist.
17889hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17890
17891# If ld is used when linking, flag to hardcode \$libdir into
17892# a binary during linking. This must work even if \$libdir does
17893# not exist.
17894hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17895
17896# Whether we need a single -rpath flag with a separated argument.
17897hardcode_libdir_separator=$lt_hardcode_libdir_separator
17898
17899# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17900# resulting binary.
17901hardcode_direct=$hardcode_direct
17902
17903# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17904# resulting binary.
17905hardcode_minus_L=$hardcode_minus_L
17906
17907# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17908# the resulting binary.
17909hardcode_shlibpath_var=$hardcode_shlibpath_var
17910
17911# Set to yes if building a shared library automatically hardcodes DIR into the library
17912# and all subsequent libraries and executables linked against it.
17913hardcode_automatic=$hardcode_automatic
17914
17915# Variables whose values should be saved in libtool wrapper scripts and
17916# restored at relink time.
17917variables_saved_for_relink="$variables_saved_for_relink"
17918
17919# Whether libtool must link a program against all its dependency libraries.
17920link_all_deplibs=$link_all_deplibs
17921
17922# Compile-time system search path for libraries
17923sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17924
17925# Run-time system search path for libraries
17926sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17927
17928# Fix the shell variable \$srcfile for the compiler.
17929fix_srcfile_path="$fix_srcfile_path"
17930
17931# Set to yes if exported symbols are required.
17932always_export_symbols=$always_export_symbols
17933
17934# The commands to list exported symbols.
17935export_symbols_cmds=$lt_export_symbols_cmds
17936
17937# The commands to extract the exported symbol list from a shared archive.
17938extract_expsyms_cmds=$lt_extract_expsyms_cmds
17939
17940# Symbols that should not be listed in the preloaded symbols.
17941exclude_expsyms=$lt_exclude_expsyms
17942
17943# Symbols that must always be exported.
17944include_expsyms=$lt_include_expsyms
17945
17946# ### END LIBTOOL CONFIG
17947
17948__EOF__
17949
17950
17951  case $host_os in
17952  aix3*)
17953    cat <<\EOF >> "$cfgfile"
17954
17955# AIX sometimes has problems with the GCC collect2 program.  For some
17956# reason, if we set the COLLECT_NAMES environment variable, the problems
17957# vanish in a puff of smoke.
17958if test "X${COLLECT_NAMES+set}" != Xset; then
17959  COLLECT_NAMES=
17960  export COLLECT_NAMES
17961fi
17962EOF
17963    ;;
17964  esac
17965
17966  # We use sed instead of cat because bash on DJGPP gets confused if
17967  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17968  # text mode, it properly converts lines to CR/LF.  This bash problem
17969  # is reportedly fixed, but why not run on old versions too?
17970  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17971
17972  mv -f "$cfgfile" "$ofile" || \
17973    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17974  chmod +x "$ofile"
17975
17976else
17977  # If there is no Makefile yet, we rely on a make rule to execute
17978  # `config.status --recheck' to rerun these tests and create the
17979  # libtool script then.
17980  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17981  if test -f "$ltmain_in"; then
17982    test -f Makefile && make "$ltmain"
17983  fi
17984fi
17985
17986
17987ac_ext=c
17988ac_cpp='$CPP $CPPFLAGS'
17989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17991ac_compiler_gnu=$ac_cv_c_compiler_gnu
17992
17993CC="$lt_save_CC"
17994
17995
17996# Check whether --with-tags was given.
17997if test "${with_tags+set}" = set; then
17998  withval=$with_tags; tagnames="$withval"
17999fi
18000
18001
18002if test -f "$ltmain" && test -n "$tagnames"; then
18003  if test ! -f "${ofile}"; then
18004    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18005echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18006  fi
18007
18008  if test -z "$LTCC"; then
18009    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18010    if test -z "$LTCC"; then
18011      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18012echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18013    else
18014      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18015echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18016    fi
18017  fi
18018  if test -z "$LTCFLAGS"; then
18019    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18020  fi
18021
18022  # Extract list of available tagged configurations in $ofile.
18023  # Note that this assumes the entire list is on one line.
18024  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18025
18026  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18027  for tagname in $tagnames; do
18028    IFS="$lt_save_ifs"
18029    # Check whether tagname contains only valid characters
18030    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18031    "") ;;
18032    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18033echo "$as_me: error: invalid tag name: $tagname" >&2;}
18034   { (exit 1); exit 1; }; }
18035	;;
18036    esac
18037
18038    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18039    then
18040      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18041echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18042   { (exit 1); exit 1; }; }
18043    fi
18044
18045    # Update the list of available tags.
18046    if test -n "$tagname"; then
18047      echo appending configuration tag \"$tagname\" to $ofile
18048
18049      case $tagname in
18050      CXX)
18051	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18052	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18053	    (test "X$CXX" != "Xg++"))) ; then
18054	  ac_ext=cpp
18055ac_cpp='$CXXCPP $CPPFLAGS'
18056ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18057ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18058ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18059
18060
18061
18062
18063archive_cmds_need_lc_CXX=no
18064allow_undefined_flag_CXX=
18065always_export_symbols_CXX=no
18066archive_expsym_cmds_CXX=
18067export_dynamic_flag_spec_CXX=
18068hardcode_direct_CXX=no
18069hardcode_libdir_flag_spec_CXX=
18070hardcode_libdir_flag_spec_ld_CXX=
18071hardcode_libdir_separator_CXX=
18072hardcode_minus_L_CXX=no
18073hardcode_shlibpath_var_CXX=unsupported
18074hardcode_automatic_CXX=no
18075module_cmds_CXX=
18076module_expsym_cmds_CXX=
18077link_all_deplibs_CXX=unknown
18078old_archive_cmds_CXX=$old_archive_cmds
18079no_undefined_flag_CXX=
18080whole_archive_flag_spec_CXX=
18081enable_shared_with_static_runtimes_CXX=no
18082
18083# Dependencies to place before and after the object being linked:
18084predep_objects_CXX=
18085postdep_objects_CXX=
18086predeps_CXX=
18087postdeps_CXX=
18088compiler_lib_search_path_CXX=
18089
18090# Source file extension for C++ test sources.
18091ac_ext=cpp
18092
18093# Object file extension for compiled C++ test sources.
18094objext=o
18095objext_CXX=$objext
18096
18097# Code to be used in simple compile tests
18098lt_simple_compile_test_code="int some_variable = 0;\n"
18099
18100# Code to be used in simple link tests
18101lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18102
18103# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18104
18105# If no C compiler was specified, use CC.
18106LTCC=${LTCC-"$CC"}
18107
18108# If no C compiler flags were specified, use CFLAGS.
18109LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18110
18111# Allow CC to be a program name with arguments.
18112compiler=$CC
18113
18114
18115# save warnings/boilerplate of simple test code
18116ac_outfile=conftest.$ac_objext
18117printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18118eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18119_lt_compiler_boilerplate=`cat conftest.err`
18120$rm conftest*
18121
18122ac_outfile=conftest.$ac_objext
18123printf "$lt_simple_link_test_code" >conftest.$ac_ext
18124eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18125_lt_linker_boilerplate=`cat conftest.err`
18126$rm conftest*
18127
18128
18129# Allow CC to be a program name with arguments.
18130lt_save_CC=$CC
18131lt_save_LD=$LD
18132lt_save_GCC=$GCC
18133GCC=$GXX
18134lt_save_with_gnu_ld=$with_gnu_ld
18135lt_save_path_LD=$lt_cv_path_LD
18136if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18137  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18138else
18139  $as_unset lt_cv_prog_gnu_ld
18140fi
18141if test -n "${lt_cv_path_LDCXX+set}"; then
18142  lt_cv_path_LD=$lt_cv_path_LDCXX
18143else
18144  $as_unset lt_cv_path_LD
18145fi
18146test -z "${LDCXX+set}" || LD=$LDCXX
18147CC=${CXX-"c++"}
18148compiler=$CC
18149compiler_CXX=$CC
18150for cc_temp in $compiler""; do
18151  case $cc_temp in
18152    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18153    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18154    \-*) ;;
18155    *) break;;
18156  esac
18157done
18158cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18159
18160
18161# We don't want -fno-exception wen compiling C++ code, so set the
18162# no_builtin_flag separately
18163if test "$GXX" = yes; then
18164  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18165else
18166  lt_prog_compiler_no_builtin_flag_CXX=
18167fi
18168
18169if test "$GXX" = yes; then
18170  # Set up default GNU C++ configuration
18171
18172
18173# Check whether --with-gnu-ld was given.
18174if test "${with_gnu_ld+set}" = set; then
18175  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18176else
18177  with_gnu_ld=no
18178fi
18179
18180ac_prog=ld
18181if test "$GCC" = yes; then
18182  # Check if gcc -print-prog-name=ld gives a path.
18183  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18184echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18185  case $host in
18186  *-*-mingw*)
18187    # gcc leaves a trailing carriage return which upsets mingw
18188    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18189  *)
18190    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18191  esac
18192  case $ac_prog in
18193    # Accept absolute paths.
18194    [\\/]* | ?:[\\/]*)
18195      re_direlt='/[^/][^/]*/\.\./'
18196      # Canonicalize the pathname of ld
18197      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18198      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18199	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18200      done
18201      test -z "$LD" && LD="$ac_prog"
18202      ;;
18203  "")
18204    # If it fails, then pretend we aren't using GCC.
18205    ac_prog=ld
18206    ;;
18207  *)
18208    # If it is relative, then search for the first ld in PATH.
18209    with_gnu_ld=unknown
18210    ;;
18211  esac
18212elif test "$with_gnu_ld" = yes; then
18213  { echo "$as_me:$LINENO: checking for GNU ld" >&5
18214echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18215else
18216  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18217echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18218fi
18219if test "${lt_cv_path_LD+set}" = set; then
18220  echo $ECHO_N "(cached) $ECHO_C" >&6
18221else
18222  if test -z "$LD"; then
18223  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18224  for ac_dir in $PATH; do
18225    IFS="$lt_save_ifs"
18226    test -z "$ac_dir" && ac_dir=.
18227    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18228      lt_cv_path_LD="$ac_dir/$ac_prog"
18229      # Check to see if the program is GNU ld.  I'd rather use --version,
18230      # but apparently some variants of GNU ld only accept -v.
18231      # Break only if it was the GNU/non-GNU ld that we prefer.
18232      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18233      *GNU* | *'with BFD'*)
18234	test "$with_gnu_ld" != no && break
18235	;;
18236      *)
18237	test "$with_gnu_ld" != yes && break
18238	;;
18239      esac
18240    fi
18241  done
18242  IFS="$lt_save_ifs"
18243else
18244  lt_cv_path_LD="$LD" # Let the user override the test with a path.
18245fi
18246fi
18247
18248LD="$lt_cv_path_LD"
18249if test -n "$LD"; then
18250  { echo "$as_me:$LINENO: result: $LD" >&5
18251echo "${ECHO_T}$LD" >&6; }
18252else
18253  { echo "$as_me:$LINENO: result: no" >&5
18254echo "${ECHO_T}no" >&6; }
18255fi
18256test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18257echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18258   { (exit 1); exit 1; }; }
18259{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18260echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18261if test "${lt_cv_prog_gnu_ld+set}" = set; then
18262  echo $ECHO_N "(cached) $ECHO_C" >&6
18263else
18264  # I'd rather use --version here, but apparently some GNU lds only accept -v.
18265case `$LD -v 2>&1 </dev/null` in
18266*GNU* | *'with BFD'*)
18267  lt_cv_prog_gnu_ld=yes
18268  ;;
18269*)
18270  lt_cv_prog_gnu_ld=no
18271  ;;
18272esac
18273fi
18274{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18275echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18276with_gnu_ld=$lt_cv_prog_gnu_ld
18277
18278
18279
18280  # Check if GNU C++ uses GNU ld as the underlying linker, since the
18281  # archiving commands below assume that GNU ld is being used.
18282  if test "$with_gnu_ld" = yes; then
18283    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18284    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'
18285
18286    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18287    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18288
18289    # If archive_cmds runs LD, not CC, wlarc should be empty
18290    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18291    #     investigate it a little bit more. (MM)
18292    wlarc='${wl}'
18293
18294    # ancient GNU ld didn't support --whole-archive et. al.
18295    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18296	grep 'no-whole-archive' > /dev/null; then
18297      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18298    else
18299      whole_archive_flag_spec_CXX=
18300    fi
18301  else
18302    with_gnu_ld=no
18303    wlarc=
18304
18305    # A generic and very simple default shared library creation
18306    # command for GNU C++ for the case where it uses the native
18307    # linker, instead of GNU ld.  If possible, this setting should
18308    # overridden to take advantage of the native linker features on
18309    # the platform it is being used on.
18310    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18311  fi
18312
18313  # Commands to make compiler produce verbose output that lists
18314  # what "hidden" libraries, object files and flags are used when
18315  # linking a shared library.
18316  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18317
18318else
18319  GXX=no
18320  with_gnu_ld=no
18321  wlarc=
18322fi
18323
18324# PORTME: fill in a description of your system's C++ link characteristics
18325{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18326echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18327ld_shlibs_CXX=yes
18328case $host_os in
18329  aix3*)
18330    # FIXME: insert proper C++ library support
18331    ld_shlibs_CXX=no
18332    ;;
18333  aix4* | aix5*)
18334    if test "$host_cpu" = ia64; then
18335      # On IA64, the linker does run time linking by default, so we don't
18336      # have to do anything special.
18337      aix_use_runtimelinking=no
18338      exp_sym_flag='-Bexport'
18339      no_entry_flag=""
18340    else
18341      aix_use_runtimelinking=no
18342
18343      # Test if we are trying to use run time linking or normal
18344      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18345      # need to do runtime linking.
18346      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18347	for ld_flag in $LDFLAGS; do
18348	  case $ld_flag in
18349	  *-brtl*)
18350	    aix_use_runtimelinking=yes
18351	    break
18352	    ;;
18353	  esac
18354	done
18355	;;
18356      esac
18357
18358      exp_sym_flag='-bexport'
18359      no_entry_flag='-bnoentry'
18360    fi
18361
18362    # When large executables or shared objects are built, AIX ld can
18363    # have problems creating the table of contents.  If linking a library
18364    # or program results in "error TOC overflow" add -mminimal-toc to
18365    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18366    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18367
18368    archive_cmds_CXX=''
18369    hardcode_direct_CXX=yes
18370    hardcode_libdir_separator_CXX=':'
18371    link_all_deplibs_CXX=yes
18372
18373    if test "$GXX" = yes; then
18374      case $host_os in aix4.[012]|aix4.[012].*)
18375      # We only want to do this on AIX 4.2 and lower, the check
18376      # below for broken collect2 doesn't work under 4.3+
18377	collect2name=`${CC} -print-prog-name=collect2`
18378	if test -f "$collect2name" && \
18379	   strings "$collect2name" | grep resolve_lib_name >/dev/null
18380	then
18381	  # We have reworked collect2
18382	  hardcode_direct_CXX=yes
18383	else
18384	  # We have old collect2
18385	  hardcode_direct_CXX=unsupported
18386	  # It fails to find uninstalled libraries when the uninstalled
18387	  # path is not listed in the libpath.  Setting hardcode_minus_L
18388	  # to unsupported forces relinking
18389	  hardcode_minus_L_CXX=yes
18390	  hardcode_libdir_flag_spec_CXX='-L$libdir'
18391	  hardcode_libdir_separator_CXX=
18392	fi
18393	;;
18394      esac
18395      shared_flag='-shared'
18396      if test "$aix_use_runtimelinking" = yes; then
18397	shared_flag="$shared_flag "'${wl}-G'
18398      fi
18399    else
18400      # not using gcc
18401      if test "$host_cpu" = ia64; then
18402	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18403	# chokes on -Wl,-G. The following line is correct:
18404	shared_flag='-G'
18405      else
18406	if test "$aix_use_runtimelinking" = yes; then
18407	  shared_flag='${wl}-G'
18408	else
18409	  shared_flag='${wl}-bM:SRE'
18410	fi
18411      fi
18412    fi
18413
18414    # It seems that -bexpall does not export symbols beginning with
18415    # underscore (_), so it is better to generate a list of symbols to export.
18416    always_export_symbols_CXX=yes
18417    if test "$aix_use_runtimelinking" = yes; then
18418      # Warning - without using the other runtime loading flags (-brtl),
18419      # -berok will link without error, but may produce a broken library.
18420      allow_undefined_flag_CXX='-berok'
18421      # Determine the default libpath from the value encoded in an empty executable.
18422      cat >conftest.$ac_ext <<_ACEOF
18423/* confdefs.h.  */
18424_ACEOF
18425cat confdefs.h >>conftest.$ac_ext
18426cat >>conftest.$ac_ext <<_ACEOF
18427/* end confdefs.h.  */
18428
18429int
18430main ()
18431{
18432
18433  ;
18434  return 0;
18435}
18436_ACEOF
18437rm -f conftest.$ac_objext conftest$ac_exeext
18438if { (ac_try="$ac_link"
18439case "(($ac_try" in
18440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18441  *) ac_try_echo=$ac_try;;
18442esac
18443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18444  (eval "$ac_link") 2>conftest.er1
18445  ac_status=$?
18446  grep -v '^ *+' conftest.er1 >conftest.err
18447  rm -f conftest.er1
18448  cat conftest.err >&5
18449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450  (exit $ac_status); } &&
18451	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18452  { (case "(($ac_try" in
18453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454  *) ac_try_echo=$ac_try;;
18455esac
18456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18457  (eval "$ac_try") 2>&5
18458  ac_status=$?
18459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460  (exit $ac_status); }; } &&
18461	 { ac_try='test -s conftest$ac_exeext'
18462  { (case "(($ac_try" in
18463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18464  *) ac_try_echo=$ac_try;;
18465esac
18466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18467  (eval "$ac_try") 2>&5
18468  ac_status=$?
18469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470  (exit $ac_status); }; }; then
18471
18472aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18473}'`
18474# Check for a 64-bit object if we didn't find anything.
18475if 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; }
18476}'`; fi
18477else
18478  echo "$as_me: failed program was:" >&5
18479sed 's/^/| /' conftest.$ac_ext >&5
18480
18481
18482fi
18483
18484rm -f core conftest.err conftest.$ac_objext \
18485      conftest$ac_exeext conftest.$ac_ext
18486if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18487
18488      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18489
18490      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"
18491     else
18492      if test "$host_cpu" = ia64; then
18493	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18494	allow_undefined_flag_CXX="-z nodefs"
18495	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"
18496      else
18497	# Determine the default libpath from the value encoded in an empty executable.
18498	cat >conftest.$ac_ext <<_ACEOF
18499/* confdefs.h.  */
18500_ACEOF
18501cat confdefs.h >>conftest.$ac_ext
18502cat >>conftest.$ac_ext <<_ACEOF
18503/* end confdefs.h.  */
18504
18505int
18506main ()
18507{
18508
18509  ;
18510  return 0;
18511}
18512_ACEOF
18513rm -f conftest.$ac_objext conftest$ac_exeext
18514if { (ac_try="$ac_link"
18515case "(($ac_try" in
18516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18517  *) ac_try_echo=$ac_try;;
18518esac
18519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18520  (eval "$ac_link") 2>conftest.er1
18521  ac_status=$?
18522  grep -v '^ *+' conftest.er1 >conftest.err
18523  rm -f conftest.er1
18524  cat conftest.err >&5
18525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526  (exit $ac_status); } &&
18527	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18528  { (case "(($ac_try" in
18529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530  *) ac_try_echo=$ac_try;;
18531esac
18532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18533  (eval "$ac_try") 2>&5
18534  ac_status=$?
18535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536  (exit $ac_status); }; } &&
18537	 { ac_try='test -s conftest$ac_exeext'
18538  { (case "(($ac_try" in
18539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540  *) ac_try_echo=$ac_try;;
18541esac
18542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18543  (eval "$ac_try") 2>&5
18544  ac_status=$?
18545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546  (exit $ac_status); }; }; then
18547
18548aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18549}'`
18550# Check for a 64-bit object if we didn't find anything.
18551if 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; }
18552}'`; fi
18553else
18554  echo "$as_me: failed program was:" >&5
18555sed 's/^/| /' conftest.$ac_ext >&5
18556
18557
18558fi
18559
18560rm -f core conftest.err conftest.$ac_objext \
18561      conftest$ac_exeext conftest.$ac_ext
18562if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18563
18564	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18565	# Warning - without using the other run time loading flags,
18566	# -berok will link without error, but may produce a broken library.
18567	no_undefined_flag_CXX=' ${wl}-bernotok'
18568	allow_undefined_flag_CXX=' ${wl}-berok'
18569	# Exported symbols can be pulled into shared objects from archives
18570	whole_archive_flag_spec_CXX='$convenience'
18571	archive_cmds_need_lc_CXX=yes
18572	# This is similar to how AIX traditionally builds its shared libraries.
18573	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'
18574      fi
18575    fi
18576    ;;
18577
18578  beos*)
18579    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18580      allow_undefined_flag_CXX=unsupported
18581      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18582      # support --undefined.  This deserves some investigation.  FIXME
18583      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18584    else
18585      ld_shlibs_CXX=no
18586    fi
18587    ;;
18588
18589  chorus*)
18590    case $cc_basename in
18591      *)
18592	# FIXME: insert proper C++ library support
18593	ld_shlibs_CXX=no
18594	;;
18595    esac
18596    ;;
18597
18598  cygwin* | mingw* | pw32*)
18599    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18600    # as there is no search path for DLLs.
18601    hardcode_libdir_flag_spec_CXX='-L$libdir'
18602    allow_undefined_flag_CXX=unsupported
18603    always_export_symbols_CXX=no
18604    enable_shared_with_static_runtimes_CXX=yes
18605
18606    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18607      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'
18608      # If the export-symbols file already is a .def file (1st line
18609      # is EXPORTS), use it as is; otherwise, prepend...
18610      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18611	cp $export_symbols $output_objdir/$soname.def;
18612      else
18613	echo EXPORTS > $output_objdir/$soname.def;
18614	cat $export_symbols >> $output_objdir/$soname.def;
18615      fi~
18616      $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'
18617    else
18618      ld_shlibs_CXX=no
18619    fi
18620  ;;
18621      darwin* | rhapsody*)
18622        case $host_os in
18623        rhapsody* | darwin1.[012])
18624         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18625         ;;
18626       *) # Darwin 1.3 on
18627         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18628           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18629         else
18630           case ${MACOSX_DEPLOYMENT_TARGET} in
18631             10.[012])
18632               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18633               ;;
18634             10.*)
18635               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18636               ;;
18637           esac
18638         fi
18639         ;;
18640        esac
18641      archive_cmds_need_lc_CXX=no
18642      hardcode_direct_CXX=no
18643      hardcode_automatic_CXX=yes
18644      hardcode_shlibpath_var_CXX=unsupported
18645      whole_archive_flag_spec_CXX=''
18646      link_all_deplibs_CXX=yes
18647
18648    if test "$GXX" = yes ; then
18649      lt_int_apple_cc_single_mod=no
18650      output_verbose_link_cmd='echo'
18651      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18652       lt_int_apple_cc_single_mod=yes
18653      fi
18654      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18655       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18656      else
18657          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'
18658        fi
18659        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18660        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18661          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18662            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}'
18663          else
18664            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}'
18665          fi
18666            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}'
18667      else
18668      case $cc_basename in
18669        xlc*)
18670         output_verbose_link_cmd='echo'
18671          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'
18672          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18673          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18674          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}'
18675          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}'
18676          ;;
18677       *)
18678         ld_shlibs_CXX=no
18679          ;;
18680      esac
18681      fi
18682        ;;
18683
18684  dgux*)
18685    case $cc_basename in
18686      ec++*)
18687	# FIXME: insert proper C++ library support
18688	ld_shlibs_CXX=no
18689	;;
18690      ghcx*)
18691	# Green Hills C++ Compiler
18692	# FIXME: insert proper C++ library support
18693	ld_shlibs_CXX=no
18694	;;
18695      *)
18696	# FIXME: insert proper C++ library support
18697	ld_shlibs_CXX=no
18698	;;
18699    esac
18700    ;;
18701  freebsd[12]*)
18702    # C++ shared libraries reported to be fairly broken before switch to ELF
18703    ld_shlibs_CXX=no
18704    ;;
18705  freebsd-elf*)
18706    archive_cmds_need_lc_CXX=no
18707    ;;
18708  freebsd* | kfreebsd*-gnu | dragonfly*)
18709    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18710    # conventions
18711    ld_shlibs_CXX=yes
18712    ;;
18713  gnu*)
18714    ;;
18715  hpux9*)
18716    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18717    hardcode_libdir_separator_CXX=:
18718    export_dynamic_flag_spec_CXX='${wl}-E'
18719    hardcode_direct_CXX=yes
18720    hardcode_minus_L_CXX=yes # Not in the search PATH,
18721				# but as the default
18722				# location of the library.
18723
18724    case $cc_basename in
18725    CC*)
18726      # FIXME: insert proper C++ library support
18727      ld_shlibs_CXX=no
18728      ;;
18729    aCC*)
18730      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'
18731      # Commands to make compiler produce verbose output that lists
18732      # what "hidden" libraries, object files and flags are used when
18733      # linking a shared library.
18734      #
18735      # There doesn't appear to be a way to prevent this compiler from
18736      # explicitly linking system object files so we need to strip them
18737      # from the output so that they don't get included in the library
18738      # dependencies.
18739      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'
18740      ;;
18741    *)
18742      if test "$GXX" = yes; then
18743        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'
18744      else
18745        # FIXME: insert proper C++ library support
18746        ld_shlibs_CXX=no
18747      fi
18748      ;;
18749    esac
18750    ;;
18751  hpux10*|hpux11*)
18752    if test $with_gnu_ld = no; then
18753      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18754      hardcode_libdir_separator_CXX=:
18755
18756      case $host_cpu in
18757      hppa*64*|ia64*)
18758	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18759        ;;
18760      *)
18761	export_dynamic_flag_spec_CXX='${wl}-E'
18762        ;;
18763      esac
18764    fi
18765    case $host_cpu in
18766    hppa*64*|ia64*)
18767      hardcode_direct_CXX=no
18768      hardcode_shlibpath_var_CXX=no
18769      ;;
18770    *)
18771      hardcode_direct_CXX=yes
18772      hardcode_minus_L_CXX=yes # Not in the search PATH,
18773					      # but as the default
18774					      # location of the library.
18775      ;;
18776    esac
18777
18778    case $cc_basename in
18779      CC*)
18780	# FIXME: insert proper C++ library support
18781	ld_shlibs_CXX=no
18782	;;
18783      aCC*)
18784	case $host_cpu in
18785	hppa*64*)
18786	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18787	  ;;
18788	ia64*)
18789	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18790	  ;;
18791	*)
18792	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18793	  ;;
18794	esac
18795	# Commands to make compiler produce verbose output that lists
18796	# what "hidden" libraries, object files and flags are used when
18797	# linking a shared library.
18798	#
18799	# There doesn't appear to be a way to prevent this compiler from
18800	# explicitly linking system object files so we need to strip them
18801	# from the output so that they don't get included in the library
18802	# dependencies.
18803	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'
18804	;;
18805      *)
18806	if test "$GXX" = yes; then
18807	  if test $with_gnu_ld = no; then
18808	    case $host_cpu in
18809	    hppa*64*)
18810	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18811	      ;;
18812	    ia64*)
18813	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18814	      ;;
18815	    *)
18816	      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'
18817	      ;;
18818	    esac
18819	  fi
18820	else
18821	  # FIXME: insert proper C++ library support
18822	  ld_shlibs_CXX=no
18823	fi
18824	;;
18825    esac
18826    ;;
18827  interix3*)
18828    hardcode_direct_CXX=no
18829    hardcode_shlibpath_var_CXX=no
18830    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18831    export_dynamic_flag_spec_CXX='${wl}-E'
18832    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18833    # Instead, shared libraries are loaded at an image base (0x10000000 by
18834    # default) and relocated if they conflict, which is a slow very memory
18835    # consuming and fragmenting process.  To avoid this, we pick a random,
18836    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18837    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18838    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'
18839    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'
18840    ;;
18841  irix5* | irix6*)
18842    case $cc_basename in
18843      CC*)
18844	# SGI C++
18845	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'
18846
18847	# Archives containing C++ object files must be created using
18848	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18849	# necessary to make sure instantiated templates are included
18850	# in the archive.
18851	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18852	;;
18853      *)
18854	if test "$GXX" = yes; then
18855	  if test "$with_gnu_ld" = no; then
18856	    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'
18857	  else
18858	    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'
18859	  fi
18860	fi
18861	link_all_deplibs_CXX=yes
18862	;;
18863    esac
18864    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18865    hardcode_libdir_separator_CXX=:
18866    ;;
18867  linux*)
18868    case $cc_basename in
18869      KCC*)
18870	# Kuck and Associates, Inc. (KAI) C++ Compiler
18871
18872	# KCC will only create a shared library if the output file
18873	# ends with ".so" (or ".sl" for HP-UX), so rename the library
18874	# to its proper name (with version) after linking.
18875	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'
18876	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'
18877	# Commands to make compiler produce verbose output that lists
18878	# what "hidden" libraries, object files and flags are used when
18879	# linking a shared library.
18880	#
18881	# There doesn't appear to be a way to prevent this compiler from
18882	# explicitly linking system object files so we need to strip them
18883	# from the output so that they don't get included in the library
18884	# dependencies.
18885	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'
18886
18887	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18888	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18889
18890	# Archives containing C++ object files must be created using
18891	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
18892	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18893	;;
18894      icpc*)
18895	# Intel C++
18896	with_gnu_ld=yes
18897	# version 8.0 and above of icpc choke on multiply defined symbols
18898	# if we add $predep_objects and $postdep_objects, however 7.1 and
18899	# earlier do not add the objects themselves.
18900	case `$CC -V 2>&1` in
18901	*"Version 7."*)
18902  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18903  	  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'
18904	  ;;
18905	*)  # Version 8.0 or newer
18906	  tmp_idyn=
18907	  case $host_cpu in
18908	    ia64*) tmp_idyn=' -i_dynamic';;
18909	  esac
18910  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18911	  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'
18912	  ;;
18913	esac
18914	archive_cmds_need_lc_CXX=no
18915	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18916	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18917	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18918	;;
18919      pgCC*)
18920        # Portland Group C++ compiler
18921	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18922  	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'
18923
18924	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18925	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18926	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'
18927        ;;
18928      cxx*)
18929	# Compaq C++
18930	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18931	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'
18932
18933	runpath_var=LD_RUN_PATH
18934	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18935	hardcode_libdir_separator_CXX=:
18936
18937	# Commands to make compiler produce verbose output that lists
18938	# what "hidden" libraries, object files and flags are used when
18939	# linking a shared library.
18940	#
18941	# There doesn't appear to be a way to prevent this compiler from
18942	# explicitly linking system object files so we need to strip them
18943	# from the output so that they don't get included in the library
18944	# dependencies.
18945	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'
18946	;;
18947    esac
18948    ;;
18949  lynxos*)
18950    # FIXME: insert proper C++ library support
18951    ld_shlibs_CXX=no
18952    ;;
18953  m88k*)
18954    # FIXME: insert proper C++ library support
18955    ld_shlibs_CXX=no
18956    ;;
18957  mvs*)
18958    case $cc_basename in
18959      cxx*)
18960	# FIXME: insert proper C++ library support
18961	ld_shlibs_CXX=no
18962	;;
18963      *)
18964	# FIXME: insert proper C++ library support
18965	ld_shlibs_CXX=no
18966	;;
18967    esac
18968    ;;
18969  netbsd*)
18970    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18971      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18972      wlarc=
18973      hardcode_libdir_flag_spec_CXX='-R$libdir'
18974      hardcode_direct_CXX=yes
18975      hardcode_shlibpath_var_CXX=no
18976    fi
18977    # Workaround some broken pre-1.5 toolchains
18978    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18979    ;;
18980  openbsd2*)
18981    # C++ shared libraries are fairly broken
18982    ld_shlibs_CXX=no
18983    ;;
18984  openbsd*)
18985    hardcode_direct_CXX=yes
18986    hardcode_shlibpath_var_CXX=no
18987    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18988    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18989    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18990      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18991      export_dynamic_flag_spec_CXX='${wl}-E'
18992      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18993    fi
18994    output_verbose_link_cmd='echo'
18995    ;;
18996  osf3*)
18997    case $cc_basename in
18998      KCC*)
18999	# Kuck and Associates, Inc. (KAI) C++ Compiler
19000
19001	# KCC will only create a shared library if the output file
19002	# ends with ".so" (or ".sl" for HP-UX), so rename the library
19003	# to its proper name (with version) after linking.
19004	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'
19005
19006	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19007	hardcode_libdir_separator_CXX=:
19008
19009	# Archives containing C++ object files must be created using
19010	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
19011	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19012
19013	;;
19014      RCC*)
19015	# Rational C++ 2.4.1
19016	# FIXME: insert proper C++ library support
19017	ld_shlibs_CXX=no
19018	;;
19019      cxx*)
19020	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19021	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'
19022
19023	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19024	hardcode_libdir_separator_CXX=:
19025
19026	# Commands to make compiler produce verbose output that lists
19027	# what "hidden" libraries, object files and flags are used when
19028	# linking a shared library.
19029	#
19030	# There doesn't appear to be a way to prevent this compiler from
19031	# explicitly linking system object files so we need to strip them
19032	# from the output so that they don't get included in the library
19033	# dependencies.
19034	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'
19035	;;
19036      *)
19037	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19038	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19039	  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'
19040
19041	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19042	  hardcode_libdir_separator_CXX=:
19043
19044	  # Commands to make compiler produce verbose output that lists
19045	  # what "hidden" libraries, object files and flags are used when
19046	  # linking a shared library.
19047	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19048
19049	else
19050	  # FIXME: insert proper C++ library support
19051	  ld_shlibs_CXX=no
19052	fi
19053	;;
19054    esac
19055    ;;
19056  osf4* | osf5*)
19057    case $cc_basename in
19058      KCC*)
19059	# Kuck and Associates, Inc. (KAI) C++ Compiler
19060
19061	# KCC will only create a shared library if the output file
19062	# ends with ".so" (or ".sl" for HP-UX), so rename the library
19063	# to its proper name (with version) after linking.
19064	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'
19065
19066	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19067	hardcode_libdir_separator_CXX=:
19068
19069	# Archives containing C++ object files must be created using
19070	# the KAI C++ compiler.
19071	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19072	;;
19073      RCC*)
19074	# Rational C++ 2.4.1
19075	# FIXME: insert proper C++ library support
19076	ld_shlibs_CXX=no
19077	;;
19078      cxx*)
19079	allow_undefined_flag_CXX=' -expect_unresolved \*'
19080	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'
19081	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19082	  echo "-hidden">> $lib.exp~
19083	  $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~
19084	  $rm $lib.exp'
19085
19086	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19087	hardcode_libdir_separator_CXX=:
19088
19089	# Commands to make compiler produce verbose output that lists
19090	# what "hidden" libraries, object files and flags are used when
19091	# linking a shared library.
19092	#
19093	# There doesn't appear to be a way to prevent this compiler from
19094	# explicitly linking system object files so we need to strip them
19095	# from the output so that they don't get included in the library
19096	# dependencies.
19097	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'
19098	;;
19099      *)
19100	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19101	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19102	 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'
19103
19104	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19105	  hardcode_libdir_separator_CXX=:
19106
19107	  # Commands to make compiler produce verbose output that lists
19108	  # what "hidden" libraries, object files and flags are used when
19109	  # linking a shared library.
19110	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19111
19112	else
19113	  # FIXME: insert proper C++ library support
19114	  ld_shlibs_CXX=no
19115	fi
19116	;;
19117    esac
19118    ;;
19119  psos*)
19120    # FIXME: insert proper C++ library support
19121    ld_shlibs_CXX=no
19122    ;;
19123  sunos4*)
19124    case $cc_basename in
19125      CC*)
19126	# Sun C++ 4.x
19127	# FIXME: insert proper C++ library support
19128	ld_shlibs_CXX=no
19129	;;
19130      lcc*)
19131	# Lucid
19132	# FIXME: insert proper C++ library support
19133	ld_shlibs_CXX=no
19134	;;
19135      *)
19136	# FIXME: insert proper C++ library support
19137	ld_shlibs_CXX=no
19138	;;
19139    esac
19140    ;;
19141  solaris*)
19142    case $cc_basename in
19143      CC*)
19144	# Sun C++ 4.2, 5.x and Centerline C++
19145        archive_cmds_need_lc_CXX=yes
19146	no_undefined_flag_CXX=' -zdefs'
19147	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19148	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19149	$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'
19150
19151	hardcode_libdir_flag_spec_CXX='-R$libdir'
19152	hardcode_shlibpath_var_CXX=no
19153	case $host_os in
19154	  solaris2.[0-5] | solaris2.[0-5].*) ;;
19155	  *)
19156	    # The C++ compiler is used as linker so we must use $wl
19157	    # flag to pass the commands to the underlying system
19158	    # linker. We must also pass each convience library through
19159	    # to the system linker between allextract/defaultextract.
19160	    # The C++ compiler will combine linker options so we
19161	    # cannot just pass the convience library names through
19162	    # without $wl.
19163	    # Supported since Solaris 2.6 (maybe 2.5.1?)
19164	    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'
19165	    ;;
19166	esac
19167	link_all_deplibs_CXX=yes
19168
19169	output_verbose_link_cmd='echo'
19170
19171	# Archives containing C++ object files must be created using
19172	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
19173	# necessary to make sure instantiated templates are included
19174	# in the archive.
19175	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19176	;;
19177      gcx*)
19178	# Green Hills C++ Compiler
19179	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19180
19181	# The C++ compiler must be used to create the archive.
19182	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19183	;;
19184      *)
19185	# GNU C++ compiler with Solaris linker
19186	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19187	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19188	  if $CC --version | grep -v '^2\.7' > /dev/null; then
19189	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19190	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19191		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19192
19193	    # Commands to make compiler produce verbose output that lists
19194	    # what "hidden" libraries, object files and flags are used when
19195	    # linking a shared library.
19196	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19197	  else
19198	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
19199	    # platform.
19200	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19201	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19202		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19203
19204	    # Commands to make compiler produce verbose output that lists
19205	    # what "hidden" libraries, object files and flags are used when
19206	    # linking a shared library.
19207	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19208	  fi
19209
19210	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19211	fi
19212	;;
19213    esac
19214    ;;
19215  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19216    no_undefined_flag_CXX='${wl}-z,text'
19217    archive_cmds_need_lc_CXX=no
19218    hardcode_shlibpath_var_CXX=no
19219    runpath_var='LD_RUN_PATH'
19220
19221    case $cc_basename in
19222      CC*)
19223	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19224	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19225	;;
19226      *)
19227	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19228	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19229	;;
19230    esac
19231    ;;
19232  sysv5* | sco3.2v5* | sco5v6*)
19233    # Note: We can NOT use -z defs as we might desire, because we do not
19234    # link with -lc, and that would cause any symbols used from libc to
19235    # always be unresolved, which means just about no library would
19236    # ever link correctly.  If we're not using GNU ld we use -z text
19237    # though, which does catch some bad symbols but isn't as heavy-handed
19238    # as -z defs.
19239    # For security reasons, it is highly recommended that you always
19240    # use absolute paths for naming shared libraries, and exclude the
19241    # DT_RUNPATH tag from executables and libraries.  But doing so
19242    # requires that you compile everything twice, which is a pain.
19243    # So that behaviour is only enabled if SCOABSPATH is set to a
19244    # non-empty value in the environment.  Most likely only useful for
19245    # creating official distributions of packages.
19246    # This is a hack until libtool officially supports absolute path
19247    # names for shared libraries.
19248    no_undefined_flag_CXX='${wl}-z,text'
19249    allow_undefined_flag_CXX='${wl}-z,nodefs'
19250    archive_cmds_need_lc_CXX=no
19251    hardcode_shlibpath_var_CXX=no
19252    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19253    hardcode_libdir_separator_CXX=':'
19254    link_all_deplibs_CXX=yes
19255    export_dynamic_flag_spec_CXX='${wl}-Bexport'
19256    runpath_var='LD_RUN_PATH'
19257
19258    case $cc_basename in
19259      CC*)
19260	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19261	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19262	;;
19263      *)
19264	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19265	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19266	;;
19267    esac
19268    ;;
19269  tandem*)
19270    case $cc_basename in
19271      NCC*)
19272	# NonStop-UX NCC 3.20
19273	# FIXME: insert proper C++ library support
19274	ld_shlibs_CXX=no
19275	;;
19276      *)
19277	# FIXME: insert proper C++ library support
19278	ld_shlibs_CXX=no
19279	;;
19280    esac
19281    ;;
19282  vxworks*)
19283    # FIXME: insert proper C++ library support
19284    ld_shlibs_CXX=no
19285    ;;
19286  *)
19287    # FIXME: insert proper C++ library support
19288    ld_shlibs_CXX=no
19289    ;;
19290esac
19291{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19292echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19293test "$ld_shlibs_CXX" = no && can_build_shared=no
19294
19295GCC_CXX="$GXX"
19296LD_CXX="$LD"
19297
19298
19299cat > conftest.$ac_ext <<EOF
19300class Foo
19301{
19302public:
19303  Foo (void) { a = 0; }
19304private:
19305  int a;
19306};
19307EOF
19308
19309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19310  (eval $ac_compile) 2>&5
19311  ac_status=$?
19312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313  (exit $ac_status); }; then
19314  # Parse the compiler output and extract the necessary
19315  # objects, libraries and library flags.
19316
19317  # Sentinel used to keep track of whether or not we are before
19318  # the conftest object file.
19319  pre_test_object_deps_done=no
19320
19321  # The `*' in the case matches for architectures that use `case' in
19322  # $output_verbose_cmd can trigger glob expansion during the loop
19323  # eval without this substitution.
19324  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19325
19326  for p in `eval $output_verbose_link_cmd`; do
19327    case $p in
19328
19329    -L* | -R* | -l*)
19330       # Some compilers place space between "-{L,R}" and the path.
19331       # Remove the space.
19332       if test $p = "-L" \
19333	  || test $p = "-R"; then
19334	 prev=$p
19335	 continue
19336       else
19337	 prev=
19338       fi
19339
19340       if test "$pre_test_object_deps_done" = no; then
19341	 case $p in
19342	 -L* | -R*)
19343	   # Internal compiler library paths should come after those
19344	   # provided the user.  The postdeps already come after the
19345	   # user supplied libs so there is no need to process them.
19346	   if test -z "$compiler_lib_search_path_CXX"; then
19347	     compiler_lib_search_path_CXX="${prev}${p}"
19348	   else
19349	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19350	   fi
19351	   ;;
19352	 # The "-l" case would never come before the object being
19353	 # linked, so don't bother handling this case.
19354	 esac
19355       else
19356	 if test -z "$postdeps_CXX"; then
19357	   postdeps_CXX="${prev}${p}"
19358	 else
19359	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19360	 fi
19361       fi
19362       ;;
19363
19364    *.$objext)
19365       # This assumes that the test object file only shows up
19366       # once in the compiler output.
19367       if test "$p" = "conftest.$objext"; then
19368	 pre_test_object_deps_done=yes
19369	 continue
19370       fi
19371
19372       if test "$pre_test_object_deps_done" = no; then
19373	 if test -z "$predep_objects_CXX"; then
19374	   predep_objects_CXX="$p"
19375	 else
19376	   predep_objects_CXX="$predep_objects_CXX $p"
19377	 fi
19378       else
19379	 if test -z "$postdep_objects_CXX"; then
19380	   postdep_objects_CXX="$p"
19381	 else
19382	   postdep_objects_CXX="$postdep_objects_CXX $p"
19383	 fi
19384       fi
19385       ;;
19386
19387    *) ;; # Ignore the rest.
19388
19389    esac
19390  done
19391
19392  # Clean up.
19393  rm -f a.out a.exe
19394else
19395  echo "libtool.m4: error: problem compiling CXX test program"
19396fi
19397
19398$rm -f confest.$objext
19399
19400# PORTME: override above test on systems where it is broken
19401case $host_os in
19402interix3*)
19403  # Interix 3.5 installs completely hosed .la files for C++, so rather than
19404  # hack all around it, let's just trust "g++" to DTRT.
19405  predep_objects_CXX=
19406  postdep_objects_CXX=
19407  postdeps_CXX=
19408  ;;
19409
19410solaris*)
19411  case $cc_basename in
19412  CC*)
19413    # Adding this requires a known-good setup of shared libraries for
19414    # Sun compiler versions before 5.6, else PIC objects from an old
19415    # archive will be linked into the output, leading to subtle bugs.
19416    postdeps_CXX='-lCstd -lCrun'
19417    ;;
19418  esac
19419  ;;
19420esac
19421
19422
19423case " $postdeps_CXX " in
19424*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19425esac
19426
19427lt_prog_compiler_wl_CXX=
19428lt_prog_compiler_pic_CXX=
19429lt_prog_compiler_static_CXX=
19430
19431{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19432echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19433
19434  # C++ specific cases for pic, static, wl, etc.
19435  if test "$GXX" = yes; then
19436    lt_prog_compiler_wl_CXX='-Wl,'
19437    lt_prog_compiler_static_CXX='-static'
19438
19439    case $host_os in
19440    aix*)
19441      # All AIX code is PIC.
19442      if test "$host_cpu" = ia64; then
19443	# AIX 5 now supports IA64 processor
19444	lt_prog_compiler_static_CXX='-Bstatic'
19445      fi
19446      ;;
19447    amigaos*)
19448      # FIXME: we need at least 68020 code to build shared libraries, but
19449      # adding the `-m68020' flag to GCC prevents building anything better,
19450      # like `-m68040'.
19451      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19452      ;;
19453    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19454      # PIC is the default for these OSes.
19455      ;;
19456    mingw* | os2* | pw32*)
19457      # This hack is so that the source file can tell whether it is being
19458      # built for inclusion in a dll (and should export symbols for example).
19459      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19460      ;;
19461    darwin* | rhapsody*)
19462      # PIC is the default on this platform
19463      # Common symbols not allowed in MH_DYLIB files
19464      lt_prog_compiler_pic_CXX='-fno-common'
19465      ;;
19466    *djgpp*)
19467      # DJGPP does not support shared libraries at all
19468      lt_prog_compiler_pic_CXX=
19469      ;;
19470    interix3*)
19471      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19472      # Instead, we relocate shared libraries at runtime.
19473      ;;
19474    sysv4*MP*)
19475      if test -d /usr/nec; then
19476	lt_prog_compiler_pic_CXX=-Kconform_pic
19477      fi
19478      ;;
19479    hpux*)
19480      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19481      # not for PA HP-UX.
19482      case $host_cpu in
19483      hppa*64*|ia64*)
19484	;;
19485      *)
19486	lt_prog_compiler_pic_CXX='-fPIC'
19487	;;
19488      esac
19489      ;;
19490    *)
19491      lt_prog_compiler_pic_CXX='-fPIC'
19492      ;;
19493    esac
19494  else
19495    case $host_os in
19496      aix4* | aix5*)
19497	# All AIX code is PIC.
19498	if test "$host_cpu" = ia64; then
19499	  # AIX 5 now supports IA64 processor
19500	  lt_prog_compiler_static_CXX='-Bstatic'
19501	else
19502	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19503	fi
19504	;;
19505      chorus*)
19506	case $cc_basename in
19507	cxch68*)
19508	  # Green Hills C++ Compiler
19509	  # _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"
19510	  ;;
19511	esac
19512	;;
19513       darwin*)
19514         # PIC is the default on this platform
19515         # Common symbols not allowed in MH_DYLIB files
19516         case $cc_basename in
19517           xlc*)
19518           lt_prog_compiler_pic_CXX='-qnocommon'
19519           lt_prog_compiler_wl_CXX='-Wl,'
19520           ;;
19521         esac
19522       ;;
19523      dgux*)
19524	case $cc_basename in
19525	  ec++*)
19526	    lt_prog_compiler_pic_CXX='-KPIC'
19527	    ;;
19528	  ghcx*)
19529	    # Green Hills C++ Compiler
19530	    lt_prog_compiler_pic_CXX='-pic'
19531	    ;;
19532	  *)
19533	    ;;
19534	esac
19535	;;
19536      freebsd* | kfreebsd*-gnu | dragonfly*)
19537	# FreeBSD uses GNU C++
19538	;;
19539      hpux9* | hpux10* | hpux11*)
19540	case $cc_basename in
19541	  CC*)
19542	    lt_prog_compiler_wl_CXX='-Wl,'
19543	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19544	    if test "$host_cpu" != ia64; then
19545	      lt_prog_compiler_pic_CXX='+Z'
19546	    fi
19547	    ;;
19548	  aCC*)
19549	    lt_prog_compiler_wl_CXX='-Wl,'
19550	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19551	    case $host_cpu in
19552	    hppa*64*|ia64*)
19553	      # +Z the default
19554	      ;;
19555	    *)
19556	      lt_prog_compiler_pic_CXX='+Z'
19557	      ;;
19558	    esac
19559	    ;;
19560	  *)
19561	    ;;
19562	esac
19563	;;
19564      interix*)
19565	# This is c89, which is MS Visual C++ (no shared libs)
19566	# Anyone wants to do a port?
19567	;;
19568      irix5* | irix6* | nonstopux*)
19569	case $cc_basename in
19570	  CC*)
19571	    lt_prog_compiler_wl_CXX='-Wl,'
19572	    lt_prog_compiler_static_CXX='-non_shared'
19573	    # CC pic flag -KPIC is the default.
19574	    ;;
19575	  *)
19576	    ;;
19577	esac
19578	;;
19579      linux*)
19580	case $cc_basename in
19581	  KCC*)
19582	    # KAI C++ Compiler
19583	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19584	    lt_prog_compiler_pic_CXX='-fPIC'
19585	    ;;
19586	  icpc* | ecpc*)
19587	    # Intel C++
19588	    lt_prog_compiler_wl_CXX='-Wl,'
19589	    lt_prog_compiler_pic_CXX='-KPIC'
19590	    lt_prog_compiler_static_CXX='-static'
19591	    ;;
19592	  pgCC*)
19593	    # Portland Group C++ compiler.
19594	    lt_prog_compiler_wl_CXX='-Wl,'
19595	    lt_prog_compiler_pic_CXX='-fpic'
19596	    lt_prog_compiler_static_CXX='-Bstatic'
19597	    ;;
19598	  cxx*)
19599	    # Compaq C++
19600	    # Make sure the PIC flag is empty.  It appears that all Alpha
19601	    # Linux and Compaq Tru64 Unix objects are PIC.
19602	    lt_prog_compiler_pic_CXX=
19603	    lt_prog_compiler_static_CXX='-non_shared'
19604	    ;;
19605	  *)
19606	    ;;
19607	esac
19608	;;
19609      lynxos*)
19610	;;
19611      m88k*)
19612	;;
19613      mvs*)
19614	case $cc_basename in
19615	  cxx*)
19616	    lt_prog_compiler_pic_CXX='-W c,exportall'
19617	    ;;
19618	  *)
19619	    ;;
19620	esac
19621	;;
19622      netbsd*)
19623	;;
19624      osf3* | osf4* | osf5*)
19625	case $cc_basename in
19626	  KCC*)
19627	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19628	    ;;
19629	  RCC*)
19630	    # Rational C++ 2.4.1
19631	    lt_prog_compiler_pic_CXX='-pic'
19632	    ;;
19633	  cxx*)
19634	    # Digital/Compaq C++
19635	    lt_prog_compiler_wl_CXX='-Wl,'
19636	    # Make sure the PIC flag is empty.  It appears that all Alpha
19637	    # Linux and Compaq Tru64 Unix objects are PIC.
19638	    lt_prog_compiler_pic_CXX=
19639	    lt_prog_compiler_static_CXX='-non_shared'
19640	    ;;
19641	  *)
19642	    ;;
19643	esac
19644	;;
19645      psos*)
19646	;;
19647      solaris*)
19648	case $cc_basename in
19649	  CC*)
19650	    # Sun C++ 4.2, 5.x and Centerline C++
19651	    lt_prog_compiler_pic_CXX='-KPIC'
19652	    lt_prog_compiler_static_CXX='-Bstatic'
19653	    lt_prog_compiler_wl_CXX='-Qoption ld '
19654	    ;;
19655	  gcx*)
19656	    # Green Hills C++ Compiler
19657	    lt_prog_compiler_pic_CXX='-PIC'
19658	    ;;
19659	  *)
19660	    ;;
19661	esac
19662	;;
19663      sunos4*)
19664	case $cc_basename in
19665	  CC*)
19666	    # Sun C++ 4.x
19667	    lt_prog_compiler_pic_CXX='-pic'
19668	    lt_prog_compiler_static_CXX='-Bstatic'
19669	    ;;
19670	  lcc*)
19671	    # Lucid
19672	    lt_prog_compiler_pic_CXX='-pic'
19673	    ;;
19674	  *)
19675	    ;;
19676	esac
19677	;;
19678      tandem*)
19679	case $cc_basename in
19680	  NCC*)
19681	    # NonStop-UX NCC 3.20
19682	    lt_prog_compiler_pic_CXX='-KPIC'
19683	    ;;
19684	  *)
19685	    ;;
19686	esac
19687	;;
19688      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19689	case $cc_basename in
19690	  CC*)
19691	    lt_prog_compiler_wl_CXX='-Wl,'
19692	    lt_prog_compiler_pic_CXX='-KPIC'
19693	    lt_prog_compiler_static_CXX='-Bstatic'
19694	    ;;
19695	esac
19696	;;
19697      vxworks*)
19698	;;
19699      *)
19700	lt_prog_compiler_can_build_shared_CXX=no
19701	;;
19702    esac
19703  fi
19704
19705{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19706echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19707
19708#
19709# Check to make sure the PIC flag actually works.
19710#
19711if test -n "$lt_prog_compiler_pic_CXX"; then
19712
19713{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19714echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19715if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19716  echo $ECHO_N "(cached) $ECHO_C" >&6
19717else
19718  lt_prog_compiler_pic_works_CXX=no
19719  ac_outfile=conftest.$ac_objext
19720   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19721   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19722   # Insert the option either (1) after the last *FLAGS variable, or
19723   # (2) before a word containing "conftest.", or (3) at the end.
19724   # Note that $ac_compile itself does not contain backslashes and begins
19725   # with a dollar sign (not a hyphen), so the echo should work correctly.
19726   # The option is referenced via a variable to avoid confusing sed.
19727   lt_compile=`echo "$ac_compile" | $SED \
19728   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19729   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19730   -e 's:$: $lt_compiler_flag:'`
19731   (eval echo "\"\$as_me:19717: $lt_compile\"" >&5)
19732   (eval "$lt_compile" 2>conftest.err)
19733   ac_status=$?
19734   cat conftest.err >&5
19735   echo "$as_me:19721: \$? = $ac_status" >&5
19736   if (exit $ac_status) && test -s "$ac_outfile"; then
19737     # The compiler can only warn and ignore the option if not recognized
19738     # So say no if there are warnings other than the usual output.
19739     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19740     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19741     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19742       lt_prog_compiler_pic_works_CXX=yes
19743     fi
19744   fi
19745   $rm conftest*
19746
19747fi
19748{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19749echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19750
19751if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19752    case $lt_prog_compiler_pic_CXX in
19753     "" | " "*) ;;
19754     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19755     esac
19756else
19757    lt_prog_compiler_pic_CXX=
19758     lt_prog_compiler_can_build_shared_CXX=no
19759fi
19760
19761fi
19762case $host_os in
19763  # For platforms which do not support PIC, -DPIC is meaningless:
19764  *djgpp*)
19765    lt_prog_compiler_pic_CXX=
19766    ;;
19767  *)
19768    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19769    ;;
19770esac
19771
19772#
19773# Check to make sure the static flag actually works.
19774#
19775wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19776{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19777echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19778if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19779  echo $ECHO_N "(cached) $ECHO_C" >&6
19780else
19781  lt_prog_compiler_static_works_CXX=no
19782   save_LDFLAGS="$LDFLAGS"
19783   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19784   printf "$lt_simple_link_test_code" > conftest.$ac_ext
19785   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19786     # The linker can only warn and ignore the option if not recognized
19787     # So say no if there are warnings
19788     if test -s conftest.err; then
19789       # Append any errors to the config.log.
19790       cat conftest.err 1>&5
19791       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19792       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19793       if diff conftest.exp conftest.er2 >/dev/null; then
19794         lt_prog_compiler_static_works_CXX=yes
19795       fi
19796     else
19797       lt_prog_compiler_static_works_CXX=yes
19798     fi
19799   fi
19800   $rm conftest*
19801   LDFLAGS="$save_LDFLAGS"
19802
19803fi
19804{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19805echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19806
19807if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19808    :
19809else
19810    lt_prog_compiler_static_CXX=
19811fi
19812
19813
19814{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19815echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19816if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19817  echo $ECHO_N "(cached) $ECHO_C" >&6
19818else
19819  lt_cv_prog_compiler_c_o_CXX=no
19820   $rm -r conftest 2>/dev/null
19821   mkdir conftest
19822   cd conftest
19823   mkdir out
19824   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19825
19826   lt_compiler_flag="-o out/conftest2.$ac_objext"
19827   # Insert the option either (1) after the last *FLAGS variable, or
19828   # (2) before a word containing "conftest.", or (3) at the end.
19829   # Note that $ac_compile itself does not contain backslashes and begins
19830   # with a dollar sign (not a hyphen), so the echo should work correctly.
19831   lt_compile=`echo "$ac_compile" | $SED \
19832   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19833   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19834   -e 's:$: $lt_compiler_flag:'`
19835   (eval echo "\"\$as_me:19821: $lt_compile\"" >&5)
19836   (eval "$lt_compile" 2>out/conftest.err)
19837   ac_status=$?
19838   cat out/conftest.err >&5
19839   echo "$as_me:19825: \$? = $ac_status" >&5
19840   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19841   then
19842     # The compiler can only warn and ignore the option if not recognized
19843     # So say no if there are warnings
19844     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19845     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19846     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19847       lt_cv_prog_compiler_c_o_CXX=yes
19848     fi
19849   fi
19850   chmod u+w . 2>&5
19851   $rm conftest*
19852   # SGI C++ compiler will create directory out/ii_files/ for
19853   # template instantiation
19854   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19855   $rm out/* && rmdir out
19856   cd ..
19857   rmdir conftest
19858   $rm conftest*
19859
19860fi
19861{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19862echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19863
19864
19865hard_links="nottested"
19866if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19867  # do not overwrite the value of need_locks provided by the user
19868  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19869echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19870  hard_links=yes
19871  $rm conftest*
19872  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19873  touch conftest.a
19874  ln conftest.a conftest.b 2>&5 || hard_links=no
19875  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19876  { echo "$as_me:$LINENO: result: $hard_links" >&5
19877echo "${ECHO_T}$hard_links" >&6; }
19878  if test "$hard_links" = no; then
19879    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19880echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19881    need_locks=warn
19882  fi
19883else
19884  need_locks=no
19885fi
19886
19887{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19888echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19889
19890  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19891  case $host_os in
19892  aix4* | aix5*)
19893    # If we're using GNU nm, then we don't want the "-C" option.
19894    # -C means demangle to AIX nm, but means don't demangle with GNU nm
19895    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19896      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'
19897    else
19898      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'
19899    fi
19900    ;;
19901  pw32*)
19902    export_symbols_cmds_CXX="$ltdll_cmds"
19903  ;;
19904  cygwin* | mingw*)
19905    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'
19906  ;;
19907  *)
19908    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19909  ;;
19910  esac
19911
19912{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19913echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19914test "$ld_shlibs_CXX" = no && can_build_shared=no
19915
19916#
19917# Do we need to explicitly link libc?
19918#
19919case "x$archive_cmds_need_lc_CXX" in
19920x|xyes)
19921  # Assume -lc should be added
19922  archive_cmds_need_lc_CXX=yes
19923
19924  if test "$enable_shared" = yes && test "$GCC" = yes; then
19925    case $archive_cmds_CXX in
19926    *'~'*)
19927      # FIXME: we may have to deal with multi-command sequences.
19928      ;;
19929    '$CC '*)
19930      # Test whether the compiler implicitly links with -lc since on some
19931      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19932      # to ld, don't add -lc before -lgcc.
19933      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19934echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19935      $rm conftest*
19936      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19937
19938      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19939  (eval $ac_compile) 2>&5
19940  ac_status=$?
19941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942  (exit $ac_status); } 2>conftest.err; then
19943        soname=conftest
19944        lib=conftest
19945        libobjs=conftest.$ac_objext
19946        deplibs=
19947        wl=$lt_prog_compiler_wl_CXX
19948	pic_flag=$lt_prog_compiler_pic_CXX
19949        compiler_flags=-v
19950        linker_flags=-v
19951        verstring=
19952        output_objdir=.
19953        libname=conftest
19954        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19955        allow_undefined_flag_CXX=
19956        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19957  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19958  ac_status=$?
19959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960  (exit $ac_status); }
19961        then
19962	  archive_cmds_need_lc_CXX=no
19963        else
19964	  archive_cmds_need_lc_CXX=yes
19965        fi
19966        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19967      else
19968        cat conftest.err 1>&5
19969      fi
19970      $rm conftest*
19971      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19972echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19973      ;;
19974    esac
19975  fi
19976  ;;
19977esac
19978
19979{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19980echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19981library_names_spec=
19982libname_spec='lib$name'
19983soname_spec=
19984shrext_cmds=".so"
19985postinstall_cmds=
19986postuninstall_cmds=
19987finish_cmds=
19988finish_eval=
19989shlibpath_var=
19990shlibpath_overrides_runpath=unknown
19991version_type=none
19992dynamic_linker="$host_os ld.so"
19993sys_lib_dlsearch_path_spec="/lib /usr/lib"
19994if test "$GCC" = yes; then
19995  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19996  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19997    # if the path contains ";" then we assume it to be the separator
19998    # otherwise default to the standard path separator (i.e. ":") - it is
19999    # assumed that no part of a normal pathname contains ";" but that should
20000    # okay in the real world where ";" in dirpaths is itself problematic.
20001    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20002  else
20003    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20004  fi
20005else
20006  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20007fi
20008need_lib_prefix=unknown
20009hardcode_into_libs=no
20010
20011# when you set need_version to no, make sure it does not cause -set_version
20012# flags to be left without arguments
20013need_version=unknown
20014
20015case $host_os in
20016aix3*)
20017  version_type=linux
20018  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20019  shlibpath_var=LIBPATH
20020
20021  # AIX 3 has no versioning support, so we append a major version to the name.
20022  soname_spec='${libname}${release}${shared_ext}$major'
20023  ;;
20024
20025aix4* | aix5*)
20026  version_type=linux
20027  need_lib_prefix=no
20028  need_version=no
20029  hardcode_into_libs=yes
20030  if test "$host_cpu" = ia64; then
20031    # AIX 5 supports IA64
20032    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20033    shlibpath_var=LD_LIBRARY_PATH
20034  else
20035    # With GCC up to 2.95.x, collect2 would create an import file
20036    # for dependence libraries.  The import file would start with
20037    # the line `#! .'.  This would cause the generated library to
20038    # depend on `.', always an invalid library.  This was fixed in
20039    # development snapshots of GCC prior to 3.0.
20040    case $host_os in
20041      aix4 | aix4.[01] | aix4.[01].*)
20042      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20043	   echo ' yes '
20044	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20045	:
20046      else
20047	can_build_shared=no
20048      fi
20049      ;;
20050    esac
20051    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20052    # soname into executable. Probably we can add versioning support to
20053    # collect2, so additional links can be useful in future.
20054    if test "$aix_use_runtimelinking" = yes; then
20055      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20056      # instead of lib<name>.a to let people know that these are not
20057      # typical AIX shared libraries.
20058      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20059    else
20060      # We preserve .a as extension for shared libraries through AIX4.2
20061      # and later when we are not doing run time linking.
20062      library_names_spec='${libname}${release}.a $libname.a'
20063      soname_spec='${libname}${release}${shared_ext}$major'
20064    fi
20065    shlibpath_var=LIBPATH
20066  fi
20067  ;;
20068
20069amigaos*)
20070  library_names_spec='$libname.ixlibrary $libname.a'
20071  # Create ${libname}_ixlibrary.a entries in /sys/libs.
20072  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'
20073  ;;
20074
20075beos*)
20076  library_names_spec='${libname}${shared_ext}'
20077  dynamic_linker="$host_os ld.so"
20078  shlibpath_var=LIBRARY_PATH
20079  ;;
20080
20081bsdi[45]*)
20082  version_type=linux
20083  need_version=no
20084  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20085  soname_spec='${libname}${release}${shared_ext}$major'
20086  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20087  shlibpath_var=LD_LIBRARY_PATH
20088  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20089  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20090  # the default ld.so.conf also contains /usr/contrib/lib and
20091  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20092  # libtool to hard-code these into programs
20093  ;;
20094
20095cygwin* | mingw* | pw32*)
20096  version_type=windows
20097  shrext_cmds=".dll"
20098  need_version=no
20099  need_lib_prefix=no
20100
20101  case $GCC,$host_os in
20102  yes,cygwin* | yes,mingw* | yes,pw32*)
20103    library_names_spec='$libname.dll.a'
20104    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20105    postinstall_cmds='base_file=`basename \${file}`~
20106      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20107      dldir=$destdir/`dirname \$dlpath`~
20108      test -d \$dldir || mkdir -p \$dldir~
20109      $install_prog $dir/$dlname \$dldir/$dlname~
20110      chmod a+x \$dldir/$dlname'
20111    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20112      dlpath=$dir/\$dldll~
20113       $rm \$dlpath'
20114    shlibpath_overrides_runpath=yes
20115
20116    case $host_os in
20117    cygwin*)
20118      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20119      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20120      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20121      ;;
20122    mingw*)
20123      # MinGW DLLs use traditional 'lib' prefix
20124      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20125      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20126      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20127        # It is most probably a Windows format PATH printed by
20128        # mingw gcc, but we are running on Cygwin. Gcc prints its search
20129        # path with ; separators, and with drive letters. We can handle the
20130        # drive letters (cygwin fileutils understands them), so leave them,
20131        # especially as we might pass files found there to a mingw objdump,
20132        # which wouldn't understand a cygwinified path. Ahh.
20133        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20134      else
20135        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20136      fi
20137      ;;
20138    pw32*)
20139      # pw32 DLLs use 'pw' prefix rather than 'lib'
20140      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20141      ;;
20142    esac
20143    ;;
20144
20145  *)
20146    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20147    ;;
20148  esac
20149  dynamic_linker='Win32 ld.exe'
20150  # FIXME: first we should search . and the directory the executable is in
20151  shlibpath_var=PATH
20152  ;;
20153
20154darwin* | rhapsody*)
20155  dynamic_linker="$host_os dyld"
20156  version_type=darwin
20157  need_lib_prefix=no
20158  need_version=no
20159  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20160  soname_spec='${libname}${release}${major}$shared_ext'
20161  shlibpath_overrides_runpath=yes
20162  shlibpath_var=DYLD_LIBRARY_PATH
20163  shrext_cmds='.dylib'
20164  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20165  if test "$GCC" = yes; then
20166    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"`
20167  else
20168    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20169  fi
20170  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20171  ;;
20172
20173dgux*)
20174  version_type=linux
20175  need_lib_prefix=no
20176  need_version=no
20177  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20178  soname_spec='${libname}${release}${shared_ext}$major'
20179  shlibpath_var=LD_LIBRARY_PATH
20180  ;;
20181
20182freebsd1*)
20183  dynamic_linker=no
20184  ;;
20185
20186kfreebsd*-gnu)
20187  version_type=linux
20188  need_lib_prefix=no
20189  need_version=no
20190  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20191  soname_spec='${libname}${release}${shared_ext}$major'
20192  shlibpath_var=LD_LIBRARY_PATH
20193  shlibpath_overrides_runpath=no
20194  hardcode_into_libs=yes
20195  dynamic_linker='GNU ld.so'
20196  ;;
20197
20198freebsd* | dragonfly*)
20199  # DragonFly does not have aout.  When/if they implement a new
20200  # versioning mechanism, adjust this.
20201  if test -x /usr/bin/objformat; then
20202    objformat=`/usr/bin/objformat`
20203  else
20204    case $host_os in
20205    freebsd[123]*) objformat=aout ;;
20206    *) objformat=elf ;;
20207    esac
20208  fi
20209  version_type=freebsd-$objformat
20210  case $version_type in
20211    freebsd-elf*)
20212      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20213      need_version=no
20214      need_lib_prefix=no
20215      ;;
20216    freebsd-*)
20217      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20218      need_version=yes
20219      ;;
20220  esac
20221  shlibpath_var=LD_LIBRARY_PATH
20222  case $host_os in
20223  freebsd2*)
20224    shlibpath_overrides_runpath=yes
20225    ;;
20226  freebsd3.[01]* | freebsdelf3.[01]*)
20227    shlibpath_overrides_runpath=yes
20228    hardcode_into_libs=yes
20229    ;;
20230  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20231  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20232    shlibpath_overrides_runpath=no
20233    hardcode_into_libs=yes
20234    ;;
20235  freebsd*) # from 4.6 on
20236    shlibpath_overrides_runpath=yes
20237    hardcode_into_libs=yes
20238    ;;
20239  esac
20240  ;;
20241
20242gnu*)
20243  version_type=linux
20244  need_lib_prefix=no
20245  need_version=no
20246  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20247  soname_spec='${libname}${release}${shared_ext}$major'
20248  shlibpath_var=LD_LIBRARY_PATH
20249  hardcode_into_libs=yes
20250  ;;
20251
20252hpux9* | hpux10* | hpux11*)
20253  # Give a soname corresponding to the major version so that dld.sl refuses to
20254  # link against other versions.
20255  version_type=sunos
20256  need_lib_prefix=no
20257  need_version=no
20258  case $host_cpu in
20259  ia64*)
20260    shrext_cmds='.so'
20261    hardcode_into_libs=yes
20262    dynamic_linker="$host_os dld.so"
20263    shlibpath_var=LD_LIBRARY_PATH
20264    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20265    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20266    soname_spec='${libname}${release}${shared_ext}$major'
20267    if test "X$HPUX_IA64_MODE" = X32; then
20268      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20269    else
20270      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20271    fi
20272    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20273    ;;
20274   hppa*64*)
20275     shrext_cmds='.sl'
20276     hardcode_into_libs=yes
20277     dynamic_linker="$host_os dld.sl"
20278     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20279     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20280     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20281     soname_spec='${libname}${release}${shared_ext}$major'
20282     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20283     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20284     ;;
20285   *)
20286    shrext_cmds='.sl'
20287    dynamic_linker="$host_os dld.sl"
20288    shlibpath_var=SHLIB_PATH
20289    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20290    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20291    soname_spec='${libname}${release}${shared_ext}$major'
20292    ;;
20293  esac
20294  # HP-UX runs *really* slowly unless shared libraries are mode 555.
20295  postinstall_cmds='chmod 555 $lib'
20296  ;;
20297
20298interix3*)
20299  version_type=linux
20300  need_lib_prefix=no
20301  need_version=no
20302  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20303  soname_spec='${libname}${release}${shared_ext}$major'
20304  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20305  shlibpath_var=LD_LIBRARY_PATH
20306  shlibpath_overrides_runpath=no
20307  hardcode_into_libs=yes
20308  ;;
20309
20310irix5* | irix6* | nonstopux*)
20311  case $host_os in
20312    nonstopux*) version_type=nonstopux ;;
20313    *)
20314	if test "$lt_cv_prog_gnu_ld" = yes; then
20315		version_type=linux
20316	else
20317		version_type=irix
20318	fi ;;
20319  esac
20320  need_lib_prefix=no
20321  need_version=no
20322  soname_spec='${libname}${release}${shared_ext}$major'
20323  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20324  case $host_os in
20325  irix5* | nonstopux*)
20326    libsuff= shlibsuff=
20327    ;;
20328  *)
20329    case $LD in # libtool.m4 will add one of these switches to LD
20330    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20331      libsuff= shlibsuff= libmagic=32-bit;;
20332    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20333      libsuff=32 shlibsuff=N32 libmagic=N32;;
20334    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20335      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20336    *) libsuff= shlibsuff= libmagic=never-match;;
20337    esac
20338    ;;
20339  esac
20340  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20341  shlibpath_overrides_runpath=no
20342  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20343  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20344  hardcode_into_libs=yes
20345  ;;
20346
20347# No shared lib support for Linux oldld, aout, or coff.
20348linux*oldld* | linux*aout* | linux*coff*)
20349  dynamic_linker=no
20350  ;;
20351
20352# This must be Linux ELF.
20353linux*)
20354  version_type=linux
20355  need_lib_prefix=no
20356  need_version=no
20357  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20358  soname_spec='${libname}${release}${shared_ext}$major'
20359  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20360  shlibpath_var=LD_LIBRARY_PATH
20361  shlibpath_overrides_runpath=no
20362  # This implies no fast_install, which is unacceptable.
20363  # Some rework will be needed to allow for fast_install
20364  # before this can be enabled.
20365  hardcode_into_libs=yes
20366
20367  # Append ld.so.conf contents to the search path
20368  if test -f /etc/ld.so.conf; then
20369    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' ' '`
20370    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20371  fi
20372
20373  # We used to test for /lib/ld.so.1 and disable shared libraries on
20374  # powerpc, because MkLinux only supported shared libraries with the
20375  # GNU dynamic linker.  Since this was broken with cross compilers,
20376  # most powerpc-linux boxes support dynamic linking these days and
20377  # people can always --disable-shared, the test was removed, and we
20378  # assume the GNU/Linux dynamic linker is in use.
20379  dynamic_linker='GNU/Linux ld.so'
20380  ;;
20381
20382knetbsd*-gnu)
20383  version_type=linux
20384  need_lib_prefix=no
20385  need_version=no
20386  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20387  soname_spec='${libname}${release}${shared_ext}$major'
20388  shlibpath_var=LD_LIBRARY_PATH
20389  shlibpath_overrides_runpath=no
20390  hardcode_into_libs=yes
20391  dynamic_linker='GNU ld.so'
20392  ;;
20393
20394netbsd*)
20395  version_type=sunos
20396  need_lib_prefix=no
20397  need_version=no
20398  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20399    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20400    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20401    dynamic_linker='NetBSD (a.out) ld.so'
20402  else
20403    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20404    soname_spec='${libname}${release}${shared_ext}$major'
20405    dynamic_linker='NetBSD ld.elf_so'
20406  fi
20407  shlibpath_var=LD_LIBRARY_PATH
20408  shlibpath_overrides_runpath=yes
20409  hardcode_into_libs=yes
20410  ;;
20411
20412newsos6)
20413  version_type=linux
20414  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20415  shlibpath_var=LD_LIBRARY_PATH
20416  shlibpath_overrides_runpath=yes
20417  ;;
20418
20419nto-qnx*)
20420  version_type=linux
20421  need_lib_prefix=no
20422  need_version=no
20423  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20424  soname_spec='${libname}${release}${shared_ext}$major'
20425  shlibpath_var=LD_LIBRARY_PATH
20426  shlibpath_overrides_runpath=yes
20427  ;;
20428
20429openbsd*)
20430  version_type=sunos
20431  sys_lib_dlsearch_path_spec="/usr/lib"
20432  need_lib_prefix=no
20433  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20434  case $host_os in
20435    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20436    *)                         need_version=no  ;;
20437  esac
20438  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20439  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20440  shlibpath_var=LD_LIBRARY_PATH
20441  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20442    case $host_os in
20443      openbsd2.[89] | openbsd2.[89].*)
20444	shlibpath_overrides_runpath=no
20445	;;
20446      *)
20447	shlibpath_overrides_runpath=yes
20448	;;
20449      esac
20450  else
20451    shlibpath_overrides_runpath=yes
20452  fi
20453  ;;
20454
20455os2*)
20456  libname_spec='$name'
20457  shrext_cmds=".dll"
20458  need_lib_prefix=no
20459  library_names_spec='$libname${shared_ext} $libname.a'
20460  dynamic_linker='OS/2 ld.exe'
20461  shlibpath_var=LIBPATH
20462  ;;
20463
20464osf3* | osf4* | osf5*)
20465  version_type=osf
20466  need_lib_prefix=no
20467  need_version=no
20468  soname_spec='${libname}${release}${shared_ext}$major'
20469  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20470  shlibpath_var=LD_LIBRARY_PATH
20471  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20472  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20473  ;;
20474
20475solaris*)
20476  version_type=linux
20477  need_lib_prefix=no
20478  need_version=no
20479  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20480  soname_spec='${libname}${release}${shared_ext}$major'
20481  shlibpath_var=LD_LIBRARY_PATH
20482  shlibpath_overrides_runpath=yes
20483  hardcode_into_libs=yes
20484  # ldd complains unless libraries are executable
20485  postinstall_cmds='chmod +x $lib'
20486  ;;
20487
20488sunos4*)
20489  version_type=sunos
20490  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20491  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20492  shlibpath_var=LD_LIBRARY_PATH
20493  shlibpath_overrides_runpath=yes
20494  if test "$with_gnu_ld" = yes; then
20495    need_lib_prefix=no
20496  fi
20497  need_version=yes
20498  ;;
20499
20500sysv4 | sysv4.3*)
20501  version_type=linux
20502  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20503  soname_spec='${libname}${release}${shared_ext}$major'
20504  shlibpath_var=LD_LIBRARY_PATH
20505  case $host_vendor in
20506    sni)
20507      shlibpath_overrides_runpath=no
20508      need_lib_prefix=no
20509      export_dynamic_flag_spec='${wl}-Blargedynsym'
20510      runpath_var=LD_RUN_PATH
20511      ;;
20512    siemens)
20513      need_lib_prefix=no
20514      ;;
20515    motorola)
20516      need_lib_prefix=no
20517      need_version=no
20518      shlibpath_overrides_runpath=no
20519      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20520      ;;
20521  esac
20522  ;;
20523
20524sysv4*MP*)
20525  if test -d /usr/nec ;then
20526    version_type=linux
20527    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20528    soname_spec='$libname${shared_ext}.$major'
20529    shlibpath_var=LD_LIBRARY_PATH
20530  fi
20531  ;;
20532
20533sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20534  version_type=freebsd-elf
20535  need_lib_prefix=no
20536  need_version=no
20537  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20538  soname_spec='${libname}${release}${shared_ext}$major'
20539  shlibpath_var=LD_LIBRARY_PATH
20540  hardcode_into_libs=yes
20541  if test "$with_gnu_ld" = yes; then
20542    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20543    shlibpath_overrides_runpath=no
20544  else
20545    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20546    shlibpath_overrides_runpath=yes
20547    case $host_os in
20548      sco3.2v5*)
20549        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20550	;;
20551    esac
20552  fi
20553  sys_lib_dlsearch_path_spec='/usr/lib'
20554  ;;
20555
20556uts4*)
20557  version_type=linux
20558  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20559  soname_spec='${libname}${release}${shared_ext}$major'
20560  shlibpath_var=LD_LIBRARY_PATH
20561  ;;
20562
20563*)
20564  dynamic_linker=no
20565  ;;
20566esac
20567{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20568echo "${ECHO_T}$dynamic_linker" >&6; }
20569test "$dynamic_linker" = no && can_build_shared=no
20570
20571variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20572if test "$GCC" = yes; then
20573  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20574fi
20575
20576{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20577echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20578hardcode_action_CXX=
20579if test -n "$hardcode_libdir_flag_spec_CXX" || \
20580   test -n "$runpath_var_CXX" || \
20581   test "X$hardcode_automatic_CXX" = "Xyes" ; then
20582
20583  # We can hardcode non-existant directories.
20584  if test "$hardcode_direct_CXX" != no &&
20585     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20586     # have to relink, otherwise we might link with an installed library
20587     # when we should be linking with a yet-to-be-installed one
20588     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20589     test "$hardcode_minus_L_CXX" != no; then
20590    # Linking always hardcodes the temporary library directory.
20591    hardcode_action_CXX=relink
20592  else
20593    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20594    hardcode_action_CXX=immediate
20595  fi
20596else
20597  # We cannot hardcode anything, or else we can only hardcode existing
20598  # directories.
20599  hardcode_action_CXX=unsupported
20600fi
20601{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20602echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20603
20604if test "$hardcode_action_CXX" = relink; then
20605  # Fast installation is not supported
20606  enable_fast_install=no
20607elif test "$shlibpath_overrides_runpath" = yes ||
20608     test "$enable_shared" = no; then
20609  # Fast installation is not necessary
20610  enable_fast_install=needless
20611fi
20612
20613
20614# The else clause should only fire when bootstrapping the
20615# libtool distribution, otherwise you forgot to ship ltmain.sh
20616# with your package, and you will get complaints that there are
20617# no rules to generate ltmain.sh.
20618if test -f "$ltmain"; then
20619  # See if we are running on zsh, and set the options which allow our commands through
20620  # without removal of \ escapes.
20621  if test -n "${ZSH_VERSION+set}" ; then
20622    setopt NO_GLOB_SUBST
20623  fi
20624  # Now quote all the things that may contain metacharacters while being
20625  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20626  # variables and quote the copies for generation of the libtool script.
20627  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20628    SED SHELL STRIP \
20629    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20630    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20631    deplibs_check_method reload_flag reload_cmds need_locks \
20632    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20633    lt_cv_sys_global_symbol_to_c_name_address \
20634    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20635    old_postinstall_cmds old_postuninstall_cmds \
20636    compiler_CXX \
20637    CC_CXX \
20638    LD_CXX \
20639    lt_prog_compiler_wl_CXX \
20640    lt_prog_compiler_pic_CXX \
20641    lt_prog_compiler_static_CXX \
20642    lt_prog_compiler_no_builtin_flag_CXX \
20643    export_dynamic_flag_spec_CXX \
20644    thread_safe_flag_spec_CXX \
20645    whole_archive_flag_spec_CXX \
20646    enable_shared_with_static_runtimes_CXX \
20647    old_archive_cmds_CXX \
20648    old_archive_from_new_cmds_CXX \
20649    predep_objects_CXX \
20650    postdep_objects_CXX \
20651    predeps_CXX \
20652    postdeps_CXX \
20653    compiler_lib_search_path_CXX \
20654    archive_cmds_CXX \
20655    archive_expsym_cmds_CXX \
20656    postinstall_cmds_CXX \
20657    postuninstall_cmds_CXX \
20658    old_archive_from_expsyms_cmds_CXX \
20659    allow_undefined_flag_CXX \
20660    no_undefined_flag_CXX \
20661    export_symbols_cmds_CXX \
20662    hardcode_libdir_flag_spec_CXX \
20663    hardcode_libdir_flag_spec_ld_CXX \
20664    hardcode_libdir_separator_CXX \
20665    hardcode_automatic_CXX \
20666    module_cmds_CXX \
20667    module_expsym_cmds_CXX \
20668    lt_cv_prog_compiler_c_o_CXX \
20669    exclude_expsyms_CXX \
20670    include_expsyms_CXX; do
20671
20672    case $var in
20673    old_archive_cmds_CXX | \
20674    old_archive_from_new_cmds_CXX | \
20675    archive_cmds_CXX | \
20676    archive_expsym_cmds_CXX | \
20677    module_cmds_CXX | \
20678    module_expsym_cmds_CXX | \
20679    old_archive_from_expsyms_cmds_CXX | \
20680    export_symbols_cmds_CXX | \
20681    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20682    postinstall_cmds | postuninstall_cmds | \
20683    old_postinstall_cmds | old_postuninstall_cmds | \
20684    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20685      # Double-quote double-evaled strings.
20686      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20687      ;;
20688    *)
20689      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20690      ;;
20691    esac
20692  done
20693
20694  case $lt_echo in
20695  *'\$0 --fallback-echo"')
20696    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20697    ;;
20698  esac
20699
20700cfgfile="$ofile"
20701
20702  cat <<__EOF__ >> "$cfgfile"
20703# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20704
20705# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20706
20707# Shell to use when invoking shell scripts.
20708SHELL=$lt_SHELL
20709
20710# Whether or not to build shared libraries.
20711build_libtool_libs=$enable_shared
20712
20713# Whether or not to build static libraries.
20714build_old_libs=$enable_static
20715
20716# Whether or not to add -lc for building shared libraries.
20717build_libtool_need_lc=$archive_cmds_need_lc_CXX
20718
20719# Whether or not to disallow shared libs when runtime libs are static
20720allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20721
20722# Whether or not to optimize for fast installation.
20723fast_install=$enable_fast_install
20724
20725# The host system.
20726host_alias=$host_alias
20727host=$host
20728host_os=$host_os
20729
20730# The build system.
20731build_alias=$build_alias
20732build=$build
20733build_os=$build_os
20734
20735# An echo program that does not interpret backslashes.
20736echo=$lt_echo
20737
20738# The archiver.
20739AR=$lt_AR
20740AR_FLAGS=$lt_AR_FLAGS
20741
20742# A C compiler.
20743LTCC=$lt_LTCC
20744
20745# LTCC compiler flags.
20746LTCFLAGS=$lt_LTCFLAGS
20747
20748# A language-specific compiler.
20749CC=$lt_compiler_CXX
20750
20751# Is the compiler the GNU C compiler?
20752with_gcc=$GCC_CXX
20753
20754# An ERE matcher.
20755EGREP=$lt_EGREP
20756
20757# The linker used to build libraries.
20758LD=$lt_LD_CXX
20759
20760# Whether we need hard or soft links.
20761LN_S=$lt_LN_S
20762
20763# A BSD-compatible nm program.
20764NM=$lt_NM
20765
20766# A symbol stripping program
20767STRIP=$lt_STRIP
20768
20769# Used to examine libraries when file_magic_cmd begins "file"
20770MAGIC_CMD=$MAGIC_CMD
20771
20772# Used on cygwin: DLL creation program.
20773DLLTOOL="$DLLTOOL"
20774
20775# Used on cygwin: object dumper.
20776OBJDUMP="$OBJDUMP"
20777
20778# Used on cygwin: assembler.
20779AS="$AS"
20780
20781# The name of the directory that contains temporary libtool files.
20782objdir=$objdir
20783
20784# How to create reloadable object files.
20785reload_flag=$lt_reload_flag
20786reload_cmds=$lt_reload_cmds
20787
20788# How to pass a linker flag through the compiler.
20789wl=$lt_lt_prog_compiler_wl_CXX
20790
20791# Object file suffix (normally "o").
20792objext="$ac_objext"
20793
20794# Old archive suffix (normally "a").
20795libext="$libext"
20796
20797# Shared library suffix (normally ".so").
20798shrext_cmds='$shrext_cmds'
20799
20800# Executable file suffix (normally "").
20801exeext="$exeext"
20802
20803# Additional compiler flags for building library objects.
20804pic_flag=$lt_lt_prog_compiler_pic_CXX
20805pic_mode=$pic_mode
20806
20807# What is the maximum length of a command?
20808max_cmd_len=$lt_cv_sys_max_cmd_len
20809
20810# Does compiler simultaneously support -c and -o options?
20811compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20812
20813# Must we lock files when doing compilation?
20814need_locks=$lt_need_locks
20815
20816# Do we need the lib prefix for modules?
20817need_lib_prefix=$need_lib_prefix
20818
20819# Do we need a version for libraries?
20820need_version=$need_version
20821
20822# Whether dlopen is supported.
20823dlopen_support=$enable_dlopen
20824
20825# Whether dlopen of programs is supported.
20826dlopen_self=$enable_dlopen_self
20827
20828# Whether dlopen of statically linked programs is supported.
20829dlopen_self_static=$enable_dlopen_self_static
20830
20831# Compiler flag to prevent dynamic linking.
20832link_static_flag=$lt_lt_prog_compiler_static_CXX
20833
20834# Compiler flag to turn off builtin functions.
20835no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20836
20837# Compiler flag to allow reflexive dlopens.
20838export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20839
20840# Compiler flag to generate shared objects directly from archives.
20841whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20842
20843# Compiler flag to generate thread-safe objects.
20844thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20845
20846# Library versioning type.
20847version_type=$version_type
20848
20849# Format of library name prefix.
20850libname_spec=$lt_libname_spec
20851
20852# List of archive names.  First name is the real one, the rest are links.
20853# The last name is the one that the linker finds with -lNAME.
20854library_names_spec=$lt_library_names_spec
20855
20856# The coded name of the library, if different from the real name.
20857soname_spec=$lt_soname_spec
20858
20859# Commands used to build and install an old-style archive.
20860RANLIB=$lt_RANLIB
20861old_archive_cmds=$lt_old_archive_cmds_CXX
20862old_postinstall_cmds=$lt_old_postinstall_cmds
20863old_postuninstall_cmds=$lt_old_postuninstall_cmds
20864
20865# Create an old-style archive from a shared archive.
20866old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20867
20868# Create a temporary old-style archive to link instead of a shared archive.
20869old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20870
20871# Commands used to build and install a shared archive.
20872archive_cmds=$lt_archive_cmds_CXX
20873archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20874postinstall_cmds=$lt_postinstall_cmds
20875postuninstall_cmds=$lt_postuninstall_cmds
20876
20877# Commands used to build a loadable module (assumed same as above if empty)
20878module_cmds=$lt_module_cmds_CXX
20879module_expsym_cmds=$lt_module_expsym_cmds_CXX
20880
20881# Commands to strip libraries.
20882old_striplib=$lt_old_striplib
20883striplib=$lt_striplib
20884
20885# Dependencies to place before the objects being linked to create a
20886# shared library.
20887predep_objects=$lt_predep_objects_CXX
20888
20889# Dependencies to place after the objects being linked to create a
20890# shared library.
20891postdep_objects=$lt_postdep_objects_CXX
20892
20893# Dependencies to place before the objects being linked to create a
20894# shared library.
20895predeps=$lt_predeps_CXX
20896
20897# Dependencies to place after the objects being linked to create a
20898# shared library.
20899postdeps=$lt_postdeps_CXX
20900
20901# The library search path used internally by the compiler when linking
20902# a shared library.
20903compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20904
20905# Method to check whether dependent libraries are shared objects.
20906deplibs_check_method=$lt_deplibs_check_method
20907
20908# Command to use when deplibs_check_method == file_magic.
20909file_magic_cmd=$lt_file_magic_cmd
20910
20911# Flag that allows shared libraries with undefined symbols to be built.
20912allow_undefined_flag=$lt_allow_undefined_flag_CXX
20913
20914# Flag that forces no undefined symbols.
20915no_undefined_flag=$lt_no_undefined_flag_CXX
20916
20917# Commands used to finish a libtool library installation in a directory.
20918finish_cmds=$lt_finish_cmds
20919
20920# Same as above, but a single script fragment to be evaled but not shown.
20921finish_eval=$lt_finish_eval
20922
20923# Take the output of nm and produce a listing of raw symbols and C names.
20924global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20925
20926# Transform the output of nm in a proper C declaration
20927global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20928
20929# Transform the output of nm in a C name address pair
20930global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20931
20932# This is the shared library runtime path variable.
20933runpath_var=$runpath_var
20934
20935# This is the shared library path variable.
20936shlibpath_var=$shlibpath_var
20937
20938# Is shlibpath searched before the hard-coded library search path?
20939shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20940
20941# How to hardcode a shared library path into an executable.
20942hardcode_action=$hardcode_action_CXX
20943
20944# Whether we should hardcode library paths into libraries.
20945hardcode_into_libs=$hardcode_into_libs
20946
20947# Flag to hardcode \$libdir into a binary during linking.
20948# This must work even if \$libdir does not exist.
20949hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20950
20951# If ld is used when linking, flag to hardcode \$libdir into
20952# a binary during linking. This must work even if \$libdir does
20953# not exist.
20954hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20955
20956# Whether we need a single -rpath flag with a separated argument.
20957hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20958
20959# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20960# resulting binary.
20961hardcode_direct=$hardcode_direct_CXX
20962
20963# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20964# resulting binary.
20965hardcode_minus_L=$hardcode_minus_L_CXX
20966
20967# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20968# the resulting binary.
20969hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20970
20971# Set to yes if building a shared library automatically hardcodes DIR into the library
20972# and all subsequent libraries and executables linked against it.
20973hardcode_automatic=$hardcode_automatic_CXX
20974
20975# Variables whose values should be saved in libtool wrapper scripts and
20976# restored at relink time.
20977variables_saved_for_relink="$variables_saved_for_relink"
20978
20979# Whether libtool must link a program against all its dependency libraries.
20980link_all_deplibs=$link_all_deplibs_CXX
20981
20982# Compile-time system search path for libraries
20983sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20984
20985# Run-time system search path for libraries
20986sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20987
20988# Fix the shell variable \$srcfile for the compiler.
20989fix_srcfile_path="$fix_srcfile_path_CXX"
20990
20991# Set to yes if exported symbols are required.
20992always_export_symbols=$always_export_symbols_CXX
20993
20994# The commands to list exported symbols.
20995export_symbols_cmds=$lt_export_symbols_cmds_CXX
20996
20997# The commands to extract the exported symbol list from a shared archive.
20998extract_expsyms_cmds=$lt_extract_expsyms_cmds
20999
21000# Symbols that should not be listed in the preloaded symbols.
21001exclude_expsyms=$lt_exclude_expsyms_CXX
21002
21003# Symbols that must always be exported.
21004include_expsyms=$lt_include_expsyms_CXX
21005
21006# ### END LIBTOOL TAG CONFIG: $tagname
21007
21008__EOF__
21009
21010
21011else
21012  # If there is no Makefile yet, we rely on a make rule to execute
21013  # `config.status --recheck' to rerun these tests and create the
21014  # libtool script then.
21015  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21016  if test -f "$ltmain_in"; then
21017    test -f Makefile && make "$ltmain"
21018  fi
21019fi
21020
21021
21022ac_ext=c
21023ac_cpp='$CPP $CPPFLAGS'
21024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21026ac_compiler_gnu=$ac_cv_c_compiler_gnu
21027
21028CC=$lt_save_CC
21029LDCXX=$LD
21030LD=$lt_save_LD
21031GCC=$lt_save_GCC
21032with_gnu_ldcxx=$with_gnu_ld
21033with_gnu_ld=$lt_save_with_gnu_ld
21034lt_cv_path_LDCXX=$lt_cv_path_LD
21035lt_cv_path_LD=$lt_save_path_LD
21036lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21037lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21038
21039	else
21040	  tagname=""
21041	fi
21042	;;
21043
21044      F77)
21045	if test -n "$F77" && test "X$F77" != "Xno"; then
21046
21047ac_ext=f
21048ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21049ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21050ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21051
21052
21053archive_cmds_need_lc_F77=no
21054allow_undefined_flag_F77=
21055always_export_symbols_F77=no
21056archive_expsym_cmds_F77=
21057export_dynamic_flag_spec_F77=
21058hardcode_direct_F77=no
21059hardcode_libdir_flag_spec_F77=
21060hardcode_libdir_flag_spec_ld_F77=
21061hardcode_libdir_separator_F77=
21062hardcode_minus_L_F77=no
21063hardcode_automatic_F77=no
21064module_cmds_F77=
21065module_expsym_cmds_F77=
21066link_all_deplibs_F77=unknown
21067old_archive_cmds_F77=$old_archive_cmds
21068no_undefined_flag_F77=
21069whole_archive_flag_spec_F77=
21070enable_shared_with_static_runtimes_F77=no
21071
21072# Source file extension for f77 test sources.
21073ac_ext=f
21074
21075# Object file extension for compiled f77 test sources.
21076objext=o
21077objext_F77=$objext
21078
21079# Code to be used in simple compile tests
21080lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21081
21082# Code to be used in simple link tests
21083lt_simple_link_test_code="      program t\n      end\n"
21084
21085# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21086
21087# If no C compiler was specified, use CC.
21088LTCC=${LTCC-"$CC"}
21089
21090# If no C compiler flags were specified, use CFLAGS.
21091LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21092
21093# Allow CC to be a program name with arguments.
21094compiler=$CC
21095
21096
21097# save warnings/boilerplate of simple test code
21098ac_outfile=conftest.$ac_objext
21099printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21100eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21101_lt_compiler_boilerplate=`cat conftest.err`
21102$rm conftest*
21103
21104ac_outfile=conftest.$ac_objext
21105printf "$lt_simple_link_test_code" >conftest.$ac_ext
21106eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21107_lt_linker_boilerplate=`cat conftest.err`
21108$rm conftest*
21109
21110
21111# Allow CC to be a program name with arguments.
21112lt_save_CC="$CC"
21113CC=${F77-"f77"}
21114compiler=$CC
21115compiler_F77=$CC
21116for cc_temp in $compiler""; do
21117  case $cc_temp in
21118    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21119    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21120    \-*) ;;
21121    *) break;;
21122  esac
21123done
21124cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21125
21126
21127{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21128echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21129{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21130echo "${ECHO_T}$can_build_shared" >&6; }
21131
21132{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21133echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21134test "$can_build_shared" = "no" && enable_shared=no
21135
21136# On AIX, shared libraries and static libraries use the same namespace, and
21137# are all built from PIC.
21138case $host_os in
21139aix3*)
21140  test "$enable_shared" = yes && enable_static=no
21141  if test -n "$RANLIB"; then
21142    archive_cmds="$archive_cmds~\$RANLIB \$lib"
21143    postinstall_cmds='$RANLIB $lib'
21144  fi
21145  ;;
21146aix4* | aix5*)
21147  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21148    test "$enable_shared" = yes && enable_static=no
21149  fi
21150  ;;
21151esac
21152{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21153echo "${ECHO_T}$enable_shared" >&6; }
21154
21155{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21156echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21157# Make sure either enable_shared or enable_static is yes.
21158test "$enable_shared" = yes || enable_static=yes
21159{ echo "$as_me:$LINENO: result: $enable_static" >&5
21160echo "${ECHO_T}$enable_static" >&6; }
21161
21162GCC_F77="$G77"
21163LD_F77="$LD"
21164
21165lt_prog_compiler_wl_F77=
21166lt_prog_compiler_pic_F77=
21167lt_prog_compiler_static_F77=
21168
21169{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21170echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21171
21172  if test "$GCC" = yes; then
21173    lt_prog_compiler_wl_F77='-Wl,'
21174    lt_prog_compiler_static_F77='-static'
21175
21176    case $host_os in
21177      aix*)
21178      # All AIX code is PIC.
21179      if test "$host_cpu" = ia64; then
21180	# AIX 5 now supports IA64 processor
21181	lt_prog_compiler_static_F77='-Bstatic'
21182      fi
21183      ;;
21184
21185    amigaos*)
21186      # FIXME: we need at least 68020 code to build shared libraries, but
21187      # adding the `-m68020' flag to GCC prevents building anything better,
21188      # like `-m68040'.
21189      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21190      ;;
21191
21192    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21193      # PIC is the default for these OSes.
21194      ;;
21195
21196    mingw* | pw32* | os2*)
21197      # This hack is so that the source file can tell whether it is being
21198      # built for inclusion in a dll (and should export symbols for example).
21199      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21200      ;;
21201
21202    darwin* | rhapsody*)
21203      # PIC is the default on this platform
21204      # Common symbols not allowed in MH_DYLIB files
21205      lt_prog_compiler_pic_F77='-fno-common'
21206      ;;
21207
21208    interix3*)
21209      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21210      # Instead, we relocate shared libraries at runtime.
21211      ;;
21212
21213    msdosdjgpp*)
21214      # Just because we use GCC doesn't mean we suddenly get shared libraries
21215      # on systems that don't support them.
21216      lt_prog_compiler_can_build_shared_F77=no
21217      enable_shared=no
21218      ;;
21219
21220    sysv4*MP*)
21221      if test -d /usr/nec; then
21222	lt_prog_compiler_pic_F77=-Kconform_pic
21223      fi
21224      ;;
21225
21226    hpux*)
21227      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21228      # not for PA HP-UX.
21229      case $host_cpu in
21230      hppa*64*|ia64*)
21231	# +Z the default
21232	;;
21233      *)
21234	lt_prog_compiler_pic_F77='-fPIC'
21235	;;
21236      esac
21237      ;;
21238
21239    *)
21240      lt_prog_compiler_pic_F77='-fPIC'
21241      ;;
21242    esac
21243  else
21244    # PORTME Check for flag to pass linker flags through the system compiler.
21245    case $host_os in
21246    aix*)
21247      lt_prog_compiler_wl_F77='-Wl,'
21248      if test "$host_cpu" = ia64; then
21249	# AIX 5 now supports IA64 processor
21250	lt_prog_compiler_static_F77='-Bstatic'
21251      else
21252	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21253      fi
21254      ;;
21255      darwin*)
21256        # PIC is the default on this platform
21257        # Common symbols not allowed in MH_DYLIB files
21258       case $cc_basename in
21259         xlc*)
21260         lt_prog_compiler_pic_F77='-qnocommon'
21261         lt_prog_compiler_wl_F77='-Wl,'
21262         ;;
21263       esac
21264       ;;
21265
21266    mingw* | pw32* | os2*)
21267      # This hack is so that the source file can tell whether it is being
21268      # built for inclusion in a dll (and should export symbols for example).
21269      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21270      ;;
21271
21272    hpux9* | hpux10* | hpux11*)
21273      lt_prog_compiler_wl_F77='-Wl,'
21274      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21275      # not for PA HP-UX.
21276      case $host_cpu in
21277      hppa*64*|ia64*)
21278	# +Z the default
21279	;;
21280      *)
21281	lt_prog_compiler_pic_F77='+Z'
21282	;;
21283      esac
21284      # Is there a better lt_prog_compiler_static that works with the bundled CC?
21285      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21286      ;;
21287
21288    irix5* | irix6* | nonstopux*)
21289      lt_prog_compiler_wl_F77='-Wl,'
21290      # PIC (with -KPIC) is the default.
21291      lt_prog_compiler_static_F77='-non_shared'
21292      ;;
21293
21294    newsos6)
21295      lt_prog_compiler_pic_F77='-KPIC'
21296      lt_prog_compiler_static_F77='-Bstatic'
21297      ;;
21298
21299    linux*)
21300      case $cc_basename in
21301      icc* | ecc*)
21302	lt_prog_compiler_wl_F77='-Wl,'
21303	lt_prog_compiler_pic_F77='-KPIC'
21304	lt_prog_compiler_static_F77='-static'
21305        ;;
21306      pgcc* | pgf77* | pgf90* | pgf95*)
21307        # Portland Group compilers (*not* the Pentium gcc compiler,
21308	# which looks to be a dead project)
21309	lt_prog_compiler_wl_F77='-Wl,'
21310	lt_prog_compiler_pic_F77='-fpic'
21311	lt_prog_compiler_static_F77='-Bstatic'
21312        ;;
21313      ccc*)
21314        lt_prog_compiler_wl_F77='-Wl,'
21315        # All Alpha code is PIC.
21316        lt_prog_compiler_static_F77='-non_shared'
21317        ;;
21318      esac
21319      ;;
21320
21321    osf3* | osf4* | osf5*)
21322      lt_prog_compiler_wl_F77='-Wl,'
21323      # All OSF/1 code is PIC.
21324      lt_prog_compiler_static_F77='-non_shared'
21325      ;;
21326
21327    solaris*)
21328      lt_prog_compiler_pic_F77='-KPIC'
21329      lt_prog_compiler_static_F77='-Bstatic'
21330      case $cc_basename in
21331      f77* | f90* | f95*)
21332	lt_prog_compiler_wl_F77='-Qoption ld ';;
21333      *)
21334	lt_prog_compiler_wl_F77='-Wl,';;
21335      esac
21336      ;;
21337
21338    sunos4*)
21339      lt_prog_compiler_wl_F77='-Qoption ld '
21340      lt_prog_compiler_pic_F77='-PIC'
21341      lt_prog_compiler_static_F77='-Bstatic'
21342      ;;
21343
21344    sysv4 | sysv4.2uw2* | sysv4.3*)
21345      lt_prog_compiler_wl_F77='-Wl,'
21346      lt_prog_compiler_pic_F77='-KPIC'
21347      lt_prog_compiler_static_F77='-Bstatic'
21348      ;;
21349
21350    sysv4*MP*)
21351      if test -d /usr/nec ;then
21352	lt_prog_compiler_pic_F77='-Kconform_pic'
21353	lt_prog_compiler_static_F77='-Bstatic'
21354      fi
21355      ;;
21356
21357    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21358      lt_prog_compiler_wl_F77='-Wl,'
21359      lt_prog_compiler_pic_F77='-KPIC'
21360      lt_prog_compiler_static_F77='-Bstatic'
21361      ;;
21362
21363    unicos*)
21364      lt_prog_compiler_wl_F77='-Wl,'
21365      lt_prog_compiler_can_build_shared_F77=no
21366      ;;
21367
21368    uts4*)
21369      lt_prog_compiler_pic_F77='-pic'
21370      lt_prog_compiler_static_F77='-Bstatic'
21371      ;;
21372
21373    *)
21374      lt_prog_compiler_can_build_shared_F77=no
21375      ;;
21376    esac
21377  fi
21378
21379{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21380echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21381
21382#
21383# Check to make sure the PIC flag actually works.
21384#
21385if test -n "$lt_prog_compiler_pic_F77"; then
21386
21387{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21388echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21389if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21390  echo $ECHO_N "(cached) $ECHO_C" >&6
21391else
21392  lt_prog_compiler_pic_works_F77=no
21393  ac_outfile=conftest.$ac_objext
21394   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21395   lt_compiler_flag="$lt_prog_compiler_pic_F77"
21396   # Insert the option either (1) after the last *FLAGS variable, or
21397   # (2) before a word containing "conftest.", or (3) at the end.
21398   # Note that $ac_compile itself does not contain backslashes and begins
21399   # with a dollar sign (not a hyphen), so the echo should work correctly.
21400   # The option is referenced via a variable to avoid confusing sed.
21401   lt_compile=`echo "$ac_compile" | $SED \
21402   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21403   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21404   -e 's:$: $lt_compiler_flag:'`
21405   (eval echo "\"\$as_me:21391: $lt_compile\"" >&5)
21406   (eval "$lt_compile" 2>conftest.err)
21407   ac_status=$?
21408   cat conftest.err >&5
21409   echo "$as_me:21395: \$? = $ac_status" >&5
21410   if (exit $ac_status) && test -s "$ac_outfile"; then
21411     # The compiler can only warn and ignore the option if not recognized
21412     # So say no if there are warnings other than the usual output.
21413     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21414     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21415     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21416       lt_prog_compiler_pic_works_F77=yes
21417     fi
21418   fi
21419   $rm conftest*
21420
21421fi
21422{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21423echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21424
21425if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21426    case $lt_prog_compiler_pic_F77 in
21427     "" | " "*) ;;
21428     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21429     esac
21430else
21431    lt_prog_compiler_pic_F77=
21432     lt_prog_compiler_can_build_shared_F77=no
21433fi
21434
21435fi
21436case $host_os in
21437  # For platforms which do not support PIC, -DPIC is meaningless:
21438  *djgpp*)
21439    lt_prog_compiler_pic_F77=
21440    ;;
21441  *)
21442    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21443    ;;
21444esac
21445
21446#
21447# Check to make sure the static flag actually works.
21448#
21449wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21450{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21451echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21452if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21453  echo $ECHO_N "(cached) $ECHO_C" >&6
21454else
21455  lt_prog_compiler_static_works_F77=no
21456   save_LDFLAGS="$LDFLAGS"
21457   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21458   printf "$lt_simple_link_test_code" > conftest.$ac_ext
21459   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21460     # The linker can only warn and ignore the option if not recognized
21461     # So say no if there are warnings
21462     if test -s conftest.err; then
21463       # Append any errors to the config.log.
21464       cat conftest.err 1>&5
21465       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21466       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21467       if diff conftest.exp conftest.er2 >/dev/null; then
21468         lt_prog_compiler_static_works_F77=yes
21469       fi
21470     else
21471       lt_prog_compiler_static_works_F77=yes
21472     fi
21473   fi
21474   $rm conftest*
21475   LDFLAGS="$save_LDFLAGS"
21476
21477fi
21478{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21479echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21480
21481if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21482    :
21483else
21484    lt_prog_compiler_static_F77=
21485fi
21486
21487
21488{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21489echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21490if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21491  echo $ECHO_N "(cached) $ECHO_C" >&6
21492else
21493  lt_cv_prog_compiler_c_o_F77=no
21494   $rm -r conftest 2>/dev/null
21495   mkdir conftest
21496   cd conftest
21497   mkdir out
21498   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21499
21500   lt_compiler_flag="-o out/conftest2.$ac_objext"
21501   # Insert the option either (1) after the last *FLAGS variable, or
21502   # (2) before a word containing "conftest.", or (3) at the end.
21503   # Note that $ac_compile itself does not contain backslashes and begins
21504   # with a dollar sign (not a hyphen), so the echo should work correctly.
21505   lt_compile=`echo "$ac_compile" | $SED \
21506   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21507   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21508   -e 's:$: $lt_compiler_flag:'`
21509   (eval echo "\"\$as_me:21495: $lt_compile\"" >&5)
21510   (eval "$lt_compile" 2>out/conftest.err)
21511   ac_status=$?
21512   cat out/conftest.err >&5
21513   echo "$as_me:21499: \$? = $ac_status" >&5
21514   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21515   then
21516     # The compiler can only warn and ignore the option if not recognized
21517     # So say no if there are warnings
21518     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21519     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21520     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21521       lt_cv_prog_compiler_c_o_F77=yes
21522     fi
21523   fi
21524   chmod u+w . 2>&5
21525   $rm conftest*
21526   # SGI C++ compiler will create directory out/ii_files/ for
21527   # template instantiation
21528   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21529   $rm out/* && rmdir out
21530   cd ..
21531   rmdir conftest
21532   $rm conftest*
21533
21534fi
21535{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21536echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21537
21538
21539hard_links="nottested"
21540if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21541  # do not overwrite the value of need_locks provided by the user
21542  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21543echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21544  hard_links=yes
21545  $rm conftest*
21546  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21547  touch conftest.a
21548  ln conftest.a conftest.b 2>&5 || hard_links=no
21549  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21550  { echo "$as_me:$LINENO: result: $hard_links" >&5
21551echo "${ECHO_T}$hard_links" >&6; }
21552  if test "$hard_links" = no; then
21553    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21554echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21555    need_locks=warn
21556  fi
21557else
21558  need_locks=no
21559fi
21560
21561{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21562echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21563
21564  runpath_var=
21565  allow_undefined_flag_F77=
21566  enable_shared_with_static_runtimes_F77=no
21567  archive_cmds_F77=
21568  archive_expsym_cmds_F77=
21569  old_archive_From_new_cmds_F77=
21570  old_archive_from_expsyms_cmds_F77=
21571  export_dynamic_flag_spec_F77=
21572  whole_archive_flag_spec_F77=
21573  thread_safe_flag_spec_F77=
21574  hardcode_libdir_flag_spec_F77=
21575  hardcode_libdir_flag_spec_ld_F77=
21576  hardcode_libdir_separator_F77=
21577  hardcode_direct_F77=no
21578  hardcode_minus_L_F77=no
21579  hardcode_shlibpath_var_F77=unsupported
21580  link_all_deplibs_F77=unknown
21581  hardcode_automatic_F77=no
21582  module_cmds_F77=
21583  module_expsym_cmds_F77=
21584  always_export_symbols_F77=no
21585  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21586  # include_expsyms should be a list of space-separated symbols to be *always*
21587  # included in the symbol list
21588  include_expsyms_F77=
21589  # exclude_expsyms can be an extended regexp of symbols to exclude
21590  # it will be wrapped by ` (' and `)$', so one must not match beginning or
21591  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21592  # as well as any symbol that contains `d'.
21593  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21594  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21595  # platforms (ab)use it in PIC code, but their linkers get confused if
21596  # the symbol is explicitly referenced.  Since portable code cannot
21597  # rely on this symbol name, it's probably fine to never include it in
21598  # preloaded symbol tables.
21599  extract_expsyms_cmds=
21600  # Just being paranoid about ensuring that cc_basename is set.
21601  for cc_temp in $compiler""; do
21602  case $cc_temp in
21603    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21604    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21605    \-*) ;;
21606    *) break;;
21607  esac
21608done
21609cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21610
21611  case $host_os in
21612  cygwin* | mingw* | pw32*)
21613    # FIXME: the MSVC++ port hasn't been tested in a loooong time
21614    # When not using gcc, we currently assume that we are using
21615    # Microsoft Visual C++.
21616    if test "$GCC" != yes; then
21617      with_gnu_ld=no
21618    fi
21619    ;;
21620  interix*)
21621    # we just hope/assume this is gcc and not c89 (= MSVC++)
21622    with_gnu_ld=yes
21623    ;;
21624  openbsd*)
21625    with_gnu_ld=no
21626    ;;
21627  esac
21628
21629  ld_shlibs_F77=yes
21630  if test "$with_gnu_ld" = yes; then
21631    # If archive_cmds runs LD, not CC, wlarc should be empty
21632    wlarc='${wl}'
21633
21634    # Set some defaults for GNU ld with shared library support. These
21635    # are reset later if shared libraries are not supported. Putting them
21636    # here allows them to be overridden if necessary.
21637    runpath_var=LD_RUN_PATH
21638    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21639    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21640    # ancient GNU ld didn't support --whole-archive et. al.
21641    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21642	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21643      else
21644  	whole_archive_flag_spec_F77=
21645    fi
21646    supports_anon_versioning=no
21647    case `$LD -v 2>/dev/null` in
21648      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21649      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21650      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21651      *\ 2.11.*) ;; # other 2.11 versions
21652      *) supports_anon_versioning=yes ;;
21653    esac
21654
21655    # See if GNU ld supports shared libraries.
21656    case $host_os in
21657    aix3* | aix4* | aix5*)
21658      # On AIX/PPC, the GNU linker is very broken
21659      if test "$host_cpu" != ia64; then
21660	ld_shlibs_F77=no
21661	cat <<EOF 1>&2
21662
21663*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21664*** to be unable to reliably create shared libraries on AIX.
21665*** Therefore, libtool is disabling shared libraries support.  If you
21666*** really care for shared libraries, you may want to modify your PATH
21667*** so that a non-GNU linker is found, and then restart.
21668
21669EOF
21670      fi
21671      ;;
21672
21673    amigaos*)
21674      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)'
21675      hardcode_libdir_flag_spec_F77='-L$libdir'
21676      hardcode_minus_L_F77=yes
21677
21678      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21679      # that the semantics of dynamic libraries on AmigaOS, at least up
21680      # to version 4, is to share data among multiple programs linked
21681      # with the same dynamic library.  Since this doesn't match the
21682      # behavior of shared libraries on other platforms, we can't use
21683      # them.
21684      ld_shlibs_F77=no
21685      ;;
21686
21687    beos*)
21688      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21689	allow_undefined_flag_F77=unsupported
21690	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21691	# support --undefined.  This deserves some investigation.  FIXME
21692	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21693      else
21694	ld_shlibs_F77=no
21695      fi
21696      ;;
21697
21698    cygwin* | mingw* | pw32*)
21699      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21700      # as there is no search path for DLLs.
21701      hardcode_libdir_flag_spec_F77='-L$libdir'
21702      allow_undefined_flag_F77=unsupported
21703      always_export_symbols_F77=no
21704      enable_shared_with_static_runtimes_F77=yes
21705      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21706
21707      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21708        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21709	# If the export-symbols file already is a .def file (1st line
21710	# is EXPORTS), use it as is; otherwise, prepend...
21711	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21712	  cp $export_symbols $output_objdir/$soname.def;
21713	else
21714	  echo EXPORTS > $output_objdir/$soname.def;
21715	  cat $export_symbols >> $output_objdir/$soname.def;
21716	fi~
21717	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21718      else
21719	ld_shlibs_F77=no
21720      fi
21721      ;;
21722
21723    interix3*)
21724      hardcode_direct_F77=no
21725      hardcode_shlibpath_var_F77=no
21726      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21727      export_dynamic_flag_spec_F77='${wl}-E'
21728      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21729      # Instead, shared libraries are loaded at an image base (0x10000000 by
21730      # default) and relocated if they conflict, which is a slow very memory
21731      # consuming and fragmenting process.  To avoid this, we pick a random,
21732      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21733      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21734      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'
21735      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'
21736      ;;
21737
21738    linux*)
21739      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21740	tmp_addflag=
21741	case $cc_basename,$host_cpu in
21742	pgcc*)				# Portland Group C compiler
21743	  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'
21744	  tmp_addflag=' $pic_flag'
21745	  ;;
21746	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
21747	  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'
21748	  tmp_addflag=' $pic_flag -Mnomain' ;;
21749	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
21750	  tmp_addflag=' -i_dynamic' ;;
21751	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
21752	  tmp_addflag=' -i_dynamic -nofor_main' ;;
21753	ifc* | ifort*)			# Intel Fortran compiler
21754	  tmp_addflag=' -nofor_main' ;;
21755	esac
21756	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21757
21758	if test $supports_anon_versioning = yes; then
21759	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21760  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21761  $echo "local: *; };" >> $output_objdir/$libname.ver~
21762	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21763	fi
21764      else
21765	ld_shlibs_F77=no
21766      fi
21767      ;;
21768
21769    netbsd*)
21770      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21771	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21772	wlarc=
21773      else
21774	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21775	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21776      fi
21777      ;;
21778
21779    solaris*)
21780      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21781	ld_shlibs_F77=no
21782	cat <<EOF 1>&2
21783
21784*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21785*** create shared libraries on Solaris systems.  Therefore, libtool
21786*** is disabling shared libraries support.  We urge you to upgrade GNU
21787*** binutils to release 2.9.1 or newer.  Another option is to modify
21788*** your PATH or compiler configuration so that the native linker is
21789*** used, and then restart.
21790
21791EOF
21792      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21793	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21794	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21795      else
21796	ld_shlibs_F77=no
21797      fi
21798      ;;
21799
21800    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21801      case `$LD -v 2>&1` in
21802        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21803	ld_shlibs_F77=no
21804	cat <<_LT_EOF 1>&2
21805
21806*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21807*** reliably create shared libraries on SCO systems.  Therefore, libtool
21808*** is disabling shared libraries support.  We urge you to upgrade GNU
21809*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21810*** your PATH or compiler configuration so that the native linker is
21811*** used, and then restart.
21812
21813_LT_EOF
21814	;;
21815	*)
21816	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21817	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21818	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21819	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21820	  else
21821	    ld_shlibs_F77=no
21822	  fi
21823	;;
21824      esac
21825      ;;
21826
21827    sunos4*)
21828      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21829      wlarc=
21830      hardcode_direct_F77=yes
21831      hardcode_shlibpath_var_F77=no
21832      ;;
21833
21834    *)
21835      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21836	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21837	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21838      else
21839	ld_shlibs_F77=no
21840      fi
21841      ;;
21842    esac
21843
21844    if test "$ld_shlibs_F77" = no; then
21845      runpath_var=
21846      hardcode_libdir_flag_spec_F77=
21847      export_dynamic_flag_spec_F77=
21848      whole_archive_flag_spec_F77=
21849    fi
21850  else
21851    # PORTME fill in a description of your system's linker (not GNU ld)
21852    case $host_os in
21853    aix3*)
21854      allow_undefined_flag_F77=unsupported
21855      always_export_symbols_F77=yes
21856      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'
21857      # Note: this linker hardcodes the directories in LIBPATH if there
21858      # are no directories specified by -L.
21859      hardcode_minus_L_F77=yes
21860      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21861	# Neither direct hardcoding nor static linking is supported with a
21862	# broken collect2.
21863	hardcode_direct_F77=unsupported
21864      fi
21865      ;;
21866
21867    aix4* | aix5*)
21868      if test "$host_cpu" = ia64; then
21869	# On IA64, the linker does run time linking by default, so we don't
21870	# have to do anything special.
21871	aix_use_runtimelinking=no
21872	exp_sym_flag='-Bexport'
21873	no_entry_flag=""
21874      else
21875	# If we're using GNU nm, then we don't want the "-C" option.
21876	# -C means demangle to AIX nm, but means don't demangle with GNU nm
21877	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21878	  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'
21879	else
21880	  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'
21881	fi
21882	aix_use_runtimelinking=no
21883
21884	# Test if we are trying to use run time linking or normal
21885	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
21886	# need to do runtime linking.
21887	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21888	  for ld_flag in $LDFLAGS; do
21889  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21890  	    aix_use_runtimelinking=yes
21891  	    break
21892  	  fi
21893	  done
21894	  ;;
21895	esac
21896
21897	exp_sym_flag='-bexport'
21898	no_entry_flag='-bnoentry'
21899      fi
21900
21901      # When large executables or shared objects are built, AIX ld can
21902      # have problems creating the table of contents.  If linking a library
21903      # or program results in "error TOC overflow" add -mminimal-toc to
21904      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21905      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21906
21907      archive_cmds_F77=''
21908      hardcode_direct_F77=yes
21909      hardcode_libdir_separator_F77=':'
21910      link_all_deplibs_F77=yes
21911
21912      if test "$GCC" = yes; then
21913	case $host_os in aix4.[012]|aix4.[012].*)
21914	# We only want to do this on AIX 4.2 and lower, the check
21915	# below for broken collect2 doesn't work under 4.3+
21916	  collect2name=`${CC} -print-prog-name=collect2`
21917	  if test -f "$collect2name" && \
21918  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
21919	  then
21920  	  # We have reworked collect2
21921  	  hardcode_direct_F77=yes
21922	  else
21923  	  # We have old collect2
21924  	  hardcode_direct_F77=unsupported
21925  	  # It fails to find uninstalled libraries when the uninstalled
21926  	  # path is not listed in the libpath.  Setting hardcode_minus_L
21927  	  # to unsupported forces relinking
21928  	  hardcode_minus_L_F77=yes
21929  	  hardcode_libdir_flag_spec_F77='-L$libdir'
21930  	  hardcode_libdir_separator_F77=
21931	  fi
21932	  ;;
21933	esac
21934	shared_flag='-shared'
21935	if test "$aix_use_runtimelinking" = yes; then
21936	  shared_flag="$shared_flag "'${wl}-G'
21937	fi
21938      else
21939	# not using gcc
21940	if test "$host_cpu" = ia64; then
21941  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21942  	# chokes on -Wl,-G. The following line is correct:
21943	  shared_flag='-G'
21944	else
21945	  if test "$aix_use_runtimelinking" = yes; then
21946	    shared_flag='${wl}-G'
21947	  else
21948	    shared_flag='${wl}-bM:SRE'
21949	  fi
21950	fi
21951      fi
21952
21953      # It seems that -bexpall does not export symbols beginning with
21954      # underscore (_), so it is better to generate a list of symbols to export.
21955      always_export_symbols_F77=yes
21956      if test "$aix_use_runtimelinking" = yes; then
21957	# Warning - without using the other runtime loading flags (-brtl),
21958	# -berok will link without error, but may produce a broken library.
21959	allow_undefined_flag_F77='-berok'
21960       # Determine the default libpath from the value encoded in an empty executable.
21961       cat >conftest.$ac_ext <<_ACEOF
21962      program main
21963
21964      end
21965_ACEOF
21966rm -f conftest.$ac_objext conftest$ac_exeext
21967if { (ac_try="$ac_link"
21968case "(($ac_try" in
21969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21970  *) ac_try_echo=$ac_try;;
21971esac
21972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21973  (eval "$ac_link") 2>conftest.er1
21974  ac_status=$?
21975  grep -v '^ *+' conftest.er1 >conftest.err
21976  rm -f conftest.er1
21977  cat conftest.err >&5
21978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979  (exit $ac_status); } &&
21980	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21981  { (case "(($ac_try" in
21982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21983  *) ac_try_echo=$ac_try;;
21984esac
21985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21986  (eval "$ac_try") 2>&5
21987  ac_status=$?
21988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989  (exit $ac_status); }; } &&
21990	 { ac_try='test -s conftest$ac_exeext'
21991  { (case "(($ac_try" in
21992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21993  *) ac_try_echo=$ac_try;;
21994esac
21995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21996  (eval "$ac_try") 2>&5
21997  ac_status=$?
21998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999  (exit $ac_status); }; }; then
22000
22001aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22002}'`
22003# Check for a 64-bit object if we didn't find anything.
22004if 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; }
22005}'`; fi
22006else
22007  echo "$as_me: failed program was:" >&5
22008sed 's/^/| /' conftest.$ac_ext >&5
22009
22010
22011fi
22012
22013rm -f core conftest.err conftest.$ac_objext \
22014      conftest$ac_exeext conftest.$ac_ext
22015if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22016
22017       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22018	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"
22019       else
22020	if test "$host_cpu" = ia64; then
22021	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22022	  allow_undefined_flag_F77="-z nodefs"
22023	  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"
22024	else
22025	 # Determine the default libpath from the value encoded in an empty executable.
22026	 cat >conftest.$ac_ext <<_ACEOF
22027      program main
22028
22029      end
22030_ACEOF
22031rm -f conftest.$ac_objext conftest$ac_exeext
22032if { (ac_try="$ac_link"
22033case "(($ac_try" in
22034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22035  *) ac_try_echo=$ac_try;;
22036esac
22037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22038  (eval "$ac_link") 2>conftest.er1
22039  ac_status=$?
22040  grep -v '^ *+' conftest.er1 >conftest.err
22041  rm -f conftest.er1
22042  cat conftest.err >&5
22043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044  (exit $ac_status); } &&
22045	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22046  { (case "(($ac_try" in
22047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22048  *) ac_try_echo=$ac_try;;
22049esac
22050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22051  (eval "$ac_try") 2>&5
22052  ac_status=$?
22053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054  (exit $ac_status); }; } &&
22055	 { ac_try='test -s conftest$ac_exeext'
22056  { (case "(($ac_try" in
22057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058  *) ac_try_echo=$ac_try;;
22059esac
22060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22061  (eval "$ac_try") 2>&5
22062  ac_status=$?
22063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064  (exit $ac_status); }; }; then
22065
22066aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22067}'`
22068# Check for a 64-bit object if we didn't find anything.
22069if 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; }
22070}'`; fi
22071else
22072  echo "$as_me: failed program was:" >&5
22073sed 's/^/| /' conftest.$ac_ext >&5
22074
22075
22076fi
22077
22078rm -f core conftest.err conftest.$ac_objext \
22079      conftest$ac_exeext conftest.$ac_ext
22080if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22081
22082	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22083	  # Warning - without using the other run time loading flags,
22084	  # -berok will link without error, but may produce a broken library.
22085	  no_undefined_flag_F77=' ${wl}-bernotok'
22086	  allow_undefined_flag_F77=' ${wl}-berok'
22087	  # Exported symbols can be pulled into shared objects from archives
22088	  whole_archive_flag_spec_F77='$convenience'
22089	  archive_cmds_need_lc_F77=yes
22090	  # This is similar to how AIX traditionally builds its shared libraries.
22091	  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'
22092	fi
22093      fi
22094      ;;
22095
22096    amigaos*)
22097      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)'
22098      hardcode_libdir_flag_spec_F77='-L$libdir'
22099      hardcode_minus_L_F77=yes
22100      # see comment about different semantics on the GNU ld section
22101      ld_shlibs_F77=no
22102      ;;
22103
22104    bsdi[45]*)
22105      export_dynamic_flag_spec_F77=-rdynamic
22106      ;;
22107
22108    cygwin* | mingw* | pw32*)
22109      # When not using gcc, we currently assume that we are using
22110      # Microsoft Visual C++.
22111      # hardcode_libdir_flag_spec is actually meaningless, as there is
22112      # no search path for DLLs.
22113      hardcode_libdir_flag_spec_F77=' '
22114      allow_undefined_flag_F77=unsupported
22115      # Tell ltmain to make .lib files, not .a files.
22116      libext=lib
22117      # Tell ltmain to make .dll files, not .so files.
22118      shrext_cmds=".dll"
22119      # FIXME: Setting linknames here is a bad hack.
22120      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22121      # The linker will automatically build a .lib file if we build a DLL.
22122      old_archive_From_new_cmds_F77='true'
22123      # FIXME: Should let the user specify the lib program.
22124      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22125      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22126      enable_shared_with_static_runtimes_F77=yes
22127      ;;
22128
22129    darwin* | rhapsody*)
22130      case $host_os in
22131        rhapsody* | darwin1.[012])
22132         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22133         ;;
22134       *) # Darwin 1.3 on
22135         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22136           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22137         else
22138           case ${MACOSX_DEPLOYMENT_TARGET} in
22139             10.[012])
22140               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22141               ;;
22142             10.*)
22143               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22144               ;;
22145           esac
22146         fi
22147         ;;
22148      esac
22149      archive_cmds_need_lc_F77=no
22150      hardcode_direct_F77=no
22151      hardcode_automatic_F77=yes
22152      hardcode_shlibpath_var_F77=unsupported
22153      whole_archive_flag_spec_F77=''
22154      link_all_deplibs_F77=yes
22155    if test "$GCC" = yes ; then
22156    	output_verbose_link_cmd='echo'
22157        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22158      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22159      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22160      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}'
22161      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}'
22162    else
22163      case $cc_basename in
22164        xlc*)
22165         output_verbose_link_cmd='echo'
22166         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22167         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22168          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22169         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}'
22170          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}'
22171          ;;
22172       *)
22173         ld_shlibs_F77=no
22174          ;;
22175      esac
22176    fi
22177      ;;
22178
22179    dgux*)
22180      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22181      hardcode_libdir_flag_spec_F77='-L$libdir'
22182      hardcode_shlibpath_var_F77=no
22183      ;;
22184
22185    freebsd1*)
22186      ld_shlibs_F77=no
22187      ;;
22188
22189    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22190    # support.  Future versions do this automatically, but an explicit c++rt0.o
22191    # does not break anything, and helps significantly (at the cost of a little
22192    # extra space).
22193    freebsd2.2*)
22194      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22195      hardcode_libdir_flag_spec_F77='-R$libdir'
22196      hardcode_direct_F77=yes
22197      hardcode_shlibpath_var_F77=no
22198      ;;
22199
22200    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22201    freebsd2*)
22202      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22203      hardcode_direct_F77=yes
22204      hardcode_minus_L_F77=yes
22205      hardcode_shlibpath_var_F77=no
22206      ;;
22207
22208    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22209    freebsd* | kfreebsd*-gnu | dragonfly*)
22210      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22211      hardcode_libdir_flag_spec_F77='-R$libdir'
22212      hardcode_direct_F77=yes
22213      hardcode_shlibpath_var_F77=no
22214      ;;
22215
22216    hpux9*)
22217      if test "$GCC" = yes; then
22218	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'
22219      else
22220	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'
22221      fi
22222      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22223      hardcode_libdir_separator_F77=:
22224      hardcode_direct_F77=yes
22225
22226      # hardcode_minus_L: Not really in the search PATH,
22227      # but as the default location of the library.
22228      hardcode_minus_L_F77=yes
22229      export_dynamic_flag_spec_F77='${wl}-E'
22230      ;;
22231
22232    hpux10*)
22233      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22234	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22235      else
22236	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22237      fi
22238      if test "$with_gnu_ld" = no; then
22239	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22240	hardcode_libdir_separator_F77=:
22241
22242	hardcode_direct_F77=yes
22243	export_dynamic_flag_spec_F77='${wl}-E'
22244
22245	# hardcode_minus_L: Not really in the search PATH,
22246	# but as the default location of the library.
22247	hardcode_minus_L_F77=yes
22248      fi
22249      ;;
22250
22251    hpux11*)
22252      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22253	case $host_cpu in
22254	hppa*64*)
22255	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22256	  ;;
22257	ia64*)
22258	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22259	  ;;
22260	*)
22261	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22262	  ;;
22263	esac
22264      else
22265	case $host_cpu in
22266	hppa*64*)
22267	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22268	  ;;
22269	ia64*)
22270	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22271	  ;;
22272	*)
22273	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22274	  ;;
22275	esac
22276      fi
22277      if test "$with_gnu_ld" = no; then
22278	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22279	hardcode_libdir_separator_F77=:
22280
22281	case $host_cpu in
22282	hppa*64*|ia64*)
22283	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22284	  hardcode_direct_F77=no
22285	  hardcode_shlibpath_var_F77=no
22286	  ;;
22287	*)
22288	  hardcode_direct_F77=yes
22289	  export_dynamic_flag_spec_F77='${wl}-E'
22290
22291	  # hardcode_minus_L: Not really in the search PATH,
22292	  # but as the default location of the library.
22293	  hardcode_minus_L_F77=yes
22294	  ;;
22295	esac
22296      fi
22297      ;;
22298
22299    irix5* | irix6* | nonstopux*)
22300      if test "$GCC" = yes; then
22301	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'
22302      else
22303	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'
22304	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22305      fi
22306      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22307      hardcode_libdir_separator_F77=:
22308      link_all_deplibs_F77=yes
22309      ;;
22310
22311    netbsd*)
22312      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22313	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22314      else
22315	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22316      fi
22317      hardcode_libdir_flag_spec_F77='-R$libdir'
22318      hardcode_direct_F77=yes
22319      hardcode_shlibpath_var_F77=no
22320      ;;
22321
22322    newsos6)
22323      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22324      hardcode_direct_F77=yes
22325      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22326      hardcode_libdir_separator_F77=:
22327      hardcode_shlibpath_var_F77=no
22328      ;;
22329
22330    openbsd*)
22331      hardcode_direct_F77=yes
22332      hardcode_shlibpath_var_F77=no
22333      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22334	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22335	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22336	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22337	export_dynamic_flag_spec_F77='${wl}-E'
22338      else
22339       case $host_os in
22340	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22341	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22342	   hardcode_libdir_flag_spec_F77='-R$libdir'
22343	   ;;
22344	 *)
22345	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22346	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22347	   ;;
22348       esac
22349      fi
22350      ;;
22351
22352    os2*)
22353      hardcode_libdir_flag_spec_F77='-L$libdir'
22354      hardcode_minus_L_F77=yes
22355      allow_undefined_flag_F77=unsupported
22356      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'
22357      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22358      ;;
22359
22360    osf3*)
22361      if test "$GCC" = yes; then
22362	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22363	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'
22364      else
22365	allow_undefined_flag_F77=' -expect_unresolved \*'
22366	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'
22367      fi
22368      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22369      hardcode_libdir_separator_F77=:
22370      ;;
22371
22372    osf4* | osf5*)	# as osf3* with the addition of -msym flag
22373      if test "$GCC" = yes; then
22374	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22375	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'
22376	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22377      else
22378	allow_undefined_flag_F77=' -expect_unresolved \*'
22379	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'
22380	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~
22381	$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'
22382
22383	# Both c and cxx compiler support -rpath directly
22384	hardcode_libdir_flag_spec_F77='-rpath $libdir'
22385      fi
22386      hardcode_libdir_separator_F77=:
22387      ;;
22388
22389    solaris*)
22390      no_undefined_flag_F77=' -z text'
22391      if test "$GCC" = yes; then
22392	wlarc='${wl}'
22393	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22394	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22395	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22396      else
22397	wlarc=''
22398	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22399	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22400  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22401      fi
22402      hardcode_libdir_flag_spec_F77='-R$libdir'
22403      hardcode_shlibpath_var_F77=no
22404      case $host_os in
22405      solaris2.[0-5] | solaris2.[0-5].*) ;;
22406      *)
22407 	# The compiler driver will combine linker options so we
22408 	# cannot just pass the convience library names through
22409 	# without $wl, iff we do not link with $LD.
22410 	# Luckily, gcc supports the same syntax we need for Sun Studio.
22411 	# Supported since Solaris 2.6 (maybe 2.5.1?)
22412 	case $wlarc in
22413 	'')
22414 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22415 	*)
22416 	  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' ;;
22417 	esac ;;
22418      esac
22419      link_all_deplibs_F77=yes
22420      ;;
22421
22422    sunos4*)
22423      if test "x$host_vendor" = xsequent; then
22424	# Use $CC to link under sequent, because it throws in some extra .o
22425	# files that make .init and .fini sections work.
22426	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22427      else
22428	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22429      fi
22430      hardcode_libdir_flag_spec_F77='-L$libdir'
22431      hardcode_direct_F77=yes
22432      hardcode_minus_L_F77=yes
22433      hardcode_shlibpath_var_F77=no
22434      ;;
22435
22436    sysv4)
22437      case $host_vendor in
22438	sni)
22439	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22440	  hardcode_direct_F77=yes # is this really true???
22441	;;
22442	siemens)
22443	  ## LD is ld it makes a PLAMLIB
22444	  ## CC just makes a GrossModule.
22445	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22446	  reload_cmds_F77='$CC -r -o $output$reload_objs'
22447	  hardcode_direct_F77=no
22448        ;;
22449	motorola)
22450	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22451	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22452	;;
22453      esac
22454      runpath_var='LD_RUN_PATH'
22455      hardcode_shlibpath_var_F77=no
22456      ;;
22457
22458    sysv4.3*)
22459      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22460      hardcode_shlibpath_var_F77=no
22461      export_dynamic_flag_spec_F77='-Bexport'
22462      ;;
22463
22464    sysv4*MP*)
22465      if test -d /usr/nec; then
22466	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22467	hardcode_shlibpath_var_F77=no
22468	runpath_var=LD_RUN_PATH
22469	hardcode_runpath_var=yes
22470	ld_shlibs_F77=yes
22471      fi
22472      ;;
22473
22474    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22475      no_undefined_flag_F77='${wl}-z,text'
22476      archive_cmds_need_lc_F77=no
22477      hardcode_shlibpath_var_F77=no
22478      runpath_var='LD_RUN_PATH'
22479
22480      if test "$GCC" = yes; then
22481	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22482	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22483      else
22484	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22485	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22486      fi
22487      ;;
22488
22489    sysv5* | sco3.2v5* | sco5v6*)
22490      # Note: We can NOT use -z defs as we might desire, because we do not
22491      # link with -lc, and that would cause any symbols used from libc to
22492      # always be unresolved, which means just about no library would
22493      # ever link correctly.  If we're not using GNU ld we use -z text
22494      # though, which does catch some bad symbols but isn't as heavy-handed
22495      # as -z defs.
22496      no_undefined_flag_F77='${wl}-z,text'
22497      allow_undefined_flag_F77='${wl}-z,nodefs'
22498      archive_cmds_need_lc_F77=no
22499      hardcode_shlibpath_var_F77=no
22500      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22501      hardcode_libdir_separator_F77=':'
22502      link_all_deplibs_F77=yes
22503      export_dynamic_flag_spec_F77='${wl}-Bexport'
22504      runpath_var='LD_RUN_PATH'
22505
22506      if test "$GCC" = yes; then
22507	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22508	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22509      else
22510	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22511	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22512      fi
22513      ;;
22514
22515    uts4*)
22516      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22517      hardcode_libdir_flag_spec_F77='-L$libdir'
22518      hardcode_shlibpath_var_F77=no
22519      ;;
22520
22521    *)
22522      ld_shlibs_F77=no
22523      ;;
22524    esac
22525  fi
22526
22527{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22528echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22529test "$ld_shlibs_F77" = no && can_build_shared=no
22530
22531#
22532# Do we need to explicitly link libc?
22533#
22534case "x$archive_cmds_need_lc_F77" in
22535x|xyes)
22536  # Assume -lc should be added
22537  archive_cmds_need_lc_F77=yes
22538
22539  if test "$enable_shared" = yes && test "$GCC" = yes; then
22540    case $archive_cmds_F77 in
22541    *'~'*)
22542      # FIXME: we may have to deal with multi-command sequences.
22543      ;;
22544    '$CC '*)
22545      # Test whether the compiler implicitly links with -lc since on some
22546      # systems, -lgcc has to come before -lc. If gcc already passes -lc
22547      # to ld, don't add -lc before -lgcc.
22548      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22549echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22550      $rm conftest*
22551      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22552
22553      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22554  (eval $ac_compile) 2>&5
22555  ac_status=$?
22556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557  (exit $ac_status); } 2>conftest.err; then
22558        soname=conftest
22559        lib=conftest
22560        libobjs=conftest.$ac_objext
22561        deplibs=
22562        wl=$lt_prog_compiler_wl_F77
22563	pic_flag=$lt_prog_compiler_pic_F77
22564        compiler_flags=-v
22565        linker_flags=-v
22566        verstring=
22567        output_objdir=.
22568        libname=conftest
22569        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22570        allow_undefined_flag_F77=
22571        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22572  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22573  ac_status=$?
22574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575  (exit $ac_status); }
22576        then
22577	  archive_cmds_need_lc_F77=no
22578        else
22579	  archive_cmds_need_lc_F77=yes
22580        fi
22581        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22582      else
22583        cat conftest.err 1>&5
22584      fi
22585      $rm conftest*
22586      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22587echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22588      ;;
22589    esac
22590  fi
22591  ;;
22592esac
22593
22594{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22595echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22596library_names_spec=
22597libname_spec='lib$name'
22598soname_spec=
22599shrext_cmds=".so"
22600postinstall_cmds=
22601postuninstall_cmds=
22602finish_cmds=
22603finish_eval=
22604shlibpath_var=
22605shlibpath_overrides_runpath=unknown
22606version_type=none
22607dynamic_linker="$host_os ld.so"
22608sys_lib_dlsearch_path_spec="/lib /usr/lib"
22609if test "$GCC" = yes; then
22610  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22611  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22612    # if the path contains ";" then we assume it to be the separator
22613    # otherwise default to the standard path separator (i.e. ":") - it is
22614    # assumed that no part of a normal pathname contains ";" but that should
22615    # okay in the real world where ";" in dirpaths is itself problematic.
22616    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22617  else
22618    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22619  fi
22620else
22621  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22622fi
22623need_lib_prefix=unknown
22624hardcode_into_libs=no
22625
22626# when you set need_version to no, make sure it does not cause -set_version
22627# flags to be left without arguments
22628need_version=unknown
22629
22630case $host_os in
22631aix3*)
22632  version_type=linux
22633  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22634  shlibpath_var=LIBPATH
22635
22636  # AIX 3 has no versioning support, so we append a major version to the name.
22637  soname_spec='${libname}${release}${shared_ext}$major'
22638  ;;
22639
22640aix4* | aix5*)
22641  version_type=linux
22642  need_lib_prefix=no
22643  need_version=no
22644  hardcode_into_libs=yes
22645  if test "$host_cpu" = ia64; then
22646    # AIX 5 supports IA64
22647    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22648    shlibpath_var=LD_LIBRARY_PATH
22649  else
22650    # With GCC up to 2.95.x, collect2 would create an import file
22651    # for dependence libraries.  The import file would start with
22652    # the line `#! .'.  This would cause the generated library to
22653    # depend on `.', always an invalid library.  This was fixed in
22654    # development snapshots of GCC prior to 3.0.
22655    case $host_os in
22656      aix4 | aix4.[01] | aix4.[01].*)
22657      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22658	   echo ' yes '
22659	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22660	:
22661      else
22662	can_build_shared=no
22663      fi
22664      ;;
22665    esac
22666    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22667    # soname into executable. Probably we can add versioning support to
22668    # collect2, so additional links can be useful in future.
22669    if test "$aix_use_runtimelinking" = yes; then
22670      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22671      # instead of lib<name>.a to let people know that these are not
22672      # typical AIX shared libraries.
22673      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22674    else
22675      # We preserve .a as extension for shared libraries through AIX4.2
22676      # and later when we are not doing run time linking.
22677      library_names_spec='${libname}${release}.a $libname.a'
22678      soname_spec='${libname}${release}${shared_ext}$major'
22679    fi
22680    shlibpath_var=LIBPATH
22681  fi
22682  ;;
22683
22684amigaos*)
22685  library_names_spec='$libname.ixlibrary $libname.a'
22686  # Create ${libname}_ixlibrary.a entries in /sys/libs.
22687  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'
22688  ;;
22689
22690beos*)
22691  library_names_spec='${libname}${shared_ext}'
22692  dynamic_linker="$host_os ld.so"
22693  shlibpath_var=LIBRARY_PATH
22694  ;;
22695
22696bsdi[45]*)
22697  version_type=linux
22698  need_version=no
22699  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22700  soname_spec='${libname}${release}${shared_ext}$major'
22701  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22702  shlibpath_var=LD_LIBRARY_PATH
22703  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22704  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22705  # the default ld.so.conf also contains /usr/contrib/lib and
22706  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22707  # libtool to hard-code these into programs
22708  ;;
22709
22710cygwin* | mingw* | pw32*)
22711  version_type=windows
22712  shrext_cmds=".dll"
22713  need_version=no
22714  need_lib_prefix=no
22715
22716  case $GCC,$host_os in
22717  yes,cygwin* | yes,mingw* | yes,pw32*)
22718    library_names_spec='$libname.dll.a'
22719    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22720    postinstall_cmds='base_file=`basename \${file}`~
22721      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22722      dldir=$destdir/`dirname \$dlpath`~
22723      test -d \$dldir || mkdir -p \$dldir~
22724      $install_prog $dir/$dlname \$dldir/$dlname~
22725      chmod a+x \$dldir/$dlname'
22726    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22727      dlpath=$dir/\$dldll~
22728       $rm \$dlpath'
22729    shlibpath_overrides_runpath=yes
22730
22731    case $host_os in
22732    cygwin*)
22733      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22734      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22735      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22736      ;;
22737    mingw*)
22738      # MinGW DLLs use traditional 'lib' prefix
22739      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22740      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22741      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22742        # It is most probably a Windows format PATH printed by
22743        # mingw gcc, but we are running on Cygwin. Gcc prints its search
22744        # path with ; separators, and with drive letters. We can handle the
22745        # drive letters (cygwin fileutils understands them), so leave them,
22746        # especially as we might pass files found there to a mingw objdump,
22747        # which wouldn't understand a cygwinified path. Ahh.
22748        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22749      else
22750        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22751      fi
22752      ;;
22753    pw32*)
22754      # pw32 DLLs use 'pw' prefix rather than 'lib'
22755      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22756      ;;
22757    esac
22758    ;;
22759
22760  *)
22761    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22762    ;;
22763  esac
22764  dynamic_linker='Win32 ld.exe'
22765  # FIXME: first we should search . and the directory the executable is in
22766  shlibpath_var=PATH
22767  ;;
22768
22769darwin* | rhapsody*)
22770  dynamic_linker="$host_os dyld"
22771  version_type=darwin
22772  need_lib_prefix=no
22773  need_version=no
22774  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22775  soname_spec='${libname}${release}${major}$shared_ext'
22776  shlibpath_overrides_runpath=yes
22777  shlibpath_var=DYLD_LIBRARY_PATH
22778  shrext_cmds='.dylib'
22779  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22780  if test "$GCC" = yes; then
22781    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"`
22782  else
22783    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22784  fi
22785  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22786  ;;
22787
22788dgux*)
22789  version_type=linux
22790  need_lib_prefix=no
22791  need_version=no
22792  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22793  soname_spec='${libname}${release}${shared_ext}$major'
22794  shlibpath_var=LD_LIBRARY_PATH
22795  ;;
22796
22797freebsd1*)
22798  dynamic_linker=no
22799  ;;
22800
22801kfreebsd*-gnu)
22802  version_type=linux
22803  need_lib_prefix=no
22804  need_version=no
22805  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22806  soname_spec='${libname}${release}${shared_ext}$major'
22807  shlibpath_var=LD_LIBRARY_PATH
22808  shlibpath_overrides_runpath=no
22809  hardcode_into_libs=yes
22810  dynamic_linker='GNU ld.so'
22811  ;;
22812
22813freebsd* | dragonfly*)
22814  # DragonFly does not have aout.  When/if they implement a new
22815  # versioning mechanism, adjust this.
22816  if test -x /usr/bin/objformat; then
22817    objformat=`/usr/bin/objformat`
22818  else
22819    case $host_os in
22820    freebsd[123]*) objformat=aout ;;
22821    *) objformat=elf ;;
22822    esac
22823  fi
22824  version_type=freebsd-$objformat
22825  case $version_type in
22826    freebsd-elf*)
22827      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22828      need_version=no
22829      need_lib_prefix=no
22830      ;;
22831    freebsd-*)
22832      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22833      need_version=yes
22834      ;;
22835  esac
22836  shlibpath_var=LD_LIBRARY_PATH
22837  case $host_os in
22838  freebsd2*)
22839    shlibpath_overrides_runpath=yes
22840    ;;
22841  freebsd3.[01]* | freebsdelf3.[01]*)
22842    shlibpath_overrides_runpath=yes
22843    hardcode_into_libs=yes
22844    ;;
22845  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22846  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22847    shlibpath_overrides_runpath=no
22848    hardcode_into_libs=yes
22849    ;;
22850  freebsd*) # from 4.6 on
22851    shlibpath_overrides_runpath=yes
22852    hardcode_into_libs=yes
22853    ;;
22854  esac
22855  ;;
22856
22857gnu*)
22858  version_type=linux
22859  need_lib_prefix=no
22860  need_version=no
22861  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22862  soname_spec='${libname}${release}${shared_ext}$major'
22863  shlibpath_var=LD_LIBRARY_PATH
22864  hardcode_into_libs=yes
22865  ;;
22866
22867hpux9* | hpux10* | hpux11*)
22868  # Give a soname corresponding to the major version so that dld.sl refuses to
22869  # link against other versions.
22870  version_type=sunos
22871  need_lib_prefix=no
22872  need_version=no
22873  case $host_cpu in
22874  ia64*)
22875    shrext_cmds='.so'
22876    hardcode_into_libs=yes
22877    dynamic_linker="$host_os dld.so"
22878    shlibpath_var=LD_LIBRARY_PATH
22879    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22880    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22881    soname_spec='${libname}${release}${shared_ext}$major'
22882    if test "X$HPUX_IA64_MODE" = X32; then
22883      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22884    else
22885      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22886    fi
22887    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22888    ;;
22889   hppa*64*)
22890     shrext_cmds='.sl'
22891     hardcode_into_libs=yes
22892     dynamic_linker="$host_os dld.sl"
22893     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22894     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22895     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22896     soname_spec='${libname}${release}${shared_ext}$major'
22897     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22898     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22899     ;;
22900   *)
22901    shrext_cmds='.sl'
22902    dynamic_linker="$host_os dld.sl"
22903    shlibpath_var=SHLIB_PATH
22904    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22905    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22906    soname_spec='${libname}${release}${shared_ext}$major'
22907    ;;
22908  esac
22909  # HP-UX runs *really* slowly unless shared libraries are mode 555.
22910  postinstall_cmds='chmod 555 $lib'
22911  ;;
22912
22913interix3*)
22914  version_type=linux
22915  need_lib_prefix=no
22916  need_version=no
22917  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22918  soname_spec='${libname}${release}${shared_ext}$major'
22919  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22920  shlibpath_var=LD_LIBRARY_PATH
22921  shlibpath_overrides_runpath=no
22922  hardcode_into_libs=yes
22923  ;;
22924
22925irix5* | irix6* | nonstopux*)
22926  case $host_os in
22927    nonstopux*) version_type=nonstopux ;;
22928    *)
22929	if test "$lt_cv_prog_gnu_ld" = yes; then
22930		version_type=linux
22931	else
22932		version_type=irix
22933	fi ;;
22934  esac
22935  need_lib_prefix=no
22936  need_version=no
22937  soname_spec='${libname}${release}${shared_ext}$major'
22938  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22939  case $host_os in
22940  irix5* | nonstopux*)
22941    libsuff= shlibsuff=
22942    ;;
22943  *)
22944    case $LD in # libtool.m4 will add one of these switches to LD
22945    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22946      libsuff= shlibsuff= libmagic=32-bit;;
22947    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22948      libsuff=32 shlibsuff=N32 libmagic=N32;;
22949    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22950      libsuff=64 shlibsuff=64 libmagic=64-bit;;
22951    *) libsuff= shlibsuff= libmagic=never-match;;
22952    esac
22953    ;;
22954  esac
22955  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22956  shlibpath_overrides_runpath=no
22957  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22958  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22959  hardcode_into_libs=yes
22960  ;;
22961
22962# No shared lib support for Linux oldld, aout, or coff.
22963linux*oldld* | linux*aout* | linux*coff*)
22964  dynamic_linker=no
22965  ;;
22966
22967# This must be Linux ELF.
22968linux*)
22969  version_type=linux
22970  need_lib_prefix=no
22971  need_version=no
22972  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22973  soname_spec='${libname}${release}${shared_ext}$major'
22974  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22975  shlibpath_var=LD_LIBRARY_PATH
22976  shlibpath_overrides_runpath=no
22977  # This implies no fast_install, which is unacceptable.
22978  # Some rework will be needed to allow for fast_install
22979  # before this can be enabled.
22980  hardcode_into_libs=yes
22981
22982  # Append ld.so.conf contents to the search path
22983  if test -f /etc/ld.so.conf; then
22984    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' ' '`
22985    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22986  fi
22987
22988  # We used to test for /lib/ld.so.1 and disable shared libraries on
22989  # powerpc, because MkLinux only supported shared libraries with the
22990  # GNU dynamic linker.  Since this was broken with cross compilers,
22991  # most powerpc-linux boxes support dynamic linking these days and
22992  # people can always --disable-shared, the test was removed, and we
22993  # assume the GNU/Linux dynamic linker is in use.
22994  dynamic_linker='GNU/Linux ld.so'
22995  ;;
22996
22997knetbsd*-gnu)
22998  version_type=linux
22999  need_lib_prefix=no
23000  need_version=no
23001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23002  soname_spec='${libname}${release}${shared_ext}$major'
23003  shlibpath_var=LD_LIBRARY_PATH
23004  shlibpath_overrides_runpath=no
23005  hardcode_into_libs=yes
23006  dynamic_linker='GNU ld.so'
23007  ;;
23008
23009netbsd*)
23010  version_type=sunos
23011  need_lib_prefix=no
23012  need_version=no
23013  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23014    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23015    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23016    dynamic_linker='NetBSD (a.out) ld.so'
23017  else
23018    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23019    soname_spec='${libname}${release}${shared_ext}$major'
23020    dynamic_linker='NetBSD ld.elf_so'
23021  fi
23022  shlibpath_var=LD_LIBRARY_PATH
23023  shlibpath_overrides_runpath=yes
23024  hardcode_into_libs=yes
23025  ;;
23026
23027newsos6)
23028  version_type=linux
23029  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23030  shlibpath_var=LD_LIBRARY_PATH
23031  shlibpath_overrides_runpath=yes
23032  ;;
23033
23034nto-qnx*)
23035  version_type=linux
23036  need_lib_prefix=no
23037  need_version=no
23038  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23039  soname_spec='${libname}${release}${shared_ext}$major'
23040  shlibpath_var=LD_LIBRARY_PATH
23041  shlibpath_overrides_runpath=yes
23042  ;;
23043
23044openbsd*)
23045  version_type=sunos
23046  sys_lib_dlsearch_path_spec="/usr/lib"
23047  need_lib_prefix=no
23048  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23049  case $host_os in
23050    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23051    *)                         need_version=no  ;;
23052  esac
23053  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23054  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23055  shlibpath_var=LD_LIBRARY_PATH
23056  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23057    case $host_os in
23058      openbsd2.[89] | openbsd2.[89].*)
23059	shlibpath_overrides_runpath=no
23060	;;
23061      *)
23062	shlibpath_overrides_runpath=yes
23063	;;
23064      esac
23065  else
23066    shlibpath_overrides_runpath=yes
23067  fi
23068  ;;
23069
23070os2*)
23071  libname_spec='$name'
23072  shrext_cmds=".dll"
23073  need_lib_prefix=no
23074  library_names_spec='$libname${shared_ext} $libname.a'
23075  dynamic_linker='OS/2 ld.exe'
23076  shlibpath_var=LIBPATH
23077  ;;
23078
23079osf3* | osf4* | osf5*)
23080  version_type=osf
23081  need_lib_prefix=no
23082  need_version=no
23083  soname_spec='${libname}${release}${shared_ext}$major'
23084  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23085  shlibpath_var=LD_LIBRARY_PATH
23086  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23087  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23088  ;;
23089
23090solaris*)
23091  version_type=linux
23092  need_lib_prefix=no
23093  need_version=no
23094  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23095  soname_spec='${libname}${release}${shared_ext}$major'
23096  shlibpath_var=LD_LIBRARY_PATH
23097  shlibpath_overrides_runpath=yes
23098  hardcode_into_libs=yes
23099  # ldd complains unless libraries are executable
23100  postinstall_cmds='chmod +x $lib'
23101  ;;
23102
23103sunos4*)
23104  version_type=sunos
23105  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23106  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23107  shlibpath_var=LD_LIBRARY_PATH
23108  shlibpath_overrides_runpath=yes
23109  if test "$with_gnu_ld" = yes; then
23110    need_lib_prefix=no
23111  fi
23112  need_version=yes
23113  ;;
23114
23115sysv4 | sysv4.3*)
23116  version_type=linux
23117  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23118  soname_spec='${libname}${release}${shared_ext}$major'
23119  shlibpath_var=LD_LIBRARY_PATH
23120  case $host_vendor in
23121    sni)
23122      shlibpath_overrides_runpath=no
23123      need_lib_prefix=no
23124      export_dynamic_flag_spec='${wl}-Blargedynsym'
23125      runpath_var=LD_RUN_PATH
23126      ;;
23127    siemens)
23128      need_lib_prefix=no
23129      ;;
23130    motorola)
23131      need_lib_prefix=no
23132      need_version=no
23133      shlibpath_overrides_runpath=no
23134      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23135      ;;
23136  esac
23137  ;;
23138
23139sysv4*MP*)
23140  if test -d /usr/nec ;then
23141    version_type=linux
23142    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23143    soname_spec='$libname${shared_ext}.$major'
23144    shlibpath_var=LD_LIBRARY_PATH
23145  fi
23146  ;;
23147
23148sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23149  version_type=freebsd-elf
23150  need_lib_prefix=no
23151  need_version=no
23152  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23153  soname_spec='${libname}${release}${shared_ext}$major'
23154  shlibpath_var=LD_LIBRARY_PATH
23155  hardcode_into_libs=yes
23156  if test "$with_gnu_ld" = yes; then
23157    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23158    shlibpath_overrides_runpath=no
23159  else
23160    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23161    shlibpath_overrides_runpath=yes
23162    case $host_os in
23163      sco3.2v5*)
23164        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23165	;;
23166    esac
23167  fi
23168  sys_lib_dlsearch_path_spec='/usr/lib'
23169  ;;
23170
23171uts4*)
23172  version_type=linux
23173  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23174  soname_spec='${libname}${release}${shared_ext}$major'
23175  shlibpath_var=LD_LIBRARY_PATH
23176  ;;
23177
23178*)
23179  dynamic_linker=no
23180  ;;
23181esac
23182{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23183echo "${ECHO_T}$dynamic_linker" >&6; }
23184test "$dynamic_linker" = no && can_build_shared=no
23185
23186variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23187if test "$GCC" = yes; then
23188  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23189fi
23190
23191{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23192echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23193hardcode_action_F77=
23194if test -n "$hardcode_libdir_flag_spec_F77" || \
23195   test -n "$runpath_var_F77" || \
23196   test "X$hardcode_automatic_F77" = "Xyes" ; then
23197
23198  # We can hardcode non-existant directories.
23199  if test "$hardcode_direct_F77" != no &&
23200     # If the only mechanism to avoid hardcoding is shlibpath_var, we
23201     # have to relink, otherwise we might link with an installed library
23202     # when we should be linking with a yet-to-be-installed one
23203     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23204     test "$hardcode_minus_L_F77" != no; then
23205    # Linking always hardcodes the temporary library directory.
23206    hardcode_action_F77=relink
23207  else
23208    # We can link without hardcoding, and we can hardcode nonexisting dirs.
23209    hardcode_action_F77=immediate
23210  fi
23211else
23212  # We cannot hardcode anything, or else we can only hardcode existing
23213  # directories.
23214  hardcode_action_F77=unsupported
23215fi
23216{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23217echo "${ECHO_T}$hardcode_action_F77" >&6; }
23218
23219if test "$hardcode_action_F77" = relink; then
23220  # Fast installation is not supported
23221  enable_fast_install=no
23222elif test "$shlibpath_overrides_runpath" = yes ||
23223     test "$enable_shared" = no; then
23224  # Fast installation is not necessary
23225  enable_fast_install=needless
23226fi
23227
23228
23229# The else clause should only fire when bootstrapping the
23230# libtool distribution, otherwise you forgot to ship ltmain.sh
23231# with your package, and you will get complaints that there are
23232# no rules to generate ltmain.sh.
23233if test -f "$ltmain"; then
23234  # See if we are running on zsh, and set the options which allow our commands through
23235  # without removal of \ escapes.
23236  if test -n "${ZSH_VERSION+set}" ; then
23237    setopt NO_GLOB_SUBST
23238  fi
23239  # Now quote all the things that may contain metacharacters while being
23240  # careful not to overquote the AC_SUBSTed values.  We take copies of the
23241  # variables and quote the copies for generation of the libtool script.
23242  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23243    SED SHELL STRIP \
23244    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23245    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23246    deplibs_check_method reload_flag reload_cmds need_locks \
23247    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23248    lt_cv_sys_global_symbol_to_c_name_address \
23249    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23250    old_postinstall_cmds old_postuninstall_cmds \
23251    compiler_F77 \
23252    CC_F77 \
23253    LD_F77 \
23254    lt_prog_compiler_wl_F77 \
23255    lt_prog_compiler_pic_F77 \
23256    lt_prog_compiler_static_F77 \
23257    lt_prog_compiler_no_builtin_flag_F77 \
23258    export_dynamic_flag_spec_F77 \
23259    thread_safe_flag_spec_F77 \
23260    whole_archive_flag_spec_F77 \
23261    enable_shared_with_static_runtimes_F77 \
23262    old_archive_cmds_F77 \
23263    old_archive_from_new_cmds_F77 \
23264    predep_objects_F77 \
23265    postdep_objects_F77 \
23266    predeps_F77 \
23267    postdeps_F77 \
23268    compiler_lib_search_path_F77 \
23269    archive_cmds_F77 \
23270    archive_expsym_cmds_F77 \
23271    postinstall_cmds_F77 \
23272    postuninstall_cmds_F77 \
23273    old_archive_from_expsyms_cmds_F77 \
23274    allow_undefined_flag_F77 \
23275    no_undefined_flag_F77 \
23276    export_symbols_cmds_F77 \
23277    hardcode_libdir_flag_spec_F77 \
23278    hardcode_libdir_flag_spec_ld_F77 \
23279    hardcode_libdir_separator_F77 \
23280    hardcode_automatic_F77 \
23281    module_cmds_F77 \
23282    module_expsym_cmds_F77 \
23283    lt_cv_prog_compiler_c_o_F77 \
23284    exclude_expsyms_F77 \
23285    include_expsyms_F77; do
23286
23287    case $var in
23288    old_archive_cmds_F77 | \
23289    old_archive_from_new_cmds_F77 | \
23290    archive_cmds_F77 | \
23291    archive_expsym_cmds_F77 | \
23292    module_cmds_F77 | \
23293    module_expsym_cmds_F77 | \
23294    old_archive_from_expsyms_cmds_F77 | \
23295    export_symbols_cmds_F77 | \
23296    extract_expsyms_cmds | reload_cmds | finish_cmds | \
23297    postinstall_cmds | postuninstall_cmds | \
23298    old_postinstall_cmds | old_postuninstall_cmds | \
23299    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23300      # Double-quote double-evaled strings.
23301      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23302      ;;
23303    *)
23304      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23305      ;;
23306    esac
23307  done
23308
23309  case $lt_echo in
23310  *'\$0 --fallback-echo"')
23311    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23312    ;;
23313  esac
23314
23315cfgfile="$ofile"
23316
23317  cat <<__EOF__ >> "$cfgfile"
23318# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23319
23320# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23321
23322# Shell to use when invoking shell scripts.
23323SHELL=$lt_SHELL
23324
23325# Whether or not to build shared libraries.
23326build_libtool_libs=$enable_shared
23327
23328# Whether or not to build static libraries.
23329build_old_libs=$enable_static
23330
23331# Whether or not to add -lc for building shared libraries.
23332build_libtool_need_lc=$archive_cmds_need_lc_F77
23333
23334# Whether or not to disallow shared libs when runtime libs are static
23335allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23336
23337# Whether or not to optimize for fast installation.
23338fast_install=$enable_fast_install
23339
23340# The host system.
23341host_alias=$host_alias
23342host=$host
23343host_os=$host_os
23344
23345# The build system.
23346build_alias=$build_alias
23347build=$build
23348build_os=$build_os
23349
23350# An echo program that does not interpret backslashes.
23351echo=$lt_echo
23352
23353# The archiver.
23354AR=$lt_AR
23355AR_FLAGS=$lt_AR_FLAGS
23356
23357# A C compiler.
23358LTCC=$lt_LTCC
23359
23360# LTCC compiler flags.
23361LTCFLAGS=$lt_LTCFLAGS
23362
23363# A language-specific compiler.
23364CC=$lt_compiler_F77
23365
23366# Is the compiler the GNU C compiler?
23367with_gcc=$GCC_F77
23368
23369# An ERE matcher.
23370EGREP=$lt_EGREP
23371
23372# The linker used to build libraries.
23373LD=$lt_LD_F77
23374
23375# Whether we need hard or soft links.
23376LN_S=$lt_LN_S
23377
23378# A BSD-compatible nm program.
23379NM=$lt_NM
23380
23381# A symbol stripping program
23382STRIP=$lt_STRIP
23383
23384# Used to examine libraries when file_magic_cmd begins "file"
23385MAGIC_CMD=$MAGIC_CMD
23386
23387# Used on cygwin: DLL creation program.
23388DLLTOOL="$DLLTOOL"
23389
23390# Used on cygwin: object dumper.
23391OBJDUMP="$OBJDUMP"
23392
23393# Used on cygwin: assembler.
23394AS="$AS"
23395
23396# The name of the directory that contains temporary libtool files.
23397objdir=$objdir
23398
23399# How to create reloadable object files.
23400reload_flag=$lt_reload_flag
23401reload_cmds=$lt_reload_cmds
23402
23403# How to pass a linker flag through the compiler.
23404wl=$lt_lt_prog_compiler_wl_F77
23405
23406# Object file suffix (normally "o").
23407objext="$ac_objext"
23408
23409# Old archive suffix (normally "a").
23410libext="$libext"
23411
23412# Shared library suffix (normally ".so").
23413shrext_cmds='$shrext_cmds'
23414
23415# Executable file suffix (normally "").
23416exeext="$exeext"
23417
23418# Additional compiler flags for building library objects.
23419pic_flag=$lt_lt_prog_compiler_pic_F77
23420pic_mode=$pic_mode
23421
23422# What is the maximum length of a command?
23423max_cmd_len=$lt_cv_sys_max_cmd_len
23424
23425# Does compiler simultaneously support -c and -o options?
23426compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23427
23428# Must we lock files when doing compilation?
23429need_locks=$lt_need_locks
23430
23431# Do we need the lib prefix for modules?
23432need_lib_prefix=$need_lib_prefix
23433
23434# Do we need a version for libraries?
23435need_version=$need_version
23436
23437# Whether dlopen is supported.
23438dlopen_support=$enable_dlopen
23439
23440# Whether dlopen of programs is supported.
23441dlopen_self=$enable_dlopen_self
23442
23443# Whether dlopen of statically linked programs is supported.
23444dlopen_self_static=$enable_dlopen_self_static
23445
23446# Compiler flag to prevent dynamic linking.
23447link_static_flag=$lt_lt_prog_compiler_static_F77
23448
23449# Compiler flag to turn off builtin functions.
23450no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23451
23452# Compiler flag to allow reflexive dlopens.
23453export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23454
23455# Compiler flag to generate shared objects directly from archives.
23456whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23457
23458# Compiler flag to generate thread-safe objects.
23459thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23460
23461# Library versioning type.
23462version_type=$version_type
23463
23464# Format of library name prefix.
23465libname_spec=$lt_libname_spec
23466
23467# List of archive names.  First name is the real one, the rest are links.
23468# The last name is the one that the linker finds with -lNAME.
23469library_names_spec=$lt_library_names_spec
23470
23471# The coded name of the library, if different from the real name.
23472soname_spec=$lt_soname_spec
23473
23474# Commands used to build and install an old-style archive.
23475RANLIB=$lt_RANLIB
23476old_archive_cmds=$lt_old_archive_cmds_F77
23477old_postinstall_cmds=$lt_old_postinstall_cmds
23478old_postuninstall_cmds=$lt_old_postuninstall_cmds
23479
23480# Create an old-style archive from a shared archive.
23481old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23482
23483# Create a temporary old-style archive to link instead of a shared archive.
23484old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23485
23486# Commands used to build and install a shared archive.
23487archive_cmds=$lt_archive_cmds_F77
23488archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23489postinstall_cmds=$lt_postinstall_cmds
23490postuninstall_cmds=$lt_postuninstall_cmds
23491
23492# Commands used to build a loadable module (assumed same as above if empty)
23493module_cmds=$lt_module_cmds_F77
23494module_expsym_cmds=$lt_module_expsym_cmds_F77
23495
23496# Commands to strip libraries.
23497old_striplib=$lt_old_striplib
23498striplib=$lt_striplib
23499
23500# Dependencies to place before the objects being linked to create a
23501# shared library.
23502predep_objects=$lt_predep_objects_F77
23503
23504# Dependencies to place after the objects being linked to create a
23505# shared library.
23506postdep_objects=$lt_postdep_objects_F77
23507
23508# Dependencies to place before the objects being linked to create a
23509# shared library.
23510predeps=$lt_predeps_F77
23511
23512# Dependencies to place after the objects being linked to create a
23513# shared library.
23514postdeps=$lt_postdeps_F77
23515
23516# The library search path used internally by the compiler when linking
23517# a shared library.
23518compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23519
23520# Method to check whether dependent libraries are shared objects.
23521deplibs_check_method=$lt_deplibs_check_method
23522
23523# Command to use when deplibs_check_method == file_magic.
23524file_magic_cmd=$lt_file_magic_cmd
23525
23526# Flag that allows shared libraries with undefined symbols to be built.
23527allow_undefined_flag=$lt_allow_undefined_flag_F77
23528
23529# Flag that forces no undefined symbols.
23530no_undefined_flag=$lt_no_undefined_flag_F77
23531
23532# Commands used to finish a libtool library installation in a directory.
23533finish_cmds=$lt_finish_cmds
23534
23535# Same as above, but a single script fragment to be evaled but not shown.
23536finish_eval=$lt_finish_eval
23537
23538# Take the output of nm and produce a listing of raw symbols and C names.
23539global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23540
23541# Transform the output of nm in a proper C declaration
23542global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23543
23544# Transform the output of nm in a C name address pair
23545global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23546
23547# This is the shared library runtime path variable.
23548runpath_var=$runpath_var
23549
23550# This is the shared library path variable.
23551shlibpath_var=$shlibpath_var
23552
23553# Is shlibpath searched before the hard-coded library search path?
23554shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23555
23556# How to hardcode a shared library path into an executable.
23557hardcode_action=$hardcode_action_F77
23558
23559# Whether we should hardcode library paths into libraries.
23560hardcode_into_libs=$hardcode_into_libs
23561
23562# Flag to hardcode \$libdir into a binary during linking.
23563# This must work even if \$libdir does not exist.
23564hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23565
23566# If ld is used when linking, flag to hardcode \$libdir into
23567# a binary during linking. This must work even if \$libdir does
23568# not exist.
23569hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23570
23571# Whether we need a single -rpath flag with a separated argument.
23572hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23573
23574# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23575# resulting binary.
23576hardcode_direct=$hardcode_direct_F77
23577
23578# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23579# resulting binary.
23580hardcode_minus_L=$hardcode_minus_L_F77
23581
23582# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23583# the resulting binary.
23584hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23585
23586# Set to yes if building a shared library automatically hardcodes DIR into the library
23587# and all subsequent libraries and executables linked against it.
23588hardcode_automatic=$hardcode_automatic_F77
23589
23590# Variables whose values should be saved in libtool wrapper scripts and
23591# restored at relink time.
23592variables_saved_for_relink="$variables_saved_for_relink"
23593
23594# Whether libtool must link a program against all its dependency libraries.
23595link_all_deplibs=$link_all_deplibs_F77
23596
23597# Compile-time system search path for libraries
23598sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23599
23600# Run-time system search path for libraries
23601sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23602
23603# Fix the shell variable \$srcfile for the compiler.
23604fix_srcfile_path="$fix_srcfile_path_F77"
23605
23606# Set to yes if exported symbols are required.
23607always_export_symbols=$always_export_symbols_F77
23608
23609# The commands to list exported symbols.
23610export_symbols_cmds=$lt_export_symbols_cmds_F77
23611
23612# The commands to extract the exported symbol list from a shared archive.
23613extract_expsyms_cmds=$lt_extract_expsyms_cmds
23614
23615# Symbols that should not be listed in the preloaded symbols.
23616exclude_expsyms=$lt_exclude_expsyms_F77
23617
23618# Symbols that must always be exported.
23619include_expsyms=$lt_include_expsyms_F77
23620
23621# ### END LIBTOOL TAG CONFIG: $tagname
23622
23623__EOF__
23624
23625
23626else
23627  # If there is no Makefile yet, we rely on a make rule to execute
23628  # `config.status --recheck' to rerun these tests and create the
23629  # libtool script then.
23630  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23631  if test -f "$ltmain_in"; then
23632    test -f Makefile && make "$ltmain"
23633  fi
23634fi
23635
23636
23637ac_ext=c
23638ac_cpp='$CPP $CPPFLAGS'
23639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23641ac_compiler_gnu=$ac_cv_c_compiler_gnu
23642
23643CC="$lt_save_CC"
23644
23645	else
23646	  tagname=""
23647	fi
23648	;;
23649
23650      GCJ)
23651	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23652	  ac_ext=c
23653ac_cpp='$CPP $CPPFLAGS'
23654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23656ac_compiler_gnu=$ac_cv_c_compiler_gnu
23657
23658
23659# Source file extension for Java test sources.
23660ac_ext=java
23661
23662# Object file extension for compiled Java test sources.
23663objext=o
23664objext_GCJ=$objext
23665
23666# Code to be used in simple compile tests
23667lt_simple_compile_test_code="class foo {}\n"
23668
23669# Code to be used in simple link tests
23670lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23671
23672# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23673
23674# If no C compiler was specified, use CC.
23675LTCC=${LTCC-"$CC"}
23676
23677# If no C compiler flags were specified, use CFLAGS.
23678LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23679
23680# Allow CC to be a program name with arguments.
23681compiler=$CC
23682
23683
23684# save warnings/boilerplate of simple test code
23685ac_outfile=conftest.$ac_objext
23686printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23687eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23688_lt_compiler_boilerplate=`cat conftest.err`
23689$rm conftest*
23690
23691ac_outfile=conftest.$ac_objext
23692printf "$lt_simple_link_test_code" >conftest.$ac_ext
23693eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23694_lt_linker_boilerplate=`cat conftest.err`
23695$rm conftest*
23696
23697
23698# Allow CC to be a program name with arguments.
23699lt_save_CC="$CC"
23700CC=${GCJ-"gcj"}
23701compiler=$CC
23702compiler_GCJ=$CC
23703for cc_temp in $compiler""; do
23704  case $cc_temp in
23705    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23706    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23707    \-*) ;;
23708    *) break;;
23709  esac
23710done
23711cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23712
23713
23714# GCJ did not exist at the time GCC didn't implicitly link libc in.
23715archive_cmds_need_lc_GCJ=no
23716
23717old_archive_cmds_GCJ=$old_archive_cmds
23718
23719
23720lt_prog_compiler_no_builtin_flag_GCJ=
23721
23722if test "$GCC" = yes; then
23723  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23724
23725
23726{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23727echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23728if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23729  echo $ECHO_N "(cached) $ECHO_C" >&6
23730else
23731  lt_cv_prog_compiler_rtti_exceptions=no
23732  ac_outfile=conftest.$ac_objext
23733   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23734   lt_compiler_flag="-fno-rtti -fno-exceptions"
23735   # Insert the option either (1) after the last *FLAGS variable, or
23736   # (2) before a word containing "conftest.", or (3) at the end.
23737   # Note that $ac_compile itself does not contain backslashes and begins
23738   # with a dollar sign (not a hyphen), so the echo should work correctly.
23739   # The option is referenced via a variable to avoid confusing sed.
23740   lt_compile=`echo "$ac_compile" | $SED \
23741   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23742   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23743   -e 's:$: $lt_compiler_flag:'`
23744   (eval echo "\"\$as_me:23730: $lt_compile\"" >&5)
23745   (eval "$lt_compile" 2>conftest.err)
23746   ac_status=$?
23747   cat conftest.err >&5
23748   echo "$as_me:23734: \$? = $ac_status" >&5
23749   if (exit $ac_status) && test -s "$ac_outfile"; then
23750     # The compiler can only warn and ignore the option if not recognized
23751     # So say no if there are warnings other than the usual output.
23752     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23753     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23754     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23755       lt_cv_prog_compiler_rtti_exceptions=yes
23756     fi
23757   fi
23758   $rm conftest*
23759
23760fi
23761{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23762echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23763
23764if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23765    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23766else
23767    :
23768fi
23769
23770fi
23771
23772lt_prog_compiler_wl_GCJ=
23773lt_prog_compiler_pic_GCJ=
23774lt_prog_compiler_static_GCJ=
23775
23776{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23777echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23778
23779  if test "$GCC" = yes; then
23780    lt_prog_compiler_wl_GCJ='-Wl,'
23781    lt_prog_compiler_static_GCJ='-static'
23782
23783    case $host_os in
23784      aix*)
23785      # All AIX code is PIC.
23786      if test "$host_cpu" = ia64; then
23787	# AIX 5 now supports IA64 processor
23788	lt_prog_compiler_static_GCJ='-Bstatic'
23789      fi
23790      ;;
23791
23792    amigaos*)
23793      # FIXME: we need at least 68020 code to build shared libraries, but
23794      # adding the `-m68020' flag to GCC prevents building anything better,
23795      # like `-m68040'.
23796      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23797      ;;
23798
23799    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23800      # PIC is the default for these OSes.
23801      ;;
23802
23803    mingw* | pw32* | os2*)
23804      # This hack is so that the source file can tell whether it is being
23805      # built for inclusion in a dll (and should export symbols for example).
23806      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23807      ;;
23808
23809    darwin* | rhapsody*)
23810      # PIC is the default on this platform
23811      # Common symbols not allowed in MH_DYLIB files
23812      lt_prog_compiler_pic_GCJ='-fno-common'
23813      ;;
23814
23815    interix3*)
23816      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23817      # Instead, we relocate shared libraries at runtime.
23818      ;;
23819
23820    msdosdjgpp*)
23821      # Just because we use GCC doesn't mean we suddenly get shared libraries
23822      # on systems that don't support them.
23823      lt_prog_compiler_can_build_shared_GCJ=no
23824      enable_shared=no
23825      ;;
23826
23827    sysv4*MP*)
23828      if test -d /usr/nec; then
23829	lt_prog_compiler_pic_GCJ=-Kconform_pic
23830      fi
23831      ;;
23832
23833    hpux*)
23834      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23835      # not for PA HP-UX.
23836      case $host_cpu in
23837      hppa*64*|ia64*)
23838	# +Z the default
23839	;;
23840      *)
23841	lt_prog_compiler_pic_GCJ='-fPIC'
23842	;;
23843      esac
23844      ;;
23845
23846    *)
23847      lt_prog_compiler_pic_GCJ='-fPIC'
23848      ;;
23849    esac
23850  else
23851    # PORTME Check for flag to pass linker flags through the system compiler.
23852    case $host_os in
23853    aix*)
23854      lt_prog_compiler_wl_GCJ='-Wl,'
23855      if test "$host_cpu" = ia64; then
23856	# AIX 5 now supports IA64 processor
23857	lt_prog_compiler_static_GCJ='-Bstatic'
23858      else
23859	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23860      fi
23861      ;;
23862      darwin*)
23863        # PIC is the default on this platform
23864        # Common symbols not allowed in MH_DYLIB files
23865       case $cc_basename in
23866         xlc*)
23867         lt_prog_compiler_pic_GCJ='-qnocommon'
23868         lt_prog_compiler_wl_GCJ='-Wl,'
23869         ;;
23870       esac
23871       ;;
23872
23873    mingw* | pw32* | os2*)
23874      # This hack is so that the source file can tell whether it is being
23875      # built for inclusion in a dll (and should export symbols for example).
23876      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23877      ;;
23878
23879    hpux9* | hpux10* | hpux11*)
23880      lt_prog_compiler_wl_GCJ='-Wl,'
23881      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23882      # not for PA HP-UX.
23883      case $host_cpu in
23884      hppa*64*|ia64*)
23885	# +Z the default
23886	;;
23887      *)
23888	lt_prog_compiler_pic_GCJ='+Z'
23889	;;
23890      esac
23891      # Is there a better lt_prog_compiler_static that works with the bundled CC?
23892      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23893      ;;
23894
23895    irix5* | irix6* | nonstopux*)
23896      lt_prog_compiler_wl_GCJ='-Wl,'
23897      # PIC (with -KPIC) is the default.
23898      lt_prog_compiler_static_GCJ='-non_shared'
23899      ;;
23900
23901    newsos6)
23902      lt_prog_compiler_pic_GCJ='-KPIC'
23903      lt_prog_compiler_static_GCJ='-Bstatic'
23904      ;;
23905
23906    linux*)
23907      case $cc_basename in
23908      icc* | ecc*)
23909	lt_prog_compiler_wl_GCJ='-Wl,'
23910	lt_prog_compiler_pic_GCJ='-KPIC'
23911	lt_prog_compiler_static_GCJ='-static'
23912        ;;
23913      pgcc* | pgf77* | pgf90* | pgf95*)
23914        # Portland Group compilers (*not* the Pentium gcc compiler,
23915	# which looks to be a dead project)
23916	lt_prog_compiler_wl_GCJ='-Wl,'
23917	lt_prog_compiler_pic_GCJ='-fpic'
23918	lt_prog_compiler_static_GCJ='-Bstatic'
23919        ;;
23920      ccc*)
23921        lt_prog_compiler_wl_GCJ='-Wl,'
23922        # All Alpha code is PIC.
23923        lt_prog_compiler_static_GCJ='-non_shared'
23924        ;;
23925      esac
23926      ;;
23927
23928    osf3* | osf4* | osf5*)
23929      lt_prog_compiler_wl_GCJ='-Wl,'
23930      # All OSF/1 code is PIC.
23931      lt_prog_compiler_static_GCJ='-non_shared'
23932      ;;
23933
23934    solaris*)
23935      lt_prog_compiler_pic_GCJ='-KPIC'
23936      lt_prog_compiler_static_GCJ='-Bstatic'
23937      case $cc_basename in
23938      f77* | f90* | f95*)
23939	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23940      *)
23941	lt_prog_compiler_wl_GCJ='-Wl,';;
23942      esac
23943      ;;
23944
23945    sunos4*)
23946      lt_prog_compiler_wl_GCJ='-Qoption ld '
23947      lt_prog_compiler_pic_GCJ='-PIC'
23948      lt_prog_compiler_static_GCJ='-Bstatic'
23949      ;;
23950
23951    sysv4 | sysv4.2uw2* | sysv4.3*)
23952      lt_prog_compiler_wl_GCJ='-Wl,'
23953      lt_prog_compiler_pic_GCJ='-KPIC'
23954      lt_prog_compiler_static_GCJ='-Bstatic'
23955      ;;
23956
23957    sysv4*MP*)
23958      if test -d /usr/nec ;then
23959	lt_prog_compiler_pic_GCJ='-Kconform_pic'
23960	lt_prog_compiler_static_GCJ='-Bstatic'
23961      fi
23962      ;;
23963
23964    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23965      lt_prog_compiler_wl_GCJ='-Wl,'
23966      lt_prog_compiler_pic_GCJ='-KPIC'
23967      lt_prog_compiler_static_GCJ='-Bstatic'
23968      ;;
23969
23970    unicos*)
23971      lt_prog_compiler_wl_GCJ='-Wl,'
23972      lt_prog_compiler_can_build_shared_GCJ=no
23973      ;;
23974
23975    uts4*)
23976      lt_prog_compiler_pic_GCJ='-pic'
23977      lt_prog_compiler_static_GCJ='-Bstatic'
23978      ;;
23979
23980    *)
23981      lt_prog_compiler_can_build_shared_GCJ=no
23982      ;;
23983    esac
23984  fi
23985
23986{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23987echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23988
23989#
23990# Check to make sure the PIC flag actually works.
23991#
23992if test -n "$lt_prog_compiler_pic_GCJ"; then
23993
23994{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23995echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23996if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23997  echo $ECHO_N "(cached) $ECHO_C" >&6
23998else
23999  lt_prog_compiler_pic_works_GCJ=no
24000  ac_outfile=conftest.$ac_objext
24001   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24002   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24003   # Insert the option either (1) after the last *FLAGS variable, or
24004   # (2) before a word containing "conftest.", or (3) at the end.
24005   # Note that $ac_compile itself does not contain backslashes and begins
24006   # with a dollar sign (not a hyphen), so the echo should work correctly.
24007   # The option is referenced via a variable to avoid confusing sed.
24008   lt_compile=`echo "$ac_compile" | $SED \
24009   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24010   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24011   -e 's:$: $lt_compiler_flag:'`
24012   (eval echo "\"\$as_me:23998: $lt_compile\"" >&5)
24013   (eval "$lt_compile" 2>conftest.err)
24014   ac_status=$?
24015   cat conftest.err >&5
24016   echo "$as_me:24002: \$? = $ac_status" >&5
24017   if (exit $ac_status) && test -s "$ac_outfile"; then
24018     # The compiler can only warn and ignore the option if not recognized
24019     # So say no if there are warnings other than the usual output.
24020     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24021     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24022     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24023       lt_prog_compiler_pic_works_GCJ=yes
24024     fi
24025   fi
24026   $rm conftest*
24027
24028fi
24029{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24030echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24031
24032if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24033    case $lt_prog_compiler_pic_GCJ in
24034     "" | " "*) ;;
24035     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24036     esac
24037else
24038    lt_prog_compiler_pic_GCJ=
24039     lt_prog_compiler_can_build_shared_GCJ=no
24040fi
24041
24042fi
24043case $host_os in
24044  # For platforms which do not support PIC, -DPIC is meaningless:
24045  *djgpp*)
24046    lt_prog_compiler_pic_GCJ=
24047    ;;
24048  *)
24049    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24050    ;;
24051esac
24052
24053#
24054# Check to make sure the static flag actually works.
24055#
24056wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24057{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24058echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24059if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24060  echo $ECHO_N "(cached) $ECHO_C" >&6
24061else
24062  lt_prog_compiler_static_works_GCJ=no
24063   save_LDFLAGS="$LDFLAGS"
24064   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24065   printf "$lt_simple_link_test_code" > conftest.$ac_ext
24066   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24067     # The linker can only warn and ignore the option if not recognized
24068     # So say no if there are warnings
24069     if test -s conftest.err; then
24070       # Append any errors to the config.log.
24071       cat conftest.err 1>&5
24072       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24073       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24074       if diff conftest.exp conftest.er2 >/dev/null; then
24075         lt_prog_compiler_static_works_GCJ=yes
24076       fi
24077     else
24078       lt_prog_compiler_static_works_GCJ=yes
24079     fi
24080   fi
24081   $rm conftest*
24082   LDFLAGS="$save_LDFLAGS"
24083
24084fi
24085{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24086echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24087
24088if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24089    :
24090else
24091    lt_prog_compiler_static_GCJ=
24092fi
24093
24094
24095{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24096echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24097if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24098  echo $ECHO_N "(cached) $ECHO_C" >&6
24099else
24100  lt_cv_prog_compiler_c_o_GCJ=no
24101   $rm -r conftest 2>/dev/null
24102   mkdir conftest
24103   cd conftest
24104   mkdir out
24105   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24106
24107   lt_compiler_flag="-o out/conftest2.$ac_objext"
24108   # Insert the option either (1) after the last *FLAGS variable, or
24109   # (2) before a word containing "conftest.", or (3) at the end.
24110   # Note that $ac_compile itself does not contain backslashes and begins
24111   # with a dollar sign (not a hyphen), so the echo should work correctly.
24112   lt_compile=`echo "$ac_compile" | $SED \
24113   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24114   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24115   -e 's:$: $lt_compiler_flag:'`
24116   (eval echo "\"\$as_me:24102: $lt_compile\"" >&5)
24117   (eval "$lt_compile" 2>out/conftest.err)
24118   ac_status=$?
24119   cat out/conftest.err >&5
24120   echo "$as_me:24106: \$? = $ac_status" >&5
24121   if (exit $ac_status) && test -s out/conftest2.$ac_objext
24122   then
24123     # The compiler can only warn and ignore the option if not recognized
24124     # So say no if there are warnings
24125     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24126     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24127     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24128       lt_cv_prog_compiler_c_o_GCJ=yes
24129     fi
24130   fi
24131   chmod u+w . 2>&5
24132   $rm conftest*
24133   # SGI C++ compiler will create directory out/ii_files/ for
24134   # template instantiation
24135   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24136   $rm out/* && rmdir out
24137   cd ..
24138   rmdir conftest
24139   $rm conftest*
24140
24141fi
24142{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24143echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24144
24145
24146hard_links="nottested"
24147if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24148  # do not overwrite the value of need_locks provided by the user
24149  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24150echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24151  hard_links=yes
24152  $rm conftest*
24153  ln conftest.a conftest.b 2>/dev/null && hard_links=no
24154  touch conftest.a
24155  ln conftest.a conftest.b 2>&5 || hard_links=no
24156  ln conftest.a conftest.b 2>/dev/null && hard_links=no
24157  { echo "$as_me:$LINENO: result: $hard_links" >&5
24158echo "${ECHO_T}$hard_links" >&6; }
24159  if test "$hard_links" = no; then
24160    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24161echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24162    need_locks=warn
24163  fi
24164else
24165  need_locks=no
24166fi
24167
24168{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24169echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24170
24171  runpath_var=
24172  allow_undefined_flag_GCJ=
24173  enable_shared_with_static_runtimes_GCJ=no
24174  archive_cmds_GCJ=
24175  archive_expsym_cmds_GCJ=
24176  old_archive_From_new_cmds_GCJ=
24177  old_archive_from_expsyms_cmds_GCJ=
24178  export_dynamic_flag_spec_GCJ=
24179  whole_archive_flag_spec_GCJ=
24180  thread_safe_flag_spec_GCJ=
24181  hardcode_libdir_flag_spec_GCJ=
24182  hardcode_libdir_flag_spec_ld_GCJ=
24183  hardcode_libdir_separator_GCJ=
24184  hardcode_direct_GCJ=no
24185  hardcode_minus_L_GCJ=no
24186  hardcode_shlibpath_var_GCJ=unsupported
24187  link_all_deplibs_GCJ=unknown
24188  hardcode_automatic_GCJ=no
24189  module_cmds_GCJ=
24190  module_expsym_cmds_GCJ=
24191  always_export_symbols_GCJ=no
24192  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24193  # include_expsyms should be a list of space-separated symbols to be *always*
24194  # included in the symbol list
24195  include_expsyms_GCJ=
24196  # exclude_expsyms can be an extended regexp of symbols to exclude
24197  # it will be wrapped by ` (' and `)$', so one must not match beginning or
24198  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24199  # as well as any symbol that contains `d'.
24200  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24201  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24202  # platforms (ab)use it in PIC code, but their linkers get confused if
24203  # the symbol is explicitly referenced.  Since portable code cannot
24204  # rely on this symbol name, it's probably fine to never include it in
24205  # preloaded symbol tables.
24206  extract_expsyms_cmds=
24207  # Just being paranoid about ensuring that cc_basename is set.
24208  for cc_temp in $compiler""; do
24209  case $cc_temp in
24210    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24211    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24212    \-*) ;;
24213    *) break;;
24214  esac
24215done
24216cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24217
24218  case $host_os in
24219  cygwin* | mingw* | pw32*)
24220    # FIXME: the MSVC++ port hasn't been tested in a loooong time
24221    # When not using gcc, we currently assume that we are using
24222    # Microsoft Visual C++.
24223    if test "$GCC" != yes; then
24224      with_gnu_ld=no
24225    fi
24226    ;;
24227  interix*)
24228    # we just hope/assume this is gcc and not c89 (= MSVC++)
24229    with_gnu_ld=yes
24230    ;;
24231  openbsd*)
24232    with_gnu_ld=no
24233    ;;
24234  esac
24235
24236  ld_shlibs_GCJ=yes
24237  if test "$with_gnu_ld" = yes; then
24238    # If archive_cmds runs LD, not CC, wlarc should be empty
24239    wlarc='${wl}'
24240
24241    # Set some defaults for GNU ld with shared library support. These
24242    # are reset later if shared libraries are not supported. Putting them
24243    # here allows them to be overridden if necessary.
24244    runpath_var=LD_RUN_PATH
24245    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24246    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24247    # ancient GNU ld didn't support --whole-archive et. al.
24248    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24249	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24250      else
24251  	whole_archive_flag_spec_GCJ=
24252    fi
24253    supports_anon_versioning=no
24254    case `$LD -v 2>/dev/null` in
24255      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24256      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24257      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24258      *\ 2.11.*) ;; # other 2.11 versions
24259      *) supports_anon_versioning=yes ;;
24260    esac
24261
24262    # See if GNU ld supports shared libraries.
24263    case $host_os in
24264    aix3* | aix4* | aix5*)
24265      # On AIX/PPC, the GNU linker is very broken
24266      if test "$host_cpu" != ia64; then
24267	ld_shlibs_GCJ=no
24268	cat <<EOF 1>&2
24269
24270*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24271*** to be unable to reliably create shared libraries on AIX.
24272*** Therefore, libtool is disabling shared libraries support.  If you
24273*** really care for shared libraries, you may want to modify your PATH
24274*** so that a non-GNU linker is found, and then restart.
24275
24276EOF
24277      fi
24278      ;;
24279
24280    amigaos*)
24281      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)'
24282      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24283      hardcode_minus_L_GCJ=yes
24284
24285      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24286      # that the semantics of dynamic libraries on AmigaOS, at least up
24287      # to version 4, is to share data among multiple programs linked
24288      # with the same dynamic library.  Since this doesn't match the
24289      # behavior of shared libraries on other platforms, we can't use
24290      # them.
24291      ld_shlibs_GCJ=no
24292      ;;
24293
24294    beos*)
24295      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24296	allow_undefined_flag_GCJ=unsupported
24297	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24298	# support --undefined.  This deserves some investigation.  FIXME
24299	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24300      else
24301	ld_shlibs_GCJ=no
24302      fi
24303      ;;
24304
24305    cygwin* | mingw* | pw32*)
24306      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24307      # as there is no search path for DLLs.
24308      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24309      allow_undefined_flag_GCJ=unsupported
24310      always_export_symbols_GCJ=no
24311      enable_shared_with_static_runtimes_GCJ=yes
24312      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24313
24314      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24315        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24316	# If the export-symbols file already is a .def file (1st line
24317	# is EXPORTS), use it as is; otherwise, prepend...
24318	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24319	  cp $export_symbols $output_objdir/$soname.def;
24320	else
24321	  echo EXPORTS > $output_objdir/$soname.def;
24322	  cat $export_symbols >> $output_objdir/$soname.def;
24323	fi~
24324	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24325      else
24326	ld_shlibs_GCJ=no
24327      fi
24328      ;;
24329
24330    interix3*)
24331      hardcode_direct_GCJ=no
24332      hardcode_shlibpath_var_GCJ=no
24333      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24334      export_dynamic_flag_spec_GCJ='${wl}-E'
24335      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24336      # Instead, shared libraries are loaded at an image base (0x10000000 by
24337      # default) and relocated if they conflict, which is a slow very memory
24338      # consuming and fragmenting process.  To avoid this, we pick a random,
24339      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24340      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24341      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'
24342      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'
24343      ;;
24344
24345    linux*)
24346      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24347	tmp_addflag=
24348	case $cc_basename,$host_cpu in
24349	pgcc*)				# Portland Group C compiler
24350	  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'
24351	  tmp_addflag=' $pic_flag'
24352	  ;;
24353	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
24354	  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'
24355	  tmp_addflag=' $pic_flag -Mnomain' ;;
24356	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
24357	  tmp_addflag=' -i_dynamic' ;;
24358	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
24359	  tmp_addflag=' -i_dynamic -nofor_main' ;;
24360	ifc* | ifort*)			# Intel Fortran compiler
24361	  tmp_addflag=' -nofor_main' ;;
24362	esac
24363	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24364
24365	if test $supports_anon_versioning = yes; then
24366	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24367  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24368  $echo "local: *; };" >> $output_objdir/$libname.ver~
24369	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24370	fi
24371      else
24372	ld_shlibs_GCJ=no
24373      fi
24374      ;;
24375
24376    netbsd*)
24377      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24378	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24379	wlarc=
24380      else
24381	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24382	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24383      fi
24384      ;;
24385
24386    solaris*)
24387      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24388	ld_shlibs_GCJ=no
24389	cat <<EOF 1>&2
24390
24391*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24392*** create shared libraries on Solaris systems.  Therefore, libtool
24393*** is disabling shared libraries support.  We urge you to upgrade GNU
24394*** binutils to release 2.9.1 or newer.  Another option is to modify
24395*** your PATH or compiler configuration so that the native linker is
24396*** used, and then restart.
24397
24398EOF
24399      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24400	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24401	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24402      else
24403	ld_shlibs_GCJ=no
24404      fi
24405      ;;
24406
24407    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24408      case `$LD -v 2>&1` in
24409        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24410	ld_shlibs_GCJ=no
24411	cat <<_LT_EOF 1>&2
24412
24413*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24414*** reliably create shared libraries on SCO systems.  Therefore, libtool
24415*** is disabling shared libraries support.  We urge you to upgrade GNU
24416*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24417*** your PATH or compiler configuration so that the native linker is
24418*** used, and then restart.
24419
24420_LT_EOF
24421	;;
24422	*)
24423	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24424	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24425	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24426	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24427	  else
24428	    ld_shlibs_GCJ=no
24429	  fi
24430	;;
24431      esac
24432      ;;
24433
24434    sunos4*)
24435      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24436      wlarc=
24437      hardcode_direct_GCJ=yes
24438      hardcode_shlibpath_var_GCJ=no
24439      ;;
24440
24441    *)
24442      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24443	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24444	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24445      else
24446	ld_shlibs_GCJ=no
24447      fi
24448      ;;
24449    esac
24450
24451    if test "$ld_shlibs_GCJ" = no; then
24452      runpath_var=
24453      hardcode_libdir_flag_spec_GCJ=
24454      export_dynamic_flag_spec_GCJ=
24455      whole_archive_flag_spec_GCJ=
24456    fi
24457  else
24458    # PORTME fill in a description of your system's linker (not GNU ld)
24459    case $host_os in
24460    aix3*)
24461      allow_undefined_flag_GCJ=unsupported
24462      always_export_symbols_GCJ=yes
24463      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'
24464      # Note: this linker hardcodes the directories in LIBPATH if there
24465      # are no directories specified by -L.
24466      hardcode_minus_L_GCJ=yes
24467      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24468	# Neither direct hardcoding nor static linking is supported with a
24469	# broken collect2.
24470	hardcode_direct_GCJ=unsupported
24471      fi
24472      ;;
24473
24474    aix4* | aix5*)
24475      if test "$host_cpu" = ia64; then
24476	# On IA64, the linker does run time linking by default, so we don't
24477	# have to do anything special.
24478	aix_use_runtimelinking=no
24479	exp_sym_flag='-Bexport'
24480	no_entry_flag=""
24481      else
24482	# If we're using GNU nm, then we don't want the "-C" option.
24483	# -C means demangle to AIX nm, but means don't demangle with GNU nm
24484	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24485	  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'
24486	else
24487	  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'
24488	fi
24489	aix_use_runtimelinking=no
24490
24491	# Test if we are trying to use run time linking or normal
24492	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
24493	# need to do runtime linking.
24494	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24495	  for ld_flag in $LDFLAGS; do
24496  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24497  	    aix_use_runtimelinking=yes
24498  	    break
24499  	  fi
24500	  done
24501	  ;;
24502	esac
24503
24504	exp_sym_flag='-bexport'
24505	no_entry_flag='-bnoentry'
24506      fi
24507
24508      # When large executables or shared objects are built, AIX ld can
24509      # have problems creating the table of contents.  If linking a library
24510      # or program results in "error TOC overflow" add -mminimal-toc to
24511      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24512      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24513
24514      archive_cmds_GCJ=''
24515      hardcode_direct_GCJ=yes
24516      hardcode_libdir_separator_GCJ=':'
24517      link_all_deplibs_GCJ=yes
24518
24519      if test "$GCC" = yes; then
24520	case $host_os in aix4.[012]|aix4.[012].*)
24521	# We only want to do this on AIX 4.2 and lower, the check
24522	# below for broken collect2 doesn't work under 4.3+
24523	  collect2name=`${CC} -print-prog-name=collect2`
24524	  if test -f "$collect2name" && \
24525  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
24526	  then
24527  	  # We have reworked collect2
24528  	  hardcode_direct_GCJ=yes
24529	  else
24530  	  # We have old collect2
24531  	  hardcode_direct_GCJ=unsupported
24532  	  # It fails to find uninstalled libraries when the uninstalled
24533  	  # path is not listed in the libpath.  Setting hardcode_minus_L
24534  	  # to unsupported forces relinking
24535  	  hardcode_minus_L_GCJ=yes
24536  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
24537  	  hardcode_libdir_separator_GCJ=
24538	  fi
24539	  ;;
24540	esac
24541	shared_flag='-shared'
24542	if test "$aix_use_runtimelinking" = yes; then
24543	  shared_flag="$shared_flag "'${wl}-G'
24544	fi
24545      else
24546	# not using gcc
24547	if test "$host_cpu" = ia64; then
24548  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24549  	# chokes on -Wl,-G. The following line is correct:
24550	  shared_flag='-G'
24551	else
24552	  if test "$aix_use_runtimelinking" = yes; then
24553	    shared_flag='${wl}-G'
24554	  else
24555	    shared_flag='${wl}-bM:SRE'
24556	  fi
24557	fi
24558      fi
24559
24560      # It seems that -bexpall does not export symbols beginning with
24561      # underscore (_), so it is better to generate a list of symbols to export.
24562      always_export_symbols_GCJ=yes
24563      if test "$aix_use_runtimelinking" = yes; then
24564	# Warning - without using the other runtime loading flags (-brtl),
24565	# -berok will link without error, but may produce a broken library.
24566	allow_undefined_flag_GCJ='-berok'
24567       # Determine the default libpath from the value encoded in an empty executable.
24568       cat >conftest.$ac_ext <<_ACEOF
24569/* confdefs.h.  */
24570_ACEOF
24571cat confdefs.h >>conftest.$ac_ext
24572cat >>conftest.$ac_ext <<_ACEOF
24573/* end confdefs.h.  */
24574
24575int
24576main ()
24577{
24578
24579  ;
24580  return 0;
24581}
24582_ACEOF
24583rm -f conftest.$ac_objext conftest$ac_exeext
24584if { (ac_try="$ac_link"
24585case "(($ac_try" in
24586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24587  *) ac_try_echo=$ac_try;;
24588esac
24589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24590  (eval "$ac_link") 2>conftest.er1
24591  ac_status=$?
24592  grep -v '^ *+' conftest.er1 >conftest.err
24593  rm -f conftest.er1
24594  cat conftest.err >&5
24595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596  (exit $ac_status); } &&
24597	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24598  { (case "(($ac_try" in
24599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24600  *) ac_try_echo=$ac_try;;
24601esac
24602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24603  (eval "$ac_try") 2>&5
24604  ac_status=$?
24605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606  (exit $ac_status); }; } &&
24607	 { ac_try='test -s conftest$ac_exeext'
24608  { (case "(($ac_try" in
24609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24610  *) ac_try_echo=$ac_try;;
24611esac
24612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24613  (eval "$ac_try") 2>&5
24614  ac_status=$?
24615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616  (exit $ac_status); }; }; then
24617
24618aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24619}'`
24620# Check for a 64-bit object if we didn't find anything.
24621if 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; }
24622}'`; fi
24623else
24624  echo "$as_me: failed program was:" >&5
24625sed 's/^/| /' conftest.$ac_ext >&5
24626
24627
24628fi
24629
24630rm -f core conftest.err conftest.$ac_objext \
24631      conftest$ac_exeext conftest.$ac_ext
24632if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24633
24634       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24635	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"
24636       else
24637	if test "$host_cpu" = ia64; then
24638	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24639	  allow_undefined_flag_GCJ="-z nodefs"
24640	  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"
24641	else
24642	 # Determine the default libpath from the value encoded in an empty executable.
24643	 cat >conftest.$ac_ext <<_ACEOF
24644/* confdefs.h.  */
24645_ACEOF
24646cat confdefs.h >>conftest.$ac_ext
24647cat >>conftest.$ac_ext <<_ACEOF
24648/* end confdefs.h.  */
24649
24650int
24651main ()
24652{
24653
24654  ;
24655  return 0;
24656}
24657_ACEOF
24658rm -f conftest.$ac_objext conftest$ac_exeext
24659if { (ac_try="$ac_link"
24660case "(($ac_try" in
24661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24662  *) ac_try_echo=$ac_try;;
24663esac
24664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24665  (eval "$ac_link") 2>conftest.er1
24666  ac_status=$?
24667  grep -v '^ *+' conftest.er1 >conftest.err
24668  rm -f conftest.er1
24669  cat conftest.err >&5
24670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671  (exit $ac_status); } &&
24672	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24673  { (case "(($ac_try" in
24674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24675  *) ac_try_echo=$ac_try;;
24676esac
24677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24678  (eval "$ac_try") 2>&5
24679  ac_status=$?
24680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24681  (exit $ac_status); }; } &&
24682	 { ac_try='test -s conftest$ac_exeext'
24683  { (case "(($ac_try" in
24684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24685  *) ac_try_echo=$ac_try;;
24686esac
24687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24688  (eval "$ac_try") 2>&5
24689  ac_status=$?
24690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691  (exit $ac_status); }; }; then
24692
24693aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24694}'`
24695# Check for a 64-bit object if we didn't find anything.
24696if 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; }
24697}'`; fi
24698else
24699  echo "$as_me: failed program was:" >&5
24700sed 's/^/| /' conftest.$ac_ext >&5
24701
24702
24703fi
24704
24705rm -f core conftest.err conftest.$ac_objext \
24706      conftest$ac_exeext conftest.$ac_ext
24707if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24708
24709	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24710	  # Warning - without using the other run time loading flags,
24711	  # -berok will link without error, but may produce a broken library.
24712	  no_undefined_flag_GCJ=' ${wl}-bernotok'
24713	  allow_undefined_flag_GCJ=' ${wl}-berok'
24714	  # Exported symbols can be pulled into shared objects from archives
24715	  whole_archive_flag_spec_GCJ='$convenience'
24716	  archive_cmds_need_lc_GCJ=yes
24717	  # This is similar to how AIX traditionally builds its shared libraries.
24718	  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'
24719	fi
24720      fi
24721      ;;
24722
24723    amigaos*)
24724      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)'
24725      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24726      hardcode_minus_L_GCJ=yes
24727      # see comment about different semantics on the GNU ld section
24728      ld_shlibs_GCJ=no
24729      ;;
24730
24731    bsdi[45]*)
24732      export_dynamic_flag_spec_GCJ=-rdynamic
24733      ;;
24734
24735    cygwin* | mingw* | pw32*)
24736      # When not using gcc, we currently assume that we are using
24737      # Microsoft Visual C++.
24738      # hardcode_libdir_flag_spec is actually meaningless, as there is
24739      # no search path for DLLs.
24740      hardcode_libdir_flag_spec_GCJ=' '
24741      allow_undefined_flag_GCJ=unsupported
24742      # Tell ltmain to make .lib files, not .a files.
24743      libext=lib
24744      # Tell ltmain to make .dll files, not .so files.
24745      shrext_cmds=".dll"
24746      # FIXME: Setting linknames here is a bad hack.
24747      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24748      # The linker will automatically build a .lib file if we build a DLL.
24749      old_archive_From_new_cmds_GCJ='true'
24750      # FIXME: Should let the user specify the lib program.
24751      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24752      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24753      enable_shared_with_static_runtimes_GCJ=yes
24754      ;;
24755
24756    darwin* | rhapsody*)
24757      case $host_os in
24758        rhapsody* | darwin1.[012])
24759         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24760         ;;
24761       *) # Darwin 1.3 on
24762         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24763           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24764         else
24765           case ${MACOSX_DEPLOYMENT_TARGET} in
24766             10.[012])
24767               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24768               ;;
24769             10.*)
24770               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24771               ;;
24772           esac
24773         fi
24774         ;;
24775      esac
24776      archive_cmds_need_lc_GCJ=no
24777      hardcode_direct_GCJ=no
24778      hardcode_automatic_GCJ=yes
24779      hardcode_shlibpath_var_GCJ=unsupported
24780      whole_archive_flag_spec_GCJ=''
24781      link_all_deplibs_GCJ=yes
24782    if test "$GCC" = yes ; then
24783    	output_verbose_link_cmd='echo'
24784        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24785      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24786      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24787      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}'
24788      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}'
24789    else
24790      case $cc_basename in
24791        xlc*)
24792         output_verbose_link_cmd='echo'
24793         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24794         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24795          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24796         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}'
24797          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}'
24798          ;;
24799       *)
24800         ld_shlibs_GCJ=no
24801          ;;
24802      esac
24803    fi
24804      ;;
24805
24806    dgux*)
24807      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24808      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24809      hardcode_shlibpath_var_GCJ=no
24810      ;;
24811
24812    freebsd1*)
24813      ld_shlibs_GCJ=no
24814      ;;
24815
24816    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24817    # support.  Future versions do this automatically, but an explicit c++rt0.o
24818    # does not break anything, and helps significantly (at the cost of a little
24819    # extra space).
24820    freebsd2.2*)
24821      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24822      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24823      hardcode_direct_GCJ=yes
24824      hardcode_shlibpath_var_GCJ=no
24825      ;;
24826
24827    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24828    freebsd2*)
24829      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24830      hardcode_direct_GCJ=yes
24831      hardcode_minus_L_GCJ=yes
24832      hardcode_shlibpath_var_GCJ=no
24833      ;;
24834
24835    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24836    freebsd* | kfreebsd*-gnu | dragonfly*)
24837      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24838      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24839      hardcode_direct_GCJ=yes
24840      hardcode_shlibpath_var_GCJ=no
24841      ;;
24842
24843    hpux9*)
24844      if test "$GCC" = yes; then
24845	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'
24846      else
24847	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'
24848      fi
24849      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24850      hardcode_libdir_separator_GCJ=:
24851      hardcode_direct_GCJ=yes
24852
24853      # hardcode_minus_L: Not really in the search PATH,
24854      # but as the default location of the library.
24855      hardcode_minus_L_GCJ=yes
24856      export_dynamic_flag_spec_GCJ='${wl}-E'
24857      ;;
24858
24859    hpux10*)
24860      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24861	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24862      else
24863	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24864      fi
24865      if test "$with_gnu_ld" = no; then
24866	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24867	hardcode_libdir_separator_GCJ=:
24868
24869	hardcode_direct_GCJ=yes
24870	export_dynamic_flag_spec_GCJ='${wl}-E'
24871
24872	# hardcode_minus_L: Not really in the search PATH,
24873	# but as the default location of the library.
24874	hardcode_minus_L_GCJ=yes
24875      fi
24876      ;;
24877
24878    hpux11*)
24879      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24880	case $host_cpu in
24881	hppa*64*)
24882	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24883	  ;;
24884	ia64*)
24885	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24886	  ;;
24887	*)
24888	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24889	  ;;
24890	esac
24891      else
24892	case $host_cpu in
24893	hppa*64*)
24894	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24895	  ;;
24896	ia64*)
24897	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24898	  ;;
24899	*)
24900	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24901	  ;;
24902	esac
24903      fi
24904      if test "$with_gnu_ld" = no; then
24905	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24906	hardcode_libdir_separator_GCJ=:
24907
24908	case $host_cpu in
24909	hppa*64*|ia64*)
24910	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24911	  hardcode_direct_GCJ=no
24912	  hardcode_shlibpath_var_GCJ=no
24913	  ;;
24914	*)
24915	  hardcode_direct_GCJ=yes
24916	  export_dynamic_flag_spec_GCJ='${wl}-E'
24917
24918	  # hardcode_minus_L: Not really in the search PATH,
24919	  # but as the default location of the library.
24920	  hardcode_minus_L_GCJ=yes
24921	  ;;
24922	esac
24923      fi
24924      ;;
24925
24926    irix5* | irix6* | nonstopux*)
24927      if test "$GCC" = yes; then
24928	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'
24929      else
24930	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'
24931	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24932      fi
24933      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24934      hardcode_libdir_separator_GCJ=:
24935      link_all_deplibs_GCJ=yes
24936      ;;
24937
24938    netbsd*)
24939      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24940	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24941      else
24942	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24943      fi
24944      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24945      hardcode_direct_GCJ=yes
24946      hardcode_shlibpath_var_GCJ=no
24947      ;;
24948
24949    newsos6)
24950      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24951      hardcode_direct_GCJ=yes
24952      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24953      hardcode_libdir_separator_GCJ=:
24954      hardcode_shlibpath_var_GCJ=no
24955      ;;
24956
24957    openbsd*)
24958      hardcode_direct_GCJ=yes
24959      hardcode_shlibpath_var_GCJ=no
24960      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24961	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24962	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24963	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24964	export_dynamic_flag_spec_GCJ='${wl}-E'
24965      else
24966       case $host_os in
24967	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24968	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24969	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
24970	   ;;
24971	 *)
24972	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24973	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24974	   ;;
24975       esac
24976      fi
24977      ;;
24978
24979    os2*)
24980      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24981      hardcode_minus_L_GCJ=yes
24982      allow_undefined_flag_GCJ=unsupported
24983      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'
24984      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24985      ;;
24986
24987    osf3*)
24988      if test "$GCC" = yes; then
24989	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24990	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'
24991      else
24992	allow_undefined_flag_GCJ=' -expect_unresolved \*'
24993	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'
24994      fi
24995      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24996      hardcode_libdir_separator_GCJ=:
24997      ;;
24998
24999    osf4* | osf5*)	# as osf3* with the addition of -msym flag
25000      if test "$GCC" = yes; then
25001	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25002	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'
25003	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25004      else
25005	allow_undefined_flag_GCJ=' -expect_unresolved \*'
25006	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'
25007	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~
25008	$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'
25009
25010	# Both c and cxx compiler support -rpath directly
25011	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25012      fi
25013      hardcode_libdir_separator_GCJ=:
25014      ;;
25015
25016    solaris*)
25017      no_undefined_flag_GCJ=' -z text'
25018      if test "$GCC" = yes; then
25019	wlarc='${wl}'
25020	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25021	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25022	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25023      else
25024	wlarc=''
25025	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25026	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25027  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25028      fi
25029      hardcode_libdir_flag_spec_GCJ='-R$libdir'
25030      hardcode_shlibpath_var_GCJ=no
25031      case $host_os in
25032      solaris2.[0-5] | solaris2.[0-5].*) ;;
25033      *)
25034 	# The compiler driver will combine linker options so we
25035 	# cannot just pass the convience library names through
25036 	# without $wl, iff we do not link with $LD.
25037 	# Luckily, gcc supports the same syntax we need for Sun Studio.
25038 	# Supported since Solaris 2.6 (maybe 2.5.1?)
25039 	case $wlarc in
25040 	'')
25041 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25042 	*)
25043 	  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' ;;
25044 	esac ;;
25045      esac
25046      link_all_deplibs_GCJ=yes
25047      ;;
25048
25049    sunos4*)
25050      if test "x$host_vendor" = xsequent; then
25051	# Use $CC to link under sequent, because it throws in some extra .o
25052	# files that make .init and .fini sections work.
25053	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25054      else
25055	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25056      fi
25057      hardcode_libdir_flag_spec_GCJ='-L$libdir'
25058      hardcode_direct_GCJ=yes
25059      hardcode_minus_L_GCJ=yes
25060      hardcode_shlibpath_var_GCJ=no
25061      ;;
25062
25063    sysv4)
25064      case $host_vendor in
25065	sni)
25066	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25067	  hardcode_direct_GCJ=yes # is this really true???
25068	;;
25069	siemens)
25070	  ## LD is ld it makes a PLAMLIB
25071	  ## CC just makes a GrossModule.
25072	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25073	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25074	  hardcode_direct_GCJ=no
25075        ;;
25076	motorola)
25077	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25078	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25079	;;
25080      esac
25081      runpath_var='LD_RUN_PATH'
25082      hardcode_shlibpath_var_GCJ=no
25083      ;;
25084
25085    sysv4.3*)
25086      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25087      hardcode_shlibpath_var_GCJ=no
25088      export_dynamic_flag_spec_GCJ='-Bexport'
25089      ;;
25090
25091    sysv4*MP*)
25092      if test -d /usr/nec; then
25093	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25094	hardcode_shlibpath_var_GCJ=no
25095	runpath_var=LD_RUN_PATH
25096	hardcode_runpath_var=yes
25097	ld_shlibs_GCJ=yes
25098      fi
25099      ;;
25100
25101    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25102      no_undefined_flag_GCJ='${wl}-z,text'
25103      archive_cmds_need_lc_GCJ=no
25104      hardcode_shlibpath_var_GCJ=no
25105      runpath_var='LD_RUN_PATH'
25106
25107      if test "$GCC" = yes; then
25108	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25109	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25110      else
25111	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25112	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25113      fi
25114      ;;
25115
25116    sysv5* | sco3.2v5* | sco5v6*)
25117      # Note: We can NOT use -z defs as we might desire, because we do not
25118      # link with -lc, and that would cause any symbols used from libc to
25119      # always be unresolved, which means just about no library would
25120      # ever link correctly.  If we're not using GNU ld we use -z text
25121      # though, which does catch some bad symbols but isn't as heavy-handed
25122      # as -z defs.
25123      no_undefined_flag_GCJ='${wl}-z,text'
25124      allow_undefined_flag_GCJ='${wl}-z,nodefs'
25125      archive_cmds_need_lc_GCJ=no
25126      hardcode_shlibpath_var_GCJ=no
25127      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25128      hardcode_libdir_separator_GCJ=':'
25129      link_all_deplibs_GCJ=yes
25130      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25131      runpath_var='LD_RUN_PATH'
25132
25133      if test "$GCC" = yes; then
25134	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25135	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25136      else
25137	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25138	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25139      fi
25140      ;;
25141
25142    uts4*)
25143      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25144      hardcode_libdir_flag_spec_GCJ='-L$libdir'
25145      hardcode_shlibpath_var_GCJ=no
25146      ;;
25147
25148    *)
25149      ld_shlibs_GCJ=no
25150      ;;
25151    esac
25152  fi
25153
25154{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25155echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25156test "$ld_shlibs_GCJ" = no && can_build_shared=no
25157
25158#
25159# Do we need to explicitly link libc?
25160#
25161case "x$archive_cmds_need_lc_GCJ" in
25162x|xyes)
25163  # Assume -lc should be added
25164  archive_cmds_need_lc_GCJ=yes
25165
25166  if test "$enable_shared" = yes && test "$GCC" = yes; then
25167    case $archive_cmds_GCJ in
25168    *'~'*)
25169      # FIXME: we may have to deal with multi-command sequences.
25170      ;;
25171    '$CC '*)
25172      # Test whether the compiler implicitly links with -lc since on some
25173      # systems, -lgcc has to come before -lc. If gcc already passes -lc
25174      # to ld, don't add -lc before -lgcc.
25175      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25176echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25177      $rm conftest*
25178      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25179
25180      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25181  (eval $ac_compile) 2>&5
25182  ac_status=$?
25183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25184  (exit $ac_status); } 2>conftest.err; then
25185        soname=conftest
25186        lib=conftest
25187        libobjs=conftest.$ac_objext
25188        deplibs=
25189        wl=$lt_prog_compiler_wl_GCJ
25190	pic_flag=$lt_prog_compiler_pic_GCJ
25191        compiler_flags=-v
25192        linker_flags=-v
25193        verstring=
25194        output_objdir=.
25195        libname=conftest
25196        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25197        allow_undefined_flag_GCJ=
25198        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25199  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25200  ac_status=$?
25201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202  (exit $ac_status); }
25203        then
25204	  archive_cmds_need_lc_GCJ=no
25205        else
25206	  archive_cmds_need_lc_GCJ=yes
25207        fi
25208        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25209      else
25210        cat conftest.err 1>&5
25211      fi
25212      $rm conftest*
25213      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25214echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25215      ;;
25216    esac
25217  fi
25218  ;;
25219esac
25220
25221{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25222echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25223library_names_spec=
25224libname_spec='lib$name'
25225soname_spec=
25226shrext_cmds=".so"
25227postinstall_cmds=
25228postuninstall_cmds=
25229finish_cmds=
25230finish_eval=
25231shlibpath_var=
25232shlibpath_overrides_runpath=unknown
25233version_type=none
25234dynamic_linker="$host_os ld.so"
25235sys_lib_dlsearch_path_spec="/lib /usr/lib"
25236if test "$GCC" = yes; then
25237  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25238  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25239    # if the path contains ";" then we assume it to be the separator
25240    # otherwise default to the standard path separator (i.e. ":") - it is
25241    # assumed that no part of a normal pathname contains ";" but that should
25242    # okay in the real world where ";" in dirpaths is itself problematic.
25243    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25244  else
25245    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25246  fi
25247else
25248  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25249fi
25250need_lib_prefix=unknown
25251hardcode_into_libs=no
25252
25253# when you set need_version to no, make sure it does not cause -set_version
25254# flags to be left without arguments
25255need_version=unknown
25256
25257case $host_os in
25258aix3*)
25259  version_type=linux
25260  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25261  shlibpath_var=LIBPATH
25262
25263  # AIX 3 has no versioning support, so we append a major version to the name.
25264  soname_spec='${libname}${release}${shared_ext}$major'
25265  ;;
25266
25267aix4* | aix5*)
25268  version_type=linux
25269  need_lib_prefix=no
25270  need_version=no
25271  hardcode_into_libs=yes
25272  if test "$host_cpu" = ia64; then
25273    # AIX 5 supports IA64
25274    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25275    shlibpath_var=LD_LIBRARY_PATH
25276  else
25277    # With GCC up to 2.95.x, collect2 would create an import file
25278    # for dependence libraries.  The import file would start with
25279    # the line `#! .'.  This would cause the generated library to
25280    # depend on `.', always an invalid library.  This was fixed in
25281    # development snapshots of GCC prior to 3.0.
25282    case $host_os in
25283      aix4 | aix4.[01] | aix4.[01].*)
25284      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25285	   echo ' yes '
25286	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25287	:
25288      else
25289	can_build_shared=no
25290      fi
25291      ;;
25292    esac
25293    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25294    # soname into executable. Probably we can add versioning support to
25295    # collect2, so additional links can be useful in future.
25296    if test "$aix_use_runtimelinking" = yes; then
25297      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25298      # instead of lib<name>.a to let people know that these are not
25299      # typical AIX shared libraries.
25300      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25301    else
25302      # We preserve .a as extension for shared libraries through AIX4.2
25303      # and later when we are not doing run time linking.
25304      library_names_spec='${libname}${release}.a $libname.a'
25305      soname_spec='${libname}${release}${shared_ext}$major'
25306    fi
25307    shlibpath_var=LIBPATH
25308  fi
25309  ;;
25310
25311amigaos*)
25312  library_names_spec='$libname.ixlibrary $libname.a'
25313  # Create ${libname}_ixlibrary.a entries in /sys/libs.
25314  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'
25315  ;;
25316
25317beos*)
25318  library_names_spec='${libname}${shared_ext}'
25319  dynamic_linker="$host_os ld.so"
25320  shlibpath_var=LIBRARY_PATH
25321  ;;
25322
25323bsdi[45]*)
25324  version_type=linux
25325  need_version=no
25326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25327  soname_spec='${libname}${release}${shared_ext}$major'
25328  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25329  shlibpath_var=LD_LIBRARY_PATH
25330  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25331  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25332  # the default ld.so.conf also contains /usr/contrib/lib and
25333  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25334  # libtool to hard-code these into programs
25335  ;;
25336
25337cygwin* | mingw* | pw32*)
25338  version_type=windows
25339  shrext_cmds=".dll"
25340  need_version=no
25341  need_lib_prefix=no
25342
25343  case $GCC,$host_os in
25344  yes,cygwin* | yes,mingw* | yes,pw32*)
25345    library_names_spec='$libname.dll.a'
25346    # DLL is installed to $(libdir)/../bin by postinstall_cmds
25347    postinstall_cmds='base_file=`basename \${file}`~
25348      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25349      dldir=$destdir/`dirname \$dlpath`~
25350      test -d \$dldir || mkdir -p \$dldir~
25351      $install_prog $dir/$dlname \$dldir/$dlname~
25352      chmod a+x \$dldir/$dlname'
25353    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25354      dlpath=$dir/\$dldll~
25355       $rm \$dlpath'
25356    shlibpath_overrides_runpath=yes
25357
25358    case $host_os in
25359    cygwin*)
25360      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25361      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25362      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25363      ;;
25364    mingw*)
25365      # MinGW DLLs use traditional 'lib' prefix
25366      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25367      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25368      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25369        # It is most probably a Windows format PATH printed by
25370        # mingw gcc, but we are running on Cygwin. Gcc prints its search
25371        # path with ; separators, and with drive letters. We can handle the
25372        # drive letters (cygwin fileutils understands them), so leave them,
25373        # especially as we might pass files found there to a mingw objdump,
25374        # which wouldn't understand a cygwinified path. Ahh.
25375        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25376      else
25377        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25378      fi
25379      ;;
25380    pw32*)
25381      # pw32 DLLs use 'pw' prefix rather than 'lib'
25382      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25383      ;;
25384    esac
25385    ;;
25386
25387  *)
25388    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25389    ;;
25390  esac
25391  dynamic_linker='Win32 ld.exe'
25392  # FIXME: first we should search . and the directory the executable is in
25393  shlibpath_var=PATH
25394  ;;
25395
25396darwin* | rhapsody*)
25397  dynamic_linker="$host_os dyld"
25398  version_type=darwin
25399  need_lib_prefix=no
25400  need_version=no
25401  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25402  soname_spec='${libname}${release}${major}$shared_ext'
25403  shlibpath_overrides_runpath=yes
25404  shlibpath_var=DYLD_LIBRARY_PATH
25405  shrext_cmds='.dylib'
25406  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25407  if test "$GCC" = yes; then
25408    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"`
25409  else
25410    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25411  fi
25412  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25413  ;;
25414
25415dgux*)
25416  version_type=linux
25417  need_lib_prefix=no
25418  need_version=no
25419  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25420  soname_spec='${libname}${release}${shared_ext}$major'
25421  shlibpath_var=LD_LIBRARY_PATH
25422  ;;
25423
25424freebsd1*)
25425  dynamic_linker=no
25426  ;;
25427
25428kfreebsd*-gnu)
25429  version_type=linux
25430  need_lib_prefix=no
25431  need_version=no
25432  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25433  soname_spec='${libname}${release}${shared_ext}$major'
25434  shlibpath_var=LD_LIBRARY_PATH
25435  shlibpath_overrides_runpath=no
25436  hardcode_into_libs=yes
25437  dynamic_linker='GNU ld.so'
25438  ;;
25439
25440freebsd* | dragonfly*)
25441  # DragonFly does not have aout.  When/if they implement a new
25442  # versioning mechanism, adjust this.
25443  if test -x /usr/bin/objformat; then
25444    objformat=`/usr/bin/objformat`
25445  else
25446    case $host_os in
25447    freebsd[123]*) objformat=aout ;;
25448    *) objformat=elf ;;
25449    esac
25450  fi
25451  version_type=freebsd-$objformat
25452  case $version_type in
25453    freebsd-elf*)
25454      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25455      need_version=no
25456      need_lib_prefix=no
25457      ;;
25458    freebsd-*)
25459      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25460      need_version=yes
25461      ;;
25462  esac
25463  shlibpath_var=LD_LIBRARY_PATH
25464  case $host_os in
25465  freebsd2*)
25466    shlibpath_overrides_runpath=yes
25467    ;;
25468  freebsd3.[01]* | freebsdelf3.[01]*)
25469    shlibpath_overrides_runpath=yes
25470    hardcode_into_libs=yes
25471    ;;
25472  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25473  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25474    shlibpath_overrides_runpath=no
25475    hardcode_into_libs=yes
25476    ;;
25477  freebsd*) # from 4.6 on
25478    shlibpath_overrides_runpath=yes
25479    hardcode_into_libs=yes
25480    ;;
25481  esac
25482  ;;
25483
25484gnu*)
25485  version_type=linux
25486  need_lib_prefix=no
25487  need_version=no
25488  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25489  soname_spec='${libname}${release}${shared_ext}$major'
25490  shlibpath_var=LD_LIBRARY_PATH
25491  hardcode_into_libs=yes
25492  ;;
25493
25494hpux9* | hpux10* | hpux11*)
25495  # Give a soname corresponding to the major version so that dld.sl refuses to
25496  # link against other versions.
25497  version_type=sunos
25498  need_lib_prefix=no
25499  need_version=no
25500  case $host_cpu in
25501  ia64*)
25502    shrext_cmds='.so'
25503    hardcode_into_libs=yes
25504    dynamic_linker="$host_os dld.so"
25505    shlibpath_var=LD_LIBRARY_PATH
25506    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25507    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25508    soname_spec='${libname}${release}${shared_ext}$major'
25509    if test "X$HPUX_IA64_MODE" = X32; then
25510      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25511    else
25512      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25513    fi
25514    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25515    ;;
25516   hppa*64*)
25517     shrext_cmds='.sl'
25518     hardcode_into_libs=yes
25519     dynamic_linker="$host_os dld.sl"
25520     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25521     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25522     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25523     soname_spec='${libname}${release}${shared_ext}$major'
25524     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25525     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25526     ;;
25527   *)
25528    shrext_cmds='.sl'
25529    dynamic_linker="$host_os dld.sl"
25530    shlibpath_var=SHLIB_PATH
25531    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25532    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25533    soname_spec='${libname}${release}${shared_ext}$major'
25534    ;;
25535  esac
25536  # HP-UX runs *really* slowly unless shared libraries are mode 555.
25537  postinstall_cmds='chmod 555 $lib'
25538  ;;
25539
25540interix3*)
25541  version_type=linux
25542  need_lib_prefix=no
25543  need_version=no
25544  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25545  soname_spec='${libname}${release}${shared_ext}$major'
25546  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25547  shlibpath_var=LD_LIBRARY_PATH
25548  shlibpath_overrides_runpath=no
25549  hardcode_into_libs=yes
25550  ;;
25551
25552irix5* | irix6* | nonstopux*)
25553  case $host_os in
25554    nonstopux*) version_type=nonstopux ;;
25555    *)
25556	if test "$lt_cv_prog_gnu_ld" = yes; then
25557		version_type=linux
25558	else
25559		version_type=irix
25560	fi ;;
25561  esac
25562  need_lib_prefix=no
25563  need_version=no
25564  soname_spec='${libname}${release}${shared_ext}$major'
25565  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25566  case $host_os in
25567  irix5* | nonstopux*)
25568    libsuff= shlibsuff=
25569    ;;
25570  *)
25571    case $LD in # libtool.m4 will add one of these switches to LD
25572    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25573      libsuff= shlibsuff= libmagic=32-bit;;
25574    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25575      libsuff=32 shlibsuff=N32 libmagic=N32;;
25576    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25577      libsuff=64 shlibsuff=64 libmagic=64-bit;;
25578    *) libsuff= shlibsuff= libmagic=never-match;;
25579    esac
25580    ;;
25581  esac
25582  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25583  shlibpath_overrides_runpath=no
25584  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25585  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25586  hardcode_into_libs=yes
25587  ;;
25588
25589# No shared lib support for Linux oldld, aout, or coff.
25590linux*oldld* | linux*aout* | linux*coff*)
25591  dynamic_linker=no
25592  ;;
25593
25594# This must be Linux ELF.
25595linux*)
25596  version_type=linux
25597  need_lib_prefix=no
25598  need_version=no
25599  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25600  soname_spec='${libname}${release}${shared_ext}$major'
25601  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25602  shlibpath_var=LD_LIBRARY_PATH
25603  shlibpath_overrides_runpath=no
25604  # This implies no fast_install, which is unacceptable.
25605  # Some rework will be needed to allow for fast_install
25606  # before this can be enabled.
25607  hardcode_into_libs=yes
25608
25609  # Append ld.so.conf contents to the search path
25610  if test -f /etc/ld.so.conf; then
25611    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' ' '`
25612    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25613  fi
25614
25615  # We used to test for /lib/ld.so.1 and disable shared libraries on
25616  # powerpc, because MkLinux only supported shared libraries with the
25617  # GNU dynamic linker.  Since this was broken with cross compilers,
25618  # most powerpc-linux boxes support dynamic linking these days and
25619  # people can always --disable-shared, the test was removed, and we
25620  # assume the GNU/Linux dynamic linker is in use.
25621  dynamic_linker='GNU/Linux ld.so'
25622  ;;
25623
25624knetbsd*-gnu)
25625  version_type=linux
25626  need_lib_prefix=no
25627  need_version=no
25628  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25629  soname_spec='${libname}${release}${shared_ext}$major'
25630  shlibpath_var=LD_LIBRARY_PATH
25631  shlibpath_overrides_runpath=no
25632  hardcode_into_libs=yes
25633  dynamic_linker='GNU ld.so'
25634  ;;
25635
25636netbsd*)
25637  version_type=sunos
25638  need_lib_prefix=no
25639  need_version=no
25640  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25641    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25642    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25643    dynamic_linker='NetBSD (a.out) ld.so'
25644  else
25645    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25646    soname_spec='${libname}${release}${shared_ext}$major'
25647    dynamic_linker='NetBSD ld.elf_so'
25648  fi
25649  shlibpath_var=LD_LIBRARY_PATH
25650  shlibpath_overrides_runpath=yes
25651  hardcode_into_libs=yes
25652  ;;
25653
25654newsos6)
25655  version_type=linux
25656  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25657  shlibpath_var=LD_LIBRARY_PATH
25658  shlibpath_overrides_runpath=yes
25659  ;;
25660
25661nto-qnx*)
25662  version_type=linux
25663  need_lib_prefix=no
25664  need_version=no
25665  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25666  soname_spec='${libname}${release}${shared_ext}$major'
25667  shlibpath_var=LD_LIBRARY_PATH
25668  shlibpath_overrides_runpath=yes
25669  ;;
25670
25671openbsd*)
25672  version_type=sunos
25673  sys_lib_dlsearch_path_spec="/usr/lib"
25674  need_lib_prefix=no
25675  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25676  case $host_os in
25677    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25678    *)                         need_version=no  ;;
25679  esac
25680  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25681  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25682  shlibpath_var=LD_LIBRARY_PATH
25683  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25684    case $host_os in
25685      openbsd2.[89] | openbsd2.[89].*)
25686	shlibpath_overrides_runpath=no
25687	;;
25688      *)
25689	shlibpath_overrides_runpath=yes
25690	;;
25691      esac
25692  else
25693    shlibpath_overrides_runpath=yes
25694  fi
25695  ;;
25696
25697os2*)
25698  libname_spec='$name'
25699  shrext_cmds=".dll"
25700  need_lib_prefix=no
25701  library_names_spec='$libname${shared_ext} $libname.a'
25702  dynamic_linker='OS/2 ld.exe'
25703  shlibpath_var=LIBPATH
25704  ;;
25705
25706osf3* | osf4* | osf5*)
25707  version_type=osf
25708  need_lib_prefix=no
25709  need_version=no
25710  soname_spec='${libname}${release}${shared_ext}$major'
25711  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25712  shlibpath_var=LD_LIBRARY_PATH
25713  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25714  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25715  ;;
25716
25717solaris*)
25718  version_type=linux
25719  need_lib_prefix=no
25720  need_version=no
25721  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25722  soname_spec='${libname}${release}${shared_ext}$major'
25723  shlibpath_var=LD_LIBRARY_PATH
25724  shlibpath_overrides_runpath=yes
25725  hardcode_into_libs=yes
25726  # ldd complains unless libraries are executable
25727  postinstall_cmds='chmod +x $lib'
25728  ;;
25729
25730sunos4*)
25731  version_type=sunos
25732  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25733  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25734  shlibpath_var=LD_LIBRARY_PATH
25735  shlibpath_overrides_runpath=yes
25736  if test "$with_gnu_ld" = yes; then
25737    need_lib_prefix=no
25738  fi
25739  need_version=yes
25740  ;;
25741
25742sysv4 | sysv4.3*)
25743  version_type=linux
25744  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25745  soname_spec='${libname}${release}${shared_ext}$major'
25746  shlibpath_var=LD_LIBRARY_PATH
25747  case $host_vendor in
25748    sni)
25749      shlibpath_overrides_runpath=no
25750      need_lib_prefix=no
25751      export_dynamic_flag_spec='${wl}-Blargedynsym'
25752      runpath_var=LD_RUN_PATH
25753      ;;
25754    siemens)
25755      need_lib_prefix=no
25756      ;;
25757    motorola)
25758      need_lib_prefix=no
25759      need_version=no
25760      shlibpath_overrides_runpath=no
25761      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25762      ;;
25763  esac
25764  ;;
25765
25766sysv4*MP*)
25767  if test -d /usr/nec ;then
25768    version_type=linux
25769    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25770    soname_spec='$libname${shared_ext}.$major'
25771    shlibpath_var=LD_LIBRARY_PATH
25772  fi
25773  ;;
25774
25775sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25776  version_type=freebsd-elf
25777  need_lib_prefix=no
25778  need_version=no
25779  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25780  soname_spec='${libname}${release}${shared_ext}$major'
25781  shlibpath_var=LD_LIBRARY_PATH
25782  hardcode_into_libs=yes
25783  if test "$with_gnu_ld" = yes; then
25784    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25785    shlibpath_overrides_runpath=no
25786  else
25787    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25788    shlibpath_overrides_runpath=yes
25789    case $host_os in
25790      sco3.2v5*)
25791        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25792	;;
25793    esac
25794  fi
25795  sys_lib_dlsearch_path_spec='/usr/lib'
25796  ;;
25797
25798uts4*)
25799  version_type=linux
25800  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25801  soname_spec='${libname}${release}${shared_ext}$major'
25802  shlibpath_var=LD_LIBRARY_PATH
25803  ;;
25804
25805*)
25806  dynamic_linker=no
25807  ;;
25808esac
25809{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25810echo "${ECHO_T}$dynamic_linker" >&6; }
25811test "$dynamic_linker" = no && can_build_shared=no
25812
25813variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25814if test "$GCC" = yes; then
25815  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25816fi
25817
25818{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25819echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25820hardcode_action_GCJ=
25821if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25822   test -n "$runpath_var_GCJ" || \
25823   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25824
25825  # We can hardcode non-existant directories.
25826  if test "$hardcode_direct_GCJ" != no &&
25827     # If the only mechanism to avoid hardcoding is shlibpath_var, we
25828     # have to relink, otherwise we might link with an installed library
25829     # when we should be linking with a yet-to-be-installed one
25830     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25831     test "$hardcode_minus_L_GCJ" != no; then
25832    # Linking always hardcodes the temporary library directory.
25833    hardcode_action_GCJ=relink
25834  else
25835    # We can link without hardcoding, and we can hardcode nonexisting dirs.
25836    hardcode_action_GCJ=immediate
25837  fi
25838else
25839  # We cannot hardcode anything, or else we can only hardcode existing
25840  # directories.
25841  hardcode_action_GCJ=unsupported
25842fi
25843{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25844echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25845
25846if test "$hardcode_action_GCJ" = relink; then
25847  # Fast installation is not supported
25848  enable_fast_install=no
25849elif test "$shlibpath_overrides_runpath" = yes ||
25850     test "$enable_shared" = no; then
25851  # Fast installation is not necessary
25852  enable_fast_install=needless
25853fi
25854
25855
25856# The else clause should only fire when bootstrapping the
25857# libtool distribution, otherwise you forgot to ship ltmain.sh
25858# with your package, and you will get complaints that there are
25859# no rules to generate ltmain.sh.
25860if test -f "$ltmain"; then
25861  # See if we are running on zsh, and set the options which allow our commands through
25862  # without removal of \ escapes.
25863  if test -n "${ZSH_VERSION+set}" ; then
25864    setopt NO_GLOB_SUBST
25865  fi
25866  # Now quote all the things that may contain metacharacters while being
25867  # careful not to overquote the AC_SUBSTed values.  We take copies of the
25868  # variables and quote the copies for generation of the libtool script.
25869  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25870    SED SHELL STRIP \
25871    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25872    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25873    deplibs_check_method reload_flag reload_cmds need_locks \
25874    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25875    lt_cv_sys_global_symbol_to_c_name_address \
25876    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25877    old_postinstall_cmds old_postuninstall_cmds \
25878    compiler_GCJ \
25879    CC_GCJ \
25880    LD_GCJ \
25881    lt_prog_compiler_wl_GCJ \
25882    lt_prog_compiler_pic_GCJ \
25883    lt_prog_compiler_static_GCJ \
25884    lt_prog_compiler_no_builtin_flag_GCJ \
25885    export_dynamic_flag_spec_GCJ \
25886    thread_safe_flag_spec_GCJ \
25887    whole_archive_flag_spec_GCJ \
25888    enable_shared_with_static_runtimes_GCJ \
25889    old_archive_cmds_GCJ \
25890    old_archive_from_new_cmds_GCJ \
25891    predep_objects_GCJ \
25892    postdep_objects_GCJ \
25893    predeps_GCJ \
25894    postdeps_GCJ \
25895    compiler_lib_search_path_GCJ \
25896    archive_cmds_GCJ \
25897    archive_expsym_cmds_GCJ \
25898    postinstall_cmds_GCJ \
25899    postuninstall_cmds_GCJ \
25900    old_archive_from_expsyms_cmds_GCJ \
25901    allow_undefined_flag_GCJ \
25902    no_undefined_flag_GCJ \
25903    export_symbols_cmds_GCJ \
25904    hardcode_libdir_flag_spec_GCJ \
25905    hardcode_libdir_flag_spec_ld_GCJ \
25906    hardcode_libdir_separator_GCJ \
25907    hardcode_automatic_GCJ \
25908    module_cmds_GCJ \
25909    module_expsym_cmds_GCJ \
25910    lt_cv_prog_compiler_c_o_GCJ \
25911    exclude_expsyms_GCJ \
25912    include_expsyms_GCJ; do
25913
25914    case $var in
25915    old_archive_cmds_GCJ | \
25916    old_archive_from_new_cmds_GCJ | \
25917    archive_cmds_GCJ | \
25918    archive_expsym_cmds_GCJ | \
25919    module_cmds_GCJ | \
25920    module_expsym_cmds_GCJ | \
25921    old_archive_from_expsyms_cmds_GCJ | \
25922    export_symbols_cmds_GCJ | \
25923    extract_expsyms_cmds | reload_cmds | finish_cmds | \
25924    postinstall_cmds | postuninstall_cmds | \
25925    old_postinstall_cmds | old_postuninstall_cmds | \
25926    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25927      # Double-quote double-evaled strings.
25928      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25929      ;;
25930    *)
25931      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25932      ;;
25933    esac
25934  done
25935
25936  case $lt_echo in
25937  *'\$0 --fallback-echo"')
25938    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25939    ;;
25940  esac
25941
25942cfgfile="$ofile"
25943
25944  cat <<__EOF__ >> "$cfgfile"
25945# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25946
25947# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25948
25949# Shell to use when invoking shell scripts.
25950SHELL=$lt_SHELL
25951
25952# Whether or not to build shared libraries.
25953build_libtool_libs=$enable_shared
25954
25955# Whether or not to build static libraries.
25956build_old_libs=$enable_static
25957
25958# Whether or not to add -lc for building shared libraries.
25959build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25960
25961# Whether or not to disallow shared libs when runtime libs are static
25962allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25963
25964# Whether or not to optimize for fast installation.
25965fast_install=$enable_fast_install
25966
25967# The host system.
25968host_alias=$host_alias
25969host=$host
25970host_os=$host_os
25971
25972# The build system.
25973build_alias=$build_alias
25974build=$build
25975build_os=$build_os
25976
25977# An echo program that does not interpret backslashes.
25978echo=$lt_echo
25979
25980# The archiver.
25981AR=$lt_AR
25982AR_FLAGS=$lt_AR_FLAGS
25983
25984# A C compiler.
25985LTCC=$lt_LTCC
25986
25987# LTCC compiler flags.
25988LTCFLAGS=$lt_LTCFLAGS
25989
25990# A language-specific compiler.
25991CC=$lt_compiler_GCJ
25992
25993# Is the compiler the GNU C compiler?
25994with_gcc=$GCC_GCJ
25995
25996# An ERE matcher.
25997EGREP=$lt_EGREP
25998
25999# The linker used to build libraries.
26000LD=$lt_LD_GCJ
26001
26002# Whether we need hard or soft links.
26003LN_S=$lt_LN_S
26004
26005# A BSD-compatible nm program.
26006NM=$lt_NM
26007
26008# A symbol stripping program
26009STRIP=$lt_STRIP
26010
26011# Used to examine libraries when file_magic_cmd begins "file"
26012MAGIC_CMD=$MAGIC_CMD
26013
26014# Used on cygwin: DLL creation program.
26015DLLTOOL="$DLLTOOL"
26016
26017# Used on cygwin: object dumper.
26018OBJDUMP="$OBJDUMP"
26019
26020# Used on cygwin: assembler.
26021AS="$AS"
26022
26023# The name of the directory that contains temporary libtool files.
26024objdir=$objdir
26025
26026# How to create reloadable object files.
26027reload_flag=$lt_reload_flag
26028reload_cmds=$lt_reload_cmds
26029
26030# How to pass a linker flag through the compiler.
26031wl=$lt_lt_prog_compiler_wl_GCJ
26032
26033# Object file suffix (normally "o").
26034objext="$ac_objext"
26035
26036# Old archive suffix (normally "a").
26037libext="$libext"
26038
26039# Shared library suffix (normally ".so").
26040shrext_cmds='$shrext_cmds'
26041
26042# Executable file suffix (normally "").
26043exeext="$exeext"
26044
26045# Additional compiler flags for building library objects.
26046pic_flag=$lt_lt_prog_compiler_pic_GCJ
26047pic_mode=$pic_mode
26048
26049# What is the maximum length of a command?
26050max_cmd_len=$lt_cv_sys_max_cmd_len
26051
26052# Does compiler simultaneously support -c and -o options?
26053compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26054
26055# Must we lock files when doing compilation?
26056need_locks=$lt_need_locks
26057
26058# Do we need the lib prefix for modules?
26059need_lib_prefix=$need_lib_prefix
26060
26061# Do we need a version for libraries?
26062need_version=$need_version
26063
26064# Whether dlopen is supported.
26065dlopen_support=$enable_dlopen
26066
26067# Whether dlopen of programs is supported.
26068dlopen_self=$enable_dlopen_self
26069
26070# Whether dlopen of statically linked programs is supported.
26071dlopen_self_static=$enable_dlopen_self_static
26072
26073# Compiler flag to prevent dynamic linking.
26074link_static_flag=$lt_lt_prog_compiler_static_GCJ
26075
26076# Compiler flag to turn off builtin functions.
26077no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26078
26079# Compiler flag to allow reflexive dlopens.
26080export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26081
26082# Compiler flag to generate shared objects directly from archives.
26083whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26084
26085# Compiler flag to generate thread-safe objects.
26086thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26087
26088# Library versioning type.
26089version_type=$version_type
26090
26091# Format of library name prefix.
26092libname_spec=$lt_libname_spec
26093
26094# List of archive names.  First name is the real one, the rest are links.
26095# The last name is the one that the linker finds with -lNAME.
26096library_names_spec=$lt_library_names_spec
26097
26098# The coded name of the library, if different from the real name.
26099soname_spec=$lt_soname_spec
26100
26101# Commands used to build and install an old-style archive.
26102RANLIB=$lt_RANLIB
26103old_archive_cmds=$lt_old_archive_cmds_GCJ
26104old_postinstall_cmds=$lt_old_postinstall_cmds
26105old_postuninstall_cmds=$lt_old_postuninstall_cmds
26106
26107# Create an old-style archive from a shared archive.
26108old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26109
26110# Create a temporary old-style archive to link instead of a shared archive.
26111old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26112
26113# Commands used to build and install a shared archive.
26114archive_cmds=$lt_archive_cmds_GCJ
26115archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26116postinstall_cmds=$lt_postinstall_cmds
26117postuninstall_cmds=$lt_postuninstall_cmds
26118
26119# Commands used to build a loadable module (assumed same as above if empty)
26120module_cmds=$lt_module_cmds_GCJ
26121module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26122
26123# Commands to strip libraries.
26124old_striplib=$lt_old_striplib
26125striplib=$lt_striplib
26126
26127# Dependencies to place before the objects being linked to create a
26128# shared library.
26129predep_objects=$lt_predep_objects_GCJ
26130
26131# Dependencies to place after the objects being linked to create a
26132# shared library.
26133postdep_objects=$lt_postdep_objects_GCJ
26134
26135# Dependencies to place before the objects being linked to create a
26136# shared library.
26137predeps=$lt_predeps_GCJ
26138
26139# Dependencies to place after the objects being linked to create a
26140# shared library.
26141postdeps=$lt_postdeps_GCJ
26142
26143# The library search path used internally by the compiler when linking
26144# a shared library.
26145compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26146
26147# Method to check whether dependent libraries are shared objects.
26148deplibs_check_method=$lt_deplibs_check_method
26149
26150# Command to use when deplibs_check_method == file_magic.
26151file_magic_cmd=$lt_file_magic_cmd
26152
26153# Flag that allows shared libraries with undefined symbols to be built.
26154allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26155
26156# Flag that forces no undefined symbols.
26157no_undefined_flag=$lt_no_undefined_flag_GCJ
26158
26159# Commands used to finish a libtool library installation in a directory.
26160finish_cmds=$lt_finish_cmds
26161
26162# Same as above, but a single script fragment to be evaled but not shown.
26163finish_eval=$lt_finish_eval
26164
26165# Take the output of nm and produce a listing of raw symbols and C names.
26166global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26167
26168# Transform the output of nm in a proper C declaration
26169global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26170
26171# Transform the output of nm in a C name address pair
26172global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26173
26174# This is the shared library runtime path variable.
26175runpath_var=$runpath_var
26176
26177# This is the shared library path variable.
26178shlibpath_var=$shlibpath_var
26179
26180# Is shlibpath searched before the hard-coded library search path?
26181shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26182
26183# How to hardcode a shared library path into an executable.
26184hardcode_action=$hardcode_action_GCJ
26185
26186# Whether we should hardcode library paths into libraries.
26187hardcode_into_libs=$hardcode_into_libs
26188
26189# Flag to hardcode \$libdir into a binary during linking.
26190# This must work even if \$libdir does not exist.
26191hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26192
26193# If ld is used when linking, flag to hardcode \$libdir into
26194# a binary during linking. This must work even if \$libdir does
26195# not exist.
26196hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26197
26198# Whether we need a single -rpath flag with a separated argument.
26199hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26200
26201# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26202# resulting binary.
26203hardcode_direct=$hardcode_direct_GCJ
26204
26205# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26206# resulting binary.
26207hardcode_minus_L=$hardcode_minus_L_GCJ
26208
26209# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26210# the resulting binary.
26211hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26212
26213# Set to yes if building a shared library automatically hardcodes DIR into the library
26214# and all subsequent libraries and executables linked against it.
26215hardcode_automatic=$hardcode_automatic_GCJ
26216
26217# Variables whose values should be saved in libtool wrapper scripts and
26218# restored at relink time.
26219variables_saved_for_relink="$variables_saved_for_relink"
26220
26221# Whether libtool must link a program against all its dependency libraries.
26222link_all_deplibs=$link_all_deplibs_GCJ
26223
26224# Compile-time system search path for libraries
26225sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26226
26227# Run-time system search path for libraries
26228sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26229
26230# Fix the shell variable \$srcfile for the compiler.
26231fix_srcfile_path="$fix_srcfile_path_GCJ"
26232
26233# Set to yes if exported symbols are required.
26234always_export_symbols=$always_export_symbols_GCJ
26235
26236# The commands to list exported symbols.
26237export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26238
26239# The commands to extract the exported symbol list from a shared archive.
26240extract_expsyms_cmds=$lt_extract_expsyms_cmds
26241
26242# Symbols that should not be listed in the preloaded symbols.
26243exclude_expsyms=$lt_exclude_expsyms_GCJ
26244
26245# Symbols that must always be exported.
26246include_expsyms=$lt_include_expsyms_GCJ
26247
26248# ### END LIBTOOL TAG CONFIG: $tagname
26249
26250__EOF__
26251
26252
26253else
26254  # If there is no Makefile yet, we rely on a make rule to execute
26255  # `config.status --recheck' to rerun these tests and create the
26256  # libtool script then.
26257  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26258  if test -f "$ltmain_in"; then
26259    test -f Makefile && make "$ltmain"
26260  fi
26261fi
26262
26263
26264ac_ext=c
26265ac_cpp='$CPP $CPPFLAGS'
26266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26268ac_compiler_gnu=$ac_cv_c_compiler_gnu
26269
26270CC="$lt_save_CC"
26271
26272	else
26273	  tagname=""
26274	fi
26275	;;
26276
26277      RC)
26278	ac_ext=c
26279ac_cpp='$CPP $CPPFLAGS'
26280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26282ac_compiler_gnu=$ac_cv_c_compiler_gnu
26283
26284
26285# Source file extension for RC test sources.
26286ac_ext=rc
26287
26288# Object file extension for compiled RC test sources.
26289objext=o
26290objext_RC=$objext
26291
26292# Code to be used in simple compile tests
26293lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26294
26295# Code to be used in simple link tests
26296lt_simple_link_test_code="$lt_simple_compile_test_code"
26297
26298# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26299
26300# If no C compiler was specified, use CC.
26301LTCC=${LTCC-"$CC"}
26302
26303# If no C compiler flags were specified, use CFLAGS.
26304LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26305
26306# Allow CC to be a program name with arguments.
26307compiler=$CC
26308
26309
26310# save warnings/boilerplate of simple test code
26311ac_outfile=conftest.$ac_objext
26312printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26313eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26314_lt_compiler_boilerplate=`cat conftest.err`
26315$rm conftest*
26316
26317ac_outfile=conftest.$ac_objext
26318printf "$lt_simple_link_test_code" >conftest.$ac_ext
26319eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26320_lt_linker_boilerplate=`cat conftest.err`
26321$rm conftest*
26322
26323
26324# Allow CC to be a program name with arguments.
26325lt_save_CC="$CC"
26326CC=${RC-"windres"}
26327compiler=$CC
26328compiler_RC=$CC
26329for cc_temp in $compiler""; do
26330  case $cc_temp in
26331    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26332    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26333    \-*) ;;
26334    *) break;;
26335  esac
26336done
26337cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26338
26339lt_cv_prog_compiler_c_o_RC=yes
26340
26341# The else clause should only fire when bootstrapping the
26342# libtool distribution, otherwise you forgot to ship ltmain.sh
26343# with your package, and you will get complaints that there are
26344# no rules to generate ltmain.sh.
26345if test -f "$ltmain"; then
26346  # See if we are running on zsh, and set the options which allow our commands through
26347  # without removal of \ escapes.
26348  if test -n "${ZSH_VERSION+set}" ; then
26349    setopt NO_GLOB_SUBST
26350  fi
26351  # Now quote all the things that may contain metacharacters while being
26352  # careful not to overquote the AC_SUBSTed values.  We take copies of the
26353  # variables and quote the copies for generation of the libtool script.
26354  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26355    SED SHELL STRIP \
26356    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26357    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26358    deplibs_check_method reload_flag reload_cmds need_locks \
26359    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26360    lt_cv_sys_global_symbol_to_c_name_address \
26361    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26362    old_postinstall_cmds old_postuninstall_cmds \
26363    compiler_RC \
26364    CC_RC \
26365    LD_RC \
26366    lt_prog_compiler_wl_RC \
26367    lt_prog_compiler_pic_RC \
26368    lt_prog_compiler_static_RC \
26369    lt_prog_compiler_no_builtin_flag_RC \
26370    export_dynamic_flag_spec_RC \
26371    thread_safe_flag_spec_RC \
26372    whole_archive_flag_spec_RC \
26373    enable_shared_with_static_runtimes_RC \
26374    old_archive_cmds_RC \
26375    old_archive_from_new_cmds_RC \
26376    predep_objects_RC \
26377    postdep_objects_RC \
26378    predeps_RC \
26379    postdeps_RC \
26380    compiler_lib_search_path_RC \
26381    archive_cmds_RC \
26382    archive_expsym_cmds_RC \
26383    postinstall_cmds_RC \
26384    postuninstall_cmds_RC \
26385    old_archive_from_expsyms_cmds_RC \
26386    allow_undefined_flag_RC \
26387    no_undefined_flag_RC \
26388    export_symbols_cmds_RC \
26389    hardcode_libdir_flag_spec_RC \
26390    hardcode_libdir_flag_spec_ld_RC \
26391    hardcode_libdir_separator_RC \
26392    hardcode_automatic_RC \
26393    module_cmds_RC \
26394    module_expsym_cmds_RC \
26395    lt_cv_prog_compiler_c_o_RC \
26396    exclude_expsyms_RC \
26397    include_expsyms_RC; do
26398
26399    case $var in
26400    old_archive_cmds_RC | \
26401    old_archive_from_new_cmds_RC | \
26402    archive_cmds_RC | \
26403    archive_expsym_cmds_RC | \
26404    module_cmds_RC | \
26405    module_expsym_cmds_RC | \
26406    old_archive_from_expsyms_cmds_RC | \
26407    export_symbols_cmds_RC | \
26408    extract_expsyms_cmds | reload_cmds | finish_cmds | \
26409    postinstall_cmds | postuninstall_cmds | \
26410    old_postinstall_cmds | old_postuninstall_cmds | \
26411    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26412      # Double-quote double-evaled strings.
26413      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26414      ;;
26415    *)
26416      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26417      ;;
26418    esac
26419  done
26420
26421  case $lt_echo in
26422  *'\$0 --fallback-echo"')
26423    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26424    ;;
26425  esac
26426
26427cfgfile="$ofile"
26428
26429  cat <<__EOF__ >> "$cfgfile"
26430# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26431
26432# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26433
26434# Shell to use when invoking shell scripts.
26435SHELL=$lt_SHELL
26436
26437# Whether or not to build shared libraries.
26438build_libtool_libs=$enable_shared
26439
26440# Whether or not to build static libraries.
26441build_old_libs=$enable_static
26442
26443# Whether or not to add -lc for building shared libraries.
26444build_libtool_need_lc=$archive_cmds_need_lc_RC
26445
26446# Whether or not to disallow shared libs when runtime libs are static
26447allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26448
26449# Whether or not to optimize for fast installation.
26450fast_install=$enable_fast_install
26451
26452# The host system.
26453host_alias=$host_alias
26454host=$host
26455host_os=$host_os
26456
26457# The build system.
26458build_alias=$build_alias
26459build=$build
26460build_os=$build_os
26461
26462# An echo program that does not interpret backslashes.
26463echo=$lt_echo
26464
26465# The archiver.
26466AR=$lt_AR
26467AR_FLAGS=$lt_AR_FLAGS
26468
26469# A C compiler.
26470LTCC=$lt_LTCC
26471
26472# LTCC compiler flags.
26473LTCFLAGS=$lt_LTCFLAGS
26474
26475# A language-specific compiler.
26476CC=$lt_compiler_RC
26477
26478# Is the compiler the GNU C compiler?
26479with_gcc=$GCC_RC
26480
26481# An ERE matcher.
26482EGREP=$lt_EGREP
26483
26484# The linker used to build libraries.
26485LD=$lt_LD_RC
26486
26487# Whether we need hard or soft links.
26488LN_S=$lt_LN_S
26489
26490# A BSD-compatible nm program.
26491NM=$lt_NM
26492
26493# A symbol stripping program
26494STRIP=$lt_STRIP
26495
26496# Used to examine libraries when file_magic_cmd begins "file"
26497MAGIC_CMD=$MAGIC_CMD
26498
26499# Used on cygwin: DLL creation program.
26500DLLTOOL="$DLLTOOL"
26501
26502# Used on cygwin: object dumper.
26503OBJDUMP="$OBJDUMP"
26504
26505# Used on cygwin: assembler.
26506AS="$AS"
26507
26508# The name of the directory that contains temporary libtool files.
26509objdir=$objdir
26510
26511# How to create reloadable object files.
26512reload_flag=$lt_reload_flag
26513reload_cmds=$lt_reload_cmds
26514
26515# How to pass a linker flag through the compiler.
26516wl=$lt_lt_prog_compiler_wl_RC
26517
26518# Object file suffix (normally "o").
26519objext="$ac_objext"
26520
26521# Old archive suffix (normally "a").
26522libext="$libext"
26523
26524# Shared library suffix (normally ".so").
26525shrext_cmds='$shrext_cmds'
26526
26527# Executable file suffix (normally "").
26528exeext="$exeext"
26529
26530# Additional compiler flags for building library objects.
26531pic_flag=$lt_lt_prog_compiler_pic_RC
26532pic_mode=$pic_mode
26533
26534# What is the maximum length of a command?
26535max_cmd_len=$lt_cv_sys_max_cmd_len
26536
26537# Does compiler simultaneously support -c and -o options?
26538compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26539
26540# Must we lock files when doing compilation?
26541need_locks=$lt_need_locks
26542
26543# Do we need the lib prefix for modules?
26544need_lib_prefix=$need_lib_prefix
26545
26546# Do we need a version for libraries?
26547need_version=$need_version
26548
26549# Whether dlopen is supported.
26550dlopen_support=$enable_dlopen
26551
26552# Whether dlopen of programs is supported.
26553dlopen_self=$enable_dlopen_self
26554
26555# Whether dlopen of statically linked programs is supported.
26556dlopen_self_static=$enable_dlopen_self_static
26557
26558# Compiler flag to prevent dynamic linking.
26559link_static_flag=$lt_lt_prog_compiler_static_RC
26560
26561# Compiler flag to turn off builtin functions.
26562no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26563
26564# Compiler flag to allow reflexive dlopens.
26565export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26566
26567# Compiler flag to generate shared objects directly from archives.
26568whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26569
26570# Compiler flag to generate thread-safe objects.
26571thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26572
26573# Library versioning type.
26574version_type=$version_type
26575
26576# Format of library name prefix.
26577libname_spec=$lt_libname_spec
26578
26579# List of archive names.  First name is the real one, the rest are links.
26580# The last name is the one that the linker finds with -lNAME.
26581library_names_spec=$lt_library_names_spec
26582
26583# The coded name of the library, if different from the real name.
26584soname_spec=$lt_soname_spec
26585
26586# Commands used to build and install an old-style archive.
26587RANLIB=$lt_RANLIB
26588old_archive_cmds=$lt_old_archive_cmds_RC
26589old_postinstall_cmds=$lt_old_postinstall_cmds
26590old_postuninstall_cmds=$lt_old_postuninstall_cmds
26591
26592# Create an old-style archive from a shared archive.
26593old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26594
26595# Create a temporary old-style archive to link instead of a shared archive.
26596old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26597
26598# Commands used to build and install a shared archive.
26599archive_cmds=$lt_archive_cmds_RC
26600archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26601postinstall_cmds=$lt_postinstall_cmds
26602postuninstall_cmds=$lt_postuninstall_cmds
26603
26604# Commands used to build a loadable module (assumed same as above if empty)
26605module_cmds=$lt_module_cmds_RC
26606module_expsym_cmds=$lt_module_expsym_cmds_RC
26607
26608# Commands to strip libraries.
26609old_striplib=$lt_old_striplib
26610striplib=$lt_striplib
26611
26612# Dependencies to place before the objects being linked to create a
26613# shared library.
26614predep_objects=$lt_predep_objects_RC
26615
26616# Dependencies to place after the objects being linked to create a
26617# shared library.
26618postdep_objects=$lt_postdep_objects_RC
26619
26620# Dependencies to place before the objects being linked to create a
26621# shared library.
26622predeps=$lt_predeps_RC
26623
26624# Dependencies to place after the objects being linked to create a
26625# shared library.
26626postdeps=$lt_postdeps_RC
26627
26628# The library search path used internally by the compiler when linking
26629# a shared library.
26630compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26631
26632# Method to check whether dependent libraries are shared objects.
26633deplibs_check_method=$lt_deplibs_check_method
26634
26635# Command to use when deplibs_check_method == file_magic.
26636file_magic_cmd=$lt_file_magic_cmd
26637
26638# Flag that allows shared libraries with undefined symbols to be built.
26639allow_undefined_flag=$lt_allow_undefined_flag_RC
26640
26641# Flag that forces no undefined symbols.
26642no_undefined_flag=$lt_no_undefined_flag_RC
26643
26644# Commands used to finish a libtool library installation in a directory.
26645finish_cmds=$lt_finish_cmds
26646
26647# Same as above, but a single script fragment to be evaled but not shown.
26648finish_eval=$lt_finish_eval
26649
26650# Take the output of nm and produce a listing of raw symbols and C names.
26651global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26652
26653# Transform the output of nm in a proper C declaration
26654global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26655
26656# Transform the output of nm in a C name address pair
26657global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26658
26659# This is the shared library runtime path variable.
26660runpath_var=$runpath_var
26661
26662# This is the shared library path variable.
26663shlibpath_var=$shlibpath_var
26664
26665# Is shlibpath searched before the hard-coded library search path?
26666shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26667
26668# How to hardcode a shared library path into an executable.
26669hardcode_action=$hardcode_action_RC
26670
26671# Whether we should hardcode library paths into libraries.
26672hardcode_into_libs=$hardcode_into_libs
26673
26674# Flag to hardcode \$libdir into a binary during linking.
26675# This must work even if \$libdir does not exist.
26676hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26677
26678# If ld is used when linking, flag to hardcode \$libdir into
26679# a binary during linking. This must work even if \$libdir does
26680# not exist.
26681hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26682
26683# Whether we need a single -rpath flag with a separated argument.
26684hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26685
26686# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26687# resulting binary.
26688hardcode_direct=$hardcode_direct_RC
26689
26690# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26691# resulting binary.
26692hardcode_minus_L=$hardcode_minus_L_RC
26693
26694# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26695# the resulting binary.
26696hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26697
26698# Set to yes if building a shared library automatically hardcodes DIR into the library
26699# and all subsequent libraries and executables linked against it.
26700hardcode_automatic=$hardcode_automatic_RC
26701
26702# Variables whose values should be saved in libtool wrapper scripts and
26703# restored at relink time.
26704variables_saved_for_relink="$variables_saved_for_relink"
26705
26706# Whether libtool must link a program against all its dependency libraries.
26707link_all_deplibs=$link_all_deplibs_RC
26708
26709# Compile-time system search path for libraries
26710sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26711
26712# Run-time system search path for libraries
26713sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26714
26715# Fix the shell variable \$srcfile for the compiler.
26716fix_srcfile_path="$fix_srcfile_path_RC"
26717
26718# Set to yes if exported symbols are required.
26719always_export_symbols=$always_export_symbols_RC
26720
26721# The commands to list exported symbols.
26722export_symbols_cmds=$lt_export_symbols_cmds_RC
26723
26724# The commands to extract the exported symbol list from a shared archive.
26725extract_expsyms_cmds=$lt_extract_expsyms_cmds
26726
26727# Symbols that should not be listed in the preloaded symbols.
26728exclude_expsyms=$lt_exclude_expsyms_RC
26729
26730# Symbols that must always be exported.
26731include_expsyms=$lt_include_expsyms_RC
26732
26733# ### END LIBTOOL TAG CONFIG: $tagname
26734
26735__EOF__
26736
26737
26738else
26739  # If there is no Makefile yet, we rely on a make rule to execute
26740  # `config.status --recheck' to rerun these tests and create the
26741  # libtool script then.
26742  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26743  if test -f "$ltmain_in"; then
26744    test -f Makefile && make "$ltmain"
26745  fi
26746fi
26747
26748
26749ac_ext=c
26750ac_cpp='$CPP $CPPFLAGS'
26751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26753ac_compiler_gnu=$ac_cv_c_compiler_gnu
26754
26755CC="$lt_save_CC"
26756
26757	;;
26758
26759      *)
26760	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26761echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26762   { (exit 1); exit 1; }; }
26763	;;
26764      esac
26765
26766      # Append the new tag name to the list of available tags.
26767      if test -n "$tagname" ; then
26768      available_tags="$available_tags $tagname"
26769    fi
26770    fi
26771  done
26772  IFS="$lt_save_ifs"
26773
26774  # Now substitute the updated list of available tags.
26775  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26776    mv "${ofile}T" "$ofile"
26777    chmod +x "$ofile"
26778  else
26779    rm -f "${ofile}T"
26780    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26781echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26782   { (exit 1); exit 1; }; }
26783  fi
26784fi
26785
26786
26787
26788# This can be used to rebuild libtool when needed
26789LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26790
26791# Always use our own libtool.
26792LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26793
26794# Prevent multiple expansion
26795
26796
26797
26798
26799
26800
26801
26802
26803
26804
26805
26806
26807
26808
26809
26810
26811
26812
26813
26814
26815
26816if test "$lt_cv_dlopen_self" = "yes" ; then
26817
26818cat >>confdefs.h <<\_ACEOF
26819#define CAN_DLOPEN_SELF 1
26820_ACEOF
26821
26822fi
26823
26824if test "$WITH_LLVMGCCDIR" = "default" ; then
26825  LLVMGCC="llvm-gcc${EXEEXT}"
26826  LLVMGXX="llvm-g++${EXEEXT}"
26827  LLVMGCCCOMMAND="$LLVMGCC"
26828  LLVMGXXCOMMAND="$LLVMGXX"
26829
26830  LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26831
26832  LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26833
26834  # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26835set dummy $LLVMGCC; ac_word=$2
26836{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26838if test "${ac_cv_path_LLVMGCC+set}" = set; then
26839  echo $ECHO_N "(cached) $ECHO_C" >&6
26840else
26841  case $LLVMGCC in
26842  [\\/]* | ?:[\\/]*)
26843  ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26844  ;;
26845  *)
26846  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26847for as_dir in $PATH
26848do
26849  IFS=$as_save_IFS
26850  test -z "$as_dir" && as_dir=.
26851  for ac_exec_ext in '' $ac_executable_extensions; do
26852  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26853    ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26854    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26855    break 2
26856  fi
26857done
26858done
26859IFS=$as_save_IFS
26860
26861  ;;
26862esac
26863fi
26864LLVMGCC=$ac_cv_path_LLVMGCC
26865if test -n "$LLVMGCC"; then
26866  { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26867echo "${ECHO_T}$LLVMGCC" >&6; }
26868else
26869  { echo "$as_me:$LINENO: result: no" >&5
26870echo "${ECHO_T}no" >&6; }
26871fi
26872
26873
26874  # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26875set dummy $LLVMGXX; ac_word=$2
26876{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26878if test "${ac_cv_path_LLVMGXX+set}" = set; then
26879  echo $ECHO_N "(cached) $ECHO_C" >&6
26880else
26881  case $LLVMGXX in
26882  [\\/]* | ?:[\\/]*)
26883  ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26884  ;;
26885  *)
26886  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26887for as_dir in $PATH
26888do
26889  IFS=$as_save_IFS
26890  test -z "$as_dir" && as_dir=.
26891  for ac_exec_ext in '' $ac_executable_extensions; do
26892  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26893    ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26894    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26895    break 2
26896  fi
26897done
26898done
26899IFS=$as_save_IFS
26900
26901  ;;
26902esac
26903fi
26904LLVMGXX=$ac_cv_path_LLVMGXX
26905if test -n "$LLVMGXX"; then
26906  { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26907echo "${ECHO_T}$LLVMGXX" >&6; }
26908else
26909  { echo "$as_me:$LINENO: result: no" >&5
26910echo "${ECHO_T}no" >&6; }
26911fi
26912
26913
26914else
26915  if test -z "$LLVMGCC"; then
26916    LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26917    LLVMGCCCOMMAND="$LLVMGCC"
26918  fi
26919  if test -z "$LLVMGXX"; then
26920    LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26921    LLVMGXXCOMMAND="$LLVMGXX"
26922  fi
26923
26924  LLVMGCC=$LLVMGCC
26925
26926  LLVMGXX=$LLVMGXX
26927
26928  LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26929
26930  LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26931
26932fi
26933
26934
26935{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26936echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26937
26938ICC=no
26939IXX=no
26940case $CC in
26941  icc*|icpc*)
26942    ICC=yes
26943    IXX=yes
26944    ;;
26945   *)
26946    ;;
26947esac
26948
26949if test "$GCC" != "yes" && test "$ICC" != "yes"
26950then
26951  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26952echo "$as_me: error: gcc|icc required but not found" >&2;}
26953   { (exit 1); exit 1; }; }
26954fi
26955
26956if test "$GXX" != "yes" && test "$IXX" != "yes"
26957then
26958  { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26959echo "$as_me: error: g++|icc required but not found" >&2;}
26960   { (exit 1); exit 1; }; }
26961fi
26962
26963if test "$GCC" = "yes"
26964then
26965  cat >conftest.$ac_ext <<_ACEOF
26966#if !defined(__GNUC__) || __GNUC__ < 3
26967#error Unsupported GCC version
26968#endif
26969
26970_ACEOF
26971rm -f conftest.$ac_objext
26972if { (ac_try="$ac_compile"
26973case "(($ac_try" in
26974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26975  *) ac_try_echo=$ac_try;;
26976esac
26977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26978  (eval "$ac_compile") 2>conftest.er1
26979  ac_status=$?
26980  grep -v '^ *+' conftest.er1 >conftest.err
26981  rm -f conftest.er1
26982  cat conftest.err >&5
26983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26984  (exit $ac_status); } &&
26985	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26986  { (case "(($ac_try" in
26987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26988  *) ac_try_echo=$ac_try;;
26989esac
26990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26991  (eval "$ac_try") 2>&5
26992  ac_status=$?
26993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26994  (exit $ac_status); }; } &&
26995	 { ac_try='test -s conftest.$ac_objext'
26996  { (case "(($ac_try" in
26997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26998  *) ac_try_echo=$ac_try;;
26999esac
27000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27001  (eval "$ac_try") 2>&5
27002  ac_status=$?
27003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27004  (exit $ac_status); }; }; then
27005  :
27006else
27007  echo "$as_me: failed program was:" >&5
27008sed 's/^/| /' conftest.$ac_ext >&5
27009
27010	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27011echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27012   { (exit 1); exit 1; }; }
27013fi
27014
27015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27016fi
27017
27018if test -z "$llvm_cv_gnu_make_command"
27019then
27020  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27021echo "$as_me: error: GNU Make required but not found" >&2;}
27022   { (exit 1); exit 1; }; }
27023fi
27024
27025{ echo "$as_me:$LINENO: result: ok" >&5
27026echo "${ECHO_T}ok" >&6; }
27027
27028
27029
27030{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27031echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27032if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27033  echo $ECHO_N "(cached) $ECHO_C" >&6
27034else
27035  ac_check_lib_save_LIBS=$LIBS
27036LIBS="-lelf  $LIBS"
27037cat >conftest.$ac_ext <<_ACEOF
27038/* confdefs.h.  */
27039_ACEOF
27040cat confdefs.h >>conftest.$ac_ext
27041cat >>conftest.$ac_ext <<_ACEOF
27042/* end confdefs.h.  */
27043
27044/* Override any GCC internal prototype to avoid an error.
27045   Use char because int might match the return type of a GCC
27046   builtin and then its argument prototype would still apply.  */
27047#ifdef __cplusplus
27048extern "C"
27049#endif
27050char elf_begin ();
27051int
27052main ()
27053{
27054return elf_begin ();
27055  ;
27056  return 0;
27057}
27058_ACEOF
27059rm -f conftest.$ac_objext conftest$ac_exeext
27060if { (ac_try="$ac_link"
27061case "(($ac_try" in
27062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27063  *) ac_try_echo=$ac_try;;
27064esac
27065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27066  (eval "$ac_link") 2>conftest.er1
27067  ac_status=$?
27068  grep -v '^ *+' conftest.er1 >conftest.err
27069  rm -f conftest.er1
27070  cat conftest.err >&5
27071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27072  (exit $ac_status); } &&
27073	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27074  { (case "(($ac_try" in
27075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27076  *) ac_try_echo=$ac_try;;
27077esac
27078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27079  (eval "$ac_try") 2>&5
27080  ac_status=$?
27081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27082  (exit $ac_status); }; } &&
27083	 { ac_try='test -s conftest$ac_exeext'
27084  { (case "(($ac_try" in
27085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27086  *) ac_try_echo=$ac_try;;
27087esac
27088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27089  (eval "$ac_try") 2>&5
27090  ac_status=$?
27091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27092  (exit $ac_status); }; }; then
27093  ac_cv_lib_elf_elf_begin=yes
27094else
27095  echo "$as_me: failed program was:" >&5
27096sed 's/^/| /' conftest.$ac_ext >&5
27097
27098	ac_cv_lib_elf_elf_begin=no
27099fi
27100
27101rm -f core conftest.err conftest.$ac_objext \
27102      conftest$ac_exeext conftest.$ac_ext
27103LIBS=$ac_check_lib_save_LIBS
27104fi
27105{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27106echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27107if test $ac_cv_lib_elf_elf_begin = yes; then
27108  cat >>confdefs.h <<_ACEOF
27109#define HAVE_LIBELF 1
27110_ACEOF
27111
27112  LIBS="-lelf $LIBS"
27113
27114fi
27115
27116
27117{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27118echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27119if test "${ac_cv_lib_m_sin+set}" = set; then
27120  echo $ECHO_N "(cached) $ECHO_C" >&6
27121else
27122  ac_check_lib_save_LIBS=$LIBS
27123LIBS="-lm  $LIBS"
27124cat >conftest.$ac_ext <<_ACEOF
27125/* confdefs.h.  */
27126_ACEOF
27127cat confdefs.h >>conftest.$ac_ext
27128cat >>conftest.$ac_ext <<_ACEOF
27129/* end confdefs.h.  */
27130
27131/* Override any GCC internal prototype to avoid an error.
27132   Use char because int might match the return type of a GCC
27133   builtin and then its argument prototype would still apply.  */
27134#ifdef __cplusplus
27135extern "C"
27136#endif
27137char sin ();
27138int
27139main ()
27140{
27141return sin ();
27142  ;
27143  return 0;
27144}
27145_ACEOF
27146rm -f conftest.$ac_objext conftest$ac_exeext
27147if { (ac_try="$ac_link"
27148case "(($ac_try" in
27149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27150  *) ac_try_echo=$ac_try;;
27151esac
27152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27153  (eval "$ac_link") 2>conftest.er1
27154  ac_status=$?
27155  grep -v '^ *+' conftest.er1 >conftest.err
27156  rm -f conftest.er1
27157  cat conftest.err >&5
27158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27159  (exit $ac_status); } &&
27160	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27161  { (case "(($ac_try" in
27162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27163  *) ac_try_echo=$ac_try;;
27164esac
27165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27166  (eval "$ac_try") 2>&5
27167  ac_status=$?
27168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27169  (exit $ac_status); }; } &&
27170	 { ac_try='test -s conftest$ac_exeext'
27171  { (case "(($ac_try" in
27172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27173  *) ac_try_echo=$ac_try;;
27174esac
27175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27176  (eval "$ac_try") 2>&5
27177  ac_status=$?
27178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179  (exit $ac_status); }; }; then
27180  ac_cv_lib_m_sin=yes
27181else
27182  echo "$as_me: failed program was:" >&5
27183sed 's/^/| /' conftest.$ac_ext >&5
27184
27185	ac_cv_lib_m_sin=no
27186fi
27187
27188rm -f core conftest.err conftest.$ac_objext \
27189      conftest$ac_exeext conftest.$ac_ext
27190LIBS=$ac_check_lib_save_LIBS
27191fi
27192{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27193echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27194if test $ac_cv_lib_m_sin = yes; then
27195  cat >>confdefs.h <<_ACEOF
27196#define HAVE_LIBM 1
27197_ACEOF
27198
27199  LIBS="-lm $LIBS"
27200
27201fi
27202
27203if test "$llvm_cv_os_type" = "MingW" ; then
27204
27205{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27206echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27207if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27208  echo $ECHO_N "(cached) $ECHO_C" >&6
27209else
27210  ac_check_lib_save_LIBS=$LIBS
27211LIBS="-limagehlp  $LIBS"
27212cat >conftest.$ac_ext <<_ACEOF
27213/* confdefs.h.  */
27214_ACEOF
27215cat confdefs.h >>conftest.$ac_ext
27216cat >>conftest.$ac_ext <<_ACEOF
27217/* end confdefs.h.  */
27218
27219
27220int
27221main ()
27222{
27223return main ();
27224  ;
27225  return 0;
27226}
27227_ACEOF
27228rm -f conftest.$ac_objext conftest$ac_exeext
27229if { (ac_try="$ac_link"
27230case "(($ac_try" in
27231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27232  *) ac_try_echo=$ac_try;;
27233esac
27234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27235  (eval "$ac_link") 2>conftest.er1
27236  ac_status=$?
27237  grep -v '^ *+' conftest.er1 >conftest.err
27238  rm -f conftest.er1
27239  cat conftest.err >&5
27240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27241  (exit $ac_status); } &&
27242	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27243  { (case "(($ac_try" in
27244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27245  *) ac_try_echo=$ac_try;;
27246esac
27247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27248  (eval "$ac_try") 2>&5
27249  ac_status=$?
27250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27251  (exit $ac_status); }; } &&
27252	 { ac_try='test -s conftest$ac_exeext'
27253  { (case "(($ac_try" in
27254  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27255  *) ac_try_echo=$ac_try;;
27256esac
27257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27258  (eval "$ac_try") 2>&5
27259  ac_status=$?
27260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261  (exit $ac_status); }; }; then
27262  ac_cv_lib_imagehlp_main=yes
27263else
27264  echo "$as_me: failed program was:" >&5
27265sed 's/^/| /' conftest.$ac_ext >&5
27266
27267	ac_cv_lib_imagehlp_main=no
27268fi
27269
27270rm -f core conftest.err conftest.$ac_objext \
27271      conftest$ac_exeext conftest.$ac_ext
27272LIBS=$ac_check_lib_save_LIBS
27273fi
27274{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27275echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27276if test $ac_cv_lib_imagehlp_main = yes; then
27277  cat >>confdefs.h <<_ACEOF
27278#define HAVE_LIBIMAGEHLP 1
27279_ACEOF
27280
27281  LIBS="-limagehlp $LIBS"
27282
27283fi
27284
27285
27286{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27287echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27288if test "${ac_cv_lib_psapi_main+set}" = set; then
27289  echo $ECHO_N "(cached) $ECHO_C" >&6
27290else
27291  ac_check_lib_save_LIBS=$LIBS
27292LIBS="-lpsapi  $LIBS"
27293cat >conftest.$ac_ext <<_ACEOF
27294/* confdefs.h.  */
27295_ACEOF
27296cat confdefs.h >>conftest.$ac_ext
27297cat >>conftest.$ac_ext <<_ACEOF
27298/* end confdefs.h.  */
27299
27300
27301int
27302main ()
27303{
27304return main ();
27305  ;
27306  return 0;
27307}
27308_ACEOF
27309rm -f conftest.$ac_objext conftest$ac_exeext
27310if { (ac_try="$ac_link"
27311case "(($ac_try" in
27312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27313  *) ac_try_echo=$ac_try;;
27314esac
27315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27316  (eval "$ac_link") 2>conftest.er1
27317  ac_status=$?
27318  grep -v '^ *+' conftest.er1 >conftest.err
27319  rm -f conftest.er1
27320  cat conftest.err >&5
27321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27322  (exit $ac_status); } &&
27323	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27324  { (case "(($ac_try" in
27325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27326  *) ac_try_echo=$ac_try;;
27327esac
27328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27329  (eval "$ac_try") 2>&5
27330  ac_status=$?
27331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332  (exit $ac_status); }; } &&
27333	 { ac_try='test -s conftest$ac_exeext'
27334  { (case "(($ac_try" in
27335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27336  *) ac_try_echo=$ac_try;;
27337esac
27338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27339  (eval "$ac_try") 2>&5
27340  ac_status=$?
27341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27342  (exit $ac_status); }; }; then
27343  ac_cv_lib_psapi_main=yes
27344else
27345  echo "$as_me: failed program was:" >&5
27346sed 's/^/| /' conftest.$ac_ext >&5
27347
27348	ac_cv_lib_psapi_main=no
27349fi
27350
27351rm -f core conftest.err conftest.$ac_objext \
27352      conftest$ac_exeext conftest.$ac_ext
27353LIBS=$ac_check_lib_save_LIBS
27354fi
27355{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27356echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27357if test $ac_cv_lib_psapi_main = yes; then
27358  cat >>confdefs.h <<_ACEOF
27359#define HAVE_LIBPSAPI 1
27360_ACEOF
27361
27362  LIBS="-lpsapi $LIBS"
27363
27364fi
27365
27366fi
27367
27368{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27369echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27370if test "${ac_cv_search_dlopen+set}" = set; then
27371  echo $ECHO_N "(cached) $ECHO_C" >&6
27372else
27373  ac_func_search_save_LIBS=$LIBS
27374cat >conftest.$ac_ext <<_ACEOF
27375/* confdefs.h.  */
27376_ACEOF
27377cat confdefs.h >>conftest.$ac_ext
27378cat >>conftest.$ac_ext <<_ACEOF
27379/* end confdefs.h.  */
27380
27381/* Override any GCC internal prototype to avoid an error.
27382   Use char because int might match the return type of a GCC
27383   builtin and then its argument prototype would still apply.  */
27384#ifdef __cplusplus
27385extern "C"
27386#endif
27387char dlopen ();
27388int
27389main ()
27390{
27391return dlopen ();
27392  ;
27393  return 0;
27394}
27395_ACEOF
27396for ac_lib in '' dl; do
27397  if test -z "$ac_lib"; then
27398    ac_res="none required"
27399  else
27400    ac_res=-l$ac_lib
27401    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27402  fi
27403  rm -f conftest.$ac_objext conftest$ac_exeext
27404if { (ac_try="$ac_link"
27405case "(($ac_try" in
27406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27407  *) ac_try_echo=$ac_try;;
27408esac
27409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27410  (eval "$ac_link") 2>conftest.er1
27411  ac_status=$?
27412  grep -v '^ *+' conftest.er1 >conftest.err
27413  rm -f conftest.er1
27414  cat conftest.err >&5
27415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27416  (exit $ac_status); } &&
27417	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27418  { (case "(($ac_try" in
27419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27420  *) ac_try_echo=$ac_try;;
27421esac
27422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27423  (eval "$ac_try") 2>&5
27424  ac_status=$?
27425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27426  (exit $ac_status); }; } &&
27427	 { ac_try='test -s conftest$ac_exeext'
27428  { (case "(($ac_try" in
27429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27430  *) ac_try_echo=$ac_try;;
27431esac
27432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27433  (eval "$ac_try") 2>&5
27434  ac_status=$?
27435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27436  (exit $ac_status); }; }; then
27437  ac_cv_search_dlopen=$ac_res
27438else
27439  echo "$as_me: failed program was:" >&5
27440sed 's/^/| /' conftest.$ac_ext >&5
27441
27442
27443fi
27444
27445rm -f core conftest.err conftest.$ac_objext \
27446      conftest$ac_exeext
27447  if test "${ac_cv_search_dlopen+set}" = set; then
27448  break
27449fi
27450done
27451if test "${ac_cv_search_dlopen+set}" = set; then
27452  :
27453else
27454  ac_cv_search_dlopen=no
27455fi
27456rm conftest.$ac_ext
27457LIBS=$ac_func_search_save_LIBS
27458fi
27459{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27460echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27461ac_res=$ac_cv_search_dlopen
27462if test "$ac_res" != no; then
27463  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27464
27465cat >>confdefs.h <<\_ACEOF
27466#define HAVE_DLOPEN 1
27467_ACEOF
27468
27469else
27470  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27471echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27472fi
27473
27474
27475{ echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27476echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27477if test "${ac_cv_search_ffi_call+set}" = set; then
27478  echo $ECHO_N "(cached) $ECHO_C" >&6
27479else
27480  ac_func_search_save_LIBS=$LIBS
27481cat >conftest.$ac_ext <<_ACEOF
27482/* confdefs.h.  */
27483_ACEOF
27484cat confdefs.h >>conftest.$ac_ext
27485cat >>conftest.$ac_ext <<_ACEOF
27486/* end confdefs.h.  */
27487
27488/* Override any GCC internal prototype to avoid an error.
27489   Use char because int might match the return type of a GCC
27490   builtin and then its argument prototype would still apply.  */
27491#ifdef __cplusplus
27492extern "C"
27493#endif
27494char ffi_call ();
27495int
27496main ()
27497{
27498return ffi_call ();
27499  ;
27500  return 0;
27501}
27502_ACEOF
27503for ac_lib in '' ffi; do
27504  if test -z "$ac_lib"; then
27505    ac_res="none required"
27506  else
27507    ac_res=-l$ac_lib
27508    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27509  fi
27510  rm -f conftest.$ac_objext conftest$ac_exeext
27511if { (ac_try="$ac_link"
27512case "(($ac_try" in
27513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27514  *) ac_try_echo=$ac_try;;
27515esac
27516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27517  (eval "$ac_link") 2>conftest.er1
27518  ac_status=$?
27519  grep -v '^ *+' conftest.er1 >conftest.err
27520  rm -f conftest.er1
27521  cat conftest.err >&5
27522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523  (exit $ac_status); } &&
27524	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27525  { (case "(($ac_try" in
27526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27527  *) ac_try_echo=$ac_try;;
27528esac
27529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27530  (eval "$ac_try") 2>&5
27531  ac_status=$?
27532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533  (exit $ac_status); }; } &&
27534	 { ac_try='test -s conftest$ac_exeext'
27535  { (case "(($ac_try" in
27536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27537  *) ac_try_echo=$ac_try;;
27538esac
27539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27540  (eval "$ac_try") 2>&5
27541  ac_status=$?
27542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543  (exit $ac_status); }; }; then
27544  ac_cv_search_ffi_call=$ac_res
27545else
27546  echo "$as_me: failed program was:" >&5
27547sed 's/^/| /' conftest.$ac_ext >&5
27548
27549
27550fi
27551
27552rm -f core conftest.err conftest.$ac_objext \
27553      conftest$ac_exeext
27554  if test "${ac_cv_search_ffi_call+set}" = set; then
27555  break
27556fi
27557done
27558if test "${ac_cv_search_ffi_call+set}" = set; then
27559  :
27560else
27561  ac_cv_search_ffi_call=no
27562fi
27563rm conftest.$ac_ext
27564LIBS=$ac_func_search_save_LIBS
27565fi
27566{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27567echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27568ac_res=$ac_cv_search_ffi_call
27569if test "$ac_res" != no; then
27570  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27571
27572cat >>confdefs.h <<\_ACEOF
27573#define HAVE_FFI_CALL 1
27574_ACEOF
27575
27576else
27577  { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27578echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27579fi
27580
27581
27582{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27583echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27584if test "${ac_cv_search_mallinfo+set}" = set; then
27585  echo $ECHO_N "(cached) $ECHO_C" >&6
27586else
27587  ac_func_search_save_LIBS=$LIBS
27588cat >conftest.$ac_ext <<_ACEOF
27589/* confdefs.h.  */
27590_ACEOF
27591cat confdefs.h >>conftest.$ac_ext
27592cat >>conftest.$ac_ext <<_ACEOF
27593/* end confdefs.h.  */
27594
27595/* Override any GCC internal prototype to avoid an error.
27596   Use char because int might match the return type of a GCC
27597   builtin and then its argument prototype would still apply.  */
27598#ifdef __cplusplus
27599extern "C"
27600#endif
27601char mallinfo ();
27602int
27603main ()
27604{
27605return mallinfo ();
27606  ;
27607  return 0;
27608}
27609_ACEOF
27610for ac_lib in '' malloc; do
27611  if test -z "$ac_lib"; then
27612    ac_res="none required"
27613  else
27614    ac_res=-l$ac_lib
27615    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27616  fi
27617  rm -f conftest.$ac_objext conftest$ac_exeext
27618if { (ac_try="$ac_link"
27619case "(($ac_try" in
27620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27621  *) ac_try_echo=$ac_try;;
27622esac
27623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27624  (eval "$ac_link") 2>conftest.er1
27625  ac_status=$?
27626  grep -v '^ *+' conftest.er1 >conftest.err
27627  rm -f conftest.er1
27628  cat conftest.err >&5
27629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27630  (exit $ac_status); } &&
27631	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27632  { (case "(($ac_try" in
27633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27634  *) ac_try_echo=$ac_try;;
27635esac
27636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27637  (eval "$ac_try") 2>&5
27638  ac_status=$?
27639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27640  (exit $ac_status); }; } &&
27641	 { ac_try='test -s conftest$ac_exeext'
27642  { (case "(($ac_try" in
27643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27644  *) ac_try_echo=$ac_try;;
27645esac
27646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27647  (eval "$ac_try") 2>&5
27648  ac_status=$?
27649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650  (exit $ac_status); }; }; then
27651  ac_cv_search_mallinfo=$ac_res
27652else
27653  echo "$as_me: failed program was:" >&5
27654sed 's/^/| /' conftest.$ac_ext >&5
27655
27656
27657fi
27658
27659rm -f core conftest.err conftest.$ac_objext \
27660      conftest$ac_exeext
27661  if test "${ac_cv_search_mallinfo+set}" = set; then
27662  break
27663fi
27664done
27665if test "${ac_cv_search_mallinfo+set}" = set; then
27666  :
27667else
27668  ac_cv_search_mallinfo=no
27669fi
27670rm conftest.$ac_ext
27671LIBS=$ac_func_search_save_LIBS
27672fi
27673{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27674echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27675ac_res=$ac_cv_search_mallinfo
27676if test "$ac_res" != no; then
27677  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27678
27679cat >>confdefs.h <<\_ACEOF
27680#define HAVE_MALLINFO 1
27681_ACEOF
27682
27683fi
27684
27685
27686if test "$ENABLE_THREADS" -eq 1 ; then
27687
27688{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27689echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27690if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27691  echo $ECHO_N "(cached) $ECHO_C" >&6
27692else
27693  ac_check_lib_save_LIBS=$LIBS
27694LIBS="-lpthread  $LIBS"
27695cat >conftest.$ac_ext <<_ACEOF
27696/* confdefs.h.  */
27697_ACEOF
27698cat confdefs.h >>conftest.$ac_ext
27699cat >>conftest.$ac_ext <<_ACEOF
27700/* end confdefs.h.  */
27701
27702/* Override any GCC internal prototype to avoid an error.
27703   Use char because int might match the return type of a GCC
27704   builtin and then its argument prototype would still apply.  */
27705#ifdef __cplusplus
27706extern "C"
27707#endif
27708char pthread_mutex_init ();
27709int
27710main ()
27711{
27712return pthread_mutex_init ();
27713  ;
27714  return 0;
27715}
27716_ACEOF
27717rm -f conftest.$ac_objext conftest$ac_exeext
27718if { (ac_try="$ac_link"
27719case "(($ac_try" in
27720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27721  *) ac_try_echo=$ac_try;;
27722esac
27723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27724  (eval "$ac_link") 2>conftest.er1
27725  ac_status=$?
27726  grep -v '^ *+' conftest.er1 >conftest.err
27727  rm -f conftest.er1
27728  cat conftest.err >&5
27729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730  (exit $ac_status); } &&
27731	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27732  { (case "(($ac_try" in
27733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27734  *) ac_try_echo=$ac_try;;
27735esac
27736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27737  (eval "$ac_try") 2>&5
27738  ac_status=$?
27739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27740  (exit $ac_status); }; } &&
27741	 { ac_try='test -s conftest$ac_exeext'
27742  { (case "(($ac_try" in
27743  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27744  *) ac_try_echo=$ac_try;;
27745esac
27746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27747  (eval "$ac_try") 2>&5
27748  ac_status=$?
27749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27750  (exit $ac_status); }; }; then
27751  ac_cv_lib_pthread_pthread_mutex_init=yes
27752else
27753  echo "$as_me: failed program was:" >&5
27754sed 's/^/| /' conftest.$ac_ext >&5
27755
27756	ac_cv_lib_pthread_pthread_mutex_init=no
27757fi
27758
27759rm -f core conftest.err conftest.$ac_objext \
27760      conftest$ac_exeext conftest.$ac_ext
27761LIBS=$ac_check_lib_save_LIBS
27762fi
27763{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27764echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27765if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27766  cat >>confdefs.h <<_ACEOF
27767#define HAVE_LIBPTHREAD 1
27768_ACEOF
27769
27770  LIBS="-lpthread $LIBS"
27771
27772fi
27773
27774  { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27775echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27776if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27777  echo $ECHO_N "(cached) $ECHO_C" >&6
27778else
27779  ac_func_search_save_LIBS=$LIBS
27780cat >conftest.$ac_ext <<_ACEOF
27781/* confdefs.h.  */
27782_ACEOF
27783cat confdefs.h >>conftest.$ac_ext
27784cat >>conftest.$ac_ext <<_ACEOF
27785/* end confdefs.h.  */
27786
27787/* Override any GCC internal prototype to avoid an error.
27788   Use char because int might match the return type of a GCC
27789   builtin and then its argument prototype would still apply.  */
27790#ifdef __cplusplus
27791extern "C"
27792#endif
27793char pthread_mutex_lock ();
27794int
27795main ()
27796{
27797return pthread_mutex_lock ();
27798  ;
27799  return 0;
27800}
27801_ACEOF
27802for ac_lib in '' pthread; do
27803  if test -z "$ac_lib"; then
27804    ac_res="none required"
27805  else
27806    ac_res=-l$ac_lib
27807    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27808  fi
27809  rm -f conftest.$ac_objext conftest$ac_exeext
27810if { (ac_try="$ac_link"
27811case "(($ac_try" in
27812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27813  *) ac_try_echo=$ac_try;;
27814esac
27815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27816  (eval "$ac_link") 2>conftest.er1
27817  ac_status=$?
27818  grep -v '^ *+' conftest.er1 >conftest.err
27819  rm -f conftest.er1
27820  cat conftest.err >&5
27821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27822  (exit $ac_status); } &&
27823	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27824  { (case "(($ac_try" in
27825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27826  *) ac_try_echo=$ac_try;;
27827esac
27828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27829  (eval "$ac_try") 2>&5
27830  ac_status=$?
27831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27832  (exit $ac_status); }; } &&
27833	 { ac_try='test -s conftest$ac_exeext'
27834  { (case "(($ac_try" in
27835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27836  *) ac_try_echo=$ac_try;;
27837esac
27838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27839  (eval "$ac_try") 2>&5
27840  ac_status=$?
27841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27842  (exit $ac_status); }; }; then
27843  ac_cv_search_pthread_mutex_lock=$ac_res
27844else
27845  echo "$as_me: failed program was:" >&5
27846sed 's/^/| /' conftest.$ac_ext >&5
27847
27848
27849fi
27850
27851rm -f core conftest.err conftest.$ac_objext \
27852      conftest$ac_exeext
27853  if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27854  break
27855fi
27856done
27857if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27858  :
27859else
27860  ac_cv_search_pthread_mutex_lock=no
27861fi
27862rm conftest.$ac_ext
27863LIBS=$ac_func_search_save_LIBS
27864fi
27865{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27866echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27867ac_res=$ac_cv_search_pthread_mutex_lock
27868if test "$ac_res" != no; then
27869  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27870
27871cat >>confdefs.h <<\_ACEOF
27872#define HAVE_PTHREAD_MUTEX_LOCK 1
27873_ACEOF
27874
27875fi
27876
27877fi
27878
27879
27880# Check whether --with-udis86 was given.
27881if test "${with_udis86+set}" = set; then
27882  withval=$with_udis86;
27883      USE_UDIS86=1
27884
27885      case "$withval" in
27886        /usr/lib|yes) ;;
27887        *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27888      esac
27889
27890{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27891echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27892if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27893  echo $ECHO_N "(cached) $ECHO_C" >&6
27894else
27895  ac_check_lib_save_LIBS=$LIBS
27896LIBS="-ludis86  $LIBS"
27897cat >conftest.$ac_ext <<_ACEOF
27898/* confdefs.h.  */
27899_ACEOF
27900cat confdefs.h >>conftest.$ac_ext
27901cat >>conftest.$ac_ext <<_ACEOF
27902/* end confdefs.h.  */
27903
27904/* Override any GCC internal prototype to avoid an error.
27905   Use char because int might match the return type of a GCC
27906   builtin and then its argument prototype would still apply.  */
27907#ifdef __cplusplus
27908extern "C"
27909#endif
27910char ud_init ();
27911int
27912main ()
27913{
27914return ud_init ();
27915  ;
27916  return 0;
27917}
27918_ACEOF
27919rm -f conftest.$ac_objext conftest$ac_exeext
27920if { (ac_try="$ac_link"
27921case "(($ac_try" in
27922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27923  *) ac_try_echo=$ac_try;;
27924esac
27925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27926  (eval "$ac_link") 2>conftest.er1
27927  ac_status=$?
27928  grep -v '^ *+' conftest.er1 >conftest.err
27929  rm -f conftest.er1
27930  cat conftest.err >&5
27931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27932  (exit $ac_status); } &&
27933	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27934  { (case "(($ac_try" in
27935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27936  *) ac_try_echo=$ac_try;;
27937esac
27938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27939  (eval "$ac_try") 2>&5
27940  ac_status=$?
27941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27942  (exit $ac_status); }; } &&
27943	 { ac_try='test -s conftest$ac_exeext'
27944  { (case "(($ac_try" in
27945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27946  *) ac_try_echo=$ac_try;;
27947esac
27948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27949  (eval "$ac_try") 2>&5
27950  ac_status=$?
27951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27952  (exit $ac_status); }; }; then
27953  ac_cv_lib_udis86_ud_init=yes
27954else
27955  echo "$as_me: failed program was:" >&5
27956sed 's/^/| /' conftest.$ac_ext >&5
27957
27958	ac_cv_lib_udis86_ud_init=no
27959fi
27960
27961rm -f core conftest.err conftest.$ac_objext \
27962      conftest$ac_exeext conftest.$ac_ext
27963LIBS=$ac_check_lib_save_LIBS
27964fi
27965{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27966echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27967if test $ac_cv_lib_udis86_ud_init = yes; then
27968  cat >>confdefs.h <<_ACEOF
27969#define HAVE_LIBUDIS86 1
27970_ACEOF
27971
27972  LIBS="-ludis86 $LIBS"
27973
27974else
27975
27976        echo "Error! You need to have libudis86 around."
27977        exit -1
27978
27979fi
27980
27981
27982else
27983  USE_UDIS86=0
27984
27985fi
27986
27987
27988cat >>confdefs.h <<_ACEOF
27989#define USE_UDIS86 $USE_UDIS86
27990_ACEOF
27991
27992
27993
27994
27995
27996
27997
27998
27999ac_header_dirent=no
28000for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28001  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28002{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28003echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28004if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28005  echo $ECHO_N "(cached) $ECHO_C" >&6
28006else
28007  cat >conftest.$ac_ext <<_ACEOF
28008/* confdefs.h.  */
28009_ACEOF
28010cat confdefs.h >>conftest.$ac_ext
28011cat >>conftest.$ac_ext <<_ACEOF
28012/* end confdefs.h.  */
28013#include <sys/types.h>
28014#include <$ac_hdr>
28015
28016int
28017main ()
28018{
28019if ((DIR *) 0)
28020return 0;
28021  ;
28022  return 0;
28023}
28024_ACEOF
28025rm -f conftest.$ac_objext
28026if { (ac_try="$ac_compile"
28027case "(($ac_try" in
28028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28029  *) ac_try_echo=$ac_try;;
28030esac
28031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28032  (eval "$ac_compile") 2>conftest.er1
28033  ac_status=$?
28034  grep -v '^ *+' conftest.er1 >conftest.err
28035  rm -f conftest.er1
28036  cat conftest.err >&5
28037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28038  (exit $ac_status); } &&
28039	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28040  { (case "(($ac_try" in
28041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28042  *) ac_try_echo=$ac_try;;
28043esac
28044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28045  (eval "$ac_try") 2>&5
28046  ac_status=$?
28047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28048  (exit $ac_status); }; } &&
28049	 { ac_try='test -s conftest.$ac_objext'
28050  { (case "(($ac_try" in
28051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28052  *) ac_try_echo=$ac_try;;
28053esac
28054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28055  (eval "$ac_try") 2>&5
28056  ac_status=$?
28057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28058  (exit $ac_status); }; }; then
28059  eval "$as_ac_Header=yes"
28060else
28061  echo "$as_me: failed program was:" >&5
28062sed 's/^/| /' conftest.$ac_ext >&5
28063
28064	eval "$as_ac_Header=no"
28065fi
28066
28067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28068fi
28069ac_res=`eval echo '${'$as_ac_Header'}'`
28070	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28071echo "${ECHO_T}$ac_res" >&6; }
28072if test `eval echo '${'$as_ac_Header'}'` = yes; then
28073  cat >>confdefs.h <<_ACEOF
28074#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28075_ACEOF
28076
28077ac_header_dirent=$ac_hdr; break
28078fi
28079
28080done
28081# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28082if test $ac_header_dirent = dirent.h; then
28083  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28084echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28085if test "${ac_cv_search_opendir+set}" = set; then
28086  echo $ECHO_N "(cached) $ECHO_C" >&6
28087else
28088  ac_func_search_save_LIBS=$LIBS
28089cat >conftest.$ac_ext <<_ACEOF
28090/* confdefs.h.  */
28091_ACEOF
28092cat confdefs.h >>conftest.$ac_ext
28093cat >>conftest.$ac_ext <<_ACEOF
28094/* end confdefs.h.  */
28095
28096/* Override any GCC internal prototype to avoid an error.
28097   Use char because int might match the return type of a GCC
28098   builtin and then its argument prototype would still apply.  */
28099#ifdef __cplusplus
28100extern "C"
28101#endif
28102char opendir ();
28103int
28104main ()
28105{
28106return opendir ();
28107  ;
28108  return 0;
28109}
28110_ACEOF
28111for ac_lib in '' dir; do
28112  if test -z "$ac_lib"; then
28113    ac_res="none required"
28114  else
28115    ac_res=-l$ac_lib
28116    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28117  fi
28118  rm -f conftest.$ac_objext conftest$ac_exeext
28119if { (ac_try="$ac_link"
28120case "(($ac_try" in
28121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28122  *) ac_try_echo=$ac_try;;
28123esac
28124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28125  (eval "$ac_link") 2>conftest.er1
28126  ac_status=$?
28127  grep -v '^ *+' conftest.er1 >conftest.err
28128  rm -f conftest.er1
28129  cat conftest.err >&5
28130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28131  (exit $ac_status); } &&
28132	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28133  { (case "(($ac_try" in
28134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28135  *) ac_try_echo=$ac_try;;
28136esac
28137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28138  (eval "$ac_try") 2>&5
28139  ac_status=$?
28140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28141  (exit $ac_status); }; } &&
28142	 { ac_try='test -s conftest$ac_exeext'
28143  { (case "(($ac_try" in
28144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28145  *) ac_try_echo=$ac_try;;
28146esac
28147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28148  (eval "$ac_try") 2>&5
28149  ac_status=$?
28150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28151  (exit $ac_status); }; }; then
28152  ac_cv_search_opendir=$ac_res
28153else
28154  echo "$as_me: failed program was:" >&5
28155sed 's/^/| /' conftest.$ac_ext >&5
28156
28157
28158fi
28159
28160rm -f core conftest.err conftest.$ac_objext \
28161      conftest$ac_exeext
28162  if test "${ac_cv_search_opendir+set}" = set; then
28163  break
28164fi
28165done
28166if test "${ac_cv_search_opendir+set}" = set; then
28167  :
28168else
28169  ac_cv_search_opendir=no
28170fi
28171rm conftest.$ac_ext
28172LIBS=$ac_func_search_save_LIBS
28173fi
28174{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28175echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28176ac_res=$ac_cv_search_opendir
28177if test "$ac_res" != no; then
28178  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28179
28180fi
28181
28182else
28183  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28184echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28185if test "${ac_cv_search_opendir+set}" = set; then
28186  echo $ECHO_N "(cached) $ECHO_C" >&6
28187else
28188  ac_func_search_save_LIBS=$LIBS
28189cat >conftest.$ac_ext <<_ACEOF
28190/* confdefs.h.  */
28191_ACEOF
28192cat confdefs.h >>conftest.$ac_ext
28193cat >>conftest.$ac_ext <<_ACEOF
28194/* end confdefs.h.  */
28195
28196/* Override any GCC internal prototype to avoid an error.
28197   Use char because int might match the return type of a GCC
28198   builtin and then its argument prototype would still apply.  */
28199#ifdef __cplusplus
28200extern "C"
28201#endif
28202char opendir ();
28203int
28204main ()
28205{
28206return opendir ();
28207  ;
28208  return 0;
28209}
28210_ACEOF
28211for ac_lib in '' x; do
28212  if test -z "$ac_lib"; then
28213    ac_res="none required"
28214  else
28215    ac_res=-l$ac_lib
28216    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28217  fi
28218  rm -f conftest.$ac_objext conftest$ac_exeext
28219if { (ac_try="$ac_link"
28220case "(($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_link") 2>conftest.er1
28226  ac_status=$?
28227  grep -v '^ *+' conftest.er1 >conftest.err
28228  rm -f conftest.er1
28229  cat conftest.err >&5
28230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28231  (exit $ac_status); } &&
28232	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28233  { (case "(($ac_try" in
28234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28235  *) ac_try_echo=$ac_try;;
28236esac
28237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28238  (eval "$ac_try") 2>&5
28239  ac_status=$?
28240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28241  (exit $ac_status); }; } &&
28242	 { ac_try='test -s conftest$ac_exeext'
28243  { (case "(($ac_try" in
28244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28245  *) ac_try_echo=$ac_try;;
28246esac
28247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28248  (eval "$ac_try") 2>&5
28249  ac_status=$?
28250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28251  (exit $ac_status); }; }; then
28252  ac_cv_search_opendir=$ac_res
28253else
28254  echo "$as_me: failed program was:" >&5
28255sed 's/^/| /' conftest.$ac_ext >&5
28256
28257
28258fi
28259
28260rm -f core conftest.err conftest.$ac_objext \
28261      conftest$ac_exeext
28262  if test "${ac_cv_search_opendir+set}" = set; then
28263  break
28264fi
28265done
28266if test "${ac_cv_search_opendir+set}" = set; then
28267  :
28268else
28269  ac_cv_search_opendir=no
28270fi
28271rm conftest.$ac_ext
28272LIBS=$ac_func_search_save_LIBS
28273fi
28274{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28275echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28276ac_res=$ac_cv_search_opendir
28277if test "$ac_res" != no; then
28278  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28279
28280fi
28281
28282fi
28283
28284{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28285echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28286if test "${ac_cv_header_mmap_anon+set}" = set; then
28287  echo $ECHO_N "(cached) $ECHO_C" >&6
28288else
28289   ac_ext=c
28290ac_cpp='$CPP $CPPFLAGS'
28291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28293ac_compiler_gnu=$ac_cv_c_compiler_gnu
28294
28295  cat >conftest.$ac_ext <<_ACEOF
28296/* confdefs.h.  */
28297_ACEOF
28298cat confdefs.h >>conftest.$ac_ext
28299cat >>conftest.$ac_ext <<_ACEOF
28300/* end confdefs.h.  */
28301#include <sys/mman.h>
28302#include <unistd.h>
28303#include <fcntl.h>
28304int
28305main ()
28306{
28307mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28308  ;
28309  return 0;
28310}
28311_ACEOF
28312rm -f conftest.$ac_objext
28313if { (ac_try="$ac_compile"
28314case "(($ac_try" in
28315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28316  *) ac_try_echo=$ac_try;;
28317esac
28318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28319  (eval "$ac_compile") 2>conftest.er1
28320  ac_status=$?
28321  grep -v '^ *+' conftest.er1 >conftest.err
28322  rm -f conftest.er1
28323  cat conftest.err >&5
28324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28325  (exit $ac_status); } &&
28326	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28327  { (case "(($ac_try" in
28328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28329  *) ac_try_echo=$ac_try;;
28330esac
28331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28332  (eval "$ac_try") 2>&5
28333  ac_status=$?
28334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28335  (exit $ac_status); }; } &&
28336	 { ac_try='test -s conftest.$ac_objext'
28337  { (case "(($ac_try" in
28338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28339  *) ac_try_echo=$ac_try;;
28340esac
28341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28342  (eval "$ac_try") 2>&5
28343  ac_status=$?
28344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28345  (exit $ac_status); }; }; then
28346  ac_cv_header_mmap_anon=yes
28347else
28348  echo "$as_me: failed program was:" >&5
28349sed 's/^/| /' conftest.$ac_ext >&5
28350
28351	ac_cv_header_mmap_anon=no
28352fi
28353
28354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28355  ac_ext=c
28356ac_cpp='$CPP $CPPFLAGS'
28357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28359ac_compiler_gnu=$ac_cv_c_compiler_gnu
28360
28361
28362fi
28363{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28364echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28365if test "$ac_cv_header_mmap_anon" = yes; then
28366
28367cat >>confdefs.h <<\_ACEOF
28368#define HAVE_MMAP_ANONYMOUS 1
28369_ACEOF
28370
28371fi
28372
28373{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28374echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28375if test "${ac_cv_header_stat_broken+set}" = set; then
28376  echo $ECHO_N "(cached) $ECHO_C" >&6
28377else
28378  cat >conftest.$ac_ext <<_ACEOF
28379/* confdefs.h.  */
28380_ACEOF
28381cat confdefs.h >>conftest.$ac_ext
28382cat >>conftest.$ac_ext <<_ACEOF
28383/* end confdefs.h.  */
28384#include <sys/types.h>
28385#include <sys/stat.h>
28386
28387#if defined S_ISBLK && defined S_IFDIR
28388# if S_ISBLK (S_IFDIR)
28389You lose.
28390# endif
28391#endif
28392
28393#if defined S_ISBLK && defined S_IFCHR
28394# if S_ISBLK (S_IFCHR)
28395You lose.
28396# endif
28397#endif
28398
28399#if defined S_ISLNK && defined S_IFREG
28400# if S_ISLNK (S_IFREG)
28401You lose.
28402# endif
28403#endif
28404
28405#if defined S_ISSOCK && defined S_IFREG
28406# if S_ISSOCK (S_IFREG)
28407You lose.
28408# endif
28409#endif
28410
28411_ACEOF
28412if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28413  $EGREP "You lose" >/dev/null 2>&1; then
28414  ac_cv_header_stat_broken=yes
28415else
28416  ac_cv_header_stat_broken=no
28417fi
28418rm -f conftest*
28419
28420fi
28421{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28422echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28423if test $ac_cv_header_stat_broken = yes; then
28424
28425cat >>confdefs.h <<\_ACEOF
28426#define STAT_MACROS_BROKEN 1
28427_ACEOF
28428
28429fi
28430
28431{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28432echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28433if test "${ac_cv_header_stdc+set}" = set; then
28434  echo $ECHO_N "(cached) $ECHO_C" >&6
28435else
28436  cat >conftest.$ac_ext <<_ACEOF
28437/* confdefs.h.  */
28438_ACEOF
28439cat confdefs.h >>conftest.$ac_ext
28440cat >>conftest.$ac_ext <<_ACEOF
28441/* end confdefs.h.  */
28442#include <stdlib.h>
28443#include <stdarg.h>
28444#include <string.h>
28445#include <float.h>
28446
28447int
28448main ()
28449{
28450
28451  ;
28452  return 0;
28453}
28454_ACEOF
28455rm -f conftest.$ac_objext
28456if { (ac_try="$ac_compile"
28457case "(($ac_try" in
28458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28459  *) ac_try_echo=$ac_try;;
28460esac
28461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28462  (eval "$ac_compile") 2>conftest.er1
28463  ac_status=$?
28464  grep -v '^ *+' conftest.er1 >conftest.err
28465  rm -f conftest.er1
28466  cat conftest.err >&5
28467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28468  (exit $ac_status); } &&
28469	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28470  { (case "(($ac_try" in
28471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28472  *) ac_try_echo=$ac_try;;
28473esac
28474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28475  (eval "$ac_try") 2>&5
28476  ac_status=$?
28477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28478  (exit $ac_status); }; } &&
28479	 { ac_try='test -s conftest.$ac_objext'
28480  { (case "(($ac_try" in
28481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28482  *) ac_try_echo=$ac_try;;
28483esac
28484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28485  (eval "$ac_try") 2>&5
28486  ac_status=$?
28487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28488  (exit $ac_status); }; }; then
28489  ac_cv_header_stdc=yes
28490else
28491  echo "$as_me: failed program was:" >&5
28492sed 's/^/| /' conftest.$ac_ext >&5
28493
28494	ac_cv_header_stdc=no
28495fi
28496
28497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28498
28499if test $ac_cv_header_stdc = yes; then
28500  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28501  cat >conftest.$ac_ext <<_ACEOF
28502/* confdefs.h.  */
28503_ACEOF
28504cat confdefs.h >>conftest.$ac_ext
28505cat >>conftest.$ac_ext <<_ACEOF
28506/* end confdefs.h.  */
28507#include <string.h>
28508
28509_ACEOF
28510if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28511  $EGREP "memchr" >/dev/null 2>&1; then
28512  :
28513else
28514  ac_cv_header_stdc=no
28515fi
28516rm -f conftest*
28517
28518fi
28519
28520if test $ac_cv_header_stdc = yes; then
28521  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28522  cat >conftest.$ac_ext <<_ACEOF
28523/* confdefs.h.  */
28524_ACEOF
28525cat confdefs.h >>conftest.$ac_ext
28526cat >>conftest.$ac_ext <<_ACEOF
28527/* end confdefs.h.  */
28528#include <stdlib.h>
28529
28530_ACEOF
28531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28532  $EGREP "free" >/dev/null 2>&1; then
28533  :
28534else
28535  ac_cv_header_stdc=no
28536fi
28537rm -f conftest*
28538
28539fi
28540
28541if test $ac_cv_header_stdc = yes; then
28542  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28543  if test "$cross_compiling" = yes; then
28544  :
28545else
28546  cat >conftest.$ac_ext <<_ACEOF
28547/* confdefs.h.  */
28548_ACEOF
28549cat confdefs.h >>conftest.$ac_ext
28550cat >>conftest.$ac_ext <<_ACEOF
28551/* end confdefs.h.  */
28552#include <ctype.h>
28553#include <stdlib.h>
28554#if ((' ' & 0x0FF) == 0x020)
28555# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28556# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28557#else
28558# define ISLOWER(c) \
28559		   (('a' <= (c) && (c) <= 'i') \
28560		     || ('j' <= (c) && (c) <= 'r') \
28561		     || ('s' <= (c) && (c) <= 'z'))
28562# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28563#endif
28564
28565#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28566int
28567main ()
28568{
28569  int i;
28570  for (i = 0; i < 256; i++)
28571    if (XOR (islower (i), ISLOWER (i))
28572	|| toupper (i) != TOUPPER (i))
28573      return 2;
28574  return 0;
28575}
28576_ACEOF
28577rm -f conftest$ac_exeext
28578if { (ac_try="$ac_link"
28579case "(($ac_try" in
28580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28581  *) ac_try_echo=$ac_try;;
28582esac
28583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28584  (eval "$ac_link") 2>&5
28585  ac_status=$?
28586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28587  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28588  { (case "(($ac_try" in
28589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28590  *) ac_try_echo=$ac_try;;
28591esac
28592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28593  (eval "$ac_try") 2>&5
28594  ac_status=$?
28595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596  (exit $ac_status); }; }; then
28597  :
28598else
28599  echo "$as_me: program exited with status $ac_status" >&5
28600echo "$as_me: failed program was:" >&5
28601sed 's/^/| /' conftest.$ac_ext >&5
28602
28603( exit $ac_status )
28604ac_cv_header_stdc=no
28605fi
28606rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28607fi
28608
28609
28610fi
28611fi
28612{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28613echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28614if test $ac_cv_header_stdc = yes; then
28615
28616cat >>confdefs.h <<\_ACEOF
28617#define STDC_HEADERS 1
28618_ACEOF
28619
28620fi
28621
28622{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28623echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28624if test "${ac_cv_header_sys_wait_h+set}" = set; then
28625  echo $ECHO_N "(cached) $ECHO_C" >&6
28626else
28627  cat >conftest.$ac_ext <<_ACEOF
28628/* confdefs.h.  */
28629_ACEOF
28630cat confdefs.h >>conftest.$ac_ext
28631cat >>conftest.$ac_ext <<_ACEOF
28632/* end confdefs.h.  */
28633#include <sys/types.h>
28634#include <sys/wait.h>
28635#ifndef WEXITSTATUS
28636# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28637#endif
28638#ifndef WIFEXITED
28639# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28640#endif
28641
28642int
28643main ()
28644{
28645  int s;
28646  wait (&s);
28647  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28648  ;
28649  return 0;
28650}
28651_ACEOF
28652rm -f conftest.$ac_objext
28653if { (ac_try="$ac_compile"
28654case "(($ac_try" in
28655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28656  *) ac_try_echo=$ac_try;;
28657esac
28658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28659  (eval "$ac_compile") 2>conftest.er1
28660  ac_status=$?
28661  grep -v '^ *+' conftest.er1 >conftest.err
28662  rm -f conftest.er1
28663  cat conftest.err >&5
28664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28665  (exit $ac_status); } &&
28666	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28667  { (case "(($ac_try" in
28668  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28669  *) ac_try_echo=$ac_try;;
28670esac
28671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28672  (eval "$ac_try") 2>&5
28673  ac_status=$?
28674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675  (exit $ac_status); }; } &&
28676	 { ac_try='test -s conftest.$ac_objext'
28677  { (case "(($ac_try" in
28678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28679  *) ac_try_echo=$ac_try;;
28680esac
28681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28682  (eval "$ac_try") 2>&5
28683  ac_status=$?
28684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28685  (exit $ac_status); }; }; then
28686  ac_cv_header_sys_wait_h=yes
28687else
28688  echo "$as_me: failed program was:" >&5
28689sed 's/^/| /' conftest.$ac_ext >&5
28690
28691	ac_cv_header_sys_wait_h=no
28692fi
28693
28694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28695fi
28696{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28697echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28698if test $ac_cv_header_sys_wait_h = yes; then
28699
28700cat >>confdefs.h <<\_ACEOF
28701#define HAVE_SYS_WAIT_H 1
28702_ACEOF
28703
28704fi
28705
28706{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28707echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28708if test "${ac_cv_header_time+set}" = set; then
28709  echo $ECHO_N "(cached) $ECHO_C" >&6
28710else
28711  cat >conftest.$ac_ext <<_ACEOF
28712/* confdefs.h.  */
28713_ACEOF
28714cat confdefs.h >>conftest.$ac_ext
28715cat >>conftest.$ac_ext <<_ACEOF
28716/* end confdefs.h.  */
28717#include <sys/types.h>
28718#include <sys/time.h>
28719#include <time.h>
28720
28721int
28722main ()
28723{
28724if ((struct tm *) 0)
28725return 0;
28726  ;
28727  return 0;
28728}
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_cv_header_time=yes
28765else
28766  echo "$as_me: failed program was:" >&5
28767sed 's/^/| /' conftest.$ac_ext >&5
28768
28769	ac_cv_header_time=no
28770fi
28771
28772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28773fi
28774{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28775echo "${ECHO_T}$ac_cv_header_time" >&6; }
28776if test $ac_cv_header_time = yes; then
28777
28778cat >>confdefs.h <<\_ACEOF
28779#define TIME_WITH_SYS_TIME 1
28780_ACEOF
28781
28782fi
28783
28784
28785
28786
28787
28788
28789
28790
28791for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28792do
28793as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28794if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28795  { echo "$as_me:$LINENO: checking for $ac_header" >&5
28796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28797if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28798  echo $ECHO_N "(cached) $ECHO_C" >&6
28799fi
28800ac_res=`eval echo '${'$as_ac_Header'}'`
28801	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28802echo "${ECHO_T}$ac_res" >&6; }
28803else
28804  # Is the header compilable?
28805{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28806echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28807cat >conftest.$ac_ext <<_ACEOF
28808/* confdefs.h.  */
28809_ACEOF
28810cat confdefs.h >>conftest.$ac_ext
28811cat >>conftest.$ac_ext <<_ACEOF
28812/* end confdefs.h.  */
28813$ac_includes_default
28814#include <$ac_header>
28815_ACEOF
28816rm -f conftest.$ac_objext
28817if { (ac_try="$ac_compile"
28818case "(($ac_try" in
28819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28820  *) ac_try_echo=$ac_try;;
28821esac
28822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28823  (eval "$ac_compile") 2>conftest.er1
28824  ac_status=$?
28825  grep -v '^ *+' conftest.er1 >conftest.err
28826  rm -f conftest.er1
28827  cat conftest.err >&5
28828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829  (exit $ac_status); } &&
28830	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28831  { (case "(($ac_try" in
28832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28833  *) ac_try_echo=$ac_try;;
28834esac
28835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28836  (eval "$ac_try") 2>&5
28837  ac_status=$?
28838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28839  (exit $ac_status); }; } &&
28840	 { ac_try='test -s conftest.$ac_objext'
28841  { (case "(($ac_try" in
28842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28843  *) ac_try_echo=$ac_try;;
28844esac
28845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28846  (eval "$ac_try") 2>&5
28847  ac_status=$?
28848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28849  (exit $ac_status); }; }; then
28850  ac_header_compiler=yes
28851else
28852  echo "$as_me: failed program was:" >&5
28853sed 's/^/| /' conftest.$ac_ext >&5
28854
28855	ac_header_compiler=no
28856fi
28857
28858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28859{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28860echo "${ECHO_T}$ac_header_compiler" >&6; }
28861
28862# Is the header present?
28863{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28864echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28865cat >conftest.$ac_ext <<_ACEOF
28866/* confdefs.h.  */
28867_ACEOF
28868cat confdefs.h >>conftest.$ac_ext
28869cat >>conftest.$ac_ext <<_ACEOF
28870/* end confdefs.h.  */
28871#include <$ac_header>
28872_ACEOF
28873if { (ac_try="$ac_cpp conftest.$ac_ext"
28874case "(($ac_try" in
28875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28876  *) ac_try_echo=$ac_try;;
28877esac
28878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28879  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28880  ac_status=$?
28881  grep -v '^ *+' conftest.er1 >conftest.err
28882  rm -f conftest.er1
28883  cat conftest.err >&5
28884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28885  (exit $ac_status); } >/dev/null; then
28886  if test -s conftest.err; then
28887    ac_cpp_err=$ac_c_preproc_warn_flag
28888    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28889  else
28890    ac_cpp_err=
28891  fi
28892else
28893  ac_cpp_err=yes
28894fi
28895if test -z "$ac_cpp_err"; then
28896  ac_header_preproc=yes
28897else
28898  echo "$as_me: failed program was:" >&5
28899sed 's/^/| /' conftest.$ac_ext >&5
28900
28901  ac_header_preproc=no
28902fi
28903
28904rm -f conftest.err conftest.$ac_ext
28905{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28906echo "${ECHO_T}$ac_header_preproc" >&6; }
28907
28908# So?  What about this header?
28909case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28910  yes:no: )
28911    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28912echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28913    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28914echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28915    ac_header_preproc=yes
28916    ;;
28917  no:yes:* )
28918    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28919echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28920    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28921echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28922    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28923echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28924    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28925echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28926    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28927echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28928    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28929echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28930    ( cat <<\_ASBOX
28931## ----------------------------------- ##
28932## Report this to llvmbugs@cs.uiuc.edu ##
28933## ----------------------------------- ##
28934_ASBOX
28935     ) | sed "s/^/$as_me: WARNING:     /" >&2
28936    ;;
28937esac
28938{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28939echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28940if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28941  echo $ECHO_N "(cached) $ECHO_C" >&6
28942else
28943  eval "$as_ac_Header=\$ac_header_preproc"
28944fi
28945ac_res=`eval echo '${'$as_ac_Header'}'`
28946	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28947echo "${ECHO_T}$ac_res" >&6; }
28948
28949fi
28950if test `eval echo '${'$as_ac_Header'}'` = yes; then
28951  cat >>confdefs.h <<_ACEOF
28952#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28953_ACEOF
28954
28955fi
28956
28957done
28958
28959
28960
28961
28962
28963
28964
28965for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28966do
28967as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28968if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28969  { echo "$as_me:$LINENO: checking for $ac_header" >&5
28970echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28971if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28972  echo $ECHO_N "(cached) $ECHO_C" >&6
28973fi
28974ac_res=`eval echo '${'$as_ac_Header'}'`
28975	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28976echo "${ECHO_T}$ac_res" >&6; }
28977else
28978  # Is the header compilable?
28979{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28980echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28981cat >conftest.$ac_ext <<_ACEOF
28982/* confdefs.h.  */
28983_ACEOF
28984cat confdefs.h >>conftest.$ac_ext
28985cat >>conftest.$ac_ext <<_ACEOF
28986/* end confdefs.h.  */
28987$ac_includes_default
28988#include <$ac_header>
28989_ACEOF
28990rm -f conftest.$ac_objext
28991if { (ac_try="$ac_compile"
28992case "(($ac_try" in
28993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28994  *) ac_try_echo=$ac_try;;
28995esac
28996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28997  (eval "$ac_compile") 2>conftest.er1
28998  ac_status=$?
28999  grep -v '^ *+' conftest.er1 >conftest.err
29000  rm -f conftest.er1
29001  cat conftest.err >&5
29002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29003  (exit $ac_status); } &&
29004	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29005  { (case "(($ac_try" in
29006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29007  *) ac_try_echo=$ac_try;;
29008esac
29009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29010  (eval "$ac_try") 2>&5
29011  ac_status=$?
29012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29013  (exit $ac_status); }; } &&
29014	 { ac_try='test -s conftest.$ac_objext'
29015  { (case "(($ac_try" in
29016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29017  *) ac_try_echo=$ac_try;;
29018esac
29019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29020  (eval "$ac_try") 2>&5
29021  ac_status=$?
29022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29023  (exit $ac_status); }; }; then
29024  ac_header_compiler=yes
29025else
29026  echo "$as_me: failed program was:" >&5
29027sed 's/^/| /' conftest.$ac_ext >&5
29028
29029	ac_header_compiler=no
29030fi
29031
29032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29033{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29034echo "${ECHO_T}$ac_header_compiler" >&6; }
29035
29036# Is the header present?
29037{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29038echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29039cat >conftest.$ac_ext <<_ACEOF
29040/* confdefs.h.  */
29041_ACEOF
29042cat confdefs.h >>conftest.$ac_ext
29043cat >>conftest.$ac_ext <<_ACEOF
29044/* end confdefs.h.  */
29045#include <$ac_header>
29046_ACEOF
29047if { (ac_try="$ac_cpp conftest.$ac_ext"
29048case "(($ac_try" in
29049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29050  *) ac_try_echo=$ac_try;;
29051esac
29052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29053  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29054  ac_status=$?
29055  grep -v '^ *+' conftest.er1 >conftest.err
29056  rm -f conftest.er1
29057  cat conftest.err >&5
29058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29059  (exit $ac_status); } >/dev/null; then
29060  if test -s conftest.err; then
29061    ac_cpp_err=$ac_c_preproc_warn_flag
29062    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29063  else
29064    ac_cpp_err=
29065  fi
29066else
29067  ac_cpp_err=yes
29068fi
29069if test -z "$ac_cpp_err"; then
29070  ac_header_preproc=yes
29071else
29072  echo "$as_me: failed program was:" >&5
29073sed 's/^/| /' conftest.$ac_ext >&5
29074
29075  ac_header_preproc=no
29076fi
29077
29078rm -f conftest.err conftest.$ac_ext
29079{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29080echo "${ECHO_T}$ac_header_preproc" >&6; }
29081
29082# So?  What about this header?
29083case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29084  yes:no: )
29085    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29086echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29087    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29088echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29089    ac_header_preproc=yes
29090    ;;
29091  no:yes:* )
29092    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29093echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29094    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29095echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29096    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29097echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29098    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29099echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29100    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29101echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29102    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29103echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29104    ( cat <<\_ASBOX
29105## ----------------------------------- ##
29106## Report this to llvmbugs@cs.uiuc.edu ##
29107## ----------------------------------- ##
29108_ASBOX
29109     ) | sed "s/^/$as_me: WARNING:     /" >&2
29110    ;;
29111esac
29112{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29113echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29114if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29115  echo $ECHO_N "(cached) $ECHO_C" >&6
29116else
29117  eval "$as_ac_Header=\$ac_header_preproc"
29118fi
29119ac_res=`eval echo '${'$as_ac_Header'}'`
29120	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29121echo "${ECHO_T}$ac_res" >&6; }
29122
29123fi
29124if test `eval echo '${'$as_ac_Header'}'` = yes; then
29125  cat >>confdefs.h <<_ACEOF
29126#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29127_ACEOF
29128
29129fi
29130
29131done
29132
29133
29134for ac_header in windows.h
29135do
29136as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29137if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29138  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29139echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29140if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29141  echo $ECHO_N "(cached) $ECHO_C" >&6
29142fi
29143ac_res=`eval echo '${'$as_ac_Header'}'`
29144	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29145echo "${ECHO_T}$ac_res" >&6; }
29146else
29147  # Is the header compilable?
29148{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29149echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29150cat >conftest.$ac_ext <<_ACEOF
29151/* confdefs.h.  */
29152_ACEOF
29153cat confdefs.h >>conftest.$ac_ext
29154cat >>conftest.$ac_ext <<_ACEOF
29155/* end confdefs.h.  */
29156$ac_includes_default
29157#include <$ac_header>
29158_ACEOF
29159rm -f conftest.$ac_objext
29160if { (ac_try="$ac_compile"
29161case "(($ac_try" in
29162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29163  *) ac_try_echo=$ac_try;;
29164esac
29165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29166  (eval "$ac_compile") 2>conftest.er1
29167  ac_status=$?
29168  grep -v '^ *+' conftest.er1 >conftest.err
29169  rm -f conftest.er1
29170  cat conftest.err >&5
29171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29172  (exit $ac_status); } &&
29173	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29174  { (case "(($ac_try" in
29175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29176  *) ac_try_echo=$ac_try;;
29177esac
29178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29179  (eval "$ac_try") 2>&5
29180  ac_status=$?
29181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29182  (exit $ac_status); }; } &&
29183	 { ac_try='test -s conftest.$ac_objext'
29184  { (case "(($ac_try" in
29185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29186  *) ac_try_echo=$ac_try;;
29187esac
29188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29189  (eval "$ac_try") 2>&5
29190  ac_status=$?
29191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29192  (exit $ac_status); }; }; then
29193  ac_header_compiler=yes
29194else
29195  echo "$as_me: failed program was:" >&5
29196sed 's/^/| /' conftest.$ac_ext >&5
29197
29198	ac_header_compiler=no
29199fi
29200
29201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29202{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29203echo "${ECHO_T}$ac_header_compiler" >&6; }
29204
29205# Is the header present?
29206{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29207echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29208cat >conftest.$ac_ext <<_ACEOF
29209/* confdefs.h.  */
29210_ACEOF
29211cat confdefs.h >>conftest.$ac_ext
29212cat >>conftest.$ac_ext <<_ACEOF
29213/* end confdefs.h.  */
29214#include <$ac_header>
29215_ACEOF
29216if { (ac_try="$ac_cpp conftest.$ac_ext"
29217case "(($ac_try" in
29218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29219  *) ac_try_echo=$ac_try;;
29220esac
29221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29222  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29223  ac_status=$?
29224  grep -v '^ *+' conftest.er1 >conftest.err
29225  rm -f conftest.er1
29226  cat conftest.err >&5
29227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228  (exit $ac_status); } >/dev/null; then
29229  if test -s conftest.err; then
29230    ac_cpp_err=$ac_c_preproc_warn_flag
29231    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29232  else
29233    ac_cpp_err=
29234  fi
29235else
29236  ac_cpp_err=yes
29237fi
29238if test -z "$ac_cpp_err"; then
29239  ac_header_preproc=yes
29240else
29241  echo "$as_me: failed program was:" >&5
29242sed 's/^/| /' conftest.$ac_ext >&5
29243
29244  ac_header_preproc=no
29245fi
29246
29247rm -f conftest.err conftest.$ac_ext
29248{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29249echo "${ECHO_T}$ac_header_preproc" >&6; }
29250
29251# So?  What about this header?
29252case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29253  yes:no: )
29254    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29255echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29256    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29257echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29258    ac_header_preproc=yes
29259    ;;
29260  no:yes:* )
29261    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29262echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29263    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29264echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29265    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29266echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29267    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29268echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29269    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29270echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29271    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29272echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29273    ( cat <<\_ASBOX
29274## ----------------------------------- ##
29275## Report this to llvmbugs@cs.uiuc.edu ##
29276## ----------------------------------- ##
29277_ASBOX
29278     ) | sed "s/^/$as_me: WARNING:     /" >&2
29279    ;;
29280esac
29281{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29282echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29283if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29284  echo $ECHO_N "(cached) $ECHO_C" >&6
29285else
29286  eval "$as_ac_Header=\$ac_header_preproc"
29287fi
29288ac_res=`eval echo '${'$as_ac_Header'}'`
29289	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29290echo "${ECHO_T}$ac_res" >&6; }
29291
29292fi
29293if test `eval echo '${'$as_ac_Header'}'` = yes; then
29294  cat >>confdefs.h <<_ACEOF
29295#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29296_ACEOF
29297
29298fi
29299
29300done
29301
29302
29303
29304
29305
29306for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29307do
29308as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29309if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29310  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29311echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29312if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29313  echo $ECHO_N "(cached) $ECHO_C" >&6
29314fi
29315ac_res=`eval echo '${'$as_ac_Header'}'`
29316	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29317echo "${ECHO_T}$ac_res" >&6; }
29318else
29319  # Is the header compilable?
29320{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29321echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29322cat >conftest.$ac_ext <<_ACEOF
29323/* confdefs.h.  */
29324_ACEOF
29325cat confdefs.h >>conftest.$ac_ext
29326cat >>conftest.$ac_ext <<_ACEOF
29327/* end confdefs.h.  */
29328$ac_includes_default
29329#include <$ac_header>
29330_ACEOF
29331rm -f conftest.$ac_objext
29332if { (ac_try="$ac_compile"
29333case "(($ac_try" in
29334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29335  *) ac_try_echo=$ac_try;;
29336esac
29337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29338  (eval "$ac_compile") 2>conftest.er1
29339  ac_status=$?
29340  grep -v '^ *+' conftest.er1 >conftest.err
29341  rm -f conftest.er1
29342  cat conftest.err >&5
29343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29344  (exit $ac_status); } &&
29345	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29346  { (case "(($ac_try" in
29347  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29348  *) ac_try_echo=$ac_try;;
29349esac
29350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29351  (eval "$ac_try") 2>&5
29352  ac_status=$?
29353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29354  (exit $ac_status); }; } &&
29355	 { ac_try='test -s conftest.$ac_objext'
29356  { (case "(($ac_try" in
29357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29358  *) ac_try_echo=$ac_try;;
29359esac
29360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29361  (eval "$ac_try") 2>&5
29362  ac_status=$?
29363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29364  (exit $ac_status); }; }; then
29365  ac_header_compiler=yes
29366else
29367  echo "$as_me: failed program was:" >&5
29368sed 's/^/| /' conftest.$ac_ext >&5
29369
29370	ac_header_compiler=no
29371fi
29372
29373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29374{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29375echo "${ECHO_T}$ac_header_compiler" >&6; }
29376
29377# Is the header present?
29378{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29379echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29380cat >conftest.$ac_ext <<_ACEOF
29381/* confdefs.h.  */
29382_ACEOF
29383cat confdefs.h >>conftest.$ac_ext
29384cat >>conftest.$ac_ext <<_ACEOF
29385/* end confdefs.h.  */
29386#include <$ac_header>
29387_ACEOF
29388if { (ac_try="$ac_cpp conftest.$ac_ext"
29389case "(($ac_try" in
29390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29391  *) ac_try_echo=$ac_try;;
29392esac
29393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29394  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29395  ac_status=$?
29396  grep -v '^ *+' conftest.er1 >conftest.err
29397  rm -f conftest.er1
29398  cat conftest.err >&5
29399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29400  (exit $ac_status); } >/dev/null; then
29401  if test -s conftest.err; then
29402    ac_cpp_err=$ac_c_preproc_warn_flag
29403    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29404  else
29405    ac_cpp_err=
29406  fi
29407else
29408  ac_cpp_err=yes
29409fi
29410if test -z "$ac_cpp_err"; then
29411  ac_header_preproc=yes
29412else
29413  echo "$as_me: failed program was:" >&5
29414sed 's/^/| /' conftest.$ac_ext >&5
29415
29416  ac_header_preproc=no
29417fi
29418
29419rm -f conftest.err conftest.$ac_ext
29420{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29421echo "${ECHO_T}$ac_header_preproc" >&6; }
29422
29423# So?  What about this header?
29424case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29425  yes:no: )
29426    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29427echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29428    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29429echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29430    ac_header_preproc=yes
29431    ;;
29432  no:yes:* )
29433    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29434echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29435    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29436echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29437    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29438echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29439    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29440echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29441    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29442echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29443    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29444echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29445    ( cat <<\_ASBOX
29446## ----------------------------------- ##
29447## Report this to llvmbugs@cs.uiuc.edu ##
29448## ----------------------------------- ##
29449_ASBOX
29450     ) | sed "s/^/$as_me: WARNING:     /" >&2
29451    ;;
29452esac
29453{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29454echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29455if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29456  echo $ECHO_N "(cached) $ECHO_C" >&6
29457else
29458  eval "$as_ac_Header=\$ac_header_preproc"
29459fi
29460ac_res=`eval echo '${'$as_ac_Header'}'`
29461	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29462echo "${ECHO_T}$ac_res" >&6; }
29463
29464fi
29465if test `eval echo '${'$as_ac_Header'}'` = yes; then
29466  cat >>confdefs.h <<_ACEOF
29467#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29468_ACEOF
29469
29470fi
29471
29472done
29473
29474
29475
29476
29477for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29478do
29479as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29480if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29481  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29482echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29483if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29484  echo $ECHO_N "(cached) $ECHO_C" >&6
29485fi
29486ac_res=`eval echo '${'$as_ac_Header'}'`
29487	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29488echo "${ECHO_T}$ac_res" >&6; }
29489else
29490  # Is the header compilable?
29491{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29492echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29493cat >conftest.$ac_ext <<_ACEOF
29494/* confdefs.h.  */
29495_ACEOF
29496cat confdefs.h >>conftest.$ac_ext
29497cat >>conftest.$ac_ext <<_ACEOF
29498/* end confdefs.h.  */
29499$ac_includes_default
29500#include <$ac_header>
29501_ACEOF
29502rm -f conftest.$ac_objext
29503if { (ac_try="$ac_compile"
29504case "(($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_compile") 2>conftest.er1
29510  ac_status=$?
29511  grep -v '^ *+' conftest.er1 >conftest.err
29512  rm -f conftest.er1
29513  cat conftest.err >&5
29514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29515  (exit $ac_status); } &&
29516	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29517  { (case "(($ac_try" in
29518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29519  *) ac_try_echo=$ac_try;;
29520esac
29521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29522  (eval "$ac_try") 2>&5
29523  ac_status=$?
29524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29525  (exit $ac_status); }; } &&
29526	 { ac_try='test -s conftest.$ac_objext'
29527  { (case "(($ac_try" in
29528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29529  *) ac_try_echo=$ac_try;;
29530esac
29531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29532  (eval "$ac_try") 2>&5
29533  ac_status=$?
29534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535  (exit $ac_status); }; }; then
29536  ac_header_compiler=yes
29537else
29538  echo "$as_me: failed program was:" >&5
29539sed 's/^/| /' conftest.$ac_ext >&5
29540
29541	ac_header_compiler=no
29542fi
29543
29544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29545{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29546echo "${ECHO_T}$ac_header_compiler" >&6; }
29547
29548# Is the header present?
29549{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29550echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29551cat >conftest.$ac_ext <<_ACEOF
29552/* confdefs.h.  */
29553_ACEOF
29554cat confdefs.h >>conftest.$ac_ext
29555cat >>conftest.$ac_ext <<_ACEOF
29556/* end confdefs.h.  */
29557#include <$ac_header>
29558_ACEOF
29559if { (ac_try="$ac_cpp conftest.$ac_ext"
29560case "(($ac_try" in
29561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29562  *) ac_try_echo=$ac_try;;
29563esac
29564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29565  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29566  ac_status=$?
29567  grep -v '^ *+' conftest.er1 >conftest.err
29568  rm -f conftest.er1
29569  cat conftest.err >&5
29570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29571  (exit $ac_status); } >/dev/null; then
29572  if test -s conftest.err; then
29573    ac_cpp_err=$ac_c_preproc_warn_flag
29574    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29575  else
29576    ac_cpp_err=
29577  fi
29578else
29579  ac_cpp_err=yes
29580fi
29581if test -z "$ac_cpp_err"; then
29582  ac_header_preproc=yes
29583else
29584  echo "$as_me: failed program was:" >&5
29585sed 's/^/| /' conftest.$ac_ext >&5
29586
29587  ac_header_preproc=no
29588fi
29589
29590rm -f conftest.err conftest.$ac_ext
29591{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29592echo "${ECHO_T}$ac_header_preproc" >&6; }
29593
29594# So?  What about this header?
29595case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29596  yes:no: )
29597    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29598echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29599    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29600echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29601    ac_header_preproc=yes
29602    ;;
29603  no:yes:* )
29604    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29605echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29606    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29607echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29608    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29609echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29610    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29611echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29612    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29613echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29614    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29615echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29616    ( cat <<\_ASBOX
29617## ----------------------------------- ##
29618## Report this to llvmbugs@cs.uiuc.edu ##
29619## ----------------------------------- ##
29620_ASBOX
29621     ) | sed "s/^/$as_me: WARNING:     /" >&2
29622    ;;
29623esac
29624{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29625echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29626if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29627  echo $ECHO_N "(cached) $ECHO_C" >&6
29628else
29629  eval "$as_ac_Header=\$ac_header_preproc"
29630fi
29631ac_res=`eval echo '${'$as_ac_Header'}'`
29632	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29633echo "${ECHO_T}$ac_res" >&6; }
29634
29635fi
29636if test `eval echo '${'$as_ac_Header'}'` = yes; then
29637  cat >>confdefs.h <<_ACEOF
29638#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29639_ACEOF
29640
29641fi
29642
29643done
29644
29645if test "$ENABLE_THREADS" -eq 1 ; then
29646
29647for ac_header in pthread.h
29648do
29649as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29650if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29651  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29652echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29653if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29654  echo $ECHO_N "(cached) $ECHO_C" >&6
29655fi
29656ac_res=`eval echo '${'$as_ac_Header'}'`
29657	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29658echo "${ECHO_T}$ac_res" >&6; }
29659else
29660  # Is the header compilable?
29661{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29662echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29663cat >conftest.$ac_ext <<_ACEOF
29664/* confdefs.h.  */
29665_ACEOF
29666cat confdefs.h >>conftest.$ac_ext
29667cat >>conftest.$ac_ext <<_ACEOF
29668/* end confdefs.h.  */
29669$ac_includes_default
29670#include <$ac_header>
29671_ACEOF
29672rm -f conftest.$ac_objext
29673if { (ac_try="$ac_compile"
29674case "(($ac_try" in
29675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29676  *) ac_try_echo=$ac_try;;
29677esac
29678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29679  (eval "$ac_compile") 2>conftest.er1
29680  ac_status=$?
29681  grep -v '^ *+' conftest.er1 >conftest.err
29682  rm -f conftest.er1
29683  cat conftest.err >&5
29684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685  (exit $ac_status); } &&
29686	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29687  { (case "(($ac_try" in
29688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29689  *) ac_try_echo=$ac_try;;
29690esac
29691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29692  (eval "$ac_try") 2>&5
29693  ac_status=$?
29694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29695  (exit $ac_status); }; } &&
29696	 { ac_try='test -s conftest.$ac_objext'
29697  { (case "(($ac_try" in
29698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29699  *) ac_try_echo=$ac_try;;
29700esac
29701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29702  (eval "$ac_try") 2>&5
29703  ac_status=$?
29704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29705  (exit $ac_status); }; }; then
29706  ac_header_compiler=yes
29707else
29708  echo "$as_me: failed program was:" >&5
29709sed 's/^/| /' conftest.$ac_ext >&5
29710
29711	ac_header_compiler=no
29712fi
29713
29714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29715{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29716echo "${ECHO_T}$ac_header_compiler" >&6; }
29717
29718# Is the header present?
29719{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29720echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29721cat >conftest.$ac_ext <<_ACEOF
29722/* confdefs.h.  */
29723_ACEOF
29724cat confdefs.h >>conftest.$ac_ext
29725cat >>conftest.$ac_ext <<_ACEOF
29726/* end confdefs.h.  */
29727#include <$ac_header>
29728_ACEOF
29729if { (ac_try="$ac_cpp conftest.$ac_ext"
29730case "(($ac_try" in
29731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29732  *) ac_try_echo=$ac_try;;
29733esac
29734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29735  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29736  ac_status=$?
29737  grep -v '^ *+' conftest.er1 >conftest.err
29738  rm -f conftest.er1
29739  cat conftest.err >&5
29740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741  (exit $ac_status); } >/dev/null; then
29742  if test -s conftest.err; then
29743    ac_cpp_err=$ac_c_preproc_warn_flag
29744    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29745  else
29746    ac_cpp_err=
29747  fi
29748else
29749  ac_cpp_err=yes
29750fi
29751if test -z "$ac_cpp_err"; then
29752  ac_header_preproc=yes
29753else
29754  echo "$as_me: failed program was:" >&5
29755sed 's/^/| /' conftest.$ac_ext >&5
29756
29757  ac_header_preproc=no
29758fi
29759
29760rm -f conftest.err conftest.$ac_ext
29761{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29762echo "${ECHO_T}$ac_header_preproc" >&6; }
29763
29764# So?  What about this header?
29765case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29766  yes:no: )
29767    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29768echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29769    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29770echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29771    ac_header_preproc=yes
29772    ;;
29773  no:yes:* )
29774    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29775echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29776    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29777echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29778    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29779echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29780    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29781echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29782    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29783echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29784    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29785echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29786    ( cat <<\_ASBOX
29787## ----------------------------------- ##
29788## Report this to llvmbugs@cs.uiuc.edu ##
29789## ----------------------------------- ##
29790_ASBOX
29791     ) | sed "s/^/$as_me: WARNING:     /" >&2
29792    ;;
29793esac
29794{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29796if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29797  echo $ECHO_N "(cached) $ECHO_C" >&6
29798else
29799  eval "$as_ac_Header=\$ac_header_preproc"
29800fi
29801ac_res=`eval echo '${'$as_ac_Header'}'`
29802	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29803echo "${ECHO_T}$ac_res" >&6; }
29804
29805fi
29806if test `eval echo '${'$as_ac_Header'}'` = yes; then
29807  cat >>confdefs.h <<_ACEOF
29808#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29809_ACEOF
29810 HAVE_PTHREAD=1
29811
29812else
29813  HAVE_PTHREAD=0
29814
29815fi
29816
29817done
29818
29819else
29820  HAVE_PTHREAD=0
29821
29822fi
29823
29824
29825
29826for ac_header in ffi.h ffi/ffi.h
29827do
29828as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29829if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29830  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29831echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29832if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29833  echo $ECHO_N "(cached) $ECHO_C" >&6
29834fi
29835ac_res=`eval echo '${'$as_ac_Header'}'`
29836	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29837echo "${ECHO_T}$ac_res" >&6; }
29838else
29839  # Is the header compilable?
29840{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29841echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29842cat >conftest.$ac_ext <<_ACEOF
29843/* confdefs.h.  */
29844_ACEOF
29845cat confdefs.h >>conftest.$ac_ext
29846cat >>conftest.$ac_ext <<_ACEOF
29847/* end confdefs.h.  */
29848$ac_includes_default
29849#include <$ac_header>
29850_ACEOF
29851rm -f conftest.$ac_objext
29852if { (ac_try="$ac_compile"
29853case "(($ac_try" in
29854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29855  *) ac_try_echo=$ac_try;;
29856esac
29857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29858  (eval "$ac_compile") 2>conftest.er1
29859  ac_status=$?
29860  grep -v '^ *+' conftest.er1 >conftest.err
29861  rm -f conftest.er1
29862  cat conftest.err >&5
29863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29864  (exit $ac_status); } &&
29865	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29866  { (case "(($ac_try" in
29867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29868  *) ac_try_echo=$ac_try;;
29869esac
29870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29871  (eval "$ac_try") 2>&5
29872  ac_status=$?
29873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29874  (exit $ac_status); }; } &&
29875	 { ac_try='test -s conftest.$ac_objext'
29876  { (case "(($ac_try" in
29877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29878  *) ac_try_echo=$ac_try;;
29879esac
29880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29881  (eval "$ac_try") 2>&5
29882  ac_status=$?
29883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884  (exit $ac_status); }; }; then
29885  ac_header_compiler=yes
29886else
29887  echo "$as_me: failed program was:" >&5
29888sed 's/^/| /' conftest.$ac_ext >&5
29889
29890	ac_header_compiler=no
29891fi
29892
29893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29894{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29895echo "${ECHO_T}$ac_header_compiler" >&6; }
29896
29897# Is the header present?
29898{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29899echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29900cat >conftest.$ac_ext <<_ACEOF
29901/* confdefs.h.  */
29902_ACEOF
29903cat confdefs.h >>conftest.$ac_ext
29904cat >>conftest.$ac_ext <<_ACEOF
29905/* end confdefs.h.  */
29906#include <$ac_header>
29907_ACEOF
29908if { (ac_try="$ac_cpp conftest.$ac_ext"
29909case "(($ac_try" in
29910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29911  *) ac_try_echo=$ac_try;;
29912esac
29913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29914  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29915  ac_status=$?
29916  grep -v '^ *+' conftest.er1 >conftest.err
29917  rm -f conftest.er1
29918  cat conftest.err >&5
29919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29920  (exit $ac_status); } >/dev/null; then
29921  if test -s conftest.err; then
29922    ac_cpp_err=$ac_c_preproc_warn_flag
29923    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29924  else
29925    ac_cpp_err=
29926  fi
29927else
29928  ac_cpp_err=yes
29929fi
29930if test -z "$ac_cpp_err"; then
29931  ac_header_preproc=yes
29932else
29933  echo "$as_me: failed program was:" >&5
29934sed 's/^/| /' conftest.$ac_ext >&5
29935
29936  ac_header_preproc=no
29937fi
29938
29939rm -f conftest.err conftest.$ac_ext
29940{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29941echo "${ECHO_T}$ac_header_preproc" >&6; }
29942
29943# So?  What about this header?
29944case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29945  yes:no: )
29946    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29947echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29948    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29949echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29950    ac_header_preproc=yes
29951    ;;
29952  no:yes:* )
29953    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29954echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29955    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29956echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29957    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29958echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29959    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29960echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29961    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29962echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29963    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29964echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29965    ( cat <<\_ASBOX
29966## ----------------------------------- ##
29967## Report this to llvmbugs@cs.uiuc.edu ##
29968## ----------------------------------- ##
29969_ASBOX
29970     ) | sed "s/^/$as_me: WARNING:     /" >&2
29971    ;;
29972esac
29973{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29974echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29975if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29976  echo $ECHO_N "(cached) $ECHO_C" >&6
29977else
29978  eval "$as_ac_Header=\$ac_header_preproc"
29979fi
29980ac_res=`eval echo '${'$as_ac_Header'}'`
29981	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29982echo "${ECHO_T}$ac_res" >&6; }
29983
29984fi
29985if test `eval echo '${'$as_ac_Header'}'` = yes; then
29986  cat >>confdefs.h <<_ACEOF
29987#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29988_ACEOF
29989
29990fi
29991
29992done
29993
29994
29995
29996
29997  { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29998echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29999if test "${ac_cv_huge_val_sanity+set}" = set; then
30000  echo $ECHO_N "(cached) $ECHO_C" >&6
30001else
30002
30003    ac_ext=cpp
30004ac_cpp='$CXXCPP $CPPFLAGS'
30005ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30006ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30007ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30008
30009    CXXFLAGS=-pedantic
30010    if test "$cross_compiling" = yes; then
30011  ac_cv_huge_val_sanity=yes
30012else
30013  cat >conftest.$ac_ext <<_ACEOF
30014/* confdefs.h.  */
30015_ACEOF
30016cat confdefs.h >>conftest.$ac_ext
30017cat >>conftest.$ac_ext <<_ACEOF
30018/* end confdefs.h.  */
30019#include <math.h>
30020int
30021main ()
30022{
30023double x = HUGE_VAL; return x != x;
30024  ;
30025  return 0;
30026}
30027_ACEOF
30028rm -f conftest$ac_exeext
30029if { (ac_try="$ac_link"
30030case "(($ac_try" in
30031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30032  *) ac_try_echo=$ac_try;;
30033esac
30034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30035  (eval "$ac_link") 2>&5
30036  ac_status=$?
30037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30038  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30039  { (case "(($ac_try" in
30040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30041  *) ac_try_echo=$ac_try;;
30042esac
30043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30044  (eval "$ac_try") 2>&5
30045  ac_status=$?
30046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30047  (exit $ac_status); }; }; then
30048  ac_cv_huge_val_sanity=yes
30049else
30050  echo "$as_me: program exited with status $ac_status" >&5
30051echo "$as_me: failed program was:" >&5
30052sed 's/^/| /' conftest.$ac_ext >&5
30053
30054( exit $ac_status )
30055ac_cv_huge_val_sanity=no
30056fi
30057rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30058fi
30059
30060
30061    ac_ext=c
30062ac_cpp='$CPP $CPPFLAGS'
30063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30065ac_compiler_gnu=$ac_cv_c_compiler_gnu
30066
30067
30068fi
30069{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30070echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30071  HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30072
30073
30074{ echo "$as_me:$LINENO: checking for pid_t" >&5
30075echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30076if test "${ac_cv_type_pid_t+set}" = set; then
30077  echo $ECHO_N "(cached) $ECHO_C" >&6
30078else
30079  cat >conftest.$ac_ext <<_ACEOF
30080/* confdefs.h.  */
30081_ACEOF
30082cat confdefs.h >>conftest.$ac_ext
30083cat >>conftest.$ac_ext <<_ACEOF
30084/* end confdefs.h.  */
30085$ac_includes_default
30086typedef pid_t ac__type_new_;
30087int
30088main ()
30089{
30090if ((ac__type_new_ *) 0)
30091  return 0;
30092if (sizeof (ac__type_new_))
30093  return 0;
30094  ;
30095  return 0;
30096}
30097_ACEOF
30098rm -f conftest.$ac_objext
30099if { (ac_try="$ac_compile"
30100case "(($ac_try" in
30101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30102  *) ac_try_echo=$ac_try;;
30103esac
30104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30105  (eval "$ac_compile") 2>conftest.er1
30106  ac_status=$?
30107  grep -v '^ *+' conftest.er1 >conftest.err
30108  rm -f conftest.er1
30109  cat conftest.err >&5
30110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30111  (exit $ac_status); } &&
30112	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30113  { (case "(($ac_try" in
30114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30115  *) ac_try_echo=$ac_try;;
30116esac
30117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30118  (eval "$ac_try") 2>&5
30119  ac_status=$?
30120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30121  (exit $ac_status); }; } &&
30122	 { ac_try='test -s conftest.$ac_objext'
30123  { (case "(($ac_try" in
30124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30125  *) ac_try_echo=$ac_try;;
30126esac
30127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30128  (eval "$ac_try") 2>&5
30129  ac_status=$?
30130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30131  (exit $ac_status); }; }; then
30132  ac_cv_type_pid_t=yes
30133else
30134  echo "$as_me: failed program was:" >&5
30135sed 's/^/| /' conftest.$ac_ext >&5
30136
30137	ac_cv_type_pid_t=no
30138fi
30139
30140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30141fi
30142{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30143echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30144if test $ac_cv_type_pid_t = yes; then
30145  :
30146else
30147
30148cat >>confdefs.h <<_ACEOF
30149#define pid_t int
30150_ACEOF
30151
30152fi
30153
30154{ echo "$as_me:$LINENO: checking for size_t" >&5
30155echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30156if test "${ac_cv_type_size_t+set}" = set; then
30157  echo $ECHO_N "(cached) $ECHO_C" >&6
30158else
30159  cat >conftest.$ac_ext <<_ACEOF
30160/* confdefs.h.  */
30161_ACEOF
30162cat confdefs.h >>conftest.$ac_ext
30163cat >>conftest.$ac_ext <<_ACEOF
30164/* end confdefs.h.  */
30165$ac_includes_default
30166typedef size_t ac__type_new_;
30167int
30168main ()
30169{
30170if ((ac__type_new_ *) 0)
30171  return 0;
30172if (sizeof (ac__type_new_))
30173  return 0;
30174  ;
30175  return 0;
30176}
30177_ACEOF
30178rm -f conftest.$ac_objext
30179if { (ac_try="$ac_compile"
30180case "(($ac_try" in
30181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30182  *) ac_try_echo=$ac_try;;
30183esac
30184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30185  (eval "$ac_compile") 2>conftest.er1
30186  ac_status=$?
30187  grep -v '^ *+' conftest.er1 >conftest.err
30188  rm -f conftest.er1
30189  cat conftest.err >&5
30190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30191  (exit $ac_status); } &&
30192	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30193  { (case "(($ac_try" in
30194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30195  *) ac_try_echo=$ac_try;;
30196esac
30197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30198  (eval "$ac_try") 2>&5
30199  ac_status=$?
30200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30201  (exit $ac_status); }; } &&
30202	 { ac_try='test -s conftest.$ac_objext'
30203  { (case "(($ac_try" in
30204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30205  *) ac_try_echo=$ac_try;;
30206esac
30207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30208  (eval "$ac_try") 2>&5
30209  ac_status=$?
30210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30211  (exit $ac_status); }; }; then
30212  ac_cv_type_size_t=yes
30213else
30214  echo "$as_me: failed program was:" >&5
30215sed 's/^/| /' conftest.$ac_ext >&5
30216
30217	ac_cv_type_size_t=no
30218fi
30219
30220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30221fi
30222{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30223echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30224if test $ac_cv_type_size_t = yes; then
30225  :
30226else
30227
30228cat >>confdefs.h <<_ACEOF
30229#define size_t unsigned int
30230_ACEOF
30231
30232fi
30233
30234{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30235echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30236if test "${ac_cv_type_signal+set}" = set; then
30237  echo $ECHO_N "(cached) $ECHO_C" >&6
30238else
30239  cat >conftest.$ac_ext <<_ACEOF
30240/* confdefs.h.  */
30241_ACEOF
30242cat confdefs.h >>conftest.$ac_ext
30243cat >>conftest.$ac_ext <<_ACEOF
30244/* end confdefs.h.  */
30245#include <sys/types.h>
30246#include <signal.h>
30247
30248int
30249main ()
30250{
30251return *(signal (0, 0)) (0) == 1;
30252  ;
30253  return 0;
30254}
30255_ACEOF
30256rm -f conftest.$ac_objext
30257if { (ac_try="$ac_compile"
30258case "(($ac_try" in
30259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30260  *) ac_try_echo=$ac_try;;
30261esac
30262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30263  (eval "$ac_compile") 2>conftest.er1
30264  ac_status=$?
30265  grep -v '^ *+' conftest.er1 >conftest.err
30266  rm -f conftest.er1
30267  cat conftest.err >&5
30268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30269  (exit $ac_status); } &&
30270	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30271  { (case "(($ac_try" in
30272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30273  *) ac_try_echo=$ac_try;;
30274esac
30275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30276  (eval "$ac_try") 2>&5
30277  ac_status=$?
30278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30279  (exit $ac_status); }; } &&
30280	 { ac_try='test -s conftest.$ac_objext'
30281  { (case "(($ac_try" in
30282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30283  *) ac_try_echo=$ac_try;;
30284esac
30285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30286  (eval "$ac_try") 2>&5
30287  ac_status=$?
30288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30289  (exit $ac_status); }; }; then
30290  ac_cv_type_signal=int
30291else
30292  echo "$as_me: failed program was:" >&5
30293sed 's/^/| /' conftest.$ac_ext >&5
30294
30295	ac_cv_type_signal=void
30296fi
30297
30298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30299fi
30300{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30301echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30302
30303cat >>confdefs.h <<_ACEOF
30304#define RETSIGTYPE $ac_cv_type_signal
30305_ACEOF
30306
30307
30308{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30309echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30310if test "${ac_cv_struct_tm+set}" = set; then
30311  echo $ECHO_N "(cached) $ECHO_C" >&6
30312else
30313  cat >conftest.$ac_ext <<_ACEOF
30314/* confdefs.h.  */
30315_ACEOF
30316cat confdefs.h >>conftest.$ac_ext
30317cat >>conftest.$ac_ext <<_ACEOF
30318/* end confdefs.h.  */
30319#include <sys/types.h>
30320#include <time.h>
30321
30322int
30323main ()
30324{
30325struct tm *tp; tp->tm_sec;
30326  ;
30327  return 0;
30328}
30329_ACEOF
30330rm -f conftest.$ac_objext
30331if { (ac_try="$ac_compile"
30332case "(($ac_try" in
30333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30334  *) ac_try_echo=$ac_try;;
30335esac
30336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30337  (eval "$ac_compile") 2>conftest.er1
30338  ac_status=$?
30339  grep -v '^ *+' conftest.er1 >conftest.err
30340  rm -f conftest.er1
30341  cat conftest.err >&5
30342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30343  (exit $ac_status); } &&
30344	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30345  { (case "(($ac_try" in
30346  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30347  *) ac_try_echo=$ac_try;;
30348esac
30349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30350  (eval "$ac_try") 2>&5
30351  ac_status=$?
30352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30353  (exit $ac_status); }; } &&
30354	 { ac_try='test -s conftest.$ac_objext'
30355  { (case "(($ac_try" in
30356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30357  *) ac_try_echo=$ac_try;;
30358esac
30359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30360  (eval "$ac_try") 2>&5
30361  ac_status=$?
30362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30363  (exit $ac_status); }; }; then
30364  ac_cv_struct_tm=time.h
30365else
30366  echo "$as_me: failed program was:" >&5
30367sed 's/^/| /' conftest.$ac_ext >&5
30368
30369	ac_cv_struct_tm=sys/time.h
30370fi
30371
30372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30373fi
30374{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30375echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30376if test $ac_cv_struct_tm = sys/time.h; then
30377
30378cat >>confdefs.h <<\_ACEOF
30379#define TM_IN_SYS_TIME 1
30380_ACEOF
30381
30382fi
30383
30384{ echo "$as_me:$LINENO: checking for int64_t" >&5
30385echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30386if test "${ac_cv_type_int64_t+set}" = set; then
30387  echo $ECHO_N "(cached) $ECHO_C" >&6
30388else
30389  cat >conftest.$ac_ext <<_ACEOF
30390/* confdefs.h.  */
30391_ACEOF
30392cat confdefs.h >>conftest.$ac_ext
30393cat >>conftest.$ac_ext <<_ACEOF
30394/* end confdefs.h.  */
30395$ac_includes_default
30396typedef int64_t ac__type_new_;
30397int
30398main ()
30399{
30400if ((ac__type_new_ *) 0)
30401  return 0;
30402if (sizeof (ac__type_new_))
30403  return 0;
30404  ;
30405  return 0;
30406}
30407_ACEOF
30408rm -f conftest.$ac_objext
30409if { (ac_try="$ac_compile"
30410case "(($ac_try" in
30411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30412  *) ac_try_echo=$ac_try;;
30413esac
30414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30415  (eval "$ac_compile") 2>conftest.er1
30416  ac_status=$?
30417  grep -v '^ *+' conftest.er1 >conftest.err
30418  rm -f conftest.er1
30419  cat conftest.err >&5
30420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30421  (exit $ac_status); } &&
30422	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30423  { (case "(($ac_try" in
30424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30425  *) ac_try_echo=$ac_try;;
30426esac
30427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30428  (eval "$ac_try") 2>&5
30429  ac_status=$?
30430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30431  (exit $ac_status); }; } &&
30432	 { ac_try='test -s conftest.$ac_objext'
30433  { (case "(($ac_try" in
30434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30435  *) ac_try_echo=$ac_try;;
30436esac
30437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30438  (eval "$ac_try") 2>&5
30439  ac_status=$?
30440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30441  (exit $ac_status); }; }; then
30442  ac_cv_type_int64_t=yes
30443else
30444  echo "$as_me: failed program was:" >&5
30445sed 's/^/| /' conftest.$ac_ext >&5
30446
30447	ac_cv_type_int64_t=no
30448fi
30449
30450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30451fi
30452{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30453echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30454if test $ac_cv_type_int64_t = yes; then
30455
30456cat >>confdefs.h <<_ACEOF
30457#define HAVE_INT64_T 1
30458_ACEOF
30459
30460
30461else
30462  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30463echo "$as_me: error: Type int64_t required but not found" >&2;}
30464   { (exit 1); exit 1; }; }
30465fi
30466
30467{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30468echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30469if test "${ac_cv_type_uint64_t+set}" = set; then
30470  echo $ECHO_N "(cached) $ECHO_C" >&6
30471else
30472  cat >conftest.$ac_ext <<_ACEOF
30473/* confdefs.h.  */
30474_ACEOF
30475cat confdefs.h >>conftest.$ac_ext
30476cat >>conftest.$ac_ext <<_ACEOF
30477/* end confdefs.h.  */
30478$ac_includes_default
30479typedef uint64_t ac__type_new_;
30480int
30481main ()
30482{
30483if ((ac__type_new_ *) 0)
30484  return 0;
30485if (sizeof (ac__type_new_))
30486  return 0;
30487  ;
30488  return 0;
30489}
30490_ACEOF
30491rm -f conftest.$ac_objext
30492if { (ac_try="$ac_compile"
30493case "(($ac_try" in
30494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30495  *) ac_try_echo=$ac_try;;
30496esac
30497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30498  (eval "$ac_compile") 2>conftest.er1
30499  ac_status=$?
30500  grep -v '^ *+' conftest.er1 >conftest.err
30501  rm -f conftest.er1
30502  cat conftest.err >&5
30503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30504  (exit $ac_status); } &&
30505	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30506  { (case "(($ac_try" in
30507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30508  *) ac_try_echo=$ac_try;;
30509esac
30510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30511  (eval "$ac_try") 2>&5
30512  ac_status=$?
30513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30514  (exit $ac_status); }; } &&
30515	 { ac_try='test -s conftest.$ac_objext'
30516  { (case "(($ac_try" in
30517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30518  *) ac_try_echo=$ac_try;;
30519esac
30520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30521  (eval "$ac_try") 2>&5
30522  ac_status=$?
30523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30524  (exit $ac_status); }; }; then
30525  ac_cv_type_uint64_t=yes
30526else
30527  echo "$as_me: failed program was:" >&5
30528sed 's/^/| /' conftest.$ac_ext >&5
30529
30530	ac_cv_type_uint64_t=no
30531fi
30532
30533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30534fi
30535{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30536echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30537if test $ac_cv_type_uint64_t = yes; then
30538
30539cat >>confdefs.h <<_ACEOF
30540#define HAVE_UINT64_T 1
30541_ACEOF
30542
30543
30544else
30545  { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30546echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30547if test "${ac_cv_type_u_int64_t+set}" = set; then
30548  echo $ECHO_N "(cached) $ECHO_C" >&6
30549else
30550  cat >conftest.$ac_ext <<_ACEOF
30551/* confdefs.h.  */
30552_ACEOF
30553cat confdefs.h >>conftest.$ac_ext
30554cat >>conftest.$ac_ext <<_ACEOF
30555/* end confdefs.h.  */
30556$ac_includes_default
30557typedef u_int64_t ac__type_new_;
30558int
30559main ()
30560{
30561if ((ac__type_new_ *) 0)
30562  return 0;
30563if (sizeof (ac__type_new_))
30564  return 0;
30565  ;
30566  return 0;
30567}
30568_ACEOF
30569rm -f conftest.$ac_objext
30570if { (ac_try="$ac_compile"
30571case "(($ac_try" in
30572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30573  *) ac_try_echo=$ac_try;;
30574esac
30575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30576  (eval "$ac_compile") 2>conftest.er1
30577  ac_status=$?
30578  grep -v '^ *+' conftest.er1 >conftest.err
30579  rm -f conftest.er1
30580  cat conftest.err >&5
30581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30582  (exit $ac_status); } &&
30583	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30584  { (case "(($ac_try" in
30585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30586  *) ac_try_echo=$ac_try;;
30587esac
30588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30589  (eval "$ac_try") 2>&5
30590  ac_status=$?
30591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592  (exit $ac_status); }; } &&
30593	 { ac_try='test -s conftest.$ac_objext'
30594  { (case "(($ac_try" in
30595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30596  *) ac_try_echo=$ac_try;;
30597esac
30598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30599  (eval "$ac_try") 2>&5
30600  ac_status=$?
30601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30602  (exit $ac_status); }; }; then
30603  ac_cv_type_u_int64_t=yes
30604else
30605  echo "$as_me: failed program was:" >&5
30606sed 's/^/| /' conftest.$ac_ext >&5
30607
30608	ac_cv_type_u_int64_t=no
30609fi
30610
30611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30612fi
30613{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30614echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30615if test $ac_cv_type_u_int64_t = yes; then
30616
30617cat >>confdefs.h <<_ACEOF
30618#define HAVE_U_INT64_T 1
30619_ACEOF
30620
30621
30622else
30623  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30624echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30625   { (exit 1); exit 1; }; }
30626fi
30627
30628fi
30629
30630
30631
30632
30633
30634
30635
30636
30637
30638
30639for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30640do
30641as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30642{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30643echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30644if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30645  echo $ECHO_N "(cached) $ECHO_C" >&6
30646else
30647  cat >conftest.$ac_ext <<_ACEOF
30648/* confdefs.h.  */
30649_ACEOF
30650cat confdefs.h >>conftest.$ac_ext
30651cat >>conftest.$ac_ext <<_ACEOF
30652/* end confdefs.h.  */
30653/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30654   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30655#define $ac_func innocuous_$ac_func
30656
30657/* System header to define __stub macros and hopefully few prototypes,
30658    which can conflict with char $ac_func (); below.
30659    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30660    <limits.h> exists even on freestanding compilers.  */
30661
30662#ifdef __STDC__
30663# include <limits.h>
30664#else
30665# include <assert.h>
30666#endif
30667
30668#undef $ac_func
30669
30670/* Override any GCC internal prototype to avoid an error.
30671   Use char because int might match the return type of a GCC
30672   builtin and then its argument prototype would still apply.  */
30673#ifdef __cplusplus
30674extern "C"
30675#endif
30676char $ac_func ();
30677/* The GNU C library defines this for functions which it implements
30678    to always fail with ENOSYS.  Some functions are actually named
30679    something starting with __ and the normal name is an alias.  */
30680#if defined __stub_$ac_func || defined __stub___$ac_func
30681choke me
30682#endif
30683
30684int
30685main ()
30686{
30687return $ac_func ();
30688  ;
30689  return 0;
30690}
30691_ACEOF
30692rm -f conftest.$ac_objext conftest$ac_exeext
30693if { (ac_try="$ac_link"
30694case "(($ac_try" in
30695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30696  *) ac_try_echo=$ac_try;;
30697esac
30698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30699  (eval "$ac_link") 2>conftest.er1
30700  ac_status=$?
30701  grep -v '^ *+' conftest.er1 >conftest.err
30702  rm -f conftest.er1
30703  cat conftest.err >&5
30704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705  (exit $ac_status); } &&
30706	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30707  { (case "(($ac_try" in
30708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30709  *) ac_try_echo=$ac_try;;
30710esac
30711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30712  (eval "$ac_try") 2>&5
30713  ac_status=$?
30714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30715  (exit $ac_status); }; } &&
30716	 { ac_try='test -s conftest$ac_exeext'
30717  { (case "(($ac_try" in
30718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30719  *) ac_try_echo=$ac_try;;
30720esac
30721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30722  (eval "$ac_try") 2>&5
30723  ac_status=$?
30724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30725  (exit $ac_status); }; }; then
30726  eval "$as_ac_var=yes"
30727else
30728  echo "$as_me: failed program was:" >&5
30729sed 's/^/| /' conftest.$ac_ext >&5
30730
30731	eval "$as_ac_var=no"
30732fi
30733
30734rm -f core conftest.err conftest.$ac_objext \
30735      conftest$ac_exeext conftest.$ac_ext
30736fi
30737ac_res=`eval echo '${'$as_ac_var'}'`
30738	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30739echo "${ECHO_T}$ac_res" >&6; }
30740if test `eval echo '${'$as_ac_var'}'` = yes; then
30741  cat >>confdefs.h <<_ACEOF
30742#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30743_ACEOF
30744
30745fi
30746done
30747
30748
30749
30750
30751
30752for ac_func in powf fmodf strtof round
30753do
30754as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30755{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30756echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30757if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30758  echo $ECHO_N "(cached) $ECHO_C" >&6
30759else
30760  cat >conftest.$ac_ext <<_ACEOF
30761/* confdefs.h.  */
30762_ACEOF
30763cat confdefs.h >>conftest.$ac_ext
30764cat >>conftest.$ac_ext <<_ACEOF
30765/* end confdefs.h.  */
30766/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30767   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30768#define $ac_func innocuous_$ac_func
30769
30770/* System header to define __stub macros and hopefully few prototypes,
30771    which can conflict with char $ac_func (); below.
30772    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30773    <limits.h> exists even on freestanding compilers.  */
30774
30775#ifdef __STDC__
30776# include <limits.h>
30777#else
30778# include <assert.h>
30779#endif
30780
30781#undef $ac_func
30782
30783/* Override any GCC internal prototype to avoid an error.
30784   Use char because int might match the return type of a GCC
30785   builtin and then its argument prototype would still apply.  */
30786#ifdef __cplusplus
30787extern "C"
30788#endif
30789char $ac_func ();
30790/* The GNU C library defines this for functions which it implements
30791    to always fail with ENOSYS.  Some functions are actually named
30792    something starting with __ and the normal name is an alias.  */
30793#if defined __stub_$ac_func || defined __stub___$ac_func
30794choke me
30795#endif
30796
30797int
30798main ()
30799{
30800return $ac_func ();
30801  ;
30802  return 0;
30803}
30804_ACEOF
30805rm -f conftest.$ac_objext conftest$ac_exeext
30806if { (ac_try="$ac_link"
30807case "(($ac_try" in
30808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30809  *) ac_try_echo=$ac_try;;
30810esac
30811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30812  (eval "$ac_link") 2>conftest.er1
30813  ac_status=$?
30814  grep -v '^ *+' conftest.er1 >conftest.err
30815  rm -f conftest.er1
30816  cat conftest.err >&5
30817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30818  (exit $ac_status); } &&
30819	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30820  { (case "(($ac_try" in
30821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30822  *) ac_try_echo=$ac_try;;
30823esac
30824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30825  (eval "$ac_try") 2>&5
30826  ac_status=$?
30827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30828  (exit $ac_status); }; } &&
30829	 { ac_try='test -s conftest$ac_exeext'
30830  { (case "(($ac_try" in
30831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30832  *) ac_try_echo=$ac_try;;
30833esac
30834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30835  (eval "$ac_try") 2>&5
30836  ac_status=$?
30837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30838  (exit $ac_status); }; }; then
30839  eval "$as_ac_var=yes"
30840else
30841  echo "$as_me: failed program was:" >&5
30842sed 's/^/| /' conftest.$ac_ext >&5
30843
30844	eval "$as_ac_var=no"
30845fi
30846
30847rm -f core conftest.err conftest.$ac_objext \
30848      conftest$ac_exeext conftest.$ac_ext
30849fi
30850ac_res=`eval echo '${'$as_ac_var'}'`
30851	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30852echo "${ECHO_T}$ac_res" >&6; }
30853if test `eval echo '${'$as_ac_var'}'` = yes; then
30854  cat >>confdefs.h <<_ACEOF
30855#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30856_ACEOF
30857
30858fi
30859done
30860
30861
30862
30863
30864
30865
30866for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30867do
30868as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30869{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30870echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30871if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30872  echo $ECHO_N "(cached) $ECHO_C" >&6
30873else
30874  cat >conftest.$ac_ext <<_ACEOF
30875/* confdefs.h.  */
30876_ACEOF
30877cat confdefs.h >>conftest.$ac_ext
30878cat >>conftest.$ac_ext <<_ACEOF
30879/* end confdefs.h.  */
30880/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30881   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30882#define $ac_func innocuous_$ac_func
30883
30884/* System header to define __stub macros and hopefully few prototypes,
30885    which can conflict with char $ac_func (); below.
30886    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30887    <limits.h> exists even on freestanding compilers.  */
30888
30889#ifdef __STDC__
30890# include <limits.h>
30891#else
30892# include <assert.h>
30893#endif
30894
30895#undef $ac_func
30896
30897/* Override any GCC internal prototype to avoid an error.
30898   Use char because int might match the return type of a GCC
30899   builtin and then its argument prototype would still apply.  */
30900#ifdef __cplusplus
30901extern "C"
30902#endif
30903char $ac_func ();
30904/* The GNU C library defines this for functions which it implements
30905    to always fail with ENOSYS.  Some functions are actually named
30906    something starting with __ and the normal name is an alias.  */
30907#if defined __stub_$ac_func || defined __stub___$ac_func
30908choke me
30909#endif
30910
30911int
30912main ()
30913{
30914return $ac_func ();
30915  ;
30916  return 0;
30917}
30918_ACEOF
30919rm -f conftest.$ac_objext conftest$ac_exeext
30920if { (ac_try="$ac_link"
30921case "(($ac_try" in
30922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30923  *) ac_try_echo=$ac_try;;
30924esac
30925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30926  (eval "$ac_link") 2>conftest.er1
30927  ac_status=$?
30928  grep -v '^ *+' conftest.er1 >conftest.err
30929  rm -f conftest.er1
30930  cat conftest.err >&5
30931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30932  (exit $ac_status); } &&
30933	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30934  { (case "(($ac_try" in
30935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30936  *) ac_try_echo=$ac_try;;
30937esac
30938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30939  (eval "$ac_try") 2>&5
30940  ac_status=$?
30941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30942  (exit $ac_status); }; } &&
30943	 { ac_try='test -s conftest$ac_exeext'
30944  { (case "(($ac_try" in
30945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30946  *) ac_try_echo=$ac_try;;
30947esac
30948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30949  (eval "$ac_try") 2>&5
30950  ac_status=$?
30951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30952  (exit $ac_status); }; }; then
30953  eval "$as_ac_var=yes"
30954else
30955  echo "$as_me: failed program was:" >&5
30956sed 's/^/| /' conftest.$ac_ext >&5
30957
30958	eval "$as_ac_var=no"
30959fi
30960
30961rm -f core conftest.err conftest.$ac_objext \
30962      conftest$ac_exeext conftest.$ac_ext
30963fi
30964ac_res=`eval echo '${'$as_ac_var'}'`
30965	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30966echo "${ECHO_T}$ac_res" >&6; }
30967if test `eval echo '${'$as_ac_var'}'` = yes; then
30968  cat >>confdefs.h <<_ACEOF
30969#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30970_ACEOF
30971
30972fi
30973done
30974
30975
30976
30977
30978for ac_func in isatty mkdtemp mkstemp
30979do
30980as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30981{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30982echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30983if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30984  echo $ECHO_N "(cached) $ECHO_C" >&6
30985else
30986  cat >conftest.$ac_ext <<_ACEOF
30987/* confdefs.h.  */
30988_ACEOF
30989cat confdefs.h >>conftest.$ac_ext
30990cat >>conftest.$ac_ext <<_ACEOF
30991/* end confdefs.h.  */
30992/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30993   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30994#define $ac_func innocuous_$ac_func
30995
30996/* System header to define __stub macros and hopefully few prototypes,
30997    which can conflict with char $ac_func (); below.
30998    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30999    <limits.h> exists even on freestanding compilers.  */
31000
31001#ifdef __STDC__
31002# include <limits.h>
31003#else
31004# include <assert.h>
31005#endif
31006
31007#undef $ac_func
31008
31009/* Override any GCC internal prototype to avoid an error.
31010   Use char because int might match the return type of a GCC
31011   builtin and then its argument prototype would still apply.  */
31012#ifdef __cplusplus
31013extern "C"
31014#endif
31015char $ac_func ();
31016/* The GNU C library defines this for functions which it implements
31017    to always fail with ENOSYS.  Some functions are actually named
31018    something starting with __ and the normal name is an alias.  */
31019#if defined __stub_$ac_func || defined __stub___$ac_func
31020choke me
31021#endif
31022
31023int
31024main ()
31025{
31026return $ac_func ();
31027  ;
31028  return 0;
31029}
31030_ACEOF
31031rm -f conftest.$ac_objext conftest$ac_exeext
31032if { (ac_try="$ac_link"
31033case "(($ac_try" in
31034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31035  *) ac_try_echo=$ac_try;;
31036esac
31037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31038  (eval "$ac_link") 2>conftest.er1
31039  ac_status=$?
31040  grep -v '^ *+' conftest.er1 >conftest.err
31041  rm -f conftest.er1
31042  cat conftest.err >&5
31043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31044  (exit $ac_status); } &&
31045	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31046  { (case "(($ac_try" in
31047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31048  *) ac_try_echo=$ac_try;;
31049esac
31050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31051  (eval "$ac_try") 2>&5
31052  ac_status=$?
31053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31054  (exit $ac_status); }; } &&
31055	 { ac_try='test -s conftest$ac_exeext'
31056  { (case "(($ac_try" in
31057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31058  *) ac_try_echo=$ac_try;;
31059esac
31060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31061  (eval "$ac_try") 2>&5
31062  ac_status=$?
31063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31064  (exit $ac_status); }; }; then
31065  eval "$as_ac_var=yes"
31066else
31067  echo "$as_me: failed program was:" >&5
31068sed 's/^/| /' conftest.$ac_ext >&5
31069
31070	eval "$as_ac_var=no"
31071fi
31072
31073rm -f core conftest.err conftest.$ac_objext \
31074      conftest$ac_exeext conftest.$ac_ext
31075fi
31076ac_res=`eval echo '${'$as_ac_var'}'`
31077	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31078echo "${ECHO_T}$ac_res" >&6; }
31079if test `eval echo '${'$as_ac_var'}'` = yes; then
31080  cat >>confdefs.h <<_ACEOF
31081#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31082_ACEOF
31083
31084fi
31085done
31086
31087
31088
31089
31090
31091
31092
31093
31094for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31095do
31096as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31097{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31098echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31099if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31100  echo $ECHO_N "(cached) $ECHO_C" >&6
31101else
31102  cat >conftest.$ac_ext <<_ACEOF
31103/* confdefs.h.  */
31104_ACEOF
31105cat confdefs.h >>conftest.$ac_ext
31106cat >>conftest.$ac_ext <<_ACEOF
31107/* end confdefs.h.  */
31108/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31109   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31110#define $ac_func innocuous_$ac_func
31111
31112/* System header to define __stub macros and hopefully few prototypes,
31113    which can conflict with char $ac_func (); below.
31114    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31115    <limits.h> exists even on freestanding compilers.  */
31116
31117#ifdef __STDC__
31118# include <limits.h>
31119#else
31120# include <assert.h>
31121#endif
31122
31123#undef $ac_func
31124
31125/* Override any GCC internal prototype to avoid an error.
31126   Use char because int might match the return type of a GCC
31127   builtin and then its argument prototype would still apply.  */
31128#ifdef __cplusplus
31129extern "C"
31130#endif
31131char $ac_func ();
31132/* The GNU C library defines this for functions which it implements
31133    to always fail with ENOSYS.  Some functions are actually named
31134    something starting with __ and the normal name is an alias.  */
31135#if defined __stub_$ac_func || defined __stub___$ac_func
31136choke me
31137#endif
31138
31139int
31140main ()
31141{
31142return $ac_func ();
31143  ;
31144  return 0;
31145}
31146_ACEOF
31147rm -f conftest.$ac_objext conftest$ac_exeext
31148if { (ac_try="$ac_link"
31149case "(($ac_try" in
31150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31151  *) ac_try_echo=$ac_try;;
31152esac
31153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31154  (eval "$ac_link") 2>conftest.er1
31155  ac_status=$?
31156  grep -v '^ *+' conftest.er1 >conftest.err
31157  rm -f conftest.er1
31158  cat conftest.err >&5
31159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31160  (exit $ac_status); } &&
31161	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31162  { (case "(($ac_try" in
31163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31164  *) ac_try_echo=$ac_try;;
31165esac
31166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31167  (eval "$ac_try") 2>&5
31168  ac_status=$?
31169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31170  (exit $ac_status); }; } &&
31171	 { ac_try='test -s conftest$ac_exeext'
31172  { (case "(($ac_try" in
31173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31174  *) ac_try_echo=$ac_try;;
31175esac
31176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31177  (eval "$ac_try") 2>&5
31178  ac_status=$?
31179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31180  (exit $ac_status); }; }; then
31181  eval "$as_ac_var=yes"
31182else
31183  echo "$as_me: failed program was:" >&5
31184sed 's/^/| /' conftest.$ac_ext >&5
31185
31186	eval "$as_ac_var=no"
31187fi
31188
31189rm -f core conftest.err conftest.$ac_objext \
31190      conftest$ac_exeext conftest.$ac_ext
31191fi
31192ac_res=`eval echo '${'$as_ac_var'}'`
31193	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31194echo "${ECHO_T}$ac_res" >&6; }
31195if test `eval echo '${'$as_ac_var'}'` = yes; then
31196  cat >>confdefs.h <<_ACEOF
31197#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31198_ACEOF
31199
31200fi
31201done
31202
31203
31204
31205
31206
31207for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31208do
31209as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31210{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31211echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31212if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31213  echo $ECHO_N "(cached) $ECHO_C" >&6
31214else
31215  cat >conftest.$ac_ext <<_ACEOF
31216/* confdefs.h.  */
31217_ACEOF
31218cat confdefs.h >>conftest.$ac_ext
31219cat >>conftest.$ac_ext <<_ACEOF
31220/* end confdefs.h.  */
31221/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31222   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31223#define $ac_func innocuous_$ac_func
31224
31225/* System header to define __stub macros and hopefully few prototypes,
31226    which can conflict with char $ac_func (); below.
31227    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31228    <limits.h> exists even on freestanding compilers.  */
31229
31230#ifdef __STDC__
31231# include <limits.h>
31232#else
31233# include <assert.h>
31234#endif
31235
31236#undef $ac_func
31237
31238/* Override any GCC internal prototype to avoid an error.
31239   Use char because int might match the return type of a GCC
31240   builtin and then its argument prototype would still apply.  */
31241#ifdef __cplusplus
31242extern "C"
31243#endif
31244char $ac_func ();
31245/* The GNU C library defines this for functions which it implements
31246    to always fail with ENOSYS.  Some functions are actually named
31247    something starting with __ and the normal name is an alias.  */
31248#if defined __stub_$ac_func || defined __stub___$ac_func
31249choke me
31250#endif
31251
31252int
31253main ()
31254{
31255return $ac_func ();
31256  ;
31257  return 0;
31258}
31259_ACEOF
31260rm -f conftest.$ac_objext conftest$ac_exeext
31261if { (ac_try="$ac_link"
31262case "(($ac_try" in
31263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31264  *) ac_try_echo=$ac_try;;
31265esac
31266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31267  (eval "$ac_link") 2>conftest.er1
31268  ac_status=$?
31269  grep -v '^ *+' conftest.er1 >conftest.err
31270  rm -f conftest.er1
31271  cat conftest.err >&5
31272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31273  (exit $ac_status); } &&
31274	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31275  { (case "(($ac_try" in
31276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31277  *) ac_try_echo=$ac_try;;
31278esac
31279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31280  (eval "$ac_try") 2>&5
31281  ac_status=$?
31282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31283  (exit $ac_status); }; } &&
31284	 { ac_try='test -s conftest$ac_exeext'
31285  { (case "(($ac_try" in
31286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31287  *) ac_try_echo=$ac_try;;
31288esac
31289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31290  (eval "$ac_try") 2>&5
31291  ac_status=$?
31292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31293  (exit $ac_status); }; }; then
31294  eval "$as_ac_var=yes"
31295else
31296  echo "$as_me: failed program was:" >&5
31297sed 's/^/| /' conftest.$ac_ext >&5
31298
31299	eval "$as_ac_var=no"
31300fi
31301
31302rm -f core conftest.err conftest.$ac_objext \
31303      conftest$ac_exeext conftest.$ac_ext
31304fi
31305ac_res=`eval echo '${'$as_ac_var'}'`
31306	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31307echo "${ECHO_T}$ac_res" >&6; }
31308if test `eval echo '${'$as_ac_var'}'` = yes; then
31309  cat >>confdefs.h <<_ACEOF
31310#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31311_ACEOF
31312
31313fi
31314done
31315
31316
31317
31318
31319
31320for ac_func in setjmp longjmp sigsetjmp siglongjmp
31321do
31322as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31323{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31324echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31325if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31326  echo $ECHO_N "(cached) $ECHO_C" >&6
31327else
31328  cat >conftest.$ac_ext <<_ACEOF
31329/* confdefs.h.  */
31330_ACEOF
31331cat confdefs.h >>conftest.$ac_ext
31332cat >>conftest.$ac_ext <<_ACEOF
31333/* end confdefs.h.  */
31334/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31335   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31336#define $ac_func innocuous_$ac_func
31337
31338/* System header to define __stub macros and hopefully few prototypes,
31339    which can conflict with char $ac_func (); below.
31340    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31341    <limits.h> exists even on freestanding compilers.  */
31342
31343#ifdef __STDC__
31344# include <limits.h>
31345#else
31346# include <assert.h>
31347#endif
31348
31349#undef $ac_func
31350
31351/* Override any GCC internal prototype to avoid an error.
31352   Use char because int might match the return type of a GCC
31353   builtin and then its argument prototype would still apply.  */
31354#ifdef __cplusplus
31355extern "C"
31356#endif
31357char $ac_func ();
31358/* The GNU C library defines this for functions which it implements
31359    to always fail with ENOSYS.  Some functions are actually named
31360    something starting with __ and the normal name is an alias.  */
31361#if defined __stub_$ac_func || defined __stub___$ac_func
31362choke me
31363#endif
31364
31365int
31366main ()
31367{
31368return $ac_func ();
31369  ;
31370  return 0;
31371}
31372_ACEOF
31373rm -f conftest.$ac_objext conftest$ac_exeext
31374if { (ac_try="$ac_link"
31375case "(($ac_try" in
31376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31377  *) ac_try_echo=$ac_try;;
31378esac
31379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31380  (eval "$ac_link") 2>conftest.er1
31381  ac_status=$?
31382  grep -v '^ *+' conftest.er1 >conftest.err
31383  rm -f conftest.er1
31384  cat conftest.err >&5
31385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31386  (exit $ac_status); } &&
31387	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31388  { (case "(($ac_try" in
31389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31390  *) ac_try_echo=$ac_try;;
31391esac
31392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31393  (eval "$ac_try") 2>&5
31394  ac_status=$?
31395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31396  (exit $ac_status); }; } &&
31397	 { ac_try='test -s conftest$ac_exeext'
31398  { (case "(($ac_try" in
31399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31400  *) ac_try_echo=$ac_try;;
31401esac
31402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31403  (eval "$ac_try") 2>&5
31404  ac_status=$?
31405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31406  (exit $ac_status); }; }; then
31407  eval "$as_ac_var=yes"
31408else
31409  echo "$as_me: failed program was:" >&5
31410sed 's/^/| /' conftest.$ac_ext >&5
31411
31412	eval "$as_ac_var=no"
31413fi
31414
31415rm -f core conftest.err conftest.$ac_objext \
31416      conftest$ac_exeext conftest.$ac_ext
31417fi
31418ac_res=`eval echo '${'$as_ac_var'}'`
31419	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31420echo "${ECHO_T}$ac_res" >&6; }
31421if test `eval echo '${'$as_ac_var'}'` = yes; then
31422  cat >>confdefs.h <<_ACEOF
31423#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31424_ACEOF
31425
31426fi
31427done
31428
31429{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31430echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31431if test "${llvm_cv_c_printf_a+set}" = set; then
31432  echo $ECHO_N "(cached) $ECHO_C" >&6
31433else
31434  ac_ext=c
31435ac_cpp='$CPP $CPPFLAGS'
31436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31438ac_compiler_gnu=$ac_cv_c_compiler_gnu
31439
31440 if test "$cross_compiling" = yes; then
31441  llvmac_cv_c_printf_a=no
31442else
31443  cat >conftest.$ac_ext <<_ACEOF
31444
31445  /* confdefs.h.  */
31446_ACEOF
31447cat confdefs.h >>conftest.$ac_ext
31448cat >>conftest.$ac_ext <<_ACEOF
31449/* end confdefs.h.  */
31450
31451#include <stdio.h>
31452#include <stdlib.h>
31453
31454int
31455main ()
31456{
31457
31458volatile double A, B;
31459char Buffer[100];
31460A = 1;
31461A /= 10.0;
31462sprintf(Buffer, "%a", A);
31463B = atof(Buffer);
31464if (A != B)
31465  return (1);
31466if (A != 0x1.999999999999ap-4)
31467  return (1);
31468return (0);
31469  ;
31470  return 0;
31471}
31472_ACEOF
31473rm -f conftest$ac_exeext
31474if { (ac_try="$ac_link"
31475case "(($ac_try" in
31476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31477  *) ac_try_echo=$ac_try;;
31478esac
31479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31480  (eval "$ac_link") 2>&5
31481  ac_status=$?
31482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31483  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31484  { (case "(($ac_try" in
31485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31486  *) ac_try_echo=$ac_try;;
31487esac
31488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31489  (eval "$ac_try") 2>&5
31490  ac_status=$?
31491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31492  (exit $ac_status); }; }; then
31493  llvm_cv_c_printf_a=yes
31494else
31495  echo "$as_me: program exited with status $ac_status" >&5
31496echo "$as_me: failed program was:" >&5
31497sed 's/^/| /' conftest.$ac_ext >&5
31498
31499( exit $ac_status )
31500llvmac_cv_c_printf_a=no
31501fi
31502rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31503fi
31504
31505
31506 ac_ext=c
31507ac_cpp='$CPP $CPPFLAGS'
31508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31510ac_compiler_gnu=$ac_cv_c_compiler_gnu
31511
31512fi
31513{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31514echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31515 if test "$llvm_cv_c_printf_a" = "yes"; then
31516
31517cat >>confdefs.h <<\_ACEOF
31518#define HAVE_PRINTF_A 1
31519_ACEOF
31520
31521 fi
31522
31523# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31524# for constant arguments.  Useless!
31525{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31526echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31527if test "${ac_cv_working_alloca_h+set}" = set; then
31528  echo $ECHO_N "(cached) $ECHO_C" >&6
31529else
31530  cat >conftest.$ac_ext <<_ACEOF
31531/* confdefs.h.  */
31532_ACEOF
31533cat confdefs.h >>conftest.$ac_ext
31534cat >>conftest.$ac_ext <<_ACEOF
31535/* end confdefs.h.  */
31536#include <alloca.h>
31537int
31538main ()
31539{
31540char *p = (char *) alloca (2 * sizeof (int));
31541			  if (p) return 0;
31542  ;
31543  return 0;
31544}
31545_ACEOF
31546rm -f conftest.$ac_objext conftest$ac_exeext
31547if { (ac_try="$ac_link"
31548case "(($ac_try" in
31549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31550  *) ac_try_echo=$ac_try;;
31551esac
31552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31553  (eval "$ac_link") 2>conftest.er1
31554  ac_status=$?
31555  grep -v '^ *+' conftest.er1 >conftest.err
31556  rm -f conftest.er1
31557  cat conftest.err >&5
31558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31559  (exit $ac_status); } &&
31560	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31561  { (case "(($ac_try" in
31562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31563  *) ac_try_echo=$ac_try;;
31564esac
31565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31566  (eval "$ac_try") 2>&5
31567  ac_status=$?
31568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31569  (exit $ac_status); }; } &&
31570	 { ac_try='test -s conftest$ac_exeext'
31571  { (case "(($ac_try" in
31572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31573  *) ac_try_echo=$ac_try;;
31574esac
31575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31576  (eval "$ac_try") 2>&5
31577  ac_status=$?
31578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31579  (exit $ac_status); }; }; then
31580  ac_cv_working_alloca_h=yes
31581else
31582  echo "$as_me: failed program was:" >&5
31583sed 's/^/| /' conftest.$ac_ext >&5
31584
31585	ac_cv_working_alloca_h=no
31586fi
31587
31588rm -f core conftest.err conftest.$ac_objext \
31589      conftest$ac_exeext conftest.$ac_ext
31590fi
31591{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31592echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31593if test $ac_cv_working_alloca_h = yes; then
31594
31595cat >>confdefs.h <<\_ACEOF
31596#define HAVE_ALLOCA_H 1
31597_ACEOF
31598
31599fi
31600
31601{ echo "$as_me:$LINENO: checking for alloca" >&5
31602echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31603if test "${ac_cv_func_alloca_works+set}" = set; then
31604  echo $ECHO_N "(cached) $ECHO_C" >&6
31605else
31606  cat >conftest.$ac_ext <<_ACEOF
31607/* confdefs.h.  */
31608_ACEOF
31609cat confdefs.h >>conftest.$ac_ext
31610cat >>conftest.$ac_ext <<_ACEOF
31611/* end confdefs.h.  */
31612#ifdef __GNUC__
31613# define alloca __builtin_alloca
31614#else
31615# ifdef _MSC_VER
31616#  include <malloc.h>
31617#  define alloca _alloca
31618# else
31619#  if HAVE_ALLOCA_H
31620#   include <alloca.h>
31621#  else
31622#   ifdef _AIX
31623 #pragma alloca
31624#   else
31625#    ifndef alloca /* predefined by HP cc +Olibcalls */
31626char *alloca ();
31627#    endif
31628#   endif
31629#  endif
31630# endif
31631#endif
31632
31633int
31634main ()
31635{
31636char *p = (char *) alloca (1);
31637				    if (p) return 0;
31638  ;
31639  return 0;
31640}
31641_ACEOF
31642rm -f conftest.$ac_objext conftest$ac_exeext
31643if { (ac_try="$ac_link"
31644case "(($ac_try" in
31645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31646  *) ac_try_echo=$ac_try;;
31647esac
31648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31649  (eval "$ac_link") 2>conftest.er1
31650  ac_status=$?
31651  grep -v '^ *+' conftest.er1 >conftest.err
31652  rm -f conftest.er1
31653  cat conftest.err >&5
31654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31655  (exit $ac_status); } &&
31656	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31657  { (case "(($ac_try" in
31658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31659  *) ac_try_echo=$ac_try;;
31660esac
31661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31662  (eval "$ac_try") 2>&5
31663  ac_status=$?
31664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31665  (exit $ac_status); }; } &&
31666	 { ac_try='test -s conftest$ac_exeext'
31667  { (case "(($ac_try" in
31668  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31669  *) ac_try_echo=$ac_try;;
31670esac
31671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31672  (eval "$ac_try") 2>&5
31673  ac_status=$?
31674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31675  (exit $ac_status); }; }; then
31676  ac_cv_func_alloca_works=yes
31677else
31678  echo "$as_me: failed program was:" >&5
31679sed 's/^/| /' conftest.$ac_ext >&5
31680
31681	ac_cv_func_alloca_works=no
31682fi
31683
31684rm -f core conftest.err conftest.$ac_objext \
31685      conftest$ac_exeext conftest.$ac_ext
31686fi
31687{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31688echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31689
31690if test $ac_cv_func_alloca_works = yes; then
31691
31692cat >>confdefs.h <<\_ACEOF
31693#define HAVE_ALLOCA 1
31694_ACEOF
31695
31696else
31697  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31698# that cause trouble.  Some versions do not even contain alloca or
31699# contain a buggy version.  If you still want to use their alloca,
31700# use ar to extract alloca.o from them instead of compiling alloca.c.
31701
31702ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31703
31704cat >>confdefs.h <<\_ACEOF
31705#define C_ALLOCA 1
31706_ACEOF
31707
31708
31709{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31710echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31711if test "${ac_cv_os_cray+set}" = set; then
31712  echo $ECHO_N "(cached) $ECHO_C" >&6
31713else
31714  cat >conftest.$ac_ext <<_ACEOF
31715/* confdefs.h.  */
31716_ACEOF
31717cat confdefs.h >>conftest.$ac_ext
31718cat >>conftest.$ac_ext <<_ACEOF
31719/* end confdefs.h.  */
31720#if defined CRAY && ! defined CRAY2
31721webecray
31722#else
31723wenotbecray
31724#endif
31725
31726_ACEOF
31727if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31728  $EGREP "webecray" >/dev/null 2>&1; then
31729  ac_cv_os_cray=yes
31730else
31731  ac_cv_os_cray=no
31732fi
31733rm -f conftest*
31734
31735fi
31736{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31737echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31738if test $ac_cv_os_cray = yes; then
31739  for ac_func in _getb67 GETB67 getb67; do
31740    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31741{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31742echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31743if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31744  echo $ECHO_N "(cached) $ECHO_C" >&6
31745else
31746  cat >conftest.$ac_ext <<_ACEOF
31747/* confdefs.h.  */
31748_ACEOF
31749cat confdefs.h >>conftest.$ac_ext
31750cat >>conftest.$ac_ext <<_ACEOF
31751/* end confdefs.h.  */
31752/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31753   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31754#define $ac_func innocuous_$ac_func
31755
31756/* System header to define __stub macros and hopefully few prototypes,
31757    which can conflict with char $ac_func (); below.
31758    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31759    <limits.h> exists even on freestanding compilers.  */
31760
31761#ifdef __STDC__
31762# include <limits.h>
31763#else
31764# include <assert.h>
31765#endif
31766
31767#undef $ac_func
31768
31769/* Override any GCC internal prototype to avoid an error.
31770   Use char because int might match the return type of a GCC
31771   builtin and then its argument prototype would still apply.  */
31772#ifdef __cplusplus
31773extern "C"
31774#endif
31775char $ac_func ();
31776/* The GNU C library defines this for functions which it implements
31777    to always fail with ENOSYS.  Some functions are actually named
31778    something starting with __ and the normal name is an alias.  */
31779#if defined __stub_$ac_func || defined __stub___$ac_func
31780choke me
31781#endif
31782
31783int
31784main ()
31785{
31786return $ac_func ();
31787  ;
31788  return 0;
31789}
31790_ACEOF
31791rm -f conftest.$ac_objext conftest$ac_exeext
31792if { (ac_try="$ac_link"
31793case "(($ac_try" in
31794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31795  *) ac_try_echo=$ac_try;;
31796esac
31797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31798  (eval "$ac_link") 2>conftest.er1
31799  ac_status=$?
31800  grep -v '^ *+' conftest.er1 >conftest.err
31801  rm -f conftest.er1
31802  cat conftest.err >&5
31803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31804  (exit $ac_status); } &&
31805	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31806  { (case "(($ac_try" in
31807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31808  *) ac_try_echo=$ac_try;;
31809esac
31810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31811  (eval "$ac_try") 2>&5
31812  ac_status=$?
31813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31814  (exit $ac_status); }; } &&
31815	 { ac_try='test -s conftest$ac_exeext'
31816  { (case "(($ac_try" in
31817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31818  *) ac_try_echo=$ac_try;;
31819esac
31820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31821  (eval "$ac_try") 2>&5
31822  ac_status=$?
31823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31824  (exit $ac_status); }; }; then
31825  eval "$as_ac_var=yes"
31826else
31827  echo "$as_me: failed program was:" >&5
31828sed 's/^/| /' conftest.$ac_ext >&5
31829
31830	eval "$as_ac_var=no"
31831fi
31832
31833rm -f core conftest.err conftest.$ac_objext \
31834      conftest$ac_exeext conftest.$ac_ext
31835fi
31836ac_res=`eval echo '${'$as_ac_var'}'`
31837	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31838echo "${ECHO_T}$ac_res" >&6; }
31839if test `eval echo '${'$as_ac_var'}'` = yes; then
31840
31841cat >>confdefs.h <<_ACEOF
31842#define CRAY_STACKSEG_END $ac_func
31843_ACEOF
31844
31845    break
31846fi
31847
31848  done
31849fi
31850
31851{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31852echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31853if test "${ac_cv_c_stack_direction+set}" = set; then
31854  echo $ECHO_N "(cached) $ECHO_C" >&6
31855else
31856  if test "$cross_compiling" = yes; then
31857  ac_cv_c_stack_direction=0
31858else
31859  cat >conftest.$ac_ext <<_ACEOF
31860/* confdefs.h.  */
31861_ACEOF
31862cat confdefs.h >>conftest.$ac_ext
31863cat >>conftest.$ac_ext <<_ACEOF
31864/* end confdefs.h.  */
31865$ac_includes_default
31866int
31867find_stack_direction ()
31868{
31869  static char *addr = 0;
31870  auto char dummy;
31871  if (addr == 0)
31872    {
31873      addr = &dummy;
31874      return find_stack_direction ();
31875    }
31876  else
31877    return (&dummy > addr) ? 1 : -1;
31878}
31879
31880int
31881main ()
31882{
31883  return find_stack_direction () < 0;
31884}
31885_ACEOF
31886rm -f conftest$ac_exeext
31887if { (ac_try="$ac_link"
31888case "(($ac_try" in
31889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31890  *) ac_try_echo=$ac_try;;
31891esac
31892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31893  (eval "$ac_link") 2>&5
31894  ac_status=$?
31895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31896  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31897  { (case "(($ac_try" in
31898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31899  *) ac_try_echo=$ac_try;;
31900esac
31901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31902  (eval "$ac_try") 2>&5
31903  ac_status=$?
31904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31905  (exit $ac_status); }; }; then
31906  ac_cv_c_stack_direction=1
31907else
31908  echo "$as_me: program exited with status $ac_status" >&5
31909echo "$as_me: failed program was:" >&5
31910sed 's/^/| /' conftest.$ac_ext >&5
31911
31912( exit $ac_status )
31913ac_cv_c_stack_direction=-1
31914fi
31915rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31916fi
31917
31918
31919fi
31920{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31921echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31922
31923cat >>confdefs.h <<_ACEOF
31924#define STACK_DIRECTION $ac_cv_c_stack_direction
31925_ACEOF
31926
31927
31928fi
31929
31930
31931{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31932echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31933if test "${ac_cv_func_rand48+set}" = set; then
31934  echo $ECHO_N "(cached) $ECHO_C" >&6
31935else
31936  ac_ext=cpp
31937ac_cpp='$CXXCPP $CPPFLAGS'
31938ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31939ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31940ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31941
31942   cat >conftest.$ac_ext <<_ACEOF
31943/* confdefs.h.  */
31944_ACEOF
31945cat confdefs.h >>conftest.$ac_ext
31946cat >>conftest.$ac_ext <<_ACEOF
31947/* end confdefs.h.  */
31948#include <stdlib.h>
31949int
31950main ()
31951{
31952srand48(0);lrand48();drand48();
31953  ;
31954  return 0;
31955}
31956_ACEOF
31957rm -f conftest.$ac_objext
31958if { (ac_try="$ac_compile"
31959case "(($ac_try" in
31960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31961  *) ac_try_echo=$ac_try;;
31962esac
31963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31964  (eval "$ac_compile") 2>conftest.er1
31965  ac_status=$?
31966  grep -v '^ *+' conftest.er1 >conftest.err
31967  rm -f conftest.er1
31968  cat conftest.err >&5
31969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31970  (exit $ac_status); } &&
31971	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31972  { (case "(($ac_try" in
31973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31974  *) ac_try_echo=$ac_try;;
31975esac
31976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31977  (eval "$ac_try") 2>&5
31978  ac_status=$?
31979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31980  (exit $ac_status); }; } &&
31981	 { ac_try='test -s conftest.$ac_objext'
31982  { (case "(($ac_try" in
31983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31984  *) ac_try_echo=$ac_try;;
31985esac
31986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31987  (eval "$ac_try") 2>&5
31988  ac_status=$?
31989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31990  (exit $ac_status); }; }; then
31991  ac_cv_func_rand48=yes
31992else
31993  echo "$as_me: failed program was:" >&5
31994sed 's/^/| /' conftest.$ac_ext >&5
31995
31996	ac_cv_func_rand48=no
31997fi
31998
31999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32000  ac_ext=c
32001ac_cpp='$CPP $CPPFLAGS'
32002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32004ac_compiler_gnu=$ac_cv_c_compiler_gnu
32005
32006fi
32007{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32008echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
32009
32010if test "$ac_cv_func_rand48" = "yes" ; then
32011
32012cat >>confdefs.h <<\_ACEOF
32013#define HAVE_RAND48 1
32014_ACEOF
32015
32016fi
32017
32018
32019{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32020echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
32021if test "${ac_cv_cxx_namespaces+set}" = set; then
32022  echo $ECHO_N "(cached) $ECHO_C" >&6
32023else
32024  ac_ext=cpp
32025ac_cpp='$CXXCPP $CPPFLAGS'
32026ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32027ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32028ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32029
32030 cat >conftest.$ac_ext <<_ACEOF
32031/* confdefs.h.  */
32032_ACEOF
32033cat confdefs.h >>conftest.$ac_ext
32034cat >>conftest.$ac_ext <<_ACEOF
32035/* end confdefs.h.  */
32036namespace Outer { namespace Inner { int i = 0; }}
32037int
32038main ()
32039{
32040using namespace Outer::Inner; return i;
32041  ;
32042  return 0;
32043}
32044_ACEOF
32045rm -f conftest.$ac_objext
32046if { (ac_try="$ac_compile"
32047case "(($ac_try" in
32048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32049  *) ac_try_echo=$ac_try;;
32050esac
32051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32052  (eval "$ac_compile") 2>conftest.er1
32053  ac_status=$?
32054  grep -v '^ *+' conftest.er1 >conftest.err
32055  rm -f conftest.er1
32056  cat conftest.err >&5
32057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32058  (exit $ac_status); } &&
32059	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32060  { (case "(($ac_try" in
32061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32062  *) ac_try_echo=$ac_try;;
32063esac
32064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32065  (eval "$ac_try") 2>&5
32066  ac_status=$?
32067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068  (exit $ac_status); }; } &&
32069	 { ac_try='test -s conftest.$ac_objext'
32070  { (case "(($ac_try" in
32071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32072  *) ac_try_echo=$ac_try;;
32073esac
32074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32075  (eval "$ac_try") 2>&5
32076  ac_status=$?
32077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32078  (exit $ac_status); }; }; then
32079  ac_cv_cxx_namespaces=yes
32080else
32081  echo "$as_me: failed program was:" >&5
32082sed 's/^/| /' conftest.$ac_ext >&5
32083
32084	ac_cv_cxx_namespaces=no
32085fi
32086
32087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32088 ac_ext=c
32089ac_cpp='$CPP $CPPFLAGS'
32090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32092ac_compiler_gnu=$ac_cv_c_compiler_gnu
32093
32094
32095fi
32096{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32097echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32098if test "$ac_cv_cxx_namespaces" = yes; then
32099
32100cat >>confdefs.h <<\_ACEOF
32101#define HAVE_NAMESPACES
32102_ACEOF
32103
32104fi
32105
32106{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32107echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32108if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32109  echo $ECHO_N "(cached) $ECHO_C" >&6
32110else
32111
32112  ac_ext=cpp
32113ac_cpp='$CXXCPP $CPPFLAGS'
32114ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32115ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32116ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32117
32118  cat >conftest.$ac_ext <<_ACEOF
32119/* confdefs.h.  */
32120_ACEOF
32121cat confdefs.h >>conftest.$ac_ext
32122cat >>conftest.$ac_ext <<_ACEOF
32123/* end confdefs.h.  */
32124#include <iterator>
32125#ifdef HAVE_NAMESPACES
32126using namespace std;
32127#endif
32128int
32129main ()
32130{
32131iterator<int,int,int> t; return 0;
32132  ;
32133  return 0;
32134}
32135_ACEOF
32136rm -f conftest.$ac_objext
32137if { (ac_try="$ac_compile"
32138case "(($ac_try" in
32139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32140  *) ac_try_echo=$ac_try;;
32141esac
32142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32143  (eval "$ac_compile") 2>conftest.er1
32144  ac_status=$?
32145  grep -v '^ *+' conftest.er1 >conftest.err
32146  rm -f conftest.er1
32147  cat conftest.err >&5
32148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32149  (exit $ac_status); } &&
32150	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32151  { (case "(($ac_try" in
32152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32153  *) ac_try_echo=$ac_try;;
32154esac
32155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32156  (eval "$ac_try") 2>&5
32157  ac_status=$?
32158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32159  (exit $ac_status); }; } &&
32160	 { ac_try='test -s conftest.$ac_objext'
32161  { (case "(($ac_try" in
32162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32163  *) ac_try_echo=$ac_try;;
32164esac
32165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32166  (eval "$ac_try") 2>&5
32167  ac_status=$?
32168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32169  (exit $ac_status); }; }; then
32170  ac_cv_cxx_have_std_iterator=yes
32171else
32172  echo "$as_me: failed program was:" >&5
32173sed 's/^/| /' conftest.$ac_ext >&5
32174
32175	ac_cv_cxx_have_std_iterator=no
32176fi
32177
32178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32179  ac_ext=c
32180ac_cpp='$CPP $CPPFLAGS'
32181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32183ac_compiler_gnu=$ac_cv_c_compiler_gnu
32184
32185
32186fi
32187{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32188echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32189if test "$ac_cv_cxx_have_std_iterator" = yes
32190then
32191
32192cat >>confdefs.h <<\_ACEOF
32193#define HAVE_STD_ITERATOR 1
32194_ACEOF
32195
32196else
32197
32198cat >>confdefs.h <<\_ACEOF
32199#define HAVE_STD_ITERATOR 0
32200_ACEOF
32201
32202fi
32203
32204{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32205echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32206if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32207  echo $ECHO_N "(cached) $ECHO_C" >&6
32208else
32209
32210  ac_ext=cpp
32211ac_cpp='$CXXCPP $CPPFLAGS'
32212ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32213ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32214ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32215
32216  cat >conftest.$ac_ext <<_ACEOF
32217/* confdefs.h.  */
32218_ACEOF
32219cat confdefs.h >>conftest.$ac_ext
32220cat >>conftest.$ac_ext <<_ACEOF
32221/* end confdefs.h.  */
32222#include <iterator>
32223#ifdef HAVE_NAMESPACES
32224using namespace std;
32225#endif
32226int
32227main ()
32228{
32229bidirectional_iterator<int,int> t; return 0;
32230  ;
32231  return 0;
32232}
32233_ACEOF
32234rm -f conftest.$ac_objext
32235if { (ac_try="$ac_compile"
32236case "(($ac_try" in
32237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32238  *) ac_try_echo=$ac_try;;
32239esac
32240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32241  (eval "$ac_compile") 2>conftest.er1
32242  ac_status=$?
32243  grep -v '^ *+' conftest.er1 >conftest.err
32244  rm -f conftest.er1
32245  cat conftest.err >&5
32246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32247  (exit $ac_status); } &&
32248	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32249  { (case "(($ac_try" in
32250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32251  *) ac_try_echo=$ac_try;;
32252esac
32253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32254  (eval "$ac_try") 2>&5
32255  ac_status=$?
32256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32257  (exit $ac_status); }; } &&
32258	 { ac_try='test -s conftest.$ac_objext'
32259  { (case "(($ac_try" in
32260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32261  *) ac_try_echo=$ac_try;;
32262esac
32263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32264  (eval "$ac_try") 2>&5
32265  ac_status=$?
32266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32267  (exit $ac_status); }; }; then
32268  ac_cv_cxx_have_bi_iterator=yes
32269else
32270  echo "$as_me: failed program was:" >&5
32271sed 's/^/| /' conftest.$ac_ext >&5
32272
32273	ac_cv_cxx_have_bi_iterator=no
32274fi
32275
32276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32277  ac_ext=c
32278ac_cpp='$CPP $CPPFLAGS'
32279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32281ac_compiler_gnu=$ac_cv_c_compiler_gnu
32282
32283
32284fi
32285{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32286echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32287if test "$ac_cv_cxx_have_bi_iterator" = yes
32288then
32289
32290cat >>confdefs.h <<\_ACEOF
32291#define HAVE_BI_ITERATOR 1
32292_ACEOF
32293
32294else
32295
32296cat >>confdefs.h <<\_ACEOF
32297#define HAVE_BI_ITERATOR 0
32298_ACEOF
32299
32300fi
32301
32302{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32303echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32304if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32305  echo $ECHO_N "(cached) $ECHO_C" >&6
32306else
32307
32308  ac_ext=cpp
32309ac_cpp='$CXXCPP $CPPFLAGS'
32310ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32311ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32312ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32313
32314  cat >conftest.$ac_ext <<_ACEOF
32315/* confdefs.h.  */
32316_ACEOF
32317cat confdefs.h >>conftest.$ac_ext
32318cat >>conftest.$ac_ext <<_ACEOF
32319/* end confdefs.h.  */
32320#include <iterator>
32321#ifdef HAVE_NAMESPACES
32322using namespace std;
32323#endif
32324int
32325main ()
32326{
32327forward_iterator<int,int> t; return 0;
32328  ;
32329  return 0;
32330}
32331_ACEOF
32332rm -f conftest.$ac_objext
32333if { (ac_try="$ac_compile"
32334case "(($ac_try" in
32335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32336  *) ac_try_echo=$ac_try;;
32337esac
32338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32339  (eval "$ac_compile") 2>conftest.er1
32340  ac_status=$?
32341  grep -v '^ *+' conftest.er1 >conftest.err
32342  rm -f conftest.er1
32343  cat conftest.err >&5
32344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32345  (exit $ac_status); } &&
32346	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32347  { (case "(($ac_try" in
32348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32349  *) ac_try_echo=$ac_try;;
32350esac
32351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32352  (eval "$ac_try") 2>&5
32353  ac_status=$?
32354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32355  (exit $ac_status); }; } &&
32356	 { ac_try='test -s conftest.$ac_objext'
32357  { (case "(($ac_try" in
32358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32359  *) ac_try_echo=$ac_try;;
32360esac
32361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32362  (eval "$ac_try") 2>&5
32363  ac_status=$?
32364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32365  (exit $ac_status); }; }; then
32366  ac_cv_cxx_have_fwd_iterator=yes
32367else
32368  echo "$as_me: failed program was:" >&5
32369sed 's/^/| /' conftest.$ac_ext >&5
32370
32371	ac_cv_cxx_have_fwd_iterator=no
32372fi
32373
32374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32375  ac_ext=c
32376ac_cpp='$CPP $CPPFLAGS'
32377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32379ac_compiler_gnu=$ac_cv_c_compiler_gnu
32380
32381
32382fi
32383{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32384echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32385if test "$ac_cv_cxx_have_fwd_iterator" = yes
32386then
32387
32388cat >>confdefs.h <<\_ACEOF
32389#define HAVE_FWD_ITERATOR 1
32390_ACEOF
32391
32392else
32393
32394cat >>confdefs.h <<\_ACEOF
32395#define HAVE_FWD_ITERATOR 0
32396_ACEOF
32397
32398fi
32399
32400
32401{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32402echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32403if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32404  echo $ECHO_N "(cached) $ECHO_C" >&6
32405else
32406  ac_ext=cpp
32407ac_cpp='$CXXCPP $CPPFLAGS'
32408ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32409ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32410ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32411
32412   cat >conftest.$ac_ext <<_ACEOF
32413/* confdefs.h.  */
32414_ACEOF
32415cat confdefs.h >>conftest.$ac_ext
32416cat >>conftest.$ac_ext <<_ACEOF
32417/* end confdefs.h.  */
32418#include <math.h>
32419int
32420main ()
32421{
32422float f; isnan(f);
32423  ;
32424  return 0;
32425}
32426_ACEOF
32427rm -f conftest.$ac_objext
32428if { (ac_try="$ac_compile"
32429case "(($ac_try" in
32430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32431  *) ac_try_echo=$ac_try;;
32432esac
32433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32434  (eval "$ac_compile") 2>conftest.er1
32435  ac_status=$?
32436  grep -v '^ *+' conftest.er1 >conftest.err
32437  rm -f conftest.er1
32438  cat conftest.err >&5
32439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32440  (exit $ac_status); } &&
32441	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32442  { (case "(($ac_try" in
32443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32444  *) ac_try_echo=$ac_try;;
32445esac
32446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32447  (eval "$ac_try") 2>&5
32448  ac_status=$?
32449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32450  (exit $ac_status); }; } &&
32451	 { ac_try='test -s conftest.$ac_objext'
32452  { (case "(($ac_try" in
32453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32454  *) ac_try_echo=$ac_try;;
32455esac
32456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32457  (eval "$ac_try") 2>&5
32458  ac_status=$?
32459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32460  (exit $ac_status); }; }; then
32461  ac_cv_func_isnan_in_math_h=yes
32462else
32463  echo "$as_me: failed program was:" >&5
32464sed 's/^/| /' conftest.$ac_ext >&5
32465
32466	ac_cv_func_isnan_in_math_h=no
32467fi
32468
32469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32470  ac_ext=c
32471ac_cpp='$CPP $CPPFLAGS'
32472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32474ac_compiler_gnu=$ac_cv_c_compiler_gnu
32475
32476fi
32477{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32478echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32479
32480
32481if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32482
32483cat >>confdefs.h <<\_ACEOF
32484#define HAVE_ISNAN_IN_MATH_H 1
32485_ACEOF
32486
32487fi
32488
32489{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32490echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32491if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32492  echo $ECHO_N "(cached) $ECHO_C" >&6
32493else
32494  ac_ext=cpp
32495ac_cpp='$CXXCPP $CPPFLAGS'
32496ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32497ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32498ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32499
32500   cat >conftest.$ac_ext <<_ACEOF
32501/* confdefs.h.  */
32502_ACEOF
32503cat confdefs.h >>conftest.$ac_ext
32504cat >>conftest.$ac_ext <<_ACEOF
32505/* end confdefs.h.  */
32506#include <cmath>
32507int
32508main ()
32509{
32510float f; isnan(f);
32511  ;
32512  return 0;
32513}
32514_ACEOF
32515rm -f conftest.$ac_objext
32516if { (ac_try="$ac_compile"
32517case "(($ac_try" in
32518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32519  *) ac_try_echo=$ac_try;;
32520esac
32521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32522  (eval "$ac_compile") 2>conftest.er1
32523  ac_status=$?
32524  grep -v '^ *+' conftest.er1 >conftest.err
32525  rm -f conftest.er1
32526  cat conftest.err >&5
32527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32528  (exit $ac_status); } &&
32529	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32530  { (case "(($ac_try" in
32531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32532  *) ac_try_echo=$ac_try;;
32533esac
32534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32535  (eval "$ac_try") 2>&5
32536  ac_status=$?
32537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32538  (exit $ac_status); }; } &&
32539	 { ac_try='test -s conftest.$ac_objext'
32540  { (case "(($ac_try" in
32541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32542  *) ac_try_echo=$ac_try;;
32543esac
32544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32545  (eval "$ac_try") 2>&5
32546  ac_status=$?
32547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32548  (exit $ac_status); }; }; then
32549  ac_cv_func_isnan_in_cmath=yes
32550else
32551  echo "$as_me: failed program was:" >&5
32552sed 's/^/| /' conftest.$ac_ext >&5
32553
32554	ac_cv_func_isnan_in_cmath=no
32555fi
32556
32557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32558  ac_ext=c
32559ac_cpp='$CPP $CPPFLAGS'
32560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32562ac_compiler_gnu=$ac_cv_c_compiler_gnu
32563
32564fi
32565{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32566echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32567
32568if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32569
32570cat >>confdefs.h <<\_ACEOF
32571#define HAVE_ISNAN_IN_CMATH 1
32572_ACEOF
32573
32574fi
32575
32576{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32577echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32578if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32579  echo $ECHO_N "(cached) $ECHO_C" >&6
32580else
32581  ac_ext=cpp
32582ac_cpp='$CXXCPP $CPPFLAGS'
32583ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32584ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32585ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32586
32587   cat >conftest.$ac_ext <<_ACEOF
32588/* confdefs.h.  */
32589_ACEOF
32590cat confdefs.h >>conftest.$ac_ext
32591cat >>conftest.$ac_ext <<_ACEOF
32592/* end confdefs.h.  */
32593#include <cmath>
32594int
32595main ()
32596{
32597float f; std::isnan(f);
32598  ;
32599  return 0;
32600}
32601_ACEOF
32602rm -f conftest.$ac_objext
32603if { (ac_try="$ac_compile"
32604case "(($ac_try" in
32605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32606  *) ac_try_echo=$ac_try;;
32607esac
32608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32609  (eval "$ac_compile") 2>conftest.er1
32610  ac_status=$?
32611  grep -v '^ *+' conftest.er1 >conftest.err
32612  rm -f conftest.er1
32613  cat conftest.err >&5
32614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32615  (exit $ac_status); } &&
32616	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32617  { (case "(($ac_try" in
32618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32619  *) ac_try_echo=$ac_try;;
32620esac
32621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32622  (eval "$ac_try") 2>&5
32623  ac_status=$?
32624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32625  (exit $ac_status); }; } &&
32626	 { ac_try='test -s conftest.$ac_objext'
32627  { (case "(($ac_try" in
32628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32629  *) ac_try_echo=$ac_try;;
32630esac
32631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32632  (eval "$ac_try") 2>&5
32633  ac_status=$?
32634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32635  (exit $ac_status); }; }; then
32636  ac_cv_func_std_isnan_in_cmath=yes
32637else
32638  echo "$as_me: failed program was:" >&5
32639sed 's/^/| /' conftest.$ac_ext >&5
32640
32641	ac_cv_func_std_isnan_in_cmath=no
32642fi
32643
32644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32645  ac_ext=c
32646ac_cpp='$CPP $CPPFLAGS'
32647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32649ac_compiler_gnu=$ac_cv_c_compiler_gnu
32650
32651fi
32652{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32653echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32654
32655if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32656
32657cat >>confdefs.h <<\_ACEOF
32658#define HAVE_STD_ISNAN_IN_CMATH 1
32659_ACEOF
32660
32661fi
32662
32663
32664{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32665echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32666if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32667  echo $ECHO_N "(cached) $ECHO_C" >&6
32668else
32669  ac_ext=cpp
32670ac_cpp='$CXXCPP $CPPFLAGS'
32671ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32672ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32673ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32674
32675   cat >conftest.$ac_ext <<_ACEOF
32676/* confdefs.h.  */
32677_ACEOF
32678cat confdefs.h >>conftest.$ac_ext
32679cat >>conftest.$ac_ext <<_ACEOF
32680/* end confdefs.h.  */
32681#include <math.h>
32682int
32683main ()
32684{
32685float f; isinf(f);
32686  ;
32687  return 0;
32688}
32689_ACEOF
32690rm -f conftest.$ac_objext
32691if { (ac_try="$ac_compile"
32692case "(($ac_try" in
32693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32694  *) ac_try_echo=$ac_try;;
32695esac
32696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32697  (eval "$ac_compile") 2>conftest.er1
32698  ac_status=$?
32699  grep -v '^ *+' conftest.er1 >conftest.err
32700  rm -f conftest.er1
32701  cat conftest.err >&5
32702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32703  (exit $ac_status); } &&
32704	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32705  { (case "(($ac_try" in
32706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32707  *) ac_try_echo=$ac_try;;
32708esac
32709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32710  (eval "$ac_try") 2>&5
32711  ac_status=$?
32712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32713  (exit $ac_status); }; } &&
32714	 { ac_try='test -s conftest.$ac_objext'
32715  { (case "(($ac_try" in
32716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32717  *) ac_try_echo=$ac_try;;
32718esac
32719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32720  (eval "$ac_try") 2>&5
32721  ac_status=$?
32722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32723  (exit $ac_status); }; }; then
32724  ac_cv_func_isinf_in_math_h=yes
32725else
32726  echo "$as_me: failed program was:" >&5
32727sed 's/^/| /' conftest.$ac_ext >&5
32728
32729	ac_cv_func_isinf_in_math_h=no
32730fi
32731
32732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32733  ac_ext=c
32734ac_cpp='$CPP $CPPFLAGS'
32735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32737ac_compiler_gnu=$ac_cv_c_compiler_gnu
32738
32739fi
32740{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32741echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32742
32743if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32744
32745cat >>confdefs.h <<\_ACEOF
32746#define HAVE_ISINF_IN_MATH_H 1
32747_ACEOF
32748
32749fi
32750
32751{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32752echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32753if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32754  echo $ECHO_N "(cached) $ECHO_C" >&6
32755else
32756  ac_ext=cpp
32757ac_cpp='$CXXCPP $CPPFLAGS'
32758ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32759ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32760ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32761
32762   cat >conftest.$ac_ext <<_ACEOF
32763/* confdefs.h.  */
32764_ACEOF
32765cat confdefs.h >>conftest.$ac_ext
32766cat >>conftest.$ac_ext <<_ACEOF
32767/* end confdefs.h.  */
32768#include <cmath>
32769int
32770main ()
32771{
32772float f; isinf(f);
32773  ;
32774  return 0;
32775}
32776_ACEOF
32777rm -f conftest.$ac_objext
32778if { (ac_try="$ac_compile"
32779case "(($ac_try" in
32780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32781  *) ac_try_echo=$ac_try;;
32782esac
32783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32784  (eval "$ac_compile") 2>conftest.er1
32785  ac_status=$?
32786  grep -v '^ *+' conftest.er1 >conftest.err
32787  rm -f conftest.er1
32788  cat conftest.err >&5
32789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32790  (exit $ac_status); } &&
32791	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32792  { (case "(($ac_try" in
32793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32794  *) ac_try_echo=$ac_try;;
32795esac
32796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32797  (eval "$ac_try") 2>&5
32798  ac_status=$?
32799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32800  (exit $ac_status); }; } &&
32801	 { ac_try='test -s conftest.$ac_objext'
32802  { (case "(($ac_try" in
32803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32804  *) ac_try_echo=$ac_try;;
32805esac
32806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32807  (eval "$ac_try") 2>&5
32808  ac_status=$?
32809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32810  (exit $ac_status); }; }; then
32811  ac_cv_func_isinf_in_cmath=yes
32812else
32813  echo "$as_me: failed program was:" >&5
32814sed 's/^/| /' conftest.$ac_ext >&5
32815
32816	ac_cv_func_isinf_in_cmath=no
32817fi
32818
32819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32820  ac_ext=c
32821ac_cpp='$CPP $CPPFLAGS'
32822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32824ac_compiler_gnu=$ac_cv_c_compiler_gnu
32825
32826fi
32827{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32828echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32829
32830if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32831
32832cat >>confdefs.h <<\_ACEOF
32833#define HAVE_ISINF_IN_CMATH 1
32834_ACEOF
32835
32836fi
32837
32838{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32839echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32840if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32841  echo $ECHO_N "(cached) $ECHO_C" >&6
32842else
32843  ac_ext=cpp
32844ac_cpp='$CXXCPP $CPPFLAGS'
32845ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32846ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32847ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32848
32849   cat >conftest.$ac_ext <<_ACEOF
32850/* confdefs.h.  */
32851_ACEOF
32852cat confdefs.h >>conftest.$ac_ext
32853cat >>conftest.$ac_ext <<_ACEOF
32854/* end confdefs.h.  */
32855#include <cmath>
32856int
32857main ()
32858{
32859float f; std::isinf(f)}
32860  ;
32861  return 0;
32862}
32863_ACEOF
32864rm -f conftest.$ac_objext
32865if { (ac_try="$ac_compile"
32866case "(($ac_try" in
32867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32868  *) ac_try_echo=$ac_try;;
32869esac
32870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32871  (eval "$ac_compile") 2>conftest.er1
32872  ac_status=$?
32873  grep -v '^ *+' conftest.er1 >conftest.err
32874  rm -f conftest.er1
32875  cat conftest.err >&5
32876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32877  (exit $ac_status); } &&
32878	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32879  { (case "(($ac_try" in
32880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32881  *) ac_try_echo=$ac_try;;
32882esac
32883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32884  (eval "$ac_try") 2>&5
32885  ac_status=$?
32886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32887  (exit $ac_status); }; } &&
32888	 { ac_try='test -s conftest.$ac_objext'
32889  { (case "(($ac_try" in
32890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32891  *) ac_try_echo=$ac_try;;
32892esac
32893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32894  (eval "$ac_try") 2>&5
32895  ac_status=$?
32896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32897  (exit $ac_status); }; }; then
32898  ac_cv_func_std_isinf_in_cmath=yes
32899else
32900  echo "$as_me: failed program was:" >&5
32901sed 's/^/| /' conftest.$ac_ext >&5
32902
32903	ac_cv_func_std_isinf_in_cmath=no
32904fi
32905
32906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32907  ac_ext=c
32908ac_cpp='$CPP $CPPFLAGS'
32909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32911ac_compiler_gnu=$ac_cv_c_compiler_gnu
32912
32913fi
32914{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32915echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32916
32917if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32918
32919cat >>confdefs.h <<\_ACEOF
32920#define HAVE_STD_ISINF_IN_CMATH 1
32921_ACEOF
32922
32923fi
32924
32925{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32926echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32927if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32928  echo $ECHO_N "(cached) $ECHO_C" >&6
32929else
32930  ac_ext=cpp
32931ac_cpp='$CXXCPP $CPPFLAGS'
32932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32935
32936   cat >conftest.$ac_ext <<_ACEOF
32937/* confdefs.h.  */
32938_ACEOF
32939cat confdefs.h >>conftest.$ac_ext
32940cat >>conftest.$ac_ext <<_ACEOF
32941/* end confdefs.h.  */
32942#include <ieeefp.h>
32943int
32944main ()
32945{
32946float f; finite(f);
32947  ;
32948  return 0;
32949}
32950_ACEOF
32951rm -f conftest.$ac_objext
32952if { (ac_try="$ac_compile"
32953case "(($ac_try" in
32954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32955  *) ac_try_echo=$ac_try;;
32956esac
32957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32958  (eval "$ac_compile") 2>conftest.er1
32959  ac_status=$?
32960  grep -v '^ *+' conftest.er1 >conftest.err
32961  rm -f conftest.er1
32962  cat conftest.err >&5
32963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32964  (exit $ac_status); } &&
32965	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32966  { (case "(($ac_try" in
32967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32968  *) ac_try_echo=$ac_try;;
32969esac
32970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32971  (eval "$ac_try") 2>&5
32972  ac_status=$?
32973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32974  (exit $ac_status); }; } &&
32975	 { ac_try='test -s conftest.$ac_objext'
32976  { (case "(($ac_try" in
32977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32978  *) ac_try_echo=$ac_try;;
32979esac
32980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32981  (eval "$ac_try") 2>&5
32982  ac_status=$?
32983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32984  (exit $ac_status); }; }; then
32985  ac_cv_func_finite_in_ieeefp_h=yes
32986else
32987  echo "$as_me: failed program was:" >&5
32988sed 's/^/| /' conftest.$ac_ext >&5
32989
32990	ac_cv_func_finite_in_ieeefp_h=no
32991fi
32992
32993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32994  ac_ext=c
32995ac_cpp='$CPP $CPPFLAGS'
32996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32998ac_compiler_gnu=$ac_cv_c_compiler_gnu
32999
33000fi
33001{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33002echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33003
33004if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33005
33006cat >>confdefs.h <<\_ACEOF
33007#define HAVE_FINITE_IN_IEEEFP_H 1
33008_ACEOF
33009
33010fi
33011
33012
33013
33014if test "$llvm_cv_platform_type" = "Unix" ; then
33015
33016
33017for ac_header in stdlib.h unistd.h
33018do
33019as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33021  { echo "$as_me:$LINENO: checking for $ac_header" >&5
33022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33023if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33024  echo $ECHO_N "(cached) $ECHO_C" >&6
33025fi
33026ac_res=`eval echo '${'$as_ac_Header'}'`
33027	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33028echo "${ECHO_T}$ac_res" >&6; }
33029else
33030  # Is the header compilable?
33031{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33032echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33033cat >conftest.$ac_ext <<_ACEOF
33034/* confdefs.h.  */
33035_ACEOF
33036cat confdefs.h >>conftest.$ac_ext
33037cat >>conftest.$ac_ext <<_ACEOF
33038/* end confdefs.h.  */
33039$ac_includes_default
33040#include <$ac_header>
33041_ACEOF
33042rm -f conftest.$ac_objext
33043if { (ac_try="$ac_compile"
33044case "(($ac_try" in
33045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33046  *) ac_try_echo=$ac_try;;
33047esac
33048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33049  (eval "$ac_compile") 2>conftest.er1
33050  ac_status=$?
33051  grep -v '^ *+' conftest.er1 >conftest.err
33052  rm -f conftest.er1
33053  cat conftest.err >&5
33054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33055  (exit $ac_status); } &&
33056	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33057  { (case "(($ac_try" in
33058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33059  *) ac_try_echo=$ac_try;;
33060esac
33061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33062  (eval "$ac_try") 2>&5
33063  ac_status=$?
33064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33065  (exit $ac_status); }; } &&
33066	 { ac_try='test -s conftest.$ac_objext'
33067  { (case "(($ac_try" in
33068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33069  *) ac_try_echo=$ac_try;;
33070esac
33071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33072  (eval "$ac_try") 2>&5
33073  ac_status=$?
33074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33075  (exit $ac_status); }; }; then
33076  ac_header_compiler=yes
33077else
33078  echo "$as_me: failed program was:" >&5
33079sed 's/^/| /' conftest.$ac_ext >&5
33080
33081	ac_header_compiler=no
33082fi
33083
33084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33085{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33086echo "${ECHO_T}$ac_header_compiler" >&6; }
33087
33088# Is the header present?
33089{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33090echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33091cat >conftest.$ac_ext <<_ACEOF
33092/* confdefs.h.  */
33093_ACEOF
33094cat confdefs.h >>conftest.$ac_ext
33095cat >>conftest.$ac_ext <<_ACEOF
33096/* end confdefs.h.  */
33097#include <$ac_header>
33098_ACEOF
33099if { (ac_try="$ac_cpp conftest.$ac_ext"
33100case "(($ac_try" in
33101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33102  *) ac_try_echo=$ac_try;;
33103esac
33104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33105  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33106  ac_status=$?
33107  grep -v '^ *+' conftest.er1 >conftest.err
33108  rm -f conftest.er1
33109  cat conftest.err >&5
33110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33111  (exit $ac_status); } >/dev/null; then
33112  if test -s conftest.err; then
33113    ac_cpp_err=$ac_c_preproc_warn_flag
33114    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33115  else
33116    ac_cpp_err=
33117  fi
33118else
33119  ac_cpp_err=yes
33120fi
33121if test -z "$ac_cpp_err"; then
33122  ac_header_preproc=yes
33123else
33124  echo "$as_me: failed program was:" >&5
33125sed 's/^/| /' conftest.$ac_ext >&5
33126
33127  ac_header_preproc=no
33128fi
33129
33130rm -f conftest.err conftest.$ac_ext
33131{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33132echo "${ECHO_T}$ac_header_preproc" >&6; }
33133
33134# So?  What about this header?
33135case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33136  yes:no: )
33137    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33138echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33139    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33140echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33141    ac_header_preproc=yes
33142    ;;
33143  no:yes:* )
33144    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33145echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33146    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33147echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33148    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33149echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33150    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33151echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33152    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33153echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33154    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33155echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33156    ( cat <<\_ASBOX
33157## ----------------------------------- ##
33158## Report this to llvmbugs@cs.uiuc.edu ##
33159## ----------------------------------- ##
33160_ASBOX
33161     ) | sed "s/^/$as_me: WARNING:     /" >&2
33162    ;;
33163esac
33164{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33166if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33167  echo $ECHO_N "(cached) $ECHO_C" >&6
33168else
33169  eval "$as_ac_Header=\$ac_header_preproc"
33170fi
33171ac_res=`eval echo '${'$as_ac_Header'}'`
33172	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33173echo "${ECHO_T}$ac_res" >&6; }
33174
33175fi
33176if test `eval echo '${'$as_ac_Header'}'` = yes; then
33177  cat >>confdefs.h <<_ACEOF
33178#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33179_ACEOF
33180
33181fi
33182
33183done
33184
33185
33186for ac_func in getpagesize
33187do
33188as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33189{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33190echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33191if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33192  echo $ECHO_N "(cached) $ECHO_C" >&6
33193else
33194  cat >conftest.$ac_ext <<_ACEOF
33195/* confdefs.h.  */
33196_ACEOF
33197cat confdefs.h >>conftest.$ac_ext
33198cat >>conftest.$ac_ext <<_ACEOF
33199/* end confdefs.h.  */
33200/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33201   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33202#define $ac_func innocuous_$ac_func
33203
33204/* System header to define __stub macros and hopefully few prototypes,
33205    which can conflict with char $ac_func (); below.
33206    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33207    <limits.h> exists even on freestanding compilers.  */
33208
33209#ifdef __STDC__
33210# include <limits.h>
33211#else
33212# include <assert.h>
33213#endif
33214
33215#undef $ac_func
33216
33217/* Override any GCC internal prototype to avoid an error.
33218   Use char because int might match the return type of a GCC
33219   builtin and then its argument prototype would still apply.  */
33220#ifdef __cplusplus
33221extern "C"
33222#endif
33223char $ac_func ();
33224/* The GNU C library defines this for functions which it implements
33225    to always fail with ENOSYS.  Some functions are actually named
33226    something starting with __ and the normal name is an alias.  */
33227#if defined __stub_$ac_func || defined __stub___$ac_func
33228choke me
33229#endif
33230
33231int
33232main ()
33233{
33234return $ac_func ();
33235  ;
33236  return 0;
33237}
33238_ACEOF
33239rm -f conftest.$ac_objext conftest$ac_exeext
33240if { (ac_try="$ac_link"
33241case "(($ac_try" in
33242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33243  *) ac_try_echo=$ac_try;;
33244esac
33245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33246  (eval "$ac_link") 2>conftest.er1
33247  ac_status=$?
33248  grep -v '^ *+' conftest.er1 >conftest.err
33249  rm -f conftest.er1
33250  cat conftest.err >&5
33251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33252  (exit $ac_status); } &&
33253	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33254  { (case "(($ac_try" in
33255  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33256  *) ac_try_echo=$ac_try;;
33257esac
33258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33259  (eval "$ac_try") 2>&5
33260  ac_status=$?
33261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33262  (exit $ac_status); }; } &&
33263	 { ac_try='test -s conftest$ac_exeext'
33264  { (case "(($ac_try" in
33265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33266  *) ac_try_echo=$ac_try;;
33267esac
33268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33269  (eval "$ac_try") 2>&5
33270  ac_status=$?
33271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33272  (exit $ac_status); }; }; then
33273  eval "$as_ac_var=yes"
33274else
33275  echo "$as_me: failed program was:" >&5
33276sed 's/^/| /' conftest.$ac_ext >&5
33277
33278	eval "$as_ac_var=no"
33279fi
33280
33281rm -f core conftest.err conftest.$ac_objext \
33282      conftest$ac_exeext conftest.$ac_ext
33283fi
33284ac_res=`eval echo '${'$as_ac_var'}'`
33285	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33286echo "${ECHO_T}$ac_res" >&6; }
33287if test `eval echo '${'$as_ac_var'}'` = yes; then
33288  cat >>confdefs.h <<_ACEOF
33289#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33290_ACEOF
33291
33292fi
33293done
33294
33295{ echo "$as_me:$LINENO: checking for working mmap" >&5
33296echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33297if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33298  echo $ECHO_N "(cached) $ECHO_C" >&6
33299else
33300  if test "$cross_compiling" = yes; then
33301  ac_cv_func_mmap_fixed_mapped=no
33302else
33303  cat >conftest.$ac_ext <<_ACEOF
33304/* confdefs.h.  */
33305_ACEOF
33306cat confdefs.h >>conftest.$ac_ext
33307cat >>conftest.$ac_ext <<_ACEOF
33308/* end confdefs.h.  */
33309$ac_includes_default
33310/* malloc might have been renamed as rpl_malloc. */
33311#undef malloc
33312
33313/* Thanks to Mike Haertel and Jim Avera for this test.
33314   Here is a matrix of mmap possibilities:
33315	mmap private not fixed
33316	mmap private fixed at somewhere currently unmapped
33317	mmap private fixed at somewhere already mapped
33318	mmap shared not fixed
33319	mmap shared fixed at somewhere currently unmapped
33320	mmap shared fixed at somewhere already mapped
33321   For private mappings, we should verify that changes cannot be read()
33322   back from the file, nor mmap's back from the file at a different
33323   address.  (There have been systems where private was not correctly
33324   implemented like the infamous i386 svr4.0, and systems where the
33325   VM page cache was not coherent with the file system buffer cache
33326   like early versions of FreeBSD and possibly contemporary NetBSD.)
33327   For shared mappings, we should conversely verify that changes get
33328   propagated back to all the places they're supposed to be.
33329
33330   Grep wants private fixed already mapped.
33331   The main things grep needs to know about mmap are:
33332   * does it exist and is it safe to write into the mmap'd area
33333   * how to use it (BSD variants)  */
33334
33335#include <fcntl.h>
33336#include <sys/mman.h>
33337
33338#if !STDC_HEADERS && !HAVE_STDLIB_H
33339char *malloc ();
33340#endif
33341
33342/* This mess was copied from the GNU getpagesize.h.  */
33343#if !HAVE_GETPAGESIZE
33344/* Assume that all systems that can run configure have sys/param.h.  */
33345# if !HAVE_SYS_PARAM_H
33346#  define HAVE_SYS_PARAM_H 1
33347# endif
33348
33349# ifdef _SC_PAGESIZE
33350#  define getpagesize() sysconf(_SC_PAGESIZE)
33351# else /* no _SC_PAGESIZE */
33352#  if HAVE_SYS_PARAM_H
33353#   include <sys/param.h>
33354#   ifdef EXEC_PAGESIZE
33355#    define getpagesize() EXEC_PAGESIZE
33356#   else /* no EXEC_PAGESIZE */
33357#    ifdef NBPG
33358#     define getpagesize() NBPG * CLSIZE
33359#     ifndef CLSIZE
33360#      define CLSIZE 1
33361#     endif /* no CLSIZE */
33362#    else /* no NBPG */
33363#     ifdef NBPC
33364#      define getpagesize() NBPC
33365#     else /* no NBPC */
33366#      ifdef PAGESIZE
33367#       define getpagesize() PAGESIZE
33368#      endif /* PAGESIZE */
33369#     endif /* no NBPC */
33370#    endif /* no NBPG */
33371#   endif /* no EXEC_PAGESIZE */
33372#  else /* no HAVE_SYS_PARAM_H */
33373#   define getpagesize() 8192	/* punt totally */
33374#  endif /* no HAVE_SYS_PARAM_H */
33375# endif /* no _SC_PAGESIZE */
33376
33377#endif /* no HAVE_GETPAGESIZE */
33378
33379int
33380main ()
33381{
33382  char *data, *data2, *data3;
33383  int i, pagesize;
33384  int fd;
33385
33386  pagesize = getpagesize ();
33387
33388  /* First, make a file with some known garbage in it. */
33389  data = (char *) malloc (pagesize);
33390  if (!data)
33391    return 1;
33392  for (i = 0; i < pagesize; ++i)
33393    *(data + i) = rand ();
33394  umask (0);
33395  fd = creat ("conftest.mmap", 0600);
33396  if (fd < 0)
33397    return 1;
33398  if (write (fd, data, pagesize) != pagesize)
33399    return 1;
33400  close (fd);
33401
33402  /* Next, try to mmap the file at a fixed address which already has
33403     something else allocated at it.  If we can, also make sure that
33404     we see the same garbage.  */
33405  fd = open ("conftest.mmap", O_RDWR);
33406  if (fd < 0)
33407    return 1;
33408  data2 = (char *) malloc (2 * pagesize);
33409  if (!data2)
33410    return 1;
33411  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33412  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33413		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
33414    return 1;
33415  for (i = 0; i < pagesize; ++i)
33416    if (*(data + i) != *(data2 + i))
33417      return 1;
33418
33419  /* Finally, make sure that changes to the mapped area do not
33420     percolate back to the file as seen by read().  (This is a bug on
33421     some variants of i386 svr4.0.)  */
33422  for (i = 0; i < pagesize; ++i)
33423    *(data2 + i) = *(data2 + i) + 1;
33424  data3 = (char *) malloc (pagesize);
33425  if (!data3)
33426    return 1;
33427  if (read (fd, data3, pagesize) != pagesize)
33428    return 1;
33429  for (i = 0; i < pagesize; ++i)
33430    if (*(data + i) != *(data3 + i))
33431      return 1;
33432  close (fd);
33433  return 0;
33434}
33435_ACEOF
33436rm -f conftest$ac_exeext
33437if { (ac_try="$ac_link"
33438case "(($ac_try" in
33439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33440  *) ac_try_echo=$ac_try;;
33441esac
33442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33443  (eval "$ac_link") 2>&5
33444  ac_status=$?
33445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33446  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33447  { (case "(($ac_try" in
33448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33449  *) ac_try_echo=$ac_try;;
33450esac
33451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33452  (eval "$ac_try") 2>&5
33453  ac_status=$?
33454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33455  (exit $ac_status); }; }; then
33456  ac_cv_func_mmap_fixed_mapped=yes
33457else
33458  echo "$as_me: program exited with status $ac_status" >&5
33459echo "$as_me: failed program was:" >&5
33460sed 's/^/| /' conftest.$ac_ext >&5
33461
33462( exit $ac_status )
33463ac_cv_func_mmap_fixed_mapped=no
33464fi
33465rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33466fi
33467
33468
33469fi
33470{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33471echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33472if test $ac_cv_func_mmap_fixed_mapped = yes; then
33473
33474cat >>confdefs.h <<\_ACEOF
33475#define HAVE_MMAP 1
33476_ACEOF
33477
33478fi
33479rm -f conftest.mmap
33480
33481  { echo "$as_me:$LINENO: checking for mmap of files" >&5
33482echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33483if test "${ac_cv_func_mmap_file+set}" = set; then
33484  echo $ECHO_N "(cached) $ECHO_C" >&6
33485else
33486   ac_ext=c
33487ac_cpp='$CPP $CPPFLAGS'
33488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33490ac_compiler_gnu=$ac_cv_c_compiler_gnu
33491
33492  if test "$cross_compiling" = yes; then
33493  ac_cv_func_mmap_file=no
33494else
33495  cat >conftest.$ac_ext <<_ACEOF
33496
33497    /* confdefs.h.  */
33498_ACEOF
33499cat confdefs.h >>conftest.$ac_ext
33500cat >>conftest.$ac_ext <<_ACEOF
33501/* end confdefs.h.  */
33502
33503#include <sys/types.h>
33504#include <sys/mman.h>
33505#include <fcntl.h>
33506
33507int
33508main ()
33509{
33510
33511  int fd;
33512  fd = creat ("foo",0777);
33513  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33514  unlink ("foo");
33515  return (fd != (int) MAP_FAILED);
33516  ;
33517  return 0;
33518}
33519_ACEOF
33520rm -f conftest$ac_exeext
33521if { (ac_try="$ac_link"
33522case "(($ac_try" in
33523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33524  *) ac_try_echo=$ac_try;;
33525esac
33526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33527  (eval "$ac_link") 2>&5
33528  ac_status=$?
33529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33530  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33531  { (case "(($ac_try" in
33532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33533  *) ac_try_echo=$ac_try;;
33534esac
33535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33536  (eval "$ac_try") 2>&5
33537  ac_status=$?
33538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33539  (exit $ac_status); }; }; then
33540  ac_cv_func_mmap_file=yes
33541else
33542  echo "$as_me: program exited with status $ac_status" >&5
33543echo "$as_me: failed program was:" >&5
33544sed 's/^/| /' conftest.$ac_ext >&5
33545
33546( exit $ac_status )
33547ac_cv_func_mmap_file=no
33548fi
33549rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33550fi
33551
33552
33553  ac_ext=c
33554ac_cpp='$CPP $CPPFLAGS'
33555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33557ac_compiler_gnu=$ac_cv_c_compiler_gnu
33558
33559
33560fi
33561{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33562echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33563if test "$ac_cv_func_mmap_file" = yes; then
33564
33565cat >>confdefs.h <<\_ACEOF
33566#define HAVE_MMAP_FILE
33567_ACEOF
33568
33569   MMAP_FILE=yes
33570
33571fi
33572
33573  { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33574echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33575if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33576  echo $ECHO_N "(cached) $ECHO_C" >&6
33577else
33578  if test "$llvm_cv_os_type" = "Interix" ; then
33579   ac_cv_need_dev_zero_for_mmap=yes
33580 else
33581   ac_cv_need_dev_zero_for_mmap=no
33582 fi
33583
33584fi
33585{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33586echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33587if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33588
33589cat >>confdefs.h <<\_ACEOF
33590#define NEED_DEV_ZERO_FOR_MMAP 1
33591_ACEOF
33592
33593fi
33594
33595  if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33596  then
33597    { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33598echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33599  fi
33600  if test "$ac_cv_func_mmap_file" = "no"
33601  then
33602    { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33603echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33604  fi
33605fi
33606
33607
33608
33609for ac_func in __dso_handle
33610do
33611as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33612{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33613echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33614if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33615  echo $ECHO_N "(cached) $ECHO_C" >&6
33616else
33617  cat >conftest.$ac_ext <<_ACEOF
33618/* confdefs.h.  */
33619_ACEOF
33620cat confdefs.h >>conftest.$ac_ext
33621cat >>conftest.$ac_ext <<_ACEOF
33622/* end confdefs.h.  */
33623/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33624   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33625#define $ac_func innocuous_$ac_func
33626
33627/* System header to define __stub macros and hopefully few prototypes,
33628    which can conflict with char $ac_func (); below.
33629    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33630    <limits.h> exists even on freestanding compilers.  */
33631
33632#ifdef __STDC__
33633# include <limits.h>
33634#else
33635# include <assert.h>
33636#endif
33637
33638#undef $ac_func
33639
33640/* Override any GCC internal prototype to avoid an error.
33641   Use char because int might match the return type of a GCC
33642   builtin and then its argument prototype would still apply.  */
33643#ifdef __cplusplus
33644extern "C"
33645#endif
33646char $ac_func ();
33647/* The GNU C library defines this for functions which it implements
33648    to always fail with ENOSYS.  Some functions are actually named
33649    something starting with __ and the normal name is an alias.  */
33650#if defined __stub_$ac_func || defined __stub___$ac_func
33651choke me
33652#endif
33653
33654int
33655main ()
33656{
33657return $ac_func ();
33658  ;
33659  return 0;
33660}
33661_ACEOF
33662rm -f conftest.$ac_objext conftest$ac_exeext
33663if { (ac_try="$ac_link"
33664case "(($ac_try" in
33665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33666  *) ac_try_echo=$ac_try;;
33667esac
33668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33669  (eval "$ac_link") 2>conftest.er1
33670  ac_status=$?
33671  grep -v '^ *+' conftest.er1 >conftest.err
33672  rm -f conftest.er1
33673  cat conftest.err >&5
33674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33675  (exit $ac_status); } &&
33676	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33677  { (case "(($ac_try" in
33678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33679  *) ac_try_echo=$ac_try;;
33680esac
33681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33682  (eval "$ac_try") 2>&5
33683  ac_status=$?
33684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33685  (exit $ac_status); }; } &&
33686	 { ac_try='test -s conftest$ac_exeext'
33687  { (case "(($ac_try" in
33688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33689  *) ac_try_echo=$ac_try;;
33690esac
33691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33692  (eval "$ac_try") 2>&5
33693  ac_status=$?
33694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33695  (exit $ac_status); }; }; then
33696  eval "$as_ac_var=yes"
33697else
33698  echo "$as_me: failed program was:" >&5
33699sed 's/^/| /' conftest.$ac_ext >&5
33700
33701	eval "$as_ac_var=no"
33702fi
33703
33704rm -f core conftest.err conftest.$ac_objext \
33705      conftest$ac_exeext conftest.$ac_ext
33706fi
33707ac_res=`eval echo '${'$as_ac_var'}'`
33708	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33709echo "${ECHO_T}$ac_res" >&6; }
33710if test `eval echo '${'$as_ac_var'}'` = yes; then
33711  cat >>confdefs.h <<_ACEOF
33712#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33713_ACEOF
33714
33715fi
33716done
33717
33718
33719{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33720echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33721if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33722  echo $ECHO_N "(cached) $ECHO_C" >&6
33723else
33724  llvm_cv_llvmgcc_sanity="no"
33725if test -x "$LLVMGCC" ; then
33726  cp /dev/null conftest.c
33727  "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33728      grep 'target datalayout =' > /dev/null 2>&1
33729  if test $? -eq 0 ; then
33730    llvm_cv_llvmgcc_sanity="yes"
33731  fi
33732  rm conftest.c
33733fi
33734fi
33735{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33736echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33737
33738if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33739  { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33740echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33741  llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33742  LLVMCC1=$llvmcc1path
33743
33744  llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33745  LLVMCC1PLUS=$llvmcc1pluspath
33746
33747  llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33748  LLVMGCCDIR=$llvmgccdir
33749
33750  llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33751  LLVMGCCLIBEXEC=$llvmgcclibexec
33752
33753  llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33754  llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33755  LLVMGCC_VERSION=$llvmgccversion
33756
33757  LLVMGCC_MAJVERS=$llvmgccmajvers
33758
33759  llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
33760  LLVMGCC_LANGS=$llvmgcclangs
33761
33762  { echo "$as_me:$LINENO: result: ok" >&5
33763echo "${ECHO_T}ok" >&6; }
33764fi
33765
33766SHLIBEXT=$libltdl_cv_shlibext
33767
33768
33769# Translate the various configuration directories and other basic
33770# information into substitutions that will end up in Makefile.config.in
33771# that these configured values can be used by the makefiles
33772if test "${prefix}" = "NONE" ; then
33773  prefix="/usr/local"
33774fi
33775eval LLVM_PREFIX="${prefix}";
33776eval LLVM_BINDIR="${prefix}/bin";
33777eval LLVM_LIBDIR="${prefix}/lib";
33778eval LLVM_DATADIR="${prefix}/share/llvm";
33779eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33780eval LLVM_ETCDIR="${prefix}/etc/llvm";
33781eval LLVM_INCLUDEDIR="${prefix}/include";
33782eval LLVM_INFODIR="${prefix}/info";
33783eval LLVM_MANDIR="${prefix}/man";
33784LLVM_CONFIGTIME=`date`
33785
33786
33787
33788
33789
33790
33791
33792
33793
33794
33795
33796# Place the various directores into the config.h file as #defines so that we
33797# can know about the installation paths within LLVM.
33798
33799cat >>confdefs.h <<_ACEOF
33800#define LLVM_PREFIX "$LLVM_PREFIX"
33801_ACEOF
33802
33803
33804cat >>confdefs.h <<_ACEOF
33805#define LLVM_BINDIR "$LLVM_BINDIR"
33806_ACEOF
33807
33808
33809cat >>confdefs.h <<_ACEOF
33810#define LLVM_LIBDIR "$LLVM_LIBDIR"
33811_ACEOF
33812
33813
33814cat >>confdefs.h <<_ACEOF
33815#define LLVM_DATADIR "$LLVM_DATADIR"
33816_ACEOF
33817
33818
33819cat >>confdefs.h <<_ACEOF
33820#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
33821_ACEOF
33822
33823
33824cat >>confdefs.h <<_ACEOF
33825#define LLVM_ETCDIR "$LLVM_ETCDIR"
33826_ACEOF
33827
33828
33829cat >>confdefs.h <<_ACEOF
33830#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33831_ACEOF
33832
33833
33834cat >>confdefs.h <<_ACEOF
33835#define LLVM_INFODIR "$LLVM_INFODIR"
33836_ACEOF
33837
33838
33839cat >>confdefs.h <<_ACEOF
33840#define LLVM_MANDIR "$LLVM_MANDIR"
33841_ACEOF
33842
33843
33844cat >>confdefs.h <<_ACEOF
33845#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33846_ACEOF
33847
33848
33849cat >>confdefs.h <<_ACEOF
33850#define LLVM_HOSTTRIPLE "$host"
33851_ACEOF
33852
33853
33854# Determine which bindings to build.
33855if test "$BINDINGS_TO_BUILD" = auto ; then
33856  BINDINGS_TO_BUILD=""
33857  if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
33858    BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
33859  fi
33860fi
33861BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
33862
33863
33864# This isn't really configurey, but it avoids having to repeat the list in
33865# other files.
33866ALL_BINDINGS=ocaml
33867
33868
33869# Do any work necessary to ensure that bindings have what they need.
33870binding_prereqs_failed=0
33871for a_binding in $BINDINGS_TO_BUILD ; do
33872  case "$a_binding" in
33873  ocaml)
33874    if test "x$OCAMLC" = x ; then
33875      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
33876echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
33877      binding_prereqs_failed=1
33878    fi
33879    if test "x$OCAMLDEP" = x ; then
33880      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
33881echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
33882      binding_prereqs_failed=1
33883    fi
33884    if test "x$OCAMLOPT" = x ; then
33885      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
33886echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
33887          fi
33888    if test "x$with_ocaml_libdir" != xauto ; then
33889      OCAML_LIBDIR=$with_ocaml_libdir
33890
33891    else
33892      ocaml_stdlib="`"$OCAMLC" -where`"
33893      if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
33894      then
33895        # ocaml stdlib is beneath our prefix; use stdlib
33896        OCAML_LIBDIR=$ocaml_stdlib
33897
33898      else
33899        # ocaml stdlib is outside our prefix; use libdir/ocaml
33900        OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
33901
33902      fi
33903    fi
33904    ;;
33905  esac
33906done
33907if test "$binding_prereqs_failed" = 1 ; then
33908  { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
33909echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
33910   { (exit 1); exit 1; }; }
33911fi
33912
33913{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
33914echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
33915if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
33916  echo $ECHO_N "(cached) $ECHO_C" >&6
33917else
33918   ac_ext=cpp
33919ac_cpp='$CXXCPP $CPPFLAGS'
33920ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33921ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33922ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33923
33924  oldcxxflags="$CXXFLAGS"
33925  CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
33926  cat >conftest.$ac_ext <<_ACEOF
33927/* confdefs.h.  */
33928_ACEOF
33929cat confdefs.h >>conftest.$ac_ext
33930cat >>conftest.$ac_ext <<_ACEOF
33931/* end confdefs.h.  */
33932
33933int
33934main ()
33935{
33936
33937  ;
33938  return 0;
33939}
33940_ACEOF
33941rm -f conftest.$ac_objext
33942if { (ac_try="$ac_compile"
33943case "(($ac_try" in
33944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33945  *) ac_try_echo=$ac_try;;
33946esac
33947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33948  (eval "$ac_compile") 2>conftest.er1
33949  ac_status=$?
33950  grep -v '^ *+' conftest.er1 >conftest.err
33951  rm -f conftest.er1
33952  cat conftest.err >&5
33953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33954  (exit $ac_status); } &&
33955	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33956  { (case "(($ac_try" in
33957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33958  *) ac_try_echo=$ac_try;;
33959esac
33960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33961  (eval "$ac_try") 2>&5
33962  ac_status=$?
33963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33964  (exit $ac_status); }; } &&
33965	 { ac_try='test -s conftest.$ac_objext'
33966  { (case "(($ac_try" in
33967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33968  *) ac_try_echo=$ac_try;;
33969esac
33970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33971  (eval "$ac_try") 2>&5
33972  ac_status=$?
33973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33974  (exit $ac_status); }; }; then
33975  llvm_cv_cxx_visibility_inlines_hidden=yes
33976else
33977  echo "$as_me: failed program was:" >&5
33978sed 's/^/| /' conftest.$ac_ext >&5
33979
33980	llvm_cv_cxx_visibility_inlines_hidden=no
33981fi
33982
33983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33984  CXXFLAGS="$oldcxxflags"
33985  ac_ext=c
33986ac_cpp='$CPP $CPPFLAGS'
33987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33989ac_compiler_gnu=$ac_cv_c_compiler_gnu
33990
33991
33992fi
33993{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
33994echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
33995if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
33996  ENABLE_VISIBILITY_INLINES_HIDDEN=1
33997
33998else
33999  ENABLE_VISIBILITY_INLINES_HIDDEN=0
34000
34001fi
34002
34003
34004if test "$llvm_cv_link_use_r" = "yes" ; then
34005  RPATH="-Wl,-R"
34006else
34007  RPATH="-Wl,-rpath"
34008fi
34009
34010
34011if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
34012  RDYNAMIC="-Wl,-export-dynamic"
34013else
34014  RDYNAMIC=""
34015fi
34016
34017
34018
34019ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34020
34021ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34022
34023ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34024
34025
34026ac_config_files="$ac_config_files Makefile.config"
34027
34028
34029ac_config_files="$ac_config_files llvm.spec"
34030
34031
34032ac_config_files="$ac_config_files docs/doxygen.cfg"
34033
34034
34035ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
34036
34037
34038ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34039
34040
34041ac_config_commands="$ac_config_commands setup"
34042
34043ac_config_commands="$ac_config_commands Makefile"
34044
34045
34046ac_config_commands="$ac_config_commands Makefile.common"
34047
34048
34049ac_config_commands="$ac_config_commands examples/Makefile"
34050
34051
34052ac_config_commands="$ac_config_commands lib/Makefile"
34053
34054
34055ac_config_commands="$ac_config_commands runtime/Makefile"
34056
34057
34058ac_config_commands="$ac_config_commands test/Makefile"
34059
34060
34061ac_config_commands="$ac_config_commands test/Makefile.tests"
34062
34063
34064ac_config_commands="$ac_config_commands unittests/Makefile"
34065
34066
34067ac_config_commands="$ac_config_commands tools/Makefile"
34068
34069
34070ac_config_commands="$ac_config_commands utils/Makefile"
34071
34072
34073ac_config_commands="$ac_config_commands projects/Makefile"
34074
34075
34076ac_config_commands="$ac_config_commands bindings/Makefile"
34077
34078
34079ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34080
34081
34082
34083cat >confcache <<\_ACEOF
34084# This file is a shell script that caches the results of configure
34085# tests run on this system so they can be shared between configure
34086# scripts and configure runs, see configure's option --config-cache.
34087# It is not useful on other systems.  If it contains results you don't
34088# want to keep, you may remove or edit it.
34089#
34090# config.status only pays attention to the cache file if you give it
34091# the --recheck option to rerun configure.
34092#
34093# `ac_cv_env_foo' variables (set or unset) will be overridden when
34094# loading this file, other *unset* `ac_cv_foo' will be assigned the
34095# following values.
34096
34097_ACEOF
34098
34099# The following way of writing the cache mishandles newlines in values,
34100# but we know of no workaround that is simple, portable, and efficient.
34101# So, we kill variables containing newlines.
34102# Ultrix sh set writes to stderr and can't be redirected directly,
34103# and sets the high bit in the cache file unless we assign to the vars.
34104(
34105  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34106    eval ac_val=\$$ac_var
34107    case $ac_val in #(
34108    *${as_nl}*)
34109      case $ac_var in #(
34110      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34111echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34112      esac
34113      case $ac_var in #(
34114      _ | IFS | as_nl) ;; #(
34115      *) $as_unset $ac_var ;;
34116      esac ;;
34117    esac
34118  done
34119
34120  (set) 2>&1 |
34121    case $as_nl`(ac_space=' '; set) 2>&1` in #(
34122    *${as_nl}ac_space=\ *)
34123      # `set' does not quote correctly, so add quotes (double-quote
34124      # substitution turns \\\\ into \\, and sed turns \\ into \).
34125      sed -n \
34126	"s/'/'\\\\''/g;
34127	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34128      ;; #(
34129    *)
34130      # `set' quotes correctly as required by POSIX, so do not add quotes.
34131      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34132      ;;
34133    esac |
34134    sort
34135) |
34136  sed '
34137     /^ac_cv_env_/b end
34138     t clear
34139     :clear
34140     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34141     t end
34142     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34143     :end' >>confcache
34144if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34145  if test -w "$cache_file"; then
34146    test "x$cache_file" != "x/dev/null" &&
34147      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34148echo "$as_me: updating cache $cache_file" >&6;}
34149    cat confcache >$cache_file
34150  else
34151    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34152echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34153  fi
34154fi
34155rm -f confcache
34156
34157test "x$prefix" = xNONE && prefix=$ac_default_prefix
34158# Let make expand exec_prefix.
34159test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34160
34161DEFS=-DHAVE_CONFIG_H
34162
34163ac_libobjs=
34164ac_ltlibobjs=
34165for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34166  # 1. Remove the extension, and $U if already installed.
34167  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34168  ac_i=`echo "$ac_i" | sed "$ac_script"`
34169  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34170  #    will be set to the directory where LIBOBJS objects are built.
34171  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34172  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34173done
34174LIBOBJS=$ac_libobjs
34175
34176LTLIBOBJS=$ac_ltlibobjs
34177
34178
34179if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34180  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34181Usually this means the macro was only invoked conditionally." >&5
34182echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34183Usually this means the macro was only invoked conditionally." >&2;}
34184   { (exit 1); exit 1; }; }
34185fi
34186if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34187  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34188Usually this means the macro was only invoked conditionally." >&5
34189echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34190Usually this means the macro was only invoked conditionally." >&2;}
34191   { (exit 1); exit 1; }; }
34192fi
34193
34194: ${CONFIG_STATUS=./config.status}
34195ac_clean_files_save=$ac_clean_files
34196ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34197{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34198echo "$as_me: creating $CONFIG_STATUS" >&6;}
34199cat >$CONFIG_STATUS <<_ACEOF
34200#! $SHELL
34201# Generated by $as_me.
34202# Run this file to recreate the current configuration.
34203# Compiler output produced by configure, useful for debugging
34204# configure, is in config.log if it exists.
34205
34206debug=false
34207ac_cs_recheck=false
34208ac_cs_silent=false
34209SHELL=\${CONFIG_SHELL-$SHELL}
34210_ACEOF
34211
34212cat >>$CONFIG_STATUS <<\_ACEOF
34213## --------------------- ##
34214## M4sh Initialization.  ##
34215## --------------------- ##
34216
34217# Be Bourne compatible
34218if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34219  emulate sh
34220  NULLCMD=:
34221  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34222  # is contrary to our usage.  Disable this feature.
34223  alias -g '${1+"$@"}'='"$@"'
34224  setopt NO_GLOB_SUBST
34225else
34226  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34227fi
34228BIN_SH=xpg4; export BIN_SH # for Tru64
34229DUALCASE=1; export DUALCASE # for MKS sh
34230
34231
34232# PATH needs CR
34233# Avoid depending upon Character Ranges.
34234as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34235as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34236as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34237as_cr_digits='0123456789'
34238as_cr_alnum=$as_cr_Letters$as_cr_digits
34239
34240# The user is always right.
34241if test "${PATH_SEPARATOR+set}" != set; then
34242  echo "#! /bin/sh" >conf$$.sh
34243  echo  "exit 0"   >>conf$$.sh
34244  chmod +x conf$$.sh
34245  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34246    PATH_SEPARATOR=';'
34247  else
34248    PATH_SEPARATOR=:
34249  fi
34250  rm -f conf$$.sh
34251fi
34252
34253# Support unset when possible.
34254if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34255  as_unset=unset
34256else
34257  as_unset=false
34258fi
34259
34260
34261# IFS
34262# We need space, tab and new line, in precisely that order.  Quoting is
34263# there to prevent editors from complaining about space-tab.
34264# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34265# splitting by setting IFS to empty value.)
34266as_nl='
34267'
34268IFS=" ""	$as_nl"
34269
34270# Find who we are.  Look in the path if we contain no directory separator.
34271case $0 in
34272  *[\\/]* ) as_myself=$0 ;;
34273  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34274for as_dir in $PATH
34275do
34276  IFS=$as_save_IFS
34277  test -z "$as_dir" && as_dir=.
34278  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34279done
34280IFS=$as_save_IFS
34281
34282     ;;
34283esac
34284# We did not find ourselves, most probably we were run as `sh COMMAND'
34285# in which case we are not to be found in the path.
34286if test "x$as_myself" = x; then
34287  as_myself=$0
34288fi
34289if test ! -f "$as_myself"; then
34290  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34291  { (exit 1); exit 1; }
34292fi
34293
34294# Work around bugs in pre-3.0 UWIN ksh.
34295for as_var in ENV MAIL MAILPATH
34296do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34297done
34298PS1='$ '
34299PS2='> '
34300PS4='+ '
34301
34302# NLS nuisances.
34303for as_var in \
34304  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34305  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34306  LC_TELEPHONE LC_TIME
34307do
34308  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34309    eval $as_var=C; export $as_var
34310  else
34311    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34312  fi
34313done
34314
34315# Required to use basename.
34316if expr a : '\(a\)' >/dev/null 2>&1 &&
34317   test "X`expr 00001 : '.*\(...\)'`" = X001; then
34318  as_expr=expr
34319else
34320  as_expr=false
34321fi
34322
34323if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34324  as_basename=basename
34325else
34326  as_basename=false
34327fi
34328
34329
34330# Name of the executable.
34331as_me=`$as_basename -- "$0" ||
34332$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34333	 X"$0" : 'X\(//\)$' \| \
34334	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34335echo X/"$0" |
34336    sed '/^.*\/\([^/][^/]*\)\/*$/{
34337	    s//\1/
34338	    q
34339	  }
34340	  /^X\/\(\/\/\)$/{
34341	    s//\1/
34342	    q
34343	  }
34344	  /^X\/\(\/\).*/{
34345	    s//\1/
34346	    q
34347	  }
34348	  s/.*/./; q'`
34349
34350# CDPATH.
34351$as_unset CDPATH
34352
34353
34354
34355  as_lineno_1=$LINENO
34356  as_lineno_2=$LINENO
34357  test "x$as_lineno_1" != "x$as_lineno_2" &&
34358  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34359
34360  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34361  # uniformly replaced by the line number.  The first 'sed' inserts a
34362  # line-number line after each line using $LINENO; the second 'sed'
34363  # does the real work.  The second script uses 'N' to pair each
34364  # line-number line with the line containing $LINENO, and appends
34365  # trailing '-' during substitution so that $LINENO is not a special
34366  # case at line end.
34367  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34368  # scripts with optimization help from Paolo Bonzini.  Blame Lee
34369  # E. McMahon (1931-1989) for sed's syntax.  :-)
34370  sed -n '
34371    p
34372    /[$]LINENO/=
34373  ' <$as_myself |
34374    sed '
34375      s/[$]LINENO.*/&-/
34376      t lineno
34377      b
34378      :lineno
34379      N
34380      :loop
34381      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34382      t loop
34383      s/-\n.*//
34384    ' >$as_me.lineno &&
34385  chmod +x "$as_me.lineno" ||
34386    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34387   { (exit 1); exit 1; }; }
34388
34389  # Don't try to exec as it changes $[0], causing all sort of problems
34390  # (the dirname of $[0] is not the place where we might find the
34391  # original and so on.  Autoconf is especially sensitive to this).
34392  . "./$as_me.lineno"
34393  # Exit status is that of the last command.
34394  exit
34395}
34396
34397
34398if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34399  as_dirname=dirname
34400else
34401  as_dirname=false
34402fi
34403
34404ECHO_C= ECHO_N= ECHO_T=
34405case `echo -n x` in
34406-n*)
34407  case `echo 'x\c'` in
34408  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
34409  *)   ECHO_C='\c';;
34410  esac;;
34411*)
34412  ECHO_N='-n';;
34413esac
34414
34415if expr a : '\(a\)' >/dev/null 2>&1 &&
34416   test "X`expr 00001 : '.*\(...\)'`" = X001; then
34417  as_expr=expr
34418else
34419  as_expr=false
34420fi
34421
34422rm -f conf$$ conf$$.exe conf$$.file
34423if test -d conf$$.dir; then
34424  rm -f conf$$.dir/conf$$.file
34425else
34426  rm -f conf$$.dir
34427  mkdir conf$$.dir
34428fi
34429echo >conf$$.file
34430if ln -s conf$$.file conf$$ 2>/dev/null; then
34431  as_ln_s='ln -s'
34432  # ... but there are two gotchas:
34433  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34434  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34435  # In both cases, we have to default to `cp -p'.
34436  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34437    as_ln_s='cp -p'
34438elif ln conf$$.file conf$$ 2>/dev/null; then
34439  as_ln_s=ln
34440else
34441  as_ln_s='cp -p'
34442fi
34443rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34444rmdir conf$$.dir 2>/dev/null
34445
34446if mkdir -p . 2>/dev/null; then
34447  as_mkdir_p=:
34448else
34449  test -d ./-p && rmdir ./-p
34450  as_mkdir_p=false
34451fi
34452
34453# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34454# systems may use methods other than mode bits to determine executability.
34455cat >conf$$.file <<_ASEOF
34456#! /bin/sh
34457exit 0
34458_ASEOF
34459chmod +x conf$$.file
34460if test -x conf$$.file >/dev/null 2>&1; then
34461  as_executable_p="test -x"
34462else
34463  as_executable_p=:
34464fi
34465rm -f conf$$.file
34466
34467# Sed expression to map a string onto a valid CPP name.
34468as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34469
34470# Sed expression to map a string onto a valid variable name.
34471as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34472
34473
34474exec 6>&1
34475
34476# Save the log message, to keep $[0] and so on meaningful, and to
34477# report actual input values of CONFIG_FILES etc. instead of their
34478# values after options handling.
34479ac_log="
34480This file was extended by llvm $as_me 2.6svn, which was
34481generated by GNU Autoconf 2.60.  Invocation command line was
34482
34483  CONFIG_FILES    = $CONFIG_FILES
34484  CONFIG_HEADERS  = $CONFIG_HEADERS
34485  CONFIG_LINKS    = $CONFIG_LINKS
34486  CONFIG_COMMANDS = $CONFIG_COMMANDS
34487  $ $0 $@
34488
34489on `(hostname || uname -n) 2>/dev/null | sed 1q`
34490"
34491
34492_ACEOF
34493
34494cat >>$CONFIG_STATUS <<_ACEOF
34495# Files that config.status was made for.
34496config_files="$ac_config_files"
34497config_headers="$ac_config_headers"
34498config_commands="$ac_config_commands"
34499
34500_ACEOF
34501
34502cat >>$CONFIG_STATUS <<\_ACEOF
34503ac_cs_usage="\
34504\`$as_me' instantiates files from templates according to the
34505current configuration.
34506
34507Usage: $0 [OPTIONS] [FILE]...
34508
34509  -h, --help       print this help, then exit
34510  -V, --version    print version number, then exit
34511  -q, --quiet      do not print progress messages
34512  -d, --debug      don't remove temporary files
34513      --recheck    update $as_me by reconfiguring in the same conditions
34514  --file=FILE[:TEMPLATE]
34515		   instantiate the configuration file FILE
34516  --header=FILE[:TEMPLATE]
34517		   instantiate the configuration header FILE
34518
34519Configuration files:
34520$config_files
34521
34522Configuration headers:
34523$config_headers
34524
34525Configuration commands:
34526$config_commands
34527
34528Report bugs to <bug-autoconf@gnu.org>."
34529
34530_ACEOF
34531cat >>$CONFIG_STATUS <<_ACEOF
34532ac_cs_version="\\
34533llvm config.status 2.6svn
34534configured by $0, generated by GNU Autoconf 2.60,
34535  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34536
34537Copyright (C) 2006 Free Software Foundation, Inc.
34538This config.status script is free software; the Free Software Foundation
34539gives unlimited permission to copy, distribute and modify it."
34540
34541ac_pwd='$ac_pwd'
34542srcdir='$srcdir'
34543INSTALL='$INSTALL'
34544_ACEOF
34545
34546cat >>$CONFIG_STATUS <<\_ACEOF
34547# If no file are specified by the user, then we need to provide default
34548# value.  By we need to know if files were specified by the user.
34549ac_need_defaults=:
34550while test $# != 0
34551do
34552  case $1 in
34553  --*=*)
34554    ac_option=`expr "X$1" : 'X\([^=]*\)='`
34555    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34556    ac_shift=:
34557    ;;
34558  *)
34559    ac_option=$1
34560    ac_optarg=$2
34561    ac_shift=shift
34562    ;;
34563  esac
34564
34565  case $ac_option in
34566  # Handling of the options.
34567  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34568    ac_cs_recheck=: ;;
34569  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34570    echo "$ac_cs_version"; exit ;;
34571  --debug | --debu | --deb | --de | --d | -d )
34572    debug=: ;;
34573  --file | --fil | --fi | --f )
34574    $ac_shift
34575    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34576    ac_need_defaults=false;;
34577  --header | --heade | --head | --hea )
34578    $ac_shift
34579    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34580    ac_need_defaults=false;;
34581  --he | --h)
34582    # Conflict between --help and --header
34583    { echo "$as_me: error: ambiguous option: $1
34584Try \`$0 --help' for more information." >&2
34585   { (exit 1); exit 1; }; };;
34586  --help | --hel | -h )
34587    echo "$ac_cs_usage"; exit ;;
34588  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34589  | -silent | --silent | --silen | --sile | --sil | --si | --s)
34590    ac_cs_silent=: ;;
34591
34592  # This is an error.
34593  -*) { echo "$as_me: error: unrecognized option: $1
34594Try \`$0 --help' for more information." >&2
34595   { (exit 1); exit 1; }; } ;;
34596
34597  *) ac_config_targets="$ac_config_targets $1"
34598     ac_need_defaults=false ;;
34599
34600  esac
34601  shift
34602done
34603
34604ac_configure_extra_args=
34605
34606if $ac_cs_silent; then
34607  exec 6>/dev/null
34608  ac_configure_extra_args="$ac_configure_extra_args --silent"
34609fi
34610
34611_ACEOF
34612cat >>$CONFIG_STATUS <<_ACEOF
34613if \$ac_cs_recheck; then
34614  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34615  CONFIG_SHELL=$SHELL
34616  export CONFIG_SHELL
34617  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34618fi
34619
34620_ACEOF
34621cat >>$CONFIG_STATUS <<\_ACEOF
34622exec 5>>config.log
34623{
34624  echo
34625  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34626## Running $as_me. ##
34627_ASBOX
34628  echo "$ac_log"
34629} >&5
34630
34631_ACEOF
34632cat >>$CONFIG_STATUS <<_ACEOF
34633#
34634# INIT-COMMANDS
34635#
34636llvm_src="${srcdir}"
34637
34638_ACEOF
34639
34640cat >>$CONFIG_STATUS <<\_ACEOF
34641
34642# Handling of arguments.
34643for ac_config_target in $ac_config_targets
34644do
34645  case $ac_config_target in
34646    "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34647    "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34648    "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
34649    "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34650    "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34651    "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34652    "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
34653    "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34654    "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34655    "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34656    "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34657    "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34658    "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34659    "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34660    "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34661    "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34662    "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
34663    "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34664    "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34665    "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34666    "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34667    "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
34668
34669  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34670echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34671   { (exit 1); exit 1; }; };;
34672  esac
34673done
34674
34675
34676# If the user did not use the arguments to specify the items to instantiate,
34677# then the envvar interface is used.  Set only those that are not.
34678# We use the long form for the default assignment because of an extremely
34679# bizarre bug on SunOS 4.1.3.
34680if $ac_need_defaults; then
34681  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34682  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34683  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34684fi
34685
34686# Have a temporary directory for convenience.  Make it in the build tree
34687# simply because there is no reason against having it here, and in addition,
34688# creating and moving files from /tmp can sometimes cause problems.
34689# Hook for its removal unless debugging.
34690# Note that there is a small window in which the directory will not be cleaned:
34691# after its creation but before its name has been assigned to `$tmp'.
34692$debug ||
34693{
34694  tmp=
34695  trap 'exit_status=$?
34696  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34697' 0
34698  trap '{ (exit 1); exit 1; }' 1 2 13 15
34699}
34700# Create a (secure) tmp directory for tmp files.
34701
34702{
34703  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34704  test -n "$tmp" && test -d "$tmp"
34705}  ||
34706{
34707  tmp=./conf$$-$RANDOM
34708  (umask 077 && mkdir "$tmp")
34709} ||
34710{
34711   echo "$me: cannot create a temporary directory in ." >&2
34712   { (exit 1); exit 1; }
34713}
34714
34715#
34716# Set up the sed scripts for CONFIG_FILES section.
34717#
34718
34719# No need to generate the scripts if there are no CONFIG_FILES.
34720# This happens for instance when ./config.status config.h
34721if test -n "$CONFIG_FILES"; then
34722
34723_ACEOF
34724
34725
34726
34727ac_delim='%!_!# '
34728for ac_last_try in false false false false false :; do
34729  cat >conf$$subs.sed <<_ACEOF
34730SHELL!$SHELL$ac_delim
34731PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34732PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34733PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34734PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34735PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34736PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34737exec_prefix!$exec_prefix$ac_delim
34738prefix!$prefix$ac_delim
34739program_transform_name!$program_transform_name$ac_delim
34740bindir!$bindir$ac_delim
34741sbindir!$sbindir$ac_delim
34742libexecdir!$libexecdir$ac_delim
34743datarootdir!$datarootdir$ac_delim
34744datadir!$datadir$ac_delim
34745sysconfdir!$sysconfdir$ac_delim
34746sharedstatedir!$sharedstatedir$ac_delim
34747localstatedir!$localstatedir$ac_delim
34748includedir!$includedir$ac_delim
34749oldincludedir!$oldincludedir$ac_delim
34750docdir!$docdir$ac_delim
34751infodir!$infodir$ac_delim
34752htmldir!$htmldir$ac_delim
34753dvidir!$dvidir$ac_delim
34754pdfdir!$pdfdir$ac_delim
34755psdir!$psdir$ac_delim
34756libdir!$libdir$ac_delim
34757localedir!$localedir$ac_delim
34758mandir!$mandir$ac_delim
34759DEFS!$DEFS$ac_delim
34760ECHO_C!$ECHO_C$ac_delim
34761ECHO_N!$ECHO_N$ac_delim
34762ECHO_T!$ECHO_T$ac_delim
34763LIBS!$LIBS$ac_delim
34764build_alias!$build_alias$ac_delim
34765host_alias!$host_alias$ac_delim
34766target_alias!$target_alias$ac_delim
34767LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34768subdirs!$subdirs$ac_delim
34769build!$build$ac_delim
34770build_cpu!$build_cpu$ac_delim
34771build_vendor!$build_vendor$ac_delim
34772build_os!$build_os$ac_delim
34773host!$host$ac_delim
34774host_cpu!$host_cpu$ac_delim
34775host_vendor!$host_vendor$ac_delim
34776host_os!$host_os$ac_delim
34777target!$target$ac_delim
34778target_cpu!$target_cpu$ac_delim
34779target_vendor!$target_vendor$ac_delim
34780target_os!$target_os$ac_delim
34781OS!$OS$ac_delim
34782LINKALL!$LINKALL$ac_delim
34783NOLINKALL!$NOLINKALL$ac_delim
34784LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34785LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34786ARCH!$ARCH$ac_delim
34787ENDIAN!$ENDIAN$ac_delim
34788CC!$CC$ac_delim
34789CFLAGS!$CFLAGS$ac_delim
34790LDFLAGS!$LDFLAGS$ac_delim
34791CPPFLAGS!$CPPFLAGS$ac_delim
34792ac_ct_CC!$ac_ct_CC$ac_delim
34793EXEEXT!$EXEEXT$ac_delim
34794OBJEXT!$OBJEXT$ac_delim
34795CPP!$CPP$ac_delim
34796GREP!$GREP$ac_delim
34797EGREP!$EGREP$ac_delim
34798LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34799BUILD_CC!$BUILD_CC$ac_delim
34800BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34801BUILD_CXX!$BUILD_CXX$ac_delim
34802CVSBUILD!$CVSBUILD$ac_delim
34803ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34804ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
34805DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34806ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34807EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34808DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34809JIT!$JIT$ac_delim
34810TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34811ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34812ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34813ENABLE_PIC!$ENABLE_PIC$ac_delim
34814TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34815ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34816EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34817BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
34818CXX!$CXX$ac_delim
34819CXXFLAGS!$CXXFLAGS$ac_delim
34820ac_ct_CXX!$ac_ct_CXX$ac_delim
34821NM!$NM$ac_delim
34822ifGNUmake!$ifGNUmake$ac_delim
34823LN_S!$LN_S$ac_delim
34824CMP!$CMP$ac_delim
34825CP!$CP$ac_delim
34826DATE!$DATE$ac_delim
34827_ACEOF
34828
34829  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34830    break
34831  elif $ac_last_try; then
34832    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34833echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34834   { (exit 1); exit 1; }; }
34835  else
34836    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34837  fi
34838done
34839
34840ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34841if test -n "$ac_eof"; then
34842  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34843  ac_eof=`expr $ac_eof + 1`
34844fi
34845
34846cat >>$CONFIG_STATUS <<_ACEOF
34847cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34848/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34849_ACEOF
34850sed '
34851s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34852s/^/s,@/; s/!/@,|#_!!_#|/
34853:n
34854t n
34855s/'"$ac_delim"'$/,g/; t
34856s/$/\\/; p
34857N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34858' >>$CONFIG_STATUS <conf$$subs.sed
34859rm -f conf$$subs.sed
34860cat >>$CONFIG_STATUS <<_ACEOF
34861CEOF$ac_eof
34862_ACEOF
34863
34864
34865ac_delim='%!_!# '
34866for ac_last_try in false false false false false :; do
34867  cat >conf$$subs.sed <<_ACEOF
34868FIND!$FIND$ac_delim
34869MKDIR!$MKDIR$ac_delim
34870MV!$MV$ac_delim
34871RANLIB!$RANLIB$ac_delim
34872RM!$RM$ac_delim
34873SED!$SED$ac_delim
34874TAR!$TAR$ac_delim
34875BINPWD!$BINPWD$ac_delim
34876GRAPHVIZ!$GRAPHVIZ$ac_delim
34877DOT!$DOT$ac_delim
34878GV!$GV$ac_delim
34879DOTTY!$DOTTY$ac_delim
34880PERL!$PERL$ac_delim
34881HAVE_PERL!$HAVE_PERL$ac_delim
34882INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34883INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34884INSTALL_DATA!$INSTALL_DATA$ac_delim
34885BZIP2!$BZIP2$ac_delim
34886DOXYGEN!$DOXYGEN$ac_delim
34887GROFF!$GROFF$ac_delim
34888GZIP!$GZIP$ac_delim
34889POD2HTML!$POD2HTML$ac_delim
34890POD2MAN!$POD2MAN$ac_delim
34891RUNTEST!$RUNTEST$ac_delim
34892TCLSH!$TCLSH$ac_delim
34893ZIP!$ZIP$ac_delim
34894OCAMLC!$OCAMLC$ac_delim
34895OCAMLOPT!$OCAMLOPT$ac_delim
34896OCAMLDEP!$OCAMLDEP$ac_delim
34897OCAMLDOC!$OCAMLDOC$ac_delim
34898GAS!$GAS$ac_delim
34899INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34900INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34901CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34902CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34903LIBADD_DL!$LIBADD_DL$ac_delim
34904ECHO!$ECHO$ac_delim
34905AR!$AR$ac_delim
34906STRIP!$STRIP$ac_delim
34907CXXCPP!$CXXCPP$ac_delim
34908F77!$F77$ac_delim
34909FFLAGS!$FFLAGS$ac_delim
34910ac_ct_F77!$ac_ct_F77$ac_delim
34911LIBTOOL!$LIBTOOL$ac_delim
34912LLVMGCC!$LLVMGCC$ac_delim
34913LLVMGXX!$LLVMGXX$ac_delim
34914LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
34915LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
34916USE_UDIS86!$USE_UDIS86$ac_delim
34917HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34918HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34919ALLOCA!$ALLOCA$ac_delim
34920MMAP_FILE!$MMAP_FILE$ac_delim
34921LLVMCC1!$LLVMCC1$ac_delim
34922LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34923LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34924LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
34925LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34926LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34927LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
34928SHLIBEXT!$SHLIBEXT$ac_delim
34929LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34930LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34931LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34932LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34933LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34934LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34935LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34936LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34937LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34938LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34939BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
34940ALL_BINDINGS!$ALL_BINDINGS$ac_delim
34941OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
34942ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
34943RPATH!$RPATH$ac_delim
34944RDYNAMIC!$RDYNAMIC$ac_delim
34945LIBOBJS!$LIBOBJS$ac_delim
34946LTLIBOBJS!$LTLIBOBJS$ac_delim
34947_ACEOF
34948
34949  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
34950    break
34951  elif $ac_last_try; then
34952    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34953echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34954   { (exit 1); exit 1; }; }
34955  else
34956    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34957  fi
34958done
34959
34960ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34961if test -n "$ac_eof"; then
34962  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34963  ac_eof=`expr $ac_eof + 1`
34964fi
34965
34966cat >>$CONFIG_STATUS <<_ACEOF
34967cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34968/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34969_ACEOF
34970sed '
34971s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34972s/^/s,@/; s/!/@,|#_!!_#|/
34973:n
34974t n
34975s/'"$ac_delim"'$/,g/; t
34976s/$/\\/; p
34977N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34978' >>$CONFIG_STATUS <conf$$subs.sed
34979rm -f conf$$subs.sed
34980cat >>$CONFIG_STATUS <<_ACEOF
34981:end
34982s/|#_!!_#|//g
34983CEOF$ac_eof
34984_ACEOF
34985
34986
34987# VPATH may cause trouble with some makes, so we remove $(srcdir),
34988# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34989# trailing colons and then remove the whole line if VPATH becomes empty
34990# (actually we leave an empty line to preserve line numbers).
34991if test "x$srcdir" = x.; then
34992  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
34993s/:*\$(srcdir):*/:/
34994s/:*\${srcdir}:*/:/
34995s/:*@srcdir@:*/:/
34996s/^\([^=]*=[	 ]*\):*/\1/
34997s/:*$//
34998s/^[^=]*=[	 ]*$//
34999}'
35000fi
35001
35002cat >>$CONFIG_STATUS <<\_ACEOF
35003fi # test -n "$CONFIG_FILES"
35004
35005
35006for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35007do
35008  case $ac_tag in
35009  :[FHLC]) ac_mode=$ac_tag; continue;;
35010  esac
35011  case $ac_mode$ac_tag in
35012  :[FHL]*:*);;
35013  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35014echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35015   { (exit 1); exit 1; }; };;
35016  :[FH]-) ac_tag=-:-;;
35017  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35018  esac
35019  ac_save_IFS=$IFS
35020  IFS=:
35021  set x $ac_tag
35022  IFS=$ac_save_IFS
35023  shift
35024  ac_file=$1
35025  shift
35026
35027  case $ac_mode in
35028  :L) ac_source=$1;;
35029  :[FH])
35030    ac_file_inputs=
35031    for ac_f
35032    do
35033      case $ac_f in
35034      -) ac_f="$tmp/stdin";;
35035      *) # Look for the file first in the build tree, then in the source tree
35036	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
35037	 # because $ac_f cannot contain `:'.
35038	 test -f "$ac_f" ||
35039	   case $ac_f in
35040	   [\\/$]*) false;;
35041	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35042	   esac ||
35043	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35044echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35045   { (exit 1); exit 1; }; };;
35046      esac
35047      ac_file_inputs="$ac_file_inputs $ac_f"
35048    done
35049
35050    # Let's still pretend it is `configure' which instantiates (i.e., don't
35051    # use $as_me), people would be surprised to read:
35052    #    /* config.h.  Generated by config.status.  */
35053    configure_input="Generated from "`IFS=:
35054	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35055    if test x"$ac_file" != x-; then
35056      configure_input="$ac_file.  $configure_input"
35057      { echo "$as_me:$LINENO: creating $ac_file" >&5
35058echo "$as_me: creating $ac_file" >&6;}
35059    fi
35060
35061    case $ac_tag in
35062    *:-:* | *:-) cat >"$tmp/stdin";;
35063    esac
35064    ;;
35065  esac
35066
35067  ac_dir=`$as_dirname -- "$ac_file" ||
35068$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35069	 X"$ac_file" : 'X\(//\)[^/]' \| \
35070	 X"$ac_file" : 'X\(//\)$' \| \
35071	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35072echo X"$ac_file" |
35073    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35074	    s//\1/
35075	    q
35076	  }
35077	  /^X\(\/\/\)[^/].*/{
35078	    s//\1/
35079	    q
35080	  }
35081	  /^X\(\/\/\)$/{
35082	    s//\1/
35083	    q
35084	  }
35085	  /^X\(\/\).*/{
35086	    s//\1/
35087	    q
35088	  }
35089	  s/.*/./; q'`
35090  { as_dir="$ac_dir"
35091  case $as_dir in #(
35092  -*) as_dir=./$as_dir;;
35093  esac
35094  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35095    as_dirs=
35096    while :; do
35097      case $as_dir in #(
35098      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35099      *) as_qdir=$as_dir;;
35100      esac
35101      as_dirs="'$as_qdir' $as_dirs"
35102      as_dir=`$as_dirname -- "$as_dir" ||
35103$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35104	 X"$as_dir" : 'X\(//\)[^/]' \| \
35105	 X"$as_dir" : 'X\(//\)$' \| \
35106	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35107echo X"$as_dir" |
35108    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35109	    s//\1/
35110	    q
35111	  }
35112	  /^X\(\/\/\)[^/].*/{
35113	    s//\1/
35114	    q
35115	  }
35116	  /^X\(\/\/\)$/{
35117	    s//\1/
35118	    q
35119	  }
35120	  /^X\(\/\).*/{
35121	    s//\1/
35122	    q
35123	  }
35124	  s/.*/./; q'`
35125      test -d "$as_dir" && break
35126    done
35127    test -z "$as_dirs" || eval "mkdir $as_dirs"
35128  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35129echo "$as_me: error: cannot create directory $as_dir" >&2;}
35130   { (exit 1); exit 1; }; }; }
35131  ac_builddir=.
35132
35133case "$ac_dir" in
35134.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35135*)
35136  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35137  # A ".." for each directory in $ac_dir_suffix.
35138  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35139  case $ac_top_builddir_sub in
35140  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35141  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35142  esac ;;
35143esac
35144ac_abs_top_builddir=$ac_pwd
35145ac_abs_builddir=$ac_pwd$ac_dir_suffix
35146# for backward compatibility:
35147ac_top_builddir=$ac_top_build_prefix
35148
35149case $srcdir in
35150  .)  # We are building in place.
35151    ac_srcdir=.
35152    ac_top_srcdir=$ac_top_builddir_sub
35153    ac_abs_top_srcdir=$ac_pwd ;;
35154  [\\/]* | ?:[\\/]* )  # Absolute name.
35155    ac_srcdir=$srcdir$ac_dir_suffix;
35156    ac_top_srcdir=$srcdir
35157    ac_abs_top_srcdir=$srcdir ;;
35158  *) # Relative name.
35159    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35160    ac_top_srcdir=$ac_top_build_prefix$srcdir
35161    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35162esac
35163ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35164
35165
35166  case $ac_mode in
35167  :F)
35168  #
35169  # CONFIG_FILE
35170  #
35171
35172  case $INSTALL in
35173  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35174  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35175  esac
35176_ACEOF
35177
35178cat >>$CONFIG_STATUS <<\_ACEOF
35179# If the template does not know about datarootdir, expand it.
35180# FIXME: This hack should be removed a few years after 2.60.
35181ac_datarootdir_hack=; ac_datarootdir_seen=
35182
35183case `sed -n '/datarootdir/ {
35184  p
35185  q
35186}
35187/@datadir@/p
35188/@docdir@/p
35189/@infodir@/p
35190/@localedir@/p
35191/@mandir@/p
35192' $ac_file_inputs` in
35193*datarootdir*) ac_datarootdir_seen=yes;;
35194*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35195  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35196echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35197_ACEOF
35198cat >>$CONFIG_STATUS <<_ACEOF
35199  ac_datarootdir_hack='
35200  s&@datadir@&$datadir&g
35201  s&@docdir@&$docdir&g
35202  s&@infodir@&$infodir&g
35203  s&@localedir@&$localedir&g
35204  s&@mandir@&$mandir&g
35205    s&\\\${datarootdir}&$datarootdir&g' ;;
35206esac
35207_ACEOF
35208
35209# Neutralize VPATH when `$srcdir' = `.'.
35210# Shell code in configure.ac might set extrasub.
35211# FIXME: do we really want to maintain this feature?
35212cat >>$CONFIG_STATUS <<_ACEOF
35213  sed "$ac_vpsub
35214$extrasub
35215_ACEOF
35216cat >>$CONFIG_STATUS <<\_ACEOF
35217:t
35218/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35219s&@configure_input@&$configure_input&;t t
35220s&@top_builddir@&$ac_top_builddir_sub&;t t
35221s&@srcdir@&$ac_srcdir&;t t
35222s&@abs_srcdir@&$ac_abs_srcdir&;t t
35223s&@top_srcdir@&$ac_top_srcdir&;t t
35224s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35225s&@builddir@&$ac_builddir&;t t
35226s&@abs_builddir@&$ac_abs_builddir&;t t
35227s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35228s&@INSTALL@&$ac_INSTALL&;t t
35229$ac_datarootdir_hack
35230" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35231
35232test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35233  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35234  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35235  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35236which seems to be undefined.  Please make sure it is defined." >&5
35237echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35238which seems to be undefined.  Please make sure it is defined." >&2;}
35239
35240  rm -f "$tmp/stdin"
35241  case $ac_file in
35242  -) cat "$tmp/out"; rm -f "$tmp/out";;
35243  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35244  esac
35245 ;;
35246  :H)
35247  #
35248  # CONFIG_HEADER
35249  #
35250_ACEOF
35251
35252# Transform confdefs.h into a sed script `conftest.defines', that
35253# substitutes the proper values into config.h.in to produce config.h.
35254rm -f conftest.defines conftest.tail
35255# First, append a space to every undef/define line, to ease matching.
35256echo 's/$/ /' >conftest.defines
35257# Then, protect against being on the right side of a sed subst, or in
35258# an unquoted here document, in config.status.  If some macros were
35259# called several times there might be several #defines for the same
35260# symbol, which is useless.  But do not sort them, since the last
35261# AC_DEFINE must be honored.
35262ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35263# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35264# NAME is the cpp macro being defined, VALUE is the value it is being given.
35265# PARAMS is the parameter list in the macro definition--in most cases, it's
35266# just an empty string.
35267ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
35268ac_dB='\\)[	 (].*,\\1define\\2'
35269ac_dC=' '
35270ac_dD=' ,'
35271
35272uniq confdefs.h |
35273  sed -n '
35274	t rset
35275	:rset
35276	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
35277	t ok
35278	d
35279	:ok
35280	s/[\\&,]/\\&/g
35281	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35282	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35283  ' >>conftest.defines
35284
35285# Remove the space that was appended to ease matching.
35286# Then replace #undef with comments.  This is necessary, for
35287# example, in the case of _POSIX_SOURCE, which is predefined and required
35288# on some systems where configure will not decide to define it.
35289# (The regexp can be short, since the line contains either #define or #undef.)
35290echo 's/ $//
35291s,^[	 #]*u.*,/* & */,' >>conftest.defines
35292
35293# Break up conftest.defines:
35294ac_max_sed_lines=50
35295
35296# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35297# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35298# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35299# et cetera.
35300ac_in='$ac_file_inputs'
35301ac_out='"$tmp/out1"'
35302ac_nxt='"$tmp/out2"'
35303
35304while :
35305do
35306  # Write a here document:
35307    cat >>$CONFIG_STATUS <<_ACEOF
35308    # First, check the format of the line:
35309    cat >"\$tmp/defines.sed" <<\\CEOF
35310/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
35311/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
35312b
35313:def
35314_ACEOF
35315  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35316  echo 'CEOF
35317    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35318  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35319  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35320  grep . conftest.tail >/dev/null || break
35321  rm -f conftest.defines
35322  mv conftest.tail conftest.defines
35323done
35324rm -f conftest.defines conftest.tail
35325
35326echo "ac_result=$ac_in" >>$CONFIG_STATUS
35327cat >>$CONFIG_STATUS <<\_ACEOF
35328  if test x"$ac_file" != x-; then
35329    echo "/* $configure_input  */" >"$tmp/config.h"
35330    cat "$ac_result" >>"$tmp/config.h"
35331    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35332      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35333echo "$as_me: $ac_file is unchanged" >&6;}
35334    else
35335      rm -f $ac_file
35336      mv "$tmp/config.h" $ac_file
35337    fi
35338  else
35339    echo "/* $configure_input  */"
35340    cat "$ac_result"
35341  fi
35342  rm -f "$tmp/out12"
35343 ;;
35344
35345  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35346echo "$as_me: executing $ac_file commands" >&6;}
35347 ;;
35348  esac
35349
35350
35351  case $ac_file$ac_mode in
35352    "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35353   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35354    "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35355   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35356    "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35357   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35358    "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35359   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35360    "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35361   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35362    "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35363   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35364    "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35365   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35366    "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35367   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
35368    "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35369   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35370    "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35371   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35372    "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35373   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35374    "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35375   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35376    "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35377   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35378
35379  esac
35380done # for ac_tag
35381
35382
35383{ (exit 0); exit 0; }
35384_ACEOF
35385chmod +x $CONFIG_STATUS
35386ac_clean_files=$ac_clean_files_save
35387
35388
35389# configure is writing to config.log, and then calls config.status.
35390# config.status does its own redirection, appending to config.log.
35391# Unfortunately, on DOS this fails, as config.log is still kept open
35392# by configure, so config.status won't be able to write to it; its
35393# output is simply discarded.  So we exec the FD to /dev/null,
35394# effectively closing config.log, so it can be properly (re)opened and
35395# appended to by config.status.  When coming back to configure, we
35396# need to make the FD available again.
35397if test "$no_create" != yes; then
35398  ac_cs_success=:
35399  ac_config_status_args=
35400  test "$silent" = yes &&
35401    ac_config_status_args="$ac_config_status_args --quiet"
35402  exec 5>/dev/null
35403  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35404  exec 5>>config.log
35405  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35406  # would make configure fail if this is the last instruction.
35407  $ac_cs_success || { (exit 1); exit 1; }
35408fi
35409
35410#
35411# CONFIG_SUBDIRS section.
35412#
35413if test "$no_recursion" != yes; then
35414
35415  # Remove --cache-file and --srcdir arguments so they do not pile up.
35416  ac_sub_configure_args=
35417  ac_prev=
35418  eval "set x $ac_configure_args"
35419  shift
35420  for ac_arg
35421  do
35422    if test -n "$ac_prev"; then
35423      ac_prev=
35424      continue
35425    fi
35426    case $ac_arg in
35427    -cache-file | --cache-file | --cache-fil | --cache-fi \
35428    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35429      ac_prev=cache_file ;;
35430    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35431    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35432    | --c=*)
35433      ;;
35434    --config-cache | -C)
35435      ;;
35436    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35437      ac_prev=srcdir ;;
35438    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35439      ;;
35440    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35441      ac_prev=prefix ;;
35442    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35443      ;;
35444    *)
35445      case $ac_arg in
35446      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35447      esac
35448      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35449    esac
35450  done
35451
35452  # Always prepend --prefix to ensure using the same prefix
35453  # in subdir configurations.
35454  ac_arg="--prefix=$prefix"
35455  case $ac_arg in
35456  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35457  esac
35458  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35459
35460  ac_popdir=`pwd`
35461  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35462
35463    # Do not complain, so a configure script can configure whichever
35464    # parts of a large source tree are present.
35465    test -d "$srcdir/$ac_dir" || continue
35466
35467    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35468    echo "$as_me:$LINENO: $ac_msg" >&5
35469    echo "$ac_msg" >&6
35470    { as_dir="$ac_dir"
35471  case $as_dir in #(
35472  -*) as_dir=./$as_dir;;
35473  esac
35474  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35475    as_dirs=
35476    while :; do
35477      case $as_dir in #(
35478      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35479      *) as_qdir=$as_dir;;
35480      esac
35481      as_dirs="'$as_qdir' $as_dirs"
35482      as_dir=`$as_dirname -- "$as_dir" ||
35483$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35484	 X"$as_dir" : 'X\(//\)[^/]' \| \
35485	 X"$as_dir" : 'X\(//\)$' \| \
35486	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35487echo X"$as_dir" |
35488    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35489	    s//\1/
35490	    q
35491	  }
35492	  /^X\(\/\/\)[^/].*/{
35493	    s//\1/
35494	    q
35495	  }
35496	  /^X\(\/\/\)$/{
35497	    s//\1/
35498	    q
35499	  }
35500	  /^X\(\/\).*/{
35501	    s//\1/
35502	    q
35503	  }
35504	  s/.*/./; q'`
35505      test -d "$as_dir" && break
35506    done
35507    test -z "$as_dirs" || eval "mkdir $as_dirs"
35508  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35509echo "$as_me: error: cannot create directory $as_dir" >&2;}
35510   { (exit 1); exit 1; }; }; }
35511    ac_builddir=.
35512
35513case "$ac_dir" in
35514.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35515*)
35516  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35517  # A ".." for each directory in $ac_dir_suffix.
35518  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35519  case $ac_top_builddir_sub in
35520  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35521  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35522  esac ;;
35523esac
35524ac_abs_top_builddir=$ac_pwd
35525ac_abs_builddir=$ac_pwd$ac_dir_suffix
35526# for backward compatibility:
35527ac_top_builddir=$ac_top_build_prefix
35528
35529case $srcdir in
35530  .)  # We are building in place.
35531    ac_srcdir=.
35532    ac_top_srcdir=$ac_top_builddir_sub
35533    ac_abs_top_srcdir=$ac_pwd ;;
35534  [\\/]* | ?:[\\/]* )  # Absolute name.
35535    ac_srcdir=$srcdir$ac_dir_suffix;
35536    ac_top_srcdir=$srcdir
35537    ac_abs_top_srcdir=$srcdir ;;
35538  *) # Relative name.
35539    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35540    ac_top_srcdir=$ac_top_build_prefix$srcdir
35541    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35542esac
35543ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35544
35545
35546    cd "$ac_dir"
35547
35548    # Check for guested configure; otherwise get Cygnus style configure.
35549    if test -f "$ac_srcdir/configure.gnu"; then
35550      ac_sub_configure=$ac_srcdir/configure.gnu
35551    elif test -f "$ac_srcdir/configure"; then
35552      ac_sub_configure=$ac_srcdir/configure
35553    elif test -f "$ac_srcdir/configure.in"; then
35554      # This should be Cygnus configure.
35555      ac_sub_configure=$ac_aux_dir/configure
35556    else
35557      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35558echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35559      ac_sub_configure=
35560    fi
35561
35562    # The recursion is here.
35563    if test -n "$ac_sub_configure"; then
35564      # Make the cache file name correct relative to the subdirectory.
35565      case $cache_file in
35566      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35567      *) # Relative name.
35568	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35569      esac
35570
35571      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35572echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35573      # The eval makes quoting arguments work.
35574      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35575	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35576	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35577echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35578   { (exit 1); exit 1; }; }
35579    fi
35580
35581    cd "$ac_popdir"
35582  done
35583fi
35584
35585