configure revision 40e7f194c2a1a1f4b9dc45aff8f9e028f0454be6
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60 for llvm 2.5svn.
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.5svn'
719PACKAGE_STRING='llvm 2.5svn'
720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
722ac_unique_file="lib/VMCore/Module.cpp"
723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
726#if HAVE_SYS_TYPES_H
727# include <sys/types.h>
728#endif
729#if HAVE_SYS_STAT_H
730# include <sys/stat.h>
731#endif
732#if STDC_HEADERS
733# include <stdlib.h>
734# include <stddef.h>
735#else
736# if HAVE_STDLIB_H
737#  include <stdlib.h>
738# endif
739#endif
740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
742#  include <memory.h>
743# endif
744# include <string.h>
745#endif
746#if HAVE_STRINGS_H
747# include <strings.h>
748#endif
749#if HAVE_INTTYPES_H
750# include <inttypes.h>
751#endif
752#if HAVE_STDINT_H
753# include <stdint.h>
754#endif
755#if HAVE_UNISTD_H
756# include <unistd.h>
757#endif"
758
759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
811LINKALL
812NOLINKALL
813LLVM_ON_UNIX
814LLVM_ON_WIN32
815ARCH
816ENDIAN
817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
830BUILD_CXX
831CVSBUILD
832ENABLE_OPTIMIZED
833DISABLE_ASSERTIONS
834ENABLE_EXPENSIVE_CHECKS
835EXPENSIVE_CHECKS
836DEBUG_RUNTIME
837JIT
838TARGET_HAS_JIT
839ENABLE_DOXYGEN
840ENABLE_THREADS
841ENABLE_PIC
842TARGETS_TO_BUILD
843ENABLE_CBE_PRINTF_A
844EXTRA_OPTIONS
845CXX
846CXXFLAGS
847ac_ct_CXX
848LEX
849LEXLIB
850LEX_OUTPUT_ROOT
851FLEX
852YACC
853YFLAGS
854BISON
855NM
856ifGNUmake
857LN_S
858CMP
859CP
860DATE
861FIND
862MKDIR
863MV
864RANLIB
865RM
866SED
867TAR
868BINPWD
869GRAPHVIZ
870DOT
871GV
872DOTTY
873PERL
874HAVE_PERL
875INSTALL_PROGRAM
876INSTALL_SCRIPT
877INSTALL_DATA
878BZIP2
879DOXYGEN
880GROFF
881GZIP
882POD2HTML
883POD2MAN
884RUNTEST
885TCLSH
886ZIP
887OCAMLC
888OCAMLOPT
889OCAMLDEP
890OCAMLDOC
891GAS
892INSTALL_LTDL_TRUE
893INSTALL_LTDL_FALSE
894CONVENIENCE_LTDL_TRUE
895CONVENIENCE_LTDL_FALSE
896LIBADD_DL
897ECHO
898AR
899STRIP
900CXXCPP
901F77
902FFLAGS
903ac_ct_F77
904LIBTOOL
905LLVMGCC
906LLVMGXX
907USE_UDIS86
908HAVE_PTHREAD
909HUGE_VAL_SANITY
910ALLOCA
911MMAP_FILE
912LLVMCC1
913LLVMCC1PLUS
914LLVMGCCDIR
915LLVMGCCLIBEXEC
916LLVMGCC_VERSION
917LLVMGCC_MAJVERS
918LLVMGCC_LANGS
919SHLIBEXT
920LLVM_PREFIX
921LLVM_BINDIR
922LLVM_LIBDIR
923LLVM_DATADIR
924LLVM_DOCSDIR
925LLVM_ETCDIR
926LLVM_INCLUDEDIR
927LLVM_INFODIR
928LLVM_MANDIR
929LLVM_CONFIGTIME
930BINDINGS_TO_BUILD
931ALL_BINDINGS
932OCAML_LIBDIR
933ENABLE_VISIBILITY_INLINES_HIDDEN
934LIBOBJS
935LTLIBOBJS'
936ac_subst_files=''
937      ac_precious_vars='build_alias
938host_alias
939target_alias
940CC
941CFLAGS
942LDFLAGS
943CPPFLAGS
944CPP
945CXX
946CXXFLAGS
947CCC
948YACC
949YFLAGS
950CXXCPP
951F77
952FFLAGS'
953ac_subdirs_all='projects/sample
954projects/privbracket
955projects/llvm-stacker
956projects/llvm-test
957projects/test-suite
958projects/llvm-reopt
959projects/llvm-gcc
960projects/llvm-java
961projects/llvm-tv
962projects/llvm-poolalloc
963projects/poolalloc
964projects/llvm-kernel'
965
966# Initialize some variables set by options.
967ac_init_help=
968ac_init_version=false
969# The variables have the same names as the options, with
970# dashes changed to underlines.
971cache_file=/dev/null
972exec_prefix=NONE
973no_create=
974no_recursion=
975prefix=NONE
976program_prefix=NONE
977program_suffix=NONE
978program_transform_name=s,x,x,
979silent=
980site=
981srcdir=
982verbose=
983x_includes=NONE
984x_libraries=NONE
985
986# Installation directory options.
987# These are left unexpanded so users can "make install exec_prefix=/foo"
988# and all the variables that are supposed to be based on exec_prefix
989# by default will actually change.
990# Use braces instead of parens because sh, perl, etc. also accept them.
991# (The list follows the same order as the GNU Coding Standards.)
992bindir='${exec_prefix}/bin'
993sbindir='${exec_prefix}/sbin'
994libexecdir='${exec_prefix}/libexec'
995datarootdir='${prefix}/share'
996datadir='${datarootdir}'
997sysconfdir='${prefix}/etc'
998sharedstatedir='${prefix}/com'
999localstatedir='${prefix}/var'
1000includedir='${prefix}/include'
1001oldincludedir='/usr/include'
1002docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1003infodir='${datarootdir}/info'
1004htmldir='${docdir}'
1005dvidir='${docdir}'
1006pdfdir='${docdir}'
1007psdir='${docdir}'
1008libdir='${exec_prefix}/lib'
1009localedir='${datarootdir}/locale'
1010mandir='${datarootdir}/man'
1011
1012ac_prev=
1013ac_dashdash=
1014for ac_option
1015do
1016  # If the previous option needs an argument, assign it.
1017  if test -n "$ac_prev"; then
1018    eval $ac_prev=\$ac_option
1019    ac_prev=
1020    continue
1021  fi
1022
1023  case $ac_option in
1024  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1025  *)	ac_optarg=yes ;;
1026  esac
1027
1028  # Accept the important Cygnus configure options, so we can diagnose typos.
1029
1030  case $ac_dashdash$ac_option in
1031  --)
1032    ac_dashdash=yes ;;
1033
1034  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1035    ac_prev=bindir ;;
1036  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1037    bindir=$ac_optarg ;;
1038
1039  -build | --build | --buil | --bui | --bu)
1040    ac_prev=build_alias ;;
1041  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1042    build_alias=$ac_optarg ;;
1043
1044  -cache-file | --cache-file | --cache-fil | --cache-fi \
1045  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1046    ac_prev=cache_file ;;
1047  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1048  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1049    cache_file=$ac_optarg ;;
1050
1051  --config-cache | -C)
1052    cache_file=config.cache ;;
1053
1054  -datadir | --datadir | --datadi | --datad)
1055    ac_prev=datadir ;;
1056  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1057    datadir=$ac_optarg ;;
1058
1059  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1060  | --dataroo | --dataro | --datar)
1061    ac_prev=datarootdir ;;
1062  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1063  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1064    datarootdir=$ac_optarg ;;
1065
1066  -disable-* | --disable-*)
1067    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1068    # Reject names that are not valid shell variable names.
1069    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1070      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1071   { (exit 1); exit 1; }; }
1072    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1073    eval enable_$ac_feature=no ;;
1074
1075  -docdir | --docdir | --docdi | --doc | --do)
1076    ac_prev=docdir ;;
1077  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1078    docdir=$ac_optarg ;;
1079
1080  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1081    ac_prev=dvidir ;;
1082  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1083    dvidir=$ac_optarg ;;
1084
1085  -enable-* | --enable-*)
1086    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1087    # Reject names that are not valid shell variable names.
1088    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1089      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1090   { (exit 1); exit 1; }; }
1091    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1092    eval enable_$ac_feature=\$ac_optarg ;;
1093
1094  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1095  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1096  | --exec | --exe | --ex)
1097    ac_prev=exec_prefix ;;
1098  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1099  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1100  | --exec=* | --exe=* | --ex=*)
1101    exec_prefix=$ac_optarg ;;
1102
1103  -gas | --gas | --ga | --g)
1104    # Obsolete; use --with-gas.
1105    with_gas=yes ;;
1106
1107  -help | --help | --hel | --he | -h)
1108    ac_init_help=long ;;
1109  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1110    ac_init_help=recursive ;;
1111  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1112    ac_init_help=short ;;
1113
1114  -host | --host | --hos | --ho)
1115    ac_prev=host_alias ;;
1116  -host=* | --host=* | --hos=* | --ho=*)
1117    host_alias=$ac_optarg ;;
1118
1119  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1120    ac_prev=htmldir ;;
1121  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1122  | --ht=*)
1123    htmldir=$ac_optarg ;;
1124
1125  -includedir | --includedir | --includedi | --included | --include \
1126  | --includ | --inclu | --incl | --inc)
1127    ac_prev=includedir ;;
1128  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1129  | --includ=* | --inclu=* | --incl=* | --inc=*)
1130    includedir=$ac_optarg ;;
1131
1132  -infodir | --infodir | --infodi | --infod | --info | --inf)
1133    ac_prev=infodir ;;
1134  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1135    infodir=$ac_optarg ;;
1136
1137  -libdir | --libdir | --libdi | --libd)
1138    ac_prev=libdir ;;
1139  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1140    libdir=$ac_optarg ;;
1141
1142  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1143  | --libexe | --libex | --libe)
1144    ac_prev=libexecdir ;;
1145  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1146  | --libexe=* | --libex=* | --libe=*)
1147    libexecdir=$ac_optarg ;;
1148
1149  -localedir | --localedir | --localedi | --localed | --locale)
1150    ac_prev=localedir ;;
1151  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1152    localedir=$ac_optarg ;;
1153
1154  -localstatedir | --localstatedir | --localstatedi | --localstated \
1155  | --localstate | --localstat | --localsta | --localst | --locals)
1156    ac_prev=localstatedir ;;
1157  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1158  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1159    localstatedir=$ac_optarg ;;
1160
1161  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1162    ac_prev=mandir ;;
1163  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1164    mandir=$ac_optarg ;;
1165
1166  -nfp | --nfp | --nf)
1167    # Obsolete; use --without-fp.
1168    with_fp=no ;;
1169
1170  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1171  | --no-cr | --no-c | -n)
1172    no_create=yes ;;
1173
1174  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1175  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1176    no_recursion=yes ;;
1177
1178  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1179  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1180  | --oldin | --oldi | --old | --ol | --o)
1181    ac_prev=oldincludedir ;;
1182  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1183  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1184  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1185    oldincludedir=$ac_optarg ;;
1186
1187  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1188    ac_prev=prefix ;;
1189  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1190    prefix=$ac_optarg ;;
1191
1192  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1193  | --program-pre | --program-pr | --program-p)
1194    ac_prev=program_prefix ;;
1195  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1196  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1197    program_prefix=$ac_optarg ;;
1198
1199  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1200  | --program-suf | --program-su | --program-s)
1201    ac_prev=program_suffix ;;
1202  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1203  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1204    program_suffix=$ac_optarg ;;
1205
1206  -program-transform-name | --program-transform-name \
1207  | --program-transform-nam | --program-transform-na \
1208  | --program-transform-n | --program-transform- \
1209  | --program-transform | --program-transfor \
1210  | --program-transfo | --program-transf \
1211  | --program-trans | --program-tran \
1212  | --progr-tra | --program-tr | --program-t)
1213    ac_prev=program_transform_name ;;
1214  -program-transform-name=* | --program-transform-name=* \
1215  | --program-transform-nam=* | --program-transform-na=* \
1216  | --program-transform-n=* | --program-transform-=* \
1217  | --program-transform=* | --program-transfor=* \
1218  | --program-transfo=* | --program-transf=* \
1219  | --program-trans=* | --program-tran=* \
1220  | --progr-tra=* | --program-tr=* | --program-t=*)
1221    program_transform_name=$ac_optarg ;;
1222
1223  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1224    ac_prev=pdfdir ;;
1225  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1226    pdfdir=$ac_optarg ;;
1227
1228  -psdir | --psdir | --psdi | --psd | --ps)
1229    ac_prev=psdir ;;
1230  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1231    psdir=$ac_optarg ;;
1232
1233  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1234  | -silent | --silent | --silen | --sile | --sil)
1235    silent=yes ;;
1236
1237  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1238    ac_prev=sbindir ;;
1239  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1240  | --sbi=* | --sb=*)
1241    sbindir=$ac_optarg ;;
1242
1243  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1244  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1245  | --sharedst | --shareds | --shared | --share | --shar \
1246  | --sha | --sh)
1247    ac_prev=sharedstatedir ;;
1248  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1249  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1250  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1251  | --sha=* | --sh=*)
1252    sharedstatedir=$ac_optarg ;;
1253
1254  -site | --site | --sit)
1255    ac_prev=site ;;
1256  -site=* | --site=* | --sit=*)
1257    site=$ac_optarg ;;
1258
1259  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1260    ac_prev=srcdir ;;
1261  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1262    srcdir=$ac_optarg ;;
1263
1264  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1265  | --syscon | --sysco | --sysc | --sys | --sy)
1266    ac_prev=sysconfdir ;;
1267  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1268  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1269    sysconfdir=$ac_optarg ;;
1270
1271  -target | --target | --targe | --targ | --tar | --ta | --t)
1272    ac_prev=target_alias ;;
1273  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1274    target_alias=$ac_optarg ;;
1275
1276  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1277    verbose=yes ;;
1278
1279  -version | --version | --versio | --versi | --vers | -V)
1280    ac_init_version=: ;;
1281
1282  -with-* | --with-*)
1283    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1284    # Reject names that are not valid shell variable names.
1285    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1286      { echo "$as_me: error: invalid package name: $ac_package" >&2
1287   { (exit 1); exit 1; }; }
1288    ac_package=`echo $ac_package| sed 's/-/_/g'`
1289    eval with_$ac_package=\$ac_optarg ;;
1290
1291  -without-* | --without-*)
1292    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293    # Reject names that are not valid shell variable names.
1294    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1295      { echo "$as_me: error: invalid package name: $ac_package" >&2
1296   { (exit 1); exit 1; }; }
1297    ac_package=`echo $ac_package | sed 's/-/_/g'`
1298    eval with_$ac_package=no ;;
1299
1300  --x)
1301    # Obsolete; use --with-x.
1302    with_x=yes ;;
1303
1304  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1305  | --x-incl | --x-inc | --x-in | --x-i)
1306    ac_prev=x_includes ;;
1307  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1308  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1309    x_includes=$ac_optarg ;;
1310
1311  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1312  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1313    ac_prev=x_libraries ;;
1314  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1315  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1316    x_libraries=$ac_optarg ;;
1317
1318  -*) { echo "$as_me: error: unrecognized option: $ac_option
1319Try \`$0 --help' for more information." >&2
1320   { (exit 1); exit 1; }; }
1321    ;;
1322
1323  *=*)
1324    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1325    # Reject names that are not valid shell variable names.
1326    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1327      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1328   { (exit 1); exit 1; }; }
1329    eval $ac_envvar=\$ac_optarg
1330    export $ac_envvar ;;
1331
1332  *)
1333    # FIXME: should be removed in autoconf 3.0.
1334    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1335    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1336      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1337    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1338    ;;
1339
1340  esac
1341done
1342
1343if test -n "$ac_prev"; then
1344  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1345  { echo "$as_me: error: missing argument to $ac_option" >&2
1346   { (exit 1); exit 1; }; }
1347fi
1348
1349# Be sure to have absolute directory names.
1350for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1351		datadir sysconfdir sharedstatedir localstatedir includedir \
1352		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1353		libdir localedir mandir
1354do
1355  eval ac_val=\$$ac_var
1356  case $ac_val in
1357    [\\/$]* | ?:[\\/]* )  continue;;
1358    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1359  esac
1360  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1361   { (exit 1); exit 1; }; }
1362done
1363
1364# There might be people who depend on the old broken behavior: `$host'
1365# used to hold the argument of --host etc.
1366# FIXME: To remove some day.
1367build=$build_alias
1368host=$host_alias
1369target=$target_alias
1370
1371# FIXME: To remove some day.
1372if test "x$host_alias" != x; then
1373  if test "x$build_alias" = x; then
1374    cross_compiling=maybe
1375    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1376    If a cross compiler is detected then cross compile mode will be used." >&2
1377  elif test "x$build_alias" != "x$host_alias"; then
1378    cross_compiling=yes
1379  fi
1380fi
1381
1382ac_tool_prefix=
1383test -n "$host_alias" && ac_tool_prefix=$host_alias-
1384
1385test "$silent" = yes && exec 6>/dev/null
1386
1387
1388ac_pwd=`pwd` && test -n "$ac_pwd" &&
1389ac_ls_di=`ls -di .` &&
1390ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1391  { echo "$as_me: error: Working directory cannot be determined" >&2
1392   { (exit 1); exit 1; }; }
1393test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1394  { echo "$as_me: error: pwd does not report name of working directory" >&2
1395   { (exit 1); exit 1; }; }
1396
1397
1398# Find the source files, if location was not specified.
1399if test -z "$srcdir"; then
1400  ac_srcdir_defaulted=yes
1401  # Try the directory containing this script, then the parent directory.
1402  ac_confdir=`$as_dirname -- "$0" ||
1403$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1404	 X"$0" : 'X\(//\)[^/]' \| \
1405	 X"$0" : 'X\(//\)$' \| \
1406	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1407echo X"$0" |
1408    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1409	    s//\1/
1410	    q
1411	  }
1412	  /^X\(\/\/\)[^/].*/{
1413	    s//\1/
1414	    q
1415	  }
1416	  /^X\(\/\/\)$/{
1417	    s//\1/
1418	    q
1419	  }
1420	  /^X\(\/\).*/{
1421	    s//\1/
1422	    q
1423	  }
1424	  s/.*/./; q'`
1425  srcdir=$ac_confdir
1426  if test ! -r "$srcdir/$ac_unique_file"; then
1427    srcdir=..
1428  fi
1429else
1430  ac_srcdir_defaulted=no
1431fi
1432if test ! -r "$srcdir/$ac_unique_file"; then
1433  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1434  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1435   { (exit 1); exit 1; }; }
1436fi
1437ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1438ac_abs_confdir=`(
1439	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1440   { (exit 1); exit 1; }; }
1441	pwd)`
1442# When building in place, set srcdir=.
1443if test "$ac_abs_confdir" = "$ac_pwd"; then
1444  srcdir=.
1445fi
1446# Remove unnecessary trailing slashes from srcdir.
1447# Double slashes in file names in object file debugging info
1448# mess up M-x gdb in Emacs.
1449case $srcdir in
1450*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1451esac
1452for ac_var in $ac_precious_vars; do
1453  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1454  eval ac_env_${ac_var}_value=\$${ac_var}
1455  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1456  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1457done
1458
1459#
1460# Report the --help message.
1461#
1462if test "$ac_init_help" = "long"; then
1463  # Omit some internal or obsolete options to make the list less imposing.
1464  # This message is too long to be a string in the A/UX 3.1 sh.
1465  cat <<_ACEOF
1466\`configure' configures llvm 2.5svn to adapt to many kinds of systems.
1467
1468Usage: $0 [OPTION]... [VAR=VALUE]...
1469
1470To assign environment variables (e.g., CC, CFLAGS...), specify them as
1471VAR=VALUE.  See below for descriptions of some of the useful variables.
1472
1473Defaults for the options are specified in brackets.
1474
1475Configuration:
1476  -h, --help              display this help and exit
1477      --help=short        display options specific to this package
1478      --help=recursive    display the short help of all the included packages
1479  -V, --version           display version information and exit
1480  -q, --quiet, --silent   do not print \`checking...' messages
1481      --cache-file=FILE   cache test results in FILE [disabled]
1482  -C, --config-cache      alias for \`--cache-file=config.cache'
1483  -n, --no-create         do not create output files
1484      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1485
1486Installation directories:
1487  --prefix=PREFIX         install architecture-independent files in PREFIX
1488			  [$ac_default_prefix]
1489  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1490			  [PREFIX]
1491
1492By default, \`make install' will install all the files in
1493\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1494an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1495for instance \`--prefix=\$HOME'.
1496
1497For better control, use the options below.
1498
1499Fine tuning of the installation directories:
1500  --bindir=DIR           user executables [EPREFIX/bin]
1501  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1502  --libexecdir=DIR       program executables [EPREFIX/libexec]
1503  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1504  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1505  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1506  --libdir=DIR           object code libraries [EPREFIX/lib]
1507  --includedir=DIR       C header files [PREFIX/include]
1508  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1509  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1510  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1511  --infodir=DIR          info documentation [DATAROOTDIR/info]
1512  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1513  --mandir=DIR           man documentation [DATAROOTDIR/man]
1514  --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1515  --htmldir=DIR          html documentation [DOCDIR]
1516  --dvidir=DIR           dvi documentation [DOCDIR]
1517  --pdfdir=DIR           pdf documentation [DOCDIR]
1518  --psdir=DIR            ps documentation [DOCDIR]
1519_ACEOF
1520
1521  cat <<\_ACEOF
1522
1523System types:
1524  --build=BUILD     configure for building on BUILD [guessed]
1525  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1526  --target=TARGET   configure for building compilers for TARGET [HOST]
1527_ACEOF
1528fi
1529
1530if test -n "$ac_init_help"; then
1531  case $ac_init_help in
1532     short | recursive ) echo "Configuration of llvm 2.5svn:";;
1533   esac
1534  cat <<\_ACEOF
1535
1536Optional Features:
1537  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1538  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1539  --enable-optimized
1540  --enable-assertions
1541  --enable-expensive-checks
1542
1543  --enable-debug-runtime
1544  --enable-jit            Enable Just In Time Compiling (default is YES)
1545  --enable-doxygen        Build doxygen documentation (default is NO)
1546  --enable-threads        Use threads if available (default is YES)
1547  --enable-pic            Build LLVM with Position Independent Code (default
1548                          is NO)
1549  --enable-targets        Build specific host targets:
1550                          all,host-only,{target-name} (default=all)
1551  --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1552                          %a (default is YES)
1553  --enable-bindings       Build specific language bindings:
1554                          all,auto,none,{binding-name} (default=auto)
1555  --enable-ltdl-install   install libltdl
1556  --enable-shared[=PKGS]  build shared libraries
1557                          [default=yes]
1558  --enable-static[=PKGS]  build static libraries
1559                          [default=yes]
1560  --enable-fast-install[=PKGS]
1561                          optimize for fast installation
1562                          [default=yes]
1563  --disable-libtool-lock  avoid locking (might break parallel builds)
1564
1565Optional Packages:
1566  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1567  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1568  --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1569                          searches PATH)
1570  --with-llvmgcc          Specify location of llvm-gcc driver (default
1571                          searches PATH)
1572  --with-llvmgxx          Specify location of llvm-g++ driver (default
1573                          searches PATH)
1574  --with-extra-options    Specify addtional options to compile LLVM with
1575  --with-ocaml-libdir     Specify install location for ocaml bindings (default
1576                          is stdlib)
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  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1595              the first program found out of: `bison -y', `byacc', `yacc'.
1596  YFLAGS      The list of arguments that will be passed by default to $YACC.
1597              This script will default YFLAGS to the empty string to avoid a
1598              default value of `-d' given by some make applications.
1599  CXXCPP      C++ preprocessor
1600  F77         Fortran 77 compiler command
1601  FFLAGS      Fortran 77 compiler flags
1602
1603Use these variables to override the choices made by `configure' or to help
1604it to find libraries and programs with nonstandard names/locations.
1605
1606Report bugs to <llvmbugs@cs.uiuc.edu>.
1607_ACEOF
1608ac_status=$?
1609fi
1610
1611if test "$ac_init_help" = "recursive"; then
1612  # If there are subdirs, report their specific --help.
1613  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1614    test -d "$ac_dir" || continue
1615    ac_builddir=.
1616
1617case "$ac_dir" in
1618.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619*)
1620  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1621  # A ".." for each directory in $ac_dir_suffix.
1622  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1623  case $ac_top_builddir_sub in
1624  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1626  esac ;;
1627esac
1628ac_abs_top_builddir=$ac_pwd
1629ac_abs_builddir=$ac_pwd$ac_dir_suffix
1630# for backward compatibility:
1631ac_top_builddir=$ac_top_build_prefix
1632
1633case $srcdir in
1634  .)  # We are building in place.
1635    ac_srcdir=.
1636    ac_top_srcdir=$ac_top_builddir_sub
1637    ac_abs_top_srcdir=$ac_pwd ;;
1638  [\\/]* | ?:[\\/]* )  # Absolute name.
1639    ac_srcdir=$srcdir$ac_dir_suffix;
1640    ac_top_srcdir=$srcdir
1641    ac_abs_top_srcdir=$srcdir ;;
1642  *) # Relative name.
1643    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1644    ac_top_srcdir=$ac_top_build_prefix$srcdir
1645    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1646esac
1647ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1648
1649    cd "$ac_dir" || { ac_status=$?; continue; }
1650    # Check for guested configure.
1651    if test -f "$ac_srcdir/configure.gnu"; then
1652      echo &&
1653      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1654    elif test -f "$ac_srcdir/configure"; then
1655      echo &&
1656      $SHELL "$ac_srcdir/configure" --help=recursive
1657    else
1658      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1659    fi || ac_status=$?
1660    cd "$ac_pwd" || { ac_status=$?; break; }
1661  done
1662fi
1663
1664test -n "$ac_init_help" && exit $ac_status
1665if $ac_init_version; then
1666  cat <<\_ACEOF
1667llvm configure 2.5svn
1668generated by GNU Autoconf 2.60
1669
1670Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16712002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1672This configure script is free software; the Free Software Foundation
1673gives unlimited permission to copy, distribute and modify it.
1674
1675Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1676_ACEOF
1677  exit
1678fi
1679cat >config.log <<_ACEOF
1680This file contains any messages produced by compilers while
1681running configure, to aid debugging if configure makes a mistake.
1682
1683It was created by llvm $as_me 2.5svn, which was
1684generated by GNU Autoconf 2.60.  Invocation command line was
1685
1686  $ $0 $@
1687
1688_ACEOF
1689exec 5>>config.log
1690{
1691cat <<_ASUNAME
1692## --------- ##
1693## Platform. ##
1694## --------- ##
1695
1696hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1697uname -m = `(uname -m) 2>/dev/null || echo unknown`
1698uname -r = `(uname -r) 2>/dev/null || echo unknown`
1699uname -s = `(uname -s) 2>/dev/null || echo unknown`
1700uname -v = `(uname -v) 2>/dev/null || echo unknown`
1701
1702/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1703/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1704
1705/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1706/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1707/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1708/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1709/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1710/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1711/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1712
1713_ASUNAME
1714
1715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716for as_dir in $PATH
1717do
1718  IFS=$as_save_IFS
1719  test -z "$as_dir" && as_dir=.
1720  echo "PATH: $as_dir"
1721done
1722IFS=$as_save_IFS
1723
1724} >&5
1725
1726cat >&5 <<_ACEOF
1727
1728
1729## ----------- ##
1730## Core tests. ##
1731## ----------- ##
1732
1733_ACEOF
1734
1735
1736# Keep a trace of the command line.
1737# Strip out --no-create and --no-recursion so they do not pile up.
1738# Strip out --silent because we don't want to record it for future runs.
1739# Also quote any args containing shell meta-characters.
1740# Make two passes to allow for proper duplicate-argument suppression.
1741ac_configure_args=
1742ac_configure_args0=
1743ac_configure_args1=
1744ac_must_keep_next=false
1745for ac_pass in 1 2
1746do
1747  for ac_arg
1748  do
1749    case $ac_arg in
1750    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1751    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1752    | -silent | --silent | --silen | --sile | --sil)
1753      continue ;;
1754    *\'*)
1755      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1756    esac
1757    case $ac_pass in
1758    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1759    2)
1760      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1761      if test $ac_must_keep_next = true; then
1762	ac_must_keep_next=false # Got value, back to normal.
1763      else
1764	case $ac_arg in
1765	  *=* | --config-cache | -C | -disable-* | --disable-* \
1766	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1767	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1768	  | -with-* | --with-* | -without-* | --without-* | --x)
1769	    case "$ac_configure_args0 " in
1770	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1771	    esac
1772	    ;;
1773	  -* ) ac_must_keep_next=true ;;
1774	esac
1775      fi
1776      ac_configure_args="$ac_configure_args '$ac_arg'"
1777      ;;
1778    esac
1779  done
1780done
1781$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1782$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1783
1784# When interrupted or exit'd, cleanup temporary files, and complete
1785# config.log.  We remove comments because anyway the quotes in there
1786# would cause problems or look ugly.
1787# WARNING: Use '\'' to represent an apostrophe within the trap.
1788# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1789trap 'exit_status=$?
1790  # Save into config.log some information that might help in debugging.
1791  {
1792    echo
1793
1794    cat <<\_ASBOX
1795## ---------------- ##
1796## Cache variables. ##
1797## ---------------- ##
1798_ASBOX
1799    echo
1800    # The following way of writing the cache mishandles newlines in values,
1801(
1802  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1803    eval ac_val=\$$ac_var
1804    case $ac_val in #(
1805    *${as_nl}*)
1806      case $ac_var in #(
1807      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1808echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1809      esac
1810      case $ac_var in #(
1811      _ | IFS | as_nl) ;; #(
1812      *) $as_unset $ac_var ;;
1813      esac ;;
1814    esac
1815  done
1816  (set) 2>&1 |
1817    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1818    *${as_nl}ac_space=\ *)
1819      sed -n \
1820	"s/'\''/'\''\\\\'\'''\''/g;
1821	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1822      ;; #(
1823    *)
1824      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1825      ;;
1826    esac |
1827    sort
1828)
1829    echo
1830
1831    cat <<\_ASBOX
1832## ----------------- ##
1833## Output variables. ##
1834## ----------------- ##
1835_ASBOX
1836    echo
1837    for ac_var in $ac_subst_vars
1838    do
1839      eval ac_val=\$$ac_var
1840      case $ac_val in
1841      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1842      esac
1843      echo "$ac_var='\''$ac_val'\''"
1844    done | sort
1845    echo
1846
1847    if test -n "$ac_subst_files"; then
1848      cat <<\_ASBOX
1849## ------------------- ##
1850## File substitutions. ##
1851## ------------------- ##
1852_ASBOX
1853      echo
1854      for ac_var in $ac_subst_files
1855      do
1856	eval ac_val=\$$ac_var
1857	case $ac_val in
1858	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1859	esac
1860	echo "$ac_var='\''$ac_val'\''"
1861      done | sort
1862      echo
1863    fi
1864
1865    if test -s confdefs.h; then
1866      cat <<\_ASBOX
1867## ----------- ##
1868## confdefs.h. ##
1869## ----------- ##
1870_ASBOX
1871      echo
1872      cat confdefs.h
1873      echo
1874    fi
1875    test "$ac_signal" != 0 &&
1876      echo "$as_me: caught signal $ac_signal"
1877    echo "$as_me: exit $exit_status"
1878  } >&5
1879  rm -f core *.core core.conftest.* &&
1880    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1881    exit $exit_status
1882' 0
1883for ac_signal in 1 2 13 15; do
1884  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1885done
1886ac_signal=0
1887
1888# confdefs.h avoids OS command line length limits that DEFS can exceed.
1889rm -f -r conftest* confdefs.h
1890
1891# Predefined preprocessor variables.
1892
1893cat >>confdefs.h <<_ACEOF
1894#define PACKAGE_NAME "$PACKAGE_NAME"
1895_ACEOF
1896
1897
1898cat >>confdefs.h <<_ACEOF
1899#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1900_ACEOF
1901
1902
1903cat >>confdefs.h <<_ACEOF
1904#define PACKAGE_VERSION "$PACKAGE_VERSION"
1905_ACEOF
1906
1907
1908cat >>confdefs.h <<_ACEOF
1909#define PACKAGE_STRING "$PACKAGE_STRING"
1910_ACEOF
1911
1912
1913cat >>confdefs.h <<_ACEOF
1914#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1915_ACEOF
1916
1917
1918# Let the site file select an alternate cache file if it wants to.
1919# Prefer explicitly selected file to automatically selected ones.
1920if test -n "$CONFIG_SITE"; then
1921  set x "$CONFIG_SITE"
1922elif test "x$prefix" != xNONE; then
1923  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1924else
1925  set x "$ac_default_prefix/share/config.site" \
1926	"$ac_default_prefix/etc/config.site"
1927fi
1928shift
1929for ac_site_file
1930do
1931  if test -r "$ac_site_file"; then
1932    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1933echo "$as_me: loading site script $ac_site_file" >&6;}
1934    sed 's/^/| /' "$ac_site_file" >&5
1935    . "$ac_site_file"
1936  fi
1937done
1938
1939if test -r "$cache_file"; then
1940  # Some versions of bash will fail to source /dev/null (special
1941  # files actually), so we avoid doing that.
1942  if test -f "$cache_file"; then
1943    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1944echo "$as_me: loading cache $cache_file" >&6;}
1945    case $cache_file in
1946      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1947      *)                      . "./$cache_file";;
1948    esac
1949  fi
1950else
1951  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1952echo "$as_me: creating cache $cache_file" >&6;}
1953  >$cache_file
1954fi
1955
1956# Check that the precious variables saved in the cache have kept the same
1957# value.
1958ac_cache_corrupted=false
1959for ac_var in $ac_precious_vars; do
1960  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1961  eval ac_new_set=\$ac_env_${ac_var}_set
1962  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1963  eval ac_new_val=\$ac_env_${ac_var}_value
1964  case $ac_old_set,$ac_new_set in
1965    set,)
1966      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1967echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1968      ac_cache_corrupted=: ;;
1969    ,set)
1970      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1971echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1972      ac_cache_corrupted=: ;;
1973    ,);;
1974    *)
1975      if test "x$ac_old_val" != "x$ac_new_val"; then
1976	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1977echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1978	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1979echo "$as_me:   former value:  $ac_old_val" >&2;}
1980	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1981echo "$as_me:   current value: $ac_new_val" >&2;}
1982	ac_cache_corrupted=:
1983      fi;;
1984  esac
1985  # Pass precious variables to config.status.
1986  if test "$ac_new_set" = set; then
1987    case $ac_new_val in
1988    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1989    *) ac_arg=$ac_var=$ac_new_val ;;
1990    esac
1991    case " $ac_configure_args " in
1992      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1993      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1994    esac
1995  fi
1996done
1997if $ac_cache_corrupted; then
1998  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1999echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2000  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2001echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2002   { (exit 1); exit 1; }; }
2003fi
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029ac_ext=c
2030ac_cpp='$CPP $CPPFLAGS'
2031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2033ac_compiler_gnu=$ac_cv_c_compiler_gnu
2034
2035
2036
2037LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2038
2039
2040
2041
2042
2043
2044
2045ac_aux_dir=
2046for ac_dir in autoconf "$srcdir"/autoconf; do
2047  if test -f "$ac_dir/install-sh"; then
2048    ac_aux_dir=$ac_dir
2049    ac_install_sh="$ac_aux_dir/install-sh -c"
2050    break
2051  elif test -f "$ac_dir/install.sh"; then
2052    ac_aux_dir=$ac_dir
2053    ac_install_sh="$ac_aux_dir/install.sh -c"
2054    break
2055  elif test -f "$ac_dir/shtool"; then
2056    ac_aux_dir=$ac_dir
2057    ac_install_sh="$ac_aux_dir/shtool install -c"
2058    break
2059  fi
2060done
2061if test -z "$ac_aux_dir"; then
2062  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2063echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2064   { (exit 1); exit 1; }; }
2065fi
2066
2067# These three variables are undocumented and unsupported,
2068# and are intended to be withdrawn in a future Autoconf release.
2069# They can cause serious problems if a builder's source tree is in a directory
2070# whose full name contains unusual characters.
2071ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2072ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2073ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2074
2075
2076
2077if test ${srcdir} != "." ; then
2078  if test -f ${srcdir}/include/llvm/Config/config.h ; then
2079    { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2080echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2081   { (exit 1); exit 1; }; }
2082  fi
2083fi
2084
2085for i in `ls ${srcdir}/projects`
2086do
2087  if test -d ${srcdir}/projects/${i} ; then
2088    case ${i} in
2089      CVS) ;;
2090      sample)       subdirs="$subdirs projects/sample"
2091    ;;
2092      privbracket)  subdirs="$subdirs projects/privbracket"
2093 ;;
2094      llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2095 ;;
2096      # llvm-test is the old name of the test-suite, kept here for backwards
2097      # compatibility
2098      llvm-test)    subdirs="$subdirs projects/llvm-test"
2099 ;;
2100      test-suite)   subdirs="$subdirs projects/test-suite"
2101 ;;
2102      llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2103;;
2104      llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2105  ;;
2106      llvm-java)    subdirs="$subdirs projects/llvm-java"
2107 ;;
2108      llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2109   ;;
2110      llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2111 ;;
2112      poolalloc)    subdirs="$subdirs projects/poolalloc"
2113 ;;
2114      llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2115 ;;
2116      *)
2117        { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2118echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2119        ;;
2120    esac
2121  fi
2122done
2123
2124
2125# Make sure we can run config.sub.
2126$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2127  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2128echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2129   { (exit 1); exit 1; }; }
2130
2131{ echo "$as_me:$LINENO: checking build system type" >&5
2132echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2133if test "${ac_cv_build+set}" = set; then
2134  echo $ECHO_N "(cached) $ECHO_C" >&6
2135else
2136  ac_build_alias=$build_alias
2137test "x$ac_build_alias" = x &&
2138  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2139test "x$ac_build_alias" = x &&
2140  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2141echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2142   { (exit 1); exit 1; }; }
2143ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2144  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2145echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2146   { (exit 1); exit 1; }; }
2147
2148fi
2149{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2150echo "${ECHO_T}$ac_cv_build" >&6; }
2151case $ac_cv_build in
2152*-*-*) ;;
2153*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2154echo "$as_me: error: invalid value of canonical build" >&2;}
2155   { (exit 1); exit 1; }; };;
2156esac
2157build=$ac_cv_build
2158ac_save_IFS=$IFS; IFS='-'
2159set x $ac_cv_build
2160shift
2161build_cpu=$1
2162build_vendor=$2
2163shift; shift
2164# Remember, the first character of IFS is used to create $*,
2165# except with old shells:
2166build_os=$*
2167IFS=$ac_save_IFS
2168case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2169
2170
2171{ echo "$as_me:$LINENO: checking host system type" >&5
2172echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2173if test "${ac_cv_host+set}" = set; then
2174  echo $ECHO_N "(cached) $ECHO_C" >&6
2175else
2176  if test "x$host_alias" = x; then
2177  ac_cv_host=$ac_cv_build
2178else
2179  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2180    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2181echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2182   { (exit 1); exit 1; }; }
2183fi
2184
2185fi
2186{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2187echo "${ECHO_T}$ac_cv_host" >&6; }
2188case $ac_cv_host in
2189*-*-*) ;;
2190*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2191echo "$as_me: error: invalid value of canonical host" >&2;}
2192   { (exit 1); exit 1; }; };;
2193esac
2194host=$ac_cv_host
2195ac_save_IFS=$IFS; IFS='-'
2196set x $ac_cv_host
2197shift
2198host_cpu=$1
2199host_vendor=$2
2200shift; shift
2201# Remember, the first character of IFS is used to create $*,
2202# except with old shells:
2203host_os=$*
2204IFS=$ac_save_IFS
2205case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2206
2207
2208{ echo "$as_me:$LINENO: checking target system type" >&5
2209echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2210if test "${ac_cv_target+set}" = set; then
2211  echo $ECHO_N "(cached) $ECHO_C" >&6
2212else
2213  if test "x$target_alias" = x; then
2214  ac_cv_target=$ac_cv_host
2215else
2216  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2217    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2218echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2219   { (exit 1); exit 1; }; }
2220fi
2221
2222fi
2223{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2224echo "${ECHO_T}$ac_cv_target" >&6; }
2225case $ac_cv_target in
2226*-*-*) ;;
2227*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2228echo "$as_me: error: invalid value of canonical target" >&2;}
2229   { (exit 1); exit 1; }; };;
2230esac
2231target=$ac_cv_target
2232ac_save_IFS=$IFS; IFS='-'
2233set x $ac_cv_target
2234shift
2235target_cpu=$1
2236target_vendor=$2
2237shift; shift
2238# Remember, the first character of IFS is used to create $*,
2239# except with old shells:
2240target_os=$*
2241IFS=$ac_save_IFS
2242case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2243
2244
2245# The aliases save the names the user supplied, while $host etc.
2246# will get canonicalized.
2247test -n "$target_alias" &&
2248  test "$program_prefix$program_suffix$program_transform_name" = \
2249    NONENONEs,x,x, &&
2250  program_prefix=${target_alias}-
2251
2252{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2253echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2254if test "${llvm_cv_os_type+set}" = set; then
2255  echo $ECHO_N "(cached) $ECHO_C" >&6
2256else
2257  case $host in
2258  *-*-aix*)
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="AIX"
2262    llvm_cv_platform_type="Unix" ;;
2263  *-*-irix*)
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="IRIX"
2267    llvm_cv_platform_type="Unix" ;;
2268  *-*-cygwin*)
2269    llvm_cv_link_all_option="-Wl,--whole-archive"
2270    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2271    llvm_cv_os_type="Cygwin"
2272    llvm_cv_platform_type="Unix" ;;
2273  *-*-darwin*)
2274    llvm_cv_link_all_option="-Wl,-all_load"
2275    llvm_cv_no_link_all_option="-Wl,-noall_load"
2276    llvm_cv_os_type="Darwin"
2277    llvm_cv_platform_type="Unix" ;;
2278  *-*-freebsd*)
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="FreeBSD"
2282    llvm_cv_platform_type="Unix" ;;
2283  *-*-openbsd*)
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="OpenBSD"
2287    llvm_cv_platform_type="Unix" ;;
2288  *-*-netbsd*)
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="NetBSD"
2292    llvm_cv_platform_type="Unix" ;;
2293  *-*-dragonfly*)
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="DragonFly"
2297    llvm_cv_platform_type="Unix" ;;
2298  *-*-hpux*)
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="HP-UX"
2302    llvm_cv_platform_type="Unix" ;;
2303  *-*-interix*)
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="Interix"
2307    llvm_cv_platform_type="Unix" ;;
2308  *-*-linux*)
2309    llvm_cv_link_all_option="-Wl,--whole-archive"
2310    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2311    llvm_cv_os_type="Linux"
2312    llvm_cv_platform_type="Unix" ;;
2313  *-*-solaris*)
2314    llvm_cv_link_all_option="-Wl,-z,allextract"
2315    llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2316    llvm_cv_os_type="SunOS"
2317    llvm_cv_platform_type="Unix" ;;
2318  *-*-win32*)
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="Win32"
2322    llvm_cv_platform_type="Win32" ;;
2323  *-*-mingw*)
2324    llvm_cv_link_all_option="-Wl,--whole-archive"
2325    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2326    llvm_cv_os_type="MingW"
2327    llvm_cv_platform_type="Win32" ;;
2328  *)
2329    llvm_cv_link_all_option=""
2330    llvm_cv_no_link_all_option=""
2331    llvm_cv_os_type="Unknown"
2332    llvm_cv_platform_type="Unknown" ;;
2333esac
2334fi
2335{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2336echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2337
2338if test "$llvm_cv_os_type" = "Unknown" ; then
2339  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2340echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2341   { (exit 1); exit 1; }; }
2342fi
2343
2344OS=$llvm_cv_os_type
2345
2346
2347LINKALL=$llvm_cv_link_all_option
2348
2349NOLINKALL=$llvm_cv_no_link_all_option
2350
2351
2352case $llvm_cv_platform_type in
2353  Unix)
2354
2355cat >>confdefs.h <<\_ACEOF
2356#define LLVM_ON_UNIX 1
2357_ACEOF
2358
2359    LLVM_ON_UNIX=1
2360
2361    LLVM_ON_WIN32=0
2362
2363    ;;
2364  Win32)
2365
2366cat >>confdefs.h <<\_ACEOF
2367#define LLVM_ON_WIN32 1
2368_ACEOF
2369
2370    LLVM_ON_UNIX=0
2371
2372    LLVM_ON_WIN32=1
2373
2374    ;;
2375esac
2376
2377{ echo "$as_me:$LINENO: checking target architecture" >&5
2378echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2379if test "${llvm_cv_target_arch+set}" = set; then
2380  echo $ECHO_N "(cached) $ECHO_C" >&6
2381else
2382  case $target in
2383  i?86-*)                 llvm_cv_target_arch="x86" ;;
2384  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2385  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2386  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2387  alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2388  ia64-*)                 llvm_cv_target_arch="IA64" ;;
2389  arm-*)                  llvm_cv_target_arch="ARM" ;;
2390  mips-*)                 llvm_cv_target_arch="Mips" ;;
2391  pic16-*)                llvm_cv_target_arch="PIC16" ;;
2392  *)                      llvm_cv_target_arch="Unknown" ;;
2393esac
2394fi
2395{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2396echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2397
2398if test "$llvm_cv_target_arch" = "Unknown" ; then
2399  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2400echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2401fi
2402
2403ARCH=$llvm_cv_target_arch
2404
2405
2406ac_ext=c
2407ac_cpp='$CPP $CPPFLAGS'
2408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2410ac_compiler_gnu=$ac_cv_c_compiler_gnu
2411if test -n "$ac_tool_prefix"; then
2412  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2413set dummy ${ac_tool_prefix}gcc; ac_word=$2
2414{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2416if test "${ac_cv_prog_CC+set}" = set; then
2417  echo $ECHO_N "(cached) $ECHO_C" >&6
2418else
2419  if test -n "$CC"; then
2420  ac_cv_prog_CC="$CC" # Let the user override the test.
2421else
2422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423for as_dir in $PATH
2424do
2425  IFS=$as_save_IFS
2426  test -z "$as_dir" && as_dir=.
2427  for ac_exec_ext in '' $ac_executable_extensions; do
2428  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2429    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2430    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2431    break 2
2432  fi
2433done
2434done
2435IFS=$as_save_IFS
2436
2437fi
2438fi
2439CC=$ac_cv_prog_CC
2440if test -n "$CC"; then
2441  { echo "$as_me:$LINENO: result: $CC" >&5
2442echo "${ECHO_T}$CC" >&6; }
2443else
2444  { echo "$as_me:$LINENO: result: no" >&5
2445echo "${ECHO_T}no" >&6; }
2446fi
2447
2448
2449fi
2450if test -z "$ac_cv_prog_CC"; then
2451  ac_ct_CC=$CC
2452  # Extract the first word of "gcc", so it can be a program name with args.
2453set dummy gcc; ac_word=$2
2454{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2456if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2457  echo $ECHO_N "(cached) $ECHO_C" >&6
2458else
2459  if test -n "$ac_ct_CC"; then
2460  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2461else
2462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463for as_dir in $PATH
2464do
2465  IFS=$as_save_IFS
2466  test -z "$as_dir" && as_dir=.
2467  for ac_exec_ext in '' $ac_executable_extensions; do
2468  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2469    ac_cv_prog_ac_ct_CC="gcc"
2470    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2471    break 2
2472  fi
2473done
2474done
2475IFS=$as_save_IFS
2476
2477fi
2478fi
2479ac_ct_CC=$ac_cv_prog_ac_ct_CC
2480if test -n "$ac_ct_CC"; then
2481  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2482echo "${ECHO_T}$ac_ct_CC" >&6; }
2483else
2484  { echo "$as_me:$LINENO: result: no" >&5
2485echo "${ECHO_T}no" >&6; }
2486fi
2487
2488  if test "x$ac_ct_CC" = x; then
2489    CC=""
2490  else
2491    case $cross_compiling:$ac_tool_warned in
2492yes:)
2493{ echo "$as_me:$LINENO: 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." >&5
2496echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2497whose name does not start with the host triplet.  If you think this
2498configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2499ac_tool_warned=yes ;;
2500esac
2501    CC=$ac_ct_CC
2502  fi
2503else
2504  CC="$ac_cv_prog_CC"
2505fi
2506
2507if test -z "$CC"; then
2508          if test -n "$ac_tool_prefix"; then
2509    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2510set dummy ${ac_tool_prefix}cc; ac_word=$2
2511{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2513if test "${ac_cv_prog_CC+set}" = set; then
2514  echo $ECHO_N "(cached) $ECHO_C" >&6
2515else
2516  if test -n "$CC"; then
2517  ac_cv_prog_CC="$CC" # Let the user override the test.
2518else
2519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520for as_dir in $PATH
2521do
2522  IFS=$as_save_IFS
2523  test -z "$as_dir" && as_dir=.
2524  for ac_exec_ext in '' $ac_executable_extensions; do
2525  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2526    ac_cv_prog_CC="${ac_tool_prefix}cc"
2527    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2528    break 2
2529  fi
2530done
2531done
2532IFS=$as_save_IFS
2533
2534fi
2535fi
2536CC=$ac_cv_prog_CC
2537if test -n "$CC"; then
2538  { echo "$as_me:$LINENO: result: $CC" >&5
2539echo "${ECHO_T}$CC" >&6; }
2540else
2541  { echo "$as_me:$LINENO: result: no" >&5
2542echo "${ECHO_T}no" >&6; }
2543fi
2544
2545
2546  fi
2547fi
2548if test -z "$CC"; then
2549  # Extract the first word of "cc", so it can be a program name with args.
2550set dummy cc; ac_word=$2
2551{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2553if test "${ac_cv_prog_CC+set}" = set; then
2554  echo $ECHO_N "(cached) $ECHO_C" >&6
2555else
2556  if test -n "$CC"; then
2557  ac_cv_prog_CC="$CC" # Let the user override the test.
2558else
2559  ac_prog_rejected=no
2560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561for as_dir in $PATH
2562do
2563  IFS=$as_save_IFS
2564  test -z "$as_dir" && as_dir=.
2565  for ac_exec_ext in '' $ac_executable_extensions; do
2566  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2567    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2568       ac_prog_rejected=yes
2569       continue
2570     fi
2571    ac_cv_prog_CC="cc"
2572    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2573    break 2
2574  fi
2575done
2576done
2577IFS=$as_save_IFS
2578
2579if test $ac_prog_rejected = yes; then
2580  # We found a bogon in the path, so make sure we never use it.
2581  set dummy $ac_cv_prog_CC
2582  shift
2583  if test $# != 0; then
2584    # We chose a different compiler from the bogus one.
2585    # However, it has the same basename, so the bogon will be chosen
2586    # first if we set CC to just the basename; use the full file name.
2587    shift
2588    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2589  fi
2590fi
2591fi
2592fi
2593CC=$ac_cv_prog_CC
2594if test -n "$CC"; then
2595  { echo "$as_me:$LINENO: result: $CC" >&5
2596echo "${ECHO_T}$CC" >&6; }
2597else
2598  { echo "$as_me:$LINENO: result: no" >&5
2599echo "${ECHO_T}no" >&6; }
2600fi
2601
2602
2603fi
2604if test -z "$CC"; then
2605  if test -n "$ac_tool_prefix"; then
2606  for ac_prog in cl.exe
2607  do
2608    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2609set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2610{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2612if test "${ac_cv_prog_CC+set}" = set; then
2613  echo $ECHO_N "(cached) $ECHO_C" >&6
2614else
2615  if test -n "$CC"; then
2616  ac_cv_prog_CC="$CC" # Let the user override the test.
2617else
2618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619for as_dir in $PATH
2620do
2621  IFS=$as_save_IFS
2622  test -z "$as_dir" && as_dir=.
2623  for ac_exec_ext in '' $ac_executable_extensions; do
2624  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2625    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2626    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2627    break 2
2628  fi
2629done
2630done
2631IFS=$as_save_IFS
2632
2633fi
2634fi
2635CC=$ac_cv_prog_CC
2636if test -n "$CC"; then
2637  { echo "$as_me:$LINENO: result: $CC" >&5
2638echo "${ECHO_T}$CC" >&6; }
2639else
2640  { echo "$as_me:$LINENO: result: no" >&5
2641echo "${ECHO_T}no" >&6; }
2642fi
2643
2644
2645    test -n "$CC" && break
2646  done
2647fi
2648if test -z "$CC"; then
2649  ac_ct_CC=$CC
2650  for ac_prog in cl.exe
2651do
2652  # Extract the first word of "$ac_prog", so it can be a program name with args.
2653set dummy $ac_prog; ac_word=$2
2654{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2656if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2657  echo $ECHO_N "(cached) $ECHO_C" >&6
2658else
2659  if test -n "$ac_ct_CC"; then
2660  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2661else
2662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663for as_dir in $PATH
2664do
2665  IFS=$as_save_IFS
2666  test -z "$as_dir" && as_dir=.
2667  for ac_exec_ext in '' $ac_executable_extensions; do
2668  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2669    ac_cv_prog_ac_ct_CC="$ac_prog"
2670    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2671    break 2
2672  fi
2673done
2674done
2675IFS=$as_save_IFS
2676
2677fi
2678fi
2679ac_ct_CC=$ac_cv_prog_ac_ct_CC
2680if test -n "$ac_ct_CC"; then
2681  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2682echo "${ECHO_T}$ac_ct_CC" >&6; }
2683else
2684  { echo "$as_me:$LINENO: result: no" >&5
2685echo "${ECHO_T}no" >&6; }
2686fi
2687
2688
2689  test -n "$ac_ct_CC" && break
2690done
2691
2692  if test "x$ac_ct_CC" = x; then
2693    CC=""
2694  else
2695    case $cross_compiling:$ac_tool_warned in
2696yes:)
2697{ echo "$as_me:$LINENO: 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." >&5
2700echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2701whose name does not start with the host triplet.  If you think this
2702configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2703ac_tool_warned=yes ;;
2704esac
2705    CC=$ac_ct_CC
2706  fi
2707fi
2708
2709fi
2710
2711
2712test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2713See \`config.log' for more details." >&5
2714echo "$as_me: error: no acceptable C compiler found in \$PATH
2715See \`config.log' for more details." >&2;}
2716   { (exit 1); exit 1; }; }
2717
2718# Provide some information about the compiler.
2719echo "$as_me:$LINENO: checking for C compiler version" >&5
2720ac_compiler=`set X $ac_compile; echo $2`
2721{ (ac_try="$ac_compiler --version >&5"
2722case "(($ac_try" in
2723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724  *) ac_try_echo=$ac_try;;
2725esac
2726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727  (eval "$ac_compiler --version >&5") 2>&5
2728  ac_status=$?
2729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730  (exit $ac_status); }
2731{ (ac_try="$ac_compiler -v >&5"
2732case "(($ac_try" in
2733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734  *) ac_try_echo=$ac_try;;
2735esac
2736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737  (eval "$ac_compiler -v >&5") 2>&5
2738  ac_status=$?
2739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740  (exit $ac_status); }
2741{ (ac_try="$ac_compiler -V >&5"
2742case "(($ac_try" in
2743  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744  *) ac_try_echo=$ac_try;;
2745esac
2746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747  (eval "$ac_compiler -V >&5") 2>&5
2748  ac_status=$?
2749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750  (exit $ac_status); }
2751
2752cat >conftest.$ac_ext <<_ACEOF
2753/* confdefs.h.  */
2754_ACEOF
2755cat confdefs.h >>conftest.$ac_ext
2756cat >>conftest.$ac_ext <<_ACEOF
2757/* end confdefs.h.  */
2758
2759int
2760main ()
2761{
2762
2763  ;
2764  return 0;
2765}
2766_ACEOF
2767ac_clean_files_save=$ac_clean_files
2768ac_clean_files="$ac_clean_files a.out a.exe b.out"
2769# Try to create an executable without -o first, disregard a.out.
2770# It will help us diagnose broken compilers, and finding out an intuition
2771# of exeext.
2772{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2773echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2774ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2775#
2776# List of possible output files, starting from the most likely.
2777# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2778# only as a last resort.  b.out is created by i960 compilers.
2779ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2780#
2781# The IRIX 6 linker writes into existing files which may not be
2782# executable, retaining their permissions.  Remove them first so a
2783# subsequent execution test works.
2784ac_rmfiles=
2785for ac_file in $ac_files
2786do
2787  case $ac_file in
2788    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2789    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2790  esac
2791done
2792rm -f $ac_rmfiles
2793
2794if { (ac_try="$ac_link_default"
2795case "(($ac_try" in
2796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797  *) ac_try_echo=$ac_try;;
2798esac
2799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2800  (eval "$ac_link_default") 2>&5
2801  ac_status=$?
2802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803  (exit $ac_status); }; then
2804  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2805# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2806# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2807# so that the user can short-circuit this test for compilers unknown to
2808# Autoconf.
2809for ac_file in $ac_files
2810do
2811  test -f "$ac_file" || continue
2812  case $ac_file in
2813    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2814	;;
2815    [ab].out )
2816	# We found the default executable, but exeext='' is most
2817	# certainly right.
2818	break;;
2819    *.* )
2820        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2821	then :; else
2822	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2823	fi
2824	# We set ac_cv_exeext here because the later test for it is not
2825	# safe: cross compilers may not add the suffix if given an `-o'
2826	# argument, so we may need to know it at that point already.
2827	# Even if this section looks crufty: it has the advantage of
2828	# actually working.
2829	break;;
2830    * )
2831	break;;
2832  esac
2833done
2834test "$ac_cv_exeext" = no && ac_cv_exeext=
2835
2836else
2837  echo "$as_me: failed program was:" >&5
2838sed 's/^/| /' conftest.$ac_ext >&5
2839
2840{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2841See \`config.log' for more details." >&5
2842echo "$as_me: error: C compiler cannot create executables
2843See \`config.log' for more details." >&2;}
2844   { (exit 77); exit 77; }; }
2845fi
2846
2847ac_exeext=$ac_cv_exeext
2848{ echo "$as_me:$LINENO: result: $ac_file" >&5
2849echo "${ECHO_T}$ac_file" >&6; }
2850
2851# Check that the compiler produces executables we can run.  If not, either
2852# the compiler is broken, or we cross compile.
2853{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2854echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2855# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2856# If not cross compiling, check that we can run a simple program.
2857if test "$cross_compiling" != yes; then
2858  if { ac_try='./$ac_file'
2859  { (case "(($ac_try" in
2860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861  *) ac_try_echo=$ac_try;;
2862esac
2863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2864  (eval "$ac_try") 2>&5
2865  ac_status=$?
2866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867  (exit $ac_status); }; }; then
2868    cross_compiling=no
2869  else
2870    if test "$cross_compiling" = maybe; then
2871	cross_compiling=yes
2872    else
2873	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2874If you meant to cross compile, use \`--host'.
2875See \`config.log' for more details." >&5
2876echo "$as_me: error: cannot run C compiled programs.
2877If you meant to cross compile, use \`--host'.
2878See \`config.log' for more details." >&2;}
2879   { (exit 1); exit 1; }; }
2880    fi
2881  fi
2882fi
2883{ echo "$as_me:$LINENO: result: yes" >&5
2884echo "${ECHO_T}yes" >&6; }
2885
2886rm -f a.out a.exe conftest$ac_cv_exeext b.out
2887ac_clean_files=$ac_clean_files_save
2888# Check that the compiler produces executables we can run.  If not, either
2889# the compiler is broken, or we cross compile.
2890{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2891echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2892{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2893echo "${ECHO_T}$cross_compiling" >&6; }
2894
2895{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2896echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2897if { (ac_try="$ac_link"
2898case "(($ac_try" in
2899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900  *) ac_try_echo=$ac_try;;
2901esac
2902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2903  (eval "$ac_link") 2>&5
2904  ac_status=$?
2905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906  (exit $ac_status); }; then
2907  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2908# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2909# work properly (i.e., refer to `conftest.exe'), while it won't with
2910# `rm'.
2911for ac_file in conftest.exe conftest conftest.*; do
2912  test -f "$ac_file" || continue
2913  case $ac_file in
2914    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2915    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2916	  break;;
2917    * ) break;;
2918  esac
2919done
2920else
2921  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2922See \`config.log' for more details." >&5
2923echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2924See \`config.log' for more details." >&2;}
2925   { (exit 1); exit 1; }; }
2926fi
2927
2928rm -f conftest$ac_cv_exeext
2929{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2930echo "${ECHO_T}$ac_cv_exeext" >&6; }
2931
2932rm -f conftest.$ac_ext
2933EXEEXT=$ac_cv_exeext
2934ac_exeext=$EXEEXT
2935{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2936echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2937if test "${ac_cv_objext+set}" = set; then
2938  echo $ECHO_N "(cached) $ECHO_C" >&6
2939else
2940  cat >conftest.$ac_ext <<_ACEOF
2941/* confdefs.h.  */
2942_ACEOF
2943cat confdefs.h >>conftest.$ac_ext
2944cat >>conftest.$ac_ext <<_ACEOF
2945/* end confdefs.h.  */
2946
2947int
2948main ()
2949{
2950
2951  ;
2952  return 0;
2953}
2954_ACEOF
2955rm -f conftest.o conftest.obj
2956if { (ac_try="$ac_compile"
2957case "(($ac_try" in
2958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959  *) ac_try_echo=$ac_try;;
2960esac
2961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962  (eval "$ac_compile") 2>&5
2963  ac_status=$?
2964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965  (exit $ac_status); }; then
2966  for ac_file in conftest.o conftest.obj conftest.*; do
2967  test -f "$ac_file" || continue;
2968  case $ac_file in
2969    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2970    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2971       break;;
2972  esac
2973done
2974else
2975  echo "$as_me: failed program was:" >&5
2976sed 's/^/| /' conftest.$ac_ext >&5
2977
2978{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2979See \`config.log' for more details." >&5
2980echo "$as_me: error: cannot compute suffix of object files: cannot compile
2981See \`config.log' for more details." >&2;}
2982   { (exit 1); exit 1; }; }
2983fi
2984
2985rm -f conftest.$ac_cv_objext conftest.$ac_ext
2986fi
2987{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2988echo "${ECHO_T}$ac_cv_objext" >&6; }
2989OBJEXT=$ac_cv_objext
2990ac_objext=$OBJEXT
2991{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2992echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2993if test "${ac_cv_c_compiler_gnu+set}" = set; then
2994  echo $ECHO_N "(cached) $ECHO_C" >&6
2995else
2996  cat >conftest.$ac_ext <<_ACEOF
2997/* confdefs.h.  */
2998_ACEOF
2999cat confdefs.h >>conftest.$ac_ext
3000cat >>conftest.$ac_ext <<_ACEOF
3001/* end confdefs.h.  */
3002
3003int
3004main ()
3005{
3006#ifndef __GNUC__
3007       choke me
3008#endif
3009
3010  ;
3011  return 0;
3012}
3013_ACEOF
3014rm -f conftest.$ac_objext
3015if { (ac_try="$ac_compile"
3016case "(($ac_try" in
3017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018  *) ac_try_echo=$ac_try;;
3019esac
3020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021  (eval "$ac_compile") 2>conftest.er1
3022  ac_status=$?
3023  grep -v '^ *+' conftest.er1 >conftest.err
3024  rm -f conftest.er1
3025  cat conftest.err >&5
3026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027  (exit $ac_status); } &&
3028	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3029  { (case "(($ac_try" in
3030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031  *) ac_try_echo=$ac_try;;
3032esac
3033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034  (eval "$ac_try") 2>&5
3035  ac_status=$?
3036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037  (exit $ac_status); }; } &&
3038	 { ac_try='test -s conftest.$ac_objext'
3039  { (case "(($ac_try" in
3040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041  *) ac_try_echo=$ac_try;;
3042esac
3043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044  (eval "$ac_try") 2>&5
3045  ac_status=$?
3046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047  (exit $ac_status); }; }; then
3048  ac_compiler_gnu=yes
3049else
3050  echo "$as_me: failed program was:" >&5
3051sed 's/^/| /' conftest.$ac_ext >&5
3052
3053	ac_compiler_gnu=no
3054fi
3055
3056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3057ac_cv_c_compiler_gnu=$ac_compiler_gnu
3058
3059fi
3060{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3061echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3062GCC=`test $ac_compiler_gnu = yes && echo yes`
3063ac_test_CFLAGS=${CFLAGS+set}
3064ac_save_CFLAGS=$CFLAGS
3065{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3066echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3067if test "${ac_cv_prog_cc_g+set}" = set; then
3068  echo $ECHO_N "(cached) $ECHO_C" >&6
3069else
3070  ac_save_c_werror_flag=$ac_c_werror_flag
3071   ac_c_werror_flag=yes
3072   ac_cv_prog_cc_g=no
3073   CFLAGS="-g"
3074   cat >conftest.$ac_ext <<_ACEOF
3075/* confdefs.h.  */
3076_ACEOF
3077cat confdefs.h >>conftest.$ac_ext
3078cat >>conftest.$ac_ext <<_ACEOF
3079/* end confdefs.h.  */
3080
3081int
3082main ()
3083{
3084
3085  ;
3086  return 0;
3087}
3088_ACEOF
3089rm -f conftest.$ac_objext
3090if { (ac_try="$ac_compile"
3091case "(($ac_try" in
3092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093  *) ac_try_echo=$ac_try;;
3094esac
3095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096  (eval "$ac_compile") 2>conftest.er1
3097  ac_status=$?
3098  grep -v '^ *+' conftest.er1 >conftest.err
3099  rm -f conftest.er1
3100  cat conftest.err >&5
3101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102  (exit $ac_status); } &&
3103	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3104  { (case "(($ac_try" in
3105  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106  *) ac_try_echo=$ac_try;;
3107esac
3108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109  (eval "$ac_try") 2>&5
3110  ac_status=$?
3111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112  (exit $ac_status); }; } &&
3113	 { ac_try='test -s conftest.$ac_objext'
3114  { (case "(($ac_try" in
3115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116  *) ac_try_echo=$ac_try;;
3117esac
3118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119  (eval "$ac_try") 2>&5
3120  ac_status=$?
3121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122  (exit $ac_status); }; }; then
3123  ac_cv_prog_cc_g=yes
3124else
3125  echo "$as_me: failed program was:" >&5
3126sed 's/^/| /' conftest.$ac_ext >&5
3127
3128	CFLAGS=""
3129      cat >conftest.$ac_ext <<_ACEOF
3130/* confdefs.h.  */
3131_ACEOF
3132cat confdefs.h >>conftest.$ac_ext
3133cat >>conftest.$ac_ext <<_ACEOF
3134/* end confdefs.h.  */
3135
3136int
3137main ()
3138{
3139
3140  ;
3141  return 0;
3142}
3143_ACEOF
3144rm -f conftest.$ac_objext
3145if { (ac_try="$ac_compile"
3146case "(($ac_try" in
3147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148  *) ac_try_echo=$ac_try;;
3149esac
3150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151  (eval "$ac_compile") 2>conftest.er1
3152  ac_status=$?
3153  grep -v '^ *+' conftest.er1 >conftest.err
3154  rm -f conftest.er1
3155  cat conftest.err >&5
3156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157  (exit $ac_status); } &&
3158	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3159  { (case "(($ac_try" in
3160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161  *) ac_try_echo=$ac_try;;
3162esac
3163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164  (eval "$ac_try") 2>&5
3165  ac_status=$?
3166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167  (exit $ac_status); }; } &&
3168	 { ac_try='test -s conftest.$ac_objext'
3169  { (case "(($ac_try" in
3170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171  *) ac_try_echo=$ac_try;;
3172esac
3173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174  (eval "$ac_try") 2>&5
3175  ac_status=$?
3176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177  (exit $ac_status); }; }; then
3178  :
3179else
3180  echo "$as_me: failed program was:" >&5
3181sed 's/^/| /' conftest.$ac_ext >&5
3182
3183	ac_c_werror_flag=$ac_save_c_werror_flag
3184	 CFLAGS="-g"
3185	 cat >conftest.$ac_ext <<_ACEOF
3186/* confdefs.h.  */
3187_ACEOF
3188cat confdefs.h >>conftest.$ac_ext
3189cat >>conftest.$ac_ext <<_ACEOF
3190/* end confdefs.h.  */
3191
3192int
3193main ()
3194{
3195
3196  ;
3197  return 0;
3198}
3199_ACEOF
3200rm -f conftest.$ac_objext
3201if { (ac_try="$ac_compile"
3202case "(($ac_try" in
3203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204  *) ac_try_echo=$ac_try;;
3205esac
3206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207  (eval "$ac_compile") 2>conftest.er1
3208  ac_status=$?
3209  grep -v '^ *+' conftest.er1 >conftest.err
3210  rm -f conftest.er1
3211  cat conftest.err >&5
3212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213  (exit $ac_status); } &&
3214	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3215  { (case "(($ac_try" in
3216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217  *) ac_try_echo=$ac_try;;
3218esac
3219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220  (eval "$ac_try") 2>&5
3221  ac_status=$?
3222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223  (exit $ac_status); }; } &&
3224	 { ac_try='test -s conftest.$ac_objext'
3225  { (case "(($ac_try" in
3226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227  *) ac_try_echo=$ac_try;;
3228esac
3229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230  (eval "$ac_try") 2>&5
3231  ac_status=$?
3232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233  (exit $ac_status); }; }; then
3234  ac_cv_prog_cc_g=yes
3235else
3236  echo "$as_me: failed program was:" >&5
3237sed 's/^/| /' conftest.$ac_ext >&5
3238
3239
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
3246fi
3247
3248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3249   ac_c_werror_flag=$ac_save_c_werror_flag
3250fi
3251{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3252echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3253if test "$ac_test_CFLAGS" = set; then
3254  CFLAGS=$ac_save_CFLAGS
3255elif test $ac_cv_prog_cc_g = yes; then
3256  if test "$GCC" = yes; then
3257    CFLAGS="-g -O2"
3258  else
3259    CFLAGS="-g"
3260  fi
3261else
3262  if test "$GCC" = yes; then
3263    CFLAGS="-O2"
3264  else
3265    CFLAGS=
3266  fi
3267fi
3268{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3269echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3270if test "${ac_cv_prog_cc_c89+set}" = set; then
3271  echo $ECHO_N "(cached) $ECHO_C" >&6
3272else
3273  ac_cv_prog_cc_c89=no
3274ac_save_CC=$CC
3275cat >conftest.$ac_ext <<_ACEOF
3276/* confdefs.h.  */
3277_ACEOF
3278cat confdefs.h >>conftest.$ac_ext
3279cat >>conftest.$ac_ext <<_ACEOF
3280/* end confdefs.h.  */
3281#include <stdarg.h>
3282#include <stdio.h>
3283#include <sys/types.h>
3284#include <sys/stat.h>
3285/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3286struct buf { int x; };
3287FILE * (*rcsopen) (struct buf *, struct stat *, int);
3288static char *e (p, i)
3289     char **p;
3290     int i;
3291{
3292  return p[i];
3293}
3294static char *f (char * (*g) (char **, int), char **p, ...)
3295{
3296  char *s;
3297  va_list v;
3298  va_start (v,p);
3299  s = g (p, va_arg (v,int));
3300  va_end (v);
3301  return s;
3302}
3303
3304/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3305   function prototypes and stuff, but not '\xHH' hex character constants.
3306   These don't provoke an error unfortunately, instead are silently treated
3307   as 'x'.  The following induces an error, until -std is added to get
3308   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3309   array size at least.  It's necessary to write '\x00'==0 to get something
3310   that's true only with -std.  */
3311int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3312
3313/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3314   inside strings and character constants.  */
3315#define FOO(x) 'x'
3316int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3317
3318int test (int i, double x);
3319struct s1 {int (*f) (int a);};
3320struct s2 {int (*f) (double a);};
3321int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3322int argc;
3323char **argv;
3324int
3325main ()
3326{
3327return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3328  ;
3329  return 0;
3330}
3331_ACEOF
3332for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3333	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3334do
3335  CC="$ac_save_CC $ac_arg"
3336  rm -f conftest.$ac_objext
3337if { (ac_try="$ac_compile"
3338case "(($ac_try" in
3339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340  *) ac_try_echo=$ac_try;;
3341esac
3342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3343  (eval "$ac_compile") 2>conftest.er1
3344  ac_status=$?
3345  grep -v '^ *+' conftest.er1 >conftest.err
3346  rm -f conftest.er1
3347  cat conftest.err >&5
3348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349  (exit $ac_status); } &&
3350	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3351  { (case "(($ac_try" in
3352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353  *) ac_try_echo=$ac_try;;
3354esac
3355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3356  (eval "$ac_try") 2>&5
3357  ac_status=$?
3358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359  (exit $ac_status); }; } &&
3360	 { ac_try='test -s conftest.$ac_objext'
3361  { (case "(($ac_try" in
3362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363  *) ac_try_echo=$ac_try;;
3364esac
3365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366  (eval "$ac_try") 2>&5
3367  ac_status=$?
3368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369  (exit $ac_status); }; }; then
3370  ac_cv_prog_cc_c89=$ac_arg
3371else
3372  echo "$as_me: failed program was:" >&5
3373sed 's/^/| /' conftest.$ac_ext >&5
3374
3375
3376fi
3377
3378rm -f core conftest.err conftest.$ac_objext
3379  test "x$ac_cv_prog_cc_c89" != "xno" && break
3380done
3381rm -f conftest.$ac_ext
3382CC=$ac_save_CC
3383
3384fi
3385# AC_CACHE_VAL
3386case "x$ac_cv_prog_cc_c89" in
3387  x)
3388    { echo "$as_me:$LINENO: result: none needed" >&5
3389echo "${ECHO_T}none needed" >&6; } ;;
3390  xno)
3391    { echo "$as_me:$LINENO: result: unsupported" >&5
3392echo "${ECHO_T}unsupported" >&6; } ;;
3393  *)
3394    CC="$CC $ac_cv_prog_cc_c89"
3395    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3396echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3397esac
3398
3399
3400ac_ext=c
3401ac_cpp='$CPP $CPPFLAGS'
3402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405
3406
3407ac_ext=c
3408ac_cpp='$CPP $CPPFLAGS'
3409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3411ac_compiler_gnu=$ac_cv_c_compiler_gnu
3412{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3413echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3414# On Suns, sometimes $CPP names a directory.
3415if test -n "$CPP" && test -d "$CPP"; then
3416  CPP=
3417fi
3418if test -z "$CPP"; then
3419  if test "${ac_cv_prog_CPP+set}" = set; then
3420  echo $ECHO_N "(cached) $ECHO_C" >&6
3421else
3422      # Double quotes because CPP needs to be expanded
3423    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3424    do
3425      ac_preproc_ok=false
3426for ac_c_preproc_warn_flag in '' yes
3427do
3428  # Use a header file that comes with gcc, so configuring glibc
3429  # with a fresh cross-compiler works.
3430  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3431  # <limits.h> exists even on freestanding compilers.
3432  # On the NeXT, cc -E runs the code through the compiler's parser,
3433  # not just through cpp. "Syntax error" is here to catch this case.
3434  cat >conftest.$ac_ext <<_ACEOF
3435/* confdefs.h.  */
3436_ACEOF
3437cat confdefs.h >>conftest.$ac_ext
3438cat >>conftest.$ac_ext <<_ACEOF
3439/* end confdefs.h.  */
3440#ifdef __STDC__
3441# include <limits.h>
3442#else
3443# include <assert.h>
3444#endif
3445		     Syntax error
3446_ACEOF
3447if { (ac_try="$ac_cpp conftest.$ac_ext"
3448case "(($ac_try" in
3449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450  *) ac_try_echo=$ac_try;;
3451esac
3452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3453  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3454  ac_status=$?
3455  grep -v '^ *+' conftest.er1 >conftest.err
3456  rm -f conftest.er1
3457  cat conftest.err >&5
3458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459  (exit $ac_status); } >/dev/null; then
3460  if test -s conftest.err; then
3461    ac_cpp_err=$ac_c_preproc_warn_flag
3462    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3463  else
3464    ac_cpp_err=
3465  fi
3466else
3467  ac_cpp_err=yes
3468fi
3469if test -z "$ac_cpp_err"; then
3470  :
3471else
3472  echo "$as_me: failed program was:" >&5
3473sed 's/^/| /' conftest.$ac_ext >&5
3474
3475  # Broken: fails on valid input.
3476continue
3477fi
3478
3479rm -f conftest.err conftest.$ac_ext
3480
3481  # OK, works on sane cases.  Now check whether nonexistent headers
3482  # can be detected and how.
3483  cat >conftest.$ac_ext <<_ACEOF
3484/* confdefs.h.  */
3485_ACEOF
3486cat confdefs.h >>conftest.$ac_ext
3487cat >>conftest.$ac_ext <<_ACEOF
3488/* end confdefs.h.  */
3489#include <ac_nonexistent.h>
3490_ACEOF
3491if { (ac_try="$ac_cpp conftest.$ac_ext"
3492case "(($ac_try" in
3493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494  *) ac_try_echo=$ac_try;;
3495esac
3496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3497  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3498  ac_status=$?
3499  grep -v '^ *+' conftest.er1 >conftest.err
3500  rm -f conftest.er1
3501  cat conftest.err >&5
3502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503  (exit $ac_status); } >/dev/null; then
3504  if test -s conftest.err; then
3505    ac_cpp_err=$ac_c_preproc_warn_flag
3506    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3507  else
3508    ac_cpp_err=
3509  fi
3510else
3511  ac_cpp_err=yes
3512fi
3513if test -z "$ac_cpp_err"; then
3514  # Broken: success on invalid input.
3515continue
3516else
3517  echo "$as_me: failed program was:" >&5
3518sed 's/^/| /' conftest.$ac_ext >&5
3519
3520  # Passes both tests.
3521ac_preproc_ok=:
3522break
3523fi
3524
3525rm -f conftest.err conftest.$ac_ext
3526
3527done
3528# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3529rm -f conftest.err conftest.$ac_ext
3530if $ac_preproc_ok; then
3531  break
3532fi
3533
3534    done
3535    ac_cv_prog_CPP=$CPP
3536
3537fi
3538  CPP=$ac_cv_prog_CPP
3539else
3540  ac_cv_prog_CPP=$CPP
3541fi
3542{ echo "$as_me:$LINENO: result: $CPP" >&5
3543echo "${ECHO_T}$CPP" >&6; }
3544ac_preproc_ok=false
3545for ac_c_preproc_warn_flag in '' yes
3546do
3547  # Use a header file that comes with gcc, so configuring glibc
3548  # with a fresh cross-compiler works.
3549  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3550  # <limits.h> exists even on freestanding compilers.
3551  # On the NeXT, cc -E runs the code through the compiler's parser,
3552  # not just through cpp. "Syntax error" is here to catch this case.
3553  cat >conftest.$ac_ext <<_ACEOF
3554/* confdefs.h.  */
3555_ACEOF
3556cat confdefs.h >>conftest.$ac_ext
3557cat >>conftest.$ac_ext <<_ACEOF
3558/* end confdefs.h.  */
3559#ifdef __STDC__
3560# include <limits.h>
3561#else
3562# include <assert.h>
3563#endif
3564		     Syntax error
3565_ACEOF
3566if { (ac_try="$ac_cpp conftest.$ac_ext"
3567case "(($ac_try" in
3568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569  *) ac_try_echo=$ac_try;;
3570esac
3571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3572  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3573  ac_status=$?
3574  grep -v '^ *+' conftest.er1 >conftest.err
3575  rm -f conftest.er1
3576  cat conftest.err >&5
3577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578  (exit $ac_status); } >/dev/null; then
3579  if test -s conftest.err; then
3580    ac_cpp_err=$ac_c_preproc_warn_flag
3581    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3582  else
3583    ac_cpp_err=
3584  fi
3585else
3586  ac_cpp_err=yes
3587fi
3588if test -z "$ac_cpp_err"; then
3589  :
3590else
3591  echo "$as_me: failed program was:" >&5
3592sed 's/^/| /' conftest.$ac_ext >&5
3593
3594  # Broken: fails on valid input.
3595continue
3596fi
3597
3598rm -f conftest.err conftest.$ac_ext
3599
3600  # OK, works on sane cases.  Now check whether nonexistent headers
3601  # can be detected and how.
3602  cat >conftest.$ac_ext <<_ACEOF
3603/* confdefs.h.  */
3604_ACEOF
3605cat confdefs.h >>conftest.$ac_ext
3606cat >>conftest.$ac_ext <<_ACEOF
3607/* end confdefs.h.  */
3608#include <ac_nonexistent.h>
3609_ACEOF
3610if { (ac_try="$ac_cpp conftest.$ac_ext"
3611case "(($ac_try" in
3612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613  *) ac_try_echo=$ac_try;;
3614esac
3615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3616  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3617  ac_status=$?
3618  grep -v '^ *+' conftest.er1 >conftest.err
3619  rm -f conftest.er1
3620  cat conftest.err >&5
3621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622  (exit $ac_status); } >/dev/null; then
3623  if test -s conftest.err; then
3624    ac_cpp_err=$ac_c_preproc_warn_flag
3625    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3626  else
3627    ac_cpp_err=
3628  fi
3629else
3630  ac_cpp_err=yes
3631fi
3632if test -z "$ac_cpp_err"; then
3633  # Broken: success on invalid input.
3634continue
3635else
3636  echo "$as_me: failed program was:" >&5
3637sed 's/^/| /' conftest.$ac_ext >&5
3638
3639  # Passes both tests.
3640ac_preproc_ok=:
3641break
3642fi
3643
3644rm -f conftest.err conftest.$ac_ext
3645
3646done
3647# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3648rm -f conftest.err conftest.$ac_ext
3649if $ac_preproc_ok; then
3650  :
3651else
3652  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3653See \`config.log' for more details." >&5
3654echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3655See \`config.log' for more details." >&2;}
3656   { (exit 1); exit 1; }; }
3657fi
3658
3659ac_ext=c
3660ac_cpp='$CPP $CPPFLAGS'
3661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3663ac_compiler_gnu=$ac_cv_c_compiler_gnu
3664
3665
3666{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3667echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3668if test "${ac_cv_path_GREP+set}" = set; then
3669  echo $ECHO_N "(cached) $ECHO_C" >&6
3670else
3671  # Extract the first word of "grep ggrep" to use in msg output
3672if test -z "$GREP"; then
3673set dummy grep ggrep; ac_prog_name=$2
3674if test "${ac_cv_path_GREP+set}" = set; then
3675  echo $ECHO_N "(cached) $ECHO_C" >&6
3676else
3677  ac_path_GREP_found=false
3678# Loop through the user's path and test for each of PROGNAME-LIST
3679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3681do
3682  IFS=$as_save_IFS
3683  test -z "$as_dir" && as_dir=.
3684  for ac_prog in grep ggrep; do
3685  for ac_exec_ext in '' $ac_executable_extensions; do
3686    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3687    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3688    # Check for GNU ac_path_GREP and select it if it is found.
3689  # Check for GNU $ac_path_GREP
3690case `"$ac_path_GREP" --version 2>&1` in
3691*GNU*)
3692  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3693*)
3694  ac_count=0
3695  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3696  while :
3697  do
3698    cat "conftest.in" "conftest.in" >"conftest.tmp"
3699    mv "conftest.tmp" "conftest.in"
3700    cp "conftest.in" "conftest.nl"
3701    echo 'GREP' >> "conftest.nl"
3702    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3703    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3704    ac_count=`expr $ac_count + 1`
3705    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3706      # Best one so far, save it but keep looking for a better one
3707      ac_cv_path_GREP="$ac_path_GREP"
3708      ac_path_GREP_max=$ac_count
3709    fi
3710    # 10*(2^10) chars as input seems more than enough
3711    test $ac_count -gt 10 && break
3712  done
3713  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3714esac
3715
3716
3717    $ac_path_GREP_found && break 3
3718  done
3719done
3720
3721done
3722IFS=$as_save_IFS
3723
3724
3725fi
3726
3727GREP="$ac_cv_path_GREP"
3728if test -z "$GREP"; then
3729  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3730echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3731   { (exit 1); exit 1; }; }
3732fi
3733
3734else
3735  ac_cv_path_GREP=$GREP
3736fi
3737
3738
3739fi
3740{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3741echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3742 GREP="$ac_cv_path_GREP"
3743
3744
3745{ echo "$as_me:$LINENO: checking for egrep" >&5
3746echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3747if test "${ac_cv_path_EGREP+set}" = set; then
3748  echo $ECHO_N "(cached) $ECHO_C" >&6
3749else
3750  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3751   then ac_cv_path_EGREP="$GREP -E"
3752   else
3753     # Extract the first word of "egrep" to use in msg output
3754if test -z "$EGREP"; then
3755set dummy egrep; ac_prog_name=$2
3756if test "${ac_cv_path_EGREP+set}" = set; then
3757  echo $ECHO_N "(cached) $ECHO_C" >&6
3758else
3759  ac_path_EGREP_found=false
3760# Loop through the user's path and test for each of PROGNAME-LIST
3761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3763do
3764  IFS=$as_save_IFS
3765  test -z "$as_dir" && as_dir=.
3766  for ac_prog in egrep; do
3767  for ac_exec_ext in '' $ac_executable_extensions; do
3768    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3769    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3770    # Check for GNU ac_path_EGREP and select it if it is found.
3771  # Check for GNU $ac_path_EGREP
3772case `"$ac_path_EGREP" --version 2>&1` in
3773*GNU*)
3774  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3775*)
3776  ac_count=0
3777  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3778  while :
3779  do
3780    cat "conftest.in" "conftest.in" >"conftest.tmp"
3781    mv "conftest.tmp" "conftest.in"
3782    cp "conftest.in" "conftest.nl"
3783    echo 'EGREP' >> "conftest.nl"
3784    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3785    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3786    ac_count=`expr $ac_count + 1`
3787    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3788      # Best one so far, save it but keep looking for a better one
3789      ac_cv_path_EGREP="$ac_path_EGREP"
3790      ac_path_EGREP_max=$ac_count
3791    fi
3792    # 10*(2^10) chars as input seems more than enough
3793    test $ac_count -gt 10 && break
3794  done
3795  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3796esac
3797
3798
3799    $ac_path_EGREP_found && break 3
3800  done
3801done
3802
3803done
3804IFS=$as_save_IFS
3805
3806
3807fi
3808
3809EGREP="$ac_cv_path_EGREP"
3810if test -z "$EGREP"; then
3811  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3812echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3813   { (exit 1); exit 1; }; }
3814fi
3815
3816else
3817  ac_cv_path_EGREP=$EGREP
3818fi
3819
3820
3821   fi
3822fi
3823{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3824echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3825 EGREP="$ac_cv_path_EGREP"
3826
3827
3828{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3829echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3830if test "${ac_cv_header_stdc+set}" = set; then
3831  echo $ECHO_N "(cached) $ECHO_C" >&6
3832else
3833  cat >conftest.$ac_ext <<_ACEOF
3834/* confdefs.h.  */
3835_ACEOF
3836cat confdefs.h >>conftest.$ac_ext
3837cat >>conftest.$ac_ext <<_ACEOF
3838/* end confdefs.h.  */
3839#include <stdlib.h>
3840#include <stdarg.h>
3841#include <string.h>
3842#include <float.h>
3843
3844int
3845main ()
3846{
3847
3848  ;
3849  return 0;
3850}
3851_ACEOF
3852rm -f conftest.$ac_objext
3853if { (ac_try="$ac_compile"
3854case "(($ac_try" in
3855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856  *) ac_try_echo=$ac_try;;
3857esac
3858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3859  (eval "$ac_compile") 2>conftest.er1
3860  ac_status=$?
3861  grep -v '^ *+' conftest.er1 >conftest.err
3862  rm -f conftest.er1
3863  cat conftest.err >&5
3864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865  (exit $ac_status); } &&
3866	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3867  { (case "(($ac_try" in
3868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869  *) ac_try_echo=$ac_try;;
3870esac
3871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3872  (eval "$ac_try") 2>&5
3873  ac_status=$?
3874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875  (exit $ac_status); }; } &&
3876	 { ac_try='test -s conftest.$ac_objext'
3877  { (case "(($ac_try" in
3878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879  *) ac_try_echo=$ac_try;;
3880esac
3881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3882  (eval "$ac_try") 2>&5
3883  ac_status=$?
3884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885  (exit $ac_status); }; }; then
3886  ac_cv_header_stdc=yes
3887else
3888  echo "$as_me: failed program was:" >&5
3889sed 's/^/| /' conftest.$ac_ext >&5
3890
3891	ac_cv_header_stdc=no
3892fi
3893
3894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895
3896if test $ac_cv_header_stdc = yes; then
3897  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3898  cat >conftest.$ac_ext <<_ACEOF
3899/* confdefs.h.  */
3900_ACEOF
3901cat confdefs.h >>conftest.$ac_ext
3902cat >>conftest.$ac_ext <<_ACEOF
3903/* end confdefs.h.  */
3904#include <string.h>
3905
3906_ACEOF
3907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3908  $EGREP "memchr" >/dev/null 2>&1; then
3909  :
3910else
3911  ac_cv_header_stdc=no
3912fi
3913rm -f conftest*
3914
3915fi
3916
3917if test $ac_cv_header_stdc = yes; then
3918  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3919  cat >conftest.$ac_ext <<_ACEOF
3920/* confdefs.h.  */
3921_ACEOF
3922cat confdefs.h >>conftest.$ac_ext
3923cat >>conftest.$ac_ext <<_ACEOF
3924/* end confdefs.h.  */
3925#include <stdlib.h>
3926
3927_ACEOF
3928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3929  $EGREP "free" >/dev/null 2>&1; then
3930  :
3931else
3932  ac_cv_header_stdc=no
3933fi
3934rm -f conftest*
3935
3936fi
3937
3938if test $ac_cv_header_stdc = yes; then
3939  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3940  if test "$cross_compiling" = yes; then
3941  :
3942else
3943  cat >conftest.$ac_ext <<_ACEOF
3944/* confdefs.h.  */
3945_ACEOF
3946cat confdefs.h >>conftest.$ac_ext
3947cat >>conftest.$ac_ext <<_ACEOF
3948/* end confdefs.h.  */
3949#include <ctype.h>
3950#include <stdlib.h>
3951#if ((' ' & 0x0FF) == 0x020)
3952# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3953# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3954#else
3955# define ISLOWER(c) \
3956		   (('a' <= (c) && (c) <= 'i') \
3957		     || ('j' <= (c) && (c) <= 'r') \
3958		     || ('s' <= (c) && (c) <= 'z'))
3959# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3960#endif
3961
3962#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3963int
3964main ()
3965{
3966  int i;
3967  for (i = 0; i < 256; i++)
3968    if (XOR (islower (i), ISLOWER (i))
3969	|| toupper (i) != TOUPPER (i))
3970      return 2;
3971  return 0;
3972}
3973_ACEOF
3974rm -f conftest$ac_exeext
3975if { (ac_try="$ac_link"
3976case "(($ac_try" in
3977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978  *) ac_try_echo=$ac_try;;
3979esac
3980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3981  (eval "$ac_link") 2>&5
3982  ac_status=$?
3983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3985  { (case "(($ac_try" in
3986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987  *) ac_try_echo=$ac_try;;
3988esac
3989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3990  (eval "$ac_try") 2>&5
3991  ac_status=$?
3992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993  (exit $ac_status); }; }; then
3994  :
3995else
3996  echo "$as_me: program exited with status $ac_status" >&5
3997echo "$as_me: failed program was:" >&5
3998sed 's/^/| /' conftest.$ac_ext >&5
3999
4000( exit $ac_status )
4001ac_cv_header_stdc=no
4002fi
4003rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4004fi
4005
4006
4007fi
4008fi
4009{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4010echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4011if test $ac_cv_header_stdc = yes; then
4012
4013cat >>confdefs.h <<\_ACEOF
4014#define STDC_HEADERS 1
4015_ACEOF
4016
4017fi
4018
4019# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4030		  inttypes.h stdint.h unistd.h
4031do
4032as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4033{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4034echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4035if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4036  echo $ECHO_N "(cached) $ECHO_C" >&6
4037else
4038  cat >conftest.$ac_ext <<_ACEOF
4039/* confdefs.h.  */
4040_ACEOF
4041cat confdefs.h >>conftest.$ac_ext
4042cat >>conftest.$ac_ext <<_ACEOF
4043/* end confdefs.h.  */
4044$ac_includes_default
4045
4046#include <$ac_header>
4047_ACEOF
4048rm -f conftest.$ac_objext
4049if { (ac_try="$ac_compile"
4050case "(($ac_try" in
4051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052  *) ac_try_echo=$ac_try;;
4053esac
4054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4055  (eval "$ac_compile") 2>conftest.er1
4056  ac_status=$?
4057  grep -v '^ *+' conftest.er1 >conftest.err
4058  rm -f conftest.er1
4059  cat conftest.err >&5
4060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061  (exit $ac_status); } &&
4062	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4063  { (case "(($ac_try" in
4064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065  *) ac_try_echo=$ac_try;;
4066esac
4067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4068  (eval "$ac_try") 2>&5
4069  ac_status=$?
4070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071  (exit $ac_status); }; } &&
4072	 { ac_try='test -s conftest.$ac_objext'
4073  { (case "(($ac_try" in
4074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075  *) ac_try_echo=$ac_try;;
4076esac
4077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4078  (eval "$ac_try") 2>&5
4079  ac_status=$?
4080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081  (exit $ac_status); }; }; then
4082  eval "$as_ac_Header=yes"
4083else
4084  echo "$as_me: failed program was:" >&5
4085sed 's/^/| /' conftest.$ac_ext >&5
4086
4087	eval "$as_ac_Header=no"
4088fi
4089
4090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4091fi
4092ac_res=`eval echo '${'$as_ac_Header'}'`
4093	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4094echo "${ECHO_T}$ac_res" >&6; }
4095if test `eval echo '${'$as_ac_Header'}'` = yes; then
4096  cat >>confdefs.h <<_ACEOF
4097#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4098_ACEOF
4099
4100fi
4101
4102done
4103
4104
4105{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4106echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4107if test "${ac_cv_c_bigendian+set}" = set; then
4108  echo $ECHO_N "(cached) $ECHO_C" >&6
4109else
4110  # See if sys/param.h defines the BYTE_ORDER macro.
4111cat >conftest.$ac_ext <<_ACEOF
4112/* confdefs.h.  */
4113_ACEOF
4114cat confdefs.h >>conftest.$ac_ext
4115cat >>conftest.$ac_ext <<_ACEOF
4116/* end confdefs.h.  */
4117#include <sys/types.h>
4118#include <sys/param.h>
4119
4120int
4121main ()
4122{
4123#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4124 bogus endian macros
4125#endif
4126
4127  ;
4128  return 0;
4129}
4130_ACEOF
4131rm -f conftest.$ac_objext
4132if { (ac_try="$ac_compile"
4133case "(($ac_try" in
4134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135  *) ac_try_echo=$ac_try;;
4136esac
4137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4138  (eval "$ac_compile") 2>conftest.er1
4139  ac_status=$?
4140  grep -v '^ *+' conftest.er1 >conftest.err
4141  rm -f conftest.er1
4142  cat conftest.err >&5
4143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144  (exit $ac_status); } &&
4145	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4146  { (case "(($ac_try" in
4147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148  *) ac_try_echo=$ac_try;;
4149esac
4150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151  (eval "$ac_try") 2>&5
4152  ac_status=$?
4153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154  (exit $ac_status); }; } &&
4155	 { ac_try='test -s conftest.$ac_objext'
4156  { (case "(($ac_try" in
4157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158  *) ac_try_echo=$ac_try;;
4159esac
4160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161  (eval "$ac_try") 2>&5
4162  ac_status=$?
4163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164  (exit $ac_status); }; }; then
4165  # It does; now see whether it defined to BIG_ENDIAN or not.
4166cat >conftest.$ac_ext <<_ACEOF
4167/* confdefs.h.  */
4168_ACEOF
4169cat confdefs.h >>conftest.$ac_ext
4170cat >>conftest.$ac_ext <<_ACEOF
4171/* end confdefs.h.  */
4172#include <sys/types.h>
4173#include <sys/param.h>
4174
4175int
4176main ()
4177{
4178#if BYTE_ORDER != BIG_ENDIAN
4179 not big endian
4180#endif
4181
4182  ;
4183  return 0;
4184}
4185_ACEOF
4186rm -f conftest.$ac_objext
4187if { (ac_try="$ac_compile"
4188case "(($ac_try" in
4189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190  *) ac_try_echo=$ac_try;;
4191esac
4192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4193  (eval "$ac_compile") 2>conftest.er1
4194  ac_status=$?
4195  grep -v '^ *+' conftest.er1 >conftest.err
4196  rm -f conftest.er1
4197  cat conftest.err >&5
4198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199  (exit $ac_status); } &&
4200	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4201  { (case "(($ac_try" in
4202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203  *) ac_try_echo=$ac_try;;
4204esac
4205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4206  (eval "$ac_try") 2>&5
4207  ac_status=$?
4208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209  (exit $ac_status); }; } &&
4210	 { ac_try='test -s conftest.$ac_objext'
4211  { (case "(($ac_try" in
4212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213  *) ac_try_echo=$ac_try;;
4214esac
4215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4216  (eval "$ac_try") 2>&5
4217  ac_status=$?
4218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219  (exit $ac_status); }; }; then
4220  ac_cv_c_bigendian=yes
4221else
4222  echo "$as_me: failed program was:" >&5
4223sed 's/^/| /' conftest.$ac_ext >&5
4224
4225	ac_cv_c_bigendian=no
4226fi
4227
4228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229else
4230  echo "$as_me: failed program was:" >&5
4231sed 's/^/| /' conftest.$ac_ext >&5
4232
4233	# It does not; compile a test program.
4234if test "$cross_compiling" = yes; then
4235  # try to guess the endianness by grepping values into an object file
4236  ac_cv_c_bigendian=unknown
4237  cat >conftest.$ac_ext <<_ACEOF
4238/* confdefs.h.  */
4239_ACEOF
4240cat confdefs.h >>conftest.$ac_ext
4241cat >>conftest.$ac_ext <<_ACEOF
4242/* end confdefs.h.  */
4243short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4244short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4245void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4246short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4247short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4248void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4249int
4250main ()
4251{
4252 _ascii (); _ebcdic ();
4253  ;
4254  return 0;
4255}
4256_ACEOF
4257rm -f conftest.$ac_objext
4258if { (ac_try="$ac_compile"
4259case "(($ac_try" in
4260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261  *) ac_try_echo=$ac_try;;
4262esac
4263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264  (eval "$ac_compile") 2>conftest.er1
4265  ac_status=$?
4266  grep -v '^ *+' conftest.er1 >conftest.err
4267  rm -f conftest.er1
4268  cat conftest.err >&5
4269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270  (exit $ac_status); } &&
4271	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4272  { (case "(($ac_try" in
4273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274  *) ac_try_echo=$ac_try;;
4275esac
4276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277  (eval "$ac_try") 2>&5
4278  ac_status=$?
4279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280  (exit $ac_status); }; } &&
4281	 { ac_try='test -s conftest.$ac_objext'
4282  { (case "(($ac_try" in
4283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284  *) ac_try_echo=$ac_try;;
4285esac
4286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4287  (eval "$ac_try") 2>&5
4288  ac_status=$?
4289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290  (exit $ac_status); }; }; then
4291  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4292  ac_cv_c_bigendian=yes
4293fi
4294if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4295  if test "$ac_cv_c_bigendian" = unknown; then
4296    ac_cv_c_bigendian=no
4297  else
4298    # finding both strings is unlikely to happen, but who knows?
4299    ac_cv_c_bigendian=unknown
4300  fi
4301fi
4302else
4303  echo "$as_me: failed program was:" >&5
4304sed 's/^/| /' conftest.$ac_ext >&5
4305
4306
4307fi
4308
4309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4310else
4311  cat >conftest.$ac_ext <<_ACEOF
4312/* confdefs.h.  */
4313_ACEOF
4314cat confdefs.h >>conftest.$ac_ext
4315cat >>conftest.$ac_ext <<_ACEOF
4316/* end confdefs.h.  */
4317$ac_includes_default
4318int
4319main ()
4320{
4321
4322  /* Are we little or big endian?  From Harbison&Steele.  */
4323  union
4324  {
4325    long int l;
4326    char c[sizeof (long int)];
4327  } u;
4328  u.l = 1;
4329  return u.c[sizeof (long int) - 1] == 1;
4330
4331  ;
4332  return 0;
4333}
4334_ACEOF
4335rm -f conftest$ac_exeext
4336if { (ac_try="$ac_link"
4337case "(($ac_try" in
4338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339  *) ac_try_echo=$ac_try;;
4340esac
4341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4342  (eval "$ac_link") 2>&5
4343  ac_status=$?
4344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4346  { (case "(($ac_try" in
4347  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348  *) ac_try_echo=$ac_try;;
4349esac
4350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351  (eval "$ac_try") 2>&5
4352  ac_status=$?
4353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354  (exit $ac_status); }; }; then
4355  ac_cv_c_bigendian=no
4356else
4357  echo "$as_me: program exited with status $ac_status" >&5
4358echo "$as_me: failed program was:" >&5
4359sed 's/^/| /' conftest.$ac_ext >&5
4360
4361( exit $ac_status )
4362ac_cv_c_bigendian=yes
4363fi
4364rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4365fi
4366
4367
4368fi
4369
4370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4371fi
4372{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4373echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4374case $ac_cv_c_bigendian in
4375  yes)
4376    ENDIAN=big
4377 ;;
4378  no)
4379    ENDIAN=little
4380 ;;
4381  *)
4382    { { echo "$as_me:$LINENO: error: unknown endianness
4383presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4384echo "$as_me: error: unknown endianness
4385presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4386   { (exit 1); exit 1; }; } ;;
4387esac
4388
4389
4390if test "$cross_compiling" = yes; then
4391  LLVM_CROSS_COMPILING=1
4392
4393
4394{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4395echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4396if test "${ac_cv_build_exeext+set}" = set; then
4397  echo $ECHO_N "(cached) $ECHO_C" >&6
4398else
4399  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4400  ac_cv_build_exeext=.exe
4401else
4402  ac_build_prefix=${build_alias}-
4403
4404  # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4405set dummy ${ac_build_prefix}gcc; ac_word=$2
4406{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4408if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4409  echo $ECHO_N "(cached) $ECHO_C" >&6
4410else
4411  if test -n "$BUILD_CC"; then
4412  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4413else
4414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415for as_dir in $PATH
4416do
4417  IFS=$as_save_IFS
4418  test -z "$as_dir" && as_dir=.
4419  for ac_exec_ext in '' $ac_executable_extensions; do
4420  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4421    ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4422    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4423    break 2
4424  fi
4425done
4426done
4427IFS=$as_save_IFS
4428
4429fi
4430fi
4431BUILD_CC=$ac_cv_prog_BUILD_CC
4432if test -n "$BUILD_CC"; then
4433  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4434echo "${ECHO_T}$BUILD_CC" >&6; }
4435else
4436  { echo "$as_me:$LINENO: result: no" >&5
4437echo "${ECHO_T}no" >&6; }
4438fi
4439
4440
4441  if test -z "$BUILD_CC"; then
4442     # Extract the first word of "gcc", so it can be a program name with args.
4443set dummy gcc; ac_word=$2
4444{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4446if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4447  echo $ECHO_N "(cached) $ECHO_C" >&6
4448else
4449  if test -n "$BUILD_CC"; then
4450  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4451else
4452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453for as_dir in $PATH
4454do
4455  IFS=$as_save_IFS
4456  test -z "$as_dir" && as_dir=.
4457  for ac_exec_ext in '' $ac_executable_extensions; do
4458  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4459    ac_cv_prog_BUILD_CC="gcc"
4460    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461    break 2
4462  fi
4463done
4464done
4465IFS=$as_save_IFS
4466
4467fi
4468fi
4469BUILD_CC=$ac_cv_prog_BUILD_CC
4470if test -n "$BUILD_CC"; then
4471  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4472echo "${ECHO_T}$BUILD_CC" >&6; }
4473else
4474  { echo "$as_me:$LINENO: result: no" >&5
4475echo "${ECHO_T}no" >&6; }
4476fi
4477
4478
4479     if test -z "$BUILD_CC"; then
4480       # Extract the first word of "cc", so it can be a program name with args.
4481set dummy cc; ac_word=$2
4482{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4484if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4485  echo $ECHO_N "(cached) $ECHO_C" >&6
4486else
4487  if test -n "$BUILD_CC"; then
4488  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4489else
4490  ac_prog_rejected=no
4491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492for as_dir in $PATH
4493do
4494  IFS=$as_save_IFS
4495  test -z "$as_dir" && as_dir=.
4496  for ac_exec_ext in '' $ac_executable_extensions; do
4497  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4498    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4499       ac_prog_rejected=yes
4500       continue
4501     fi
4502    ac_cv_prog_BUILD_CC="cc"
4503    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4504    break 2
4505  fi
4506done
4507done
4508IFS=$as_save_IFS
4509
4510if test $ac_prog_rejected = yes; then
4511  # We found a bogon in the path, so make sure we never use it.
4512  set dummy $ac_cv_prog_BUILD_CC
4513  shift
4514  if test $# != 0; then
4515    # We chose a different compiler from the bogus one.
4516    # However, it has the same basename, so the bogon will be chosen
4517    # first if we set BUILD_CC to just the basename; use the full file name.
4518    shift
4519    ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4520  fi
4521fi
4522fi
4523fi
4524BUILD_CC=$ac_cv_prog_BUILD_CC
4525if test -n "$BUILD_CC"; then
4526  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4527echo "${ECHO_T}$BUILD_CC" >&6; }
4528else
4529  { echo "$as_me:$LINENO: result: no" >&5
4530echo "${ECHO_T}no" >&6; }
4531fi
4532
4533
4534     fi
4535  fi
4536  test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4537echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4538   { (exit 1); exit 1; }; }
4539  ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4540  rm -f conftest*
4541  echo 'int main () { return 0; }' > conftest.$ac_ext
4542  ac_cv_build_exeext=
4543  if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4544  (eval $ac_build_link) 2>&5
4545  ac_status=$?
4546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547  (exit $ac_status); }; then
4548    for file in conftest.*; do
4549      case $file in
4550      *.c | *.o | *.obj | *.dSYM) ;;
4551      *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4552      esac
4553    done
4554  else
4555    { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4556echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4557   { (exit 1); exit 1; }; }
4558  fi
4559  rm -f conftest*
4560  test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4561fi
4562fi
4563
4564BUILD_EXEEXT=""
4565test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4566{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4567echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4568ac_build_exeext=$BUILD_EXEEXT
4569
4570  ac_build_prefix=${build_alias}-
4571  # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4572set dummy ${ac_build_prefix}g++; ac_word=$2
4573{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4575if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4576  echo $ECHO_N "(cached) $ECHO_C" >&6
4577else
4578  if test -n "$BUILD_CXX"; then
4579  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4580else
4581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582for as_dir in $PATH
4583do
4584  IFS=$as_save_IFS
4585  test -z "$as_dir" && as_dir=.
4586  for ac_exec_ext in '' $ac_executable_extensions; do
4587  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4588    ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4589    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4590    break 2
4591  fi
4592done
4593done
4594IFS=$as_save_IFS
4595
4596fi
4597fi
4598BUILD_CXX=$ac_cv_prog_BUILD_CXX
4599if test -n "$BUILD_CXX"; then
4600  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4601echo "${ECHO_T}$BUILD_CXX" >&6; }
4602else
4603  { echo "$as_me:$LINENO: result: no" >&5
4604echo "${ECHO_T}no" >&6; }
4605fi
4606
4607
4608  if test -z "$BUILD_CXX"; then
4609     # Extract the first word of "g++", so it can be a program name with args.
4610set dummy g++; ac_word=$2
4611{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4613if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4614  echo $ECHO_N "(cached) $ECHO_C" >&6
4615else
4616  if test -n "$BUILD_CXX"; then
4617  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4618else
4619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620for as_dir in $PATH
4621do
4622  IFS=$as_save_IFS
4623  test -z "$as_dir" && as_dir=.
4624  for ac_exec_ext in '' $ac_executable_extensions; do
4625  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4626    ac_cv_prog_BUILD_CXX="g++"
4627    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4628    break 2
4629  fi
4630done
4631done
4632IFS=$as_save_IFS
4633
4634fi
4635fi
4636BUILD_CXX=$ac_cv_prog_BUILD_CXX
4637if test -n "$BUILD_CXX"; then
4638  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4639echo "${ECHO_T}$BUILD_CXX" >&6; }
4640else
4641  { echo "$as_me:$LINENO: result: no" >&5
4642echo "${ECHO_T}no" >&6; }
4643fi
4644
4645
4646     if test -z "$BUILD_CXX"; then
4647       # Extract the first word of "c++", so it can be a program name with args.
4648set dummy c++; ac_word=$2
4649{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4651if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4652  echo $ECHO_N "(cached) $ECHO_C" >&6
4653else
4654  if test -n "$BUILD_CXX"; then
4655  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4656else
4657  ac_prog_rejected=no
4658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659for as_dir in $PATH
4660do
4661  IFS=$as_save_IFS
4662  test -z "$as_dir" && as_dir=.
4663  for ac_exec_ext in '' $ac_executable_extensions; do
4664  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4665    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4666       ac_prog_rejected=yes
4667       continue
4668     fi
4669    ac_cv_prog_BUILD_CXX="c++"
4670    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4671    break 2
4672  fi
4673done
4674done
4675IFS=$as_save_IFS
4676
4677if test $ac_prog_rejected = yes; then
4678  # We found a bogon in the path, so make sure we never use it.
4679  set dummy $ac_cv_prog_BUILD_CXX
4680  shift
4681  if test $# != 0; then
4682    # We chose a different compiler from the bogus one.
4683    # However, it has the same basename, so the bogon will be chosen
4684    # first if we set BUILD_CXX to just the basename; use the full file name.
4685    shift
4686    ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4687  fi
4688fi
4689fi
4690fi
4691BUILD_CXX=$ac_cv_prog_BUILD_CXX
4692if test -n "$BUILD_CXX"; then
4693  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4694echo "${ECHO_T}$BUILD_CXX" >&6; }
4695else
4696  { echo "$as_me:$LINENO: result: no" >&5
4697echo "${ECHO_T}no" >&6; }
4698fi
4699
4700
4701     fi
4702  fi
4703else
4704  LLVM_CROSS_COMPILING=0
4705
4706fi
4707
4708if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4709  cvsbuild="yes"
4710  optimize="no"
4711  CVSBUILD=CVSBUILD=1
4712
4713else
4714  cvsbuild="no"
4715  optimize="yes"
4716fi
4717
4718
4719# Check whether --enable-optimized was given.
4720if test "${enable_optimized+set}" = set; then
4721  enableval=$enable_optimized;
4722else
4723  enableval=$optimize
4724fi
4725
4726if test ${enableval} = "no" ; then
4727  ENABLE_OPTIMIZED=
4728
4729else
4730  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4731
4732fi
4733
4734# Check whether --enable-assertions was given.
4735if test "${enable_assertions+set}" = set; then
4736  enableval=$enable_assertions;
4737else
4738  enableval="yes"
4739fi
4740
4741if test ${enableval} = "yes" ; then
4742  DISABLE_ASSERTIONS=
4743
4744else
4745  DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4746
4747fi
4748
4749# Check whether --enable-expensive-checks was given.
4750if test "${enable_expensive_checks+set}" = set; then
4751  enableval=$enable_expensive_checks;
4752else
4753  enableval="no"
4754fi
4755
4756if test ${enableval} = "yes" ; then
4757  ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4758
4759  EXPENSIVE_CHECKS=yes
4760
4761else
4762  ENABLE_EXPENSIVE_CHECKS=
4763
4764  EXPENSIVE_CHECKS=no
4765
4766fi
4767
4768# Check whether --enable-debug-runtime was given.
4769if test "${enable_debug_runtime+set}" = set; then
4770  enableval=$enable_debug_runtime;
4771else
4772  enableval=no
4773fi
4774
4775if test ${enableval} = "no" ; then
4776  DEBUG_RUNTIME=
4777
4778else
4779  DEBUG_RUNTIME=DEBUG_RUNTIME=1
4780
4781fi
4782
4783# Check whether --enable-jit was given.
4784if test "${enable_jit+set}" = set; then
4785  enableval=$enable_jit;
4786else
4787  enableval=default
4788fi
4789
4790if test ${enableval} = "no"
4791then
4792  JIT=
4793
4794else
4795  case "$llvm_cv_target_arch" in
4796    x86)     TARGET_HAS_JIT=1
4797 ;;
4798    Sparc)   TARGET_HAS_JIT=0
4799 ;;
4800    PowerPC) TARGET_HAS_JIT=1
4801 ;;
4802    x86_64)  TARGET_HAS_JIT=1
4803 ;;
4804    Alpha)   TARGET_HAS_JIT=1
4805 ;;
4806    IA64)    TARGET_HAS_JIT=0
4807 ;;
4808    ARM)     TARGET_HAS_JIT=0
4809 ;;
4810    Mips)    TARGET_HAS_JIT=0
4811 ;;
4812    PIC16)   TARGET_HAS_JIT=0
4813 ;;
4814    *)       TARGET_HAS_JIT=0
4815 ;;
4816  esac
4817fi
4818
4819# Check whether --enable-doxygen was given.
4820if test "${enable_doxygen+set}" = set; then
4821  enableval=$enable_doxygen;
4822else
4823  enableval=default
4824fi
4825
4826case "$enableval" in
4827  yes) ENABLE_DOXYGEN=1
4828 ;;
4829  no)  ENABLE_DOXYGEN=0
4830 ;;
4831  default) ENABLE_DOXYGEN=0
4832 ;;
4833  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4834echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4835   { (exit 1); exit 1; }; } ;;
4836esac
4837
4838# Check whether --enable-threads was given.
4839if test "${enable_threads+set}" = set; then
4840  enableval=$enable_threads;
4841else
4842  enableval=default
4843fi
4844
4845case "$enableval" in
4846  yes) ENABLE_THREADS=1
4847 ;;
4848  no)  ENABLE_THREADS=0
4849 ;;
4850  default) ENABLE_THREADS=1
4851 ;;
4852  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4853echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4854   { (exit 1); exit 1; }; } ;;
4855esac
4856
4857cat >>confdefs.h <<_ACEOF
4858#define ENABLE_THREADS $ENABLE_THREADS
4859_ACEOF
4860
4861
4862# Check whether --enable-pic was given.
4863if test "${enable_pic+set}" = set; then
4864  enableval=$enable_pic;
4865else
4866  enableval=default
4867fi
4868
4869case "$enableval" in
4870  yes) ENABLE_PIC=1
4871 ;;
4872  no)  ENABLE_PIC=0
4873 ;;
4874  default) ENABLE_PIC=0
4875 ;;
4876  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4877echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4878   { (exit 1); exit 1; }; } ;;
4879esac
4880
4881cat >>confdefs.h <<_ACEOF
4882#define ENABLE_PIC $ENABLE_PIC
4883_ACEOF
4884
4885
4886TARGETS_TO_BUILD=""
4887# Check whether --enable-targets was given.
4888if test "${enable_targets+set}" = set; then
4889  enableval=$enable_targets;
4890else
4891  enableval=all
4892fi
4893
4894case "$enableval" in
4895  all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 CBackend MSIL CppBackend" ;;
4896  host-only)
4897    case "$llvm_cv_target_arch" in
4898      x86)     TARGETS_TO_BUILD="X86" ;;
4899      x86_64)  TARGETS_TO_BUILD="X86" ;;
4900      Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4901      PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4902      Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4903      IA64)    TARGETS_TO_BUILD="IA64" ;;
4904      ARM)     TARGETS_TO_BUILD="ARM" ;;
4905      Mips)    TARGETS_TO_BUILD="Mips" ;;
4906      CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4907      PIC16)   TARGETS_TO_BUILD="PIC16" ;;
4908      *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4909echo "$as_me: error: Can not set target to build" >&2;}
4910   { (exit 1); exit 1; }; } ;;
4911    esac
4912    ;;
4913  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4914      case "$a_target" in
4915        x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4916        x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4917        sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4918        powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4919        alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4920        ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4921        arm)     TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4922        mips)    TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4923        spu)     TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4924        pic16)   TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4925        cbe)     TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4926        msil)    TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4927        cpp)     TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4928        *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4929echo "$as_me: error: Unrecognized target $a_target" >&2;}
4930   { (exit 1); exit 1; }; } ;;
4931      esac
4932  done
4933  ;;
4934esac
4935TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4936
4937
4938# Check whether --enable-cbe-printf-a was given.
4939if test "${enable_cbe_printf_a+set}" = set; then
4940  enableval=$enable_cbe_printf_a;
4941else
4942  enableval=default
4943fi
4944
4945case "$enableval" in
4946  yes) ENABLE_CBE_PRINTF_A=1
4947 ;;
4948  no)  ENABLE_CBE_PRINTF_A=0
4949 ;;
4950  default)  ENABLE_CBE_PRINTF_A=1
4951 ;;
4952  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4953echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4954   { (exit 1); exit 1; }; } ;;
4955esac
4956
4957cat >>confdefs.h <<_ACEOF
4958#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4959_ACEOF
4960
4961
4962
4963# Check whether --with-llvmgccdir was given.
4964if test "${with_llvmgccdir+set}" = set; then
4965  withval=$with_llvmgccdir;
4966else
4967  withval=default
4968fi
4969
4970case "$withval" in
4971  default) WITH_LLVMGCCDIR=default ;;
4972  /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4973  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4974echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4975   { (exit 1); exit 1; }; } ;;
4976esac
4977
4978
4979# Check whether --with-llvmgcc was given.
4980if test "${with_llvmgcc+set}" = set; then
4981  withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4982      WITH_LLVMGCCDIR=""
4983fi
4984
4985
4986
4987# Check whether --with-llvmgxx was given.
4988if test "${with_llvmgxx+set}" = set; then
4989  withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4990    WITH_LLVMGCCDIR=""
4991fi
4992
4993
4994if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4995   { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4996echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4997   { (exit 1); exit 1; }; };
4998fi
4999
5000if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5001   { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5002echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5003   { (exit 1); exit 1; }; };
5004fi
5005
5006
5007# Check whether --with-extra-options was given.
5008if test "${with_extra_options+set}" = set; then
5009  withval=$with_extra_options;
5010else
5011  withval=default
5012fi
5013
5014case "$withval" in
5015  default) EXTRA_OPTIONS= ;;
5016  *) EXTRA_OPTIONS=$withval ;;
5017esac
5018EXTRA_OPTIONS=$EXTRA_OPTIONS
5019
5020
5021# Check whether --enable-bindings was given.
5022if test "${enable_bindings+set}" = set; then
5023  enableval=$enable_bindings;
5024else
5025  enableval=default
5026fi
5027
5028BINDINGS_TO_BUILD=""
5029case "$enableval" in
5030  yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5031  all ) BINDINGS_TO_BUILD="ocaml" ;;
5032  none | no) BINDINGS_TO_BUILD="" ;;
5033  *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5034      case "$a_binding" in
5035        ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5036        *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5037echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5038   { (exit 1); exit 1; }; } ;;
5039      esac
5040  done
5041  ;;
5042esac
5043
5044
5045# Check whether --with-ocaml-libdir was given.
5046if test "${with_ocaml_libdir+set}" = set; then
5047  withval=$with_ocaml_libdir;
5048else
5049  withval=auto
5050fi
5051
5052case "$withval" in
5053  auto) with_ocaml_libdir="$withval" ;;
5054  /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5055  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5056echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5057   { (exit 1); exit 1; }; } ;;
5058esac
5059
5060
5061ac_ext=c
5062ac_cpp='$CPP $CPPFLAGS'
5063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5065ac_compiler_gnu=$ac_cv_c_compiler_gnu
5066{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5067echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5068# On Suns, sometimes $CPP names a directory.
5069if test -n "$CPP" && test -d "$CPP"; then
5070  CPP=
5071fi
5072if test -z "$CPP"; then
5073  if test "${ac_cv_prog_CPP+set}" = set; then
5074  echo $ECHO_N "(cached) $ECHO_C" >&6
5075else
5076      # Double quotes because CPP needs to be expanded
5077    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5078    do
5079      ac_preproc_ok=false
5080for ac_c_preproc_warn_flag in '' yes
5081do
5082  # Use a header file that comes with gcc, so configuring glibc
5083  # with a fresh cross-compiler works.
5084  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5085  # <limits.h> exists even on freestanding compilers.
5086  # On the NeXT, cc -E runs the code through the compiler's parser,
5087  # not just through cpp. "Syntax error" is here to catch this case.
5088  cat >conftest.$ac_ext <<_ACEOF
5089/* confdefs.h.  */
5090_ACEOF
5091cat confdefs.h >>conftest.$ac_ext
5092cat >>conftest.$ac_ext <<_ACEOF
5093/* end confdefs.h.  */
5094#ifdef __STDC__
5095# include <limits.h>
5096#else
5097# include <assert.h>
5098#endif
5099		     Syntax error
5100_ACEOF
5101if { (ac_try="$ac_cpp conftest.$ac_ext"
5102case "(($ac_try" in
5103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5104  *) ac_try_echo=$ac_try;;
5105esac
5106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5107  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5108  ac_status=$?
5109  grep -v '^ *+' conftest.er1 >conftest.err
5110  rm -f conftest.er1
5111  cat conftest.err >&5
5112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113  (exit $ac_status); } >/dev/null; then
5114  if test -s conftest.err; then
5115    ac_cpp_err=$ac_c_preproc_warn_flag
5116    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5117  else
5118    ac_cpp_err=
5119  fi
5120else
5121  ac_cpp_err=yes
5122fi
5123if test -z "$ac_cpp_err"; then
5124  :
5125else
5126  echo "$as_me: failed program was:" >&5
5127sed 's/^/| /' conftest.$ac_ext >&5
5128
5129  # Broken: fails on valid input.
5130continue
5131fi
5132
5133rm -f conftest.err conftest.$ac_ext
5134
5135  # OK, works on sane cases.  Now check whether nonexistent headers
5136  # can be detected and how.
5137  cat >conftest.$ac_ext <<_ACEOF
5138/* confdefs.h.  */
5139_ACEOF
5140cat confdefs.h >>conftest.$ac_ext
5141cat >>conftest.$ac_ext <<_ACEOF
5142/* end confdefs.h.  */
5143#include <ac_nonexistent.h>
5144_ACEOF
5145if { (ac_try="$ac_cpp conftest.$ac_ext"
5146case "(($ac_try" in
5147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5148  *) ac_try_echo=$ac_try;;
5149esac
5150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5151  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5152  ac_status=$?
5153  grep -v '^ *+' conftest.er1 >conftest.err
5154  rm -f conftest.er1
5155  cat conftest.err >&5
5156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157  (exit $ac_status); } >/dev/null; then
5158  if test -s conftest.err; then
5159    ac_cpp_err=$ac_c_preproc_warn_flag
5160    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5161  else
5162    ac_cpp_err=
5163  fi
5164else
5165  ac_cpp_err=yes
5166fi
5167if test -z "$ac_cpp_err"; then
5168  # Broken: success on invalid input.
5169continue
5170else
5171  echo "$as_me: failed program was:" >&5
5172sed 's/^/| /' conftest.$ac_ext >&5
5173
5174  # Passes both tests.
5175ac_preproc_ok=:
5176break
5177fi
5178
5179rm -f conftest.err conftest.$ac_ext
5180
5181done
5182# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5183rm -f conftest.err conftest.$ac_ext
5184if $ac_preproc_ok; then
5185  break
5186fi
5187
5188    done
5189    ac_cv_prog_CPP=$CPP
5190
5191fi
5192  CPP=$ac_cv_prog_CPP
5193else
5194  ac_cv_prog_CPP=$CPP
5195fi
5196{ echo "$as_me:$LINENO: result: $CPP" >&5
5197echo "${ECHO_T}$CPP" >&6; }
5198ac_preproc_ok=false
5199for ac_c_preproc_warn_flag in '' yes
5200do
5201  # Use a header file that comes with gcc, so configuring glibc
5202  # with a fresh cross-compiler works.
5203  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5204  # <limits.h> exists even on freestanding compilers.
5205  # On the NeXT, cc -E runs the code through the compiler's parser,
5206  # not just through cpp. "Syntax error" is here to catch this case.
5207  cat >conftest.$ac_ext <<_ACEOF
5208/* confdefs.h.  */
5209_ACEOF
5210cat confdefs.h >>conftest.$ac_ext
5211cat >>conftest.$ac_ext <<_ACEOF
5212/* end confdefs.h.  */
5213#ifdef __STDC__
5214# include <limits.h>
5215#else
5216# include <assert.h>
5217#endif
5218		     Syntax error
5219_ACEOF
5220if { (ac_try="$ac_cpp conftest.$ac_ext"
5221case "(($ac_try" in
5222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5223  *) ac_try_echo=$ac_try;;
5224esac
5225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5226  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5227  ac_status=$?
5228  grep -v '^ *+' conftest.er1 >conftest.err
5229  rm -f conftest.er1
5230  cat conftest.err >&5
5231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232  (exit $ac_status); } >/dev/null; then
5233  if test -s conftest.err; then
5234    ac_cpp_err=$ac_c_preproc_warn_flag
5235    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5236  else
5237    ac_cpp_err=
5238  fi
5239else
5240  ac_cpp_err=yes
5241fi
5242if test -z "$ac_cpp_err"; then
5243  :
5244else
5245  echo "$as_me: failed program was:" >&5
5246sed 's/^/| /' conftest.$ac_ext >&5
5247
5248  # Broken: fails on valid input.
5249continue
5250fi
5251
5252rm -f conftest.err conftest.$ac_ext
5253
5254  # OK, works on sane cases.  Now check whether nonexistent headers
5255  # can be detected and how.
5256  cat >conftest.$ac_ext <<_ACEOF
5257/* confdefs.h.  */
5258_ACEOF
5259cat confdefs.h >>conftest.$ac_ext
5260cat >>conftest.$ac_ext <<_ACEOF
5261/* end confdefs.h.  */
5262#include <ac_nonexistent.h>
5263_ACEOF
5264if { (ac_try="$ac_cpp conftest.$ac_ext"
5265case "(($ac_try" in
5266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267  *) ac_try_echo=$ac_try;;
5268esac
5269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5270  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5271  ac_status=$?
5272  grep -v '^ *+' conftest.er1 >conftest.err
5273  rm -f conftest.er1
5274  cat conftest.err >&5
5275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276  (exit $ac_status); } >/dev/null; then
5277  if test -s conftest.err; then
5278    ac_cpp_err=$ac_c_preproc_warn_flag
5279    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5280  else
5281    ac_cpp_err=
5282  fi
5283else
5284  ac_cpp_err=yes
5285fi
5286if test -z "$ac_cpp_err"; then
5287  # Broken: success on invalid input.
5288continue
5289else
5290  echo "$as_me: failed program was:" >&5
5291sed 's/^/| /' conftest.$ac_ext >&5
5292
5293  # Passes both tests.
5294ac_preproc_ok=:
5295break
5296fi
5297
5298rm -f conftest.err conftest.$ac_ext
5299
5300done
5301# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5302rm -f conftest.err conftest.$ac_ext
5303if $ac_preproc_ok; then
5304  :
5305else
5306  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5307See \`config.log' for more details." >&5
5308echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5309See \`config.log' for more details." >&2;}
5310   { (exit 1); exit 1; }; }
5311fi
5312
5313ac_ext=c
5314ac_cpp='$CPP $CPPFLAGS'
5315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5317ac_compiler_gnu=$ac_cv_c_compiler_gnu
5318
5319ac_ext=c
5320ac_cpp='$CPP $CPPFLAGS'
5321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5323ac_compiler_gnu=$ac_cv_c_compiler_gnu
5324if test -n "$ac_tool_prefix"; then
5325  for ac_prog in gcc
5326  do
5327    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5328set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5329{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5331if test "${ac_cv_prog_CC+set}" = set; then
5332  echo $ECHO_N "(cached) $ECHO_C" >&6
5333else
5334  if test -n "$CC"; then
5335  ac_cv_prog_CC="$CC" # Let the user override the test.
5336else
5337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338for as_dir in $PATH
5339do
5340  IFS=$as_save_IFS
5341  test -z "$as_dir" && as_dir=.
5342  for ac_exec_ext in '' $ac_executable_extensions; do
5343  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5344    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5345    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5346    break 2
5347  fi
5348done
5349done
5350IFS=$as_save_IFS
5351
5352fi
5353fi
5354CC=$ac_cv_prog_CC
5355if test -n "$CC"; then
5356  { echo "$as_me:$LINENO: result: $CC" >&5
5357echo "${ECHO_T}$CC" >&6; }
5358else
5359  { echo "$as_me:$LINENO: result: no" >&5
5360echo "${ECHO_T}no" >&6; }
5361fi
5362
5363
5364    test -n "$CC" && break
5365  done
5366fi
5367if test -z "$CC"; then
5368  ac_ct_CC=$CC
5369  for ac_prog in gcc
5370do
5371  # Extract the first word of "$ac_prog", so it can be a program name with args.
5372set dummy $ac_prog; ac_word=$2
5373{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5375if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5376  echo $ECHO_N "(cached) $ECHO_C" >&6
5377else
5378  if test -n "$ac_ct_CC"; then
5379  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5380else
5381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382for as_dir in $PATH
5383do
5384  IFS=$as_save_IFS
5385  test -z "$as_dir" && as_dir=.
5386  for ac_exec_ext in '' $ac_executable_extensions; do
5387  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5388    ac_cv_prog_ac_ct_CC="$ac_prog"
5389    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5390    break 2
5391  fi
5392done
5393done
5394IFS=$as_save_IFS
5395
5396fi
5397fi
5398ac_ct_CC=$ac_cv_prog_ac_ct_CC
5399if test -n "$ac_ct_CC"; then
5400  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5401echo "${ECHO_T}$ac_ct_CC" >&6; }
5402else
5403  { echo "$as_me:$LINENO: result: no" >&5
5404echo "${ECHO_T}no" >&6; }
5405fi
5406
5407
5408  test -n "$ac_ct_CC" && break
5409done
5410
5411  if test "x$ac_ct_CC" = x; then
5412    CC=""
5413  else
5414    case $cross_compiling:$ac_tool_warned in
5415yes:)
5416{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5417whose name does not start with the host triplet.  If you think this
5418configuration is useful to you, please write to autoconf@gnu.org." >&5
5419echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5420whose name does not start with the host triplet.  If you think this
5421configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5422ac_tool_warned=yes ;;
5423esac
5424    CC=$ac_ct_CC
5425  fi
5426fi
5427
5428
5429test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5430See \`config.log' for more details." >&5
5431echo "$as_me: error: no acceptable C compiler found in \$PATH
5432See \`config.log' for more details." >&2;}
5433   { (exit 1); exit 1; }; }
5434
5435# Provide some information about the compiler.
5436echo "$as_me:$LINENO: checking for C compiler version" >&5
5437ac_compiler=`set X $ac_compile; echo $2`
5438{ (ac_try="$ac_compiler --version >&5"
5439case "(($ac_try" in
5440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441  *) ac_try_echo=$ac_try;;
5442esac
5443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444  (eval "$ac_compiler --version >&5") 2>&5
5445  ac_status=$?
5446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447  (exit $ac_status); }
5448{ (ac_try="$ac_compiler -v >&5"
5449case "(($ac_try" in
5450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451  *) ac_try_echo=$ac_try;;
5452esac
5453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5454  (eval "$ac_compiler -v >&5") 2>&5
5455  ac_status=$?
5456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457  (exit $ac_status); }
5458{ (ac_try="$ac_compiler -V >&5"
5459case "(($ac_try" in
5460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461  *) ac_try_echo=$ac_try;;
5462esac
5463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464  (eval "$ac_compiler -V >&5") 2>&5
5465  ac_status=$?
5466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467  (exit $ac_status); }
5468
5469{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5470echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5471if test "${ac_cv_c_compiler_gnu+set}" = set; then
5472  echo $ECHO_N "(cached) $ECHO_C" >&6
5473else
5474  cat >conftest.$ac_ext <<_ACEOF
5475/* confdefs.h.  */
5476_ACEOF
5477cat confdefs.h >>conftest.$ac_ext
5478cat >>conftest.$ac_ext <<_ACEOF
5479/* end confdefs.h.  */
5480
5481int
5482main ()
5483{
5484#ifndef __GNUC__
5485       choke me
5486#endif
5487
5488  ;
5489  return 0;
5490}
5491_ACEOF
5492rm -f conftest.$ac_objext
5493if { (ac_try="$ac_compile"
5494case "(($ac_try" in
5495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496  *) ac_try_echo=$ac_try;;
5497esac
5498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499  (eval "$ac_compile") 2>conftest.er1
5500  ac_status=$?
5501  grep -v '^ *+' conftest.er1 >conftest.err
5502  rm -f conftest.er1
5503  cat conftest.err >&5
5504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505  (exit $ac_status); } &&
5506	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5507  { (case "(($ac_try" in
5508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5509  *) ac_try_echo=$ac_try;;
5510esac
5511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5512  (eval "$ac_try") 2>&5
5513  ac_status=$?
5514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515  (exit $ac_status); }; } &&
5516	 { ac_try='test -s conftest.$ac_objext'
5517  { (case "(($ac_try" in
5518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5519  *) ac_try_echo=$ac_try;;
5520esac
5521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5522  (eval "$ac_try") 2>&5
5523  ac_status=$?
5524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525  (exit $ac_status); }; }; then
5526  ac_compiler_gnu=yes
5527else
5528  echo "$as_me: failed program was:" >&5
5529sed 's/^/| /' conftest.$ac_ext >&5
5530
5531	ac_compiler_gnu=no
5532fi
5533
5534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535ac_cv_c_compiler_gnu=$ac_compiler_gnu
5536
5537fi
5538{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5539echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5540GCC=`test $ac_compiler_gnu = yes && echo yes`
5541ac_test_CFLAGS=${CFLAGS+set}
5542ac_save_CFLAGS=$CFLAGS
5543{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5544echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5545if test "${ac_cv_prog_cc_g+set}" = set; then
5546  echo $ECHO_N "(cached) $ECHO_C" >&6
5547else
5548  ac_save_c_werror_flag=$ac_c_werror_flag
5549   ac_c_werror_flag=yes
5550   ac_cv_prog_cc_g=no
5551   CFLAGS="-g"
5552   cat >conftest.$ac_ext <<_ACEOF
5553/* confdefs.h.  */
5554_ACEOF
5555cat confdefs.h >>conftest.$ac_ext
5556cat >>conftest.$ac_ext <<_ACEOF
5557/* end confdefs.h.  */
5558
5559int
5560main ()
5561{
5562
5563  ;
5564  return 0;
5565}
5566_ACEOF
5567rm -f conftest.$ac_objext
5568if { (ac_try="$ac_compile"
5569case "(($ac_try" in
5570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5571  *) ac_try_echo=$ac_try;;
5572esac
5573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5574  (eval "$ac_compile") 2>conftest.er1
5575  ac_status=$?
5576  grep -v '^ *+' conftest.er1 >conftest.err
5577  rm -f conftest.er1
5578  cat conftest.err >&5
5579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580  (exit $ac_status); } &&
5581	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5582  { (case "(($ac_try" in
5583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584  *) ac_try_echo=$ac_try;;
5585esac
5586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587  (eval "$ac_try") 2>&5
5588  ac_status=$?
5589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590  (exit $ac_status); }; } &&
5591	 { ac_try='test -s conftest.$ac_objext'
5592  { (case "(($ac_try" in
5593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5594  *) ac_try_echo=$ac_try;;
5595esac
5596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5597  (eval "$ac_try") 2>&5
5598  ac_status=$?
5599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600  (exit $ac_status); }; }; then
5601  ac_cv_prog_cc_g=yes
5602else
5603  echo "$as_me: failed program was:" >&5
5604sed 's/^/| /' conftest.$ac_ext >&5
5605
5606	CFLAGS=""
5607      cat >conftest.$ac_ext <<_ACEOF
5608/* confdefs.h.  */
5609_ACEOF
5610cat confdefs.h >>conftest.$ac_ext
5611cat >>conftest.$ac_ext <<_ACEOF
5612/* end confdefs.h.  */
5613
5614int
5615main ()
5616{
5617
5618  ;
5619  return 0;
5620}
5621_ACEOF
5622rm -f conftest.$ac_objext
5623if { (ac_try="$ac_compile"
5624case "(($ac_try" in
5625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626  *) ac_try_echo=$ac_try;;
5627esac
5628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5629  (eval "$ac_compile") 2>conftest.er1
5630  ac_status=$?
5631  grep -v '^ *+' conftest.er1 >conftest.err
5632  rm -f conftest.er1
5633  cat conftest.err >&5
5634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635  (exit $ac_status); } &&
5636	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5637  { (case "(($ac_try" in
5638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5639  *) ac_try_echo=$ac_try;;
5640esac
5641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5642  (eval "$ac_try") 2>&5
5643  ac_status=$?
5644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645  (exit $ac_status); }; } &&
5646	 { ac_try='test -s conftest.$ac_objext'
5647  { (case "(($ac_try" in
5648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5649  *) ac_try_echo=$ac_try;;
5650esac
5651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5652  (eval "$ac_try") 2>&5
5653  ac_status=$?
5654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655  (exit $ac_status); }; }; then
5656  :
5657else
5658  echo "$as_me: failed program was:" >&5
5659sed 's/^/| /' conftest.$ac_ext >&5
5660
5661	ac_c_werror_flag=$ac_save_c_werror_flag
5662	 CFLAGS="-g"
5663	 cat >conftest.$ac_ext <<_ACEOF
5664/* confdefs.h.  */
5665_ACEOF
5666cat confdefs.h >>conftest.$ac_ext
5667cat >>conftest.$ac_ext <<_ACEOF
5668/* end confdefs.h.  */
5669
5670int
5671main ()
5672{
5673
5674  ;
5675  return 0;
5676}
5677_ACEOF
5678rm -f conftest.$ac_objext
5679if { (ac_try="$ac_compile"
5680case "(($ac_try" in
5681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682  *) ac_try_echo=$ac_try;;
5683esac
5684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685  (eval "$ac_compile") 2>conftest.er1
5686  ac_status=$?
5687  grep -v '^ *+' conftest.er1 >conftest.err
5688  rm -f conftest.er1
5689  cat conftest.err >&5
5690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691  (exit $ac_status); } &&
5692	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5693  { (case "(($ac_try" in
5694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695  *) ac_try_echo=$ac_try;;
5696esac
5697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5698  (eval "$ac_try") 2>&5
5699  ac_status=$?
5700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701  (exit $ac_status); }; } &&
5702	 { ac_try='test -s conftest.$ac_objext'
5703  { (case "(($ac_try" in
5704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705  *) ac_try_echo=$ac_try;;
5706esac
5707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708  (eval "$ac_try") 2>&5
5709  ac_status=$?
5710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711  (exit $ac_status); }; }; then
5712  ac_cv_prog_cc_g=yes
5713else
5714  echo "$as_me: failed program was:" >&5
5715sed 's/^/| /' conftest.$ac_ext >&5
5716
5717
5718fi
5719
5720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5721fi
5722
5723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724fi
5725
5726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5727   ac_c_werror_flag=$ac_save_c_werror_flag
5728fi
5729{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5730echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5731if test "$ac_test_CFLAGS" = set; then
5732  CFLAGS=$ac_save_CFLAGS
5733elif test $ac_cv_prog_cc_g = yes; then
5734  if test "$GCC" = yes; then
5735    CFLAGS="-g -O2"
5736  else
5737    CFLAGS="-g"
5738  fi
5739else
5740  if test "$GCC" = yes; then
5741    CFLAGS="-O2"
5742  else
5743    CFLAGS=
5744  fi
5745fi
5746{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5747echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5748if test "${ac_cv_prog_cc_c89+set}" = set; then
5749  echo $ECHO_N "(cached) $ECHO_C" >&6
5750else
5751  ac_cv_prog_cc_c89=no
5752ac_save_CC=$CC
5753cat >conftest.$ac_ext <<_ACEOF
5754/* confdefs.h.  */
5755_ACEOF
5756cat confdefs.h >>conftest.$ac_ext
5757cat >>conftest.$ac_ext <<_ACEOF
5758/* end confdefs.h.  */
5759#include <stdarg.h>
5760#include <stdio.h>
5761#include <sys/types.h>
5762#include <sys/stat.h>
5763/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5764struct buf { int x; };
5765FILE * (*rcsopen) (struct buf *, struct stat *, int);
5766static char *e (p, i)
5767     char **p;
5768     int i;
5769{
5770  return p[i];
5771}
5772static char *f (char * (*g) (char **, int), char **p, ...)
5773{
5774  char *s;
5775  va_list v;
5776  va_start (v,p);
5777  s = g (p, va_arg (v,int));
5778  va_end (v);
5779  return s;
5780}
5781
5782/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5783   function prototypes and stuff, but not '\xHH' hex character constants.
5784   These don't provoke an error unfortunately, instead are silently treated
5785   as 'x'.  The following induces an error, until -std is added to get
5786   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5787   array size at least.  It's necessary to write '\x00'==0 to get something
5788   that's true only with -std.  */
5789int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5790
5791/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5792   inside strings and character constants.  */
5793#define FOO(x) 'x'
5794int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5795
5796int test (int i, double x);
5797struct s1 {int (*f) (int a);};
5798struct s2 {int (*f) (double a);};
5799int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5800int argc;
5801char **argv;
5802int
5803main ()
5804{
5805return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5806  ;
5807  return 0;
5808}
5809_ACEOF
5810for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5811	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5812do
5813  CC="$ac_save_CC $ac_arg"
5814  rm -f conftest.$ac_objext
5815if { (ac_try="$ac_compile"
5816case "(($ac_try" in
5817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818  *) ac_try_echo=$ac_try;;
5819esac
5820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821  (eval "$ac_compile") 2>conftest.er1
5822  ac_status=$?
5823  grep -v '^ *+' conftest.er1 >conftest.err
5824  rm -f conftest.er1
5825  cat conftest.err >&5
5826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827  (exit $ac_status); } &&
5828	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5829  { (case "(($ac_try" in
5830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831  *) ac_try_echo=$ac_try;;
5832esac
5833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5834  (eval "$ac_try") 2>&5
5835  ac_status=$?
5836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837  (exit $ac_status); }; } &&
5838	 { ac_try='test -s conftest.$ac_objext'
5839  { (case "(($ac_try" in
5840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841  *) ac_try_echo=$ac_try;;
5842esac
5843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844  (eval "$ac_try") 2>&5
5845  ac_status=$?
5846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847  (exit $ac_status); }; }; then
5848  ac_cv_prog_cc_c89=$ac_arg
5849else
5850  echo "$as_me: failed program was:" >&5
5851sed 's/^/| /' conftest.$ac_ext >&5
5852
5853
5854fi
5855
5856rm -f core conftest.err conftest.$ac_objext
5857  test "x$ac_cv_prog_cc_c89" != "xno" && break
5858done
5859rm -f conftest.$ac_ext
5860CC=$ac_save_CC
5861
5862fi
5863# AC_CACHE_VAL
5864case "x$ac_cv_prog_cc_c89" in
5865  x)
5866    { echo "$as_me:$LINENO: result: none needed" >&5
5867echo "${ECHO_T}none needed" >&6; } ;;
5868  xno)
5869    { echo "$as_me:$LINENO: result: unsupported" >&5
5870echo "${ECHO_T}unsupported" >&6; } ;;
5871  *)
5872    CC="$CC $ac_cv_prog_cc_c89"
5873    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5874echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5875esac
5876
5877
5878ac_ext=c
5879ac_cpp='$CPP $CPPFLAGS'
5880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5882ac_compiler_gnu=$ac_cv_c_compiler_gnu
5883
5884ac_ext=cpp
5885ac_cpp='$CXXCPP $CPPFLAGS'
5886ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5887ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5888ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5889if test -z "$CXX"; then
5890  if test -n "$CCC"; then
5891    CXX=$CCC
5892  else
5893    if test -n "$ac_tool_prefix"; then
5894  for ac_prog in g++
5895  do
5896    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5897set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5898{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5900if test "${ac_cv_prog_CXX+set}" = set; then
5901  echo $ECHO_N "(cached) $ECHO_C" >&6
5902else
5903  if test -n "$CXX"; then
5904  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5905else
5906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907for as_dir in $PATH
5908do
5909  IFS=$as_save_IFS
5910  test -z "$as_dir" && as_dir=.
5911  for ac_exec_ext in '' $ac_executable_extensions; do
5912  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5913    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5914    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5915    break 2
5916  fi
5917done
5918done
5919IFS=$as_save_IFS
5920
5921fi
5922fi
5923CXX=$ac_cv_prog_CXX
5924if test -n "$CXX"; then
5925  { echo "$as_me:$LINENO: result: $CXX" >&5
5926echo "${ECHO_T}$CXX" >&6; }
5927else
5928  { echo "$as_me:$LINENO: result: no" >&5
5929echo "${ECHO_T}no" >&6; }
5930fi
5931
5932
5933    test -n "$CXX" && break
5934  done
5935fi
5936if test -z "$CXX"; then
5937  ac_ct_CXX=$CXX
5938  for ac_prog in g++
5939do
5940  # Extract the first word of "$ac_prog", so it can be a program name with args.
5941set dummy $ac_prog; ac_word=$2
5942{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5944if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5945  echo $ECHO_N "(cached) $ECHO_C" >&6
5946else
5947  if test -n "$ac_ct_CXX"; then
5948  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5949else
5950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951for as_dir in $PATH
5952do
5953  IFS=$as_save_IFS
5954  test -z "$as_dir" && as_dir=.
5955  for ac_exec_ext in '' $ac_executable_extensions; do
5956  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5957    ac_cv_prog_ac_ct_CXX="$ac_prog"
5958    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5959    break 2
5960  fi
5961done
5962done
5963IFS=$as_save_IFS
5964
5965fi
5966fi
5967ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5968if test -n "$ac_ct_CXX"; then
5969  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5970echo "${ECHO_T}$ac_ct_CXX" >&6; }
5971else
5972  { echo "$as_me:$LINENO: result: no" >&5
5973echo "${ECHO_T}no" >&6; }
5974fi
5975
5976
5977  test -n "$ac_ct_CXX" && break
5978done
5979
5980  if test "x$ac_ct_CXX" = x; then
5981    CXX="g++"
5982  else
5983    case $cross_compiling:$ac_tool_warned in
5984yes:)
5985{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5986whose name does not start with the host triplet.  If you think this
5987configuration is useful to you, please write to autoconf@gnu.org." >&5
5988echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5989whose name does not start with the host triplet.  If you think this
5990configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5991ac_tool_warned=yes ;;
5992esac
5993    CXX=$ac_ct_CXX
5994  fi
5995fi
5996
5997  fi
5998fi
5999# Provide some information about the compiler.
6000echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6001ac_compiler=`set X $ac_compile; echo $2`
6002{ (ac_try="$ac_compiler --version >&5"
6003case "(($ac_try" in
6004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005  *) ac_try_echo=$ac_try;;
6006esac
6007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008  (eval "$ac_compiler --version >&5") 2>&5
6009  ac_status=$?
6010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011  (exit $ac_status); }
6012{ (ac_try="$ac_compiler -v >&5"
6013case "(($ac_try" in
6014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015  *) ac_try_echo=$ac_try;;
6016esac
6017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018  (eval "$ac_compiler -v >&5") 2>&5
6019  ac_status=$?
6020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021  (exit $ac_status); }
6022{ (ac_try="$ac_compiler -V >&5"
6023case "(($ac_try" in
6024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025  *) ac_try_echo=$ac_try;;
6026esac
6027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028  (eval "$ac_compiler -V >&5") 2>&5
6029  ac_status=$?
6030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031  (exit $ac_status); }
6032
6033{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6034echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6035if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6036  echo $ECHO_N "(cached) $ECHO_C" >&6
6037else
6038  cat >conftest.$ac_ext <<_ACEOF
6039/* confdefs.h.  */
6040_ACEOF
6041cat confdefs.h >>conftest.$ac_ext
6042cat >>conftest.$ac_ext <<_ACEOF
6043/* end confdefs.h.  */
6044
6045int
6046main ()
6047{
6048#ifndef __GNUC__
6049       choke me
6050#endif
6051
6052  ;
6053  return 0;
6054}
6055_ACEOF
6056rm -f conftest.$ac_objext
6057if { (ac_try="$ac_compile"
6058case "(($ac_try" in
6059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060  *) ac_try_echo=$ac_try;;
6061esac
6062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063  (eval "$ac_compile") 2>conftest.er1
6064  ac_status=$?
6065  grep -v '^ *+' conftest.er1 >conftest.err
6066  rm -f conftest.er1
6067  cat conftest.err >&5
6068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069  (exit $ac_status); } &&
6070	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6071  { (case "(($ac_try" in
6072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6073  *) ac_try_echo=$ac_try;;
6074esac
6075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6076  (eval "$ac_try") 2>&5
6077  ac_status=$?
6078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079  (exit $ac_status); }; } &&
6080	 { ac_try='test -s conftest.$ac_objext'
6081  { (case "(($ac_try" in
6082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6083  *) ac_try_echo=$ac_try;;
6084esac
6085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6086  (eval "$ac_try") 2>&5
6087  ac_status=$?
6088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089  (exit $ac_status); }; }; then
6090  ac_compiler_gnu=yes
6091else
6092  echo "$as_me: failed program was:" >&5
6093sed 's/^/| /' conftest.$ac_ext >&5
6094
6095	ac_compiler_gnu=no
6096fi
6097
6098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6100
6101fi
6102{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6103echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6104GXX=`test $ac_compiler_gnu = yes && echo yes`
6105ac_test_CXXFLAGS=${CXXFLAGS+set}
6106ac_save_CXXFLAGS=$CXXFLAGS
6107{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6108echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6109if test "${ac_cv_prog_cxx_g+set}" = set; then
6110  echo $ECHO_N "(cached) $ECHO_C" >&6
6111else
6112  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6113   ac_cxx_werror_flag=yes
6114   ac_cv_prog_cxx_g=no
6115   CXXFLAGS="-g"
6116   cat >conftest.$ac_ext <<_ACEOF
6117/* confdefs.h.  */
6118_ACEOF
6119cat confdefs.h >>conftest.$ac_ext
6120cat >>conftest.$ac_ext <<_ACEOF
6121/* end confdefs.h.  */
6122
6123int
6124main ()
6125{
6126
6127  ;
6128  return 0;
6129}
6130_ACEOF
6131rm -f conftest.$ac_objext
6132if { (ac_try="$ac_compile"
6133case "(($ac_try" in
6134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6135  *) ac_try_echo=$ac_try;;
6136esac
6137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6138  (eval "$ac_compile") 2>conftest.er1
6139  ac_status=$?
6140  grep -v '^ *+' conftest.er1 >conftest.err
6141  rm -f conftest.er1
6142  cat conftest.err >&5
6143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144  (exit $ac_status); } &&
6145	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6146  { (case "(($ac_try" in
6147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148  *) ac_try_echo=$ac_try;;
6149esac
6150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6151  (eval "$ac_try") 2>&5
6152  ac_status=$?
6153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154  (exit $ac_status); }; } &&
6155	 { ac_try='test -s conftest.$ac_objext'
6156  { (case "(($ac_try" in
6157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158  *) ac_try_echo=$ac_try;;
6159esac
6160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6161  (eval "$ac_try") 2>&5
6162  ac_status=$?
6163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164  (exit $ac_status); }; }; then
6165  ac_cv_prog_cxx_g=yes
6166else
6167  echo "$as_me: failed program was:" >&5
6168sed 's/^/| /' conftest.$ac_ext >&5
6169
6170	CXXFLAGS=""
6171      cat >conftest.$ac_ext <<_ACEOF
6172/* confdefs.h.  */
6173_ACEOF
6174cat confdefs.h >>conftest.$ac_ext
6175cat >>conftest.$ac_ext <<_ACEOF
6176/* end confdefs.h.  */
6177
6178int
6179main ()
6180{
6181
6182  ;
6183  return 0;
6184}
6185_ACEOF
6186rm -f conftest.$ac_objext
6187if { (ac_try="$ac_compile"
6188case "(($ac_try" in
6189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190  *) ac_try_echo=$ac_try;;
6191esac
6192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6193  (eval "$ac_compile") 2>conftest.er1
6194  ac_status=$?
6195  grep -v '^ *+' conftest.er1 >conftest.err
6196  rm -f conftest.er1
6197  cat conftest.err >&5
6198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199  (exit $ac_status); } &&
6200	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6201  { (case "(($ac_try" in
6202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6203  *) ac_try_echo=$ac_try;;
6204esac
6205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6206  (eval "$ac_try") 2>&5
6207  ac_status=$?
6208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209  (exit $ac_status); }; } &&
6210	 { ac_try='test -s conftest.$ac_objext'
6211  { (case "(($ac_try" in
6212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6213  *) ac_try_echo=$ac_try;;
6214esac
6215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6216  (eval "$ac_try") 2>&5
6217  ac_status=$?
6218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219  (exit $ac_status); }; }; then
6220  :
6221else
6222  echo "$as_me: failed program was:" >&5
6223sed 's/^/| /' conftest.$ac_ext >&5
6224
6225	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6226	 CXXFLAGS="-g"
6227	 cat >conftest.$ac_ext <<_ACEOF
6228/* confdefs.h.  */
6229_ACEOF
6230cat confdefs.h >>conftest.$ac_ext
6231cat >>conftest.$ac_ext <<_ACEOF
6232/* end confdefs.h.  */
6233
6234int
6235main ()
6236{
6237
6238  ;
6239  return 0;
6240}
6241_ACEOF
6242rm -f conftest.$ac_objext
6243if { (ac_try="$ac_compile"
6244case "(($ac_try" in
6245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246  *) ac_try_echo=$ac_try;;
6247esac
6248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249  (eval "$ac_compile") 2>conftest.er1
6250  ac_status=$?
6251  grep -v '^ *+' conftest.er1 >conftest.err
6252  rm -f conftest.er1
6253  cat conftest.err >&5
6254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255  (exit $ac_status); } &&
6256	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6257  { (case "(($ac_try" in
6258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259  *) ac_try_echo=$ac_try;;
6260esac
6261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262  (eval "$ac_try") 2>&5
6263  ac_status=$?
6264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265  (exit $ac_status); }; } &&
6266	 { ac_try='test -s conftest.$ac_objext'
6267  { (case "(($ac_try" in
6268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269  *) ac_try_echo=$ac_try;;
6270esac
6271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272  (eval "$ac_try") 2>&5
6273  ac_status=$?
6274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275  (exit $ac_status); }; }; then
6276  ac_cv_prog_cxx_g=yes
6277else
6278  echo "$as_me: failed program was:" >&5
6279sed 's/^/| /' conftest.$ac_ext >&5
6280
6281
6282fi
6283
6284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6285fi
6286
6287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6288fi
6289
6290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6292fi
6293{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6294echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6295if test "$ac_test_CXXFLAGS" = set; then
6296  CXXFLAGS=$ac_save_CXXFLAGS
6297elif test $ac_cv_prog_cxx_g = yes; then
6298  if test "$GXX" = yes; then
6299    CXXFLAGS="-g -O2"
6300  else
6301    CXXFLAGS="-g"
6302  fi
6303else
6304  if test "$GXX" = yes; then
6305    CXXFLAGS="-O2"
6306  else
6307    CXXFLAGS=
6308  fi
6309fi
6310ac_ext=c
6311ac_cpp='$CPP $CPPFLAGS'
6312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6314ac_compiler_gnu=$ac_cv_c_compiler_gnu
6315
6316{ echo "$as_me:$LINENO: checking " >&5
6317echo $ECHO_N "checking ... $ECHO_C" >&6; }
6318if test "${ac_cv_has_flex+set}" = set; then
6319  echo $ECHO_N "(cached) $ECHO_C" >&6
6320else
6321  for ac_prog in flex lex
6322do
6323  # Extract the first word of "$ac_prog", so it can be a program name with args.
6324set dummy $ac_prog; ac_word=$2
6325{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6327if test "${ac_cv_prog_LEX+set}" = set; then
6328  echo $ECHO_N "(cached) $ECHO_C" >&6
6329else
6330  if test -n "$LEX"; then
6331  ac_cv_prog_LEX="$LEX" # Let the user override the test.
6332else
6333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334for as_dir in $PATH
6335do
6336  IFS=$as_save_IFS
6337  test -z "$as_dir" && as_dir=.
6338  for ac_exec_ext in '' $ac_executable_extensions; do
6339  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6340    ac_cv_prog_LEX="$ac_prog"
6341    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6342    break 2
6343  fi
6344done
6345done
6346IFS=$as_save_IFS
6347
6348fi
6349fi
6350LEX=$ac_cv_prog_LEX
6351if test -n "$LEX"; then
6352  { echo "$as_me:$LINENO: result: $LEX" >&5
6353echo "${ECHO_T}$LEX" >&6; }
6354else
6355  { echo "$as_me:$LINENO: result: no" >&5
6356echo "${ECHO_T}no" >&6; }
6357fi
6358
6359
6360  test -n "$LEX" && break
6361done
6362test -n "$LEX" || LEX=":"
6363
6364if test -z "$LEXLIB"
6365then
6366  { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6367echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6368if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6369  echo $ECHO_N "(cached) $ECHO_C" >&6
6370else
6371  ac_check_lib_save_LIBS=$LIBS
6372LIBS="-lfl  $LIBS"
6373cat >conftest.$ac_ext <<_ACEOF
6374/* confdefs.h.  */
6375_ACEOF
6376cat confdefs.h >>conftest.$ac_ext
6377cat >>conftest.$ac_ext <<_ACEOF
6378/* end confdefs.h.  */
6379
6380/* Override any GCC internal prototype to avoid an error.
6381   Use char because int might match the return type of a GCC
6382   builtin and then its argument prototype would still apply.  */
6383#ifdef __cplusplus
6384extern "C"
6385#endif
6386char yywrap ();
6387int
6388main ()
6389{
6390return yywrap ();
6391  ;
6392  return 0;
6393}
6394_ACEOF
6395rm -f conftest.$ac_objext conftest$ac_exeext
6396if { (ac_try="$ac_link"
6397case "(($ac_try" in
6398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6399  *) ac_try_echo=$ac_try;;
6400esac
6401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6402  (eval "$ac_link") 2>conftest.er1
6403  ac_status=$?
6404  grep -v '^ *+' conftest.er1 >conftest.err
6405  rm -f conftest.er1
6406  cat conftest.err >&5
6407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408  (exit $ac_status); } &&
6409	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6410  { (case "(($ac_try" in
6411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6412  *) ac_try_echo=$ac_try;;
6413esac
6414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6415  (eval "$ac_try") 2>&5
6416  ac_status=$?
6417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418  (exit $ac_status); }; } &&
6419	 { ac_try='test -s conftest$ac_exeext'
6420  { (case "(($ac_try" in
6421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422  *) ac_try_echo=$ac_try;;
6423esac
6424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6425  (eval "$ac_try") 2>&5
6426  ac_status=$?
6427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428  (exit $ac_status); }; }; then
6429  ac_cv_lib_fl_yywrap=yes
6430else
6431  echo "$as_me: failed program was:" >&5
6432sed 's/^/| /' conftest.$ac_ext >&5
6433
6434	ac_cv_lib_fl_yywrap=no
6435fi
6436
6437rm -f core conftest.err conftest.$ac_objext \
6438      conftest$ac_exeext conftest.$ac_ext
6439LIBS=$ac_check_lib_save_LIBS
6440fi
6441{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6442echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6443if test $ac_cv_lib_fl_yywrap = yes; then
6444  LEXLIB="-lfl"
6445else
6446  { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6447echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6448if test "${ac_cv_lib_l_yywrap+set}" = set; then
6449  echo $ECHO_N "(cached) $ECHO_C" >&6
6450else
6451  ac_check_lib_save_LIBS=$LIBS
6452LIBS="-ll  $LIBS"
6453cat >conftest.$ac_ext <<_ACEOF
6454/* confdefs.h.  */
6455_ACEOF
6456cat confdefs.h >>conftest.$ac_ext
6457cat >>conftest.$ac_ext <<_ACEOF
6458/* end confdefs.h.  */
6459
6460/* Override any GCC internal prototype to avoid an error.
6461   Use char because int might match the return type of a GCC
6462   builtin and then its argument prototype would still apply.  */
6463#ifdef __cplusplus
6464extern "C"
6465#endif
6466char yywrap ();
6467int
6468main ()
6469{
6470return yywrap ();
6471  ;
6472  return 0;
6473}
6474_ACEOF
6475rm -f conftest.$ac_objext conftest$ac_exeext
6476if { (ac_try="$ac_link"
6477case "(($ac_try" in
6478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479  *) ac_try_echo=$ac_try;;
6480esac
6481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6482  (eval "$ac_link") 2>conftest.er1
6483  ac_status=$?
6484  grep -v '^ *+' conftest.er1 >conftest.err
6485  rm -f conftest.er1
6486  cat conftest.err >&5
6487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488  (exit $ac_status); } &&
6489	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6490  { (case "(($ac_try" in
6491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492  *) ac_try_echo=$ac_try;;
6493esac
6494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6495  (eval "$ac_try") 2>&5
6496  ac_status=$?
6497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498  (exit $ac_status); }; } &&
6499	 { ac_try='test -s conftest$ac_exeext'
6500  { (case "(($ac_try" in
6501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6502  *) ac_try_echo=$ac_try;;
6503esac
6504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6505  (eval "$ac_try") 2>&5
6506  ac_status=$?
6507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508  (exit $ac_status); }; }; then
6509  ac_cv_lib_l_yywrap=yes
6510else
6511  echo "$as_me: failed program was:" >&5
6512sed 's/^/| /' conftest.$ac_ext >&5
6513
6514	ac_cv_lib_l_yywrap=no
6515fi
6516
6517rm -f core conftest.err conftest.$ac_objext \
6518      conftest$ac_exeext conftest.$ac_ext
6519LIBS=$ac_check_lib_save_LIBS
6520fi
6521{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6522echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6523if test $ac_cv_lib_l_yywrap = yes; then
6524  LEXLIB="-ll"
6525fi
6526
6527fi
6528
6529fi
6530
6531if test "x$LEX" != "x:"; then
6532  { echo "$as_me:$LINENO: checking lex output file root" >&5
6533echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6534if test "${ac_cv_prog_lex_root+set}" = set; then
6535  echo $ECHO_N "(cached) $ECHO_C" >&6
6536else
6537  # The minimal lex program is just a single line: %%.  But some broken lexes
6538# (Solaris, I think it was) want two %% lines, so accommodate them.
6539cat >conftest.l <<_ACEOF
6540%%
6541%%
6542_ACEOF
6543{ (ac_try="$LEX conftest.l"
6544case "(($ac_try" in
6545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6546  *) ac_try_echo=$ac_try;;
6547esac
6548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6549  (eval "$LEX conftest.l") 2>&5
6550  ac_status=$?
6551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552  (exit $ac_status); }
6553if test -f lex.yy.c; then
6554  ac_cv_prog_lex_root=lex.yy
6555elif test -f lexyy.c; then
6556  ac_cv_prog_lex_root=lexyy
6557else
6558  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6559echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6560   { (exit 1); exit 1; }; }
6561fi
6562fi
6563{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6564echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6565rm -f conftest.l
6566LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6567
6568{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6569echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6570if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6571  echo $ECHO_N "(cached) $ECHO_C" >&6
6572else
6573  # POSIX says lex can declare yytext either as a pointer or an array; the
6574# default is implementation-dependent. Figure out which it is, since
6575# not all implementations provide the %pointer and %array declarations.
6576ac_cv_prog_lex_yytext_pointer=no
6577echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6578ac_save_LIBS=$LIBS
6579LIBS="$LIBS $LEXLIB"
6580cat >conftest.$ac_ext <<_ACEOF
6581`cat $LEX_OUTPUT_ROOT.c`
6582_ACEOF
6583rm -f conftest.$ac_objext conftest$ac_exeext
6584if { (ac_try="$ac_link"
6585case "(($ac_try" in
6586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6587  *) ac_try_echo=$ac_try;;
6588esac
6589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6590  (eval "$ac_link") 2>conftest.er1
6591  ac_status=$?
6592  grep -v '^ *+' conftest.er1 >conftest.err
6593  rm -f conftest.er1
6594  cat conftest.err >&5
6595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596  (exit $ac_status); } &&
6597	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6598  { (case "(($ac_try" in
6599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600  *) ac_try_echo=$ac_try;;
6601esac
6602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6603  (eval "$ac_try") 2>&5
6604  ac_status=$?
6605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606  (exit $ac_status); }; } &&
6607	 { ac_try='test -s conftest$ac_exeext'
6608  { (case "(($ac_try" in
6609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610  *) ac_try_echo=$ac_try;;
6611esac
6612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6613  (eval "$ac_try") 2>&5
6614  ac_status=$?
6615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616  (exit $ac_status); }; }; then
6617  ac_cv_prog_lex_yytext_pointer=yes
6618else
6619  echo "$as_me: failed program was:" >&5
6620sed 's/^/| /' conftest.$ac_ext >&5
6621
6622
6623fi
6624
6625rm -f core conftest.err conftest.$ac_objext \
6626      conftest$ac_exeext conftest.$ac_ext
6627LIBS=$ac_save_LIBS
6628rm -f "${LEX_OUTPUT_ROOT}.c"
6629
6630fi
6631{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6632echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6633if test $ac_cv_prog_lex_yytext_pointer = yes; then
6634
6635cat >>confdefs.h <<\_ACEOF
6636#define YYTEXT_POINTER 1
6637_ACEOF
6638
6639fi
6640
6641fi
6642
6643fi
6644{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6645echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6646if test "$LEX" != "flex"; then
6647  { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6648echo "$as_me: error: flex not found but required" >&2;}
6649   { (exit 1); exit 1; }; }
6650else
6651  FLEX=flex
6652
6653fi
6654
6655{ echo "$as_me:$LINENO: checking " >&5
6656echo $ECHO_N "checking ... $ECHO_C" >&6; }
6657if test "${llvm_cv_has_bison+set}" = set; then
6658  echo $ECHO_N "(cached) $ECHO_C" >&6
6659else
6660  for ac_prog in 'bison -y' byacc
6661do
6662  # Extract the first word of "$ac_prog", so it can be a program name with args.
6663set dummy $ac_prog; ac_word=$2
6664{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6666if test "${ac_cv_prog_YACC+set}" = set; then
6667  echo $ECHO_N "(cached) $ECHO_C" >&6
6668else
6669  if test -n "$YACC"; then
6670  ac_cv_prog_YACC="$YACC" # Let the user override the test.
6671else
6672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673for as_dir in $PATH
6674do
6675  IFS=$as_save_IFS
6676  test -z "$as_dir" && as_dir=.
6677  for ac_exec_ext in '' $ac_executable_extensions; do
6678  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6679    ac_cv_prog_YACC="$ac_prog"
6680    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6681    break 2
6682  fi
6683done
6684done
6685IFS=$as_save_IFS
6686
6687fi
6688fi
6689YACC=$ac_cv_prog_YACC
6690if test -n "$YACC"; then
6691  { echo "$as_me:$LINENO: result: $YACC" >&5
6692echo "${ECHO_T}$YACC" >&6; }
6693else
6694  { echo "$as_me:$LINENO: result: no" >&5
6695echo "${ECHO_T}no" >&6; }
6696fi
6697
6698
6699  test -n "$YACC" && break
6700done
6701test -n "$YACC" || YACC="yacc"
6702
6703fi
6704{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6705echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6706if test "$YACC" != "bison -y"; then
6707
6708  { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6709echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6710else
6711  BISON=bison
6712
6713fi
6714
6715{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6716echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6717if test "${lt_cv_path_NM+set}" = set; then
6718  echo $ECHO_N "(cached) $ECHO_C" >&6
6719else
6720  if test -n "$NM"; then
6721  # Let the user override the test.
6722  lt_cv_path_NM="$NM"
6723else
6724  lt_nm_to_check="${ac_tool_prefix}nm"
6725  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6726    lt_nm_to_check="$lt_nm_to_check nm"
6727  fi
6728  for lt_tmp_nm in $lt_nm_to_check; do
6729    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6730    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6731      IFS="$lt_save_ifs"
6732      test -z "$ac_dir" && ac_dir=.
6733      tmp_nm="$ac_dir/$lt_tmp_nm"
6734      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6735	# Check to see if the nm accepts a BSD-compat flag.
6736	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6737	#   nm: unknown option "B" ignored
6738	# Tru64's nm complains that /dev/null is an invalid object file
6739	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6740	*/dev/null* | *'Invalid file or object type'*)
6741	  lt_cv_path_NM="$tmp_nm -B"
6742	  break
6743	  ;;
6744	*)
6745	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6746	  */dev/null*)
6747	    lt_cv_path_NM="$tmp_nm -p"
6748	    break
6749	    ;;
6750	  *)
6751	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6752	    continue # so that we can try to find one that supports BSD flags
6753	    ;;
6754	  esac
6755	  ;;
6756	esac
6757      fi
6758    done
6759    IFS="$lt_save_ifs"
6760  done
6761  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6762fi
6763fi
6764{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6765echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6766NM="$lt_cv_path_NM"
6767
6768
6769
6770{ echo "$as_me:$LINENO: checking for GNU make" >&5
6771echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6772if test "${llvm_cv_gnu_make_command+set}" = set; then
6773  echo $ECHO_N "(cached) $ECHO_C" >&6
6774else
6775  llvm_cv_gnu_make_command=''
6776 for a in "$MAKE" make gmake gnumake ; do
6777  if test -z "$a" ; then continue ; fi ;
6778  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6779  then
6780   llvm_cv_gnu_make_command=$a ;
6781   break;
6782  fi
6783 done
6784fi
6785{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6786echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6787 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6788   ifGNUmake='' ;
6789 else
6790   ifGNUmake='#' ;
6791   { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6792echo "${ECHO_T}\"Not found\"" >&6; };
6793 fi
6794
6795
6796{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6797echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6798LN_S=$as_ln_s
6799if test "$LN_S" = "ln -s"; then
6800  { echo "$as_me:$LINENO: result: yes" >&5
6801echo "${ECHO_T}yes" >&6; }
6802else
6803  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6804echo "${ECHO_T}no, using $LN_S" >&6; }
6805fi
6806
6807# Extract the first word of "cmp", so it can be a program name with args.
6808set dummy cmp; ac_word=$2
6809{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6811if test "${ac_cv_path_CMP+set}" = set; then
6812  echo $ECHO_N "(cached) $ECHO_C" >&6
6813else
6814  case $CMP in
6815  [\\/]* | ?:[\\/]*)
6816  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6817  ;;
6818  *)
6819  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820for as_dir in $PATH
6821do
6822  IFS=$as_save_IFS
6823  test -z "$as_dir" && as_dir=.
6824  for ac_exec_ext in '' $ac_executable_extensions; do
6825  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6826    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6827    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6828    break 2
6829  fi
6830done
6831done
6832IFS=$as_save_IFS
6833
6834  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6835  ;;
6836esac
6837fi
6838CMP=$ac_cv_path_CMP
6839if test -n "$CMP"; then
6840  { echo "$as_me:$LINENO: result: $CMP" >&5
6841echo "${ECHO_T}$CMP" >&6; }
6842else
6843  { echo "$as_me:$LINENO: result: no" >&5
6844echo "${ECHO_T}no" >&6; }
6845fi
6846
6847
6848# Extract the first word of "cp", so it can be a program name with args.
6849set dummy cp; ac_word=$2
6850{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6852if test "${ac_cv_path_CP+set}" = set; then
6853  echo $ECHO_N "(cached) $ECHO_C" >&6
6854else
6855  case $CP in
6856  [\\/]* | ?:[\\/]*)
6857  ac_cv_path_CP="$CP" # Let the user override the test with a path.
6858  ;;
6859  *)
6860  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861for as_dir in $PATH
6862do
6863  IFS=$as_save_IFS
6864  test -z "$as_dir" && as_dir=.
6865  for ac_exec_ext in '' $ac_executable_extensions; do
6866  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6867    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6868    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6869    break 2
6870  fi
6871done
6872done
6873IFS=$as_save_IFS
6874
6875  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6876  ;;
6877esac
6878fi
6879CP=$ac_cv_path_CP
6880if test -n "$CP"; then
6881  { echo "$as_me:$LINENO: result: $CP" >&5
6882echo "${ECHO_T}$CP" >&6; }
6883else
6884  { echo "$as_me:$LINENO: result: no" >&5
6885echo "${ECHO_T}no" >&6; }
6886fi
6887
6888
6889# Extract the first word of "date", so it can be a program name with args.
6890set dummy date; ac_word=$2
6891{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6893if test "${ac_cv_path_DATE+set}" = set; then
6894  echo $ECHO_N "(cached) $ECHO_C" >&6
6895else
6896  case $DATE in
6897  [\\/]* | ?:[\\/]*)
6898  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6899  ;;
6900  *)
6901  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902for as_dir in $PATH
6903do
6904  IFS=$as_save_IFS
6905  test -z "$as_dir" && as_dir=.
6906  for ac_exec_ext in '' $ac_executable_extensions; do
6907  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6908    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6909    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6910    break 2
6911  fi
6912done
6913done
6914IFS=$as_save_IFS
6915
6916  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6917  ;;
6918esac
6919fi
6920DATE=$ac_cv_path_DATE
6921if test -n "$DATE"; then
6922  { echo "$as_me:$LINENO: result: $DATE" >&5
6923echo "${ECHO_T}$DATE" >&6; }
6924else
6925  { echo "$as_me:$LINENO: result: no" >&5
6926echo "${ECHO_T}no" >&6; }
6927fi
6928
6929
6930# Extract the first word of "find", so it can be a program name with args.
6931set dummy find; ac_word=$2
6932{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6934if test "${ac_cv_path_FIND+set}" = set; then
6935  echo $ECHO_N "(cached) $ECHO_C" >&6
6936else
6937  case $FIND in
6938  [\\/]* | ?:[\\/]*)
6939  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6940  ;;
6941  *)
6942  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943for as_dir in $PATH
6944do
6945  IFS=$as_save_IFS
6946  test -z "$as_dir" && as_dir=.
6947  for ac_exec_ext in '' $ac_executable_extensions; do
6948  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6949    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6950    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6951    break 2
6952  fi
6953done
6954done
6955IFS=$as_save_IFS
6956
6957  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6958  ;;
6959esac
6960fi
6961FIND=$ac_cv_path_FIND
6962if test -n "$FIND"; then
6963  { echo "$as_me:$LINENO: result: $FIND" >&5
6964echo "${ECHO_T}$FIND" >&6; }
6965else
6966  { echo "$as_me:$LINENO: result: no" >&5
6967echo "${ECHO_T}no" >&6; }
6968fi
6969
6970
6971# Extract the first word of "grep", so it can be a program name with args.
6972set dummy grep; ac_word=$2
6973{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6975if test "${ac_cv_path_GREP+set}" = set; then
6976  echo $ECHO_N "(cached) $ECHO_C" >&6
6977else
6978  case $GREP in
6979  [\\/]* | ?:[\\/]*)
6980  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6981  ;;
6982  *)
6983  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984for as_dir in $PATH
6985do
6986  IFS=$as_save_IFS
6987  test -z "$as_dir" && as_dir=.
6988  for ac_exec_ext in '' $ac_executable_extensions; do
6989  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6990    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6991    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6992    break 2
6993  fi
6994done
6995done
6996IFS=$as_save_IFS
6997
6998  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6999  ;;
7000esac
7001fi
7002GREP=$ac_cv_path_GREP
7003if test -n "$GREP"; then
7004  { echo "$as_me:$LINENO: result: $GREP" >&5
7005echo "${ECHO_T}$GREP" >&6; }
7006else
7007  { echo "$as_me:$LINENO: result: no" >&5
7008echo "${ECHO_T}no" >&6; }
7009fi
7010
7011
7012# Extract the first word of "mkdir", so it can be a program name with args.
7013set dummy mkdir; ac_word=$2
7014{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7016if test "${ac_cv_path_MKDIR+set}" = set; then
7017  echo $ECHO_N "(cached) $ECHO_C" >&6
7018else
7019  case $MKDIR in
7020  [\\/]* | ?:[\\/]*)
7021  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7022  ;;
7023  *)
7024  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025for as_dir in $PATH
7026do
7027  IFS=$as_save_IFS
7028  test -z "$as_dir" && as_dir=.
7029  for ac_exec_ext in '' $ac_executable_extensions; do
7030  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7031    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7032    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7033    break 2
7034  fi
7035done
7036done
7037IFS=$as_save_IFS
7038
7039  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7040  ;;
7041esac
7042fi
7043MKDIR=$ac_cv_path_MKDIR
7044if test -n "$MKDIR"; then
7045  { echo "$as_me:$LINENO: result: $MKDIR" >&5
7046echo "${ECHO_T}$MKDIR" >&6; }
7047else
7048  { echo "$as_me:$LINENO: result: no" >&5
7049echo "${ECHO_T}no" >&6; }
7050fi
7051
7052
7053# Extract the first word of "mv", so it can be a program name with args.
7054set dummy mv; ac_word=$2
7055{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7057if test "${ac_cv_path_MV+set}" = set; then
7058  echo $ECHO_N "(cached) $ECHO_C" >&6
7059else
7060  case $MV in
7061  [\\/]* | ?:[\\/]*)
7062  ac_cv_path_MV="$MV" # Let the user override the test with a path.
7063  ;;
7064  *)
7065  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066for as_dir in $PATH
7067do
7068  IFS=$as_save_IFS
7069  test -z "$as_dir" && as_dir=.
7070  for ac_exec_ext in '' $ac_executable_extensions; do
7071  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7072    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7073    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7074    break 2
7075  fi
7076done
7077done
7078IFS=$as_save_IFS
7079
7080  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7081  ;;
7082esac
7083fi
7084MV=$ac_cv_path_MV
7085if test -n "$MV"; then
7086  { echo "$as_me:$LINENO: result: $MV" >&5
7087echo "${ECHO_T}$MV" >&6; }
7088else
7089  { echo "$as_me:$LINENO: result: no" >&5
7090echo "${ECHO_T}no" >&6; }
7091fi
7092
7093
7094if test -n "$ac_tool_prefix"; then
7095  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7096set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7097{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7099if test "${ac_cv_prog_RANLIB+set}" = set; then
7100  echo $ECHO_N "(cached) $ECHO_C" >&6
7101else
7102  if test -n "$RANLIB"; then
7103  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7104else
7105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106for as_dir in $PATH
7107do
7108  IFS=$as_save_IFS
7109  test -z "$as_dir" && as_dir=.
7110  for ac_exec_ext in '' $ac_executable_extensions; do
7111  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7112    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7113    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7114    break 2
7115  fi
7116done
7117done
7118IFS=$as_save_IFS
7119
7120fi
7121fi
7122RANLIB=$ac_cv_prog_RANLIB
7123if test -n "$RANLIB"; then
7124  { echo "$as_me:$LINENO: result: $RANLIB" >&5
7125echo "${ECHO_T}$RANLIB" >&6; }
7126else
7127  { echo "$as_me:$LINENO: result: no" >&5
7128echo "${ECHO_T}no" >&6; }
7129fi
7130
7131
7132fi
7133if test -z "$ac_cv_prog_RANLIB"; then
7134  ac_ct_RANLIB=$RANLIB
7135  # Extract the first word of "ranlib", so it can be a program name with args.
7136set dummy ranlib; ac_word=$2
7137{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7139if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7140  echo $ECHO_N "(cached) $ECHO_C" >&6
7141else
7142  if test -n "$ac_ct_RANLIB"; then
7143  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7144else
7145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146for as_dir in $PATH
7147do
7148  IFS=$as_save_IFS
7149  test -z "$as_dir" && as_dir=.
7150  for ac_exec_ext in '' $ac_executable_extensions; do
7151  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7152    ac_cv_prog_ac_ct_RANLIB="ranlib"
7153    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7154    break 2
7155  fi
7156done
7157done
7158IFS=$as_save_IFS
7159
7160fi
7161fi
7162ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7163if test -n "$ac_ct_RANLIB"; then
7164  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7165echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7166else
7167  { echo "$as_me:$LINENO: result: no" >&5
7168echo "${ECHO_T}no" >&6; }
7169fi
7170
7171  if test "x$ac_ct_RANLIB" = x; then
7172    RANLIB=":"
7173  else
7174    case $cross_compiling:$ac_tool_warned in
7175yes:)
7176{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7177whose name does not start with the host triplet.  If you think this
7178configuration is useful to you, please write to autoconf@gnu.org." >&5
7179echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7180whose name does not start with the host triplet.  If you think this
7181configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7182ac_tool_warned=yes ;;
7183esac
7184    RANLIB=$ac_ct_RANLIB
7185  fi
7186else
7187  RANLIB="$ac_cv_prog_RANLIB"
7188fi
7189
7190# Extract the first word of "rm", so it can be a program name with args.
7191set dummy rm; ac_word=$2
7192{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7194if test "${ac_cv_path_RM+set}" = set; then
7195  echo $ECHO_N "(cached) $ECHO_C" >&6
7196else
7197  case $RM in
7198  [\\/]* | ?:[\\/]*)
7199  ac_cv_path_RM="$RM" # Let the user override the test with a path.
7200  ;;
7201  *)
7202  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203for as_dir in $PATH
7204do
7205  IFS=$as_save_IFS
7206  test -z "$as_dir" && as_dir=.
7207  for ac_exec_ext in '' $ac_executable_extensions; do
7208  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7209    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7210    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7211    break 2
7212  fi
7213done
7214done
7215IFS=$as_save_IFS
7216
7217  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7218  ;;
7219esac
7220fi
7221RM=$ac_cv_path_RM
7222if test -n "$RM"; then
7223  { echo "$as_me:$LINENO: result: $RM" >&5
7224echo "${ECHO_T}$RM" >&6; }
7225else
7226  { echo "$as_me:$LINENO: result: no" >&5
7227echo "${ECHO_T}no" >&6; }
7228fi
7229
7230
7231# Extract the first word of "sed", so it can be a program name with args.
7232set dummy sed; ac_word=$2
7233{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7235if test "${ac_cv_path_SED+set}" = set; then
7236  echo $ECHO_N "(cached) $ECHO_C" >&6
7237else
7238  case $SED in
7239  [\\/]* | ?:[\\/]*)
7240  ac_cv_path_SED="$SED" # Let the user override the test with a path.
7241  ;;
7242  *)
7243  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244for as_dir in $PATH
7245do
7246  IFS=$as_save_IFS
7247  test -z "$as_dir" && as_dir=.
7248  for ac_exec_ext in '' $ac_executable_extensions; do
7249  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7250    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7251    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7252    break 2
7253  fi
7254done
7255done
7256IFS=$as_save_IFS
7257
7258  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7259  ;;
7260esac
7261fi
7262SED=$ac_cv_path_SED
7263if test -n "$SED"; then
7264  { echo "$as_me:$LINENO: result: $SED" >&5
7265echo "${ECHO_T}$SED" >&6; }
7266else
7267  { echo "$as_me:$LINENO: result: no" >&5
7268echo "${ECHO_T}no" >&6; }
7269fi
7270
7271
7272# Extract the first word of "tar", so it can be a program name with args.
7273set dummy tar; ac_word=$2
7274{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7276if test "${ac_cv_path_TAR+set}" = set; then
7277  echo $ECHO_N "(cached) $ECHO_C" >&6
7278else
7279  case $TAR in
7280  [\\/]* | ?:[\\/]*)
7281  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7282  ;;
7283  *)
7284  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7285for as_dir in $PATH
7286do
7287  IFS=$as_save_IFS
7288  test -z "$as_dir" && as_dir=.
7289  for ac_exec_ext in '' $ac_executable_extensions; do
7290  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7291    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7292    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7293    break 2
7294  fi
7295done
7296done
7297IFS=$as_save_IFS
7298
7299  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7300  ;;
7301esac
7302fi
7303TAR=$ac_cv_path_TAR
7304if test -n "$TAR"; then
7305  { echo "$as_me:$LINENO: result: $TAR" >&5
7306echo "${ECHO_T}$TAR" >&6; }
7307else
7308  { echo "$as_me:$LINENO: result: no" >&5
7309echo "${ECHO_T}no" >&6; }
7310fi
7311
7312
7313# Extract the first word of "pwd", so it can be a program name with args.
7314set dummy pwd; ac_word=$2
7315{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7317if test "${ac_cv_path_BINPWD+set}" = set; then
7318  echo $ECHO_N "(cached) $ECHO_C" >&6
7319else
7320  case $BINPWD in
7321  [\\/]* | ?:[\\/]*)
7322  ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7323  ;;
7324  *)
7325  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326for as_dir in $PATH
7327do
7328  IFS=$as_save_IFS
7329  test -z "$as_dir" && as_dir=.
7330  for ac_exec_ext in '' $ac_executable_extensions; do
7331  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7332    ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7333    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7334    break 2
7335  fi
7336done
7337done
7338IFS=$as_save_IFS
7339
7340  test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7341  ;;
7342esac
7343fi
7344BINPWD=$ac_cv_path_BINPWD
7345if test -n "$BINPWD"; then
7346  { echo "$as_me:$LINENO: result: $BINPWD" >&5
7347echo "${ECHO_T}$BINPWD" >&6; }
7348else
7349  { echo "$as_me:$LINENO: result: no" >&5
7350echo "${ECHO_T}no" >&6; }
7351fi
7352
7353
7354
7355# Extract the first word of "Graphviz", so it can be a program name with args.
7356set dummy Graphviz; ac_word=$2
7357{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7359if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7360  echo $ECHO_N "(cached) $ECHO_C" >&6
7361else
7362  case $GRAPHVIZ in
7363  [\\/]* | ?:[\\/]*)
7364  ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7365  ;;
7366  *)
7367  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368for as_dir in $PATH
7369do
7370  IFS=$as_save_IFS
7371  test -z "$as_dir" && as_dir=.
7372  for ac_exec_ext in '' $ac_executable_extensions; do
7373  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7374    ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7375    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7376    break 2
7377  fi
7378done
7379done
7380IFS=$as_save_IFS
7381
7382  test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7383  ;;
7384esac
7385fi
7386GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7387if test -n "$GRAPHVIZ"; then
7388  { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7389echo "${ECHO_T}$GRAPHVIZ" >&6; }
7390else
7391  { echo "$as_me:$LINENO: result: no" >&5
7392echo "${ECHO_T}no" >&6; }
7393fi
7394
7395
7396if test "$GRAPHVIZ" != "echo Graphviz" ; then
7397
7398cat >>confdefs.h <<\_ACEOF
7399#define HAVE_GRAPHVIZ 1
7400_ACEOF
7401
7402    if test "$llvm_cv_os_type" = "MingW" ; then
7403    GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7404  fi
7405
7406cat >>confdefs.h <<_ACEOF
7407#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7408_ACEOF
7409
7410fi
7411# Extract the first word of "dot", so it can be a program name with args.
7412set dummy dot; ac_word=$2
7413{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7415if test "${ac_cv_path_DOT+set}" = set; then
7416  echo $ECHO_N "(cached) $ECHO_C" >&6
7417else
7418  case $DOT in
7419  [\\/]* | ?:[\\/]*)
7420  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7421  ;;
7422  *)
7423  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424for as_dir in $PATH
7425do
7426  IFS=$as_save_IFS
7427  test -z "$as_dir" && as_dir=.
7428  for ac_exec_ext in '' $ac_executable_extensions; do
7429  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7430    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7431    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7432    break 2
7433  fi
7434done
7435done
7436IFS=$as_save_IFS
7437
7438  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7439  ;;
7440esac
7441fi
7442DOT=$ac_cv_path_DOT
7443if test -n "$DOT"; then
7444  { echo "$as_me:$LINENO: result: $DOT" >&5
7445echo "${ECHO_T}$DOT" >&6; }
7446else
7447  { echo "$as_me:$LINENO: result: no" >&5
7448echo "${ECHO_T}no" >&6; }
7449fi
7450
7451
7452if test "$DOT" != "echo dot" ; then
7453
7454cat >>confdefs.h <<\_ACEOF
7455#define HAVE_DOT 1
7456_ACEOF
7457
7458    if test "$llvm_cv_os_type" = "MingW" ; then
7459    DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7460  fi
7461
7462cat >>confdefs.h <<_ACEOF
7463#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7464_ACEOF
7465
7466fi
7467for ac_prog in gv gsview32
7468do
7469  # Extract the first word of "$ac_prog", so it can be a program name with args.
7470set dummy $ac_prog; ac_word=$2
7471{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7473if test "${ac_cv_path_GV+set}" = set; then
7474  echo $ECHO_N "(cached) $ECHO_C" >&6
7475else
7476  case $GV in
7477  [\\/]* | ?:[\\/]*)
7478  ac_cv_path_GV="$GV" # Let the user override the test with a path.
7479  ;;
7480  *)
7481  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7482for as_dir in $PATH
7483do
7484  IFS=$as_save_IFS
7485  test -z "$as_dir" && as_dir=.
7486  for ac_exec_ext in '' $ac_executable_extensions; do
7487  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7488    ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7489    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7490    break 2
7491  fi
7492done
7493done
7494IFS=$as_save_IFS
7495
7496  ;;
7497esac
7498fi
7499GV=$ac_cv_path_GV
7500if test -n "$GV"; then
7501  { echo "$as_me:$LINENO: result: $GV" >&5
7502echo "${ECHO_T}$GV" >&6; }
7503else
7504  { echo "$as_me:$LINENO: result: no" >&5
7505echo "${ECHO_T}no" >&6; }
7506fi
7507
7508
7509  test -n "$GV" && break
7510done
7511test -n "$GV" || GV="echo gv"
7512
7513if test "$GV" != "echo gv" ; then
7514
7515cat >>confdefs.h <<\_ACEOF
7516#define HAVE_GV 1
7517_ACEOF
7518
7519    if test "$llvm_cv_os_type" = "MingW" ; then
7520    GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7521  fi
7522
7523cat >>confdefs.h <<_ACEOF
7524#define LLVM_PATH_GV "$GV${EXEEXT}"
7525_ACEOF
7526
7527fi
7528# Extract the first word of "dotty", so it can be a program name with args.
7529set dummy dotty; ac_word=$2
7530{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7532if test "${ac_cv_path_DOTTY+set}" = set; then
7533  echo $ECHO_N "(cached) $ECHO_C" >&6
7534else
7535  case $DOTTY in
7536  [\\/]* | ?:[\\/]*)
7537  ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7538  ;;
7539  *)
7540  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541for as_dir in $PATH
7542do
7543  IFS=$as_save_IFS
7544  test -z "$as_dir" && as_dir=.
7545  for ac_exec_ext in '' $ac_executable_extensions; do
7546  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7547    ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7548    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7549    break 2
7550  fi
7551done
7552done
7553IFS=$as_save_IFS
7554
7555  test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7556  ;;
7557esac
7558fi
7559DOTTY=$ac_cv_path_DOTTY
7560if test -n "$DOTTY"; then
7561  { echo "$as_me:$LINENO: result: $DOTTY" >&5
7562echo "${ECHO_T}$DOTTY" >&6; }
7563else
7564  { echo "$as_me:$LINENO: result: no" >&5
7565echo "${ECHO_T}no" >&6; }
7566fi
7567
7568
7569if test "$DOTTY" != "echo dotty" ; then
7570
7571cat >>confdefs.h <<\_ACEOF
7572#define HAVE_DOTTY 1
7573_ACEOF
7574
7575    if test "$llvm_cv_os_type" = "MingW" ; then
7576    DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7577  fi
7578
7579cat >>confdefs.h <<_ACEOF
7580#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7581_ACEOF
7582
7583fi
7584
7585
7586# Extract the first word of "perl", so it can be a program name with args.
7587set dummy perl; ac_word=$2
7588{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590if test "${ac_cv_path_PERL+set}" = set; then
7591  echo $ECHO_N "(cached) $ECHO_C" >&6
7592else
7593  case $PERL in
7594  [\\/]* | ?:[\\/]*)
7595  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7596  ;;
7597  *)
7598  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599for as_dir in $PATH
7600do
7601  IFS=$as_save_IFS
7602  test -z "$as_dir" && as_dir=.
7603  for ac_exec_ext in '' $ac_executable_extensions; do
7604  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7605    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7606    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607    break 2
7608  fi
7609done
7610done
7611IFS=$as_save_IFS
7612
7613  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7614  ;;
7615esac
7616fi
7617PERL=$ac_cv_path_PERL
7618if test -n "$PERL"; then
7619  { echo "$as_me:$LINENO: result: $PERL" >&5
7620echo "${ECHO_T}$PERL" >&6; }
7621else
7622  { echo "$as_me:$LINENO: result: no" >&5
7623echo "${ECHO_T}no" >&6; }
7624fi
7625
7626
7627if test "$PERL" != "none"; then
7628  { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7629echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7630  if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7631    { echo "$as_me:$LINENO: result: yes" >&5
7632echo "${ECHO_T}yes" >&6; }
7633  else
7634    PERL=none
7635    { echo "$as_me:$LINENO: result: not found" >&5
7636echo "${ECHO_T}not found" >&6; }
7637  fi
7638fi
7639
7640
7641if test x"$PERL" = xnone; then
7642   HAVE_PERL=0
7643
7644   { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7645echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7646   { (exit 1); exit 1; }; }
7647else
7648   HAVE_PERL=1
7649
7650fi
7651
7652# Find a good install program.  We prefer a C program (faster),
7653# so one script is as good as another.  But avoid the broken or
7654# incompatible versions:
7655# SysV /etc/install, /usr/sbin/install
7656# SunOS /usr/etc/install
7657# IRIX /sbin/install
7658# AIX /bin/install
7659# AmigaOS /C/install, which installs bootblocks on floppy discs
7660# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7661# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7662# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7663# OS/2's system install, which has a completely different semantic
7664# ./install, which can be erroneously created by make from ./install.sh.
7665{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7666echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7667if test -z "$INSTALL"; then
7668if test "${ac_cv_path_install+set}" = set; then
7669  echo $ECHO_N "(cached) $ECHO_C" >&6
7670else
7671  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672for as_dir in $PATH
7673do
7674  IFS=$as_save_IFS
7675  test -z "$as_dir" && as_dir=.
7676  # Account for people who put trailing slashes in PATH elements.
7677case $as_dir/ in
7678  ./ | .// | /cC/* | \
7679  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7680  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7681  /usr/ucb/* ) ;;
7682  *)
7683    # OSF1 and SCO ODT 3.0 have their own names for install.
7684    # Don't use installbsd from OSF since it installs stuff as root
7685    # by default.
7686    for ac_prog in ginstall scoinst install; do
7687      for ac_exec_ext in '' $ac_executable_extensions; do
7688	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7689	  if test $ac_prog = install &&
7690	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7691	    # AIX install.  It has an incompatible calling convention.
7692	    :
7693	  elif test $ac_prog = install &&
7694	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7695	    # program-specific install script used by HP pwplus--don't use.
7696	    :
7697	  else
7698	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7699	    break 3
7700	  fi
7701	fi
7702      done
7703    done
7704    ;;
7705esac
7706done
7707IFS=$as_save_IFS
7708
7709
7710fi
7711  if test "${ac_cv_path_install+set}" = set; then
7712    INSTALL=$ac_cv_path_install
7713  else
7714    # As a last resort, use the slow shell script.  Don't cache a
7715    # value for INSTALL within a source directory, because that will
7716    # break other packages using the cache if that directory is
7717    # removed, or if the value is a relative name.
7718    INSTALL=$ac_install_sh
7719  fi
7720fi
7721{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7722echo "${ECHO_T}$INSTALL" >&6; }
7723
7724# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7725# It thinks the first close brace ends the variable substitution.
7726test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7727
7728test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7729
7730test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7731
7732
7733# Extract the first word of "bzip2", so it can be a program name with args.
7734set dummy bzip2; ac_word=$2
7735{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7737if test "${ac_cv_path_BZIP2+set}" = set; then
7738  echo $ECHO_N "(cached) $ECHO_C" >&6
7739else
7740  case $BZIP2 in
7741  [\\/]* | ?:[\\/]*)
7742  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7743  ;;
7744  *)
7745  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746for as_dir in $PATH
7747do
7748  IFS=$as_save_IFS
7749  test -z "$as_dir" && as_dir=.
7750  for ac_exec_ext in '' $ac_executable_extensions; do
7751  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7752    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7753    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7754    break 2
7755  fi
7756done
7757done
7758IFS=$as_save_IFS
7759
7760  ;;
7761esac
7762fi
7763BZIP2=$ac_cv_path_BZIP2
7764if test -n "$BZIP2"; then
7765  { echo "$as_me:$LINENO: result: $BZIP2" >&5
7766echo "${ECHO_T}$BZIP2" >&6; }
7767else
7768  { echo "$as_me:$LINENO: result: no" >&5
7769echo "${ECHO_T}no" >&6; }
7770fi
7771
7772
7773# Extract the first word of "doxygen", so it can be a program name with args.
7774set dummy doxygen; ac_word=$2
7775{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7777if test "${ac_cv_path_DOXYGEN+set}" = set; then
7778  echo $ECHO_N "(cached) $ECHO_C" >&6
7779else
7780  case $DOXYGEN in
7781  [\\/]* | ?:[\\/]*)
7782  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7783  ;;
7784  *)
7785  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786for as_dir in $PATH
7787do
7788  IFS=$as_save_IFS
7789  test -z "$as_dir" && as_dir=.
7790  for ac_exec_ext in '' $ac_executable_extensions; do
7791  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7792    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7793    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7794    break 2
7795  fi
7796done
7797done
7798IFS=$as_save_IFS
7799
7800  ;;
7801esac
7802fi
7803DOXYGEN=$ac_cv_path_DOXYGEN
7804if test -n "$DOXYGEN"; then
7805  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7806echo "${ECHO_T}$DOXYGEN" >&6; }
7807else
7808  { echo "$as_me:$LINENO: result: no" >&5
7809echo "${ECHO_T}no" >&6; }
7810fi
7811
7812
7813# Extract the first word of "groff", so it can be a program name with args.
7814set dummy groff; ac_word=$2
7815{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7817if test "${ac_cv_path_GROFF+set}" = set; then
7818  echo $ECHO_N "(cached) $ECHO_C" >&6
7819else
7820  case $GROFF in
7821  [\\/]* | ?:[\\/]*)
7822  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7823  ;;
7824  *)
7825  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826for as_dir in $PATH
7827do
7828  IFS=$as_save_IFS
7829  test -z "$as_dir" && as_dir=.
7830  for ac_exec_ext in '' $ac_executable_extensions; do
7831  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7832    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7833    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7834    break 2
7835  fi
7836done
7837done
7838IFS=$as_save_IFS
7839
7840  ;;
7841esac
7842fi
7843GROFF=$ac_cv_path_GROFF
7844if test -n "$GROFF"; then
7845  { echo "$as_me:$LINENO: result: $GROFF" >&5
7846echo "${ECHO_T}$GROFF" >&6; }
7847else
7848  { echo "$as_me:$LINENO: result: no" >&5
7849echo "${ECHO_T}no" >&6; }
7850fi
7851
7852
7853# Extract the first word of "gzip", so it can be a program name with args.
7854set dummy gzip; ac_word=$2
7855{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7857if test "${ac_cv_path_GZIP+set}" = set; then
7858  echo $ECHO_N "(cached) $ECHO_C" >&6
7859else
7860  case $GZIP in
7861  [\\/]* | ?:[\\/]*)
7862  ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7863  ;;
7864  *)
7865  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7866for as_dir in $PATH
7867do
7868  IFS=$as_save_IFS
7869  test -z "$as_dir" && as_dir=.
7870  for ac_exec_ext in '' $ac_executable_extensions; do
7871  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7872    ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7873    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7874    break 2
7875  fi
7876done
7877done
7878IFS=$as_save_IFS
7879
7880  ;;
7881esac
7882fi
7883GZIP=$ac_cv_path_GZIP
7884if test -n "$GZIP"; then
7885  { echo "$as_me:$LINENO: result: $GZIP" >&5
7886echo "${ECHO_T}$GZIP" >&6; }
7887else
7888  { echo "$as_me:$LINENO: result: no" >&5
7889echo "${ECHO_T}no" >&6; }
7890fi
7891
7892
7893# Extract the first word of "pod2html", so it can be a program name with args.
7894set dummy pod2html; ac_word=$2
7895{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7897if test "${ac_cv_path_POD2HTML+set}" = set; then
7898  echo $ECHO_N "(cached) $ECHO_C" >&6
7899else
7900  case $POD2HTML in
7901  [\\/]* | ?:[\\/]*)
7902  ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7903  ;;
7904  *)
7905  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906for as_dir in $PATH
7907do
7908  IFS=$as_save_IFS
7909  test -z "$as_dir" && as_dir=.
7910  for ac_exec_ext in '' $ac_executable_extensions; do
7911  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7912    ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7913    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7914    break 2
7915  fi
7916done
7917done
7918IFS=$as_save_IFS
7919
7920  ;;
7921esac
7922fi
7923POD2HTML=$ac_cv_path_POD2HTML
7924if test -n "$POD2HTML"; then
7925  { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7926echo "${ECHO_T}$POD2HTML" >&6; }
7927else
7928  { echo "$as_me:$LINENO: result: no" >&5
7929echo "${ECHO_T}no" >&6; }
7930fi
7931
7932
7933# Extract the first word of "pod2man", so it can be a program name with args.
7934set dummy pod2man; ac_word=$2
7935{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7937if test "${ac_cv_path_POD2MAN+set}" = set; then
7938  echo $ECHO_N "(cached) $ECHO_C" >&6
7939else
7940  case $POD2MAN in
7941  [\\/]* | ?:[\\/]*)
7942  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7943  ;;
7944  *)
7945  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946for as_dir in $PATH
7947do
7948  IFS=$as_save_IFS
7949  test -z "$as_dir" && as_dir=.
7950  for ac_exec_ext in '' $ac_executable_extensions; do
7951  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7952    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7953    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7954    break 2
7955  fi
7956done
7957done
7958IFS=$as_save_IFS
7959
7960  ;;
7961esac
7962fi
7963POD2MAN=$ac_cv_path_POD2MAN
7964if test -n "$POD2MAN"; then
7965  { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7966echo "${ECHO_T}$POD2MAN" >&6; }
7967else
7968  { echo "$as_me:$LINENO: result: no" >&5
7969echo "${ECHO_T}no" >&6; }
7970fi
7971
7972
7973# Extract the first word of "runtest", so it can be a program name with args.
7974set dummy runtest; ac_word=$2
7975{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7977if test "${ac_cv_path_RUNTEST+set}" = set; then
7978  echo $ECHO_N "(cached) $ECHO_C" >&6
7979else
7980  case $RUNTEST in
7981  [\\/]* | ?:[\\/]*)
7982  ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7983  ;;
7984  *)
7985  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986for as_dir in $PATH
7987do
7988  IFS=$as_save_IFS
7989  test -z "$as_dir" && as_dir=.
7990  for ac_exec_ext in '' $ac_executable_extensions; do
7991  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7992    ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7993    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7994    break 2
7995  fi
7996done
7997done
7998IFS=$as_save_IFS
7999
8000  ;;
8001esac
8002fi
8003RUNTEST=$ac_cv_path_RUNTEST
8004if test -n "$RUNTEST"; then
8005  { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8006echo "${ECHO_T}$RUNTEST" >&6; }
8007else
8008  { echo "$as_me:$LINENO: result: no" >&5
8009echo "${ECHO_T}no" >&6; }
8010fi
8011
8012
8013
8014no_itcl=true
8015{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8016echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8017
8018# Check whether --with-tclinclude was given.
8019if test "${with_tclinclude+set}" = set; then
8020  withval=$with_tclinclude; with_tclinclude=${withval}
8021else
8022  with_tclinclude=''
8023fi
8024
8025if test "${ac_cv_path_tclsh+set}" = set; then
8026  echo $ECHO_N "(cached) $ECHO_C" >&6
8027else
8028
8029if test x"${with_tclinclude}" != x ; then
8030  if test -f ${with_tclinclude}/tclsh ; then
8031    ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8032  elif test -f ${with_tclinclude}/src/tclsh ; then
8033    ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8034  else
8035    { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8036echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8037   { (exit 1); exit 1; }; }
8038  fi
8039fi
8040
8041if test x"${ac_cv_path_tclsh}" = x ; then
8042  { echo "$as_me:$LINENO: result: none" >&5
8043echo "${ECHO_T}none" >&6; }
8044  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
8045do
8046  # Extract the first word of "$ac_prog", so it can be a program name with args.
8047set dummy $ac_prog; ac_word=$2
8048{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8050if test "${ac_cv_path_TCLSH+set}" = set; then
8051  echo $ECHO_N "(cached) $ECHO_C" >&6
8052else
8053  case $TCLSH in
8054  [\\/]* | ?:[\\/]*)
8055  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8056  ;;
8057  *)
8058  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059for as_dir in $PATH
8060do
8061  IFS=$as_save_IFS
8062  test -z "$as_dir" && as_dir=.
8063  for ac_exec_ext in '' $ac_executable_extensions; do
8064  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8065    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8066    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8067    break 2
8068  fi
8069done
8070done
8071IFS=$as_save_IFS
8072
8073  ;;
8074esac
8075fi
8076TCLSH=$ac_cv_path_TCLSH
8077if test -n "$TCLSH"; then
8078  { echo "$as_me:$LINENO: result: $TCLSH" >&5
8079echo "${ECHO_T}$TCLSH" >&6; }
8080else
8081  { echo "$as_me:$LINENO: result: no" >&5
8082echo "${ECHO_T}no" >&6; }
8083fi
8084
8085
8086  test -n "$TCLSH" && break
8087done
8088
8089  if test x"${TCLSH}" = x ; then
8090    ac_cv_path_tclsh='';
8091  else
8092    ac_cv_path_tclsh="${TCLSH}";
8093  fi
8094else
8095  { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8096echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8097  TCLSH="${ac_cv_path_tclsh}"
8098
8099fi
8100
8101fi
8102
8103# Extract the first word of "zip", so it can be a program name with args.
8104set dummy zip; ac_word=$2
8105{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8107if test "${ac_cv_path_ZIP+set}" = set; then
8108  echo $ECHO_N "(cached) $ECHO_C" >&6
8109else
8110  case $ZIP in
8111  [\\/]* | ?:[\\/]*)
8112  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8113  ;;
8114  *)
8115  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116for as_dir in $PATH
8117do
8118  IFS=$as_save_IFS
8119  test -z "$as_dir" && as_dir=.
8120  for ac_exec_ext in '' $ac_executable_extensions; do
8121  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8122    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8123    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8124    break 2
8125  fi
8126done
8127done
8128IFS=$as_save_IFS
8129
8130  ;;
8131esac
8132fi
8133ZIP=$ac_cv_path_ZIP
8134if test -n "$ZIP"; then
8135  { echo "$as_me:$LINENO: result: $ZIP" >&5
8136echo "${ECHO_T}$ZIP" >&6; }
8137else
8138  { echo "$as_me:$LINENO: result: no" >&5
8139echo "${ECHO_T}no" >&6; }
8140fi
8141
8142
8143for ac_prog in ocamlc
8144do
8145  # Extract the first word of "$ac_prog", so it can be a program name with args.
8146set dummy $ac_prog; ac_word=$2
8147{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8149if test "${ac_cv_path_OCAMLC+set}" = set; then
8150  echo $ECHO_N "(cached) $ECHO_C" >&6
8151else
8152  case $OCAMLC in
8153  [\\/]* | ?:[\\/]*)
8154  ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8155  ;;
8156  *)
8157  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8158for as_dir in $PATH
8159do
8160  IFS=$as_save_IFS
8161  test -z "$as_dir" && as_dir=.
8162  for ac_exec_ext in '' $ac_executable_extensions; do
8163  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8164    ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8165    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8166    break 2
8167  fi
8168done
8169done
8170IFS=$as_save_IFS
8171
8172  ;;
8173esac
8174fi
8175OCAMLC=$ac_cv_path_OCAMLC
8176if test -n "$OCAMLC"; then
8177  { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8178echo "${ECHO_T}$OCAMLC" >&6; }
8179else
8180  { echo "$as_me:$LINENO: result: no" >&5
8181echo "${ECHO_T}no" >&6; }
8182fi
8183
8184
8185  test -n "$OCAMLC" && break
8186done
8187
8188for ac_prog in ocamlopt
8189do
8190  # Extract the first word of "$ac_prog", so it can be a program name with args.
8191set dummy $ac_prog; ac_word=$2
8192{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8194if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8195  echo $ECHO_N "(cached) $ECHO_C" >&6
8196else
8197  case $OCAMLOPT in
8198  [\\/]* | ?:[\\/]*)
8199  ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8200  ;;
8201  *)
8202  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8203for as_dir in $PATH
8204do
8205  IFS=$as_save_IFS
8206  test -z "$as_dir" && as_dir=.
8207  for ac_exec_ext in '' $ac_executable_extensions; do
8208  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8209    ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8210    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8211    break 2
8212  fi
8213done
8214done
8215IFS=$as_save_IFS
8216
8217  ;;
8218esac
8219fi
8220OCAMLOPT=$ac_cv_path_OCAMLOPT
8221if test -n "$OCAMLOPT"; then
8222  { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8223echo "${ECHO_T}$OCAMLOPT" >&6; }
8224else
8225  { echo "$as_me:$LINENO: result: no" >&5
8226echo "${ECHO_T}no" >&6; }
8227fi
8228
8229
8230  test -n "$OCAMLOPT" && break
8231done
8232
8233for ac_prog in ocamldep
8234do
8235  # Extract the first word of "$ac_prog", so it can be a program name with args.
8236set dummy $ac_prog; ac_word=$2
8237{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8239if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8240  echo $ECHO_N "(cached) $ECHO_C" >&6
8241else
8242  case $OCAMLDEP in
8243  [\\/]* | ?:[\\/]*)
8244  ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8245  ;;
8246  *)
8247  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248for as_dir in $PATH
8249do
8250  IFS=$as_save_IFS
8251  test -z "$as_dir" && as_dir=.
8252  for ac_exec_ext in '' $ac_executable_extensions; do
8253  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8254    ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8255    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8256    break 2
8257  fi
8258done
8259done
8260IFS=$as_save_IFS
8261
8262  ;;
8263esac
8264fi
8265OCAMLDEP=$ac_cv_path_OCAMLDEP
8266if test -n "$OCAMLDEP"; then
8267  { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8268echo "${ECHO_T}$OCAMLDEP" >&6; }
8269else
8270  { echo "$as_me:$LINENO: result: no" >&5
8271echo "${ECHO_T}no" >&6; }
8272fi
8273
8274
8275  test -n "$OCAMLDEP" && break
8276done
8277
8278for ac_prog in ocamldoc
8279do
8280  # Extract the first word of "$ac_prog", so it can be a program name with args.
8281set dummy $ac_prog; ac_word=$2
8282{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8284if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8285  echo $ECHO_N "(cached) $ECHO_C" >&6
8286else
8287  case $OCAMLDOC in
8288  [\\/]* | ?:[\\/]*)
8289  ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8290  ;;
8291  *)
8292  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8293for as_dir in $PATH
8294do
8295  IFS=$as_save_IFS
8296  test -z "$as_dir" && as_dir=.
8297  for ac_exec_ext in '' $ac_executable_extensions; do
8298  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8299    ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8300    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8301    break 2
8302  fi
8303done
8304done
8305IFS=$as_save_IFS
8306
8307  ;;
8308esac
8309fi
8310OCAMLDOC=$ac_cv_path_OCAMLDOC
8311if test -n "$OCAMLDOC"; then
8312  { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8313echo "${ECHO_T}$OCAMLDOC" >&6; }
8314else
8315  { echo "$as_me:$LINENO: result: no" >&5
8316echo "${ECHO_T}no" >&6; }
8317fi
8318
8319
8320  test -n "$OCAMLDOC" && break
8321done
8322
8323for ac_prog in gas as
8324do
8325  # Extract the first word of "$ac_prog", so it can be a program name with args.
8326set dummy $ac_prog; ac_word=$2
8327{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8329if test "${ac_cv_path_GAS+set}" = set; then
8330  echo $ECHO_N "(cached) $ECHO_C" >&6
8331else
8332  case $GAS in
8333  [\\/]* | ?:[\\/]*)
8334  ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8335  ;;
8336  *)
8337  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8338for as_dir in $PATH
8339do
8340  IFS=$as_save_IFS
8341  test -z "$as_dir" && as_dir=.
8342  for ac_exec_ext in '' $ac_executable_extensions; do
8343  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8344    ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8345    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8346    break 2
8347  fi
8348done
8349done
8350IFS=$as_save_IFS
8351
8352  ;;
8353esac
8354fi
8355GAS=$ac_cv_path_GAS
8356if test -n "$GAS"; then
8357  { echo "$as_me:$LINENO: result: $GAS" >&5
8358echo "${ECHO_T}$GAS" >&6; }
8359else
8360  { echo "$as_me:$LINENO: result: no" >&5
8361echo "${ECHO_T}no" >&6; }
8362fi
8363
8364
8365  test -n "$GAS" && break
8366done
8367
8368
8369{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8370echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8371if test "${llvm_cv_link_use_r+set}" = set; then
8372  echo $ECHO_N "(cached) $ECHO_C" >&6
8373else
8374   ac_ext=c
8375ac_cpp='$CPP $CPPFLAGS'
8376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8378ac_compiler_gnu=$ac_cv_c_compiler_gnu
8379
8380  oldcflags="$CFLAGS"
8381  CFLAGS="$CFLAGS -Wl,-R."
8382  cat >conftest.$ac_ext <<_ACEOF
8383/* confdefs.h.  */
8384_ACEOF
8385cat confdefs.h >>conftest.$ac_ext
8386cat >>conftest.$ac_ext <<_ACEOF
8387/* end confdefs.h.  */
8388
8389int
8390main ()
8391{
8392int main() { return 0; }
8393  ;
8394  return 0;
8395}
8396_ACEOF
8397rm -f conftest.$ac_objext conftest$ac_exeext
8398if { (ac_try="$ac_link"
8399case "(($ac_try" in
8400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401  *) ac_try_echo=$ac_try;;
8402esac
8403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8404  (eval "$ac_link") 2>conftest.er1
8405  ac_status=$?
8406  grep -v '^ *+' conftest.er1 >conftest.err
8407  rm -f conftest.er1
8408  cat conftest.err >&5
8409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410  (exit $ac_status); } &&
8411	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8412  { (case "(($ac_try" in
8413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8414  *) ac_try_echo=$ac_try;;
8415esac
8416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8417  (eval "$ac_try") 2>&5
8418  ac_status=$?
8419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420  (exit $ac_status); }; } &&
8421	 { ac_try='test -s conftest$ac_exeext'
8422  { (case "(($ac_try" in
8423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424  *) ac_try_echo=$ac_try;;
8425esac
8426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427  (eval "$ac_try") 2>&5
8428  ac_status=$?
8429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430  (exit $ac_status); }; }; then
8431  llvm_cv_link_use_r=yes
8432else
8433  echo "$as_me: failed program was:" >&5
8434sed 's/^/| /' conftest.$ac_ext >&5
8435
8436	llvm_cv_link_use_r=no
8437fi
8438
8439rm -f core conftest.err conftest.$ac_objext \
8440      conftest$ac_exeext conftest.$ac_ext
8441  CFLAGS="$oldcflags"
8442  ac_ext=c
8443ac_cpp='$CPP $CPPFLAGS'
8444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8446ac_compiler_gnu=$ac_cv_c_compiler_gnu
8447
8448
8449fi
8450{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8451echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8452if test "$llvm_cv_link_use_r" = yes ; then
8453
8454cat >>confdefs.h <<\_ACEOF
8455#define HAVE_LINK_R 1
8456_ACEOF
8457
8458  fi
8459
8460
8461
8462
8463{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8464echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8465if test "${ac_cv_c_const+set}" = set; then
8466  echo $ECHO_N "(cached) $ECHO_C" >&6
8467else
8468  cat >conftest.$ac_ext <<_ACEOF
8469/* confdefs.h.  */
8470_ACEOF
8471cat confdefs.h >>conftest.$ac_ext
8472cat >>conftest.$ac_ext <<_ACEOF
8473/* end confdefs.h.  */
8474
8475int
8476main ()
8477{
8478/* FIXME: Include the comments suggested by Paul. */
8479#ifndef __cplusplus
8480  /* Ultrix mips cc rejects this.  */
8481  typedef int charset[2];
8482  const charset x;
8483  /* SunOS 4.1.1 cc rejects this.  */
8484  char const *const *ccp;
8485  char **p;
8486  /* NEC SVR4.0.2 mips cc rejects this.  */
8487  struct point {int x, y;};
8488  static struct point const zero = {0,0};
8489  /* AIX XL C 1.02.0.0 rejects this.
8490     It does not let you subtract one const X* pointer from another in
8491     an arm of an if-expression whose if-part is not a constant
8492     expression */
8493  const char *g = "string";
8494  ccp = &g + (g ? g-g : 0);
8495  /* HPUX 7.0 cc rejects these. */
8496  ++ccp;
8497  p = (char**) ccp;
8498  ccp = (char const *const *) p;
8499  { /* SCO 3.2v4 cc rejects this.  */
8500    char *t;
8501    char const *s = 0 ? (char *) 0 : (char const *) 0;
8502
8503    *t++ = 0;
8504    if (s) return 0;
8505  }
8506  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8507    int x[] = {25, 17};
8508    const int *foo = &x[0];
8509    ++foo;
8510  }
8511  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8512    typedef const int *iptr;
8513    iptr p = 0;
8514    ++p;
8515  }
8516  { /* AIX XL C 1.02.0.0 rejects this saying
8517       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8518    struct s { int j; const int *ap[3]; };
8519    struct s *b; b->j = 5;
8520  }
8521  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8522    const int foo = 10;
8523    if (!foo) return 0;
8524  }
8525  return !x[0] && !zero.x;
8526#endif
8527
8528  ;
8529  return 0;
8530}
8531_ACEOF
8532rm -f conftest.$ac_objext
8533if { (ac_try="$ac_compile"
8534case "(($ac_try" in
8535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536  *) ac_try_echo=$ac_try;;
8537esac
8538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539  (eval "$ac_compile") 2>conftest.er1
8540  ac_status=$?
8541  grep -v '^ *+' conftest.er1 >conftest.err
8542  rm -f conftest.er1
8543  cat conftest.err >&5
8544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545  (exit $ac_status); } &&
8546	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8547  { (case "(($ac_try" in
8548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549  *) ac_try_echo=$ac_try;;
8550esac
8551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552  (eval "$ac_try") 2>&5
8553  ac_status=$?
8554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555  (exit $ac_status); }; } &&
8556	 { ac_try='test -s conftest.$ac_objext'
8557  { (case "(($ac_try" in
8558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8559  *) ac_try_echo=$ac_try;;
8560esac
8561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8562  (eval "$ac_try") 2>&5
8563  ac_status=$?
8564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565  (exit $ac_status); }; }; then
8566  ac_cv_c_const=yes
8567else
8568  echo "$as_me: failed program was:" >&5
8569sed 's/^/| /' conftest.$ac_ext >&5
8570
8571	ac_cv_c_const=no
8572fi
8573
8574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8575fi
8576{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8577echo "${ECHO_T}$ac_cv_c_const" >&6; }
8578if test $ac_cv_c_const = no; then
8579
8580cat >>confdefs.h <<\_ACEOF
8581#define const
8582_ACEOF
8583
8584fi
8585
8586
8587
8588
8589
8590
8591ac_header_dirent=no
8592for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8593  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8594{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8595echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8596if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8597  echo $ECHO_N "(cached) $ECHO_C" >&6
8598else
8599  cat >conftest.$ac_ext <<_ACEOF
8600/* confdefs.h.  */
8601_ACEOF
8602cat confdefs.h >>conftest.$ac_ext
8603cat >>conftest.$ac_ext <<_ACEOF
8604/* end confdefs.h.  */
8605#include <sys/types.h>
8606#include <$ac_hdr>
8607
8608int
8609main ()
8610{
8611if ((DIR *) 0)
8612return 0;
8613  ;
8614  return 0;
8615}
8616_ACEOF
8617rm -f conftest.$ac_objext
8618if { (ac_try="$ac_compile"
8619case "(($ac_try" in
8620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8621  *) ac_try_echo=$ac_try;;
8622esac
8623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8624  (eval "$ac_compile") 2>conftest.er1
8625  ac_status=$?
8626  grep -v '^ *+' conftest.er1 >conftest.err
8627  rm -f conftest.er1
8628  cat conftest.err >&5
8629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630  (exit $ac_status); } &&
8631	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8632  { (case "(($ac_try" in
8633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8634  *) ac_try_echo=$ac_try;;
8635esac
8636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8637  (eval "$ac_try") 2>&5
8638  ac_status=$?
8639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640  (exit $ac_status); }; } &&
8641	 { ac_try='test -s conftest.$ac_objext'
8642  { (case "(($ac_try" in
8643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8644  *) ac_try_echo=$ac_try;;
8645esac
8646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8647  (eval "$ac_try") 2>&5
8648  ac_status=$?
8649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650  (exit $ac_status); }; }; then
8651  eval "$as_ac_Header=yes"
8652else
8653  echo "$as_me: failed program was:" >&5
8654sed 's/^/| /' conftest.$ac_ext >&5
8655
8656	eval "$as_ac_Header=no"
8657fi
8658
8659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8660fi
8661ac_res=`eval echo '${'$as_ac_Header'}'`
8662	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8663echo "${ECHO_T}$ac_res" >&6; }
8664if test `eval echo '${'$as_ac_Header'}'` = yes; then
8665  cat >>confdefs.h <<_ACEOF
8666#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8667_ACEOF
8668
8669ac_header_dirent=$ac_hdr; break
8670fi
8671
8672done
8673# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8674if test $ac_header_dirent = dirent.h; then
8675  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8676echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8677if test "${ac_cv_search_opendir+set}" = set; then
8678  echo $ECHO_N "(cached) $ECHO_C" >&6
8679else
8680  ac_func_search_save_LIBS=$LIBS
8681cat >conftest.$ac_ext <<_ACEOF
8682/* confdefs.h.  */
8683_ACEOF
8684cat confdefs.h >>conftest.$ac_ext
8685cat >>conftest.$ac_ext <<_ACEOF
8686/* end confdefs.h.  */
8687
8688/* Override any GCC internal prototype to avoid an error.
8689   Use char because int might match the return type of a GCC
8690   builtin and then its argument prototype would still apply.  */
8691#ifdef __cplusplus
8692extern "C"
8693#endif
8694char opendir ();
8695int
8696main ()
8697{
8698return opendir ();
8699  ;
8700  return 0;
8701}
8702_ACEOF
8703for ac_lib in '' dir; do
8704  if test -z "$ac_lib"; then
8705    ac_res="none required"
8706  else
8707    ac_res=-l$ac_lib
8708    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8709  fi
8710  rm -f conftest.$ac_objext conftest$ac_exeext
8711if { (ac_try="$ac_link"
8712case "(($ac_try" in
8713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8714  *) ac_try_echo=$ac_try;;
8715esac
8716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8717  (eval "$ac_link") 2>conftest.er1
8718  ac_status=$?
8719  grep -v '^ *+' conftest.er1 >conftest.err
8720  rm -f conftest.er1
8721  cat conftest.err >&5
8722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723  (exit $ac_status); } &&
8724	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8725  { (case "(($ac_try" in
8726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8727  *) ac_try_echo=$ac_try;;
8728esac
8729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8730  (eval "$ac_try") 2>&5
8731  ac_status=$?
8732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733  (exit $ac_status); }; } &&
8734	 { ac_try='test -s conftest$ac_exeext'
8735  { (case "(($ac_try" in
8736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8737  *) ac_try_echo=$ac_try;;
8738esac
8739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8740  (eval "$ac_try") 2>&5
8741  ac_status=$?
8742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743  (exit $ac_status); }; }; then
8744  ac_cv_search_opendir=$ac_res
8745else
8746  echo "$as_me: failed program was:" >&5
8747sed 's/^/| /' conftest.$ac_ext >&5
8748
8749
8750fi
8751
8752rm -f core conftest.err conftest.$ac_objext \
8753      conftest$ac_exeext
8754  if test "${ac_cv_search_opendir+set}" = set; then
8755  break
8756fi
8757done
8758if test "${ac_cv_search_opendir+set}" = set; then
8759  :
8760else
8761  ac_cv_search_opendir=no
8762fi
8763rm conftest.$ac_ext
8764LIBS=$ac_func_search_save_LIBS
8765fi
8766{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8767echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8768ac_res=$ac_cv_search_opendir
8769if test "$ac_res" != no; then
8770  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8771
8772fi
8773
8774else
8775  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8776echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8777if test "${ac_cv_search_opendir+set}" = set; then
8778  echo $ECHO_N "(cached) $ECHO_C" >&6
8779else
8780  ac_func_search_save_LIBS=$LIBS
8781cat >conftest.$ac_ext <<_ACEOF
8782/* confdefs.h.  */
8783_ACEOF
8784cat confdefs.h >>conftest.$ac_ext
8785cat >>conftest.$ac_ext <<_ACEOF
8786/* end confdefs.h.  */
8787
8788/* Override any GCC internal prototype to avoid an error.
8789   Use char because int might match the return type of a GCC
8790   builtin and then its argument prototype would still apply.  */
8791#ifdef __cplusplus
8792extern "C"
8793#endif
8794char opendir ();
8795int
8796main ()
8797{
8798return opendir ();
8799  ;
8800  return 0;
8801}
8802_ACEOF
8803for ac_lib in '' x; do
8804  if test -z "$ac_lib"; then
8805    ac_res="none required"
8806  else
8807    ac_res=-l$ac_lib
8808    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8809  fi
8810  rm -f conftest.$ac_objext conftest$ac_exeext
8811if { (ac_try="$ac_link"
8812case "(($ac_try" in
8813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8814  *) ac_try_echo=$ac_try;;
8815esac
8816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8817  (eval "$ac_link") 2>conftest.er1
8818  ac_status=$?
8819  grep -v '^ *+' conftest.er1 >conftest.err
8820  rm -f conftest.er1
8821  cat conftest.err >&5
8822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823  (exit $ac_status); } &&
8824	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8825  { (case "(($ac_try" in
8826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8827  *) ac_try_echo=$ac_try;;
8828esac
8829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8830  (eval "$ac_try") 2>&5
8831  ac_status=$?
8832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833  (exit $ac_status); }; } &&
8834	 { ac_try='test -s conftest$ac_exeext'
8835  { (case "(($ac_try" in
8836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8837  *) ac_try_echo=$ac_try;;
8838esac
8839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8840  (eval "$ac_try") 2>&5
8841  ac_status=$?
8842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843  (exit $ac_status); }; }; then
8844  ac_cv_search_opendir=$ac_res
8845else
8846  echo "$as_me: failed program was:" >&5
8847sed 's/^/| /' conftest.$ac_ext >&5
8848
8849
8850fi
8851
8852rm -f core conftest.err conftest.$ac_objext \
8853      conftest$ac_exeext
8854  if test "${ac_cv_search_opendir+set}" = set; then
8855  break
8856fi
8857done
8858if test "${ac_cv_search_opendir+set}" = set; then
8859  :
8860else
8861  ac_cv_search_opendir=no
8862fi
8863rm conftest.$ac_ext
8864LIBS=$ac_func_search_save_LIBS
8865fi
8866{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8867echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8868ac_res=$ac_cv_search_opendir
8869if test "$ac_res" != no; then
8870  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8871
8872fi
8873
8874fi
8875
8876
8877for ac_header in dlfcn.h
8878do
8879as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8880if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8881  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8882echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8883if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8884  echo $ECHO_N "(cached) $ECHO_C" >&6
8885fi
8886ac_res=`eval echo '${'$as_ac_Header'}'`
8887	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8888echo "${ECHO_T}$ac_res" >&6; }
8889else
8890  # Is the header compilable?
8891{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8892echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8893cat >conftest.$ac_ext <<_ACEOF
8894/* confdefs.h.  */
8895_ACEOF
8896cat confdefs.h >>conftest.$ac_ext
8897cat >>conftest.$ac_ext <<_ACEOF
8898/* end confdefs.h.  */
8899$ac_includes_default
8900#include <$ac_header>
8901_ACEOF
8902rm -f conftest.$ac_objext
8903if { (ac_try="$ac_compile"
8904case "(($ac_try" in
8905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8906  *) ac_try_echo=$ac_try;;
8907esac
8908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8909  (eval "$ac_compile") 2>conftest.er1
8910  ac_status=$?
8911  grep -v '^ *+' conftest.er1 >conftest.err
8912  rm -f conftest.er1
8913  cat conftest.err >&5
8914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915  (exit $ac_status); } &&
8916	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8917  { (case "(($ac_try" in
8918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8919  *) ac_try_echo=$ac_try;;
8920esac
8921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8922  (eval "$ac_try") 2>&5
8923  ac_status=$?
8924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925  (exit $ac_status); }; } &&
8926	 { ac_try='test -s conftest.$ac_objext'
8927  { (case "(($ac_try" in
8928  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929  *) ac_try_echo=$ac_try;;
8930esac
8931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8932  (eval "$ac_try") 2>&5
8933  ac_status=$?
8934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935  (exit $ac_status); }; }; then
8936  ac_header_compiler=yes
8937else
8938  echo "$as_me: failed program was:" >&5
8939sed 's/^/| /' conftest.$ac_ext >&5
8940
8941	ac_header_compiler=no
8942fi
8943
8944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8945{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8946echo "${ECHO_T}$ac_header_compiler" >&6; }
8947
8948# Is the header present?
8949{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8950echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8951cat >conftest.$ac_ext <<_ACEOF
8952/* confdefs.h.  */
8953_ACEOF
8954cat confdefs.h >>conftest.$ac_ext
8955cat >>conftest.$ac_ext <<_ACEOF
8956/* end confdefs.h.  */
8957#include <$ac_header>
8958_ACEOF
8959if { (ac_try="$ac_cpp conftest.$ac_ext"
8960case "(($ac_try" in
8961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8962  *) ac_try_echo=$ac_try;;
8963esac
8964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8965  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8966  ac_status=$?
8967  grep -v '^ *+' conftest.er1 >conftest.err
8968  rm -f conftest.er1
8969  cat conftest.err >&5
8970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971  (exit $ac_status); } >/dev/null; then
8972  if test -s conftest.err; then
8973    ac_cpp_err=$ac_c_preproc_warn_flag
8974    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8975  else
8976    ac_cpp_err=
8977  fi
8978else
8979  ac_cpp_err=yes
8980fi
8981if test -z "$ac_cpp_err"; then
8982  ac_header_preproc=yes
8983else
8984  echo "$as_me: failed program was:" >&5
8985sed 's/^/| /' conftest.$ac_ext >&5
8986
8987  ac_header_preproc=no
8988fi
8989
8990rm -f conftest.err conftest.$ac_ext
8991{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8992echo "${ECHO_T}$ac_header_preproc" >&6; }
8993
8994# So?  What about this header?
8995case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8996  yes:no: )
8997    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8998echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8999    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9000echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9001    ac_header_preproc=yes
9002    ;;
9003  no:yes:* )
9004    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9005echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9006    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9007echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9008    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9009echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9010    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9011echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9012    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9013echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9014    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9015echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9016    ( cat <<\_ASBOX
9017## ----------------------------------- ##
9018## Report this to llvmbugs@cs.uiuc.edu ##
9019## ----------------------------------- ##
9020_ASBOX
9021     ) | sed "s/^/$as_me: WARNING:     /" >&2
9022    ;;
9023esac
9024{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9025echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9026if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9027  echo $ECHO_N "(cached) $ECHO_C" >&6
9028else
9029  eval "$as_ac_Header=\$ac_header_preproc"
9030fi
9031ac_res=`eval echo '${'$as_ac_Header'}'`
9032	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9033echo "${ECHO_T}$ac_res" >&6; }
9034
9035fi
9036if test `eval echo '${'$as_ac_Header'}'` = yes; then
9037  cat >>confdefs.h <<_ACEOF
9038#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9039_ACEOF
9040
9041fi
9042
9043done
9044
9045# Check whether --enable-ltdl-install was given.
9046if test "${enable_ltdl_install+set}" = set; then
9047  enableval=$enable_ltdl_install;
9048fi
9049
9050
9051
9052
9053if test x"${enable_ltdl_install-no}" != xno; then
9054  INSTALL_LTDL_TRUE=
9055  INSTALL_LTDL_FALSE='#'
9056else
9057  INSTALL_LTDL_TRUE='#'
9058  INSTALL_LTDL_FALSE=
9059fi
9060
9061
9062
9063if test x"${enable_ltdl_convenience-no}" != xno; then
9064  CONVENIENCE_LTDL_TRUE=
9065  CONVENIENCE_LTDL_FALSE='#'
9066else
9067  CONVENIENCE_LTDL_TRUE='#'
9068  CONVENIENCE_LTDL_FALSE=
9069fi
9070
9071
9072{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9073echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9074library_names_spec=
9075libname_spec='lib$name'
9076soname_spec=
9077shrext_cmds=".so"
9078postinstall_cmds=
9079postuninstall_cmds=
9080finish_cmds=
9081finish_eval=
9082shlibpath_var=
9083shlibpath_overrides_runpath=unknown
9084version_type=none
9085dynamic_linker="$host_os ld.so"
9086sys_lib_dlsearch_path_spec="/lib /usr/lib"
9087if test "$GCC" = yes; then
9088  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9089  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9090    # if the path contains ";" then we assume it to be the separator
9091    # otherwise default to the standard path separator (i.e. ":") - it is
9092    # assumed that no part of a normal pathname contains ";" but that should
9093    # okay in the real world where ";" in dirpaths is itself problematic.
9094    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9095  else
9096    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9097  fi
9098else
9099  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9100fi
9101need_lib_prefix=unknown
9102hardcode_into_libs=no
9103
9104# when you set need_version to no, make sure it does not cause -set_version
9105# flags to be left without arguments
9106need_version=unknown
9107
9108case $host_os in
9109aix3*)
9110  version_type=linux
9111  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9112  shlibpath_var=LIBPATH
9113
9114  # AIX 3 has no versioning support, so we append a major version to the name.
9115  soname_spec='${libname}${release}${shared_ext}$major'
9116  ;;
9117
9118aix4* | aix5*)
9119  version_type=linux
9120  need_lib_prefix=no
9121  need_version=no
9122  hardcode_into_libs=yes
9123  if test "$host_cpu" = ia64; then
9124    # AIX 5 supports IA64
9125    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9126    shlibpath_var=LD_LIBRARY_PATH
9127  else
9128    # With GCC up to 2.95.x, collect2 would create an import file
9129    # for dependence libraries.  The import file would start with
9130    # the line `#! .'.  This would cause the generated library to
9131    # depend on `.', always an invalid library.  This was fixed in
9132    # development snapshots of GCC prior to 3.0.
9133    case $host_os in
9134      aix4 | aix4.[01] | aix4.[01].*)
9135      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9136	   echo ' yes '
9137	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9138	:
9139      else
9140	can_build_shared=no
9141      fi
9142      ;;
9143    esac
9144    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9145    # soname into executable. Probably we can add versioning support to
9146    # collect2, so additional links can be useful in future.
9147    if test "$aix_use_runtimelinking" = yes; then
9148      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9149      # instead of lib<name>.a to let people know that these are not
9150      # typical AIX shared libraries.
9151      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9152    else
9153      # We preserve .a as extension for shared libraries through AIX4.2
9154      # and later when we are not doing run time linking.
9155      library_names_spec='${libname}${release}.a $libname.a'
9156      soname_spec='${libname}${release}${shared_ext}$major'
9157    fi
9158    shlibpath_var=LIBPATH
9159  fi
9160  ;;
9161
9162amigaos*)
9163  library_names_spec='$libname.ixlibrary $libname.a'
9164  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9165  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'
9166  ;;
9167
9168beos*)
9169  library_names_spec='${libname}${shared_ext}'
9170  dynamic_linker="$host_os ld.so"
9171  shlibpath_var=LIBRARY_PATH
9172  ;;
9173
9174bsdi[45]*)
9175  version_type=linux
9176  need_version=no
9177  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178  soname_spec='${libname}${release}${shared_ext}$major'
9179  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9180  shlibpath_var=LD_LIBRARY_PATH
9181  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9182  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9183  # the default ld.so.conf also contains /usr/contrib/lib and
9184  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9185  # libtool to hard-code these into programs
9186  ;;
9187
9188cygwin* | mingw* | pw32*)
9189  version_type=windows
9190  shrext_cmds=".dll"
9191  need_version=no
9192  need_lib_prefix=no
9193
9194  case $GCC,$host_os in
9195  yes,cygwin* | yes,mingw* | yes,pw32*)
9196    library_names_spec='$libname.dll.a'
9197    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9198    postinstall_cmds='base_file=`basename \${file}`~
9199      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9200      dldir=$destdir/`dirname \$dlpath`~
9201      test -d \$dldir || mkdir -p \$dldir~
9202      $install_prog $dir/$dlname \$dldir/$dlname~
9203      chmod a+x \$dldir/$dlname'
9204    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9205      dlpath=$dir/\$dldll~
9206       $rm \$dlpath'
9207    shlibpath_overrides_runpath=yes
9208
9209    case $host_os in
9210    cygwin*)
9211      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9212      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9213      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9214      ;;
9215    mingw*)
9216      # MinGW DLLs use traditional 'lib' prefix
9217      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9218      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9219      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9220        # It is most probably a Windows format PATH printed by
9221        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9222        # path with ; separators, and with drive letters. We can handle the
9223        # drive letters (cygwin fileutils understands them), so leave them,
9224        # especially as we might pass files found there to a mingw objdump,
9225        # which wouldn't understand a cygwinified path. Ahh.
9226        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9227      else
9228        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9229      fi
9230      ;;
9231    pw32*)
9232      # pw32 DLLs use 'pw' prefix rather than 'lib'
9233      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9234      ;;
9235    esac
9236    ;;
9237
9238  *)
9239    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9240    ;;
9241  esac
9242  dynamic_linker='Win32 ld.exe'
9243  # FIXME: first we should search . and the directory the executable is in
9244  shlibpath_var=PATH
9245  ;;
9246
9247darwin* | rhapsody*)
9248  dynamic_linker="$host_os dyld"
9249  version_type=darwin
9250  need_lib_prefix=no
9251  need_version=no
9252  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9253  soname_spec='${libname}${release}${major}$shared_ext'
9254  shlibpath_overrides_runpath=yes
9255  shlibpath_var=DYLD_LIBRARY_PATH
9256  shrext_cmds='.dylib'
9257  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9258  if test "$GCC" = yes; then
9259    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"`
9260  else
9261    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9262  fi
9263  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9264  ;;
9265
9266dgux*)
9267  version_type=linux
9268  need_lib_prefix=no
9269  need_version=no
9270  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9271  soname_spec='${libname}${release}${shared_ext}$major'
9272  shlibpath_var=LD_LIBRARY_PATH
9273  ;;
9274
9275freebsd1*)
9276  dynamic_linker=no
9277  ;;
9278
9279kfreebsd*-gnu)
9280  version_type=linux
9281  need_lib_prefix=no
9282  need_version=no
9283  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9284  soname_spec='${libname}${release}${shared_ext}$major'
9285  shlibpath_var=LD_LIBRARY_PATH
9286  shlibpath_overrides_runpath=no
9287  hardcode_into_libs=yes
9288  dynamic_linker='GNU ld.so'
9289  ;;
9290
9291freebsd* | dragonfly*)
9292  # DragonFly does not have aout.  When/if they implement a new
9293  # versioning mechanism, adjust this.
9294  if test -x /usr/bin/objformat; then
9295    objformat=`/usr/bin/objformat`
9296  else
9297    case $host_os in
9298    freebsd[123]*) objformat=aout ;;
9299    *) objformat=elf ;;
9300    esac
9301  fi
9302  version_type=freebsd-$objformat
9303  case $version_type in
9304    freebsd-elf*)
9305      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9306      need_version=no
9307      need_lib_prefix=no
9308      ;;
9309    freebsd-*)
9310      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9311      need_version=yes
9312      ;;
9313  esac
9314  shlibpath_var=LD_LIBRARY_PATH
9315  case $host_os in
9316  freebsd2*)
9317    shlibpath_overrides_runpath=yes
9318    ;;
9319  freebsd3.[01]* | freebsdelf3.[01]*)
9320    shlibpath_overrides_runpath=yes
9321    hardcode_into_libs=yes
9322    ;;
9323  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9324  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9325    shlibpath_overrides_runpath=no
9326    hardcode_into_libs=yes
9327    ;;
9328  freebsd*) # from 4.6 on
9329    shlibpath_overrides_runpath=yes
9330    hardcode_into_libs=yes
9331    ;;
9332  esac
9333  ;;
9334
9335gnu*)
9336  version_type=linux
9337  need_lib_prefix=no
9338  need_version=no
9339  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9340  soname_spec='${libname}${release}${shared_ext}$major'
9341  shlibpath_var=LD_LIBRARY_PATH
9342  hardcode_into_libs=yes
9343  ;;
9344
9345hpux9* | hpux10* | hpux11*)
9346  # Give a soname corresponding to the major version so that dld.sl refuses to
9347  # link against other versions.
9348  version_type=sunos
9349  need_lib_prefix=no
9350  need_version=no
9351  case $host_cpu in
9352  ia64*)
9353    shrext_cmds='.so'
9354    hardcode_into_libs=yes
9355    dynamic_linker="$host_os dld.so"
9356    shlibpath_var=LD_LIBRARY_PATH
9357    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9358    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9359    soname_spec='${libname}${release}${shared_ext}$major'
9360    if test "X$HPUX_IA64_MODE" = X32; then
9361      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9362    else
9363      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9364    fi
9365    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9366    ;;
9367   hppa*64*)
9368     shrext_cmds='.sl'
9369     hardcode_into_libs=yes
9370     dynamic_linker="$host_os dld.sl"
9371     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9372     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9373     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9374     soname_spec='${libname}${release}${shared_ext}$major'
9375     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9376     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9377     ;;
9378   *)
9379    shrext_cmds='.sl'
9380    dynamic_linker="$host_os dld.sl"
9381    shlibpath_var=SHLIB_PATH
9382    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9383    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9384    soname_spec='${libname}${release}${shared_ext}$major'
9385    ;;
9386  esac
9387  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9388  postinstall_cmds='chmod 555 $lib'
9389  ;;
9390
9391interix3*)
9392  version_type=linux
9393  need_lib_prefix=no
9394  need_version=no
9395  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9396  soname_spec='${libname}${release}${shared_ext}$major'
9397  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9398  shlibpath_var=LD_LIBRARY_PATH
9399  shlibpath_overrides_runpath=no
9400  hardcode_into_libs=yes
9401  ;;
9402
9403irix5* | irix6* | nonstopux*)
9404  case $host_os in
9405    nonstopux*) version_type=nonstopux ;;
9406    *)
9407	if test "$lt_cv_prog_gnu_ld" = yes; then
9408		version_type=linux
9409	else
9410		version_type=irix
9411	fi ;;
9412  esac
9413  need_lib_prefix=no
9414  need_version=no
9415  soname_spec='${libname}${release}${shared_ext}$major'
9416  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9417  case $host_os in
9418  irix5* | nonstopux*)
9419    libsuff= shlibsuff=
9420    ;;
9421  *)
9422    case $LD in # libtool.m4 will add one of these switches to LD
9423    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9424      libsuff= shlibsuff= libmagic=32-bit;;
9425    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9426      libsuff=32 shlibsuff=N32 libmagic=N32;;
9427    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9428      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9429    *) libsuff= shlibsuff= libmagic=never-match;;
9430    esac
9431    ;;
9432  esac
9433  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9434  shlibpath_overrides_runpath=no
9435  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9436  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9437  hardcode_into_libs=yes
9438  ;;
9439
9440# No shared lib support for Linux oldld, aout, or coff.
9441linux*oldld* | linux*aout* | linux*coff*)
9442  dynamic_linker=no
9443  ;;
9444
9445# This must be Linux ELF.
9446linux*)
9447  version_type=linux
9448  need_lib_prefix=no
9449  need_version=no
9450  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9451  soname_spec='${libname}${release}${shared_ext}$major'
9452  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9453  shlibpath_var=LD_LIBRARY_PATH
9454  shlibpath_overrides_runpath=no
9455  # This implies no fast_install, which is unacceptable.
9456  # Some rework will be needed to allow for fast_install
9457  # before this can be enabled.
9458  hardcode_into_libs=yes
9459
9460  # Append ld.so.conf contents to the search path
9461  if test -f /etc/ld.so.conf; then
9462    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' ' '`
9463    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9464  fi
9465
9466  # We used to test for /lib/ld.so.1 and disable shared libraries on
9467  # powerpc, because MkLinux only supported shared libraries with the
9468  # GNU dynamic linker.  Since this was broken with cross compilers,
9469  # most powerpc-linux boxes support dynamic linking these days and
9470  # people can always --disable-shared, the test was removed, and we
9471  # assume the GNU/Linux dynamic linker is in use.
9472  dynamic_linker='GNU/Linux ld.so'
9473  ;;
9474
9475knetbsd*-gnu)
9476  version_type=linux
9477  need_lib_prefix=no
9478  need_version=no
9479  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9480  soname_spec='${libname}${release}${shared_ext}$major'
9481  shlibpath_var=LD_LIBRARY_PATH
9482  shlibpath_overrides_runpath=no
9483  hardcode_into_libs=yes
9484  dynamic_linker='GNU ld.so'
9485  ;;
9486
9487netbsd*)
9488  version_type=sunos
9489  need_lib_prefix=no
9490  need_version=no
9491  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9492    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9493    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9494    dynamic_linker='NetBSD (a.out) ld.so'
9495  else
9496    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9497    soname_spec='${libname}${release}${shared_ext}$major'
9498    dynamic_linker='NetBSD ld.elf_so'
9499  fi
9500  shlibpath_var=LD_LIBRARY_PATH
9501  shlibpath_overrides_runpath=yes
9502  hardcode_into_libs=yes
9503  ;;
9504
9505newsos6)
9506  version_type=linux
9507  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9508  shlibpath_var=LD_LIBRARY_PATH
9509  shlibpath_overrides_runpath=yes
9510  ;;
9511
9512nto-qnx*)
9513  version_type=linux
9514  need_lib_prefix=no
9515  need_version=no
9516  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9517  soname_spec='${libname}${release}${shared_ext}$major'
9518  shlibpath_var=LD_LIBRARY_PATH
9519  shlibpath_overrides_runpath=yes
9520  ;;
9521
9522openbsd*)
9523  version_type=sunos
9524  sys_lib_dlsearch_path_spec="/usr/lib"
9525  need_lib_prefix=no
9526  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9527  case $host_os in
9528    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9529    *)                         need_version=no  ;;
9530  esac
9531  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9532  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9533  shlibpath_var=LD_LIBRARY_PATH
9534  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9535    case $host_os in
9536      openbsd2.[89] | openbsd2.[89].*)
9537	shlibpath_overrides_runpath=no
9538	;;
9539      *)
9540	shlibpath_overrides_runpath=yes
9541	;;
9542      esac
9543  else
9544    shlibpath_overrides_runpath=yes
9545  fi
9546  ;;
9547
9548os2*)
9549  libname_spec='$name'
9550  shrext_cmds=".dll"
9551  need_lib_prefix=no
9552  library_names_spec='$libname${shared_ext} $libname.a'
9553  dynamic_linker='OS/2 ld.exe'
9554  shlibpath_var=LIBPATH
9555  ;;
9556
9557osf3* | osf4* | osf5*)
9558  version_type=osf
9559  need_lib_prefix=no
9560  need_version=no
9561  soname_spec='${libname}${release}${shared_ext}$major'
9562  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9563  shlibpath_var=LD_LIBRARY_PATH
9564  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9565  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9566  ;;
9567
9568solaris*)
9569  version_type=linux
9570  need_lib_prefix=no
9571  need_version=no
9572  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9573  soname_spec='${libname}${release}${shared_ext}$major'
9574  shlibpath_var=LD_LIBRARY_PATH
9575  shlibpath_overrides_runpath=yes
9576  hardcode_into_libs=yes
9577  # ldd complains unless libraries are executable
9578  postinstall_cmds='chmod +x $lib'
9579  ;;
9580
9581sunos4*)
9582  version_type=sunos
9583  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9584  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9585  shlibpath_var=LD_LIBRARY_PATH
9586  shlibpath_overrides_runpath=yes
9587  if test "$with_gnu_ld" = yes; then
9588    need_lib_prefix=no
9589  fi
9590  need_version=yes
9591  ;;
9592
9593sysv4 | sysv4.3*)
9594  version_type=linux
9595  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9596  soname_spec='${libname}${release}${shared_ext}$major'
9597  shlibpath_var=LD_LIBRARY_PATH
9598  case $host_vendor in
9599    sni)
9600      shlibpath_overrides_runpath=no
9601      need_lib_prefix=no
9602      export_dynamic_flag_spec='${wl}-Blargedynsym'
9603      runpath_var=LD_RUN_PATH
9604      ;;
9605    siemens)
9606      need_lib_prefix=no
9607      ;;
9608    motorola)
9609      need_lib_prefix=no
9610      need_version=no
9611      shlibpath_overrides_runpath=no
9612      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9613      ;;
9614  esac
9615  ;;
9616
9617sysv4*MP*)
9618  if test -d /usr/nec ;then
9619    version_type=linux
9620    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9621    soname_spec='$libname${shared_ext}.$major'
9622    shlibpath_var=LD_LIBRARY_PATH
9623  fi
9624  ;;
9625
9626sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9627  version_type=freebsd-elf
9628  need_lib_prefix=no
9629  need_version=no
9630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9631  soname_spec='${libname}${release}${shared_ext}$major'
9632  shlibpath_var=LD_LIBRARY_PATH
9633  hardcode_into_libs=yes
9634  if test "$with_gnu_ld" = yes; then
9635    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9636    shlibpath_overrides_runpath=no
9637  else
9638    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9639    shlibpath_overrides_runpath=yes
9640    case $host_os in
9641      sco3.2v5*)
9642        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9643	;;
9644    esac
9645  fi
9646  sys_lib_dlsearch_path_spec='/usr/lib'
9647  ;;
9648
9649uts4*)
9650  version_type=linux
9651  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9652  soname_spec='${libname}${release}${shared_ext}$major'
9653  shlibpath_var=LD_LIBRARY_PATH
9654  ;;
9655
9656*)
9657  dynamic_linker=no
9658  ;;
9659esac
9660{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9661echo "${ECHO_T}$dynamic_linker" >&6; }
9662test "$dynamic_linker" = no && can_build_shared=no
9663
9664variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9665if test "$GCC" = yes; then
9666  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9667fi
9668
9669
9670{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9671echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9672if test "${libltdl_cv_shlibext+set}" = set; then
9673  echo $ECHO_N "(cached) $ECHO_C" >&6
9674else
9675
9676module=yes
9677eval libltdl_cv_shlibext=$shrext_cmds
9678
9679fi
9680{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9681echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9682if test -n "$libltdl_cv_shlibext"; then
9683
9684cat >>confdefs.h <<_ACEOF
9685#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9686_ACEOF
9687
9688fi
9689
9690
9691{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9692echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9693if test "${libltdl_cv_shlibpath_var+set}" = set; then
9694  echo $ECHO_N "(cached) $ECHO_C" >&6
9695else
9696  libltdl_cv_shlibpath_var="$shlibpath_var"
9697fi
9698{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9699echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9700if test -n "$libltdl_cv_shlibpath_var"; then
9701
9702cat >>confdefs.h <<_ACEOF
9703#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9704_ACEOF
9705
9706fi
9707
9708
9709{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9710echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9711if test "${libltdl_cv_sys_search_path+set}" = set; then
9712  echo $ECHO_N "(cached) $ECHO_C" >&6
9713else
9714  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9715fi
9716{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9717echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9718if test -n "$libltdl_cv_sys_search_path"; then
9719  sys_search_path=
9720  for dir in $libltdl_cv_sys_search_path; do
9721    if test -z "$sys_search_path"; then
9722      sys_search_path="$dir"
9723    else
9724      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9725    fi
9726  done
9727
9728cat >>confdefs.h <<_ACEOF
9729#define LTDL_SYSSEARCHPATH "$sys_search_path"
9730_ACEOF
9731
9732fi
9733
9734{ echo "$as_me:$LINENO: checking for objdir" >&5
9735echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9736if test "${libltdl_cv_objdir+set}" = set; then
9737  echo $ECHO_N "(cached) $ECHO_C" >&6
9738else
9739  libltdl_cv_objdir="$objdir"
9740  if test -n "$objdir"; then
9741    :
9742  else
9743    rm -f .libs 2>/dev/null
9744    mkdir .libs 2>/dev/null
9745    if test -d .libs; then
9746      libltdl_cv_objdir=.libs
9747    else
9748      # MS-DOS does not allow filenames that begin with a dot.
9749      libltdl_cv_objdir=_libs
9750    fi
9751  rmdir .libs 2>/dev/null
9752  fi
9753
9754fi
9755{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9756echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9757
9758cat >>confdefs.h <<_ACEOF
9759#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9760_ACEOF
9761
9762
9763
9764
9765
9766
9767# Check for command to grab the raw symbol name followed by C symbol from nm.
9768{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9769echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9770if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9771  echo $ECHO_N "(cached) $ECHO_C" >&6
9772else
9773
9774# These are sane defaults that work on at least a few old systems.
9775# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9776
9777# Character class describing NM global symbol codes.
9778symcode='[BCDEGRST]'
9779
9780# Regexp to match symbols that can be accessed directly from C.
9781sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9782
9783# Transform an extracted symbol line into a proper C declaration
9784lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9785
9786# Transform an extracted symbol line into symbol name and symbol address
9787lt_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'"
9788
9789# Define system-specific variables.
9790case $host_os in
9791aix*)
9792  symcode='[BCDT]'
9793  ;;
9794cygwin* | mingw* | pw32*)
9795  symcode='[ABCDGISTW]'
9796  ;;
9797hpux*) # Its linker distinguishes data from code symbols
9798  if test "$host_cpu" = ia64; then
9799    symcode='[ABCDEGRST]'
9800  fi
9801  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9802  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'"
9803  ;;
9804linux*)
9805  if test "$host_cpu" = ia64; then
9806    symcode='[ABCDGIRSTW]'
9807    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9808    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'"
9809  fi
9810  ;;
9811irix* | nonstopux*)
9812  symcode='[BCDEGRST]'
9813  ;;
9814osf*)
9815  symcode='[BCDEGQRST]'
9816  ;;
9817solaris*)
9818  symcode='[BDRT]'
9819  ;;
9820sco3.2v5*)
9821  symcode='[DT]'
9822  ;;
9823sysv4.2uw2*)
9824  symcode='[DT]'
9825  ;;
9826sysv5* | sco5v6* | unixware* | OpenUNIX*)
9827  symcode='[ABDT]'
9828  ;;
9829sysv4)
9830  symcode='[DFNSTU]'
9831  ;;
9832esac
9833
9834# Handle CRLF in mingw tool chain
9835opt_cr=
9836case $build_os in
9837mingw*)
9838  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9839  ;;
9840esac
9841
9842# If we're using GNU nm, then use its standard symbol codes.
9843case `$NM -V 2>&1` in
9844*GNU* | *'with BFD'*)
9845  symcode='[ABCDGIRSTW]' ;;
9846esac
9847
9848# Try without a prefix undercore, then with it.
9849for ac_symprfx in "" "_"; do
9850
9851  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9852  symxfrm="\\1 $ac_symprfx\\2 \\2"
9853
9854  # Write the raw and C identifiers.
9855  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9856
9857  # Check to see that the pipe works correctly.
9858  pipe_works=no
9859
9860  rm -f conftest*
9861  cat > conftest.$ac_ext <<EOF
9862#ifdef __cplusplus
9863extern "C" {
9864#endif
9865char nm_test_var;
9866void nm_test_func(){}
9867#ifdef __cplusplus
9868}
9869#endif
9870int main(){nm_test_var='a';nm_test_func();return(0);}
9871EOF
9872
9873  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9874  (eval $ac_compile) 2>&5
9875  ac_status=$?
9876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877  (exit $ac_status); }; then
9878    # Now try to grab the symbols.
9879    nlist=conftest.nm
9880    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9881  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9882  ac_status=$?
9883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884  (exit $ac_status); } && test -s "$nlist"; then
9885      # Try sorting and uniquifying the output.
9886      if sort "$nlist" | uniq > "$nlist"T; then
9887	mv -f "$nlist"T "$nlist"
9888      else
9889	rm -f "$nlist"T
9890      fi
9891
9892      # Make sure that we snagged all the symbols we need.
9893      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9894	if grep ' nm_test_func$' "$nlist" >/dev/null; then
9895	  cat <<EOF > conftest.$ac_ext
9896#ifdef __cplusplus
9897extern "C" {
9898#endif
9899
9900EOF
9901	  # Now generate the symbol file.
9902	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9903
9904	  cat <<EOF >> conftest.$ac_ext
9905#if defined (__STDC__) && __STDC__
9906# define lt_ptr_t void *
9907#else
9908# define lt_ptr_t char *
9909# define const
9910#endif
9911
9912/* The mapping between symbol names and symbols. */
9913const struct {
9914  const char *name;
9915  lt_ptr_t address;
9916}
9917lt_preloaded_symbols[] =
9918{
9919EOF
9920	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9921	  cat <<\EOF >> conftest.$ac_ext
9922  {0, (lt_ptr_t) 0}
9923};
9924
9925#ifdef __cplusplus
9926}
9927#endif
9928EOF
9929	  # Now try linking the two files.
9930	  mv conftest.$ac_objext conftstm.$ac_objext
9931	  lt_save_LIBS="$LIBS"
9932	  lt_save_CFLAGS="$CFLAGS"
9933	  LIBS="conftstm.$ac_objext"
9934	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9935	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9936  (eval $ac_link) 2>&5
9937  ac_status=$?
9938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9940	    pipe_works=yes
9941	  fi
9942	  LIBS="$lt_save_LIBS"
9943	  CFLAGS="$lt_save_CFLAGS"
9944	else
9945	  echo "cannot find nm_test_func in $nlist" >&5
9946	fi
9947      else
9948	echo "cannot find nm_test_var in $nlist" >&5
9949      fi
9950    else
9951      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9952    fi
9953  else
9954    echo "$progname: failed program was:" >&5
9955    cat conftest.$ac_ext >&5
9956  fi
9957  rm -f conftest* conftst*
9958
9959  # Do not use the global_symbol_pipe unless it works.
9960  if test "$pipe_works" = yes; then
9961    break
9962  else
9963    lt_cv_sys_global_symbol_pipe=
9964  fi
9965done
9966
9967fi
9968
9969if test -z "$lt_cv_sys_global_symbol_pipe"; then
9970  lt_cv_sys_global_symbol_to_cdecl=
9971fi
9972if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9973  { echo "$as_me:$LINENO: result: failed" >&5
9974echo "${ECHO_T}failed" >&6; }
9975else
9976  { echo "$as_me:$LINENO: result: ok" >&5
9977echo "${ECHO_T}ok" >&6; }
9978fi
9979
9980
9981{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9982echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9983if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9984  echo $ECHO_N "(cached) $ECHO_C" >&6
9985else
9986  if test -n "$lt_cv_sys_global_symbol_pipe"; then
9987    libltdl_cv_preloaded_symbols=yes
9988  else
9989    libltdl_cv_preloaded_symbols=no
9990  fi
9991
9992fi
9993{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9994echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9995if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9996
9997cat >>confdefs.h <<\_ACEOF
9998#define HAVE_PRELOADED_SYMBOLS 1
9999_ACEOF
10000
10001fi
10002
10003LIBADD_DL=
10004
10005ac_ext=c
10006ac_cpp='$CPP $CPPFLAGS'
10007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10009ac_compiler_gnu=$ac_cv_c_compiler_gnu
10010
10011
10012{ echo "$as_me:$LINENO: checking for shl_load" >&5
10013echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10014if test "${ac_cv_func_shl_load+set}" = set; then
10015  echo $ECHO_N "(cached) $ECHO_C" >&6
10016else
10017  cat >conftest.$ac_ext <<_ACEOF
10018/* confdefs.h.  */
10019_ACEOF
10020cat confdefs.h >>conftest.$ac_ext
10021cat >>conftest.$ac_ext <<_ACEOF
10022/* end confdefs.h.  */
10023/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10024   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10025#define shl_load innocuous_shl_load
10026
10027/* System header to define __stub macros and hopefully few prototypes,
10028    which can conflict with char shl_load (); below.
10029    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10030    <limits.h> exists even on freestanding compilers.  */
10031
10032#ifdef __STDC__
10033# include <limits.h>
10034#else
10035# include <assert.h>
10036#endif
10037
10038#undef shl_load
10039
10040/* Override any GCC internal prototype to avoid an error.
10041   Use char because int might match the return type of a GCC
10042   builtin and then its argument prototype would still apply.  */
10043#ifdef __cplusplus
10044extern "C"
10045#endif
10046char shl_load ();
10047/* The GNU C library defines this for functions which it implements
10048    to always fail with ENOSYS.  Some functions are actually named
10049    something starting with __ and the normal name is an alias.  */
10050#if defined __stub_shl_load || defined __stub___shl_load
10051choke me
10052#endif
10053
10054int
10055main ()
10056{
10057return shl_load ();
10058  ;
10059  return 0;
10060}
10061_ACEOF
10062rm -f conftest.$ac_objext conftest$ac_exeext
10063if { (ac_try="$ac_link"
10064case "(($ac_try" in
10065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066  *) ac_try_echo=$ac_try;;
10067esac
10068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069  (eval "$ac_link") 2>conftest.er1
10070  ac_status=$?
10071  grep -v '^ *+' conftest.er1 >conftest.err
10072  rm -f conftest.er1
10073  cat conftest.err >&5
10074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075  (exit $ac_status); } &&
10076	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10077  { (case "(($ac_try" in
10078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10079  *) ac_try_echo=$ac_try;;
10080esac
10081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10082  (eval "$ac_try") 2>&5
10083  ac_status=$?
10084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085  (exit $ac_status); }; } &&
10086	 { ac_try='test -s conftest$ac_exeext'
10087  { (case "(($ac_try" in
10088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089  *) ac_try_echo=$ac_try;;
10090esac
10091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092  (eval "$ac_try") 2>&5
10093  ac_status=$?
10094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095  (exit $ac_status); }; }; then
10096  ac_cv_func_shl_load=yes
10097else
10098  echo "$as_me: failed program was:" >&5
10099sed 's/^/| /' conftest.$ac_ext >&5
10100
10101	ac_cv_func_shl_load=no
10102fi
10103
10104rm -f core conftest.err conftest.$ac_objext \
10105      conftest$ac_exeext conftest.$ac_ext
10106fi
10107{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10108echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10109if test $ac_cv_func_shl_load = yes; then
10110
10111cat >>confdefs.h <<\_ACEOF
10112#define HAVE_SHL_LOAD 1
10113_ACEOF
10114
10115else
10116  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10117echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10118if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10119  echo $ECHO_N "(cached) $ECHO_C" >&6
10120else
10121  ac_check_lib_save_LIBS=$LIBS
10122LIBS="-ldld  $LIBS"
10123cat >conftest.$ac_ext <<_ACEOF
10124/* confdefs.h.  */
10125_ACEOF
10126cat confdefs.h >>conftest.$ac_ext
10127cat >>conftest.$ac_ext <<_ACEOF
10128/* end confdefs.h.  */
10129
10130/* Override any GCC internal prototype to avoid an error.
10131   Use char because int might match the return type of a GCC
10132   builtin and then its argument prototype would still apply.  */
10133#ifdef __cplusplus
10134extern "C"
10135#endif
10136char shl_load ();
10137int
10138main ()
10139{
10140return shl_load ();
10141  ;
10142  return 0;
10143}
10144_ACEOF
10145rm -f conftest.$ac_objext conftest$ac_exeext
10146if { (ac_try="$ac_link"
10147case "(($ac_try" in
10148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10149  *) ac_try_echo=$ac_try;;
10150esac
10151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10152  (eval "$ac_link") 2>conftest.er1
10153  ac_status=$?
10154  grep -v '^ *+' conftest.er1 >conftest.err
10155  rm -f conftest.er1
10156  cat conftest.err >&5
10157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158  (exit $ac_status); } &&
10159	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10160  { (case "(($ac_try" in
10161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162  *) ac_try_echo=$ac_try;;
10163esac
10164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165  (eval "$ac_try") 2>&5
10166  ac_status=$?
10167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168  (exit $ac_status); }; } &&
10169	 { ac_try='test -s conftest$ac_exeext'
10170  { (case "(($ac_try" in
10171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172  *) ac_try_echo=$ac_try;;
10173esac
10174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175  (eval "$ac_try") 2>&5
10176  ac_status=$?
10177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178  (exit $ac_status); }; }; then
10179  ac_cv_lib_dld_shl_load=yes
10180else
10181  echo "$as_me: failed program was:" >&5
10182sed 's/^/| /' conftest.$ac_ext >&5
10183
10184	ac_cv_lib_dld_shl_load=no
10185fi
10186
10187rm -f core conftest.err conftest.$ac_objext \
10188      conftest$ac_exeext conftest.$ac_ext
10189LIBS=$ac_check_lib_save_LIBS
10190fi
10191{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10192echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10193if test $ac_cv_lib_dld_shl_load = yes; then
10194
10195cat >>confdefs.h <<\_ACEOF
10196#define HAVE_SHL_LOAD 1
10197_ACEOF
10198
10199	LIBADD_DL="$LIBADD_DL -ldld"
10200else
10201  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10202echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10203if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10204  echo $ECHO_N "(cached) $ECHO_C" >&6
10205else
10206  ac_check_lib_save_LIBS=$LIBS
10207LIBS="-ldl  $LIBS"
10208cat >conftest.$ac_ext <<_ACEOF
10209/* confdefs.h.  */
10210_ACEOF
10211cat confdefs.h >>conftest.$ac_ext
10212cat >>conftest.$ac_ext <<_ACEOF
10213/* end confdefs.h.  */
10214
10215/* Override any GCC internal prototype to avoid an error.
10216   Use char because int might match the return type of a GCC
10217   builtin and then its argument prototype would still apply.  */
10218#ifdef __cplusplus
10219extern "C"
10220#endif
10221char dlopen ();
10222int
10223main ()
10224{
10225return dlopen ();
10226  ;
10227  return 0;
10228}
10229_ACEOF
10230rm -f conftest.$ac_objext conftest$ac_exeext
10231if { (ac_try="$ac_link"
10232case "(($ac_try" in
10233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234  *) ac_try_echo=$ac_try;;
10235esac
10236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237  (eval "$ac_link") 2>conftest.er1
10238  ac_status=$?
10239  grep -v '^ *+' conftest.er1 >conftest.err
10240  rm -f conftest.er1
10241  cat conftest.err >&5
10242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243  (exit $ac_status); } &&
10244	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10245  { (case "(($ac_try" in
10246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247  *) ac_try_echo=$ac_try;;
10248esac
10249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250  (eval "$ac_try") 2>&5
10251  ac_status=$?
10252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253  (exit $ac_status); }; } &&
10254	 { ac_try='test -s conftest$ac_exeext'
10255  { (case "(($ac_try" in
10256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257  *) ac_try_echo=$ac_try;;
10258esac
10259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260  (eval "$ac_try") 2>&5
10261  ac_status=$?
10262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263  (exit $ac_status); }; }; then
10264  ac_cv_lib_dl_dlopen=yes
10265else
10266  echo "$as_me: failed program was:" >&5
10267sed 's/^/| /' conftest.$ac_ext >&5
10268
10269	ac_cv_lib_dl_dlopen=no
10270fi
10271
10272rm -f core conftest.err conftest.$ac_objext \
10273      conftest$ac_exeext conftest.$ac_ext
10274LIBS=$ac_check_lib_save_LIBS
10275fi
10276{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10277echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10278if test $ac_cv_lib_dl_dlopen = yes; then
10279
10280cat >>confdefs.h <<\_ACEOF
10281#define HAVE_LIBDL 1
10282_ACEOF
10283
10284	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10285else
10286  cat >conftest.$ac_ext <<_ACEOF
10287/* confdefs.h.  */
10288_ACEOF
10289cat confdefs.h >>conftest.$ac_ext
10290cat >>conftest.$ac_ext <<_ACEOF
10291/* end confdefs.h.  */
10292#if HAVE_DLFCN_H
10293#  include <dlfcn.h>
10294#endif
10295
10296int
10297main ()
10298{
10299dlopen(0, 0);
10300  ;
10301  return 0;
10302}
10303_ACEOF
10304rm -f conftest.$ac_objext conftest$ac_exeext
10305if { (ac_try="$ac_link"
10306case "(($ac_try" in
10307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10308  *) ac_try_echo=$ac_try;;
10309esac
10310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10311  (eval "$ac_link") 2>conftest.er1
10312  ac_status=$?
10313  grep -v '^ *+' conftest.er1 >conftest.err
10314  rm -f conftest.er1
10315  cat conftest.err >&5
10316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317  (exit $ac_status); } &&
10318	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10319  { (case "(($ac_try" in
10320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321  *) ac_try_echo=$ac_try;;
10322esac
10323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10324  (eval "$ac_try") 2>&5
10325  ac_status=$?
10326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327  (exit $ac_status); }; } &&
10328	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10338
10339cat >>confdefs.h <<\_ACEOF
10340#define HAVE_LIBDL 1
10341_ACEOF
10342 libltdl_cv_func_dlopen="yes"
10343else
10344  echo "$as_me: failed program was:" >&5
10345sed 's/^/| /' conftest.$ac_ext >&5
10346
10347	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10348echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10349if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10350  echo $ECHO_N "(cached) $ECHO_C" >&6
10351else
10352  ac_check_lib_save_LIBS=$LIBS
10353LIBS="-lsvld  $LIBS"
10354cat >conftest.$ac_ext <<_ACEOF
10355/* confdefs.h.  */
10356_ACEOF
10357cat confdefs.h >>conftest.$ac_ext
10358cat >>conftest.$ac_ext <<_ACEOF
10359/* end confdefs.h.  */
10360
10361/* Override any GCC internal prototype to avoid an error.
10362   Use char because int might match the return type of a GCC
10363   builtin and then its argument prototype would still apply.  */
10364#ifdef __cplusplus
10365extern "C"
10366#endif
10367char dlopen ();
10368int
10369main ()
10370{
10371return dlopen ();
10372  ;
10373  return 0;
10374}
10375_ACEOF
10376rm -f conftest.$ac_objext conftest$ac_exeext
10377if { (ac_try="$ac_link"
10378case "(($ac_try" in
10379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380  *) ac_try_echo=$ac_try;;
10381esac
10382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383  (eval "$ac_link") 2>conftest.er1
10384  ac_status=$?
10385  grep -v '^ *+' conftest.er1 >conftest.err
10386  rm -f conftest.er1
10387  cat conftest.err >&5
10388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389  (exit $ac_status); } &&
10390	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10391  { (case "(($ac_try" in
10392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393  *) ac_try_echo=$ac_try;;
10394esac
10395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10396  (eval "$ac_try") 2>&5
10397  ac_status=$?
10398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399  (exit $ac_status); }; } &&
10400	 { ac_try='test -s conftest$ac_exeext'
10401  { (case "(($ac_try" in
10402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403  *) ac_try_echo=$ac_try;;
10404esac
10405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10406  (eval "$ac_try") 2>&5
10407  ac_status=$?
10408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409  (exit $ac_status); }; }; then
10410  ac_cv_lib_svld_dlopen=yes
10411else
10412  echo "$as_me: failed program was:" >&5
10413sed 's/^/| /' conftest.$ac_ext >&5
10414
10415	ac_cv_lib_svld_dlopen=no
10416fi
10417
10418rm -f core conftest.err conftest.$ac_objext \
10419      conftest$ac_exeext conftest.$ac_ext
10420LIBS=$ac_check_lib_save_LIBS
10421fi
10422{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10423echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10424if test $ac_cv_lib_svld_dlopen = yes; then
10425
10426cat >>confdefs.h <<\_ACEOF
10427#define HAVE_LIBDL 1
10428_ACEOF
10429
10430	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10431else
10432  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10433echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10434if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10435  echo $ECHO_N "(cached) $ECHO_C" >&6
10436else
10437  ac_check_lib_save_LIBS=$LIBS
10438LIBS="-ldld  $LIBS"
10439cat >conftest.$ac_ext <<_ACEOF
10440/* confdefs.h.  */
10441_ACEOF
10442cat confdefs.h >>conftest.$ac_ext
10443cat >>conftest.$ac_ext <<_ACEOF
10444/* end confdefs.h.  */
10445
10446/* Override any GCC internal prototype to avoid an error.
10447   Use char because int might match the return type of a GCC
10448   builtin and then its argument prototype would still apply.  */
10449#ifdef __cplusplus
10450extern "C"
10451#endif
10452char dld_link ();
10453int
10454main ()
10455{
10456return dld_link ();
10457  ;
10458  return 0;
10459}
10460_ACEOF
10461rm -f conftest.$ac_objext conftest$ac_exeext
10462if { (ac_try="$ac_link"
10463case "(($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_link") 2>conftest.er1
10469  ac_status=$?
10470  grep -v '^ *+' conftest.er1 >conftest.err
10471  rm -f conftest.er1
10472  cat conftest.err >&5
10473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474  (exit $ac_status); } &&
10475	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10476  { (case "(($ac_try" in
10477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10478  *) ac_try_echo=$ac_try;;
10479esac
10480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10481  (eval "$ac_try") 2>&5
10482  ac_status=$?
10483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484  (exit $ac_status); }; } &&
10485	 { ac_try='test -s conftest$ac_exeext'
10486  { (case "(($ac_try" in
10487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488  *) ac_try_echo=$ac_try;;
10489esac
10490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10491  (eval "$ac_try") 2>&5
10492  ac_status=$?
10493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494  (exit $ac_status); }; }; then
10495  ac_cv_lib_dld_dld_link=yes
10496else
10497  echo "$as_me: failed program was:" >&5
10498sed 's/^/| /' conftest.$ac_ext >&5
10499
10500	ac_cv_lib_dld_dld_link=no
10501fi
10502
10503rm -f core conftest.err conftest.$ac_objext \
10504      conftest$ac_exeext conftest.$ac_ext
10505LIBS=$ac_check_lib_save_LIBS
10506fi
10507{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10508echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10509if test $ac_cv_lib_dld_dld_link = yes; then
10510
10511cat >>confdefs.h <<\_ACEOF
10512#define HAVE_DLD 1
10513_ACEOF
10514
10515	 	LIBADD_DL="$LIBADD_DL -ldld"
10516else
10517  { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10518echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10519if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10520  echo $ECHO_N "(cached) $ECHO_C" >&6
10521else
10522  cat >conftest.$ac_ext <<_ACEOF
10523/* confdefs.h.  */
10524_ACEOF
10525cat confdefs.h >>conftest.$ac_ext
10526cat >>conftest.$ac_ext <<_ACEOF
10527/* end confdefs.h.  */
10528/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10529   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10530#define _dyld_func_lookup innocuous__dyld_func_lookup
10531
10532/* System header to define __stub macros and hopefully few prototypes,
10533    which can conflict with char _dyld_func_lookup (); below.
10534    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10535    <limits.h> exists even on freestanding compilers.  */
10536
10537#ifdef __STDC__
10538# include <limits.h>
10539#else
10540# include <assert.h>
10541#endif
10542
10543#undef _dyld_func_lookup
10544
10545/* Override any GCC internal prototype to avoid an error.
10546   Use char because int might match the return type of a GCC
10547   builtin and then its argument prototype would still apply.  */
10548#ifdef __cplusplus
10549extern "C"
10550#endif
10551char _dyld_func_lookup ();
10552/* The GNU C library defines this for functions which it implements
10553    to always fail with ENOSYS.  Some functions are actually named
10554    something starting with __ and the normal name is an alias.  */
10555#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10556choke me
10557#endif
10558
10559int
10560main ()
10561{
10562return _dyld_func_lookup ();
10563  ;
10564  return 0;
10565}
10566_ACEOF
10567rm -f conftest.$ac_objext conftest$ac_exeext
10568if { (ac_try="$ac_link"
10569case "(($ac_try" in
10570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10571  *) ac_try_echo=$ac_try;;
10572esac
10573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10574  (eval "$ac_link") 2>conftest.er1
10575  ac_status=$?
10576  grep -v '^ *+' conftest.er1 >conftest.err
10577  rm -f conftest.er1
10578  cat conftest.err >&5
10579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580  (exit $ac_status); } &&
10581	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10582  { (case "(($ac_try" in
10583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584  *) ac_try_echo=$ac_try;;
10585esac
10586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10587  (eval "$ac_try") 2>&5
10588  ac_status=$?
10589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590  (exit $ac_status); }; } &&
10591	 { ac_try='test -s conftest$ac_exeext'
10592  { (case "(($ac_try" in
10593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10594  *) ac_try_echo=$ac_try;;
10595esac
10596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10597  (eval "$ac_try") 2>&5
10598  ac_status=$?
10599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600  (exit $ac_status); }; }; then
10601  ac_cv_func__dyld_func_lookup=yes
10602else
10603  echo "$as_me: failed program was:" >&5
10604sed 's/^/| /' conftest.$ac_ext >&5
10605
10606	ac_cv_func__dyld_func_lookup=no
10607fi
10608
10609rm -f core conftest.err conftest.$ac_objext \
10610      conftest$ac_exeext conftest.$ac_ext
10611fi
10612{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10613echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10614if test $ac_cv_func__dyld_func_lookup = yes; then
10615
10616cat >>confdefs.h <<\_ACEOF
10617#define HAVE_DYLD 1
10618_ACEOF
10619
10620fi
10621
10622
10623fi
10624
10625
10626fi
10627
10628
10629fi
10630
10631rm -f core conftest.err conftest.$ac_objext \
10632      conftest$ac_exeext conftest.$ac_ext
10633
10634fi
10635
10636
10637fi
10638
10639
10640fi
10641
10642
10643if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10644then
10645  lt_save_LIBS="$LIBS"
10646  LIBS="$LIBS $LIBADD_DL"
10647
10648for ac_func in dlerror
10649do
10650as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10651{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10652echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10653if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10654  echo $ECHO_N "(cached) $ECHO_C" >&6
10655else
10656  cat >conftest.$ac_ext <<_ACEOF
10657/* confdefs.h.  */
10658_ACEOF
10659cat confdefs.h >>conftest.$ac_ext
10660cat >>conftest.$ac_ext <<_ACEOF
10661/* end confdefs.h.  */
10662/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10663   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10664#define $ac_func innocuous_$ac_func
10665
10666/* System header to define __stub macros and hopefully few prototypes,
10667    which can conflict with char $ac_func (); below.
10668    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10669    <limits.h> exists even on freestanding compilers.  */
10670
10671#ifdef __STDC__
10672# include <limits.h>
10673#else
10674# include <assert.h>
10675#endif
10676
10677#undef $ac_func
10678
10679/* Override any GCC internal prototype to avoid an error.
10680   Use char because int might match the return type of a GCC
10681   builtin and then its argument prototype would still apply.  */
10682#ifdef __cplusplus
10683extern "C"
10684#endif
10685char $ac_func ();
10686/* The GNU C library defines this for functions which it implements
10687    to always fail with ENOSYS.  Some functions are actually named
10688    something starting with __ and the normal name is an alias.  */
10689#if defined __stub_$ac_func || defined __stub___$ac_func
10690choke me
10691#endif
10692
10693int
10694main ()
10695{
10696return $ac_func ();
10697  ;
10698  return 0;
10699}
10700_ACEOF
10701rm -f conftest.$ac_objext conftest$ac_exeext
10702if { (ac_try="$ac_link"
10703case "(($ac_try" in
10704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705  *) ac_try_echo=$ac_try;;
10706esac
10707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10708  (eval "$ac_link") 2>conftest.er1
10709  ac_status=$?
10710  grep -v '^ *+' conftest.er1 >conftest.err
10711  rm -f conftest.er1
10712  cat conftest.err >&5
10713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714  (exit $ac_status); } &&
10715	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10716  { (case "(($ac_try" in
10717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10718  *) ac_try_echo=$ac_try;;
10719esac
10720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10721  (eval "$ac_try") 2>&5
10722  ac_status=$?
10723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724  (exit $ac_status); }; } &&
10725	 { ac_try='test -s conftest$ac_exeext'
10726  { (case "(($ac_try" in
10727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10728  *) ac_try_echo=$ac_try;;
10729esac
10730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10731  (eval "$ac_try") 2>&5
10732  ac_status=$?
10733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734  (exit $ac_status); }; }; then
10735  eval "$as_ac_var=yes"
10736else
10737  echo "$as_me: failed program was:" >&5
10738sed 's/^/| /' conftest.$ac_ext >&5
10739
10740	eval "$as_ac_var=no"
10741fi
10742
10743rm -f core conftest.err conftest.$ac_objext \
10744      conftest$ac_exeext conftest.$ac_ext
10745fi
10746ac_res=`eval echo '${'$as_ac_var'}'`
10747	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10748echo "${ECHO_T}$ac_res" >&6; }
10749if test `eval echo '${'$as_ac_var'}'` = yes; then
10750  cat >>confdefs.h <<_ACEOF
10751#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10752_ACEOF
10753
10754fi
10755done
10756
10757  LIBS="$lt_save_LIBS"
10758fi
10759ac_ext=c
10760ac_cpp='$CPP $CPPFLAGS'
10761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10763ac_compiler_gnu=$ac_cv_c_compiler_gnu
10764
10765
10766
10767{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10768echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10769if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10770  echo $ECHO_N "(cached) $ECHO_C" >&6
10771else
10772  ac_cv_sys_symbol_underscore=no
10773  cat > conftest.$ac_ext <<EOF
10774void nm_test_func(){}
10775int main(){nm_test_func;return 0;}
10776EOF
10777  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10778  (eval $ac_compile) 2>&5
10779  ac_status=$?
10780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781  (exit $ac_status); }; then
10782    # Now try to grab the symbols.
10783    ac_nlist=conftest.nm
10784    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10785  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10786  ac_status=$?
10787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788  (exit $ac_status); } && test -s "$ac_nlist"; then
10789      # See whether the symbols have a leading underscore.
10790      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10791        ac_cv_sys_symbol_underscore=yes
10792      else
10793        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10794	  :
10795        else
10796	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10797        fi
10798      fi
10799    else
10800      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10801    fi
10802  else
10803    echo "configure: failed program was:" >&5
10804    cat conftest.c >&5
10805  fi
10806  rm -rf conftest*
10807
10808fi
10809{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10810echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10811
10812
10813if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10814  if test x"$libltdl_cv_func_dlopen" = xyes ||
10815     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10816	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10817echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10818if test "${libltdl_cv_need_uscore+set}" = set; then
10819  echo $ECHO_N "(cached) $ECHO_C" >&6
10820else
10821  libltdl_cv_need_uscore=unknown
10822          save_LIBS="$LIBS"
10823          LIBS="$LIBS $LIBADD_DL"
10824	  if test "$cross_compiling" = yes; then :
10825  libltdl_cv_need_uscore=cross
10826else
10827  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10828  lt_status=$lt_dlunknown
10829  cat > conftest.$ac_ext <<EOF
10830#line 10830 "configure"
10831#include "confdefs.h"
10832
10833#if HAVE_DLFCN_H
10834#include <dlfcn.h>
10835#endif
10836
10837#include <stdio.h>
10838
10839#ifdef RTLD_GLOBAL
10840#  define LT_DLGLOBAL		RTLD_GLOBAL
10841#else
10842#  ifdef DL_GLOBAL
10843#    define LT_DLGLOBAL		DL_GLOBAL
10844#  else
10845#    define LT_DLGLOBAL		0
10846#  endif
10847#endif
10848
10849/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10850   find out it does not work in some platform. */
10851#ifndef LT_DLLAZY_OR_NOW
10852#  ifdef RTLD_LAZY
10853#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10854#  else
10855#    ifdef DL_LAZY
10856#      define LT_DLLAZY_OR_NOW		DL_LAZY
10857#    else
10858#      ifdef RTLD_NOW
10859#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10860#      else
10861#        ifdef DL_NOW
10862#          define LT_DLLAZY_OR_NOW	DL_NOW
10863#        else
10864#          define LT_DLLAZY_OR_NOW	0
10865#        endif
10866#      endif
10867#    endif
10868#  endif
10869#endif
10870
10871#ifdef __cplusplus
10872extern "C" void exit (int);
10873#endif
10874
10875void fnord() { int i=42;}
10876int main ()
10877{
10878  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10879  int status = $lt_dlunknown;
10880
10881  if (self)
10882    {
10883      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10884      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10885      /* dlclose (self); */
10886    }
10887  else
10888    puts (dlerror ());
10889
10890    exit (status);
10891}
10892EOF
10893  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10894  (eval $ac_link) 2>&5
10895  ac_status=$?
10896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10898    (./conftest; exit; ) >&5 2>/dev/null
10899    lt_status=$?
10900    case x$lt_status in
10901      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10902      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10903      x$lt_dlunknown|x*)  ;;
10904    esac
10905  else :
10906    # compilation failed
10907
10908  fi
10909fi
10910rm -fr conftest*
10911
10912	  LIBS="$save_LIBS"
10913
10914fi
10915{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10916echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10917  fi
10918fi
10919
10920if test x"$libltdl_cv_need_uscore" = xyes; then
10921
10922cat >>confdefs.h <<\_ACEOF
10923#define NEED_USCORE 1
10924_ACEOF
10925
10926fi
10927
10928
10929{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10930echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10931if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10932  echo $ECHO_N "(cached) $ECHO_C" >&6
10933else
10934  # PORTME does your system automatically load deplibs for dlopen?
10935  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10936  # For now, we just catch OSes we know something about -- in the
10937  # future, we'll try test this programmatically.
10938  libltdl_cv_sys_dlopen_deplibs=unknown
10939  case "$host_os" in
10940  aix3*|aix4.1.*|aix4.2.*)
10941    # Unknown whether this is true for these versions of AIX, but
10942    # we want this `case' here to explicitly catch those versions.
10943    libltdl_cv_sys_dlopen_deplibs=unknown
10944    ;;
10945  aix[45]*)
10946    libltdl_cv_sys_dlopen_deplibs=yes
10947    ;;
10948  darwin*)
10949    # Assuming the user has installed a libdl from somewhere, this is true
10950    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10951    libltdl_cv_sys_dlopen_deplibs=yes
10952    ;;
10953  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10954    # GNU and its variants, using gnu ld.so (Glibc)
10955    libltdl_cv_sys_dlopen_deplibs=yes
10956    ;;
10957  hpux10*|hpux11*)
10958    libltdl_cv_sys_dlopen_deplibs=yes
10959    ;;
10960  interix*)
10961    libltdl_cv_sys_dlopen_deplibs=yes
10962    ;;
10963  irix[12345]*|irix6.[01]*)
10964    # Catch all versions of IRIX before 6.2, and indicate that we don't
10965    # know how it worked for any of those versions.
10966    libltdl_cv_sys_dlopen_deplibs=unknown
10967    ;;
10968  irix*)
10969    # The case above catches anything before 6.2, and it's known that
10970    # at 6.2 and later dlopen does load deplibs.
10971    libltdl_cv_sys_dlopen_deplibs=yes
10972    ;;
10973  netbsd*)
10974    libltdl_cv_sys_dlopen_deplibs=yes
10975    ;;
10976  openbsd*)
10977    libltdl_cv_sys_dlopen_deplibs=yes
10978    ;;
10979  osf[1234]*)
10980    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10981    # it did *not* use an RPATH in a shared library to find objects the
10982    # library depends on, so we explictly say `no'.
10983    libltdl_cv_sys_dlopen_deplibs=no
10984    ;;
10985  osf5.0|osf5.0a|osf5.1)
10986    # dlopen *does* load deplibs and with the right loader patch applied
10987    # it even uses RPATH in a shared library to search for shared objects
10988    # that the library depends on, but there's no easy way to know if that
10989    # patch is installed.  Since this is the case, all we can really
10990    # say is unknown -- it depends on the patch being installed.  If
10991    # it is, this changes to `yes'.  Without it, it would be `no'.
10992    libltdl_cv_sys_dlopen_deplibs=unknown
10993    ;;
10994  osf*)
10995    # the two cases above should catch all versions of osf <= 5.1.  Read
10996    # the comments above for what we know about them.
10997    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10998    # is used to find them so we can finally say `yes'.
10999    libltdl_cv_sys_dlopen_deplibs=yes
11000    ;;
11001  solaris*)
11002    libltdl_cv_sys_dlopen_deplibs=yes
11003    ;;
11004  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11005    libltdl_cv_sys_dlopen_deplibs=yes
11006    ;;
11007  esac
11008
11009fi
11010{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11011echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11012if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11013
11014cat >>confdefs.h <<\_ACEOF
11015#define LTDL_DLOPEN_DEPLIBS 1
11016_ACEOF
11017
11018fi
11019
11020
11021for ac_header in argz.h
11022do
11023as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11024if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11025  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11028  echo $ECHO_N "(cached) $ECHO_C" >&6
11029fi
11030ac_res=`eval echo '${'$as_ac_Header'}'`
11031	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11032echo "${ECHO_T}$ac_res" >&6; }
11033else
11034  # Is the header compilable?
11035{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11036echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11037cat >conftest.$ac_ext <<_ACEOF
11038/* confdefs.h.  */
11039_ACEOF
11040cat confdefs.h >>conftest.$ac_ext
11041cat >>conftest.$ac_ext <<_ACEOF
11042/* end confdefs.h.  */
11043$ac_includes_default
11044#include <$ac_header>
11045_ACEOF
11046rm -f conftest.$ac_objext
11047if { (ac_try="$ac_compile"
11048case "(($ac_try" in
11049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050  *) ac_try_echo=$ac_try;;
11051esac
11052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11053  (eval "$ac_compile") 2>conftest.er1
11054  ac_status=$?
11055  grep -v '^ *+' conftest.er1 >conftest.err
11056  rm -f conftest.er1
11057  cat conftest.err >&5
11058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059  (exit $ac_status); } &&
11060	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11061  { (case "(($ac_try" in
11062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063  *) ac_try_echo=$ac_try;;
11064esac
11065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066  (eval "$ac_try") 2>&5
11067  ac_status=$?
11068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069  (exit $ac_status); }; } &&
11070	 { ac_try='test -s conftest.$ac_objext'
11071  { (case "(($ac_try" in
11072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073  *) ac_try_echo=$ac_try;;
11074esac
11075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076  (eval "$ac_try") 2>&5
11077  ac_status=$?
11078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079  (exit $ac_status); }; }; then
11080  ac_header_compiler=yes
11081else
11082  echo "$as_me: failed program was:" >&5
11083sed 's/^/| /' conftest.$ac_ext >&5
11084
11085	ac_header_compiler=no
11086fi
11087
11088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11089{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11090echo "${ECHO_T}$ac_header_compiler" >&6; }
11091
11092# Is the header present?
11093{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11094echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11095cat >conftest.$ac_ext <<_ACEOF
11096/* confdefs.h.  */
11097_ACEOF
11098cat confdefs.h >>conftest.$ac_ext
11099cat >>conftest.$ac_ext <<_ACEOF
11100/* end confdefs.h.  */
11101#include <$ac_header>
11102_ACEOF
11103if { (ac_try="$ac_cpp conftest.$ac_ext"
11104case "(($ac_try" in
11105  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106  *) ac_try_echo=$ac_try;;
11107esac
11108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11109  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11110  ac_status=$?
11111  grep -v '^ *+' conftest.er1 >conftest.err
11112  rm -f conftest.er1
11113  cat conftest.err >&5
11114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115  (exit $ac_status); } >/dev/null; then
11116  if test -s conftest.err; then
11117    ac_cpp_err=$ac_c_preproc_warn_flag
11118    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11119  else
11120    ac_cpp_err=
11121  fi
11122else
11123  ac_cpp_err=yes
11124fi
11125if test -z "$ac_cpp_err"; then
11126  ac_header_preproc=yes
11127else
11128  echo "$as_me: failed program was:" >&5
11129sed 's/^/| /' conftest.$ac_ext >&5
11130
11131  ac_header_preproc=no
11132fi
11133
11134rm -f conftest.err conftest.$ac_ext
11135{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11136echo "${ECHO_T}$ac_header_preproc" >&6; }
11137
11138# So?  What about this header?
11139case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11140  yes:no: )
11141    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11142echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11143    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11144echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11145    ac_header_preproc=yes
11146    ;;
11147  no:yes:* )
11148    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11149echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11150    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11151echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11152    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11153echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11154    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11155echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11156    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11157echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11158    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11159echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11160    ( cat <<\_ASBOX
11161## ----------------------------------- ##
11162## Report this to llvmbugs@cs.uiuc.edu ##
11163## ----------------------------------- ##
11164_ASBOX
11165     ) | sed "s/^/$as_me: WARNING:     /" >&2
11166    ;;
11167esac
11168{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11170if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11171  echo $ECHO_N "(cached) $ECHO_C" >&6
11172else
11173  eval "$as_ac_Header=\$ac_header_preproc"
11174fi
11175ac_res=`eval echo '${'$as_ac_Header'}'`
11176	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11177echo "${ECHO_T}$ac_res" >&6; }
11178
11179fi
11180if test `eval echo '${'$as_ac_Header'}'` = yes; then
11181  cat >>confdefs.h <<_ACEOF
11182#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11183_ACEOF
11184
11185fi
11186
11187done
11188
11189
11190{ echo "$as_me:$LINENO: checking for error_t" >&5
11191echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11192if test "${ac_cv_type_error_t+set}" = set; then
11193  echo $ECHO_N "(cached) $ECHO_C" >&6
11194else
11195  cat >conftest.$ac_ext <<_ACEOF
11196/* confdefs.h.  */
11197_ACEOF
11198cat confdefs.h >>conftest.$ac_ext
11199cat >>conftest.$ac_ext <<_ACEOF
11200/* end confdefs.h.  */
11201#if HAVE_ARGZ_H
11202#  include <argz.h>
11203#endif
11204
11205typedef error_t ac__type_new_;
11206int
11207main ()
11208{
11209if ((ac__type_new_ *) 0)
11210  return 0;
11211if (sizeof (ac__type_new_))
11212  return 0;
11213  ;
11214  return 0;
11215}
11216_ACEOF
11217rm -f conftest.$ac_objext
11218if { (ac_try="$ac_compile"
11219case "(($ac_try" in
11220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11221  *) ac_try_echo=$ac_try;;
11222esac
11223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11224  (eval "$ac_compile") 2>conftest.er1
11225  ac_status=$?
11226  grep -v '^ *+' conftest.er1 >conftest.err
11227  rm -f conftest.er1
11228  cat conftest.err >&5
11229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230  (exit $ac_status); } &&
11231	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11232  { (case "(($ac_try" in
11233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11234  *) ac_try_echo=$ac_try;;
11235esac
11236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11237  (eval "$ac_try") 2>&5
11238  ac_status=$?
11239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240  (exit $ac_status); }; } &&
11241	 { ac_try='test -s conftest.$ac_objext'
11242  { (case "(($ac_try" in
11243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11244  *) ac_try_echo=$ac_try;;
11245esac
11246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11247  (eval "$ac_try") 2>&5
11248  ac_status=$?
11249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250  (exit $ac_status); }; }; then
11251  ac_cv_type_error_t=yes
11252else
11253  echo "$as_me: failed program was:" >&5
11254sed 's/^/| /' conftest.$ac_ext >&5
11255
11256	ac_cv_type_error_t=no
11257fi
11258
11259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11260fi
11261{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11262echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11263if test $ac_cv_type_error_t = yes; then
11264
11265cat >>confdefs.h <<_ACEOF
11266#define HAVE_ERROR_T 1
11267_ACEOF
11268
11269
11270else
11271
11272cat >>confdefs.h <<\_ACEOF
11273#define error_t int
11274_ACEOF
11275
11276fi
11277
11278
11279
11280
11281
11282
11283
11284for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11285do
11286as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11287{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11288echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11289if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11290  echo $ECHO_N "(cached) $ECHO_C" >&6
11291else
11292  cat >conftest.$ac_ext <<_ACEOF
11293/* confdefs.h.  */
11294_ACEOF
11295cat confdefs.h >>conftest.$ac_ext
11296cat >>conftest.$ac_ext <<_ACEOF
11297/* end confdefs.h.  */
11298/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11299   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11300#define $ac_func innocuous_$ac_func
11301
11302/* System header to define __stub macros and hopefully few prototypes,
11303    which can conflict with char $ac_func (); below.
11304    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11305    <limits.h> exists even on freestanding compilers.  */
11306
11307#ifdef __STDC__
11308# include <limits.h>
11309#else
11310# include <assert.h>
11311#endif
11312
11313#undef $ac_func
11314
11315/* Override any GCC internal prototype to avoid an error.
11316   Use char because int might match the return type of a GCC
11317   builtin and then its argument prototype would still apply.  */
11318#ifdef __cplusplus
11319extern "C"
11320#endif
11321char $ac_func ();
11322/* The GNU C library defines this for functions which it implements
11323    to always fail with ENOSYS.  Some functions are actually named
11324    something starting with __ and the normal name is an alias.  */
11325#if defined __stub_$ac_func || defined __stub___$ac_func
11326choke me
11327#endif
11328
11329int
11330main ()
11331{
11332return $ac_func ();
11333  ;
11334  return 0;
11335}
11336_ACEOF
11337rm -f conftest.$ac_objext conftest$ac_exeext
11338if { (ac_try="$ac_link"
11339case "(($ac_try" in
11340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11341  *) ac_try_echo=$ac_try;;
11342esac
11343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11344  (eval "$ac_link") 2>conftest.er1
11345  ac_status=$?
11346  grep -v '^ *+' conftest.er1 >conftest.err
11347  rm -f conftest.er1
11348  cat conftest.err >&5
11349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350  (exit $ac_status); } &&
11351	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11352  { (case "(($ac_try" in
11353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354  *) ac_try_echo=$ac_try;;
11355esac
11356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11357  (eval "$ac_try") 2>&5
11358  ac_status=$?
11359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360  (exit $ac_status); }; } &&
11361	 { ac_try='test -s conftest$ac_exeext'
11362  { (case "(($ac_try" in
11363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364  *) ac_try_echo=$ac_try;;
11365esac
11366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11367  (eval "$ac_try") 2>&5
11368  ac_status=$?
11369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370  (exit $ac_status); }; }; then
11371  eval "$as_ac_var=yes"
11372else
11373  echo "$as_me: failed program was:" >&5
11374sed 's/^/| /' conftest.$ac_ext >&5
11375
11376	eval "$as_ac_var=no"
11377fi
11378
11379rm -f core conftest.err conftest.$ac_objext \
11380      conftest$ac_exeext conftest.$ac_ext
11381fi
11382ac_res=`eval echo '${'$as_ac_var'}'`
11383	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11384echo "${ECHO_T}$ac_res" >&6; }
11385if test `eval echo '${'$as_ac_var'}'` = yes; then
11386  cat >>confdefs.h <<_ACEOF
11387#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11388_ACEOF
11389
11390fi
11391done
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11421		  stdio.h unistd.h
11422do
11423as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11424if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11425  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11426echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11427if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11428  echo $ECHO_N "(cached) $ECHO_C" >&6
11429fi
11430ac_res=`eval echo '${'$as_ac_Header'}'`
11431	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11432echo "${ECHO_T}$ac_res" >&6; }
11433else
11434  # Is the header compilable?
11435{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11436echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11437cat >conftest.$ac_ext <<_ACEOF
11438/* confdefs.h.  */
11439_ACEOF
11440cat confdefs.h >>conftest.$ac_ext
11441cat >>conftest.$ac_ext <<_ACEOF
11442/* end confdefs.h.  */
11443$ac_includes_default
11444#include <$ac_header>
11445_ACEOF
11446rm -f conftest.$ac_objext
11447if { (ac_try="$ac_compile"
11448case "(($ac_try" in
11449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11450  *) ac_try_echo=$ac_try;;
11451esac
11452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11453  (eval "$ac_compile") 2>conftest.er1
11454  ac_status=$?
11455  grep -v '^ *+' conftest.er1 >conftest.err
11456  rm -f conftest.er1
11457  cat conftest.err >&5
11458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459  (exit $ac_status); } &&
11460	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11461  { (case "(($ac_try" in
11462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463  *) ac_try_echo=$ac_try;;
11464esac
11465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466  (eval "$ac_try") 2>&5
11467  ac_status=$?
11468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469  (exit $ac_status); }; } &&
11470	 { ac_try='test -s conftest.$ac_objext'
11471  { (case "(($ac_try" in
11472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11473  *) ac_try_echo=$ac_try;;
11474esac
11475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11476  (eval "$ac_try") 2>&5
11477  ac_status=$?
11478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479  (exit $ac_status); }; }; then
11480  ac_header_compiler=yes
11481else
11482  echo "$as_me: failed program was:" >&5
11483sed 's/^/| /' conftest.$ac_ext >&5
11484
11485	ac_header_compiler=no
11486fi
11487
11488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11489{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11490echo "${ECHO_T}$ac_header_compiler" >&6; }
11491
11492# Is the header present?
11493{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11494echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11495cat >conftest.$ac_ext <<_ACEOF
11496/* confdefs.h.  */
11497_ACEOF
11498cat confdefs.h >>conftest.$ac_ext
11499cat >>conftest.$ac_ext <<_ACEOF
11500/* end confdefs.h.  */
11501#include <$ac_header>
11502_ACEOF
11503if { (ac_try="$ac_cpp conftest.$ac_ext"
11504case "(($ac_try" in
11505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11506  *) ac_try_echo=$ac_try;;
11507esac
11508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11509  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11510  ac_status=$?
11511  grep -v '^ *+' conftest.er1 >conftest.err
11512  rm -f conftest.er1
11513  cat conftest.err >&5
11514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515  (exit $ac_status); } >/dev/null; then
11516  if test -s conftest.err; then
11517    ac_cpp_err=$ac_c_preproc_warn_flag
11518    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11519  else
11520    ac_cpp_err=
11521  fi
11522else
11523  ac_cpp_err=yes
11524fi
11525if test -z "$ac_cpp_err"; then
11526  ac_header_preproc=yes
11527else
11528  echo "$as_me: failed program was:" >&5
11529sed 's/^/| /' conftest.$ac_ext >&5
11530
11531  ac_header_preproc=no
11532fi
11533
11534rm -f conftest.err conftest.$ac_ext
11535{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11536echo "${ECHO_T}$ac_header_preproc" >&6; }
11537
11538# So?  What about this header?
11539case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11540  yes:no: )
11541    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11542echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11543    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11544echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11545    ac_header_preproc=yes
11546    ;;
11547  no:yes:* )
11548    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11549echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11550    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11551echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11552    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11553echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11554    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11555echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11556    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11557echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11558    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11559echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11560    ( cat <<\_ASBOX
11561## ----------------------------------- ##
11562## Report this to llvmbugs@cs.uiuc.edu ##
11563## ----------------------------------- ##
11564_ASBOX
11565     ) | sed "s/^/$as_me: WARNING:     /" >&2
11566    ;;
11567esac
11568{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11569echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11570if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11571  echo $ECHO_N "(cached) $ECHO_C" >&6
11572else
11573  eval "$as_ac_Header=\$ac_header_preproc"
11574fi
11575ac_res=`eval echo '${'$as_ac_Header'}'`
11576	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11577echo "${ECHO_T}$ac_res" >&6; }
11578
11579fi
11580if test `eval echo '${'$as_ac_Header'}'` = yes; then
11581  cat >>confdefs.h <<_ACEOF
11582#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11583_ACEOF
11584
11585fi
11586
11587done
11588
11589
11590
11591
11592
11593for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11594do
11595as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11596if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11597  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11598echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11599if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11600  echo $ECHO_N "(cached) $ECHO_C" >&6
11601fi
11602ac_res=`eval echo '${'$as_ac_Header'}'`
11603	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11604echo "${ECHO_T}$ac_res" >&6; }
11605else
11606  # Is the header compilable?
11607{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11608echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11609cat >conftest.$ac_ext <<_ACEOF
11610/* confdefs.h.  */
11611_ACEOF
11612cat confdefs.h >>conftest.$ac_ext
11613cat >>conftest.$ac_ext <<_ACEOF
11614/* end confdefs.h.  */
11615$ac_includes_default
11616#include <$ac_header>
11617_ACEOF
11618rm -f conftest.$ac_objext
11619if { (ac_try="$ac_compile"
11620case "(($ac_try" in
11621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11622  *) ac_try_echo=$ac_try;;
11623esac
11624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11625  (eval "$ac_compile") 2>conftest.er1
11626  ac_status=$?
11627  grep -v '^ *+' conftest.er1 >conftest.err
11628  rm -f conftest.er1
11629  cat conftest.err >&5
11630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631  (exit $ac_status); } &&
11632	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11633  { (case "(($ac_try" in
11634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635  *) ac_try_echo=$ac_try;;
11636esac
11637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11638  (eval "$ac_try") 2>&5
11639  ac_status=$?
11640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641  (exit $ac_status); }; } &&
11642	 { ac_try='test -s conftest.$ac_objext'
11643  { (case "(($ac_try" in
11644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11645  *) ac_try_echo=$ac_try;;
11646esac
11647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11648  (eval "$ac_try") 2>&5
11649  ac_status=$?
11650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651  (exit $ac_status); }; }; then
11652  ac_header_compiler=yes
11653else
11654  echo "$as_me: failed program was:" >&5
11655sed 's/^/| /' conftest.$ac_ext >&5
11656
11657	ac_header_compiler=no
11658fi
11659
11660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11661{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11662echo "${ECHO_T}$ac_header_compiler" >&6; }
11663
11664# Is the header present?
11665{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11666echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11667cat >conftest.$ac_ext <<_ACEOF
11668/* confdefs.h.  */
11669_ACEOF
11670cat confdefs.h >>conftest.$ac_ext
11671cat >>conftest.$ac_ext <<_ACEOF
11672/* end confdefs.h.  */
11673#include <$ac_header>
11674_ACEOF
11675if { (ac_try="$ac_cpp conftest.$ac_ext"
11676case "(($ac_try" in
11677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678  *) ac_try_echo=$ac_try;;
11679esac
11680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11681  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11682  ac_status=$?
11683  grep -v '^ *+' conftest.er1 >conftest.err
11684  rm -f conftest.er1
11685  cat conftest.err >&5
11686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687  (exit $ac_status); } >/dev/null; then
11688  if test -s conftest.err; then
11689    ac_cpp_err=$ac_c_preproc_warn_flag
11690    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11691  else
11692    ac_cpp_err=
11693  fi
11694else
11695  ac_cpp_err=yes
11696fi
11697if test -z "$ac_cpp_err"; then
11698  ac_header_preproc=yes
11699else
11700  echo "$as_me: failed program was:" >&5
11701sed 's/^/| /' conftest.$ac_ext >&5
11702
11703  ac_header_preproc=no
11704fi
11705
11706rm -f conftest.err conftest.$ac_ext
11707{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11708echo "${ECHO_T}$ac_header_preproc" >&6; }
11709
11710# So?  What about this header?
11711case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11712  yes:no: )
11713    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11714echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11715    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11716echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11717    ac_header_preproc=yes
11718    ;;
11719  no:yes:* )
11720    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11721echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11722    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11723echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11724    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11725echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11726    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11727echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11728    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11729echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11730    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11731echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11732    ( cat <<\_ASBOX
11733## ----------------------------------- ##
11734## Report this to llvmbugs@cs.uiuc.edu ##
11735## ----------------------------------- ##
11736_ASBOX
11737     ) | sed "s/^/$as_me: WARNING:     /" >&2
11738    ;;
11739esac
11740{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11741echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11743  echo $ECHO_N "(cached) $ECHO_C" >&6
11744else
11745  eval "$as_ac_Header=\$ac_header_preproc"
11746fi
11747ac_res=`eval echo '${'$as_ac_Header'}'`
11748	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11749echo "${ECHO_T}$ac_res" >&6; }
11750
11751fi
11752if test `eval echo '${'$as_ac_Header'}'` = yes; then
11753  cat >>confdefs.h <<_ACEOF
11754#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11755_ACEOF
11756
11757fi
11758
11759done
11760
11761
11762
11763for ac_header in string.h strings.h
11764do
11765as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11767  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11768echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11769if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11770  echo $ECHO_N "(cached) $ECHO_C" >&6
11771fi
11772ac_res=`eval echo '${'$as_ac_Header'}'`
11773	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11774echo "${ECHO_T}$ac_res" >&6; }
11775else
11776  # Is the header compilable?
11777{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11778echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11779cat >conftest.$ac_ext <<_ACEOF
11780/* confdefs.h.  */
11781_ACEOF
11782cat confdefs.h >>conftest.$ac_ext
11783cat >>conftest.$ac_ext <<_ACEOF
11784/* end confdefs.h.  */
11785$ac_includes_default
11786#include <$ac_header>
11787_ACEOF
11788rm -f conftest.$ac_objext
11789if { (ac_try="$ac_compile"
11790case "(($ac_try" in
11791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792  *) ac_try_echo=$ac_try;;
11793esac
11794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795  (eval "$ac_compile") 2>conftest.er1
11796  ac_status=$?
11797  grep -v '^ *+' conftest.er1 >conftest.err
11798  rm -f conftest.er1
11799  cat conftest.err >&5
11800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801  (exit $ac_status); } &&
11802	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11803  { (case "(($ac_try" in
11804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805  *) ac_try_echo=$ac_try;;
11806esac
11807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11808  (eval "$ac_try") 2>&5
11809  ac_status=$?
11810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811  (exit $ac_status); }; } &&
11812	 { ac_try='test -s conftest.$ac_objext'
11813  { (case "(($ac_try" in
11814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815  *) ac_try_echo=$ac_try;;
11816esac
11817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818  (eval "$ac_try") 2>&5
11819  ac_status=$?
11820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821  (exit $ac_status); }; }; then
11822  ac_header_compiler=yes
11823else
11824  echo "$as_me: failed program was:" >&5
11825sed 's/^/| /' conftest.$ac_ext >&5
11826
11827	ac_header_compiler=no
11828fi
11829
11830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11831{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11832echo "${ECHO_T}$ac_header_compiler" >&6; }
11833
11834# Is the header present?
11835{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11836echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11837cat >conftest.$ac_ext <<_ACEOF
11838/* confdefs.h.  */
11839_ACEOF
11840cat confdefs.h >>conftest.$ac_ext
11841cat >>conftest.$ac_ext <<_ACEOF
11842/* end confdefs.h.  */
11843#include <$ac_header>
11844_ACEOF
11845if { (ac_try="$ac_cpp conftest.$ac_ext"
11846case "(($ac_try" in
11847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848  *) ac_try_echo=$ac_try;;
11849esac
11850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11852  ac_status=$?
11853  grep -v '^ *+' conftest.er1 >conftest.err
11854  rm -f conftest.er1
11855  cat conftest.err >&5
11856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857  (exit $ac_status); } >/dev/null; then
11858  if test -s conftest.err; then
11859    ac_cpp_err=$ac_c_preproc_warn_flag
11860    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11861  else
11862    ac_cpp_err=
11863  fi
11864else
11865  ac_cpp_err=yes
11866fi
11867if test -z "$ac_cpp_err"; then
11868  ac_header_preproc=yes
11869else
11870  echo "$as_me: failed program was:" >&5
11871sed 's/^/| /' conftest.$ac_ext >&5
11872
11873  ac_header_preproc=no
11874fi
11875
11876rm -f conftest.err conftest.$ac_ext
11877{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11878echo "${ECHO_T}$ac_header_preproc" >&6; }
11879
11880# So?  What about this header?
11881case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11882  yes:no: )
11883    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11884echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11885    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11886echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11887    ac_header_preproc=yes
11888    ;;
11889  no:yes:* )
11890    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11891echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11892    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11893echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11894    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11895echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11896    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11897echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11898    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11899echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11900    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11901echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11902    ( cat <<\_ASBOX
11903## ----------------------------------- ##
11904## Report this to llvmbugs@cs.uiuc.edu ##
11905## ----------------------------------- ##
11906_ASBOX
11907     ) | sed "s/^/$as_me: WARNING:     /" >&2
11908    ;;
11909esac
11910{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11912if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11913  echo $ECHO_N "(cached) $ECHO_C" >&6
11914else
11915  eval "$as_ac_Header=\$ac_header_preproc"
11916fi
11917ac_res=`eval echo '${'$as_ac_Header'}'`
11918	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11919echo "${ECHO_T}$ac_res" >&6; }
11920
11921fi
11922if test `eval echo '${'$as_ac_Header'}'` = yes; then
11923  cat >>confdefs.h <<_ACEOF
11924#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11925_ACEOF
11926 break
11927fi
11928
11929done
11930
11931
11932
11933
11934for ac_func in strchr index
11935do
11936as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11937{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11938echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11939if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11940  echo $ECHO_N "(cached) $ECHO_C" >&6
11941else
11942  cat >conftest.$ac_ext <<_ACEOF
11943/* confdefs.h.  */
11944_ACEOF
11945cat confdefs.h >>conftest.$ac_ext
11946cat >>conftest.$ac_ext <<_ACEOF
11947/* end confdefs.h.  */
11948/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11949   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11950#define $ac_func innocuous_$ac_func
11951
11952/* System header to define __stub macros and hopefully few prototypes,
11953    which can conflict with char $ac_func (); below.
11954    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11955    <limits.h> exists even on freestanding compilers.  */
11956
11957#ifdef __STDC__
11958# include <limits.h>
11959#else
11960# include <assert.h>
11961#endif
11962
11963#undef $ac_func
11964
11965/* Override any GCC internal prototype to avoid an error.
11966   Use char because int might match the return type of a GCC
11967   builtin and then its argument prototype would still apply.  */
11968#ifdef __cplusplus
11969extern "C"
11970#endif
11971char $ac_func ();
11972/* The GNU C library defines this for functions which it implements
11973    to always fail with ENOSYS.  Some functions are actually named
11974    something starting with __ and the normal name is an alias.  */
11975#if defined __stub_$ac_func || defined __stub___$ac_func
11976choke me
11977#endif
11978
11979int
11980main ()
11981{
11982return $ac_func ();
11983  ;
11984  return 0;
11985}
11986_ACEOF
11987rm -f conftest.$ac_objext conftest$ac_exeext
11988if { (ac_try="$ac_link"
11989case "(($ac_try" in
11990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991  *) ac_try_echo=$ac_try;;
11992esac
11993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11994  (eval "$ac_link") 2>conftest.er1
11995  ac_status=$?
11996  grep -v '^ *+' conftest.er1 >conftest.err
11997  rm -f conftest.er1
11998  cat conftest.err >&5
11999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000  (exit $ac_status); } &&
12001	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12002  { (case "(($ac_try" in
12003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004  *) ac_try_echo=$ac_try;;
12005esac
12006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007  (eval "$ac_try") 2>&5
12008  ac_status=$?
12009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010  (exit $ac_status); }; } &&
12011	 { ac_try='test -s conftest$ac_exeext'
12012  { (case "(($ac_try" in
12013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014  *) ac_try_echo=$ac_try;;
12015esac
12016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017  (eval "$ac_try") 2>&5
12018  ac_status=$?
12019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020  (exit $ac_status); }; }; then
12021  eval "$as_ac_var=yes"
12022else
12023  echo "$as_me: failed program was:" >&5
12024sed 's/^/| /' conftest.$ac_ext >&5
12025
12026	eval "$as_ac_var=no"
12027fi
12028
12029rm -f core conftest.err conftest.$ac_objext \
12030      conftest$ac_exeext conftest.$ac_ext
12031fi
12032ac_res=`eval echo '${'$as_ac_var'}'`
12033	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12034echo "${ECHO_T}$ac_res" >&6; }
12035if test `eval echo '${'$as_ac_var'}'` = yes; then
12036  cat >>confdefs.h <<_ACEOF
12037#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12038_ACEOF
12039 break
12040fi
12041done
12042
12043
12044
12045for ac_func in strrchr rindex
12046do
12047as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12048{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12049echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12050if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12051  echo $ECHO_N "(cached) $ECHO_C" >&6
12052else
12053  cat >conftest.$ac_ext <<_ACEOF
12054/* confdefs.h.  */
12055_ACEOF
12056cat confdefs.h >>conftest.$ac_ext
12057cat >>conftest.$ac_ext <<_ACEOF
12058/* end confdefs.h.  */
12059/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12060   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12061#define $ac_func innocuous_$ac_func
12062
12063/* System header to define __stub macros and hopefully few prototypes,
12064    which can conflict with char $ac_func (); below.
12065    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12066    <limits.h> exists even on freestanding compilers.  */
12067
12068#ifdef __STDC__
12069# include <limits.h>
12070#else
12071# include <assert.h>
12072#endif
12073
12074#undef $ac_func
12075
12076/* Override any GCC internal prototype to avoid an error.
12077   Use char because int might match the return type of a GCC
12078   builtin and then its argument prototype would still apply.  */
12079#ifdef __cplusplus
12080extern "C"
12081#endif
12082char $ac_func ();
12083/* The GNU C library defines this for functions which it implements
12084    to always fail with ENOSYS.  Some functions are actually named
12085    something starting with __ and the normal name is an alias.  */
12086#if defined __stub_$ac_func || defined __stub___$ac_func
12087choke me
12088#endif
12089
12090int
12091main ()
12092{
12093return $ac_func ();
12094  ;
12095  return 0;
12096}
12097_ACEOF
12098rm -f conftest.$ac_objext conftest$ac_exeext
12099if { (ac_try="$ac_link"
12100case "(($ac_try" in
12101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12102  *) ac_try_echo=$ac_try;;
12103esac
12104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105  (eval "$ac_link") 2>conftest.er1
12106  ac_status=$?
12107  grep -v '^ *+' conftest.er1 >conftest.err
12108  rm -f conftest.er1
12109  cat conftest.err >&5
12110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111  (exit $ac_status); } &&
12112	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12113  { (case "(($ac_try" in
12114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115  *) ac_try_echo=$ac_try;;
12116esac
12117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118  (eval "$ac_try") 2>&5
12119  ac_status=$?
12120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121  (exit $ac_status); }; } &&
12122	 { ac_try='test -s conftest$ac_exeext'
12123  { (case "(($ac_try" in
12124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125  *) ac_try_echo=$ac_try;;
12126esac
12127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128  (eval "$ac_try") 2>&5
12129  ac_status=$?
12130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131  (exit $ac_status); }; }; then
12132  eval "$as_ac_var=yes"
12133else
12134  echo "$as_me: failed program was:" >&5
12135sed 's/^/| /' conftest.$ac_ext >&5
12136
12137	eval "$as_ac_var=no"
12138fi
12139
12140rm -f core conftest.err conftest.$ac_objext \
12141      conftest$ac_exeext conftest.$ac_ext
12142fi
12143ac_res=`eval echo '${'$as_ac_var'}'`
12144	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12145echo "${ECHO_T}$ac_res" >&6; }
12146if test `eval echo '${'$as_ac_var'}'` = yes; then
12147  cat >>confdefs.h <<_ACEOF
12148#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12149_ACEOF
12150 break
12151fi
12152done
12153
12154
12155
12156for ac_func in memcpy bcopy
12157do
12158as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12159{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12160echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12161if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12162  echo $ECHO_N "(cached) $ECHO_C" >&6
12163else
12164  cat >conftest.$ac_ext <<_ACEOF
12165/* confdefs.h.  */
12166_ACEOF
12167cat confdefs.h >>conftest.$ac_ext
12168cat >>conftest.$ac_ext <<_ACEOF
12169/* end confdefs.h.  */
12170/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12171   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12172#define $ac_func innocuous_$ac_func
12173
12174/* System header to define __stub macros and hopefully few prototypes,
12175    which can conflict with char $ac_func (); below.
12176    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12177    <limits.h> exists even on freestanding compilers.  */
12178
12179#ifdef __STDC__
12180# include <limits.h>
12181#else
12182# include <assert.h>
12183#endif
12184
12185#undef $ac_func
12186
12187/* Override any GCC internal prototype to avoid an error.
12188   Use char because int might match the return type of a GCC
12189   builtin and then its argument prototype would still apply.  */
12190#ifdef __cplusplus
12191extern "C"
12192#endif
12193char $ac_func ();
12194/* The GNU C library defines this for functions which it implements
12195    to always fail with ENOSYS.  Some functions are actually named
12196    something starting with __ and the normal name is an alias.  */
12197#if defined __stub_$ac_func || defined __stub___$ac_func
12198choke me
12199#endif
12200
12201int
12202main ()
12203{
12204return $ac_func ();
12205  ;
12206  return 0;
12207}
12208_ACEOF
12209rm -f conftest.$ac_objext conftest$ac_exeext
12210if { (ac_try="$ac_link"
12211case "(($ac_try" in
12212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213  *) ac_try_echo=$ac_try;;
12214esac
12215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216  (eval "$ac_link") 2>conftest.er1
12217  ac_status=$?
12218  grep -v '^ *+' conftest.er1 >conftest.err
12219  rm -f conftest.er1
12220  cat conftest.err >&5
12221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222  (exit $ac_status); } &&
12223	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12224  { (case "(($ac_try" in
12225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12226  *) ac_try_echo=$ac_try;;
12227esac
12228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12229  (eval "$ac_try") 2>&5
12230  ac_status=$?
12231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232  (exit $ac_status); }; } &&
12233	 { ac_try='test -s conftest$ac_exeext'
12234  { (case "(($ac_try" in
12235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12236  *) ac_try_echo=$ac_try;;
12237esac
12238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12239  (eval "$ac_try") 2>&5
12240  ac_status=$?
12241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242  (exit $ac_status); }; }; then
12243  eval "$as_ac_var=yes"
12244else
12245  echo "$as_me: failed program was:" >&5
12246sed 's/^/| /' conftest.$ac_ext >&5
12247
12248	eval "$as_ac_var=no"
12249fi
12250
12251rm -f core conftest.err conftest.$ac_objext \
12252      conftest$ac_exeext conftest.$ac_ext
12253fi
12254ac_res=`eval echo '${'$as_ac_var'}'`
12255	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12256echo "${ECHO_T}$ac_res" >&6; }
12257if test `eval echo '${'$as_ac_var'}'` = yes; then
12258  cat >>confdefs.h <<_ACEOF
12259#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12260_ACEOF
12261 break
12262fi
12263done
12264
12265
12266
12267for ac_func in memmove strcmp
12268do
12269as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12270{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12271echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12272if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12273  echo $ECHO_N "(cached) $ECHO_C" >&6
12274else
12275  cat >conftest.$ac_ext <<_ACEOF
12276/* confdefs.h.  */
12277_ACEOF
12278cat confdefs.h >>conftest.$ac_ext
12279cat >>conftest.$ac_ext <<_ACEOF
12280/* end confdefs.h.  */
12281/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12282   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12283#define $ac_func innocuous_$ac_func
12284
12285/* System header to define __stub macros and hopefully few prototypes,
12286    which can conflict with char $ac_func (); below.
12287    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12288    <limits.h> exists even on freestanding compilers.  */
12289
12290#ifdef __STDC__
12291# include <limits.h>
12292#else
12293# include <assert.h>
12294#endif
12295
12296#undef $ac_func
12297
12298/* Override any GCC internal prototype to avoid an error.
12299   Use char because int might match the return type of a GCC
12300   builtin and then its argument prototype would still apply.  */
12301#ifdef __cplusplus
12302extern "C"
12303#endif
12304char $ac_func ();
12305/* The GNU C library defines this for functions which it implements
12306    to always fail with ENOSYS.  Some functions are actually named
12307    something starting with __ and the normal name is an alias.  */
12308#if defined __stub_$ac_func || defined __stub___$ac_func
12309choke me
12310#endif
12311
12312int
12313main ()
12314{
12315return $ac_func ();
12316  ;
12317  return 0;
12318}
12319_ACEOF
12320rm -f conftest.$ac_objext conftest$ac_exeext
12321if { (ac_try="$ac_link"
12322case "(($ac_try" in
12323  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12324  *) ac_try_echo=$ac_try;;
12325esac
12326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12327  (eval "$ac_link") 2>conftest.er1
12328  ac_status=$?
12329  grep -v '^ *+' conftest.er1 >conftest.err
12330  rm -f conftest.er1
12331  cat conftest.err >&5
12332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333  (exit $ac_status); } &&
12334	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12335  { (case "(($ac_try" in
12336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337  *) ac_try_echo=$ac_try;;
12338esac
12339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340  (eval "$ac_try") 2>&5
12341  ac_status=$?
12342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343  (exit $ac_status); }; } &&
12344	 { ac_try='test -s conftest$ac_exeext'
12345  { (case "(($ac_try" in
12346  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347  *) ac_try_echo=$ac_try;;
12348esac
12349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350  (eval "$ac_try") 2>&5
12351  ac_status=$?
12352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353  (exit $ac_status); }; }; then
12354  eval "$as_ac_var=yes"
12355else
12356  echo "$as_me: failed program was:" >&5
12357sed 's/^/| /' conftest.$ac_ext >&5
12358
12359	eval "$as_ac_var=no"
12360fi
12361
12362rm -f core conftest.err conftest.$ac_objext \
12363      conftest$ac_exeext conftest.$ac_ext
12364fi
12365ac_res=`eval echo '${'$as_ac_var'}'`
12366	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12367echo "${ECHO_T}$ac_res" >&6; }
12368if test `eval echo '${'$as_ac_var'}'` = yes; then
12369  cat >>confdefs.h <<_ACEOF
12370#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12371_ACEOF
12372
12373fi
12374done
12375
12376
12377
12378
12379for ac_func in closedir opendir readdir
12380do
12381as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12382{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12383echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12384if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12385  echo $ECHO_N "(cached) $ECHO_C" >&6
12386else
12387  cat >conftest.$ac_ext <<_ACEOF
12388/* confdefs.h.  */
12389_ACEOF
12390cat confdefs.h >>conftest.$ac_ext
12391cat >>conftest.$ac_ext <<_ACEOF
12392/* end confdefs.h.  */
12393/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12394   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12395#define $ac_func innocuous_$ac_func
12396
12397/* System header to define __stub macros and hopefully few prototypes,
12398    which can conflict with char $ac_func (); below.
12399    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12400    <limits.h> exists even on freestanding compilers.  */
12401
12402#ifdef __STDC__
12403# include <limits.h>
12404#else
12405# include <assert.h>
12406#endif
12407
12408#undef $ac_func
12409
12410/* Override any GCC internal prototype to avoid an error.
12411   Use char because int might match the return type of a GCC
12412   builtin and then its argument prototype would still apply.  */
12413#ifdef __cplusplus
12414extern "C"
12415#endif
12416char $ac_func ();
12417/* The GNU C library defines this for functions which it implements
12418    to always fail with ENOSYS.  Some functions are actually named
12419    something starting with __ and the normal name is an alias.  */
12420#if defined __stub_$ac_func || defined __stub___$ac_func
12421choke me
12422#endif
12423
12424int
12425main ()
12426{
12427return $ac_func ();
12428  ;
12429  return 0;
12430}
12431_ACEOF
12432rm -f conftest.$ac_objext conftest$ac_exeext
12433if { (ac_try="$ac_link"
12434case "(($ac_try" in
12435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436  *) ac_try_echo=$ac_try;;
12437esac
12438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12439  (eval "$ac_link") 2>conftest.er1
12440  ac_status=$?
12441  grep -v '^ *+' conftest.er1 >conftest.err
12442  rm -f conftest.er1
12443  cat conftest.err >&5
12444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445  (exit $ac_status); } &&
12446	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12447  { (case "(($ac_try" in
12448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449  *) ac_try_echo=$ac_try;;
12450esac
12451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12452  (eval "$ac_try") 2>&5
12453  ac_status=$?
12454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455  (exit $ac_status); }; } &&
12456	 { ac_try='test -s conftest$ac_exeext'
12457  { (case "(($ac_try" in
12458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12459  *) ac_try_echo=$ac_try;;
12460esac
12461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12462  (eval "$ac_try") 2>&5
12463  ac_status=$?
12464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465  (exit $ac_status); }; }; then
12466  eval "$as_ac_var=yes"
12467else
12468  echo "$as_me: failed program was:" >&5
12469sed 's/^/| /' conftest.$ac_ext >&5
12470
12471	eval "$as_ac_var=no"
12472fi
12473
12474rm -f core conftest.err conftest.$ac_objext \
12475      conftest$ac_exeext conftest.$ac_ext
12476fi
12477ac_res=`eval echo '${'$as_ac_var'}'`
12478	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12479echo "${ECHO_T}$ac_res" >&6; }
12480if test `eval echo '${'$as_ac_var'}'` = yes; then
12481  cat >>confdefs.h <<_ACEOF
12482#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12483_ACEOF
12484
12485fi
12486done
12487
12488
12489# Check whether --enable-shared was given.
12490if test "${enable_shared+set}" = set; then
12491  enableval=$enable_shared; p=${PACKAGE-default}
12492    case $enableval in
12493    yes) enable_shared=yes ;;
12494    no) enable_shared=no ;;
12495    *)
12496      enable_shared=no
12497      # Look at the argument we got.  We use all the common list separators.
12498      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12499      for pkg in $enableval; do
12500	IFS="$lt_save_ifs"
12501	if test "X$pkg" = "X$p"; then
12502	  enable_shared=yes
12503	fi
12504      done
12505      IFS="$lt_save_ifs"
12506      ;;
12507    esac
12508else
12509  enable_shared=yes
12510fi
12511
12512
12513# Check whether --enable-static was given.
12514if test "${enable_static+set}" = set; then
12515  enableval=$enable_static; p=${PACKAGE-default}
12516    case $enableval in
12517    yes) enable_static=yes ;;
12518    no) enable_static=no ;;
12519    *)
12520     enable_static=no
12521      # Look at the argument we got.  We use all the common list separators.
12522      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12523      for pkg in $enableval; do
12524	IFS="$lt_save_ifs"
12525	if test "X$pkg" = "X$p"; then
12526	  enable_static=yes
12527	fi
12528      done
12529      IFS="$lt_save_ifs"
12530      ;;
12531    esac
12532else
12533  enable_static=yes
12534fi
12535
12536
12537# Check whether --enable-fast-install was given.
12538if test "${enable_fast_install+set}" = set; then
12539  enableval=$enable_fast_install; p=${PACKAGE-default}
12540    case $enableval in
12541    yes) enable_fast_install=yes ;;
12542    no) enable_fast_install=no ;;
12543    *)
12544      enable_fast_install=no
12545      # Look at the argument we got.  We use all the common list separators.
12546      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12547      for pkg in $enableval; do
12548	IFS="$lt_save_ifs"
12549	if test "X$pkg" = "X$p"; then
12550	  enable_fast_install=yes
12551	fi
12552      done
12553      IFS="$lt_save_ifs"
12554      ;;
12555    esac
12556else
12557  enable_fast_install=yes
12558fi
12559
12560
12561{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12562echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12563if test "${lt_cv_path_SED+set}" = set; then
12564  echo $ECHO_N "(cached) $ECHO_C" >&6
12565else
12566  # Loop through the user's path and test for sed and gsed.
12567# Then use that list of sed's as ones to test for truncation.
12568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12569for as_dir in $PATH
12570do
12571  IFS=$as_save_IFS
12572  test -z "$as_dir" && as_dir=.
12573  for lt_ac_prog in sed gsed; do
12574    for ac_exec_ext in '' $ac_executable_extensions; do
12575      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12576        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12577      fi
12578    done
12579  done
12580done
12581lt_ac_max=0
12582lt_ac_count=0
12583# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12584# along with /bin/sed that truncates output.
12585for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12586  test ! -f $lt_ac_sed && continue
12587  cat /dev/null > conftest.in
12588  lt_ac_count=0
12589  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12590  # Check for GNU sed and select it if it is found.
12591  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12592    lt_cv_path_SED=$lt_ac_sed
12593    break
12594  fi
12595  while true; do
12596    cat conftest.in conftest.in >conftest.tmp
12597    mv conftest.tmp conftest.in
12598    cp conftest.in conftest.nl
12599    echo >>conftest.nl
12600    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12601    cmp -s conftest.out conftest.nl || break
12602    # 10000 chars as input seems more than enough
12603    test $lt_ac_count -gt 10 && break
12604    lt_ac_count=`expr $lt_ac_count + 1`
12605    if test $lt_ac_count -gt $lt_ac_max; then
12606      lt_ac_max=$lt_ac_count
12607      lt_cv_path_SED=$lt_ac_sed
12608    fi
12609  done
12610done
12611
12612fi
12613
12614SED=$lt_cv_path_SED
12615{ echo "$as_me:$LINENO: result: $SED" >&5
12616echo "${ECHO_T}$SED" >&6; }
12617
12618
12619# Check whether --with-gnu-ld was given.
12620if test "${with_gnu_ld+set}" = set; then
12621  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12622else
12623  with_gnu_ld=no
12624fi
12625
12626ac_prog=ld
12627if test "$GCC" = yes; then
12628  # Check if gcc -print-prog-name=ld gives a path.
12629  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12630echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12631  case $host in
12632  *-*-mingw*)
12633    # gcc leaves a trailing carriage return which upsets mingw
12634    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12635  *)
12636    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12637  esac
12638  case $ac_prog in
12639    # Accept absolute paths.
12640    [\\/]* | ?:[\\/]*)
12641      re_direlt='/[^/][^/]*/\.\./'
12642      # Canonicalize the pathname of ld
12643      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12644      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12645	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12646      done
12647      test -z "$LD" && LD="$ac_prog"
12648      ;;
12649  "")
12650    # If it fails, then pretend we aren't using GCC.
12651    ac_prog=ld
12652    ;;
12653  *)
12654    # If it is relative, then search for the first ld in PATH.
12655    with_gnu_ld=unknown
12656    ;;
12657  esac
12658elif test "$with_gnu_ld" = yes; then
12659  { echo "$as_me:$LINENO: checking for GNU ld" >&5
12660echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12661else
12662  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12663echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12664fi
12665if test "${lt_cv_path_LD+set}" = set; then
12666  echo $ECHO_N "(cached) $ECHO_C" >&6
12667else
12668  if test -z "$LD"; then
12669  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12670  for ac_dir in $PATH; do
12671    IFS="$lt_save_ifs"
12672    test -z "$ac_dir" && ac_dir=.
12673    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12674      lt_cv_path_LD="$ac_dir/$ac_prog"
12675      # Check to see if the program is GNU ld.  I'd rather use --version,
12676      # but apparently some variants of GNU ld only accept -v.
12677      # Break only if it was the GNU/non-GNU ld that we prefer.
12678      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12679      *GNU* | *'with BFD'*)
12680	test "$with_gnu_ld" != no && break
12681	;;
12682      *)
12683	test "$with_gnu_ld" != yes && break
12684	;;
12685      esac
12686    fi
12687  done
12688  IFS="$lt_save_ifs"
12689else
12690  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12691fi
12692fi
12693
12694LD="$lt_cv_path_LD"
12695if test -n "$LD"; then
12696  { echo "$as_me:$LINENO: result: $LD" >&5
12697echo "${ECHO_T}$LD" >&6; }
12698else
12699  { echo "$as_me:$LINENO: result: no" >&5
12700echo "${ECHO_T}no" >&6; }
12701fi
12702test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12703echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12704   { (exit 1); exit 1; }; }
12705{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12706echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12707if test "${lt_cv_prog_gnu_ld+set}" = set; then
12708  echo $ECHO_N "(cached) $ECHO_C" >&6
12709else
12710  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12711case `$LD -v 2>&1 </dev/null` in
12712*GNU* | *'with BFD'*)
12713  lt_cv_prog_gnu_ld=yes
12714  ;;
12715*)
12716  lt_cv_prog_gnu_ld=no
12717  ;;
12718esac
12719fi
12720{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12721echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12722with_gnu_ld=$lt_cv_prog_gnu_ld
12723
12724
12725{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12726echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12727if test "${lt_cv_ld_reload_flag+set}" = set; then
12728  echo $ECHO_N "(cached) $ECHO_C" >&6
12729else
12730  lt_cv_ld_reload_flag='-r'
12731fi
12732{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12733echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12734reload_flag=$lt_cv_ld_reload_flag
12735case $reload_flag in
12736"" | " "*) ;;
12737*) reload_flag=" $reload_flag" ;;
12738esac
12739reload_cmds='$LD$reload_flag -o $output$reload_objs'
12740case $host_os in
12741  darwin*)
12742    if test "$GCC" = yes; then
12743      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12744    else
12745      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12746    fi
12747    ;;
12748esac
12749
12750{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12751echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12752if test "${lt_cv_deplibs_check_method+set}" = set; then
12753  echo $ECHO_N "(cached) $ECHO_C" >&6
12754else
12755  lt_cv_file_magic_cmd='$MAGIC_CMD'
12756lt_cv_file_magic_test_file=
12757lt_cv_deplibs_check_method='unknown'
12758# Need to set the preceding variable on all platforms that support
12759# interlibrary dependencies.
12760# 'none' -- dependencies not supported.
12761# `unknown' -- same as none, but documents that we really don't know.
12762# 'pass_all' -- all dependencies passed with no checks.
12763# 'test_compile' -- check by making test program.
12764# 'file_magic [[regex]]' -- check by looking for files in library path
12765# which responds to the $file_magic_cmd with a given extended regex.
12766# If you have `file' or equivalent on your system and you're not sure
12767# whether `pass_all' will *always* work, you probably want this one.
12768
12769case $host_os in
12770aix4* | aix5*)
12771  lt_cv_deplibs_check_method=pass_all
12772  ;;
12773
12774beos*)
12775  lt_cv_deplibs_check_method=pass_all
12776  ;;
12777
12778bsdi[45]*)
12779  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12780  lt_cv_file_magic_cmd='/usr/bin/file -L'
12781  lt_cv_file_magic_test_file=/shlib/libc.so
12782  ;;
12783
12784cygwin*)
12785  # func_win32_libid is a shell function defined in ltmain.sh
12786  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12787  lt_cv_file_magic_cmd='func_win32_libid'
12788  ;;
12789
12790mingw* | pw32*)
12791  # Base MSYS/MinGW do not provide the 'file' command needed by
12792  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12793  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12794  lt_cv_file_magic_cmd='$OBJDUMP -f'
12795  ;;
12796
12797darwin* | rhapsody*)
12798  lt_cv_deplibs_check_method=pass_all
12799  ;;
12800
12801freebsd* | kfreebsd*-gnu | dragonfly*)
12802  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12803    case $host_cpu in
12804    i*86 )
12805      # Not sure whether the presence of OpenBSD here was a mistake.
12806      # Let's accept both of them until this is cleared up.
12807      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12808      lt_cv_file_magic_cmd=/usr/bin/file
12809      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12810      ;;
12811    esac
12812  else
12813    lt_cv_deplibs_check_method=pass_all
12814  fi
12815  ;;
12816
12817gnu*)
12818  lt_cv_deplibs_check_method=pass_all
12819  ;;
12820
12821hpux10.20* | hpux11*)
12822  lt_cv_file_magic_cmd=/usr/bin/file
12823  case $host_cpu in
12824  ia64*)
12825    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12826    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12827    ;;
12828  hppa*64*)
12829    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]'
12830    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12831    ;;
12832  *)
12833    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12834    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12835    ;;
12836  esac
12837  ;;
12838
12839interix3*)
12840  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12841  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12842  ;;
12843
12844irix5* | irix6* | nonstopux*)
12845  case $LD in
12846  *-32|*"-32 ") libmagic=32-bit;;
12847  *-n32|*"-n32 ") libmagic=N32;;
12848  *-64|*"-64 ") libmagic=64-bit;;
12849  *) libmagic=never-match;;
12850  esac
12851  lt_cv_deplibs_check_method=pass_all
12852  ;;
12853
12854# This must be Linux ELF.
12855linux*)
12856  lt_cv_deplibs_check_method=pass_all
12857  ;;
12858
12859netbsd*)
12860  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12861    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12862  else
12863    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12864  fi
12865  ;;
12866
12867newos6*)
12868  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12869  lt_cv_file_magic_cmd=/usr/bin/file
12870  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12871  ;;
12872
12873nto-qnx*)
12874  lt_cv_deplibs_check_method=unknown
12875  ;;
12876
12877openbsd*)
12878  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12879    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12880  else
12881    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12882  fi
12883  ;;
12884
12885osf3* | osf4* | osf5*)
12886  lt_cv_deplibs_check_method=pass_all
12887  ;;
12888
12889solaris*)
12890  lt_cv_deplibs_check_method=pass_all
12891  ;;
12892
12893sysv4 | sysv4.3*)
12894  case $host_vendor in
12895  motorola)
12896    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]'
12897    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12898    ;;
12899  ncr)
12900    lt_cv_deplibs_check_method=pass_all
12901    ;;
12902  sequent)
12903    lt_cv_file_magic_cmd='/bin/file'
12904    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12905    ;;
12906  sni)
12907    lt_cv_file_magic_cmd='/bin/file'
12908    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12909    lt_cv_file_magic_test_file=/lib/libc.so
12910    ;;
12911  siemens)
12912    lt_cv_deplibs_check_method=pass_all
12913    ;;
12914  pc)
12915    lt_cv_deplibs_check_method=pass_all
12916    ;;
12917  esac
12918  ;;
12919
12920sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12921  lt_cv_deplibs_check_method=pass_all
12922  ;;
12923esac
12924
12925fi
12926{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12927echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12928file_magic_cmd=$lt_cv_file_magic_cmd
12929deplibs_check_method=$lt_cv_deplibs_check_method
12930test -z "$deplibs_check_method" && deplibs_check_method=unknown
12931
12932
12933
12934# If no C compiler was specified, use CC.
12935LTCC=${LTCC-"$CC"}
12936
12937# If no C compiler flags were specified, use CFLAGS.
12938LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12939
12940# Allow CC to be a program name with arguments.
12941compiler=$CC
12942
12943# Check whether --enable-libtool-lock was given.
12944if test "${enable_libtool_lock+set}" = set; then
12945  enableval=$enable_libtool_lock;
12946fi
12947
12948test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12949
12950# Some flags need to be propagated to the compiler or linker for good
12951# libtool support.
12952case $host in
12953ia64-*-hpux*)
12954  # Find out which ABI we are using.
12955  echo 'int i;' > conftest.$ac_ext
12956  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12957  (eval $ac_compile) 2>&5
12958  ac_status=$?
12959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960  (exit $ac_status); }; then
12961    case `/usr/bin/file conftest.$ac_objext` in
12962    *ELF-32*)
12963      HPUX_IA64_MODE="32"
12964      ;;
12965    *ELF-64*)
12966      HPUX_IA64_MODE="64"
12967      ;;
12968    esac
12969  fi
12970  rm -rf conftest*
12971  ;;
12972*-*-irix6*)
12973  # Find out which ABI we are using.
12974  echo '#line 12974 "configure"' > conftest.$ac_ext
12975  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12976  (eval $ac_compile) 2>&5
12977  ac_status=$?
12978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979  (exit $ac_status); }; then
12980   if test "$lt_cv_prog_gnu_ld" = yes; then
12981    case `/usr/bin/file conftest.$ac_objext` in
12982    *32-bit*)
12983      LD="${LD-ld} -melf32bsmip"
12984      ;;
12985    *N32*)
12986      LD="${LD-ld} -melf32bmipn32"
12987      ;;
12988    *64-bit*)
12989      LD="${LD-ld} -melf64bmip"
12990      ;;
12991    esac
12992   else
12993    case `/usr/bin/file conftest.$ac_objext` in
12994    *32-bit*)
12995      LD="${LD-ld} -32"
12996      ;;
12997    *N32*)
12998      LD="${LD-ld} -n32"
12999      ;;
13000    *64-bit*)
13001      LD="${LD-ld} -64"
13002      ;;
13003    esac
13004   fi
13005  fi
13006  rm -rf conftest*
13007  ;;
13008
13009x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13010  # Find out which ABI we are using.
13011  echo 'int i;' > conftest.$ac_ext
13012  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13013  (eval $ac_compile) 2>&5
13014  ac_status=$?
13015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016  (exit $ac_status); }; then
13017    case `/usr/bin/file conftest.o` in
13018    *32-bit*)
13019      case $host in
13020        x86_64-*linux*)
13021          LD="${LD-ld} -m elf_i386"
13022          ;;
13023        ppc64-*linux*|powerpc64-*linux*)
13024          LD="${LD-ld} -m elf32ppclinux"
13025          ;;
13026        s390x-*linux*)
13027          LD="${LD-ld} -m elf_s390"
13028          ;;
13029        sparc64-*linux*)
13030          LD="${LD-ld} -m elf32_sparc"
13031          ;;
13032      esac
13033      ;;
13034    *64-bit*)
13035      case $host in
13036        x86_64-*linux*)
13037          LD="${LD-ld} -m elf_x86_64"
13038          ;;
13039        ppc*-*linux*|powerpc*-*linux*)
13040          LD="${LD-ld} -m elf64ppc"
13041          ;;
13042        s390*-*linux*)
13043          LD="${LD-ld} -m elf64_s390"
13044          ;;
13045        sparc*-*linux*)
13046          LD="${LD-ld} -m elf64_sparc"
13047          ;;
13048      esac
13049      ;;
13050    esac
13051  fi
13052  rm -rf conftest*
13053  ;;
13054
13055*-*-sco3.2v5*)
13056  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13057  SAVE_CFLAGS="$CFLAGS"
13058  CFLAGS="$CFLAGS -belf"
13059  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13060echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13061if test "${lt_cv_cc_needs_belf+set}" = set; then
13062  echo $ECHO_N "(cached) $ECHO_C" >&6
13063else
13064  ac_ext=c
13065ac_cpp='$CPP $CPPFLAGS'
13066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13068ac_compiler_gnu=$ac_cv_c_compiler_gnu
13069
13070     cat >conftest.$ac_ext <<_ACEOF
13071/* confdefs.h.  */
13072_ACEOF
13073cat confdefs.h >>conftest.$ac_ext
13074cat >>conftest.$ac_ext <<_ACEOF
13075/* end confdefs.h.  */
13076
13077int
13078main ()
13079{
13080
13081  ;
13082  return 0;
13083}
13084_ACEOF
13085rm -f conftest.$ac_objext conftest$ac_exeext
13086if { (ac_try="$ac_link"
13087case "(($ac_try" in
13088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089  *) ac_try_echo=$ac_try;;
13090esac
13091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092  (eval "$ac_link") 2>conftest.er1
13093  ac_status=$?
13094  grep -v '^ *+' conftest.er1 >conftest.err
13095  rm -f conftest.er1
13096  cat conftest.err >&5
13097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098  (exit $ac_status); } &&
13099	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13100  { (case "(($ac_try" in
13101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13102  *) ac_try_echo=$ac_try;;
13103esac
13104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13105  (eval "$ac_try") 2>&5
13106  ac_status=$?
13107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108  (exit $ac_status); }; } &&
13109	 { ac_try='test -s conftest$ac_exeext'
13110  { (case "(($ac_try" in
13111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112  *) ac_try_echo=$ac_try;;
13113esac
13114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13115  (eval "$ac_try") 2>&5
13116  ac_status=$?
13117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118  (exit $ac_status); }; }; then
13119  lt_cv_cc_needs_belf=yes
13120else
13121  echo "$as_me: failed program was:" >&5
13122sed 's/^/| /' conftest.$ac_ext >&5
13123
13124	lt_cv_cc_needs_belf=no
13125fi
13126
13127rm -f core conftest.err conftest.$ac_objext \
13128      conftest$ac_exeext conftest.$ac_ext
13129     ac_ext=c
13130ac_cpp='$CPP $CPPFLAGS'
13131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13133ac_compiler_gnu=$ac_cv_c_compiler_gnu
13134
13135fi
13136{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13137echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13138  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13139    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13140    CFLAGS="$SAVE_CFLAGS"
13141  fi
13142  ;;
13143sparc*-*solaris*)
13144  # Find out which ABI we are using.
13145  echo 'int i;' > conftest.$ac_ext
13146  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13147  (eval $ac_compile) 2>&5
13148  ac_status=$?
13149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150  (exit $ac_status); }; then
13151    case `/usr/bin/file conftest.o` in
13152    *64-bit*)
13153      case $lt_cv_prog_gnu_ld in
13154      yes*) LD="${LD-ld} -m elf64_sparc" ;;
13155      *)    LD="${LD-ld} -64" ;;
13156      esac
13157      ;;
13158    esac
13159  fi
13160  rm -rf conftest*
13161  ;;
13162
13163
13164esac
13165
13166need_locks="$enable_libtool_lock"
13167
13168
13169
13170
13171if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13172    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13173    (test "X$CXX" != "Xg++"))) ; then
13174  ac_ext=cpp
13175ac_cpp='$CXXCPP $CPPFLAGS'
13176ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13177ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13178ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13179{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13180echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13181if test -z "$CXXCPP"; then
13182  if test "${ac_cv_prog_CXXCPP+set}" = set; then
13183  echo $ECHO_N "(cached) $ECHO_C" >&6
13184else
13185      # Double quotes because CXXCPP needs to be expanded
13186    for CXXCPP in "$CXX -E" "/lib/cpp"
13187    do
13188      ac_preproc_ok=false
13189for ac_cxx_preproc_warn_flag in '' yes
13190do
13191  # Use a header file that comes with gcc, so configuring glibc
13192  # with a fresh cross-compiler works.
13193  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13194  # <limits.h> exists even on freestanding compilers.
13195  # On the NeXT, cc -E runs the code through the compiler's parser,
13196  # not just through cpp. "Syntax error" is here to catch this case.
13197  cat >conftest.$ac_ext <<_ACEOF
13198/* confdefs.h.  */
13199_ACEOF
13200cat confdefs.h >>conftest.$ac_ext
13201cat >>conftest.$ac_ext <<_ACEOF
13202/* end confdefs.h.  */
13203#ifdef __STDC__
13204# include <limits.h>
13205#else
13206# include <assert.h>
13207#endif
13208		     Syntax error
13209_ACEOF
13210if { (ac_try="$ac_cpp conftest.$ac_ext"
13211case "(($ac_try" in
13212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13213  *) ac_try_echo=$ac_try;;
13214esac
13215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13216  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13217  ac_status=$?
13218  grep -v '^ *+' conftest.er1 >conftest.err
13219  rm -f conftest.er1
13220  cat conftest.err >&5
13221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222  (exit $ac_status); } >/dev/null; then
13223  if test -s conftest.err; then
13224    ac_cpp_err=$ac_cxx_preproc_warn_flag
13225    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13226  else
13227    ac_cpp_err=
13228  fi
13229else
13230  ac_cpp_err=yes
13231fi
13232if test -z "$ac_cpp_err"; then
13233  :
13234else
13235  echo "$as_me: failed program was:" >&5
13236sed 's/^/| /' conftest.$ac_ext >&5
13237
13238  # Broken: fails on valid input.
13239continue
13240fi
13241
13242rm -f conftest.err conftest.$ac_ext
13243
13244  # OK, works on sane cases.  Now check whether nonexistent headers
13245  # can be detected and how.
13246  cat >conftest.$ac_ext <<_ACEOF
13247/* confdefs.h.  */
13248_ACEOF
13249cat confdefs.h >>conftest.$ac_ext
13250cat >>conftest.$ac_ext <<_ACEOF
13251/* end confdefs.h.  */
13252#include <ac_nonexistent.h>
13253_ACEOF
13254if { (ac_try="$ac_cpp conftest.$ac_ext"
13255case "(($ac_try" in
13256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257  *) ac_try_echo=$ac_try;;
13258esac
13259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13260  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13261  ac_status=$?
13262  grep -v '^ *+' conftest.er1 >conftest.err
13263  rm -f conftest.er1
13264  cat conftest.err >&5
13265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266  (exit $ac_status); } >/dev/null; then
13267  if test -s conftest.err; then
13268    ac_cpp_err=$ac_cxx_preproc_warn_flag
13269    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13270  else
13271    ac_cpp_err=
13272  fi
13273else
13274  ac_cpp_err=yes
13275fi
13276if test -z "$ac_cpp_err"; then
13277  # Broken: success on invalid input.
13278continue
13279else
13280  echo "$as_me: failed program was:" >&5
13281sed 's/^/| /' conftest.$ac_ext >&5
13282
13283  # Passes both tests.
13284ac_preproc_ok=:
13285break
13286fi
13287
13288rm -f conftest.err conftest.$ac_ext
13289
13290done
13291# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13292rm -f conftest.err conftest.$ac_ext
13293if $ac_preproc_ok; then
13294  break
13295fi
13296
13297    done
13298    ac_cv_prog_CXXCPP=$CXXCPP
13299
13300fi
13301  CXXCPP=$ac_cv_prog_CXXCPP
13302else
13303  ac_cv_prog_CXXCPP=$CXXCPP
13304fi
13305{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13306echo "${ECHO_T}$CXXCPP" >&6; }
13307ac_preproc_ok=false
13308for ac_cxx_preproc_warn_flag in '' yes
13309do
13310  # Use a header file that comes with gcc, so configuring glibc
13311  # with a fresh cross-compiler works.
13312  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13313  # <limits.h> exists even on freestanding compilers.
13314  # On the NeXT, cc -E runs the code through the compiler's parser,
13315  # not just through cpp. "Syntax error" is here to catch this case.
13316  cat >conftest.$ac_ext <<_ACEOF
13317/* confdefs.h.  */
13318_ACEOF
13319cat confdefs.h >>conftest.$ac_ext
13320cat >>conftest.$ac_ext <<_ACEOF
13321/* end confdefs.h.  */
13322#ifdef __STDC__
13323# include <limits.h>
13324#else
13325# include <assert.h>
13326#endif
13327		     Syntax error
13328_ACEOF
13329if { (ac_try="$ac_cpp conftest.$ac_ext"
13330case "(($ac_try" in
13331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332  *) ac_try_echo=$ac_try;;
13333esac
13334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13336  ac_status=$?
13337  grep -v '^ *+' conftest.er1 >conftest.err
13338  rm -f conftest.er1
13339  cat conftest.err >&5
13340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341  (exit $ac_status); } >/dev/null; then
13342  if test -s conftest.err; then
13343    ac_cpp_err=$ac_cxx_preproc_warn_flag
13344    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13345  else
13346    ac_cpp_err=
13347  fi
13348else
13349  ac_cpp_err=yes
13350fi
13351if test -z "$ac_cpp_err"; then
13352  :
13353else
13354  echo "$as_me: failed program was:" >&5
13355sed 's/^/| /' conftest.$ac_ext >&5
13356
13357  # Broken: fails on valid input.
13358continue
13359fi
13360
13361rm -f conftest.err conftest.$ac_ext
13362
13363  # OK, works on sane cases.  Now check whether nonexistent headers
13364  # can be detected and how.
13365  cat >conftest.$ac_ext <<_ACEOF
13366/* confdefs.h.  */
13367_ACEOF
13368cat confdefs.h >>conftest.$ac_ext
13369cat >>conftest.$ac_ext <<_ACEOF
13370/* end confdefs.h.  */
13371#include <ac_nonexistent.h>
13372_ACEOF
13373if { (ac_try="$ac_cpp conftest.$ac_ext"
13374case "(($ac_try" in
13375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376  *) ac_try_echo=$ac_try;;
13377esac
13378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13379  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13380  ac_status=$?
13381  grep -v '^ *+' conftest.er1 >conftest.err
13382  rm -f conftest.er1
13383  cat conftest.err >&5
13384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385  (exit $ac_status); } >/dev/null; then
13386  if test -s conftest.err; then
13387    ac_cpp_err=$ac_cxx_preproc_warn_flag
13388    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13389  else
13390    ac_cpp_err=
13391  fi
13392else
13393  ac_cpp_err=yes
13394fi
13395if test -z "$ac_cpp_err"; then
13396  # Broken: success on invalid input.
13397continue
13398else
13399  echo "$as_me: failed program was:" >&5
13400sed 's/^/| /' conftest.$ac_ext >&5
13401
13402  # Passes both tests.
13403ac_preproc_ok=:
13404break
13405fi
13406
13407rm -f conftest.err conftest.$ac_ext
13408
13409done
13410# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13411rm -f conftest.err conftest.$ac_ext
13412if $ac_preproc_ok; then
13413  :
13414else
13415  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13416See \`config.log' for more details." >&5
13417echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13418See \`config.log' for more details." >&2;}
13419   { (exit 1); exit 1; }; }
13420fi
13421
13422ac_ext=cpp
13423ac_cpp='$CXXCPP $CPPFLAGS'
13424ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13425ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13426ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13427
13428fi
13429
13430
13431ac_ext=f
13432ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13433ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13434ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13435if test -n "$ac_tool_prefix"; then
13436  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
13437  do
13438    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13439set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13440{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13442if test "${ac_cv_prog_F77+set}" = set; then
13443  echo $ECHO_N "(cached) $ECHO_C" >&6
13444else
13445  if test -n "$F77"; then
13446  ac_cv_prog_F77="$F77" # Let the user override the test.
13447else
13448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13449for as_dir in $PATH
13450do
13451  IFS=$as_save_IFS
13452  test -z "$as_dir" && as_dir=.
13453  for ac_exec_ext in '' $ac_executable_extensions; do
13454  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13455    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13456    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13457    break 2
13458  fi
13459done
13460done
13461IFS=$as_save_IFS
13462
13463fi
13464fi
13465F77=$ac_cv_prog_F77
13466if test -n "$F77"; then
13467  { echo "$as_me:$LINENO: result: $F77" >&5
13468echo "${ECHO_T}$F77" >&6; }
13469else
13470  { echo "$as_me:$LINENO: result: no" >&5
13471echo "${ECHO_T}no" >&6; }
13472fi
13473
13474
13475    test -n "$F77" && break
13476  done
13477fi
13478if test -z "$F77"; then
13479  ac_ct_F77=$F77
13480  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
13481do
13482  # Extract the first word of "$ac_prog", so it can be a program name with args.
13483set dummy $ac_prog; ac_word=$2
13484{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13486if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13487  echo $ECHO_N "(cached) $ECHO_C" >&6
13488else
13489  if test -n "$ac_ct_F77"; then
13490  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13491else
13492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13493for as_dir in $PATH
13494do
13495  IFS=$as_save_IFS
13496  test -z "$as_dir" && as_dir=.
13497  for ac_exec_ext in '' $ac_executable_extensions; do
13498  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13499    ac_cv_prog_ac_ct_F77="$ac_prog"
13500    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13501    break 2
13502  fi
13503done
13504done
13505IFS=$as_save_IFS
13506
13507fi
13508fi
13509ac_ct_F77=$ac_cv_prog_ac_ct_F77
13510if test -n "$ac_ct_F77"; then
13511  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13512echo "${ECHO_T}$ac_ct_F77" >&6; }
13513else
13514  { echo "$as_me:$LINENO: result: no" >&5
13515echo "${ECHO_T}no" >&6; }
13516fi
13517
13518
13519  test -n "$ac_ct_F77" && break
13520done
13521
13522  if test "x$ac_ct_F77" = x; then
13523    F77=""
13524  else
13525    case $cross_compiling:$ac_tool_warned in
13526yes:)
13527{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13528whose name does not start with the host triplet.  If you think this
13529configuration is useful to you, please write to autoconf@gnu.org." >&5
13530echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13531whose name does not start with the host triplet.  If you think this
13532configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13533ac_tool_warned=yes ;;
13534esac
13535    F77=$ac_ct_F77
13536  fi
13537fi
13538
13539
13540# Provide some information about the compiler.
13541echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13542ac_compiler=`set X $ac_compile; echo $2`
13543{ (ac_try="$ac_compiler --version >&5"
13544case "(($ac_try" in
13545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13546  *) ac_try_echo=$ac_try;;
13547esac
13548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13549  (eval "$ac_compiler --version >&5") 2>&5
13550  ac_status=$?
13551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552  (exit $ac_status); }
13553{ (ac_try="$ac_compiler -v >&5"
13554case "(($ac_try" in
13555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13556  *) ac_try_echo=$ac_try;;
13557esac
13558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13559  (eval "$ac_compiler -v >&5") 2>&5
13560  ac_status=$?
13561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562  (exit $ac_status); }
13563{ (ac_try="$ac_compiler -V >&5"
13564case "(($ac_try" in
13565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13566  *) ac_try_echo=$ac_try;;
13567esac
13568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13569  (eval "$ac_compiler -V >&5") 2>&5
13570  ac_status=$?
13571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572  (exit $ac_status); }
13573rm -f a.out
13574
13575# If we don't use `.F' as extension, the preprocessor is not run on the
13576# input file.  (Note that this only needs to work for GNU compilers.)
13577ac_save_ext=$ac_ext
13578ac_ext=F
13579{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13580echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13581if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13582  echo $ECHO_N "(cached) $ECHO_C" >&6
13583else
13584  cat >conftest.$ac_ext <<_ACEOF
13585      program main
13586#ifndef __GNUC__
13587       choke me
13588#endif
13589
13590      end
13591_ACEOF
13592rm -f conftest.$ac_objext
13593if { (ac_try="$ac_compile"
13594case "(($ac_try" in
13595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13596  *) ac_try_echo=$ac_try;;
13597esac
13598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13599  (eval "$ac_compile") 2>conftest.er1
13600  ac_status=$?
13601  grep -v '^ *+' conftest.er1 >conftest.err
13602  rm -f conftest.er1
13603  cat conftest.err >&5
13604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605  (exit $ac_status); } &&
13606	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13607  { (case "(($ac_try" in
13608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609  *) ac_try_echo=$ac_try;;
13610esac
13611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612  (eval "$ac_try") 2>&5
13613  ac_status=$?
13614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615  (exit $ac_status); }; } &&
13616	 { ac_try='test -s conftest.$ac_objext'
13617  { (case "(($ac_try" in
13618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619  *) ac_try_echo=$ac_try;;
13620esac
13621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622  (eval "$ac_try") 2>&5
13623  ac_status=$?
13624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625  (exit $ac_status); }; }; then
13626  ac_compiler_gnu=yes
13627else
13628  echo "$as_me: failed program was:" >&5
13629sed 's/^/| /' conftest.$ac_ext >&5
13630
13631	ac_compiler_gnu=no
13632fi
13633
13634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13635ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13636
13637fi
13638{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13639echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13640ac_ext=$ac_save_ext
13641ac_test_FFLAGS=${FFLAGS+set}
13642ac_save_FFLAGS=$FFLAGS
13643FFLAGS=
13644{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13645echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13646if test "${ac_cv_prog_f77_g+set}" = set; then
13647  echo $ECHO_N "(cached) $ECHO_C" >&6
13648else
13649  FFLAGS=-g
13650cat >conftest.$ac_ext <<_ACEOF
13651      program main
13652
13653      end
13654_ACEOF
13655rm -f conftest.$ac_objext
13656if { (ac_try="$ac_compile"
13657case "(($ac_try" in
13658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13659  *) ac_try_echo=$ac_try;;
13660esac
13661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13662  (eval "$ac_compile") 2>conftest.er1
13663  ac_status=$?
13664  grep -v '^ *+' conftest.er1 >conftest.err
13665  rm -f conftest.er1
13666  cat conftest.err >&5
13667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668  (exit $ac_status); } &&
13669	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13670  { (case "(($ac_try" in
13671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13672  *) ac_try_echo=$ac_try;;
13673esac
13674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13675  (eval "$ac_try") 2>&5
13676  ac_status=$?
13677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678  (exit $ac_status); }; } &&
13679	 { ac_try='test -s conftest.$ac_objext'
13680  { (case "(($ac_try" in
13681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13682  *) ac_try_echo=$ac_try;;
13683esac
13684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13685  (eval "$ac_try") 2>&5
13686  ac_status=$?
13687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688  (exit $ac_status); }; }; then
13689  ac_cv_prog_f77_g=yes
13690else
13691  echo "$as_me: failed program was:" >&5
13692sed 's/^/| /' conftest.$ac_ext >&5
13693
13694	ac_cv_prog_f77_g=no
13695fi
13696
13697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13698
13699fi
13700{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13701echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13702if test "$ac_test_FFLAGS" = set; then
13703  FFLAGS=$ac_save_FFLAGS
13704elif test $ac_cv_prog_f77_g = yes; then
13705  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13706    FFLAGS="-g -O2"
13707  else
13708    FFLAGS="-g"
13709  fi
13710else
13711  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13712    FFLAGS="-O2"
13713  else
13714    FFLAGS=
13715  fi
13716fi
13717
13718G77=`test $ac_compiler_gnu = yes && echo yes`
13719ac_ext=c
13720ac_cpp='$CPP $CPPFLAGS'
13721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13723ac_compiler_gnu=$ac_cv_c_compiler_gnu
13724
13725
13726
13727# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13728
13729# find the maximum length of command line arguments
13730{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13731echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13732if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13733  echo $ECHO_N "(cached) $ECHO_C" >&6
13734else
13735    i=0
13736  teststring="ABCD"
13737
13738  case $build_os in
13739  msdosdjgpp*)
13740    # On DJGPP, this test can blow up pretty badly due to problems in libc
13741    # (any single argument exceeding 2000 bytes causes a buffer overrun
13742    # during glob expansion).  Even if it were fixed, the result of this
13743    # check would be larger than it should be.
13744    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13745    ;;
13746
13747  gnu*)
13748    # Under GNU Hurd, this test is not required because there is
13749    # no limit to the length of command line arguments.
13750    # Libtool will interpret -1 as no limit whatsoever
13751    lt_cv_sys_max_cmd_len=-1;
13752    ;;
13753
13754  cygwin* | mingw*)
13755    # On Win9x/ME, this test blows up -- it succeeds, but takes
13756    # about 5 minutes as the teststring grows exponentially.
13757    # Worse, since 9x/ME are not pre-emptively multitasking,
13758    # you end up with a "frozen" computer, even though with patience
13759    # the test eventually succeeds (with a max line length of 256k).
13760    # Instead, let's just punt: use the minimum linelength reported by
13761    # all of the supported platforms: 8192 (on NT/2K/XP).
13762    lt_cv_sys_max_cmd_len=8192;
13763    ;;
13764
13765  amigaos*)
13766    # On AmigaOS with pdksh, this test takes hours, literally.
13767    # So we just punt and use a minimum line length of 8192.
13768    lt_cv_sys_max_cmd_len=8192;
13769    ;;
13770
13771  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13772    # This has been around since 386BSD, at least.  Likely further.
13773    if test -x /sbin/sysctl; then
13774      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13775    elif test -x /usr/sbin/sysctl; then
13776      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13777    else
13778      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
13779    fi
13780    # And add a safety zone
13781    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13782    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13783    ;;
13784
13785  interix*)
13786    # We know the value 262144 and hardcode it with a safety zone (like BSD)
13787    lt_cv_sys_max_cmd_len=196608
13788    ;;
13789
13790  osf*)
13791    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13792    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13793    # nice to cause kernel panics so lets avoid the loop below.
13794    # First set a reasonable default.
13795    lt_cv_sys_max_cmd_len=16384
13796    #
13797    if test -x /sbin/sysconfig; then
13798      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13799        *1*) lt_cv_sys_max_cmd_len=-1 ;;
13800      esac
13801    fi
13802    ;;
13803  sco3.2v5*)
13804    lt_cv_sys_max_cmd_len=102400
13805    ;;
13806  sysv5* | sco5v6* | sysv4.2uw2*)
13807    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13808    if test -n "$kargmax"; then
13809      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
13810    else
13811      lt_cv_sys_max_cmd_len=32768
13812    fi
13813    ;;
13814  *)
13815    # If test is not a shell built-in, we'll probably end up computing a
13816    # maximum length that is only half of the actual maximum length, but
13817    # we can't tell.
13818    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13819    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13820	       = "XX$teststring") >/dev/null 2>&1 &&
13821	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
13822	    lt_cv_sys_max_cmd_len=$new_result &&
13823	    test $i != 17 # 1/2 MB should be enough
13824    do
13825      i=`expr $i + 1`
13826      teststring=$teststring$teststring
13827    done
13828    teststring=
13829    # Add a significant safety factor because C++ compilers can tack on massive
13830    # amounts of additional arguments before passing them to the linker.
13831    # It appears as though 1/2 is a usable value.
13832    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13833    ;;
13834  esac
13835
13836fi
13837
13838if test -n $lt_cv_sys_max_cmd_len ; then
13839  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13840echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13841else
13842  { echo "$as_me:$LINENO: result: none" >&5
13843echo "${ECHO_T}none" >&6; }
13844fi
13845
13846
13847
13848
13849# Check for command to grab the raw symbol name followed by C symbol from nm.
13850{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13851echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13852if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13853  echo $ECHO_N "(cached) $ECHO_C" >&6
13854else
13855
13856# These are sane defaults that work on at least a few old systems.
13857# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13858
13859# Character class describing NM global symbol codes.
13860symcode='[BCDEGRST]'
13861
13862# Regexp to match symbols that can be accessed directly from C.
13863sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13864
13865# Transform an extracted symbol line into a proper C declaration
13866lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13867
13868# Transform an extracted symbol line into symbol name and symbol address
13869lt_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'"
13870
13871# Define system-specific variables.
13872case $host_os in
13873aix*)
13874  symcode='[BCDT]'
13875  ;;
13876cygwin* | mingw* | pw32*)
13877  symcode='[ABCDGISTW]'
13878  ;;
13879hpux*) # Its linker distinguishes data from code symbols
13880  if test "$host_cpu" = ia64; then
13881    symcode='[ABCDEGRST]'
13882  fi
13883  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13884  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'"
13885  ;;
13886linux*)
13887  if test "$host_cpu" = ia64; then
13888    symcode='[ABCDGIRSTW]'
13889    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13890    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'"
13891  fi
13892  ;;
13893irix* | nonstopux*)
13894  symcode='[BCDEGRST]'
13895  ;;
13896osf*)
13897  symcode='[BCDEGQRST]'
13898  ;;
13899solaris*)
13900  symcode='[BDRT]'
13901  ;;
13902sco3.2v5*)
13903  symcode='[DT]'
13904  ;;
13905sysv4.2uw2*)
13906  symcode='[DT]'
13907  ;;
13908sysv5* | sco5v6* | unixware* | OpenUNIX*)
13909  symcode='[ABDT]'
13910  ;;
13911sysv4)
13912  symcode='[DFNSTU]'
13913  ;;
13914esac
13915
13916# Handle CRLF in mingw tool chain
13917opt_cr=
13918case $build_os in
13919mingw*)
13920  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13921  ;;
13922esac
13923
13924# If we're using GNU nm, then use its standard symbol codes.
13925case `$NM -V 2>&1` in
13926*GNU* | *'with BFD'*)
13927  symcode='[ABCDGIRSTW]' ;;
13928esac
13929
13930# Try without a prefix undercore, then with it.
13931for ac_symprfx in "" "_"; do
13932
13933  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13934  symxfrm="\\1 $ac_symprfx\\2 \\2"
13935
13936  # Write the raw and C identifiers.
13937  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13938
13939  # Check to see that the pipe works correctly.
13940  pipe_works=no
13941
13942  rm -f conftest*
13943  cat > conftest.$ac_ext <<EOF
13944#ifdef __cplusplus
13945extern "C" {
13946#endif
13947char nm_test_var;
13948void nm_test_func(){}
13949#ifdef __cplusplus
13950}
13951#endif
13952int main(){nm_test_var='a';nm_test_func();return(0);}
13953EOF
13954
13955  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13956  (eval $ac_compile) 2>&5
13957  ac_status=$?
13958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959  (exit $ac_status); }; then
13960    # Now try to grab the symbols.
13961    nlist=conftest.nm
13962    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13963  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13964  ac_status=$?
13965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966  (exit $ac_status); } && test -s "$nlist"; then
13967      # Try sorting and uniquifying the output.
13968      if sort "$nlist" | uniq > "$nlist"T; then
13969	mv -f "$nlist"T "$nlist"
13970      else
13971	rm -f "$nlist"T
13972      fi
13973
13974      # Make sure that we snagged all the symbols we need.
13975      if grep ' nm_test_var$' "$nlist" >/dev/null; then
13976	if grep ' nm_test_func$' "$nlist" >/dev/null; then
13977	  cat <<EOF > conftest.$ac_ext
13978#ifdef __cplusplus
13979extern "C" {
13980#endif
13981
13982EOF
13983	  # Now generate the symbol file.
13984	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13985
13986	  cat <<EOF >> conftest.$ac_ext
13987#if defined (__STDC__) && __STDC__
13988# define lt_ptr_t void *
13989#else
13990# define lt_ptr_t char *
13991# define const
13992#endif
13993
13994/* The mapping between symbol names and symbols. */
13995const struct {
13996  const char *name;
13997  lt_ptr_t address;
13998}
13999lt_preloaded_symbols[] =
14000{
14001EOF
14002	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14003	  cat <<\EOF >> conftest.$ac_ext
14004  {0, (lt_ptr_t) 0}
14005};
14006
14007#ifdef __cplusplus
14008}
14009#endif
14010EOF
14011	  # Now try linking the two files.
14012	  mv conftest.$ac_objext conftstm.$ac_objext
14013	  lt_save_LIBS="$LIBS"
14014	  lt_save_CFLAGS="$CFLAGS"
14015	  LIBS="conftstm.$ac_objext"
14016	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14017	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14018  (eval $ac_link) 2>&5
14019  ac_status=$?
14020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021  (exit $ac_status); } && test -s conftest${ac_exeext}; then
14022	    pipe_works=yes
14023	  fi
14024	  LIBS="$lt_save_LIBS"
14025	  CFLAGS="$lt_save_CFLAGS"
14026	else
14027	  echo "cannot find nm_test_func in $nlist" >&5
14028	fi
14029      else
14030	echo "cannot find nm_test_var in $nlist" >&5
14031      fi
14032    else
14033      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14034    fi
14035  else
14036    echo "$progname: failed program was:" >&5
14037    cat conftest.$ac_ext >&5
14038  fi
14039  rm -f conftest* conftst*
14040
14041  # Do not use the global_symbol_pipe unless it works.
14042  if test "$pipe_works" = yes; then
14043    break
14044  else
14045    lt_cv_sys_global_symbol_pipe=
14046  fi
14047done
14048
14049fi
14050
14051if test -z "$lt_cv_sys_global_symbol_pipe"; then
14052  lt_cv_sys_global_symbol_to_cdecl=
14053fi
14054if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14055  { echo "$as_me:$LINENO: result: failed" >&5
14056echo "${ECHO_T}failed" >&6; }
14057else
14058  { echo "$as_me:$LINENO: result: ok" >&5
14059echo "${ECHO_T}ok" >&6; }
14060fi
14061
14062{ echo "$as_me:$LINENO: checking for objdir" >&5
14063echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14064if test "${lt_cv_objdir+set}" = set; then
14065  echo $ECHO_N "(cached) $ECHO_C" >&6
14066else
14067  rm -f .libs 2>/dev/null
14068mkdir .libs 2>/dev/null
14069if test -d .libs; then
14070  lt_cv_objdir=.libs
14071else
14072  # MS-DOS does not allow filenames that begin with a dot.
14073  lt_cv_objdir=_libs
14074fi
14075rmdir .libs 2>/dev/null
14076fi
14077{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14078echo "${ECHO_T}$lt_cv_objdir" >&6; }
14079objdir=$lt_cv_objdir
14080
14081
14082
14083
14084
14085case $host_os in
14086aix3*)
14087  # AIX sometimes has problems with the GCC collect2 program.  For some
14088  # reason, if we set the COLLECT_NAMES environment variable, the problems
14089  # vanish in a puff of smoke.
14090  if test "X${COLLECT_NAMES+set}" != Xset; then
14091    COLLECT_NAMES=
14092    export COLLECT_NAMES
14093  fi
14094  ;;
14095esac
14096
14097# Sed substitution that helps us do robust quoting.  It backslashifies
14098# metacharacters that are still active within double-quoted strings.
14099Xsed='sed -e 1s/^X//'
14100sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14101
14102# Same as above, but do not quote variable references.
14103double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14104
14105# Sed substitution to delay expansion of an escaped shell variable in a
14106# double_quote_subst'ed string.
14107delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14108
14109# Sed substitution to avoid accidental globbing in evaled expressions
14110no_glob_subst='s/\*/\\\*/g'
14111
14112# Constants:
14113rm="rm -f"
14114
14115# Global variables:
14116default_ofile=mklib
14117can_build_shared=yes
14118
14119# All known linkers require a `.a' archive for static linking (except MSVC,
14120# which needs '.lib').
14121libext=a
14122ltmain="$ac_aux_dir/ltmain.sh"
14123ofile="$default_ofile"
14124with_gnu_ld="$lt_cv_prog_gnu_ld"
14125
14126if test -n "$ac_tool_prefix"; then
14127  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14128set dummy ${ac_tool_prefix}ar; ac_word=$2
14129{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14131if test "${ac_cv_prog_AR+set}" = set; then
14132  echo $ECHO_N "(cached) $ECHO_C" >&6
14133else
14134  if test -n "$AR"; then
14135  ac_cv_prog_AR="$AR" # Let the user override the test.
14136else
14137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14138for as_dir in $PATH
14139do
14140  IFS=$as_save_IFS
14141  test -z "$as_dir" && as_dir=.
14142  for ac_exec_ext in '' $ac_executable_extensions; do
14143  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14144    ac_cv_prog_AR="${ac_tool_prefix}ar"
14145    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14146    break 2
14147  fi
14148done
14149done
14150IFS=$as_save_IFS
14151
14152fi
14153fi
14154AR=$ac_cv_prog_AR
14155if test -n "$AR"; then
14156  { echo "$as_me:$LINENO: result: $AR" >&5
14157echo "${ECHO_T}$AR" >&6; }
14158else
14159  { echo "$as_me:$LINENO: result: no" >&5
14160echo "${ECHO_T}no" >&6; }
14161fi
14162
14163
14164fi
14165if test -z "$ac_cv_prog_AR"; then
14166  ac_ct_AR=$AR
14167  # Extract the first word of "ar", so it can be a program name with args.
14168set dummy ar; ac_word=$2
14169{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14171if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14172  echo $ECHO_N "(cached) $ECHO_C" >&6
14173else
14174  if test -n "$ac_ct_AR"; then
14175  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14176else
14177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14178for as_dir in $PATH
14179do
14180  IFS=$as_save_IFS
14181  test -z "$as_dir" && as_dir=.
14182  for ac_exec_ext in '' $ac_executable_extensions; do
14183  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14184    ac_cv_prog_ac_ct_AR="ar"
14185    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14186    break 2
14187  fi
14188done
14189done
14190IFS=$as_save_IFS
14191
14192fi
14193fi
14194ac_ct_AR=$ac_cv_prog_ac_ct_AR
14195if test -n "$ac_ct_AR"; then
14196  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14197echo "${ECHO_T}$ac_ct_AR" >&6; }
14198else
14199  { echo "$as_me:$LINENO: result: no" >&5
14200echo "${ECHO_T}no" >&6; }
14201fi
14202
14203  if test "x$ac_ct_AR" = x; then
14204    AR="false"
14205  else
14206    case $cross_compiling:$ac_tool_warned in
14207yes:)
14208{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14209whose name does not start with the host triplet.  If you think this
14210configuration is useful to you, please write to autoconf@gnu.org." >&5
14211echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14212whose name does not start with the host triplet.  If you think this
14213configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14214ac_tool_warned=yes ;;
14215esac
14216    AR=$ac_ct_AR
14217  fi
14218else
14219  AR="$ac_cv_prog_AR"
14220fi
14221
14222if test -n "$ac_tool_prefix"; then
14223  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14224set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14225{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14227if test "${ac_cv_prog_RANLIB+set}" = set; then
14228  echo $ECHO_N "(cached) $ECHO_C" >&6
14229else
14230  if test -n "$RANLIB"; then
14231  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14232else
14233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14234for as_dir in $PATH
14235do
14236  IFS=$as_save_IFS
14237  test -z "$as_dir" && as_dir=.
14238  for ac_exec_ext in '' $ac_executable_extensions; do
14239  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14240    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14241    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14242    break 2
14243  fi
14244done
14245done
14246IFS=$as_save_IFS
14247
14248fi
14249fi
14250RANLIB=$ac_cv_prog_RANLIB
14251if test -n "$RANLIB"; then
14252  { echo "$as_me:$LINENO: result: $RANLIB" >&5
14253echo "${ECHO_T}$RANLIB" >&6; }
14254else
14255  { echo "$as_me:$LINENO: result: no" >&5
14256echo "${ECHO_T}no" >&6; }
14257fi
14258
14259
14260fi
14261if test -z "$ac_cv_prog_RANLIB"; then
14262  ac_ct_RANLIB=$RANLIB
14263  # Extract the first word of "ranlib", so it can be a program name with args.
14264set dummy ranlib; ac_word=$2
14265{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14267if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14268  echo $ECHO_N "(cached) $ECHO_C" >&6
14269else
14270  if test -n "$ac_ct_RANLIB"; then
14271  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14272else
14273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14274for as_dir in $PATH
14275do
14276  IFS=$as_save_IFS
14277  test -z "$as_dir" && as_dir=.
14278  for ac_exec_ext in '' $ac_executable_extensions; do
14279  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14280    ac_cv_prog_ac_ct_RANLIB="ranlib"
14281    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14282    break 2
14283  fi
14284done
14285done
14286IFS=$as_save_IFS
14287
14288fi
14289fi
14290ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14291if test -n "$ac_ct_RANLIB"; then
14292  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14293echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14294else
14295  { echo "$as_me:$LINENO: result: no" >&5
14296echo "${ECHO_T}no" >&6; }
14297fi
14298
14299  if test "x$ac_ct_RANLIB" = x; then
14300    RANLIB=":"
14301  else
14302    case $cross_compiling:$ac_tool_warned in
14303yes:)
14304{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14305whose name does not start with the host triplet.  If you think this
14306configuration is useful to you, please write to autoconf@gnu.org." >&5
14307echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14308whose name does not start with the host triplet.  If you think this
14309configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14310ac_tool_warned=yes ;;
14311esac
14312    RANLIB=$ac_ct_RANLIB
14313  fi
14314else
14315  RANLIB="$ac_cv_prog_RANLIB"
14316fi
14317
14318if test -n "$ac_tool_prefix"; then
14319  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14320set dummy ${ac_tool_prefix}strip; ac_word=$2
14321{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14323if test "${ac_cv_prog_STRIP+set}" = set; then
14324  echo $ECHO_N "(cached) $ECHO_C" >&6
14325else
14326  if test -n "$STRIP"; then
14327  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14328else
14329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14330for as_dir in $PATH
14331do
14332  IFS=$as_save_IFS
14333  test -z "$as_dir" && as_dir=.
14334  for ac_exec_ext in '' $ac_executable_extensions; do
14335  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14336    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14337    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14338    break 2
14339  fi
14340done
14341done
14342IFS=$as_save_IFS
14343
14344fi
14345fi
14346STRIP=$ac_cv_prog_STRIP
14347if test -n "$STRIP"; then
14348  { echo "$as_me:$LINENO: result: $STRIP" >&5
14349echo "${ECHO_T}$STRIP" >&6; }
14350else
14351  { echo "$as_me:$LINENO: result: no" >&5
14352echo "${ECHO_T}no" >&6; }
14353fi
14354
14355
14356fi
14357if test -z "$ac_cv_prog_STRIP"; then
14358  ac_ct_STRIP=$STRIP
14359  # Extract the first word of "strip", so it can be a program name with args.
14360set dummy strip; ac_word=$2
14361{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14363if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14364  echo $ECHO_N "(cached) $ECHO_C" >&6
14365else
14366  if test -n "$ac_ct_STRIP"; then
14367  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14368else
14369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14370for as_dir in $PATH
14371do
14372  IFS=$as_save_IFS
14373  test -z "$as_dir" && as_dir=.
14374  for ac_exec_ext in '' $ac_executable_extensions; do
14375  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14376    ac_cv_prog_ac_ct_STRIP="strip"
14377    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14378    break 2
14379  fi
14380done
14381done
14382IFS=$as_save_IFS
14383
14384fi
14385fi
14386ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14387if test -n "$ac_ct_STRIP"; then
14388  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14389echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14390else
14391  { echo "$as_me:$LINENO: result: no" >&5
14392echo "${ECHO_T}no" >&6; }
14393fi
14394
14395  if test "x$ac_ct_STRIP" = x; then
14396    STRIP=":"
14397  else
14398    case $cross_compiling:$ac_tool_warned in
14399yes:)
14400{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14401whose name does not start with the host triplet.  If you think this
14402configuration is useful to you, please write to autoconf@gnu.org." >&5
14403echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14404whose name does not start with the host triplet.  If you think this
14405configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14406ac_tool_warned=yes ;;
14407esac
14408    STRIP=$ac_ct_STRIP
14409  fi
14410else
14411  STRIP="$ac_cv_prog_STRIP"
14412fi
14413
14414
14415old_CC="$CC"
14416old_CFLAGS="$CFLAGS"
14417
14418# Set sane defaults for various variables
14419test -z "$AR" && AR=ar
14420test -z "$AR_FLAGS" && AR_FLAGS=cru
14421test -z "$AS" && AS=as
14422test -z "$CC" && CC=cc
14423test -z "$LTCC" && LTCC=$CC
14424test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14425test -z "$DLLTOOL" && DLLTOOL=dlltool
14426test -z "$LD" && LD=ld
14427test -z "$LN_S" && LN_S="ln -s"
14428test -z "$MAGIC_CMD" && MAGIC_CMD=file
14429test -z "$NM" && NM=nm
14430test -z "$SED" && SED=sed
14431test -z "$OBJDUMP" && OBJDUMP=objdump
14432test -z "$RANLIB" && RANLIB=:
14433test -z "$STRIP" && STRIP=:
14434test -z "$ac_objext" && ac_objext=o
14435
14436# Determine commands to create old-style static archives.
14437old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14438old_postinstall_cmds='chmod 644 $oldlib'
14439old_postuninstall_cmds=
14440
14441if test -n "$RANLIB"; then
14442  case $host_os in
14443  openbsd*)
14444    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14445    ;;
14446  *)
14447    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14448    ;;
14449  esac
14450  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14451fi
14452
14453for cc_temp in $compiler""; do
14454  case $cc_temp in
14455    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14456    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14457    \-*) ;;
14458    *) break;;
14459  esac
14460done
14461cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14462
14463
14464# Only perform the check for file, if the check method requires it
14465case $deplibs_check_method in
14466file_magic*)
14467  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14468    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14469echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14470if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14471  echo $ECHO_N "(cached) $ECHO_C" >&6
14472else
14473  case $MAGIC_CMD in
14474[\\/*] |  ?:[\\/]*)
14475  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14476  ;;
14477*)
14478  lt_save_MAGIC_CMD="$MAGIC_CMD"
14479  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14480  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14481  for ac_dir in $ac_dummy; do
14482    IFS="$lt_save_ifs"
14483    test -z "$ac_dir" && ac_dir=.
14484    if test -f $ac_dir/${ac_tool_prefix}file; then
14485      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14486      if test -n "$file_magic_test_file"; then
14487	case $deplibs_check_method in
14488	"file_magic "*)
14489	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14490	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14491	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14492	    $EGREP "$file_magic_regex" > /dev/null; then
14493	    :
14494	  else
14495	    cat <<EOF 1>&2
14496
14497*** Warning: the command libtool uses to detect shared libraries,
14498*** $file_magic_cmd, produces output that libtool cannot recognize.
14499*** The result is that libtool may fail to recognize shared libraries
14500*** as such.  This will affect the creation of libtool libraries that
14501*** depend on shared libraries, but programs linked with such libtool
14502*** libraries will work regardless of this problem.  Nevertheless, you
14503*** may want to report the problem to your system manager and/or to
14504*** bug-libtool@gnu.org
14505
14506EOF
14507	  fi ;;
14508	esac
14509      fi
14510      break
14511    fi
14512  done
14513  IFS="$lt_save_ifs"
14514  MAGIC_CMD="$lt_save_MAGIC_CMD"
14515  ;;
14516esac
14517fi
14518
14519MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14520if test -n "$MAGIC_CMD"; then
14521  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14522echo "${ECHO_T}$MAGIC_CMD" >&6; }
14523else
14524  { echo "$as_me:$LINENO: result: no" >&5
14525echo "${ECHO_T}no" >&6; }
14526fi
14527
14528if test -z "$lt_cv_path_MAGIC_CMD"; then
14529  if test -n "$ac_tool_prefix"; then
14530    { echo "$as_me:$LINENO: checking for file" >&5
14531echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14532if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14533  echo $ECHO_N "(cached) $ECHO_C" >&6
14534else
14535  case $MAGIC_CMD in
14536[\\/*] |  ?:[\\/]*)
14537  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14538  ;;
14539*)
14540  lt_save_MAGIC_CMD="$MAGIC_CMD"
14541  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14542  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14543  for ac_dir in $ac_dummy; do
14544    IFS="$lt_save_ifs"
14545    test -z "$ac_dir" && ac_dir=.
14546    if test -f $ac_dir/file; then
14547      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14548      if test -n "$file_magic_test_file"; then
14549	case $deplibs_check_method in
14550	"file_magic "*)
14551	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14552	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14553	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14554	    $EGREP "$file_magic_regex" > /dev/null; then
14555	    :
14556	  else
14557	    cat <<EOF 1>&2
14558
14559*** Warning: the command libtool uses to detect shared libraries,
14560*** $file_magic_cmd, produces output that libtool cannot recognize.
14561*** The result is that libtool may fail to recognize shared libraries
14562*** as such.  This will affect the creation of libtool libraries that
14563*** depend on shared libraries, but programs linked with such libtool
14564*** libraries will work regardless of this problem.  Nevertheless, you
14565*** may want to report the problem to your system manager and/or to
14566*** bug-libtool@gnu.org
14567
14568EOF
14569	  fi ;;
14570	esac
14571      fi
14572      break
14573    fi
14574  done
14575  IFS="$lt_save_ifs"
14576  MAGIC_CMD="$lt_save_MAGIC_CMD"
14577  ;;
14578esac
14579fi
14580
14581MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14582if test -n "$MAGIC_CMD"; then
14583  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14584echo "${ECHO_T}$MAGIC_CMD" >&6; }
14585else
14586  { echo "$as_me:$LINENO: result: no" >&5
14587echo "${ECHO_T}no" >&6; }
14588fi
14589
14590  else
14591    MAGIC_CMD=:
14592  fi
14593fi
14594
14595  fi
14596  ;;
14597esac
14598
14599enable_dlopen=yes
14600enable_win32_dll=no
14601
14602# Check whether --enable-libtool-lock was given.
14603if test "${enable_libtool_lock+set}" = set; then
14604  enableval=$enable_libtool_lock;
14605fi
14606
14607test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14608
14609
14610# Check whether --with-pic was given.
14611if test "${with_pic+set}" = set; then
14612  withval=$with_pic; pic_mode="$withval"
14613else
14614  pic_mode=default
14615fi
14616
14617test -z "$pic_mode" && pic_mode=default
14618
14619# Use C for the default configuration in the libtool script
14620tagname=
14621lt_save_CC="$CC"
14622ac_ext=c
14623ac_cpp='$CPP $CPPFLAGS'
14624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14626ac_compiler_gnu=$ac_cv_c_compiler_gnu
14627
14628
14629# Source file extension for C test sources.
14630ac_ext=c
14631
14632# Object file extension for compiled C test sources.
14633objext=o
14634objext=$objext
14635
14636# Code to be used in simple compile tests
14637lt_simple_compile_test_code="int some_variable = 0;\n"
14638
14639# Code to be used in simple link tests
14640lt_simple_link_test_code='int main(){return(0);}\n'
14641
14642
14643# If no C compiler was specified, use CC.
14644LTCC=${LTCC-"$CC"}
14645
14646# If no C compiler flags were specified, use CFLAGS.
14647LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14648
14649# Allow CC to be a program name with arguments.
14650compiler=$CC
14651
14652
14653# save warnings/boilerplate of simple test code
14654ac_outfile=conftest.$ac_objext
14655printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14656eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14657_lt_compiler_boilerplate=`cat conftest.err`
14658$rm conftest*
14659
14660ac_outfile=conftest.$ac_objext
14661printf "$lt_simple_link_test_code" >conftest.$ac_ext
14662eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14663_lt_linker_boilerplate=`cat conftest.err`
14664$rm conftest*
14665
14666
14667
14668lt_prog_compiler_no_builtin_flag=
14669
14670if test "$GCC" = yes; then
14671  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14672
14673
14674{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14675echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14676if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14677  echo $ECHO_N "(cached) $ECHO_C" >&6
14678else
14679  lt_cv_prog_compiler_rtti_exceptions=no
14680  ac_outfile=conftest.$ac_objext
14681   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14682   lt_compiler_flag="-fno-rtti -fno-exceptions"
14683   # Insert the option either (1) after the last *FLAGS variable, or
14684   # (2) before a word containing "conftest.", or (3) at the end.
14685   # Note that $ac_compile itself does not contain backslashes and begins
14686   # with a dollar sign (not a hyphen), so the echo should work correctly.
14687   # The option is referenced via a variable to avoid confusing sed.
14688   lt_compile=`echo "$ac_compile" | $SED \
14689   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14690   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14691   -e 's:$: $lt_compiler_flag:'`
14692   (eval echo "\"\$as_me:14692: $lt_compile\"" >&5)
14693   (eval "$lt_compile" 2>conftest.err)
14694   ac_status=$?
14695   cat conftest.err >&5
14696   echo "$as_me:14696: \$? = $ac_status" >&5
14697   if (exit $ac_status) && test -s "$ac_outfile"; then
14698     # The compiler can only warn and ignore the option if not recognized
14699     # So say no if there are warnings other than the usual output.
14700     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14701     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14702     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14703       lt_cv_prog_compiler_rtti_exceptions=yes
14704     fi
14705   fi
14706   $rm conftest*
14707
14708fi
14709{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14710echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14711
14712if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14713    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14714else
14715    :
14716fi
14717
14718fi
14719
14720lt_prog_compiler_wl=
14721lt_prog_compiler_pic=
14722lt_prog_compiler_static=
14723
14724{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14725echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14726
14727  if test "$GCC" = yes; then
14728    lt_prog_compiler_wl='-Wl,'
14729    lt_prog_compiler_static='-static'
14730
14731    case $host_os in
14732      aix*)
14733      # All AIX code is PIC.
14734      if test "$host_cpu" = ia64; then
14735	# AIX 5 now supports IA64 processor
14736	lt_prog_compiler_static='-Bstatic'
14737      fi
14738      ;;
14739
14740    amigaos*)
14741      # FIXME: we need at least 68020 code to build shared libraries, but
14742      # adding the `-m68020' flag to GCC prevents building anything better,
14743      # like `-m68040'.
14744      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14745      ;;
14746
14747    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14748      # PIC is the default for these OSes.
14749      ;;
14750
14751    mingw* | pw32* | os2*)
14752      # This hack is so that the source file can tell whether it is being
14753      # built for inclusion in a dll (and should export symbols for example).
14754      lt_prog_compiler_pic='-DDLL_EXPORT'
14755      ;;
14756
14757    darwin* | rhapsody*)
14758      # PIC is the default on this platform
14759      # Common symbols not allowed in MH_DYLIB files
14760      lt_prog_compiler_pic='-fno-common'
14761      ;;
14762
14763    interix3*)
14764      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14765      # Instead, we relocate shared libraries at runtime.
14766      ;;
14767
14768    msdosdjgpp*)
14769      # Just because we use GCC doesn't mean we suddenly get shared libraries
14770      # on systems that don't support them.
14771      lt_prog_compiler_can_build_shared=no
14772      enable_shared=no
14773      ;;
14774
14775    sysv4*MP*)
14776      if test -d /usr/nec; then
14777	lt_prog_compiler_pic=-Kconform_pic
14778      fi
14779      ;;
14780
14781    hpux*)
14782      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14783      # not for PA HP-UX.
14784      case $host_cpu in
14785      hppa*64*|ia64*)
14786	# +Z the default
14787	;;
14788      *)
14789	lt_prog_compiler_pic='-fPIC'
14790	;;
14791      esac
14792      ;;
14793
14794    *)
14795      lt_prog_compiler_pic='-fPIC'
14796      ;;
14797    esac
14798  else
14799    # PORTME Check for flag to pass linker flags through the system compiler.
14800    case $host_os in
14801    aix*)
14802      lt_prog_compiler_wl='-Wl,'
14803      if test "$host_cpu" = ia64; then
14804	# AIX 5 now supports IA64 processor
14805	lt_prog_compiler_static='-Bstatic'
14806      else
14807	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14808      fi
14809      ;;
14810      darwin*)
14811        # PIC is the default on this platform
14812        # Common symbols not allowed in MH_DYLIB files
14813       case $cc_basename in
14814         xlc*)
14815         lt_prog_compiler_pic='-qnocommon'
14816         lt_prog_compiler_wl='-Wl,'
14817         ;;
14818       esac
14819       ;;
14820
14821    mingw* | pw32* | os2*)
14822      # This hack is so that the source file can tell whether it is being
14823      # built for inclusion in a dll (and should export symbols for example).
14824      lt_prog_compiler_pic='-DDLL_EXPORT'
14825      ;;
14826
14827    hpux9* | hpux10* | hpux11*)
14828      lt_prog_compiler_wl='-Wl,'
14829      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14830      # not for PA HP-UX.
14831      case $host_cpu in
14832      hppa*64*|ia64*)
14833	# +Z the default
14834	;;
14835      *)
14836	lt_prog_compiler_pic='+Z'
14837	;;
14838      esac
14839      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14840      lt_prog_compiler_static='${wl}-a ${wl}archive'
14841      ;;
14842
14843    irix5* | irix6* | nonstopux*)
14844      lt_prog_compiler_wl='-Wl,'
14845      # PIC (with -KPIC) is the default.
14846      lt_prog_compiler_static='-non_shared'
14847      ;;
14848
14849    newsos6)
14850      lt_prog_compiler_pic='-KPIC'
14851      lt_prog_compiler_static='-Bstatic'
14852      ;;
14853
14854    linux*)
14855      case $cc_basename in
14856      icc* | ecc*)
14857	lt_prog_compiler_wl='-Wl,'
14858	lt_prog_compiler_pic='-KPIC'
14859	lt_prog_compiler_static='-static'
14860        ;;
14861      pgcc* | pgf77* | pgf90* | pgf95*)
14862        # Portland Group compilers (*not* the Pentium gcc compiler,
14863	# which looks to be a dead project)
14864	lt_prog_compiler_wl='-Wl,'
14865	lt_prog_compiler_pic='-fpic'
14866	lt_prog_compiler_static='-Bstatic'
14867        ;;
14868      ccc*)
14869        lt_prog_compiler_wl='-Wl,'
14870        # All Alpha code is PIC.
14871        lt_prog_compiler_static='-non_shared'
14872        ;;
14873      esac
14874      ;;
14875
14876    osf3* | osf4* | osf5*)
14877      lt_prog_compiler_wl='-Wl,'
14878      # All OSF/1 code is PIC.
14879      lt_prog_compiler_static='-non_shared'
14880      ;;
14881
14882    solaris*)
14883      lt_prog_compiler_pic='-KPIC'
14884      lt_prog_compiler_static='-Bstatic'
14885      case $cc_basename in
14886      f77* | f90* | f95*)
14887	lt_prog_compiler_wl='-Qoption ld ';;
14888      *)
14889	lt_prog_compiler_wl='-Wl,';;
14890      esac
14891      ;;
14892
14893    sunos4*)
14894      lt_prog_compiler_wl='-Qoption ld '
14895      lt_prog_compiler_pic='-PIC'
14896      lt_prog_compiler_static='-Bstatic'
14897      ;;
14898
14899    sysv4 | sysv4.2uw2* | sysv4.3*)
14900      lt_prog_compiler_wl='-Wl,'
14901      lt_prog_compiler_pic='-KPIC'
14902      lt_prog_compiler_static='-Bstatic'
14903      ;;
14904
14905    sysv4*MP*)
14906      if test -d /usr/nec ;then
14907	lt_prog_compiler_pic='-Kconform_pic'
14908	lt_prog_compiler_static='-Bstatic'
14909      fi
14910      ;;
14911
14912    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14913      lt_prog_compiler_wl='-Wl,'
14914      lt_prog_compiler_pic='-KPIC'
14915      lt_prog_compiler_static='-Bstatic'
14916      ;;
14917
14918    unicos*)
14919      lt_prog_compiler_wl='-Wl,'
14920      lt_prog_compiler_can_build_shared=no
14921      ;;
14922
14923    uts4*)
14924      lt_prog_compiler_pic='-pic'
14925      lt_prog_compiler_static='-Bstatic'
14926      ;;
14927
14928    *)
14929      lt_prog_compiler_can_build_shared=no
14930      ;;
14931    esac
14932  fi
14933
14934{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14935echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14936
14937#
14938# Check to make sure the PIC flag actually works.
14939#
14940if test -n "$lt_prog_compiler_pic"; then
14941
14942{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14943echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14944if test "${lt_prog_compiler_pic_works+set}" = set; then
14945  echo $ECHO_N "(cached) $ECHO_C" >&6
14946else
14947  lt_prog_compiler_pic_works=no
14948  ac_outfile=conftest.$ac_objext
14949   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14950   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14951   # Insert the option either (1) after the last *FLAGS variable, or
14952   # (2) before a word containing "conftest.", or (3) at the end.
14953   # Note that $ac_compile itself does not contain backslashes and begins
14954   # with a dollar sign (not a hyphen), so the echo should work correctly.
14955   # The option is referenced via a variable to avoid confusing sed.
14956   lt_compile=`echo "$ac_compile" | $SED \
14957   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14958   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14959   -e 's:$: $lt_compiler_flag:'`
14960   (eval echo "\"\$as_me:14960: $lt_compile\"" >&5)
14961   (eval "$lt_compile" 2>conftest.err)
14962   ac_status=$?
14963   cat conftest.err >&5
14964   echo "$as_me:14964: \$? = $ac_status" >&5
14965   if (exit $ac_status) && test -s "$ac_outfile"; then
14966     # The compiler can only warn and ignore the option if not recognized
14967     # So say no if there are warnings other than the usual output.
14968     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14969     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14970     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14971       lt_prog_compiler_pic_works=yes
14972     fi
14973   fi
14974   $rm conftest*
14975
14976fi
14977{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14978echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14979
14980if test x"$lt_prog_compiler_pic_works" = xyes; then
14981    case $lt_prog_compiler_pic in
14982     "" | " "*) ;;
14983     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14984     esac
14985else
14986    lt_prog_compiler_pic=
14987     lt_prog_compiler_can_build_shared=no
14988fi
14989
14990fi
14991case $host_os in
14992  # For platforms which do not support PIC, -DPIC is meaningless:
14993  *djgpp*)
14994    lt_prog_compiler_pic=
14995    ;;
14996  *)
14997    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14998    ;;
14999esac
15000
15001#
15002# Check to make sure the static flag actually works.
15003#
15004wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15005{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15006echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15007if test "${lt_prog_compiler_static_works+set}" = set; then
15008  echo $ECHO_N "(cached) $ECHO_C" >&6
15009else
15010  lt_prog_compiler_static_works=no
15011   save_LDFLAGS="$LDFLAGS"
15012   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15013   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15014   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15015     # The linker can only warn and ignore the option if not recognized
15016     # So say no if there are warnings
15017     if test -s conftest.err; then
15018       # Append any errors to the config.log.
15019       cat conftest.err 1>&5
15020       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15021       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15022       if diff conftest.exp conftest.er2 >/dev/null; then
15023         lt_prog_compiler_static_works=yes
15024       fi
15025     else
15026       lt_prog_compiler_static_works=yes
15027     fi
15028   fi
15029   $rm conftest*
15030   LDFLAGS="$save_LDFLAGS"
15031
15032fi
15033{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15034echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15035
15036if test x"$lt_prog_compiler_static_works" = xyes; then
15037    :
15038else
15039    lt_prog_compiler_static=
15040fi
15041
15042
15043{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15044echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15045if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15046  echo $ECHO_N "(cached) $ECHO_C" >&6
15047else
15048  lt_cv_prog_compiler_c_o=no
15049   $rm -r conftest 2>/dev/null
15050   mkdir conftest
15051   cd conftest
15052   mkdir out
15053   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15054
15055   lt_compiler_flag="-o out/conftest2.$ac_objext"
15056   # Insert the option either (1) after the last *FLAGS variable, or
15057   # (2) before a word containing "conftest.", or (3) at the end.
15058   # Note that $ac_compile itself does not contain backslashes and begins
15059   # with a dollar sign (not a hyphen), so the echo should work correctly.
15060   lt_compile=`echo "$ac_compile" | $SED \
15061   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15062   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15063   -e 's:$: $lt_compiler_flag:'`
15064   (eval echo "\"\$as_me:15064: $lt_compile\"" >&5)
15065   (eval "$lt_compile" 2>out/conftest.err)
15066   ac_status=$?
15067   cat out/conftest.err >&5
15068   echo "$as_me:15068: \$? = $ac_status" >&5
15069   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15070   then
15071     # The compiler can only warn and ignore the option if not recognized
15072     # So say no if there are warnings
15073     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15074     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15075     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15076       lt_cv_prog_compiler_c_o=yes
15077     fi
15078   fi
15079   chmod u+w . 2>&5
15080   $rm conftest*
15081   # SGI C++ compiler will create directory out/ii_files/ for
15082   # template instantiation
15083   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15084   $rm out/* && rmdir out
15085   cd ..
15086   rmdir conftest
15087   $rm conftest*
15088
15089fi
15090{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15091echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15092
15093
15094hard_links="nottested"
15095if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15096  # do not overwrite the value of need_locks provided by the user
15097  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15098echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15099  hard_links=yes
15100  $rm conftest*
15101  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15102  touch conftest.a
15103  ln conftest.a conftest.b 2>&5 || hard_links=no
15104  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15105  { echo "$as_me:$LINENO: result: $hard_links" >&5
15106echo "${ECHO_T}$hard_links" >&6; }
15107  if test "$hard_links" = no; then
15108    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15109echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15110    need_locks=warn
15111  fi
15112else
15113  need_locks=no
15114fi
15115
15116{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15117echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15118
15119  runpath_var=
15120  allow_undefined_flag=
15121  enable_shared_with_static_runtimes=no
15122  archive_cmds=
15123  archive_expsym_cmds=
15124  old_archive_From_new_cmds=
15125  old_archive_from_expsyms_cmds=
15126  export_dynamic_flag_spec=
15127  whole_archive_flag_spec=
15128  thread_safe_flag_spec=
15129  hardcode_libdir_flag_spec=
15130  hardcode_libdir_flag_spec_ld=
15131  hardcode_libdir_separator=
15132  hardcode_direct=no
15133  hardcode_minus_L=no
15134  hardcode_shlibpath_var=unsupported
15135  link_all_deplibs=unknown
15136  hardcode_automatic=no
15137  module_cmds=
15138  module_expsym_cmds=
15139  always_export_symbols=no
15140  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15141  # include_expsyms should be a list of space-separated symbols to be *always*
15142  # included in the symbol list
15143  include_expsyms=
15144  # exclude_expsyms can be an extended regexp of symbols to exclude
15145  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15146  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15147  # as well as any symbol that contains `d'.
15148  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15149  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15150  # platforms (ab)use it in PIC code, but their linkers get confused if
15151  # the symbol is explicitly referenced.  Since portable code cannot
15152  # rely on this symbol name, it's probably fine to never include it in
15153  # preloaded symbol tables.
15154  extract_expsyms_cmds=
15155  # Just being paranoid about ensuring that cc_basename is set.
15156  for cc_temp in $compiler""; do
15157  case $cc_temp in
15158    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15159    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15160    \-*) ;;
15161    *) break;;
15162  esac
15163done
15164cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15165
15166  case $host_os in
15167  cygwin* | mingw* | pw32*)
15168    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15169    # When not using gcc, we currently assume that we are using
15170    # Microsoft Visual C++.
15171    if test "$GCC" != yes; then
15172      with_gnu_ld=no
15173    fi
15174    ;;
15175  interix*)
15176    # we just hope/assume this is gcc and not c89 (= MSVC++)
15177    with_gnu_ld=yes
15178    ;;
15179  openbsd*)
15180    with_gnu_ld=no
15181    ;;
15182  esac
15183
15184  ld_shlibs=yes
15185  if test "$with_gnu_ld" = yes; then
15186    # If archive_cmds runs LD, not CC, wlarc should be empty
15187    wlarc='${wl}'
15188
15189    # Set some defaults for GNU ld with shared library support. These
15190    # are reset later if shared libraries are not supported. Putting them
15191    # here allows them to be overridden if necessary.
15192    runpath_var=LD_RUN_PATH
15193    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15194    export_dynamic_flag_spec='${wl}--export-dynamic'
15195    # ancient GNU ld didn't support --whole-archive et. al.
15196    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15197	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15198      else
15199  	whole_archive_flag_spec=
15200    fi
15201    supports_anon_versioning=no
15202    case `$LD -v 2>/dev/null` in
15203      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15204      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15205      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15206      *\ 2.11.*) ;; # other 2.11 versions
15207      *) supports_anon_versioning=yes ;;
15208    esac
15209
15210    # See if GNU ld supports shared libraries.
15211    case $host_os in
15212    aix3* | aix4* | aix5*)
15213      # On AIX/PPC, the GNU linker is very broken
15214      if test "$host_cpu" != ia64; then
15215	ld_shlibs=no
15216	cat <<EOF 1>&2
15217
15218*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15219*** to be unable to reliably create shared libraries on AIX.
15220*** Therefore, libtool is disabling shared libraries support.  If you
15221*** really care for shared libraries, you may want to modify your PATH
15222*** so that a non-GNU linker is found, and then restart.
15223
15224EOF
15225      fi
15226      ;;
15227
15228    amigaos*)
15229      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)'
15230      hardcode_libdir_flag_spec='-L$libdir'
15231      hardcode_minus_L=yes
15232
15233      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15234      # that the semantics of dynamic libraries on AmigaOS, at least up
15235      # to version 4, is to share data among multiple programs linked
15236      # with the same dynamic library.  Since this doesn't match the
15237      # behavior of shared libraries on other platforms, we can't use
15238      # them.
15239      ld_shlibs=no
15240      ;;
15241
15242    beos*)
15243      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15244	allow_undefined_flag=unsupported
15245	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15246	# support --undefined.  This deserves some investigation.  FIXME
15247	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15248      else
15249	ld_shlibs=no
15250      fi
15251      ;;
15252
15253    cygwin* | mingw* | pw32*)
15254      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15255      # as there is no search path for DLLs.
15256      hardcode_libdir_flag_spec='-L$libdir'
15257      allow_undefined_flag=unsupported
15258      always_export_symbols=no
15259      enable_shared_with_static_runtimes=yes
15260      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15261
15262      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15263        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15264	# If the export-symbols file already is a .def file (1st line
15265	# is EXPORTS), use it as is; otherwise, prepend...
15266	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15267	  cp $export_symbols $output_objdir/$soname.def;
15268	else
15269	  echo EXPORTS > $output_objdir/$soname.def;
15270	  cat $export_symbols >> $output_objdir/$soname.def;
15271	fi~
15272	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15273      else
15274	ld_shlibs=no
15275      fi
15276      ;;
15277
15278    interix3*)
15279      hardcode_direct=no
15280      hardcode_shlibpath_var=no
15281      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15282      export_dynamic_flag_spec='${wl}-E'
15283      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15284      # Instead, shared libraries are loaded at an image base (0x10000000 by
15285      # default) and relocated if they conflict, which is a slow very memory
15286      # consuming and fragmenting process.  To avoid this, we pick a random,
15287      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15288      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15289      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15290      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'
15291      ;;
15292
15293    linux*)
15294      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15295	tmp_addflag=
15296	case $cc_basename,$host_cpu in
15297	pgcc*)				# Portland Group C compiler
15298	  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'
15299	  tmp_addflag=' $pic_flag'
15300	  ;;
15301	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15302	  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'
15303	  tmp_addflag=' $pic_flag -Mnomain' ;;
15304	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15305	  tmp_addflag=' -i_dynamic' ;;
15306	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15307	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15308	ifc* | ifort*)			# Intel Fortran compiler
15309	  tmp_addflag=' -nofor_main' ;;
15310	esac
15311	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15312
15313	if test $supports_anon_versioning = yes; then
15314	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15315  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15316  $echo "local: *; };" >> $output_objdir/$libname.ver~
15317	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15318	fi
15319      else
15320	ld_shlibs=no
15321      fi
15322      ;;
15323
15324    netbsd*)
15325      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15326	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15327	wlarc=
15328      else
15329	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15330	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15331      fi
15332      ;;
15333
15334    solaris*)
15335      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15336	ld_shlibs=no
15337	cat <<EOF 1>&2
15338
15339*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15340*** create shared libraries on Solaris systems.  Therefore, libtool
15341*** is disabling shared libraries support.  We urge you to upgrade GNU
15342*** binutils to release 2.9.1 or newer.  Another option is to modify
15343*** your PATH or compiler configuration so that the native linker is
15344*** used, and then restart.
15345
15346EOF
15347      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15348	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15349	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15350      else
15351	ld_shlibs=no
15352      fi
15353      ;;
15354
15355    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15356      case `$LD -v 2>&1` in
15357        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15358	ld_shlibs=no
15359	cat <<_LT_EOF 1>&2
15360
15361*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15362*** reliably create shared libraries on SCO systems.  Therefore, libtool
15363*** is disabling shared libraries support.  We urge you to upgrade GNU
15364*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15365*** your PATH or compiler configuration so that the native linker is
15366*** used, and then restart.
15367
15368_LT_EOF
15369	;;
15370	*)
15371	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15372	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15373	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15374	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15375	  else
15376	    ld_shlibs=no
15377	  fi
15378	;;
15379      esac
15380      ;;
15381
15382    sunos4*)
15383      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15384      wlarc=
15385      hardcode_direct=yes
15386      hardcode_shlibpath_var=no
15387      ;;
15388
15389    *)
15390      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15391	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15392	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15393      else
15394	ld_shlibs=no
15395      fi
15396      ;;
15397    esac
15398
15399    if test "$ld_shlibs" = no; then
15400      runpath_var=
15401      hardcode_libdir_flag_spec=
15402      export_dynamic_flag_spec=
15403      whole_archive_flag_spec=
15404    fi
15405  else
15406    # PORTME fill in a description of your system's linker (not GNU ld)
15407    case $host_os in
15408    aix3*)
15409      allow_undefined_flag=unsupported
15410      always_export_symbols=yes
15411      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'
15412      # Note: this linker hardcodes the directories in LIBPATH if there
15413      # are no directories specified by -L.
15414      hardcode_minus_L=yes
15415      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15416	# Neither direct hardcoding nor static linking is supported with a
15417	# broken collect2.
15418	hardcode_direct=unsupported
15419      fi
15420      ;;
15421
15422    aix4* | aix5*)
15423      if test "$host_cpu" = ia64; then
15424	# On IA64, the linker does run time linking by default, so we don't
15425	# have to do anything special.
15426	aix_use_runtimelinking=no
15427	exp_sym_flag='-Bexport'
15428	no_entry_flag=""
15429      else
15430	# If we're using GNU nm, then we don't want the "-C" option.
15431	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15432	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15433	  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'
15434	else
15435	  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'
15436	fi
15437	aix_use_runtimelinking=no
15438
15439	# Test if we are trying to use run time linking or normal
15440	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15441	# need to do runtime linking.
15442	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15443	  for ld_flag in $LDFLAGS; do
15444  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15445  	    aix_use_runtimelinking=yes
15446  	    break
15447  	  fi
15448	  done
15449	  ;;
15450	esac
15451
15452	exp_sym_flag='-bexport'
15453	no_entry_flag='-bnoentry'
15454      fi
15455
15456      # When large executables or shared objects are built, AIX ld can
15457      # have problems creating the table of contents.  If linking a library
15458      # or program results in "error TOC overflow" add -mminimal-toc to
15459      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15460      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15461
15462      archive_cmds=''
15463      hardcode_direct=yes
15464      hardcode_libdir_separator=':'
15465      link_all_deplibs=yes
15466
15467      if test "$GCC" = yes; then
15468	case $host_os in aix4.[012]|aix4.[012].*)
15469	# We only want to do this on AIX 4.2 and lower, the check
15470	# below for broken collect2 doesn't work under 4.3+
15471	  collect2name=`${CC} -print-prog-name=collect2`
15472	  if test -f "$collect2name" && \
15473  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15474	  then
15475  	  # We have reworked collect2
15476  	  hardcode_direct=yes
15477	  else
15478  	  # We have old collect2
15479  	  hardcode_direct=unsupported
15480  	  # It fails to find uninstalled libraries when the uninstalled
15481  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15482  	  # to unsupported forces relinking
15483  	  hardcode_minus_L=yes
15484  	  hardcode_libdir_flag_spec='-L$libdir'
15485  	  hardcode_libdir_separator=
15486	  fi
15487	  ;;
15488	esac
15489	shared_flag='-shared'
15490	if test "$aix_use_runtimelinking" = yes; then
15491	  shared_flag="$shared_flag "'${wl}-G'
15492	fi
15493      else
15494	# not using gcc
15495	if test "$host_cpu" = ia64; then
15496  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15497  	# chokes on -Wl,-G. The following line is correct:
15498	  shared_flag='-G'
15499	else
15500	  if test "$aix_use_runtimelinking" = yes; then
15501	    shared_flag='${wl}-G'
15502	  else
15503	    shared_flag='${wl}-bM:SRE'
15504	  fi
15505	fi
15506      fi
15507
15508      # It seems that -bexpall does not export symbols beginning with
15509      # underscore (_), so it is better to generate a list of symbols to export.
15510      always_export_symbols=yes
15511      if test "$aix_use_runtimelinking" = yes; then
15512	# Warning - without using the other runtime loading flags (-brtl),
15513	# -berok will link without error, but may produce a broken library.
15514	allow_undefined_flag='-berok'
15515       # Determine the default libpath from the value encoded in an empty executable.
15516       cat >conftest.$ac_ext <<_ACEOF
15517/* confdefs.h.  */
15518_ACEOF
15519cat confdefs.h >>conftest.$ac_ext
15520cat >>conftest.$ac_ext <<_ACEOF
15521/* end confdefs.h.  */
15522
15523int
15524main ()
15525{
15526
15527  ;
15528  return 0;
15529}
15530_ACEOF
15531rm -f conftest.$ac_objext conftest$ac_exeext
15532if { (ac_try="$ac_link"
15533case "(($ac_try" in
15534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15535  *) ac_try_echo=$ac_try;;
15536esac
15537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15538  (eval "$ac_link") 2>conftest.er1
15539  ac_status=$?
15540  grep -v '^ *+' conftest.er1 >conftest.err
15541  rm -f conftest.er1
15542  cat conftest.err >&5
15543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544  (exit $ac_status); } &&
15545	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15546  { (case "(($ac_try" in
15547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548  *) ac_try_echo=$ac_try;;
15549esac
15550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551  (eval "$ac_try") 2>&5
15552  ac_status=$?
15553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554  (exit $ac_status); }; } &&
15555	 { ac_try='test -s conftest$ac_exeext'
15556  { (case "(($ac_try" in
15557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15558  *) ac_try_echo=$ac_try;;
15559esac
15560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15561  (eval "$ac_try") 2>&5
15562  ac_status=$?
15563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564  (exit $ac_status); }; }; then
15565
15566aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15567}'`
15568# Check for a 64-bit object if we didn't find anything.
15569if 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; }
15570}'`; fi
15571else
15572  echo "$as_me: failed program was:" >&5
15573sed 's/^/| /' conftest.$ac_ext >&5
15574
15575
15576fi
15577
15578rm -f core conftest.err conftest.$ac_objext \
15579      conftest$ac_exeext conftest.$ac_ext
15580if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15581
15582       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15583	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"
15584       else
15585	if test "$host_cpu" = ia64; then
15586	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15587	  allow_undefined_flag="-z nodefs"
15588	  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"
15589	else
15590	 # Determine the default libpath from the value encoded in an empty executable.
15591	 cat >conftest.$ac_ext <<_ACEOF
15592/* confdefs.h.  */
15593_ACEOF
15594cat confdefs.h >>conftest.$ac_ext
15595cat >>conftest.$ac_ext <<_ACEOF
15596/* end confdefs.h.  */
15597
15598int
15599main ()
15600{
15601
15602  ;
15603  return 0;
15604}
15605_ACEOF
15606rm -f conftest.$ac_objext conftest$ac_exeext
15607if { (ac_try="$ac_link"
15608case "(($ac_try" in
15609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610  *) ac_try_echo=$ac_try;;
15611esac
15612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15613  (eval "$ac_link") 2>conftest.er1
15614  ac_status=$?
15615  grep -v '^ *+' conftest.er1 >conftest.err
15616  rm -f conftest.er1
15617  cat conftest.err >&5
15618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619  (exit $ac_status); } &&
15620	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15621  { (case "(($ac_try" in
15622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623  *) ac_try_echo=$ac_try;;
15624esac
15625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15626  (eval "$ac_try") 2>&5
15627  ac_status=$?
15628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629  (exit $ac_status); }; } &&
15630	 { ac_try='test -s conftest$ac_exeext'
15631  { (case "(($ac_try" in
15632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15633  *) ac_try_echo=$ac_try;;
15634esac
15635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15636  (eval "$ac_try") 2>&5
15637  ac_status=$?
15638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639  (exit $ac_status); }; }; then
15640
15641aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15642}'`
15643# Check for a 64-bit object if we didn't find anything.
15644if 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; }
15645}'`; fi
15646else
15647  echo "$as_me: failed program was:" >&5
15648sed 's/^/| /' conftest.$ac_ext >&5
15649
15650
15651fi
15652
15653rm -f core conftest.err conftest.$ac_objext \
15654      conftest$ac_exeext conftest.$ac_ext
15655if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15656
15657	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15658	  # Warning - without using the other run time loading flags,
15659	  # -berok will link without error, but may produce a broken library.
15660	  no_undefined_flag=' ${wl}-bernotok'
15661	  allow_undefined_flag=' ${wl}-berok'
15662	  # Exported symbols can be pulled into shared objects from archives
15663	  whole_archive_flag_spec='$convenience'
15664	  archive_cmds_need_lc=yes
15665	  # This is similar to how AIX traditionally builds its shared libraries.
15666	  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'
15667	fi
15668      fi
15669      ;;
15670
15671    amigaos*)
15672      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)'
15673      hardcode_libdir_flag_spec='-L$libdir'
15674      hardcode_minus_L=yes
15675      # see comment about different semantics on the GNU ld section
15676      ld_shlibs=no
15677      ;;
15678
15679    bsdi[45]*)
15680      export_dynamic_flag_spec=-rdynamic
15681      ;;
15682
15683    cygwin* | mingw* | pw32*)
15684      # When not using gcc, we currently assume that we are using
15685      # Microsoft Visual C++.
15686      # hardcode_libdir_flag_spec is actually meaningless, as there is
15687      # no search path for DLLs.
15688      hardcode_libdir_flag_spec=' '
15689      allow_undefined_flag=unsupported
15690      # Tell ltmain to make .lib files, not .a files.
15691      libext=lib
15692      # Tell ltmain to make .dll files, not .so files.
15693      shrext_cmds=".dll"
15694      # FIXME: Setting linknames here is a bad hack.
15695      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15696      # The linker will automatically build a .lib file if we build a DLL.
15697      old_archive_From_new_cmds='true'
15698      # FIXME: Should let the user specify the lib program.
15699      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15700      fix_srcfile_path='`cygpath -w "$srcfile"`'
15701      enable_shared_with_static_runtimes=yes
15702      ;;
15703
15704    darwin* | rhapsody*)
15705      case $host_os in
15706        rhapsody* | darwin1.[012])
15707         allow_undefined_flag='${wl}-undefined ${wl}suppress'
15708         ;;
15709       *) # Darwin 1.3 on
15710         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15711           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15712         else
15713           case ${MACOSX_DEPLOYMENT_TARGET} in
15714             10.[012])
15715               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15716               ;;
15717             10.*)
15718               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15719               ;;
15720           esac
15721         fi
15722         ;;
15723      esac
15724      archive_cmds_need_lc=no
15725      hardcode_direct=no
15726      hardcode_automatic=yes
15727      hardcode_shlibpath_var=unsupported
15728      whole_archive_flag_spec=''
15729      link_all_deplibs=yes
15730    if test "$GCC" = yes ; then
15731    	output_verbose_link_cmd='echo'
15732        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15733      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15734      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15735      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}'
15736      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}'
15737    else
15738      case $cc_basename in
15739        xlc*)
15740         output_verbose_link_cmd='echo'
15741         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15742         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15743          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15744         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}'
15745          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}'
15746          ;;
15747       *)
15748         ld_shlibs=no
15749          ;;
15750      esac
15751    fi
15752      ;;
15753
15754    dgux*)
15755      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15756      hardcode_libdir_flag_spec='-L$libdir'
15757      hardcode_shlibpath_var=no
15758      ;;
15759
15760    freebsd1*)
15761      ld_shlibs=no
15762      ;;
15763
15764    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15765    # support.  Future versions do this automatically, but an explicit c++rt0.o
15766    # does not break anything, and helps significantly (at the cost of a little
15767    # extra space).
15768    freebsd2.2*)
15769      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15770      hardcode_libdir_flag_spec='-R$libdir'
15771      hardcode_direct=yes
15772      hardcode_shlibpath_var=no
15773      ;;
15774
15775    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15776    freebsd2*)
15777      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15778      hardcode_direct=yes
15779      hardcode_minus_L=yes
15780      hardcode_shlibpath_var=no
15781      ;;
15782
15783    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15784    freebsd* | kfreebsd*-gnu | dragonfly*)
15785      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15786      hardcode_libdir_flag_spec='-R$libdir'
15787      hardcode_direct=yes
15788      hardcode_shlibpath_var=no
15789      ;;
15790
15791    hpux9*)
15792      if test "$GCC" = yes; then
15793	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'
15794      else
15795	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'
15796      fi
15797      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15798      hardcode_libdir_separator=:
15799      hardcode_direct=yes
15800
15801      # hardcode_minus_L: Not really in the search PATH,
15802      # but as the default location of the library.
15803      hardcode_minus_L=yes
15804      export_dynamic_flag_spec='${wl}-E'
15805      ;;
15806
15807    hpux10*)
15808      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15809	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15810      else
15811	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15812      fi
15813      if test "$with_gnu_ld" = no; then
15814	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15815	hardcode_libdir_separator=:
15816
15817	hardcode_direct=yes
15818	export_dynamic_flag_spec='${wl}-E'
15819
15820	# hardcode_minus_L: Not really in the search PATH,
15821	# but as the default location of the library.
15822	hardcode_minus_L=yes
15823      fi
15824      ;;
15825
15826    hpux11*)
15827      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15828	case $host_cpu in
15829	hppa*64*)
15830	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15831	  ;;
15832	ia64*)
15833	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15834	  ;;
15835	*)
15836	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15837	  ;;
15838	esac
15839      else
15840	case $host_cpu in
15841	hppa*64*)
15842	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15843	  ;;
15844	ia64*)
15845	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15846	  ;;
15847	*)
15848	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15849	  ;;
15850	esac
15851      fi
15852      if test "$with_gnu_ld" = no; then
15853	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15854	hardcode_libdir_separator=:
15855
15856	case $host_cpu in
15857	hppa*64*|ia64*)
15858	  hardcode_libdir_flag_spec_ld='+b $libdir'
15859	  hardcode_direct=no
15860	  hardcode_shlibpath_var=no
15861	  ;;
15862	*)
15863	  hardcode_direct=yes
15864	  export_dynamic_flag_spec='${wl}-E'
15865
15866	  # hardcode_minus_L: Not really in the search PATH,
15867	  # but as the default location of the library.
15868	  hardcode_minus_L=yes
15869	  ;;
15870	esac
15871      fi
15872      ;;
15873
15874    irix5* | irix6* | nonstopux*)
15875      if test "$GCC" = yes; then
15876	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'
15877      else
15878	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'
15879	hardcode_libdir_flag_spec_ld='-rpath $libdir'
15880      fi
15881      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15882      hardcode_libdir_separator=:
15883      link_all_deplibs=yes
15884      ;;
15885
15886    netbsd*)
15887      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15888	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15889      else
15890	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15891      fi
15892      hardcode_libdir_flag_spec='-R$libdir'
15893      hardcode_direct=yes
15894      hardcode_shlibpath_var=no
15895      ;;
15896
15897    newsos6)
15898      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15899      hardcode_direct=yes
15900      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15901      hardcode_libdir_separator=:
15902      hardcode_shlibpath_var=no
15903      ;;
15904
15905    openbsd*)
15906      hardcode_direct=yes
15907      hardcode_shlibpath_var=no
15908      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15909	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15910	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15911	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15912	export_dynamic_flag_spec='${wl}-E'
15913      else
15914       case $host_os in
15915	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15916	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15917	   hardcode_libdir_flag_spec='-R$libdir'
15918	   ;;
15919	 *)
15920	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15921	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15922	   ;;
15923       esac
15924      fi
15925      ;;
15926
15927    os2*)
15928      hardcode_libdir_flag_spec='-L$libdir'
15929      hardcode_minus_L=yes
15930      allow_undefined_flag=unsupported
15931      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'
15932      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15933      ;;
15934
15935    osf3*)
15936      if test "$GCC" = yes; then
15937	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15938	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'
15939      else
15940	allow_undefined_flag=' -expect_unresolved \*'
15941	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'
15942      fi
15943      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15944      hardcode_libdir_separator=:
15945      ;;
15946
15947    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15948      if test "$GCC" = yes; then
15949	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15950	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'
15951	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15952      else
15953	allow_undefined_flag=' -expect_unresolved \*'
15954	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'
15955	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15956	$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'
15957
15958	# Both c and cxx compiler support -rpath directly
15959	hardcode_libdir_flag_spec='-rpath $libdir'
15960      fi
15961      hardcode_libdir_separator=:
15962      ;;
15963
15964    solaris*)
15965      no_undefined_flag=' -z text'
15966      if test "$GCC" = yes; then
15967	wlarc='${wl}'
15968	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15969	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15970	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15971      else
15972	wlarc=''
15973	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15974	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15975  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15976      fi
15977      hardcode_libdir_flag_spec='-R$libdir'
15978      hardcode_shlibpath_var=no
15979      case $host_os in
15980      solaris2.[0-5] | solaris2.[0-5].*) ;;
15981      *)
15982 	# The compiler driver will combine linker options so we
15983 	# cannot just pass the convience library names through
15984 	# without $wl, iff we do not link with $LD.
15985 	# Luckily, gcc supports the same syntax we need for Sun Studio.
15986 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15987 	case $wlarc in
15988 	'')
15989 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15990 	*)
15991 	  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' ;;
15992 	esac ;;
15993      esac
15994      link_all_deplibs=yes
15995      ;;
15996
15997    sunos4*)
15998      if test "x$host_vendor" = xsequent; then
15999	# Use $CC to link under sequent, because it throws in some extra .o
16000	# files that make .init and .fini sections work.
16001	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16002      else
16003	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16004      fi
16005      hardcode_libdir_flag_spec='-L$libdir'
16006      hardcode_direct=yes
16007      hardcode_minus_L=yes
16008      hardcode_shlibpath_var=no
16009      ;;
16010
16011    sysv4)
16012      case $host_vendor in
16013	sni)
16014	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16015	  hardcode_direct=yes # is this really true???
16016	;;
16017	siemens)
16018	  ## LD is ld it makes a PLAMLIB
16019	  ## CC just makes a GrossModule.
16020	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16021	  reload_cmds='$CC -r -o $output$reload_objs'
16022	  hardcode_direct=no
16023        ;;
16024	motorola)
16025	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16026	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16027	;;
16028      esac
16029      runpath_var='LD_RUN_PATH'
16030      hardcode_shlibpath_var=no
16031      ;;
16032
16033    sysv4.3*)
16034      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16035      hardcode_shlibpath_var=no
16036      export_dynamic_flag_spec='-Bexport'
16037      ;;
16038
16039    sysv4*MP*)
16040      if test -d /usr/nec; then
16041	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16042	hardcode_shlibpath_var=no
16043	runpath_var=LD_RUN_PATH
16044	hardcode_runpath_var=yes
16045	ld_shlibs=yes
16046      fi
16047      ;;
16048
16049    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16050      no_undefined_flag='${wl}-z,text'
16051      archive_cmds_need_lc=no
16052      hardcode_shlibpath_var=no
16053      runpath_var='LD_RUN_PATH'
16054
16055      if test "$GCC" = yes; then
16056	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16057	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16058      else
16059	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16060	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16061      fi
16062      ;;
16063
16064    sysv5* | sco3.2v5* | sco5v6*)
16065      # Note: We can NOT use -z defs as we might desire, because we do not
16066      # link with -lc, and that would cause any symbols used from libc to
16067      # always be unresolved, which means just about no library would
16068      # ever link correctly.  If we're not using GNU ld we use -z text
16069      # though, which does catch some bad symbols but isn't as heavy-handed
16070      # as -z defs.
16071      no_undefined_flag='${wl}-z,text'
16072      allow_undefined_flag='${wl}-z,nodefs'
16073      archive_cmds_need_lc=no
16074      hardcode_shlibpath_var=no
16075      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16076      hardcode_libdir_separator=':'
16077      link_all_deplibs=yes
16078      export_dynamic_flag_spec='${wl}-Bexport'
16079      runpath_var='LD_RUN_PATH'
16080
16081      if test "$GCC" = yes; then
16082	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16083	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16084      else
16085	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16086	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16087      fi
16088      ;;
16089
16090    uts4*)
16091      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16092      hardcode_libdir_flag_spec='-L$libdir'
16093      hardcode_shlibpath_var=no
16094      ;;
16095
16096    *)
16097      ld_shlibs=no
16098      ;;
16099    esac
16100  fi
16101
16102{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16103echo "${ECHO_T}$ld_shlibs" >&6; }
16104test "$ld_shlibs" = no && can_build_shared=no
16105
16106#
16107# Do we need to explicitly link libc?
16108#
16109case "x$archive_cmds_need_lc" in
16110x|xyes)
16111  # Assume -lc should be added
16112  archive_cmds_need_lc=yes
16113
16114  if test "$enable_shared" = yes && test "$GCC" = yes; then
16115    case $archive_cmds in
16116    *'~'*)
16117      # FIXME: we may have to deal with multi-command sequences.
16118      ;;
16119    '$CC '*)
16120      # Test whether the compiler implicitly links with -lc since on some
16121      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16122      # to ld, don't add -lc before -lgcc.
16123      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16124echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16125      $rm conftest*
16126      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16127
16128      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16129  (eval $ac_compile) 2>&5
16130  ac_status=$?
16131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132  (exit $ac_status); } 2>conftest.err; then
16133        soname=conftest
16134        lib=conftest
16135        libobjs=conftest.$ac_objext
16136        deplibs=
16137        wl=$lt_prog_compiler_wl
16138	pic_flag=$lt_prog_compiler_pic
16139        compiler_flags=-v
16140        linker_flags=-v
16141        verstring=
16142        output_objdir=.
16143        libname=conftest
16144        lt_save_allow_undefined_flag=$allow_undefined_flag
16145        allow_undefined_flag=
16146        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16147  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16148  ac_status=$?
16149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150  (exit $ac_status); }
16151        then
16152	  archive_cmds_need_lc=no
16153        else
16154	  archive_cmds_need_lc=yes
16155        fi
16156        allow_undefined_flag=$lt_save_allow_undefined_flag
16157      else
16158        cat conftest.err 1>&5
16159      fi
16160      $rm conftest*
16161      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16162echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16163      ;;
16164    esac
16165  fi
16166  ;;
16167esac
16168
16169{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16170echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16171library_names_spec=
16172libname_spec='lib$name'
16173soname_spec=
16174shrext_cmds=".so"
16175postinstall_cmds=
16176postuninstall_cmds=
16177finish_cmds=
16178finish_eval=
16179shlibpath_var=
16180shlibpath_overrides_runpath=unknown
16181version_type=none
16182dynamic_linker="$host_os ld.so"
16183sys_lib_dlsearch_path_spec="/lib /usr/lib"
16184if test "$GCC" = yes; then
16185  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16186  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16187    # if the path contains ";" then we assume it to be the separator
16188    # otherwise default to the standard path separator (i.e. ":") - it is
16189    # assumed that no part of a normal pathname contains ";" but that should
16190    # okay in the real world where ";" in dirpaths is itself problematic.
16191    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16192  else
16193    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16194  fi
16195else
16196  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16197fi
16198need_lib_prefix=unknown
16199hardcode_into_libs=no
16200
16201# when you set need_version to no, make sure it does not cause -set_version
16202# flags to be left without arguments
16203need_version=unknown
16204
16205case $host_os in
16206aix3*)
16207  version_type=linux
16208  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16209  shlibpath_var=LIBPATH
16210
16211  # AIX 3 has no versioning support, so we append a major version to the name.
16212  soname_spec='${libname}${release}${shared_ext}$major'
16213  ;;
16214
16215aix4* | aix5*)
16216  version_type=linux
16217  need_lib_prefix=no
16218  need_version=no
16219  hardcode_into_libs=yes
16220  if test "$host_cpu" = ia64; then
16221    # AIX 5 supports IA64
16222    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16223    shlibpath_var=LD_LIBRARY_PATH
16224  else
16225    # With GCC up to 2.95.x, collect2 would create an import file
16226    # for dependence libraries.  The import file would start with
16227    # the line `#! .'.  This would cause the generated library to
16228    # depend on `.', always an invalid library.  This was fixed in
16229    # development snapshots of GCC prior to 3.0.
16230    case $host_os in
16231      aix4 | aix4.[01] | aix4.[01].*)
16232      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16233	   echo ' yes '
16234	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16235	:
16236      else
16237	can_build_shared=no
16238      fi
16239      ;;
16240    esac
16241    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16242    # soname into executable. Probably we can add versioning support to
16243    # collect2, so additional links can be useful in future.
16244    if test "$aix_use_runtimelinking" = yes; then
16245      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16246      # instead of lib<name>.a to let people know that these are not
16247      # typical AIX shared libraries.
16248      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16249    else
16250      # We preserve .a as extension for shared libraries through AIX4.2
16251      # and later when we are not doing run time linking.
16252      library_names_spec='${libname}${release}.a $libname.a'
16253      soname_spec='${libname}${release}${shared_ext}$major'
16254    fi
16255    shlibpath_var=LIBPATH
16256  fi
16257  ;;
16258
16259amigaos*)
16260  library_names_spec='$libname.ixlibrary $libname.a'
16261  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16262  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'
16263  ;;
16264
16265beos*)
16266  library_names_spec='${libname}${shared_ext}'
16267  dynamic_linker="$host_os ld.so"
16268  shlibpath_var=LIBRARY_PATH
16269  ;;
16270
16271bsdi[45]*)
16272  version_type=linux
16273  need_version=no
16274  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16275  soname_spec='${libname}${release}${shared_ext}$major'
16276  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16277  shlibpath_var=LD_LIBRARY_PATH
16278  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16279  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16280  # the default ld.so.conf also contains /usr/contrib/lib and
16281  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16282  # libtool to hard-code these into programs
16283  ;;
16284
16285cygwin* | mingw* | pw32*)
16286  version_type=windows
16287  shrext_cmds=".dll"
16288  need_version=no
16289  need_lib_prefix=no
16290
16291  case $GCC,$host_os in
16292  yes,cygwin* | yes,mingw* | yes,pw32*)
16293    library_names_spec='$libname.dll.a'
16294    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16295    postinstall_cmds='base_file=`basename \${file}`~
16296      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16297      dldir=$destdir/`dirname \$dlpath`~
16298      test -d \$dldir || mkdir -p \$dldir~
16299      $install_prog $dir/$dlname \$dldir/$dlname~
16300      chmod a+x \$dldir/$dlname'
16301    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16302      dlpath=$dir/\$dldll~
16303       $rm \$dlpath'
16304    shlibpath_overrides_runpath=yes
16305
16306    case $host_os in
16307    cygwin*)
16308      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16309      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16310      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16311      ;;
16312    mingw*)
16313      # MinGW DLLs use traditional 'lib' prefix
16314      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16315      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16316      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16317        # It is most probably a Windows format PATH printed by
16318        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16319        # path with ; separators, and with drive letters. We can handle the
16320        # drive letters (cygwin fileutils understands them), so leave them,
16321        # especially as we might pass files found there to a mingw objdump,
16322        # which wouldn't understand a cygwinified path. Ahh.
16323        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16324      else
16325        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16326      fi
16327      ;;
16328    pw32*)
16329      # pw32 DLLs use 'pw' prefix rather than 'lib'
16330      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16331      ;;
16332    esac
16333    ;;
16334
16335  *)
16336    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16337    ;;
16338  esac
16339  dynamic_linker='Win32 ld.exe'
16340  # FIXME: first we should search . and the directory the executable is in
16341  shlibpath_var=PATH
16342  ;;
16343
16344darwin* | rhapsody*)
16345  dynamic_linker="$host_os dyld"
16346  version_type=darwin
16347  need_lib_prefix=no
16348  need_version=no
16349  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16350  soname_spec='${libname}${release}${major}$shared_ext'
16351  shlibpath_overrides_runpath=yes
16352  shlibpath_var=DYLD_LIBRARY_PATH
16353  shrext_cmds='.dylib'
16354  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16355  if test "$GCC" = yes; then
16356    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"`
16357  else
16358    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16359  fi
16360  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16361  ;;
16362
16363dgux*)
16364  version_type=linux
16365  need_lib_prefix=no
16366  need_version=no
16367  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16368  soname_spec='${libname}${release}${shared_ext}$major'
16369  shlibpath_var=LD_LIBRARY_PATH
16370  ;;
16371
16372freebsd1*)
16373  dynamic_linker=no
16374  ;;
16375
16376kfreebsd*-gnu)
16377  version_type=linux
16378  need_lib_prefix=no
16379  need_version=no
16380  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16381  soname_spec='${libname}${release}${shared_ext}$major'
16382  shlibpath_var=LD_LIBRARY_PATH
16383  shlibpath_overrides_runpath=no
16384  hardcode_into_libs=yes
16385  dynamic_linker='GNU ld.so'
16386  ;;
16387
16388freebsd* | dragonfly*)
16389  # DragonFly does not have aout.  When/if they implement a new
16390  # versioning mechanism, adjust this.
16391  if test -x /usr/bin/objformat; then
16392    objformat=`/usr/bin/objformat`
16393  else
16394    case $host_os in
16395    freebsd[123]*) objformat=aout ;;
16396    *) objformat=elf ;;
16397    esac
16398  fi
16399  version_type=freebsd-$objformat
16400  case $version_type in
16401    freebsd-elf*)
16402      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16403      need_version=no
16404      need_lib_prefix=no
16405      ;;
16406    freebsd-*)
16407      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16408      need_version=yes
16409      ;;
16410  esac
16411  shlibpath_var=LD_LIBRARY_PATH
16412  case $host_os in
16413  freebsd2*)
16414    shlibpath_overrides_runpath=yes
16415    ;;
16416  freebsd3.[01]* | freebsdelf3.[01]*)
16417    shlibpath_overrides_runpath=yes
16418    hardcode_into_libs=yes
16419    ;;
16420  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16421  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16422    shlibpath_overrides_runpath=no
16423    hardcode_into_libs=yes
16424    ;;
16425  freebsd*) # from 4.6 on
16426    shlibpath_overrides_runpath=yes
16427    hardcode_into_libs=yes
16428    ;;
16429  esac
16430  ;;
16431
16432gnu*)
16433  version_type=linux
16434  need_lib_prefix=no
16435  need_version=no
16436  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16437  soname_spec='${libname}${release}${shared_ext}$major'
16438  shlibpath_var=LD_LIBRARY_PATH
16439  hardcode_into_libs=yes
16440  ;;
16441
16442hpux9* | hpux10* | hpux11*)
16443  # Give a soname corresponding to the major version so that dld.sl refuses to
16444  # link against other versions.
16445  version_type=sunos
16446  need_lib_prefix=no
16447  need_version=no
16448  case $host_cpu in
16449  ia64*)
16450    shrext_cmds='.so'
16451    hardcode_into_libs=yes
16452    dynamic_linker="$host_os dld.so"
16453    shlibpath_var=LD_LIBRARY_PATH
16454    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16455    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16456    soname_spec='${libname}${release}${shared_ext}$major'
16457    if test "X$HPUX_IA64_MODE" = X32; then
16458      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16459    else
16460      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16461    fi
16462    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16463    ;;
16464   hppa*64*)
16465     shrext_cmds='.sl'
16466     hardcode_into_libs=yes
16467     dynamic_linker="$host_os dld.sl"
16468     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16469     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16470     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16471     soname_spec='${libname}${release}${shared_ext}$major'
16472     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16473     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16474     ;;
16475   *)
16476    shrext_cmds='.sl'
16477    dynamic_linker="$host_os dld.sl"
16478    shlibpath_var=SHLIB_PATH
16479    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16480    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16481    soname_spec='${libname}${release}${shared_ext}$major'
16482    ;;
16483  esac
16484  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16485  postinstall_cmds='chmod 555 $lib'
16486  ;;
16487
16488interix3*)
16489  version_type=linux
16490  need_lib_prefix=no
16491  need_version=no
16492  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16493  soname_spec='${libname}${release}${shared_ext}$major'
16494  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16495  shlibpath_var=LD_LIBRARY_PATH
16496  shlibpath_overrides_runpath=no
16497  hardcode_into_libs=yes
16498  ;;
16499
16500irix5* | irix6* | nonstopux*)
16501  case $host_os in
16502    nonstopux*) version_type=nonstopux ;;
16503    *)
16504	if test "$lt_cv_prog_gnu_ld" = yes; then
16505		version_type=linux
16506	else
16507		version_type=irix
16508	fi ;;
16509  esac
16510  need_lib_prefix=no
16511  need_version=no
16512  soname_spec='${libname}${release}${shared_ext}$major'
16513  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16514  case $host_os in
16515  irix5* | nonstopux*)
16516    libsuff= shlibsuff=
16517    ;;
16518  *)
16519    case $LD in # libtool.m4 will add one of these switches to LD
16520    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16521      libsuff= shlibsuff= libmagic=32-bit;;
16522    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16523      libsuff=32 shlibsuff=N32 libmagic=N32;;
16524    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16525      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16526    *) libsuff= shlibsuff= libmagic=never-match;;
16527    esac
16528    ;;
16529  esac
16530  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16531  shlibpath_overrides_runpath=no
16532  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16533  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16534  hardcode_into_libs=yes
16535  ;;
16536
16537# No shared lib support for Linux oldld, aout, or coff.
16538linux*oldld* | linux*aout* | linux*coff*)
16539  dynamic_linker=no
16540  ;;
16541
16542# This must be Linux ELF.
16543linux*)
16544  version_type=linux
16545  need_lib_prefix=no
16546  need_version=no
16547  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16548  soname_spec='${libname}${release}${shared_ext}$major'
16549  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16550  shlibpath_var=LD_LIBRARY_PATH
16551  shlibpath_overrides_runpath=no
16552  # This implies no fast_install, which is unacceptable.
16553  # Some rework will be needed to allow for fast_install
16554  # before this can be enabled.
16555  hardcode_into_libs=yes
16556
16557  # Append ld.so.conf contents to the search path
16558  if test -f /etc/ld.so.conf; then
16559    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' ' '`
16560    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16561  fi
16562
16563  # We used to test for /lib/ld.so.1 and disable shared libraries on
16564  # powerpc, because MkLinux only supported shared libraries with the
16565  # GNU dynamic linker.  Since this was broken with cross compilers,
16566  # most powerpc-linux boxes support dynamic linking these days and
16567  # people can always --disable-shared, the test was removed, and we
16568  # assume the GNU/Linux dynamic linker is in use.
16569  dynamic_linker='GNU/Linux ld.so'
16570  ;;
16571
16572knetbsd*-gnu)
16573  version_type=linux
16574  need_lib_prefix=no
16575  need_version=no
16576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16577  soname_spec='${libname}${release}${shared_ext}$major'
16578  shlibpath_var=LD_LIBRARY_PATH
16579  shlibpath_overrides_runpath=no
16580  hardcode_into_libs=yes
16581  dynamic_linker='GNU ld.so'
16582  ;;
16583
16584netbsd*)
16585  version_type=sunos
16586  need_lib_prefix=no
16587  need_version=no
16588  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16589    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16590    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16591    dynamic_linker='NetBSD (a.out) ld.so'
16592  else
16593    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16594    soname_spec='${libname}${release}${shared_ext}$major'
16595    dynamic_linker='NetBSD ld.elf_so'
16596  fi
16597  shlibpath_var=LD_LIBRARY_PATH
16598  shlibpath_overrides_runpath=yes
16599  hardcode_into_libs=yes
16600  ;;
16601
16602newsos6)
16603  version_type=linux
16604  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16605  shlibpath_var=LD_LIBRARY_PATH
16606  shlibpath_overrides_runpath=yes
16607  ;;
16608
16609nto-qnx*)
16610  version_type=linux
16611  need_lib_prefix=no
16612  need_version=no
16613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16614  soname_spec='${libname}${release}${shared_ext}$major'
16615  shlibpath_var=LD_LIBRARY_PATH
16616  shlibpath_overrides_runpath=yes
16617  ;;
16618
16619openbsd*)
16620  version_type=sunos
16621  sys_lib_dlsearch_path_spec="/usr/lib"
16622  need_lib_prefix=no
16623  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16624  case $host_os in
16625    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16626    *)                         need_version=no  ;;
16627  esac
16628  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16629  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16630  shlibpath_var=LD_LIBRARY_PATH
16631  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16632    case $host_os in
16633      openbsd2.[89] | openbsd2.[89].*)
16634	shlibpath_overrides_runpath=no
16635	;;
16636      *)
16637	shlibpath_overrides_runpath=yes
16638	;;
16639      esac
16640  else
16641    shlibpath_overrides_runpath=yes
16642  fi
16643  ;;
16644
16645os2*)
16646  libname_spec='$name'
16647  shrext_cmds=".dll"
16648  need_lib_prefix=no
16649  library_names_spec='$libname${shared_ext} $libname.a'
16650  dynamic_linker='OS/2 ld.exe'
16651  shlibpath_var=LIBPATH
16652  ;;
16653
16654osf3* | osf4* | osf5*)
16655  version_type=osf
16656  need_lib_prefix=no
16657  need_version=no
16658  soname_spec='${libname}${release}${shared_ext}$major'
16659  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16660  shlibpath_var=LD_LIBRARY_PATH
16661  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16662  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16663  ;;
16664
16665solaris*)
16666  version_type=linux
16667  need_lib_prefix=no
16668  need_version=no
16669  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16670  soname_spec='${libname}${release}${shared_ext}$major'
16671  shlibpath_var=LD_LIBRARY_PATH
16672  shlibpath_overrides_runpath=yes
16673  hardcode_into_libs=yes
16674  # ldd complains unless libraries are executable
16675  postinstall_cmds='chmod +x $lib'
16676  ;;
16677
16678sunos4*)
16679  version_type=sunos
16680  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16681  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16682  shlibpath_var=LD_LIBRARY_PATH
16683  shlibpath_overrides_runpath=yes
16684  if test "$with_gnu_ld" = yes; then
16685    need_lib_prefix=no
16686  fi
16687  need_version=yes
16688  ;;
16689
16690sysv4 | sysv4.3*)
16691  version_type=linux
16692  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16693  soname_spec='${libname}${release}${shared_ext}$major'
16694  shlibpath_var=LD_LIBRARY_PATH
16695  case $host_vendor in
16696    sni)
16697      shlibpath_overrides_runpath=no
16698      need_lib_prefix=no
16699      export_dynamic_flag_spec='${wl}-Blargedynsym'
16700      runpath_var=LD_RUN_PATH
16701      ;;
16702    siemens)
16703      need_lib_prefix=no
16704      ;;
16705    motorola)
16706      need_lib_prefix=no
16707      need_version=no
16708      shlibpath_overrides_runpath=no
16709      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16710      ;;
16711  esac
16712  ;;
16713
16714sysv4*MP*)
16715  if test -d /usr/nec ;then
16716    version_type=linux
16717    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16718    soname_spec='$libname${shared_ext}.$major'
16719    shlibpath_var=LD_LIBRARY_PATH
16720  fi
16721  ;;
16722
16723sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16724  version_type=freebsd-elf
16725  need_lib_prefix=no
16726  need_version=no
16727  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16728  soname_spec='${libname}${release}${shared_ext}$major'
16729  shlibpath_var=LD_LIBRARY_PATH
16730  hardcode_into_libs=yes
16731  if test "$with_gnu_ld" = yes; then
16732    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16733    shlibpath_overrides_runpath=no
16734  else
16735    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16736    shlibpath_overrides_runpath=yes
16737    case $host_os in
16738      sco3.2v5*)
16739        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16740	;;
16741    esac
16742  fi
16743  sys_lib_dlsearch_path_spec='/usr/lib'
16744  ;;
16745
16746uts4*)
16747  version_type=linux
16748  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16749  soname_spec='${libname}${release}${shared_ext}$major'
16750  shlibpath_var=LD_LIBRARY_PATH
16751  ;;
16752
16753*)
16754  dynamic_linker=no
16755  ;;
16756esac
16757{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16758echo "${ECHO_T}$dynamic_linker" >&6; }
16759test "$dynamic_linker" = no && can_build_shared=no
16760
16761variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16762if test "$GCC" = yes; then
16763  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16764fi
16765
16766{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16767echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16768hardcode_action=
16769if test -n "$hardcode_libdir_flag_spec" || \
16770   test -n "$runpath_var" || \
16771   test "X$hardcode_automatic" = "Xyes" ; then
16772
16773  # We can hardcode non-existant directories.
16774  if test "$hardcode_direct" != no &&
16775     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16776     # have to relink, otherwise we might link with an installed library
16777     # when we should be linking with a yet-to-be-installed one
16778     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16779     test "$hardcode_minus_L" != no; then
16780    # Linking always hardcodes the temporary library directory.
16781    hardcode_action=relink
16782  else
16783    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16784    hardcode_action=immediate
16785  fi
16786else
16787  # We cannot hardcode anything, or else we can only hardcode existing
16788  # directories.
16789  hardcode_action=unsupported
16790fi
16791{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16792echo "${ECHO_T}$hardcode_action" >&6; }
16793
16794if test "$hardcode_action" = relink; then
16795  # Fast installation is not supported
16796  enable_fast_install=no
16797elif test "$shlibpath_overrides_runpath" = yes ||
16798     test "$enable_shared" = no; then
16799  # Fast installation is not necessary
16800  enable_fast_install=needless
16801fi
16802
16803striplib=
16804old_striplib=
16805{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16806echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16807if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16808  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16809  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16810  { echo "$as_me:$LINENO: result: yes" >&5
16811echo "${ECHO_T}yes" >&6; }
16812else
16813# FIXME - insert some real tests, host_os isn't really good enough
16814  case $host_os in
16815   darwin*)
16816       if test -n "$STRIP" ; then
16817         striplib="$STRIP -x"
16818         { echo "$as_me:$LINENO: result: yes" >&5
16819echo "${ECHO_T}yes" >&6; }
16820       else
16821  { echo "$as_me:$LINENO: result: no" >&5
16822echo "${ECHO_T}no" >&6; }
16823fi
16824       ;;
16825   *)
16826  { echo "$as_me:$LINENO: result: no" >&5
16827echo "${ECHO_T}no" >&6; }
16828    ;;
16829  esac
16830fi
16831
16832if test "x$enable_dlopen" != xyes; then
16833  enable_dlopen=unknown
16834  enable_dlopen_self=unknown
16835  enable_dlopen_self_static=unknown
16836else
16837  lt_cv_dlopen=no
16838  lt_cv_dlopen_libs=
16839
16840  case $host_os in
16841  beos*)
16842    lt_cv_dlopen="load_add_on"
16843    lt_cv_dlopen_libs=
16844    lt_cv_dlopen_self=yes
16845    ;;
16846
16847  mingw* | pw32*)
16848    lt_cv_dlopen="LoadLibrary"
16849    lt_cv_dlopen_libs=
16850   ;;
16851
16852  cygwin*)
16853    lt_cv_dlopen="dlopen"
16854    lt_cv_dlopen_libs=
16855   ;;
16856
16857  darwin*)
16858  # if libdl is installed we need to link against it
16859    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16860echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16861if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16862  echo $ECHO_N "(cached) $ECHO_C" >&6
16863else
16864  ac_check_lib_save_LIBS=$LIBS
16865LIBS="-ldl  $LIBS"
16866cat >conftest.$ac_ext <<_ACEOF
16867/* confdefs.h.  */
16868_ACEOF
16869cat confdefs.h >>conftest.$ac_ext
16870cat >>conftest.$ac_ext <<_ACEOF
16871/* end confdefs.h.  */
16872
16873/* Override any GCC internal prototype to avoid an error.
16874   Use char because int might match the return type of a GCC
16875   builtin and then its argument prototype would still apply.  */
16876#ifdef __cplusplus
16877extern "C"
16878#endif
16879char dlopen ();
16880int
16881main ()
16882{
16883return dlopen ();
16884  ;
16885  return 0;
16886}
16887_ACEOF
16888rm -f conftest.$ac_objext conftest$ac_exeext
16889if { (ac_try="$ac_link"
16890case "(($ac_try" in
16891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16892  *) ac_try_echo=$ac_try;;
16893esac
16894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16895  (eval "$ac_link") 2>conftest.er1
16896  ac_status=$?
16897  grep -v '^ *+' conftest.er1 >conftest.err
16898  rm -f conftest.er1
16899  cat conftest.err >&5
16900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901  (exit $ac_status); } &&
16902	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16903  { (case "(($ac_try" in
16904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16905  *) ac_try_echo=$ac_try;;
16906esac
16907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16908  (eval "$ac_try") 2>&5
16909  ac_status=$?
16910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911  (exit $ac_status); }; } &&
16912	 { ac_try='test -s conftest$ac_exeext'
16913  { (case "(($ac_try" in
16914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16915  *) ac_try_echo=$ac_try;;
16916esac
16917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16918  (eval "$ac_try") 2>&5
16919  ac_status=$?
16920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921  (exit $ac_status); }; }; then
16922  ac_cv_lib_dl_dlopen=yes
16923else
16924  echo "$as_me: failed program was:" >&5
16925sed 's/^/| /' conftest.$ac_ext >&5
16926
16927	ac_cv_lib_dl_dlopen=no
16928fi
16929
16930rm -f core conftest.err conftest.$ac_objext \
16931      conftest$ac_exeext conftest.$ac_ext
16932LIBS=$ac_check_lib_save_LIBS
16933fi
16934{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16935echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16936if test $ac_cv_lib_dl_dlopen = yes; then
16937  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16938else
16939
16940    lt_cv_dlopen="dyld"
16941    lt_cv_dlopen_libs=
16942    lt_cv_dlopen_self=yes
16943
16944fi
16945
16946   ;;
16947
16948  *)
16949    { echo "$as_me:$LINENO: checking for shl_load" >&5
16950echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16951if test "${ac_cv_func_shl_load+set}" = set; then
16952  echo $ECHO_N "(cached) $ECHO_C" >&6
16953else
16954  cat >conftest.$ac_ext <<_ACEOF
16955/* confdefs.h.  */
16956_ACEOF
16957cat confdefs.h >>conftest.$ac_ext
16958cat >>conftest.$ac_ext <<_ACEOF
16959/* end confdefs.h.  */
16960/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16961   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16962#define shl_load innocuous_shl_load
16963
16964/* System header to define __stub macros and hopefully few prototypes,
16965    which can conflict with char shl_load (); below.
16966    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16967    <limits.h> exists even on freestanding compilers.  */
16968
16969#ifdef __STDC__
16970# include <limits.h>
16971#else
16972# include <assert.h>
16973#endif
16974
16975#undef shl_load
16976
16977/* Override any GCC internal prototype to avoid an error.
16978   Use char because int might match the return type of a GCC
16979   builtin and then its argument prototype would still apply.  */
16980#ifdef __cplusplus
16981extern "C"
16982#endif
16983char shl_load ();
16984/* The GNU C library defines this for functions which it implements
16985    to always fail with ENOSYS.  Some functions are actually named
16986    something starting with __ and the normal name is an alias.  */
16987#if defined __stub_shl_load || defined __stub___shl_load
16988choke me
16989#endif
16990
16991int
16992main ()
16993{
16994return shl_load ();
16995  ;
16996  return 0;
16997}
16998_ACEOF
16999rm -f conftest.$ac_objext conftest$ac_exeext
17000if { (ac_try="$ac_link"
17001case "(($ac_try" in
17002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003  *) ac_try_echo=$ac_try;;
17004esac
17005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17006  (eval "$ac_link") 2>conftest.er1
17007  ac_status=$?
17008  grep -v '^ *+' conftest.er1 >conftest.err
17009  rm -f conftest.er1
17010  cat conftest.err >&5
17011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012  (exit $ac_status); } &&
17013	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17014  { (case "(($ac_try" in
17015  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17016  *) ac_try_echo=$ac_try;;
17017esac
17018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17019  (eval "$ac_try") 2>&5
17020  ac_status=$?
17021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022  (exit $ac_status); }; } &&
17023	 { ac_try='test -s conftest$ac_exeext'
17024  { (case "(($ac_try" in
17025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17026  *) ac_try_echo=$ac_try;;
17027esac
17028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17029  (eval "$ac_try") 2>&5
17030  ac_status=$?
17031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032  (exit $ac_status); }; }; then
17033  ac_cv_func_shl_load=yes
17034else
17035  echo "$as_me: failed program was:" >&5
17036sed 's/^/| /' conftest.$ac_ext >&5
17037
17038	ac_cv_func_shl_load=no
17039fi
17040
17041rm -f core conftest.err conftest.$ac_objext \
17042      conftest$ac_exeext conftest.$ac_ext
17043fi
17044{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17045echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17046if test $ac_cv_func_shl_load = yes; then
17047  lt_cv_dlopen="shl_load"
17048else
17049  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17050echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17051if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17052  echo $ECHO_N "(cached) $ECHO_C" >&6
17053else
17054  ac_check_lib_save_LIBS=$LIBS
17055LIBS="-ldld  $LIBS"
17056cat >conftest.$ac_ext <<_ACEOF
17057/* confdefs.h.  */
17058_ACEOF
17059cat confdefs.h >>conftest.$ac_ext
17060cat >>conftest.$ac_ext <<_ACEOF
17061/* end confdefs.h.  */
17062
17063/* Override any GCC internal prototype to avoid an error.
17064   Use char because int might match the return type of a GCC
17065   builtin and then its argument prototype would still apply.  */
17066#ifdef __cplusplus
17067extern "C"
17068#endif
17069char shl_load ();
17070int
17071main ()
17072{
17073return shl_load ();
17074  ;
17075  return 0;
17076}
17077_ACEOF
17078rm -f conftest.$ac_objext conftest$ac_exeext
17079if { (ac_try="$ac_link"
17080case "(($ac_try" in
17081  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082  *) ac_try_echo=$ac_try;;
17083esac
17084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17085  (eval "$ac_link") 2>conftest.er1
17086  ac_status=$?
17087  grep -v '^ *+' conftest.er1 >conftest.err
17088  rm -f conftest.er1
17089  cat conftest.err >&5
17090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091  (exit $ac_status); } &&
17092	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17093  { (case "(($ac_try" in
17094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095  *) ac_try_echo=$ac_try;;
17096esac
17097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17098  (eval "$ac_try") 2>&5
17099  ac_status=$?
17100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101  (exit $ac_status); }; } &&
17102	 { ac_try='test -s conftest$ac_exeext'
17103  { (case "(($ac_try" in
17104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17105  *) ac_try_echo=$ac_try;;
17106esac
17107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17108  (eval "$ac_try") 2>&5
17109  ac_status=$?
17110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111  (exit $ac_status); }; }; then
17112  ac_cv_lib_dld_shl_load=yes
17113else
17114  echo "$as_me: failed program was:" >&5
17115sed 's/^/| /' conftest.$ac_ext >&5
17116
17117	ac_cv_lib_dld_shl_load=no
17118fi
17119
17120rm -f core conftest.err conftest.$ac_objext \
17121      conftest$ac_exeext conftest.$ac_ext
17122LIBS=$ac_check_lib_save_LIBS
17123fi
17124{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17125echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17126if test $ac_cv_lib_dld_shl_load = yes; then
17127  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17128else
17129  { echo "$as_me:$LINENO: checking for dlopen" >&5
17130echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17131if test "${ac_cv_func_dlopen+set}" = set; then
17132  echo $ECHO_N "(cached) $ECHO_C" >&6
17133else
17134  cat >conftest.$ac_ext <<_ACEOF
17135/* confdefs.h.  */
17136_ACEOF
17137cat confdefs.h >>conftest.$ac_ext
17138cat >>conftest.$ac_ext <<_ACEOF
17139/* end confdefs.h.  */
17140/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17141   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17142#define dlopen innocuous_dlopen
17143
17144/* System header to define __stub macros and hopefully few prototypes,
17145    which can conflict with char dlopen (); below.
17146    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17147    <limits.h> exists even on freestanding compilers.  */
17148
17149#ifdef __STDC__
17150# include <limits.h>
17151#else
17152# include <assert.h>
17153#endif
17154
17155#undef dlopen
17156
17157/* Override any GCC internal prototype to avoid an error.
17158   Use char because int might match the return type of a GCC
17159   builtin and then its argument prototype would still apply.  */
17160#ifdef __cplusplus
17161extern "C"
17162#endif
17163char dlopen ();
17164/* The GNU C library defines this for functions which it implements
17165    to always fail with ENOSYS.  Some functions are actually named
17166    something starting with __ and the normal name is an alias.  */
17167#if defined __stub_dlopen || defined __stub___dlopen
17168choke me
17169#endif
17170
17171int
17172main ()
17173{
17174return dlopen ();
17175  ;
17176  return 0;
17177}
17178_ACEOF
17179rm -f conftest.$ac_objext conftest$ac_exeext
17180if { (ac_try="$ac_link"
17181case "(($ac_try" in
17182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17183  *) ac_try_echo=$ac_try;;
17184esac
17185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17186  (eval "$ac_link") 2>conftest.er1
17187  ac_status=$?
17188  grep -v '^ *+' conftest.er1 >conftest.err
17189  rm -f conftest.er1
17190  cat conftest.err >&5
17191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192  (exit $ac_status); } &&
17193	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17194  { (case "(($ac_try" in
17195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17196  *) ac_try_echo=$ac_try;;
17197esac
17198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17199  (eval "$ac_try") 2>&5
17200  ac_status=$?
17201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202  (exit $ac_status); }; } &&
17203	 { ac_try='test -s conftest$ac_exeext'
17204  { (case "(($ac_try" in
17205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17206  *) ac_try_echo=$ac_try;;
17207esac
17208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17209  (eval "$ac_try") 2>&5
17210  ac_status=$?
17211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212  (exit $ac_status); }; }; then
17213  ac_cv_func_dlopen=yes
17214else
17215  echo "$as_me: failed program was:" >&5
17216sed 's/^/| /' conftest.$ac_ext >&5
17217
17218	ac_cv_func_dlopen=no
17219fi
17220
17221rm -f core conftest.err conftest.$ac_objext \
17222      conftest$ac_exeext conftest.$ac_ext
17223fi
17224{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17225echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17226if test $ac_cv_func_dlopen = yes; then
17227  lt_cv_dlopen="dlopen"
17228else
17229  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17230echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17231if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17232  echo $ECHO_N "(cached) $ECHO_C" >&6
17233else
17234  ac_check_lib_save_LIBS=$LIBS
17235LIBS="-ldl  $LIBS"
17236cat >conftest.$ac_ext <<_ACEOF
17237/* confdefs.h.  */
17238_ACEOF
17239cat confdefs.h >>conftest.$ac_ext
17240cat >>conftest.$ac_ext <<_ACEOF
17241/* end confdefs.h.  */
17242
17243/* Override any GCC internal prototype to avoid an error.
17244   Use char because int might match the return type of a GCC
17245   builtin and then its argument prototype would still apply.  */
17246#ifdef __cplusplus
17247extern "C"
17248#endif
17249char dlopen ();
17250int
17251main ()
17252{
17253return dlopen ();
17254  ;
17255  return 0;
17256}
17257_ACEOF
17258rm -f conftest.$ac_objext conftest$ac_exeext
17259if { (ac_try="$ac_link"
17260case "(($ac_try" in
17261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262  *) ac_try_echo=$ac_try;;
17263esac
17264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17265  (eval "$ac_link") 2>conftest.er1
17266  ac_status=$?
17267  grep -v '^ *+' conftest.er1 >conftest.err
17268  rm -f conftest.er1
17269  cat conftest.err >&5
17270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271  (exit $ac_status); } &&
17272	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17273  { (case "(($ac_try" in
17274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275  *) ac_try_echo=$ac_try;;
17276esac
17277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278  (eval "$ac_try") 2>&5
17279  ac_status=$?
17280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281  (exit $ac_status); }; } &&
17282	 { ac_try='test -s conftest$ac_exeext'
17283  { (case "(($ac_try" in
17284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17285  *) ac_try_echo=$ac_try;;
17286esac
17287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17288  (eval "$ac_try") 2>&5
17289  ac_status=$?
17290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291  (exit $ac_status); }; }; then
17292  ac_cv_lib_dl_dlopen=yes
17293else
17294  echo "$as_me: failed program was:" >&5
17295sed 's/^/| /' conftest.$ac_ext >&5
17296
17297	ac_cv_lib_dl_dlopen=no
17298fi
17299
17300rm -f core conftest.err conftest.$ac_objext \
17301      conftest$ac_exeext conftest.$ac_ext
17302LIBS=$ac_check_lib_save_LIBS
17303fi
17304{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17305echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17306if test $ac_cv_lib_dl_dlopen = yes; then
17307  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17308else
17309  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17310echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17311if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17312  echo $ECHO_N "(cached) $ECHO_C" >&6
17313else
17314  ac_check_lib_save_LIBS=$LIBS
17315LIBS="-lsvld  $LIBS"
17316cat >conftest.$ac_ext <<_ACEOF
17317/* confdefs.h.  */
17318_ACEOF
17319cat confdefs.h >>conftest.$ac_ext
17320cat >>conftest.$ac_ext <<_ACEOF
17321/* end confdefs.h.  */
17322
17323/* Override any GCC internal prototype to avoid an error.
17324   Use char because int might match the return type of a GCC
17325   builtin and then its argument prototype would still apply.  */
17326#ifdef __cplusplus
17327extern "C"
17328#endif
17329char dlopen ();
17330int
17331main ()
17332{
17333return dlopen ();
17334  ;
17335  return 0;
17336}
17337_ACEOF
17338rm -f conftest.$ac_objext conftest$ac_exeext
17339if { (ac_try="$ac_link"
17340case "(($ac_try" in
17341  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17342  *) ac_try_echo=$ac_try;;
17343esac
17344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17345  (eval "$ac_link") 2>conftest.er1
17346  ac_status=$?
17347  grep -v '^ *+' conftest.er1 >conftest.err
17348  rm -f conftest.er1
17349  cat conftest.err >&5
17350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351  (exit $ac_status); } &&
17352	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17353  { (case "(($ac_try" in
17354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355  *) ac_try_echo=$ac_try;;
17356esac
17357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358  (eval "$ac_try") 2>&5
17359  ac_status=$?
17360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361  (exit $ac_status); }; } &&
17362	 { ac_try='test -s conftest$ac_exeext'
17363  { (case "(($ac_try" in
17364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17365  *) ac_try_echo=$ac_try;;
17366esac
17367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17368  (eval "$ac_try") 2>&5
17369  ac_status=$?
17370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371  (exit $ac_status); }; }; then
17372  ac_cv_lib_svld_dlopen=yes
17373else
17374  echo "$as_me: failed program was:" >&5
17375sed 's/^/| /' conftest.$ac_ext >&5
17376
17377	ac_cv_lib_svld_dlopen=no
17378fi
17379
17380rm -f core conftest.err conftest.$ac_objext \
17381      conftest$ac_exeext conftest.$ac_ext
17382LIBS=$ac_check_lib_save_LIBS
17383fi
17384{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17385echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17386if test $ac_cv_lib_svld_dlopen = yes; then
17387  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17388else
17389  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17390echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17391if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17392  echo $ECHO_N "(cached) $ECHO_C" >&6
17393else
17394  ac_check_lib_save_LIBS=$LIBS
17395LIBS="-ldld  $LIBS"
17396cat >conftest.$ac_ext <<_ACEOF
17397/* confdefs.h.  */
17398_ACEOF
17399cat confdefs.h >>conftest.$ac_ext
17400cat >>conftest.$ac_ext <<_ACEOF
17401/* end confdefs.h.  */
17402
17403/* Override any GCC internal prototype to avoid an error.
17404   Use char because int might match the return type of a GCC
17405   builtin and then its argument prototype would still apply.  */
17406#ifdef __cplusplus
17407extern "C"
17408#endif
17409char dld_link ();
17410int
17411main ()
17412{
17413return dld_link ();
17414  ;
17415  return 0;
17416}
17417_ACEOF
17418rm -f conftest.$ac_objext conftest$ac_exeext
17419if { (ac_try="$ac_link"
17420case "(($ac_try" in
17421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17422  *) ac_try_echo=$ac_try;;
17423esac
17424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17425  (eval "$ac_link") 2>conftest.er1
17426  ac_status=$?
17427  grep -v '^ *+' conftest.er1 >conftest.err
17428  rm -f conftest.er1
17429  cat conftest.err >&5
17430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431  (exit $ac_status); } &&
17432	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17433  { (case "(($ac_try" in
17434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435  *) ac_try_echo=$ac_try;;
17436esac
17437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17438  (eval "$ac_try") 2>&5
17439  ac_status=$?
17440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441  (exit $ac_status); }; } &&
17442	 { ac_try='test -s conftest$ac_exeext'
17443  { (case "(($ac_try" in
17444  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445  *) ac_try_echo=$ac_try;;
17446esac
17447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448  (eval "$ac_try") 2>&5
17449  ac_status=$?
17450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451  (exit $ac_status); }; }; then
17452  ac_cv_lib_dld_dld_link=yes
17453else
17454  echo "$as_me: failed program was:" >&5
17455sed 's/^/| /' conftest.$ac_ext >&5
17456
17457	ac_cv_lib_dld_dld_link=no
17458fi
17459
17460rm -f core conftest.err conftest.$ac_objext \
17461      conftest$ac_exeext conftest.$ac_ext
17462LIBS=$ac_check_lib_save_LIBS
17463fi
17464{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17465echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17466if test $ac_cv_lib_dld_dld_link = yes; then
17467  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17468fi
17469
17470
17471fi
17472
17473
17474fi
17475
17476
17477fi
17478
17479
17480fi
17481
17482
17483fi
17484
17485    ;;
17486  esac
17487
17488  if test "x$lt_cv_dlopen" != xno; then
17489    enable_dlopen=yes
17490  else
17491    enable_dlopen=no
17492  fi
17493
17494  case $lt_cv_dlopen in
17495  dlopen)
17496    save_CPPFLAGS="$CPPFLAGS"
17497    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17498
17499    save_LDFLAGS="$LDFLAGS"
17500    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17501
17502    save_LIBS="$LIBS"
17503    LIBS="$lt_cv_dlopen_libs $LIBS"
17504
17505    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17506echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17507if test "${lt_cv_dlopen_self+set}" = set; then
17508  echo $ECHO_N "(cached) $ECHO_C" >&6
17509else
17510  	  if test "$cross_compiling" = yes; then :
17511  lt_cv_dlopen_self=cross
17512else
17513  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17514  lt_status=$lt_dlunknown
17515  cat > conftest.$ac_ext <<EOF
17516#line 17516 "configure"
17517#include "confdefs.h"
17518
17519#if HAVE_DLFCN_H
17520#include <dlfcn.h>
17521#endif
17522
17523#include <stdio.h>
17524
17525#ifdef RTLD_GLOBAL
17526#  define LT_DLGLOBAL		RTLD_GLOBAL
17527#else
17528#  ifdef DL_GLOBAL
17529#    define LT_DLGLOBAL		DL_GLOBAL
17530#  else
17531#    define LT_DLGLOBAL		0
17532#  endif
17533#endif
17534
17535/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17536   find out it does not work in some platform. */
17537#ifndef LT_DLLAZY_OR_NOW
17538#  ifdef RTLD_LAZY
17539#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17540#  else
17541#    ifdef DL_LAZY
17542#      define LT_DLLAZY_OR_NOW		DL_LAZY
17543#    else
17544#      ifdef RTLD_NOW
17545#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17546#      else
17547#        ifdef DL_NOW
17548#          define LT_DLLAZY_OR_NOW	DL_NOW
17549#        else
17550#          define LT_DLLAZY_OR_NOW	0
17551#        endif
17552#      endif
17553#    endif
17554#  endif
17555#endif
17556
17557#ifdef __cplusplus
17558extern "C" void exit (int);
17559#endif
17560
17561void fnord() { int i=42;}
17562int main ()
17563{
17564  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17565  int status = $lt_dlunknown;
17566
17567  if (self)
17568    {
17569      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17570      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17571      /* dlclose (self); */
17572    }
17573  else
17574    puts (dlerror ());
17575
17576    exit (status);
17577}
17578EOF
17579  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17580  (eval $ac_link) 2>&5
17581  ac_status=$?
17582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17584    (./conftest; exit; ) >&5 2>/dev/null
17585    lt_status=$?
17586    case x$lt_status in
17587      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17588      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17589      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17590    esac
17591  else :
17592    # compilation failed
17593    lt_cv_dlopen_self=no
17594  fi
17595fi
17596rm -fr conftest*
17597
17598
17599fi
17600{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17601echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17602
17603    if test "x$lt_cv_dlopen_self" = xyes; then
17604      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17605      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17606echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17607if test "${lt_cv_dlopen_self_static+set}" = set; then
17608  echo $ECHO_N "(cached) $ECHO_C" >&6
17609else
17610  	  if test "$cross_compiling" = yes; then :
17611  lt_cv_dlopen_self_static=cross
17612else
17613  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17614  lt_status=$lt_dlunknown
17615  cat > conftest.$ac_ext <<EOF
17616#line 17616 "configure"
17617#include "confdefs.h"
17618
17619#if HAVE_DLFCN_H
17620#include <dlfcn.h>
17621#endif
17622
17623#include <stdio.h>
17624
17625#ifdef RTLD_GLOBAL
17626#  define LT_DLGLOBAL		RTLD_GLOBAL
17627#else
17628#  ifdef DL_GLOBAL
17629#    define LT_DLGLOBAL		DL_GLOBAL
17630#  else
17631#    define LT_DLGLOBAL		0
17632#  endif
17633#endif
17634
17635/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17636   find out it does not work in some platform. */
17637#ifndef LT_DLLAZY_OR_NOW
17638#  ifdef RTLD_LAZY
17639#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17640#  else
17641#    ifdef DL_LAZY
17642#      define LT_DLLAZY_OR_NOW		DL_LAZY
17643#    else
17644#      ifdef RTLD_NOW
17645#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17646#      else
17647#        ifdef DL_NOW
17648#          define LT_DLLAZY_OR_NOW	DL_NOW
17649#        else
17650#          define LT_DLLAZY_OR_NOW	0
17651#        endif
17652#      endif
17653#    endif
17654#  endif
17655#endif
17656
17657#ifdef __cplusplus
17658extern "C" void exit (int);
17659#endif
17660
17661void fnord() { int i=42;}
17662int main ()
17663{
17664  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17665  int status = $lt_dlunknown;
17666
17667  if (self)
17668    {
17669      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17670      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17671      /* dlclose (self); */
17672    }
17673  else
17674    puts (dlerror ());
17675
17676    exit (status);
17677}
17678EOF
17679  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17680  (eval $ac_link) 2>&5
17681  ac_status=$?
17682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17684    (./conftest; exit; ) >&5 2>/dev/null
17685    lt_status=$?
17686    case x$lt_status in
17687      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17688      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17689      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17690    esac
17691  else :
17692    # compilation failed
17693    lt_cv_dlopen_self_static=no
17694  fi
17695fi
17696rm -fr conftest*
17697
17698
17699fi
17700{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17701echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17702    fi
17703
17704    CPPFLAGS="$save_CPPFLAGS"
17705    LDFLAGS="$save_LDFLAGS"
17706    LIBS="$save_LIBS"
17707    ;;
17708  esac
17709
17710  case $lt_cv_dlopen_self in
17711  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17712  *) enable_dlopen_self=unknown ;;
17713  esac
17714
17715  case $lt_cv_dlopen_self_static in
17716  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17717  *) enable_dlopen_self_static=unknown ;;
17718  esac
17719fi
17720
17721
17722# Report which library types will actually be built
17723{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17724echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17725{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17726echo "${ECHO_T}$can_build_shared" >&6; }
17727
17728{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17729echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17730test "$can_build_shared" = "no" && enable_shared=no
17731
17732# On AIX, shared libraries and static libraries use the same namespace, and
17733# are all built from PIC.
17734case $host_os in
17735aix3*)
17736  test "$enable_shared" = yes && enable_static=no
17737  if test -n "$RANLIB"; then
17738    archive_cmds="$archive_cmds~\$RANLIB \$lib"
17739    postinstall_cmds='$RANLIB $lib'
17740  fi
17741  ;;
17742
17743aix4* | aix5*)
17744  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17745    test "$enable_shared" = yes && enable_static=no
17746  fi
17747    ;;
17748esac
17749{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17750echo "${ECHO_T}$enable_shared" >&6; }
17751
17752{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17753echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17754# Make sure either enable_shared or enable_static is yes.
17755test "$enable_shared" = yes || enable_static=yes
17756{ echo "$as_me:$LINENO: result: $enable_static" >&5
17757echo "${ECHO_T}$enable_static" >&6; }
17758
17759# The else clause should only fire when bootstrapping the
17760# libtool distribution, otherwise you forgot to ship ltmain.sh
17761# with your package, and you will get complaints that there are
17762# no rules to generate ltmain.sh.
17763if test -f "$ltmain"; then
17764  # See if we are running on zsh, and set the options which allow our commands through
17765  # without removal of \ escapes.
17766  if test -n "${ZSH_VERSION+set}" ; then
17767    setopt NO_GLOB_SUBST
17768  fi
17769  # Now quote all the things that may contain metacharacters while being
17770  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17771  # variables and quote the copies for generation of the libtool script.
17772  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17773    SED SHELL STRIP \
17774    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17775    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17776    deplibs_check_method reload_flag reload_cmds need_locks \
17777    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17778    lt_cv_sys_global_symbol_to_c_name_address \
17779    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17780    old_postinstall_cmds old_postuninstall_cmds \
17781    compiler \
17782    CC \
17783    LD \
17784    lt_prog_compiler_wl \
17785    lt_prog_compiler_pic \
17786    lt_prog_compiler_static \
17787    lt_prog_compiler_no_builtin_flag \
17788    export_dynamic_flag_spec \
17789    thread_safe_flag_spec \
17790    whole_archive_flag_spec \
17791    enable_shared_with_static_runtimes \
17792    old_archive_cmds \
17793    old_archive_from_new_cmds \
17794    predep_objects \
17795    postdep_objects \
17796    predeps \
17797    postdeps \
17798    compiler_lib_search_path \
17799    archive_cmds \
17800    archive_expsym_cmds \
17801    postinstall_cmds \
17802    postuninstall_cmds \
17803    old_archive_from_expsyms_cmds \
17804    allow_undefined_flag \
17805    no_undefined_flag \
17806    export_symbols_cmds \
17807    hardcode_libdir_flag_spec \
17808    hardcode_libdir_flag_spec_ld \
17809    hardcode_libdir_separator \
17810    hardcode_automatic \
17811    module_cmds \
17812    module_expsym_cmds \
17813    lt_cv_prog_compiler_c_o \
17814    exclude_expsyms \
17815    include_expsyms; do
17816
17817    case $var in
17818    old_archive_cmds | \
17819    old_archive_from_new_cmds | \
17820    archive_cmds | \
17821    archive_expsym_cmds | \
17822    module_cmds | \
17823    module_expsym_cmds | \
17824    old_archive_from_expsyms_cmds | \
17825    export_symbols_cmds | \
17826    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17827    postinstall_cmds | postuninstall_cmds | \
17828    old_postinstall_cmds | old_postuninstall_cmds | \
17829    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17830      # Double-quote double-evaled strings.
17831      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17832      ;;
17833    *)
17834      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17835      ;;
17836    esac
17837  done
17838
17839  case $lt_echo in
17840  *'\$0 --fallback-echo"')
17841    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17842    ;;
17843  esac
17844
17845cfgfile="${ofile}T"
17846  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17847  $rm -f "$cfgfile"
17848  { echo "$as_me:$LINENO: creating $ofile" >&5
17849echo "$as_me: creating $ofile" >&6;}
17850
17851  cat <<__EOF__ >> "$cfgfile"
17852#! $SHELL
17853
17854# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17855# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17856# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17857#
17858# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17859# Free Software Foundation, Inc.
17860#
17861# This file is part of GNU Libtool:
17862# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17863#
17864# This program is free software; you can redistribute it and/or modify
17865# it under the terms of the GNU General Public License as published by
17866# the Free Software Foundation; either version 2 of the License, or
17867# (at your option) any later version.
17868#
17869# This program is distributed in the hope that it will be useful, but
17870# WITHOUT ANY WARRANTY; without even the implied warranty of
17871# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17872# General Public License for more details.
17873#
17874# You should have received a copy of the GNU General Public License
17875# along with this program; if not, write to the Free Software
17876# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17877#
17878# As a special exception to the GNU General Public License, if you
17879# distribute this file as part of a program that contains a
17880# configuration script generated by Autoconf, you may include it under
17881# the same distribution terms that you use for the rest of that program.
17882
17883# A sed program that does not truncate output.
17884SED=$lt_SED
17885
17886# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17887Xsed="$SED -e 1s/^X//"
17888
17889# The HP-UX ksh and POSIX shell print the target directory to stdout
17890# if CDPATH is set.
17891(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17892
17893# The names of the tagged configurations supported by this script.
17894available_tags=
17895
17896# ### BEGIN LIBTOOL CONFIG
17897
17898# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17899
17900# Shell to use when invoking shell scripts.
17901SHELL=$lt_SHELL
17902
17903# Whether or not to build shared libraries.
17904build_libtool_libs=$enable_shared
17905
17906# Whether or not to build static libraries.
17907build_old_libs=$enable_static
17908
17909# Whether or not to add -lc for building shared libraries.
17910build_libtool_need_lc=$archive_cmds_need_lc
17911
17912# Whether or not to disallow shared libs when runtime libs are static
17913allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17914
17915# Whether or not to optimize for fast installation.
17916fast_install=$enable_fast_install
17917
17918# The host system.
17919host_alias=$host_alias
17920host=$host
17921host_os=$host_os
17922
17923# The build system.
17924build_alias=$build_alias
17925build=$build
17926build_os=$build_os
17927
17928# An echo program that does not interpret backslashes.
17929echo=$lt_echo
17930
17931# The archiver.
17932AR=$lt_AR
17933AR_FLAGS=$lt_AR_FLAGS
17934
17935# A C compiler.
17936LTCC=$lt_LTCC
17937
17938# LTCC compiler flags.
17939LTCFLAGS=$lt_LTCFLAGS
17940
17941# A language-specific compiler.
17942CC=$lt_compiler
17943
17944# Is the compiler the GNU C compiler?
17945with_gcc=$GCC
17946
17947# An ERE matcher.
17948EGREP=$lt_EGREP
17949
17950# The linker used to build libraries.
17951LD=$lt_LD
17952
17953# Whether we need hard or soft links.
17954LN_S=$lt_LN_S
17955
17956# A BSD-compatible nm program.
17957NM=$lt_NM
17958
17959# A symbol stripping program
17960STRIP=$lt_STRIP
17961
17962# Used to examine libraries when file_magic_cmd begins "file"
17963MAGIC_CMD=$MAGIC_CMD
17964
17965# Used on cygwin: DLL creation program.
17966DLLTOOL="$DLLTOOL"
17967
17968# Used on cygwin: object dumper.
17969OBJDUMP="$OBJDUMP"
17970
17971# Used on cygwin: assembler.
17972AS="$AS"
17973
17974# The name of the directory that contains temporary libtool files.
17975objdir=$objdir
17976
17977# How to create reloadable object files.
17978reload_flag=$lt_reload_flag
17979reload_cmds=$lt_reload_cmds
17980
17981# How to pass a linker flag through the compiler.
17982wl=$lt_lt_prog_compiler_wl
17983
17984# Object file suffix (normally "o").
17985objext="$ac_objext"
17986
17987# Old archive suffix (normally "a").
17988libext="$libext"
17989
17990# Shared library suffix (normally ".so").
17991shrext_cmds='$shrext_cmds'
17992
17993# Executable file suffix (normally "").
17994exeext="$exeext"
17995
17996# Additional compiler flags for building library objects.
17997pic_flag=$lt_lt_prog_compiler_pic
17998pic_mode=$pic_mode
17999
18000# What is the maximum length of a command?
18001max_cmd_len=$lt_cv_sys_max_cmd_len
18002
18003# Does compiler simultaneously support -c and -o options?
18004compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18005
18006# Must we lock files when doing compilation?
18007need_locks=$lt_need_locks
18008
18009# Do we need the lib prefix for modules?
18010need_lib_prefix=$need_lib_prefix
18011
18012# Do we need a version for libraries?
18013need_version=$need_version
18014
18015# Whether dlopen is supported.
18016dlopen_support=$enable_dlopen
18017
18018# Whether dlopen of programs is supported.
18019dlopen_self=$enable_dlopen_self
18020
18021# Whether dlopen of statically linked programs is supported.
18022dlopen_self_static=$enable_dlopen_self_static
18023
18024# Compiler flag to prevent dynamic linking.
18025link_static_flag=$lt_lt_prog_compiler_static
18026
18027# Compiler flag to turn off builtin functions.
18028no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18029
18030# Compiler flag to allow reflexive dlopens.
18031export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18032
18033# Compiler flag to generate shared objects directly from archives.
18034whole_archive_flag_spec=$lt_whole_archive_flag_spec
18035
18036# Compiler flag to generate thread-safe objects.
18037thread_safe_flag_spec=$lt_thread_safe_flag_spec
18038
18039# Library versioning type.
18040version_type=$version_type
18041
18042# Format of library name prefix.
18043libname_spec=$lt_libname_spec
18044
18045# List of archive names.  First name is the real one, the rest are links.
18046# The last name is the one that the linker finds with -lNAME.
18047library_names_spec=$lt_library_names_spec
18048
18049# The coded name of the library, if different from the real name.
18050soname_spec=$lt_soname_spec
18051
18052# Commands used to build and install an old-style archive.
18053RANLIB=$lt_RANLIB
18054old_archive_cmds=$lt_old_archive_cmds
18055old_postinstall_cmds=$lt_old_postinstall_cmds
18056old_postuninstall_cmds=$lt_old_postuninstall_cmds
18057
18058# Create an old-style archive from a shared archive.
18059old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18060
18061# Create a temporary old-style archive to link instead of a shared archive.
18062old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18063
18064# Commands used to build and install a shared archive.
18065archive_cmds=$lt_archive_cmds
18066archive_expsym_cmds=$lt_archive_expsym_cmds
18067postinstall_cmds=$lt_postinstall_cmds
18068postuninstall_cmds=$lt_postuninstall_cmds
18069
18070# Commands used to build a loadable module (assumed same as above if empty)
18071module_cmds=$lt_module_cmds
18072module_expsym_cmds=$lt_module_expsym_cmds
18073
18074# Commands to strip libraries.
18075old_striplib=$lt_old_striplib
18076striplib=$lt_striplib
18077
18078# Dependencies to place before the objects being linked to create a
18079# shared library.
18080predep_objects=$lt_predep_objects
18081
18082# Dependencies to place after the objects being linked to create a
18083# shared library.
18084postdep_objects=$lt_postdep_objects
18085
18086# Dependencies to place before the objects being linked to create a
18087# shared library.
18088predeps=$lt_predeps
18089
18090# Dependencies to place after the objects being linked to create a
18091# shared library.
18092postdeps=$lt_postdeps
18093
18094# The library search path used internally by the compiler when linking
18095# a shared library.
18096compiler_lib_search_path=$lt_compiler_lib_search_path
18097
18098# Method to check whether dependent libraries are shared objects.
18099deplibs_check_method=$lt_deplibs_check_method
18100
18101# Command to use when deplibs_check_method == file_magic.
18102file_magic_cmd=$lt_file_magic_cmd
18103
18104# Flag that allows shared libraries with undefined symbols to be built.
18105allow_undefined_flag=$lt_allow_undefined_flag
18106
18107# Flag that forces no undefined symbols.
18108no_undefined_flag=$lt_no_undefined_flag
18109
18110# Commands used to finish a libtool library installation in a directory.
18111finish_cmds=$lt_finish_cmds
18112
18113# Same as above, but a single script fragment to be evaled but not shown.
18114finish_eval=$lt_finish_eval
18115
18116# Take the output of nm and produce a listing of raw symbols and C names.
18117global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18118
18119# Transform the output of nm in a proper C declaration
18120global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18121
18122# Transform the output of nm in a C name address pair
18123global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18124
18125# This is the shared library runtime path variable.
18126runpath_var=$runpath_var
18127
18128# This is the shared library path variable.
18129shlibpath_var=$shlibpath_var
18130
18131# Is shlibpath searched before the hard-coded library search path?
18132shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18133
18134# How to hardcode a shared library path into an executable.
18135hardcode_action=$hardcode_action
18136
18137# Whether we should hardcode library paths into libraries.
18138hardcode_into_libs=$hardcode_into_libs
18139
18140# Flag to hardcode \$libdir into a binary during linking.
18141# This must work even if \$libdir does not exist.
18142hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18143
18144# If ld is used when linking, flag to hardcode \$libdir into
18145# a binary during linking. This must work even if \$libdir does
18146# not exist.
18147hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18148
18149# Whether we need a single -rpath flag with a separated argument.
18150hardcode_libdir_separator=$lt_hardcode_libdir_separator
18151
18152# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18153# resulting binary.
18154hardcode_direct=$hardcode_direct
18155
18156# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18157# resulting binary.
18158hardcode_minus_L=$hardcode_minus_L
18159
18160# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18161# the resulting binary.
18162hardcode_shlibpath_var=$hardcode_shlibpath_var
18163
18164# Set to yes if building a shared library automatically hardcodes DIR into the library
18165# and all subsequent libraries and executables linked against it.
18166hardcode_automatic=$hardcode_automatic
18167
18168# Variables whose values should be saved in libtool wrapper scripts and
18169# restored at relink time.
18170variables_saved_for_relink="$variables_saved_for_relink"
18171
18172# Whether libtool must link a program against all its dependency libraries.
18173link_all_deplibs=$link_all_deplibs
18174
18175# Compile-time system search path for libraries
18176sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18177
18178# Run-time system search path for libraries
18179sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18180
18181# Fix the shell variable \$srcfile for the compiler.
18182fix_srcfile_path="$fix_srcfile_path"
18183
18184# Set to yes if exported symbols are required.
18185always_export_symbols=$always_export_symbols
18186
18187# The commands to list exported symbols.
18188export_symbols_cmds=$lt_export_symbols_cmds
18189
18190# The commands to extract the exported symbol list from a shared archive.
18191extract_expsyms_cmds=$lt_extract_expsyms_cmds
18192
18193# Symbols that should not be listed in the preloaded symbols.
18194exclude_expsyms=$lt_exclude_expsyms
18195
18196# Symbols that must always be exported.
18197include_expsyms=$lt_include_expsyms
18198
18199# ### END LIBTOOL CONFIG
18200
18201__EOF__
18202
18203
18204  case $host_os in
18205  aix3*)
18206    cat <<\EOF >> "$cfgfile"
18207
18208# AIX sometimes has problems with the GCC collect2 program.  For some
18209# reason, if we set the COLLECT_NAMES environment variable, the problems
18210# vanish in a puff of smoke.
18211if test "X${COLLECT_NAMES+set}" != Xset; then
18212  COLLECT_NAMES=
18213  export COLLECT_NAMES
18214fi
18215EOF
18216    ;;
18217  esac
18218
18219  # We use sed instead of cat because bash on DJGPP gets confused if
18220  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18221  # text mode, it properly converts lines to CR/LF.  This bash problem
18222  # is reportedly fixed, but why not run on old versions too?
18223  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18224
18225  mv -f "$cfgfile" "$ofile" || \
18226    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18227  chmod +x "$ofile"
18228
18229else
18230  # If there is no Makefile yet, we rely on a make rule to execute
18231  # `config.status --recheck' to rerun these tests and create the
18232  # libtool script then.
18233  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18234  if test -f "$ltmain_in"; then
18235    test -f Makefile && make "$ltmain"
18236  fi
18237fi
18238
18239
18240ac_ext=c
18241ac_cpp='$CPP $CPPFLAGS'
18242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18244ac_compiler_gnu=$ac_cv_c_compiler_gnu
18245
18246CC="$lt_save_CC"
18247
18248
18249# Check whether --with-tags was given.
18250if test "${with_tags+set}" = set; then
18251  withval=$with_tags; tagnames="$withval"
18252fi
18253
18254
18255if test -f "$ltmain" && test -n "$tagnames"; then
18256  if test ! -f "${ofile}"; then
18257    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18258echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18259  fi
18260
18261  if test -z "$LTCC"; then
18262    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18263    if test -z "$LTCC"; then
18264      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18265echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18266    else
18267      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18268echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18269    fi
18270  fi
18271  if test -z "$LTCFLAGS"; then
18272    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18273  fi
18274
18275  # Extract list of available tagged configurations in $ofile.
18276  # Note that this assumes the entire list is on one line.
18277  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18278
18279  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18280  for tagname in $tagnames; do
18281    IFS="$lt_save_ifs"
18282    # Check whether tagname contains only valid characters
18283    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18284    "") ;;
18285    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18286echo "$as_me: error: invalid tag name: $tagname" >&2;}
18287   { (exit 1); exit 1; }; }
18288	;;
18289    esac
18290
18291    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18292    then
18293      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18294echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18295   { (exit 1); exit 1; }; }
18296    fi
18297
18298    # Update the list of available tags.
18299    if test -n "$tagname"; then
18300      echo appending configuration tag \"$tagname\" to $ofile
18301
18302      case $tagname in
18303      CXX)
18304	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18305	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18306	    (test "X$CXX" != "Xg++"))) ; then
18307	  ac_ext=cpp
18308ac_cpp='$CXXCPP $CPPFLAGS'
18309ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18310ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18311ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18312
18313
18314
18315
18316archive_cmds_need_lc_CXX=no
18317allow_undefined_flag_CXX=
18318always_export_symbols_CXX=no
18319archive_expsym_cmds_CXX=
18320export_dynamic_flag_spec_CXX=
18321hardcode_direct_CXX=no
18322hardcode_libdir_flag_spec_CXX=
18323hardcode_libdir_flag_spec_ld_CXX=
18324hardcode_libdir_separator_CXX=
18325hardcode_minus_L_CXX=no
18326hardcode_shlibpath_var_CXX=unsupported
18327hardcode_automatic_CXX=no
18328module_cmds_CXX=
18329module_expsym_cmds_CXX=
18330link_all_deplibs_CXX=unknown
18331old_archive_cmds_CXX=$old_archive_cmds
18332no_undefined_flag_CXX=
18333whole_archive_flag_spec_CXX=
18334enable_shared_with_static_runtimes_CXX=no
18335
18336# Dependencies to place before and after the object being linked:
18337predep_objects_CXX=
18338postdep_objects_CXX=
18339predeps_CXX=
18340postdeps_CXX=
18341compiler_lib_search_path_CXX=
18342
18343# Source file extension for C++ test sources.
18344ac_ext=cpp
18345
18346# Object file extension for compiled C++ test sources.
18347objext=o
18348objext_CXX=$objext
18349
18350# Code to be used in simple compile tests
18351lt_simple_compile_test_code="int some_variable = 0;\n"
18352
18353# Code to be used in simple link tests
18354lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18355
18356# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18357
18358# If no C compiler was specified, use CC.
18359LTCC=${LTCC-"$CC"}
18360
18361# If no C compiler flags were specified, use CFLAGS.
18362LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18363
18364# Allow CC to be a program name with arguments.
18365compiler=$CC
18366
18367
18368# save warnings/boilerplate of simple test code
18369ac_outfile=conftest.$ac_objext
18370printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18371eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18372_lt_compiler_boilerplate=`cat conftest.err`
18373$rm conftest*
18374
18375ac_outfile=conftest.$ac_objext
18376printf "$lt_simple_link_test_code" >conftest.$ac_ext
18377eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18378_lt_linker_boilerplate=`cat conftest.err`
18379$rm conftest*
18380
18381
18382# Allow CC to be a program name with arguments.
18383lt_save_CC=$CC
18384lt_save_LD=$LD
18385lt_save_GCC=$GCC
18386GCC=$GXX
18387lt_save_with_gnu_ld=$with_gnu_ld
18388lt_save_path_LD=$lt_cv_path_LD
18389if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18390  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18391else
18392  $as_unset lt_cv_prog_gnu_ld
18393fi
18394if test -n "${lt_cv_path_LDCXX+set}"; then
18395  lt_cv_path_LD=$lt_cv_path_LDCXX
18396else
18397  $as_unset lt_cv_path_LD
18398fi
18399test -z "${LDCXX+set}" || LD=$LDCXX
18400CC=${CXX-"c++"}
18401compiler=$CC
18402compiler_CXX=$CC
18403for cc_temp in $compiler""; do
18404  case $cc_temp in
18405    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18406    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18407    \-*) ;;
18408    *) break;;
18409  esac
18410done
18411cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18412
18413
18414# We don't want -fno-exception wen compiling C++ code, so set the
18415# no_builtin_flag separately
18416if test "$GXX" = yes; then
18417  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18418else
18419  lt_prog_compiler_no_builtin_flag_CXX=
18420fi
18421
18422if test "$GXX" = yes; then
18423  # Set up default GNU C++ configuration
18424
18425
18426# Check whether --with-gnu-ld was given.
18427if test "${with_gnu_ld+set}" = set; then
18428  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18429else
18430  with_gnu_ld=no
18431fi
18432
18433ac_prog=ld
18434if test "$GCC" = yes; then
18435  # Check if gcc -print-prog-name=ld gives a path.
18436  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18437echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18438  case $host in
18439  *-*-mingw*)
18440    # gcc leaves a trailing carriage return which upsets mingw
18441    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18442  *)
18443    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18444  esac
18445  case $ac_prog in
18446    # Accept absolute paths.
18447    [\\/]* | ?:[\\/]*)
18448      re_direlt='/[^/][^/]*/\.\./'
18449      # Canonicalize the pathname of ld
18450      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18451      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18452	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18453      done
18454      test -z "$LD" && LD="$ac_prog"
18455      ;;
18456  "")
18457    # If it fails, then pretend we aren't using GCC.
18458    ac_prog=ld
18459    ;;
18460  *)
18461    # If it is relative, then search for the first ld in PATH.
18462    with_gnu_ld=unknown
18463    ;;
18464  esac
18465elif test "$with_gnu_ld" = yes; then
18466  { echo "$as_me:$LINENO: checking for GNU ld" >&5
18467echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18468else
18469  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18470echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18471fi
18472if test "${lt_cv_path_LD+set}" = set; then
18473  echo $ECHO_N "(cached) $ECHO_C" >&6
18474else
18475  if test -z "$LD"; then
18476  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18477  for ac_dir in $PATH; do
18478    IFS="$lt_save_ifs"
18479    test -z "$ac_dir" && ac_dir=.
18480    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18481      lt_cv_path_LD="$ac_dir/$ac_prog"
18482      # Check to see if the program is GNU ld.  I'd rather use --version,
18483      # but apparently some variants of GNU ld only accept -v.
18484      # Break only if it was the GNU/non-GNU ld that we prefer.
18485      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18486      *GNU* | *'with BFD'*)
18487	test "$with_gnu_ld" != no && break
18488	;;
18489      *)
18490	test "$with_gnu_ld" != yes && break
18491	;;
18492      esac
18493    fi
18494  done
18495  IFS="$lt_save_ifs"
18496else
18497  lt_cv_path_LD="$LD" # Let the user override the test with a path.
18498fi
18499fi
18500
18501LD="$lt_cv_path_LD"
18502if test -n "$LD"; then
18503  { echo "$as_me:$LINENO: result: $LD" >&5
18504echo "${ECHO_T}$LD" >&6; }
18505else
18506  { echo "$as_me:$LINENO: result: no" >&5
18507echo "${ECHO_T}no" >&6; }
18508fi
18509test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18510echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18511   { (exit 1); exit 1; }; }
18512{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18513echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18514if test "${lt_cv_prog_gnu_ld+set}" = set; then
18515  echo $ECHO_N "(cached) $ECHO_C" >&6
18516else
18517  # I'd rather use --version here, but apparently some GNU lds only accept -v.
18518case `$LD -v 2>&1 </dev/null` in
18519*GNU* | *'with BFD'*)
18520  lt_cv_prog_gnu_ld=yes
18521  ;;
18522*)
18523  lt_cv_prog_gnu_ld=no
18524  ;;
18525esac
18526fi
18527{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18528echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18529with_gnu_ld=$lt_cv_prog_gnu_ld
18530
18531
18532
18533  # Check if GNU C++ uses GNU ld as the underlying linker, since the
18534  # archiving commands below assume that GNU ld is being used.
18535  if test "$with_gnu_ld" = yes; then
18536    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18537    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'
18538
18539    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18540    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18541
18542    # If archive_cmds runs LD, not CC, wlarc should be empty
18543    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18544    #     investigate it a little bit more. (MM)
18545    wlarc='${wl}'
18546
18547    # ancient GNU ld didn't support --whole-archive et. al.
18548    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18549	grep 'no-whole-archive' > /dev/null; then
18550      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18551    else
18552      whole_archive_flag_spec_CXX=
18553    fi
18554  else
18555    with_gnu_ld=no
18556    wlarc=
18557
18558    # A generic and very simple default shared library creation
18559    # command for GNU C++ for the case where it uses the native
18560    # linker, instead of GNU ld.  If possible, this setting should
18561    # overridden to take advantage of the native linker features on
18562    # the platform it is being used on.
18563    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18564  fi
18565
18566  # Commands to make compiler produce verbose output that lists
18567  # what "hidden" libraries, object files and flags are used when
18568  # linking a shared library.
18569  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18570
18571else
18572  GXX=no
18573  with_gnu_ld=no
18574  wlarc=
18575fi
18576
18577# PORTME: fill in a description of your system's C++ link characteristics
18578{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18579echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18580ld_shlibs_CXX=yes
18581case $host_os in
18582  aix3*)
18583    # FIXME: insert proper C++ library support
18584    ld_shlibs_CXX=no
18585    ;;
18586  aix4* | aix5*)
18587    if test "$host_cpu" = ia64; then
18588      # On IA64, the linker does run time linking by default, so we don't
18589      # have to do anything special.
18590      aix_use_runtimelinking=no
18591      exp_sym_flag='-Bexport'
18592      no_entry_flag=""
18593    else
18594      aix_use_runtimelinking=no
18595
18596      # Test if we are trying to use run time linking or normal
18597      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18598      # need to do runtime linking.
18599      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18600	for ld_flag in $LDFLAGS; do
18601	  case $ld_flag in
18602	  *-brtl*)
18603	    aix_use_runtimelinking=yes
18604	    break
18605	    ;;
18606	  esac
18607	done
18608	;;
18609      esac
18610
18611      exp_sym_flag='-bexport'
18612      no_entry_flag='-bnoentry'
18613    fi
18614
18615    # When large executables or shared objects are built, AIX ld can
18616    # have problems creating the table of contents.  If linking a library
18617    # or program results in "error TOC overflow" add -mminimal-toc to
18618    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18619    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18620
18621    archive_cmds_CXX=''
18622    hardcode_direct_CXX=yes
18623    hardcode_libdir_separator_CXX=':'
18624    link_all_deplibs_CXX=yes
18625
18626    if test "$GXX" = yes; then
18627      case $host_os in aix4.[012]|aix4.[012].*)
18628      # We only want to do this on AIX 4.2 and lower, the check
18629      # below for broken collect2 doesn't work under 4.3+
18630	collect2name=`${CC} -print-prog-name=collect2`
18631	if test -f "$collect2name" && \
18632	   strings "$collect2name" | grep resolve_lib_name >/dev/null
18633	then
18634	  # We have reworked collect2
18635	  hardcode_direct_CXX=yes
18636	else
18637	  # We have old collect2
18638	  hardcode_direct_CXX=unsupported
18639	  # It fails to find uninstalled libraries when the uninstalled
18640	  # path is not listed in the libpath.  Setting hardcode_minus_L
18641	  # to unsupported forces relinking
18642	  hardcode_minus_L_CXX=yes
18643	  hardcode_libdir_flag_spec_CXX='-L$libdir'
18644	  hardcode_libdir_separator_CXX=
18645	fi
18646	;;
18647      esac
18648      shared_flag='-shared'
18649      if test "$aix_use_runtimelinking" = yes; then
18650	shared_flag="$shared_flag "'${wl}-G'
18651      fi
18652    else
18653      # not using gcc
18654      if test "$host_cpu" = ia64; then
18655	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18656	# chokes on -Wl,-G. The following line is correct:
18657	shared_flag='-G'
18658      else
18659	if test "$aix_use_runtimelinking" = yes; then
18660	  shared_flag='${wl}-G'
18661	else
18662	  shared_flag='${wl}-bM:SRE'
18663	fi
18664      fi
18665    fi
18666
18667    # It seems that -bexpall does not export symbols beginning with
18668    # underscore (_), so it is better to generate a list of symbols to export.
18669    always_export_symbols_CXX=yes
18670    if test "$aix_use_runtimelinking" = yes; then
18671      # Warning - without using the other runtime loading flags (-brtl),
18672      # -berok will link without error, but may produce a broken library.
18673      allow_undefined_flag_CXX='-berok'
18674      # Determine the default libpath from the value encoded in an empty executable.
18675      cat >conftest.$ac_ext <<_ACEOF
18676/* confdefs.h.  */
18677_ACEOF
18678cat confdefs.h >>conftest.$ac_ext
18679cat >>conftest.$ac_ext <<_ACEOF
18680/* end confdefs.h.  */
18681
18682int
18683main ()
18684{
18685
18686  ;
18687  return 0;
18688}
18689_ACEOF
18690rm -f conftest.$ac_objext conftest$ac_exeext
18691if { (ac_try="$ac_link"
18692case "(($ac_try" in
18693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18694  *) ac_try_echo=$ac_try;;
18695esac
18696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18697  (eval "$ac_link") 2>conftest.er1
18698  ac_status=$?
18699  grep -v '^ *+' conftest.er1 >conftest.err
18700  rm -f conftest.er1
18701  cat conftest.err >&5
18702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703  (exit $ac_status); } &&
18704	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18705  { (case "(($ac_try" in
18706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18707  *) ac_try_echo=$ac_try;;
18708esac
18709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18710  (eval "$ac_try") 2>&5
18711  ac_status=$?
18712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713  (exit $ac_status); }; } &&
18714	 { ac_try='test -s conftest$ac_exeext'
18715  { (case "(($ac_try" in
18716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717  *) ac_try_echo=$ac_try;;
18718esac
18719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720  (eval "$ac_try") 2>&5
18721  ac_status=$?
18722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723  (exit $ac_status); }; }; then
18724
18725aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18726}'`
18727# Check for a 64-bit object if we didn't find anything.
18728if 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; }
18729}'`; fi
18730else
18731  echo "$as_me: failed program was:" >&5
18732sed 's/^/| /' conftest.$ac_ext >&5
18733
18734
18735fi
18736
18737rm -f core conftest.err conftest.$ac_objext \
18738      conftest$ac_exeext conftest.$ac_ext
18739if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18740
18741      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18742
18743      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"
18744     else
18745      if test "$host_cpu" = ia64; then
18746	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18747	allow_undefined_flag_CXX="-z nodefs"
18748	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"
18749      else
18750	# Determine the default libpath from the value encoded in an empty executable.
18751	cat >conftest.$ac_ext <<_ACEOF
18752/* confdefs.h.  */
18753_ACEOF
18754cat confdefs.h >>conftest.$ac_ext
18755cat >>conftest.$ac_ext <<_ACEOF
18756/* end confdefs.h.  */
18757
18758int
18759main ()
18760{
18761
18762  ;
18763  return 0;
18764}
18765_ACEOF
18766rm -f conftest.$ac_objext conftest$ac_exeext
18767if { (ac_try="$ac_link"
18768case "(($ac_try" in
18769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18770  *) ac_try_echo=$ac_try;;
18771esac
18772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18773  (eval "$ac_link") 2>conftest.er1
18774  ac_status=$?
18775  grep -v '^ *+' conftest.er1 >conftest.err
18776  rm -f conftest.er1
18777  cat conftest.err >&5
18778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779  (exit $ac_status); } &&
18780	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18781  { (case "(($ac_try" in
18782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18783  *) ac_try_echo=$ac_try;;
18784esac
18785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18786  (eval "$ac_try") 2>&5
18787  ac_status=$?
18788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789  (exit $ac_status); }; } &&
18790	 { ac_try='test -s conftest$ac_exeext'
18791  { (case "(($ac_try" in
18792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18793  *) ac_try_echo=$ac_try;;
18794esac
18795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18796  (eval "$ac_try") 2>&5
18797  ac_status=$?
18798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799  (exit $ac_status); }; }; then
18800
18801aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18802}'`
18803# Check for a 64-bit object if we didn't find anything.
18804if 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; }
18805}'`; fi
18806else
18807  echo "$as_me: failed program was:" >&5
18808sed 's/^/| /' conftest.$ac_ext >&5
18809
18810
18811fi
18812
18813rm -f core conftest.err conftest.$ac_objext \
18814      conftest$ac_exeext conftest.$ac_ext
18815if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18816
18817	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18818	# Warning - without using the other run time loading flags,
18819	# -berok will link without error, but may produce a broken library.
18820	no_undefined_flag_CXX=' ${wl}-bernotok'
18821	allow_undefined_flag_CXX=' ${wl}-berok'
18822	# Exported symbols can be pulled into shared objects from archives
18823	whole_archive_flag_spec_CXX='$convenience'
18824	archive_cmds_need_lc_CXX=yes
18825	# This is similar to how AIX traditionally builds its shared libraries.
18826	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'
18827      fi
18828    fi
18829    ;;
18830
18831  beos*)
18832    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18833      allow_undefined_flag_CXX=unsupported
18834      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18835      # support --undefined.  This deserves some investigation.  FIXME
18836      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18837    else
18838      ld_shlibs_CXX=no
18839    fi
18840    ;;
18841
18842  chorus*)
18843    case $cc_basename in
18844      *)
18845	# FIXME: insert proper C++ library support
18846	ld_shlibs_CXX=no
18847	;;
18848    esac
18849    ;;
18850
18851  cygwin* | mingw* | pw32*)
18852    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18853    # as there is no search path for DLLs.
18854    hardcode_libdir_flag_spec_CXX='-L$libdir'
18855    allow_undefined_flag_CXX=unsupported
18856    always_export_symbols_CXX=no
18857    enable_shared_with_static_runtimes_CXX=yes
18858
18859    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18860      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'
18861      # If the export-symbols file already is a .def file (1st line
18862      # is EXPORTS), use it as is; otherwise, prepend...
18863      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18864	cp $export_symbols $output_objdir/$soname.def;
18865      else
18866	echo EXPORTS > $output_objdir/$soname.def;
18867	cat $export_symbols >> $output_objdir/$soname.def;
18868      fi~
18869      $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'
18870    else
18871      ld_shlibs_CXX=no
18872    fi
18873  ;;
18874      darwin* | rhapsody*)
18875        case $host_os in
18876        rhapsody* | darwin1.[012])
18877         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18878         ;;
18879       *) # Darwin 1.3 on
18880         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18881           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18882         else
18883           case ${MACOSX_DEPLOYMENT_TARGET} in
18884             10.[012])
18885               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18886               ;;
18887             10.*)
18888               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18889               ;;
18890           esac
18891         fi
18892         ;;
18893        esac
18894      archive_cmds_need_lc_CXX=no
18895      hardcode_direct_CXX=no
18896      hardcode_automatic_CXX=yes
18897      hardcode_shlibpath_var_CXX=unsupported
18898      whole_archive_flag_spec_CXX=''
18899      link_all_deplibs_CXX=yes
18900
18901    if test "$GXX" = yes ; then
18902      lt_int_apple_cc_single_mod=no
18903      output_verbose_link_cmd='echo'
18904      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18905       lt_int_apple_cc_single_mod=yes
18906      fi
18907      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18908       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18909      else
18910          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'
18911        fi
18912        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18913        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18914          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18915            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}'
18916          else
18917            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}'
18918          fi
18919            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}'
18920      else
18921      case $cc_basename in
18922        xlc*)
18923         output_verbose_link_cmd='echo'
18924          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'
18925          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18926          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18927          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}'
18928          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}'
18929          ;;
18930       *)
18931         ld_shlibs_CXX=no
18932          ;;
18933      esac
18934      fi
18935        ;;
18936
18937  dgux*)
18938    case $cc_basename in
18939      ec++*)
18940	# FIXME: insert proper C++ library support
18941	ld_shlibs_CXX=no
18942	;;
18943      ghcx*)
18944	# Green Hills C++ Compiler
18945	# FIXME: insert proper C++ library support
18946	ld_shlibs_CXX=no
18947	;;
18948      *)
18949	# FIXME: insert proper C++ library support
18950	ld_shlibs_CXX=no
18951	;;
18952    esac
18953    ;;
18954  freebsd[12]*)
18955    # C++ shared libraries reported to be fairly broken before switch to ELF
18956    ld_shlibs_CXX=no
18957    ;;
18958  freebsd-elf*)
18959    archive_cmds_need_lc_CXX=no
18960    ;;
18961  freebsd* | kfreebsd*-gnu | dragonfly*)
18962    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18963    # conventions
18964    ld_shlibs_CXX=yes
18965    ;;
18966  gnu*)
18967    ;;
18968  hpux9*)
18969    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18970    hardcode_libdir_separator_CXX=:
18971    export_dynamic_flag_spec_CXX='${wl}-E'
18972    hardcode_direct_CXX=yes
18973    hardcode_minus_L_CXX=yes # Not in the search PATH,
18974				# but as the default
18975				# location of the library.
18976
18977    case $cc_basename in
18978    CC*)
18979      # FIXME: insert proper C++ library support
18980      ld_shlibs_CXX=no
18981      ;;
18982    aCC*)
18983      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'
18984      # Commands to make compiler produce verbose output that lists
18985      # what "hidden" libraries, object files and flags are used when
18986      # linking a shared library.
18987      #
18988      # There doesn't appear to be a way to prevent this compiler from
18989      # explicitly linking system object files so we need to strip them
18990      # from the output so that they don't get included in the library
18991      # dependencies.
18992      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'
18993      ;;
18994    *)
18995      if test "$GXX" = yes; then
18996        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'
18997      else
18998        # FIXME: insert proper C++ library support
18999        ld_shlibs_CXX=no
19000      fi
19001      ;;
19002    esac
19003    ;;
19004  hpux10*|hpux11*)
19005    if test $with_gnu_ld = no; then
19006      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19007      hardcode_libdir_separator_CXX=:
19008
19009      case $host_cpu in
19010      hppa*64*|ia64*)
19011	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19012        ;;
19013      *)
19014	export_dynamic_flag_spec_CXX='${wl}-E'
19015        ;;
19016      esac
19017    fi
19018    case $host_cpu in
19019    hppa*64*|ia64*)
19020      hardcode_direct_CXX=no
19021      hardcode_shlibpath_var_CXX=no
19022      ;;
19023    *)
19024      hardcode_direct_CXX=yes
19025      hardcode_minus_L_CXX=yes # Not in the search PATH,
19026					      # but as the default
19027					      # location of the library.
19028      ;;
19029    esac
19030
19031    case $cc_basename in
19032      CC*)
19033	# FIXME: insert proper C++ library support
19034	ld_shlibs_CXX=no
19035	;;
19036      aCC*)
19037	case $host_cpu in
19038	hppa*64*)
19039	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19040	  ;;
19041	ia64*)
19042	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19043	  ;;
19044	*)
19045	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19046	  ;;
19047	esac
19048	# Commands to make compiler produce verbose output that lists
19049	# what "hidden" libraries, object files and flags are used when
19050	# linking a shared library.
19051	#
19052	# There doesn't appear to be a way to prevent this compiler from
19053	# explicitly linking system object files so we need to strip them
19054	# from the output so that they don't get included in the library
19055	# dependencies.
19056	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'
19057	;;
19058      *)
19059	if test "$GXX" = yes; then
19060	  if test $with_gnu_ld = no; then
19061	    case $host_cpu in
19062	    hppa*64*)
19063	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19064	      ;;
19065	    ia64*)
19066	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19067	      ;;
19068	    *)
19069	      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'
19070	      ;;
19071	    esac
19072	  fi
19073	else
19074	  # FIXME: insert proper C++ library support
19075	  ld_shlibs_CXX=no
19076	fi
19077	;;
19078    esac
19079    ;;
19080  interix3*)
19081    hardcode_direct_CXX=no
19082    hardcode_shlibpath_var_CXX=no
19083    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19084    export_dynamic_flag_spec_CXX='${wl}-E'
19085    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19086    # Instead, shared libraries are loaded at an image base (0x10000000 by
19087    # default) and relocated if they conflict, which is a slow very memory
19088    # consuming and fragmenting process.  To avoid this, we pick a random,
19089    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19090    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19091    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'
19092    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'
19093    ;;
19094  irix5* | irix6*)
19095    case $cc_basename in
19096      CC*)
19097	# SGI C++
19098	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'
19099
19100	# Archives containing C++ object files must be created using
19101	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19102	# necessary to make sure instantiated templates are included
19103	# in the archive.
19104	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19105	;;
19106      *)
19107	if test "$GXX" = yes; then
19108	  if test "$with_gnu_ld" = no; then
19109	    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'
19110	  else
19111	    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'
19112	  fi
19113	fi
19114	link_all_deplibs_CXX=yes
19115	;;
19116    esac
19117    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19118    hardcode_libdir_separator_CXX=:
19119    ;;
19120  linux*)
19121    case $cc_basename in
19122      KCC*)
19123	# Kuck and Associates, Inc. (KAI) C++ Compiler
19124
19125	# KCC will only create a shared library if the output file
19126	# ends with ".so" (or ".sl" for HP-UX), so rename the library
19127	# to its proper name (with version) after linking.
19128	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'
19129	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'
19130	# Commands to make compiler produce verbose output that lists
19131	# what "hidden" libraries, object files and flags are used when
19132	# linking a shared library.
19133	#
19134	# There doesn't appear to be a way to prevent this compiler from
19135	# explicitly linking system object files so we need to strip them
19136	# from the output so that they don't get included in the library
19137	# dependencies.
19138	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'
19139
19140	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19141	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19142
19143	# Archives containing C++ object files must be created using
19144	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
19145	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19146	;;
19147      icpc*)
19148	# Intel C++
19149	with_gnu_ld=yes
19150	# version 8.0 and above of icpc choke on multiply defined symbols
19151	# if we add $predep_objects and $postdep_objects, however 7.1 and
19152	# earlier do not add the objects themselves.
19153	case `$CC -V 2>&1` in
19154	*"Version 7."*)
19155  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19156  	  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'
19157	  ;;
19158	*)  # Version 8.0 or newer
19159	  tmp_idyn=
19160	  case $host_cpu in
19161	    ia64*) tmp_idyn=' -i_dynamic';;
19162	  esac
19163  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19164	  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'
19165	  ;;
19166	esac
19167	archive_cmds_need_lc_CXX=no
19168	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19169	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19170	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19171	;;
19172      pgCC*)
19173        # Portland Group C++ compiler
19174	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19175  	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'
19176
19177	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19178	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19179	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'
19180        ;;
19181      cxx*)
19182	# Compaq C++
19183	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19184	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'
19185
19186	runpath_var=LD_RUN_PATH
19187	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19188	hardcode_libdir_separator_CXX=:
19189
19190	# Commands to make compiler produce verbose output that lists
19191	# what "hidden" libraries, object files and flags are used when
19192	# linking a shared library.
19193	#
19194	# There doesn't appear to be a way to prevent this compiler from
19195	# explicitly linking system object files so we need to strip them
19196	# from the output so that they don't get included in the library
19197	# dependencies.
19198	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'
19199	;;
19200    esac
19201    ;;
19202  lynxos*)
19203    # FIXME: insert proper C++ library support
19204    ld_shlibs_CXX=no
19205    ;;
19206  m88k*)
19207    # FIXME: insert proper C++ library support
19208    ld_shlibs_CXX=no
19209    ;;
19210  mvs*)
19211    case $cc_basename in
19212      cxx*)
19213	# FIXME: insert proper C++ library support
19214	ld_shlibs_CXX=no
19215	;;
19216      *)
19217	# FIXME: insert proper C++ library support
19218	ld_shlibs_CXX=no
19219	;;
19220    esac
19221    ;;
19222  netbsd*)
19223    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19224      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19225      wlarc=
19226      hardcode_libdir_flag_spec_CXX='-R$libdir'
19227      hardcode_direct_CXX=yes
19228      hardcode_shlibpath_var_CXX=no
19229    fi
19230    # Workaround some broken pre-1.5 toolchains
19231    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19232    ;;
19233  openbsd2*)
19234    # C++ shared libraries are fairly broken
19235    ld_shlibs_CXX=no
19236    ;;
19237  openbsd*)
19238    hardcode_direct_CXX=yes
19239    hardcode_shlibpath_var_CXX=no
19240    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19241    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19242    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19243      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19244      export_dynamic_flag_spec_CXX='${wl}-E'
19245      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19246    fi
19247    output_verbose_link_cmd='echo'
19248    ;;
19249  osf3*)
19250    case $cc_basename in
19251      KCC*)
19252	# Kuck and Associates, Inc. (KAI) C++ Compiler
19253
19254	# KCC will only create a shared library if the output file
19255	# ends with ".so" (or ".sl" for HP-UX), so rename the library
19256	# to its proper name (with version) after linking.
19257	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'
19258
19259	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19260	hardcode_libdir_separator_CXX=:
19261
19262	# Archives containing C++ object files must be created using
19263	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
19264	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19265
19266	;;
19267      RCC*)
19268	# Rational C++ 2.4.1
19269	# FIXME: insert proper C++ library support
19270	ld_shlibs_CXX=no
19271	;;
19272      cxx*)
19273	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19274	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'
19275
19276	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19277	hardcode_libdir_separator_CXX=:
19278
19279	# Commands to make compiler produce verbose output that lists
19280	# what "hidden" libraries, object files and flags are used when
19281	# linking a shared library.
19282	#
19283	# There doesn't appear to be a way to prevent this compiler from
19284	# explicitly linking system object files so we need to strip them
19285	# from the output so that they don't get included in the library
19286	# dependencies.
19287	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'
19288	;;
19289      *)
19290	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19291	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19292	  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'
19293
19294	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19295	  hardcode_libdir_separator_CXX=:
19296
19297	  # Commands to make compiler produce verbose output that lists
19298	  # what "hidden" libraries, object files and flags are used when
19299	  # linking a shared library.
19300	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19301
19302	else
19303	  # FIXME: insert proper C++ library support
19304	  ld_shlibs_CXX=no
19305	fi
19306	;;
19307    esac
19308    ;;
19309  osf4* | osf5*)
19310    case $cc_basename in
19311      KCC*)
19312	# Kuck and Associates, Inc. (KAI) C++ Compiler
19313
19314	# KCC will only create a shared library if the output file
19315	# ends with ".so" (or ".sl" for HP-UX), so rename the library
19316	# to its proper name (with version) after linking.
19317	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'
19318
19319	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19320	hardcode_libdir_separator_CXX=:
19321
19322	# Archives containing C++ object files must be created using
19323	# the KAI C++ compiler.
19324	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19325	;;
19326      RCC*)
19327	# Rational C++ 2.4.1
19328	# FIXME: insert proper C++ library support
19329	ld_shlibs_CXX=no
19330	;;
19331      cxx*)
19332	allow_undefined_flag_CXX=' -expect_unresolved \*'
19333	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'
19334	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19335	  echo "-hidden">> $lib.exp~
19336	  $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~
19337	  $rm $lib.exp'
19338
19339	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19340	hardcode_libdir_separator_CXX=:
19341
19342	# Commands to make compiler produce verbose output that lists
19343	# what "hidden" libraries, object files and flags are used when
19344	# linking a shared library.
19345	#
19346	# There doesn't appear to be a way to prevent this compiler from
19347	# explicitly linking system object files so we need to strip them
19348	# from the output so that they don't get included in the library
19349	# dependencies.
19350	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'
19351	;;
19352      *)
19353	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19354	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19355	 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'
19356
19357	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19358	  hardcode_libdir_separator_CXX=:
19359
19360	  # Commands to make compiler produce verbose output that lists
19361	  # what "hidden" libraries, object files and flags are used when
19362	  # linking a shared library.
19363	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19364
19365	else
19366	  # FIXME: insert proper C++ library support
19367	  ld_shlibs_CXX=no
19368	fi
19369	;;
19370    esac
19371    ;;
19372  psos*)
19373    # FIXME: insert proper C++ library support
19374    ld_shlibs_CXX=no
19375    ;;
19376  sunos4*)
19377    case $cc_basename in
19378      CC*)
19379	# Sun C++ 4.x
19380	# FIXME: insert proper C++ library support
19381	ld_shlibs_CXX=no
19382	;;
19383      lcc*)
19384	# Lucid
19385	# FIXME: insert proper C++ library support
19386	ld_shlibs_CXX=no
19387	;;
19388      *)
19389	# FIXME: insert proper C++ library support
19390	ld_shlibs_CXX=no
19391	;;
19392    esac
19393    ;;
19394  solaris*)
19395    case $cc_basename in
19396      CC*)
19397	# Sun C++ 4.2, 5.x and Centerline C++
19398        archive_cmds_need_lc_CXX=yes
19399	no_undefined_flag_CXX=' -zdefs'
19400	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19401	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19402	$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'
19403
19404	hardcode_libdir_flag_spec_CXX='-R$libdir'
19405	hardcode_shlibpath_var_CXX=no
19406	case $host_os in
19407	  solaris2.[0-5] | solaris2.[0-5].*) ;;
19408	  *)
19409	    # The C++ compiler is used as linker so we must use $wl
19410	    # flag to pass the commands to the underlying system
19411	    # linker. We must also pass each convience library through
19412	    # to the system linker between allextract/defaultextract.
19413	    # The C++ compiler will combine linker options so we
19414	    # cannot just pass the convience library names through
19415	    # without $wl.
19416	    # Supported since Solaris 2.6 (maybe 2.5.1?)
19417	    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'
19418	    ;;
19419	esac
19420	link_all_deplibs_CXX=yes
19421
19422	output_verbose_link_cmd='echo'
19423
19424	# Archives containing C++ object files must be created using
19425	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
19426	# necessary to make sure instantiated templates are included
19427	# in the archive.
19428	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19429	;;
19430      gcx*)
19431	# Green Hills C++ Compiler
19432	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19433
19434	# The C++ compiler must be used to create the archive.
19435	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19436	;;
19437      *)
19438	# GNU C++ compiler with Solaris linker
19439	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19440	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19441	  if $CC --version | grep -v '^2\.7' > /dev/null; then
19442	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19443	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19444		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19445
19446	    # Commands to make compiler produce verbose output that lists
19447	    # what "hidden" libraries, object files and flags are used when
19448	    # linking a shared library.
19449	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19450	  else
19451	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
19452	    # platform.
19453	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19454	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19455		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19456
19457	    # Commands to make compiler produce verbose output that lists
19458	    # what "hidden" libraries, object files and flags are used when
19459	    # linking a shared library.
19460	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19461	  fi
19462
19463	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19464	fi
19465	;;
19466    esac
19467    ;;
19468  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19469    no_undefined_flag_CXX='${wl}-z,text'
19470    archive_cmds_need_lc_CXX=no
19471    hardcode_shlibpath_var_CXX=no
19472    runpath_var='LD_RUN_PATH'
19473
19474    case $cc_basename in
19475      CC*)
19476	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19477	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19478	;;
19479      *)
19480	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19481	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19482	;;
19483    esac
19484    ;;
19485  sysv5* | sco3.2v5* | sco5v6*)
19486    # Note: We can NOT use -z defs as we might desire, because we do not
19487    # link with -lc, and that would cause any symbols used from libc to
19488    # always be unresolved, which means just about no library would
19489    # ever link correctly.  If we're not using GNU ld we use -z text
19490    # though, which does catch some bad symbols but isn't as heavy-handed
19491    # as -z defs.
19492    # For security reasons, it is highly recommended that you always
19493    # use absolute paths for naming shared libraries, and exclude the
19494    # DT_RUNPATH tag from executables and libraries.  But doing so
19495    # requires that you compile everything twice, which is a pain.
19496    # So that behaviour is only enabled if SCOABSPATH is set to a
19497    # non-empty value in the environment.  Most likely only useful for
19498    # creating official distributions of packages.
19499    # This is a hack until libtool officially supports absolute path
19500    # names for shared libraries.
19501    no_undefined_flag_CXX='${wl}-z,text'
19502    allow_undefined_flag_CXX='${wl}-z,nodefs'
19503    archive_cmds_need_lc_CXX=no
19504    hardcode_shlibpath_var_CXX=no
19505    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19506    hardcode_libdir_separator_CXX=':'
19507    link_all_deplibs_CXX=yes
19508    export_dynamic_flag_spec_CXX='${wl}-Bexport'
19509    runpath_var='LD_RUN_PATH'
19510
19511    case $cc_basename in
19512      CC*)
19513	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19514	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19515	;;
19516      *)
19517	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19518	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19519	;;
19520    esac
19521    ;;
19522  tandem*)
19523    case $cc_basename in
19524      NCC*)
19525	# NonStop-UX NCC 3.20
19526	# FIXME: insert proper C++ library support
19527	ld_shlibs_CXX=no
19528	;;
19529      *)
19530	# FIXME: insert proper C++ library support
19531	ld_shlibs_CXX=no
19532	;;
19533    esac
19534    ;;
19535  vxworks*)
19536    # FIXME: insert proper C++ library support
19537    ld_shlibs_CXX=no
19538    ;;
19539  *)
19540    # FIXME: insert proper C++ library support
19541    ld_shlibs_CXX=no
19542    ;;
19543esac
19544{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19545echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19546test "$ld_shlibs_CXX" = no && can_build_shared=no
19547
19548GCC_CXX="$GXX"
19549LD_CXX="$LD"
19550
19551
19552cat > conftest.$ac_ext <<EOF
19553class Foo
19554{
19555public:
19556  Foo (void) { a = 0; }
19557private:
19558  int a;
19559};
19560EOF
19561
19562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19563  (eval $ac_compile) 2>&5
19564  ac_status=$?
19565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566  (exit $ac_status); }; then
19567  # Parse the compiler output and extract the necessary
19568  # objects, libraries and library flags.
19569
19570  # Sentinel used to keep track of whether or not we are before
19571  # the conftest object file.
19572  pre_test_object_deps_done=no
19573
19574  # The `*' in the case matches for architectures that use `case' in
19575  # $output_verbose_cmd can trigger glob expansion during the loop
19576  # eval without this substitution.
19577  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19578
19579  for p in `eval $output_verbose_link_cmd`; do
19580    case $p in
19581
19582    -L* | -R* | -l*)
19583       # Some compilers place space between "-{L,R}" and the path.
19584       # Remove the space.
19585       if test $p = "-L" \
19586	  || test $p = "-R"; then
19587	 prev=$p
19588	 continue
19589       else
19590	 prev=
19591       fi
19592
19593       if test "$pre_test_object_deps_done" = no; then
19594	 case $p in
19595	 -L* | -R*)
19596	   # Internal compiler library paths should come after those
19597	   # provided the user.  The postdeps already come after the
19598	   # user supplied libs so there is no need to process them.
19599	   if test -z "$compiler_lib_search_path_CXX"; then
19600	     compiler_lib_search_path_CXX="${prev}${p}"
19601	   else
19602	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19603	   fi
19604	   ;;
19605	 # The "-l" case would never come before the object being
19606	 # linked, so don't bother handling this case.
19607	 esac
19608       else
19609	 if test -z "$postdeps_CXX"; then
19610	   postdeps_CXX="${prev}${p}"
19611	 else
19612	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19613	 fi
19614       fi
19615       ;;
19616
19617    *.$objext)
19618       # This assumes that the test object file only shows up
19619       # once in the compiler output.
19620       if test "$p" = "conftest.$objext"; then
19621	 pre_test_object_deps_done=yes
19622	 continue
19623       fi
19624
19625       if test "$pre_test_object_deps_done" = no; then
19626	 if test -z "$predep_objects_CXX"; then
19627	   predep_objects_CXX="$p"
19628	 else
19629	   predep_objects_CXX="$predep_objects_CXX $p"
19630	 fi
19631       else
19632	 if test -z "$postdep_objects_CXX"; then
19633	   postdep_objects_CXX="$p"
19634	 else
19635	   postdep_objects_CXX="$postdep_objects_CXX $p"
19636	 fi
19637       fi
19638       ;;
19639
19640    *) ;; # Ignore the rest.
19641
19642    esac
19643  done
19644
19645  # Clean up.
19646  rm -f a.out a.exe
19647else
19648  echo "libtool.m4: error: problem compiling CXX test program"
19649fi
19650
19651$rm -f confest.$objext
19652
19653# PORTME: override above test on systems where it is broken
19654case $host_os in
19655interix3*)
19656  # Interix 3.5 installs completely hosed .la files for C++, so rather than
19657  # hack all around it, let's just trust "g++" to DTRT.
19658  predep_objects_CXX=
19659  postdep_objects_CXX=
19660  postdeps_CXX=
19661  ;;
19662
19663solaris*)
19664  case $cc_basename in
19665  CC*)
19666    # Adding this requires a known-good setup of shared libraries for
19667    # Sun compiler versions before 5.6, else PIC objects from an old
19668    # archive will be linked into the output, leading to subtle bugs.
19669    postdeps_CXX='-lCstd -lCrun'
19670    ;;
19671  esac
19672  ;;
19673esac
19674
19675
19676case " $postdeps_CXX " in
19677*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19678esac
19679
19680lt_prog_compiler_wl_CXX=
19681lt_prog_compiler_pic_CXX=
19682lt_prog_compiler_static_CXX=
19683
19684{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19685echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19686
19687  # C++ specific cases for pic, static, wl, etc.
19688  if test "$GXX" = yes; then
19689    lt_prog_compiler_wl_CXX='-Wl,'
19690    lt_prog_compiler_static_CXX='-static'
19691
19692    case $host_os in
19693    aix*)
19694      # All AIX code is PIC.
19695      if test "$host_cpu" = ia64; then
19696	# AIX 5 now supports IA64 processor
19697	lt_prog_compiler_static_CXX='-Bstatic'
19698      fi
19699      ;;
19700    amigaos*)
19701      # FIXME: we need at least 68020 code to build shared libraries, but
19702      # adding the `-m68020' flag to GCC prevents building anything better,
19703      # like `-m68040'.
19704      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19705      ;;
19706    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19707      # PIC is the default for these OSes.
19708      ;;
19709    mingw* | os2* | pw32*)
19710      # This hack is so that the source file can tell whether it is being
19711      # built for inclusion in a dll (and should export symbols for example).
19712      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19713      ;;
19714    darwin* | rhapsody*)
19715      # PIC is the default on this platform
19716      # Common symbols not allowed in MH_DYLIB files
19717      lt_prog_compiler_pic_CXX='-fno-common'
19718      ;;
19719    *djgpp*)
19720      # DJGPP does not support shared libraries at all
19721      lt_prog_compiler_pic_CXX=
19722      ;;
19723    interix3*)
19724      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19725      # Instead, we relocate shared libraries at runtime.
19726      ;;
19727    sysv4*MP*)
19728      if test -d /usr/nec; then
19729	lt_prog_compiler_pic_CXX=-Kconform_pic
19730      fi
19731      ;;
19732    hpux*)
19733      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19734      # not for PA HP-UX.
19735      case $host_cpu in
19736      hppa*64*|ia64*)
19737	;;
19738      *)
19739	lt_prog_compiler_pic_CXX='-fPIC'
19740	;;
19741      esac
19742      ;;
19743    *)
19744      lt_prog_compiler_pic_CXX='-fPIC'
19745      ;;
19746    esac
19747  else
19748    case $host_os in
19749      aix4* | aix5*)
19750	# All AIX code is PIC.
19751	if test "$host_cpu" = ia64; then
19752	  # AIX 5 now supports IA64 processor
19753	  lt_prog_compiler_static_CXX='-Bstatic'
19754	else
19755	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19756	fi
19757	;;
19758      chorus*)
19759	case $cc_basename in
19760	cxch68*)
19761	  # Green Hills C++ Compiler
19762	  # _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"
19763	  ;;
19764	esac
19765	;;
19766       darwin*)
19767         # PIC is the default on this platform
19768         # Common symbols not allowed in MH_DYLIB files
19769         case $cc_basename in
19770           xlc*)
19771           lt_prog_compiler_pic_CXX='-qnocommon'
19772           lt_prog_compiler_wl_CXX='-Wl,'
19773           ;;
19774         esac
19775       ;;
19776      dgux*)
19777	case $cc_basename in
19778	  ec++*)
19779	    lt_prog_compiler_pic_CXX='-KPIC'
19780	    ;;
19781	  ghcx*)
19782	    # Green Hills C++ Compiler
19783	    lt_prog_compiler_pic_CXX='-pic'
19784	    ;;
19785	  *)
19786	    ;;
19787	esac
19788	;;
19789      freebsd* | kfreebsd*-gnu | dragonfly*)
19790	# FreeBSD uses GNU C++
19791	;;
19792      hpux9* | hpux10* | hpux11*)
19793	case $cc_basename in
19794	  CC*)
19795	    lt_prog_compiler_wl_CXX='-Wl,'
19796	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19797	    if test "$host_cpu" != ia64; then
19798	      lt_prog_compiler_pic_CXX='+Z'
19799	    fi
19800	    ;;
19801	  aCC*)
19802	    lt_prog_compiler_wl_CXX='-Wl,'
19803	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19804	    case $host_cpu in
19805	    hppa*64*|ia64*)
19806	      # +Z the default
19807	      ;;
19808	    *)
19809	      lt_prog_compiler_pic_CXX='+Z'
19810	      ;;
19811	    esac
19812	    ;;
19813	  *)
19814	    ;;
19815	esac
19816	;;
19817      interix*)
19818	# This is c89, which is MS Visual C++ (no shared libs)
19819	# Anyone wants to do a port?
19820	;;
19821      irix5* | irix6* | nonstopux*)
19822	case $cc_basename in
19823	  CC*)
19824	    lt_prog_compiler_wl_CXX='-Wl,'
19825	    lt_prog_compiler_static_CXX='-non_shared'
19826	    # CC pic flag -KPIC is the default.
19827	    ;;
19828	  *)
19829	    ;;
19830	esac
19831	;;
19832      linux*)
19833	case $cc_basename in
19834	  KCC*)
19835	    # KAI C++ Compiler
19836	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19837	    lt_prog_compiler_pic_CXX='-fPIC'
19838	    ;;
19839	  icpc* | ecpc*)
19840	    # Intel C++
19841	    lt_prog_compiler_wl_CXX='-Wl,'
19842	    lt_prog_compiler_pic_CXX='-KPIC'
19843	    lt_prog_compiler_static_CXX='-static'
19844	    ;;
19845	  pgCC*)
19846	    # Portland Group C++ compiler.
19847	    lt_prog_compiler_wl_CXX='-Wl,'
19848	    lt_prog_compiler_pic_CXX='-fpic'
19849	    lt_prog_compiler_static_CXX='-Bstatic'
19850	    ;;
19851	  cxx*)
19852	    # Compaq C++
19853	    # Make sure the PIC flag is empty.  It appears that all Alpha
19854	    # Linux and Compaq Tru64 Unix objects are PIC.
19855	    lt_prog_compiler_pic_CXX=
19856	    lt_prog_compiler_static_CXX='-non_shared'
19857	    ;;
19858	  *)
19859	    ;;
19860	esac
19861	;;
19862      lynxos*)
19863	;;
19864      m88k*)
19865	;;
19866      mvs*)
19867	case $cc_basename in
19868	  cxx*)
19869	    lt_prog_compiler_pic_CXX='-W c,exportall'
19870	    ;;
19871	  *)
19872	    ;;
19873	esac
19874	;;
19875      netbsd*)
19876	;;
19877      osf3* | osf4* | osf5*)
19878	case $cc_basename in
19879	  KCC*)
19880	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19881	    ;;
19882	  RCC*)
19883	    # Rational C++ 2.4.1
19884	    lt_prog_compiler_pic_CXX='-pic'
19885	    ;;
19886	  cxx*)
19887	    # Digital/Compaq C++
19888	    lt_prog_compiler_wl_CXX='-Wl,'
19889	    # Make sure the PIC flag is empty.  It appears that all Alpha
19890	    # Linux and Compaq Tru64 Unix objects are PIC.
19891	    lt_prog_compiler_pic_CXX=
19892	    lt_prog_compiler_static_CXX='-non_shared'
19893	    ;;
19894	  *)
19895	    ;;
19896	esac
19897	;;
19898      psos*)
19899	;;
19900      solaris*)
19901	case $cc_basename in
19902	  CC*)
19903	    # Sun C++ 4.2, 5.x and Centerline C++
19904	    lt_prog_compiler_pic_CXX='-KPIC'
19905	    lt_prog_compiler_static_CXX='-Bstatic'
19906	    lt_prog_compiler_wl_CXX='-Qoption ld '
19907	    ;;
19908	  gcx*)
19909	    # Green Hills C++ Compiler
19910	    lt_prog_compiler_pic_CXX='-PIC'
19911	    ;;
19912	  *)
19913	    ;;
19914	esac
19915	;;
19916      sunos4*)
19917	case $cc_basename in
19918	  CC*)
19919	    # Sun C++ 4.x
19920	    lt_prog_compiler_pic_CXX='-pic'
19921	    lt_prog_compiler_static_CXX='-Bstatic'
19922	    ;;
19923	  lcc*)
19924	    # Lucid
19925	    lt_prog_compiler_pic_CXX='-pic'
19926	    ;;
19927	  *)
19928	    ;;
19929	esac
19930	;;
19931      tandem*)
19932	case $cc_basename in
19933	  NCC*)
19934	    # NonStop-UX NCC 3.20
19935	    lt_prog_compiler_pic_CXX='-KPIC'
19936	    ;;
19937	  *)
19938	    ;;
19939	esac
19940	;;
19941      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19942	case $cc_basename in
19943	  CC*)
19944	    lt_prog_compiler_wl_CXX='-Wl,'
19945	    lt_prog_compiler_pic_CXX='-KPIC'
19946	    lt_prog_compiler_static_CXX='-Bstatic'
19947	    ;;
19948	esac
19949	;;
19950      vxworks*)
19951	;;
19952      *)
19953	lt_prog_compiler_can_build_shared_CXX=no
19954	;;
19955    esac
19956  fi
19957
19958{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19959echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19960
19961#
19962# Check to make sure the PIC flag actually works.
19963#
19964if test -n "$lt_prog_compiler_pic_CXX"; then
19965
19966{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19967echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19968if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19969  echo $ECHO_N "(cached) $ECHO_C" >&6
19970else
19971  lt_prog_compiler_pic_works_CXX=no
19972  ac_outfile=conftest.$ac_objext
19973   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19974   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19975   # Insert the option either (1) after the last *FLAGS variable, or
19976   # (2) before a word containing "conftest.", or (3) at the end.
19977   # Note that $ac_compile itself does not contain backslashes and begins
19978   # with a dollar sign (not a hyphen), so the echo should work correctly.
19979   # The option is referenced via a variable to avoid confusing sed.
19980   lt_compile=`echo "$ac_compile" | $SED \
19981   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19982   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19983   -e 's:$: $lt_compiler_flag:'`
19984   (eval echo "\"\$as_me:19984: $lt_compile\"" >&5)
19985   (eval "$lt_compile" 2>conftest.err)
19986   ac_status=$?
19987   cat conftest.err >&5
19988   echo "$as_me:19988: \$? = $ac_status" >&5
19989   if (exit $ac_status) && test -s "$ac_outfile"; then
19990     # The compiler can only warn and ignore the option if not recognized
19991     # So say no if there are warnings other than the usual output.
19992     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19993     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19994     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19995       lt_prog_compiler_pic_works_CXX=yes
19996     fi
19997   fi
19998   $rm conftest*
19999
20000fi
20001{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20002echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20003
20004if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20005    case $lt_prog_compiler_pic_CXX in
20006     "" | " "*) ;;
20007     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20008     esac
20009else
20010    lt_prog_compiler_pic_CXX=
20011     lt_prog_compiler_can_build_shared_CXX=no
20012fi
20013
20014fi
20015case $host_os in
20016  # For platforms which do not support PIC, -DPIC is meaningless:
20017  *djgpp*)
20018    lt_prog_compiler_pic_CXX=
20019    ;;
20020  *)
20021    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20022    ;;
20023esac
20024
20025#
20026# Check to make sure the static flag actually works.
20027#
20028wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20029{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20030echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20031if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20032  echo $ECHO_N "(cached) $ECHO_C" >&6
20033else
20034  lt_prog_compiler_static_works_CXX=no
20035   save_LDFLAGS="$LDFLAGS"
20036   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20037   printf "$lt_simple_link_test_code" > conftest.$ac_ext
20038   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20039     # The linker can only warn and ignore the option if not recognized
20040     # So say no if there are warnings
20041     if test -s conftest.err; then
20042       # Append any errors to the config.log.
20043       cat conftest.err 1>&5
20044       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20045       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20046       if diff conftest.exp conftest.er2 >/dev/null; then
20047         lt_prog_compiler_static_works_CXX=yes
20048       fi
20049     else
20050       lt_prog_compiler_static_works_CXX=yes
20051     fi
20052   fi
20053   $rm conftest*
20054   LDFLAGS="$save_LDFLAGS"
20055
20056fi
20057{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20058echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20059
20060if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20061    :
20062else
20063    lt_prog_compiler_static_CXX=
20064fi
20065
20066
20067{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20068echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20069if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20070  echo $ECHO_N "(cached) $ECHO_C" >&6
20071else
20072  lt_cv_prog_compiler_c_o_CXX=no
20073   $rm -r conftest 2>/dev/null
20074   mkdir conftest
20075   cd conftest
20076   mkdir out
20077   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20078
20079   lt_compiler_flag="-o out/conftest2.$ac_objext"
20080   # Insert the option either (1) after the last *FLAGS variable, or
20081   # (2) before a word containing "conftest.", or (3) at the end.
20082   # Note that $ac_compile itself does not contain backslashes and begins
20083   # with a dollar sign (not a hyphen), so the echo should work correctly.
20084   lt_compile=`echo "$ac_compile" | $SED \
20085   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20086   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20087   -e 's:$: $lt_compiler_flag:'`
20088   (eval echo "\"\$as_me:20088: $lt_compile\"" >&5)
20089   (eval "$lt_compile" 2>out/conftest.err)
20090   ac_status=$?
20091   cat out/conftest.err >&5
20092   echo "$as_me:20092: \$? = $ac_status" >&5
20093   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20094   then
20095     # The compiler can only warn and ignore the option if not recognized
20096     # So say no if there are warnings
20097     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20098     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20099     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20100       lt_cv_prog_compiler_c_o_CXX=yes
20101     fi
20102   fi
20103   chmod u+w . 2>&5
20104   $rm conftest*
20105   # SGI C++ compiler will create directory out/ii_files/ for
20106   # template instantiation
20107   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20108   $rm out/* && rmdir out
20109   cd ..
20110   rmdir conftest
20111   $rm conftest*
20112
20113fi
20114{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20115echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20116
20117
20118hard_links="nottested"
20119if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20120  # do not overwrite the value of need_locks provided by the user
20121  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20122echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20123  hard_links=yes
20124  $rm conftest*
20125  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20126  touch conftest.a
20127  ln conftest.a conftest.b 2>&5 || hard_links=no
20128  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20129  { echo "$as_me:$LINENO: result: $hard_links" >&5
20130echo "${ECHO_T}$hard_links" >&6; }
20131  if test "$hard_links" = no; then
20132    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20133echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20134    need_locks=warn
20135  fi
20136else
20137  need_locks=no
20138fi
20139
20140{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20141echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20142
20143  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20144  case $host_os in
20145  aix4* | aix5*)
20146    # If we're using GNU nm, then we don't want the "-C" option.
20147    # -C means demangle to AIX nm, but means don't demangle with GNU nm
20148    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20149      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'
20150    else
20151      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'
20152    fi
20153    ;;
20154  pw32*)
20155    export_symbols_cmds_CXX="$ltdll_cmds"
20156  ;;
20157  cygwin* | mingw*)
20158    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'
20159  ;;
20160  *)
20161    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20162  ;;
20163  esac
20164
20165{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20166echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20167test "$ld_shlibs_CXX" = no && can_build_shared=no
20168
20169#
20170# Do we need to explicitly link libc?
20171#
20172case "x$archive_cmds_need_lc_CXX" in
20173x|xyes)
20174  # Assume -lc should be added
20175  archive_cmds_need_lc_CXX=yes
20176
20177  if test "$enable_shared" = yes && test "$GCC" = yes; then
20178    case $archive_cmds_CXX in
20179    *'~'*)
20180      # FIXME: we may have to deal with multi-command sequences.
20181      ;;
20182    '$CC '*)
20183      # Test whether the compiler implicitly links with -lc since on some
20184      # systems, -lgcc has to come before -lc. If gcc already passes -lc
20185      # to ld, don't add -lc before -lgcc.
20186      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20187echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20188      $rm conftest*
20189      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20190
20191      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20192  (eval $ac_compile) 2>&5
20193  ac_status=$?
20194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195  (exit $ac_status); } 2>conftest.err; then
20196        soname=conftest
20197        lib=conftest
20198        libobjs=conftest.$ac_objext
20199        deplibs=
20200        wl=$lt_prog_compiler_wl_CXX
20201	pic_flag=$lt_prog_compiler_pic_CXX
20202        compiler_flags=-v
20203        linker_flags=-v
20204        verstring=
20205        output_objdir=.
20206        libname=conftest
20207        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20208        allow_undefined_flag_CXX=
20209        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20210  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20211  ac_status=$?
20212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213  (exit $ac_status); }
20214        then
20215	  archive_cmds_need_lc_CXX=no
20216        else
20217	  archive_cmds_need_lc_CXX=yes
20218        fi
20219        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20220      else
20221        cat conftest.err 1>&5
20222      fi
20223      $rm conftest*
20224      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20225echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20226      ;;
20227    esac
20228  fi
20229  ;;
20230esac
20231
20232{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20233echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20234library_names_spec=
20235libname_spec='lib$name'
20236soname_spec=
20237shrext_cmds=".so"
20238postinstall_cmds=
20239postuninstall_cmds=
20240finish_cmds=
20241finish_eval=
20242shlibpath_var=
20243shlibpath_overrides_runpath=unknown
20244version_type=none
20245dynamic_linker="$host_os ld.so"
20246sys_lib_dlsearch_path_spec="/lib /usr/lib"
20247if test "$GCC" = yes; then
20248  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20249  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20250    # if the path contains ";" then we assume it to be the separator
20251    # otherwise default to the standard path separator (i.e. ":") - it is
20252    # assumed that no part of a normal pathname contains ";" but that should
20253    # okay in the real world where ";" in dirpaths is itself problematic.
20254    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20255  else
20256    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20257  fi
20258else
20259  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20260fi
20261need_lib_prefix=unknown
20262hardcode_into_libs=no
20263
20264# when you set need_version to no, make sure it does not cause -set_version
20265# flags to be left without arguments
20266need_version=unknown
20267
20268case $host_os in
20269aix3*)
20270  version_type=linux
20271  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20272  shlibpath_var=LIBPATH
20273
20274  # AIX 3 has no versioning support, so we append a major version to the name.
20275  soname_spec='${libname}${release}${shared_ext}$major'
20276  ;;
20277
20278aix4* | aix5*)
20279  version_type=linux
20280  need_lib_prefix=no
20281  need_version=no
20282  hardcode_into_libs=yes
20283  if test "$host_cpu" = ia64; then
20284    # AIX 5 supports IA64
20285    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20286    shlibpath_var=LD_LIBRARY_PATH
20287  else
20288    # With GCC up to 2.95.x, collect2 would create an import file
20289    # for dependence libraries.  The import file would start with
20290    # the line `#! .'.  This would cause the generated library to
20291    # depend on `.', always an invalid library.  This was fixed in
20292    # development snapshots of GCC prior to 3.0.
20293    case $host_os in
20294      aix4 | aix4.[01] | aix4.[01].*)
20295      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20296	   echo ' yes '
20297	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20298	:
20299      else
20300	can_build_shared=no
20301      fi
20302      ;;
20303    esac
20304    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20305    # soname into executable. Probably we can add versioning support to
20306    # collect2, so additional links can be useful in future.
20307    if test "$aix_use_runtimelinking" = yes; then
20308      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20309      # instead of lib<name>.a to let people know that these are not
20310      # typical AIX shared libraries.
20311      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20312    else
20313      # We preserve .a as extension for shared libraries through AIX4.2
20314      # and later when we are not doing run time linking.
20315      library_names_spec='${libname}${release}.a $libname.a'
20316      soname_spec='${libname}${release}${shared_ext}$major'
20317    fi
20318    shlibpath_var=LIBPATH
20319  fi
20320  ;;
20321
20322amigaos*)
20323  library_names_spec='$libname.ixlibrary $libname.a'
20324  # Create ${libname}_ixlibrary.a entries in /sys/libs.
20325  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'
20326  ;;
20327
20328beos*)
20329  library_names_spec='${libname}${shared_ext}'
20330  dynamic_linker="$host_os ld.so"
20331  shlibpath_var=LIBRARY_PATH
20332  ;;
20333
20334bsdi[45]*)
20335  version_type=linux
20336  need_version=no
20337  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20338  soname_spec='${libname}${release}${shared_ext}$major'
20339  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20340  shlibpath_var=LD_LIBRARY_PATH
20341  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20342  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20343  # the default ld.so.conf also contains /usr/contrib/lib and
20344  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20345  # libtool to hard-code these into programs
20346  ;;
20347
20348cygwin* | mingw* | pw32*)
20349  version_type=windows
20350  shrext_cmds=".dll"
20351  need_version=no
20352  need_lib_prefix=no
20353
20354  case $GCC,$host_os in
20355  yes,cygwin* | yes,mingw* | yes,pw32*)
20356    library_names_spec='$libname.dll.a'
20357    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20358    postinstall_cmds='base_file=`basename \${file}`~
20359      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20360      dldir=$destdir/`dirname \$dlpath`~
20361      test -d \$dldir || mkdir -p \$dldir~
20362      $install_prog $dir/$dlname \$dldir/$dlname~
20363      chmod a+x \$dldir/$dlname'
20364    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20365      dlpath=$dir/\$dldll~
20366       $rm \$dlpath'
20367    shlibpath_overrides_runpath=yes
20368
20369    case $host_os in
20370    cygwin*)
20371      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20372      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20373      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20374      ;;
20375    mingw*)
20376      # MinGW DLLs use traditional 'lib' prefix
20377      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20378      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20379      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20380        # It is most probably a Windows format PATH printed by
20381        # mingw gcc, but we are running on Cygwin. Gcc prints its search
20382        # path with ; separators, and with drive letters. We can handle the
20383        # drive letters (cygwin fileutils understands them), so leave them,
20384        # especially as we might pass files found there to a mingw objdump,
20385        # which wouldn't understand a cygwinified path. Ahh.
20386        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20387      else
20388        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20389      fi
20390      ;;
20391    pw32*)
20392      # pw32 DLLs use 'pw' prefix rather than 'lib'
20393      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20394      ;;
20395    esac
20396    ;;
20397
20398  *)
20399    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20400    ;;
20401  esac
20402  dynamic_linker='Win32 ld.exe'
20403  # FIXME: first we should search . and the directory the executable is in
20404  shlibpath_var=PATH
20405  ;;
20406
20407darwin* | rhapsody*)
20408  dynamic_linker="$host_os dyld"
20409  version_type=darwin
20410  need_lib_prefix=no
20411  need_version=no
20412  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20413  soname_spec='${libname}${release}${major}$shared_ext'
20414  shlibpath_overrides_runpath=yes
20415  shlibpath_var=DYLD_LIBRARY_PATH
20416  shrext_cmds='.dylib'
20417  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20418  if test "$GCC" = yes; then
20419    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"`
20420  else
20421    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20422  fi
20423  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20424  ;;
20425
20426dgux*)
20427  version_type=linux
20428  need_lib_prefix=no
20429  need_version=no
20430  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20431  soname_spec='${libname}${release}${shared_ext}$major'
20432  shlibpath_var=LD_LIBRARY_PATH
20433  ;;
20434
20435freebsd1*)
20436  dynamic_linker=no
20437  ;;
20438
20439kfreebsd*-gnu)
20440  version_type=linux
20441  need_lib_prefix=no
20442  need_version=no
20443  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20444  soname_spec='${libname}${release}${shared_ext}$major'
20445  shlibpath_var=LD_LIBRARY_PATH
20446  shlibpath_overrides_runpath=no
20447  hardcode_into_libs=yes
20448  dynamic_linker='GNU ld.so'
20449  ;;
20450
20451freebsd* | dragonfly*)
20452  # DragonFly does not have aout.  When/if they implement a new
20453  # versioning mechanism, adjust this.
20454  if test -x /usr/bin/objformat; then
20455    objformat=`/usr/bin/objformat`
20456  else
20457    case $host_os in
20458    freebsd[123]*) objformat=aout ;;
20459    *) objformat=elf ;;
20460    esac
20461  fi
20462  version_type=freebsd-$objformat
20463  case $version_type in
20464    freebsd-elf*)
20465      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20466      need_version=no
20467      need_lib_prefix=no
20468      ;;
20469    freebsd-*)
20470      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20471      need_version=yes
20472      ;;
20473  esac
20474  shlibpath_var=LD_LIBRARY_PATH
20475  case $host_os in
20476  freebsd2*)
20477    shlibpath_overrides_runpath=yes
20478    ;;
20479  freebsd3.[01]* | freebsdelf3.[01]*)
20480    shlibpath_overrides_runpath=yes
20481    hardcode_into_libs=yes
20482    ;;
20483  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20484  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20485    shlibpath_overrides_runpath=no
20486    hardcode_into_libs=yes
20487    ;;
20488  freebsd*) # from 4.6 on
20489    shlibpath_overrides_runpath=yes
20490    hardcode_into_libs=yes
20491    ;;
20492  esac
20493  ;;
20494
20495gnu*)
20496  version_type=linux
20497  need_lib_prefix=no
20498  need_version=no
20499  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20500  soname_spec='${libname}${release}${shared_ext}$major'
20501  shlibpath_var=LD_LIBRARY_PATH
20502  hardcode_into_libs=yes
20503  ;;
20504
20505hpux9* | hpux10* | hpux11*)
20506  # Give a soname corresponding to the major version so that dld.sl refuses to
20507  # link against other versions.
20508  version_type=sunos
20509  need_lib_prefix=no
20510  need_version=no
20511  case $host_cpu in
20512  ia64*)
20513    shrext_cmds='.so'
20514    hardcode_into_libs=yes
20515    dynamic_linker="$host_os dld.so"
20516    shlibpath_var=LD_LIBRARY_PATH
20517    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20518    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20519    soname_spec='${libname}${release}${shared_ext}$major'
20520    if test "X$HPUX_IA64_MODE" = X32; then
20521      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20522    else
20523      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20524    fi
20525    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20526    ;;
20527   hppa*64*)
20528     shrext_cmds='.sl'
20529     hardcode_into_libs=yes
20530     dynamic_linker="$host_os dld.sl"
20531     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20532     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20533     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20534     soname_spec='${libname}${release}${shared_ext}$major'
20535     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20536     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20537     ;;
20538   *)
20539    shrext_cmds='.sl'
20540    dynamic_linker="$host_os dld.sl"
20541    shlibpath_var=SHLIB_PATH
20542    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20543    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20544    soname_spec='${libname}${release}${shared_ext}$major'
20545    ;;
20546  esac
20547  # HP-UX runs *really* slowly unless shared libraries are mode 555.
20548  postinstall_cmds='chmod 555 $lib'
20549  ;;
20550
20551interix3*)
20552  version_type=linux
20553  need_lib_prefix=no
20554  need_version=no
20555  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20556  soname_spec='${libname}${release}${shared_ext}$major'
20557  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20558  shlibpath_var=LD_LIBRARY_PATH
20559  shlibpath_overrides_runpath=no
20560  hardcode_into_libs=yes
20561  ;;
20562
20563irix5* | irix6* | nonstopux*)
20564  case $host_os in
20565    nonstopux*) version_type=nonstopux ;;
20566    *)
20567	if test "$lt_cv_prog_gnu_ld" = yes; then
20568		version_type=linux
20569	else
20570		version_type=irix
20571	fi ;;
20572  esac
20573  need_lib_prefix=no
20574  need_version=no
20575  soname_spec='${libname}${release}${shared_ext}$major'
20576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20577  case $host_os in
20578  irix5* | nonstopux*)
20579    libsuff= shlibsuff=
20580    ;;
20581  *)
20582    case $LD in # libtool.m4 will add one of these switches to LD
20583    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20584      libsuff= shlibsuff= libmagic=32-bit;;
20585    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20586      libsuff=32 shlibsuff=N32 libmagic=N32;;
20587    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20588      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20589    *) libsuff= shlibsuff= libmagic=never-match;;
20590    esac
20591    ;;
20592  esac
20593  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20594  shlibpath_overrides_runpath=no
20595  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20596  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20597  hardcode_into_libs=yes
20598  ;;
20599
20600# No shared lib support for Linux oldld, aout, or coff.
20601linux*oldld* | linux*aout* | linux*coff*)
20602  dynamic_linker=no
20603  ;;
20604
20605# This must be Linux ELF.
20606linux*)
20607  version_type=linux
20608  need_lib_prefix=no
20609  need_version=no
20610  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20611  soname_spec='${libname}${release}${shared_ext}$major'
20612  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20613  shlibpath_var=LD_LIBRARY_PATH
20614  shlibpath_overrides_runpath=no
20615  # This implies no fast_install, which is unacceptable.
20616  # Some rework will be needed to allow for fast_install
20617  # before this can be enabled.
20618  hardcode_into_libs=yes
20619
20620  # Append ld.so.conf contents to the search path
20621  if test -f /etc/ld.so.conf; then
20622    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' ' '`
20623    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20624  fi
20625
20626  # We used to test for /lib/ld.so.1 and disable shared libraries on
20627  # powerpc, because MkLinux only supported shared libraries with the
20628  # GNU dynamic linker.  Since this was broken with cross compilers,
20629  # most powerpc-linux boxes support dynamic linking these days and
20630  # people can always --disable-shared, the test was removed, and we
20631  # assume the GNU/Linux dynamic linker is in use.
20632  dynamic_linker='GNU/Linux ld.so'
20633  ;;
20634
20635knetbsd*-gnu)
20636  version_type=linux
20637  need_lib_prefix=no
20638  need_version=no
20639  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20640  soname_spec='${libname}${release}${shared_ext}$major'
20641  shlibpath_var=LD_LIBRARY_PATH
20642  shlibpath_overrides_runpath=no
20643  hardcode_into_libs=yes
20644  dynamic_linker='GNU ld.so'
20645  ;;
20646
20647netbsd*)
20648  version_type=sunos
20649  need_lib_prefix=no
20650  need_version=no
20651  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20652    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20653    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20654    dynamic_linker='NetBSD (a.out) ld.so'
20655  else
20656    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20657    soname_spec='${libname}${release}${shared_ext}$major'
20658    dynamic_linker='NetBSD ld.elf_so'
20659  fi
20660  shlibpath_var=LD_LIBRARY_PATH
20661  shlibpath_overrides_runpath=yes
20662  hardcode_into_libs=yes
20663  ;;
20664
20665newsos6)
20666  version_type=linux
20667  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20668  shlibpath_var=LD_LIBRARY_PATH
20669  shlibpath_overrides_runpath=yes
20670  ;;
20671
20672nto-qnx*)
20673  version_type=linux
20674  need_lib_prefix=no
20675  need_version=no
20676  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20677  soname_spec='${libname}${release}${shared_ext}$major'
20678  shlibpath_var=LD_LIBRARY_PATH
20679  shlibpath_overrides_runpath=yes
20680  ;;
20681
20682openbsd*)
20683  version_type=sunos
20684  sys_lib_dlsearch_path_spec="/usr/lib"
20685  need_lib_prefix=no
20686  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20687  case $host_os in
20688    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20689    *)                         need_version=no  ;;
20690  esac
20691  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20692  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20693  shlibpath_var=LD_LIBRARY_PATH
20694  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20695    case $host_os in
20696      openbsd2.[89] | openbsd2.[89].*)
20697	shlibpath_overrides_runpath=no
20698	;;
20699      *)
20700	shlibpath_overrides_runpath=yes
20701	;;
20702      esac
20703  else
20704    shlibpath_overrides_runpath=yes
20705  fi
20706  ;;
20707
20708os2*)
20709  libname_spec='$name'
20710  shrext_cmds=".dll"
20711  need_lib_prefix=no
20712  library_names_spec='$libname${shared_ext} $libname.a'
20713  dynamic_linker='OS/2 ld.exe'
20714  shlibpath_var=LIBPATH
20715  ;;
20716
20717osf3* | osf4* | osf5*)
20718  version_type=osf
20719  need_lib_prefix=no
20720  need_version=no
20721  soname_spec='${libname}${release}${shared_ext}$major'
20722  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20723  shlibpath_var=LD_LIBRARY_PATH
20724  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20725  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20726  ;;
20727
20728solaris*)
20729  version_type=linux
20730  need_lib_prefix=no
20731  need_version=no
20732  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20733  soname_spec='${libname}${release}${shared_ext}$major'
20734  shlibpath_var=LD_LIBRARY_PATH
20735  shlibpath_overrides_runpath=yes
20736  hardcode_into_libs=yes
20737  # ldd complains unless libraries are executable
20738  postinstall_cmds='chmod +x $lib'
20739  ;;
20740
20741sunos4*)
20742  version_type=sunos
20743  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20744  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20745  shlibpath_var=LD_LIBRARY_PATH
20746  shlibpath_overrides_runpath=yes
20747  if test "$with_gnu_ld" = yes; then
20748    need_lib_prefix=no
20749  fi
20750  need_version=yes
20751  ;;
20752
20753sysv4 | sysv4.3*)
20754  version_type=linux
20755  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20756  soname_spec='${libname}${release}${shared_ext}$major'
20757  shlibpath_var=LD_LIBRARY_PATH
20758  case $host_vendor in
20759    sni)
20760      shlibpath_overrides_runpath=no
20761      need_lib_prefix=no
20762      export_dynamic_flag_spec='${wl}-Blargedynsym'
20763      runpath_var=LD_RUN_PATH
20764      ;;
20765    siemens)
20766      need_lib_prefix=no
20767      ;;
20768    motorola)
20769      need_lib_prefix=no
20770      need_version=no
20771      shlibpath_overrides_runpath=no
20772      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20773      ;;
20774  esac
20775  ;;
20776
20777sysv4*MP*)
20778  if test -d /usr/nec ;then
20779    version_type=linux
20780    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20781    soname_spec='$libname${shared_ext}.$major'
20782    shlibpath_var=LD_LIBRARY_PATH
20783  fi
20784  ;;
20785
20786sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20787  version_type=freebsd-elf
20788  need_lib_prefix=no
20789  need_version=no
20790  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20791  soname_spec='${libname}${release}${shared_ext}$major'
20792  shlibpath_var=LD_LIBRARY_PATH
20793  hardcode_into_libs=yes
20794  if test "$with_gnu_ld" = yes; then
20795    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20796    shlibpath_overrides_runpath=no
20797  else
20798    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20799    shlibpath_overrides_runpath=yes
20800    case $host_os in
20801      sco3.2v5*)
20802        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20803	;;
20804    esac
20805  fi
20806  sys_lib_dlsearch_path_spec='/usr/lib'
20807  ;;
20808
20809uts4*)
20810  version_type=linux
20811  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20812  soname_spec='${libname}${release}${shared_ext}$major'
20813  shlibpath_var=LD_LIBRARY_PATH
20814  ;;
20815
20816*)
20817  dynamic_linker=no
20818  ;;
20819esac
20820{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20821echo "${ECHO_T}$dynamic_linker" >&6; }
20822test "$dynamic_linker" = no && can_build_shared=no
20823
20824variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20825if test "$GCC" = yes; then
20826  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20827fi
20828
20829{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20830echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20831hardcode_action_CXX=
20832if test -n "$hardcode_libdir_flag_spec_CXX" || \
20833   test -n "$runpath_var_CXX" || \
20834   test "X$hardcode_automatic_CXX" = "Xyes" ; then
20835
20836  # We can hardcode non-existant directories.
20837  if test "$hardcode_direct_CXX" != no &&
20838     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20839     # have to relink, otherwise we might link with an installed library
20840     # when we should be linking with a yet-to-be-installed one
20841     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20842     test "$hardcode_minus_L_CXX" != no; then
20843    # Linking always hardcodes the temporary library directory.
20844    hardcode_action_CXX=relink
20845  else
20846    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20847    hardcode_action_CXX=immediate
20848  fi
20849else
20850  # We cannot hardcode anything, or else we can only hardcode existing
20851  # directories.
20852  hardcode_action_CXX=unsupported
20853fi
20854{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20855echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20856
20857if test "$hardcode_action_CXX" = relink; then
20858  # Fast installation is not supported
20859  enable_fast_install=no
20860elif test "$shlibpath_overrides_runpath" = yes ||
20861     test "$enable_shared" = no; then
20862  # Fast installation is not necessary
20863  enable_fast_install=needless
20864fi
20865
20866
20867# The else clause should only fire when bootstrapping the
20868# libtool distribution, otherwise you forgot to ship ltmain.sh
20869# with your package, and you will get complaints that there are
20870# no rules to generate ltmain.sh.
20871if test -f "$ltmain"; then
20872  # See if we are running on zsh, and set the options which allow our commands through
20873  # without removal of \ escapes.
20874  if test -n "${ZSH_VERSION+set}" ; then
20875    setopt NO_GLOB_SUBST
20876  fi
20877  # Now quote all the things that may contain metacharacters while being
20878  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20879  # variables and quote the copies for generation of the libtool script.
20880  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20881    SED SHELL STRIP \
20882    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20883    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20884    deplibs_check_method reload_flag reload_cmds need_locks \
20885    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20886    lt_cv_sys_global_symbol_to_c_name_address \
20887    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20888    old_postinstall_cmds old_postuninstall_cmds \
20889    compiler_CXX \
20890    CC_CXX \
20891    LD_CXX \
20892    lt_prog_compiler_wl_CXX \
20893    lt_prog_compiler_pic_CXX \
20894    lt_prog_compiler_static_CXX \
20895    lt_prog_compiler_no_builtin_flag_CXX \
20896    export_dynamic_flag_spec_CXX \
20897    thread_safe_flag_spec_CXX \
20898    whole_archive_flag_spec_CXX \
20899    enable_shared_with_static_runtimes_CXX \
20900    old_archive_cmds_CXX \
20901    old_archive_from_new_cmds_CXX \
20902    predep_objects_CXX \
20903    postdep_objects_CXX \
20904    predeps_CXX \
20905    postdeps_CXX \
20906    compiler_lib_search_path_CXX \
20907    archive_cmds_CXX \
20908    archive_expsym_cmds_CXX \
20909    postinstall_cmds_CXX \
20910    postuninstall_cmds_CXX \
20911    old_archive_from_expsyms_cmds_CXX \
20912    allow_undefined_flag_CXX \
20913    no_undefined_flag_CXX \
20914    export_symbols_cmds_CXX \
20915    hardcode_libdir_flag_spec_CXX \
20916    hardcode_libdir_flag_spec_ld_CXX \
20917    hardcode_libdir_separator_CXX \
20918    hardcode_automatic_CXX \
20919    module_cmds_CXX \
20920    module_expsym_cmds_CXX \
20921    lt_cv_prog_compiler_c_o_CXX \
20922    exclude_expsyms_CXX \
20923    include_expsyms_CXX; do
20924
20925    case $var in
20926    old_archive_cmds_CXX | \
20927    old_archive_from_new_cmds_CXX | \
20928    archive_cmds_CXX | \
20929    archive_expsym_cmds_CXX | \
20930    module_cmds_CXX | \
20931    module_expsym_cmds_CXX | \
20932    old_archive_from_expsyms_cmds_CXX | \
20933    export_symbols_cmds_CXX | \
20934    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20935    postinstall_cmds | postuninstall_cmds | \
20936    old_postinstall_cmds | old_postuninstall_cmds | \
20937    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20938      # Double-quote double-evaled strings.
20939      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20940      ;;
20941    *)
20942      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20943      ;;
20944    esac
20945  done
20946
20947  case $lt_echo in
20948  *'\$0 --fallback-echo"')
20949    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20950    ;;
20951  esac
20952
20953cfgfile="$ofile"
20954
20955  cat <<__EOF__ >> "$cfgfile"
20956# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20957
20958# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20959
20960# Shell to use when invoking shell scripts.
20961SHELL=$lt_SHELL
20962
20963# Whether or not to build shared libraries.
20964build_libtool_libs=$enable_shared
20965
20966# Whether or not to build static libraries.
20967build_old_libs=$enable_static
20968
20969# Whether or not to add -lc for building shared libraries.
20970build_libtool_need_lc=$archive_cmds_need_lc_CXX
20971
20972# Whether or not to disallow shared libs when runtime libs are static
20973allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20974
20975# Whether or not to optimize for fast installation.
20976fast_install=$enable_fast_install
20977
20978# The host system.
20979host_alias=$host_alias
20980host=$host
20981host_os=$host_os
20982
20983# The build system.
20984build_alias=$build_alias
20985build=$build
20986build_os=$build_os
20987
20988# An echo program that does not interpret backslashes.
20989echo=$lt_echo
20990
20991# The archiver.
20992AR=$lt_AR
20993AR_FLAGS=$lt_AR_FLAGS
20994
20995# A C compiler.
20996LTCC=$lt_LTCC
20997
20998# LTCC compiler flags.
20999LTCFLAGS=$lt_LTCFLAGS
21000
21001# A language-specific compiler.
21002CC=$lt_compiler_CXX
21003
21004# Is the compiler the GNU C compiler?
21005with_gcc=$GCC_CXX
21006
21007# An ERE matcher.
21008EGREP=$lt_EGREP
21009
21010# The linker used to build libraries.
21011LD=$lt_LD_CXX
21012
21013# Whether we need hard or soft links.
21014LN_S=$lt_LN_S
21015
21016# A BSD-compatible nm program.
21017NM=$lt_NM
21018
21019# A symbol stripping program
21020STRIP=$lt_STRIP
21021
21022# Used to examine libraries when file_magic_cmd begins "file"
21023MAGIC_CMD=$MAGIC_CMD
21024
21025# Used on cygwin: DLL creation program.
21026DLLTOOL="$DLLTOOL"
21027
21028# Used on cygwin: object dumper.
21029OBJDUMP="$OBJDUMP"
21030
21031# Used on cygwin: assembler.
21032AS="$AS"
21033
21034# The name of the directory that contains temporary libtool files.
21035objdir=$objdir
21036
21037# How to create reloadable object files.
21038reload_flag=$lt_reload_flag
21039reload_cmds=$lt_reload_cmds
21040
21041# How to pass a linker flag through the compiler.
21042wl=$lt_lt_prog_compiler_wl_CXX
21043
21044# Object file suffix (normally "o").
21045objext="$ac_objext"
21046
21047# Old archive suffix (normally "a").
21048libext="$libext"
21049
21050# Shared library suffix (normally ".so").
21051shrext_cmds='$shrext_cmds'
21052
21053# Executable file suffix (normally "").
21054exeext="$exeext"
21055
21056# Additional compiler flags for building library objects.
21057pic_flag=$lt_lt_prog_compiler_pic_CXX
21058pic_mode=$pic_mode
21059
21060# What is the maximum length of a command?
21061max_cmd_len=$lt_cv_sys_max_cmd_len
21062
21063# Does compiler simultaneously support -c and -o options?
21064compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21065
21066# Must we lock files when doing compilation?
21067need_locks=$lt_need_locks
21068
21069# Do we need the lib prefix for modules?
21070need_lib_prefix=$need_lib_prefix
21071
21072# Do we need a version for libraries?
21073need_version=$need_version
21074
21075# Whether dlopen is supported.
21076dlopen_support=$enable_dlopen
21077
21078# Whether dlopen of programs is supported.
21079dlopen_self=$enable_dlopen_self
21080
21081# Whether dlopen of statically linked programs is supported.
21082dlopen_self_static=$enable_dlopen_self_static
21083
21084# Compiler flag to prevent dynamic linking.
21085link_static_flag=$lt_lt_prog_compiler_static_CXX
21086
21087# Compiler flag to turn off builtin functions.
21088no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21089
21090# Compiler flag to allow reflexive dlopens.
21091export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21092
21093# Compiler flag to generate shared objects directly from archives.
21094whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21095
21096# Compiler flag to generate thread-safe objects.
21097thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21098
21099# Library versioning type.
21100version_type=$version_type
21101
21102# Format of library name prefix.
21103libname_spec=$lt_libname_spec
21104
21105# List of archive names.  First name is the real one, the rest are links.
21106# The last name is the one that the linker finds with -lNAME.
21107library_names_spec=$lt_library_names_spec
21108
21109# The coded name of the library, if different from the real name.
21110soname_spec=$lt_soname_spec
21111
21112# Commands used to build and install an old-style archive.
21113RANLIB=$lt_RANLIB
21114old_archive_cmds=$lt_old_archive_cmds_CXX
21115old_postinstall_cmds=$lt_old_postinstall_cmds
21116old_postuninstall_cmds=$lt_old_postuninstall_cmds
21117
21118# Create an old-style archive from a shared archive.
21119old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21120
21121# Create a temporary old-style archive to link instead of a shared archive.
21122old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21123
21124# Commands used to build and install a shared archive.
21125archive_cmds=$lt_archive_cmds_CXX
21126archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21127postinstall_cmds=$lt_postinstall_cmds
21128postuninstall_cmds=$lt_postuninstall_cmds
21129
21130# Commands used to build a loadable module (assumed same as above if empty)
21131module_cmds=$lt_module_cmds_CXX
21132module_expsym_cmds=$lt_module_expsym_cmds_CXX
21133
21134# Commands to strip libraries.
21135old_striplib=$lt_old_striplib
21136striplib=$lt_striplib
21137
21138# Dependencies to place before the objects being linked to create a
21139# shared library.
21140predep_objects=$lt_predep_objects_CXX
21141
21142# Dependencies to place after the objects being linked to create a
21143# shared library.
21144postdep_objects=$lt_postdep_objects_CXX
21145
21146# Dependencies to place before the objects being linked to create a
21147# shared library.
21148predeps=$lt_predeps_CXX
21149
21150# Dependencies to place after the objects being linked to create a
21151# shared library.
21152postdeps=$lt_postdeps_CXX
21153
21154# The library search path used internally by the compiler when linking
21155# a shared library.
21156compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21157
21158# Method to check whether dependent libraries are shared objects.
21159deplibs_check_method=$lt_deplibs_check_method
21160
21161# Command to use when deplibs_check_method == file_magic.
21162file_magic_cmd=$lt_file_magic_cmd
21163
21164# Flag that allows shared libraries with undefined symbols to be built.
21165allow_undefined_flag=$lt_allow_undefined_flag_CXX
21166
21167# Flag that forces no undefined symbols.
21168no_undefined_flag=$lt_no_undefined_flag_CXX
21169
21170# Commands used to finish a libtool library installation in a directory.
21171finish_cmds=$lt_finish_cmds
21172
21173# Same as above, but a single script fragment to be evaled but not shown.
21174finish_eval=$lt_finish_eval
21175
21176# Take the output of nm and produce a listing of raw symbols and C names.
21177global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21178
21179# Transform the output of nm in a proper C declaration
21180global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21181
21182# Transform the output of nm in a C name address pair
21183global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21184
21185# This is the shared library runtime path variable.
21186runpath_var=$runpath_var
21187
21188# This is the shared library path variable.
21189shlibpath_var=$shlibpath_var
21190
21191# Is shlibpath searched before the hard-coded library search path?
21192shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21193
21194# How to hardcode a shared library path into an executable.
21195hardcode_action=$hardcode_action_CXX
21196
21197# Whether we should hardcode library paths into libraries.
21198hardcode_into_libs=$hardcode_into_libs
21199
21200# Flag to hardcode \$libdir into a binary during linking.
21201# This must work even if \$libdir does not exist.
21202hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21203
21204# If ld is used when linking, flag to hardcode \$libdir into
21205# a binary during linking. This must work even if \$libdir does
21206# not exist.
21207hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21208
21209# Whether we need a single -rpath flag with a separated argument.
21210hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21211
21212# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21213# resulting binary.
21214hardcode_direct=$hardcode_direct_CXX
21215
21216# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21217# resulting binary.
21218hardcode_minus_L=$hardcode_minus_L_CXX
21219
21220# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21221# the resulting binary.
21222hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21223
21224# Set to yes if building a shared library automatically hardcodes DIR into the library
21225# and all subsequent libraries and executables linked against it.
21226hardcode_automatic=$hardcode_automatic_CXX
21227
21228# Variables whose values should be saved in libtool wrapper scripts and
21229# restored at relink time.
21230variables_saved_for_relink="$variables_saved_for_relink"
21231
21232# Whether libtool must link a program against all its dependency libraries.
21233link_all_deplibs=$link_all_deplibs_CXX
21234
21235# Compile-time system search path for libraries
21236sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21237
21238# Run-time system search path for libraries
21239sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21240
21241# Fix the shell variable \$srcfile for the compiler.
21242fix_srcfile_path="$fix_srcfile_path_CXX"
21243
21244# Set to yes if exported symbols are required.
21245always_export_symbols=$always_export_symbols_CXX
21246
21247# The commands to list exported symbols.
21248export_symbols_cmds=$lt_export_symbols_cmds_CXX
21249
21250# The commands to extract the exported symbol list from a shared archive.
21251extract_expsyms_cmds=$lt_extract_expsyms_cmds
21252
21253# Symbols that should not be listed in the preloaded symbols.
21254exclude_expsyms=$lt_exclude_expsyms_CXX
21255
21256# Symbols that must always be exported.
21257include_expsyms=$lt_include_expsyms_CXX
21258
21259# ### END LIBTOOL TAG CONFIG: $tagname
21260
21261__EOF__
21262
21263
21264else
21265  # If there is no Makefile yet, we rely on a make rule to execute
21266  # `config.status --recheck' to rerun these tests and create the
21267  # libtool script then.
21268  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21269  if test -f "$ltmain_in"; then
21270    test -f Makefile && make "$ltmain"
21271  fi
21272fi
21273
21274
21275ac_ext=c
21276ac_cpp='$CPP $CPPFLAGS'
21277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21279ac_compiler_gnu=$ac_cv_c_compiler_gnu
21280
21281CC=$lt_save_CC
21282LDCXX=$LD
21283LD=$lt_save_LD
21284GCC=$lt_save_GCC
21285with_gnu_ldcxx=$with_gnu_ld
21286with_gnu_ld=$lt_save_with_gnu_ld
21287lt_cv_path_LDCXX=$lt_cv_path_LD
21288lt_cv_path_LD=$lt_save_path_LD
21289lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21290lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21291
21292	else
21293	  tagname=""
21294	fi
21295	;;
21296
21297      F77)
21298	if test -n "$F77" && test "X$F77" != "Xno"; then
21299
21300ac_ext=f
21301ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21302ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21303ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21304
21305
21306archive_cmds_need_lc_F77=no
21307allow_undefined_flag_F77=
21308always_export_symbols_F77=no
21309archive_expsym_cmds_F77=
21310export_dynamic_flag_spec_F77=
21311hardcode_direct_F77=no
21312hardcode_libdir_flag_spec_F77=
21313hardcode_libdir_flag_spec_ld_F77=
21314hardcode_libdir_separator_F77=
21315hardcode_minus_L_F77=no
21316hardcode_automatic_F77=no
21317module_cmds_F77=
21318module_expsym_cmds_F77=
21319link_all_deplibs_F77=unknown
21320old_archive_cmds_F77=$old_archive_cmds
21321no_undefined_flag_F77=
21322whole_archive_flag_spec_F77=
21323enable_shared_with_static_runtimes_F77=no
21324
21325# Source file extension for f77 test sources.
21326ac_ext=f
21327
21328# Object file extension for compiled f77 test sources.
21329objext=o
21330objext_F77=$objext
21331
21332# Code to be used in simple compile tests
21333lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21334
21335# Code to be used in simple link tests
21336lt_simple_link_test_code="      program t\n      end\n"
21337
21338# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21339
21340# If no C compiler was specified, use CC.
21341LTCC=${LTCC-"$CC"}
21342
21343# If no C compiler flags were specified, use CFLAGS.
21344LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21345
21346# Allow CC to be a program name with arguments.
21347compiler=$CC
21348
21349
21350# save warnings/boilerplate of simple test code
21351ac_outfile=conftest.$ac_objext
21352printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21353eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21354_lt_compiler_boilerplate=`cat conftest.err`
21355$rm conftest*
21356
21357ac_outfile=conftest.$ac_objext
21358printf "$lt_simple_link_test_code" >conftest.$ac_ext
21359eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21360_lt_linker_boilerplate=`cat conftest.err`
21361$rm conftest*
21362
21363
21364# Allow CC to be a program name with arguments.
21365lt_save_CC="$CC"
21366CC=${F77-"f77"}
21367compiler=$CC
21368compiler_F77=$CC
21369for cc_temp in $compiler""; do
21370  case $cc_temp in
21371    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21372    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21373    \-*) ;;
21374    *) break;;
21375  esac
21376done
21377cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21378
21379
21380{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21381echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21382{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21383echo "${ECHO_T}$can_build_shared" >&6; }
21384
21385{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21386echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21387test "$can_build_shared" = "no" && enable_shared=no
21388
21389# On AIX, shared libraries and static libraries use the same namespace, and
21390# are all built from PIC.
21391case $host_os in
21392aix3*)
21393  test "$enable_shared" = yes && enable_static=no
21394  if test -n "$RANLIB"; then
21395    archive_cmds="$archive_cmds~\$RANLIB \$lib"
21396    postinstall_cmds='$RANLIB $lib'
21397  fi
21398  ;;
21399aix4* | aix5*)
21400  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21401    test "$enable_shared" = yes && enable_static=no
21402  fi
21403  ;;
21404esac
21405{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21406echo "${ECHO_T}$enable_shared" >&6; }
21407
21408{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21409echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21410# Make sure either enable_shared or enable_static is yes.
21411test "$enable_shared" = yes || enable_static=yes
21412{ echo "$as_me:$LINENO: result: $enable_static" >&5
21413echo "${ECHO_T}$enable_static" >&6; }
21414
21415GCC_F77="$G77"
21416LD_F77="$LD"
21417
21418lt_prog_compiler_wl_F77=
21419lt_prog_compiler_pic_F77=
21420lt_prog_compiler_static_F77=
21421
21422{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21423echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21424
21425  if test "$GCC" = yes; then
21426    lt_prog_compiler_wl_F77='-Wl,'
21427    lt_prog_compiler_static_F77='-static'
21428
21429    case $host_os in
21430      aix*)
21431      # All AIX code is PIC.
21432      if test "$host_cpu" = ia64; then
21433	# AIX 5 now supports IA64 processor
21434	lt_prog_compiler_static_F77='-Bstatic'
21435      fi
21436      ;;
21437
21438    amigaos*)
21439      # FIXME: we need at least 68020 code to build shared libraries, but
21440      # adding the `-m68020' flag to GCC prevents building anything better,
21441      # like `-m68040'.
21442      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21443      ;;
21444
21445    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21446      # PIC is the default for these OSes.
21447      ;;
21448
21449    mingw* | pw32* | os2*)
21450      # This hack is so that the source file can tell whether it is being
21451      # built for inclusion in a dll (and should export symbols for example).
21452      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21453      ;;
21454
21455    darwin* | rhapsody*)
21456      # PIC is the default on this platform
21457      # Common symbols not allowed in MH_DYLIB files
21458      lt_prog_compiler_pic_F77='-fno-common'
21459      ;;
21460
21461    interix3*)
21462      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21463      # Instead, we relocate shared libraries at runtime.
21464      ;;
21465
21466    msdosdjgpp*)
21467      # Just because we use GCC doesn't mean we suddenly get shared libraries
21468      # on systems that don't support them.
21469      lt_prog_compiler_can_build_shared_F77=no
21470      enable_shared=no
21471      ;;
21472
21473    sysv4*MP*)
21474      if test -d /usr/nec; then
21475	lt_prog_compiler_pic_F77=-Kconform_pic
21476      fi
21477      ;;
21478
21479    hpux*)
21480      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21481      # not for PA HP-UX.
21482      case $host_cpu in
21483      hppa*64*|ia64*)
21484	# +Z the default
21485	;;
21486      *)
21487	lt_prog_compiler_pic_F77='-fPIC'
21488	;;
21489      esac
21490      ;;
21491
21492    *)
21493      lt_prog_compiler_pic_F77='-fPIC'
21494      ;;
21495    esac
21496  else
21497    # PORTME Check for flag to pass linker flags through the system compiler.
21498    case $host_os in
21499    aix*)
21500      lt_prog_compiler_wl_F77='-Wl,'
21501      if test "$host_cpu" = ia64; then
21502	# AIX 5 now supports IA64 processor
21503	lt_prog_compiler_static_F77='-Bstatic'
21504      else
21505	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21506      fi
21507      ;;
21508      darwin*)
21509        # PIC is the default on this platform
21510        # Common symbols not allowed in MH_DYLIB files
21511       case $cc_basename in
21512         xlc*)
21513         lt_prog_compiler_pic_F77='-qnocommon'
21514         lt_prog_compiler_wl_F77='-Wl,'
21515         ;;
21516       esac
21517       ;;
21518
21519    mingw* | pw32* | os2*)
21520      # This hack is so that the source file can tell whether it is being
21521      # built for inclusion in a dll (and should export symbols for example).
21522      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21523      ;;
21524
21525    hpux9* | hpux10* | hpux11*)
21526      lt_prog_compiler_wl_F77='-Wl,'
21527      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21528      # not for PA HP-UX.
21529      case $host_cpu in
21530      hppa*64*|ia64*)
21531	# +Z the default
21532	;;
21533      *)
21534	lt_prog_compiler_pic_F77='+Z'
21535	;;
21536      esac
21537      # Is there a better lt_prog_compiler_static that works with the bundled CC?
21538      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21539      ;;
21540
21541    irix5* | irix6* | nonstopux*)
21542      lt_prog_compiler_wl_F77='-Wl,'
21543      # PIC (with -KPIC) is the default.
21544      lt_prog_compiler_static_F77='-non_shared'
21545      ;;
21546
21547    newsos6)
21548      lt_prog_compiler_pic_F77='-KPIC'
21549      lt_prog_compiler_static_F77='-Bstatic'
21550      ;;
21551
21552    linux*)
21553      case $cc_basename in
21554      icc* | ecc*)
21555	lt_prog_compiler_wl_F77='-Wl,'
21556	lt_prog_compiler_pic_F77='-KPIC'
21557	lt_prog_compiler_static_F77='-static'
21558        ;;
21559      pgcc* | pgf77* | pgf90* | pgf95*)
21560        # Portland Group compilers (*not* the Pentium gcc compiler,
21561	# which looks to be a dead project)
21562	lt_prog_compiler_wl_F77='-Wl,'
21563	lt_prog_compiler_pic_F77='-fpic'
21564	lt_prog_compiler_static_F77='-Bstatic'
21565        ;;
21566      ccc*)
21567        lt_prog_compiler_wl_F77='-Wl,'
21568        # All Alpha code is PIC.
21569        lt_prog_compiler_static_F77='-non_shared'
21570        ;;
21571      esac
21572      ;;
21573
21574    osf3* | osf4* | osf5*)
21575      lt_prog_compiler_wl_F77='-Wl,'
21576      # All OSF/1 code is PIC.
21577      lt_prog_compiler_static_F77='-non_shared'
21578      ;;
21579
21580    solaris*)
21581      lt_prog_compiler_pic_F77='-KPIC'
21582      lt_prog_compiler_static_F77='-Bstatic'
21583      case $cc_basename in
21584      f77* | f90* | f95*)
21585	lt_prog_compiler_wl_F77='-Qoption ld ';;
21586      *)
21587	lt_prog_compiler_wl_F77='-Wl,';;
21588      esac
21589      ;;
21590
21591    sunos4*)
21592      lt_prog_compiler_wl_F77='-Qoption ld '
21593      lt_prog_compiler_pic_F77='-PIC'
21594      lt_prog_compiler_static_F77='-Bstatic'
21595      ;;
21596
21597    sysv4 | sysv4.2uw2* | sysv4.3*)
21598      lt_prog_compiler_wl_F77='-Wl,'
21599      lt_prog_compiler_pic_F77='-KPIC'
21600      lt_prog_compiler_static_F77='-Bstatic'
21601      ;;
21602
21603    sysv4*MP*)
21604      if test -d /usr/nec ;then
21605	lt_prog_compiler_pic_F77='-Kconform_pic'
21606	lt_prog_compiler_static_F77='-Bstatic'
21607      fi
21608      ;;
21609
21610    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21611      lt_prog_compiler_wl_F77='-Wl,'
21612      lt_prog_compiler_pic_F77='-KPIC'
21613      lt_prog_compiler_static_F77='-Bstatic'
21614      ;;
21615
21616    unicos*)
21617      lt_prog_compiler_wl_F77='-Wl,'
21618      lt_prog_compiler_can_build_shared_F77=no
21619      ;;
21620
21621    uts4*)
21622      lt_prog_compiler_pic_F77='-pic'
21623      lt_prog_compiler_static_F77='-Bstatic'
21624      ;;
21625
21626    *)
21627      lt_prog_compiler_can_build_shared_F77=no
21628      ;;
21629    esac
21630  fi
21631
21632{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21633echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21634
21635#
21636# Check to make sure the PIC flag actually works.
21637#
21638if test -n "$lt_prog_compiler_pic_F77"; then
21639
21640{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21641echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21642if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21643  echo $ECHO_N "(cached) $ECHO_C" >&6
21644else
21645  lt_prog_compiler_pic_works_F77=no
21646  ac_outfile=conftest.$ac_objext
21647   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21648   lt_compiler_flag="$lt_prog_compiler_pic_F77"
21649   # Insert the option either (1) after the last *FLAGS variable, or
21650   # (2) before a word containing "conftest.", or (3) at the end.
21651   # Note that $ac_compile itself does not contain backslashes and begins
21652   # with a dollar sign (not a hyphen), so the echo should work correctly.
21653   # The option is referenced via a variable to avoid confusing sed.
21654   lt_compile=`echo "$ac_compile" | $SED \
21655   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21656   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21657   -e 's:$: $lt_compiler_flag:'`
21658   (eval echo "\"\$as_me:21658: $lt_compile\"" >&5)
21659   (eval "$lt_compile" 2>conftest.err)
21660   ac_status=$?
21661   cat conftest.err >&5
21662   echo "$as_me:21662: \$? = $ac_status" >&5
21663   if (exit $ac_status) && test -s "$ac_outfile"; then
21664     # The compiler can only warn and ignore the option if not recognized
21665     # So say no if there are warnings other than the usual output.
21666     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21667     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21668     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21669       lt_prog_compiler_pic_works_F77=yes
21670     fi
21671   fi
21672   $rm conftest*
21673
21674fi
21675{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21676echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21677
21678if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21679    case $lt_prog_compiler_pic_F77 in
21680     "" | " "*) ;;
21681     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21682     esac
21683else
21684    lt_prog_compiler_pic_F77=
21685     lt_prog_compiler_can_build_shared_F77=no
21686fi
21687
21688fi
21689case $host_os in
21690  # For platforms which do not support PIC, -DPIC is meaningless:
21691  *djgpp*)
21692    lt_prog_compiler_pic_F77=
21693    ;;
21694  *)
21695    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21696    ;;
21697esac
21698
21699#
21700# Check to make sure the static flag actually works.
21701#
21702wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21703{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21704echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21705if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21706  echo $ECHO_N "(cached) $ECHO_C" >&6
21707else
21708  lt_prog_compiler_static_works_F77=no
21709   save_LDFLAGS="$LDFLAGS"
21710   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21711   printf "$lt_simple_link_test_code" > conftest.$ac_ext
21712   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21713     # The linker can only warn and ignore the option if not recognized
21714     # So say no if there are warnings
21715     if test -s conftest.err; then
21716       # Append any errors to the config.log.
21717       cat conftest.err 1>&5
21718       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21719       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21720       if diff conftest.exp conftest.er2 >/dev/null; then
21721         lt_prog_compiler_static_works_F77=yes
21722       fi
21723     else
21724       lt_prog_compiler_static_works_F77=yes
21725     fi
21726   fi
21727   $rm conftest*
21728   LDFLAGS="$save_LDFLAGS"
21729
21730fi
21731{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21732echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21733
21734if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21735    :
21736else
21737    lt_prog_compiler_static_F77=
21738fi
21739
21740
21741{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21742echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21743if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21744  echo $ECHO_N "(cached) $ECHO_C" >&6
21745else
21746  lt_cv_prog_compiler_c_o_F77=no
21747   $rm -r conftest 2>/dev/null
21748   mkdir conftest
21749   cd conftest
21750   mkdir out
21751   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21752
21753   lt_compiler_flag="-o out/conftest2.$ac_objext"
21754   # Insert the option either (1) after the last *FLAGS variable, or
21755   # (2) before a word containing "conftest.", or (3) at the end.
21756   # Note that $ac_compile itself does not contain backslashes and begins
21757   # with a dollar sign (not a hyphen), so the echo should work correctly.
21758   lt_compile=`echo "$ac_compile" | $SED \
21759   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21760   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21761   -e 's:$: $lt_compiler_flag:'`
21762   (eval echo "\"\$as_me:21762: $lt_compile\"" >&5)
21763   (eval "$lt_compile" 2>out/conftest.err)
21764   ac_status=$?
21765   cat out/conftest.err >&5
21766   echo "$as_me:21766: \$? = $ac_status" >&5
21767   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21768   then
21769     # The compiler can only warn and ignore the option if not recognized
21770     # So say no if there are warnings
21771     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21772     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21773     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21774       lt_cv_prog_compiler_c_o_F77=yes
21775     fi
21776   fi
21777   chmod u+w . 2>&5
21778   $rm conftest*
21779   # SGI C++ compiler will create directory out/ii_files/ for
21780   # template instantiation
21781   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21782   $rm out/* && rmdir out
21783   cd ..
21784   rmdir conftest
21785   $rm conftest*
21786
21787fi
21788{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21789echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21790
21791
21792hard_links="nottested"
21793if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21794  # do not overwrite the value of need_locks provided by the user
21795  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21796echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21797  hard_links=yes
21798  $rm conftest*
21799  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21800  touch conftest.a
21801  ln conftest.a conftest.b 2>&5 || hard_links=no
21802  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21803  { echo "$as_me:$LINENO: result: $hard_links" >&5
21804echo "${ECHO_T}$hard_links" >&6; }
21805  if test "$hard_links" = no; then
21806    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21807echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21808    need_locks=warn
21809  fi
21810else
21811  need_locks=no
21812fi
21813
21814{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21815echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21816
21817  runpath_var=
21818  allow_undefined_flag_F77=
21819  enable_shared_with_static_runtimes_F77=no
21820  archive_cmds_F77=
21821  archive_expsym_cmds_F77=
21822  old_archive_From_new_cmds_F77=
21823  old_archive_from_expsyms_cmds_F77=
21824  export_dynamic_flag_spec_F77=
21825  whole_archive_flag_spec_F77=
21826  thread_safe_flag_spec_F77=
21827  hardcode_libdir_flag_spec_F77=
21828  hardcode_libdir_flag_spec_ld_F77=
21829  hardcode_libdir_separator_F77=
21830  hardcode_direct_F77=no
21831  hardcode_minus_L_F77=no
21832  hardcode_shlibpath_var_F77=unsupported
21833  link_all_deplibs_F77=unknown
21834  hardcode_automatic_F77=no
21835  module_cmds_F77=
21836  module_expsym_cmds_F77=
21837  always_export_symbols_F77=no
21838  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21839  # include_expsyms should be a list of space-separated symbols to be *always*
21840  # included in the symbol list
21841  include_expsyms_F77=
21842  # exclude_expsyms can be an extended regexp of symbols to exclude
21843  # it will be wrapped by ` (' and `)$', so one must not match beginning or
21844  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21845  # as well as any symbol that contains `d'.
21846  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21847  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21848  # platforms (ab)use it in PIC code, but their linkers get confused if
21849  # the symbol is explicitly referenced.  Since portable code cannot
21850  # rely on this symbol name, it's probably fine to never include it in
21851  # preloaded symbol tables.
21852  extract_expsyms_cmds=
21853  # Just being paranoid about ensuring that cc_basename is set.
21854  for cc_temp in $compiler""; do
21855  case $cc_temp in
21856    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21857    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21858    \-*) ;;
21859    *) break;;
21860  esac
21861done
21862cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21863
21864  case $host_os in
21865  cygwin* | mingw* | pw32*)
21866    # FIXME: the MSVC++ port hasn't been tested in a loooong time
21867    # When not using gcc, we currently assume that we are using
21868    # Microsoft Visual C++.
21869    if test "$GCC" != yes; then
21870      with_gnu_ld=no
21871    fi
21872    ;;
21873  interix*)
21874    # we just hope/assume this is gcc and not c89 (= MSVC++)
21875    with_gnu_ld=yes
21876    ;;
21877  openbsd*)
21878    with_gnu_ld=no
21879    ;;
21880  esac
21881
21882  ld_shlibs_F77=yes
21883  if test "$with_gnu_ld" = yes; then
21884    # If archive_cmds runs LD, not CC, wlarc should be empty
21885    wlarc='${wl}'
21886
21887    # Set some defaults for GNU ld with shared library support. These
21888    # are reset later if shared libraries are not supported. Putting them
21889    # here allows them to be overridden if necessary.
21890    runpath_var=LD_RUN_PATH
21891    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21892    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21893    # ancient GNU ld didn't support --whole-archive et. al.
21894    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21895	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21896      else
21897  	whole_archive_flag_spec_F77=
21898    fi
21899    supports_anon_versioning=no
21900    case `$LD -v 2>/dev/null` in
21901      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21902      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21903      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21904      *\ 2.11.*) ;; # other 2.11 versions
21905      *) supports_anon_versioning=yes ;;
21906    esac
21907
21908    # See if GNU ld supports shared libraries.
21909    case $host_os in
21910    aix3* | aix4* | aix5*)
21911      # On AIX/PPC, the GNU linker is very broken
21912      if test "$host_cpu" != ia64; then
21913	ld_shlibs_F77=no
21914	cat <<EOF 1>&2
21915
21916*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21917*** to be unable to reliably create shared libraries on AIX.
21918*** Therefore, libtool is disabling shared libraries support.  If you
21919*** really care for shared libraries, you may want to modify your PATH
21920*** so that a non-GNU linker is found, and then restart.
21921
21922EOF
21923      fi
21924      ;;
21925
21926    amigaos*)
21927      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)'
21928      hardcode_libdir_flag_spec_F77='-L$libdir'
21929      hardcode_minus_L_F77=yes
21930
21931      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21932      # that the semantics of dynamic libraries on AmigaOS, at least up
21933      # to version 4, is to share data among multiple programs linked
21934      # with the same dynamic library.  Since this doesn't match the
21935      # behavior of shared libraries on other platforms, we can't use
21936      # them.
21937      ld_shlibs_F77=no
21938      ;;
21939
21940    beos*)
21941      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21942	allow_undefined_flag_F77=unsupported
21943	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21944	# support --undefined.  This deserves some investigation.  FIXME
21945	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21946      else
21947	ld_shlibs_F77=no
21948      fi
21949      ;;
21950
21951    cygwin* | mingw* | pw32*)
21952      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21953      # as there is no search path for DLLs.
21954      hardcode_libdir_flag_spec_F77='-L$libdir'
21955      allow_undefined_flag_F77=unsupported
21956      always_export_symbols_F77=no
21957      enable_shared_with_static_runtimes_F77=yes
21958      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21959
21960      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21961        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21962	# If the export-symbols file already is a .def file (1st line
21963	# is EXPORTS), use it as is; otherwise, prepend...
21964	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21965	  cp $export_symbols $output_objdir/$soname.def;
21966	else
21967	  echo EXPORTS > $output_objdir/$soname.def;
21968	  cat $export_symbols >> $output_objdir/$soname.def;
21969	fi~
21970	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21971      else
21972	ld_shlibs_F77=no
21973      fi
21974      ;;
21975
21976    interix3*)
21977      hardcode_direct_F77=no
21978      hardcode_shlibpath_var_F77=no
21979      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21980      export_dynamic_flag_spec_F77='${wl}-E'
21981      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21982      # Instead, shared libraries are loaded at an image base (0x10000000 by
21983      # default) and relocated if they conflict, which is a slow very memory
21984      # consuming and fragmenting process.  To avoid this, we pick a random,
21985      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21986      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21987      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'
21988      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'
21989      ;;
21990
21991    linux*)
21992      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21993	tmp_addflag=
21994	case $cc_basename,$host_cpu in
21995	pgcc*)				# Portland Group C compiler
21996	  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'
21997	  tmp_addflag=' $pic_flag'
21998	  ;;
21999	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
22000	  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'
22001	  tmp_addflag=' $pic_flag -Mnomain' ;;
22002	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
22003	  tmp_addflag=' -i_dynamic' ;;
22004	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
22005	  tmp_addflag=' -i_dynamic -nofor_main' ;;
22006	ifc* | ifort*)			# Intel Fortran compiler
22007	  tmp_addflag=' -nofor_main' ;;
22008	esac
22009	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22010
22011	if test $supports_anon_versioning = yes; then
22012	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22013  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22014  $echo "local: *; };" >> $output_objdir/$libname.ver~
22015	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22016	fi
22017      else
22018	ld_shlibs_F77=no
22019      fi
22020      ;;
22021
22022    netbsd*)
22023      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22024	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22025	wlarc=
22026      else
22027	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22028	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22029      fi
22030      ;;
22031
22032    solaris*)
22033      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22034	ld_shlibs_F77=no
22035	cat <<EOF 1>&2
22036
22037*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22038*** create shared libraries on Solaris systems.  Therefore, libtool
22039*** is disabling shared libraries support.  We urge you to upgrade GNU
22040*** binutils to release 2.9.1 or newer.  Another option is to modify
22041*** your PATH or compiler configuration so that the native linker is
22042*** used, and then restart.
22043
22044EOF
22045      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22046	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22047	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22048      else
22049	ld_shlibs_F77=no
22050      fi
22051      ;;
22052
22053    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22054      case `$LD -v 2>&1` in
22055        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22056	ld_shlibs_F77=no
22057	cat <<_LT_EOF 1>&2
22058
22059*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22060*** reliably create shared libraries on SCO systems.  Therefore, libtool
22061*** is disabling shared libraries support.  We urge you to upgrade GNU
22062*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
22063*** your PATH or compiler configuration so that the native linker is
22064*** used, and then restart.
22065
22066_LT_EOF
22067	;;
22068	*)
22069	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22070	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22071	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22072	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22073	  else
22074	    ld_shlibs_F77=no
22075	  fi
22076	;;
22077      esac
22078      ;;
22079
22080    sunos4*)
22081      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22082      wlarc=
22083      hardcode_direct_F77=yes
22084      hardcode_shlibpath_var_F77=no
22085      ;;
22086
22087    *)
22088      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22089	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22090	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22091      else
22092	ld_shlibs_F77=no
22093      fi
22094      ;;
22095    esac
22096
22097    if test "$ld_shlibs_F77" = no; then
22098      runpath_var=
22099      hardcode_libdir_flag_spec_F77=
22100      export_dynamic_flag_spec_F77=
22101      whole_archive_flag_spec_F77=
22102    fi
22103  else
22104    # PORTME fill in a description of your system's linker (not GNU ld)
22105    case $host_os in
22106    aix3*)
22107      allow_undefined_flag_F77=unsupported
22108      always_export_symbols_F77=yes
22109      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'
22110      # Note: this linker hardcodes the directories in LIBPATH if there
22111      # are no directories specified by -L.
22112      hardcode_minus_L_F77=yes
22113      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22114	# Neither direct hardcoding nor static linking is supported with a
22115	# broken collect2.
22116	hardcode_direct_F77=unsupported
22117      fi
22118      ;;
22119
22120    aix4* | aix5*)
22121      if test "$host_cpu" = ia64; then
22122	# On IA64, the linker does run time linking by default, so we don't
22123	# have to do anything special.
22124	aix_use_runtimelinking=no
22125	exp_sym_flag='-Bexport'
22126	no_entry_flag=""
22127      else
22128	# If we're using GNU nm, then we don't want the "-C" option.
22129	# -C means demangle to AIX nm, but means don't demangle with GNU nm
22130	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22131	  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'
22132	else
22133	  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'
22134	fi
22135	aix_use_runtimelinking=no
22136
22137	# Test if we are trying to use run time linking or normal
22138	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
22139	# need to do runtime linking.
22140	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22141	  for ld_flag in $LDFLAGS; do
22142  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22143  	    aix_use_runtimelinking=yes
22144  	    break
22145  	  fi
22146	  done
22147	  ;;
22148	esac
22149
22150	exp_sym_flag='-bexport'
22151	no_entry_flag='-bnoentry'
22152      fi
22153
22154      # When large executables or shared objects are built, AIX ld can
22155      # have problems creating the table of contents.  If linking a library
22156      # or program results in "error TOC overflow" add -mminimal-toc to
22157      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22158      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22159
22160      archive_cmds_F77=''
22161      hardcode_direct_F77=yes
22162      hardcode_libdir_separator_F77=':'
22163      link_all_deplibs_F77=yes
22164
22165      if test "$GCC" = yes; then
22166	case $host_os in aix4.[012]|aix4.[012].*)
22167	# We only want to do this on AIX 4.2 and lower, the check
22168	# below for broken collect2 doesn't work under 4.3+
22169	  collect2name=`${CC} -print-prog-name=collect2`
22170	  if test -f "$collect2name" && \
22171  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
22172	  then
22173  	  # We have reworked collect2
22174  	  hardcode_direct_F77=yes
22175	  else
22176  	  # We have old collect2
22177  	  hardcode_direct_F77=unsupported
22178  	  # It fails to find uninstalled libraries when the uninstalled
22179  	  # path is not listed in the libpath.  Setting hardcode_minus_L
22180  	  # to unsupported forces relinking
22181  	  hardcode_minus_L_F77=yes
22182  	  hardcode_libdir_flag_spec_F77='-L$libdir'
22183  	  hardcode_libdir_separator_F77=
22184	  fi
22185	  ;;
22186	esac
22187	shared_flag='-shared'
22188	if test "$aix_use_runtimelinking" = yes; then
22189	  shared_flag="$shared_flag "'${wl}-G'
22190	fi
22191      else
22192	# not using gcc
22193	if test "$host_cpu" = ia64; then
22194  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22195  	# chokes on -Wl,-G. The following line is correct:
22196	  shared_flag='-G'
22197	else
22198	  if test "$aix_use_runtimelinking" = yes; then
22199	    shared_flag='${wl}-G'
22200	  else
22201	    shared_flag='${wl}-bM:SRE'
22202	  fi
22203	fi
22204      fi
22205
22206      # It seems that -bexpall does not export symbols beginning with
22207      # underscore (_), so it is better to generate a list of symbols to export.
22208      always_export_symbols_F77=yes
22209      if test "$aix_use_runtimelinking" = yes; then
22210	# Warning - without using the other runtime loading flags (-brtl),
22211	# -berok will link without error, but may produce a broken library.
22212	allow_undefined_flag_F77='-berok'
22213       # Determine the default libpath from the value encoded in an empty executable.
22214       cat >conftest.$ac_ext <<_ACEOF
22215      program main
22216
22217      end
22218_ACEOF
22219rm -f conftest.$ac_objext conftest$ac_exeext
22220if { (ac_try="$ac_link"
22221case "(($ac_try" in
22222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22223  *) ac_try_echo=$ac_try;;
22224esac
22225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22226  (eval "$ac_link") 2>conftest.er1
22227  ac_status=$?
22228  grep -v '^ *+' conftest.er1 >conftest.err
22229  rm -f conftest.er1
22230  cat conftest.err >&5
22231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232  (exit $ac_status); } &&
22233	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22234  { (case "(($ac_try" in
22235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22236  *) ac_try_echo=$ac_try;;
22237esac
22238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22239  (eval "$ac_try") 2>&5
22240  ac_status=$?
22241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242  (exit $ac_status); }; } &&
22243	 { ac_try='test -s conftest$ac_exeext'
22244  { (case "(($ac_try" in
22245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22246  *) ac_try_echo=$ac_try;;
22247esac
22248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22249  (eval "$ac_try") 2>&5
22250  ac_status=$?
22251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252  (exit $ac_status); }; }; then
22253
22254aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22255}'`
22256# Check for a 64-bit object if we didn't find anything.
22257if 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; }
22258}'`; fi
22259else
22260  echo "$as_me: failed program was:" >&5
22261sed 's/^/| /' conftest.$ac_ext >&5
22262
22263
22264fi
22265
22266rm -f core conftest.err conftest.$ac_objext \
22267      conftest$ac_exeext conftest.$ac_ext
22268if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22269
22270       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22271	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"
22272       else
22273	if test "$host_cpu" = ia64; then
22274	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22275	  allow_undefined_flag_F77="-z nodefs"
22276	  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"
22277	else
22278	 # Determine the default libpath from the value encoded in an empty executable.
22279	 cat >conftest.$ac_ext <<_ACEOF
22280      program main
22281
22282      end
22283_ACEOF
22284rm -f conftest.$ac_objext conftest$ac_exeext
22285if { (ac_try="$ac_link"
22286case "(($ac_try" in
22287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22288  *) ac_try_echo=$ac_try;;
22289esac
22290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22291  (eval "$ac_link") 2>conftest.er1
22292  ac_status=$?
22293  grep -v '^ *+' conftest.er1 >conftest.err
22294  rm -f conftest.er1
22295  cat conftest.err >&5
22296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297  (exit $ac_status); } &&
22298	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22299  { (case "(($ac_try" in
22300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301  *) ac_try_echo=$ac_try;;
22302esac
22303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22304  (eval "$ac_try") 2>&5
22305  ac_status=$?
22306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307  (exit $ac_status); }; } &&
22308	 { ac_try='test -s conftest$ac_exeext'
22309  { (case "(($ac_try" in
22310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22311  *) ac_try_echo=$ac_try;;
22312esac
22313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22314  (eval "$ac_try") 2>&5
22315  ac_status=$?
22316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317  (exit $ac_status); }; }; then
22318
22319aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22320}'`
22321# Check for a 64-bit object if we didn't find anything.
22322if 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; }
22323}'`; fi
22324else
22325  echo "$as_me: failed program was:" >&5
22326sed 's/^/| /' conftest.$ac_ext >&5
22327
22328
22329fi
22330
22331rm -f core conftest.err conftest.$ac_objext \
22332      conftest$ac_exeext conftest.$ac_ext
22333if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22334
22335	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22336	  # Warning - without using the other run time loading flags,
22337	  # -berok will link without error, but may produce a broken library.
22338	  no_undefined_flag_F77=' ${wl}-bernotok'
22339	  allow_undefined_flag_F77=' ${wl}-berok'
22340	  # Exported symbols can be pulled into shared objects from archives
22341	  whole_archive_flag_spec_F77='$convenience'
22342	  archive_cmds_need_lc_F77=yes
22343	  # This is similar to how AIX traditionally builds its shared libraries.
22344	  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'
22345	fi
22346      fi
22347      ;;
22348
22349    amigaos*)
22350      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)'
22351      hardcode_libdir_flag_spec_F77='-L$libdir'
22352      hardcode_minus_L_F77=yes
22353      # see comment about different semantics on the GNU ld section
22354      ld_shlibs_F77=no
22355      ;;
22356
22357    bsdi[45]*)
22358      export_dynamic_flag_spec_F77=-rdynamic
22359      ;;
22360
22361    cygwin* | mingw* | pw32*)
22362      # When not using gcc, we currently assume that we are using
22363      # Microsoft Visual C++.
22364      # hardcode_libdir_flag_spec is actually meaningless, as there is
22365      # no search path for DLLs.
22366      hardcode_libdir_flag_spec_F77=' '
22367      allow_undefined_flag_F77=unsupported
22368      # Tell ltmain to make .lib files, not .a files.
22369      libext=lib
22370      # Tell ltmain to make .dll files, not .so files.
22371      shrext_cmds=".dll"
22372      # FIXME: Setting linknames here is a bad hack.
22373      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22374      # The linker will automatically build a .lib file if we build a DLL.
22375      old_archive_From_new_cmds_F77='true'
22376      # FIXME: Should let the user specify the lib program.
22377      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22378      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22379      enable_shared_with_static_runtimes_F77=yes
22380      ;;
22381
22382    darwin* | rhapsody*)
22383      case $host_os in
22384        rhapsody* | darwin1.[012])
22385         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22386         ;;
22387       *) # Darwin 1.3 on
22388         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22389           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22390         else
22391           case ${MACOSX_DEPLOYMENT_TARGET} in
22392             10.[012])
22393               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22394               ;;
22395             10.*)
22396               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22397               ;;
22398           esac
22399         fi
22400         ;;
22401      esac
22402      archive_cmds_need_lc_F77=no
22403      hardcode_direct_F77=no
22404      hardcode_automatic_F77=yes
22405      hardcode_shlibpath_var_F77=unsupported
22406      whole_archive_flag_spec_F77=''
22407      link_all_deplibs_F77=yes
22408    if test "$GCC" = yes ; then
22409    	output_verbose_link_cmd='echo'
22410        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22411      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22412      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22413      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}'
22414      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}'
22415    else
22416      case $cc_basename in
22417        xlc*)
22418         output_verbose_link_cmd='echo'
22419         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22420         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22421          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22422         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}'
22423          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}'
22424          ;;
22425       *)
22426         ld_shlibs_F77=no
22427          ;;
22428      esac
22429    fi
22430      ;;
22431
22432    dgux*)
22433      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22434      hardcode_libdir_flag_spec_F77='-L$libdir'
22435      hardcode_shlibpath_var_F77=no
22436      ;;
22437
22438    freebsd1*)
22439      ld_shlibs_F77=no
22440      ;;
22441
22442    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22443    # support.  Future versions do this automatically, but an explicit c++rt0.o
22444    # does not break anything, and helps significantly (at the cost of a little
22445    # extra space).
22446    freebsd2.2*)
22447      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22448      hardcode_libdir_flag_spec_F77='-R$libdir'
22449      hardcode_direct_F77=yes
22450      hardcode_shlibpath_var_F77=no
22451      ;;
22452
22453    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22454    freebsd2*)
22455      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22456      hardcode_direct_F77=yes
22457      hardcode_minus_L_F77=yes
22458      hardcode_shlibpath_var_F77=no
22459      ;;
22460
22461    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22462    freebsd* | kfreebsd*-gnu | dragonfly*)
22463      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22464      hardcode_libdir_flag_spec_F77='-R$libdir'
22465      hardcode_direct_F77=yes
22466      hardcode_shlibpath_var_F77=no
22467      ;;
22468
22469    hpux9*)
22470      if test "$GCC" = yes; then
22471	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'
22472      else
22473	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'
22474      fi
22475      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22476      hardcode_libdir_separator_F77=:
22477      hardcode_direct_F77=yes
22478
22479      # hardcode_minus_L: Not really in the search PATH,
22480      # but as the default location of the library.
22481      hardcode_minus_L_F77=yes
22482      export_dynamic_flag_spec_F77='${wl}-E'
22483      ;;
22484
22485    hpux10*)
22486      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22487	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22488      else
22489	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22490      fi
22491      if test "$with_gnu_ld" = no; then
22492	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22493	hardcode_libdir_separator_F77=:
22494
22495	hardcode_direct_F77=yes
22496	export_dynamic_flag_spec_F77='${wl}-E'
22497
22498	# hardcode_minus_L: Not really in the search PATH,
22499	# but as the default location of the library.
22500	hardcode_minus_L_F77=yes
22501      fi
22502      ;;
22503
22504    hpux11*)
22505      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22506	case $host_cpu in
22507	hppa*64*)
22508	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22509	  ;;
22510	ia64*)
22511	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22512	  ;;
22513	*)
22514	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22515	  ;;
22516	esac
22517      else
22518	case $host_cpu in
22519	hppa*64*)
22520	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22521	  ;;
22522	ia64*)
22523	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22524	  ;;
22525	*)
22526	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22527	  ;;
22528	esac
22529      fi
22530      if test "$with_gnu_ld" = no; then
22531	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22532	hardcode_libdir_separator_F77=:
22533
22534	case $host_cpu in
22535	hppa*64*|ia64*)
22536	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22537	  hardcode_direct_F77=no
22538	  hardcode_shlibpath_var_F77=no
22539	  ;;
22540	*)
22541	  hardcode_direct_F77=yes
22542	  export_dynamic_flag_spec_F77='${wl}-E'
22543
22544	  # hardcode_minus_L: Not really in the search PATH,
22545	  # but as the default location of the library.
22546	  hardcode_minus_L_F77=yes
22547	  ;;
22548	esac
22549      fi
22550      ;;
22551
22552    irix5* | irix6* | nonstopux*)
22553      if test "$GCC" = yes; then
22554	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'
22555      else
22556	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'
22557	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22558      fi
22559      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22560      hardcode_libdir_separator_F77=:
22561      link_all_deplibs_F77=yes
22562      ;;
22563
22564    netbsd*)
22565      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22566	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22567      else
22568	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22569      fi
22570      hardcode_libdir_flag_spec_F77='-R$libdir'
22571      hardcode_direct_F77=yes
22572      hardcode_shlibpath_var_F77=no
22573      ;;
22574
22575    newsos6)
22576      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22577      hardcode_direct_F77=yes
22578      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22579      hardcode_libdir_separator_F77=:
22580      hardcode_shlibpath_var_F77=no
22581      ;;
22582
22583    openbsd*)
22584      hardcode_direct_F77=yes
22585      hardcode_shlibpath_var_F77=no
22586      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22587	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22588	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22589	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22590	export_dynamic_flag_spec_F77='${wl}-E'
22591      else
22592       case $host_os in
22593	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22594	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22595	   hardcode_libdir_flag_spec_F77='-R$libdir'
22596	   ;;
22597	 *)
22598	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22599	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22600	   ;;
22601       esac
22602      fi
22603      ;;
22604
22605    os2*)
22606      hardcode_libdir_flag_spec_F77='-L$libdir'
22607      hardcode_minus_L_F77=yes
22608      allow_undefined_flag_F77=unsupported
22609      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'
22610      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22611      ;;
22612
22613    osf3*)
22614      if test "$GCC" = yes; then
22615	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22616	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'
22617      else
22618	allow_undefined_flag_F77=' -expect_unresolved \*'
22619	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'
22620      fi
22621      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22622      hardcode_libdir_separator_F77=:
22623      ;;
22624
22625    osf4* | osf5*)	# as osf3* with the addition of -msym flag
22626      if test "$GCC" = yes; then
22627	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22628	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'
22629	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22630      else
22631	allow_undefined_flag_F77=' -expect_unresolved \*'
22632	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'
22633	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~
22634	$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'
22635
22636	# Both c and cxx compiler support -rpath directly
22637	hardcode_libdir_flag_spec_F77='-rpath $libdir'
22638      fi
22639      hardcode_libdir_separator_F77=:
22640      ;;
22641
22642    solaris*)
22643      no_undefined_flag_F77=' -z text'
22644      if test "$GCC" = yes; then
22645	wlarc='${wl}'
22646	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22647	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22648	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22649      else
22650	wlarc=''
22651	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22652	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22653  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22654      fi
22655      hardcode_libdir_flag_spec_F77='-R$libdir'
22656      hardcode_shlibpath_var_F77=no
22657      case $host_os in
22658      solaris2.[0-5] | solaris2.[0-5].*) ;;
22659      *)
22660 	# The compiler driver will combine linker options so we
22661 	# cannot just pass the convience library names through
22662 	# without $wl, iff we do not link with $LD.
22663 	# Luckily, gcc supports the same syntax we need for Sun Studio.
22664 	# Supported since Solaris 2.6 (maybe 2.5.1?)
22665 	case $wlarc in
22666 	'')
22667 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22668 	*)
22669 	  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' ;;
22670 	esac ;;
22671      esac
22672      link_all_deplibs_F77=yes
22673      ;;
22674
22675    sunos4*)
22676      if test "x$host_vendor" = xsequent; then
22677	# Use $CC to link under sequent, because it throws in some extra .o
22678	# files that make .init and .fini sections work.
22679	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22680      else
22681	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22682      fi
22683      hardcode_libdir_flag_spec_F77='-L$libdir'
22684      hardcode_direct_F77=yes
22685      hardcode_minus_L_F77=yes
22686      hardcode_shlibpath_var_F77=no
22687      ;;
22688
22689    sysv4)
22690      case $host_vendor in
22691	sni)
22692	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22693	  hardcode_direct_F77=yes # is this really true???
22694	;;
22695	siemens)
22696	  ## LD is ld it makes a PLAMLIB
22697	  ## CC just makes a GrossModule.
22698	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22699	  reload_cmds_F77='$CC -r -o $output$reload_objs'
22700	  hardcode_direct_F77=no
22701        ;;
22702	motorola)
22703	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22704	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22705	;;
22706      esac
22707      runpath_var='LD_RUN_PATH'
22708      hardcode_shlibpath_var_F77=no
22709      ;;
22710
22711    sysv4.3*)
22712      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22713      hardcode_shlibpath_var_F77=no
22714      export_dynamic_flag_spec_F77='-Bexport'
22715      ;;
22716
22717    sysv4*MP*)
22718      if test -d /usr/nec; then
22719	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22720	hardcode_shlibpath_var_F77=no
22721	runpath_var=LD_RUN_PATH
22722	hardcode_runpath_var=yes
22723	ld_shlibs_F77=yes
22724      fi
22725      ;;
22726
22727    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22728      no_undefined_flag_F77='${wl}-z,text'
22729      archive_cmds_need_lc_F77=no
22730      hardcode_shlibpath_var_F77=no
22731      runpath_var='LD_RUN_PATH'
22732
22733      if test "$GCC" = yes; then
22734	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22735	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22736      else
22737	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22738	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22739      fi
22740      ;;
22741
22742    sysv5* | sco3.2v5* | sco5v6*)
22743      # Note: We can NOT use -z defs as we might desire, because we do not
22744      # link with -lc, and that would cause any symbols used from libc to
22745      # always be unresolved, which means just about no library would
22746      # ever link correctly.  If we're not using GNU ld we use -z text
22747      # though, which does catch some bad symbols but isn't as heavy-handed
22748      # as -z defs.
22749      no_undefined_flag_F77='${wl}-z,text'
22750      allow_undefined_flag_F77='${wl}-z,nodefs'
22751      archive_cmds_need_lc_F77=no
22752      hardcode_shlibpath_var_F77=no
22753      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22754      hardcode_libdir_separator_F77=':'
22755      link_all_deplibs_F77=yes
22756      export_dynamic_flag_spec_F77='${wl}-Bexport'
22757      runpath_var='LD_RUN_PATH'
22758
22759      if test "$GCC" = yes; then
22760	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22761	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22762      else
22763	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22764	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22765      fi
22766      ;;
22767
22768    uts4*)
22769      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22770      hardcode_libdir_flag_spec_F77='-L$libdir'
22771      hardcode_shlibpath_var_F77=no
22772      ;;
22773
22774    *)
22775      ld_shlibs_F77=no
22776      ;;
22777    esac
22778  fi
22779
22780{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22781echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22782test "$ld_shlibs_F77" = no && can_build_shared=no
22783
22784#
22785# Do we need to explicitly link libc?
22786#
22787case "x$archive_cmds_need_lc_F77" in
22788x|xyes)
22789  # Assume -lc should be added
22790  archive_cmds_need_lc_F77=yes
22791
22792  if test "$enable_shared" = yes && test "$GCC" = yes; then
22793    case $archive_cmds_F77 in
22794    *'~'*)
22795      # FIXME: we may have to deal with multi-command sequences.
22796      ;;
22797    '$CC '*)
22798      # Test whether the compiler implicitly links with -lc since on some
22799      # systems, -lgcc has to come before -lc. If gcc already passes -lc
22800      # to ld, don't add -lc before -lgcc.
22801      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22802echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22803      $rm conftest*
22804      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22805
22806      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22807  (eval $ac_compile) 2>&5
22808  ac_status=$?
22809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810  (exit $ac_status); } 2>conftest.err; then
22811        soname=conftest
22812        lib=conftest
22813        libobjs=conftest.$ac_objext
22814        deplibs=
22815        wl=$lt_prog_compiler_wl_F77
22816	pic_flag=$lt_prog_compiler_pic_F77
22817        compiler_flags=-v
22818        linker_flags=-v
22819        verstring=
22820        output_objdir=.
22821        libname=conftest
22822        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22823        allow_undefined_flag_F77=
22824        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22825  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22826  ac_status=$?
22827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828  (exit $ac_status); }
22829        then
22830	  archive_cmds_need_lc_F77=no
22831        else
22832	  archive_cmds_need_lc_F77=yes
22833        fi
22834        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22835      else
22836        cat conftest.err 1>&5
22837      fi
22838      $rm conftest*
22839      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22840echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22841      ;;
22842    esac
22843  fi
22844  ;;
22845esac
22846
22847{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22848echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22849library_names_spec=
22850libname_spec='lib$name'
22851soname_spec=
22852shrext_cmds=".so"
22853postinstall_cmds=
22854postuninstall_cmds=
22855finish_cmds=
22856finish_eval=
22857shlibpath_var=
22858shlibpath_overrides_runpath=unknown
22859version_type=none
22860dynamic_linker="$host_os ld.so"
22861sys_lib_dlsearch_path_spec="/lib /usr/lib"
22862if test "$GCC" = yes; then
22863  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22864  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22865    # if the path contains ";" then we assume it to be the separator
22866    # otherwise default to the standard path separator (i.e. ":") - it is
22867    # assumed that no part of a normal pathname contains ";" but that should
22868    # okay in the real world where ";" in dirpaths is itself problematic.
22869    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22870  else
22871    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22872  fi
22873else
22874  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22875fi
22876need_lib_prefix=unknown
22877hardcode_into_libs=no
22878
22879# when you set need_version to no, make sure it does not cause -set_version
22880# flags to be left without arguments
22881need_version=unknown
22882
22883case $host_os in
22884aix3*)
22885  version_type=linux
22886  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22887  shlibpath_var=LIBPATH
22888
22889  # AIX 3 has no versioning support, so we append a major version to the name.
22890  soname_spec='${libname}${release}${shared_ext}$major'
22891  ;;
22892
22893aix4* | aix5*)
22894  version_type=linux
22895  need_lib_prefix=no
22896  need_version=no
22897  hardcode_into_libs=yes
22898  if test "$host_cpu" = ia64; then
22899    # AIX 5 supports IA64
22900    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22901    shlibpath_var=LD_LIBRARY_PATH
22902  else
22903    # With GCC up to 2.95.x, collect2 would create an import file
22904    # for dependence libraries.  The import file would start with
22905    # the line `#! .'.  This would cause the generated library to
22906    # depend on `.', always an invalid library.  This was fixed in
22907    # development snapshots of GCC prior to 3.0.
22908    case $host_os in
22909      aix4 | aix4.[01] | aix4.[01].*)
22910      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22911	   echo ' yes '
22912	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22913	:
22914      else
22915	can_build_shared=no
22916      fi
22917      ;;
22918    esac
22919    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22920    # soname into executable. Probably we can add versioning support to
22921    # collect2, so additional links can be useful in future.
22922    if test "$aix_use_runtimelinking" = yes; then
22923      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22924      # instead of lib<name>.a to let people know that these are not
22925      # typical AIX shared libraries.
22926      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22927    else
22928      # We preserve .a as extension for shared libraries through AIX4.2
22929      # and later when we are not doing run time linking.
22930      library_names_spec='${libname}${release}.a $libname.a'
22931      soname_spec='${libname}${release}${shared_ext}$major'
22932    fi
22933    shlibpath_var=LIBPATH
22934  fi
22935  ;;
22936
22937amigaos*)
22938  library_names_spec='$libname.ixlibrary $libname.a'
22939  # Create ${libname}_ixlibrary.a entries in /sys/libs.
22940  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'
22941  ;;
22942
22943beos*)
22944  library_names_spec='${libname}${shared_ext}'
22945  dynamic_linker="$host_os ld.so"
22946  shlibpath_var=LIBRARY_PATH
22947  ;;
22948
22949bsdi[45]*)
22950  version_type=linux
22951  need_version=no
22952  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22953  soname_spec='${libname}${release}${shared_ext}$major'
22954  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22955  shlibpath_var=LD_LIBRARY_PATH
22956  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22957  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22958  # the default ld.so.conf also contains /usr/contrib/lib and
22959  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22960  # libtool to hard-code these into programs
22961  ;;
22962
22963cygwin* | mingw* | pw32*)
22964  version_type=windows
22965  shrext_cmds=".dll"
22966  need_version=no
22967  need_lib_prefix=no
22968
22969  case $GCC,$host_os in
22970  yes,cygwin* | yes,mingw* | yes,pw32*)
22971    library_names_spec='$libname.dll.a'
22972    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22973    postinstall_cmds='base_file=`basename \${file}`~
22974      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22975      dldir=$destdir/`dirname \$dlpath`~
22976      test -d \$dldir || mkdir -p \$dldir~
22977      $install_prog $dir/$dlname \$dldir/$dlname~
22978      chmod a+x \$dldir/$dlname'
22979    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22980      dlpath=$dir/\$dldll~
22981       $rm \$dlpath'
22982    shlibpath_overrides_runpath=yes
22983
22984    case $host_os in
22985    cygwin*)
22986      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22987      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22988      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22989      ;;
22990    mingw*)
22991      # MinGW DLLs use traditional 'lib' prefix
22992      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22993      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22994      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22995        # It is most probably a Windows format PATH printed by
22996        # mingw gcc, but we are running on Cygwin. Gcc prints its search
22997        # path with ; separators, and with drive letters. We can handle the
22998        # drive letters (cygwin fileutils understands them), so leave them,
22999        # especially as we might pass files found there to a mingw objdump,
23000        # which wouldn't understand a cygwinified path. Ahh.
23001        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23002      else
23003        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23004      fi
23005      ;;
23006    pw32*)
23007      # pw32 DLLs use 'pw' prefix rather than 'lib'
23008      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23009      ;;
23010    esac
23011    ;;
23012
23013  *)
23014    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23015    ;;
23016  esac
23017  dynamic_linker='Win32 ld.exe'
23018  # FIXME: first we should search . and the directory the executable is in
23019  shlibpath_var=PATH
23020  ;;
23021
23022darwin* | rhapsody*)
23023  dynamic_linker="$host_os dyld"
23024  version_type=darwin
23025  need_lib_prefix=no
23026  need_version=no
23027  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23028  soname_spec='${libname}${release}${major}$shared_ext'
23029  shlibpath_overrides_runpath=yes
23030  shlibpath_var=DYLD_LIBRARY_PATH
23031  shrext_cmds='.dylib'
23032  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23033  if test "$GCC" = yes; then
23034    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"`
23035  else
23036    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23037  fi
23038  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23039  ;;
23040
23041dgux*)
23042  version_type=linux
23043  need_lib_prefix=no
23044  need_version=no
23045  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23046  soname_spec='${libname}${release}${shared_ext}$major'
23047  shlibpath_var=LD_LIBRARY_PATH
23048  ;;
23049
23050freebsd1*)
23051  dynamic_linker=no
23052  ;;
23053
23054kfreebsd*-gnu)
23055  version_type=linux
23056  need_lib_prefix=no
23057  need_version=no
23058  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23059  soname_spec='${libname}${release}${shared_ext}$major'
23060  shlibpath_var=LD_LIBRARY_PATH
23061  shlibpath_overrides_runpath=no
23062  hardcode_into_libs=yes
23063  dynamic_linker='GNU ld.so'
23064  ;;
23065
23066freebsd* | dragonfly*)
23067  # DragonFly does not have aout.  When/if they implement a new
23068  # versioning mechanism, adjust this.
23069  if test -x /usr/bin/objformat; then
23070    objformat=`/usr/bin/objformat`
23071  else
23072    case $host_os in
23073    freebsd[123]*) objformat=aout ;;
23074    *) objformat=elf ;;
23075    esac
23076  fi
23077  version_type=freebsd-$objformat
23078  case $version_type in
23079    freebsd-elf*)
23080      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23081      need_version=no
23082      need_lib_prefix=no
23083      ;;
23084    freebsd-*)
23085      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23086      need_version=yes
23087      ;;
23088  esac
23089  shlibpath_var=LD_LIBRARY_PATH
23090  case $host_os in
23091  freebsd2*)
23092    shlibpath_overrides_runpath=yes
23093    ;;
23094  freebsd3.[01]* | freebsdelf3.[01]*)
23095    shlibpath_overrides_runpath=yes
23096    hardcode_into_libs=yes
23097    ;;
23098  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23099  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23100    shlibpath_overrides_runpath=no
23101    hardcode_into_libs=yes
23102    ;;
23103  freebsd*) # from 4.6 on
23104    shlibpath_overrides_runpath=yes
23105    hardcode_into_libs=yes
23106    ;;
23107  esac
23108  ;;
23109
23110gnu*)
23111  version_type=linux
23112  need_lib_prefix=no
23113  need_version=no
23114  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23115  soname_spec='${libname}${release}${shared_ext}$major'
23116  shlibpath_var=LD_LIBRARY_PATH
23117  hardcode_into_libs=yes
23118  ;;
23119
23120hpux9* | hpux10* | hpux11*)
23121  # Give a soname corresponding to the major version so that dld.sl refuses to
23122  # link against other versions.
23123  version_type=sunos
23124  need_lib_prefix=no
23125  need_version=no
23126  case $host_cpu in
23127  ia64*)
23128    shrext_cmds='.so'
23129    hardcode_into_libs=yes
23130    dynamic_linker="$host_os dld.so"
23131    shlibpath_var=LD_LIBRARY_PATH
23132    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23133    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23134    soname_spec='${libname}${release}${shared_ext}$major'
23135    if test "X$HPUX_IA64_MODE" = X32; then
23136      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23137    else
23138      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23139    fi
23140    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23141    ;;
23142   hppa*64*)
23143     shrext_cmds='.sl'
23144     hardcode_into_libs=yes
23145     dynamic_linker="$host_os dld.sl"
23146     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23147     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23148     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23149     soname_spec='${libname}${release}${shared_ext}$major'
23150     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23151     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23152     ;;
23153   *)
23154    shrext_cmds='.sl'
23155    dynamic_linker="$host_os dld.sl"
23156    shlibpath_var=SHLIB_PATH
23157    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23158    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23159    soname_spec='${libname}${release}${shared_ext}$major'
23160    ;;
23161  esac
23162  # HP-UX runs *really* slowly unless shared libraries are mode 555.
23163  postinstall_cmds='chmod 555 $lib'
23164  ;;
23165
23166interix3*)
23167  version_type=linux
23168  need_lib_prefix=no
23169  need_version=no
23170  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23171  soname_spec='${libname}${release}${shared_ext}$major'
23172  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23173  shlibpath_var=LD_LIBRARY_PATH
23174  shlibpath_overrides_runpath=no
23175  hardcode_into_libs=yes
23176  ;;
23177
23178irix5* | irix6* | nonstopux*)
23179  case $host_os in
23180    nonstopux*) version_type=nonstopux ;;
23181    *)
23182	if test "$lt_cv_prog_gnu_ld" = yes; then
23183		version_type=linux
23184	else
23185		version_type=irix
23186	fi ;;
23187  esac
23188  need_lib_prefix=no
23189  need_version=no
23190  soname_spec='${libname}${release}${shared_ext}$major'
23191  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23192  case $host_os in
23193  irix5* | nonstopux*)
23194    libsuff= shlibsuff=
23195    ;;
23196  *)
23197    case $LD in # libtool.m4 will add one of these switches to LD
23198    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23199      libsuff= shlibsuff= libmagic=32-bit;;
23200    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23201      libsuff=32 shlibsuff=N32 libmagic=N32;;
23202    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23203      libsuff=64 shlibsuff=64 libmagic=64-bit;;
23204    *) libsuff= shlibsuff= libmagic=never-match;;
23205    esac
23206    ;;
23207  esac
23208  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23209  shlibpath_overrides_runpath=no
23210  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23211  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23212  hardcode_into_libs=yes
23213  ;;
23214
23215# No shared lib support for Linux oldld, aout, or coff.
23216linux*oldld* | linux*aout* | linux*coff*)
23217  dynamic_linker=no
23218  ;;
23219
23220# This must be Linux ELF.
23221linux*)
23222  version_type=linux
23223  need_lib_prefix=no
23224  need_version=no
23225  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23226  soname_spec='${libname}${release}${shared_ext}$major'
23227  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23228  shlibpath_var=LD_LIBRARY_PATH
23229  shlibpath_overrides_runpath=no
23230  # This implies no fast_install, which is unacceptable.
23231  # Some rework will be needed to allow for fast_install
23232  # before this can be enabled.
23233  hardcode_into_libs=yes
23234
23235  # Append ld.so.conf contents to the search path
23236  if test -f /etc/ld.so.conf; then
23237    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' ' '`
23238    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23239  fi
23240
23241  # We used to test for /lib/ld.so.1 and disable shared libraries on
23242  # powerpc, because MkLinux only supported shared libraries with the
23243  # GNU dynamic linker.  Since this was broken with cross compilers,
23244  # most powerpc-linux boxes support dynamic linking these days and
23245  # people can always --disable-shared, the test was removed, and we
23246  # assume the GNU/Linux dynamic linker is in use.
23247  dynamic_linker='GNU/Linux ld.so'
23248  ;;
23249
23250knetbsd*-gnu)
23251  version_type=linux
23252  need_lib_prefix=no
23253  need_version=no
23254  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23255  soname_spec='${libname}${release}${shared_ext}$major'
23256  shlibpath_var=LD_LIBRARY_PATH
23257  shlibpath_overrides_runpath=no
23258  hardcode_into_libs=yes
23259  dynamic_linker='GNU ld.so'
23260  ;;
23261
23262netbsd*)
23263  version_type=sunos
23264  need_lib_prefix=no
23265  need_version=no
23266  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23267    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23268    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23269    dynamic_linker='NetBSD (a.out) ld.so'
23270  else
23271    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23272    soname_spec='${libname}${release}${shared_ext}$major'
23273    dynamic_linker='NetBSD ld.elf_so'
23274  fi
23275  shlibpath_var=LD_LIBRARY_PATH
23276  shlibpath_overrides_runpath=yes
23277  hardcode_into_libs=yes
23278  ;;
23279
23280newsos6)
23281  version_type=linux
23282  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23283  shlibpath_var=LD_LIBRARY_PATH
23284  shlibpath_overrides_runpath=yes
23285  ;;
23286
23287nto-qnx*)
23288  version_type=linux
23289  need_lib_prefix=no
23290  need_version=no
23291  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23292  soname_spec='${libname}${release}${shared_ext}$major'
23293  shlibpath_var=LD_LIBRARY_PATH
23294  shlibpath_overrides_runpath=yes
23295  ;;
23296
23297openbsd*)
23298  version_type=sunos
23299  sys_lib_dlsearch_path_spec="/usr/lib"
23300  need_lib_prefix=no
23301  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23302  case $host_os in
23303    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23304    *)                         need_version=no  ;;
23305  esac
23306  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23307  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23308  shlibpath_var=LD_LIBRARY_PATH
23309  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23310    case $host_os in
23311      openbsd2.[89] | openbsd2.[89].*)
23312	shlibpath_overrides_runpath=no
23313	;;
23314      *)
23315	shlibpath_overrides_runpath=yes
23316	;;
23317      esac
23318  else
23319    shlibpath_overrides_runpath=yes
23320  fi
23321  ;;
23322
23323os2*)
23324  libname_spec='$name'
23325  shrext_cmds=".dll"
23326  need_lib_prefix=no
23327  library_names_spec='$libname${shared_ext} $libname.a'
23328  dynamic_linker='OS/2 ld.exe'
23329  shlibpath_var=LIBPATH
23330  ;;
23331
23332osf3* | osf4* | osf5*)
23333  version_type=osf
23334  need_lib_prefix=no
23335  need_version=no
23336  soname_spec='${libname}${release}${shared_ext}$major'
23337  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23338  shlibpath_var=LD_LIBRARY_PATH
23339  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23340  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23341  ;;
23342
23343solaris*)
23344  version_type=linux
23345  need_lib_prefix=no
23346  need_version=no
23347  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23348  soname_spec='${libname}${release}${shared_ext}$major'
23349  shlibpath_var=LD_LIBRARY_PATH
23350  shlibpath_overrides_runpath=yes
23351  hardcode_into_libs=yes
23352  # ldd complains unless libraries are executable
23353  postinstall_cmds='chmod +x $lib'
23354  ;;
23355
23356sunos4*)
23357  version_type=sunos
23358  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23359  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23360  shlibpath_var=LD_LIBRARY_PATH
23361  shlibpath_overrides_runpath=yes
23362  if test "$with_gnu_ld" = yes; then
23363    need_lib_prefix=no
23364  fi
23365  need_version=yes
23366  ;;
23367
23368sysv4 | sysv4.3*)
23369  version_type=linux
23370  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23371  soname_spec='${libname}${release}${shared_ext}$major'
23372  shlibpath_var=LD_LIBRARY_PATH
23373  case $host_vendor in
23374    sni)
23375      shlibpath_overrides_runpath=no
23376      need_lib_prefix=no
23377      export_dynamic_flag_spec='${wl}-Blargedynsym'
23378      runpath_var=LD_RUN_PATH
23379      ;;
23380    siemens)
23381      need_lib_prefix=no
23382      ;;
23383    motorola)
23384      need_lib_prefix=no
23385      need_version=no
23386      shlibpath_overrides_runpath=no
23387      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23388      ;;
23389  esac
23390  ;;
23391
23392sysv4*MP*)
23393  if test -d /usr/nec ;then
23394    version_type=linux
23395    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23396    soname_spec='$libname${shared_ext}.$major'
23397    shlibpath_var=LD_LIBRARY_PATH
23398  fi
23399  ;;
23400
23401sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23402  version_type=freebsd-elf
23403  need_lib_prefix=no
23404  need_version=no
23405  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23406  soname_spec='${libname}${release}${shared_ext}$major'
23407  shlibpath_var=LD_LIBRARY_PATH
23408  hardcode_into_libs=yes
23409  if test "$with_gnu_ld" = yes; then
23410    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23411    shlibpath_overrides_runpath=no
23412  else
23413    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23414    shlibpath_overrides_runpath=yes
23415    case $host_os in
23416      sco3.2v5*)
23417        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23418	;;
23419    esac
23420  fi
23421  sys_lib_dlsearch_path_spec='/usr/lib'
23422  ;;
23423
23424uts4*)
23425  version_type=linux
23426  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23427  soname_spec='${libname}${release}${shared_ext}$major'
23428  shlibpath_var=LD_LIBRARY_PATH
23429  ;;
23430
23431*)
23432  dynamic_linker=no
23433  ;;
23434esac
23435{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23436echo "${ECHO_T}$dynamic_linker" >&6; }
23437test "$dynamic_linker" = no && can_build_shared=no
23438
23439variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23440if test "$GCC" = yes; then
23441  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23442fi
23443
23444{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23445echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23446hardcode_action_F77=
23447if test -n "$hardcode_libdir_flag_spec_F77" || \
23448   test -n "$runpath_var_F77" || \
23449   test "X$hardcode_automatic_F77" = "Xyes" ; then
23450
23451  # We can hardcode non-existant directories.
23452  if test "$hardcode_direct_F77" != no &&
23453     # If the only mechanism to avoid hardcoding is shlibpath_var, we
23454     # have to relink, otherwise we might link with an installed library
23455     # when we should be linking with a yet-to-be-installed one
23456     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23457     test "$hardcode_minus_L_F77" != no; then
23458    # Linking always hardcodes the temporary library directory.
23459    hardcode_action_F77=relink
23460  else
23461    # We can link without hardcoding, and we can hardcode nonexisting dirs.
23462    hardcode_action_F77=immediate
23463  fi
23464else
23465  # We cannot hardcode anything, or else we can only hardcode existing
23466  # directories.
23467  hardcode_action_F77=unsupported
23468fi
23469{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23470echo "${ECHO_T}$hardcode_action_F77" >&6; }
23471
23472if test "$hardcode_action_F77" = relink; then
23473  # Fast installation is not supported
23474  enable_fast_install=no
23475elif test "$shlibpath_overrides_runpath" = yes ||
23476     test "$enable_shared" = no; then
23477  # Fast installation is not necessary
23478  enable_fast_install=needless
23479fi
23480
23481
23482# The else clause should only fire when bootstrapping the
23483# libtool distribution, otherwise you forgot to ship ltmain.sh
23484# with your package, and you will get complaints that there are
23485# no rules to generate ltmain.sh.
23486if test -f "$ltmain"; then
23487  # See if we are running on zsh, and set the options which allow our commands through
23488  # without removal of \ escapes.
23489  if test -n "${ZSH_VERSION+set}" ; then
23490    setopt NO_GLOB_SUBST
23491  fi
23492  # Now quote all the things that may contain metacharacters while being
23493  # careful not to overquote the AC_SUBSTed values.  We take copies of the
23494  # variables and quote the copies for generation of the libtool script.
23495  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23496    SED SHELL STRIP \
23497    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23498    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23499    deplibs_check_method reload_flag reload_cmds need_locks \
23500    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23501    lt_cv_sys_global_symbol_to_c_name_address \
23502    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23503    old_postinstall_cmds old_postuninstall_cmds \
23504    compiler_F77 \
23505    CC_F77 \
23506    LD_F77 \
23507    lt_prog_compiler_wl_F77 \
23508    lt_prog_compiler_pic_F77 \
23509    lt_prog_compiler_static_F77 \
23510    lt_prog_compiler_no_builtin_flag_F77 \
23511    export_dynamic_flag_spec_F77 \
23512    thread_safe_flag_spec_F77 \
23513    whole_archive_flag_spec_F77 \
23514    enable_shared_with_static_runtimes_F77 \
23515    old_archive_cmds_F77 \
23516    old_archive_from_new_cmds_F77 \
23517    predep_objects_F77 \
23518    postdep_objects_F77 \
23519    predeps_F77 \
23520    postdeps_F77 \
23521    compiler_lib_search_path_F77 \
23522    archive_cmds_F77 \
23523    archive_expsym_cmds_F77 \
23524    postinstall_cmds_F77 \
23525    postuninstall_cmds_F77 \
23526    old_archive_from_expsyms_cmds_F77 \
23527    allow_undefined_flag_F77 \
23528    no_undefined_flag_F77 \
23529    export_symbols_cmds_F77 \
23530    hardcode_libdir_flag_spec_F77 \
23531    hardcode_libdir_flag_spec_ld_F77 \
23532    hardcode_libdir_separator_F77 \
23533    hardcode_automatic_F77 \
23534    module_cmds_F77 \
23535    module_expsym_cmds_F77 \
23536    lt_cv_prog_compiler_c_o_F77 \
23537    exclude_expsyms_F77 \
23538    include_expsyms_F77; do
23539
23540    case $var in
23541    old_archive_cmds_F77 | \
23542    old_archive_from_new_cmds_F77 | \
23543    archive_cmds_F77 | \
23544    archive_expsym_cmds_F77 | \
23545    module_cmds_F77 | \
23546    module_expsym_cmds_F77 | \
23547    old_archive_from_expsyms_cmds_F77 | \
23548    export_symbols_cmds_F77 | \
23549    extract_expsyms_cmds | reload_cmds | finish_cmds | \
23550    postinstall_cmds | postuninstall_cmds | \
23551    old_postinstall_cmds | old_postuninstall_cmds | \
23552    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23553      # Double-quote double-evaled strings.
23554      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23555      ;;
23556    *)
23557      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23558      ;;
23559    esac
23560  done
23561
23562  case $lt_echo in
23563  *'\$0 --fallback-echo"')
23564    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23565    ;;
23566  esac
23567
23568cfgfile="$ofile"
23569
23570  cat <<__EOF__ >> "$cfgfile"
23571# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23572
23573# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23574
23575# Shell to use when invoking shell scripts.
23576SHELL=$lt_SHELL
23577
23578# Whether or not to build shared libraries.
23579build_libtool_libs=$enable_shared
23580
23581# Whether or not to build static libraries.
23582build_old_libs=$enable_static
23583
23584# Whether or not to add -lc for building shared libraries.
23585build_libtool_need_lc=$archive_cmds_need_lc_F77
23586
23587# Whether or not to disallow shared libs when runtime libs are static
23588allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23589
23590# Whether or not to optimize for fast installation.
23591fast_install=$enable_fast_install
23592
23593# The host system.
23594host_alias=$host_alias
23595host=$host
23596host_os=$host_os
23597
23598# The build system.
23599build_alias=$build_alias
23600build=$build
23601build_os=$build_os
23602
23603# An echo program that does not interpret backslashes.
23604echo=$lt_echo
23605
23606# The archiver.
23607AR=$lt_AR
23608AR_FLAGS=$lt_AR_FLAGS
23609
23610# A C compiler.
23611LTCC=$lt_LTCC
23612
23613# LTCC compiler flags.
23614LTCFLAGS=$lt_LTCFLAGS
23615
23616# A language-specific compiler.
23617CC=$lt_compiler_F77
23618
23619# Is the compiler the GNU C compiler?
23620with_gcc=$GCC_F77
23621
23622# An ERE matcher.
23623EGREP=$lt_EGREP
23624
23625# The linker used to build libraries.
23626LD=$lt_LD_F77
23627
23628# Whether we need hard or soft links.
23629LN_S=$lt_LN_S
23630
23631# A BSD-compatible nm program.
23632NM=$lt_NM
23633
23634# A symbol stripping program
23635STRIP=$lt_STRIP
23636
23637# Used to examine libraries when file_magic_cmd begins "file"
23638MAGIC_CMD=$MAGIC_CMD
23639
23640# Used on cygwin: DLL creation program.
23641DLLTOOL="$DLLTOOL"
23642
23643# Used on cygwin: object dumper.
23644OBJDUMP="$OBJDUMP"
23645
23646# Used on cygwin: assembler.
23647AS="$AS"
23648
23649# The name of the directory that contains temporary libtool files.
23650objdir=$objdir
23651
23652# How to create reloadable object files.
23653reload_flag=$lt_reload_flag
23654reload_cmds=$lt_reload_cmds
23655
23656# How to pass a linker flag through the compiler.
23657wl=$lt_lt_prog_compiler_wl_F77
23658
23659# Object file suffix (normally "o").
23660objext="$ac_objext"
23661
23662# Old archive suffix (normally "a").
23663libext="$libext"
23664
23665# Shared library suffix (normally ".so").
23666shrext_cmds='$shrext_cmds'
23667
23668# Executable file suffix (normally "").
23669exeext="$exeext"
23670
23671# Additional compiler flags for building library objects.
23672pic_flag=$lt_lt_prog_compiler_pic_F77
23673pic_mode=$pic_mode
23674
23675# What is the maximum length of a command?
23676max_cmd_len=$lt_cv_sys_max_cmd_len
23677
23678# Does compiler simultaneously support -c and -o options?
23679compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23680
23681# Must we lock files when doing compilation?
23682need_locks=$lt_need_locks
23683
23684# Do we need the lib prefix for modules?
23685need_lib_prefix=$need_lib_prefix
23686
23687# Do we need a version for libraries?
23688need_version=$need_version
23689
23690# Whether dlopen is supported.
23691dlopen_support=$enable_dlopen
23692
23693# Whether dlopen of programs is supported.
23694dlopen_self=$enable_dlopen_self
23695
23696# Whether dlopen of statically linked programs is supported.
23697dlopen_self_static=$enable_dlopen_self_static
23698
23699# Compiler flag to prevent dynamic linking.
23700link_static_flag=$lt_lt_prog_compiler_static_F77
23701
23702# Compiler flag to turn off builtin functions.
23703no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23704
23705# Compiler flag to allow reflexive dlopens.
23706export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23707
23708# Compiler flag to generate shared objects directly from archives.
23709whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23710
23711# Compiler flag to generate thread-safe objects.
23712thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23713
23714# Library versioning type.
23715version_type=$version_type
23716
23717# Format of library name prefix.
23718libname_spec=$lt_libname_spec
23719
23720# List of archive names.  First name is the real one, the rest are links.
23721# The last name is the one that the linker finds with -lNAME.
23722library_names_spec=$lt_library_names_spec
23723
23724# The coded name of the library, if different from the real name.
23725soname_spec=$lt_soname_spec
23726
23727# Commands used to build and install an old-style archive.
23728RANLIB=$lt_RANLIB
23729old_archive_cmds=$lt_old_archive_cmds_F77
23730old_postinstall_cmds=$lt_old_postinstall_cmds
23731old_postuninstall_cmds=$lt_old_postuninstall_cmds
23732
23733# Create an old-style archive from a shared archive.
23734old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23735
23736# Create a temporary old-style archive to link instead of a shared archive.
23737old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23738
23739# Commands used to build and install a shared archive.
23740archive_cmds=$lt_archive_cmds_F77
23741archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23742postinstall_cmds=$lt_postinstall_cmds
23743postuninstall_cmds=$lt_postuninstall_cmds
23744
23745# Commands used to build a loadable module (assumed same as above if empty)
23746module_cmds=$lt_module_cmds_F77
23747module_expsym_cmds=$lt_module_expsym_cmds_F77
23748
23749# Commands to strip libraries.
23750old_striplib=$lt_old_striplib
23751striplib=$lt_striplib
23752
23753# Dependencies to place before the objects being linked to create a
23754# shared library.
23755predep_objects=$lt_predep_objects_F77
23756
23757# Dependencies to place after the objects being linked to create a
23758# shared library.
23759postdep_objects=$lt_postdep_objects_F77
23760
23761# Dependencies to place before the objects being linked to create a
23762# shared library.
23763predeps=$lt_predeps_F77
23764
23765# Dependencies to place after the objects being linked to create a
23766# shared library.
23767postdeps=$lt_postdeps_F77
23768
23769# The library search path used internally by the compiler when linking
23770# a shared library.
23771compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23772
23773# Method to check whether dependent libraries are shared objects.
23774deplibs_check_method=$lt_deplibs_check_method
23775
23776# Command to use when deplibs_check_method == file_magic.
23777file_magic_cmd=$lt_file_magic_cmd
23778
23779# Flag that allows shared libraries with undefined symbols to be built.
23780allow_undefined_flag=$lt_allow_undefined_flag_F77
23781
23782# Flag that forces no undefined symbols.
23783no_undefined_flag=$lt_no_undefined_flag_F77
23784
23785# Commands used to finish a libtool library installation in a directory.
23786finish_cmds=$lt_finish_cmds
23787
23788# Same as above, but a single script fragment to be evaled but not shown.
23789finish_eval=$lt_finish_eval
23790
23791# Take the output of nm and produce a listing of raw symbols and C names.
23792global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23793
23794# Transform the output of nm in a proper C declaration
23795global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23796
23797# Transform the output of nm in a C name address pair
23798global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23799
23800# This is the shared library runtime path variable.
23801runpath_var=$runpath_var
23802
23803# This is the shared library path variable.
23804shlibpath_var=$shlibpath_var
23805
23806# Is shlibpath searched before the hard-coded library search path?
23807shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23808
23809# How to hardcode a shared library path into an executable.
23810hardcode_action=$hardcode_action_F77
23811
23812# Whether we should hardcode library paths into libraries.
23813hardcode_into_libs=$hardcode_into_libs
23814
23815# Flag to hardcode \$libdir into a binary during linking.
23816# This must work even if \$libdir does not exist.
23817hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23818
23819# If ld is used when linking, flag to hardcode \$libdir into
23820# a binary during linking. This must work even if \$libdir does
23821# not exist.
23822hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23823
23824# Whether we need a single -rpath flag with a separated argument.
23825hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23826
23827# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23828# resulting binary.
23829hardcode_direct=$hardcode_direct_F77
23830
23831# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23832# resulting binary.
23833hardcode_minus_L=$hardcode_minus_L_F77
23834
23835# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23836# the resulting binary.
23837hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23838
23839# Set to yes if building a shared library automatically hardcodes DIR into the library
23840# and all subsequent libraries and executables linked against it.
23841hardcode_automatic=$hardcode_automatic_F77
23842
23843# Variables whose values should be saved in libtool wrapper scripts and
23844# restored at relink time.
23845variables_saved_for_relink="$variables_saved_for_relink"
23846
23847# Whether libtool must link a program against all its dependency libraries.
23848link_all_deplibs=$link_all_deplibs_F77
23849
23850# Compile-time system search path for libraries
23851sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23852
23853# Run-time system search path for libraries
23854sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23855
23856# Fix the shell variable \$srcfile for the compiler.
23857fix_srcfile_path="$fix_srcfile_path_F77"
23858
23859# Set to yes if exported symbols are required.
23860always_export_symbols=$always_export_symbols_F77
23861
23862# The commands to list exported symbols.
23863export_symbols_cmds=$lt_export_symbols_cmds_F77
23864
23865# The commands to extract the exported symbol list from a shared archive.
23866extract_expsyms_cmds=$lt_extract_expsyms_cmds
23867
23868# Symbols that should not be listed in the preloaded symbols.
23869exclude_expsyms=$lt_exclude_expsyms_F77
23870
23871# Symbols that must always be exported.
23872include_expsyms=$lt_include_expsyms_F77
23873
23874# ### END LIBTOOL TAG CONFIG: $tagname
23875
23876__EOF__
23877
23878
23879else
23880  # If there is no Makefile yet, we rely on a make rule to execute
23881  # `config.status --recheck' to rerun these tests and create the
23882  # libtool script then.
23883  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23884  if test -f "$ltmain_in"; then
23885    test -f Makefile && make "$ltmain"
23886  fi
23887fi
23888
23889
23890ac_ext=c
23891ac_cpp='$CPP $CPPFLAGS'
23892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23894ac_compiler_gnu=$ac_cv_c_compiler_gnu
23895
23896CC="$lt_save_CC"
23897
23898	else
23899	  tagname=""
23900	fi
23901	;;
23902
23903      GCJ)
23904	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23905	  ac_ext=c
23906ac_cpp='$CPP $CPPFLAGS'
23907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23909ac_compiler_gnu=$ac_cv_c_compiler_gnu
23910
23911
23912# Source file extension for Java test sources.
23913ac_ext=java
23914
23915# Object file extension for compiled Java test sources.
23916objext=o
23917objext_GCJ=$objext
23918
23919# Code to be used in simple compile tests
23920lt_simple_compile_test_code="class foo {}\n"
23921
23922# Code to be used in simple link tests
23923lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23924
23925# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23926
23927# If no C compiler was specified, use CC.
23928LTCC=${LTCC-"$CC"}
23929
23930# If no C compiler flags were specified, use CFLAGS.
23931LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23932
23933# Allow CC to be a program name with arguments.
23934compiler=$CC
23935
23936
23937# save warnings/boilerplate of simple test code
23938ac_outfile=conftest.$ac_objext
23939printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23940eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23941_lt_compiler_boilerplate=`cat conftest.err`
23942$rm conftest*
23943
23944ac_outfile=conftest.$ac_objext
23945printf "$lt_simple_link_test_code" >conftest.$ac_ext
23946eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23947_lt_linker_boilerplate=`cat conftest.err`
23948$rm conftest*
23949
23950
23951# Allow CC to be a program name with arguments.
23952lt_save_CC="$CC"
23953CC=${GCJ-"gcj"}
23954compiler=$CC
23955compiler_GCJ=$CC
23956for cc_temp in $compiler""; do
23957  case $cc_temp in
23958    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23959    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23960    \-*) ;;
23961    *) break;;
23962  esac
23963done
23964cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23965
23966
23967# GCJ did not exist at the time GCC didn't implicitly link libc in.
23968archive_cmds_need_lc_GCJ=no
23969
23970old_archive_cmds_GCJ=$old_archive_cmds
23971
23972
23973lt_prog_compiler_no_builtin_flag_GCJ=
23974
23975if test "$GCC" = yes; then
23976  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23977
23978
23979{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23980echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23981if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23982  echo $ECHO_N "(cached) $ECHO_C" >&6
23983else
23984  lt_cv_prog_compiler_rtti_exceptions=no
23985  ac_outfile=conftest.$ac_objext
23986   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23987   lt_compiler_flag="-fno-rtti -fno-exceptions"
23988   # Insert the option either (1) after the last *FLAGS variable, or
23989   # (2) before a word containing "conftest.", or (3) at the end.
23990   # Note that $ac_compile itself does not contain backslashes and begins
23991   # with a dollar sign (not a hyphen), so the echo should work correctly.
23992   # The option is referenced via a variable to avoid confusing sed.
23993   lt_compile=`echo "$ac_compile" | $SED \
23994   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23995   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23996   -e 's:$: $lt_compiler_flag:'`
23997   (eval echo "\"\$as_me:23997: $lt_compile\"" >&5)
23998   (eval "$lt_compile" 2>conftest.err)
23999   ac_status=$?
24000   cat conftest.err >&5
24001   echo "$as_me:24001: \$? = $ac_status" >&5
24002   if (exit $ac_status) && test -s "$ac_outfile"; then
24003     # The compiler can only warn and ignore the option if not recognized
24004     # So say no if there are warnings other than the usual output.
24005     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24006     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24007     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24008       lt_cv_prog_compiler_rtti_exceptions=yes
24009     fi
24010   fi
24011   $rm conftest*
24012
24013fi
24014{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24015echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24016
24017if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24018    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24019else
24020    :
24021fi
24022
24023fi
24024
24025lt_prog_compiler_wl_GCJ=
24026lt_prog_compiler_pic_GCJ=
24027lt_prog_compiler_static_GCJ=
24028
24029{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24030echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24031
24032  if test "$GCC" = yes; then
24033    lt_prog_compiler_wl_GCJ='-Wl,'
24034    lt_prog_compiler_static_GCJ='-static'
24035
24036    case $host_os in
24037      aix*)
24038      # All AIX code is PIC.
24039      if test "$host_cpu" = ia64; then
24040	# AIX 5 now supports IA64 processor
24041	lt_prog_compiler_static_GCJ='-Bstatic'
24042      fi
24043      ;;
24044
24045    amigaos*)
24046      # FIXME: we need at least 68020 code to build shared libraries, but
24047      # adding the `-m68020' flag to GCC prevents building anything better,
24048      # like `-m68040'.
24049      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24050      ;;
24051
24052    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24053      # PIC is the default for these OSes.
24054      ;;
24055
24056    mingw* | pw32* | os2*)
24057      # This hack is so that the source file can tell whether it is being
24058      # built for inclusion in a dll (and should export symbols for example).
24059      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24060      ;;
24061
24062    darwin* | rhapsody*)
24063      # PIC is the default on this platform
24064      # Common symbols not allowed in MH_DYLIB files
24065      lt_prog_compiler_pic_GCJ='-fno-common'
24066      ;;
24067
24068    interix3*)
24069      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24070      # Instead, we relocate shared libraries at runtime.
24071      ;;
24072
24073    msdosdjgpp*)
24074      # Just because we use GCC doesn't mean we suddenly get shared libraries
24075      # on systems that don't support them.
24076      lt_prog_compiler_can_build_shared_GCJ=no
24077      enable_shared=no
24078      ;;
24079
24080    sysv4*MP*)
24081      if test -d /usr/nec; then
24082	lt_prog_compiler_pic_GCJ=-Kconform_pic
24083      fi
24084      ;;
24085
24086    hpux*)
24087      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24088      # not for PA HP-UX.
24089      case $host_cpu in
24090      hppa*64*|ia64*)
24091	# +Z the default
24092	;;
24093      *)
24094	lt_prog_compiler_pic_GCJ='-fPIC'
24095	;;
24096      esac
24097      ;;
24098
24099    *)
24100      lt_prog_compiler_pic_GCJ='-fPIC'
24101      ;;
24102    esac
24103  else
24104    # PORTME Check for flag to pass linker flags through the system compiler.
24105    case $host_os in
24106    aix*)
24107      lt_prog_compiler_wl_GCJ='-Wl,'
24108      if test "$host_cpu" = ia64; then
24109	# AIX 5 now supports IA64 processor
24110	lt_prog_compiler_static_GCJ='-Bstatic'
24111      else
24112	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24113      fi
24114      ;;
24115      darwin*)
24116        # PIC is the default on this platform
24117        # Common symbols not allowed in MH_DYLIB files
24118       case $cc_basename in
24119         xlc*)
24120         lt_prog_compiler_pic_GCJ='-qnocommon'
24121         lt_prog_compiler_wl_GCJ='-Wl,'
24122         ;;
24123       esac
24124       ;;
24125
24126    mingw* | pw32* | os2*)
24127      # This hack is so that the source file can tell whether it is being
24128      # built for inclusion in a dll (and should export symbols for example).
24129      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24130      ;;
24131
24132    hpux9* | hpux10* | hpux11*)
24133      lt_prog_compiler_wl_GCJ='-Wl,'
24134      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24135      # not for PA HP-UX.
24136      case $host_cpu in
24137      hppa*64*|ia64*)
24138	# +Z the default
24139	;;
24140      *)
24141	lt_prog_compiler_pic_GCJ='+Z'
24142	;;
24143      esac
24144      # Is there a better lt_prog_compiler_static that works with the bundled CC?
24145      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24146      ;;
24147
24148    irix5* | irix6* | nonstopux*)
24149      lt_prog_compiler_wl_GCJ='-Wl,'
24150      # PIC (with -KPIC) is the default.
24151      lt_prog_compiler_static_GCJ='-non_shared'
24152      ;;
24153
24154    newsos6)
24155      lt_prog_compiler_pic_GCJ='-KPIC'
24156      lt_prog_compiler_static_GCJ='-Bstatic'
24157      ;;
24158
24159    linux*)
24160      case $cc_basename in
24161      icc* | ecc*)
24162	lt_prog_compiler_wl_GCJ='-Wl,'
24163	lt_prog_compiler_pic_GCJ='-KPIC'
24164	lt_prog_compiler_static_GCJ='-static'
24165        ;;
24166      pgcc* | pgf77* | pgf90* | pgf95*)
24167        # Portland Group compilers (*not* the Pentium gcc compiler,
24168	# which looks to be a dead project)
24169	lt_prog_compiler_wl_GCJ='-Wl,'
24170	lt_prog_compiler_pic_GCJ='-fpic'
24171	lt_prog_compiler_static_GCJ='-Bstatic'
24172        ;;
24173      ccc*)
24174        lt_prog_compiler_wl_GCJ='-Wl,'
24175        # All Alpha code is PIC.
24176        lt_prog_compiler_static_GCJ='-non_shared'
24177        ;;
24178      esac
24179      ;;
24180
24181    osf3* | osf4* | osf5*)
24182      lt_prog_compiler_wl_GCJ='-Wl,'
24183      # All OSF/1 code is PIC.
24184      lt_prog_compiler_static_GCJ='-non_shared'
24185      ;;
24186
24187    solaris*)
24188      lt_prog_compiler_pic_GCJ='-KPIC'
24189      lt_prog_compiler_static_GCJ='-Bstatic'
24190      case $cc_basename in
24191      f77* | f90* | f95*)
24192	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24193      *)
24194	lt_prog_compiler_wl_GCJ='-Wl,';;
24195      esac
24196      ;;
24197
24198    sunos4*)
24199      lt_prog_compiler_wl_GCJ='-Qoption ld '
24200      lt_prog_compiler_pic_GCJ='-PIC'
24201      lt_prog_compiler_static_GCJ='-Bstatic'
24202      ;;
24203
24204    sysv4 | sysv4.2uw2* | sysv4.3*)
24205      lt_prog_compiler_wl_GCJ='-Wl,'
24206      lt_prog_compiler_pic_GCJ='-KPIC'
24207      lt_prog_compiler_static_GCJ='-Bstatic'
24208      ;;
24209
24210    sysv4*MP*)
24211      if test -d /usr/nec ;then
24212	lt_prog_compiler_pic_GCJ='-Kconform_pic'
24213	lt_prog_compiler_static_GCJ='-Bstatic'
24214      fi
24215      ;;
24216
24217    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24218      lt_prog_compiler_wl_GCJ='-Wl,'
24219      lt_prog_compiler_pic_GCJ='-KPIC'
24220      lt_prog_compiler_static_GCJ='-Bstatic'
24221      ;;
24222
24223    unicos*)
24224      lt_prog_compiler_wl_GCJ='-Wl,'
24225      lt_prog_compiler_can_build_shared_GCJ=no
24226      ;;
24227
24228    uts4*)
24229      lt_prog_compiler_pic_GCJ='-pic'
24230      lt_prog_compiler_static_GCJ='-Bstatic'
24231      ;;
24232
24233    *)
24234      lt_prog_compiler_can_build_shared_GCJ=no
24235      ;;
24236    esac
24237  fi
24238
24239{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24240echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24241
24242#
24243# Check to make sure the PIC flag actually works.
24244#
24245if test -n "$lt_prog_compiler_pic_GCJ"; then
24246
24247{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24248echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24249if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24250  echo $ECHO_N "(cached) $ECHO_C" >&6
24251else
24252  lt_prog_compiler_pic_works_GCJ=no
24253  ac_outfile=conftest.$ac_objext
24254   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24255   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24256   # Insert the option either (1) after the last *FLAGS variable, or
24257   # (2) before a word containing "conftest.", or (3) at the end.
24258   # Note that $ac_compile itself does not contain backslashes and begins
24259   # with a dollar sign (not a hyphen), so the echo should work correctly.
24260   # The option is referenced via a variable to avoid confusing sed.
24261   lt_compile=`echo "$ac_compile" | $SED \
24262   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24263   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24264   -e 's:$: $lt_compiler_flag:'`
24265   (eval echo "\"\$as_me:24265: $lt_compile\"" >&5)
24266   (eval "$lt_compile" 2>conftest.err)
24267   ac_status=$?
24268   cat conftest.err >&5
24269   echo "$as_me:24269: \$? = $ac_status" >&5
24270   if (exit $ac_status) && test -s "$ac_outfile"; then
24271     # The compiler can only warn and ignore the option if not recognized
24272     # So say no if there are warnings other than the usual output.
24273     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24274     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24275     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24276       lt_prog_compiler_pic_works_GCJ=yes
24277     fi
24278   fi
24279   $rm conftest*
24280
24281fi
24282{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24283echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24284
24285if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24286    case $lt_prog_compiler_pic_GCJ in
24287     "" | " "*) ;;
24288     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24289     esac
24290else
24291    lt_prog_compiler_pic_GCJ=
24292     lt_prog_compiler_can_build_shared_GCJ=no
24293fi
24294
24295fi
24296case $host_os in
24297  # For platforms which do not support PIC, -DPIC is meaningless:
24298  *djgpp*)
24299    lt_prog_compiler_pic_GCJ=
24300    ;;
24301  *)
24302    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24303    ;;
24304esac
24305
24306#
24307# Check to make sure the static flag actually works.
24308#
24309wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24310{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24311echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24312if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24313  echo $ECHO_N "(cached) $ECHO_C" >&6
24314else
24315  lt_prog_compiler_static_works_GCJ=no
24316   save_LDFLAGS="$LDFLAGS"
24317   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24318   printf "$lt_simple_link_test_code" > conftest.$ac_ext
24319   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24320     # The linker can only warn and ignore the option if not recognized
24321     # So say no if there are warnings
24322     if test -s conftest.err; then
24323       # Append any errors to the config.log.
24324       cat conftest.err 1>&5
24325       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24326       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24327       if diff conftest.exp conftest.er2 >/dev/null; then
24328         lt_prog_compiler_static_works_GCJ=yes
24329       fi
24330     else
24331       lt_prog_compiler_static_works_GCJ=yes
24332     fi
24333   fi
24334   $rm conftest*
24335   LDFLAGS="$save_LDFLAGS"
24336
24337fi
24338{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24339echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24340
24341if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24342    :
24343else
24344    lt_prog_compiler_static_GCJ=
24345fi
24346
24347
24348{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24349echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24350if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24351  echo $ECHO_N "(cached) $ECHO_C" >&6
24352else
24353  lt_cv_prog_compiler_c_o_GCJ=no
24354   $rm -r conftest 2>/dev/null
24355   mkdir conftest
24356   cd conftest
24357   mkdir out
24358   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24359
24360   lt_compiler_flag="-o out/conftest2.$ac_objext"
24361   # Insert the option either (1) after the last *FLAGS variable, or
24362   # (2) before a word containing "conftest.", or (3) at the end.
24363   # Note that $ac_compile itself does not contain backslashes and begins
24364   # with a dollar sign (not a hyphen), so the echo should work correctly.
24365   lt_compile=`echo "$ac_compile" | $SED \
24366   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24367   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24368   -e 's:$: $lt_compiler_flag:'`
24369   (eval echo "\"\$as_me:24369: $lt_compile\"" >&5)
24370   (eval "$lt_compile" 2>out/conftest.err)
24371   ac_status=$?
24372   cat out/conftest.err >&5
24373   echo "$as_me:24373: \$? = $ac_status" >&5
24374   if (exit $ac_status) && test -s out/conftest2.$ac_objext
24375   then
24376     # The compiler can only warn and ignore the option if not recognized
24377     # So say no if there are warnings
24378     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24379     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24380     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24381       lt_cv_prog_compiler_c_o_GCJ=yes
24382     fi
24383   fi
24384   chmod u+w . 2>&5
24385   $rm conftest*
24386   # SGI C++ compiler will create directory out/ii_files/ for
24387   # template instantiation
24388   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24389   $rm out/* && rmdir out
24390   cd ..
24391   rmdir conftest
24392   $rm conftest*
24393
24394fi
24395{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24396echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24397
24398
24399hard_links="nottested"
24400if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24401  # do not overwrite the value of need_locks provided by the user
24402  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24403echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24404  hard_links=yes
24405  $rm conftest*
24406  ln conftest.a conftest.b 2>/dev/null && hard_links=no
24407  touch conftest.a
24408  ln conftest.a conftest.b 2>&5 || hard_links=no
24409  ln conftest.a conftest.b 2>/dev/null && hard_links=no
24410  { echo "$as_me:$LINENO: result: $hard_links" >&5
24411echo "${ECHO_T}$hard_links" >&6; }
24412  if test "$hard_links" = no; then
24413    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24414echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24415    need_locks=warn
24416  fi
24417else
24418  need_locks=no
24419fi
24420
24421{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24422echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24423
24424  runpath_var=
24425  allow_undefined_flag_GCJ=
24426  enable_shared_with_static_runtimes_GCJ=no
24427  archive_cmds_GCJ=
24428  archive_expsym_cmds_GCJ=
24429  old_archive_From_new_cmds_GCJ=
24430  old_archive_from_expsyms_cmds_GCJ=
24431  export_dynamic_flag_spec_GCJ=
24432  whole_archive_flag_spec_GCJ=
24433  thread_safe_flag_spec_GCJ=
24434  hardcode_libdir_flag_spec_GCJ=
24435  hardcode_libdir_flag_spec_ld_GCJ=
24436  hardcode_libdir_separator_GCJ=
24437  hardcode_direct_GCJ=no
24438  hardcode_minus_L_GCJ=no
24439  hardcode_shlibpath_var_GCJ=unsupported
24440  link_all_deplibs_GCJ=unknown
24441  hardcode_automatic_GCJ=no
24442  module_cmds_GCJ=
24443  module_expsym_cmds_GCJ=
24444  always_export_symbols_GCJ=no
24445  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24446  # include_expsyms should be a list of space-separated symbols to be *always*
24447  # included in the symbol list
24448  include_expsyms_GCJ=
24449  # exclude_expsyms can be an extended regexp of symbols to exclude
24450  # it will be wrapped by ` (' and `)$', so one must not match beginning or
24451  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24452  # as well as any symbol that contains `d'.
24453  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24454  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24455  # platforms (ab)use it in PIC code, but their linkers get confused if
24456  # the symbol is explicitly referenced.  Since portable code cannot
24457  # rely on this symbol name, it's probably fine to never include it in
24458  # preloaded symbol tables.
24459  extract_expsyms_cmds=
24460  # Just being paranoid about ensuring that cc_basename is set.
24461  for cc_temp in $compiler""; do
24462  case $cc_temp in
24463    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24464    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24465    \-*) ;;
24466    *) break;;
24467  esac
24468done
24469cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24470
24471  case $host_os in
24472  cygwin* | mingw* | pw32*)
24473    # FIXME: the MSVC++ port hasn't been tested in a loooong time
24474    # When not using gcc, we currently assume that we are using
24475    # Microsoft Visual C++.
24476    if test "$GCC" != yes; then
24477      with_gnu_ld=no
24478    fi
24479    ;;
24480  interix*)
24481    # we just hope/assume this is gcc and not c89 (= MSVC++)
24482    with_gnu_ld=yes
24483    ;;
24484  openbsd*)
24485    with_gnu_ld=no
24486    ;;
24487  esac
24488
24489  ld_shlibs_GCJ=yes
24490  if test "$with_gnu_ld" = yes; then
24491    # If archive_cmds runs LD, not CC, wlarc should be empty
24492    wlarc='${wl}'
24493
24494    # Set some defaults for GNU ld with shared library support. These
24495    # are reset later if shared libraries are not supported. Putting them
24496    # here allows them to be overridden if necessary.
24497    runpath_var=LD_RUN_PATH
24498    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24499    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24500    # ancient GNU ld didn't support --whole-archive et. al.
24501    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24502	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24503      else
24504  	whole_archive_flag_spec_GCJ=
24505    fi
24506    supports_anon_versioning=no
24507    case `$LD -v 2>/dev/null` in
24508      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24509      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24510      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24511      *\ 2.11.*) ;; # other 2.11 versions
24512      *) supports_anon_versioning=yes ;;
24513    esac
24514
24515    # See if GNU ld supports shared libraries.
24516    case $host_os in
24517    aix3* | aix4* | aix5*)
24518      # On AIX/PPC, the GNU linker is very broken
24519      if test "$host_cpu" != ia64; then
24520	ld_shlibs_GCJ=no
24521	cat <<EOF 1>&2
24522
24523*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24524*** to be unable to reliably create shared libraries on AIX.
24525*** Therefore, libtool is disabling shared libraries support.  If you
24526*** really care for shared libraries, you may want to modify your PATH
24527*** so that a non-GNU linker is found, and then restart.
24528
24529EOF
24530      fi
24531      ;;
24532
24533    amigaos*)
24534      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)'
24535      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24536      hardcode_minus_L_GCJ=yes
24537
24538      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24539      # that the semantics of dynamic libraries on AmigaOS, at least up
24540      # to version 4, is to share data among multiple programs linked
24541      # with the same dynamic library.  Since this doesn't match the
24542      # behavior of shared libraries on other platforms, we can't use
24543      # them.
24544      ld_shlibs_GCJ=no
24545      ;;
24546
24547    beos*)
24548      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24549	allow_undefined_flag_GCJ=unsupported
24550	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24551	# support --undefined.  This deserves some investigation.  FIXME
24552	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24553      else
24554	ld_shlibs_GCJ=no
24555      fi
24556      ;;
24557
24558    cygwin* | mingw* | pw32*)
24559      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24560      # as there is no search path for DLLs.
24561      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24562      allow_undefined_flag_GCJ=unsupported
24563      always_export_symbols_GCJ=no
24564      enable_shared_with_static_runtimes_GCJ=yes
24565      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24566
24567      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24568        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24569	# If the export-symbols file already is a .def file (1st line
24570	# is EXPORTS), use it as is; otherwise, prepend...
24571	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24572	  cp $export_symbols $output_objdir/$soname.def;
24573	else
24574	  echo EXPORTS > $output_objdir/$soname.def;
24575	  cat $export_symbols >> $output_objdir/$soname.def;
24576	fi~
24577	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24578      else
24579	ld_shlibs_GCJ=no
24580      fi
24581      ;;
24582
24583    interix3*)
24584      hardcode_direct_GCJ=no
24585      hardcode_shlibpath_var_GCJ=no
24586      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24587      export_dynamic_flag_spec_GCJ='${wl}-E'
24588      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24589      # Instead, shared libraries are loaded at an image base (0x10000000 by
24590      # default) and relocated if they conflict, which is a slow very memory
24591      # consuming and fragmenting process.  To avoid this, we pick a random,
24592      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24593      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24594      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'
24595      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'
24596      ;;
24597
24598    linux*)
24599      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24600	tmp_addflag=
24601	case $cc_basename,$host_cpu in
24602	pgcc*)				# Portland Group C compiler
24603	  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'
24604	  tmp_addflag=' $pic_flag'
24605	  ;;
24606	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
24607	  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'
24608	  tmp_addflag=' $pic_flag -Mnomain' ;;
24609	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
24610	  tmp_addflag=' -i_dynamic' ;;
24611	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
24612	  tmp_addflag=' -i_dynamic -nofor_main' ;;
24613	ifc* | ifort*)			# Intel Fortran compiler
24614	  tmp_addflag=' -nofor_main' ;;
24615	esac
24616	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24617
24618	if test $supports_anon_versioning = yes; then
24619	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24620  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24621  $echo "local: *; };" >> $output_objdir/$libname.ver~
24622	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24623	fi
24624      else
24625	ld_shlibs_GCJ=no
24626      fi
24627      ;;
24628
24629    netbsd*)
24630      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24631	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24632	wlarc=
24633      else
24634	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24635	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24636      fi
24637      ;;
24638
24639    solaris*)
24640      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24641	ld_shlibs_GCJ=no
24642	cat <<EOF 1>&2
24643
24644*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24645*** create shared libraries on Solaris systems.  Therefore, libtool
24646*** is disabling shared libraries support.  We urge you to upgrade GNU
24647*** binutils to release 2.9.1 or newer.  Another option is to modify
24648*** your PATH or compiler configuration so that the native linker is
24649*** used, and then restart.
24650
24651EOF
24652      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24653	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24654	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24655      else
24656	ld_shlibs_GCJ=no
24657      fi
24658      ;;
24659
24660    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24661      case `$LD -v 2>&1` in
24662        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24663	ld_shlibs_GCJ=no
24664	cat <<_LT_EOF 1>&2
24665
24666*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24667*** reliably create shared libraries on SCO systems.  Therefore, libtool
24668*** is disabling shared libraries support.  We urge you to upgrade GNU
24669*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24670*** your PATH or compiler configuration so that the native linker is
24671*** used, and then restart.
24672
24673_LT_EOF
24674	;;
24675	*)
24676	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24677	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24678	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24679	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24680	  else
24681	    ld_shlibs_GCJ=no
24682	  fi
24683	;;
24684      esac
24685      ;;
24686
24687    sunos4*)
24688      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24689      wlarc=
24690      hardcode_direct_GCJ=yes
24691      hardcode_shlibpath_var_GCJ=no
24692      ;;
24693
24694    *)
24695      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24696	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24697	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24698      else
24699	ld_shlibs_GCJ=no
24700      fi
24701      ;;
24702    esac
24703
24704    if test "$ld_shlibs_GCJ" = no; then
24705      runpath_var=
24706      hardcode_libdir_flag_spec_GCJ=
24707      export_dynamic_flag_spec_GCJ=
24708      whole_archive_flag_spec_GCJ=
24709    fi
24710  else
24711    # PORTME fill in a description of your system's linker (not GNU ld)
24712    case $host_os in
24713    aix3*)
24714      allow_undefined_flag_GCJ=unsupported
24715      always_export_symbols_GCJ=yes
24716      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'
24717      # Note: this linker hardcodes the directories in LIBPATH if there
24718      # are no directories specified by -L.
24719      hardcode_minus_L_GCJ=yes
24720      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24721	# Neither direct hardcoding nor static linking is supported with a
24722	# broken collect2.
24723	hardcode_direct_GCJ=unsupported
24724      fi
24725      ;;
24726
24727    aix4* | aix5*)
24728      if test "$host_cpu" = ia64; then
24729	# On IA64, the linker does run time linking by default, so we don't
24730	# have to do anything special.
24731	aix_use_runtimelinking=no
24732	exp_sym_flag='-Bexport'
24733	no_entry_flag=""
24734      else
24735	# If we're using GNU nm, then we don't want the "-C" option.
24736	# -C means demangle to AIX nm, but means don't demangle with GNU nm
24737	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24738	  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'
24739	else
24740	  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'
24741	fi
24742	aix_use_runtimelinking=no
24743
24744	# Test if we are trying to use run time linking or normal
24745	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
24746	# need to do runtime linking.
24747	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24748	  for ld_flag in $LDFLAGS; do
24749  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24750  	    aix_use_runtimelinking=yes
24751  	    break
24752  	  fi
24753	  done
24754	  ;;
24755	esac
24756
24757	exp_sym_flag='-bexport'
24758	no_entry_flag='-bnoentry'
24759      fi
24760
24761      # When large executables or shared objects are built, AIX ld can
24762      # have problems creating the table of contents.  If linking a library
24763      # or program results in "error TOC overflow" add -mminimal-toc to
24764      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24765      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24766
24767      archive_cmds_GCJ=''
24768      hardcode_direct_GCJ=yes
24769      hardcode_libdir_separator_GCJ=':'
24770      link_all_deplibs_GCJ=yes
24771
24772      if test "$GCC" = yes; then
24773	case $host_os in aix4.[012]|aix4.[012].*)
24774	# We only want to do this on AIX 4.2 and lower, the check
24775	# below for broken collect2 doesn't work under 4.3+
24776	  collect2name=`${CC} -print-prog-name=collect2`
24777	  if test -f "$collect2name" && \
24778  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
24779	  then
24780  	  # We have reworked collect2
24781  	  hardcode_direct_GCJ=yes
24782	  else
24783  	  # We have old collect2
24784  	  hardcode_direct_GCJ=unsupported
24785  	  # It fails to find uninstalled libraries when the uninstalled
24786  	  # path is not listed in the libpath.  Setting hardcode_minus_L
24787  	  # to unsupported forces relinking
24788  	  hardcode_minus_L_GCJ=yes
24789  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
24790  	  hardcode_libdir_separator_GCJ=
24791	  fi
24792	  ;;
24793	esac
24794	shared_flag='-shared'
24795	if test "$aix_use_runtimelinking" = yes; then
24796	  shared_flag="$shared_flag "'${wl}-G'
24797	fi
24798      else
24799	# not using gcc
24800	if test "$host_cpu" = ia64; then
24801  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24802  	# chokes on -Wl,-G. The following line is correct:
24803	  shared_flag='-G'
24804	else
24805	  if test "$aix_use_runtimelinking" = yes; then
24806	    shared_flag='${wl}-G'
24807	  else
24808	    shared_flag='${wl}-bM:SRE'
24809	  fi
24810	fi
24811      fi
24812
24813      # It seems that -bexpall does not export symbols beginning with
24814      # underscore (_), so it is better to generate a list of symbols to export.
24815      always_export_symbols_GCJ=yes
24816      if test "$aix_use_runtimelinking" = yes; then
24817	# Warning - without using the other runtime loading flags (-brtl),
24818	# -berok will link without error, but may produce a broken library.
24819	allow_undefined_flag_GCJ='-berok'
24820       # Determine the default libpath from the value encoded in an empty executable.
24821       cat >conftest.$ac_ext <<_ACEOF
24822/* confdefs.h.  */
24823_ACEOF
24824cat confdefs.h >>conftest.$ac_ext
24825cat >>conftest.$ac_ext <<_ACEOF
24826/* end confdefs.h.  */
24827
24828int
24829main ()
24830{
24831
24832  ;
24833  return 0;
24834}
24835_ACEOF
24836rm -f conftest.$ac_objext conftest$ac_exeext
24837if { (ac_try="$ac_link"
24838case "(($ac_try" in
24839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24840  *) ac_try_echo=$ac_try;;
24841esac
24842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24843  (eval "$ac_link") 2>conftest.er1
24844  ac_status=$?
24845  grep -v '^ *+' conftest.er1 >conftest.err
24846  rm -f conftest.er1
24847  cat conftest.err >&5
24848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24849  (exit $ac_status); } &&
24850	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24851  { (case "(($ac_try" in
24852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24853  *) ac_try_echo=$ac_try;;
24854esac
24855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24856  (eval "$ac_try") 2>&5
24857  ac_status=$?
24858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859  (exit $ac_status); }; } &&
24860	 { ac_try='test -s conftest$ac_exeext'
24861  { (case "(($ac_try" in
24862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24863  *) ac_try_echo=$ac_try;;
24864esac
24865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24866  (eval "$ac_try") 2>&5
24867  ac_status=$?
24868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869  (exit $ac_status); }; }; then
24870
24871aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24872}'`
24873# Check for a 64-bit object if we didn't find anything.
24874if 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; }
24875}'`; fi
24876else
24877  echo "$as_me: failed program was:" >&5
24878sed 's/^/| /' conftest.$ac_ext >&5
24879
24880
24881fi
24882
24883rm -f core conftest.err conftest.$ac_objext \
24884      conftest$ac_exeext conftest.$ac_ext
24885if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24886
24887       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24888	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"
24889       else
24890	if test "$host_cpu" = ia64; then
24891	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24892	  allow_undefined_flag_GCJ="-z nodefs"
24893	  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"
24894	else
24895	 # Determine the default libpath from the value encoded in an empty executable.
24896	 cat >conftest.$ac_ext <<_ACEOF
24897/* confdefs.h.  */
24898_ACEOF
24899cat confdefs.h >>conftest.$ac_ext
24900cat >>conftest.$ac_ext <<_ACEOF
24901/* end confdefs.h.  */
24902
24903int
24904main ()
24905{
24906
24907  ;
24908  return 0;
24909}
24910_ACEOF
24911rm -f conftest.$ac_objext conftest$ac_exeext
24912if { (ac_try="$ac_link"
24913case "(($ac_try" in
24914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24915  *) ac_try_echo=$ac_try;;
24916esac
24917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24918  (eval "$ac_link") 2>conftest.er1
24919  ac_status=$?
24920  grep -v '^ *+' conftest.er1 >conftest.err
24921  rm -f conftest.er1
24922  cat conftest.err >&5
24923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924  (exit $ac_status); } &&
24925	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24926  { (case "(($ac_try" in
24927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24928  *) ac_try_echo=$ac_try;;
24929esac
24930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24931  (eval "$ac_try") 2>&5
24932  ac_status=$?
24933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934  (exit $ac_status); }; } &&
24935	 { ac_try='test -s conftest$ac_exeext'
24936  { (case "(($ac_try" in
24937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24938  *) ac_try_echo=$ac_try;;
24939esac
24940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24941  (eval "$ac_try") 2>&5
24942  ac_status=$?
24943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944  (exit $ac_status); }; }; then
24945
24946aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24947}'`
24948# Check for a 64-bit object if we didn't find anything.
24949if 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; }
24950}'`; fi
24951else
24952  echo "$as_me: failed program was:" >&5
24953sed 's/^/| /' conftest.$ac_ext >&5
24954
24955
24956fi
24957
24958rm -f core conftest.err conftest.$ac_objext \
24959      conftest$ac_exeext conftest.$ac_ext
24960if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24961
24962	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24963	  # Warning - without using the other run time loading flags,
24964	  # -berok will link without error, but may produce a broken library.
24965	  no_undefined_flag_GCJ=' ${wl}-bernotok'
24966	  allow_undefined_flag_GCJ=' ${wl}-berok'
24967	  # Exported symbols can be pulled into shared objects from archives
24968	  whole_archive_flag_spec_GCJ='$convenience'
24969	  archive_cmds_need_lc_GCJ=yes
24970	  # This is similar to how AIX traditionally builds its shared libraries.
24971	  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'
24972	fi
24973      fi
24974      ;;
24975
24976    amigaos*)
24977      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)'
24978      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24979      hardcode_minus_L_GCJ=yes
24980      # see comment about different semantics on the GNU ld section
24981      ld_shlibs_GCJ=no
24982      ;;
24983
24984    bsdi[45]*)
24985      export_dynamic_flag_spec_GCJ=-rdynamic
24986      ;;
24987
24988    cygwin* | mingw* | pw32*)
24989      # When not using gcc, we currently assume that we are using
24990      # Microsoft Visual C++.
24991      # hardcode_libdir_flag_spec is actually meaningless, as there is
24992      # no search path for DLLs.
24993      hardcode_libdir_flag_spec_GCJ=' '
24994      allow_undefined_flag_GCJ=unsupported
24995      # Tell ltmain to make .lib files, not .a files.
24996      libext=lib
24997      # Tell ltmain to make .dll files, not .so files.
24998      shrext_cmds=".dll"
24999      # FIXME: Setting linknames here is a bad hack.
25000      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25001      # The linker will automatically build a .lib file if we build a DLL.
25002      old_archive_From_new_cmds_GCJ='true'
25003      # FIXME: Should let the user specify the lib program.
25004      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25005      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25006      enable_shared_with_static_runtimes_GCJ=yes
25007      ;;
25008
25009    darwin* | rhapsody*)
25010      case $host_os in
25011        rhapsody* | darwin1.[012])
25012         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25013         ;;
25014       *) # Darwin 1.3 on
25015         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25016           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25017         else
25018           case ${MACOSX_DEPLOYMENT_TARGET} in
25019             10.[012])
25020               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25021               ;;
25022             10.*)
25023               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25024               ;;
25025           esac
25026         fi
25027         ;;
25028      esac
25029      archive_cmds_need_lc_GCJ=no
25030      hardcode_direct_GCJ=no
25031      hardcode_automatic_GCJ=yes
25032      hardcode_shlibpath_var_GCJ=unsupported
25033      whole_archive_flag_spec_GCJ=''
25034      link_all_deplibs_GCJ=yes
25035    if test "$GCC" = yes ; then
25036    	output_verbose_link_cmd='echo'
25037        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25038      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25039      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25040      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}'
25041      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}'
25042    else
25043      case $cc_basename in
25044        xlc*)
25045         output_verbose_link_cmd='echo'
25046         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25047         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25048          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25049         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}'
25050          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}'
25051          ;;
25052       *)
25053         ld_shlibs_GCJ=no
25054          ;;
25055      esac
25056    fi
25057      ;;
25058
25059    dgux*)
25060      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25061      hardcode_libdir_flag_spec_GCJ='-L$libdir'
25062      hardcode_shlibpath_var_GCJ=no
25063      ;;
25064
25065    freebsd1*)
25066      ld_shlibs_GCJ=no
25067      ;;
25068
25069    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25070    # support.  Future versions do this automatically, but an explicit c++rt0.o
25071    # does not break anything, and helps significantly (at the cost of a little
25072    # extra space).
25073    freebsd2.2*)
25074      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25075      hardcode_libdir_flag_spec_GCJ='-R$libdir'
25076      hardcode_direct_GCJ=yes
25077      hardcode_shlibpath_var_GCJ=no
25078      ;;
25079
25080    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25081    freebsd2*)
25082      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25083      hardcode_direct_GCJ=yes
25084      hardcode_minus_L_GCJ=yes
25085      hardcode_shlibpath_var_GCJ=no
25086      ;;
25087
25088    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25089    freebsd* | kfreebsd*-gnu | dragonfly*)
25090      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25091      hardcode_libdir_flag_spec_GCJ='-R$libdir'
25092      hardcode_direct_GCJ=yes
25093      hardcode_shlibpath_var_GCJ=no
25094      ;;
25095
25096    hpux9*)
25097      if test "$GCC" = yes; then
25098	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'
25099      else
25100	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'
25101      fi
25102      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25103      hardcode_libdir_separator_GCJ=:
25104      hardcode_direct_GCJ=yes
25105
25106      # hardcode_minus_L: Not really in the search PATH,
25107      # but as the default location of the library.
25108      hardcode_minus_L_GCJ=yes
25109      export_dynamic_flag_spec_GCJ='${wl}-E'
25110      ;;
25111
25112    hpux10*)
25113      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25114	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25115      else
25116	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25117      fi
25118      if test "$with_gnu_ld" = no; then
25119	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25120	hardcode_libdir_separator_GCJ=:
25121
25122	hardcode_direct_GCJ=yes
25123	export_dynamic_flag_spec_GCJ='${wl}-E'
25124
25125	# hardcode_minus_L: Not really in the search PATH,
25126	# but as the default location of the library.
25127	hardcode_minus_L_GCJ=yes
25128      fi
25129      ;;
25130
25131    hpux11*)
25132      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25133	case $host_cpu in
25134	hppa*64*)
25135	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25136	  ;;
25137	ia64*)
25138	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25139	  ;;
25140	*)
25141	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25142	  ;;
25143	esac
25144      else
25145	case $host_cpu in
25146	hppa*64*)
25147	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25148	  ;;
25149	ia64*)
25150	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25151	  ;;
25152	*)
25153	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25154	  ;;
25155	esac
25156      fi
25157      if test "$with_gnu_ld" = no; then
25158	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25159	hardcode_libdir_separator_GCJ=:
25160
25161	case $host_cpu in
25162	hppa*64*|ia64*)
25163	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25164	  hardcode_direct_GCJ=no
25165	  hardcode_shlibpath_var_GCJ=no
25166	  ;;
25167	*)
25168	  hardcode_direct_GCJ=yes
25169	  export_dynamic_flag_spec_GCJ='${wl}-E'
25170
25171	  # hardcode_minus_L: Not really in the search PATH,
25172	  # but as the default location of the library.
25173	  hardcode_minus_L_GCJ=yes
25174	  ;;
25175	esac
25176      fi
25177      ;;
25178
25179    irix5* | irix6* | nonstopux*)
25180      if test "$GCC" = yes; then
25181	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'
25182      else
25183	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'
25184	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25185      fi
25186      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25187      hardcode_libdir_separator_GCJ=:
25188      link_all_deplibs_GCJ=yes
25189      ;;
25190
25191    netbsd*)
25192      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25193	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
25194      else
25195	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25196      fi
25197      hardcode_libdir_flag_spec_GCJ='-R$libdir'
25198      hardcode_direct_GCJ=yes
25199      hardcode_shlibpath_var_GCJ=no
25200      ;;
25201
25202    newsos6)
25203      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25204      hardcode_direct_GCJ=yes
25205      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25206      hardcode_libdir_separator_GCJ=:
25207      hardcode_shlibpath_var_GCJ=no
25208      ;;
25209
25210    openbsd*)
25211      hardcode_direct_GCJ=yes
25212      hardcode_shlibpath_var_GCJ=no
25213      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25214	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25215	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25216	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25217	export_dynamic_flag_spec_GCJ='${wl}-E'
25218      else
25219       case $host_os in
25220	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25221	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25222	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
25223	   ;;
25224	 *)
25225	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25226	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25227	   ;;
25228       esac
25229      fi
25230      ;;
25231
25232    os2*)
25233      hardcode_libdir_flag_spec_GCJ='-L$libdir'
25234      hardcode_minus_L_GCJ=yes
25235      allow_undefined_flag_GCJ=unsupported
25236      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'
25237      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25238      ;;
25239
25240    osf3*)
25241      if test "$GCC" = yes; then
25242	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25243	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'
25244      else
25245	allow_undefined_flag_GCJ=' -expect_unresolved \*'
25246	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'
25247      fi
25248      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25249      hardcode_libdir_separator_GCJ=:
25250      ;;
25251
25252    osf4* | osf5*)	# as osf3* with the addition of -msym flag
25253      if test "$GCC" = yes; then
25254	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25255	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'
25256	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25257      else
25258	allow_undefined_flag_GCJ=' -expect_unresolved \*'
25259	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'
25260	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~
25261	$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'
25262
25263	# Both c and cxx compiler support -rpath directly
25264	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25265      fi
25266      hardcode_libdir_separator_GCJ=:
25267      ;;
25268
25269    solaris*)
25270      no_undefined_flag_GCJ=' -z text'
25271      if test "$GCC" = yes; then
25272	wlarc='${wl}'
25273	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25274	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25275	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25276      else
25277	wlarc=''
25278	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25279	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25280  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25281      fi
25282      hardcode_libdir_flag_spec_GCJ='-R$libdir'
25283      hardcode_shlibpath_var_GCJ=no
25284      case $host_os in
25285      solaris2.[0-5] | solaris2.[0-5].*) ;;
25286      *)
25287 	# The compiler driver will combine linker options so we
25288 	# cannot just pass the convience library names through
25289 	# without $wl, iff we do not link with $LD.
25290 	# Luckily, gcc supports the same syntax we need for Sun Studio.
25291 	# Supported since Solaris 2.6 (maybe 2.5.1?)
25292 	case $wlarc in
25293 	'')
25294 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25295 	*)
25296 	  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' ;;
25297 	esac ;;
25298      esac
25299      link_all_deplibs_GCJ=yes
25300      ;;
25301
25302    sunos4*)
25303      if test "x$host_vendor" = xsequent; then
25304	# Use $CC to link under sequent, because it throws in some extra .o
25305	# files that make .init and .fini sections work.
25306	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25307      else
25308	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25309      fi
25310      hardcode_libdir_flag_spec_GCJ='-L$libdir'
25311      hardcode_direct_GCJ=yes
25312      hardcode_minus_L_GCJ=yes
25313      hardcode_shlibpath_var_GCJ=no
25314      ;;
25315
25316    sysv4)
25317      case $host_vendor in
25318	sni)
25319	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25320	  hardcode_direct_GCJ=yes # is this really true???
25321	;;
25322	siemens)
25323	  ## LD is ld it makes a PLAMLIB
25324	  ## CC just makes a GrossModule.
25325	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25326	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25327	  hardcode_direct_GCJ=no
25328        ;;
25329	motorola)
25330	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25331	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25332	;;
25333      esac
25334      runpath_var='LD_RUN_PATH'
25335      hardcode_shlibpath_var_GCJ=no
25336      ;;
25337
25338    sysv4.3*)
25339      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25340      hardcode_shlibpath_var_GCJ=no
25341      export_dynamic_flag_spec_GCJ='-Bexport'
25342      ;;
25343
25344    sysv4*MP*)
25345      if test -d /usr/nec; then
25346	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25347	hardcode_shlibpath_var_GCJ=no
25348	runpath_var=LD_RUN_PATH
25349	hardcode_runpath_var=yes
25350	ld_shlibs_GCJ=yes
25351      fi
25352      ;;
25353
25354    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25355      no_undefined_flag_GCJ='${wl}-z,text'
25356      archive_cmds_need_lc_GCJ=no
25357      hardcode_shlibpath_var_GCJ=no
25358      runpath_var='LD_RUN_PATH'
25359
25360      if test "$GCC" = yes; then
25361	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25362	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25363      else
25364	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25365	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25366      fi
25367      ;;
25368
25369    sysv5* | sco3.2v5* | sco5v6*)
25370      # Note: We can NOT use -z defs as we might desire, because we do not
25371      # link with -lc, and that would cause any symbols used from libc to
25372      # always be unresolved, which means just about no library would
25373      # ever link correctly.  If we're not using GNU ld we use -z text
25374      # though, which does catch some bad symbols but isn't as heavy-handed
25375      # as -z defs.
25376      no_undefined_flag_GCJ='${wl}-z,text'
25377      allow_undefined_flag_GCJ='${wl}-z,nodefs'
25378      archive_cmds_need_lc_GCJ=no
25379      hardcode_shlibpath_var_GCJ=no
25380      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25381      hardcode_libdir_separator_GCJ=':'
25382      link_all_deplibs_GCJ=yes
25383      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25384      runpath_var='LD_RUN_PATH'
25385
25386      if test "$GCC" = yes; then
25387	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25388	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25389      else
25390	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25391	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25392      fi
25393      ;;
25394
25395    uts4*)
25396      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25397      hardcode_libdir_flag_spec_GCJ='-L$libdir'
25398      hardcode_shlibpath_var_GCJ=no
25399      ;;
25400
25401    *)
25402      ld_shlibs_GCJ=no
25403      ;;
25404    esac
25405  fi
25406
25407{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25408echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25409test "$ld_shlibs_GCJ" = no && can_build_shared=no
25410
25411#
25412# Do we need to explicitly link libc?
25413#
25414case "x$archive_cmds_need_lc_GCJ" in
25415x|xyes)
25416  # Assume -lc should be added
25417  archive_cmds_need_lc_GCJ=yes
25418
25419  if test "$enable_shared" = yes && test "$GCC" = yes; then
25420    case $archive_cmds_GCJ in
25421    *'~'*)
25422      # FIXME: we may have to deal with multi-command sequences.
25423      ;;
25424    '$CC '*)
25425      # Test whether the compiler implicitly links with -lc since on some
25426      # systems, -lgcc has to come before -lc. If gcc already passes -lc
25427      # to ld, don't add -lc before -lgcc.
25428      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25429echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25430      $rm conftest*
25431      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25432
25433      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25434  (eval $ac_compile) 2>&5
25435  ac_status=$?
25436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25437  (exit $ac_status); } 2>conftest.err; then
25438        soname=conftest
25439        lib=conftest
25440        libobjs=conftest.$ac_objext
25441        deplibs=
25442        wl=$lt_prog_compiler_wl_GCJ
25443	pic_flag=$lt_prog_compiler_pic_GCJ
25444        compiler_flags=-v
25445        linker_flags=-v
25446        verstring=
25447        output_objdir=.
25448        libname=conftest
25449        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25450        allow_undefined_flag_GCJ=
25451        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25452  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25453  ac_status=$?
25454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455  (exit $ac_status); }
25456        then
25457	  archive_cmds_need_lc_GCJ=no
25458        else
25459	  archive_cmds_need_lc_GCJ=yes
25460        fi
25461        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25462      else
25463        cat conftest.err 1>&5
25464      fi
25465      $rm conftest*
25466      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25467echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25468      ;;
25469    esac
25470  fi
25471  ;;
25472esac
25473
25474{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25475echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25476library_names_spec=
25477libname_spec='lib$name'
25478soname_spec=
25479shrext_cmds=".so"
25480postinstall_cmds=
25481postuninstall_cmds=
25482finish_cmds=
25483finish_eval=
25484shlibpath_var=
25485shlibpath_overrides_runpath=unknown
25486version_type=none
25487dynamic_linker="$host_os ld.so"
25488sys_lib_dlsearch_path_spec="/lib /usr/lib"
25489if test "$GCC" = yes; then
25490  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25491  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25492    # if the path contains ";" then we assume it to be the separator
25493    # otherwise default to the standard path separator (i.e. ":") - it is
25494    # assumed that no part of a normal pathname contains ";" but that should
25495    # okay in the real world where ";" in dirpaths is itself problematic.
25496    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25497  else
25498    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25499  fi
25500else
25501  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25502fi
25503need_lib_prefix=unknown
25504hardcode_into_libs=no
25505
25506# when you set need_version to no, make sure it does not cause -set_version
25507# flags to be left without arguments
25508need_version=unknown
25509
25510case $host_os in
25511aix3*)
25512  version_type=linux
25513  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25514  shlibpath_var=LIBPATH
25515
25516  # AIX 3 has no versioning support, so we append a major version to the name.
25517  soname_spec='${libname}${release}${shared_ext}$major'
25518  ;;
25519
25520aix4* | aix5*)
25521  version_type=linux
25522  need_lib_prefix=no
25523  need_version=no
25524  hardcode_into_libs=yes
25525  if test "$host_cpu" = ia64; then
25526    # AIX 5 supports IA64
25527    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25528    shlibpath_var=LD_LIBRARY_PATH
25529  else
25530    # With GCC up to 2.95.x, collect2 would create an import file
25531    # for dependence libraries.  The import file would start with
25532    # the line `#! .'.  This would cause the generated library to
25533    # depend on `.', always an invalid library.  This was fixed in
25534    # development snapshots of GCC prior to 3.0.
25535    case $host_os in
25536      aix4 | aix4.[01] | aix4.[01].*)
25537      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25538	   echo ' yes '
25539	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25540	:
25541      else
25542	can_build_shared=no
25543      fi
25544      ;;
25545    esac
25546    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25547    # soname into executable. Probably we can add versioning support to
25548    # collect2, so additional links can be useful in future.
25549    if test "$aix_use_runtimelinking" = yes; then
25550      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25551      # instead of lib<name>.a to let people know that these are not
25552      # typical AIX shared libraries.
25553      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25554    else
25555      # We preserve .a as extension for shared libraries through AIX4.2
25556      # and later when we are not doing run time linking.
25557      library_names_spec='${libname}${release}.a $libname.a'
25558      soname_spec='${libname}${release}${shared_ext}$major'
25559    fi
25560    shlibpath_var=LIBPATH
25561  fi
25562  ;;
25563
25564amigaos*)
25565  library_names_spec='$libname.ixlibrary $libname.a'
25566  # Create ${libname}_ixlibrary.a entries in /sys/libs.
25567  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'
25568  ;;
25569
25570beos*)
25571  library_names_spec='${libname}${shared_ext}'
25572  dynamic_linker="$host_os ld.so"
25573  shlibpath_var=LIBRARY_PATH
25574  ;;
25575
25576bsdi[45]*)
25577  version_type=linux
25578  need_version=no
25579  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25580  soname_spec='${libname}${release}${shared_ext}$major'
25581  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25582  shlibpath_var=LD_LIBRARY_PATH
25583  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25584  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25585  # the default ld.so.conf also contains /usr/contrib/lib and
25586  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25587  # libtool to hard-code these into programs
25588  ;;
25589
25590cygwin* | mingw* | pw32*)
25591  version_type=windows
25592  shrext_cmds=".dll"
25593  need_version=no
25594  need_lib_prefix=no
25595
25596  case $GCC,$host_os in
25597  yes,cygwin* | yes,mingw* | yes,pw32*)
25598    library_names_spec='$libname.dll.a'
25599    # DLL is installed to $(libdir)/../bin by postinstall_cmds
25600    postinstall_cmds='base_file=`basename \${file}`~
25601      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25602      dldir=$destdir/`dirname \$dlpath`~
25603      test -d \$dldir || mkdir -p \$dldir~
25604      $install_prog $dir/$dlname \$dldir/$dlname~
25605      chmod a+x \$dldir/$dlname'
25606    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25607      dlpath=$dir/\$dldll~
25608       $rm \$dlpath'
25609    shlibpath_overrides_runpath=yes
25610
25611    case $host_os in
25612    cygwin*)
25613      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25614      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25615      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25616      ;;
25617    mingw*)
25618      # MinGW DLLs use traditional 'lib' prefix
25619      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25620      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25621      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25622        # It is most probably a Windows format PATH printed by
25623        # mingw gcc, but we are running on Cygwin. Gcc prints its search
25624        # path with ; separators, and with drive letters. We can handle the
25625        # drive letters (cygwin fileutils understands them), so leave them,
25626        # especially as we might pass files found there to a mingw objdump,
25627        # which wouldn't understand a cygwinified path. Ahh.
25628        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25629      else
25630        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25631      fi
25632      ;;
25633    pw32*)
25634      # pw32 DLLs use 'pw' prefix rather than 'lib'
25635      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25636      ;;
25637    esac
25638    ;;
25639
25640  *)
25641    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25642    ;;
25643  esac
25644  dynamic_linker='Win32 ld.exe'
25645  # FIXME: first we should search . and the directory the executable is in
25646  shlibpath_var=PATH
25647  ;;
25648
25649darwin* | rhapsody*)
25650  dynamic_linker="$host_os dyld"
25651  version_type=darwin
25652  need_lib_prefix=no
25653  need_version=no
25654  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25655  soname_spec='${libname}${release}${major}$shared_ext'
25656  shlibpath_overrides_runpath=yes
25657  shlibpath_var=DYLD_LIBRARY_PATH
25658  shrext_cmds='.dylib'
25659  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25660  if test "$GCC" = yes; then
25661    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"`
25662  else
25663    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25664  fi
25665  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25666  ;;
25667
25668dgux*)
25669  version_type=linux
25670  need_lib_prefix=no
25671  need_version=no
25672  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25673  soname_spec='${libname}${release}${shared_ext}$major'
25674  shlibpath_var=LD_LIBRARY_PATH
25675  ;;
25676
25677freebsd1*)
25678  dynamic_linker=no
25679  ;;
25680
25681kfreebsd*-gnu)
25682  version_type=linux
25683  need_lib_prefix=no
25684  need_version=no
25685  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25686  soname_spec='${libname}${release}${shared_ext}$major'
25687  shlibpath_var=LD_LIBRARY_PATH
25688  shlibpath_overrides_runpath=no
25689  hardcode_into_libs=yes
25690  dynamic_linker='GNU ld.so'
25691  ;;
25692
25693freebsd* | dragonfly*)
25694  # DragonFly does not have aout.  When/if they implement a new
25695  # versioning mechanism, adjust this.
25696  if test -x /usr/bin/objformat; then
25697    objformat=`/usr/bin/objformat`
25698  else
25699    case $host_os in
25700    freebsd[123]*) objformat=aout ;;
25701    *) objformat=elf ;;
25702    esac
25703  fi
25704  version_type=freebsd-$objformat
25705  case $version_type in
25706    freebsd-elf*)
25707      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25708      need_version=no
25709      need_lib_prefix=no
25710      ;;
25711    freebsd-*)
25712      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25713      need_version=yes
25714      ;;
25715  esac
25716  shlibpath_var=LD_LIBRARY_PATH
25717  case $host_os in
25718  freebsd2*)
25719    shlibpath_overrides_runpath=yes
25720    ;;
25721  freebsd3.[01]* | freebsdelf3.[01]*)
25722    shlibpath_overrides_runpath=yes
25723    hardcode_into_libs=yes
25724    ;;
25725  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25726  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25727    shlibpath_overrides_runpath=no
25728    hardcode_into_libs=yes
25729    ;;
25730  freebsd*) # from 4.6 on
25731    shlibpath_overrides_runpath=yes
25732    hardcode_into_libs=yes
25733    ;;
25734  esac
25735  ;;
25736
25737gnu*)
25738  version_type=linux
25739  need_lib_prefix=no
25740  need_version=no
25741  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25742  soname_spec='${libname}${release}${shared_ext}$major'
25743  shlibpath_var=LD_LIBRARY_PATH
25744  hardcode_into_libs=yes
25745  ;;
25746
25747hpux9* | hpux10* | hpux11*)
25748  # Give a soname corresponding to the major version so that dld.sl refuses to
25749  # link against other versions.
25750  version_type=sunos
25751  need_lib_prefix=no
25752  need_version=no
25753  case $host_cpu in
25754  ia64*)
25755    shrext_cmds='.so'
25756    hardcode_into_libs=yes
25757    dynamic_linker="$host_os dld.so"
25758    shlibpath_var=LD_LIBRARY_PATH
25759    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25760    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25761    soname_spec='${libname}${release}${shared_ext}$major'
25762    if test "X$HPUX_IA64_MODE" = X32; then
25763      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25764    else
25765      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25766    fi
25767    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25768    ;;
25769   hppa*64*)
25770     shrext_cmds='.sl'
25771     hardcode_into_libs=yes
25772     dynamic_linker="$host_os dld.sl"
25773     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25774     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25775     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25776     soname_spec='${libname}${release}${shared_ext}$major'
25777     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25778     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25779     ;;
25780   *)
25781    shrext_cmds='.sl'
25782    dynamic_linker="$host_os dld.sl"
25783    shlibpath_var=SHLIB_PATH
25784    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25785    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25786    soname_spec='${libname}${release}${shared_ext}$major'
25787    ;;
25788  esac
25789  # HP-UX runs *really* slowly unless shared libraries are mode 555.
25790  postinstall_cmds='chmod 555 $lib'
25791  ;;
25792
25793interix3*)
25794  version_type=linux
25795  need_lib_prefix=no
25796  need_version=no
25797  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25798  soname_spec='${libname}${release}${shared_ext}$major'
25799  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25800  shlibpath_var=LD_LIBRARY_PATH
25801  shlibpath_overrides_runpath=no
25802  hardcode_into_libs=yes
25803  ;;
25804
25805irix5* | irix6* | nonstopux*)
25806  case $host_os in
25807    nonstopux*) version_type=nonstopux ;;
25808    *)
25809	if test "$lt_cv_prog_gnu_ld" = yes; then
25810		version_type=linux
25811	else
25812		version_type=irix
25813	fi ;;
25814  esac
25815  need_lib_prefix=no
25816  need_version=no
25817  soname_spec='${libname}${release}${shared_ext}$major'
25818  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25819  case $host_os in
25820  irix5* | nonstopux*)
25821    libsuff= shlibsuff=
25822    ;;
25823  *)
25824    case $LD in # libtool.m4 will add one of these switches to LD
25825    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25826      libsuff= shlibsuff= libmagic=32-bit;;
25827    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25828      libsuff=32 shlibsuff=N32 libmagic=N32;;
25829    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25830      libsuff=64 shlibsuff=64 libmagic=64-bit;;
25831    *) libsuff= shlibsuff= libmagic=never-match;;
25832    esac
25833    ;;
25834  esac
25835  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25836  shlibpath_overrides_runpath=no
25837  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25838  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25839  hardcode_into_libs=yes
25840  ;;
25841
25842# No shared lib support for Linux oldld, aout, or coff.
25843linux*oldld* | linux*aout* | linux*coff*)
25844  dynamic_linker=no
25845  ;;
25846
25847# This must be Linux ELF.
25848linux*)
25849  version_type=linux
25850  need_lib_prefix=no
25851  need_version=no
25852  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25853  soname_spec='${libname}${release}${shared_ext}$major'
25854  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25855  shlibpath_var=LD_LIBRARY_PATH
25856  shlibpath_overrides_runpath=no
25857  # This implies no fast_install, which is unacceptable.
25858  # Some rework will be needed to allow for fast_install
25859  # before this can be enabled.
25860  hardcode_into_libs=yes
25861
25862  # Append ld.so.conf contents to the search path
25863  if test -f /etc/ld.so.conf; then
25864    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' ' '`
25865    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25866  fi
25867
25868  # We used to test for /lib/ld.so.1 and disable shared libraries on
25869  # powerpc, because MkLinux only supported shared libraries with the
25870  # GNU dynamic linker.  Since this was broken with cross compilers,
25871  # most powerpc-linux boxes support dynamic linking these days and
25872  # people can always --disable-shared, the test was removed, and we
25873  # assume the GNU/Linux dynamic linker is in use.
25874  dynamic_linker='GNU/Linux ld.so'
25875  ;;
25876
25877knetbsd*-gnu)
25878  version_type=linux
25879  need_lib_prefix=no
25880  need_version=no
25881  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25882  soname_spec='${libname}${release}${shared_ext}$major'
25883  shlibpath_var=LD_LIBRARY_PATH
25884  shlibpath_overrides_runpath=no
25885  hardcode_into_libs=yes
25886  dynamic_linker='GNU ld.so'
25887  ;;
25888
25889netbsd*)
25890  version_type=sunos
25891  need_lib_prefix=no
25892  need_version=no
25893  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25894    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25895    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25896    dynamic_linker='NetBSD (a.out) ld.so'
25897  else
25898    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25899    soname_spec='${libname}${release}${shared_ext}$major'
25900    dynamic_linker='NetBSD ld.elf_so'
25901  fi
25902  shlibpath_var=LD_LIBRARY_PATH
25903  shlibpath_overrides_runpath=yes
25904  hardcode_into_libs=yes
25905  ;;
25906
25907newsos6)
25908  version_type=linux
25909  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25910  shlibpath_var=LD_LIBRARY_PATH
25911  shlibpath_overrides_runpath=yes
25912  ;;
25913
25914nto-qnx*)
25915  version_type=linux
25916  need_lib_prefix=no
25917  need_version=no
25918  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25919  soname_spec='${libname}${release}${shared_ext}$major'
25920  shlibpath_var=LD_LIBRARY_PATH
25921  shlibpath_overrides_runpath=yes
25922  ;;
25923
25924openbsd*)
25925  version_type=sunos
25926  sys_lib_dlsearch_path_spec="/usr/lib"
25927  need_lib_prefix=no
25928  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25929  case $host_os in
25930    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25931    *)                         need_version=no  ;;
25932  esac
25933  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25934  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25935  shlibpath_var=LD_LIBRARY_PATH
25936  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25937    case $host_os in
25938      openbsd2.[89] | openbsd2.[89].*)
25939	shlibpath_overrides_runpath=no
25940	;;
25941      *)
25942	shlibpath_overrides_runpath=yes
25943	;;
25944      esac
25945  else
25946    shlibpath_overrides_runpath=yes
25947  fi
25948  ;;
25949
25950os2*)
25951  libname_spec='$name'
25952  shrext_cmds=".dll"
25953  need_lib_prefix=no
25954  library_names_spec='$libname${shared_ext} $libname.a'
25955  dynamic_linker='OS/2 ld.exe'
25956  shlibpath_var=LIBPATH
25957  ;;
25958
25959osf3* | osf4* | osf5*)
25960  version_type=osf
25961  need_lib_prefix=no
25962  need_version=no
25963  soname_spec='${libname}${release}${shared_ext}$major'
25964  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25965  shlibpath_var=LD_LIBRARY_PATH
25966  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25967  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25968  ;;
25969
25970solaris*)
25971  version_type=linux
25972  need_lib_prefix=no
25973  need_version=no
25974  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25975  soname_spec='${libname}${release}${shared_ext}$major'
25976  shlibpath_var=LD_LIBRARY_PATH
25977  shlibpath_overrides_runpath=yes
25978  hardcode_into_libs=yes
25979  # ldd complains unless libraries are executable
25980  postinstall_cmds='chmod +x $lib'
25981  ;;
25982
25983sunos4*)
25984  version_type=sunos
25985  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25986  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25987  shlibpath_var=LD_LIBRARY_PATH
25988  shlibpath_overrides_runpath=yes
25989  if test "$with_gnu_ld" = yes; then
25990    need_lib_prefix=no
25991  fi
25992  need_version=yes
25993  ;;
25994
25995sysv4 | sysv4.3*)
25996  version_type=linux
25997  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25998  soname_spec='${libname}${release}${shared_ext}$major'
25999  shlibpath_var=LD_LIBRARY_PATH
26000  case $host_vendor in
26001    sni)
26002      shlibpath_overrides_runpath=no
26003      need_lib_prefix=no
26004      export_dynamic_flag_spec='${wl}-Blargedynsym'
26005      runpath_var=LD_RUN_PATH
26006      ;;
26007    siemens)
26008      need_lib_prefix=no
26009      ;;
26010    motorola)
26011      need_lib_prefix=no
26012      need_version=no
26013      shlibpath_overrides_runpath=no
26014      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26015      ;;
26016  esac
26017  ;;
26018
26019sysv4*MP*)
26020  if test -d /usr/nec ;then
26021    version_type=linux
26022    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26023    soname_spec='$libname${shared_ext}.$major'
26024    shlibpath_var=LD_LIBRARY_PATH
26025  fi
26026  ;;
26027
26028sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26029  version_type=freebsd-elf
26030  need_lib_prefix=no
26031  need_version=no
26032  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26033  soname_spec='${libname}${release}${shared_ext}$major'
26034  shlibpath_var=LD_LIBRARY_PATH
26035  hardcode_into_libs=yes
26036  if test "$with_gnu_ld" = yes; then
26037    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26038    shlibpath_overrides_runpath=no
26039  else
26040    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26041    shlibpath_overrides_runpath=yes
26042    case $host_os in
26043      sco3.2v5*)
26044        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26045	;;
26046    esac
26047  fi
26048  sys_lib_dlsearch_path_spec='/usr/lib'
26049  ;;
26050
26051uts4*)
26052  version_type=linux
26053  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26054  soname_spec='${libname}${release}${shared_ext}$major'
26055  shlibpath_var=LD_LIBRARY_PATH
26056  ;;
26057
26058*)
26059  dynamic_linker=no
26060  ;;
26061esac
26062{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26063echo "${ECHO_T}$dynamic_linker" >&6; }
26064test "$dynamic_linker" = no && can_build_shared=no
26065
26066variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26067if test "$GCC" = yes; then
26068  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26069fi
26070
26071{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26072echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26073hardcode_action_GCJ=
26074if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26075   test -n "$runpath_var_GCJ" || \
26076   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26077
26078  # We can hardcode non-existant directories.
26079  if test "$hardcode_direct_GCJ" != no &&
26080     # If the only mechanism to avoid hardcoding is shlibpath_var, we
26081     # have to relink, otherwise we might link with an installed library
26082     # when we should be linking with a yet-to-be-installed one
26083     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26084     test "$hardcode_minus_L_GCJ" != no; then
26085    # Linking always hardcodes the temporary library directory.
26086    hardcode_action_GCJ=relink
26087  else
26088    # We can link without hardcoding, and we can hardcode nonexisting dirs.
26089    hardcode_action_GCJ=immediate
26090  fi
26091else
26092  # We cannot hardcode anything, or else we can only hardcode existing
26093  # directories.
26094  hardcode_action_GCJ=unsupported
26095fi
26096{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26097echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26098
26099if test "$hardcode_action_GCJ" = relink; then
26100  # Fast installation is not supported
26101  enable_fast_install=no
26102elif test "$shlibpath_overrides_runpath" = yes ||
26103     test "$enable_shared" = no; then
26104  # Fast installation is not necessary
26105  enable_fast_install=needless
26106fi
26107
26108
26109# The else clause should only fire when bootstrapping the
26110# libtool distribution, otherwise you forgot to ship ltmain.sh
26111# with your package, and you will get complaints that there are
26112# no rules to generate ltmain.sh.
26113if test -f "$ltmain"; then
26114  # See if we are running on zsh, and set the options which allow our commands through
26115  # without removal of \ escapes.
26116  if test -n "${ZSH_VERSION+set}" ; then
26117    setopt NO_GLOB_SUBST
26118  fi
26119  # Now quote all the things that may contain metacharacters while being
26120  # careful not to overquote the AC_SUBSTed values.  We take copies of the
26121  # variables and quote the copies for generation of the libtool script.
26122  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26123    SED SHELL STRIP \
26124    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26125    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26126    deplibs_check_method reload_flag reload_cmds need_locks \
26127    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26128    lt_cv_sys_global_symbol_to_c_name_address \
26129    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26130    old_postinstall_cmds old_postuninstall_cmds \
26131    compiler_GCJ \
26132    CC_GCJ \
26133    LD_GCJ \
26134    lt_prog_compiler_wl_GCJ \
26135    lt_prog_compiler_pic_GCJ \
26136    lt_prog_compiler_static_GCJ \
26137    lt_prog_compiler_no_builtin_flag_GCJ \
26138    export_dynamic_flag_spec_GCJ \
26139    thread_safe_flag_spec_GCJ \
26140    whole_archive_flag_spec_GCJ \
26141    enable_shared_with_static_runtimes_GCJ \
26142    old_archive_cmds_GCJ \
26143    old_archive_from_new_cmds_GCJ \
26144    predep_objects_GCJ \
26145    postdep_objects_GCJ \
26146    predeps_GCJ \
26147    postdeps_GCJ \
26148    compiler_lib_search_path_GCJ \
26149    archive_cmds_GCJ \
26150    archive_expsym_cmds_GCJ \
26151    postinstall_cmds_GCJ \
26152    postuninstall_cmds_GCJ \
26153    old_archive_from_expsyms_cmds_GCJ \
26154    allow_undefined_flag_GCJ \
26155    no_undefined_flag_GCJ \
26156    export_symbols_cmds_GCJ \
26157    hardcode_libdir_flag_spec_GCJ \
26158    hardcode_libdir_flag_spec_ld_GCJ \
26159    hardcode_libdir_separator_GCJ \
26160    hardcode_automatic_GCJ \
26161    module_cmds_GCJ \
26162    module_expsym_cmds_GCJ \
26163    lt_cv_prog_compiler_c_o_GCJ \
26164    exclude_expsyms_GCJ \
26165    include_expsyms_GCJ; do
26166
26167    case $var in
26168    old_archive_cmds_GCJ | \
26169    old_archive_from_new_cmds_GCJ | \
26170    archive_cmds_GCJ | \
26171    archive_expsym_cmds_GCJ | \
26172    module_cmds_GCJ | \
26173    module_expsym_cmds_GCJ | \
26174    old_archive_from_expsyms_cmds_GCJ | \
26175    export_symbols_cmds_GCJ | \
26176    extract_expsyms_cmds | reload_cmds | finish_cmds | \
26177    postinstall_cmds | postuninstall_cmds | \
26178    old_postinstall_cmds | old_postuninstall_cmds | \
26179    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26180      # Double-quote double-evaled strings.
26181      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26182      ;;
26183    *)
26184      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26185      ;;
26186    esac
26187  done
26188
26189  case $lt_echo in
26190  *'\$0 --fallback-echo"')
26191    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26192    ;;
26193  esac
26194
26195cfgfile="$ofile"
26196
26197  cat <<__EOF__ >> "$cfgfile"
26198# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26199
26200# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26201
26202# Shell to use when invoking shell scripts.
26203SHELL=$lt_SHELL
26204
26205# Whether or not to build shared libraries.
26206build_libtool_libs=$enable_shared
26207
26208# Whether or not to build static libraries.
26209build_old_libs=$enable_static
26210
26211# Whether or not to add -lc for building shared libraries.
26212build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26213
26214# Whether or not to disallow shared libs when runtime libs are static
26215allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26216
26217# Whether or not to optimize for fast installation.
26218fast_install=$enable_fast_install
26219
26220# The host system.
26221host_alias=$host_alias
26222host=$host
26223host_os=$host_os
26224
26225# The build system.
26226build_alias=$build_alias
26227build=$build
26228build_os=$build_os
26229
26230# An echo program that does not interpret backslashes.
26231echo=$lt_echo
26232
26233# The archiver.
26234AR=$lt_AR
26235AR_FLAGS=$lt_AR_FLAGS
26236
26237# A C compiler.
26238LTCC=$lt_LTCC
26239
26240# LTCC compiler flags.
26241LTCFLAGS=$lt_LTCFLAGS
26242
26243# A language-specific compiler.
26244CC=$lt_compiler_GCJ
26245
26246# Is the compiler the GNU C compiler?
26247with_gcc=$GCC_GCJ
26248
26249# An ERE matcher.
26250EGREP=$lt_EGREP
26251
26252# The linker used to build libraries.
26253LD=$lt_LD_GCJ
26254
26255# Whether we need hard or soft links.
26256LN_S=$lt_LN_S
26257
26258# A BSD-compatible nm program.
26259NM=$lt_NM
26260
26261# A symbol stripping program
26262STRIP=$lt_STRIP
26263
26264# Used to examine libraries when file_magic_cmd begins "file"
26265MAGIC_CMD=$MAGIC_CMD
26266
26267# Used on cygwin: DLL creation program.
26268DLLTOOL="$DLLTOOL"
26269
26270# Used on cygwin: object dumper.
26271OBJDUMP="$OBJDUMP"
26272
26273# Used on cygwin: assembler.
26274AS="$AS"
26275
26276# The name of the directory that contains temporary libtool files.
26277objdir=$objdir
26278
26279# How to create reloadable object files.
26280reload_flag=$lt_reload_flag
26281reload_cmds=$lt_reload_cmds
26282
26283# How to pass a linker flag through the compiler.
26284wl=$lt_lt_prog_compiler_wl_GCJ
26285
26286# Object file suffix (normally "o").
26287objext="$ac_objext"
26288
26289# Old archive suffix (normally "a").
26290libext="$libext"
26291
26292# Shared library suffix (normally ".so").
26293shrext_cmds='$shrext_cmds'
26294
26295# Executable file suffix (normally "").
26296exeext="$exeext"
26297
26298# Additional compiler flags for building library objects.
26299pic_flag=$lt_lt_prog_compiler_pic_GCJ
26300pic_mode=$pic_mode
26301
26302# What is the maximum length of a command?
26303max_cmd_len=$lt_cv_sys_max_cmd_len
26304
26305# Does compiler simultaneously support -c and -o options?
26306compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26307
26308# Must we lock files when doing compilation?
26309need_locks=$lt_need_locks
26310
26311# Do we need the lib prefix for modules?
26312need_lib_prefix=$need_lib_prefix
26313
26314# Do we need a version for libraries?
26315need_version=$need_version
26316
26317# Whether dlopen is supported.
26318dlopen_support=$enable_dlopen
26319
26320# Whether dlopen of programs is supported.
26321dlopen_self=$enable_dlopen_self
26322
26323# Whether dlopen of statically linked programs is supported.
26324dlopen_self_static=$enable_dlopen_self_static
26325
26326# Compiler flag to prevent dynamic linking.
26327link_static_flag=$lt_lt_prog_compiler_static_GCJ
26328
26329# Compiler flag to turn off builtin functions.
26330no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26331
26332# Compiler flag to allow reflexive dlopens.
26333export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26334
26335# Compiler flag to generate shared objects directly from archives.
26336whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26337
26338# Compiler flag to generate thread-safe objects.
26339thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26340
26341# Library versioning type.
26342version_type=$version_type
26343
26344# Format of library name prefix.
26345libname_spec=$lt_libname_spec
26346
26347# List of archive names.  First name is the real one, the rest are links.
26348# The last name is the one that the linker finds with -lNAME.
26349library_names_spec=$lt_library_names_spec
26350
26351# The coded name of the library, if different from the real name.
26352soname_spec=$lt_soname_spec
26353
26354# Commands used to build and install an old-style archive.
26355RANLIB=$lt_RANLIB
26356old_archive_cmds=$lt_old_archive_cmds_GCJ
26357old_postinstall_cmds=$lt_old_postinstall_cmds
26358old_postuninstall_cmds=$lt_old_postuninstall_cmds
26359
26360# Create an old-style archive from a shared archive.
26361old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26362
26363# Create a temporary old-style archive to link instead of a shared archive.
26364old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26365
26366# Commands used to build and install a shared archive.
26367archive_cmds=$lt_archive_cmds_GCJ
26368archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26369postinstall_cmds=$lt_postinstall_cmds
26370postuninstall_cmds=$lt_postuninstall_cmds
26371
26372# Commands used to build a loadable module (assumed same as above if empty)
26373module_cmds=$lt_module_cmds_GCJ
26374module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26375
26376# Commands to strip libraries.
26377old_striplib=$lt_old_striplib
26378striplib=$lt_striplib
26379
26380# Dependencies to place before the objects being linked to create a
26381# shared library.
26382predep_objects=$lt_predep_objects_GCJ
26383
26384# Dependencies to place after the objects being linked to create a
26385# shared library.
26386postdep_objects=$lt_postdep_objects_GCJ
26387
26388# Dependencies to place before the objects being linked to create a
26389# shared library.
26390predeps=$lt_predeps_GCJ
26391
26392# Dependencies to place after the objects being linked to create a
26393# shared library.
26394postdeps=$lt_postdeps_GCJ
26395
26396# The library search path used internally by the compiler when linking
26397# a shared library.
26398compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26399
26400# Method to check whether dependent libraries are shared objects.
26401deplibs_check_method=$lt_deplibs_check_method
26402
26403# Command to use when deplibs_check_method == file_magic.
26404file_magic_cmd=$lt_file_magic_cmd
26405
26406# Flag that allows shared libraries with undefined symbols to be built.
26407allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26408
26409# Flag that forces no undefined symbols.
26410no_undefined_flag=$lt_no_undefined_flag_GCJ
26411
26412# Commands used to finish a libtool library installation in a directory.
26413finish_cmds=$lt_finish_cmds
26414
26415# Same as above, but a single script fragment to be evaled but not shown.
26416finish_eval=$lt_finish_eval
26417
26418# Take the output of nm and produce a listing of raw symbols and C names.
26419global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26420
26421# Transform the output of nm in a proper C declaration
26422global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26423
26424# Transform the output of nm in a C name address pair
26425global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26426
26427# This is the shared library runtime path variable.
26428runpath_var=$runpath_var
26429
26430# This is the shared library path variable.
26431shlibpath_var=$shlibpath_var
26432
26433# Is shlibpath searched before the hard-coded library search path?
26434shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26435
26436# How to hardcode a shared library path into an executable.
26437hardcode_action=$hardcode_action_GCJ
26438
26439# Whether we should hardcode library paths into libraries.
26440hardcode_into_libs=$hardcode_into_libs
26441
26442# Flag to hardcode \$libdir into a binary during linking.
26443# This must work even if \$libdir does not exist.
26444hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26445
26446# If ld is used when linking, flag to hardcode \$libdir into
26447# a binary during linking. This must work even if \$libdir does
26448# not exist.
26449hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26450
26451# Whether we need a single -rpath flag with a separated argument.
26452hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26453
26454# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26455# resulting binary.
26456hardcode_direct=$hardcode_direct_GCJ
26457
26458# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26459# resulting binary.
26460hardcode_minus_L=$hardcode_minus_L_GCJ
26461
26462# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26463# the resulting binary.
26464hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26465
26466# Set to yes if building a shared library automatically hardcodes DIR into the library
26467# and all subsequent libraries and executables linked against it.
26468hardcode_automatic=$hardcode_automatic_GCJ
26469
26470# Variables whose values should be saved in libtool wrapper scripts and
26471# restored at relink time.
26472variables_saved_for_relink="$variables_saved_for_relink"
26473
26474# Whether libtool must link a program against all its dependency libraries.
26475link_all_deplibs=$link_all_deplibs_GCJ
26476
26477# Compile-time system search path for libraries
26478sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26479
26480# Run-time system search path for libraries
26481sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26482
26483# Fix the shell variable \$srcfile for the compiler.
26484fix_srcfile_path="$fix_srcfile_path_GCJ"
26485
26486# Set to yes if exported symbols are required.
26487always_export_symbols=$always_export_symbols_GCJ
26488
26489# The commands to list exported symbols.
26490export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26491
26492# The commands to extract the exported symbol list from a shared archive.
26493extract_expsyms_cmds=$lt_extract_expsyms_cmds
26494
26495# Symbols that should not be listed in the preloaded symbols.
26496exclude_expsyms=$lt_exclude_expsyms_GCJ
26497
26498# Symbols that must always be exported.
26499include_expsyms=$lt_include_expsyms_GCJ
26500
26501# ### END LIBTOOL TAG CONFIG: $tagname
26502
26503__EOF__
26504
26505
26506else
26507  # If there is no Makefile yet, we rely on a make rule to execute
26508  # `config.status --recheck' to rerun these tests and create the
26509  # libtool script then.
26510  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26511  if test -f "$ltmain_in"; then
26512    test -f Makefile && make "$ltmain"
26513  fi
26514fi
26515
26516
26517ac_ext=c
26518ac_cpp='$CPP $CPPFLAGS'
26519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26521ac_compiler_gnu=$ac_cv_c_compiler_gnu
26522
26523CC="$lt_save_CC"
26524
26525	else
26526	  tagname=""
26527	fi
26528	;;
26529
26530      RC)
26531	ac_ext=c
26532ac_cpp='$CPP $CPPFLAGS'
26533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26535ac_compiler_gnu=$ac_cv_c_compiler_gnu
26536
26537
26538# Source file extension for RC test sources.
26539ac_ext=rc
26540
26541# Object file extension for compiled RC test sources.
26542objext=o
26543objext_RC=$objext
26544
26545# Code to be used in simple compile tests
26546lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26547
26548# Code to be used in simple link tests
26549lt_simple_link_test_code="$lt_simple_compile_test_code"
26550
26551# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26552
26553# If no C compiler was specified, use CC.
26554LTCC=${LTCC-"$CC"}
26555
26556# If no C compiler flags were specified, use CFLAGS.
26557LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26558
26559# Allow CC to be a program name with arguments.
26560compiler=$CC
26561
26562
26563# save warnings/boilerplate of simple test code
26564ac_outfile=conftest.$ac_objext
26565printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26566eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26567_lt_compiler_boilerplate=`cat conftest.err`
26568$rm conftest*
26569
26570ac_outfile=conftest.$ac_objext
26571printf "$lt_simple_link_test_code" >conftest.$ac_ext
26572eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26573_lt_linker_boilerplate=`cat conftest.err`
26574$rm conftest*
26575
26576
26577# Allow CC to be a program name with arguments.
26578lt_save_CC="$CC"
26579CC=${RC-"windres"}
26580compiler=$CC
26581compiler_RC=$CC
26582for cc_temp in $compiler""; do
26583  case $cc_temp in
26584    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26585    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26586    \-*) ;;
26587    *) break;;
26588  esac
26589done
26590cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26591
26592lt_cv_prog_compiler_c_o_RC=yes
26593
26594# The else clause should only fire when bootstrapping the
26595# libtool distribution, otherwise you forgot to ship ltmain.sh
26596# with your package, and you will get complaints that there are
26597# no rules to generate ltmain.sh.
26598if test -f "$ltmain"; then
26599  # See if we are running on zsh, and set the options which allow our commands through
26600  # without removal of \ escapes.
26601  if test -n "${ZSH_VERSION+set}" ; then
26602    setopt NO_GLOB_SUBST
26603  fi
26604  # Now quote all the things that may contain metacharacters while being
26605  # careful not to overquote the AC_SUBSTed values.  We take copies of the
26606  # variables and quote the copies for generation of the libtool script.
26607  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26608    SED SHELL STRIP \
26609    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26610    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26611    deplibs_check_method reload_flag reload_cmds need_locks \
26612    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26613    lt_cv_sys_global_symbol_to_c_name_address \
26614    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26615    old_postinstall_cmds old_postuninstall_cmds \
26616    compiler_RC \
26617    CC_RC \
26618    LD_RC \
26619    lt_prog_compiler_wl_RC \
26620    lt_prog_compiler_pic_RC \
26621    lt_prog_compiler_static_RC \
26622    lt_prog_compiler_no_builtin_flag_RC \
26623    export_dynamic_flag_spec_RC \
26624    thread_safe_flag_spec_RC \
26625    whole_archive_flag_spec_RC \
26626    enable_shared_with_static_runtimes_RC \
26627    old_archive_cmds_RC \
26628    old_archive_from_new_cmds_RC \
26629    predep_objects_RC \
26630    postdep_objects_RC \
26631    predeps_RC \
26632    postdeps_RC \
26633    compiler_lib_search_path_RC \
26634    archive_cmds_RC \
26635    archive_expsym_cmds_RC \
26636    postinstall_cmds_RC \
26637    postuninstall_cmds_RC \
26638    old_archive_from_expsyms_cmds_RC \
26639    allow_undefined_flag_RC \
26640    no_undefined_flag_RC \
26641    export_symbols_cmds_RC \
26642    hardcode_libdir_flag_spec_RC \
26643    hardcode_libdir_flag_spec_ld_RC \
26644    hardcode_libdir_separator_RC \
26645    hardcode_automatic_RC \
26646    module_cmds_RC \
26647    module_expsym_cmds_RC \
26648    lt_cv_prog_compiler_c_o_RC \
26649    exclude_expsyms_RC \
26650    include_expsyms_RC; do
26651
26652    case $var in
26653    old_archive_cmds_RC | \
26654    old_archive_from_new_cmds_RC | \
26655    archive_cmds_RC | \
26656    archive_expsym_cmds_RC | \
26657    module_cmds_RC | \
26658    module_expsym_cmds_RC | \
26659    old_archive_from_expsyms_cmds_RC | \
26660    export_symbols_cmds_RC | \
26661    extract_expsyms_cmds | reload_cmds | finish_cmds | \
26662    postinstall_cmds | postuninstall_cmds | \
26663    old_postinstall_cmds | old_postuninstall_cmds | \
26664    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26665      # Double-quote double-evaled strings.
26666      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26667      ;;
26668    *)
26669      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26670      ;;
26671    esac
26672  done
26673
26674  case $lt_echo in
26675  *'\$0 --fallback-echo"')
26676    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26677    ;;
26678  esac
26679
26680cfgfile="$ofile"
26681
26682  cat <<__EOF__ >> "$cfgfile"
26683# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26684
26685# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26686
26687# Shell to use when invoking shell scripts.
26688SHELL=$lt_SHELL
26689
26690# Whether or not to build shared libraries.
26691build_libtool_libs=$enable_shared
26692
26693# Whether or not to build static libraries.
26694build_old_libs=$enable_static
26695
26696# Whether or not to add -lc for building shared libraries.
26697build_libtool_need_lc=$archive_cmds_need_lc_RC
26698
26699# Whether or not to disallow shared libs when runtime libs are static
26700allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26701
26702# Whether or not to optimize for fast installation.
26703fast_install=$enable_fast_install
26704
26705# The host system.
26706host_alias=$host_alias
26707host=$host
26708host_os=$host_os
26709
26710# The build system.
26711build_alias=$build_alias
26712build=$build
26713build_os=$build_os
26714
26715# An echo program that does not interpret backslashes.
26716echo=$lt_echo
26717
26718# The archiver.
26719AR=$lt_AR
26720AR_FLAGS=$lt_AR_FLAGS
26721
26722# A C compiler.
26723LTCC=$lt_LTCC
26724
26725# LTCC compiler flags.
26726LTCFLAGS=$lt_LTCFLAGS
26727
26728# A language-specific compiler.
26729CC=$lt_compiler_RC
26730
26731# Is the compiler the GNU C compiler?
26732with_gcc=$GCC_RC
26733
26734# An ERE matcher.
26735EGREP=$lt_EGREP
26736
26737# The linker used to build libraries.
26738LD=$lt_LD_RC
26739
26740# Whether we need hard or soft links.
26741LN_S=$lt_LN_S
26742
26743# A BSD-compatible nm program.
26744NM=$lt_NM
26745
26746# A symbol stripping program
26747STRIP=$lt_STRIP
26748
26749# Used to examine libraries when file_magic_cmd begins "file"
26750MAGIC_CMD=$MAGIC_CMD
26751
26752# Used on cygwin: DLL creation program.
26753DLLTOOL="$DLLTOOL"
26754
26755# Used on cygwin: object dumper.
26756OBJDUMP="$OBJDUMP"
26757
26758# Used on cygwin: assembler.
26759AS="$AS"
26760
26761# The name of the directory that contains temporary libtool files.
26762objdir=$objdir
26763
26764# How to create reloadable object files.
26765reload_flag=$lt_reload_flag
26766reload_cmds=$lt_reload_cmds
26767
26768# How to pass a linker flag through the compiler.
26769wl=$lt_lt_prog_compiler_wl_RC
26770
26771# Object file suffix (normally "o").
26772objext="$ac_objext"
26773
26774# Old archive suffix (normally "a").
26775libext="$libext"
26776
26777# Shared library suffix (normally ".so").
26778shrext_cmds='$shrext_cmds'
26779
26780# Executable file suffix (normally "").
26781exeext="$exeext"
26782
26783# Additional compiler flags for building library objects.
26784pic_flag=$lt_lt_prog_compiler_pic_RC
26785pic_mode=$pic_mode
26786
26787# What is the maximum length of a command?
26788max_cmd_len=$lt_cv_sys_max_cmd_len
26789
26790# Does compiler simultaneously support -c and -o options?
26791compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26792
26793# Must we lock files when doing compilation?
26794need_locks=$lt_need_locks
26795
26796# Do we need the lib prefix for modules?
26797need_lib_prefix=$need_lib_prefix
26798
26799# Do we need a version for libraries?
26800need_version=$need_version
26801
26802# Whether dlopen is supported.
26803dlopen_support=$enable_dlopen
26804
26805# Whether dlopen of programs is supported.
26806dlopen_self=$enable_dlopen_self
26807
26808# Whether dlopen of statically linked programs is supported.
26809dlopen_self_static=$enable_dlopen_self_static
26810
26811# Compiler flag to prevent dynamic linking.
26812link_static_flag=$lt_lt_prog_compiler_static_RC
26813
26814# Compiler flag to turn off builtin functions.
26815no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26816
26817# Compiler flag to allow reflexive dlopens.
26818export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26819
26820# Compiler flag to generate shared objects directly from archives.
26821whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26822
26823# Compiler flag to generate thread-safe objects.
26824thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26825
26826# Library versioning type.
26827version_type=$version_type
26828
26829# Format of library name prefix.
26830libname_spec=$lt_libname_spec
26831
26832# List of archive names.  First name is the real one, the rest are links.
26833# The last name is the one that the linker finds with -lNAME.
26834library_names_spec=$lt_library_names_spec
26835
26836# The coded name of the library, if different from the real name.
26837soname_spec=$lt_soname_spec
26838
26839# Commands used to build and install an old-style archive.
26840RANLIB=$lt_RANLIB
26841old_archive_cmds=$lt_old_archive_cmds_RC
26842old_postinstall_cmds=$lt_old_postinstall_cmds
26843old_postuninstall_cmds=$lt_old_postuninstall_cmds
26844
26845# Create an old-style archive from a shared archive.
26846old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26847
26848# Create a temporary old-style archive to link instead of a shared archive.
26849old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26850
26851# Commands used to build and install a shared archive.
26852archive_cmds=$lt_archive_cmds_RC
26853archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26854postinstall_cmds=$lt_postinstall_cmds
26855postuninstall_cmds=$lt_postuninstall_cmds
26856
26857# Commands used to build a loadable module (assumed same as above if empty)
26858module_cmds=$lt_module_cmds_RC
26859module_expsym_cmds=$lt_module_expsym_cmds_RC
26860
26861# Commands to strip libraries.
26862old_striplib=$lt_old_striplib
26863striplib=$lt_striplib
26864
26865# Dependencies to place before the objects being linked to create a
26866# shared library.
26867predep_objects=$lt_predep_objects_RC
26868
26869# Dependencies to place after the objects being linked to create a
26870# shared library.
26871postdep_objects=$lt_postdep_objects_RC
26872
26873# Dependencies to place before the objects being linked to create a
26874# shared library.
26875predeps=$lt_predeps_RC
26876
26877# Dependencies to place after the objects being linked to create a
26878# shared library.
26879postdeps=$lt_postdeps_RC
26880
26881# The library search path used internally by the compiler when linking
26882# a shared library.
26883compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26884
26885# Method to check whether dependent libraries are shared objects.
26886deplibs_check_method=$lt_deplibs_check_method
26887
26888# Command to use when deplibs_check_method == file_magic.
26889file_magic_cmd=$lt_file_magic_cmd
26890
26891# Flag that allows shared libraries with undefined symbols to be built.
26892allow_undefined_flag=$lt_allow_undefined_flag_RC
26893
26894# Flag that forces no undefined symbols.
26895no_undefined_flag=$lt_no_undefined_flag_RC
26896
26897# Commands used to finish a libtool library installation in a directory.
26898finish_cmds=$lt_finish_cmds
26899
26900# Same as above, but a single script fragment to be evaled but not shown.
26901finish_eval=$lt_finish_eval
26902
26903# Take the output of nm and produce a listing of raw symbols and C names.
26904global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26905
26906# Transform the output of nm in a proper C declaration
26907global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26908
26909# Transform the output of nm in a C name address pair
26910global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26911
26912# This is the shared library runtime path variable.
26913runpath_var=$runpath_var
26914
26915# This is the shared library path variable.
26916shlibpath_var=$shlibpath_var
26917
26918# Is shlibpath searched before the hard-coded library search path?
26919shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26920
26921# How to hardcode a shared library path into an executable.
26922hardcode_action=$hardcode_action_RC
26923
26924# Whether we should hardcode library paths into libraries.
26925hardcode_into_libs=$hardcode_into_libs
26926
26927# Flag to hardcode \$libdir into a binary during linking.
26928# This must work even if \$libdir does not exist.
26929hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26930
26931# If ld is used when linking, flag to hardcode \$libdir into
26932# a binary during linking. This must work even if \$libdir does
26933# not exist.
26934hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26935
26936# Whether we need a single -rpath flag with a separated argument.
26937hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26938
26939# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26940# resulting binary.
26941hardcode_direct=$hardcode_direct_RC
26942
26943# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26944# resulting binary.
26945hardcode_minus_L=$hardcode_minus_L_RC
26946
26947# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26948# the resulting binary.
26949hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26950
26951# Set to yes if building a shared library automatically hardcodes DIR into the library
26952# and all subsequent libraries and executables linked against it.
26953hardcode_automatic=$hardcode_automatic_RC
26954
26955# Variables whose values should be saved in libtool wrapper scripts and
26956# restored at relink time.
26957variables_saved_for_relink="$variables_saved_for_relink"
26958
26959# Whether libtool must link a program against all its dependency libraries.
26960link_all_deplibs=$link_all_deplibs_RC
26961
26962# Compile-time system search path for libraries
26963sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26964
26965# Run-time system search path for libraries
26966sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26967
26968# Fix the shell variable \$srcfile for the compiler.
26969fix_srcfile_path="$fix_srcfile_path_RC"
26970
26971# Set to yes if exported symbols are required.
26972always_export_symbols=$always_export_symbols_RC
26973
26974# The commands to list exported symbols.
26975export_symbols_cmds=$lt_export_symbols_cmds_RC
26976
26977# The commands to extract the exported symbol list from a shared archive.
26978extract_expsyms_cmds=$lt_extract_expsyms_cmds
26979
26980# Symbols that should not be listed in the preloaded symbols.
26981exclude_expsyms=$lt_exclude_expsyms_RC
26982
26983# Symbols that must always be exported.
26984include_expsyms=$lt_include_expsyms_RC
26985
26986# ### END LIBTOOL TAG CONFIG: $tagname
26987
26988__EOF__
26989
26990
26991else
26992  # If there is no Makefile yet, we rely on a make rule to execute
26993  # `config.status --recheck' to rerun these tests and create the
26994  # libtool script then.
26995  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26996  if test -f "$ltmain_in"; then
26997    test -f Makefile && make "$ltmain"
26998  fi
26999fi
27000
27001
27002ac_ext=c
27003ac_cpp='$CPP $CPPFLAGS'
27004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27006ac_compiler_gnu=$ac_cv_c_compiler_gnu
27007
27008CC="$lt_save_CC"
27009
27010	;;
27011
27012      *)
27013	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27014echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27015   { (exit 1); exit 1; }; }
27016	;;
27017      esac
27018
27019      # Append the new tag name to the list of available tags.
27020      if test -n "$tagname" ; then
27021      available_tags="$available_tags $tagname"
27022    fi
27023    fi
27024  done
27025  IFS="$lt_save_ifs"
27026
27027  # Now substitute the updated list of available tags.
27028  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27029    mv "${ofile}T" "$ofile"
27030    chmod +x "$ofile"
27031  else
27032    rm -f "${ofile}T"
27033    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27034echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27035   { (exit 1); exit 1; }; }
27036  fi
27037fi
27038
27039
27040
27041# This can be used to rebuild libtool when needed
27042LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27043
27044# Always use our own libtool.
27045LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27046
27047# Prevent multiple expansion
27048
27049
27050
27051
27052
27053
27054
27055
27056
27057
27058
27059
27060
27061
27062
27063
27064
27065
27066
27067
27068
27069if test "$lt_cv_dlopen_self" = "yes" ; then
27070
27071cat >>confdefs.h <<\_ACEOF
27072#define CAN_DLOPEN_SELF 1
27073_ACEOF
27074
27075fi
27076
27077if test "$WITH_LLVMGCCDIR" = "default" ; then
27078  LLVMGCC="llvm-gcc${EXEEXT}"
27079  LLVMGXX="llvm-g++${EXEEXT}"
27080  # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27081set dummy $LLVMGCC; ac_word=$2
27082{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27084if test "${ac_cv_path_LLVMGCC+set}" = set; then
27085  echo $ECHO_N "(cached) $ECHO_C" >&6
27086else
27087  case $LLVMGCC in
27088  [\\/]* | ?:[\\/]*)
27089  ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27090  ;;
27091  *)
27092  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27093for as_dir in $PATH
27094do
27095  IFS=$as_save_IFS
27096  test -z "$as_dir" && as_dir=.
27097  for ac_exec_ext in '' $ac_executable_extensions; do
27098  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27099    ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27100    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27101    break 2
27102  fi
27103done
27104done
27105IFS=$as_save_IFS
27106
27107  ;;
27108esac
27109fi
27110LLVMGCC=$ac_cv_path_LLVMGCC
27111if test -n "$LLVMGCC"; then
27112  { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27113echo "${ECHO_T}$LLVMGCC" >&6; }
27114else
27115  { echo "$as_me:$LINENO: result: no" >&5
27116echo "${ECHO_T}no" >&6; }
27117fi
27118
27119
27120  # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27121set dummy $LLVMGXX; ac_word=$2
27122{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27124if test "${ac_cv_path_LLVMGXX+set}" = set; then
27125  echo $ECHO_N "(cached) $ECHO_C" >&6
27126else
27127  case $LLVMGXX in
27128  [\\/]* | ?:[\\/]*)
27129  ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27130  ;;
27131  *)
27132  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27133for as_dir in $PATH
27134do
27135  IFS=$as_save_IFS
27136  test -z "$as_dir" && as_dir=.
27137  for ac_exec_ext in '' $ac_executable_extensions; do
27138  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27139    ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27140    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27141    break 2
27142  fi
27143done
27144done
27145IFS=$as_save_IFS
27146
27147  ;;
27148esac
27149fi
27150LLVMGXX=$ac_cv_path_LLVMGXX
27151if test -n "$LLVMGXX"; then
27152  { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27153echo "${ECHO_T}$LLVMGXX" >&6; }
27154else
27155  { echo "$as_me:$LINENO: result: no" >&5
27156echo "${ECHO_T}no" >&6; }
27157fi
27158
27159
27160else
27161  if test -z "$LLVMGCC"; then
27162    LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27163  fi
27164  if test -z "$LLVMGXX"; then
27165    LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27166  fi
27167  LLVMGCC=$LLVMGCC
27168
27169  LLVMGXX=$LLVMGXX
27170
27171fi
27172
27173{ echo "$as_me:$LINENO: checking tool compatibility" >&5
27174echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27175
27176ICC=no
27177IXX=no
27178case $CC in
27179  icc*|icpc*)
27180    ICC=yes
27181    IXX=yes
27182    ;;
27183   *)
27184    ;;
27185esac
27186
27187if test "$GCC" != "yes" && test "$ICC" != "yes"
27188then
27189  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27190echo "$as_me: error: gcc|icc required but not found" >&2;}
27191   { (exit 1); exit 1; }; }
27192fi
27193
27194if test "$GXX" != "yes" && test "$IXX" != "yes"
27195then
27196  { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27197echo "$as_me: error: g++|icc required but not found" >&2;}
27198   { (exit 1); exit 1; }; }
27199fi
27200
27201if test "$GCC" = "yes"
27202then
27203  cat >conftest.$ac_ext <<_ACEOF
27204#if !defined(__GNUC__) || __GNUC__ < 3
27205#error Unsupported GCC version
27206#endif
27207
27208_ACEOF
27209rm -f conftest.$ac_objext
27210if { (ac_try="$ac_compile"
27211case "(($ac_try" in
27212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27213  *) ac_try_echo=$ac_try;;
27214esac
27215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27216  (eval "$ac_compile") 2>conftest.er1
27217  ac_status=$?
27218  grep -v '^ *+' conftest.er1 >conftest.err
27219  rm -f conftest.er1
27220  cat conftest.err >&5
27221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222  (exit $ac_status); } &&
27223	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27224  { (case "(($ac_try" in
27225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27226  *) ac_try_echo=$ac_try;;
27227esac
27228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27229  (eval "$ac_try") 2>&5
27230  ac_status=$?
27231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232  (exit $ac_status); }; } &&
27233	 { ac_try='test -s conftest.$ac_objext'
27234  { (case "(($ac_try" in
27235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27236  *) ac_try_echo=$ac_try;;
27237esac
27238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27239  (eval "$ac_try") 2>&5
27240  ac_status=$?
27241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242  (exit $ac_status); }; }; then
27243  :
27244else
27245  echo "$as_me: failed program was:" >&5
27246sed 's/^/| /' conftest.$ac_ext >&5
27247
27248	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27249echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27250   { (exit 1); exit 1; }; }
27251fi
27252
27253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27254fi
27255
27256if test -z "$llvm_cv_gnu_make_command"
27257then
27258  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27259echo "$as_me: error: GNU Make required but not found" >&2;}
27260   { (exit 1); exit 1; }; }
27261fi
27262
27263{ echo "$as_me:$LINENO: result: ok" >&5
27264echo "${ECHO_T}ok" >&6; }
27265
27266
27267
27268{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27269echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27270if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27271  echo $ECHO_N "(cached) $ECHO_C" >&6
27272else
27273  ac_check_lib_save_LIBS=$LIBS
27274LIBS="-lelf  $LIBS"
27275cat >conftest.$ac_ext <<_ACEOF
27276/* confdefs.h.  */
27277_ACEOF
27278cat confdefs.h >>conftest.$ac_ext
27279cat >>conftest.$ac_ext <<_ACEOF
27280/* end confdefs.h.  */
27281
27282/* Override any GCC internal prototype to avoid an error.
27283   Use char because int might match the return type of a GCC
27284   builtin and then its argument prototype would still apply.  */
27285#ifdef __cplusplus
27286extern "C"
27287#endif
27288char elf_begin ();
27289int
27290main ()
27291{
27292return elf_begin ();
27293  ;
27294  return 0;
27295}
27296_ACEOF
27297rm -f conftest.$ac_objext conftest$ac_exeext
27298if { (ac_try="$ac_link"
27299case "(($ac_try" in
27300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27301  *) ac_try_echo=$ac_try;;
27302esac
27303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27304  (eval "$ac_link") 2>conftest.er1
27305  ac_status=$?
27306  grep -v '^ *+' conftest.er1 >conftest.err
27307  rm -f conftest.er1
27308  cat conftest.err >&5
27309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310  (exit $ac_status); } &&
27311	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27312  { (case "(($ac_try" in
27313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27314  *) ac_try_echo=$ac_try;;
27315esac
27316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27317  (eval "$ac_try") 2>&5
27318  ac_status=$?
27319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320  (exit $ac_status); }; } &&
27321	 { ac_try='test -s conftest$ac_exeext'
27322  { (case "(($ac_try" in
27323  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27324  *) ac_try_echo=$ac_try;;
27325esac
27326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27327  (eval "$ac_try") 2>&5
27328  ac_status=$?
27329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330  (exit $ac_status); }; }; then
27331  ac_cv_lib_elf_elf_begin=yes
27332else
27333  echo "$as_me: failed program was:" >&5
27334sed 's/^/| /' conftest.$ac_ext >&5
27335
27336	ac_cv_lib_elf_elf_begin=no
27337fi
27338
27339rm -f core conftest.err conftest.$ac_objext \
27340      conftest$ac_exeext conftest.$ac_ext
27341LIBS=$ac_check_lib_save_LIBS
27342fi
27343{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27344echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27345if test $ac_cv_lib_elf_elf_begin = yes; then
27346  cat >>confdefs.h <<_ACEOF
27347#define HAVE_LIBELF 1
27348_ACEOF
27349
27350  LIBS="-lelf $LIBS"
27351
27352fi
27353
27354
27355{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27356echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27357if test "${ac_cv_lib_m_sin+set}" = set; then
27358  echo $ECHO_N "(cached) $ECHO_C" >&6
27359else
27360  ac_check_lib_save_LIBS=$LIBS
27361LIBS="-lm  $LIBS"
27362cat >conftest.$ac_ext <<_ACEOF
27363/* confdefs.h.  */
27364_ACEOF
27365cat confdefs.h >>conftest.$ac_ext
27366cat >>conftest.$ac_ext <<_ACEOF
27367/* end confdefs.h.  */
27368
27369/* Override any GCC internal prototype to avoid an error.
27370   Use char because int might match the return type of a GCC
27371   builtin and then its argument prototype would still apply.  */
27372#ifdef __cplusplus
27373extern "C"
27374#endif
27375char sin ();
27376int
27377main ()
27378{
27379return sin ();
27380  ;
27381  return 0;
27382}
27383_ACEOF
27384rm -f conftest.$ac_objext conftest$ac_exeext
27385if { (ac_try="$ac_link"
27386case "(($ac_try" in
27387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27388  *) ac_try_echo=$ac_try;;
27389esac
27390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27391  (eval "$ac_link") 2>conftest.er1
27392  ac_status=$?
27393  grep -v '^ *+' conftest.er1 >conftest.err
27394  rm -f conftest.er1
27395  cat conftest.err >&5
27396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397  (exit $ac_status); } &&
27398	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27399  { (case "(($ac_try" in
27400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27401  *) ac_try_echo=$ac_try;;
27402esac
27403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27404  (eval "$ac_try") 2>&5
27405  ac_status=$?
27406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407  (exit $ac_status); }; } &&
27408	 { ac_try='test -s conftest$ac_exeext'
27409  { (case "(($ac_try" in
27410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27411  *) ac_try_echo=$ac_try;;
27412esac
27413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27414  (eval "$ac_try") 2>&5
27415  ac_status=$?
27416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417  (exit $ac_status); }; }; then
27418  ac_cv_lib_m_sin=yes
27419else
27420  echo "$as_me: failed program was:" >&5
27421sed 's/^/| /' conftest.$ac_ext >&5
27422
27423	ac_cv_lib_m_sin=no
27424fi
27425
27426rm -f core conftest.err conftest.$ac_objext \
27427      conftest$ac_exeext conftest.$ac_ext
27428LIBS=$ac_check_lib_save_LIBS
27429fi
27430{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27431echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27432if test $ac_cv_lib_m_sin = yes; then
27433  cat >>confdefs.h <<_ACEOF
27434#define HAVE_LIBM 1
27435_ACEOF
27436
27437  LIBS="-lm $LIBS"
27438
27439fi
27440
27441if test "$llvm_cv_os_type" = "MingW" ; then
27442
27443{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27444echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27445if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27446  echo $ECHO_N "(cached) $ECHO_C" >&6
27447else
27448  ac_check_lib_save_LIBS=$LIBS
27449LIBS="-limagehlp  $LIBS"
27450cat >conftest.$ac_ext <<_ACEOF
27451/* confdefs.h.  */
27452_ACEOF
27453cat confdefs.h >>conftest.$ac_ext
27454cat >>conftest.$ac_ext <<_ACEOF
27455/* end confdefs.h.  */
27456
27457
27458int
27459main ()
27460{
27461return main ();
27462  ;
27463  return 0;
27464}
27465_ACEOF
27466rm -f conftest.$ac_objext conftest$ac_exeext
27467if { (ac_try="$ac_link"
27468case "(($ac_try" in
27469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27470  *) ac_try_echo=$ac_try;;
27471esac
27472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27473  (eval "$ac_link") 2>conftest.er1
27474  ac_status=$?
27475  grep -v '^ *+' conftest.er1 >conftest.err
27476  rm -f conftest.er1
27477  cat conftest.err >&5
27478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27479  (exit $ac_status); } &&
27480	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27481  { (case "(($ac_try" in
27482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27483  *) ac_try_echo=$ac_try;;
27484esac
27485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27486  (eval "$ac_try") 2>&5
27487  ac_status=$?
27488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27489  (exit $ac_status); }; } &&
27490	 { ac_try='test -s conftest$ac_exeext'
27491  { (case "(($ac_try" in
27492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27493  *) ac_try_echo=$ac_try;;
27494esac
27495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27496  (eval "$ac_try") 2>&5
27497  ac_status=$?
27498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27499  (exit $ac_status); }; }; then
27500  ac_cv_lib_imagehlp_main=yes
27501else
27502  echo "$as_me: failed program was:" >&5
27503sed 's/^/| /' conftest.$ac_ext >&5
27504
27505	ac_cv_lib_imagehlp_main=no
27506fi
27507
27508rm -f core conftest.err conftest.$ac_objext \
27509      conftest$ac_exeext conftest.$ac_ext
27510LIBS=$ac_check_lib_save_LIBS
27511fi
27512{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27513echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27514if test $ac_cv_lib_imagehlp_main = yes; then
27515  cat >>confdefs.h <<_ACEOF
27516#define HAVE_LIBIMAGEHLP 1
27517_ACEOF
27518
27519  LIBS="-limagehlp $LIBS"
27520
27521fi
27522
27523
27524{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27525echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27526if test "${ac_cv_lib_psapi_main+set}" = set; then
27527  echo $ECHO_N "(cached) $ECHO_C" >&6
27528else
27529  ac_check_lib_save_LIBS=$LIBS
27530LIBS="-lpsapi  $LIBS"
27531cat >conftest.$ac_ext <<_ACEOF
27532/* confdefs.h.  */
27533_ACEOF
27534cat confdefs.h >>conftest.$ac_ext
27535cat >>conftest.$ac_ext <<_ACEOF
27536/* end confdefs.h.  */
27537
27538
27539int
27540main ()
27541{
27542return main ();
27543  ;
27544  return 0;
27545}
27546_ACEOF
27547rm -f conftest.$ac_objext conftest$ac_exeext
27548if { (ac_try="$ac_link"
27549case "(($ac_try" in
27550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27551  *) ac_try_echo=$ac_try;;
27552esac
27553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27554  (eval "$ac_link") 2>conftest.er1
27555  ac_status=$?
27556  grep -v '^ *+' conftest.er1 >conftest.err
27557  rm -f conftest.er1
27558  cat conftest.err >&5
27559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27560  (exit $ac_status); } &&
27561	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27562  { (case "(($ac_try" in
27563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27564  *) ac_try_echo=$ac_try;;
27565esac
27566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27567  (eval "$ac_try") 2>&5
27568  ac_status=$?
27569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570  (exit $ac_status); }; } &&
27571	 { ac_try='test -s conftest$ac_exeext'
27572  { (case "(($ac_try" in
27573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27574  *) ac_try_echo=$ac_try;;
27575esac
27576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27577  (eval "$ac_try") 2>&5
27578  ac_status=$?
27579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27580  (exit $ac_status); }; }; then
27581  ac_cv_lib_psapi_main=yes
27582else
27583  echo "$as_me: failed program was:" >&5
27584sed 's/^/| /' conftest.$ac_ext >&5
27585
27586	ac_cv_lib_psapi_main=no
27587fi
27588
27589rm -f core conftest.err conftest.$ac_objext \
27590      conftest$ac_exeext conftest.$ac_ext
27591LIBS=$ac_check_lib_save_LIBS
27592fi
27593{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27594echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27595if test $ac_cv_lib_psapi_main = yes; then
27596  cat >>confdefs.h <<_ACEOF
27597#define HAVE_LIBPSAPI 1
27598_ACEOF
27599
27600  LIBS="-lpsapi $LIBS"
27601
27602fi
27603
27604fi
27605
27606{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27607echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27608if test "${ac_cv_search_dlopen+set}" = set; then
27609  echo $ECHO_N "(cached) $ECHO_C" >&6
27610else
27611  ac_func_search_save_LIBS=$LIBS
27612cat >conftest.$ac_ext <<_ACEOF
27613/* confdefs.h.  */
27614_ACEOF
27615cat confdefs.h >>conftest.$ac_ext
27616cat >>conftest.$ac_ext <<_ACEOF
27617/* end confdefs.h.  */
27618
27619/* Override any GCC internal prototype to avoid an error.
27620   Use char because int might match the return type of a GCC
27621   builtin and then its argument prototype would still apply.  */
27622#ifdef __cplusplus
27623extern "C"
27624#endif
27625char dlopen ();
27626int
27627main ()
27628{
27629return dlopen ();
27630  ;
27631  return 0;
27632}
27633_ACEOF
27634for ac_lib in '' dl; do
27635  if test -z "$ac_lib"; then
27636    ac_res="none required"
27637  else
27638    ac_res=-l$ac_lib
27639    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27640  fi
27641  rm -f conftest.$ac_objext conftest$ac_exeext
27642if { (ac_try="$ac_link"
27643case "(($ac_try" in
27644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27645  *) ac_try_echo=$ac_try;;
27646esac
27647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27648  (eval "$ac_link") 2>conftest.er1
27649  ac_status=$?
27650  grep -v '^ *+' conftest.er1 >conftest.err
27651  rm -f conftest.er1
27652  cat conftest.err >&5
27653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654  (exit $ac_status); } &&
27655	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27656  { (case "(($ac_try" in
27657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27658  *) ac_try_echo=$ac_try;;
27659esac
27660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27661  (eval "$ac_try") 2>&5
27662  ac_status=$?
27663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664  (exit $ac_status); }; } &&
27665	 { ac_try='test -s conftest$ac_exeext'
27666  { (case "(($ac_try" in
27667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27668  *) ac_try_echo=$ac_try;;
27669esac
27670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27671  (eval "$ac_try") 2>&5
27672  ac_status=$?
27673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674  (exit $ac_status); }; }; then
27675  ac_cv_search_dlopen=$ac_res
27676else
27677  echo "$as_me: failed program was:" >&5
27678sed 's/^/| /' conftest.$ac_ext >&5
27679
27680
27681fi
27682
27683rm -f core conftest.err conftest.$ac_objext \
27684      conftest$ac_exeext
27685  if test "${ac_cv_search_dlopen+set}" = set; then
27686  break
27687fi
27688done
27689if test "${ac_cv_search_dlopen+set}" = set; then
27690  :
27691else
27692  ac_cv_search_dlopen=no
27693fi
27694rm conftest.$ac_ext
27695LIBS=$ac_func_search_save_LIBS
27696fi
27697{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27698echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27699ac_res=$ac_cv_search_dlopen
27700if test "$ac_res" != no; then
27701  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27702
27703cat >>confdefs.h <<\_ACEOF
27704#define HAVE_DLOPEN 1
27705_ACEOF
27706
27707else
27708  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27709echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27710fi
27711
27712
27713{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27714echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27715if test "${ac_cv_search_mallinfo+set}" = set; then
27716  echo $ECHO_N "(cached) $ECHO_C" >&6
27717else
27718  ac_func_search_save_LIBS=$LIBS
27719cat >conftest.$ac_ext <<_ACEOF
27720/* confdefs.h.  */
27721_ACEOF
27722cat confdefs.h >>conftest.$ac_ext
27723cat >>conftest.$ac_ext <<_ACEOF
27724/* end confdefs.h.  */
27725
27726/* Override any GCC internal prototype to avoid an error.
27727   Use char because int might match the return type of a GCC
27728   builtin and then its argument prototype would still apply.  */
27729#ifdef __cplusplus
27730extern "C"
27731#endif
27732char mallinfo ();
27733int
27734main ()
27735{
27736return mallinfo ();
27737  ;
27738  return 0;
27739}
27740_ACEOF
27741for ac_lib in '' malloc; do
27742  if test -z "$ac_lib"; then
27743    ac_res="none required"
27744  else
27745    ac_res=-l$ac_lib
27746    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27747  fi
27748  rm -f conftest.$ac_objext conftest$ac_exeext
27749if { (ac_try="$ac_link"
27750case "(($ac_try" in
27751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27752  *) ac_try_echo=$ac_try;;
27753esac
27754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27755  (eval "$ac_link") 2>conftest.er1
27756  ac_status=$?
27757  grep -v '^ *+' conftest.er1 >conftest.err
27758  rm -f conftest.er1
27759  cat conftest.err >&5
27760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27761  (exit $ac_status); } &&
27762	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27763  { (case "(($ac_try" in
27764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27765  *) ac_try_echo=$ac_try;;
27766esac
27767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27768  (eval "$ac_try") 2>&5
27769  ac_status=$?
27770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27771  (exit $ac_status); }; } &&
27772	 { ac_try='test -s conftest$ac_exeext'
27773  { (case "(($ac_try" in
27774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27775  *) ac_try_echo=$ac_try;;
27776esac
27777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27778  (eval "$ac_try") 2>&5
27779  ac_status=$?
27780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781  (exit $ac_status); }; }; then
27782  ac_cv_search_mallinfo=$ac_res
27783else
27784  echo "$as_me: failed program was:" >&5
27785sed 's/^/| /' conftest.$ac_ext >&5
27786
27787
27788fi
27789
27790rm -f core conftest.err conftest.$ac_objext \
27791      conftest$ac_exeext
27792  if test "${ac_cv_search_mallinfo+set}" = set; then
27793  break
27794fi
27795done
27796if test "${ac_cv_search_mallinfo+set}" = set; then
27797  :
27798else
27799  ac_cv_search_mallinfo=no
27800fi
27801rm conftest.$ac_ext
27802LIBS=$ac_func_search_save_LIBS
27803fi
27804{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27805echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27806ac_res=$ac_cv_search_mallinfo
27807if test "$ac_res" != no; then
27808  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27809
27810cat >>confdefs.h <<\_ACEOF
27811#define HAVE_MALLINFO 1
27812_ACEOF
27813
27814fi
27815
27816
27817if test "$ENABLE_THREADS" -eq 1 ; then
27818
27819{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27820echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27821if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27822  echo $ECHO_N "(cached) $ECHO_C" >&6
27823else
27824  ac_check_lib_save_LIBS=$LIBS
27825LIBS="-lpthread  $LIBS"
27826cat >conftest.$ac_ext <<_ACEOF
27827/* confdefs.h.  */
27828_ACEOF
27829cat confdefs.h >>conftest.$ac_ext
27830cat >>conftest.$ac_ext <<_ACEOF
27831/* end confdefs.h.  */
27832
27833/* Override any GCC internal prototype to avoid an error.
27834   Use char because int might match the return type of a GCC
27835   builtin and then its argument prototype would still apply.  */
27836#ifdef __cplusplus
27837extern "C"
27838#endif
27839char pthread_mutex_init ();
27840int
27841main ()
27842{
27843return pthread_mutex_init ();
27844  ;
27845  return 0;
27846}
27847_ACEOF
27848rm -f conftest.$ac_objext conftest$ac_exeext
27849if { (ac_try="$ac_link"
27850case "(($ac_try" in
27851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27852  *) ac_try_echo=$ac_try;;
27853esac
27854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27855  (eval "$ac_link") 2>conftest.er1
27856  ac_status=$?
27857  grep -v '^ *+' conftest.er1 >conftest.err
27858  rm -f conftest.er1
27859  cat conftest.err >&5
27860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27861  (exit $ac_status); } &&
27862	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27863  { (case "(($ac_try" in
27864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27865  *) ac_try_echo=$ac_try;;
27866esac
27867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27868  (eval "$ac_try") 2>&5
27869  ac_status=$?
27870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27871  (exit $ac_status); }; } &&
27872	 { ac_try='test -s conftest$ac_exeext'
27873  { (case "(($ac_try" in
27874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27875  *) ac_try_echo=$ac_try;;
27876esac
27877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27878  (eval "$ac_try") 2>&5
27879  ac_status=$?
27880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881  (exit $ac_status); }; }; then
27882  ac_cv_lib_pthread_pthread_mutex_init=yes
27883else
27884  echo "$as_me: failed program was:" >&5
27885sed 's/^/| /' conftest.$ac_ext >&5
27886
27887	ac_cv_lib_pthread_pthread_mutex_init=no
27888fi
27889
27890rm -f core conftest.err conftest.$ac_objext \
27891      conftest$ac_exeext conftest.$ac_ext
27892LIBS=$ac_check_lib_save_LIBS
27893fi
27894{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27895echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27896if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27897  cat >>confdefs.h <<_ACEOF
27898#define HAVE_LIBPTHREAD 1
27899_ACEOF
27900
27901  LIBS="-lpthread $LIBS"
27902
27903fi
27904
27905  { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27906echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27907if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27908  echo $ECHO_N "(cached) $ECHO_C" >&6
27909else
27910  ac_func_search_save_LIBS=$LIBS
27911cat >conftest.$ac_ext <<_ACEOF
27912/* confdefs.h.  */
27913_ACEOF
27914cat confdefs.h >>conftest.$ac_ext
27915cat >>conftest.$ac_ext <<_ACEOF
27916/* end confdefs.h.  */
27917
27918/* Override any GCC internal prototype to avoid an error.
27919   Use char because int might match the return type of a GCC
27920   builtin and then its argument prototype would still apply.  */
27921#ifdef __cplusplus
27922extern "C"
27923#endif
27924char pthread_mutex_lock ();
27925int
27926main ()
27927{
27928return pthread_mutex_lock ();
27929  ;
27930  return 0;
27931}
27932_ACEOF
27933for ac_lib in '' pthread; do
27934  if test -z "$ac_lib"; then
27935    ac_res="none required"
27936  else
27937    ac_res=-l$ac_lib
27938    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27939  fi
27940  rm -f conftest.$ac_objext conftest$ac_exeext
27941if { (ac_try="$ac_link"
27942case "(($ac_try" in
27943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27944  *) ac_try_echo=$ac_try;;
27945esac
27946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27947  (eval "$ac_link") 2>conftest.er1
27948  ac_status=$?
27949  grep -v '^ *+' conftest.er1 >conftest.err
27950  rm -f conftest.er1
27951  cat conftest.err >&5
27952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953  (exit $ac_status); } &&
27954	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27955  { (case "(($ac_try" in
27956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27957  *) ac_try_echo=$ac_try;;
27958esac
27959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27960  (eval "$ac_try") 2>&5
27961  ac_status=$?
27962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963  (exit $ac_status); }; } &&
27964	 { ac_try='test -s conftest$ac_exeext'
27965  { (case "(($ac_try" in
27966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27967  *) ac_try_echo=$ac_try;;
27968esac
27969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27970  (eval "$ac_try") 2>&5
27971  ac_status=$?
27972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973  (exit $ac_status); }; }; then
27974  ac_cv_search_pthread_mutex_lock=$ac_res
27975else
27976  echo "$as_me: failed program was:" >&5
27977sed 's/^/| /' conftest.$ac_ext >&5
27978
27979
27980fi
27981
27982rm -f core conftest.err conftest.$ac_objext \
27983      conftest$ac_exeext
27984  if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27985  break
27986fi
27987done
27988if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27989  :
27990else
27991  ac_cv_search_pthread_mutex_lock=no
27992fi
27993rm conftest.$ac_ext
27994LIBS=$ac_func_search_save_LIBS
27995fi
27996{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27997echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27998ac_res=$ac_cv_search_pthread_mutex_lock
27999if test "$ac_res" != no; then
28000  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28001
28002cat >>confdefs.h <<\_ACEOF
28003#define HAVE_PTHREAD_MUTEX_LOCK 1
28004_ACEOF
28005
28006fi
28007
28008fi
28009
28010
28011# Check whether --with-udis86 was given.
28012if test "${with_udis86+set}" = set; then
28013  withval=$with_udis86;
28014      USE_UDIS86=1
28015
28016      case "$withval" in
28017        /usr/lib|yes) ;;
28018        *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28019      esac
28020
28021{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28022echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28023if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28024  echo $ECHO_N "(cached) $ECHO_C" >&6
28025else
28026  ac_check_lib_save_LIBS=$LIBS
28027LIBS="-ludis86  $LIBS"
28028cat >conftest.$ac_ext <<_ACEOF
28029/* confdefs.h.  */
28030_ACEOF
28031cat confdefs.h >>conftest.$ac_ext
28032cat >>conftest.$ac_ext <<_ACEOF
28033/* end confdefs.h.  */
28034
28035/* Override any GCC internal prototype to avoid an error.
28036   Use char because int might match the return type of a GCC
28037   builtin and then its argument prototype would still apply.  */
28038#ifdef __cplusplus
28039extern "C"
28040#endif
28041char ud_init ();
28042int
28043main ()
28044{
28045return ud_init ();
28046  ;
28047  return 0;
28048}
28049_ACEOF
28050rm -f conftest.$ac_objext conftest$ac_exeext
28051if { (ac_try="$ac_link"
28052case "(($ac_try" in
28053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28054  *) ac_try_echo=$ac_try;;
28055esac
28056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28057  (eval "$ac_link") 2>conftest.er1
28058  ac_status=$?
28059  grep -v '^ *+' conftest.er1 >conftest.err
28060  rm -f conftest.er1
28061  cat conftest.err >&5
28062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063  (exit $ac_status); } &&
28064	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28065  { (case "(($ac_try" in
28066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28067  *) ac_try_echo=$ac_try;;
28068esac
28069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28070  (eval "$ac_try") 2>&5
28071  ac_status=$?
28072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073  (exit $ac_status); }; } &&
28074	 { ac_try='test -s conftest$ac_exeext'
28075  { (case "(($ac_try" in
28076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28077  *) ac_try_echo=$ac_try;;
28078esac
28079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28080  (eval "$ac_try") 2>&5
28081  ac_status=$?
28082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28083  (exit $ac_status); }; }; then
28084  ac_cv_lib_udis86_ud_init=yes
28085else
28086  echo "$as_me: failed program was:" >&5
28087sed 's/^/| /' conftest.$ac_ext >&5
28088
28089	ac_cv_lib_udis86_ud_init=no
28090fi
28091
28092rm -f core conftest.err conftest.$ac_objext \
28093      conftest$ac_exeext conftest.$ac_ext
28094LIBS=$ac_check_lib_save_LIBS
28095fi
28096{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28097echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28098if test $ac_cv_lib_udis86_ud_init = yes; then
28099  cat >>confdefs.h <<_ACEOF
28100#define HAVE_LIBUDIS86 1
28101_ACEOF
28102
28103  LIBS="-ludis86 $LIBS"
28104
28105else
28106
28107        echo "Error! You need to have libudis86 around."
28108        exit -1
28109
28110fi
28111
28112
28113else
28114  USE_UDIS86=0
28115
28116fi
28117
28118
28119cat >>confdefs.h <<_ACEOF
28120#define USE_UDIS86 $USE_UDIS86
28121_ACEOF
28122
28123
28124
28125
28126
28127
28128
28129
28130ac_header_dirent=no
28131for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28132  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28133{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28134echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28136  echo $ECHO_N "(cached) $ECHO_C" >&6
28137else
28138  cat >conftest.$ac_ext <<_ACEOF
28139/* confdefs.h.  */
28140_ACEOF
28141cat confdefs.h >>conftest.$ac_ext
28142cat >>conftest.$ac_ext <<_ACEOF
28143/* end confdefs.h.  */
28144#include <sys/types.h>
28145#include <$ac_hdr>
28146
28147int
28148main ()
28149{
28150if ((DIR *) 0)
28151return 0;
28152  ;
28153  return 0;
28154}
28155_ACEOF
28156rm -f conftest.$ac_objext
28157if { (ac_try="$ac_compile"
28158case "(($ac_try" in
28159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28160  *) ac_try_echo=$ac_try;;
28161esac
28162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28163  (eval "$ac_compile") 2>conftest.er1
28164  ac_status=$?
28165  grep -v '^ *+' conftest.er1 >conftest.err
28166  rm -f conftest.er1
28167  cat conftest.err >&5
28168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169  (exit $ac_status); } &&
28170	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28171  { (case "(($ac_try" in
28172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28173  *) ac_try_echo=$ac_try;;
28174esac
28175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28176  (eval "$ac_try") 2>&5
28177  ac_status=$?
28178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28179  (exit $ac_status); }; } &&
28180	 { ac_try='test -s conftest.$ac_objext'
28181  { (case "(($ac_try" in
28182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28183  *) ac_try_echo=$ac_try;;
28184esac
28185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28186  (eval "$ac_try") 2>&5
28187  ac_status=$?
28188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189  (exit $ac_status); }; }; then
28190  eval "$as_ac_Header=yes"
28191else
28192  echo "$as_me: failed program was:" >&5
28193sed 's/^/| /' conftest.$ac_ext >&5
28194
28195	eval "$as_ac_Header=no"
28196fi
28197
28198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28199fi
28200ac_res=`eval echo '${'$as_ac_Header'}'`
28201	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28202echo "${ECHO_T}$ac_res" >&6; }
28203if test `eval echo '${'$as_ac_Header'}'` = yes; then
28204  cat >>confdefs.h <<_ACEOF
28205#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28206_ACEOF
28207
28208ac_header_dirent=$ac_hdr; break
28209fi
28210
28211done
28212# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28213if test $ac_header_dirent = dirent.h; then
28214  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28215echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28216if test "${ac_cv_search_opendir+set}" = set; then
28217  echo $ECHO_N "(cached) $ECHO_C" >&6
28218else
28219  ac_func_search_save_LIBS=$LIBS
28220cat >conftest.$ac_ext <<_ACEOF
28221/* confdefs.h.  */
28222_ACEOF
28223cat confdefs.h >>conftest.$ac_ext
28224cat >>conftest.$ac_ext <<_ACEOF
28225/* end confdefs.h.  */
28226
28227/* Override any GCC internal prototype to avoid an error.
28228   Use char because int might match the return type of a GCC
28229   builtin and then its argument prototype would still apply.  */
28230#ifdef __cplusplus
28231extern "C"
28232#endif
28233char opendir ();
28234int
28235main ()
28236{
28237return opendir ();
28238  ;
28239  return 0;
28240}
28241_ACEOF
28242for ac_lib in '' dir; do
28243  if test -z "$ac_lib"; then
28244    ac_res="none required"
28245  else
28246    ac_res=-l$ac_lib
28247    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28248  fi
28249  rm -f conftest.$ac_objext conftest$ac_exeext
28250if { (ac_try="$ac_link"
28251case "(($ac_try" in
28252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28253  *) ac_try_echo=$ac_try;;
28254esac
28255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28256  (eval "$ac_link") 2>conftest.er1
28257  ac_status=$?
28258  grep -v '^ *+' conftest.er1 >conftest.err
28259  rm -f conftest.er1
28260  cat conftest.err >&5
28261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262  (exit $ac_status); } &&
28263	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28264  { (case "(($ac_try" in
28265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28266  *) ac_try_echo=$ac_try;;
28267esac
28268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28269  (eval "$ac_try") 2>&5
28270  ac_status=$?
28271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28272  (exit $ac_status); }; } &&
28273	 { ac_try='test -s conftest$ac_exeext'
28274  { (case "(($ac_try" in
28275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28276  *) ac_try_echo=$ac_try;;
28277esac
28278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28279  (eval "$ac_try") 2>&5
28280  ac_status=$?
28281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28282  (exit $ac_status); }; }; then
28283  ac_cv_search_opendir=$ac_res
28284else
28285  echo "$as_me: failed program was:" >&5
28286sed 's/^/| /' conftest.$ac_ext >&5
28287
28288
28289fi
28290
28291rm -f core conftest.err conftest.$ac_objext \
28292      conftest$ac_exeext
28293  if test "${ac_cv_search_opendir+set}" = set; then
28294  break
28295fi
28296done
28297if test "${ac_cv_search_opendir+set}" = set; then
28298  :
28299else
28300  ac_cv_search_opendir=no
28301fi
28302rm conftest.$ac_ext
28303LIBS=$ac_func_search_save_LIBS
28304fi
28305{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28306echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28307ac_res=$ac_cv_search_opendir
28308if test "$ac_res" != no; then
28309  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28310
28311fi
28312
28313else
28314  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28315echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28316if test "${ac_cv_search_opendir+set}" = set; then
28317  echo $ECHO_N "(cached) $ECHO_C" >&6
28318else
28319  ac_func_search_save_LIBS=$LIBS
28320cat >conftest.$ac_ext <<_ACEOF
28321/* confdefs.h.  */
28322_ACEOF
28323cat confdefs.h >>conftest.$ac_ext
28324cat >>conftest.$ac_ext <<_ACEOF
28325/* end confdefs.h.  */
28326
28327/* Override any GCC internal prototype to avoid an error.
28328   Use char because int might match the return type of a GCC
28329   builtin and then its argument prototype would still apply.  */
28330#ifdef __cplusplus
28331extern "C"
28332#endif
28333char opendir ();
28334int
28335main ()
28336{
28337return opendir ();
28338  ;
28339  return 0;
28340}
28341_ACEOF
28342for ac_lib in '' x; do
28343  if test -z "$ac_lib"; then
28344    ac_res="none required"
28345  else
28346    ac_res=-l$ac_lib
28347    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28348  fi
28349  rm -f conftest.$ac_objext conftest$ac_exeext
28350if { (ac_try="$ac_link"
28351case "(($ac_try" in
28352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28353  *) ac_try_echo=$ac_try;;
28354esac
28355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28356  (eval "$ac_link") 2>conftest.er1
28357  ac_status=$?
28358  grep -v '^ *+' conftest.er1 >conftest.err
28359  rm -f conftest.er1
28360  cat conftest.err >&5
28361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28362  (exit $ac_status); } &&
28363	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28364  { (case "(($ac_try" in
28365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28366  *) ac_try_echo=$ac_try;;
28367esac
28368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28369  (eval "$ac_try") 2>&5
28370  ac_status=$?
28371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28372  (exit $ac_status); }; } &&
28373	 { ac_try='test -s conftest$ac_exeext'
28374  { (case "(($ac_try" in
28375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28376  *) ac_try_echo=$ac_try;;
28377esac
28378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28379  (eval "$ac_try") 2>&5
28380  ac_status=$?
28381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28382  (exit $ac_status); }; }; then
28383  ac_cv_search_opendir=$ac_res
28384else
28385  echo "$as_me: failed program was:" >&5
28386sed 's/^/| /' conftest.$ac_ext >&5
28387
28388
28389fi
28390
28391rm -f core conftest.err conftest.$ac_objext \
28392      conftest$ac_exeext
28393  if test "${ac_cv_search_opendir+set}" = set; then
28394  break
28395fi
28396done
28397if test "${ac_cv_search_opendir+set}" = set; then
28398  :
28399else
28400  ac_cv_search_opendir=no
28401fi
28402rm conftest.$ac_ext
28403LIBS=$ac_func_search_save_LIBS
28404fi
28405{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28406echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28407ac_res=$ac_cv_search_opendir
28408if test "$ac_res" != no; then
28409  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28410
28411fi
28412
28413fi
28414
28415{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28416echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28417if test "${ac_cv_header_mmap_anon+set}" = set; then
28418  echo $ECHO_N "(cached) $ECHO_C" >&6
28419else
28420   ac_ext=c
28421ac_cpp='$CPP $CPPFLAGS'
28422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28424ac_compiler_gnu=$ac_cv_c_compiler_gnu
28425
28426  cat >conftest.$ac_ext <<_ACEOF
28427/* confdefs.h.  */
28428_ACEOF
28429cat confdefs.h >>conftest.$ac_ext
28430cat >>conftest.$ac_ext <<_ACEOF
28431/* end confdefs.h.  */
28432#include <sys/mman.h>
28433#include <unistd.h>
28434#include <fcntl.h>
28435int
28436main ()
28437{
28438mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28439  ;
28440  return 0;
28441}
28442_ACEOF
28443rm -f conftest.$ac_objext
28444if { (ac_try="$ac_compile"
28445case "(($ac_try" in
28446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28447  *) ac_try_echo=$ac_try;;
28448esac
28449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28450  (eval "$ac_compile") 2>conftest.er1
28451  ac_status=$?
28452  grep -v '^ *+' conftest.er1 >conftest.err
28453  rm -f conftest.er1
28454  cat conftest.err >&5
28455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28456  (exit $ac_status); } &&
28457	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28458  { (case "(($ac_try" in
28459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28460  *) ac_try_echo=$ac_try;;
28461esac
28462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28463  (eval "$ac_try") 2>&5
28464  ac_status=$?
28465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28466  (exit $ac_status); }; } &&
28467	 { ac_try='test -s conftest.$ac_objext'
28468  { (case "(($ac_try" in
28469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28470  *) ac_try_echo=$ac_try;;
28471esac
28472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28473  (eval "$ac_try") 2>&5
28474  ac_status=$?
28475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28476  (exit $ac_status); }; }; then
28477  ac_cv_header_mmap_anon=yes
28478else
28479  echo "$as_me: failed program was:" >&5
28480sed 's/^/| /' conftest.$ac_ext >&5
28481
28482	ac_cv_header_mmap_anon=no
28483fi
28484
28485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28486  ac_ext=c
28487ac_cpp='$CPP $CPPFLAGS'
28488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28490ac_compiler_gnu=$ac_cv_c_compiler_gnu
28491
28492
28493fi
28494{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28495echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28496if test "$ac_cv_header_mmap_anon" = yes; then
28497
28498cat >>confdefs.h <<\_ACEOF
28499#define HAVE_MMAP_ANONYMOUS 1
28500_ACEOF
28501
28502fi
28503
28504{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28505echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28506if test "${ac_cv_header_stat_broken+set}" = set; then
28507  echo $ECHO_N "(cached) $ECHO_C" >&6
28508else
28509  cat >conftest.$ac_ext <<_ACEOF
28510/* confdefs.h.  */
28511_ACEOF
28512cat confdefs.h >>conftest.$ac_ext
28513cat >>conftest.$ac_ext <<_ACEOF
28514/* end confdefs.h.  */
28515#include <sys/types.h>
28516#include <sys/stat.h>
28517
28518#if defined S_ISBLK && defined S_IFDIR
28519# if S_ISBLK (S_IFDIR)
28520You lose.
28521# endif
28522#endif
28523
28524#if defined S_ISBLK && defined S_IFCHR
28525# if S_ISBLK (S_IFCHR)
28526You lose.
28527# endif
28528#endif
28529
28530#if defined S_ISLNK && defined S_IFREG
28531# if S_ISLNK (S_IFREG)
28532You lose.
28533# endif
28534#endif
28535
28536#if defined S_ISSOCK && defined S_IFREG
28537# if S_ISSOCK (S_IFREG)
28538You lose.
28539# endif
28540#endif
28541
28542_ACEOF
28543if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28544  $EGREP "You lose" >/dev/null 2>&1; then
28545  ac_cv_header_stat_broken=yes
28546else
28547  ac_cv_header_stat_broken=no
28548fi
28549rm -f conftest*
28550
28551fi
28552{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28553echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28554if test $ac_cv_header_stat_broken = yes; then
28555
28556cat >>confdefs.h <<\_ACEOF
28557#define STAT_MACROS_BROKEN 1
28558_ACEOF
28559
28560fi
28561
28562{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28563echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28564if test "${ac_cv_header_stdc+set}" = set; then
28565  echo $ECHO_N "(cached) $ECHO_C" >&6
28566else
28567  cat >conftest.$ac_ext <<_ACEOF
28568/* confdefs.h.  */
28569_ACEOF
28570cat confdefs.h >>conftest.$ac_ext
28571cat >>conftest.$ac_ext <<_ACEOF
28572/* end confdefs.h.  */
28573#include <stdlib.h>
28574#include <stdarg.h>
28575#include <string.h>
28576#include <float.h>
28577
28578int
28579main ()
28580{
28581
28582  ;
28583  return 0;
28584}
28585_ACEOF
28586rm -f conftest.$ac_objext
28587if { (ac_try="$ac_compile"
28588case "(($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_compile") 2>conftest.er1
28594  ac_status=$?
28595  grep -v '^ *+' conftest.er1 >conftest.err
28596  rm -f conftest.er1
28597  cat conftest.err >&5
28598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599  (exit $ac_status); } &&
28600	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28601  { (case "(($ac_try" in
28602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28603  *) ac_try_echo=$ac_try;;
28604esac
28605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28606  (eval "$ac_try") 2>&5
28607  ac_status=$?
28608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609  (exit $ac_status); }; } &&
28610	 { ac_try='test -s conftest.$ac_objext'
28611  { (case "(($ac_try" in
28612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28613  *) ac_try_echo=$ac_try;;
28614esac
28615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28616  (eval "$ac_try") 2>&5
28617  ac_status=$?
28618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619  (exit $ac_status); }; }; then
28620  ac_cv_header_stdc=yes
28621else
28622  echo "$as_me: failed program was:" >&5
28623sed 's/^/| /' conftest.$ac_ext >&5
28624
28625	ac_cv_header_stdc=no
28626fi
28627
28628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28629
28630if test $ac_cv_header_stdc = yes; then
28631  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28632  cat >conftest.$ac_ext <<_ACEOF
28633/* confdefs.h.  */
28634_ACEOF
28635cat confdefs.h >>conftest.$ac_ext
28636cat >>conftest.$ac_ext <<_ACEOF
28637/* end confdefs.h.  */
28638#include <string.h>
28639
28640_ACEOF
28641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28642  $EGREP "memchr" >/dev/null 2>&1; then
28643  :
28644else
28645  ac_cv_header_stdc=no
28646fi
28647rm -f conftest*
28648
28649fi
28650
28651if test $ac_cv_header_stdc = yes; then
28652  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28653  cat >conftest.$ac_ext <<_ACEOF
28654/* confdefs.h.  */
28655_ACEOF
28656cat confdefs.h >>conftest.$ac_ext
28657cat >>conftest.$ac_ext <<_ACEOF
28658/* end confdefs.h.  */
28659#include <stdlib.h>
28660
28661_ACEOF
28662if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28663  $EGREP "free" >/dev/null 2>&1; then
28664  :
28665else
28666  ac_cv_header_stdc=no
28667fi
28668rm -f conftest*
28669
28670fi
28671
28672if test $ac_cv_header_stdc = yes; then
28673  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28674  if test "$cross_compiling" = yes; then
28675  :
28676else
28677  cat >conftest.$ac_ext <<_ACEOF
28678/* confdefs.h.  */
28679_ACEOF
28680cat confdefs.h >>conftest.$ac_ext
28681cat >>conftest.$ac_ext <<_ACEOF
28682/* end confdefs.h.  */
28683#include <ctype.h>
28684#include <stdlib.h>
28685#if ((' ' & 0x0FF) == 0x020)
28686# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28687# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28688#else
28689# define ISLOWER(c) \
28690		   (('a' <= (c) && (c) <= 'i') \
28691		     || ('j' <= (c) && (c) <= 'r') \
28692		     || ('s' <= (c) && (c) <= 'z'))
28693# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28694#endif
28695
28696#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28697int
28698main ()
28699{
28700  int i;
28701  for (i = 0; i < 256; i++)
28702    if (XOR (islower (i), ISLOWER (i))
28703	|| toupper (i) != TOUPPER (i))
28704      return 2;
28705  return 0;
28706}
28707_ACEOF
28708rm -f conftest$ac_exeext
28709if { (ac_try="$ac_link"
28710case "(($ac_try" in
28711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28712  *) ac_try_echo=$ac_try;;
28713esac
28714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28715  (eval "$ac_link") 2>&5
28716  ac_status=$?
28717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28719  { (case "(($ac_try" in
28720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28721  *) ac_try_echo=$ac_try;;
28722esac
28723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28724  (eval "$ac_try") 2>&5
28725  ac_status=$?
28726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727  (exit $ac_status); }; }; then
28728  :
28729else
28730  echo "$as_me: program exited with status $ac_status" >&5
28731echo "$as_me: failed program was:" >&5
28732sed 's/^/| /' conftest.$ac_ext >&5
28733
28734( exit $ac_status )
28735ac_cv_header_stdc=no
28736fi
28737rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28738fi
28739
28740
28741fi
28742fi
28743{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28744echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28745if test $ac_cv_header_stdc = yes; then
28746
28747cat >>confdefs.h <<\_ACEOF
28748#define STDC_HEADERS 1
28749_ACEOF
28750
28751fi
28752
28753{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28754echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28755if test "${ac_cv_header_sys_wait_h+set}" = set; then
28756  echo $ECHO_N "(cached) $ECHO_C" >&6
28757else
28758  cat >conftest.$ac_ext <<_ACEOF
28759/* confdefs.h.  */
28760_ACEOF
28761cat confdefs.h >>conftest.$ac_ext
28762cat >>conftest.$ac_ext <<_ACEOF
28763/* end confdefs.h.  */
28764#include <sys/types.h>
28765#include <sys/wait.h>
28766#ifndef WEXITSTATUS
28767# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28768#endif
28769#ifndef WIFEXITED
28770# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28771#endif
28772
28773int
28774main ()
28775{
28776  int s;
28777  wait (&s);
28778  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28779  ;
28780  return 0;
28781}
28782_ACEOF
28783rm -f conftest.$ac_objext
28784if { (ac_try="$ac_compile"
28785case "(($ac_try" in
28786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28787  *) ac_try_echo=$ac_try;;
28788esac
28789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28790  (eval "$ac_compile") 2>conftest.er1
28791  ac_status=$?
28792  grep -v '^ *+' conftest.er1 >conftest.err
28793  rm -f conftest.er1
28794  cat conftest.err >&5
28795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796  (exit $ac_status); } &&
28797	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28798  { (case "(($ac_try" in
28799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28800  *) ac_try_echo=$ac_try;;
28801esac
28802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28803  (eval "$ac_try") 2>&5
28804  ac_status=$?
28805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806  (exit $ac_status); }; } &&
28807	 { ac_try='test -s conftest.$ac_objext'
28808  { (case "(($ac_try" in
28809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28810  *) ac_try_echo=$ac_try;;
28811esac
28812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28813  (eval "$ac_try") 2>&5
28814  ac_status=$?
28815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28816  (exit $ac_status); }; }; then
28817  ac_cv_header_sys_wait_h=yes
28818else
28819  echo "$as_me: failed program was:" >&5
28820sed 's/^/| /' conftest.$ac_ext >&5
28821
28822	ac_cv_header_sys_wait_h=no
28823fi
28824
28825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28826fi
28827{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28828echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28829if test $ac_cv_header_sys_wait_h = yes; then
28830
28831cat >>confdefs.h <<\_ACEOF
28832#define HAVE_SYS_WAIT_H 1
28833_ACEOF
28834
28835fi
28836
28837{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28838echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28839if test "${ac_cv_header_time+set}" = set; then
28840  echo $ECHO_N "(cached) $ECHO_C" >&6
28841else
28842  cat >conftest.$ac_ext <<_ACEOF
28843/* confdefs.h.  */
28844_ACEOF
28845cat confdefs.h >>conftest.$ac_ext
28846cat >>conftest.$ac_ext <<_ACEOF
28847/* end confdefs.h.  */
28848#include <sys/types.h>
28849#include <sys/time.h>
28850#include <time.h>
28851
28852int
28853main ()
28854{
28855if ((struct tm *) 0)
28856return 0;
28857  ;
28858  return 0;
28859}
28860_ACEOF
28861rm -f conftest.$ac_objext
28862if { (ac_try="$ac_compile"
28863case "(($ac_try" in
28864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28865  *) ac_try_echo=$ac_try;;
28866esac
28867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28868  (eval "$ac_compile") 2>conftest.er1
28869  ac_status=$?
28870  grep -v '^ *+' conftest.er1 >conftest.err
28871  rm -f conftest.er1
28872  cat conftest.err >&5
28873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874  (exit $ac_status); } &&
28875	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28876  { (case "(($ac_try" in
28877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28878  *) ac_try_echo=$ac_try;;
28879esac
28880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28881  (eval "$ac_try") 2>&5
28882  ac_status=$?
28883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28884  (exit $ac_status); }; } &&
28885	 { ac_try='test -s conftest.$ac_objext'
28886  { (case "(($ac_try" in
28887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28888  *) ac_try_echo=$ac_try;;
28889esac
28890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28891  (eval "$ac_try") 2>&5
28892  ac_status=$?
28893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28894  (exit $ac_status); }; }; then
28895  ac_cv_header_time=yes
28896else
28897  echo "$as_me: failed program was:" >&5
28898sed 's/^/| /' conftest.$ac_ext >&5
28899
28900	ac_cv_header_time=no
28901fi
28902
28903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28904fi
28905{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28906echo "${ECHO_T}$ac_cv_header_time" >&6; }
28907if test $ac_cv_header_time = yes; then
28908
28909cat >>confdefs.h <<\_ACEOF
28910#define TIME_WITH_SYS_TIME 1
28911_ACEOF
28912
28913fi
28914
28915
28916
28917
28918
28919
28920
28921
28922for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28923do
28924as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28925if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28926  { echo "$as_me:$LINENO: checking for $ac_header" >&5
28927echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28928if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28929  echo $ECHO_N "(cached) $ECHO_C" >&6
28930fi
28931ac_res=`eval echo '${'$as_ac_Header'}'`
28932	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28933echo "${ECHO_T}$ac_res" >&6; }
28934else
28935  # Is the header compilable?
28936{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28937echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28938cat >conftest.$ac_ext <<_ACEOF
28939/* confdefs.h.  */
28940_ACEOF
28941cat confdefs.h >>conftest.$ac_ext
28942cat >>conftest.$ac_ext <<_ACEOF
28943/* end confdefs.h.  */
28944$ac_includes_default
28945#include <$ac_header>
28946_ACEOF
28947rm -f conftest.$ac_objext
28948if { (ac_try="$ac_compile"
28949case "(($ac_try" in
28950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28951  *) ac_try_echo=$ac_try;;
28952esac
28953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28954  (eval "$ac_compile") 2>conftest.er1
28955  ac_status=$?
28956  grep -v '^ *+' conftest.er1 >conftest.err
28957  rm -f conftest.er1
28958  cat conftest.err >&5
28959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28960  (exit $ac_status); } &&
28961	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28962  { (case "(($ac_try" in
28963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28964  *) ac_try_echo=$ac_try;;
28965esac
28966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28967  (eval "$ac_try") 2>&5
28968  ac_status=$?
28969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28970  (exit $ac_status); }; } &&
28971	 { ac_try='test -s conftest.$ac_objext'
28972  { (case "(($ac_try" in
28973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28974  *) ac_try_echo=$ac_try;;
28975esac
28976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28977  (eval "$ac_try") 2>&5
28978  ac_status=$?
28979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28980  (exit $ac_status); }; }; then
28981  ac_header_compiler=yes
28982else
28983  echo "$as_me: failed program was:" >&5
28984sed 's/^/| /' conftest.$ac_ext >&5
28985
28986	ac_header_compiler=no
28987fi
28988
28989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28990{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28991echo "${ECHO_T}$ac_header_compiler" >&6; }
28992
28993# Is the header present?
28994{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28995echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28996cat >conftest.$ac_ext <<_ACEOF
28997/* confdefs.h.  */
28998_ACEOF
28999cat confdefs.h >>conftest.$ac_ext
29000cat >>conftest.$ac_ext <<_ACEOF
29001/* end confdefs.h.  */
29002#include <$ac_header>
29003_ACEOF
29004if { (ac_try="$ac_cpp conftest.$ac_ext"
29005case "(($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_cpp conftest.$ac_ext") 2>conftest.er1
29011  ac_status=$?
29012  grep -v '^ *+' conftest.er1 >conftest.err
29013  rm -f conftest.er1
29014  cat conftest.err >&5
29015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29016  (exit $ac_status); } >/dev/null; then
29017  if test -s conftest.err; then
29018    ac_cpp_err=$ac_c_preproc_warn_flag
29019    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29020  else
29021    ac_cpp_err=
29022  fi
29023else
29024  ac_cpp_err=yes
29025fi
29026if test -z "$ac_cpp_err"; then
29027  ac_header_preproc=yes
29028else
29029  echo "$as_me: failed program was:" >&5
29030sed 's/^/| /' conftest.$ac_ext >&5
29031
29032  ac_header_preproc=no
29033fi
29034
29035rm -f conftest.err conftest.$ac_ext
29036{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29037echo "${ECHO_T}$ac_header_preproc" >&6; }
29038
29039# So?  What about this header?
29040case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29041  yes:no: )
29042    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29043echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29044    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29045echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29046    ac_header_preproc=yes
29047    ;;
29048  no:yes:* )
29049    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29050echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29051    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29052echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29053    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29054echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29055    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29056echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29057    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29058echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29059    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29060echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29061    ( cat <<\_ASBOX
29062## ----------------------------------- ##
29063## Report this to llvmbugs@cs.uiuc.edu ##
29064## ----------------------------------- ##
29065_ASBOX
29066     ) | sed "s/^/$as_me: WARNING:     /" >&2
29067    ;;
29068esac
29069{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29071if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29072  echo $ECHO_N "(cached) $ECHO_C" >&6
29073else
29074  eval "$as_ac_Header=\$ac_header_preproc"
29075fi
29076ac_res=`eval echo '${'$as_ac_Header'}'`
29077	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29078echo "${ECHO_T}$ac_res" >&6; }
29079
29080fi
29081if test `eval echo '${'$as_ac_Header'}'` = yes; then
29082  cat >>confdefs.h <<_ACEOF
29083#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29084_ACEOF
29085
29086fi
29087
29088done
29089
29090
29091
29092
29093
29094
29095
29096for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
29097do
29098as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29099if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29100  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29103  echo $ECHO_N "(cached) $ECHO_C" >&6
29104fi
29105ac_res=`eval echo '${'$as_ac_Header'}'`
29106	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29107echo "${ECHO_T}$ac_res" >&6; }
29108else
29109  # Is the header compilable?
29110{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29111echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29112cat >conftest.$ac_ext <<_ACEOF
29113/* confdefs.h.  */
29114_ACEOF
29115cat confdefs.h >>conftest.$ac_ext
29116cat >>conftest.$ac_ext <<_ACEOF
29117/* end confdefs.h.  */
29118$ac_includes_default
29119#include <$ac_header>
29120_ACEOF
29121rm -f conftest.$ac_objext
29122if { (ac_try="$ac_compile"
29123case "(($ac_try" in
29124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29125  *) ac_try_echo=$ac_try;;
29126esac
29127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29128  (eval "$ac_compile") 2>conftest.er1
29129  ac_status=$?
29130  grep -v '^ *+' conftest.er1 >conftest.err
29131  rm -f conftest.er1
29132  cat conftest.err >&5
29133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134  (exit $ac_status); } &&
29135	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29136  { (case "(($ac_try" in
29137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29138  *) ac_try_echo=$ac_try;;
29139esac
29140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29141  (eval "$ac_try") 2>&5
29142  ac_status=$?
29143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144  (exit $ac_status); }; } &&
29145	 { ac_try='test -s conftest.$ac_objext'
29146  { (case "(($ac_try" in
29147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29148  *) ac_try_echo=$ac_try;;
29149esac
29150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29151  (eval "$ac_try") 2>&5
29152  ac_status=$?
29153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154  (exit $ac_status); }; }; then
29155  ac_header_compiler=yes
29156else
29157  echo "$as_me: failed program was:" >&5
29158sed 's/^/| /' conftest.$ac_ext >&5
29159
29160	ac_header_compiler=no
29161fi
29162
29163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29164{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29165echo "${ECHO_T}$ac_header_compiler" >&6; }
29166
29167# Is the header present?
29168{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29169echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29170cat >conftest.$ac_ext <<_ACEOF
29171/* confdefs.h.  */
29172_ACEOF
29173cat confdefs.h >>conftest.$ac_ext
29174cat >>conftest.$ac_ext <<_ACEOF
29175/* end confdefs.h.  */
29176#include <$ac_header>
29177_ACEOF
29178if { (ac_try="$ac_cpp conftest.$ac_ext"
29179case "(($ac_try" in
29180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29181  *) ac_try_echo=$ac_try;;
29182esac
29183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29184  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29185  ac_status=$?
29186  grep -v '^ *+' conftest.er1 >conftest.err
29187  rm -f conftest.er1
29188  cat conftest.err >&5
29189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190  (exit $ac_status); } >/dev/null; then
29191  if test -s conftest.err; then
29192    ac_cpp_err=$ac_c_preproc_warn_flag
29193    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29194  else
29195    ac_cpp_err=
29196  fi
29197else
29198  ac_cpp_err=yes
29199fi
29200if test -z "$ac_cpp_err"; then
29201  ac_header_preproc=yes
29202else
29203  echo "$as_me: failed program was:" >&5
29204sed 's/^/| /' conftest.$ac_ext >&5
29205
29206  ac_header_preproc=no
29207fi
29208
29209rm -f conftest.err conftest.$ac_ext
29210{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29211echo "${ECHO_T}$ac_header_preproc" >&6; }
29212
29213# So?  What about this header?
29214case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29215  yes:no: )
29216    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29217echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29218    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29219echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29220    ac_header_preproc=yes
29221    ;;
29222  no:yes:* )
29223    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29224echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29225    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29226echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29227    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29228echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29229    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29230echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29231    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29232echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29233    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29234echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29235    ( cat <<\_ASBOX
29236## ----------------------------------- ##
29237## Report this to llvmbugs@cs.uiuc.edu ##
29238## ----------------------------------- ##
29239_ASBOX
29240     ) | sed "s/^/$as_me: WARNING:     /" >&2
29241    ;;
29242esac
29243{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29244echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29245if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29246  echo $ECHO_N "(cached) $ECHO_C" >&6
29247else
29248  eval "$as_ac_Header=\$ac_header_preproc"
29249fi
29250ac_res=`eval echo '${'$as_ac_Header'}'`
29251	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29252echo "${ECHO_T}$ac_res" >&6; }
29253
29254fi
29255if test `eval echo '${'$as_ac_Header'}'` = yes; then
29256  cat >>confdefs.h <<_ACEOF
29257#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29258_ACEOF
29259
29260fi
29261
29262done
29263
29264
29265for ac_header in windows.h
29266do
29267as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29268if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29269  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29270echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29271if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29272  echo $ECHO_N "(cached) $ECHO_C" >&6
29273fi
29274ac_res=`eval echo '${'$as_ac_Header'}'`
29275	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29276echo "${ECHO_T}$ac_res" >&6; }
29277else
29278  # Is the header compilable?
29279{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29280echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29281cat >conftest.$ac_ext <<_ACEOF
29282/* confdefs.h.  */
29283_ACEOF
29284cat confdefs.h >>conftest.$ac_ext
29285cat >>conftest.$ac_ext <<_ACEOF
29286/* end confdefs.h.  */
29287$ac_includes_default
29288#include <$ac_header>
29289_ACEOF
29290rm -f conftest.$ac_objext
29291if { (ac_try="$ac_compile"
29292case "(($ac_try" in
29293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29294  *) ac_try_echo=$ac_try;;
29295esac
29296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29297  (eval "$ac_compile") 2>conftest.er1
29298  ac_status=$?
29299  grep -v '^ *+' conftest.er1 >conftest.err
29300  rm -f conftest.er1
29301  cat conftest.err >&5
29302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29303  (exit $ac_status); } &&
29304	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29305  { (case "(($ac_try" in
29306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29307  *) ac_try_echo=$ac_try;;
29308esac
29309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29310  (eval "$ac_try") 2>&5
29311  ac_status=$?
29312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29313  (exit $ac_status); }; } &&
29314	 { ac_try='test -s conftest.$ac_objext'
29315  { (case "(($ac_try" in
29316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29317  *) ac_try_echo=$ac_try;;
29318esac
29319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29320  (eval "$ac_try") 2>&5
29321  ac_status=$?
29322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323  (exit $ac_status); }; }; then
29324  ac_header_compiler=yes
29325else
29326  echo "$as_me: failed program was:" >&5
29327sed 's/^/| /' conftest.$ac_ext >&5
29328
29329	ac_header_compiler=no
29330fi
29331
29332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29333{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29334echo "${ECHO_T}$ac_header_compiler" >&6; }
29335
29336# Is the header present?
29337{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29338echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29339cat >conftest.$ac_ext <<_ACEOF
29340/* confdefs.h.  */
29341_ACEOF
29342cat confdefs.h >>conftest.$ac_ext
29343cat >>conftest.$ac_ext <<_ACEOF
29344/* end confdefs.h.  */
29345#include <$ac_header>
29346_ACEOF
29347if { (ac_try="$ac_cpp conftest.$ac_ext"
29348case "(($ac_try" in
29349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29350  *) ac_try_echo=$ac_try;;
29351esac
29352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29353  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29354  ac_status=$?
29355  grep -v '^ *+' conftest.er1 >conftest.err
29356  rm -f conftest.er1
29357  cat conftest.err >&5
29358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29359  (exit $ac_status); } >/dev/null; then
29360  if test -s conftest.err; then
29361    ac_cpp_err=$ac_c_preproc_warn_flag
29362    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29363  else
29364    ac_cpp_err=
29365  fi
29366else
29367  ac_cpp_err=yes
29368fi
29369if test -z "$ac_cpp_err"; then
29370  ac_header_preproc=yes
29371else
29372  echo "$as_me: failed program was:" >&5
29373sed 's/^/| /' conftest.$ac_ext >&5
29374
29375  ac_header_preproc=no
29376fi
29377
29378rm -f conftest.err conftest.$ac_ext
29379{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29380echo "${ECHO_T}$ac_header_preproc" >&6; }
29381
29382# So?  What about this header?
29383case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29384  yes:no: )
29385    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29386echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29387    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29388echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29389    ac_header_preproc=yes
29390    ;;
29391  no:yes:* )
29392    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29393echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29394    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29395echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29396    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29397echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29398    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29399echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29400    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29401echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29402    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29403echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29404    ( cat <<\_ASBOX
29405## ----------------------------------- ##
29406## Report this to llvmbugs@cs.uiuc.edu ##
29407## ----------------------------------- ##
29408_ASBOX
29409     ) | sed "s/^/$as_me: WARNING:     /" >&2
29410    ;;
29411esac
29412{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29413echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29414if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29415  echo $ECHO_N "(cached) $ECHO_C" >&6
29416else
29417  eval "$as_ac_Header=\$ac_header_preproc"
29418fi
29419ac_res=`eval echo '${'$as_ac_Header'}'`
29420	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29421echo "${ECHO_T}$ac_res" >&6; }
29422
29423fi
29424if test `eval echo '${'$as_ac_Header'}'` = yes; then
29425  cat >>confdefs.h <<_ACEOF
29426#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29427_ACEOF
29428
29429fi
29430
29431done
29432
29433
29434
29435
29436
29437for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
29438do
29439as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29440if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29441  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29443if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29444  echo $ECHO_N "(cached) $ECHO_C" >&6
29445fi
29446ac_res=`eval echo '${'$as_ac_Header'}'`
29447	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29448echo "${ECHO_T}$ac_res" >&6; }
29449else
29450  # Is the header compilable?
29451{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29452echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29453cat >conftest.$ac_ext <<_ACEOF
29454/* confdefs.h.  */
29455_ACEOF
29456cat confdefs.h >>conftest.$ac_ext
29457cat >>conftest.$ac_ext <<_ACEOF
29458/* end confdefs.h.  */
29459$ac_includes_default
29460#include <$ac_header>
29461_ACEOF
29462rm -f conftest.$ac_objext
29463if { (ac_try="$ac_compile"
29464case "(($ac_try" in
29465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29466  *) ac_try_echo=$ac_try;;
29467esac
29468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29469  (eval "$ac_compile") 2>conftest.er1
29470  ac_status=$?
29471  grep -v '^ *+' conftest.er1 >conftest.err
29472  rm -f conftest.er1
29473  cat conftest.err >&5
29474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475  (exit $ac_status); } &&
29476	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29477  { (case "(($ac_try" in
29478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29479  *) ac_try_echo=$ac_try;;
29480esac
29481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29482  (eval "$ac_try") 2>&5
29483  ac_status=$?
29484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29485  (exit $ac_status); }; } &&
29486	 { ac_try='test -s conftest.$ac_objext'
29487  { (case "(($ac_try" in
29488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29489  *) ac_try_echo=$ac_try;;
29490esac
29491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29492  (eval "$ac_try") 2>&5
29493  ac_status=$?
29494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495  (exit $ac_status); }; }; then
29496  ac_header_compiler=yes
29497else
29498  echo "$as_me: failed program was:" >&5
29499sed 's/^/| /' conftest.$ac_ext >&5
29500
29501	ac_header_compiler=no
29502fi
29503
29504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29505{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29506echo "${ECHO_T}$ac_header_compiler" >&6; }
29507
29508# Is the header present?
29509{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29510echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29511cat >conftest.$ac_ext <<_ACEOF
29512/* confdefs.h.  */
29513_ACEOF
29514cat confdefs.h >>conftest.$ac_ext
29515cat >>conftest.$ac_ext <<_ACEOF
29516/* end confdefs.h.  */
29517#include <$ac_header>
29518_ACEOF
29519if { (ac_try="$ac_cpp conftest.$ac_ext"
29520case "(($ac_try" in
29521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29522  *) ac_try_echo=$ac_try;;
29523esac
29524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29525  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29526  ac_status=$?
29527  grep -v '^ *+' conftest.er1 >conftest.err
29528  rm -f conftest.er1
29529  cat conftest.err >&5
29530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29531  (exit $ac_status); } >/dev/null; then
29532  if test -s conftest.err; then
29533    ac_cpp_err=$ac_c_preproc_warn_flag
29534    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29535  else
29536    ac_cpp_err=
29537  fi
29538else
29539  ac_cpp_err=yes
29540fi
29541if test -z "$ac_cpp_err"; then
29542  ac_header_preproc=yes
29543else
29544  echo "$as_me: failed program was:" >&5
29545sed 's/^/| /' conftest.$ac_ext >&5
29546
29547  ac_header_preproc=no
29548fi
29549
29550rm -f conftest.err conftest.$ac_ext
29551{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29552echo "${ECHO_T}$ac_header_preproc" >&6; }
29553
29554# So?  What about this header?
29555case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29556  yes:no: )
29557    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29558echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29559    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29560echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29561    ac_header_preproc=yes
29562    ;;
29563  no:yes:* )
29564    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29565echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29566    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29567echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29568    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29569echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29570    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29571echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29572    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29573echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29574    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29575echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29576    ( cat <<\_ASBOX
29577## ----------------------------------- ##
29578## Report this to llvmbugs@cs.uiuc.edu ##
29579## ----------------------------------- ##
29580_ASBOX
29581     ) | sed "s/^/$as_me: WARNING:     /" >&2
29582    ;;
29583esac
29584{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29586if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29587  echo $ECHO_N "(cached) $ECHO_C" >&6
29588else
29589  eval "$as_ac_Header=\$ac_header_preproc"
29590fi
29591ac_res=`eval echo '${'$as_ac_Header'}'`
29592	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29593echo "${ECHO_T}$ac_res" >&6; }
29594
29595fi
29596if test `eval echo '${'$as_ac_Header'}'` = yes; then
29597  cat >>confdefs.h <<_ACEOF
29598#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29599_ACEOF
29600
29601fi
29602
29603done
29604
29605
29606
29607
29608for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29609do
29610as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29611if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29612  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29613echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29615  echo $ECHO_N "(cached) $ECHO_C" >&6
29616fi
29617ac_res=`eval echo '${'$as_ac_Header'}'`
29618	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29619echo "${ECHO_T}$ac_res" >&6; }
29620else
29621  # Is the header compilable?
29622{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29623echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29624cat >conftest.$ac_ext <<_ACEOF
29625/* confdefs.h.  */
29626_ACEOF
29627cat confdefs.h >>conftest.$ac_ext
29628cat >>conftest.$ac_ext <<_ACEOF
29629/* end confdefs.h.  */
29630$ac_includes_default
29631#include <$ac_header>
29632_ACEOF
29633rm -f conftest.$ac_objext
29634if { (ac_try="$ac_compile"
29635case "(($ac_try" in
29636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29637  *) ac_try_echo=$ac_try;;
29638esac
29639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29640  (eval "$ac_compile") 2>conftest.er1
29641  ac_status=$?
29642  grep -v '^ *+' conftest.er1 >conftest.err
29643  rm -f conftest.er1
29644  cat conftest.err >&5
29645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29646  (exit $ac_status); } &&
29647	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29648  { (case "(($ac_try" in
29649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29650  *) ac_try_echo=$ac_try;;
29651esac
29652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29653  (eval "$ac_try") 2>&5
29654  ac_status=$?
29655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29656  (exit $ac_status); }; } &&
29657	 { ac_try='test -s conftest.$ac_objext'
29658  { (case "(($ac_try" in
29659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29660  *) ac_try_echo=$ac_try;;
29661esac
29662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29663  (eval "$ac_try") 2>&5
29664  ac_status=$?
29665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29666  (exit $ac_status); }; }; then
29667  ac_header_compiler=yes
29668else
29669  echo "$as_me: failed program was:" >&5
29670sed 's/^/| /' conftest.$ac_ext >&5
29671
29672	ac_header_compiler=no
29673fi
29674
29675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29676{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29677echo "${ECHO_T}$ac_header_compiler" >&6; }
29678
29679# Is the header present?
29680{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29681echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29682cat >conftest.$ac_ext <<_ACEOF
29683/* confdefs.h.  */
29684_ACEOF
29685cat confdefs.h >>conftest.$ac_ext
29686cat >>conftest.$ac_ext <<_ACEOF
29687/* end confdefs.h.  */
29688#include <$ac_header>
29689_ACEOF
29690if { (ac_try="$ac_cpp conftest.$ac_ext"
29691case "(($ac_try" in
29692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29693  *) ac_try_echo=$ac_try;;
29694esac
29695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29696  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29697  ac_status=$?
29698  grep -v '^ *+' conftest.er1 >conftest.err
29699  rm -f conftest.er1
29700  cat conftest.err >&5
29701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29702  (exit $ac_status); } >/dev/null; then
29703  if test -s conftest.err; then
29704    ac_cpp_err=$ac_c_preproc_warn_flag
29705    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29706  else
29707    ac_cpp_err=
29708  fi
29709else
29710  ac_cpp_err=yes
29711fi
29712if test -z "$ac_cpp_err"; then
29713  ac_header_preproc=yes
29714else
29715  echo "$as_me: failed program was:" >&5
29716sed 's/^/| /' conftest.$ac_ext >&5
29717
29718  ac_header_preproc=no
29719fi
29720
29721rm -f conftest.err conftest.$ac_ext
29722{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29723echo "${ECHO_T}$ac_header_preproc" >&6; }
29724
29725# So?  What about this header?
29726case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29727  yes:no: )
29728    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29729echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29730    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29731echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29732    ac_header_preproc=yes
29733    ;;
29734  no:yes:* )
29735    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29736echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29737    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29738echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29739    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29740echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29741    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29742echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29743    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29744echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29745    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29746echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29747    ( cat <<\_ASBOX
29748## ----------------------------------- ##
29749## Report this to llvmbugs@cs.uiuc.edu ##
29750## ----------------------------------- ##
29751_ASBOX
29752     ) | sed "s/^/$as_me: WARNING:     /" >&2
29753    ;;
29754esac
29755{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29757if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29758  echo $ECHO_N "(cached) $ECHO_C" >&6
29759else
29760  eval "$as_ac_Header=\$ac_header_preproc"
29761fi
29762ac_res=`eval echo '${'$as_ac_Header'}'`
29763	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29764echo "${ECHO_T}$ac_res" >&6; }
29765
29766fi
29767if test `eval echo '${'$as_ac_Header'}'` = yes; then
29768  cat >>confdefs.h <<_ACEOF
29769#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29770_ACEOF
29771
29772fi
29773
29774done
29775
29776if test "$ENABLE_THREADS" -eq 1 ; then
29777
29778for ac_header in pthread.h
29779do
29780as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29781if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29782  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29783echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29784if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29785  echo $ECHO_N "(cached) $ECHO_C" >&6
29786fi
29787ac_res=`eval echo '${'$as_ac_Header'}'`
29788	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29789echo "${ECHO_T}$ac_res" >&6; }
29790else
29791  # Is the header compilable?
29792{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29793echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29794cat >conftest.$ac_ext <<_ACEOF
29795/* confdefs.h.  */
29796_ACEOF
29797cat confdefs.h >>conftest.$ac_ext
29798cat >>conftest.$ac_ext <<_ACEOF
29799/* end confdefs.h.  */
29800$ac_includes_default
29801#include <$ac_header>
29802_ACEOF
29803rm -f conftest.$ac_objext
29804if { (ac_try="$ac_compile"
29805case "(($ac_try" in
29806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29807  *) ac_try_echo=$ac_try;;
29808esac
29809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29810  (eval "$ac_compile") 2>conftest.er1
29811  ac_status=$?
29812  grep -v '^ *+' conftest.er1 >conftest.err
29813  rm -f conftest.er1
29814  cat conftest.err >&5
29815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29816  (exit $ac_status); } &&
29817	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29818  { (case "(($ac_try" in
29819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29820  *) ac_try_echo=$ac_try;;
29821esac
29822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29823  (eval "$ac_try") 2>&5
29824  ac_status=$?
29825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826  (exit $ac_status); }; } &&
29827	 { ac_try='test -s conftest.$ac_objext'
29828  { (case "(($ac_try" in
29829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29830  *) ac_try_echo=$ac_try;;
29831esac
29832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29833  (eval "$ac_try") 2>&5
29834  ac_status=$?
29835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29836  (exit $ac_status); }; }; then
29837  ac_header_compiler=yes
29838else
29839  echo "$as_me: failed program was:" >&5
29840sed 's/^/| /' conftest.$ac_ext >&5
29841
29842	ac_header_compiler=no
29843fi
29844
29845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29846{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29847echo "${ECHO_T}$ac_header_compiler" >&6; }
29848
29849# Is the header present?
29850{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29851echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29852cat >conftest.$ac_ext <<_ACEOF
29853/* confdefs.h.  */
29854_ACEOF
29855cat confdefs.h >>conftest.$ac_ext
29856cat >>conftest.$ac_ext <<_ACEOF
29857/* end confdefs.h.  */
29858#include <$ac_header>
29859_ACEOF
29860if { (ac_try="$ac_cpp conftest.$ac_ext"
29861case "(($ac_try" in
29862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29863  *) ac_try_echo=$ac_try;;
29864esac
29865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29866  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29867  ac_status=$?
29868  grep -v '^ *+' conftest.er1 >conftest.err
29869  rm -f conftest.er1
29870  cat conftest.err >&5
29871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29872  (exit $ac_status); } >/dev/null; then
29873  if test -s conftest.err; then
29874    ac_cpp_err=$ac_c_preproc_warn_flag
29875    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29876  else
29877    ac_cpp_err=
29878  fi
29879else
29880  ac_cpp_err=yes
29881fi
29882if test -z "$ac_cpp_err"; then
29883  ac_header_preproc=yes
29884else
29885  echo "$as_me: failed program was:" >&5
29886sed 's/^/| /' conftest.$ac_ext >&5
29887
29888  ac_header_preproc=no
29889fi
29890
29891rm -f conftest.err conftest.$ac_ext
29892{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29893echo "${ECHO_T}$ac_header_preproc" >&6; }
29894
29895# So?  What about this header?
29896case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29897  yes:no: )
29898    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29899echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29900    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29901echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29902    ac_header_preproc=yes
29903    ;;
29904  no:yes:* )
29905    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29906echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29907    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29908echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29909    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29910echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29911    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29912echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29913    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29914echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29915    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29916echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29917    ( cat <<\_ASBOX
29918## ----------------------------------- ##
29919## Report this to llvmbugs@cs.uiuc.edu ##
29920## ----------------------------------- ##
29921_ASBOX
29922     ) | sed "s/^/$as_me: WARNING:     /" >&2
29923    ;;
29924esac
29925{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29926echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29927if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29928  echo $ECHO_N "(cached) $ECHO_C" >&6
29929else
29930  eval "$as_ac_Header=\$ac_header_preproc"
29931fi
29932ac_res=`eval echo '${'$as_ac_Header'}'`
29933	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29934echo "${ECHO_T}$ac_res" >&6; }
29935
29936fi
29937if test `eval echo '${'$as_ac_Header'}'` = yes; then
29938  cat >>confdefs.h <<_ACEOF
29939#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29940_ACEOF
29941 HAVE_PTHREAD=1
29942
29943else
29944  HAVE_PTHREAD=0
29945
29946fi
29947
29948done
29949
29950else
29951  HAVE_PTHREAD=0
29952
29953fi
29954
29955
29956
29957  { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29958echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29959if test "${ac_cv_huge_val_sanity+set}" = set; then
29960  echo $ECHO_N "(cached) $ECHO_C" >&6
29961else
29962
29963    ac_ext=cpp
29964ac_cpp='$CXXCPP $CPPFLAGS'
29965ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29966ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29967ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29968
29969    CXXFLAGS=-pedantic
29970    if test "$cross_compiling" = yes; then
29971  ac_cv_huge_val_sanity=yes
29972else
29973  cat >conftest.$ac_ext <<_ACEOF
29974/* confdefs.h.  */
29975_ACEOF
29976cat confdefs.h >>conftest.$ac_ext
29977cat >>conftest.$ac_ext <<_ACEOF
29978/* end confdefs.h.  */
29979#include <math.h>
29980int
29981main ()
29982{
29983double x = HUGE_VAL; return x != x;
29984  ;
29985  return 0;
29986}
29987_ACEOF
29988rm -f conftest$ac_exeext
29989if { (ac_try="$ac_link"
29990case "(($ac_try" in
29991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29992  *) ac_try_echo=$ac_try;;
29993esac
29994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29995  (eval "$ac_link") 2>&5
29996  ac_status=$?
29997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29998  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29999  { (case "(($ac_try" in
30000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30001  *) ac_try_echo=$ac_try;;
30002esac
30003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30004  (eval "$ac_try") 2>&5
30005  ac_status=$?
30006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30007  (exit $ac_status); }; }; then
30008  ac_cv_huge_val_sanity=yes
30009else
30010  echo "$as_me: program exited with status $ac_status" >&5
30011echo "$as_me: failed program was:" >&5
30012sed 's/^/| /' conftest.$ac_ext >&5
30013
30014( exit $ac_status )
30015ac_cv_huge_val_sanity=no
30016fi
30017rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30018fi
30019
30020
30021    ac_ext=c
30022ac_cpp='$CPP $CPPFLAGS'
30023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30025ac_compiler_gnu=$ac_cv_c_compiler_gnu
30026
30027
30028fi
30029{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30030echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30031  HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30032
30033
30034{ echo "$as_me:$LINENO: checking for pid_t" >&5
30035echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30036if test "${ac_cv_type_pid_t+set}" = set; then
30037  echo $ECHO_N "(cached) $ECHO_C" >&6
30038else
30039  cat >conftest.$ac_ext <<_ACEOF
30040/* confdefs.h.  */
30041_ACEOF
30042cat confdefs.h >>conftest.$ac_ext
30043cat >>conftest.$ac_ext <<_ACEOF
30044/* end confdefs.h.  */
30045$ac_includes_default
30046typedef pid_t ac__type_new_;
30047int
30048main ()
30049{
30050if ((ac__type_new_ *) 0)
30051  return 0;
30052if (sizeof (ac__type_new_))
30053  return 0;
30054  ;
30055  return 0;
30056}
30057_ACEOF
30058rm -f conftest.$ac_objext
30059if { (ac_try="$ac_compile"
30060case "(($ac_try" in
30061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30062  *) ac_try_echo=$ac_try;;
30063esac
30064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30065  (eval "$ac_compile") 2>conftest.er1
30066  ac_status=$?
30067  grep -v '^ *+' conftest.er1 >conftest.err
30068  rm -f conftest.er1
30069  cat conftest.err >&5
30070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30071  (exit $ac_status); } &&
30072	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30073  { (case "(($ac_try" in
30074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30075  *) ac_try_echo=$ac_try;;
30076esac
30077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30078  (eval "$ac_try") 2>&5
30079  ac_status=$?
30080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30081  (exit $ac_status); }; } &&
30082	 { ac_try='test -s conftest.$ac_objext'
30083  { (case "(($ac_try" in
30084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30085  *) ac_try_echo=$ac_try;;
30086esac
30087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30088  (eval "$ac_try") 2>&5
30089  ac_status=$?
30090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30091  (exit $ac_status); }; }; then
30092  ac_cv_type_pid_t=yes
30093else
30094  echo "$as_me: failed program was:" >&5
30095sed 's/^/| /' conftest.$ac_ext >&5
30096
30097	ac_cv_type_pid_t=no
30098fi
30099
30100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30101fi
30102{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30103echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30104if test $ac_cv_type_pid_t = yes; then
30105  :
30106else
30107
30108cat >>confdefs.h <<_ACEOF
30109#define pid_t int
30110_ACEOF
30111
30112fi
30113
30114{ echo "$as_me:$LINENO: checking for size_t" >&5
30115echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30116if test "${ac_cv_type_size_t+set}" = set; then
30117  echo $ECHO_N "(cached) $ECHO_C" >&6
30118else
30119  cat >conftest.$ac_ext <<_ACEOF
30120/* confdefs.h.  */
30121_ACEOF
30122cat confdefs.h >>conftest.$ac_ext
30123cat >>conftest.$ac_ext <<_ACEOF
30124/* end confdefs.h.  */
30125$ac_includes_default
30126typedef size_t ac__type_new_;
30127int
30128main ()
30129{
30130if ((ac__type_new_ *) 0)
30131  return 0;
30132if (sizeof (ac__type_new_))
30133  return 0;
30134  ;
30135  return 0;
30136}
30137_ACEOF
30138rm -f conftest.$ac_objext
30139if { (ac_try="$ac_compile"
30140case "(($ac_try" in
30141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30142  *) ac_try_echo=$ac_try;;
30143esac
30144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30145  (eval "$ac_compile") 2>conftest.er1
30146  ac_status=$?
30147  grep -v '^ *+' conftest.er1 >conftest.err
30148  rm -f conftest.er1
30149  cat conftest.err >&5
30150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151  (exit $ac_status); } &&
30152	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30153  { (case "(($ac_try" in
30154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30155  *) ac_try_echo=$ac_try;;
30156esac
30157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30158  (eval "$ac_try") 2>&5
30159  ac_status=$?
30160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30161  (exit $ac_status); }; } &&
30162	 { ac_try='test -s conftest.$ac_objext'
30163  { (case "(($ac_try" in
30164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30165  *) ac_try_echo=$ac_try;;
30166esac
30167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30168  (eval "$ac_try") 2>&5
30169  ac_status=$?
30170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30171  (exit $ac_status); }; }; then
30172  ac_cv_type_size_t=yes
30173else
30174  echo "$as_me: failed program was:" >&5
30175sed 's/^/| /' conftest.$ac_ext >&5
30176
30177	ac_cv_type_size_t=no
30178fi
30179
30180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30181fi
30182{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30183echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30184if test $ac_cv_type_size_t = yes; then
30185  :
30186else
30187
30188cat >>confdefs.h <<_ACEOF
30189#define size_t unsigned int
30190_ACEOF
30191
30192fi
30193
30194{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30195echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30196if test "${ac_cv_type_signal+set}" = set; then
30197  echo $ECHO_N "(cached) $ECHO_C" >&6
30198else
30199  cat >conftest.$ac_ext <<_ACEOF
30200/* confdefs.h.  */
30201_ACEOF
30202cat confdefs.h >>conftest.$ac_ext
30203cat >>conftest.$ac_ext <<_ACEOF
30204/* end confdefs.h.  */
30205#include <sys/types.h>
30206#include <signal.h>
30207
30208int
30209main ()
30210{
30211return *(signal (0, 0)) (0) == 1;
30212  ;
30213  return 0;
30214}
30215_ACEOF
30216rm -f conftest.$ac_objext
30217if { (ac_try="$ac_compile"
30218case "(($ac_try" in
30219  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30220  *) ac_try_echo=$ac_try;;
30221esac
30222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30223  (eval "$ac_compile") 2>conftest.er1
30224  ac_status=$?
30225  grep -v '^ *+' conftest.er1 >conftest.err
30226  rm -f conftest.er1
30227  cat conftest.err >&5
30228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30229  (exit $ac_status); } &&
30230	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30231  { (case "(($ac_try" in
30232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30233  *) ac_try_echo=$ac_try;;
30234esac
30235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30236  (eval "$ac_try") 2>&5
30237  ac_status=$?
30238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30239  (exit $ac_status); }; } &&
30240	 { ac_try='test -s conftest.$ac_objext'
30241  { (case "(($ac_try" in
30242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30243  *) ac_try_echo=$ac_try;;
30244esac
30245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30246  (eval "$ac_try") 2>&5
30247  ac_status=$?
30248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30249  (exit $ac_status); }; }; then
30250  ac_cv_type_signal=int
30251else
30252  echo "$as_me: failed program was:" >&5
30253sed 's/^/| /' conftest.$ac_ext >&5
30254
30255	ac_cv_type_signal=void
30256fi
30257
30258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30259fi
30260{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30261echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30262
30263cat >>confdefs.h <<_ACEOF
30264#define RETSIGTYPE $ac_cv_type_signal
30265_ACEOF
30266
30267
30268{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30269echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30270if test "${ac_cv_struct_tm+set}" = set; then
30271  echo $ECHO_N "(cached) $ECHO_C" >&6
30272else
30273  cat >conftest.$ac_ext <<_ACEOF
30274/* confdefs.h.  */
30275_ACEOF
30276cat confdefs.h >>conftest.$ac_ext
30277cat >>conftest.$ac_ext <<_ACEOF
30278/* end confdefs.h.  */
30279#include <sys/types.h>
30280#include <time.h>
30281
30282int
30283main ()
30284{
30285struct tm *tp; tp->tm_sec;
30286  ;
30287  return 0;
30288}
30289_ACEOF
30290rm -f conftest.$ac_objext
30291if { (ac_try="$ac_compile"
30292case "(($ac_try" in
30293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30294  *) ac_try_echo=$ac_try;;
30295esac
30296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30297  (eval "$ac_compile") 2>conftest.er1
30298  ac_status=$?
30299  grep -v '^ *+' conftest.er1 >conftest.err
30300  rm -f conftest.er1
30301  cat conftest.err >&5
30302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30303  (exit $ac_status); } &&
30304	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30305  { (case "(($ac_try" in
30306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30307  *) ac_try_echo=$ac_try;;
30308esac
30309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30310  (eval "$ac_try") 2>&5
30311  ac_status=$?
30312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30313  (exit $ac_status); }; } &&
30314	 { ac_try='test -s conftest.$ac_objext'
30315  { (case "(($ac_try" in
30316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30317  *) ac_try_echo=$ac_try;;
30318esac
30319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30320  (eval "$ac_try") 2>&5
30321  ac_status=$?
30322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30323  (exit $ac_status); }; }; then
30324  ac_cv_struct_tm=time.h
30325else
30326  echo "$as_me: failed program was:" >&5
30327sed 's/^/| /' conftest.$ac_ext >&5
30328
30329	ac_cv_struct_tm=sys/time.h
30330fi
30331
30332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30333fi
30334{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30335echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30336if test $ac_cv_struct_tm = sys/time.h; then
30337
30338cat >>confdefs.h <<\_ACEOF
30339#define TM_IN_SYS_TIME 1
30340_ACEOF
30341
30342fi
30343
30344{ echo "$as_me:$LINENO: checking for int64_t" >&5
30345echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30346if test "${ac_cv_type_int64_t+set}" = set; then
30347  echo $ECHO_N "(cached) $ECHO_C" >&6
30348else
30349  cat >conftest.$ac_ext <<_ACEOF
30350/* confdefs.h.  */
30351_ACEOF
30352cat confdefs.h >>conftest.$ac_ext
30353cat >>conftest.$ac_ext <<_ACEOF
30354/* end confdefs.h.  */
30355$ac_includes_default
30356typedef int64_t ac__type_new_;
30357int
30358main ()
30359{
30360if ((ac__type_new_ *) 0)
30361  return 0;
30362if (sizeof (ac__type_new_))
30363  return 0;
30364  ;
30365  return 0;
30366}
30367_ACEOF
30368rm -f conftest.$ac_objext
30369if { (ac_try="$ac_compile"
30370case "(($ac_try" in
30371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30372  *) ac_try_echo=$ac_try;;
30373esac
30374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30375  (eval "$ac_compile") 2>conftest.er1
30376  ac_status=$?
30377  grep -v '^ *+' conftest.er1 >conftest.err
30378  rm -f conftest.er1
30379  cat conftest.err >&5
30380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30381  (exit $ac_status); } &&
30382	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30383  { (case "(($ac_try" in
30384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30385  *) ac_try_echo=$ac_try;;
30386esac
30387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30388  (eval "$ac_try") 2>&5
30389  ac_status=$?
30390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30391  (exit $ac_status); }; } &&
30392	 { ac_try='test -s conftest.$ac_objext'
30393  { (case "(($ac_try" in
30394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30395  *) ac_try_echo=$ac_try;;
30396esac
30397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30398  (eval "$ac_try") 2>&5
30399  ac_status=$?
30400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30401  (exit $ac_status); }; }; then
30402  ac_cv_type_int64_t=yes
30403else
30404  echo "$as_me: failed program was:" >&5
30405sed 's/^/| /' conftest.$ac_ext >&5
30406
30407	ac_cv_type_int64_t=no
30408fi
30409
30410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30411fi
30412{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30413echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30414if test $ac_cv_type_int64_t = yes; then
30415
30416cat >>confdefs.h <<_ACEOF
30417#define HAVE_INT64_T 1
30418_ACEOF
30419
30420
30421else
30422  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30423echo "$as_me: error: Type int64_t required but not found" >&2;}
30424   { (exit 1); exit 1; }; }
30425fi
30426
30427{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30428echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30429if test "${ac_cv_type_uint64_t+set}" = set; then
30430  echo $ECHO_N "(cached) $ECHO_C" >&6
30431else
30432  cat >conftest.$ac_ext <<_ACEOF
30433/* confdefs.h.  */
30434_ACEOF
30435cat confdefs.h >>conftest.$ac_ext
30436cat >>conftest.$ac_ext <<_ACEOF
30437/* end confdefs.h.  */
30438$ac_includes_default
30439typedef uint64_t ac__type_new_;
30440int
30441main ()
30442{
30443if ((ac__type_new_ *) 0)
30444  return 0;
30445if (sizeof (ac__type_new_))
30446  return 0;
30447  ;
30448  return 0;
30449}
30450_ACEOF
30451rm -f conftest.$ac_objext
30452if { (ac_try="$ac_compile"
30453case "(($ac_try" in
30454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30455  *) ac_try_echo=$ac_try;;
30456esac
30457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30458  (eval "$ac_compile") 2>conftest.er1
30459  ac_status=$?
30460  grep -v '^ *+' conftest.er1 >conftest.err
30461  rm -f conftest.er1
30462  cat conftest.err >&5
30463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30464  (exit $ac_status); } &&
30465	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30466  { (case "(($ac_try" in
30467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30468  *) ac_try_echo=$ac_try;;
30469esac
30470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30471  (eval "$ac_try") 2>&5
30472  ac_status=$?
30473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30474  (exit $ac_status); }; } &&
30475	 { ac_try='test -s conftest.$ac_objext'
30476  { (case "(($ac_try" in
30477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30478  *) ac_try_echo=$ac_try;;
30479esac
30480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30481  (eval "$ac_try") 2>&5
30482  ac_status=$?
30483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30484  (exit $ac_status); }; }; then
30485  ac_cv_type_uint64_t=yes
30486else
30487  echo "$as_me: failed program was:" >&5
30488sed 's/^/| /' conftest.$ac_ext >&5
30489
30490	ac_cv_type_uint64_t=no
30491fi
30492
30493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30494fi
30495{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30496echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30497if test $ac_cv_type_uint64_t = yes; then
30498
30499cat >>confdefs.h <<_ACEOF
30500#define HAVE_UINT64_T 1
30501_ACEOF
30502
30503
30504else
30505  { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30506echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30507if test "${ac_cv_type_u_int64_t+set}" = set; then
30508  echo $ECHO_N "(cached) $ECHO_C" >&6
30509else
30510  cat >conftest.$ac_ext <<_ACEOF
30511/* confdefs.h.  */
30512_ACEOF
30513cat confdefs.h >>conftest.$ac_ext
30514cat >>conftest.$ac_ext <<_ACEOF
30515/* end confdefs.h.  */
30516$ac_includes_default
30517typedef u_int64_t ac__type_new_;
30518int
30519main ()
30520{
30521if ((ac__type_new_ *) 0)
30522  return 0;
30523if (sizeof (ac__type_new_))
30524  return 0;
30525  ;
30526  return 0;
30527}
30528_ACEOF
30529rm -f conftest.$ac_objext
30530if { (ac_try="$ac_compile"
30531case "(($ac_try" in
30532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30533  *) ac_try_echo=$ac_try;;
30534esac
30535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30536  (eval "$ac_compile") 2>conftest.er1
30537  ac_status=$?
30538  grep -v '^ *+' conftest.er1 >conftest.err
30539  rm -f conftest.er1
30540  cat conftest.err >&5
30541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30542  (exit $ac_status); } &&
30543	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30544  { (case "(($ac_try" in
30545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30546  *) ac_try_echo=$ac_try;;
30547esac
30548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30549  (eval "$ac_try") 2>&5
30550  ac_status=$?
30551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552  (exit $ac_status); }; } &&
30553	 { ac_try='test -s conftest.$ac_objext'
30554  { (case "(($ac_try" in
30555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30556  *) ac_try_echo=$ac_try;;
30557esac
30558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30559  (eval "$ac_try") 2>&5
30560  ac_status=$?
30561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30562  (exit $ac_status); }; }; then
30563  ac_cv_type_u_int64_t=yes
30564else
30565  echo "$as_me: failed program was:" >&5
30566sed 's/^/| /' conftest.$ac_ext >&5
30567
30568	ac_cv_type_u_int64_t=no
30569fi
30570
30571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30572fi
30573{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30574echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30575if test $ac_cv_type_u_int64_t = yes; then
30576
30577cat >>confdefs.h <<_ACEOF
30578#define HAVE_U_INT64_T 1
30579_ACEOF
30580
30581
30582else
30583  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30584echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30585   { (exit 1); exit 1; }; }
30586fi
30587
30588fi
30589
30590
30591
30592
30593
30594
30595
30596
30597
30598
30599for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30600do
30601as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30602{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30603echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30604if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30605  echo $ECHO_N "(cached) $ECHO_C" >&6
30606else
30607  cat >conftest.$ac_ext <<_ACEOF
30608/* confdefs.h.  */
30609_ACEOF
30610cat confdefs.h >>conftest.$ac_ext
30611cat >>conftest.$ac_ext <<_ACEOF
30612/* end confdefs.h.  */
30613/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30614   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30615#define $ac_func innocuous_$ac_func
30616
30617/* System header to define __stub macros and hopefully few prototypes,
30618    which can conflict with char $ac_func (); below.
30619    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30620    <limits.h> exists even on freestanding compilers.  */
30621
30622#ifdef __STDC__
30623# include <limits.h>
30624#else
30625# include <assert.h>
30626#endif
30627
30628#undef $ac_func
30629
30630/* Override any GCC internal prototype to avoid an error.
30631   Use char because int might match the return type of a GCC
30632   builtin and then its argument prototype would still apply.  */
30633#ifdef __cplusplus
30634extern "C"
30635#endif
30636char $ac_func ();
30637/* The GNU C library defines this for functions which it implements
30638    to always fail with ENOSYS.  Some functions are actually named
30639    something starting with __ and the normal name is an alias.  */
30640#if defined __stub_$ac_func || defined __stub___$ac_func
30641choke me
30642#endif
30643
30644int
30645main ()
30646{
30647return $ac_func ();
30648  ;
30649  return 0;
30650}
30651_ACEOF
30652rm -f conftest.$ac_objext conftest$ac_exeext
30653if { (ac_try="$ac_link"
30654case "(($ac_try" in
30655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30656  *) ac_try_echo=$ac_try;;
30657esac
30658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30659  (eval "$ac_link") 2>conftest.er1
30660  ac_status=$?
30661  grep -v '^ *+' conftest.er1 >conftest.err
30662  rm -f conftest.er1
30663  cat conftest.err >&5
30664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30665  (exit $ac_status); } &&
30666	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30667  { (case "(($ac_try" in
30668  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30669  *) ac_try_echo=$ac_try;;
30670esac
30671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30672  (eval "$ac_try") 2>&5
30673  ac_status=$?
30674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30675  (exit $ac_status); }; } &&
30676	 { ac_try='test -s conftest$ac_exeext'
30677  { (case "(($ac_try" in
30678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30679  *) ac_try_echo=$ac_try;;
30680esac
30681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30682  (eval "$ac_try") 2>&5
30683  ac_status=$?
30684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30685  (exit $ac_status); }; }; then
30686  eval "$as_ac_var=yes"
30687else
30688  echo "$as_me: failed program was:" >&5
30689sed 's/^/| /' conftest.$ac_ext >&5
30690
30691	eval "$as_ac_var=no"
30692fi
30693
30694rm -f core conftest.err conftest.$ac_objext \
30695      conftest$ac_exeext conftest.$ac_ext
30696fi
30697ac_res=`eval echo '${'$as_ac_var'}'`
30698	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30699echo "${ECHO_T}$ac_res" >&6; }
30700if test `eval echo '${'$as_ac_var'}'` = yes; then
30701  cat >>confdefs.h <<_ACEOF
30702#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30703_ACEOF
30704
30705fi
30706done
30707
30708
30709
30710
30711
30712for ac_func in powf fmodf strtof round
30713do
30714as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30715{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30716echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30717if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30718  echo $ECHO_N "(cached) $ECHO_C" >&6
30719else
30720  cat >conftest.$ac_ext <<_ACEOF
30721/* confdefs.h.  */
30722_ACEOF
30723cat confdefs.h >>conftest.$ac_ext
30724cat >>conftest.$ac_ext <<_ACEOF
30725/* end confdefs.h.  */
30726/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30727   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30728#define $ac_func innocuous_$ac_func
30729
30730/* System header to define __stub macros and hopefully few prototypes,
30731    which can conflict with char $ac_func (); below.
30732    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30733    <limits.h> exists even on freestanding compilers.  */
30734
30735#ifdef __STDC__
30736# include <limits.h>
30737#else
30738# include <assert.h>
30739#endif
30740
30741#undef $ac_func
30742
30743/* Override any GCC internal prototype to avoid an error.
30744   Use char because int might match the return type of a GCC
30745   builtin and then its argument prototype would still apply.  */
30746#ifdef __cplusplus
30747extern "C"
30748#endif
30749char $ac_func ();
30750/* The GNU C library defines this for functions which it implements
30751    to always fail with ENOSYS.  Some functions are actually named
30752    something starting with __ and the normal name is an alias.  */
30753#if defined __stub_$ac_func || defined __stub___$ac_func
30754choke me
30755#endif
30756
30757int
30758main ()
30759{
30760return $ac_func ();
30761  ;
30762  return 0;
30763}
30764_ACEOF
30765rm -f conftest.$ac_objext conftest$ac_exeext
30766if { (ac_try="$ac_link"
30767case "(($ac_try" in
30768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30769  *) ac_try_echo=$ac_try;;
30770esac
30771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30772  (eval "$ac_link") 2>conftest.er1
30773  ac_status=$?
30774  grep -v '^ *+' conftest.er1 >conftest.err
30775  rm -f conftest.er1
30776  cat conftest.err >&5
30777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30778  (exit $ac_status); } &&
30779	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30780  { (case "(($ac_try" in
30781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30782  *) ac_try_echo=$ac_try;;
30783esac
30784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30785  (eval "$ac_try") 2>&5
30786  ac_status=$?
30787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30788  (exit $ac_status); }; } &&
30789	 { ac_try='test -s conftest$ac_exeext'
30790  { (case "(($ac_try" in
30791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30792  *) ac_try_echo=$ac_try;;
30793esac
30794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30795  (eval "$ac_try") 2>&5
30796  ac_status=$?
30797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30798  (exit $ac_status); }; }; then
30799  eval "$as_ac_var=yes"
30800else
30801  echo "$as_me: failed program was:" >&5
30802sed 's/^/| /' conftest.$ac_ext >&5
30803
30804	eval "$as_ac_var=no"
30805fi
30806
30807rm -f core conftest.err conftest.$ac_objext \
30808      conftest$ac_exeext conftest.$ac_ext
30809fi
30810ac_res=`eval echo '${'$as_ac_var'}'`
30811	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30812echo "${ECHO_T}$ac_res" >&6; }
30813if test `eval echo '${'$as_ac_var'}'` = yes; then
30814  cat >>confdefs.h <<_ACEOF
30815#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30816_ACEOF
30817
30818fi
30819done
30820
30821
30822
30823
30824
30825
30826for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30827do
30828as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30829{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30830echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30831if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30832  echo $ECHO_N "(cached) $ECHO_C" >&6
30833else
30834  cat >conftest.$ac_ext <<_ACEOF
30835/* confdefs.h.  */
30836_ACEOF
30837cat confdefs.h >>conftest.$ac_ext
30838cat >>conftest.$ac_ext <<_ACEOF
30839/* end confdefs.h.  */
30840/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30841   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30842#define $ac_func innocuous_$ac_func
30843
30844/* System header to define __stub macros and hopefully few prototypes,
30845    which can conflict with char $ac_func (); below.
30846    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30847    <limits.h> exists even on freestanding compilers.  */
30848
30849#ifdef __STDC__
30850# include <limits.h>
30851#else
30852# include <assert.h>
30853#endif
30854
30855#undef $ac_func
30856
30857/* Override any GCC internal prototype to avoid an error.
30858   Use char because int might match the return type of a GCC
30859   builtin and then its argument prototype would still apply.  */
30860#ifdef __cplusplus
30861extern "C"
30862#endif
30863char $ac_func ();
30864/* The GNU C library defines this for functions which it implements
30865    to always fail with ENOSYS.  Some functions are actually named
30866    something starting with __ and the normal name is an alias.  */
30867#if defined __stub_$ac_func || defined __stub___$ac_func
30868choke me
30869#endif
30870
30871int
30872main ()
30873{
30874return $ac_func ();
30875  ;
30876  return 0;
30877}
30878_ACEOF
30879rm -f conftest.$ac_objext conftest$ac_exeext
30880if { (ac_try="$ac_link"
30881case "(($ac_try" in
30882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30883  *) ac_try_echo=$ac_try;;
30884esac
30885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30886  (eval "$ac_link") 2>conftest.er1
30887  ac_status=$?
30888  grep -v '^ *+' conftest.er1 >conftest.err
30889  rm -f conftest.er1
30890  cat conftest.err >&5
30891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30892  (exit $ac_status); } &&
30893	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30894  { (case "(($ac_try" in
30895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30896  *) ac_try_echo=$ac_try;;
30897esac
30898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30899  (eval "$ac_try") 2>&5
30900  ac_status=$?
30901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30902  (exit $ac_status); }; } &&
30903	 { ac_try='test -s conftest$ac_exeext'
30904  { (case "(($ac_try" in
30905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30906  *) ac_try_echo=$ac_try;;
30907esac
30908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30909  (eval "$ac_try") 2>&5
30910  ac_status=$?
30911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30912  (exit $ac_status); }; }; then
30913  eval "$as_ac_var=yes"
30914else
30915  echo "$as_me: failed program was:" >&5
30916sed 's/^/| /' conftest.$ac_ext >&5
30917
30918	eval "$as_ac_var=no"
30919fi
30920
30921rm -f core conftest.err conftest.$ac_objext \
30922      conftest$ac_exeext conftest.$ac_ext
30923fi
30924ac_res=`eval echo '${'$as_ac_var'}'`
30925	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30926echo "${ECHO_T}$ac_res" >&6; }
30927if test `eval echo '${'$as_ac_var'}'` = yes; then
30928  cat >>confdefs.h <<_ACEOF
30929#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30930_ACEOF
30931
30932fi
30933done
30934
30935
30936
30937
30938for ac_func in isatty mkdtemp mkstemp
30939do
30940as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30941{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30942echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30943if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30944  echo $ECHO_N "(cached) $ECHO_C" >&6
30945else
30946  cat >conftest.$ac_ext <<_ACEOF
30947/* confdefs.h.  */
30948_ACEOF
30949cat confdefs.h >>conftest.$ac_ext
30950cat >>conftest.$ac_ext <<_ACEOF
30951/* end confdefs.h.  */
30952/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30953   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30954#define $ac_func innocuous_$ac_func
30955
30956/* System header to define __stub macros and hopefully few prototypes,
30957    which can conflict with char $ac_func (); below.
30958    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30959    <limits.h> exists even on freestanding compilers.  */
30960
30961#ifdef __STDC__
30962# include <limits.h>
30963#else
30964# include <assert.h>
30965#endif
30966
30967#undef $ac_func
30968
30969/* Override any GCC internal prototype to avoid an error.
30970   Use char because int might match the return type of a GCC
30971   builtin and then its argument prototype would still apply.  */
30972#ifdef __cplusplus
30973extern "C"
30974#endif
30975char $ac_func ();
30976/* The GNU C library defines this for functions which it implements
30977    to always fail with ENOSYS.  Some functions are actually named
30978    something starting with __ and the normal name is an alias.  */
30979#if defined __stub_$ac_func || defined __stub___$ac_func
30980choke me
30981#endif
30982
30983int
30984main ()
30985{
30986return $ac_func ();
30987  ;
30988  return 0;
30989}
30990_ACEOF
30991rm -f conftest.$ac_objext conftest$ac_exeext
30992if { (ac_try="$ac_link"
30993case "(($ac_try" in
30994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30995  *) ac_try_echo=$ac_try;;
30996esac
30997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30998  (eval "$ac_link") 2>conftest.er1
30999  ac_status=$?
31000  grep -v '^ *+' conftest.er1 >conftest.err
31001  rm -f conftest.er1
31002  cat conftest.err >&5
31003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31004  (exit $ac_status); } &&
31005	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31006  { (case "(($ac_try" in
31007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31008  *) ac_try_echo=$ac_try;;
31009esac
31010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31011  (eval "$ac_try") 2>&5
31012  ac_status=$?
31013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31014  (exit $ac_status); }; } &&
31015	 { ac_try='test -s conftest$ac_exeext'
31016  { (case "(($ac_try" in
31017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31018  *) ac_try_echo=$ac_try;;
31019esac
31020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31021  (eval "$ac_try") 2>&5
31022  ac_status=$?
31023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31024  (exit $ac_status); }; }; then
31025  eval "$as_ac_var=yes"
31026else
31027  echo "$as_me: failed program was:" >&5
31028sed 's/^/| /' conftest.$ac_ext >&5
31029
31030	eval "$as_ac_var=no"
31031fi
31032
31033rm -f core conftest.err conftest.$ac_objext \
31034      conftest$ac_exeext conftest.$ac_ext
31035fi
31036ac_res=`eval echo '${'$as_ac_var'}'`
31037	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31038echo "${ECHO_T}$ac_res" >&6; }
31039if test `eval echo '${'$as_ac_var'}'` = yes; then
31040  cat >>confdefs.h <<_ACEOF
31041#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31042_ACEOF
31043
31044fi
31045done
31046
31047
31048
31049
31050
31051
31052
31053
31054for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31055do
31056as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31057{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31058echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31059if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31060  echo $ECHO_N "(cached) $ECHO_C" >&6
31061else
31062  cat >conftest.$ac_ext <<_ACEOF
31063/* confdefs.h.  */
31064_ACEOF
31065cat confdefs.h >>conftest.$ac_ext
31066cat >>conftest.$ac_ext <<_ACEOF
31067/* end confdefs.h.  */
31068/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31069   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31070#define $ac_func innocuous_$ac_func
31071
31072/* System header to define __stub macros and hopefully few prototypes,
31073    which can conflict with char $ac_func (); below.
31074    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31075    <limits.h> exists even on freestanding compilers.  */
31076
31077#ifdef __STDC__
31078# include <limits.h>
31079#else
31080# include <assert.h>
31081#endif
31082
31083#undef $ac_func
31084
31085/* Override any GCC internal prototype to avoid an error.
31086   Use char because int might match the return type of a GCC
31087   builtin and then its argument prototype would still apply.  */
31088#ifdef __cplusplus
31089extern "C"
31090#endif
31091char $ac_func ();
31092/* The GNU C library defines this for functions which it implements
31093    to always fail with ENOSYS.  Some functions are actually named
31094    something starting with __ and the normal name is an alias.  */
31095#if defined __stub_$ac_func || defined __stub___$ac_func
31096choke me
31097#endif
31098
31099int
31100main ()
31101{
31102return $ac_func ();
31103  ;
31104  return 0;
31105}
31106_ACEOF
31107rm -f conftest.$ac_objext conftest$ac_exeext
31108if { (ac_try="$ac_link"
31109case "(($ac_try" in
31110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31111  *) ac_try_echo=$ac_try;;
31112esac
31113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31114  (eval "$ac_link") 2>conftest.er1
31115  ac_status=$?
31116  grep -v '^ *+' conftest.er1 >conftest.err
31117  rm -f conftest.er1
31118  cat conftest.err >&5
31119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31120  (exit $ac_status); } &&
31121	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31122  { (case "(($ac_try" in
31123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31124  *) ac_try_echo=$ac_try;;
31125esac
31126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31127  (eval "$ac_try") 2>&5
31128  ac_status=$?
31129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31130  (exit $ac_status); }; } &&
31131	 { ac_try='test -s conftest$ac_exeext'
31132  { (case "(($ac_try" in
31133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31134  *) ac_try_echo=$ac_try;;
31135esac
31136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31137  (eval "$ac_try") 2>&5
31138  ac_status=$?
31139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31140  (exit $ac_status); }; }; then
31141  eval "$as_ac_var=yes"
31142else
31143  echo "$as_me: failed program was:" >&5
31144sed 's/^/| /' conftest.$ac_ext >&5
31145
31146	eval "$as_ac_var=no"
31147fi
31148
31149rm -f core conftest.err conftest.$ac_objext \
31150      conftest$ac_exeext conftest.$ac_ext
31151fi
31152ac_res=`eval echo '${'$as_ac_var'}'`
31153	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31154echo "${ECHO_T}$ac_res" >&6; }
31155if test `eval echo '${'$as_ac_var'}'` = yes; then
31156  cat >>confdefs.h <<_ACEOF
31157#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31158_ACEOF
31159
31160fi
31161done
31162
31163
31164
31165
31166
31167for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31168do
31169as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31170{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31171echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31172if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31173  echo $ECHO_N "(cached) $ECHO_C" >&6
31174else
31175  cat >conftest.$ac_ext <<_ACEOF
31176/* confdefs.h.  */
31177_ACEOF
31178cat confdefs.h >>conftest.$ac_ext
31179cat >>conftest.$ac_ext <<_ACEOF
31180/* end confdefs.h.  */
31181/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31182   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31183#define $ac_func innocuous_$ac_func
31184
31185/* System header to define __stub macros and hopefully few prototypes,
31186    which can conflict with char $ac_func (); below.
31187    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31188    <limits.h> exists even on freestanding compilers.  */
31189
31190#ifdef __STDC__
31191# include <limits.h>
31192#else
31193# include <assert.h>
31194#endif
31195
31196#undef $ac_func
31197
31198/* Override any GCC internal prototype to avoid an error.
31199   Use char because int might match the return type of a GCC
31200   builtin and then its argument prototype would still apply.  */
31201#ifdef __cplusplus
31202extern "C"
31203#endif
31204char $ac_func ();
31205/* The GNU C library defines this for functions which it implements
31206    to always fail with ENOSYS.  Some functions are actually named
31207    something starting with __ and the normal name is an alias.  */
31208#if defined __stub_$ac_func || defined __stub___$ac_func
31209choke me
31210#endif
31211
31212int
31213main ()
31214{
31215return $ac_func ();
31216  ;
31217  return 0;
31218}
31219_ACEOF
31220rm -f conftest.$ac_objext conftest$ac_exeext
31221if { (ac_try="$ac_link"
31222case "(($ac_try" in
31223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31224  *) ac_try_echo=$ac_try;;
31225esac
31226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31227  (eval "$ac_link") 2>conftest.er1
31228  ac_status=$?
31229  grep -v '^ *+' conftest.er1 >conftest.err
31230  rm -f conftest.er1
31231  cat conftest.err >&5
31232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31233  (exit $ac_status); } &&
31234	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31235  { (case "(($ac_try" in
31236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31237  *) ac_try_echo=$ac_try;;
31238esac
31239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31240  (eval "$ac_try") 2>&5
31241  ac_status=$?
31242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31243  (exit $ac_status); }; } &&
31244	 { ac_try='test -s conftest$ac_exeext'
31245  { (case "(($ac_try" in
31246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31247  *) ac_try_echo=$ac_try;;
31248esac
31249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31250  (eval "$ac_try") 2>&5
31251  ac_status=$?
31252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31253  (exit $ac_status); }; }; then
31254  eval "$as_ac_var=yes"
31255else
31256  echo "$as_me: failed program was:" >&5
31257sed 's/^/| /' conftest.$ac_ext >&5
31258
31259	eval "$as_ac_var=no"
31260fi
31261
31262rm -f core conftest.err conftest.$ac_objext \
31263      conftest$ac_exeext conftest.$ac_ext
31264fi
31265ac_res=`eval echo '${'$as_ac_var'}'`
31266	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31267echo "${ECHO_T}$ac_res" >&6; }
31268if test `eval echo '${'$as_ac_var'}'` = yes; then
31269  cat >>confdefs.h <<_ACEOF
31270#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31271_ACEOF
31272
31273fi
31274done
31275
31276
31277
31278
31279
31280for ac_func in setjmp longjmp sigsetjmp siglongjmp
31281do
31282as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31283{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31284echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31285if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31286  echo $ECHO_N "(cached) $ECHO_C" >&6
31287else
31288  cat >conftest.$ac_ext <<_ACEOF
31289/* confdefs.h.  */
31290_ACEOF
31291cat confdefs.h >>conftest.$ac_ext
31292cat >>conftest.$ac_ext <<_ACEOF
31293/* end confdefs.h.  */
31294/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31295   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31296#define $ac_func innocuous_$ac_func
31297
31298/* System header to define __stub macros and hopefully few prototypes,
31299    which can conflict with char $ac_func (); below.
31300    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31301    <limits.h> exists even on freestanding compilers.  */
31302
31303#ifdef __STDC__
31304# include <limits.h>
31305#else
31306# include <assert.h>
31307#endif
31308
31309#undef $ac_func
31310
31311/* Override any GCC internal prototype to avoid an error.
31312   Use char because int might match the return type of a GCC
31313   builtin and then its argument prototype would still apply.  */
31314#ifdef __cplusplus
31315extern "C"
31316#endif
31317char $ac_func ();
31318/* The GNU C library defines this for functions which it implements
31319    to always fail with ENOSYS.  Some functions are actually named
31320    something starting with __ and the normal name is an alias.  */
31321#if defined __stub_$ac_func || defined __stub___$ac_func
31322choke me
31323#endif
31324
31325int
31326main ()
31327{
31328return $ac_func ();
31329  ;
31330  return 0;
31331}
31332_ACEOF
31333rm -f conftest.$ac_objext conftest$ac_exeext
31334if { (ac_try="$ac_link"
31335case "(($ac_try" in
31336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31337  *) ac_try_echo=$ac_try;;
31338esac
31339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31340  (eval "$ac_link") 2>conftest.er1
31341  ac_status=$?
31342  grep -v '^ *+' conftest.er1 >conftest.err
31343  rm -f conftest.er1
31344  cat conftest.err >&5
31345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31346  (exit $ac_status); } &&
31347	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31348  { (case "(($ac_try" in
31349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31350  *) ac_try_echo=$ac_try;;
31351esac
31352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31353  (eval "$ac_try") 2>&5
31354  ac_status=$?
31355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31356  (exit $ac_status); }; } &&
31357	 { ac_try='test -s conftest$ac_exeext'
31358  { (case "(($ac_try" in
31359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31360  *) ac_try_echo=$ac_try;;
31361esac
31362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31363  (eval "$ac_try") 2>&5
31364  ac_status=$?
31365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31366  (exit $ac_status); }; }; then
31367  eval "$as_ac_var=yes"
31368else
31369  echo "$as_me: failed program was:" >&5
31370sed 's/^/| /' conftest.$ac_ext >&5
31371
31372	eval "$as_ac_var=no"
31373fi
31374
31375rm -f core conftest.err conftest.$ac_objext \
31376      conftest$ac_exeext conftest.$ac_ext
31377fi
31378ac_res=`eval echo '${'$as_ac_var'}'`
31379	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31380echo "${ECHO_T}$ac_res" >&6; }
31381if test `eval echo '${'$as_ac_var'}'` = yes; then
31382  cat >>confdefs.h <<_ACEOF
31383#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31384_ACEOF
31385
31386fi
31387done
31388
31389{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31390echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31391if test "${llvm_cv_c_printf_a+set}" = set; then
31392  echo $ECHO_N "(cached) $ECHO_C" >&6
31393else
31394  ac_ext=c
31395ac_cpp='$CPP $CPPFLAGS'
31396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31398ac_compiler_gnu=$ac_cv_c_compiler_gnu
31399
31400 if test "$cross_compiling" = yes; then
31401  llvmac_cv_c_printf_a=no
31402else
31403  cat >conftest.$ac_ext <<_ACEOF
31404
31405  /* confdefs.h.  */
31406_ACEOF
31407cat confdefs.h >>conftest.$ac_ext
31408cat >>conftest.$ac_ext <<_ACEOF
31409/* end confdefs.h.  */
31410
31411#include <stdio.h>
31412#include <stdlib.h>
31413
31414int
31415main ()
31416{
31417
31418volatile double A, B;
31419char Buffer[100];
31420A = 1;
31421A /= 10.0;
31422sprintf(Buffer, "%a", A);
31423B = atof(Buffer);
31424if (A != B)
31425  return (1);
31426if (A != 0x1.999999999999ap-4)
31427  return (1);
31428return (0);
31429  ;
31430  return 0;
31431}
31432_ACEOF
31433rm -f conftest$ac_exeext
31434if { (ac_try="$ac_link"
31435case "(($ac_try" in
31436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31437  *) ac_try_echo=$ac_try;;
31438esac
31439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31440  (eval "$ac_link") 2>&5
31441  ac_status=$?
31442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31443  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31444  { (case "(($ac_try" in
31445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31446  *) ac_try_echo=$ac_try;;
31447esac
31448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31449  (eval "$ac_try") 2>&5
31450  ac_status=$?
31451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31452  (exit $ac_status); }; }; then
31453  llvm_cv_c_printf_a=yes
31454else
31455  echo "$as_me: program exited with status $ac_status" >&5
31456echo "$as_me: failed program was:" >&5
31457sed 's/^/| /' conftest.$ac_ext >&5
31458
31459( exit $ac_status )
31460llvmac_cv_c_printf_a=no
31461fi
31462rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31463fi
31464
31465
31466 ac_ext=c
31467ac_cpp='$CPP $CPPFLAGS'
31468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31470ac_compiler_gnu=$ac_cv_c_compiler_gnu
31471
31472fi
31473{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31474echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31475 if test "$llvm_cv_c_printf_a" = "yes"; then
31476
31477cat >>confdefs.h <<\_ACEOF
31478#define HAVE_PRINTF_A 1
31479_ACEOF
31480
31481 fi
31482
31483# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31484# for constant arguments.  Useless!
31485{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31486echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31487if test "${ac_cv_working_alloca_h+set}" = set; then
31488  echo $ECHO_N "(cached) $ECHO_C" >&6
31489else
31490  cat >conftest.$ac_ext <<_ACEOF
31491/* confdefs.h.  */
31492_ACEOF
31493cat confdefs.h >>conftest.$ac_ext
31494cat >>conftest.$ac_ext <<_ACEOF
31495/* end confdefs.h.  */
31496#include <alloca.h>
31497int
31498main ()
31499{
31500char *p = (char *) alloca (2 * sizeof (int));
31501			  if (p) return 0;
31502  ;
31503  return 0;
31504}
31505_ACEOF
31506rm -f conftest.$ac_objext conftest$ac_exeext
31507if { (ac_try="$ac_link"
31508case "(($ac_try" in
31509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31510  *) ac_try_echo=$ac_try;;
31511esac
31512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31513  (eval "$ac_link") 2>conftest.er1
31514  ac_status=$?
31515  grep -v '^ *+' conftest.er1 >conftest.err
31516  rm -f conftest.er1
31517  cat conftest.err >&5
31518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31519  (exit $ac_status); } &&
31520	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31521  { (case "(($ac_try" in
31522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31523  *) ac_try_echo=$ac_try;;
31524esac
31525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31526  (eval "$ac_try") 2>&5
31527  ac_status=$?
31528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31529  (exit $ac_status); }; } &&
31530	 { ac_try='test -s conftest$ac_exeext'
31531  { (case "(($ac_try" in
31532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31533  *) ac_try_echo=$ac_try;;
31534esac
31535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31536  (eval "$ac_try") 2>&5
31537  ac_status=$?
31538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31539  (exit $ac_status); }; }; then
31540  ac_cv_working_alloca_h=yes
31541else
31542  echo "$as_me: failed program was:" >&5
31543sed 's/^/| /' conftest.$ac_ext >&5
31544
31545	ac_cv_working_alloca_h=no
31546fi
31547
31548rm -f core conftest.err conftest.$ac_objext \
31549      conftest$ac_exeext conftest.$ac_ext
31550fi
31551{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31552echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31553if test $ac_cv_working_alloca_h = yes; then
31554
31555cat >>confdefs.h <<\_ACEOF
31556#define HAVE_ALLOCA_H 1
31557_ACEOF
31558
31559fi
31560
31561{ echo "$as_me:$LINENO: checking for alloca" >&5
31562echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31563if test "${ac_cv_func_alloca_works+set}" = set; then
31564  echo $ECHO_N "(cached) $ECHO_C" >&6
31565else
31566  cat >conftest.$ac_ext <<_ACEOF
31567/* confdefs.h.  */
31568_ACEOF
31569cat confdefs.h >>conftest.$ac_ext
31570cat >>conftest.$ac_ext <<_ACEOF
31571/* end confdefs.h.  */
31572#ifdef __GNUC__
31573# define alloca __builtin_alloca
31574#else
31575# ifdef _MSC_VER
31576#  include <malloc.h>
31577#  define alloca _alloca
31578# else
31579#  if HAVE_ALLOCA_H
31580#   include <alloca.h>
31581#  else
31582#   ifdef _AIX
31583 #pragma alloca
31584#   else
31585#    ifndef alloca /* predefined by HP cc +Olibcalls */
31586char *alloca ();
31587#    endif
31588#   endif
31589#  endif
31590# endif
31591#endif
31592
31593int
31594main ()
31595{
31596char *p = (char *) alloca (1);
31597				    if (p) return 0;
31598  ;
31599  return 0;
31600}
31601_ACEOF
31602rm -f conftest.$ac_objext conftest$ac_exeext
31603if { (ac_try="$ac_link"
31604case "(($ac_try" in
31605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31606  *) ac_try_echo=$ac_try;;
31607esac
31608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31609  (eval "$ac_link") 2>conftest.er1
31610  ac_status=$?
31611  grep -v '^ *+' conftest.er1 >conftest.err
31612  rm -f conftest.er1
31613  cat conftest.err >&5
31614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31615  (exit $ac_status); } &&
31616	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31617  { (case "(($ac_try" in
31618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31619  *) ac_try_echo=$ac_try;;
31620esac
31621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31622  (eval "$ac_try") 2>&5
31623  ac_status=$?
31624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31625  (exit $ac_status); }; } &&
31626	 { ac_try='test -s conftest$ac_exeext'
31627  { (case "(($ac_try" in
31628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31629  *) ac_try_echo=$ac_try;;
31630esac
31631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31632  (eval "$ac_try") 2>&5
31633  ac_status=$?
31634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31635  (exit $ac_status); }; }; then
31636  ac_cv_func_alloca_works=yes
31637else
31638  echo "$as_me: failed program was:" >&5
31639sed 's/^/| /' conftest.$ac_ext >&5
31640
31641	ac_cv_func_alloca_works=no
31642fi
31643
31644rm -f core conftest.err conftest.$ac_objext \
31645      conftest$ac_exeext conftest.$ac_ext
31646fi
31647{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31648echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31649
31650if test $ac_cv_func_alloca_works = yes; then
31651
31652cat >>confdefs.h <<\_ACEOF
31653#define HAVE_ALLOCA 1
31654_ACEOF
31655
31656else
31657  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31658# that cause trouble.  Some versions do not even contain alloca or
31659# contain a buggy version.  If you still want to use their alloca,
31660# use ar to extract alloca.o from them instead of compiling alloca.c.
31661
31662ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31663
31664cat >>confdefs.h <<\_ACEOF
31665#define C_ALLOCA 1
31666_ACEOF
31667
31668
31669{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31670echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31671if test "${ac_cv_os_cray+set}" = set; then
31672  echo $ECHO_N "(cached) $ECHO_C" >&6
31673else
31674  cat >conftest.$ac_ext <<_ACEOF
31675/* confdefs.h.  */
31676_ACEOF
31677cat confdefs.h >>conftest.$ac_ext
31678cat >>conftest.$ac_ext <<_ACEOF
31679/* end confdefs.h.  */
31680#if defined CRAY && ! defined CRAY2
31681webecray
31682#else
31683wenotbecray
31684#endif
31685
31686_ACEOF
31687if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31688  $EGREP "webecray" >/dev/null 2>&1; then
31689  ac_cv_os_cray=yes
31690else
31691  ac_cv_os_cray=no
31692fi
31693rm -f conftest*
31694
31695fi
31696{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31697echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31698if test $ac_cv_os_cray = yes; then
31699  for ac_func in _getb67 GETB67 getb67; do
31700    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31701{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31702echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31703if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31704  echo $ECHO_N "(cached) $ECHO_C" >&6
31705else
31706  cat >conftest.$ac_ext <<_ACEOF
31707/* confdefs.h.  */
31708_ACEOF
31709cat confdefs.h >>conftest.$ac_ext
31710cat >>conftest.$ac_ext <<_ACEOF
31711/* end confdefs.h.  */
31712/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31713   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31714#define $ac_func innocuous_$ac_func
31715
31716/* System header to define __stub macros and hopefully few prototypes,
31717    which can conflict with char $ac_func (); below.
31718    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31719    <limits.h> exists even on freestanding compilers.  */
31720
31721#ifdef __STDC__
31722# include <limits.h>
31723#else
31724# include <assert.h>
31725#endif
31726
31727#undef $ac_func
31728
31729/* Override any GCC internal prototype to avoid an error.
31730   Use char because int might match the return type of a GCC
31731   builtin and then its argument prototype would still apply.  */
31732#ifdef __cplusplus
31733extern "C"
31734#endif
31735char $ac_func ();
31736/* The GNU C library defines this for functions which it implements
31737    to always fail with ENOSYS.  Some functions are actually named
31738    something starting with __ and the normal name is an alias.  */
31739#if defined __stub_$ac_func || defined __stub___$ac_func
31740choke me
31741#endif
31742
31743int
31744main ()
31745{
31746return $ac_func ();
31747  ;
31748  return 0;
31749}
31750_ACEOF
31751rm -f conftest.$ac_objext conftest$ac_exeext
31752if { (ac_try="$ac_link"
31753case "(($ac_try" in
31754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31755  *) ac_try_echo=$ac_try;;
31756esac
31757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31758  (eval "$ac_link") 2>conftest.er1
31759  ac_status=$?
31760  grep -v '^ *+' conftest.er1 >conftest.err
31761  rm -f conftest.er1
31762  cat conftest.err >&5
31763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31764  (exit $ac_status); } &&
31765	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31766  { (case "(($ac_try" in
31767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31768  *) ac_try_echo=$ac_try;;
31769esac
31770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31771  (eval "$ac_try") 2>&5
31772  ac_status=$?
31773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31774  (exit $ac_status); }; } &&
31775	 { ac_try='test -s conftest$ac_exeext'
31776  { (case "(($ac_try" in
31777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31778  *) ac_try_echo=$ac_try;;
31779esac
31780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31781  (eval "$ac_try") 2>&5
31782  ac_status=$?
31783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31784  (exit $ac_status); }; }; then
31785  eval "$as_ac_var=yes"
31786else
31787  echo "$as_me: failed program was:" >&5
31788sed 's/^/| /' conftest.$ac_ext >&5
31789
31790	eval "$as_ac_var=no"
31791fi
31792
31793rm -f core conftest.err conftest.$ac_objext \
31794      conftest$ac_exeext conftest.$ac_ext
31795fi
31796ac_res=`eval echo '${'$as_ac_var'}'`
31797	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31798echo "${ECHO_T}$ac_res" >&6; }
31799if test `eval echo '${'$as_ac_var'}'` = yes; then
31800
31801cat >>confdefs.h <<_ACEOF
31802#define CRAY_STACKSEG_END $ac_func
31803_ACEOF
31804
31805    break
31806fi
31807
31808  done
31809fi
31810
31811{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31812echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31813if test "${ac_cv_c_stack_direction+set}" = set; then
31814  echo $ECHO_N "(cached) $ECHO_C" >&6
31815else
31816  if test "$cross_compiling" = yes; then
31817  ac_cv_c_stack_direction=0
31818else
31819  cat >conftest.$ac_ext <<_ACEOF
31820/* confdefs.h.  */
31821_ACEOF
31822cat confdefs.h >>conftest.$ac_ext
31823cat >>conftest.$ac_ext <<_ACEOF
31824/* end confdefs.h.  */
31825$ac_includes_default
31826int
31827find_stack_direction ()
31828{
31829  static char *addr = 0;
31830  auto char dummy;
31831  if (addr == 0)
31832    {
31833      addr = &dummy;
31834      return find_stack_direction ();
31835    }
31836  else
31837    return (&dummy > addr) ? 1 : -1;
31838}
31839
31840int
31841main ()
31842{
31843  return find_stack_direction () < 0;
31844}
31845_ACEOF
31846rm -f conftest$ac_exeext
31847if { (ac_try="$ac_link"
31848case "(($ac_try" in
31849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31850  *) ac_try_echo=$ac_try;;
31851esac
31852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31853  (eval "$ac_link") 2>&5
31854  ac_status=$?
31855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31856  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31857  { (case "(($ac_try" in
31858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31859  *) ac_try_echo=$ac_try;;
31860esac
31861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31862  (eval "$ac_try") 2>&5
31863  ac_status=$?
31864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31865  (exit $ac_status); }; }; then
31866  ac_cv_c_stack_direction=1
31867else
31868  echo "$as_me: program exited with status $ac_status" >&5
31869echo "$as_me: failed program was:" >&5
31870sed 's/^/| /' conftest.$ac_ext >&5
31871
31872( exit $ac_status )
31873ac_cv_c_stack_direction=-1
31874fi
31875rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31876fi
31877
31878
31879fi
31880{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31881echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31882
31883cat >>confdefs.h <<_ACEOF
31884#define STACK_DIRECTION $ac_cv_c_stack_direction
31885_ACEOF
31886
31887
31888fi
31889
31890
31891{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31892echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31893if test "${ac_cv_func_rand48+set}" = set; then
31894  echo $ECHO_N "(cached) $ECHO_C" >&6
31895else
31896  ac_ext=cpp
31897ac_cpp='$CXXCPP $CPPFLAGS'
31898ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31899ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31900ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31901
31902   cat >conftest.$ac_ext <<_ACEOF
31903/* confdefs.h.  */
31904_ACEOF
31905cat confdefs.h >>conftest.$ac_ext
31906cat >>conftest.$ac_ext <<_ACEOF
31907/* end confdefs.h.  */
31908#include <stdlib.h>
31909int
31910main ()
31911{
31912srand48(0);lrand48();drand48();
31913  ;
31914  return 0;
31915}
31916_ACEOF
31917rm -f conftest.$ac_objext
31918if { (ac_try="$ac_compile"
31919case "(($ac_try" in
31920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31921  *) ac_try_echo=$ac_try;;
31922esac
31923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31924  (eval "$ac_compile") 2>conftest.er1
31925  ac_status=$?
31926  grep -v '^ *+' conftest.er1 >conftest.err
31927  rm -f conftest.er1
31928  cat conftest.err >&5
31929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930  (exit $ac_status); } &&
31931	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31932  { (case "(($ac_try" in
31933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31934  *) ac_try_echo=$ac_try;;
31935esac
31936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31937  (eval "$ac_try") 2>&5
31938  ac_status=$?
31939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31940  (exit $ac_status); }; } &&
31941	 { ac_try='test -s conftest.$ac_objext'
31942  { (case "(($ac_try" in
31943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31944  *) ac_try_echo=$ac_try;;
31945esac
31946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31947  (eval "$ac_try") 2>&5
31948  ac_status=$?
31949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31950  (exit $ac_status); }; }; then
31951  ac_cv_func_rand48=yes
31952else
31953  echo "$as_me: failed program was:" >&5
31954sed 's/^/| /' conftest.$ac_ext >&5
31955
31956	ac_cv_func_rand48=no
31957fi
31958
31959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31960  ac_ext=c
31961ac_cpp='$CPP $CPPFLAGS'
31962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31964ac_compiler_gnu=$ac_cv_c_compiler_gnu
31965
31966fi
31967{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31968echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31969
31970if test "$ac_cv_func_rand48" = "yes" ; then
31971
31972cat >>confdefs.h <<\_ACEOF
31973#define HAVE_RAND48 1
31974_ACEOF
31975
31976fi
31977
31978
31979{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31980echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31981if test "${ac_cv_cxx_namespaces+set}" = set; then
31982  echo $ECHO_N "(cached) $ECHO_C" >&6
31983else
31984  ac_ext=cpp
31985ac_cpp='$CXXCPP $CPPFLAGS'
31986ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31987ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31988ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31989
31990 cat >conftest.$ac_ext <<_ACEOF
31991/* confdefs.h.  */
31992_ACEOF
31993cat confdefs.h >>conftest.$ac_ext
31994cat >>conftest.$ac_ext <<_ACEOF
31995/* end confdefs.h.  */
31996namespace Outer { namespace Inner { int i = 0; }}
31997int
31998main ()
31999{
32000using namespace Outer::Inner; return i;
32001  ;
32002  return 0;
32003}
32004_ACEOF
32005rm -f conftest.$ac_objext
32006if { (ac_try="$ac_compile"
32007case "(($ac_try" in
32008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32009  *) ac_try_echo=$ac_try;;
32010esac
32011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32012  (eval "$ac_compile") 2>conftest.er1
32013  ac_status=$?
32014  grep -v '^ *+' conftest.er1 >conftest.err
32015  rm -f conftest.er1
32016  cat conftest.err >&5
32017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32018  (exit $ac_status); } &&
32019	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32020  { (case "(($ac_try" in
32021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32022  *) ac_try_echo=$ac_try;;
32023esac
32024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32025  (eval "$ac_try") 2>&5
32026  ac_status=$?
32027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32028  (exit $ac_status); }; } &&
32029	 { ac_try='test -s conftest.$ac_objext'
32030  { (case "(($ac_try" in
32031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32032  *) ac_try_echo=$ac_try;;
32033esac
32034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32035  (eval "$ac_try") 2>&5
32036  ac_status=$?
32037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32038  (exit $ac_status); }; }; then
32039  ac_cv_cxx_namespaces=yes
32040else
32041  echo "$as_me: failed program was:" >&5
32042sed 's/^/| /' conftest.$ac_ext >&5
32043
32044	ac_cv_cxx_namespaces=no
32045fi
32046
32047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32048 ac_ext=c
32049ac_cpp='$CPP $CPPFLAGS'
32050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32052ac_compiler_gnu=$ac_cv_c_compiler_gnu
32053
32054
32055fi
32056{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32057echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32058if test "$ac_cv_cxx_namespaces" = yes; then
32059
32060cat >>confdefs.h <<\_ACEOF
32061#define HAVE_NAMESPACES
32062_ACEOF
32063
32064fi
32065
32066{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
32067echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
32068if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
32069  echo $ECHO_N "(cached) $ECHO_C" >&6
32070else
32071
32072  ac_ext=cpp
32073ac_cpp='$CXXCPP $CPPFLAGS'
32074ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32075ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32076ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32077
32078  cat >conftest.$ac_ext <<_ACEOF
32079/* confdefs.h.  */
32080_ACEOF
32081cat confdefs.h >>conftest.$ac_ext
32082cat >>conftest.$ac_ext <<_ACEOF
32083/* end confdefs.h.  */
32084#include <ext/hash_map>
32085#ifdef HAVE_NAMESPACES
32086using namespace std;
32087#endif
32088int
32089main ()
32090{
32091hash_map<int, int> t;
32092  ;
32093  return 0;
32094}
32095_ACEOF
32096rm -f conftest.$ac_objext
32097if { (ac_try="$ac_compile"
32098case "(($ac_try" in
32099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32100  *) ac_try_echo=$ac_try;;
32101esac
32102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32103  (eval "$ac_compile") 2>conftest.er1
32104  ac_status=$?
32105  grep -v '^ *+' conftest.er1 >conftest.err
32106  rm -f conftest.er1
32107  cat conftest.err >&5
32108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32109  (exit $ac_status); } &&
32110	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32111  { (case "(($ac_try" in
32112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32113  *) ac_try_echo=$ac_try;;
32114esac
32115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32116  (eval "$ac_try") 2>&5
32117  ac_status=$?
32118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119  (exit $ac_status); }; } &&
32120	 { ac_try='test -s conftest.$ac_objext'
32121  { (case "(($ac_try" in
32122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32123  *) ac_try_echo=$ac_try;;
32124esac
32125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32126  (eval "$ac_try") 2>&5
32127  ac_status=$?
32128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32129  (exit $ac_status); }; }; then
32130  ac_cv_cxx_have_std_ext_hash_map=yes
32131else
32132  echo "$as_me: failed program was:" >&5
32133sed 's/^/| /' conftest.$ac_ext >&5
32134
32135	ac_cv_cxx_have_std_ext_hash_map=no
32136fi
32137
32138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32139  ac_ext=c
32140ac_cpp='$CPP $CPPFLAGS'
32141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32143ac_compiler_gnu=$ac_cv_c_compiler_gnu
32144
32145fi
32146{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
32147echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
32148 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
32149 then
32150
32151cat >>confdefs.h <<\_ACEOF
32152#define HAVE_STD_EXT_HASH_MAP 1
32153_ACEOF
32154
32155 else
32156
32157cat >>confdefs.h <<\_ACEOF
32158#define HAVE_STD_EXT_HASH_MAP 0
32159_ACEOF
32160
32161 fi
32162
32163 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
32164echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
32165if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
32166  echo $ECHO_N "(cached) $ECHO_C" >&6
32167else
32168
32169  ac_ext=cpp
32170ac_cpp='$CXXCPP $CPPFLAGS'
32171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32174
32175  cat >conftest.$ac_ext <<_ACEOF
32176/* confdefs.h.  */
32177_ACEOF
32178cat confdefs.h >>conftest.$ac_ext
32179cat >>conftest.$ac_ext <<_ACEOF
32180/* end confdefs.h.  */
32181#include <ext/hash_map>
32182#ifdef HAVE_NAMESPACES
32183using namespace __gnu_cxx;
32184#endif
32185int
32186main ()
32187{
32188hash_map<int,int> t;
32189  ;
32190  return 0;
32191}
32192_ACEOF
32193rm -f conftest.$ac_objext
32194if { (ac_try="$ac_compile"
32195case "(($ac_try" in
32196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32197  *) ac_try_echo=$ac_try;;
32198esac
32199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32200  (eval "$ac_compile") 2>conftest.er1
32201  ac_status=$?
32202  grep -v '^ *+' conftest.er1 >conftest.err
32203  rm -f conftest.er1
32204  cat conftest.err >&5
32205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32206  (exit $ac_status); } &&
32207	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32208  { (case "(($ac_try" in
32209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32210  *) ac_try_echo=$ac_try;;
32211esac
32212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32213  (eval "$ac_try") 2>&5
32214  ac_status=$?
32215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32216  (exit $ac_status); }; } &&
32217	 { ac_try='test -s conftest.$ac_objext'
32218  { (case "(($ac_try" in
32219  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32220  *) ac_try_echo=$ac_try;;
32221esac
32222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32223  (eval "$ac_try") 2>&5
32224  ac_status=$?
32225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32226  (exit $ac_status); }; }; then
32227  ac_cv_cxx_have_gnu_ext_hash_map=yes
32228else
32229  echo "$as_me: failed program was:" >&5
32230sed 's/^/| /' conftest.$ac_ext >&5
32231
32232	ac_cv_cxx_have_gnu_ext_hash_map=no
32233fi
32234
32235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32236  ac_ext=c
32237ac_cpp='$CPP $CPPFLAGS'
32238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32240ac_compiler_gnu=$ac_cv_c_compiler_gnu
32241
32242fi
32243{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32244echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
32245 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32246 then
32247
32248cat >>confdefs.h <<\_ACEOF
32249#define HAVE_GNU_EXT_HASH_MAP 1
32250_ACEOF
32251
32252 else
32253
32254cat >>confdefs.h <<\_ACEOF
32255#define HAVE_GNU_EXT_HASH_MAP 0
32256_ACEOF
32257
32258 fi
32259
32260 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32261echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
32262if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32263  echo $ECHO_N "(cached) $ECHO_C" >&6
32264else
32265
32266  ac_ext=cpp
32267ac_cpp='$CXXCPP $CPPFLAGS'
32268ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32269ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32270ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32271
32272  cat >conftest.$ac_ext <<_ACEOF
32273/* confdefs.h.  */
32274_ACEOF
32275cat confdefs.h >>conftest.$ac_ext
32276cat >>conftest.$ac_ext <<_ACEOF
32277/* end confdefs.h.  */
32278#include <hash_map>
32279int
32280main ()
32281{
32282hash_map<int,int> t;
32283  ;
32284  return 0;
32285}
32286_ACEOF
32287rm -f conftest.$ac_objext
32288if { (ac_try="$ac_compile"
32289case "(($ac_try" in
32290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32291  *) ac_try_echo=$ac_try;;
32292esac
32293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32294  (eval "$ac_compile") 2>conftest.er1
32295  ac_status=$?
32296  grep -v '^ *+' conftest.er1 >conftest.err
32297  rm -f conftest.er1
32298  cat conftest.err >&5
32299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32300  (exit $ac_status); } &&
32301	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32302  { (case "(($ac_try" in
32303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32304  *) ac_try_echo=$ac_try;;
32305esac
32306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32307  (eval "$ac_try") 2>&5
32308  ac_status=$?
32309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32310  (exit $ac_status); }; } &&
32311	 { ac_try='test -s conftest.$ac_objext'
32312  { (case "(($ac_try" in
32313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32314  *) ac_try_echo=$ac_try;;
32315esac
32316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32317  (eval "$ac_try") 2>&5
32318  ac_status=$?
32319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32320  (exit $ac_status); }; }; then
32321  ac_cv_cxx_have_global_hash_map=yes
32322else
32323  echo "$as_me: failed program was:" >&5
32324sed 's/^/| /' conftest.$ac_ext >&5
32325
32326	ac_cv_cxx_have_global_hash_map=no
32327fi
32328
32329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32330  ac_ext=c
32331ac_cpp='$CPP $CPPFLAGS'
32332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32334ac_compiler_gnu=$ac_cv_c_compiler_gnu
32335
32336fi
32337{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32338echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
32339 if test "$ac_cv_cxx_have_global_hash_map" = yes
32340 then
32341
32342cat >>confdefs.h <<\_ACEOF
32343#define HAVE_GLOBAL_HASH_MAP 1
32344_ACEOF
32345
32346 else
32347
32348cat >>confdefs.h <<\_ACEOF
32349#define HAVE_GLOBAL_HASH_MAP 0
32350_ACEOF
32351
32352 fi
32353
32354{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32355echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
32356if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
32357  echo $ECHO_N "(cached) $ECHO_C" >&6
32358else
32359
32360  ac_ext=cpp
32361ac_cpp='$CXXCPP $CPPFLAGS'
32362ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32363ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32364ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32365
32366  cat >conftest.$ac_ext <<_ACEOF
32367/* confdefs.h.  */
32368_ACEOF
32369cat confdefs.h >>conftest.$ac_ext
32370cat >>conftest.$ac_ext <<_ACEOF
32371/* end confdefs.h.  */
32372#include <ext/hash_set>
32373#ifdef HAVE_NAMESPACES
32374using namespace std;
32375#endif
32376int
32377main ()
32378{
32379hash_set<int> t;
32380  ;
32381  return 0;
32382}
32383_ACEOF
32384rm -f conftest.$ac_objext
32385if { (ac_try="$ac_compile"
32386case "(($ac_try" in
32387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32388  *) ac_try_echo=$ac_try;;
32389esac
32390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32391  (eval "$ac_compile") 2>conftest.er1
32392  ac_status=$?
32393  grep -v '^ *+' conftest.er1 >conftest.err
32394  rm -f conftest.er1
32395  cat conftest.err >&5
32396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32397  (exit $ac_status); } &&
32398	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32399  { (case "(($ac_try" in
32400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32401  *) ac_try_echo=$ac_try;;
32402esac
32403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32404  (eval "$ac_try") 2>&5
32405  ac_status=$?
32406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32407  (exit $ac_status); }; } &&
32408	 { ac_try='test -s conftest.$ac_objext'
32409  { (case "(($ac_try" in
32410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32411  *) ac_try_echo=$ac_try;;
32412esac
32413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32414  (eval "$ac_try") 2>&5
32415  ac_status=$?
32416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32417  (exit $ac_status); }; }; then
32418  ac_cv_cxx_have_std_ext_hash_set=yes
32419else
32420  echo "$as_me: failed program was:" >&5
32421sed 's/^/| /' conftest.$ac_ext >&5
32422
32423	ac_cv_cxx_have_std_ext_hash_set=no
32424fi
32425
32426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32427  ac_ext=c
32428ac_cpp='$CPP $CPPFLAGS'
32429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32431ac_compiler_gnu=$ac_cv_c_compiler_gnu
32432
32433fi
32434{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32435echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
32436 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32437 then
32438
32439cat >>confdefs.h <<\_ACEOF
32440#define HAVE_STD_EXT_HASH_SET 1
32441_ACEOF
32442
32443 else
32444
32445cat >>confdefs.h <<\_ACEOF
32446#define HAVE_STD_EXT_HASH_SET 0
32447_ACEOF
32448
32449 fi
32450
32451 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32452echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
32453if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32454  echo $ECHO_N "(cached) $ECHO_C" >&6
32455else
32456
32457  ac_ext=cpp
32458ac_cpp='$CXXCPP $CPPFLAGS'
32459ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32460ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32461ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32462
32463  cat >conftest.$ac_ext <<_ACEOF
32464/* confdefs.h.  */
32465_ACEOF
32466cat confdefs.h >>conftest.$ac_ext
32467cat >>conftest.$ac_ext <<_ACEOF
32468/* end confdefs.h.  */
32469#include <ext/hash_set>
32470#ifdef HAVE_NAMESPACES
32471using namespace __gnu_cxx;
32472#endif
32473int
32474main ()
32475{
32476hash_set<int> t;
32477  ;
32478  return 0;
32479}
32480_ACEOF
32481rm -f conftest.$ac_objext
32482if { (ac_try="$ac_compile"
32483case "(($ac_try" in
32484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32485  *) ac_try_echo=$ac_try;;
32486esac
32487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32488  (eval "$ac_compile") 2>conftest.er1
32489  ac_status=$?
32490  grep -v '^ *+' conftest.er1 >conftest.err
32491  rm -f conftest.er1
32492  cat conftest.err >&5
32493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32494  (exit $ac_status); } &&
32495	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32496  { (case "(($ac_try" in
32497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32498  *) ac_try_echo=$ac_try;;
32499esac
32500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32501  (eval "$ac_try") 2>&5
32502  ac_status=$?
32503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32504  (exit $ac_status); }; } &&
32505	 { ac_try='test -s conftest.$ac_objext'
32506  { (case "(($ac_try" in
32507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32508  *) ac_try_echo=$ac_try;;
32509esac
32510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32511  (eval "$ac_try") 2>&5
32512  ac_status=$?
32513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32514  (exit $ac_status); }; }; then
32515  ac_cv_cxx_have_gnu_ext_hash_set=yes
32516else
32517  echo "$as_me: failed program was:" >&5
32518sed 's/^/| /' conftest.$ac_ext >&5
32519
32520	ac_cv_cxx_have_gnu_ext_hash_set=no
32521fi
32522
32523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32524  ac_ext=c
32525ac_cpp='$CPP $CPPFLAGS'
32526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32528ac_compiler_gnu=$ac_cv_c_compiler_gnu
32529
32530fi
32531{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32532echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
32533 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32534 then
32535
32536cat >>confdefs.h <<\_ACEOF
32537#define HAVE_GNU_EXT_HASH_SET 1
32538_ACEOF
32539
32540 else
32541
32542cat >>confdefs.h <<\_ACEOF
32543#define HAVE_GNU_EXT_HASH_SET 0
32544_ACEOF
32545
32546 fi
32547
32548 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32549echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
32550if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32551  echo $ECHO_N "(cached) $ECHO_C" >&6
32552else
32553
32554  ac_ext=cpp
32555ac_cpp='$CXXCPP $CPPFLAGS'
32556ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32557ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32558ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32559
32560  cat >conftest.$ac_ext <<_ACEOF
32561/* confdefs.h.  */
32562_ACEOF
32563cat confdefs.h >>conftest.$ac_ext
32564cat >>conftest.$ac_ext <<_ACEOF
32565/* end confdefs.h.  */
32566#include <hash_set>
32567int
32568main ()
32569{
32570hash_set<int> t; return 0;
32571  ;
32572  return 0;
32573}
32574_ACEOF
32575rm -f conftest.$ac_objext
32576if { (ac_try="$ac_compile"
32577case "(($ac_try" in
32578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32579  *) ac_try_echo=$ac_try;;
32580esac
32581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32582  (eval "$ac_compile") 2>conftest.er1
32583  ac_status=$?
32584  grep -v '^ *+' conftest.er1 >conftest.err
32585  rm -f conftest.er1
32586  cat conftest.err >&5
32587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32588  (exit $ac_status); } &&
32589	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32590  { (case "(($ac_try" in
32591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32592  *) ac_try_echo=$ac_try;;
32593esac
32594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32595  (eval "$ac_try") 2>&5
32596  ac_status=$?
32597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32598  (exit $ac_status); }; } &&
32599	 { ac_try='test -s conftest.$ac_objext'
32600  { (case "(($ac_try" in
32601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32602  *) ac_try_echo=$ac_try;;
32603esac
32604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32605  (eval "$ac_try") 2>&5
32606  ac_status=$?
32607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32608  (exit $ac_status); }; }; then
32609  ac_cv_cxx_have_global_hash_set=yes
32610else
32611  echo "$as_me: failed program was:" >&5
32612sed 's/^/| /' conftest.$ac_ext >&5
32613
32614	ac_cv_cxx_have_global_hash_set=no
32615fi
32616
32617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32618  ac_ext=c
32619ac_cpp='$CPP $CPPFLAGS'
32620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32622ac_compiler_gnu=$ac_cv_c_compiler_gnu
32623
32624fi
32625{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32626echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
32627 if test "$ac_cv_cxx_have_global_hash_set" = yes
32628 then
32629
32630cat >>confdefs.h <<\_ACEOF
32631#define HAVE_GLOBAL_HASH_SET 1
32632_ACEOF
32633
32634 else
32635
32636cat >>confdefs.h <<\_ACEOF
32637#define HAVE_GLOBAL_HASH_SET 0
32638_ACEOF
32639
32640 fi
32641
32642{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32643echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32644if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32645  echo $ECHO_N "(cached) $ECHO_C" >&6
32646else
32647
32648  ac_ext=cpp
32649ac_cpp='$CXXCPP $CPPFLAGS'
32650ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32651ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32652ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32653
32654  cat >conftest.$ac_ext <<_ACEOF
32655/* confdefs.h.  */
32656_ACEOF
32657cat confdefs.h >>conftest.$ac_ext
32658cat >>conftest.$ac_ext <<_ACEOF
32659/* end confdefs.h.  */
32660#include <iterator>
32661#ifdef HAVE_NAMESPACES
32662using namespace std;
32663#endif
32664int
32665main ()
32666{
32667iterator<int,int,int> t; return 0;
32668  ;
32669  return 0;
32670}
32671_ACEOF
32672rm -f conftest.$ac_objext
32673if { (ac_try="$ac_compile"
32674case "(($ac_try" in
32675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32676  *) ac_try_echo=$ac_try;;
32677esac
32678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32679  (eval "$ac_compile") 2>conftest.er1
32680  ac_status=$?
32681  grep -v '^ *+' conftest.er1 >conftest.err
32682  rm -f conftest.er1
32683  cat conftest.err >&5
32684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32685  (exit $ac_status); } &&
32686	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32687  { (case "(($ac_try" in
32688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32689  *) ac_try_echo=$ac_try;;
32690esac
32691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32692  (eval "$ac_try") 2>&5
32693  ac_status=$?
32694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32695  (exit $ac_status); }; } &&
32696	 { ac_try='test -s conftest.$ac_objext'
32697  { (case "(($ac_try" in
32698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32699  *) ac_try_echo=$ac_try;;
32700esac
32701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32702  (eval "$ac_try") 2>&5
32703  ac_status=$?
32704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32705  (exit $ac_status); }; }; then
32706  ac_cv_cxx_have_std_iterator=yes
32707else
32708  echo "$as_me: failed program was:" >&5
32709sed 's/^/| /' conftest.$ac_ext >&5
32710
32711	ac_cv_cxx_have_std_iterator=no
32712fi
32713
32714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32715  ac_ext=c
32716ac_cpp='$CPP $CPPFLAGS'
32717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32719ac_compiler_gnu=$ac_cv_c_compiler_gnu
32720
32721
32722fi
32723{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32724echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32725if test "$ac_cv_cxx_have_std_iterator" = yes
32726then
32727
32728cat >>confdefs.h <<\_ACEOF
32729#define HAVE_STD_ITERATOR 1
32730_ACEOF
32731
32732else
32733
32734cat >>confdefs.h <<\_ACEOF
32735#define HAVE_STD_ITERATOR 0
32736_ACEOF
32737
32738fi
32739
32740{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32741echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32742if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32743  echo $ECHO_N "(cached) $ECHO_C" >&6
32744else
32745
32746  ac_ext=cpp
32747ac_cpp='$CXXCPP $CPPFLAGS'
32748ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32749ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32750ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32751
32752  cat >conftest.$ac_ext <<_ACEOF
32753/* confdefs.h.  */
32754_ACEOF
32755cat confdefs.h >>conftest.$ac_ext
32756cat >>conftest.$ac_ext <<_ACEOF
32757/* end confdefs.h.  */
32758#include <iterator>
32759#ifdef HAVE_NAMESPACES
32760using namespace std;
32761#endif
32762int
32763main ()
32764{
32765bidirectional_iterator<int,int> t; return 0;
32766  ;
32767  return 0;
32768}
32769_ACEOF
32770rm -f conftest.$ac_objext
32771if { (ac_try="$ac_compile"
32772case "(($ac_try" in
32773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32774  *) ac_try_echo=$ac_try;;
32775esac
32776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32777  (eval "$ac_compile") 2>conftest.er1
32778  ac_status=$?
32779  grep -v '^ *+' conftest.er1 >conftest.err
32780  rm -f conftest.er1
32781  cat conftest.err >&5
32782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32783  (exit $ac_status); } &&
32784	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32785  { (case "(($ac_try" in
32786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32787  *) ac_try_echo=$ac_try;;
32788esac
32789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32790  (eval "$ac_try") 2>&5
32791  ac_status=$?
32792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32793  (exit $ac_status); }; } &&
32794	 { ac_try='test -s conftest.$ac_objext'
32795  { (case "(($ac_try" in
32796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32797  *) ac_try_echo=$ac_try;;
32798esac
32799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32800  (eval "$ac_try") 2>&5
32801  ac_status=$?
32802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32803  (exit $ac_status); }; }; then
32804  ac_cv_cxx_have_bi_iterator=yes
32805else
32806  echo "$as_me: failed program was:" >&5
32807sed 's/^/| /' conftest.$ac_ext >&5
32808
32809	ac_cv_cxx_have_bi_iterator=no
32810fi
32811
32812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32813  ac_ext=c
32814ac_cpp='$CPP $CPPFLAGS'
32815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32817ac_compiler_gnu=$ac_cv_c_compiler_gnu
32818
32819
32820fi
32821{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32822echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32823if test "$ac_cv_cxx_have_bi_iterator" = yes
32824then
32825
32826cat >>confdefs.h <<\_ACEOF
32827#define HAVE_BI_ITERATOR 1
32828_ACEOF
32829
32830else
32831
32832cat >>confdefs.h <<\_ACEOF
32833#define HAVE_BI_ITERATOR 0
32834_ACEOF
32835
32836fi
32837
32838{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32839echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32840if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32841  echo $ECHO_N "(cached) $ECHO_C" >&6
32842else
32843
32844  ac_ext=cpp
32845ac_cpp='$CXXCPP $CPPFLAGS'
32846ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32847ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32848ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32849
32850  cat >conftest.$ac_ext <<_ACEOF
32851/* confdefs.h.  */
32852_ACEOF
32853cat confdefs.h >>conftest.$ac_ext
32854cat >>conftest.$ac_ext <<_ACEOF
32855/* end confdefs.h.  */
32856#include <iterator>
32857#ifdef HAVE_NAMESPACES
32858using namespace std;
32859#endif
32860int
32861main ()
32862{
32863forward_iterator<int,int> t; return 0;
32864  ;
32865  return 0;
32866}
32867_ACEOF
32868rm -f conftest.$ac_objext
32869if { (ac_try="$ac_compile"
32870case "(($ac_try" in
32871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32872  *) ac_try_echo=$ac_try;;
32873esac
32874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32875  (eval "$ac_compile") 2>conftest.er1
32876  ac_status=$?
32877  grep -v '^ *+' conftest.er1 >conftest.err
32878  rm -f conftest.er1
32879  cat conftest.err >&5
32880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32881  (exit $ac_status); } &&
32882	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32883  { (case "(($ac_try" in
32884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32885  *) ac_try_echo=$ac_try;;
32886esac
32887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32888  (eval "$ac_try") 2>&5
32889  ac_status=$?
32890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32891  (exit $ac_status); }; } &&
32892	 { ac_try='test -s conftest.$ac_objext'
32893  { (case "(($ac_try" in
32894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32895  *) ac_try_echo=$ac_try;;
32896esac
32897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32898  (eval "$ac_try") 2>&5
32899  ac_status=$?
32900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32901  (exit $ac_status); }; }; then
32902  ac_cv_cxx_have_fwd_iterator=yes
32903else
32904  echo "$as_me: failed program was:" >&5
32905sed 's/^/| /' conftest.$ac_ext >&5
32906
32907	ac_cv_cxx_have_fwd_iterator=no
32908fi
32909
32910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32911  ac_ext=c
32912ac_cpp='$CPP $CPPFLAGS'
32913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32915ac_compiler_gnu=$ac_cv_c_compiler_gnu
32916
32917
32918fi
32919{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32920echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32921if test "$ac_cv_cxx_have_fwd_iterator" = yes
32922then
32923
32924cat >>confdefs.h <<\_ACEOF
32925#define HAVE_FWD_ITERATOR 1
32926_ACEOF
32927
32928else
32929
32930cat >>confdefs.h <<\_ACEOF
32931#define HAVE_FWD_ITERATOR 0
32932_ACEOF
32933
32934fi
32935
32936
32937{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32938echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32939if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32940  echo $ECHO_N "(cached) $ECHO_C" >&6
32941else
32942  ac_ext=cpp
32943ac_cpp='$CXXCPP $CPPFLAGS'
32944ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32945ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32946ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32947
32948   cat >conftest.$ac_ext <<_ACEOF
32949/* confdefs.h.  */
32950_ACEOF
32951cat confdefs.h >>conftest.$ac_ext
32952cat >>conftest.$ac_ext <<_ACEOF
32953/* end confdefs.h.  */
32954#include <math.h>
32955int
32956main ()
32957{
32958float f; isnan(f);
32959  ;
32960  return 0;
32961}
32962_ACEOF
32963rm -f conftest.$ac_objext
32964if { (ac_try="$ac_compile"
32965case "(($ac_try" in
32966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32967  *) ac_try_echo=$ac_try;;
32968esac
32969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32970  (eval "$ac_compile") 2>conftest.er1
32971  ac_status=$?
32972  grep -v '^ *+' conftest.er1 >conftest.err
32973  rm -f conftest.er1
32974  cat conftest.err >&5
32975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32976  (exit $ac_status); } &&
32977	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32978  { (case "(($ac_try" in
32979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32980  *) ac_try_echo=$ac_try;;
32981esac
32982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32983  (eval "$ac_try") 2>&5
32984  ac_status=$?
32985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32986  (exit $ac_status); }; } &&
32987	 { ac_try='test -s conftest.$ac_objext'
32988  { (case "(($ac_try" in
32989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32990  *) ac_try_echo=$ac_try;;
32991esac
32992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32993  (eval "$ac_try") 2>&5
32994  ac_status=$?
32995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32996  (exit $ac_status); }; }; then
32997  ac_cv_func_isnan_in_math_h=yes
32998else
32999  echo "$as_me: failed program was:" >&5
33000sed 's/^/| /' conftest.$ac_ext >&5
33001
33002	ac_cv_func_isnan_in_math_h=no
33003fi
33004
33005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33006  ac_ext=c
33007ac_cpp='$CPP $CPPFLAGS'
33008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33010ac_compiler_gnu=$ac_cv_c_compiler_gnu
33011
33012fi
33013{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33014echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33015
33016
33017if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33018
33019cat >>confdefs.h <<\_ACEOF
33020#define HAVE_ISNAN_IN_MATH_H 1
33021_ACEOF
33022
33023fi
33024
33025{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33026echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33027if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33028  echo $ECHO_N "(cached) $ECHO_C" >&6
33029else
33030  ac_ext=cpp
33031ac_cpp='$CXXCPP $CPPFLAGS'
33032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33035
33036   cat >conftest.$ac_ext <<_ACEOF
33037/* confdefs.h.  */
33038_ACEOF
33039cat confdefs.h >>conftest.$ac_ext
33040cat >>conftest.$ac_ext <<_ACEOF
33041/* end confdefs.h.  */
33042#include <cmath>
33043int
33044main ()
33045{
33046float f; isnan(f);
33047  ;
33048  return 0;
33049}
33050_ACEOF
33051rm -f conftest.$ac_objext
33052if { (ac_try="$ac_compile"
33053case "(($ac_try" in
33054  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33055  *) ac_try_echo=$ac_try;;
33056esac
33057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33058  (eval "$ac_compile") 2>conftest.er1
33059  ac_status=$?
33060  grep -v '^ *+' conftest.er1 >conftest.err
33061  rm -f conftest.er1
33062  cat conftest.err >&5
33063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33064  (exit $ac_status); } &&
33065	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33066  { (case "(($ac_try" in
33067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33068  *) ac_try_echo=$ac_try;;
33069esac
33070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33071  (eval "$ac_try") 2>&5
33072  ac_status=$?
33073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33074  (exit $ac_status); }; } &&
33075	 { ac_try='test -s conftest.$ac_objext'
33076  { (case "(($ac_try" in
33077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33078  *) ac_try_echo=$ac_try;;
33079esac
33080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33081  (eval "$ac_try") 2>&5
33082  ac_status=$?
33083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33084  (exit $ac_status); }; }; then
33085  ac_cv_func_isnan_in_cmath=yes
33086else
33087  echo "$as_me: failed program was:" >&5
33088sed 's/^/| /' conftest.$ac_ext >&5
33089
33090	ac_cv_func_isnan_in_cmath=no
33091fi
33092
33093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33094  ac_ext=c
33095ac_cpp='$CPP $CPPFLAGS'
33096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33098ac_compiler_gnu=$ac_cv_c_compiler_gnu
33099
33100fi
33101{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33102echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33103
33104if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33105
33106cat >>confdefs.h <<\_ACEOF
33107#define HAVE_ISNAN_IN_CMATH 1
33108_ACEOF
33109
33110fi
33111
33112{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33113echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33114if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33115  echo $ECHO_N "(cached) $ECHO_C" >&6
33116else
33117  ac_ext=cpp
33118ac_cpp='$CXXCPP $CPPFLAGS'
33119ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33120ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33121ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33122
33123   cat >conftest.$ac_ext <<_ACEOF
33124/* confdefs.h.  */
33125_ACEOF
33126cat confdefs.h >>conftest.$ac_ext
33127cat >>conftest.$ac_ext <<_ACEOF
33128/* end confdefs.h.  */
33129#include <cmath>
33130int
33131main ()
33132{
33133float f; std::isnan(f);
33134  ;
33135  return 0;
33136}
33137_ACEOF
33138rm -f conftest.$ac_objext
33139if { (ac_try="$ac_compile"
33140case "(($ac_try" in
33141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33142  *) ac_try_echo=$ac_try;;
33143esac
33144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33145  (eval "$ac_compile") 2>conftest.er1
33146  ac_status=$?
33147  grep -v '^ *+' conftest.er1 >conftest.err
33148  rm -f conftest.er1
33149  cat conftest.err >&5
33150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33151  (exit $ac_status); } &&
33152	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33153  { (case "(($ac_try" in
33154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33155  *) ac_try_echo=$ac_try;;
33156esac
33157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33158  (eval "$ac_try") 2>&5
33159  ac_status=$?
33160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33161  (exit $ac_status); }; } &&
33162	 { ac_try='test -s conftest.$ac_objext'
33163  { (case "(($ac_try" in
33164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33165  *) ac_try_echo=$ac_try;;
33166esac
33167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33168  (eval "$ac_try") 2>&5
33169  ac_status=$?
33170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33171  (exit $ac_status); }; }; then
33172  ac_cv_func_std_isnan_in_cmath=yes
33173else
33174  echo "$as_me: failed program was:" >&5
33175sed 's/^/| /' conftest.$ac_ext >&5
33176
33177	ac_cv_func_std_isnan_in_cmath=no
33178fi
33179
33180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33181  ac_ext=c
33182ac_cpp='$CPP $CPPFLAGS'
33183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33185ac_compiler_gnu=$ac_cv_c_compiler_gnu
33186
33187fi
33188{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33189echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33190
33191if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33192
33193cat >>confdefs.h <<\_ACEOF
33194#define HAVE_STD_ISNAN_IN_CMATH 1
33195_ACEOF
33196
33197fi
33198
33199
33200{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33201echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33202if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33203  echo $ECHO_N "(cached) $ECHO_C" >&6
33204else
33205  ac_ext=cpp
33206ac_cpp='$CXXCPP $CPPFLAGS'
33207ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33208ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33209ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33210
33211   cat >conftest.$ac_ext <<_ACEOF
33212/* confdefs.h.  */
33213_ACEOF
33214cat confdefs.h >>conftest.$ac_ext
33215cat >>conftest.$ac_ext <<_ACEOF
33216/* end confdefs.h.  */
33217#include <math.h>
33218int
33219main ()
33220{
33221float f; isinf(f);
33222  ;
33223  return 0;
33224}
33225_ACEOF
33226rm -f conftest.$ac_objext
33227if { (ac_try="$ac_compile"
33228case "(($ac_try" in
33229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33230  *) ac_try_echo=$ac_try;;
33231esac
33232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33233  (eval "$ac_compile") 2>conftest.er1
33234  ac_status=$?
33235  grep -v '^ *+' conftest.er1 >conftest.err
33236  rm -f conftest.er1
33237  cat conftest.err >&5
33238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33239  (exit $ac_status); } &&
33240	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33241  { (case "(($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_try") 2>&5
33247  ac_status=$?
33248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33249  (exit $ac_status); }; } &&
33250	 { ac_try='test -s conftest.$ac_objext'
33251  { (case "(($ac_try" in
33252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33253  *) ac_try_echo=$ac_try;;
33254esac
33255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33256  (eval "$ac_try") 2>&5
33257  ac_status=$?
33258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33259  (exit $ac_status); }; }; then
33260  ac_cv_func_isinf_in_math_h=yes
33261else
33262  echo "$as_me: failed program was:" >&5
33263sed 's/^/| /' conftest.$ac_ext >&5
33264
33265	ac_cv_func_isinf_in_math_h=no
33266fi
33267
33268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33269  ac_ext=c
33270ac_cpp='$CPP $CPPFLAGS'
33271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33273ac_compiler_gnu=$ac_cv_c_compiler_gnu
33274
33275fi
33276{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33277echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33278
33279if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33280
33281cat >>confdefs.h <<\_ACEOF
33282#define HAVE_ISINF_IN_MATH_H 1
33283_ACEOF
33284
33285fi
33286
33287{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33288echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33289if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33290  echo $ECHO_N "(cached) $ECHO_C" >&6
33291else
33292  ac_ext=cpp
33293ac_cpp='$CXXCPP $CPPFLAGS'
33294ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33295ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33296ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33297
33298   cat >conftest.$ac_ext <<_ACEOF
33299/* confdefs.h.  */
33300_ACEOF
33301cat confdefs.h >>conftest.$ac_ext
33302cat >>conftest.$ac_ext <<_ACEOF
33303/* end confdefs.h.  */
33304#include <cmath>
33305int
33306main ()
33307{
33308float f; isinf(f);
33309  ;
33310  return 0;
33311}
33312_ACEOF
33313rm -f conftest.$ac_objext
33314if { (ac_try="$ac_compile"
33315case "(($ac_try" in
33316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33317  *) ac_try_echo=$ac_try;;
33318esac
33319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33320  (eval "$ac_compile") 2>conftest.er1
33321  ac_status=$?
33322  grep -v '^ *+' conftest.er1 >conftest.err
33323  rm -f conftest.er1
33324  cat conftest.err >&5
33325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33326  (exit $ac_status); } &&
33327	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33328  { (case "(($ac_try" in
33329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33330  *) ac_try_echo=$ac_try;;
33331esac
33332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33333  (eval "$ac_try") 2>&5
33334  ac_status=$?
33335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33336  (exit $ac_status); }; } &&
33337	 { ac_try='test -s conftest.$ac_objext'
33338  { (case "(($ac_try" in
33339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33340  *) ac_try_echo=$ac_try;;
33341esac
33342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33343  (eval "$ac_try") 2>&5
33344  ac_status=$?
33345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33346  (exit $ac_status); }; }; then
33347  ac_cv_func_isinf_in_cmath=yes
33348else
33349  echo "$as_me: failed program was:" >&5
33350sed 's/^/| /' conftest.$ac_ext >&5
33351
33352	ac_cv_func_isinf_in_cmath=no
33353fi
33354
33355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33356  ac_ext=c
33357ac_cpp='$CPP $CPPFLAGS'
33358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33360ac_compiler_gnu=$ac_cv_c_compiler_gnu
33361
33362fi
33363{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33364echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33365
33366if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33367
33368cat >>confdefs.h <<\_ACEOF
33369#define HAVE_ISINF_IN_CMATH 1
33370_ACEOF
33371
33372fi
33373
33374{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33375echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33376if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33377  echo $ECHO_N "(cached) $ECHO_C" >&6
33378else
33379  ac_ext=cpp
33380ac_cpp='$CXXCPP $CPPFLAGS'
33381ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33382ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33383ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33384
33385   cat >conftest.$ac_ext <<_ACEOF
33386/* confdefs.h.  */
33387_ACEOF
33388cat confdefs.h >>conftest.$ac_ext
33389cat >>conftest.$ac_ext <<_ACEOF
33390/* end confdefs.h.  */
33391#include <cmath>
33392int
33393main ()
33394{
33395float f; std::isinf(f)}
33396  ;
33397  return 0;
33398}
33399_ACEOF
33400rm -f conftest.$ac_objext
33401if { (ac_try="$ac_compile"
33402case "(($ac_try" in
33403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33404  *) ac_try_echo=$ac_try;;
33405esac
33406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33407  (eval "$ac_compile") 2>conftest.er1
33408  ac_status=$?
33409  grep -v '^ *+' conftest.er1 >conftest.err
33410  rm -f conftest.er1
33411  cat conftest.err >&5
33412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33413  (exit $ac_status); } &&
33414	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33415  { (case "(($ac_try" in
33416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33417  *) ac_try_echo=$ac_try;;
33418esac
33419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33420  (eval "$ac_try") 2>&5
33421  ac_status=$?
33422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33423  (exit $ac_status); }; } &&
33424	 { ac_try='test -s conftest.$ac_objext'
33425  { (case "(($ac_try" in
33426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33427  *) ac_try_echo=$ac_try;;
33428esac
33429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33430  (eval "$ac_try") 2>&5
33431  ac_status=$?
33432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33433  (exit $ac_status); }; }; then
33434  ac_cv_func_std_isinf_in_cmath=yes
33435else
33436  echo "$as_me: failed program was:" >&5
33437sed 's/^/| /' conftest.$ac_ext >&5
33438
33439	ac_cv_func_std_isinf_in_cmath=no
33440fi
33441
33442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33443  ac_ext=c
33444ac_cpp='$CPP $CPPFLAGS'
33445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33447ac_compiler_gnu=$ac_cv_c_compiler_gnu
33448
33449fi
33450{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33451echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
33452
33453if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
33454
33455cat >>confdefs.h <<\_ACEOF
33456#define HAVE_STD_ISINF_IN_CMATH 1
33457_ACEOF
33458
33459fi
33460
33461{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33462echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
33463if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33464  echo $ECHO_N "(cached) $ECHO_C" >&6
33465else
33466  ac_ext=cpp
33467ac_cpp='$CXXCPP $CPPFLAGS'
33468ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33469ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33470ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33471
33472   cat >conftest.$ac_ext <<_ACEOF
33473/* confdefs.h.  */
33474_ACEOF
33475cat confdefs.h >>conftest.$ac_ext
33476cat >>conftest.$ac_ext <<_ACEOF
33477/* end confdefs.h.  */
33478#include <ieeefp.h>
33479int
33480main ()
33481{
33482float f; finite(f);
33483  ;
33484  return 0;
33485}
33486_ACEOF
33487rm -f conftest.$ac_objext
33488if { (ac_try="$ac_compile"
33489case "(($ac_try" in
33490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33491  *) ac_try_echo=$ac_try;;
33492esac
33493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33494  (eval "$ac_compile") 2>conftest.er1
33495  ac_status=$?
33496  grep -v '^ *+' conftest.er1 >conftest.err
33497  rm -f conftest.er1
33498  cat conftest.err >&5
33499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33500  (exit $ac_status); } &&
33501	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33502  { (case "(($ac_try" in
33503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33504  *) ac_try_echo=$ac_try;;
33505esac
33506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33507  (eval "$ac_try") 2>&5
33508  ac_status=$?
33509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33510  (exit $ac_status); }; } &&
33511	 { ac_try='test -s conftest.$ac_objext'
33512  { (case "(($ac_try" in
33513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33514  *) ac_try_echo=$ac_try;;
33515esac
33516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33517  (eval "$ac_try") 2>&5
33518  ac_status=$?
33519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33520  (exit $ac_status); }; }; then
33521  ac_cv_func_finite_in_ieeefp_h=yes
33522else
33523  echo "$as_me: failed program was:" >&5
33524sed 's/^/| /' conftest.$ac_ext >&5
33525
33526	ac_cv_func_finite_in_ieeefp_h=no
33527fi
33528
33529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33530  ac_ext=c
33531ac_cpp='$CPP $CPPFLAGS'
33532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33534ac_compiler_gnu=$ac_cv_c_compiler_gnu
33535
33536fi
33537{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33538echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33539
33540if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33541
33542cat >>confdefs.h <<\_ACEOF
33543#define HAVE_FINITE_IN_IEEEFP_H 1
33544_ACEOF
33545
33546fi
33547
33548
33549
33550if test "$llvm_cv_platform_type" = "Unix" ; then
33551
33552
33553for ac_header in stdlib.h unistd.h
33554do
33555as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33556if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33557  { echo "$as_me:$LINENO: checking for $ac_header" >&5
33558echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33559if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33560  echo $ECHO_N "(cached) $ECHO_C" >&6
33561fi
33562ac_res=`eval echo '${'$as_ac_Header'}'`
33563	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33564echo "${ECHO_T}$ac_res" >&6; }
33565else
33566  # Is the header compilable?
33567{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33568echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33569cat >conftest.$ac_ext <<_ACEOF
33570/* confdefs.h.  */
33571_ACEOF
33572cat confdefs.h >>conftest.$ac_ext
33573cat >>conftest.$ac_ext <<_ACEOF
33574/* end confdefs.h.  */
33575$ac_includes_default
33576#include <$ac_header>
33577_ACEOF
33578rm -f conftest.$ac_objext
33579if { (ac_try="$ac_compile"
33580case "(($ac_try" in
33581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33582  *) ac_try_echo=$ac_try;;
33583esac
33584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33585  (eval "$ac_compile") 2>conftest.er1
33586  ac_status=$?
33587  grep -v '^ *+' conftest.er1 >conftest.err
33588  rm -f conftest.er1
33589  cat conftest.err >&5
33590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33591  (exit $ac_status); } &&
33592	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33593  { (case "(($ac_try" in
33594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33595  *) ac_try_echo=$ac_try;;
33596esac
33597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33598  (eval "$ac_try") 2>&5
33599  ac_status=$?
33600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33601  (exit $ac_status); }; } &&
33602	 { ac_try='test -s conftest.$ac_objext'
33603  { (case "(($ac_try" in
33604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33605  *) ac_try_echo=$ac_try;;
33606esac
33607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33608  (eval "$ac_try") 2>&5
33609  ac_status=$?
33610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33611  (exit $ac_status); }; }; then
33612  ac_header_compiler=yes
33613else
33614  echo "$as_me: failed program was:" >&5
33615sed 's/^/| /' conftest.$ac_ext >&5
33616
33617	ac_header_compiler=no
33618fi
33619
33620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33621{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33622echo "${ECHO_T}$ac_header_compiler" >&6; }
33623
33624# Is the header present?
33625{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33626echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33627cat >conftest.$ac_ext <<_ACEOF
33628/* confdefs.h.  */
33629_ACEOF
33630cat confdefs.h >>conftest.$ac_ext
33631cat >>conftest.$ac_ext <<_ACEOF
33632/* end confdefs.h.  */
33633#include <$ac_header>
33634_ACEOF
33635if { (ac_try="$ac_cpp conftest.$ac_ext"
33636case "(($ac_try" in
33637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33638  *) ac_try_echo=$ac_try;;
33639esac
33640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33641  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33642  ac_status=$?
33643  grep -v '^ *+' conftest.er1 >conftest.err
33644  rm -f conftest.er1
33645  cat conftest.err >&5
33646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33647  (exit $ac_status); } >/dev/null; then
33648  if test -s conftest.err; then
33649    ac_cpp_err=$ac_c_preproc_warn_flag
33650    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33651  else
33652    ac_cpp_err=
33653  fi
33654else
33655  ac_cpp_err=yes
33656fi
33657if test -z "$ac_cpp_err"; then
33658  ac_header_preproc=yes
33659else
33660  echo "$as_me: failed program was:" >&5
33661sed 's/^/| /' conftest.$ac_ext >&5
33662
33663  ac_header_preproc=no
33664fi
33665
33666rm -f conftest.err conftest.$ac_ext
33667{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33668echo "${ECHO_T}$ac_header_preproc" >&6; }
33669
33670# So?  What about this header?
33671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33672  yes:no: )
33673    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33674echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33675    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33676echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33677    ac_header_preproc=yes
33678    ;;
33679  no:yes:* )
33680    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33681echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33682    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33683echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33684    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33685echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33686    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33687echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33688    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33689echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33690    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33691echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33692    ( cat <<\_ASBOX
33693## ----------------------------------- ##
33694## Report this to llvmbugs@cs.uiuc.edu ##
33695## ----------------------------------- ##
33696_ASBOX
33697     ) | sed "s/^/$as_me: WARNING:     /" >&2
33698    ;;
33699esac
33700{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33702if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33703  echo $ECHO_N "(cached) $ECHO_C" >&6
33704else
33705  eval "$as_ac_Header=\$ac_header_preproc"
33706fi
33707ac_res=`eval echo '${'$as_ac_Header'}'`
33708	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33709echo "${ECHO_T}$ac_res" >&6; }
33710
33711fi
33712if test `eval echo '${'$as_ac_Header'}'` = yes; then
33713  cat >>confdefs.h <<_ACEOF
33714#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33715_ACEOF
33716
33717fi
33718
33719done
33720
33721
33722for ac_func in getpagesize
33723do
33724as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33725{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33726echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33727if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33728  echo $ECHO_N "(cached) $ECHO_C" >&6
33729else
33730  cat >conftest.$ac_ext <<_ACEOF
33731/* confdefs.h.  */
33732_ACEOF
33733cat confdefs.h >>conftest.$ac_ext
33734cat >>conftest.$ac_ext <<_ACEOF
33735/* end confdefs.h.  */
33736/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33737   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33738#define $ac_func innocuous_$ac_func
33739
33740/* System header to define __stub macros and hopefully few prototypes,
33741    which can conflict with char $ac_func (); below.
33742    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33743    <limits.h> exists even on freestanding compilers.  */
33744
33745#ifdef __STDC__
33746# include <limits.h>
33747#else
33748# include <assert.h>
33749#endif
33750
33751#undef $ac_func
33752
33753/* Override any GCC internal prototype to avoid an error.
33754   Use char because int might match the return type of a GCC
33755   builtin and then its argument prototype would still apply.  */
33756#ifdef __cplusplus
33757extern "C"
33758#endif
33759char $ac_func ();
33760/* The GNU C library defines this for functions which it implements
33761    to always fail with ENOSYS.  Some functions are actually named
33762    something starting with __ and the normal name is an alias.  */
33763#if defined __stub_$ac_func || defined __stub___$ac_func
33764choke me
33765#endif
33766
33767int
33768main ()
33769{
33770return $ac_func ();
33771  ;
33772  return 0;
33773}
33774_ACEOF
33775rm -f conftest.$ac_objext conftest$ac_exeext
33776if { (ac_try="$ac_link"
33777case "(($ac_try" in
33778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33779  *) ac_try_echo=$ac_try;;
33780esac
33781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33782  (eval "$ac_link") 2>conftest.er1
33783  ac_status=$?
33784  grep -v '^ *+' conftest.er1 >conftest.err
33785  rm -f conftest.er1
33786  cat conftest.err >&5
33787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33788  (exit $ac_status); } &&
33789	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33790  { (case "(($ac_try" in
33791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33792  *) ac_try_echo=$ac_try;;
33793esac
33794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33795  (eval "$ac_try") 2>&5
33796  ac_status=$?
33797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33798  (exit $ac_status); }; } &&
33799	 { ac_try='test -s conftest$ac_exeext'
33800  { (case "(($ac_try" in
33801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33802  *) ac_try_echo=$ac_try;;
33803esac
33804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33805  (eval "$ac_try") 2>&5
33806  ac_status=$?
33807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33808  (exit $ac_status); }; }; then
33809  eval "$as_ac_var=yes"
33810else
33811  echo "$as_me: failed program was:" >&5
33812sed 's/^/| /' conftest.$ac_ext >&5
33813
33814	eval "$as_ac_var=no"
33815fi
33816
33817rm -f core conftest.err conftest.$ac_objext \
33818      conftest$ac_exeext conftest.$ac_ext
33819fi
33820ac_res=`eval echo '${'$as_ac_var'}'`
33821	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33822echo "${ECHO_T}$ac_res" >&6; }
33823if test `eval echo '${'$as_ac_var'}'` = yes; then
33824  cat >>confdefs.h <<_ACEOF
33825#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33826_ACEOF
33827
33828fi
33829done
33830
33831{ echo "$as_me:$LINENO: checking for working mmap" >&5
33832echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33833if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33834  echo $ECHO_N "(cached) $ECHO_C" >&6
33835else
33836  if test "$cross_compiling" = yes; then
33837  ac_cv_func_mmap_fixed_mapped=no
33838else
33839  cat >conftest.$ac_ext <<_ACEOF
33840/* confdefs.h.  */
33841_ACEOF
33842cat confdefs.h >>conftest.$ac_ext
33843cat >>conftest.$ac_ext <<_ACEOF
33844/* end confdefs.h.  */
33845$ac_includes_default
33846/* malloc might have been renamed as rpl_malloc. */
33847#undef malloc
33848
33849/* Thanks to Mike Haertel and Jim Avera for this test.
33850   Here is a matrix of mmap possibilities:
33851	mmap private not fixed
33852	mmap private fixed at somewhere currently unmapped
33853	mmap private fixed at somewhere already mapped
33854	mmap shared not fixed
33855	mmap shared fixed at somewhere currently unmapped
33856	mmap shared fixed at somewhere already mapped
33857   For private mappings, we should verify that changes cannot be read()
33858   back from the file, nor mmap's back from the file at a different
33859   address.  (There have been systems where private was not correctly
33860   implemented like the infamous i386 svr4.0, and systems where the
33861   VM page cache was not coherent with the file system buffer cache
33862   like early versions of FreeBSD and possibly contemporary NetBSD.)
33863   For shared mappings, we should conversely verify that changes get
33864   propagated back to all the places they're supposed to be.
33865
33866   Grep wants private fixed already mapped.
33867   The main things grep needs to know about mmap are:
33868   * does it exist and is it safe to write into the mmap'd area
33869   * how to use it (BSD variants)  */
33870
33871#include <fcntl.h>
33872#include <sys/mman.h>
33873
33874#if !STDC_HEADERS && !HAVE_STDLIB_H
33875char *malloc ();
33876#endif
33877
33878/* This mess was copied from the GNU getpagesize.h.  */
33879#if !HAVE_GETPAGESIZE
33880/* Assume that all systems that can run configure have sys/param.h.  */
33881# if !HAVE_SYS_PARAM_H
33882#  define HAVE_SYS_PARAM_H 1
33883# endif
33884
33885# ifdef _SC_PAGESIZE
33886#  define getpagesize() sysconf(_SC_PAGESIZE)
33887# else /* no _SC_PAGESIZE */
33888#  if HAVE_SYS_PARAM_H
33889#   include <sys/param.h>
33890#   ifdef EXEC_PAGESIZE
33891#    define getpagesize() EXEC_PAGESIZE
33892#   else /* no EXEC_PAGESIZE */
33893#    ifdef NBPG
33894#     define getpagesize() NBPG * CLSIZE
33895#     ifndef CLSIZE
33896#      define CLSIZE 1
33897#     endif /* no CLSIZE */
33898#    else /* no NBPG */
33899#     ifdef NBPC
33900#      define getpagesize() NBPC
33901#     else /* no NBPC */
33902#      ifdef PAGESIZE
33903#       define getpagesize() PAGESIZE
33904#      endif /* PAGESIZE */
33905#     endif /* no NBPC */
33906#    endif /* no NBPG */
33907#   endif /* no EXEC_PAGESIZE */
33908#  else /* no HAVE_SYS_PARAM_H */
33909#   define getpagesize() 8192	/* punt totally */
33910#  endif /* no HAVE_SYS_PARAM_H */
33911# endif /* no _SC_PAGESIZE */
33912
33913#endif /* no HAVE_GETPAGESIZE */
33914
33915int
33916main ()
33917{
33918  char *data, *data2, *data3;
33919  int i, pagesize;
33920  int fd;
33921
33922  pagesize = getpagesize ();
33923
33924  /* First, make a file with some known garbage in it. */
33925  data = (char *) malloc (pagesize);
33926  if (!data)
33927    return 1;
33928  for (i = 0; i < pagesize; ++i)
33929    *(data + i) = rand ();
33930  umask (0);
33931  fd = creat ("conftest.mmap", 0600);
33932  if (fd < 0)
33933    return 1;
33934  if (write (fd, data, pagesize) != pagesize)
33935    return 1;
33936  close (fd);
33937
33938  /* Next, try to mmap the file at a fixed address which already has
33939     something else allocated at it.  If we can, also make sure that
33940     we see the same garbage.  */
33941  fd = open ("conftest.mmap", O_RDWR);
33942  if (fd < 0)
33943    return 1;
33944  data2 = (char *) malloc (2 * pagesize);
33945  if (!data2)
33946    return 1;
33947  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33948  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33949		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
33950    return 1;
33951  for (i = 0; i < pagesize; ++i)
33952    if (*(data + i) != *(data2 + i))
33953      return 1;
33954
33955  /* Finally, make sure that changes to the mapped area do not
33956     percolate back to the file as seen by read().  (This is a bug on
33957     some variants of i386 svr4.0.)  */
33958  for (i = 0; i < pagesize; ++i)
33959    *(data2 + i) = *(data2 + i) + 1;
33960  data3 = (char *) malloc (pagesize);
33961  if (!data3)
33962    return 1;
33963  if (read (fd, data3, pagesize) != pagesize)
33964    return 1;
33965  for (i = 0; i < pagesize; ++i)
33966    if (*(data + i) != *(data3 + i))
33967      return 1;
33968  close (fd);
33969  return 0;
33970}
33971_ACEOF
33972rm -f conftest$ac_exeext
33973if { (ac_try="$ac_link"
33974case "(($ac_try" in
33975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33976  *) ac_try_echo=$ac_try;;
33977esac
33978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33979  (eval "$ac_link") 2>&5
33980  ac_status=$?
33981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33982  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33983  { (case "(($ac_try" in
33984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33985  *) ac_try_echo=$ac_try;;
33986esac
33987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33988  (eval "$ac_try") 2>&5
33989  ac_status=$?
33990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33991  (exit $ac_status); }; }; then
33992  ac_cv_func_mmap_fixed_mapped=yes
33993else
33994  echo "$as_me: program exited with status $ac_status" >&5
33995echo "$as_me: failed program was:" >&5
33996sed 's/^/| /' conftest.$ac_ext >&5
33997
33998( exit $ac_status )
33999ac_cv_func_mmap_fixed_mapped=no
34000fi
34001rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34002fi
34003
34004
34005fi
34006{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34007echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34008if test $ac_cv_func_mmap_fixed_mapped = yes; then
34009
34010cat >>confdefs.h <<\_ACEOF
34011#define HAVE_MMAP 1
34012_ACEOF
34013
34014fi
34015rm -f conftest.mmap
34016
34017  { echo "$as_me:$LINENO: checking for mmap of files" >&5
34018echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34019if test "${ac_cv_func_mmap_file+set}" = set; then
34020  echo $ECHO_N "(cached) $ECHO_C" >&6
34021else
34022   ac_ext=c
34023ac_cpp='$CPP $CPPFLAGS'
34024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34026ac_compiler_gnu=$ac_cv_c_compiler_gnu
34027
34028  if test "$cross_compiling" = yes; then
34029  ac_cv_func_mmap_file=no
34030else
34031  cat >conftest.$ac_ext <<_ACEOF
34032
34033    /* confdefs.h.  */
34034_ACEOF
34035cat confdefs.h >>conftest.$ac_ext
34036cat >>conftest.$ac_ext <<_ACEOF
34037/* end confdefs.h.  */
34038
34039#include <sys/types.h>
34040#include <sys/mman.h>
34041#include <fcntl.h>
34042
34043int
34044main ()
34045{
34046
34047  int fd;
34048  fd = creat ("foo",0777);
34049  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34050  unlink ("foo");
34051  return (fd != (int) MAP_FAILED);
34052  ;
34053  return 0;
34054}
34055_ACEOF
34056rm -f conftest$ac_exeext
34057if { (ac_try="$ac_link"
34058case "(($ac_try" in
34059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34060  *) ac_try_echo=$ac_try;;
34061esac
34062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34063  (eval "$ac_link") 2>&5
34064  ac_status=$?
34065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34066  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34067  { (case "(($ac_try" in
34068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34069  *) ac_try_echo=$ac_try;;
34070esac
34071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34072  (eval "$ac_try") 2>&5
34073  ac_status=$?
34074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34075  (exit $ac_status); }; }; then
34076  ac_cv_func_mmap_file=yes
34077else
34078  echo "$as_me: program exited with status $ac_status" >&5
34079echo "$as_me: failed program was:" >&5
34080sed 's/^/| /' conftest.$ac_ext >&5
34081
34082( exit $ac_status )
34083ac_cv_func_mmap_file=no
34084fi
34085rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34086fi
34087
34088
34089  ac_ext=c
34090ac_cpp='$CPP $CPPFLAGS'
34091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34093ac_compiler_gnu=$ac_cv_c_compiler_gnu
34094
34095
34096fi
34097{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34098echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34099if test "$ac_cv_func_mmap_file" = yes; then
34100
34101cat >>confdefs.h <<\_ACEOF
34102#define HAVE_MMAP_FILE
34103_ACEOF
34104
34105   MMAP_FILE=yes
34106
34107fi
34108
34109  { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34110echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34111if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34112  echo $ECHO_N "(cached) $ECHO_C" >&6
34113else
34114  if test "$llvm_cv_os_type" = "Interix" ; then
34115   ac_cv_need_dev_zero_for_mmap=yes
34116 else
34117   ac_cv_need_dev_zero_for_mmap=no
34118 fi
34119
34120fi
34121{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34122echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34123if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34124
34125cat >>confdefs.h <<\_ACEOF
34126#define NEED_DEV_ZERO_FOR_MMAP 1
34127_ACEOF
34128
34129fi
34130
34131  if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34132  then
34133    { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34134echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34135  fi
34136  if test "$ac_cv_func_mmap_file" = "no"
34137  then
34138    { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34139echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34140  fi
34141fi
34142
34143
34144
34145for ac_func in __dso_handle
34146do
34147as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34148{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34149echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34150if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34151  echo $ECHO_N "(cached) $ECHO_C" >&6
34152else
34153  cat >conftest.$ac_ext <<_ACEOF
34154/* confdefs.h.  */
34155_ACEOF
34156cat confdefs.h >>conftest.$ac_ext
34157cat >>conftest.$ac_ext <<_ACEOF
34158/* end confdefs.h.  */
34159/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34160   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34161#define $ac_func innocuous_$ac_func
34162
34163/* System header to define __stub macros and hopefully few prototypes,
34164    which can conflict with char $ac_func (); below.
34165    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34166    <limits.h> exists even on freestanding compilers.  */
34167
34168#ifdef __STDC__
34169# include <limits.h>
34170#else
34171# include <assert.h>
34172#endif
34173
34174#undef $ac_func
34175
34176/* Override any GCC internal prototype to avoid an error.
34177   Use char because int might match the return type of a GCC
34178   builtin and then its argument prototype would still apply.  */
34179#ifdef __cplusplus
34180extern "C"
34181#endif
34182char $ac_func ();
34183/* The GNU C library defines this for functions which it implements
34184    to always fail with ENOSYS.  Some functions are actually named
34185    something starting with __ and the normal name is an alias.  */
34186#if defined __stub_$ac_func || defined __stub___$ac_func
34187choke me
34188#endif
34189
34190int
34191main ()
34192{
34193return $ac_func ();
34194  ;
34195  return 0;
34196}
34197_ACEOF
34198rm -f conftest.$ac_objext conftest$ac_exeext
34199if { (ac_try="$ac_link"
34200case "(($ac_try" in
34201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34202  *) ac_try_echo=$ac_try;;
34203esac
34204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34205  (eval "$ac_link") 2>conftest.er1
34206  ac_status=$?
34207  grep -v '^ *+' conftest.er1 >conftest.err
34208  rm -f conftest.er1
34209  cat conftest.err >&5
34210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34211  (exit $ac_status); } &&
34212	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34213  { (case "(($ac_try" in
34214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34215  *) ac_try_echo=$ac_try;;
34216esac
34217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34218  (eval "$ac_try") 2>&5
34219  ac_status=$?
34220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34221  (exit $ac_status); }; } &&
34222	 { ac_try='test -s conftest$ac_exeext'
34223  { (case "(($ac_try" in
34224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34225  *) ac_try_echo=$ac_try;;
34226esac
34227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34228  (eval "$ac_try") 2>&5
34229  ac_status=$?
34230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34231  (exit $ac_status); }; }; then
34232  eval "$as_ac_var=yes"
34233else
34234  echo "$as_me: failed program was:" >&5
34235sed 's/^/| /' conftest.$ac_ext >&5
34236
34237	eval "$as_ac_var=no"
34238fi
34239
34240rm -f core conftest.err conftest.$ac_objext \
34241      conftest$ac_exeext conftest.$ac_ext
34242fi
34243ac_res=`eval echo '${'$as_ac_var'}'`
34244	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34245echo "${ECHO_T}$ac_res" >&6; }
34246if test `eval echo '${'$as_ac_var'}'` = yes; then
34247  cat >>confdefs.h <<_ACEOF
34248#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34249_ACEOF
34250
34251fi
34252done
34253
34254
34255{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34256echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
34257if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34258  echo $ECHO_N "(cached) $ECHO_C" >&6
34259else
34260  llvm_cv_llvmgcc_sanity="no"
34261if test -x "$LLVMGCC" ; then
34262  cp /dev/null conftest.c
34263  "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34264      grep 'target datalayout =' > /dev/null 2>&1
34265  if test $? -eq 0 ; then
34266    llvm_cv_llvmgcc_sanity="yes"
34267  fi
34268  rm conftest.c
34269fi
34270fi
34271{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34272echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
34273
34274if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
34275  { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34276echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
34277  llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
34278  LLVMCC1=$llvmcc1path
34279
34280  llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
34281  LLVMCC1PLUS=$llvmcc1pluspath
34282
34283  llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34284  LLVMGCCDIR=$llvmgccdir
34285
34286  llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34287  LLVMGCCLIBEXEC=$llvmgcclibexec
34288
34289  llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
34290  llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34291  LLVMGCC_VERSION=$llvmgccversion
34292
34293  LLVMGCC_MAJVERS=$llvmgccmajvers
34294
34295  llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
34296  LLVMGCC_LANGS=$llvmgcclangs
34297
34298  { echo "$as_me:$LINENO: result: ok" >&5
34299echo "${ECHO_T}ok" >&6; }
34300fi
34301
34302SHLIBEXT=$libltdl_cv_shlibext
34303
34304
34305# Translate the various configuration directories and other basic
34306# information into substitutions that will end up in Makefile.config.in
34307# that these configured values can be used by the makefiles
34308if test "${prefix}" = "NONE" ; then
34309  prefix="/usr/local"
34310fi
34311eval LLVM_PREFIX="${prefix}";
34312eval LLVM_BINDIR="${prefix}/bin";
34313eval LLVM_LIBDIR="${prefix}/lib";
34314eval LLVM_DATADIR="${prefix}/share/llvm";
34315eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34316eval LLVM_ETCDIR="${prefix}/etc/llvm";
34317eval LLVM_INCLUDEDIR="${prefix}/include";
34318eval LLVM_INFODIR="${prefix}/info";
34319eval LLVM_MANDIR="${prefix}/man";
34320LLVM_CONFIGTIME=`date`
34321
34322
34323
34324
34325
34326
34327
34328
34329
34330
34331
34332# Place the various directores into the config.h file as #defines so that we
34333# can know about the installation paths within LLVM.
34334
34335cat >>confdefs.h <<_ACEOF
34336#define LLVM_PREFIX "$LLVM_PREFIX"
34337_ACEOF
34338
34339
34340cat >>confdefs.h <<_ACEOF
34341#define LLVM_BINDIR "$LLVM_BINDIR"
34342_ACEOF
34343
34344
34345cat >>confdefs.h <<_ACEOF
34346#define LLVM_LIBDIR "$LLVM_LIBDIR"
34347_ACEOF
34348
34349
34350cat >>confdefs.h <<_ACEOF
34351#define LLVM_DATADIR "$LLVM_DATADIR"
34352_ACEOF
34353
34354
34355cat >>confdefs.h <<_ACEOF
34356#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
34357_ACEOF
34358
34359
34360cat >>confdefs.h <<_ACEOF
34361#define LLVM_ETCDIR "$LLVM_ETCDIR"
34362_ACEOF
34363
34364
34365cat >>confdefs.h <<_ACEOF
34366#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34367_ACEOF
34368
34369
34370cat >>confdefs.h <<_ACEOF
34371#define LLVM_INFODIR "$LLVM_INFODIR"
34372_ACEOF
34373
34374
34375cat >>confdefs.h <<_ACEOF
34376#define LLVM_MANDIR "$LLVM_MANDIR"
34377_ACEOF
34378
34379
34380cat >>confdefs.h <<_ACEOF
34381#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34382_ACEOF
34383
34384
34385cat >>confdefs.h <<_ACEOF
34386#define LLVM_HOSTTRIPLE "$host"
34387_ACEOF
34388
34389
34390# Determine which bindings to build.
34391if test "$BINDINGS_TO_BUILD" = auto ; then
34392  BINDINGS_TO_BUILD=""
34393  if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34394    BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34395  fi
34396fi
34397BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34398
34399
34400# This isn't really configurey, but it avoids having to repeat the list in
34401# other files.
34402ALL_BINDINGS=ocaml
34403
34404
34405# Do any work necessary to ensure that bindings have what they need.
34406binding_prereqs_failed=0
34407for a_binding in $BINDINGS_TO_BUILD ; do
34408  case "$a_binding" in
34409  ocaml)
34410    if test "x$OCAMLC" = x ; then
34411      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34412echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34413      binding_prereqs_failed=1
34414    fi
34415    if test "x$OCAMLDEP" = x ; then
34416      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34417echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34418      binding_prereqs_failed=1
34419    fi
34420    if test "x$OCAMLOPT" = x ; then
34421      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34422echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34423          fi
34424    if test "x$with_ocaml_libdir" != xauto ; then
34425      OCAML_LIBDIR=$with_ocaml_libdir
34426
34427    else
34428      ocaml_stdlib="`"$OCAMLC" -where`"
34429      if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34430      then
34431        # ocaml stdlib is beneath our prefix; use stdlib
34432        OCAML_LIBDIR=$ocaml_stdlib
34433
34434      else
34435        # ocaml stdlib is outside our prefix; use libdir/ocaml
34436        OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34437
34438      fi
34439    fi
34440    ;;
34441  esac
34442done
34443if test "$binding_prereqs_failed" = 1 ; then
34444  { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34445echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34446   { (exit 1); exit 1; }; }
34447fi
34448
34449{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34450echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34451if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34452  echo $ECHO_N "(cached) $ECHO_C" >&6
34453else
34454   ac_ext=cpp
34455ac_cpp='$CXXCPP $CPPFLAGS'
34456ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34457ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34458ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34459
34460  oldcxxflags="$CXXFLAGS"
34461  CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34462  cat >conftest.$ac_ext <<_ACEOF
34463/* confdefs.h.  */
34464_ACEOF
34465cat confdefs.h >>conftest.$ac_ext
34466cat >>conftest.$ac_ext <<_ACEOF
34467/* end confdefs.h.  */
34468
34469int
34470main ()
34471{
34472
34473  ;
34474  return 0;
34475}
34476_ACEOF
34477rm -f conftest.$ac_objext
34478if { (ac_try="$ac_compile"
34479case "(($ac_try" in
34480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34481  *) ac_try_echo=$ac_try;;
34482esac
34483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34484  (eval "$ac_compile") 2>conftest.er1
34485  ac_status=$?
34486  grep -v '^ *+' conftest.er1 >conftest.err
34487  rm -f conftest.er1
34488  cat conftest.err >&5
34489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34490  (exit $ac_status); } &&
34491	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34492  { (case "(($ac_try" in
34493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34494  *) ac_try_echo=$ac_try;;
34495esac
34496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34497  (eval "$ac_try") 2>&5
34498  ac_status=$?
34499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34500  (exit $ac_status); }; } &&
34501	 { ac_try='test -s conftest.$ac_objext'
34502  { (case "(($ac_try" in
34503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34504  *) ac_try_echo=$ac_try;;
34505esac
34506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34507  (eval "$ac_try") 2>&5
34508  ac_status=$?
34509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34510  (exit $ac_status); }; }; then
34511  llvm_cv_cxx_visibility_inlines_hidden=yes
34512else
34513  echo "$as_me: failed program was:" >&5
34514sed 's/^/| /' conftest.$ac_ext >&5
34515
34516	llvm_cv_cxx_visibility_inlines_hidden=no
34517fi
34518
34519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34520  CXXFLAGS="$oldcxxflags"
34521  ac_ext=c
34522ac_cpp='$CPP $CPPFLAGS'
34523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34525ac_compiler_gnu=$ac_cv_c_compiler_gnu
34526
34527
34528fi
34529{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34530echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34531if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34532  ENABLE_VISIBILITY_INLINES_HIDDEN=1
34533
34534else
34535  ENABLE_VISIBILITY_INLINES_HIDDEN=0
34536
34537fi
34538
34539
34540
34541ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34542
34543ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34544
34545ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
34546
34547ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
34548
34549ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
34550
34551
34552ac_config_files="$ac_config_files Makefile.config"
34553
34554
34555ac_config_files="$ac_config_files llvm.spec"
34556
34557
34558ac_config_files="$ac_config_files docs/doxygen.cfg"
34559
34560
34561ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34562
34563
34564ac_config_commands="$ac_config_commands setup"
34565
34566ac_config_commands="$ac_config_commands Makefile"
34567
34568
34569ac_config_commands="$ac_config_commands Makefile.common"
34570
34571
34572ac_config_commands="$ac_config_commands examples/Makefile"
34573
34574
34575ac_config_commands="$ac_config_commands lib/Makefile"
34576
34577
34578ac_config_commands="$ac_config_commands runtime/Makefile"
34579
34580
34581ac_config_commands="$ac_config_commands test/Makefile"
34582
34583
34584ac_config_commands="$ac_config_commands test/Makefile.tests"
34585
34586
34587ac_config_commands="$ac_config_commands tools/Makefile"
34588
34589
34590ac_config_commands="$ac_config_commands utils/Makefile"
34591
34592
34593ac_config_commands="$ac_config_commands projects/Makefile"
34594
34595
34596ac_config_commands="$ac_config_commands bindings/Makefile"
34597
34598
34599ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34600
34601
34602
34603cat >confcache <<\_ACEOF
34604# This file is a shell script that caches the results of configure
34605# tests run on this system so they can be shared between configure
34606# scripts and configure runs, see configure's option --config-cache.
34607# It is not useful on other systems.  If it contains results you don't
34608# want to keep, you may remove or edit it.
34609#
34610# config.status only pays attention to the cache file if you give it
34611# the --recheck option to rerun configure.
34612#
34613# `ac_cv_env_foo' variables (set or unset) will be overridden when
34614# loading this file, other *unset* `ac_cv_foo' will be assigned the
34615# following values.
34616
34617_ACEOF
34618
34619# The following way of writing the cache mishandles newlines in values,
34620# but we know of no workaround that is simple, portable, and efficient.
34621# So, we kill variables containing newlines.
34622# Ultrix sh set writes to stderr and can't be redirected directly,
34623# and sets the high bit in the cache file unless we assign to the vars.
34624(
34625  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34626    eval ac_val=\$$ac_var
34627    case $ac_val in #(
34628    *${as_nl}*)
34629      case $ac_var in #(
34630      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34631echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34632      esac
34633      case $ac_var in #(
34634      _ | IFS | as_nl) ;; #(
34635      *) $as_unset $ac_var ;;
34636      esac ;;
34637    esac
34638  done
34639
34640  (set) 2>&1 |
34641    case $as_nl`(ac_space=' '; set) 2>&1` in #(
34642    *${as_nl}ac_space=\ *)
34643      # `set' does not quote correctly, so add quotes (double-quote
34644      # substitution turns \\\\ into \\, and sed turns \\ into \).
34645      sed -n \
34646	"s/'/'\\\\''/g;
34647	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34648      ;; #(
34649    *)
34650      # `set' quotes correctly as required by POSIX, so do not add quotes.
34651      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34652      ;;
34653    esac |
34654    sort
34655) |
34656  sed '
34657     /^ac_cv_env_/b end
34658     t clear
34659     :clear
34660     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34661     t end
34662     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34663     :end' >>confcache
34664if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34665  if test -w "$cache_file"; then
34666    test "x$cache_file" != "x/dev/null" &&
34667      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34668echo "$as_me: updating cache $cache_file" >&6;}
34669    cat confcache >$cache_file
34670  else
34671    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34672echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34673  fi
34674fi
34675rm -f confcache
34676
34677test "x$prefix" = xNONE && prefix=$ac_default_prefix
34678# Let make expand exec_prefix.
34679test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34680
34681DEFS=-DHAVE_CONFIG_H
34682
34683ac_libobjs=
34684ac_ltlibobjs=
34685for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34686  # 1. Remove the extension, and $U if already installed.
34687  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34688  ac_i=`echo "$ac_i" | sed "$ac_script"`
34689  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34690  #    will be set to the directory where LIBOBJS objects are built.
34691  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34692  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34693done
34694LIBOBJS=$ac_libobjs
34695
34696LTLIBOBJS=$ac_ltlibobjs
34697
34698
34699if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34700  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34701Usually this means the macro was only invoked conditionally." >&5
34702echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34703Usually this means the macro was only invoked conditionally." >&2;}
34704   { (exit 1); exit 1; }; }
34705fi
34706if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34707  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34708Usually this means the macro was only invoked conditionally." >&5
34709echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34710Usually this means the macro was only invoked conditionally." >&2;}
34711   { (exit 1); exit 1; }; }
34712fi
34713
34714: ${CONFIG_STATUS=./config.status}
34715ac_clean_files_save=$ac_clean_files
34716ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34717{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34718echo "$as_me: creating $CONFIG_STATUS" >&6;}
34719cat >$CONFIG_STATUS <<_ACEOF
34720#! $SHELL
34721# Generated by $as_me.
34722# Run this file to recreate the current configuration.
34723# Compiler output produced by configure, useful for debugging
34724# configure, is in config.log if it exists.
34725
34726debug=false
34727ac_cs_recheck=false
34728ac_cs_silent=false
34729SHELL=\${CONFIG_SHELL-$SHELL}
34730_ACEOF
34731
34732cat >>$CONFIG_STATUS <<\_ACEOF
34733## --------------------- ##
34734## M4sh Initialization.  ##
34735## --------------------- ##
34736
34737# Be Bourne compatible
34738if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34739  emulate sh
34740  NULLCMD=:
34741  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34742  # is contrary to our usage.  Disable this feature.
34743  alias -g '${1+"$@"}'='"$@"'
34744  setopt NO_GLOB_SUBST
34745else
34746  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34747fi
34748BIN_SH=xpg4; export BIN_SH # for Tru64
34749DUALCASE=1; export DUALCASE # for MKS sh
34750
34751
34752# PATH needs CR
34753# Avoid depending upon Character Ranges.
34754as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34755as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34756as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34757as_cr_digits='0123456789'
34758as_cr_alnum=$as_cr_Letters$as_cr_digits
34759
34760# The user is always right.
34761if test "${PATH_SEPARATOR+set}" != set; then
34762  echo "#! /bin/sh" >conf$$.sh
34763  echo  "exit 0"   >>conf$$.sh
34764  chmod +x conf$$.sh
34765  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34766    PATH_SEPARATOR=';'
34767  else
34768    PATH_SEPARATOR=:
34769  fi
34770  rm -f conf$$.sh
34771fi
34772
34773# Support unset when possible.
34774if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34775  as_unset=unset
34776else
34777  as_unset=false
34778fi
34779
34780
34781# IFS
34782# We need space, tab and new line, in precisely that order.  Quoting is
34783# there to prevent editors from complaining about space-tab.
34784# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34785# splitting by setting IFS to empty value.)
34786as_nl='
34787'
34788IFS=" ""	$as_nl"
34789
34790# Find who we are.  Look in the path if we contain no directory separator.
34791case $0 in
34792  *[\\/]* ) as_myself=$0 ;;
34793  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34794for as_dir in $PATH
34795do
34796  IFS=$as_save_IFS
34797  test -z "$as_dir" && as_dir=.
34798  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34799done
34800IFS=$as_save_IFS
34801
34802     ;;
34803esac
34804# We did not find ourselves, most probably we were run as `sh COMMAND'
34805# in which case we are not to be found in the path.
34806if test "x$as_myself" = x; then
34807  as_myself=$0
34808fi
34809if test ! -f "$as_myself"; then
34810  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34811  { (exit 1); exit 1; }
34812fi
34813
34814# Work around bugs in pre-3.0 UWIN ksh.
34815for as_var in ENV MAIL MAILPATH
34816do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34817done
34818PS1='$ '
34819PS2='> '
34820PS4='+ '
34821
34822# NLS nuisances.
34823for as_var in \
34824  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34825  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34826  LC_TELEPHONE LC_TIME
34827do
34828  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34829    eval $as_var=C; export $as_var
34830  else
34831    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34832  fi
34833done
34834
34835# Required to use basename.
34836if expr a : '\(a\)' >/dev/null 2>&1 &&
34837   test "X`expr 00001 : '.*\(...\)'`" = X001; then
34838  as_expr=expr
34839else
34840  as_expr=false
34841fi
34842
34843if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34844  as_basename=basename
34845else
34846  as_basename=false
34847fi
34848
34849
34850# Name of the executable.
34851as_me=`$as_basename -- "$0" ||
34852$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34853	 X"$0" : 'X\(//\)$' \| \
34854	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34855echo X/"$0" |
34856    sed '/^.*\/\([^/][^/]*\)\/*$/{
34857	    s//\1/
34858	    q
34859	  }
34860	  /^X\/\(\/\/\)$/{
34861	    s//\1/
34862	    q
34863	  }
34864	  /^X\/\(\/\).*/{
34865	    s//\1/
34866	    q
34867	  }
34868	  s/.*/./; q'`
34869
34870# CDPATH.
34871$as_unset CDPATH
34872
34873
34874
34875  as_lineno_1=$LINENO
34876  as_lineno_2=$LINENO
34877  test "x$as_lineno_1" != "x$as_lineno_2" &&
34878  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34879
34880  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34881  # uniformly replaced by the line number.  The first 'sed' inserts a
34882  # line-number line after each line using $LINENO; the second 'sed'
34883  # does the real work.  The second script uses 'N' to pair each
34884  # line-number line with the line containing $LINENO, and appends
34885  # trailing '-' during substitution so that $LINENO is not a special
34886  # case at line end.
34887  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34888  # scripts with optimization help from Paolo Bonzini.  Blame Lee
34889  # E. McMahon (1931-1989) for sed's syntax.  :-)
34890  sed -n '
34891    p
34892    /[$]LINENO/=
34893  ' <$as_myself |
34894    sed '
34895      s/[$]LINENO.*/&-/
34896      t lineno
34897      b
34898      :lineno
34899      N
34900      :loop
34901      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34902      t loop
34903      s/-\n.*//
34904    ' >$as_me.lineno &&
34905  chmod +x "$as_me.lineno" ||
34906    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34907   { (exit 1); exit 1; }; }
34908
34909  # Don't try to exec as it changes $[0], causing all sort of problems
34910  # (the dirname of $[0] is not the place where we might find the
34911  # original and so on.  Autoconf is especially sensitive to this).
34912  . "./$as_me.lineno"
34913  # Exit status is that of the last command.
34914  exit
34915}
34916
34917
34918if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34919  as_dirname=dirname
34920else
34921  as_dirname=false
34922fi
34923
34924ECHO_C= ECHO_N= ECHO_T=
34925case `echo -n x` in
34926-n*)
34927  case `echo 'x\c'` in
34928  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
34929  *)   ECHO_C='\c';;
34930  esac;;
34931*)
34932  ECHO_N='-n';;
34933esac
34934
34935if expr a : '\(a\)' >/dev/null 2>&1 &&
34936   test "X`expr 00001 : '.*\(...\)'`" = X001; then
34937  as_expr=expr
34938else
34939  as_expr=false
34940fi
34941
34942rm -f conf$$ conf$$.exe conf$$.file
34943if test -d conf$$.dir; then
34944  rm -f conf$$.dir/conf$$.file
34945else
34946  rm -f conf$$.dir
34947  mkdir conf$$.dir
34948fi
34949echo >conf$$.file
34950if ln -s conf$$.file conf$$ 2>/dev/null; then
34951  as_ln_s='ln -s'
34952  # ... but there are two gotchas:
34953  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34954  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34955  # In both cases, we have to default to `cp -p'.
34956  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34957    as_ln_s='cp -p'
34958elif ln conf$$.file conf$$ 2>/dev/null; then
34959  as_ln_s=ln
34960else
34961  as_ln_s='cp -p'
34962fi
34963rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34964rmdir conf$$.dir 2>/dev/null
34965
34966if mkdir -p . 2>/dev/null; then
34967  as_mkdir_p=:
34968else
34969  test -d ./-p && rmdir ./-p
34970  as_mkdir_p=false
34971fi
34972
34973# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34974# systems may use methods other than mode bits to determine executability.
34975cat >conf$$.file <<_ASEOF
34976#! /bin/sh
34977exit 0
34978_ASEOF
34979chmod +x conf$$.file
34980if test -x conf$$.file >/dev/null 2>&1; then
34981  as_executable_p="test -x"
34982else
34983  as_executable_p=:
34984fi
34985rm -f conf$$.file
34986
34987# Sed expression to map a string onto a valid CPP name.
34988as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34989
34990# Sed expression to map a string onto a valid variable name.
34991as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34992
34993
34994exec 6>&1
34995
34996# Save the log message, to keep $[0] and so on meaningful, and to
34997# report actual input values of CONFIG_FILES etc. instead of their
34998# values after options handling.
34999ac_log="
35000This file was extended by llvm $as_me 2.5svn, which was
35001generated by GNU Autoconf 2.60.  Invocation command line was
35002
35003  CONFIG_FILES    = $CONFIG_FILES
35004  CONFIG_HEADERS  = $CONFIG_HEADERS
35005  CONFIG_LINKS    = $CONFIG_LINKS
35006  CONFIG_COMMANDS = $CONFIG_COMMANDS
35007  $ $0 $@
35008
35009on `(hostname || uname -n) 2>/dev/null | sed 1q`
35010"
35011
35012_ACEOF
35013
35014cat >>$CONFIG_STATUS <<_ACEOF
35015# Files that config.status was made for.
35016config_files="$ac_config_files"
35017config_headers="$ac_config_headers"
35018config_commands="$ac_config_commands"
35019
35020_ACEOF
35021
35022cat >>$CONFIG_STATUS <<\_ACEOF
35023ac_cs_usage="\
35024\`$as_me' instantiates files from templates according to the
35025current configuration.
35026
35027Usage: $0 [OPTIONS] [FILE]...
35028
35029  -h, --help       print this help, then exit
35030  -V, --version    print version number, then exit
35031  -q, --quiet      do not print progress messages
35032  -d, --debug      don't remove temporary files
35033      --recheck    update $as_me by reconfiguring in the same conditions
35034  --file=FILE[:TEMPLATE]
35035		   instantiate the configuration file FILE
35036  --header=FILE[:TEMPLATE]
35037		   instantiate the configuration header FILE
35038
35039Configuration files:
35040$config_files
35041
35042Configuration headers:
35043$config_headers
35044
35045Configuration commands:
35046$config_commands
35047
35048Report bugs to <bug-autoconf@gnu.org>."
35049
35050_ACEOF
35051cat >>$CONFIG_STATUS <<_ACEOF
35052ac_cs_version="\\
35053llvm config.status 2.5svn
35054configured by $0, generated by GNU Autoconf 2.60,
35055  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35056
35057Copyright (C) 2006 Free Software Foundation, Inc.
35058This config.status script is free software; the Free Software Foundation
35059gives unlimited permission to copy, distribute and modify it."
35060
35061ac_pwd='$ac_pwd'
35062srcdir='$srcdir'
35063INSTALL='$INSTALL'
35064_ACEOF
35065
35066cat >>$CONFIG_STATUS <<\_ACEOF
35067# If no file are specified by the user, then we need to provide default
35068# value.  By we need to know if files were specified by the user.
35069ac_need_defaults=:
35070while test $# != 0
35071do
35072  case $1 in
35073  --*=*)
35074    ac_option=`expr "X$1" : 'X\([^=]*\)='`
35075    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35076    ac_shift=:
35077    ;;
35078  *)
35079    ac_option=$1
35080    ac_optarg=$2
35081    ac_shift=shift
35082    ;;
35083  esac
35084
35085  case $ac_option in
35086  # Handling of the options.
35087  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35088    ac_cs_recheck=: ;;
35089  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35090    echo "$ac_cs_version"; exit ;;
35091  --debug | --debu | --deb | --de | --d | -d )
35092    debug=: ;;
35093  --file | --fil | --fi | --f )
35094    $ac_shift
35095    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35096    ac_need_defaults=false;;
35097  --header | --heade | --head | --hea )
35098    $ac_shift
35099    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35100    ac_need_defaults=false;;
35101  --he | --h)
35102    # Conflict between --help and --header
35103    { echo "$as_me: error: ambiguous option: $1
35104Try \`$0 --help' for more information." >&2
35105   { (exit 1); exit 1; }; };;
35106  --help | --hel | -h )
35107    echo "$ac_cs_usage"; exit ;;
35108  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35109  | -silent | --silent | --silen | --sile | --sil | --si | --s)
35110    ac_cs_silent=: ;;
35111
35112  # This is an error.
35113  -*) { echo "$as_me: error: unrecognized option: $1
35114Try \`$0 --help' for more information." >&2
35115   { (exit 1); exit 1; }; } ;;
35116
35117  *) ac_config_targets="$ac_config_targets $1"
35118     ac_need_defaults=false ;;
35119
35120  esac
35121  shift
35122done
35123
35124ac_configure_extra_args=
35125
35126if $ac_cs_silent; then
35127  exec 6>/dev/null
35128  ac_configure_extra_args="$ac_configure_extra_args --silent"
35129fi
35130
35131_ACEOF
35132cat >>$CONFIG_STATUS <<_ACEOF
35133if \$ac_cs_recheck; then
35134  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35135  CONFIG_SHELL=$SHELL
35136  export CONFIG_SHELL
35137  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35138fi
35139
35140_ACEOF
35141cat >>$CONFIG_STATUS <<\_ACEOF
35142exec 5>>config.log
35143{
35144  echo
35145  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35146## Running $as_me. ##
35147_ASBOX
35148  echo "$ac_log"
35149} >&5
35150
35151_ACEOF
35152cat >>$CONFIG_STATUS <<_ACEOF
35153#
35154# INIT-COMMANDS
35155#
35156llvm_src="${srcdir}"
35157
35158_ACEOF
35159
35160cat >>$CONFIG_STATUS <<\_ACEOF
35161
35162# Handling of arguments.
35163for ac_config_target in $ac_config_targets
35164do
35165  case $ac_config_target in
35166    "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35167    "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
35168    "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
35169    "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
35170    "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
35171    "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35172    "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35173    "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35174    "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35175    "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35176    "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35177    "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35178    "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35179    "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35180    "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35181    "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35182    "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35183    "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35184    "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35185    "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35186    "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35187    "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35188
35189  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35190echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35191   { (exit 1); exit 1; }; };;
35192  esac
35193done
35194
35195
35196# If the user did not use the arguments to specify the items to instantiate,
35197# then the envvar interface is used.  Set only those that are not.
35198# We use the long form for the default assignment because of an extremely
35199# bizarre bug on SunOS 4.1.3.
35200if $ac_need_defaults; then
35201  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35202  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35203  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35204fi
35205
35206# Have a temporary directory for convenience.  Make it in the build tree
35207# simply because there is no reason against having it here, and in addition,
35208# creating and moving files from /tmp can sometimes cause problems.
35209# Hook for its removal unless debugging.
35210# Note that there is a small window in which the directory will not be cleaned:
35211# after its creation but before its name has been assigned to `$tmp'.
35212$debug ||
35213{
35214  tmp=
35215  trap 'exit_status=$?
35216  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35217' 0
35218  trap '{ (exit 1); exit 1; }' 1 2 13 15
35219}
35220# Create a (secure) tmp directory for tmp files.
35221
35222{
35223  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35224  test -n "$tmp" && test -d "$tmp"
35225}  ||
35226{
35227  tmp=./conf$$-$RANDOM
35228  (umask 077 && mkdir "$tmp")
35229} ||
35230{
35231   echo "$me: cannot create a temporary directory in ." >&2
35232   { (exit 1); exit 1; }
35233}
35234
35235#
35236# Set up the sed scripts for CONFIG_FILES section.
35237#
35238
35239# No need to generate the scripts if there are no CONFIG_FILES.
35240# This happens for instance when ./config.status config.h
35241if test -n "$CONFIG_FILES"; then
35242
35243_ACEOF
35244
35245
35246
35247ac_delim='%!_!# '
35248for ac_last_try in false false false false false :; do
35249  cat >conf$$subs.sed <<_ACEOF
35250SHELL!$SHELL$ac_delim
35251PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35252PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35253PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35254PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35255PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35256PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35257exec_prefix!$exec_prefix$ac_delim
35258prefix!$prefix$ac_delim
35259program_transform_name!$program_transform_name$ac_delim
35260bindir!$bindir$ac_delim
35261sbindir!$sbindir$ac_delim
35262libexecdir!$libexecdir$ac_delim
35263datarootdir!$datarootdir$ac_delim
35264datadir!$datadir$ac_delim
35265sysconfdir!$sysconfdir$ac_delim
35266sharedstatedir!$sharedstatedir$ac_delim
35267localstatedir!$localstatedir$ac_delim
35268includedir!$includedir$ac_delim
35269oldincludedir!$oldincludedir$ac_delim
35270docdir!$docdir$ac_delim
35271infodir!$infodir$ac_delim
35272htmldir!$htmldir$ac_delim
35273dvidir!$dvidir$ac_delim
35274pdfdir!$pdfdir$ac_delim
35275psdir!$psdir$ac_delim
35276libdir!$libdir$ac_delim
35277localedir!$localedir$ac_delim
35278mandir!$mandir$ac_delim
35279DEFS!$DEFS$ac_delim
35280ECHO_C!$ECHO_C$ac_delim
35281ECHO_N!$ECHO_N$ac_delim
35282ECHO_T!$ECHO_T$ac_delim
35283LIBS!$LIBS$ac_delim
35284build_alias!$build_alias$ac_delim
35285host_alias!$host_alias$ac_delim
35286target_alias!$target_alias$ac_delim
35287LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35288subdirs!$subdirs$ac_delim
35289build!$build$ac_delim
35290build_cpu!$build_cpu$ac_delim
35291build_vendor!$build_vendor$ac_delim
35292build_os!$build_os$ac_delim
35293host!$host$ac_delim
35294host_cpu!$host_cpu$ac_delim
35295host_vendor!$host_vendor$ac_delim
35296host_os!$host_os$ac_delim
35297target!$target$ac_delim
35298target_cpu!$target_cpu$ac_delim
35299target_vendor!$target_vendor$ac_delim
35300target_os!$target_os$ac_delim
35301OS!$OS$ac_delim
35302LINKALL!$LINKALL$ac_delim
35303NOLINKALL!$NOLINKALL$ac_delim
35304LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35305LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35306ARCH!$ARCH$ac_delim
35307ENDIAN!$ENDIAN$ac_delim
35308CC!$CC$ac_delim
35309CFLAGS!$CFLAGS$ac_delim
35310LDFLAGS!$LDFLAGS$ac_delim
35311CPPFLAGS!$CPPFLAGS$ac_delim
35312ac_ct_CC!$ac_ct_CC$ac_delim
35313EXEEXT!$EXEEXT$ac_delim
35314OBJEXT!$OBJEXT$ac_delim
35315CPP!$CPP$ac_delim
35316GREP!$GREP$ac_delim
35317EGREP!$EGREP$ac_delim
35318LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35319BUILD_CC!$BUILD_CC$ac_delim
35320BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35321BUILD_CXX!$BUILD_CXX$ac_delim
35322CVSBUILD!$CVSBUILD$ac_delim
35323ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35324DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
35325ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35326EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
35327DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
35328JIT!$JIT$ac_delim
35329TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35330ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35331ENABLE_THREADS!$ENABLE_THREADS$ac_delim
35332ENABLE_PIC!$ENABLE_PIC$ac_delim
35333TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
35334ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
35335EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35336CXX!$CXX$ac_delim
35337CXXFLAGS!$CXXFLAGS$ac_delim
35338ac_ct_CXX!$ac_ct_CXX$ac_delim
35339LEX!$LEX$ac_delim
35340LEXLIB!$LEXLIB$ac_delim
35341LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
35342FLEX!$FLEX$ac_delim
35343YACC!$YACC$ac_delim
35344YFLAGS!$YFLAGS$ac_delim
35345BISON!$BISON$ac_delim
35346NM!$NM$ac_delim
35347_ACEOF
35348
35349  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35350    break
35351  elif $ac_last_try; then
35352    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35353echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35354   { (exit 1); exit 1; }; }
35355  else
35356    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35357  fi
35358done
35359
35360ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35361if test -n "$ac_eof"; then
35362  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35363  ac_eof=`expr $ac_eof + 1`
35364fi
35365
35366cat >>$CONFIG_STATUS <<_ACEOF
35367cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35368/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35369_ACEOF
35370sed '
35371s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35372s/^/s,@/; s/!/@,|#_!!_#|/
35373:n
35374t n
35375s/'"$ac_delim"'$/,g/; t
35376s/$/\\/; p
35377N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35378' >>$CONFIG_STATUS <conf$$subs.sed
35379rm -f conf$$subs.sed
35380cat >>$CONFIG_STATUS <<_ACEOF
35381CEOF$ac_eof
35382_ACEOF
35383
35384
35385ac_delim='%!_!# '
35386for ac_last_try in false false false false false :; do
35387  cat >conf$$subs.sed <<_ACEOF
35388ifGNUmake!$ifGNUmake$ac_delim
35389LN_S!$LN_S$ac_delim
35390CMP!$CMP$ac_delim
35391CP!$CP$ac_delim
35392DATE!$DATE$ac_delim
35393FIND!$FIND$ac_delim
35394MKDIR!$MKDIR$ac_delim
35395MV!$MV$ac_delim
35396RANLIB!$RANLIB$ac_delim
35397RM!$RM$ac_delim
35398SED!$SED$ac_delim
35399TAR!$TAR$ac_delim
35400BINPWD!$BINPWD$ac_delim
35401GRAPHVIZ!$GRAPHVIZ$ac_delim
35402DOT!$DOT$ac_delim
35403GV!$GV$ac_delim
35404DOTTY!$DOTTY$ac_delim
35405PERL!$PERL$ac_delim
35406HAVE_PERL!$HAVE_PERL$ac_delim
35407INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35408INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35409INSTALL_DATA!$INSTALL_DATA$ac_delim
35410BZIP2!$BZIP2$ac_delim
35411DOXYGEN!$DOXYGEN$ac_delim
35412GROFF!$GROFF$ac_delim
35413GZIP!$GZIP$ac_delim
35414POD2HTML!$POD2HTML$ac_delim
35415POD2MAN!$POD2MAN$ac_delim
35416RUNTEST!$RUNTEST$ac_delim
35417TCLSH!$TCLSH$ac_delim
35418ZIP!$ZIP$ac_delim
35419OCAMLC!$OCAMLC$ac_delim
35420OCAMLOPT!$OCAMLOPT$ac_delim
35421OCAMLDEP!$OCAMLDEP$ac_delim
35422OCAMLDOC!$OCAMLDOC$ac_delim
35423GAS!$GAS$ac_delim
35424INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35425INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35426CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35427CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35428LIBADD_DL!$LIBADD_DL$ac_delim
35429ECHO!$ECHO$ac_delim
35430AR!$AR$ac_delim
35431STRIP!$STRIP$ac_delim
35432CXXCPP!$CXXCPP$ac_delim
35433F77!$F77$ac_delim
35434FFLAGS!$FFLAGS$ac_delim
35435ac_ct_F77!$ac_ct_F77$ac_delim
35436LIBTOOL!$LIBTOOL$ac_delim
35437LLVMGCC!$LLVMGCC$ac_delim
35438LLVMGXX!$LLVMGXX$ac_delim
35439USE_UDIS86!$USE_UDIS86$ac_delim
35440HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
35441HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
35442ALLOCA!$ALLOCA$ac_delim
35443MMAP_FILE!$MMAP_FILE$ac_delim
35444LLVMCC1!$LLVMCC1$ac_delim
35445LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35446LLVMGCCDIR!$LLVMGCCDIR$ac_delim
35447LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
35448LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35449LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35450LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35451SHLIBEXT!$SHLIBEXT$ac_delim
35452LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35453LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35454LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35455LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35456LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35457LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35458LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35459LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35460LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35461LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
35462BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35463ALL_BINDINGS!$ALL_BINDINGS$ac_delim
35464OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
35465ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
35466LIBOBJS!$LIBOBJS$ac_delim
35467LTLIBOBJS!$LTLIBOBJS$ac_delim
35468_ACEOF
35469
35470  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
35471    break
35472  elif $ac_last_try; then
35473    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35474echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35475   { (exit 1); exit 1; }; }
35476  else
35477    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35478  fi
35479done
35480
35481ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35482if test -n "$ac_eof"; then
35483  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35484  ac_eof=`expr $ac_eof + 1`
35485fi
35486
35487cat >>$CONFIG_STATUS <<_ACEOF
35488cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35489/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35490_ACEOF
35491sed '
35492s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35493s/^/s,@/; s/!/@,|#_!!_#|/
35494:n
35495t n
35496s/'"$ac_delim"'$/,g/; t
35497s/$/\\/; p
35498N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35499' >>$CONFIG_STATUS <conf$$subs.sed
35500rm -f conf$$subs.sed
35501cat >>$CONFIG_STATUS <<_ACEOF
35502:end
35503s/|#_!!_#|//g
35504CEOF$ac_eof
35505_ACEOF
35506
35507
35508# VPATH may cause trouble with some makes, so we remove $(srcdir),
35509# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35510# trailing colons and then remove the whole line if VPATH becomes empty
35511# (actually we leave an empty line to preserve line numbers).
35512if test "x$srcdir" = x.; then
35513  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
35514s/:*\$(srcdir):*/:/
35515s/:*\${srcdir}:*/:/
35516s/:*@srcdir@:*/:/
35517s/^\([^=]*=[	 ]*\):*/\1/
35518s/:*$//
35519s/^[^=]*=[	 ]*$//
35520}'
35521fi
35522
35523cat >>$CONFIG_STATUS <<\_ACEOF
35524fi # test -n "$CONFIG_FILES"
35525
35526
35527for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35528do
35529  case $ac_tag in
35530  :[FHLC]) ac_mode=$ac_tag; continue;;
35531  esac
35532  case $ac_mode$ac_tag in
35533  :[FHL]*:*);;
35534  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35535echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35536   { (exit 1); exit 1; }; };;
35537  :[FH]-) ac_tag=-:-;;
35538  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35539  esac
35540  ac_save_IFS=$IFS
35541  IFS=:
35542  set x $ac_tag
35543  IFS=$ac_save_IFS
35544  shift
35545  ac_file=$1
35546  shift
35547
35548  case $ac_mode in
35549  :L) ac_source=$1;;
35550  :[FH])
35551    ac_file_inputs=
35552    for ac_f
35553    do
35554      case $ac_f in
35555      -) ac_f="$tmp/stdin";;
35556      *) # Look for the file first in the build tree, then in the source tree
35557	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
35558	 # because $ac_f cannot contain `:'.
35559	 test -f "$ac_f" ||
35560	   case $ac_f in
35561	   [\\/$]*) false;;
35562	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35563	   esac ||
35564	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35565echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35566   { (exit 1); exit 1; }; };;
35567      esac
35568      ac_file_inputs="$ac_file_inputs $ac_f"
35569    done
35570
35571    # Let's still pretend it is `configure' which instantiates (i.e., don't
35572    # use $as_me), people would be surprised to read:
35573    #    /* config.h.  Generated by config.status.  */
35574    configure_input="Generated from "`IFS=:
35575	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35576    if test x"$ac_file" != x-; then
35577      configure_input="$ac_file.  $configure_input"
35578      { echo "$as_me:$LINENO: creating $ac_file" >&5
35579echo "$as_me: creating $ac_file" >&6;}
35580    fi
35581
35582    case $ac_tag in
35583    *:-:* | *:-) cat >"$tmp/stdin";;
35584    esac
35585    ;;
35586  esac
35587
35588  ac_dir=`$as_dirname -- "$ac_file" ||
35589$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35590	 X"$ac_file" : 'X\(//\)[^/]' \| \
35591	 X"$ac_file" : 'X\(//\)$' \| \
35592	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35593echo X"$ac_file" |
35594    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35595	    s//\1/
35596	    q
35597	  }
35598	  /^X\(\/\/\)[^/].*/{
35599	    s//\1/
35600	    q
35601	  }
35602	  /^X\(\/\/\)$/{
35603	    s//\1/
35604	    q
35605	  }
35606	  /^X\(\/\).*/{
35607	    s//\1/
35608	    q
35609	  }
35610	  s/.*/./; q'`
35611  { as_dir="$ac_dir"
35612  case $as_dir in #(
35613  -*) as_dir=./$as_dir;;
35614  esac
35615  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35616    as_dirs=
35617    while :; do
35618      case $as_dir in #(
35619      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35620      *) as_qdir=$as_dir;;
35621      esac
35622      as_dirs="'$as_qdir' $as_dirs"
35623      as_dir=`$as_dirname -- "$as_dir" ||
35624$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35625	 X"$as_dir" : 'X\(//\)[^/]' \| \
35626	 X"$as_dir" : 'X\(//\)$' \| \
35627	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35628echo X"$as_dir" |
35629    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35630	    s//\1/
35631	    q
35632	  }
35633	  /^X\(\/\/\)[^/].*/{
35634	    s//\1/
35635	    q
35636	  }
35637	  /^X\(\/\/\)$/{
35638	    s//\1/
35639	    q
35640	  }
35641	  /^X\(\/\).*/{
35642	    s//\1/
35643	    q
35644	  }
35645	  s/.*/./; q'`
35646      test -d "$as_dir" && break
35647    done
35648    test -z "$as_dirs" || eval "mkdir $as_dirs"
35649  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35650echo "$as_me: error: cannot create directory $as_dir" >&2;}
35651   { (exit 1); exit 1; }; }; }
35652  ac_builddir=.
35653
35654case "$ac_dir" in
35655.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35656*)
35657  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35658  # A ".." for each directory in $ac_dir_suffix.
35659  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35660  case $ac_top_builddir_sub in
35661  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35662  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35663  esac ;;
35664esac
35665ac_abs_top_builddir=$ac_pwd
35666ac_abs_builddir=$ac_pwd$ac_dir_suffix
35667# for backward compatibility:
35668ac_top_builddir=$ac_top_build_prefix
35669
35670case $srcdir in
35671  .)  # We are building in place.
35672    ac_srcdir=.
35673    ac_top_srcdir=$ac_top_builddir_sub
35674    ac_abs_top_srcdir=$ac_pwd ;;
35675  [\\/]* | ?:[\\/]* )  # Absolute name.
35676    ac_srcdir=$srcdir$ac_dir_suffix;
35677    ac_top_srcdir=$srcdir
35678    ac_abs_top_srcdir=$srcdir ;;
35679  *) # Relative name.
35680    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35681    ac_top_srcdir=$ac_top_build_prefix$srcdir
35682    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35683esac
35684ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35685
35686
35687  case $ac_mode in
35688  :F)
35689  #
35690  # CONFIG_FILE
35691  #
35692
35693  case $INSTALL in
35694  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35695  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35696  esac
35697_ACEOF
35698
35699cat >>$CONFIG_STATUS <<\_ACEOF
35700# If the template does not know about datarootdir, expand it.
35701# FIXME: This hack should be removed a few years after 2.60.
35702ac_datarootdir_hack=; ac_datarootdir_seen=
35703
35704case `sed -n '/datarootdir/ {
35705  p
35706  q
35707}
35708/@datadir@/p
35709/@docdir@/p
35710/@infodir@/p
35711/@localedir@/p
35712/@mandir@/p
35713' $ac_file_inputs` in
35714*datarootdir*) ac_datarootdir_seen=yes;;
35715*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35716  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35717echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35718_ACEOF
35719cat >>$CONFIG_STATUS <<_ACEOF
35720  ac_datarootdir_hack='
35721  s&@datadir@&$datadir&g
35722  s&@docdir@&$docdir&g
35723  s&@infodir@&$infodir&g
35724  s&@localedir@&$localedir&g
35725  s&@mandir@&$mandir&g
35726    s&\\\${datarootdir}&$datarootdir&g' ;;
35727esac
35728_ACEOF
35729
35730# Neutralize VPATH when `$srcdir' = `.'.
35731# Shell code in configure.ac might set extrasub.
35732# FIXME: do we really want to maintain this feature?
35733cat >>$CONFIG_STATUS <<_ACEOF
35734  sed "$ac_vpsub
35735$extrasub
35736_ACEOF
35737cat >>$CONFIG_STATUS <<\_ACEOF
35738:t
35739/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35740s&@configure_input@&$configure_input&;t t
35741s&@top_builddir@&$ac_top_builddir_sub&;t t
35742s&@srcdir@&$ac_srcdir&;t t
35743s&@abs_srcdir@&$ac_abs_srcdir&;t t
35744s&@top_srcdir@&$ac_top_srcdir&;t t
35745s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35746s&@builddir@&$ac_builddir&;t t
35747s&@abs_builddir@&$ac_abs_builddir&;t t
35748s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35749s&@INSTALL@&$ac_INSTALL&;t t
35750$ac_datarootdir_hack
35751" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35752
35753test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35754  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35755  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35756  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35757which seems to be undefined.  Please make sure it is defined." >&5
35758echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35759which seems to be undefined.  Please make sure it is defined." >&2;}
35760
35761  rm -f "$tmp/stdin"
35762  case $ac_file in
35763  -) cat "$tmp/out"; rm -f "$tmp/out";;
35764  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35765  esac
35766 ;;
35767  :H)
35768  #
35769  # CONFIG_HEADER
35770  #
35771_ACEOF
35772
35773# Transform confdefs.h into a sed script `conftest.defines', that
35774# substitutes the proper values into config.h.in to produce config.h.
35775rm -f conftest.defines conftest.tail
35776# First, append a space to every undef/define line, to ease matching.
35777echo 's/$/ /' >conftest.defines
35778# Then, protect against being on the right side of a sed subst, or in
35779# an unquoted here document, in config.status.  If some macros were
35780# called several times there might be several #defines for the same
35781# symbol, which is useless.  But do not sort them, since the last
35782# AC_DEFINE must be honored.
35783ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35784# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35785# NAME is the cpp macro being defined, VALUE is the value it is being given.
35786# PARAMS is the parameter list in the macro definition--in most cases, it's
35787# just an empty string.
35788ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
35789ac_dB='\\)[	 (].*,\\1define\\2'
35790ac_dC=' '
35791ac_dD=' ,'
35792
35793uniq confdefs.h |
35794  sed -n '
35795	t rset
35796	:rset
35797	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
35798	t ok
35799	d
35800	:ok
35801	s/[\\&,]/\\&/g
35802	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35803	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35804  ' >>conftest.defines
35805
35806# Remove the space that was appended to ease matching.
35807# Then replace #undef with comments.  This is necessary, for
35808# example, in the case of _POSIX_SOURCE, which is predefined and required
35809# on some systems where configure will not decide to define it.
35810# (The regexp can be short, since the line contains either #define or #undef.)
35811echo 's/ $//
35812s,^[	 #]*u.*,/* & */,' >>conftest.defines
35813
35814# Break up conftest.defines:
35815ac_max_sed_lines=50
35816
35817# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35818# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35819# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35820# et cetera.
35821ac_in='$ac_file_inputs'
35822ac_out='"$tmp/out1"'
35823ac_nxt='"$tmp/out2"'
35824
35825while :
35826do
35827  # Write a here document:
35828    cat >>$CONFIG_STATUS <<_ACEOF
35829    # First, check the format of the line:
35830    cat >"\$tmp/defines.sed" <<\\CEOF
35831/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
35832/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
35833b
35834:def
35835_ACEOF
35836  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35837  echo 'CEOF
35838    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35839  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35840  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35841  grep . conftest.tail >/dev/null || break
35842  rm -f conftest.defines
35843  mv conftest.tail conftest.defines
35844done
35845rm -f conftest.defines conftest.tail
35846
35847echo "ac_result=$ac_in" >>$CONFIG_STATUS
35848cat >>$CONFIG_STATUS <<\_ACEOF
35849  if test x"$ac_file" != x-; then
35850    echo "/* $configure_input  */" >"$tmp/config.h"
35851    cat "$ac_result" >>"$tmp/config.h"
35852    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35853      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35854echo "$as_me: $ac_file is unchanged" >&6;}
35855    else
35856      rm -f $ac_file
35857      mv "$tmp/config.h" $ac_file
35858    fi
35859  else
35860    echo "/* $configure_input  */"
35861    cat "$ac_result"
35862  fi
35863  rm -f "$tmp/out12"
35864 ;;
35865
35866  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35867echo "$as_me: executing $ac_file commands" >&6;}
35868 ;;
35869  esac
35870
35871
35872  case $ac_file$ac_mode in
35873    "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35874   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35875    "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35876   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35877    "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35878   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35879    "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35880   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35881    "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35882   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35883    "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35884   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35885    "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35886   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35887    "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35888   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35889    "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35890   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35891    "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35892   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
35893    "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35894   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35895    "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35896   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
35897
35898  esac
35899done # for ac_tag
35900
35901
35902{ (exit 0); exit 0; }
35903_ACEOF
35904chmod +x $CONFIG_STATUS
35905ac_clean_files=$ac_clean_files_save
35906
35907
35908# configure is writing to config.log, and then calls config.status.
35909# config.status does its own redirection, appending to config.log.
35910# Unfortunately, on DOS this fails, as config.log is still kept open
35911# by configure, so config.status won't be able to write to it; its
35912# output is simply discarded.  So we exec the FD to /dev/null,
35913# effectively closing config.log, so it can be properly (re)opened and
35914# appended to by config.status.  When coming back to configure, we
35915# need to make the FD available again.
35916if test "$no_create" != yes; then
35917  ac_cs_success=:
35918  ac_config_status_args=
35919  test "$silent" = yes &&
35920    ac_config_status_args="$ac_config_status_args --quiet"
35921  exec 5>/dev/null
35922  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35923  exec 5>>config.log
35924  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35925  # would make configure fail if this is the last instruction.
35926  $ac_cs_success || { (exit 1); exit 1; }
35927fi
35928
35929#
35930# CONFIG_SUBDIRS section.
35931#
35932if test "$no_recursion" != yes; then
35933
35934  # Remove --cache-file and --srcdir arguments so they do not pile up.
35935  ac_sub_configure_args=
35936  ac_prev=
35937  eval "set x $ac_configure_args"
35938  shift
35939  for ac_arg
35940  do
35941    if test -n "$ac_prev"; then
35942      ac_prev=
35943      continue
35944    fi
35945    case $ac_arg in
35946    -cache-file | --cache-file | --cache-fil | --cache-fi \
35947    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35948      ac_prev=cache_file ;;
35949    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35950    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35951    | --c=*)
35952      ;;
35953    --config-cache | -C)
35954      ;;
35955    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35956      ac_prev=srcdir ;;
35957    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35958      ;;
35959    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35960      ac_prev=prefix ;;
35961    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35962      ;;
35963    *)
35964      case $ac_arg in
35965      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35966      esac
35967      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35968    esac
35969  done
35970
35971  # Always prepend --prefix to ensure using the same prefix
35972  # in subdir configurations.
35973  ac_arg="--prefix=$prefix"
35974  case $ac_arg in
35975  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35976  esac
35977  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35978
35979  ac_popdir=`pwd`
35980  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35981
35982    # Do not complain, so a configure script can configure whichever
35983    # parts of a large source tree are present.
35984    test -d "$srcdir/$ac_dir" || continue
35985
35986    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35987    echo "$as_me:$LINENO: $ac_msg" >&5
35988    echo "$ac_msg" >&6
35989    { as_dir="$ac_dir"
35990  case $as_dir in #(
35991  -*) as_dir=./$as_dir;;
35992  esac
35993  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35994    as_dirs=
35995    while :; do
35996      case $as_dir in #(
35997      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35998      *) as_qdir=$as_dir;;
35999      esac
36000      as_dirs="'$as_qdir' $as_dirs"
36001      as_dir=`$as_dirname -- "$as_dir" ||
36002$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36003	 X"$as_dir" : 'X\(//\)[^/]' \| \
36004	 X"$as_dir" : 'X\(//\)$' \| \
36005	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36006echo X"$as_dir" |
36007    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36008	    s//\1/
36009	    q
36010	  }
36011	  /^X\(\/\/\)[^/].*/{
36012	    s//\1/
36013	    q
36014	  }
36015	  /^X\(\/\/\)$/{
36016	    s//\1/
36017	    q
36018	  }
36019	  /^X\(\/\).*/{
36020	    s//\1/
36021	    q
36022	  }
36023	  s/.*/./; q'`
36024      test -d "$as_dir" && break
36025    done
36026    test -z "$as_dirs" || eval "mkdir $as_dirs"
36027  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36028echo "$as_me: error: cannot create directory $as_dir" >&2;}
36029   { (exit 1); exit 1; }; }; }
36030    ac_builddir=.
36031
36032case "$ac_dir" in
36033.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36034*)
36035  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36036  # A ".." for each directory in $ac_dir_suffix.
36037  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36038  case $ac_top_builddir_sub in
36039  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36040  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36041  esac ;;
36042esac
36043ac_abs_top_builddir=$ac_pwd
36044ac_abs_builddir=$ac_pwd$ac_dir_suffix
36045# for backward compatibility:
36046ac_top_builddir=$ac_top_build_prefix
36047
36048case $srcdir in
36049  .)  # We are building in place.
36050    ac_srcdir=.
36051    ac_top_srcdir=$ac_top_builddir_sub
36052    ac_abs_top_srcdir=$ac_pwd ;;
36053  [\\/]* | ?:[\\/]* )  # Absolute name.
36054    ac_srcdir=$srcdir$ac_dir_suffix;
36055    ac_top_srcdir=$srcdir
36056    ac_abs_top_srcdir=$srcdir ;;
36057  *) # Relative name.
36058    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36059    ac_top_srcdir=$ac_top_build_prefix$srcdir
36060    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36061esac
36062ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36063
36064
36065    cd "$ac_dir"
36066
36067    # Check for guested configure; otherwise get Cygnus style configure.
36068    if test -f "$ac_srcdir/configure.gnu"; then
36069      ac_sub_configure=$ac_srcdir/configure.gnu
36070    elif test -f "$ac_srcdir/configure"; then
36071      ac_sub_configure=$ac_srcdir/configure
36072    elif test -f "$ac_srcdir/configure.in"; then
36073      # This should be Cygnus configure.
36074      ac_sub_configure=$ac_aux_dir/configure
36075    else
36076      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36077echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36078      ac_sub_configure=
36079    fi
36080
36081    # The recursion is here.
36082    if test -n "$ac_sub_configure"; then
36083      # Make the cache file name correct relative to the subdirectory.
36084      case $cache_file in
36085      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36086      *) # Relative name.
36087	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36088      esac
36089
36090      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36091echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36092      # The eval makes quoting arguments work.
36093      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36094	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36095	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36096echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36097   { (exit 1); exit 1; }; }
36098    fi
36099
36100    cd "$ac_popdir"
36101  done
36102fi
36103
36104