configure revision 89b0d995d26d9e70b9c8d7fab8b99f1e89ac11bb
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60 for llvm 2.0cvs.
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-2005 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.0cvs'
719PACKAGE_STRING='llvm 2.0cvs'
720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
722ac_unique_file="lib/VMCore/Module.cpp"
723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
726#if HAVE_SYS_TYPES_H
727# include <sys/types.h>
728#endif
729#if HAVE_SYS_STAT_H
730# include <sys/stat.h>
731#endif
732#if STDC_HEADERS
733# include <stdlib.h>
734# include <stddef.h>
735#else
736# if HAVE_STDLIB_H
737#  include <stdlib.h>
738# endif
739#endif
740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
742#  include <memory.h>
743# endif
744# include <string.h>
745#endif
746#if HAVE_STRINGS_H
747# include <strings.h>
748#endif
749#if HAVE_INTTYPES_H
750# include <inttypes.h>
751#endif
752#if HAVE_STDINT_H
753# include <stdint.h>
754#endif
755#if HAVE_UNISTD_H
756# include <unistd.h>
757#endif"
758
759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
811LINKALL
812NOLINKALL
813LLVM_ON_UNIX
814LLVM_ON_WIN32
815ARCH
816ENDIAN
817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
830CVSBUILD
831ENABLE_OPTIMIZED
832DISABLE_ASSERTIONS
833DEBUG_RUNTIME
834JIT
835TARGET_HAS_JIT
836ENABLE_DOXYGEN
837ENABLE_THREADS
838ENABLE_PIC
839TARGETS_TO_BUILD
840ENABLE_CBE_PRINTF_A
841EXTRA_OPTIONS
842CXX
843CXXFLAGS
844ac_ct_CXX
845LEX
846LEXLIB
847LEX_OUTPUT_ROOT
848FLEX
849YACC
850YFLAGS
851BISON
852NM
853ifGNUmake
854LN_S
855CMP
856CP
857DATE
858FIND
859MKDIR
860MV
861RANLIB
862RM
863SED
864TAR
865BINPWD
866GRAPHVIZ
867DOT
868GV
869DOTTY
870PERL
871HAVE_PERL
872INSTALL_PROGRAM
873INSTALL_SCRIPT
874INSTALL_DATA
875BZIP2
876DOXYGEN
877GROFF
878GZIP
879POD2HTML
880POD2MAN
881RUNTEST
882TCLSH
883ZIP
884INSTALL_LTDL_TRUE
885INSTALL_LTDL_FALSE
886CONVENIENCE_LTDL_TRUE
887CONVENIENCE_LTDL_FALSE
888LIBADD_DL
889ECHO
890AR
891STRIP
892CXXCPP
893F77
894FFLAGS
895ac_ct_F77
896LIBTOOL
897ETAGSFLAGS
898LLVMGCC
899LLVMGXX
900HAVE_PTHREAD
901HUGE_VAL_SANITY
902ALLOCA
903MMAP_FILE
904LLVMCC1
905LLVMCC1PLUS
906LLVMGCCDIR
907LLVMGCC_VERSION
908LLVMGCC_MAJVERS
909SHLIBEXT
910LLVM_PREFIX
911LLVM_BINDIR
912LLVM_LIBDIR
913LLVM_DATADIR
914LLVM_DOCSDIR
915LLVM_ETCDIR
916LLVM_INCLUDEDIR
917LLVM_INFODIR
918LLVM_MANDIR
919LLVM_CONFIGTIME
920LIBOBJS
921LTLIBOBJS'
922ac_subst_files=''
923      ac_precious_vars='build_alias
924host_alias
925target_alias
926CC
927CFLAGS
928LDFLAGS
929CPPFLAGS
930CPP
931CXX
932CXXFLAGS
933CCC
934YACC
935YFLAGS
936CXXCPP
937F77
938FFLAGS'
939ac_subdirs_all='projects/sample
940projects/Stacker
941projects/privbracket
942projects/llvm-test
943projects/llvm-reopt
944projects/llvm-gcc
945projects/llvm-java
946projects/llvm-tv
947projects/llvm-poolalloc
948projects/llvm-kernel'
949
950# Initialize some variables set by options.
951ac_init_help=
952ac_init_version=false
953# The variables have the same names as the options, with
954# dashes changed to underlines.
955cache_file=/dev/null
956exec_prefix=NONE
957no_create=
958no_recursion=
959prefix=NONE
960program_prefix=NONE
961program_suffix=NONE
962program_transform_name=s,x,x,
963silent=
964site=
965srcdir=
966verbose=
967x_includes=NONE
968x_libraries=NONE
969
970# Installation directory options.
971# These are left unexpanded so users can "make install exec_prefix=/foo"
972# and all the variables that are supposed to be based on exec_prefix
973# by default will actually change.
974# Use braces instead of parens because sh, perl, etc. also accept them.
975# (The list follows the same order as the GNU Coding Standards.)
976bindir='${exec_prefix}/bin'
977sbindir='${exec_prefix}/sbin'
978libexecdir='${exec_prefix}/libexec'
979datarootdir='${prefix}/share'
980datadir='${datarootdir}'
981sysconfdir='${prefix}/etc'
982sharedstatedir='${prefix}/com'
983localstatedir='${prefix}/var'
984includedir='${prefix}/include'
985oldincludedir='/usr/include'
986docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
987infodir='${datarootdir}/info'
988htmldir='${docdir}'
989dvidir='${docdir}'
990pdfdir='${docdir}'
991psdir='${docdir}'
992libdir='${exec_prefix}/lib'
993localedir='${datarootdir}/locale'
994mandir='${datarootdir}/man'
995
996ac_prev=
997ac_dashdash=
998for ac_option
999do
1000  # If the previous option needs an argument, assign it.
1001  if test -n "$ac_prev"; then
1002    eval $ac_prev=\$ac_option
1003    ac_prev=
1004    continue
1005  fi
1006
1007  case $ac_option in
1008  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1009  *)	ac_optarg=yes ;;
1010  esac
1011
1012  # Accept the important Cygnus configure options, so we can diagnose typos.
1013
1014  case $ac_dashdash$ac_option in
1015  --)
1016    ac_dashdash=yes ;;
1017
1018  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1019    ac_prev=bindir ;;
1020  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1021    bindir=$ac_optarg ;;
1022
1023  -build | --build | --buil | --bui | --bu)
1024    ac_prev=build_alias ;;
1025  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1026    build_alias=$ac_optarg ;;
1027
1028  -cache-file | --cache-file | --cache-fil | --cache-fi \
1029  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030    ac_prev=cache_file ;;
1031  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1033    cache_file=$ac_optarg ;;
1034
1035  --config-cache | -C)
1036    cache_file=config.cache ;;
1037
1038  -datadir | --datadir | --datadi | --datad)
1039    ac_prev=datadir ;;
1040  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1041    datadir=$ac_optarg ;;
1042
1043  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044  | --dataroo | --dataro | --datar)
1045    ac_prev=datarootdir ;;
1046  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048    datarootdir=$ac_optarg ;;
1049
1050  -disable-* | --disable-*)
1051    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052    # Reject names that are not valid shell variable names.
1053    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1054      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1055   { (exit 1); exit 1; }; }
1056    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1057    eval enable_$ac_feature=no ;;
1058
1059  -docdir | --docdir | --docdi | --doc | --do)
1060    ac_prev=docdir ;;
1061  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062    docdir=$ac_optarg ;;
1063
1064  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065    ac_prev=dvidir ;;
1066  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067    dvidir=$ac_optarg ;;
1068
1069  -enable-* | --enable-*)
1070    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071    # Reject names that are not valid shell variable names.
1072    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1073      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1074   { (exit 1); exit 1; }; }
1075    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1076    eval enable_$ac_feature=\$ac_optarg ;;
1077
1078  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1079  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1080  | --exec | --exe | --ex)
1081    ac_prev=exec_prefix ;;
1082  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1083  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1084  | --exec=* | --exe=* | --ex=*)
1085    exec_prefix=$ac_optarg ;;
1086
1087  -gas | --gas | --ga | --g)
1088    # Obsolete; use --with-gas.
1089    with_gas=yes ;;
1090
1091  -help | --help | --hel | --he | -h)
1092    ac_init_help=long ;;
1093  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1094    ac_init_help=recursive ;;
1095  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1096    ac_init_help=short ;;
1097
1098  -host | --host | --hos | --ho)
1099    ac_prev=host_alias ;;
1100  -host=* | --host=* | --hos=* | --ho=*)
1101    host_alias=$ac_optarg ;;
1102
1103  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1104    ac_prev=htmldir ;;
1105  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1106  | --ht=*)
1107    htmldir=$ac_optarg ;;
1108
1109  -includedir | --includedir | --includedi | --included | --include \
1110  | --includ | --inclu | --incl | --inc)
1111    ac_prev=includedir ;;
1112  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1113  | --includ=* | --inclu=* | --incl=* | --inc=*)
1114    includedir=$ac_optarg ;;
1115
1116  -infodir | --infodir | --infodi | --infod | --info | --inf)
1117    ac_prev=infodir ;;
1118  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1119    infodir=$ac_optarg ;;
1120
1121  -libdir | --libdir | --libdi | --libd)
1122    ac_prev=libdir ;;
1123  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1124    libdir=$ac_optarg ;;
1125
1126  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1127  | --libexe | --libex | --libe)
1128    ac_prev=libexecdir ;;
1129  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1130  | --libexe=* | --libex=* | --libe=*)
1131    libexecdir=$ac_optarg ;;
1132
1133  -localedir | --localedir | --localedi | --localed | --locale)
1134    ac_prev=localedir ;;
1135  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136    localedir=$ac_optarg ;;
1137
1138  -localstatedir | --localstatedir | --localstatedi | --localstated \
1139  | --localstate | --localstat | --localsta | --localst | --locals)
1140    ac_prev=localstatedir ;;
1141  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1142  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1143    localstatedir=$ac_optarg ;;
1144
1145  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1146    ac_prev=mandir ;;
1147  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1148    mandir=$ac_optarg ;;
1149
1150  -nfp | --nfp | --nf)
1151    # Obsolete; use --without-fp.
1152    with_fp=no ;;
1153
1154  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1155  | --no-cr | --no-c | -n)
1156    no_create=yes ;;
1157
1158  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1160    no_recursion=yes ;;
1161
1162  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1163  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1164  | --oldin | --oldi | --old | --ol | --o)
1165    ac_prev=oldincludedir ;;
1166  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1167  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1168  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1169    oldincludedir=$ac_optarg ;;
1170
1171  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1172    ac_prev=prefix ;;
1173  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1174    prefix=$ac_optarg ;;
1175
1176  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1177  | --program-pre | --program-pr | --program-p)
1178    ac_prev=program_prefix ;;
1179  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1180  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1181    program_prefix=$ac_optarg ;;
1182
1183  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1184  | --program-suf | --program-su | --program-s)
1185    ac_prev=program_suffix ;;
1186  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1187  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1188    program_suffix=$ac_optarg ;;
1189
1190  -program-transform-name | --program-transform-name \
1191  | --program-transform-nam | --program-transform-na \
1192  | --program-transform-n | --program-transform- \
1193  | --program-transform | --program-transfor \
1194  | --program-transfo | --program-transf \
1195  | --program-trans | --program-tran \
1196  | --progr-tra | --program-tr | --program-t)
1197    ac_prev=program_transform_name ;;
1198  -program-transform-name=* | --program-transform-name=* \
1199  | --program-transform-nam=* | --program-transform-na=* \
1200  | --program-transform-n=* | --program-transform-=* \
1201  | --program-transform=* | --program-transfor=* \
1202  | --program-transfo=* | --program-transf=* \
1203  | --program-trans=* | --program-tran=* \
1204  | --progr-tra=* | --program-tr=* | --program-t=*)
1205    program_transform_name=$ac_optarg ;;
1206
1207  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1208    ac_prev=pdfdir ;;
1209  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1210    pdfdir=$ac_optarg ;;
1211
1212  -psdir | --psdir | --psdi | --psd | --ps)
1213    ac_prev=psdir ;;
1214  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1215    psdir=$ac_optarg ;;
1216
1217  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218  | -silent | --silent | --silen | --sile | --sil)
1219    silent=yes ;;
1220
1221  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1222    ac_prev=sbindir ;;
1223  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1224  | --sbi=* | --sb=*)
1225    sbindir=$ac_optarg ;;
1226
1227  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1228  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1229  | --sharedst | --shareds | --shared | --share | --shar \
1230  | --sha | --sh)
1231    ac_prev=sharedstatedir ;;
1232  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1233  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1234  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1235  | --sha=* | --sh=*)
1236    sharedstatedir=$ac_optarg ;;
1237
1238  -site | --site | --sit)
1239    ac_prev=site ;;
1240  -site=* | --site=* | --sit=*)
1241    site=$ac_optarg ;;
1242
1243  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1244    ac_prev=srcdir ;;
1245  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1246    srcdir=$ac_optarg ;;
1247
1248  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1249  | --syscon | --sysco | --sysc | --sys | --sy)
1250    ac_prev=sysconfdir ;;
1251  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1252  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1253    sysconfdir=$ac_optarg ;;
1254
1255  -target | --target | --targe | --targ | --tar | --ta | --t)
1256    ac_prev=target_alias ;;
1257  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1258    target_alias=$ac_optarg ;;
1259
1260  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1261    verbose=yes ;;
1262
1263  -version | --version | --versio | --versi | --vers | -V)
1264    ac_init_version=: ;;
1265
1266  -with-* | --with-*)
1267    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1268    # Reject names that are not valid shell variable names.
1269    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1270      { echo "$as_me: error: invalid package name: $ac_package" >&2
1271   { (exit 1); exit 1; }; }
1272    ac_package=`echo $ac_package| sed 's/-/_/g'`
1273    eval with_$ac_package=\$ac_optarg ;;
1274
1275  -without-* | --without-*)
1276    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1277    # Reject names that are not valid shell variable names.
1278    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1279      { echo "$as_me: error: invalid package name: $ac_package" >&2
1280   { (exit 1); exit 1; }; }
1281    ac_package=`echo $ac_package | sed 's/-/_/g'`
1282    eval with_$ac_package=no ;;
1283
1284  --x)
1285    # Obsolete; use --with-x.
1286    with_x=yes ;;
1287
1288  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1289  | --x-incl | --x-inc | --x-in | --x-i)
1290    ac_prev=x_includes ;;
1291  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1292  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1293    x_includes=$ac_optarg ;;
1294
1295  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1296  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1297    ac_prev=x_libraries ;;
1298  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1299  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1300    x_libraries=$ac_optarg ;;
1301
1302  -*) { echo "$as_me: error: unrecognized option: $ac_option
1303Try \`$0 --help' for more information." >&2
1304   { (exit 1); exit 1; }; }
1305    ;;
1306
1307  *=*)
1308    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309    # Reject names that are not valid shell variable names.
1310    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1311      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1312   { (exit 1); exit 1; }; }
1313    eval $ac_envvar=\$ac_optarg
1314    export $ac_envvar ;;
1315
1316  *)
1317    # FIXME: should be removed in autoconf 3.0.
1318    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1319    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1320      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1321    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1322    ;;
1323
1324  esac
1325done
1326
1327if test -n "$ac_prev"; then
1328  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1329  { echo "$as_me: error: missing argument to $ac_option" >&2
1330   { (exit 1); exit 1; }; }
1331fi
1332
1333# Be sure to have absolute directory names.
1334for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1335		datadir sysconfdir sharedstatedir localstatedir includedir \
1336		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1337		libdir localedir mandir
1338do
1339  eval ac_val=\$$ac_var
1340  case $ac_val in
1341    [\\/$]* | ?:[\\/]* )  continue;;
1342    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1343  esac
1344  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1345   { (exit 1); exit 1; }; }
1346done
1347
1348# There might be people who depend on the old broken behavior: `$host'
1349# used to hold the argument of --host etc.
1350# FIXME: To remove some day.
1351build=$build_alias
1352host=$host_alias
1353target=$target_alias
1354
1355# FIXME: To remove some day.
1356if test "x$host_alias" != x; then
1357  if test "x$build_alias" = x; then
1358    cross_compiling=maybe
1359    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1360    If a cross compiler is detected then cross compile mode will be used." >&2
1361  elif test "x$build_alias" != "x$host_alias"; then
1362    cross_compiling=yes
1363  fi
1364fi
1365
1366ac_tool_prefix=
1367test -n "$host_alias" && ac_tool_prefix=$host_alias-
1368
1369test "$silent" = yes && exec 6>/dev/null
1370
1371
1372ac_pwd=`pwd` && test -n "$ac_pwd" &&
1373ac_ls_di=`ls -di .` &&
1374ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1375  { echo "$as_me: error: Working directory cannot be determined" >&2
1376   { (exit 1); exit 1; }; }
1377test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1378  { echo "$as_me: error: pwd does not report name of working directory" >&2
1379   { (exit 1); exit 1; }; }
1380
1381
1382# Find the source files, if location was not specified.
1383if test -z "$srcdir"; then
1384  ac_srcdir_defaulted=yes
1385  # Try the directory containing this script, then the parent directory.
1386  ac_confdir=`$as_dirname -- "$0" ||
1387$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1388	 X"$0" : 'X\(//\)[^/]' \| \
1389	 X"$0" : 'X\(//\)$' \| \
1390	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1391echo X"$0" |
1392    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1393	    s//\1/
1394	    q
1395	  }
1396	  /^X\(\/\/\)[^/].*/{
1397	    s//\1/
1398	    q
1399	  }
1400	  /^X\(\/\/\)$/{
1401	    s//\1/
1402	    q
1403	  }
1404	  /^X\(\/\).*/{
1405	    s//\1/
1406	    q
1407	  }
1408	  s/.*/./; q'`
1409  srcdir=$ac_confdir
1410  if test ! -r "$srcdir/$ac_unique_file"; then
1411    srcdir=..
1412  fi
1413else
1414  ac_srcdir_defaulted=no
1415fi
1416if test ! -r "$srcdir/$ac_unique_file"; then
1417  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1418  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1419   { (exit 1); exit 1; }; }
1420fi
1421ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1422ac_abs_confdir=`(
1423	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1424   { (exit 1); exit 1; }; }
1425	pwd)`
1426# When building in place, set srcdir=.
1427if test "$ac_abs_confdir" = "$ac_pwd"; then
1428  srcdir=.
1429fi
1430# Remove unnecessary trailing slashes from srcdir.
1431# Double slashes in file names in object file debugging info
1432# mess up M-x gdb in Emacs.
1433case $srcdir in
1434*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1435esac
1436for ac_var in $ac_precious_vars; do
1437  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1438  eval ac_env_${ac_var}_value=\$${ac_var}
1439  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1440  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1441done
1442
1443#
1444# Report the --help message.
1445#
1446if test "$ac_init_help" = "long"; then
1447  # Omit some internal or obsolete options to make the list less imposing.
1448  # This message is too long to be a string in the A/UX 3.1 sh.
1449  cat <<_ACEOF
1450\`configure' configures llvm 2.0cvs to adapt to many kinds of systems.
1451
1452Usage: $0 [OPTION]... [VAR=VALUE]...
1453
1454To assign environment variables (e.g., CC, CFLAGS...), specify them as
1455VAR=VALUE.  See below for descriptions of some of the useful variables.
1456
1457Defaults for the options are specified in brackets.
1458
1459Configuration:
1460  -h, --help              display this help and exit
1461      --help=short        display options specific to this package
1462      --help=recursive    display the short help of all the included packages
1463  -V, --version           display version information and exit
1464  -q, --quiet, --silent   do not print \`checking...' messages
1465      --cache-file=FILE   cache test results in FILE [disabled]
1466  -C, --config-cache      alias for \`--cache-file=config.cache'
1467  -n, --no-create         do not create output files
1468      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1469
1470Installation directories:
1471  --prefix=PREFIX         install architecture-independent files in PREFIX
1472			  [$ac_default_prefix]
1473  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1474			  [PREFIX]
1475
1476By default, \`make install' will install all the files in
1477\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1478an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1479for instance \`--prefix=\$HOME'.
1480
1481For better control, use the options below.
1482
1483Fine tuning of the installation directories:
1484  --bindir=DIR           user executables [EPREFIX/bin]
1485  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1486  --libexecdir=DIR       program executables [EPREFIX/libexec]
1487  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1488  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1489  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1490  --libdir=DIR           object code libraries [EPREFIX/lib]
1491  --includedir=DIR       C header files [PREFIX/include]
1492  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1493  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1494  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1495  --infodir=DIR          info documentation [DATAROOTDIR/info]
1496  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1497  --mandir=DIR           man documentation [DATAROOTDIR/man]
1498  --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1499  --htmldir=DIR          html documentation [DOCDIR]
1500  --dvidir=DIR           dvi documentation [DOCDIR]
1501  --pdfdir=DIR           pdf documentation [DOCDIR]
1502  --psdir=DIR            ps documentation [DOCDIR]
1503_ACEOF
1504
1505  cat <<\_ACEOF
1506
1507System types:
1508  --build=BUILD     configure for building on BUILD [guessed]
1509  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1510  --target=TARGET   configure for building compilers for TARGET [HOST]
1511_ACEOF
1512fi
1513
1514if test -n "$ac_init_help"; then
1515  case $ac_init_help in
1516     short | recursive ) echo "Configuration of llvm 2.0cvs:";;
1517   esac
1518  cat <<\_ACEOF
1519
1520Optional Features:
1521  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1522  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1523  --enable-optimized
1524  --enable-assertions
1525  --enable-debug-runtime
1526  --enable-jit            Enable Just In Time Compiling (default is YES)
1527  --enable-doxygen        Build doxygen documentation (default is NO)
1528  --enable-threads        Use threads if available (default is YES)
1529  --enable-pic            Build LLVM with Position Independent Code (default
1530                          is NO)
1531  --enable-targets        Build specific host targets:
1532                          all,host-only,{target-name} (default=all)
1533  --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1534                          %a (default is YES)
1535  --enable-ltdl-install   install libltdl
1536  --enable-shared[=PKGS]  build shared libraries
1537                          [default=enable_shared_default]
1538  --enable-static[=PKGS]  build static libraries
1539                          [default=enable_static_default]
1540  --enable-fast-install[=PKGS]
1541                          optimize for fast installation
1542                          [default=enable_Fast_install_default]
1543  --disable-libtool-lock  avoid locking (might break parallel builds)
1544
1545Optional Packages:
1546  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1547  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1548  --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1549                          searches PATH)
1550  --with-extra-options    Specify addtional options to compile LLVM with
1551  --with-tclinclude       directory where tcl headers are
1552  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1553  --with-pic              try to use only PIC/non-PIC objects [default=use
1554                          both]
1555  --with-tags[=TAGS]      include additional configurations [automatic]
1556
1557Some influential environment variables:
1558  CC          C compiler command
1559  CFLAGS      C compiler flags
1560  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1561              nonstandard directory <lib dir>
1562  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1563              you have headers in a nonstandard directory <include dir>
1564  CPP         C preprocessor
1565  CXX         C++ compiler command
1566  CXXFLAGS    C++ compiler flags
1567  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1568              the first program found out of: `bison -y', `byacc', `yacc'.
1569  YFLAGS      The list of arguments that will be passed by default to $YACC.
1570              This script will default YFLAGS to the empty string to avoid a
1571              default value of `-d' given by some make applications.
1572  CXXCPP      C++ preprocessor
1573  F77         Fortran 77 compiler command
1574  FFLAGS      Fortran 77 compiler flags
1575
1576Use these variables to override the choices made by `configure' or to help
1577it to find libraries and programs with nonstandard names/locations.
1578
1579Report bugs to <llvmbugs@cs.uiuc.edu>.
1580_ACEOF
1581ac_status=$?
1582fi
1583
1584if test "$ac_init_help" = "recursive"; then
1585  # If there are subdirs, report their specific --help.
1586  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1587    test -d "$ac_dir" || continue
1588    ac_builddir=.
1589
1590case "$ac_dir" in
1591.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592*)
1593  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1594  # A ".." for each directory in $ac_dir_suffix.
1595  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1596  case $ac_top_builddir_sub in
1597  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1599  esac ;;
1600esac
1601ac_abs_top_builddir=$ac_pwd
1602ac_abs_builddir=$ac_pwd$ac_dir_suffix
1603# for backward compatibility:
1604ac_top_builddir=$ac_top_build_prefix
1605
1606case $srcdir in
1607  .)  # We are building in place.
1608    ac_srcdir=.
1609    ac_top_srcdir=$ac_top_builddir_sub
1610    ac_abs_top_srcdir=$ac_pwd ;;
1611  [\\/]* | ?:[\\/]* )  # Absolute name.
1612    ac_srcdir=$srcdir$ac_dir_suffix;
1613    ac_top_srcdir=$srcdir
1614    ac_abs_top_srcdir=$srcdir ;;
1615  *) # Relative name.
1616    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1617    ac_top_srcdir=$ac_top_build_prefix$srcdir
1618    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1619esac
1620ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1621
1622    cd "$ac_dir" || { ac_status=$?; continue; }
1623    # Check for guested configure.
1624    if test -f "$ac_srcdir/configure.gnu"; then
1625      echo &&
1626      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1627    elif test -f "$ac_srcdir/configure"; then
1628      echo &&
1629      $SHELL "$ac_srcdir/configure" --help=recursive
1630    else
1631      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1632    fi || ac_status=$?
1633    cd "$ac_pwd" || { ac_status=$?; break; }
1634  done
1635fi
1636
1637test -n "$ac_init_help" && exit $ac_status
1638if $ac_init_version; then
1639  cat <<\_ACEOF
1640llvm configure 2.0cvs
1641generated by GNU Autoconf 2.60
1642
1643Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16442002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1645This configure script is free software; the Free Software Foundation
1646gives unlimited permission to copy, distribute and modify it.
1647
1648Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1649_ACEOF
1650  exit
1651fi
1652cat >config.log <<_ACEOF
1653This file contains any messages produced by compilers while
1654running configure, to aid debugging if configure makes a mistake.
1655
1656It was created by llvm $as_me 2.0cvs, which was
1657generated by GNU Autoconf 2.60.  Invocation command line was
1658
1659  $ $0 $@
1660
1661_ACEOF
1662exec 5>>config.log
1663{
1664cat <<_ASUNAME
1665## --------- ##
1666## Platform. ##
1667## --------- ##
1668
1669hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1670uname -m = `(uname -m) 2>/dev/null || echo unknown`
1671uname -r = `(uname -r) 2>/dev/null || echo unknown`
1672uname -s = `(uname -s) 2>/dev/null || echo unknown`
1673uname -v = `(uname -v) 2>/dev/null || echo unknown`
1674
1675/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1676/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1677
1678/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1679/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1680/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1681/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1682/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1683/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1684/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1685
1686_ASUNAME
1687
1688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689for as_dir in $PATH
1690do
1691  IFS=$as_save_IFS
1692  test -z "$as_dir" && as_dir=.
1693  echo "PATH: $as_dir"
1694done
1695IFS=$as_save_IFS
1696
1697} >&5
1698
1699cat >&5 <<_ACEOF
1700
1701
1702## ----------- ##
1703## Core tests. ##
1704## ----------- ##
1705
1706_ACEOF
1707
1708
1709# Keep a trace of the command line.
1710# Strip out --no-create and --no-recursion so they do not pile up.
1711# Strip out --silent because we don't want to record it for future runs.
1712# Also quote any args containing shell meta-characters.
1713# Make two passes to allow for proper duplicate-argument suppression.
1714ac_configure_args=
1715ac_configure_args0=
1716ac_configure_args1=
1717ac_must_keep_next=false
1718for ac_pass in 1 2
1719do
1720  for ac_arg
1721  do
1722    case $ac_arg in
1723    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1724    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1725    | -silent | --silent | --silen | --sile | --sil)
1726      continue ;;
1727    *\'*)
1728      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1729    esac
1730    case $ac_pass in
1731    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1732    2)
1733      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1734      if test $ac_must_keep_next = true; then
1735	ac_must_keep_next=false # Got value, back to normal.
1736      else
1737	case $ac_arg in
1738	  *=* | --config-cache | -C | -disable-* | --disable-* \
1739	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1740	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1741	  | -with-* | --with-* | -without-* | --without-* | --x)
1742	    case "$ac_configure_args0 " in
1743	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1744	    esac
1745	    ;;
1746	  -* ) ac_must_keep_next=true ;;
1747	esac
1748      fi
1749      ac_configure_args="$ac_configure_args '$ac_arg'"
1750      ;;
1751    esac
1752  done
1753done
1754$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1755$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1756
1757# When interrupted or exit'd, cleanup temporary files, and complete
1758# config.log.  We remove comments because anyway the quotes in there
1759# would cause problems or look ugly.
1760# WARNING: Use '\'' to represent an apostrophe within the trap.
1761# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1762trap 'exit_status=$?
1763  # Save into config.log some information that might help in debugging.
1764  {
1765    echo
1766
1767    cat <<\_ASBOX
1768## ---------------- ##
1769## Cache variables. ##
1770## ---------------- ##
1771_ASBOX
1772    echo
1773    # The following way of writing the cache mishandles newlines in values,
1774(
1775  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1776    eval ac_val=\$$ac_var
1777    case $ac_val in #(
1778    *${as_nl}*)
1779      case $ac_var in #(
1780      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1781echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1782      esac
1783      case $ac_var in #(
1784      _ | IFS | as_nl) ;; #(
1785      *) $as_unset $ac_var ;;
1786      esac ;;
1787    esac
1788  done
1789  (set) 2>&1 |
1790    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1791    *${as_nl}ac_space=\ *)
1792      sed -n \
1793	"s/'\''/'\''\\\\'\'''\''/g;
1794	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1795      ;; #(
1796    *)
1797      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1798      ;;
1799    esac |
1800    sort
1801)
1802    echo
1803
1804    cat <<\_ASBOX
1805## ----------------- ##
1806## Output variables. ##
1807## ----------------- ##
1808_ASBOX
1809    echo
1810    for ac_var in $ac_subst_vars
1811    do
1812      eval ac_val=\$$ac_var
1813      case $ac_val in
1814      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1815      esac
1816      echo "$ac_var='\''$ac_val'\''"
1817    done | sort
1818    echo
1819
1820    if test -n "$ac_subst_files"; then
1821      cat <<\_ASBOX
1822## ------------------- ##
1823## File substitutions. ##
1824## ------------------- ##
1825_ASBOX
1826      echo
1827      for ac_var in $ac_subst_files
1828      do
1829	eval ac_val=\$$ac_var
1830	case $ac_val in
1831	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1832	esac
1833	echo "$ac_var='\''$ac_val'\''"
1834      done | sort
1835      echo
1836    fi
1837
1838    if test -s confdefs.h; then
1839      cat <<\_ASBOX
1840## ----------- ##
1841## confdefs.h. ##
1842## ----------- ##
1843_ASBOX
1844      echo
1845      cat confdefs.h
1846      echo
1847    fi
1848    test "$ac_signal" != 0 &&
1849      echo "$as_me: caught signal $ac_signal"
1850    echo "$as_me: exit $exit_status"
1851  } >&5
1852  rm -f core *.core core.conftest.* &&
1853    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1854    exit $exit_status
1855' 0
1856for ac_signal in 1 2 13 15; do
1857  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1858done
1859ac_signal=0
1860
1861# confdefs.h avoids OS command line length limits that DEFS can exceed.
1862rm -f -r conftest* confdefs.h
1863
1864# Predefined preprocessor variables.
1865
1866cat >>confdefs.h <<_ACEOF
1867#define PACKAGE_NAME "$PACKAGE_NAME"
1868_ACEOF
1869
1870
1871cat >>confdefs.h <<_ACEOF
1872#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1873_ACEOF
1874
1875
1876cat >>confdefs.h <<_ACEOF
1877#define PACKAGE_VERSION "$PACKAGE_VERSION"
1878_ACEOF
1879
1880
1881cat >>confdefs.h <<_ACEOF
1882#define PACKAGE_STRING "$PACKAGE_STRING"
1883_ACEOF
1884
1885
1886cat >>confdefs.h <<_ACEOF
1887#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1888_ACEOF
1889
1890
1891# Let the site file select an alternate cache file if it wants to.
1892# Prefer explicitly selected file to automatically selected ones.
1893if test -n "$CONFIG_SITE"; then
1894  set x "$CONFIG_SITE"
1895elif test "x$prefix" != xNONE; then
1896  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1897else
1898  set x "$ac_default_prefix/share/config.site" \
1899	"$ac_default_prefix/etc/config.site"
1900fi
1901shift
1902for ac_site_file
1903do
1904  if test -r "$ac_site_file"; then
1905    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1906echo "$as_me: loading site script $ac_site_file" >&6;}
1907    sed 's/^/| /' "$ac_site_file" >&5
1908    . "$ac_site_file"
1909  fi
1910done
1911
1912if test -r "$cache_file"; then
1913  # Some versions of bash will fail to source /dev/null (special
1914  # files actually), so we avoid doing that.
1915  if test -f "$cache_file"; then
1916    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1917echo "$as_me: loading cache $cache_file" >&6;}
1918    case $cache_file in
1919      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1920      *)                      . "./$cache_file";;
1921    esac
1922  fi
1923else
1924  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1925echo "$as_me: creating cache $cache_file" >&6;}
1926  >$cache_file
1927fi
1928
1929# Check that the precious variables saved in the cache have kept the same
1930# value.
1931ac_cache_corrupted=false
1932for ac_var in $ac_precious_vars; do
1933  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1934  eval ac_new_set=\$ac_env_${ac_var}_set
1935  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1936  eval ac_new_val=\$ac_env_${ac_var}_value
1937  case $ac_old_set,$ac_new_set in
1938    set,)
1939      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1940echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1941      ac_cache_corrupted=: ;;
1942    ,set)
1943      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1944echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1945      ac_cache_corrupted=: ;;
1946    ,);;
1947    *)
1948      if test "x$ac_old_val" != "x$ac_new_val"; then
1949	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1950echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1951	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1952echo "$as_me:   former value:  $ac_old_val" >&2;}
1953	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1954echo "$as_me:   current value: $ac_new_val" >&2;}
1955	ac_cache_corrupted=:
1956      fi;;
1957  esac
1958  # Pass precious variables to config.status.
1959  if test "$ac_new_set" = set; then
1960    case $ac_new_val in
1961    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1962    *) ac_arg=$ac_var=$ac_new_val ;;
1963    esac
1964    case " $ac_configure_args " in
1965      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1966      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1967    esac
1968  fi
1969done
1970if $ac_cache_corrupted; then
1971  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1972echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1973  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1974echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1975   { (exit 1); exit 1; }; }
1976fi
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002ac_ext=c
2003ac_cpp='$CPP $CPPFLAGS'
2004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2006ac_compiler_gnu=$ac_cv_c_compiler_gnu
2007
2008
2009
2010LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
2011
2012
2013
2014
2015
2016
2017
2018ac_aux_dir=
2019for ac_dir in autoconf "$srcdir"/autoconf; do
2020  if test -f "$ac_dir/install-sh"; then
2021    ac_aux_dir=$ac_dir
2022    ac_install_sh="$ac_aux_dir/install-sh -c"
2023    break
2024  elif test -f "$ac_dir/install.sh"; then
2025    ac_aux_dir=$ac_dir
2026    ac_install_sh="$ac_aux_dir/install.sh -c"
2027    break
2028  elif test -f "$ac_dir/shtool"; then
2029    ac_aux_dir=$ac_dir
2030    ac_install_sh="$ac_aux_dir/shtool install -c"
2031    break
2032  fi
2033done
2034if test -z "$ac_aux_dir"; then
2035  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2036echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2037   { (exit 1); exit 1; }; }
2038fi
2039
2040# These three variables are undocumented and unsupported,
2041# and are intended to be withdrawn in a future Autoconf release.
2042# They can cause serious problems if a builder's source tree is in a directory
2043# whose full name contains unusual characters.
2044ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2045ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2046ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2047
2048
2049
2050if test ${srcdir} != "." ; then
2051  if test -f ${srcdir}/include/llvm/Config/config.h ; then
2052    { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2053echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2054   { (exit 1); exit 1; }; }
2055  fi
2056fi
2057
2058for i in `ls ${srcdir}/projects`
2059do
2060  if test -d ${srcdir}/projects/${i} ; then
2061    case ${i} in
2062      "CVS") ;;
2063      "sample")       subdirs="$subdirs projects/sample"
2064    ;;
2065      "Stacker")      subdirs="$subdirs projects/Stacker"
2066   ;;
2067      "privbracket")  subdirs="$subdirs projects/privbracket"
2068 ;;
2069      "llvm-test")    subdirs="$subdirs projects/llvm-test"
2070 ;;
2071      "llvm-reopt")   subdirs="$subdirs projects/llvm-reopt"
2072;;
2073      "llvm-gcc")     subdirs="$subdirs projects/llvm-gcc"
2074  ;;
2075      "llvm-java")    subdirs="$subdirs projects/llvm-java"
2076 ;;
2077      "llvm-tv")      subdirs="$subdirs projects/llvm-tv"
2078   ;;
2079      "llvm-poolalloc") subdirs="$subdirs projects/llvm-poolalloc"
2080 ;;
2081      "llvm-kernel")  subdirs="$subdirs projects/llvm-kernel"
2082 ;;
2083      *)
2084        { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2085echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2086        ;;
2087    esac
2088  fi
2089done
2090
2091
2092# Make sure we can run config.sub.
2093$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2094  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2095echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2096   { (exit 1); exit 1; }; }
2097
2098{ echo "$as_me:$LINENO: checking build system type" >&5
2099echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2100if test "${ac_cv_build+set}" = set; then
2101  echo $ECHO_N "(cached) $ECHO_C" >&6
2102else
2103  ac_build_alias=$build_alias
2104test "x$ac_build_alias" = x &&
2105  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2106test "x$ac_build_alias" = x &&
2107  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2108echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2109   { (exit 1); exit 1; }; }
2110ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2111  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2112echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2113   { (exit 1); exit 1; }; }
2114
2115fi
2116{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2117echo "${ECHO_T}$ac_cv_build" >&6; }
2118case $ac_cv_build in
2119*-*-*) ;;
2120*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2121echo "$as_me: error: invalid value of canonical build" >&2;}
2122   { (exit 1); exit 1; }; };;
2123esac
2124build=$ac_cv_build
2125ac_save_IFS=$IFS; IFS='-'
2126set x $ac_cv_build
2127shift
2128build_cpu=$1
2129build_vendor=$2
2130shift; shift
2131# Remember, the first character of IFS is used to create $*,
2132# except with old shells:
2133build_os=$*
2134IFS=$ac_save_IFS
2135case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2136
2137
2138{ echo "$as_me:$LINENO: checking host system type" >&5
2139echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2140if test "${ac_cv_host+set}" = set; then
2141  echo $ECHO_N "(cached) $ECHO_C" >&6
2142else
2143  if test "x$host_alias" = x; then
2144  ac_cv_host=$ac_cv_build
2145else
2146  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2147    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2148echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2149   { (exit 1); exit 1; }; }
2150fi
2151
2152fi
2153{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2154echo "${ECHO_T}$ac_cv_host" >&6; }
2155case $ac_cv_host in
2156*-*-*) ;;
2157*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2158echo "$as_me: error: invalid value of canonical host" >&2;}
2159   { (exit 1); exit 1; }; };;
2160esac
2161host=$ac_cv_host
2162ac_save_IFS=$IFS; IFS='-'
2163set x $ac_cv_host
2164shift
2165host_cpu=$1
2166host_vendor=$2
2167shift; shift
2168# Remember, the first character of IFS is used to create $*,
2169# except with old shells:
2170host_os=$*
2171IFS=$ac_save_IFS
2172case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2173
2174
2175{ echo "$as_me:$LINENO: checking target system type" >&5
2176echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2177if test "${ac_cv_target+set}" = set; then
2178  echo $ECHO_N "(cached) $ECHO_C" >&6
2179else
2180  if test "x$target_alias" = x; then
2181  ac_cv_target=$ac_cv_host
2182else
2183  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2184    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2185echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2186   { (exit 1); exit 1; }; }
2187fi
2188
2189fi
2190{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2191echo "${ECHO_T}$ac_cv_target" >&6; }
2192case $ac_cv_target in
2193*-*-*) ;;
2194*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2195echo "$as_me: error: invalid value of canonical target" >&2;}
2196   { (exit 1); exit 1; }; };;
2197esac
2198target=$ac_cv_target
2199ac_save_IFS=$IFS; IFS='-'
2200set x $ac_cv_target
2201shift
2202target_cpu=$1
2203target_vendor=$2
2204shift; shift
2205# Remember, the first character of IFS is used to create $*,
2206# except with old shells:
2207target_os=$*
2208IFS=$ac_save_IFS
2209case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2210
2211
2212# The aliases save the names the user supplied, while $host etc.
2213# will get canonicalized.
2214test -n "$target_alias" &&
2215  test "$program_prefix$program_suffix$program_transform_name" = \
2216    NONENONEs,x,x, &&
2217  program_prefix=${target_alias}-
2218
2219{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2220echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2221if test "${llvm_cv_os_type+set}" = set; then
2222  echo $ECHO_N "(cached) $ECHO_C" >&6
2223else
2224  case $host in
2225  *-*-aix*)
2226    llvm_cv_link_all_option="-Wl,--whole-archive"
2227    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2228    llvm_cv_os_type="AIX"
2229    llvm_cv_platform_type="Unix" ;;
2230  *-*-irix*)
2231    llvm_cv_link_all_option="-Wl,--whole-archive"
2232    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2233    llvm_cv_os_type="IRIX"
2234    llvm_cv_platform_type="Unix" ;;
2235  *-*-cygwin*)
2236    llvm_cv_link_all_option="-Wl,--whole-archive"
2237    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2238    llvm_cv_os_type="Cygwin"
2239    llvm_cv_platform_type="Unix" ;;
2240  *-*-darwin*)
2241    llvm_cv_link_all_option="-Wl,-all_load"
2242    llvm_cv_link_all_option="-Wl,-noall_load"
2243    llvm_cv_os_type="Darwin"
2244    llvm_cv_platform_type="Unix" ;;
2245  *-*-freebsd*)
2246    llvm_cv_link_all_option="-Wl,--whole-archive"
2247    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2248    llvm_cv_os_type="FreeBSD"
2249    llvm_cv_platform_type="Unix" ;;
2250  *-*-openbsd*)
2251    llvm_cv_link_all_option="-Wl,--whole-archive"
2252    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2253    llvm_cv_os_type="OpenBSD"
2254    llvm_cv_platform_type="Unix" ;;
2255  *-*-hpux*)
2256    llvm_cv_link_all_option="-Wl,--whole-archive"
2257    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2258    llvm_cv_os_type="HP-UX"
2259    llvm_cv_platform_type="Unix" ;;
2260  *-*-interix*)
2261    llvm_cv_link_all_option="-Wl,--whole-archive"
2262    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2263    llvm_cv_os_type="Interix"
2264    llvm_cv_platform_type="Unix" ;;
2265  *-*-linux*)
2266    llvm_cv_link_all_option="-Wl,--whole-archive"
2267    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2268    llvm_cv_os_type="Linux"
2269    llvm_cv_platform_type="Unix" ;;
2270  *-*-solaris*)
2271    llvm_cv_link_all_option="-Wl,-z,allextract"
2272    llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2273    llvm_cv_os_type="SunOS"
2274    llvm_cv_platform_type="Unix" ;;
2275  *-*-win32*)
2276    llvm_cv_link_all_option="-Wl,--whole-archive"
2277    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278    llvm_cv_os_type="Win32"
2279    llvm_cv_platform_type="Win32" ;;
2280  *-*-mingw*)
2281    llvm_cv_link_all_option="-Wl,--whole-archive"
2282    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283    llvm_cv_os_type="MingW"
2284    llvm_cv_platform_type="Win32" ;;
2285  *)
2286    llvm_cv_link_all_option=""
2287    llvm_cv_no_link_all_option=""
2288    llvm_cv_os_type="Unknown"
2289    llvm_cv_platform_type="Unknown" ;;
2290esac
2291fi
2292{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2293echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2294
2295if test "$llvm_cv_os_type" = "Unknown" ; then
2296  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2297echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2298   { (exit 1); exit 1; }; }
2299fi
2300
2301OS=$llvm_cv_os_type
2302
2303
2304LINKALL=$llvm_cv_link_all_option
2305
2306NOLINKALL=$llvm_cv_no_link_all_option
2307
2308
2309case $llvm_cv_platform_type in
2310  Unix)
2311
2312cat >>confdefs.h <<\_ACEOF
2313#define LLVM_ON_UNIX 1
2314_ACEOF
2315
2316    LLVM_ON_UNIX=1
2317
2318    LLVM_ON_WIN32=0
2319
2320    ;;
2321  Win32)
2322
2323cat >>confdefs.h <<\_ACEOF
2324#define LLVM_ON_WIN32 1
2325_ACEOF
2326
2327    LLVM_ON_UNIX=0
2328
2329    LLVM_ON_WIN32=1
2330
2331    ;;
2332esac
2333
2334{ echo "$as_me:$LINENO: checking target architecture" >&5
2335echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2336if test "${llvm_cv_target_arch+set}" = set; then
2337  echo $ECHO_N "(cached) $ECHO_C" >&6
2338else
2339  case $target in
2340  i?86-*)                 llvm_cv_target_arch="x86" ;;
2341  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2342  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2343  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2344  alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2345  ia64-*)                 llvm_cv_target_arch="IA64" ;;
2346  *)                      llvm_cv_target_arch="Unknown" ;;
2347esac
2348fi
2349{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2350echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2351
2352if test "$llvm_cv_target_arch" = "Unknown" ; then
2353  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2354echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2355fi
2356
2357ARCH=$llvm_cv_target_arch
2358
2359
2360ac_ext=c
2361ac_cpp='$CPP $CPPFLAGS'
2362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2364ac_compiler_gnu=$ac_cv_c_compiler_gnu
2365if test -n "$ac_tool_prefix"; then
2366  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2367set dummy ${ac_tool_prefix}gcc; ac_word=$2
2368{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2370if test "${ac_cv_prog_CC+set}" = set; then
2371  echo $ECHO_N "(cached) $ECHO_C" >&6
2372else
2373  if test -n "$CC"; then
2374  ac_cv_prog_CC="$CC" # Let the user override the test.
2375else
2376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377for as_dir in $PATH
2378do
2379  IFS=$as_save_IFS
2380  test -z "$as_dir" && as_dir=.
2381  for ac_exec_ext in '' $ac_executable_extensions; do
2382  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2383    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2384    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2385    break 2
2386  fi
2387done
2388done
2389IFS=$as_save_IFS
2390
2391fi
2392fi
2393CC=$ac_cv_prog_CC
2394if test -n "$CC"; then
2395  { echo "$as_me:$LINENO: result: $CC" >&5
2396echo "${ECHO_T}$CC" >&6; }
2397else
2398  { echo "$as_me:$LINENO: result: no" >&5
2399echo "${ECHO_T}no" >&6; }
2400fi
2401
2402
2403fi
2404if test -z "$ac_cv_prog_CC"; then
2405  ac_ct_CC=$CC
2406  # Extract the first word of "gcc", so it can be a program name with args.
2407set dummy gcc; ac_word=$2
2408{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2410if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2411  echo $ECHO_N "(cached) $ECHO_C" >&6
2412else
2413  if test -n "$ac_ct_CC"; then
2414  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2415else
2416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417for as_dir in $PATH
2418do
2419  IFS=$as_save_IFS
2420  test -z "$as_dir" && as_dir=.
2421  for ac_exec_ext in '' $ac_executable_extensions; do
2422  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2423    ac_cv_prog_ac_ct_CC="gcc"
2424    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2425    break 2
2426  fi
2427done
2428done
2429IFS=$as_save_IFS
2430
2431fi
2432fi
2433ac_ct_CC=$ac_cv_prog_ac_ct_CC
2434if test -n "$ac_ct_CC"; then
2435  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2436echo "${ECHO_T}$ac_ct_CC" >&6; }
2437else
2438  { echo "$as_me:$LINENO: result: no" >&5
2439echo "${ECHO_T}no" >&6; }
2440fi
2441
2442  if test "x$ac_ct_CC" = x; then
2443    CC=""
2444  else
2445    case $cross_compiling:$ac_tool_warned in
2446yes:)
2447{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2448whose name does not start with the host triplet.  If you think this
2449configuration is useful to you, please write to autoconf@gnu.org." >&5
2450echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2451whose name does not start with the host triplet.  If you think this
2452configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2453ac_tool_warned=yes ;;
2454esac
2455    CC=$ac_ct_CC
2456  fi
2457else
2458  CC="$ac_cv_prog_CC"
2459fi
2460
2461if test -z "$CC"; then
2462          if test -n "$ac_tool_prefix"; then
2463    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2464set dummy ${ac_tool_prefix}cc; ac_word=$2
2465{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2467if test "${ac_cv_prog_CC+set}" = set; then
2468  echo $ECHO_N "(cached) $ECHO_C" >&6
2469else
2470  if test -n "$CC"; then
2471  ac_cv_prog_CC="$CC" # Let the user override the test.
2472else
2473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474for as_dir in $PATH
2475do
2476  IFS=$as_save_IFS
2477  test -z "$as_dir" && as_dir=.
2478  for ac_exec_ext in '' $ac_executable_extensions; do
2479  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2480    ac_cv_prog_CC="${ac_tool_prefix}cc"
2481    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482    break 2
2483  fi
2484done
2485done
2486IFS=$as_save_IFS
2487
2488fi
2489fi
2490CC=$ac_cv_prog_CC
2491if test -n "$CC"; then
2492  { echo "$as_me:$LINENO: result: $CC" >&5
2493echo "${ECHO_T}$CC" >&6; }
2494else
2495  { echo "$as_me:$LINENO: result: no" >&5
2496echo "${ECHO_T}no" >&6; }
2497fi
2498
2499
2500  fi
2501fi
2502if test -z "$CC"; then
2503  # Extract the first word of "cc", so it can be a program name with args.
2504set dummy cc; ac_word=$2
2505{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2507if test "${ac_cv_prog_CC+set}" = set; then
2508  echo $ECHO_N "(cached) $ECHO_C" >&6
2509else
2510  if test -n "$CC"; then
2511  ac_cv_prog_CC="$CC" # Let the user override the test.
2512else
2513  ac_prog_rejected=no
2514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515for as_dir in $PATH
2516do
2517  IFS=$as_save_IFS
2518  test -z "$as_dir" && as_dir=.
2519  for ac_exec_ext in '' $ac_executable_extensions; do
2520  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2521    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2522       ac_prog_rejected=yes
2523       continue
2524     fi
2525    ac_cv_prog_CC="cc"
2526    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527    break 2
2528  fi
2529done
2530done
2531IFS=$as_save_IFS
2532
2533if test $ac_prog_rejected = yes; then
2534  # We found a bogon in the path, so make sure we never use it.
2535  set dummy $ac_cv_prog_CC
2536  shift
2537  if test $# != 0; then
2538    # We chose a different compiler from the bogus one.
2539    # However, it has the same basename, so the bogon will be chosen
2540    # first if we set CC to just the basename; use the full file name.
2541    shift
2542    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2543  fi
2544fi
2545fi
2546fi
2547CC=$ac_cv_prog_CC
2548if test -n "$CC"; then
2549  { echo "$as_me:$LINENO: result: $CC" >&5
2550echo "${ECHO_T}$CC" >&6; }
2551else
2552  { echo "$as_me:$LINENO: result: no" >&5
2553echo "${ECHO_T}no" >&6; }
2554fi
2555
2556
2557fi
2558if test -z "$CC"; then
2559  if test -n "$ac_tool_prefix"; then
2560  for ac_prog in cl.exe
2561  do
2562    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2563set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2564{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2566if test "${ac_cv_prog_CC+set}" = set; then
2567  echo $ECHO_N "(cached) $ECHO_C" >&6
2568else
2569  if test -n "$CC"; then
2570  ac_cv_prog_CC="$CC" # Let the user override the test.
2571else
2572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573for as_dir in $PATH
2574do
2575  IFS=$as_save_IFS
2576  test -z "$as_dir" && as_dir=.
2577  for ac_exec_ext in '' $ac_executable_extensions; do
2578  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2579    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2580    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2581    break 2
2582  fi
2583done
2584done
2585IFS=$as_save_IFS
2586
2587fi
2588fi
2589CC=$ac_cv_prog_CC
2590if test -n "$CC"; then
2591  { echo "$as_me:$LINENO: result: $CC" >&5
2592echo "${ECHO_T}$CC" >&6; }
2593else
2594  { echo "$as_me:$LINENO: result: no" >&5
2595echo "${ECHO_T}no" >&6; }
2596fi
2597
2598
2599    test -n "$CC" && break
2600  done
2601fi
2602if test -z "$CC"; then
2603  ac_ct_CC=$CC
2604  for ac_prog in cl.exe
2605do
2606  # Extract the first word of "$ac_prog", so it can be a program name with args.
2607set dummy $ac_prog; ac_word=$2
2608{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2610if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2611  echo $ECHO_N "(cached) $ECHO_C" >&6
2612else
2613  if test -n "$ac_ct_CC"; then
2614  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2615else
2616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617for as_dir in $PATH
2618do
2619  IFS=$as_save_IFS
2620  test -z "$as_dir" && as_dir=.
2621  for ac_exec_ext in '' $ac_executable_extensions; do
2622  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2623    ac_cv_prog_ac_ct_CC="$ac_prog"
2624    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2625    break 2
2626  fi
2627done
2628done
2629IFS=$as_save_IFS
2630
2631fi
2632fi
2633ac_ct_CC=$ac_cv_prog_ac_ct_CC
2634if test -n "$ac_ct_CC"; then
2635  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2636echo "${ECHO_T}$ac_ct_CC" >&6; }
2637else
2638  { echo "$as_me:$LINENO: result: no" >&5
2639echo "${ECHO_T}no" >&6; }
2640fi
2641
2642
2643  test -n "$ac_ct_CC" && break
2644done
2645
2646  if test "x$ac_ct_CC" = x; then
2647    CC=""
2648  else
2649    case $cross_compiling:$ac_tool_warned in
2650yes:)
2651{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2652whose name does not start with the host triplet.  If you think this
2653configuration is useful to you, please write to autoconf@gnu.org." >&5
2654echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2655whose name does not start with the host triplet.  If you think this
2656configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2657ac_tool_warned=yes ;;
2658esac
2659    CC=$ac_ct_CC
2660  fi
2661fi
2662
2663fi
2664
2665
2666test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2667See \`config.log' for more details." >&5
2668echo "$as_me: error: no acceptable C compiler found in \$PATH
2669See \`config.log' for more details." >&2;}
2670   { (exit 1); exit 1; }; }
2671
2672# Provide some information about the compiler.
2673echo "$as_me:$LINENO: checking for C compiler version" >&5
2674ac_compiler=`set X $ac_compile; echo $2`
2675{ (ac_try="$ac_compiler --version >&5"
2676case "(($ac_try" in
2677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678  *) ac_try_echo=$ac_try;;
2679esac
2680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2681  (eval "$ac_compiler --version >&5") 2>&5
2682  ac_status=$?
2683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684  (exit $ac_status); }
2685{ (ac_try="$ac_compiler -v >&5"
2686case "(($ac_try" in
2687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688  *) ac_try_echo=$ac_try;;
2689esac
2690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691  (eval "$ac_compiler -v >&5") 2>&5
2692  ac_status=$?
2693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694  (exit $ac_status); }
2695{ (ac_try="$ac_compiler -V >&5"
2696case "(($ac_try" in
2697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698  *) ac_try_echo=$ac_try;;
2699esac
2700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2701  (eval "$ac_compiler -V >&5") 2>&5
2702  ac_status=$?
2703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704  (exit $ac_status); }
2705
2706cat >conftest.$ac_ext <<_ACEOF
2707/* confdefs.h.  */
2708_ACEOF
2709cat confdefs.h >>conftest.$ac_ext
2710cat >>conftest.$ac_ext <<_ACEOF
2711/* end confdefs.h.  */
2712
2713int
2714main ()
2715{
2716
2717  ;
2718  return 0;
2719}
2720_ACEOF
2721ac_clean_files_save=$ac_clean_files
2722ac_clean_files="$ac_clean_files a.out a.exe b.out"
2723# Try to create an executable without -o first, disregard a.out.
2724# It will help us diagnose broken compilers, and finding out an intuition
2725# of exeext.
2726{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2727echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2728ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2729#
2730# List of possible output files, starting from the most likely.
2731# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2732# only as a last resort.  b.out is created by i960 compilers.
2733ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2734#
2735# The IRIX 6 linker writes into existing files which may not be
2736# executable, retaining their permissions.  Remove them first so a
2737# subsequent execution test works.
2738ac_rmfiles=
2739for ac_file in $ac_files
2740do
2741  case $ac_file in
2742    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2743    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2744  esac
2745done
2746rm -f $ac_rmfiles
2747
2748if { (ac_try="$ac_link_default"
2749case "(($ac_try" in
2750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751  *) ac_try_echo=$ac_try;;
2752esac
2753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754  (eval "$ac_link_default") 2>&5
2755  ac_status=$?
2756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757  (exit $ac_status); }; then
2758  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2759# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2760# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2761# so that the user can short-circuit this test for compilers unknown to
2762# Autoconf.
2763for ac_file in $ac_files
2764do
2765  test -f "$ac_file" || continue
2766  case $ac_file in
2767    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2768	;;
2769    [ab].out )
2770	# We found the default executable, but exeext='' is most
2771	# certainly right.
2772	break;;
2773    *.* )
2774        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2775	then :; else
2776	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2777	fi
2778	# We set ac_cv_exeext here because the later test for it is not
2779	# safe: cross compilers may not add the suffix if given an `-o'
2780	# argument, so we may need to know it at that point already.
2781	# Even if this section looks crufty: it has the advantage of
2782	# actually working.
2783	break;;
2784    * )
2785	break;;
2786  esac
2787done
2788test "$ac_cv_exeext" = no && ac_cv_exeext=
2789
2790else
2791  echo "$as_me: failed program was:" >&5
2792sed 's/^/| /' conftest.$ac_ext >&5
2793
2794{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2795See \`config.log' for more details." >&5
2796echo "$as_me: error: C compiler cannot create executables
2797See \`config.log' for more details." >&2;}
2798   { (exit 77); exit 77; }; }
2799fi
2800
2801ac_exeext=$ac_cv_exeext
2802{ echo "$as_me:$LINENO: result: $ac_file" >&5
2803echo "${ECHO_T}$ac_file" >&6; }
2804
2805# Check that the compiler produces executables we can run.  If not, either
2806# the compiler is broken, or we cross compile.
2807{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2808echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2809# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2810# If not cross compiling, check that we can run a simple program.
2811if test "$cross_compiling" != yes; then
2812  if { ac_try='./$ac_file'
2813  { (case "(($ac_try" in
2814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815  *) ac_try_echo=$ac_try;;
2816esac
2817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818  (eval "$ac_try") 2>&5
2819  ac_status=$?
2820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821  (exit $ac_status); }; }; then
2822    cross_compiling=no
2823  else
2824    if test "$cross_compiling" = maybe; then
2825	cross_compiling=yes
2826    else
2827	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2828If you meant to cross compile, use \`--host'.
2829See \`config.log' for more details." >&5
2830echo "$as_me: error: cannot run C compiled programs.
2831If you meant to cross compile, use \`--host'.
2832See \`config.log' for more details." >&2;}
2833   { (exit 1); exit 1; }; }
2834    fi
2835  fi
2836fi
2837{ echo "$as_me:$LINENO: result: yes" >&5
2838echo "${ECHO_T}yes" >&6; }
2839
2840rm -f a.out a.exe conftest$ac_cv_exeext b.out
2841ac_clean_files=$ac_clean_files_save
2842# Check that the compiler produces executables we can run.  If not, either
2843# the compiler is broken, or we cross compile.
2844{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2845echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2846{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2847echo "${ECHO_T}$cross_compiling" >&6; }
2848
2849{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2850echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2851if { (ac_try="$ac_link"
2852case "(($ac_try" in
2853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854  *) ac_try_echo=$ac_try;;
2855esac
2856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2857  (eval "$ac_link") 2>&5
2858  ac_status=$?
2859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860  (exit $ac_status); }; then
2861  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2862# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2863# work properly (i.e., refer to `conftest.exe'), while it won't with
2864# `rm'.
2865for ac_file in conftest.exe conftest conftest.*; do
2866  test -f "$ac_file" || continue
2867  case $ac_file in
2868    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2869    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2870	  break;;
2871    * ) break;;
2872  esac
2873done
2874else
2875  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2876See \`config.log' for more details." >&5
2877echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2878See \`config.log' for more details." >&2;}
2879   { (exit 1); exit 1; }; }
2880fi
2881
2882rm -f conftest$ac_cv_exeext
2883{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2884echo "${ECHO_T}$ac_cv_exeext" >&6; }
2885
2886rm -f conftest.$ac_ext
2887EXEEXT=$ac_cv_exeext
2888ac_exeext=$EXEEXT
2889{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2890echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2891if test "${ac_cv_objext+set}" = set; then
2892  echo $ECHO_N "(cached) $ECHO_C" >&6
2893else
2894  cat >conftest.$ac_ext <<_ACEOF
2895/* confdefs.h.  */
2896_ACEOF
2897cat confdefs.h >>conftest.$ac_ext
2898cat >>conftest.$ac_ext <<_ACEOF
2899/* end confdefs.h.  */
2900
2901int
2902main ()
2903{
2904
2905  ;
2906  return 0;
2907}
2908_ACEOF
2909rm -f conftest.o conftest.obj
2910if { (ac_try="$ac_compile"
2911case "(($ac_try" in
2912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913  *) ac_try_echo=$ac_try;;
2914esac
2915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2916  (eval "$ac_compile") 2>&5
2917  ac_status=$?
2918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919  (exit $ac_status); }; then
2920  for ac_file in conftest.o conftest.obj conftest.*; do
2921  test -f "$ac_file" || continue;
2922  case $ac_file in
2923    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2924    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2925       break;;
2926  esac
2927done
2928else
2929  echo "$as_me: failed program was:" >&5
2930sed 's/^/| /' conftest.$ac_ext >&5
2931
2932{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2933See \`config.log' for more details." >&5
2934echo "$as_me: error: cannot compute suffix of object files: cannot compile
2935See \`config.log' for more details." >&2;}
2936   { (exit 1); exit 1; }; }
2937fi
2938
2939rm -f conftest.$ac_cv_objext conftest.$ac_ext
2940fi
2941{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2942echo "${ECHO_T}$ac_cv_objext" >&6; }
2943OBJEXT=$ac_cv_objext
2944ac_objext=$OBJEXT
2945{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2946echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2947if test "${ac_cv_c_compiler_gnu+set}" = set; then
2948  echo $ECHO_N "(cached) $ECHO_C" >&6
2949else
2950  cat >conftest.$ac_ext <<_ACEOF
2951/* confdefs.h.  */
2952_ACEOF
2953cat confdefs.h >>conftest.$ac_ext
2954cat >>conftest.$ac_ext <<_ACEOF
2955/* end confdefs.h.  */
2956
2957int
2958main ()
2959{
2960#ifndef __GNUC__
2961       choke me
2962#endif
2963
2964  ;
2965  return 0;
2966}
2967_ACEOF
2968rm -f conftest.$ac_objext
2969if { (ac_try="$ac_compile"
2970case "(($ac_try" in
2971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972  *) ac_try_echo=$ac_try;;
2973esac
2974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975  (eval "$ac_compile") 2>conftest.er1
2976  ac_status=$?
2977  grep -v '^ *+' conftest.er1 >conftest.err
2978  rm -f conftest.er1
2979  cat conftest.err >&5
2980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981  (exit $ac_status); } &&
2982	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2983  { (case "(($ac_try" in
2984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985  *) ac_try_echo=$ac_try;;
2986esac
2987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988  (eval "$ac_try") 2>&5
2989  ac_status=$?
2990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991  (exit $ac_status); }; } &&
2992	 { ac_try='test -s conftest.$ac_objext'
2993  { (case "(($ac_try" in
2994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995  *) ac_try_echo=$ac_try;;
2996esac
2997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998  (eval "$ac_try") 2>&5
2999  ac_status=$?
3000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001  (exit $ac_status); }; }; then
3002  ac_compiler_gnu=yes
3003else
3004  echo "$as_me: failed program was:" >&5
3005sed 's/^/| /' conftest.$ac_ext >&5
3006
3007	ac_compiler_gnu=no
3008fi
3009
3010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3011ac_cv_c_compiler_gnu=$ac_compiler_gnu
3012
3013fi
3014{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3015echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3016GCC=`test $ac_compiler_gnu = yes && echo yes`
3017ac_test_CFLAGS=${CFLAGS+set}
3018ac_save_CFLAGS=$CFLAGS
3019{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3020echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3021if test "${ac_cv_prog_cc_g+set}" = set; then
3022  echo $ECHO_N "(cached) $ECHO_C" >&6
3023else
3024  ac_save_c_werror_flag=$ac_c_werror_flag
3025   ac_c_werror_flag=yes
3026   ac_cv_prog_cc_g=no
3027   CFLAGS="-g"
3028   cat >conftest.$ac_ext <<_ACEOF
3029/* confdefs.h.  */
3030_ACEOF
3031cat confdefs.h >>conftest.$ac_ext
3032cat >>conftest.$ac_ext <<_ACEOF
3033/* end confdefs.h.  */
3034
3035int
3036main ()
3037{
3038
3039  ;
3040  return 0;
3041}
3042_ACEOF
3043rm -f conftest.$ac_objext
3044if { (ac_try="$ac_compile"
3045case "(($ac_try" in
3046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047  *) ac_try_echo=$ac_try;;
3048esac
3049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050  (eval "$ac_compile") 2>conftest.er1
3051  ac_status=$?
3052  grep -v '^ *+' conftest.er1 >conftest.err
3053  rm -f conftest.er1
3054  cat conftest.err >&5
3055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056  (exit $ac_status); } &&
3057	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3058  { (case "(($ac_try" in
3059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060  *) ac_try_echo=$ac_try;;
3061esac
3062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063  (eval "$ac_try") 2>&5
3064  ac_status=$?
3065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066  (exit $ac_status); }; } &&
3067	 { ac_try='test -s conftest.$ac_objext'
3068  { (case "(($ac_try" in
3069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070  *) ac_try_echo=$ac_try;;
3071esac
3072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073  (eval "$ac_try") 2>&5
3074  ac_status=$?
3075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076  (exit $ac_status); }; }; then
3077  ac_cv_prog_cc_g=yes
3078else
3079  echo "$as_me: failed program was:" >&5
3080sed 's/^/| /' conftest.$ac_ext >&5
3081
3082	CFLAGS=""
3083      cat >conftest.$ac_ext <<_ACEOF
3084/* confdefs.h.  */
3085_ACEOF
3086cat confdefs.h >>conftest.$ac_ext
3087cat >>conftest.$ac_ext <<_ACEOF
3088/* end confdefs.h.  */
3089
3090int
3091main ()
3092{
3093
3094  ;
3095  return 0;
3096}
3097_ACEOF
3098rm -f conftest.$ac_objext
3099if { (ac_try="$ac_compile"
3100case "(($ac_try" in
3101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102  *) ac_try_echo=$ac_try;;
3103esac
3104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105  (eval "$ac_compile") 2>conftest.er1
3106  ac_status=$?
3107  grep -v '^ *+' conftest.er1 >conftest.err
3108  rm -f conftest.er1
3109  cat conftest.err >&5
3110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111  (exit $ac_status); } &&
3112	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3113  { (case "(($ac_try" in
3114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115  *) ac_try_echo=$ac_try;;
3116esac
3117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118  (eval "$ac_try") 2>&5
3119  ac_status=$?
3120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121  (exit $ac_status); }; } &&
3122	 { ac_try='test -s conftest.$ac_objext'
3123  { (case "(($ac_try" in
3124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125  *) ac_try_echo=$ac_try;;
3126esac
3127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128  (eval "$ac_try") 2>&5
3129  ac_status=$?
3130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131  (exit $ac_status); }; }; then
3132  :
3133else
3134  echo "$as_me: failed program was:" >&5
3135sed 's/^/| /' conftest.$ac_ext >&5
3136
3137	ac_c_werror_flag=$ac_save_c_werror_flag
3138	 CFLAGS="-g"
3139	 cat >conftest.$ac_ext <<_ACEOF
3140/* confdefs.h.  */
3141_ACEOF
3142cat confdefs.h >>conftest.$ac_ext
3143cat >>conftest.$ac_ext <<_ACEOF
3144/* end confdefs.h.  */
3145
3146int
3147main ()
3148{
3149
3150  ;
3151  return 0;
3152}
3153_ACEOF
3154rm -f conftest.$ac_objext
3155if { (ac_try="$ac_compile"
3156case "(($ac_try" in
3157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158  *) ac_try_echo=$ac_try;;
3159esac
3160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161  (eval "$ac_compile") 2>conftest.er1
3162  ac_status=$?
3163  grep -v '^ *+' conftest.er1 >conftest.err
3164  rm -f conftest.er1
3165  cat conftest.err >&5
3166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167  (exit $ac_status); } &&
3168	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3178	 { ac_try='test -s conftest.$ac_objext'
3179  { (case "(($ac_try" in
3180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181  *) ac_try_echo=$ac_try;;
3182esac
3183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184  (eval "$ac_try") 2>&5
3185  ac_status=$?
3186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187  (exit $ac_status); }; }; then
3188  ac_cv_prog_cc_g=yes
3189else
3190  echo "$as_me: failed program was:" >&5
3191sed 's/^/| /' conftest.$ac_ext >&5
3192
3193
3194fi
3195
3196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197fi
3198
3199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200fi
3201
3202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203   ac_c_werror_flag=$ac_save_c_werror_flag
3204fi
3205{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3206echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3207if test "$ac_test_CFLAGS" = set; then
3208  CFLAGS=$ac_save_CFLAGS
3209elif test $ac_cv_prog_cc_g = yes; then
3210  if test "$GCC" = yes; then
3211    CFLAGS="-g -O2"
3212  else
3213    CFLAGS="-g"
3214  fi
3215else
3216  if test "$GCC" = yes; then
3217    CFLAGS="-O2"
3218  else
3219    CFLAGS=
3220  fi
3221fi
3222{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3223echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3224if test "${ac_cv_prog_cc_c89+set}" = set; then
3225  echo $ECHO_N "(cached) $ECHO_C" >&6
3226else
3227  ac_cv_prog_cc_c89=no
3228ac_save_CC=$CC
3229cat >conftest.$ac_ext <<_ACEOF
3230/* confdefs.h.  */
3231_ACEOF
3232cat confdefs.h >>conftest.$ac_ext
3233cat >>conftest.$ac_ext <<_ACEOF
3234/* end confdefs.h.  */
3235#include <stdarg.h>
3236#include <stdio.h>
3237#include <sys/types.h>
3238#include <sys/stat.h>
3239/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3240struct buf { int x; };
3241FILE * (*rcsopen) (struct buf *, struct stat *, int);
3242static char *e (p, i)
3243     char **p;
3244     int i;
3245{
3246  return p[i];
3247}
3248static char *f (char * (*g) (char **, int), char **p, ...)
3249{
3250  char *s;
3251  va_list v;
3252  va_start (v,p);
3253  s = g (p, va_arg (v,int));
3254  va_end (v);
3255  return s;
3256}
3257
3258/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3259   function prototypes and stuff, but not '\xHH' hex character constants.
3260   These don't provoke an error unfortunately, instead are silently treated
3261   as 'x'.  The following induces an error, until -std is added to get
3262   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3263   array size at least.  It's necessary to write '\x00'==0 to get something
3264   that's true only with -std.  */
3265int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3266
3267/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3268   inside strings and character constants.  */
3269#define FOO(x) 'x'
3270int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3271
3272int test (int i, double x);
3273struct s1 {int (*f) (int a);};
3274struct s2 {int (*f) (double a);};
3275int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3276int argc;
3277char **argv;
3278int
3279main ()
3280{
3281return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3282  ;
3283  return 0;
3284}
3285_ACEOF
3286for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3287	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3288do
3289  CC="$ac_save_CC $ac_arg"
3290  rm -f conftest.$ac_objext
3291if { (ac_try="$ac_compile"
3292case "(($ac_try" in
3293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294  *) ac_try_echo=$ac_try;;
3295esac
3296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297  (eval "$ac_compile") 2>conftest.er1
3298  ac_status=$?
3299  grep -v '^ *+' conftest.er1 >conftest.err
3300  rm -f conftest.er1
3301  cat conftest.err >&5
3302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303  (exit $ac_status); } &&
3304	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3305  { (case "(($ac_try" in
3306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307  *) ac_try_echo=$ac_try;;
3308esac
3309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3310  (eval "$ac_try") 2>&5
3311  ac_status=$?
3312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313  (exit $ac_status); }; } &&
3314	 { ac_try='test -s conftest.$ac_objext'
3315  { (case "(($ac_try" in
3316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317  *) ac_try_echo=$ac_try;;
3318esac
3319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320  (eval "$ac_try") 2>&5
3321  ac_status=$?
3322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323  (exit $ac_status); }; }; then
3324  ac_cv_prog_cc_c89=$ac_arg
3325else
3326  echo "$as_me: failed program was:" >&5
3327sed 's/^/| /' conftest.$ac_ext >&5
3328
3329
3330fi
3331
3332rm -f core conftest.err conftest.$ac_objext
3333  test "x$ac_cv_prog_cc_c89" != "xno" && break
3334done
3335rm -f conftest.$ac_ext
3336CC=$ac_save_CC
3337
3338fi
3339# AC_CACHE_VAL
3340case "x$ac_cv_prog_cc_c89" in
3341  x)
3342    { echo "$as_me:$LINENO: result: none needed" >&5
3343echo "${ECHO_T}none needed" >&6; } ;;
3344  xno)
3345    { echo "$as_me:$LINENO: result: unsupported" >&5
3346echo "${ECHO_T}unsupported" >&6; } ;;
3347  *)
3348    CC="$CC $ac_cv_prog_cc_c89"
3349    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3350echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3351esac
3352
3353
3354ac_ext=c
3355ac_cpp='$CPP $CPPFLAGS'
3356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3358ac_compiler_gnu=$ac_cv_c_compiler_gnu
3359
3360
3361ac_ext=c
3362ac_cpp='$CPP $CPPFLAGS'
3363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365ac_compiler_gnu=$ac_cv_c_compiler_gnu
3366{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3367echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3368# On Suns, sometimes $CPP names a directory.
3369if test -n "$CPP" && test -d "$CPP"; then
3370  CPP=
3371fi
3372if test -z "$CPP"; then
3373  if test "${ac_cv_prog_CPP+set}" = set; then
3374  echo $ECHO_N "(cached) $ECHO_C" >&6
3375else
3376      # Double quotes because CPP needs to be expanded
3377    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3378    do
3379      ac_preproc_ok=false
3380for ac_c_preproc_warn_flag in '' yes
3381do
3382  # Use a header file that comes with gcc, so configuring glibc
3383  # with a fresh cross-compiler works.
3384  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3385  # <limits.h> exists even on freestanding compilers.
3386  # On the NeXT, cc -E runs the code through the compiler's parser,
3387  # not just through cpp. "Syntax error" is here to catch this case.
3388  cat >conftest.$ac_ext <<_ACEOF
3389/* confdefs.h.  */
3390_ACEOF
3391cat confdefs.h >>conftest.$ac_ext
3392cat >>conftest.$ac_ext <<_ACEOF
3393/* end confdefs.h.  */
3394#ifdef __STDC__
3395# include <limits.h>
3396#else
3397# include <assert.h>
3398#endif
3399		     Syntax error
3400_ACEOF
3401if { (ac_try="$ac_cpp conftest.$ac_ext"
3402case "(($ac_try" in
3403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404  *) ac_try_echo=$ac_try;;
3405esac
3406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3408  ac_status=$?
3409  grep -v '^ *+' conftest.er1 >conftest.err
3410  rm -f conftest.er1
3411  cat conftest.err >&5
3412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413  (exit $ac_status); } >/dev/null; then
3414  if test -s conftest.err; then
3415    ac_cpp_err=$ac_c_preproc_warn_flag
3416    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3417  else
3418    ac_cpp_err=
3419  fi
3420else
3421  ac_cpp_err=yes
3422fi
3423if test -z "$ac_cpp_err"; then
3424  :
3425else
3426  echo "$as_me: failed program was:" >&5
3427sed 's/^/| /' conftest.$ac_ext >&5
3428
3429  # Broken: fails on valid input.
3430continue
3431fi
3432
3433rm -f conftest.err conftest.$ac_ext
3434
3435  # OK, works on sane cases.  Now check whether nonexistent headers
3436  # can be detected and how.
3437  cat >conftest.$ac_ext <<_ACEOF
3438/* confdefs.h.  */
3439_ACEOF
3440cat confdefs.h >>conftest.$ac_ext
3441cat >>conftest.$ac_ext <<_ACEOF
3442/* end confdefs.h.  */
3443#include <ac_nonexistent.h>
3444_ACEOF
3445if { (ac_try="$ac_cpp conftest.$ac_ext"
3446case "(($ac_try" in
3447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448  *) ac_try_echo=$ac_try;;
3449esac
3450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3452  ac_status=$?
3453  grep -v '^ *+' conftest.er1 >conftest.err
3454  rm -f conftest.er1
3455  cat conftest.err >&5
3456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457  (exit $ac_status); } >/dev/null; then
3458  if test -s conftest.err; then
3459    ac_cpp_err=$ac_c_preproc_warn_flag
3460    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3461  else
3462    ac_cpp_err=
3463  fi
3464else
3465  ac_cpp_err=yes
3466fi
3467if test -z "$ac_cpp_err"; then
3468  # Broken: success on invalid input.
3469continue
3470else
3471  echo "$as_me: failed program was:" >&5
3472sed 's/^/| /' conftest.$ac_ext >&5
3473
3474  # Passes both tests.
3475ac_preproc_ok=:
3476break
3477fi
3478
3479rm -f conftest.err conftest.$ac_ext
3480
3481done
3482# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3483rm -f conftest.err conftest.$ac_ext
3484if $ac_preproc_ok; then
3485  break
3486fi
3487
3488    done
3489    ac_cv_prog_CPP=$CPP
3490
3491fi
3492  CPP=$ac_cv_prog_CPP
3493else
3494  ac_cv_prog_CPP=$CPP
3495fi
3496{ echo "$as_me:$LINENO: result: $CPP" >&5
3497echo "${ECHO_T}$CPP" >&6; }
3498ac_preproc_ok=false
3499for ac_c_preproc_warn_flag in '' yes
3500do
3501  # Use a header file that comes with gcc, so configuring glibc
3502  # with a fresh cross-compiler works.
3503  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3504  # <limits.h> exists even on freestanding compilers.
3505  # On the NeXT, cc -E runs the code through the compiler's parser,
3506  # not just through cpp. "Syntax error" is here to catch this case.
3507  cat >conftest.$ac_ext <<_ACEOF
3508/* confdefs.h.  */
3509_ACEOF
3510cat confdefs.h >>conftest.$ac_ext
3511cat >>conftest.$ac_ext <<_ACEOF
3512/* end confdefs.h.  */
3513#ifdef __STDC__
3514# include <limits.h>
3515#else
3516# include <assert.h>
3517#endif
3518		     Syntax error
3519_ACEOF
3520if { (ac_try="$ac_cpp conftest.$ac_ext"
3521case "(($ac_try" in
3522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523  *) ac_try_echo=$ac_try;;
3524esac
3525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3526  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3527  ac_status=$?
3528  grep -v '^ *+' conftest.er1 >conftest.err
3529  rm -f conftest.er1
3530  cat conftest.err >&5
3531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532  (exit $ac_status); } >/dev/null; then
3533  if test -s conftest.err; then
3534    ac_cpp_err=$ac_c_preproc_warn_flag
3535    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3536  else
3537    ac_cpp_err=
3538  fi
3539else
3540  ac_cpp_err=yes
3541fi
3542if test -z "$ac_cpp_err"; then
3543  :
3544else
3545  echo "$as_me: failed program was:" >&5
3546sed 's/^/| /' conftest.$ac_ext >&5
3547
3548  # Broken: fails on valid input.
3549continue
3550fi
3551
3552rm -f conftest.err conftest.$ac_ext
3553
3554  # OK, works on sane cases.  Now check whether nonexistent headers
3555  # can be detected and how.
3556  cat >conftest.$ac_ext <<_ACEOF
3557/* confdefs.h.  */
3558_ACEOF
3559cat confdefs.h >>conftest.$ac_ext
3560cat >>conftest.$ac_ext <<_ACEOF
3561/* end confdefs.h.  */
3562#include <ac_nonexistent.h>
3563_ACEOF
3564if { (ac_try="$ac_cpp conftest.$ac_ext"
3565case "(($ac_try" in
3566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567  *) ac_try_echo=$ac_try;;
3568esac
3569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3571  ac_status=$?
3572  grep -v '^ *+' conftest.er1 >conftest.err
3573  rm -f conftest.er1
3574  cat conftest.err >&5
3575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576  (exit $ac_status); } >/dev/null; then
3577  if test -s conftest.err; then
3578    ac_cpp_err=$ac_c_preproc_warn_flag
3579    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3580  else
3581    ac_cpp_err=
3582  fi
3583else
3584  ac_cpp_err=yes
3585fi
3586if test -z "$ac_cpp_err"; then
3587  # Broken: success on invalid input.
3588continue
3589else
3590  echo "$as_me: failed program was:" >&5
3591sed 's/^/| /' conftest.$ac_ext >&5
3592
3593  # Passes both tests.
3594ac_preproc_ok=:
3595break
3596fi
3597
3598rm -f conftest.err conftest.$ac_ext
3599
3600done
3601# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3602rm -f conftest.err conftest.$ac_ext
3603if $ac_preproc_ok; then
3604  :
3605else
3606  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3607See \`config.log' for more details." >&5
3608echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3609See \`config.log' for more details." >&2;}
3610   { (exit 1); exit 1; }; }
3611fi
3612
3613ac_ext=c
3614ac_cpp='$CPP $CPPFLAGS'
3615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617ac_compiler_gnu=$ac_cv_c_compiler_gnu
3618
3619
3620{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3621echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3622if test "${ac_cv_path_GREP+set}" = set; then
3623  echo $ECHO_N "(cached) $ECHO_C" >&6
3624else
3625  # Extract the first word of "grep ggrep" to use in msg output
3626if test -z "$GREP"; then
3627set dummy grep ggrep; ac_prog_name=$2
3628if test "${ac_cv_path_GREP+set}" = set; then
3629  echo $ECHO_N "(cached) $ECHO_C" >&6
3630else
3631  ac_path_GREP_found=false
3632# Loop through the user's path and test for each of PROGNAME-LIST
3633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3635do
3636  IFS=$as_save_IFS
3637  test -z "$as_dir" && as_dir=.
3638  for ac_prog in grep ggrep; do
3639  for ac_exec_ext in '' $ac_executable_extensions; do
3640    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3641    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3642    # Check for GNU ac_path_GREP and select it if it is found.
3643  # Check for GNU $ac_path_GREP
3644case `"$ac_path_GREP" --version 2>&1` in
3645*GNU*)
3646  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3647*)
3648  ac_count=0
3649  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3650  while :
3651  do
3652    cat "conftest.in" "conftest.in" >"conftest.tmp"
3653    mv "conftest.tmp" "conftest.in"
3654    cp "conftest.in" "conftest.nl"
3655    echo 'GREP' >> "conftest.nl"
3656    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3657    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3658    ac_count=`expr $ac_count + 1`
3659    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3660      # Best one so far, save it but keep looking for a better one
3661      ac_cv_path_GREP="$ac_path_GREP"
3662      ac_path_GREP_max=$ac_count
3663    fi
3664    # 10*(2^10) chars as input seems more than enough
3665    test $ac_count -gt 10 && break
3666  done
3667  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3668esac
3669
3670
3671    $ac_path_GREP_found && break 3
3672  done
3673done
3674
3675done
3676IFS=$as_save_IFS
3677
3678
3679fi
3680
3681GREP="$ac_cv_path_GREP"
3682if test -z "$GREP"; then
3683  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3684echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3685   { (exit 1); exit 1; }; }
3686fi
3687
3688else
3689  ac_cv_path_GREP=$GREP
3690fi
3691
3692
3693fi
3694{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3695echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3696 GREP="$ac_cv_path_GREP"
3697
3698
3699{ echo "$as_me:$LINENO: checking for egrep" >&5
3700echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3701if test "${ac_cv_path_EGREP+set}" = set; then
3702  echo $ECHO_N "(cached) $ECHO_C" >&6
3703else
3704  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3705   then ac_cv_path_EGREP="$GREP -E"
3706   else
3707     # Extract the first word of "egrep" to use in msg output
3708if test -z "$EGREP"; then
3709set dummy egrep; ac_prog_name=$2
3710if test "${ac_cv_path_EGREP+set}" = set; then
3711  echo $ECHO_N "(cached) $ECHO_C" >&6
3712else
3713  ac_path_EGREP_found=false
3714# Loop through the user's path and test for each of PROGNAME-LIST
3715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3717do
3718  IFS=$as_save_IFS
3719  test -z "$as_dir" && as_dir=.
3720  for ac_prog in egrep; do
3721  for ac_exec_ext in '' $ac_executable_extensions; do
3722    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3723    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3724    # Check for GNU ac_path_EGREP and select it if it is found.
3725  # Check for GNU $ac_path_EGREP
3726case `"$ac_path_EGREP" --version 2>&1` in
3727*GNU*)
3728  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3729*)
3730  ac_count=0
3731  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3732  while :
3733  do
3734    cat "conftest.in" "conftest.in" >"conftest.tmp"
3735    mv "conftest.tmp" "conftest.in"
3736    cp "conftest.in" "conftest.nl"
3737    echo 'EGREP' >> "conftest.nl"
3738    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3739    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3740    ac_count=`expr $ac_count + 1`
3741    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3742      # Best one so far, save it but keep looking for a better one
3743      ac_cv_path_EGREP="$ac_path_EGREP"
3744      ac_path_EGREP_max=$ac_count
3745    fi
3746    # 10*(2^10) chars as input seems more than enough
3747    test $ac_count -gt 10 && break
3748  done
3749  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3750esac
3751
3752
3753    $ac_path_EGREP_found && break 3
3754  done
3755done
3756
3757done
3758IFS=$as_save_IFS
3759
3760
3761fi
3762
3763EGREP="$ac_cv_path_EGREP"
3764if test -z "$EGREP"; then
3765  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3766echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3767   { (exit 1); exit 1; }; }
3768fi
3769
3770else
3771  ac_cv_path_EGREP=$EGREP
3772fi
3773
3774
3775   fi
3776fi
3777{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3778echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3779 EGREP="$ac_cv_path_EGREP"
3780
3781
3782{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3783echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3784if test "${ac_cv_header_stdc+set}" = set; then
3785  echo $ECHO_N "(cached) $ECHO_C" >&6
3786else
3787  cat >conftest.$ac_ext <<_ACEOF
3788/* confdefs.h.  */
3789_ACEOF
3790cat confdefs.h >>conftest.$ac_ext
3791cat >>conftest.$ac_ext <<_ACEOF
3792/* end confdefs.h.  */
3793#include <stdlib.h>
3794#include <stdarg.h>
3795#include <string.h>
3796#include <float.h>
3797
3798int
3799main ()
3800{
3801
3802  ;
3803  return 0;
3804}
3805_ACEOF
3806rm -f conftest.$ac_objext
3807if { (ac_try="$ac_compile"
3808case "(($ac_try" in
3809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810  *) ac_try_echo=$ac_try;;
3811esac
3812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3813  (eval "$ac_compile") 2>conftest.er1
3814  ac_status=$?
3815  grep -v '^ *+' conftest.er1 >conftest.err
3816  rm -f conftest.er1
3817  cat conftest.err >&5
3818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819  (exit $ac_status); } &&
3820	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3821  { (case "(($ac_try" in
3822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823  *) ac_try_echo=$ac_try;;
3824esac
3825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3826  (eval "$ac_try") 2>&5
3827  ac_status=$?
3828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829  (exit $ac_status); }; } &&
3830	 { ac_try='test -s conftest.$ac_objext'
3831  { (case "(($ac_try" in
3832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833  *) ac_try_echo=$ac_try;;
3834esac
3835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3836  (eval "$ac_try") 2>&5
3837  ac_status=$?
3838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839  (exit $ac_status); }; }; then
3840  ac_cv_header_stdc=yes
3841else
3842  echo "$as_me: failed program was:" >&5
3843sed 's/^/| /' conftest.$ac_ext >&5
3844
3845	ac_cv_header_stdc=no
3846fi
3847
3848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849
3850if test $ac_cv_header_stdc = yes; then
3851  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3852  cat >conftest.$ac_ext <<_ACEOF
3853/* confdefs.h.  */
3854_ACEOF
3855cat confdefs.h >>conftest.$ac_ext
3856cat >>conftest.$ac_ext <<_ACEOF
3857/* end confdefs.h.  */
3858#include <string.h>
3859
3860_ACEOF
3861if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3862  $EGREP "memchr" >/dev/null 2>&1; then
3863  :
3864else
3865  ac_cv_header_stdc=no
3866fi
3867rm -f conftest*
3868
3869fi
3870
3871if test $ac_cv_header_stdc = yes; then
3872  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3873  cat >conftest.$ac_ext <<_ACEOF
3874/* confdefs.h.  */
3875_ACEOF
3876cat confdefs.h >>conftest.$ac_ext
3877cat >>conftest.$ac_ext <<_ACEOF
3878/* end confdefs.h.  */
3879#include <stdlib.h>
3880
3881_ACEOF
3882if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3883  $EGREP "free" >/dev/null 2>&1; then
3884  :
3885else
3886  ac_cv_header_stdc=no
3887fi
3888rm -f conftest*
3889
3890fi
3891
3892if test $ac_cv_header_stdc = yes; then
3893  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3894  if test "$cross_compiling" = yes; then
3895  :
3896else
3897  cat >conftest.$ac_ext <<_ACEOF
3898/* confdefs.h.  */
3899_ACEOF
3900cat confdefs.h >>conftest.$ac_ext
3901cat >>conftest.$ac_ext <<_ACEOF
3902/* end confdefs.h.  */
3903#include <ctype.h>
3904#include <stdlib.h>
3905#if ((' ' & 0x0FF) == 0x020)
3906# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3907# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3908#else
3909# define ISLOWER(c) \
3910		   (('a' <= (c) && (c) <= 'i') \
3911		     || ('j' <= (c) && (c) <= 'r') \
3912		     || ('s' <= (c) && (c) <= 'z'))
3913# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3914#endif
3915
3916#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3917int
3918main ()
3919{
3920  int i;
3921  for (i = 0; i < 256; i++)
3922    if (XOR (islower (i), ISLOWER (i))
3923	|| toupper (i) != TOUPPER (i))
3924      return 2;
3925  return 0;
3926}
3927_ACEOF
3928rm -f conftest$ac_exeext
3929if { (ac_try="$ac_link"
3930case "(($ac_try" in
3931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932  *) ac_try_echo=$ac_try;;
3933esac
3934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3935  (eval "$ac_link") 2>&5
3936  ac_status=$?
3937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3939  { (case "(($ac_try" in
3940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941  *) ac_try_echo=$ac_try;;
3942esac
3943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3944  (eval "$ac_try") 2>&5
3945  ac_status=$?
3946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947  (exit $ac_status); }; }; then
3948  :
3949else
3950  echo "$as_me: program exited with status $ac_status" >&5
3951echo "$as_me: failed program was:" >&5
3952sed 's/^/| /' conftest.$ac_ext >&5
3953
3954( exit $ac_status )
3955ac_cv_header_stdc=no
3956fi
3957rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3958fi
3959
3960
3961fi
3962fi
3963{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3964echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3965if test $ac_cv_header_stdc = yes; then
3966
3967cat >>confdefs.h <<\_ACEOF
3968#define STDC_HEADERS 1
3969_ACEOF
3970
3971fi
3972
3973# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3984		  inttypes.h stdint.h unistd.h
3985do
3986as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3987{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3988echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3990  echo $ECHO_N "(cached) $ECHO_C" >&6
3991else
3992  cat >conftest.$ac_ext <<_ACEOF
3993/* confdefs.h.  */
3994_ACEOF
3995cat confdefs.h >>conftest.$ac_ext
3996cat >>conftest.$ac_ext <<_ACEOF
3997/* end confdefs.h.  */
3998$ac_includes_default
3999
4000#include <$ac_header>
4001_ACEOF
4002rm -f conftest.$ac_objext
4003if { (ac_try="$ac_compile"
4004case "(($ac_try" in
4005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006  *) ac_try_echo=$ac_try;;
4007esac
4008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4009  (eval "$ac_compile") 2>conftest.er1
4010  ac_status=$?
4011  grep -v '^ *+' conftest.er1 >conftest.err
4012  rm -f conftest.er1
4013  cat conftest.err >&5
4014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015  (exit $ac_status); } &&
4016	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4017  { (case "(($ac_try" in
4018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019  *) ac_try_echo=$ac_try;;
4020esac
4021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4022  (eval "$ac_try") 2>&5
4023  ac_status=$?
4024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025  (exit $ac_status); }; } &&
4026	 { ac_try='test -s conftest.$ac_objext'
4027  { (case "(($ac_try" in
4028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029  *) ac_try_echo=$ac_try;;
4030esac
4031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4032  (eval "$ac_try") 2>&5
4033  ac_status=$?
4034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035  (exit $ac_status); }; }; then
4036  eval "$as_ac_Header=yes"
4037else
4038  echo "$as_me: failed program was:" >&5
4039sed 's/^/| /' conftest.$ac_ext >&5
4040
4041	eval "$as_ac_Header=no"
4042fi
4043
4044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045fi
4046ac_res=`eval echo '${'$as_ac_Header'}'`
4047	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4048echo "${ECHO_T}$ac_res" >&6; }
4049if test `eval echo '${'$as_ac_Header'}'` = yes; then
4050  cat >>confdefs.h <<_ACEOF
4051#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4052_ACEOF
4053
4054fi
4055
4056done
4057
4058
4059{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4060echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4061if test "${ac_cv_c_bigendian+set}" = set; then
4062  echo $ECHO_N "(cached) $ECHO_C" >&6
4063else
4064  # See if sys/param.h defines the BYTE_ORDER macro.
4065cat >conftest.$ac_ext <<_ACEOF
4066/* confdefs.h.  */
4067_ACEOF
4068cat confdefs.h >>conftest.$ac_ext
4069cat >>conftest.$ac_ext <<_ACEOF
4070/* end confdefs.h.  */
4071#include <sys/types.h>
4072#include <sys/param.h>
4073
4074int
4075main ()
4076{
4077#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4078 bogus endian macros
4079#endif
4080
4081  ;
4082  return 0;
4083}
4084_ACEOF
4085rm -f conftest.$ac_objext
4086if { (ac_try="$ac_compile"
4087case "(($ac_try" in
4088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089  *) ac_try_echo=$ac_try;;
4090esac
4091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092  (eval "$ac_compile") 2>conftest.er1
4093  ac_status=$?
4094  grep -v '^ *+' conftest.er1 >conftest.err
4095  rm -f conftest.er1
4096  cat conftest.err >&5
4097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098  (exit $ac_status); } &&
4099	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4100  { (case "(($ac_try" in
4101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102  *) ac_try_echo=$ac_try;;
4103esac
4104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4105  (eval "$ac_try") 2>&5
4106  ac_status=$?
4107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108  (exit $ac_status); }; } &&
4109	 { ac_try='test -s conftest.$ac_objext'
4110  { (case "(($ac_try" in
4111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112  *) ac_try_echo=$ac_try;;
4113esac
4114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4115  (eval "$ac_try") 2>&5
4116  ac_status=$?
4117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118  (exit $ac_status); }; }; then
4119  # It does; now see whether it defined to BIG_ENDIAN or not.
4120cat >conftest.$ac_ext <<_ACEOF
4121/* confdefs.h.  */
4122_ACEOF
4123cat confdefs.h >>conftest.$ac_ext
4124cat >>conftest.$ac_ext <<_ACEOF
4125/* end confdefs.h.  */
4126#include <sys/types.h>
4127#include <sys/param.h>
4128
4129int
4130main ()
4131{
4132#if BYTE_ORDER != BIG_ENDIAN
4133 not big endian
4134#endif
4135
4136  ;
4137  return 0;
4138}
4139_ACEOF
4140rm -f conftest.$ac_objext
4141if { (ac_try="$ac_compile"
4142case "(($ac_try" in
4143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144  *) ac_try_echo=$ac_try;;
4145esac
4146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147  (eval "$ac_compile") 2>conftest.er1
4148  ac_status=$?
4149  grep -v '^ *+' conftest.er1 >conftest.err
4150  rm -f conftest.er1
4151  cat conftest.err >&5
4152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153  (exit $ac_status); } &&
4154	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4155  { (case "(($ac_try" in
4156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157  *) ac_try_echo=$ac_try;;
4158esac
4159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160  (eval "$ac_try") 2>&5
4161  ac_status=$?
4162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163  (exit $ac_status); }; } &&
4164	 { ac_try='test -s conftest.$ac_objext'
4165  { (case "(($ac_try" in
4166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167  *) ac_try_echo=$ac_try;;
4168esac
4169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170  (eval "$ac_try") 2>&5
4171  ac_status=$?
4172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173  (exit $ac_status); }; }; then
4174  ac_cv_c_bigendian=yes
4175else
4176  echo "$as_me: failed program was:" >&5
4177sed 's/^/| /' conftest.$ac_ext >&5
4178
4179	ac_cv_c_bigendian=no
4180fi
4181
4182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183else
4184  echo "$as_me: failed program was:" >&5
4185sed 's/^/| /' conftest.$ac_ext >&5
4186
4187	# It does not; compile a test program.
4188if test "$cross_compiling" = yes; then
4189  # try to guess the endianness by grepping values into an object file
4190  ac_cv_c_bigendian=unknown
4191  cat >conftest.$ac_ext <<_ACEOF
4192/* confdefs.h.  */
4193_ACEOF
4194cat confdefs.h >>conftest.$ac_ext
4195cat >>conftest.$ac_ext <<_ACEOF
4196/* end confdefs.h.  */
4197short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4198short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4199void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4200short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4201short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4202void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4203int
4204main ()
4205{
4206 _ascii (); _ebcdic ();
4207  ;
4208  return 0;
4209}
4210_ACEOF
4211rm -f conftest.$ac_objext
4212if { (ac_try="$ac_compile"
4213case "(($ac_try" in
4214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215  *) ac_try_echo=$ac_try;;
4216esac
4217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4218  (eval "$ac_compile") 2>conftest.er1
4219  ac_status=$?
4220  grep -v '^ *+' conftest.er1 >conftest.err
4221  rm -f conftest.er1
4222  cat conftest.err >&5
4223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224  (exit $ac_status); } &&
4225	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4226  { (case "(($ac_try" in
4227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228  *) ac_try_echo=$ac_try;;
4229esac
4230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4231  (eval "$ac_try") 2>&5
4232  ac_status=$?
4233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234  (exit $ac_status); }; } &&
4235	 { ac_try='test -s conftest.$ac_objext'
4236  { (case "(($ac_try" in
4237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238  *) ac_try_echo=$ac_try;;
4239esac
4240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4241  (eval "$ac_try") 2>&5
4242  ac_status=$?
4243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244  (exit $ac_status); }; }; then
4245  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4246  ac_cv_c_bigendian=yes
4247fi
4248if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4249  if test "$ac_cv_c_bigendian" = unknown; then
4250    ac_cv_c_bigendian=no
4251  else
4252    # finding both strings is unlikely to happen, but who knows?
4253    ac_cv_c_bigendian=unknown
4254  fi
4255fi
4256else
4257  echo "$as_me: failed program was:" >&5
4258sed 's/^/| /' conftest.$ac_ext >&5
4259
4260
4261fi
4262
4263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4264else
4265  cat >conftest.$ac_ext <<_ACEOF
4266/* confdefs.h.  */
4267_ACEOF
4268cat confdefs.h >>conftest.$ac_ext
4269cat >>conftest.$ac_ext <<_ACEOF
4270/* end confdefs.h.  */
4271$ac_includes_default
4272int
4273main ()
4274{
4275
4276  /* Are we little or big endian?  From Harbison&Steele.  */
4277  union
4278  {
4279    long int l;
4280    char c[sizeof (long int)];
4281  } u;
4282  u.l = 1;
4283  return u.c[sizeof (long int) - 1] == 1;
4284
4285  ;
4286  return 0;
4287}
4288_ACEOF
4289rm -f conftest$ac_exeext
4290if { (ac_try="$ac_link"
4291case "(($ac_try" in
4292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293  *) ac_try_echo=$ac_try;;
4294esac
4295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296  (eval "$ac_link") 2>&5
4297  ac_status=$?
4298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4300  { (case "(($ac_try" in
4301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302  *) ac_try_echo=$ac_try;;
4303esac
4304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4305  (eval "$ac_try") 2>&5
4306  ac_status=$?
4307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308  (exit $ac_status); }; }; then
4309  ac_cv_c_bigendian=no
4310else
4311  echo "$as_me: program exited with status $ac_status" >&5
4312echo "$as_me: failed program was:" >&5
4313sed 's/^/| /' conftest.$ac_ext >&5
4314
4315( exit $ac_status )
4316ac_cv_c_bigendian=yes
4317fi
4318rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4319fi
4320
4321
4322fi
4323
4324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4325fi
4326{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4327echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4328case $ac_cv_c_bigendian in
4329  yes)
4330    ENDIAN=big
4331 ;;
4332  no)
4333    ENDIAN=little
4334 ;;
4335  *)
4336    { { echo "$as_me:$LINENO: error: unknown endianness
4337presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4338echo "$as_me: error: unknown endianness
4339presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4340   { (exit 1); exit 1; }; } ;;
4341esac
4342
4343
4344if test "$cross_compiling" = yes; then
4345  LLVM_CROSS_COMPILING=1
4346
4347
4348{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4349echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4350if test "${ac_cv_build_exeext+set}" = set; then
4351  echo $ECHO_N "(cached) $ECHO_C" >&6
4352else
4353  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4354  ac_cv_build_exeext=.exe
4355else
4356  ac_build_prefix=${build_alias}-
4357
4358  # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4359set dummy ${ac_build_prefix}gcc; ac_word=$2
4360{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4362if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4363  echo $ECHO_N "(cached) $ECHO_C" >&6
4364else
4365  if test -n "$BUILD_CC"; then
4366  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4367else
4368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369for as_dir in $PATH
4370do
4371  IFS=$as_save_IFS
4372  test -z "$as_dir" && as_dir=.
4373  for ac_exec_ext in '' $ac_executable_extensions; do
4374  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4375    ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4376    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4377    break 2
4378  fi
4379done
4380done
4381IFS=$as_save_IFS
4382
4383fi
4384fi
4385BUILD_CC=$ac_cv_prog_BUILD_CC
4386if test -n "$BUILD_CC"; then
4387  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4388echo "${ECHO_T}$BUILD_CC" >&6; }
4389else
4390  { echo "$as_me:$LINENO: result: no" >&5
4391echo "${ECHO_T}no" >&6; }
4392fi
4393
4394
4395  if test -z "$BUILD_CC"; then
4396     # Extract the first word of "gcc", so it can be a program name with args.
4397set dummy gcc; ac_word=$2
4398{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4400if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4401  echo $ECHO_N "(cached) $ECHO_C" >&6
4402else
4403  if test -n "$BUILD_CC"; then
4404  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4405else
4406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407for as_dir in $PATH
4408do
4409  IFS=$as_save_IFS
4410  test -z "$as_dir" && as_dir=.
4411  for ac_exec_ext in '' $ac_executable_extensions; do
4412  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4413    ac_cv_prog_BUILD_CC="gcc"
4414    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415    break 2
4416  fi
4417done
4418done
4419IFS=$as_save_IFS
4420
4421fi
4422fi
4423BUILD_CC=$ac_cv_prog_BUILD_CC
4424if test -n "$BUILD_CC"; then
4425  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4426echo "${ECHO_T}$BUILD_CC" >&6; }
4427else
4428  { echo "$as_me:$LINENO: result: no" >&5
4429echo "${ECHO_T}no" >&6; }
4430fi
4431
4432
4433     if test -z "$BUILD_CC"; then
4434       # Extract the first word of "cc", so it can be a program name with args.
4435set dummy cc; ac_word=$2
4436{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4438if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4439  echo $ECHO_N "(cached) $ECHO_C" >&6
4440else
4441  if test -n "$BUILD_CC"; then
4442  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4443else
4444  ac_prog_rejected=no
4445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446for as_dir in $PATH
4447do
4448  IFS=$as_save_IFS
4449  test -z "$as_dir" && as_dir=.
4450  for ac_exec_ext in '' $ac_executable_extensions; do
4451  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4452    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4453       ac_prog_rejected=yes
4454       continue
4455     fi
4456    ac_cv_prog_BUILD_CC="cc"
4457    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4458    break 2
4459  fi
4460done
4461done
4462IFS=$as_save_IFS
4463
4464if test $ac_prog_rejected = yes; then
4465  # We found a bogon in the path, so make sure we never use it.
4466  set dummy $ac_cv_prog_BUILD_CC
4467  shift
4468  if test $# != 0; then
4469    # We chose a different compiler from the bogus one.
4470    # However, it has the same basename, so the bogon will be chosen
4471    # first if we set BUILD_CC to just the basename; use the full file name.
4472    shift
4473    ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4474  fi
4475fi
4476fi
4477fi
4478BUILD_CC=$ac_cv_prog_BUILD_CC
4479if test -n "$BUILD_CC"; then
4480  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4481echo "${ECHO_T}$BUILD_CC" >&6; }
4482else
4483  { echo "$as_me:$LINENO: result: no" >&5
4484echo "${ECHO_T}no" >&6; }
4485fi
4486
4487
4488     fi
4489  fi
4490  test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4491echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4492   { (exit 1); exit 1; }; }
4493  ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4494  rm -f conftest*
4495  echo 'int main () { return 0; }' > conftest.$ac_ext
4496  ac_cv_build_exeext=
4497  if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4498  (eval $ac_build_link) 2>&5
4499  ac_status=$?
4500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501  (exit $ac_status); }; then
4502    for file in conftest.*; do
4503      case $file in
4504      *.c | *.o | *.obj) ;;
4505      *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4506      esac
4507    done
4508  else
4509    { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4510echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4511   { (exit 1); exit 1; }; }
4512  fi
4513  rm -f conftest*
4514  test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4515fi
4516fi
4517
4518BUILD_EXEEXT=""
4519test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4520{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4521echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4522ac_build_exeext=$BUILD_EXEEXT
4523
4524else
4525  LLVM_CROSS_COMPILING=0
4526
4527fi
4528
4529if test -d "CVS" -o -d "${srcdir}/CVS"; then
4530  cvsbuild="yes"
4531  optimize="no"
4532  CVSBUILD=CVSBUILD=1
4533
4534else
4535  cvsbuild="no"
4536  optimize="yes"
4537fi
4538
4539
4540# Check whether --enable-optimized was given.
4541if test "${enable_optimized+set}" = set; then
4542  enableval=$enable_optimized;
4543else
4544  enableval=$optimize
4545fi
4546
4547if test ${enableval} = "no" ; then
4548  ENABLE_OPTIMIZED=
4549
4550else
4551  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4552
4553fi
4554
4555# Check whether --enable-assertions was given.
4556if test "${enable_assertions+set}" = set; then
4557  enableval=$enable_assertions;
4558else
4559  enableval="yes"
4560fi
4561
4562if test ${enableval} = "yes" ; then
4563  DISABLE_ASSERTIONS=
4564
4565else
4566  DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4567
4568fi
4569
4570# Check whether --enable-debug-runtime was given.
4571if test "${enable_debug_runtime+set}" = set; then
4572  enableval=$enable_debug_runtime;
4573else
4574  enableval=no
4575fi
4576
4577if test ${enableval} = "no" ; then
4578  DEBUG_RUNTIME=
4579
4580else
4581  DEBUG_RUNTIME=DEBUG_RUNTIME=1
4582
4583fi
4584
4585# Check whether --enable-jit was given.
4586if test "${enable_jit+set}" = set; then
4587  enableval=$enable_jit;
4588else
4589  enableval=default
4590fi
4591
4592if test ${enableval} = "no"
4593then
4594  JIT=
4595
4596else
4597  case "$llvm_cv_target_arch" in
4598    x86)     TARGET_HAS_JIT=1
4599 ;;
4600    Sparc)   TARGET_HAS_JIT=1
4601 ;;
4602    PowerPC) TARGET_HAS_JIT=1
4603 ;;
4604    x86_64)  TARGET_HAS_JIT=0
4605 ;;
4606    Alpha)   TARGET_HAS_JIT=1
4607 ;;
4608    IA64)    TARGET_HAS_JIT=0
4609 ;;
4610    *)       TARGET_HAS_JIT=0
4611 ;;
4612  esac
4613fi
4614
4615# Check whether --enable-doxygen was given.
4616if test "${enable_doxygen+set}" = set; then
4617  enableval=$enable_doxygen;
4618else
4619  enableval=default
4620fi
4621
4622case "$enableval" in
4623  yes) ENABLE_DOXYGEN=1
4624 ;;
4625  no)  ENABLE_DOXYGEN=0
4626 ;;
4627  default) ENABLE_DOXYGEN=0
4628 ;;
4629  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4630echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4631   { (exit 1); exit 1; }; } ;;
4632esac
4633
4634# Check whether --enable-threads was given.
4635if test "${enable_threads+set}" = set; then
4636  enableval=$enable_threads;
4637else
4638  enableval=default
4639fi
4640
4641case "$enableval" in
4642  yes) ENABLE_THREADS=1
4643 ;;
4644  no)  ENABLE_THREADS=0
4645 ;;
4646  default) ENABLE_THREADS=1
4647 ;;
4648  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4649echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4650   { (exit 1); exit 1; }; } ;;
4651esac
4652
4653cat >>confdefs.h <<_ACEOF
4654#define ENABLE_THREADS $ENABLE_THREADS
4655_ACEOF
4656
4657
4658# Check whether --enable-pic was given.
4659if test "${enable_pic+set}" = set; then
4660  enableval=$enable_pic;
4661else
4662  enableval=default
4663fi
4664
4665case "$enableval" in
4666  yes) ENABLE_PIC=1
4667 ;;
4668  no)  ENABLE_PIC=0
4669 ;;
4670  default) ENABLE_PIC=0
4671 ;;
4672  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4673echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4674   { (exit 1); exit 1; }; } ;;
4675esac
4676
4677cat >>confdefs.h <<_ACEOF
4678#define ENABLE_PIC $ENABLE_PIC
4679_ACEOF
4680
4681
4682TARGETS_TO_BUILD=""
4683# Check whether --enable-targets was given.
4684if test "${enable_targets+set}" = set; then
4685  enableval=$enable_targets;
4686else
4687  enableval=all
4688fi
4689
4690case "$enableval" in
4691  all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4692  host-only)
4693    case "$llvm_cv_target_arch" in
4694      x86)     TARGETS_TO_BUILD="X86" ;;
4695      x86_64)  TARGETS_TO_BUILD="X86" ;;
4696      Sparc)   TARGETS_TO_BUILD="Sparc" ;;
4697      PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4698      Alpha)   TARGETS_TO_BUILD="Alpha" ;;
4699      IA64)    TARGETS_TO_BUILD="IA64" ;;
4700      *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4701echo "$as_me: error: Can not set target to build" >&2;}
4702   { (exit 1); exit 1; }; } ;;
4703    esac
4704    ;;
4705  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4706      case "$a_target" in
4707        x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4708        x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4709        sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4710        powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4711        alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4712        ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4713        *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4714echo "$as_me: error: Unrecognized target $a_target" >&2;}
4715   { (exit 1); exit 1; }; } ;;
4716      esac
4717  done
4718  ;;
4719esac
4720TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
4721TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4722
4723
4724# Check whether --enable-cbe-printf-a was given.
4725if test "${enable_cbe_printf_a+set}" = set; then
4726  enableval=$enable_cbe_printf_a;
4727else
4728  enableval=default
4729fi
4730
4731case "$enableval" in
4732  yes) ENABLE_CBE_PRINTF_A=1
4733 ;;
4734  no)  ENABLE_CBE_PRINTF_A=0
4735 ;;
4736  default)  ENABLE_CBE_PRINTF_A=1
4737 ;;
4738  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4739echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4740   { (exit 1); exit 1; }; } ;;
4741esac
4742
4743cat >>confdefs.h <<_ACEOF
4744#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4745_ACEOF
4746
4747
4748
4749# Check whether --with-llvmgccdir was given.
4750if test "${with_llvmgccdir+set}" = set; then
4751  withval=$with_llvmgccdir;
4752else
4753  withval=default
4754fi
4755
4756case "$withval" in
4757  default) WITH_LLVMGCCDIR=default ;;
4758  /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
4759  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4760echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4761   { (exit 1); exit 1; }; } ;;
4762esac
4763
4764
4765# Check whether --with-extra-options was given.
4766if test "${with_extra_options+set}" = set; then
4767  withval=$with_extra_options;
4768else
4769  withval=default
4770fi
4771
4772case "$withval" in
4773  default) EXTRA_OPTIONS= ;;
4774  *) EXTRA_OPTIONS=$withval ;;
4775esac
4776EXTRA_OPTIONS=$EXTRA_OPTIONS
4777
4778
4779
4780ac_ext=c
4781ac_cpp='$CPP $CPPFLAGS'
4782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4784ac_compiler_gnu=$ac_cv_c_compiler_gnu
4785{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4786echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4787# On Suns, sometimes $CPP names a directory.
4788if test -n "$CPP" && test -d "$CPP"; then
4789  CPP=
4790fi
4791if test -z "$CPP"; then
4792  if test "${ac_cv_prog_CPP+set}" = set; then
4793  echo $ECHO_N "(cached) $ECHO_C" >&6
4794else
4795      # Double quotes because CPP needs to be expanded
4796    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4797    do
4798      ac_preproc_ok=false
4799for ac_c_preproc_warn_flag in '' yes
4800do
4801  # Use a header file that comes with gcc, so configuring glibc
4802  # with a fresh cross-compiler works.
4803  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4804  # <limits.h> exists even on freestanding compilers.
4805  # On the NeXT, cc -E runs the code through the compiler's parser,
4806  # not just through cpp. "Syntax error" is here to catch this case.
4807  cat >conftest.$ac_ext <<_ACEOF
4808/* confdefs.h.  */
4809_ACEOF
4810cat confdefs.h >>conftest.$ac_ext
4811cat >>conftest.$ac_ext <<_ACEOF
4812/* end confdefs.h.  */
4813#ifdef __STDC__
4814# include <limits.h>
4815#else
4816# include <assert.h>
4817#endif
4818		     Syntax error
4819_ACEOF
4820if { (ac_try="$ac_cpp conftest.$ac_ext"
4821case "(($ac_try" in
4822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823  *) ac_try_echo=$ac_try;;
4824esac
4825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4826  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4827  ac_status=$?
4828  grep -v '^ *+' conftest.er1 >conftest.err
4829  rm -f conftest.er1
4830  cat conftest.err >&5
4831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832  (exit $ac_status); } >/dev/null; then
4833  if test -s conftest.err; then
4834    ac_cpp_err=$ac_c_preproc_warn_flag
4835    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4836  else
4837    ac_cpp_err=
4838  fi
4839else
4840  ac_cpp_err=yes
4841fi
4842if test -z "$ac_cpp_err"; then
4843  :
4844else
4845  echo "$as_me: failed program was:" >&5
4846sed 's/^/| /' conftest.$ac_ext >&5
4847
4848  # Broken: fails on valid input.
4849continue
4850fi
4851
4852rm -f conftest.err conftest.$ac_ext
4853
4854  # OK, works on sane cases.  Now check whether nonexistent headers
4855  # can be detected and how.
4856  cat >conftest.$ac_ext <<_ACEOF
4857/* confdefs.h.  */
4858_ACEOF
4859cat confdefs.h >>conftest.$ac_ext
4860cat >>conftest.$ac_ext <<_ACEOF
4861/* end confdefs.h.  */
4862#include <ac_nonexistent.h>
4863_ACEOF
4864if { (ac_try="$ac_cpp conftest.$ac_ext"
4865case "(($ac_try" in
4866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4867  *) ac_try_echo=$ac_try;;
4868esac
4869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4870  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4871  ac_status=$?
4872  grep -v '^ *+' conftest.er1 >conftest.err
4873  rm -f conftest.er1
4874  cat conftest.err >&5
4875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876  (exit $ac_status); } >/dev/null; then
4877  if test -s conftest.err; then
4878    ac_cpp_err=$ac_c_preproc_warn_flag
4879    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4880  else
4881    ac_cpp_err=
4882  fi
4883else
4884  ac_cpp_err=yes
4885fi
4886if test -z "$ac_cpp_err"; then
4887  # Broken: success on invalid input.
4888continue
4889else
4890  echo "$as_me: failed program was:" >&5
4891sed 's/^/| /' conftest.$ac_ext >&5
4892
4893  # Passes both tests.
4894ac_preproc_ok=:
4895break
4896fi
4897
4898rm -f conftest.err conftest.$ac_ext
4899
4900done
4901# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4902rm -f conftest.err conftest.$ac_ext
4903if $ac_preproc_ok; then
4904  break
4905fi
4906
4907    done
4908    ac_cv_prog_CPP=$CPP
4909
4910fi
4911  CPP=$ac_cv_prog_CPP
4912else
4913  ac_cv_prog_CPP=$CPP
4914fi
4915{ echo "$as_me:$LINENO: result: $CPP" >&5
4916echo "${ECHO_T}$CPP" >&6; }
4917ac_preproc_ok=false
4918for ac_c_preproc_warn_flag in '' yes
4919do
4920  # Use a header file that comes with gcc, so configuring glibc
4921  # with a fresh cross-compiler works.
4922  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4923  # <limits.h> exists even on freestanding compilers.
4924  # On the NeXT, cc -E runs the code through the compiler's parser,
4925  # not just through cpp. "Syntax error" is here to catch this case.
4926  cat >conftest.$ac_ext <<_ACEOF
4927/* confdefs.h.  */
4928_ACEOF
4929cat confdefs.h >>conftest.$ac_ext
4930cat >>conftest.$ac_ext <<_ACEOF
4931/* end confdefs.h.  */
4932#ifdef __STDC__
4933# include <limits.h>
4934#else
4935# include <assert.h>
4936#endif
4937		     Syntax error
4938_ACEOF
4939if { (ac_try="$ac_cpp conftest.$ac_ext"
4940case "(($ac_try" in
4941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4942  *) ac_try_echo=$ac_try;;
4943esac
4944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4945  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4946  ac_status=$?
4947  grep -v '^ *+' conftest.er1 >conftest.err
4948  rm -f conftest.er1
4949  cat conftest.err >&5
4950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951  (exit $ac_status); } >/dev/null; then
4952  if test -s conftest.err; then
4953    ac_cpp_err=$ac_c_preproc_warn_flag
4954    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4955  else
4956    ac_cpp_err=
4957  fi
4958else
4959  ac_cpp_err=yes
4960fi
4961if test -z "$ac_cpp_err"; then
4962  :
4963else
4964  echo "$as_me: failed program was:" >&5
4965sed 's/^/| /' conftest.$ac_ext >&5
4966
4967  # Broken: fails on valid input.
4968continue
4969fi
4970
4971rm -f conftest.err conftest.$ac_ext
4972
4973  # OK, works on sane cases.  Now check whether nonexistent headers
4974  # can be detected and how.
4975  cat >conftest.$ac_ext <<_ACEOF
4976/* confdefs.h.  */
4977_ACEOF
4978cat confdefs.h >>conftest.$ac_ext
4979cat >>conftest.$ac_ext <<_ACEOF
4980/* end confdefs.h.  */
4981#include <ac_nonexistent.h>
4982_ACEOF
4983if { (ac_try="$ac_cpp conftest.$ac_ext"
4984case "(($ac_try" in
4985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986  *) ac_try_echo=$ac_try;;
4987esac
4988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4989  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4990  ac_status=$?
4991  grep -v '^ *+' conftest.er1 >conftest.err
4992  rm -f conftest.er1
4993  cat conftest.err >&5
4994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995  (exit $ac_status); } >/dev/null; then
4996  if test -s conftest.err; then
4997    ac_cpp_err=$ac_c_preproc_warn_flag
4998    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4999  else
5000    ac_cpp_err=
5001  fi
5002else
5003  ac_cpp_err=yes
5004fi
5005if test -z "$ac_cpp_err"; then
5006  # Broken: success on invalid input.
5007continue
5008else
5009  echo "$as_me: failed program was:" >&5
5010sed 's/^/| /' conftest.$ac_ext >&5
5011
5012  # Passes both tests.
5013ac_preproc_ok=:
5014break
5015fi
5016
5017rm -f conftest.err conftest.$ac_ext
5018
5019done
5020# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5021rm -f conftest.err conftest.$ac_ext
5022if $ac_preproc_ok; then
5023  :
5024else
5025  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5026See \`config.log' for more details." >&5
5027echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5028See \`config.log' for more details." >&2;}
5029   { (exit 1); exit 1; }; }
5030fi
5031
5032ac_ext=c
5033ac_cpp='$CPP $CPPFLAGS'
5034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036ac_compiler_gnu=$ac_cv_c_compiler_gnu
5037
5038ac_ext=c
5039ac_cpp='$CPP $CPPFLAGS'
5040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5042ac_compiler_gnu=$ac_cv_c_compiler_gnu
5043if test -n "$ac_tool_prefix"; then
5044  for ac_prog in gcc
5045  do
5046    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5047set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5048{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5050if test "${ac_cv_prog_CC+set}" = set; then
5051  echo $ECHO_N "(cached) $ECHO_C" >&6
5052else
5053  if test -n "$CC"; then
5054  ac_cv_prog_CC="$CC" # Let the user override the test.
5055else
5056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057for as_dir in $PATH
5058do
5059  IFS=$as_save_IFS
5060  test -z "$as_dir" && as_dir=.
5061  for ac_exec_ext in '' $ac_executable_extensions; do
5062  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5063    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5064    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5065    break 2
5066  fi
5067done
5068done
5069IFS=$as_save_IFS
5070
5071fi
5072fi
5073CC=$ac_cv_prog_CC
5074if test -n "$CC"; then
5075  { echo "$as_me:$LINENO: result: $CC" >&5
5076echo "${ECHO_T}$CC" >&6; }
5077else
5078  { echo "$as_me:$LINENO: result: no" >&5
5079echo "${ECHO_T}no" >&6; }
5080fi
5081
5082
5083    test -n "$CC" && break
5084  done
5085fi
5086if test -z "$CC"; then
5087  ac_ct_CC=$CC
5088  for ac_prog in gcc
5089do
5090  # Extract the first word of "$ac_prog", so it can be a program name with args.
5091set dummy $ac_prog; ac_word=$2
5092{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5094if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5095  echo $ECHO_N "(cached) $ECHO_C" >&6
5096else
5097  if test -n "$ac_ct_CC"; then
5098  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5099else
5100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101for as_dir in $PATH
5102do
5103  IFS=$as_save_IFS
5104  test -z "$as_dir" && as_dir=.
5105  for ac_exec_ext in '' $ac_executable_extensions; do
5106  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5107    ac_cv_prog_ac_ct_CC="$ac_prog"
5108    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5109    break 2
5110  fi
5111done
5112done
5113IFS=$as_save_IFS
5114
5115fi
5116fi
5117ac_ct_CC=$ac_cv_prog_ac_ct_CC
5118if test -n "$ac_ct_CC"; then
5119  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5120echo "${ECHO_T}$ac_ct_CC" >&6; }
5121else
5122  { echo "$as_me:$LINENO: result: no" >&5
5123echo "${ECHO_T}no" >&6; }
5124fi
5125
5126
5127  test -n "$ac_ct_CC" && break
5128done
5129
5130  if test "x$ac_ct_CC" = x; then
5131    CC=""
5132  else
5133    case $cross_compiling:$ac_tool_warned in
5134yes:)
5135{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5136whose name does not start with the host triplet.  If you think this
5137configuration is useful to you, please write to autoconf@gnu.org." >&5
5138echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5139whose name does not start with the host triplet.  If you think this
5140configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5141ac_tool_warned=yes ;;
5142esac
5143    CC=$ac_ct_CC
5144  fi
5145fi
5146
5147
5148test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5149See \`config.log' for more details." >&5
5150echo "$as_me: error: no acceptable C compiler found in \$PATH
5151See \`config.log' for more details." >&2;}
5152   { (exit 1); exit 1; }; }
5153
5154# Provide some information about the compiler.
5155echo "$as_me:$LINENO: checking for C compiler version" >&5
5156ac_compiler=`set X $ac_compile; echo $2`
5157{ (ac_try="$ac_compiler --version >&5"
5158case "(($ac_try" in
5159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160  *) ac_try_echo=$ac_try;;
5161esac
5162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5163  (eval "$ac_compiler --version >&5") 2>&5
5164  ac_status=$?
5165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166  (exit $ac_status); }
5167{ (ac_try="$ac_compiler -v >&5"
5168case "(($ac_try" in
5169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170  *) ac_try_echo=$ac_try;;
5171esac
5172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5173  (eval "$ac_compiler -v >&5") 2>&5
5174  ac_status=$?
5175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176  (exit $ac_status); }
5177{ (ac_try="$ac_compiler -V >&5"
5178case "(($ac_try" in
5179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5180  *) ac_try_echo=$ac_try;;
5181esac
5182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5183  (eval "$ac_compiler -V >&5") 2>&5
5184  ac_status=$?
5185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186  (exit $ac_status); }
5187
5188{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5189echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5190if test "${ac_cv_c_compiler_gnu+set}" = set; then
5191  echo $ECHO_N "(cached) $ECHO_C" >&6
5192else
5193  cat >conftest.$ac_ext <<_ACEOF
5194/* confdefs.h.  */
5195_ACEOF
5196cat confdefs.h >>conftest.$ac_ext
5197cat >>conftest.$ac_ext <<_ACEOF
5198/* end confdefs.h.  */
5199
5200int
5201main ()
5202{
5203#ifndef __GNUC__
5204       choke me
5205#endif
5206
5207  ;
5208  return 0;
5209}
5210_ACEOF
5211rm -f conftest.$ac_objext
5212if { (ac_try="$ac_compile"
5213case "(($ac_try" in
5214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215  *) ac_try_echo=$ac_try;;
5216esac
5217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5218  (eval "$ac_compile") 2>conftest.er1
5219  ac_status=$?
5220  grep -v '^ *+' conftest.er1 >conftest.err
5221  rm -f conftest.er1
5222  cat conftest.err >&5
5223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224  (exit $ac_status); } &&
5225	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5226  { (case "(($ac_try" in
5227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228  *) ac_try_echo=$ac_try;;
5229esac
5230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231  (eval "$ac_try") 2>&5
5232  ac_status=$?
5233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234  (exit $ac_status); }; } &&
5235	 { ac_try='test -s conftest.$ac_objext'
5236  { (case "(($ac_try" in
5237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5238  *) ac_try_echo=$ac_try;;
5239esac
5240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5241  (eval "$ac_try") 2>&5
5242  ac_status=$?
5243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244  (exit $ac_status); }; }; then
5245  ac_compiler_gnu=yes
5246else
5247  echo "$as_me: failed program was:" >&5
5248sed 's/^/| /' conftest.$ac_ext >&5
5249
5250	ac_compiler_gnu=no
5251fi
5252
5253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5254ac_cv_c_compiler_gnu=$ac_compiler_gnu
5255
5256fi
5257{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5258echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5259GCC=`test $ac_compiler_gnu = yes && echo yes`
5260ac_test_CFLAGS=${CFLAGS+set}
5261ac_save_CFLAGS=$CFLAGS
5262{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5263echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5264if test "${ac_cv_prog_cc_g+set}" = set; then
5265  echo $ECHO_N "(cached) $ECHO_C" >&6
5266else
5267  ac_save_c_werror_flag=$ac_c_werror_flag
5268   ac_c_werror_flag=yes
5269   ac_cv_prog_cc_g=no
5270   CFLAGS="-g"
5271   cat >conftest.$ac_ext <<_ACEOF
5272/* confdefs.h.  */
5273_ACEOF
5274cat confdefs.h >>conftest.$ac_ext
5275cat >>conftest.$ac_ext <<_ACEOF
5276/* end confdefs.h.  */
5277
5278int
5279main ()
5280{
5281
5282  ;
5283  return 0;
5284}
5285_ACEOF
5286rm -f conftest.$ac_objext
5287if { (ac_try="$ac_compile"
5288case "(($ac_try" in
5289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290  *) ac_try_echo=$ac_try;;
5291esac
5292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293  (eval "$ac_compile") 2>conftest.er1
5294  ac_status=$?
5295  grep -v '^ *+' conftest.er1 >conftest.err
5296  rm -f conftest.er1
5297  cat conftest.err >&5
5298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299  (exit $ac_status); } &&
5300	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5301  { (case "(($ac_try" in
5302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303  *) ac_try_echo=$ac_try;;
5304esac
5305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5306  (eval "$ac_try") 2>&5
5307  ac_status=$?
5308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309  (exit $ac_status); }; } &&
5310	 { ac_try='test -s conftest.$ac_objext'
5311  { (case "(($ac_try" in
5312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313  *) ac_try_echo=$ac_try;;
5314esac
5315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5316  (eval "$ac_try") 2>&5
5317  ac_status=$?
5318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319  (exit $ac_status); }; }; then
5320  ac_cv_prog_cc_g=yes
5321else
5322  echo "$as_me: failed program was:" >&5
5323sed 's/^/| /' conftest.$ac_ext >&5
5324
5325	CFLAGS=""
5326      cat >conftest.$ac_ext <<_ACEOF
5327/* confdefs.h.  */
5328_ACEOF
5329cat confdefs.h >>conftest.$ac_ext
5330cat >>conftest.$ac_ext <<_ACEOF
5331/* end confdefs.h.  */
5332
5333int
5334main ()
5335{
5336
5337  ;
5338  return 0;
5339}
5340_ACEOF
5341rm -f conftest.$ac_objext
5342if { (ac_try="$ac_compile"
5343case "(($ac_try" in
5344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5345  *) ac_try_echo=$ac_try;;
5346esac
5347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5348  (eval "$ac_compile") 2>conftest.er1
5349  ac_status=$?
5350  grep -v '^ *+' conftest.er1 >conftest.err
5351  rm -f conftest.er1
5352  cat conftest.err >&5
5353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354  (exit $ac_status); } &&
5355	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5356  { (case "(($ac_try" in
5357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358  *) ac_try_echo=$ac_try;;
5359esac
5360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361  (eval "$ac_try") 2>&5
5362  ac_status=$?
5363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364  (exit $ac_status); }; } &&
5365	 { ac_try='test -s conftest.$ac_objext'
5366  { (case "(($ac_try" in
5367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368  *) ac_try_echo=$ac_try;;
5369esac
5370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5371  (eval "$ac_try") 2>&5
5372  ac_status=$?
5373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374  (exit $ac_status); }; }; then
5375  :
5376else
5377  echo "$as_me: failed program was:" >&5
5378sed 's/^/| /' conftest.$ac_ext >&5
5379
5380	ac_c_werror_flag=$ac_save_c_werror_flag
5381	 CFLAGS="-g"
5382	 cat >conftest.$ac_ext <<_ACEOF
5383/* confdefs.h.  */
5384_ACEOF
5385cat confdefs.h >>conftest.$ac_ext
5386cat >>conftest.$ac_ext <<_ACEOF
5387/* end confdefs.h.  */
5388
5389int
5390main ()
5391{
5392
5393  ;
5394  return 0;
5395}
5396_ACEOF
5397rm -f conftest.$ac_objext
5398if { (ac_try="$ac_compile"
5399case "(($ac_try" in
5400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401  *) ac_try_echo=$ac_try;;
5402esac
5403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5404  (eval "$ac_compile") 2>conftest.er1
5405  ac_status=$?
5406  grep -v '^ *+' conftest.er1 >conftest.err
5407  rm -f conftest.er1
5408  cat conftest.err >&5
5409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410  (exit $ac_status); } &&
5411	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5412  { (case "(($ac_try" in
5413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414  *) ac_try_echo=$ac_try;;
5415esac
5416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417  (eval "$ac_try") 2>&5
5418  ac_status=$?
5419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420  (exit $ac_status); }; } &&
5421	 { ac_try='test -s conftest.$ac_objext'
5422  { (case "(($ac_try" in
5423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5424  *) ac_try_echo=$ac_try;;
5425esac
5426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5427  (eval "$ac_try") 2>&5
5428  ac_status=$?
5429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430  (exit $ac_status); }; }; then
5431  ac_cv_prog_cc_g=yes
5432else
5433  echo "$as_me: failed program was:" >&5
5434sed 's/^/| /' conftest.$ac_ext >&5
5435
5436
5437fi
5438
5439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5440fi
5441
5442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5443fi
5444
5445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446   ac_c_werror_flag=$ac_save_c_werror_flag
5447fi
5448{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5449echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5450if test "$ac_test_CFLAGS" = set; then
5451  CFLAGS=$ac_save_CFLAGS
5452elif test $ac_cv_prog_cc_g = yes; then
5453  if test "$GCC" = yes; then
5454    CFLAGS="-g -O2"
5455  else
5456    CFLAGS="-g"
5457  fi
5458else
5459  if test "$GCC" = yes; then
5460    CFLAGS="-O2"
5461  else
5462    CFLAGS=
5463  fi
5464fi
5465{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5466echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5467if test "${ac_cv_prog_cc_c89+set}" = set; then
5468  echo $ECHO_N "(cached) $ECHO_C" >&6
5469else
5470  ac_cv_prog_cc_c89=no
5471ac_save_CC=$CC
5472cat >conftest.$ac_ext <<_ACEOF
5473/* confdefs.h.  */
5474_ACEOF
5475cat confdefs.h >>conftest.$ac_ext
5476cat >>conftest.$ac_ext <<_ACEOF
5477/* end confdefs.h.  */
5478#include <stdarg.h>
5479#include <stdio.h>
5480#include <sys/types.h>
5481#include <sys/stat.h>
5482/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5483struct buf { int x; };
5484FILE * (*rcsopen) (struct buf *, struct stat *, int);
5485static char *e (p, i)
5486     char **p;
5487     int i;
5488{
5489  return p[i];
5490}
5491static char *f (char * (*g) (char **, int), char **p, ...)
5492{
5493  char *s;
5494  va_list v;
5495  va_start (v,p);
5496  s = g (p, va_arg (v,int));
5497  va_end (v);
5498  return s;
5499}
5500
5501/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5502   function prototypes and stuff, but not '\xHH' hex character constants.
5503   These don't provoke an error unfortunately, instead are silently treated
5504   as 'x'.  The following induces an error, until -std is added to get
5505   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5506   array size at least.  It's necessary to write '\x00'==0 to get something
5507   that's true only with -std.  */
5508int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5509
5510/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5511   inside strings and character constants.  */
5512#define FOO(x) 'x'
5513int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5514
5515int test (int i, double x);
5516struct s1 {int (*f) (int a);};
5517struct s2 {int (*f) (double a);};
5518int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5519int argc;
5520char **argv;
5521int
5522main ()
5523{
5524return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5525  ;
5526  return 0;
5527}
5528_ACEOF
5529for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5530	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5531do
5532  CC="$ac_save_CC $ac_arg"
5533  rm -f conftest.$ac_objext
5534if { (ac_try="$ac_compile"
5535case "(($ac_try" in
5536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5537  *) ac_try_echo=$ac_try;;
5538esac
5539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5540  (eval "$ac_compile") 2>conftest.er1
5541  ac_status=$?
5542  grep -v '^ *+' conftest.er1 >conftest.err
5543  rm -f conftest.er1
5544  cat conftest.err >&5
5545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546  (exit $ac_status); } &&
5547	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5548  { (case "(($ac_try" in
5549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5550  *) ac_try_echo=$ac_try;;
5551esac
5552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5553  (eval "$ac_try") 2>&5
5554  ac_status=$?
5555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556  (exit $ac_status); }; } &&
5557	 { ac_try='test -s conftest.$ac_objext'
5558  { (case "(($ac_try" in
5559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5560  *) ac_try_echo=$ac_try;;
5561esac
5562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5563  (eval "$ac_try") 2>&5
5564  ac_status=$?
5565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566  (exit $ac_status); }; }; then
5567  ac_cv_prog_cc_c89=$ac_arg
5568else
5569  echo "$as_me: failed program was:" >&5
5570sed 's/^/| /' conftest.$ac_ext >&5
5571
5572
5573fi
5574
5575rm -f core conftest.err conftest.$ac_objext
5576  test "x$ac_cv_prog_cc_c89" != "xno" && break
5577done
5578rm -f conftest.$ac_ext
5579CC=$ac_save_CC
5580
5581fi
5582# AC_CACHE_VAL
5583case "x$ac_cv_prog_cc_c89" in
5584  x)
5585    { echo "$as_me:$LINENO: result: none needed" >&5
5586echo "${ECHO_T}none needed" >&6; } ;;
5587  xno)
5588    { echo "$as_me:$LINENO: result: unsupported" >&5
5589echo "${ECHO_T}unsupported" >&6; } ;;
5590  *)
5591    CC="$CC $ac_cv_prog_cc_c89"
5592    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5593echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5594esac
5595
5596
5597ac_ext=c
5598ac_cpp='$CPP $CPPFLAGS'
5599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5601ac_compiler_gnu=$ac_cv_c_compiler_gnu
5602
5603ac_ext=cpp
5604ac_cpp='$CXXCPP $CPPFLAGS'
5605ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5606ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5607ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5608if test -z "$CXX"; then
5609  if test -n "$CCC"; then
5610    CXX=$CCC
5611  else
5612    if test -n "$ac_tool_prefix"; then
5613  for ac_prog in g++
5614  do
5615    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5616set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5617{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5619if test "${ac_cv_prog_CXX+set}" = set; then
5620  echo $ECHO_N "(cached) $ECHO_C" >&6
5621else
5622  if test -n "$CXX"; then
5623  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5624else
5625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626for as_dir in $PATH
5627do
5628  IFS=$as_save_IFS
5629  test -z "$as_dir" && as_dir=.
5630  for ac_exec_ext in '' $ac_executable_extensions; do
5631  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5632    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5633    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5634    break 2
5635  fi
5636done
5637done
5638IFS=$as_save_IFS
5639
5640fi
5641fi
5642CXX=$ac_cv_prog_CXX
5643if test -n "$CXX"; then
5644  { echo "$as_me:$LINENO: result: $CXX" >&5
5645echo "${ECHO_T}$CXX" >&6; }
5646else
5647  { echo "$as_me:$LINENO: result: no" >&5
5648echo "${ECHO_T}no" >&6; }
5649fi
5650
5651
5652    test -n "$CXX" && break
5653  done
5654fi
5655if test -z "$CXX"; then
5656  ac_ct_CXX=$CXX
5657  for ac_prog in g++
5658do
5659  # Extract the first word of "$ac_prog", so it can be a program name with args.
5660set dummy $ac_prog; ac_word=$2
5661{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5663if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5664  echo $ECHO_N "(cached) $ECHO_C" >&6
5665else
5666  if test -n "$ac_ct_CXX"; then
5667  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5668else
5669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670for as_dir in $PATH
5671do
5672  IFS=$as_save_IFS
5673  test -z "$as_dir" && as_dir=.
5674  for ac_exec_ext in '' $ac_executable_extensions; do
5675  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5676    ac_cv_prog_ac_ct_CXX="$ac_prog"
5677    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5678    break 2
5679  fi
5680done
5681done
5682IFS=$as_save_IFS
5683
5684fi
5685fi
5686ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5687if test -n "$ac_ct_CXX"; then
5688  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5689echo "${ECHO_T}$ac_ct_CXX" >&6; }
5690else
5691  { echo "$as_me:$LINENO: result: no" >&5
5692echo "${ECHO_T}no" >&6; }
5693fi
5694
5695
5696  test -n "$ac_ct_CXX" && break
5697done
5698
5699  if test "x$ac_ct_CXX" = x; then
5700    CXX="g++"
5701  else
5702    case $cross_compiling:$ac_tool_warned in
5703yes:)
5704{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5705whose name does not start with the host triplet.  If you think this
5706configuration is useful to you, please write to autoconf@gnu.org." >&5
5707echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5708whose name does not start with the host triplet.  If you think this
5709configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5710ac_tool_warned=yes ;;
5711esac
5712    CXX=$ac_ct_CXX
5713  fi
5714fi
5715
5716  fi
5717fi
5718# Provide some information about the compiler.
5719echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5720ac_compiler=`set X $ac_compile; echo $2`
5721{ (ac_try="$ac_compiler --version >&5"
5722case "(($ac_try" in
5723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724  *) ac_try_echo=$ac_try;;
5725esac
5726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5727  (eval "$ac_compiler --version >&5") 2>&5
5728  ac_status=$?
5729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730  (exit $ac_status); }
5731{ (ac_try="$ac_compiler -v >&5"
5732case "(($ac_try" in
5733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734  *) ac_try_echo=$ac_try;;
5735esac
5736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737  (eval "$ac_compiler -v >&5") 2>&5
5738  ac_status=$?
5739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740  (exit $ac_status); }
5741{ (ac_try="$ac_compiler -V >&5"
5742case "(($ac_try" in
5743  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5744  *) ac_try_echo=$ac_try;;
5745esac
5746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5747  (eval "$ac_compiler -V >&5") 2>&5
5748  ac_status=$?
5749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750  (exit $ac_status); }
5751
5752{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5753echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5754if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5755  echo $ECHO_N "(cached) $ECHO_C" >&6
5756else
5757  cat >conftest.$ac_ext <<_ACEOF
5758/* confdefs.h.  */
5759_ACEOF
5760cat confdefs.h >>conftest.$ac_ext
5761cat >>conftest.$ac_ext <<_ACEOF
5762/* end confdefs.h.  */
5763
5764int
5765main ()
5766{
5767#ifndef __GNUC__
5768       choke me
5769#endif
5770
5771  ;
5772  return 0;
5773}
5774_ACEOF
5775rm -f conftest.$ac_objext
5776if { (ac_try="$ac_compile"
5777case "(($ac_try" in
5778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779  *) ac_try_echo=$ac_try;;
5780esac
5781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782  (eval "$ac_compile") 2>conftest.er1
5783  ac_status=$?
5784  grep -v '^ *+' conftest.er1 >conftest.err
5785  rm -f conftest.er1
5786  cat conftest.err >&5
5787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788  (exit $ac_status); } &&
5789	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5790  { (case "(($ac_try" in
5791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792  *) ac_try_echo=$ac_try;;
5793esac
5794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795  (eval "$ac_try") 2>&5
5796  ac_status=$?
5797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798  (exit $ac_status); }; } &&
5799	 { ac_try='test -s conftest.$ac_objext'
5800  { (case "(($ac_try" in
5801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802  *) ac_try_echo=$ac_try;;
5803esac
5804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805  (eval "$ac_try") 2>&5
5806  ac_status=$?
5807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808  (exit $ac_status); }; }; then
5809  ac_compiler_gnu=yes
5810else
5811  echo "$as_me: failed program was:" >&5
5812sed 's/^/| /' conftest.$ac_ext >&5
5813
5814	ac_compiler_gnu=no
5815fi
5816
5817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5818ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5819
5820fi
5821{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5822echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5823GXX=`test $ac_compiler_gnu = yes && echo yes`
5824ac_test_CXXFLAGS=${CXXFLAGS+set}
5825ac_save_CXXFLAGS=$CXXFLAGS
5826{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5827echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5828if test "${ac_cv_prog_cxx_g+set}" = set; then
5829  echo $ECHO_N "(cached) $ECHO_C" >&6
5830else
5831  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5832   ac_cxx_werror_flag=yes
5833   ac_cv_prog_cxx_g=no
5834   CXXFLAGS="-g"
5835   cat >conftest.$ac_ext <<_ACEOF
5836/* confdefs.h.  */
5837_ACEOF
5838cat confdefs.h >>conftest.$ac_ext
5839cat >>conftest.$ac_ext <<_ACEOF
5840/* end confdefs.h.  */
5841
5842int
5843main ()
5844{
5845
5846  ;
5847  return 0;
5848}
5849_ACEOF
5850rm -f conftest.$ac_objext
5851if { (ac_try="$ac_compile"
5852case "(($ac_try" in
5853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854  *) ac_try_echo=$ac_try;;
5855esac
5856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5857  (eval "$ac_compile") 2>conftest.er1
5858  ac_status=$?
5859  grep -v '^ *+' conftest.er1 >conftest.err
5860  rm -f conftest.er1
5861  cat conftest.err >&5
5862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863  (exit $ac_status); } &&
5864	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5865  { (case "(($ac_try" in
5866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867  *) ac_try_echo=$ac_try;;
5868esac
5869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5870  (eval "$ac_try") 2>&5
5871  ac_status=$?
5872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873  (exit $ac_status); }; } &&
5874	 { ac_try='test -s conftest.$ac_objext'
5875  { (case "(($ac_try" in
5876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5877  *) ac_try_echo=$ac_try;;
5878esac
5879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5880  (eval "$ac_try") 2>&5
5881  ac_status=$?
5882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883  (exit $ac_status); }; }; then
5884  ac_cv_prog_cxx_g=yes
5885else
5886  echo "$as_me: failed program was:" >&5
5887sed 's/^/| /' conftest.$ac_ext >&5
5888
5889	CXXFLAGS=""
5890      cat >conftest.$ac_ext <<_ACEOF
5891/* confdefs.h.  */
5892_ACEOF
5893cat confdefs.h >>conftest.$ac_ext
5894cat >>conftest.$ac_ext <<_ACEOF
5895/* end confdefs.h.  */
5896
5897int
5898main ()
5899{
5900
5901  ;
5902  return 0;
5903}
5904_ACEOF
5905rm -f conftest.$ac_objext
5906if { (ac_try="$ac_compile"
5907case "(($ac_try" in
5908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909  *) ac_try_echo=$ac_try;;
5910esac
5911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5912  (eval "$ac_compile") 2>conftest.er1
5913  ac_status=$?
5914  grep -v '^ *+' conftest.er1 >conftest.err
5915  rm -f conftest.er1
5916  cat conftest.err >&5
5917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918  (exit $ac_status); } &&
5919	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5920  { (case "(($ac_try" in
5921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922  *) ac_try_echo=$ac_try;;
5923esac
5924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925  (eval "$ac_try") 2>&5
5926  ac_status=$?
5927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928  (exit $ac_status); }; } &&
5929	 { ac_try='test -s conftest.$ac_objext'
5930  { (case "(($ac_try" in
5931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932  *) ac_try_echo=$ac_try;;
5933esac
5934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935  (eval "$ac_try") 2>&5
5936  ac_status=$?
5937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938  (exit $ac_status); }; }; then
5939  :
5940else
5941  echo "$as_me: failed program was:" >&5
5942sed 's/^/| /' conftest.$ac_ext >&5
5943
5944	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5945	 CXXFLAGS="-g"
5946	 cat >conftest.$ac_ext <<_ACEOF
5947/* confdefs.h.  */
5948_ACEOF
5949cat confdefs.h >>conftest.$ac_ext
5950cat >>conftest.$ac_ext <<_ACEOF
5951/* end confdefs.h.  */
5952
5953int
5954main ()
5955{
5956
5957  ;
5958  return 0;
5959}
5960_ACEOF
5961rm -f conftest.$ac_objext
5962if { (ac_try="$ac_compile"
5963case "(($ac_try" in
5964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965  *) ac_try_echo=$ac_try;;
5966esac
5967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968  (eval "$ac_compile") 2>conftest.er1
5969  ac_status=$?
5970  grep -v '^ *+' conftest.er1 >conftest.err
5971  rm -f conftest.er1
5972  cat conftest.err >&5
5973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974  (exit $ac_status); } &&
5975	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5976  { (case "(($ac_try" in
5977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978  *) ac_try_echo=$ac_try;;
5979esac
5980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981  (eval "$ac_try") 2>&5
5982  ac_status=$?
5983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984  (exit $ac_status); }; } &&
5985	 { ac_try='test -s conftest.$ac_objext'
5986  { (case "(($ac_try" in
5987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988  *) ac_try_echo=$ac_try;;
5989esac
5990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5991  (eval "$ac_try") 2>&5
5992  ac_status=$?
5993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994  (exit $ac_status); }; }; then
5995  ac_cv_prog_cxx_g=yes
5996else
5997  echo "$as_me: failed program was:" >&5
5998sed 's/^/| /' conftest.$ac_ext >&5
5999
6000
6001fi
6002
6003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6004fi
6005
6006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007fi
6008
6009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6011fi
6012{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6013echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6014if test "$ac_test_CXXFLAGS" = set; then
6015  CXXFLAGS=$ac_save_CXXFLAGS
6016elif test $ac_cv_prog_cxx_g = yes; then
6017  if test "$GXX" = yes; then
6018    CXXFLAGS="-g -O2"
6019  else
6020    CXXFLAGS="-g"
6021  fi
6022else
6023  if test "$GXX" = yes; then
6024    CXXFLAGS="-O2"
6025  else
6026    CXXFLAGS=
6027  fi
6028fi
6029ac_ext=c
6030ac_cpp='$CPP $CPPFLAGS'
6031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6033ac_compiler_gnu=$ac_cv_c_compiler_gnu
6034
6035{ echo "$as_me:$LINENO: checking " >&5
6036echo $ECHO_N "checking ... $ECHO_C" >&6; }
6037if test "${ac_cv_has_flex+set}" = set; then
6038  echo $ECHO_N "(cached) $ECHO_C" >&6
6039else
6040  for ac_prog in flex lex
6041do
6042  # Extract the first word of "$ac_prog", so it can be a program name with args.
6043set dummy $ac_prog; ac_word=$2
6044{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6046if test "${ac_cv_prog_LEX+set}" = set; then
6047  echo $ECHO_N "(cached) $ECHO_C" >&6
6048else
6049  if test -n "$LEX"; then
6050  ac_cv_prog_LEX="$LEX" # Let the user override the test.
6051else
6052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053for as_dir in $PATH
6054do
6055  IFS=$as_save_IFS
6056  test -z "$as_dir" && as_dir=.
6057  for ac_exec_ext in '' $ac_executable_extensions; do
6058  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6059    ac_cv_prog_LEX="$ac_prog"
6060    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6061    break 2
6062  fi
6063done
6064done
6065IFS=$as_save_IFS
6066
6067fi
6068fi
6069LEX=$ac_cv_prog_LEX
6070if test -n "$LEX"; then
6071  { echo "$as_me:$LINENO: result: $LEX" >&5
6072echo "${ECHO_T}$LEX" >&6; }
6073else
6074  { echo "$as_me:$LINENO: result: no" >&5
6075echo "${ECHO_T}no" >&6; }
6076fi
6077
6078
6079  test -n "$LEX" && break
6080done
6081test -n "$LEX" || LEX=":"
6082
6083if test -z "$LEXLIB"
6084then
6085  { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6086echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6087if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6088  echo $ECHO_N "(cached) $ECHO_C" >&6
6089else
6090  ac_check_lib_save_LIBS=$LIBS
6091LIBS="-lfl  $LIBS"
6092cat >conftest.$ac_ext <<_ACEOF
6093/* confdefs.h.  */
6094_ACEOF
6095cat confdefs.h >>conftest.$ac_ext
6096cat >>conftest.$ac_ext <<_ACEOF
6097/* end confdefs.h.  */
6098
6099/* Override any GCC internal prototype to avoid an error.
6100   Use char because int might match the return type of a GCC
6101   builtin and then its argument prototype would still apply.  */
6102#ifdef __cplusplus
6103extern "C"
6104#endif
6105char yywrap ();
6106int
6107main ()
6108{
6109return yywrap ();
6110  ;
6111  return 0;
6112}
6113_ACEOF
6114rm -f conftest.$ac_objext conftest$ac_exeext
6115if { (ac_try="$ac_link"
6116case "(($ac_try" in
6117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118  *) ac_try_echo=$ac_try;;
6119esac
6120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121  (eval "$ac_link") 2>conftest.er1
6122  ac_status=$?
6123  grep -v '^ *+' conftest.er1 >conftest.err
6124  rm -f conftest.er1
6125  cat conftest.err >&5
6126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127  (exit $ac_status); } &&
6128	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6129  { (case "(($ac_try" in
6130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6131  *) ac_try_echo=$ac_try;;
6132esac
6133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6134  (eval "$ac_try") 2>&5
6135  ac_status=$?
6136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137  (exit $ac_status); }; } &&
6138	 { ac_try='test -s conftest$ac_exeext'
6139  { (case "(($ac_try" in
6140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6141  *) ac_try_echo=$ac_try;;
6142esac
6143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6144  (eval "$ac_try") 2>&5
6145  ac_status=$?
6146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147  (exit $ac_status); }; }; then
6148  ac_cv_lib_fl_yywrap=yes
6149else
6150  echo "$as_me: failed program was:" >&5
6151sed 's/^/| /' conftest.$ac_ext >&5
6152
6153	ac_cv_lib_fl_yywrap=no
6154fi
6155
6156rm -f core conftest.err conftest.$ac_objext \
6157      conftest$ac_exeext conftest.$ac_ext
6158LIBS=$ac_check_lib_save_LIBS
6159fi
6160{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6161echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6162if test $ac_cv_lib_fl_yywrap = yes; then
6163  LEXLIB="-lfl"
6164else
6165  { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6166echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6167if test "${ac_cv_lib_l_yywrap+set}" = set; then
6168  echo $ECHO_N "(cached) $ECHO_C" >&6
6169else
6170  ac_check_lib_save_LIBS=$LIBS
6171LIBS="-ll  $LIBS"
6172cat >conftest.$ac_ext <<_ACEOF
6173/* confdefs.h.  */
6174_ACEOF
6175cat confdefs.h >>conftest.$ac_ext
6176cat >>conftest.$ac_ext <<_ACEOF
6177/* end confdefs.h.  */
6178
6179/* Override any GCC internal prototype to avoid an error.
6180   Use char because int might match the return type of a GCC
6181   builtin and then its argument prototype would still apply.  */
6182#ifdef __cplusplus
6183extern "C"
6184#endif
6185char yywrap ();
6186int
6187main ()
6188{
6189return yywrap ();
6190  ;
6191  return 0;
6192}
6193_ACEOF
6194rm -f conftest.$ac_objext conftest$ac_exeext
6195if { (ac_try="$ac_link"
6196case "(($ac_try" in
6197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6198  *) ac_try_echo=$ac_try;;
6199esac
6200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6201  (eval "$ac_link") 2>conftest.er1
6202  ac_status=$?
6203  grep -v '^ *+' conftest.er1 >conftest.err
6204  rm -f conftest.er1
6205  cat conftest.err >&5
6206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207  (exit $ac_status); } &&
6208	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6209  { (case "(($ac_try" in
6210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211  *) ac_try_echo=$ac_try;;
6212esac
6213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6214  (eval "$ac_try") 2>&5
6215  ac_status=$?
6216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217  (exit $ac_status); }; } &&
6218	 { ac_try='test -s conftest$ac_exeext'
6219  { (case "(($ac_try" in
6220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6221  *) ac_try_echo=$ac_try;;
6222esac
6223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6224  (eval "$ac_try") 2>&5
6225  ac_status=$?
6226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227  (exit $ac_status); }; }; then
6228  ac_cv_lib_l_yywrap=yes
6229else
6230  echo "$as_me: failed program was:" >&5
6231sed 's/^/| /' conftest.$ac_ext >&5
6232
6233	ac_cv_lib_l_yywrap=no
6234fi
6235
6236rm -f core conftest.err conftest.$ac_objext \
6237      conftest$ac_exeext conftest.$ac_ext
6238LIBS=$ac_check_lib_save_LIBS
6239fi
6240{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6241echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6242if test $ac_cv_lib_l_yywrap = yes; then
6243  LEXLIB="-ll"
6244fi
6245
6246fi
6247
6248fi
6249
6250if test "x$LEX" != "x:"; then
6251  { echo "$as_me:$LINENO: checking lex output file root" >&5
6252echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6253if test "${ac_cv_prog_lex_root+set}" = set; then
6254  echo $ECHO_N "(cached) $ECHO_C" >&6
6255else
6256  # The minimal lex program is just a single line: %%.  But some broken lexes
6257# (Solaris, I think it was) want two %% lines, so accommodate them.
6258cat >conftest.l <<_ACEOF
6259%%
6260%%
6261_ACEOF
6262{ (ac_try="$LEX conftest.l"
6263case "(($ac_try" in
6264  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6265  *) ac_try_echo=$ac_try;;
6266esac
6267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6268  (eval "$LEX conftest.l") 2>&5
6269  ac_status=$?
6270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271  (exit $ac_status); }
6272if test -f lex.yy.c; then
6273  ac_cv_prog_lex_root=lex.yy
6274elif test -f lexyy.c; then
6275  ac_cv_prog_lex_root=lexyy
6276else
6277  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6278echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6279   { (exit 1); exit 1; }; }
6280fi
6281fi
6282{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6283echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6284rm -f conftest.l
6285LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6286
6287{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6288echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6289if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6290  echo $ECHO_N "(cached) $ECHO_C" >&6
6291else
6292  # POSIX says lex can declare yytext either as a pointer or an array; the
6293# default is implementation-dependent. Figure out which it is, since
6294# not all implementations provide the %pointer and %array declarations.
6295ac_cv_prog_lex_yytext_pointer=no
6296echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6297ac_save_LIBS=$LIBS
6298LIBS="$LIBS $LEXLIB"
6299cat >conftest.$ac_ext <<_ACEOF
6300`cat $LEX_OUTPUT_ROOT.c`
6301_ACEOF
6302rm -f conftest.$ac_objext conftest$ac_exeext
6303if { (ac_try="$ac_link"
6304case "(($ac_try" in
6305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306  *) ac_try_echo=$ac_try;;
6307esac
6308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6309  (eval "$ac_link") 2>conftest.er1
6310  ac_status=$?
6311  grep -v '^ *+' conftest.er1 >conftest.err
6312  rm -f conftest.er1
6313  cat conftest.err >&5
6314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315  (exit $ac_status); } &&
6316	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6317  { (case "(($ac_try" in
6318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6319  *) ac_try_echo=$ac_try;;
6320esac
6321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6322  (eval "$ac_try") 2>&5
6323  ac_status=$?
6324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325  (exit $ac_status); }; } &&
6326	 { ac_try='test -s conftest$ac_exeext'
6327  { (case "(($ac_try" in
6328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6329  *) ac_try_echo=$ac_try;;
6330esac
6331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6332  (eval "$ac_try") 2>&5
6333  ac_status=$?
6334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335  (exit $ac_status); }; }; then
6336  ac_cv_prog_lex_yytext_pointer=yes
6337else
6338  echo "$as_me: failed program was:" >&5
6339sed 's/^/| /' conftest.$ac_ext >&5
6340
6341
6342fi
6343
6344rm -f core conftest.err conftest.$ac_objext \
6345      conftest$ac_exeext conftest.$ac_ext
6346LIBS=$ac_save_LIBS
6347rm -f "${LEX_OUTPUT_ROOT}.c"
6348
6349fi
6350{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6351echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6352if test $ac_cv_prog_lex_yytext_pointer = yes; then
6353
6354cat >>confdefs.h <<\_ACEOF
6355#define YYTEXT_POINTER 1
6356_ACEOF
6357
6358fi
6359
6360fi
6361
6362fi
6363{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6364echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6365if test "$LEX" != "flex"; then
6366  { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6367echo "$as_me: error: flex not found but required" >&2;}
6368   { (exit 1); exit 1; }; }
6369else
6370  FLEX=flex
6371
6372fi
6373
6374{ echo "$as_me:$LINENO: checking " >&5
6375echo $ECHO_N "checking ... $ECHO_C" >&6; }
6376if test "${llvm_cv_has_bison+set}" = set; then
6377  echo $ECHO_N "(cached) $ECHO_C" >&6
6378else
6379  for ac_prog in 'bison -y' byacc
6380do
6381  # Extract the first word of "$ac_prog", so it can be a program name with args.
6382set dummy $ac_prog; ac_word=$2
6383{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6385if test "${ac_cv_prog_YACC+set}" = set; then
6386  echo $ECHO_N "(cached) $ECHO_C" >&6
6387else
6388  if test -n "$YACC"; then
6389  ac_cv_prog_YACC="$YACC" # Let the user override the test.
6390else
6391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392for as_dir in $PATH
6393do
6394  IFS=$as_save_IFS
6395  test -z "$as_dir" && as_dir=.
6396  for ac_exec_ext in '' $ac_executable_extensions; do
6397  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6398    ac_cv_prog_YACC="$ac_prog"
6399    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6400    break 2
6401  fi
6402done
6403done
6404IFS=$as_save_IFS
6405
6406fi
6407fi
6408YACC=$ac_cv_prog_YACC
6409if test -n "$YACC"; then
6410  { echo "$as_me:$LINENO: result: $YACC" >&5
6411echo "${ECHO_T}$YACC" >&6; }
6412else
6413  { echo "$as_me:$LINENO: result: no" >&5
6414echo "${ECHO_T}no" >&6; }
6415fi
6416
6417
6418  test -n "$YACC" && break
6419done
6420test -n "$YACC" || YACC="yacc"
6421
6422fi
6423{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6424echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6425if test "$YACC" != "bison -y"; then
6426
6427  { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6428echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6429else
6430  BISON=bison
6431
6432fi
6433
6434{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6435echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6436if test "${lt_cv_path_NM+set}" = set; then
6437  echo $ECHO_N "(cached) $ECHO_C" >&6
6438else
6439  if test -n "$NM"; then
6440  # Let the user override the test.
6441  lt_cv_path_NM="$NM"
6442else
6443  lt_nm_to_check="${ac_tool_prefix}nm"
6444  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6445    lt_nm_to_check="$lt_nm_to_check nm"
6446  fi
6447  for lt_tmp_nm in $lt_nm_to_check; do
6448    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6449    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6450      IFS="$lt_save_ifs"
6451      test -z "$ac_dir" && ac_dir=.
6452      tmp_nm="$ac_dir/$lt_tmp_nm"
6453      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6454	# Check to see if the nm accepts a BSD-compat flag.
6455	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6456	#   nm: unknown option "B" ignored
6457	# Tru64's nm complains that /dev/null is an invalid object file
6458	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6459	*/dev/null* | *'Invalid file or object type'*)
6460	  lt_cv_path_NM="$tmp_nm -B"
6461	  break
6462	  ;;
6463	*)
6464	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6465	  */dev/null*)
6466	    lt_cv_path_NM="$tmp_nm -p"
6467	    break
6468	    ;;
6469	  *)
6470	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6471	    continue # so that we can try to find one that supports BSD flags
6472	    ;;
6473	  esac
6474	  ;;
6475	esac
6476      fi
6477    done
6478    IFS="$lt_save_ifs"
6479  done
6480  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6481fi
6482fi
6483{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6484echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6485NM="$lt_cv_path_NM"
6486
6487
6488
6489{ echo "$as_me:$LINENO: checking for GNU make" >&5
6490echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6491if test "${llvm_cv_gnu_make_command+set}" = set; then
6492  echo $ECHO_N "(cached) $ECHO_C" >&6
6493else
6494  llvm_cv_gnu_make_command=''
6495 for a in "$MAKE" make gmake gnumake ; do
6496  if test -z "$a" ; then continue ; fi ;
6497  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6498  then
6499   llvm_cv_gnu_make_command=$a ;
6500   break;
6501  fi
6502 done
6503fi
6504{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6505echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6506 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6507   ifGNUmake='' ;
6508 else
6509   ifGNUmake='#' ;
6510   { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6511echo "${ECHO_T}\"Not found\"" >&6; };
6512 fi
6513
6514
6515{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6516echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6517LN_S=$as_ln_s
6518if test "$LN_S" = "ln -s"; then
6519  { echo "$as_me:$LINENO: result: yes" >&5
6520echo "${ECHO_T}yes" >&6; }
6521else
6522  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6523echo "${ECHO_T}no, using $LN_S" >&6; }
6524fi
6525
6526# Extract the first word of "cmp", so it can be a program name with args.
6527set dummy cmp; ac_word=$2
6528{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6530if test "${ac_cv_path_CMP+set}" = set; then
6531  echo $ECHO_N "(cached) $ECHO_C" >&6
6532else
6533  case $CMP in
6534  [\\/]* | ?:[\\/]*)
6535  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6536  ;;
6537  *)
6538  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539for as_dir in $PATH
6540do
6541  IFS=$as_save_IFS
6542  test -z "$as_dir" && as_dir=.
6543  for ac_exec_ext in '' $ac_executable_extensions; do
6544  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6545    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6546    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6547    break 2
6548  fi
6549done
6550done
6551IFS=$as_save_IFS
6552
6553  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6554  ;;
6555esac
6556fi
6557CMP=$ac_cv_path_CMP
6558if test -n "$CMP"; then
6559  { echo "$as_me:$LINENO: result: $CMP" >&5
6560echo "${ECHO_T}$CMP" >&6; }
6561else
6562  { echo "$as_me:$LINENO: result: no" >&5
6563echo "${ECHO_T}no" >&6; }
6564fi
6565
6566
6567# Extract the first word of "cp", so it can be a program name with args.
6568set dummy cp; ac_word=$2
6569{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6571if test "${ac_cv_path_CP+set}" = set; then
6572  echo $ECHO_N "(cached) $ECHO_C" >&6
6573else
6574  case $CP in
6575  [\\/]* | ?:[\\/]*)
6576  ac_cv_path_CP="$CP" # Let the user override the test with a path.
6577  ;;
6578  *)
6579  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580for as_dir in $PATH
6581do
6582  IFS=$as_save_IFS
6583  test -z "$as_dir" && as_dir=.
6584  for ac_exec_ext in '' $ac_executable_extensions; do
6585  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6586    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6587    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6588    break 2
6589  fi
6590done
6591done
6592IFS=$as_save_IFS
6593
6594  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6595  ;;
6596esac
6597fi
6598CP=$ac_cv_path_CP
6599if test -n "$CP"; then
6600  { echo "$as_me:$LINENO: result: $CP" >&5
6601echo "${ECHO_T}$CP" >&6; }
6602else
6603  { echo "$as_me:$LINENO: result: no" >&5
6604echo "${ECHO_T}no" >&6; }
6605fi
6606
6607
6608# Extract the first word of "date", so it can be a program name with args.
6609set dummy date; ac_word=$2
6610{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6612if test "${ac_cv_path_DATE+set}" = set; then
6613  echo $ECHO_N "(cached) $ECHO_C" >&6
6614else
6615  case $DATE in
6616  [\\/]* | ?:[\\/]*)
6617  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6618  ;;
6619  *)
6620  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621for as_dir in $PATH
6622do
6623  IFS=$as_save_IFS
6624  test -z "$as_dir" && as_dir=.
6625  for ac_exec_ext in '' $ac_executable_extensions; do
6626  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6627    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6628    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6629    break 2
6630  fi
6631done
6632done
6633IFS=$as_save_IFS
6634
6635  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6636  ;;
6637esac
6638fi
6639DATE=$ac_cv_path_DATE
6640if test -n "$DATE"; then
6641  { echo "$as_me:$LINENO: result: $DATE" >&5
6642echo "${ECHO_T}$DATE" >&6; }
6643else
6644  { echo "$as_me:$LINENO: result: no" >&5
6645echo "${ECHO_T}no" >&6; }
6646fi
6647
6648
6649# Extract the first word of "find", so it can be a program name with args.
6650set dummy find; ac_word=$2
6651{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6653if test "${ac_cv_path_FIND+set}" = set; then
6654  echo $ECHO_N "(cached) $ECHO_C" >&6
6655else
6656  case $FIND in
6657  [\\/]* | ?:[\\/]*)
6658  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6659  ;;
6660  *)
6661  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662for as_dir in $PATH
6663do
6664  IFS=$as_save_IFS
6665  test -z "$as_dir" && as_dir=.
6666  for ac_exec_ext in '' $ac_executable_extensions; do
6667  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6668    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6669    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6670    break 2
6671  fi
6672done
6673done
6674IFS=$as_save_IFS
6675
6676  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6677  ;;
6678esac
6679fi
6680FIND=$ac_cv_path_FIND
6681if test -n "$FIND"; then
6682  { echo "$as_me:$LINENO: result: $FIND" >&5
6683echo "${ECHO_T}$FIND" >&6; }
6684else
6685  { echo "$as_me:$LINENO: result: no" >&5
6686echo "${ECHO_T}no" >&6; }
6687fi
6688
6689
6690# Extract the first word of "grep", so it can be a program name with args.
6691set dummy grep; ac_word=$2
6692{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6694if test "${ac_cv_path_GREP+set}" = set; then
6695  echo $ECHO_N "(cached) $ECHO_C" >&6
6696else
6697  case $GREP in
6698  [\\/]* | ?:[\\/]*)
6699  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6700  ;;
6701  *)
6702  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703for as_dir in $PATH
6704do
6705  IFS=$as_save_IFS
6706  test -z "$as_dir" && as_dir=.
6707  for ac_exec_ext in '' $ac_executable_extensions; do
6708  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6709    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6710    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6711    break 2
6712  fi
6713done
6714done
6715IFS=$as_save_IFS
6716
6717  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6718  ;;
6719esac
6720fi
6721GREP=$ac_cv_path_GREP
6722if test -n "$GREP"; then
6723  { echo "$as_me:$LINENO: result: $GREP" >&5
6724echo "${ECHO_T}$GREP" >&6; }
6725else
6726  { echo "$as_me:$LINENO: result: no" >&5
6727echo "${ECHO_T}no" >&6; }
6728fi
6729
6730
6731# Extract the first word of "mkdir", so it can be a program name with args.
6732set dummy mkdir; ac_word=$2
6733{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6735if test "${ac_cv_path_MKDIR+set}" = set; then
6736  echo $ECHO_N "(cached) $ECHO_C" >&6
6737else
6738  case $MKDIR in
6739  [\\/]* | ?:[\\/]*)
6740  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6741  ;;
6742  *)
6743  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744for as_dir in $PATH
6745do
6746  IFS=$as_save_IFS
6747  test -z "$as_dir" && as_dir=.
6748  for ac_exec_ext in '' $ac_executable_extensions; do
6749  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6750    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6751    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6752    break 2
6753  fi
6754done
6755done
6756IFS=$as_save_IFS
6757
6758  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6759  ;;
6760esac
6761fi
6762MKDIR=$ac_cv_path_MKDIR
6763if test -n "$MKDIR"; then
6764  { echo "$as_me:$LINENO: result: $MKDIR" >&5
6765echo "${ECHO_T}$MKDIR" >&6; }
6766else
6767  { echo "$as_me:$LINENO: result: no" >&5
6768echo "${ECHO_T}no" >&6; }
6769fi
6770
6771
6772# Extract the first word of "mv", so it can be a program name with args.
6773set dummy mv; ac_word=$2
6774{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6776if test "${ac_cv_path_MV+set}" = set; then
6777  echo $ECHO_N "(cached) $ECHO_C" >&6
6778else
6779  case $MV in
6780  [\\/]* | ?:[\\/]*)
6781  ac_cv_path_MV="$MV" # Let the user override the test with a path.
6782  ;;
6783  *)
6784  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785for as_dir in $PATH
6786do
6787  IFS=$as_save_IFS
6788  test -z "$as_dir" && as_dir=.
6789  for ac_exec_ext in '' $ac_executable_extensions; do
6790  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6791    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6792    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6793    break 2
6794  fi
6795done
6796done
6797IFS=$as_save_IFS
6798
6799  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6800  ;;
6801esac
6802fi
6803MV=$ac_cv_path_MV
6804if test -n "$MV"; then
6805  { echo "$as_me:$LINENO: result: $MV" >&5
6806echo "${ECHO_T}$MV" >&6; }
6807else
6808  { echo "$as_me:$LINENO: result: no" >&5
6809echo "${ECHO_T}no" >&6; }
6810fi
6811
6812
6813if test -n "$ac_tool_prefix"; then
6814  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6815set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6816{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6818if test "${ac_cv_prog_RANLIB+set}" = set; then
6819  echo $ECHO_N "(cached) $ECHO_C" >&6
6820else
6821  if test -n "$RANLIB"; then
6822  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6823else
6824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825for as_dir in $PATH
6826do
6827  IFS=$as_save_IFS
6828  test -z "$as_dir" && as_dir=.
6829  for ac_exec_ext in '' $ac_executable_extensions; do
6830  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6831    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6832    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833    break 2
6834  fi
6835done
6836done
6837IFS=$as_save_IFS
6838
6839fi
6840fi
6841RANLIB=$ac_cv_prog_RANLIB
6842if test -n "$RANLIB"; then
6843  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6844echo "${ECHO_T}$RANLIB" >&6; }
6845else
6846  { echo "$as_me:$LINENO: result: no" >&5
6847echo "${ECHO_T}no" >&6; }
6848fi
6849
6850
6851fi
6852if test -z "$ac_cv_prog_RANLIB"; then
6853  ac_ct_RANLIB=$RANLIB
6854  # Extract the first word of "ranlib", so it can be a program name with args.
6855set dummy ranlib; ac_word=$2
6856{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6859  echo $ECHO_N "(cached) $ECHO_C" >&6
6860else
6861  if test -n "$ac_ct_RANLIB"; then
6862  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6863else
6864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865for as_dir in $PATH
6866do
6867  IFS=$as_save_IFS
6868  test -z "$as_dir" && as_dir=.
6869  for ac_exec_ext in '' $ac_executable_extensions; do
6870  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6871    ac_cv_prog_ac_ct_RANLIB="ranlib"
6872    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873    break 2
6874  fi
6875done
6876done
6877IFS=$as_save_IFS
6878
6879fi
6880fi
6881ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6882if test -n "$ac_ct_RANLIB"; then
6883  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6884echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6885else
6886  { echo "$as_me:$LINENO: result: no" >&5
6887echo "${ECHO_T}no" >&6; }
6888fi
6889
6890  if test "x$ac_ct_RANLIB" = x; then
6891    RANLIB=":"
6892  else
6893    case $cross_compiling:$ac_tool_warned in
6894yes:)
6895{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6896whose name does not start with the host triplet.  If you think this
6897configuration is useful to you, please write to autoconf@gnu.org." >&5
6898echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6899whose name does not start with the host triplet.  If you think this
6900configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6901ac_tool_warned=yes ;;
6902esac
6903    RANLIB=$ac_ct_RANLIB
6904  fi
6905else
6906  RANLIB="$ac_cv_prog_RANLIB"
6907fi
6908
6909# Extract the first word of "rm", so it can be a program name with args.
6910set dummy rm; ac_word=$2
6911{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6913if test "${ac_cv_path_RM+set}" = set; then
6914  echo $ECHO_N "(cached) $ECHO_C" >&6
6915else
6916  case $RM in
6917  [\\/]* | ?:[\\/]*)
6918  ac_cv_path_RM="$RM" # Let the user override the test with a path.
6919  ;;
6920  *)
6921  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922for as_dir in $PATH
6923do
6924  IFS=$as_save_IFS
6925  test -z "$as_dir" && as_dir=.
6926  for ac_exec_ext in '' $ac_executable_extensions; do
6927  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6928    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6929    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6930    break 2
6931  fi
6932done
6933done
6934IFS=$as_save_IFS
6935
6936  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6937  ;;
6938esac
6939fi
6940RM=$ac_cv_path_RM
6941if test -n "$RM"; then
6942  { echo "$as_me:$LINENO: result: $RM" >&5
6943echo "${ECHO_T}$RM" >&6; }
6944else
6945  { echo "$as_me:$LINENO: result: no" >&5
6946echo "${ECHO_T}no" >&6; }
6947fi
6948
6949
6950# Extract the first word of "sed", so it can be a program name with args.
6951set dummy sed; ac_word=$2
6952{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6954if test "${ac_cv_path_SED+set}" = set; then
6955  echo $ECHO_N "(cached) $ECHO_C" >&6
6956else
6957  case $SED in
6958  [\\/]* | ?:[\\/]*)
6959  ac_cv_path_SED="$SED" # Let the user override the test with a path.
6960  ;;
6961  *)
6962  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963for as_dir in $PATH
6964do
6965  IFS=$as_save_IFS
6966  test -z "$as_dir" && as_dir=.
6967  for ac_exec_ext in '' $ac_executable_extensions; do
6968  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6969    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6970    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6971    break 2
6972  fi
6973done
6974done
6975IFS=$as_save_IFS
6976
6977  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6978  ;;
6979esac
6980fi
6981SED=$ac_cv_path_SED
6982if test -n "$SED"; then
6983  { echo "$as_me:$LINENO: result: $SED" >&5
6984echo "${ECHO_T}$SED" >&6; }
6985else
6986  { echo "$as_me:$LINENO: result: no" >&5
6987echo "${ECHO_T}no" >&6; }
6988fi
6989
6990
6991# Extract the first word of "tar", so it can be a program name with args.
6992set dummy tar; ac_word=$2
6993{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6995if test "${ac_cv_path_TAR+set}" = set; then
6996  echo $ECHO_N "(cached) $ECHO_C" >&6
6997else
6998  case $TAR in
6999  [\\/]* | ?:[\\/]*)
7000  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7001  ;;
7002  *)
7003  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004for as_dir in $PATH
7005do
7006  IFS=$as_save_IFS
7007  test -z "$as_dir" && as_dir=.
7008  for ac_exec_ext in '' $ac_executable_extensions; do
7009  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7010    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7011    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7012    break 2
7013  fi
7014done
7015done
7016IFS=$as_save_IFS
7017
7018  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7019  ;;
7020esac
7021fi
7022TAR=$ac_cv_path_TAR
7023if test -n "$TAR"; then
7024  { echo "$as_me:$LINENO: result: $TAR" >&5
7025echo "${ECHO_T}$TAR" >&6; }
7026else
7027  { echo "$as_me:$LINENO: result: no" >&5
7028echo "${ECHO_T}no" >&6; }
7029fi
7030
7031
7032# Extract the first word of "pwd", so it can be a program name with args.
7033set dummy pwd; ac_word=$2
7034{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7036if test "${ac_cv_path_BINPWD+set}" = set; then
7037  echo $ECHO_N "(cached) $ECHO_C" >&6
7038else
7039  case $BINPWD in
7040  [\\/]* | ?:[\\/]*)
7041  ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7042  ;;
7043  *)
7044  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045for as_dir in $PATH
7046do
7047  IFS=$as_save_IFS
7048  test -z "$as_dir" && as_dir=.
7049  for ac_exec_ext in '' $ac_executable_extensions; do
7050  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7051    ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7052    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7053    break 2
7054  fi
7055done
7056done
7057IFS=$as_save_IFS
7058
7059  test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7060  ;;
7061esac
7062fi
7063BINPWD=$ac_cv_path_BINPWD
7064if test -n "$BINPWD"; then
7065  { echo "$as_me:$LINENO: result: $BINPWD" >&5
7066echo "${ECHO_T}$BINPWD" >&6; }
7067else
7068  { echo "$as_me:$LINENO: result: no" >&5
7069echo "${ECHO_T}no" >&6; }
7070fi
7071
7072
7073
7074# Extract the first word of "Graphviz", so it can be a program name with args.
7075set dummy Graphviz; ac_word=$2
7076{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7078if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7079  echo $ECHO_N "(cached) $ECHO_C" >&6
7080else
7081  case $GRAPHVIZ in
7082  [\\/]* | ?:[\\/]*)
7083  ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7084  ;;
7085  *)
7086  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087for as_dir in $PATH
7088do
7089  IFS=$as_save_IFS
7090  test -z "$as_dir" && as_dir=.
7091  for ac_exec_ext in '' $ac_executable_extensions; do
7092  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7093    ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7094    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7095    break 2
7096  fi
7097done
7098done
7099IFS=$as_save_IFS
7100
7101  test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7102  ;;
7103esac
7104fi
7105GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7106if test -n "$GRAPHVIZ"; then
7107  { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7108echo "${ECHO_T}$GRAPHVIZ" >&6; }
7109else
7110  { echo "$as_me:$LINENO: result: no" >&5
7111echo "${ECHO_T}no" >&6; }
7112fi
7113
7114
7115if test "$GRAPHVIZ" != "echo Graphviz" ; then
7116
7117cat >>confdefs.h <<\_ACEOF
7118#define HAVE_GRAPHVIZ 1
7119_ACEOF
7120
7121    if test "$llvm_cv_os_type" == "MingW" ; then
7122    GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7123  fi
7124
7125cat >>confdefs.h <<_ACEOF
7126#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7127_ACEOF
7128
7129fi
7130# Extract the first word of "dot", so it can be a program name with args.
7131set dummy dot; ac_word=$2
7132{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7134if test "${ac_cv_path_DOT+set}" = set; then
7135  echo $ECHO_N "(cached) $ECHO_C" >&6
7136else
7137  case $DOT in
7138  [\\/]* | ?:[\\/]*)
7139  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7140  ;;
7141  *)
7142  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143for as_dir in $PATH
7144do
7145  IFS=$as_save_IFS
7146  test -z "$as_dir" && as_dir=.
7147  for ac_exec_ext in '' $ac_executable_extensions; do
7148  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7149    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7150    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7151    break 2
7152  fi
7153done
7154done
7155IFS=$as_save_IFS
7156
7157  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7158  ;;
7159esac
7160fi
7161DOT=$ac_cv_path_DOT
7162if test -n "$DOT"; then
7163  { echo "$as_me:$LINENO: result: $DOT" >&5
7164echo "${ECHO_T}$DOT" >&6; }
7165else
7166  { echo "$as_me:$LINENO: result: no" >&5
7167echo "${ECHO_T}no" >&6; }
7168fi
7169
7170
7171if test "$DOT" != "echo dot" ; then
7172
7173cat >>confdefs.h <<\_ACEOF
7174#define HAVE_DOT 1
7175_ACEOF
7176
7177    if test "$llvm_cv_os_type" == "MingW" ; then
7178    DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7179  fi
7180
7181cat >>confdefs.h <<_ACEOF
7182#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7183_ACEOF
7184
7185fi
7186for ac_prog in gv gsview32
7187do
7188  # Extract the first word of "$ac_prog", so it can be a program name with args.
7189set dummy $ac_prog; ac_word=$2
7190{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7192if test "${ac_cv_path_GV+set}" = set; then
7193  echo $ECHO_N "(cached) $ECHO_C" >&6
7194else
7195  case $GV in
7196  [\\/]* | ?:[\\/]*)
7197  ac_cv_path_GV="$GV" # Let the user override the test with a path.
7198  ;;
7199  *)
7200  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201for as_dir in $PATH
7202do
7203  IFS=$as_save_IFS
7204  test -z "$as_dir" && as_dir=.
7205  for ac_exec_ext in '' $ac_executable_extensions; do
7206  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7207    ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7208    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7209    break 2
7210  fi
7211done
7212done
7213IFS=$as_save_IFS
7214
7215  ;;
7216esac
7217fi
7218GV=$ac_cv_path_GV
7219if test -n "$GV"; then
7220  { echo "$as_me:$LINENO: result: $GV" >&5
7221echo "${ECHO_T}$GV" >&6; }
7222else
7223  { echo "$as_me:$LINENO: result: no" >&5
7224echo "${ECHO_T}no" >&6; }
7225fi
7226
7227
7228  test -n "$GV" && break
7229done
7230test -n "$GV" || GV="echo gv"
7231
7232if test "$GV" != "echo gv" ; then
7233
7234cat >>confdefs.h <<\_ACEOF
7235#define HAVE_GV 1
7236_ACEOF
7237
7238    if test "$llvm_cv_os_type" == "MingW" ; then
7239    GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7240  fi
7241
7242cat >>confdefs.h <<_ACEOF
7243#define LLVM_PATH_GV "$GV${EXEEXT}"
7244_ACEOF
7245
7246fi
7247# Extract the first word of "dotty", so it can be a program name with args.
7248set dummy dotty; ac_word=$2
7249{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7251if test "${ac_cv_path_DOTTY+set}" = set; then
7252  echo $ECHO_N "(cached) $ECHO_C" >&6
7253else
7254  case $DOTTY in
7255  [\\/]* | ?:[\\/]*)
7256  ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7257  ;;
7258  *)
7259  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260for as_dir in $PATH
7261do
7262  IFS=$as_save_IFS
7263  test -z "$as_dir" && as_dir=.
7264  for ac_exec_ext in '' $ac_executable_extensions; do
7265  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7266    ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7267    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7268    break 2
7269  fi
7270done
7271done
7272IFS=$as_save_IFS
7273
7274  test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7275  ;;
7276esac
7277fi
7278DOTTY=$ac_cv_path_DOTTY
7279if test -n "$DOTTY"; then
7280  { echo "$as_me:$LINENO: result: $DOTTY" >&5
7281echo "${ECHO_T}$DOTTY" >&6; }
7282else
7283  { echo "$as_me:$LINENO: result: no" >&5
7284echo "${ECHO_T}no" >&6; }
7285fi
7286
7287
7288if test "$DOTTY" != "echo dotty" ; then
7289
7290cat >>confdefs.h <<\_ACEOF
7291#define HAVE_DOTTY 1
7292_ACEOF
7293
7294    if test "$llvm_cv_os_type" == "MingW" ; then
7295    DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7296  fi
7297
7298cat >>confdefs.h <<_ACEOF
7299#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7300_ACEOF
7301
7302fi
7303
7304
7305# Extract the first word of "perl", so it can be a program name with args.
7306set dummy perl; ac_word=$2
7307{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7309if test "${ac_cv_path_PERL+set}" = set; then
7310  echo $ECHO_N "(cached) $ECHO_C" >&6
7311else
7312  case $PERL in
7313  [\\/]* | ?:[\\/]*)
7314  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7315  ;;
7316  *)
7317  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318for as_dir in $PATH
7319do
7320  IFS=$as_save_IFS
7321  test -z "$as_dir" && as_dir=.
7322  for ac_exec_ext in '' $ac_executable_extensions; do
7323  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7324    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7325    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7326    break 2
7327  fi
7328done
7329done
7330IFS=$as_save_IFS
7331
7332  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7333  ;;
7334esac
7335fi
7336PERL=$ac_cv_path_PERL
7337if test -n "$PERL"; then
7338  { echo "$as_me:$LINENO: result: $PERL" >&5
7339echo "${ECHO_T}$PERL" >&6; }
7340else
7341  { echo "$as_me:$LINENO: result: no" >&5
7342echo "${ECHO_T}no" >&6; }
7343fi
7344
7345
7346if test "$PERL" != "none"; then
7347  { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7348echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7349  if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7350    { echo "$as_me:$LINENO: result: yes" >&5
7351echo "${ECHO_T}yes" >&6; }
7352  else
7353    PERL=none
7354    { echo "$as_me:$LINENO: result: not found" >&5
7355echo "${ECHO_T}not found" >&6; }
7356  fi
7357fi
7358
7359
7360if test x"$PERL" = xnone; then
7361   HAVE_PERL=0
7362
7363else
7364   HAVE_PERL=1
7365
7366fi
7367
7368# Find a good install program.  We prefer a C program (faster),
7369# so one script is as good as another.  But avoid the broken or
7370# incompatible versions:
7371# SysV /etc/install, /usr/sbin/install
7372# SunOS /usr/etc/install
7373# IRIX /sbin/install
7374# AIX /bin/install
7375# AmigaOS /C/install, which installs bootblocks on floppy discs
7376# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7377# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7378# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7379# OS/2's system install, which has a completely different semantic
7380# ./install, which can be erroneously created by make from ./install.sh.
7381{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7382echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7383if test -z "$INSTALL"; then
7384if test "${ac_cv_path_install+set}" = set; then
7385  echo $ECHO_N "(cached) $ECHO_C" >&6
7386else
7387  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388for as_dir in $PATH
7389do
7390  IFS=$as_save_IFS
7391  test -z "$as_dir" && as_dir=.
7392  # Account for people who put trailing slashes in PATH elements.
7393case $as_dir/ in
7394  ./ | .// | /cC/* | \
7395  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7396  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7397  /usr/ucb/* ) ;;
7398  *)
7399    # OSF1 and SCO ODT 3.0 have their own names for install.
7400    # Don't use installbsd from OSF since it installs stuff as root
7401    # by default.
7402    for ac_prog in ginstall scoinst install; do
7403      for ac_exec_ext in '' $ac_executable_extensions; do
7404	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7405	  if test $ac_prog = install &&
7406	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7407	    # AIX install.  It has an incompatible calling convention.
7408	    :
7409	  elif test $ac_prog = install &&
7410	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7411	    # program-specific install script used by HP pwplus--don't use.
7412	    :
7413	  else
7414	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7415	    break 3
7416	  fi
7417	fi
7418      done
7419    done
7420    ;;
7421esac
7422done
7423IFS=$as_save_IFS
7424
7425
7426fi
7427  if test "${ac_cv_path_install+set}" = set; then
7428    INSTALL=$ac_cv_path_install
7429  else
7430    # As a last resort, use the slow shell script.  Don't cache a
7431    # value for INSTALL within a source directory, because that will
7432    # break other packages using the cache if that directory is
7433    # removed, or if the value is a relative name.
7434    INSTALL=$ac_install_sh
7435  fi
7436fi
7437{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7438echo "${ECHO_T}$INSTALL" >&6; }
7439
7440# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7441# It thinks the first close brace ends the variable substitution.
7442test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7443
7444test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7445
7446test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7447
7448
7449# Extract the first word of "bzip2", so it can be a program name with args.
7450set dummy bzip2; ac_word=$2
7451{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7453if test "${ac_cv_path_BZIP2+set}" = set; then
7454  echo $ECHO_N "(cached) $ECHO_C" >&6
7455else
7456  case $BZIP2 in
7457  [\\/]* | ?:[\\/]*)
7458  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7459  ;;
7460  *)
7461  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462for as_dir in $PATH
7463do
7464  IFS=$as_save_IFS
7465  test -z "$as_dir" && as_dir=.
7466  for ac_exec_ext in '' $ac_executable_extensions; do
7467  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7468    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7469    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7470    break 2
7471  fi
7472done
7473done
7474IFS=$as_save_IFS
7475
7476  test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7477  ;;
7478esac
7479fi
7480BZIP2=$ac_cv_path_BZIP2
7481if test -n "$BZIP2"; then
7482  { echo "$as_me:$LINENO: result: $BZIP2" >&5
7483echo "${ECHO_T}$BZIP2" >&6; }
7484else
7485  { echo "$as_me:$LINENO: result: no" >&5
7486echo "${ECHO_T}no" >&6; }
7487fi
7488
7489
7490# Extract the first word of "doxygen", so it can be a program name with args.
7491set dummy doxygen; ac_word=$2
7492{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7494if test "${ac_cv_path_DOXYGEN+set}" = set; then
7495  echo $ECHO_N "(cached) $ECHO_C" >&6
7496else
7497  case $DOXYGEN in
7498  [\\/]* | ?:[\\/]*)
7499  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7500  ;;
7501  *)
7502  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503for as_dir in $PATH
7504do
7505  IFS=$as_save_IFS
7506  test -z "$as_dir" && as_dir=.
7507  for ac_exec_ext in '' $ac_executable_extensions; do
7508  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7509    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7510    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7511    break 2
7512  fi
7513done
7514done
7515IFS=$as_save_IFS
7516
7517  test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7518  ;;
7519esac
7520fi
7521DOXYGEN=$ac_cv_path_DOXYGEN
7522if test -n "$DOXYGEN"; then
7523  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7524echo "${ECHO_T}$DOXYGEN" >&6; }
7525else
7526  { echo "$as_me:$LINENO: result: no" >&5
7527echo "${ECHO_T}no" >&6; }
7528fi
7529
7530
7531# Extract the first word of "groff", so it can be a program name with args.
7532set dummy groff; ac_word=$2
7533{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7535if test "${ac_cv_path_GROFF+set}" = set; then
7536  echo $ECHO_N "(cached) $ECHO_C" >&6
7537else
7538  case $GROFF in
7539  [\\/]* | ?:[\\/]*)
7540  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7541  ;;
7542  *)
7543  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544for as_dir in $PATH
7545do
7546  IFS=$as_save_IFS
7547  test -z "$as_dir" && as_dir=.
7548  for ac_exec_ext in '' $ac_executable_extensions; do
7549  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7550    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7551    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7552    break 2
7553  fi
7554done
7555done
7556IFS=$as_save_IFS
7557
7558  test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7559  ;;
7560esac
7561fi
7562GROFF=$ac_cv_path_GROFF
7563if test -n "$GROFF"; then
7564  { echo "$as_me:$LINENO: result: $GROFF" >&5
7565echo "${ECHO_T}$GROFF" >&6; }
7566else
7567  { echo "$as_me:$LINENO: result: no" >&5
7568echo "${ECHO_T}no" >&6; }
7569fi
7570
7571
7572# Extract the first word of "gzip", so it can be a program name with args.
7573set dummy gzip; ac_word=$2
7574{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7576if test "${ac_cv_path_GZIP+set}" = set; then
7577  echo $ECHO_N "(cached) $ECHO_C" >&6
7578else
7579  case $GZIP in
7580  [\\/]* | ?:[\\/]*)
7581  ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7582  ;;
7583  *)
7584  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585for as_dir in $PATH
7586do
7587  IFS=$as_save_IFS
7588  test -z "$as_dir" && as_dir=.
7589  for ac_exec_ext in '' $ac_executable_extensions; do
7590  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7591    ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7592    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7593    break 2
7594  fi
7595done
7596done
7597IFS=$as_save_IFS
7598
7599  test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7600  ;;
7601esac
7602fi
7603GZIP=$ac_cv_path_GZIP
7604if test -n "$GZIP"; then
7605  { echo "$as_me:$LINENO: result: $GZIP" >&5
7606echo "${ECHO_T}$GZIP" >&6; }
7607else
7608  { echo "$as_me:$LINENO: result: no" >&5
7609echo "${ECHO_T}no" >&6; }
7610fi
7611
7612
7613# Extract the first word of "pod2html", so it can be a program name with args.
7614set dummy pod2html; ac_word=$2
7615{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7617if test "${ac_cv_path_POD2HTML+set}" = set; then
7618  echo $ECHO_N "(cached) $ECHO_C" >&6
7619else
7620  case $POD2HTML in
7621  [\\/]* | ?:[\\/]*)
7622  ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7623  ;;
7624  *)
7625  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626for as_dir in $PATH
7627do
7628  IFS=$as_save_IFS
7629  test -z "$as_dir" && as_dir=.
7630  for ac_exec_ext in '' $ac_executable_extensions; do
7631  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7632    ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7633    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7634    break 2
7635  fi
7636done
7637done
7638IFS=$as_save_IFS
7639
7640  test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7641  ;;
7642esac
7643fi
7644POD2HTML=$ac_cv_path_POD2HTML
7645if test -n "$POD2HTML"; then
7646  { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7647echo "${ECHO_T}$POD2HTML" >&6; }
7648else
7649  { echo "$as_me:$LINENO: result: no" >&5
7650echo "${ECHO_T}no" >&6; }
7651fi
7652
7653
7654# Extract the first word of "pod2man", so it can be a program name with args.
7655set dummy pod2man; ac_word=$2
7656{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7658if test "${ac_cv_path_POD2MAN+set}" = set; then
7659  echo $ECHO_N "(cached) $ECHO_C" >&6
7660else
7661  case $POD2MAN in
7662  [\\/]* | ?:[\\/]*)
7663  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7664  ;;
7665  *)
7666  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667for as_dir in $PATH
7668do
7669  IFS=$as_save_IFS
7670  test -z "$as_dir" && as_dir=.
7671  for ac_exec_ext in '' $ac_executable_extensions; do
7672  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7673    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7674    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7675    break 2
7676  fi
7677done
7678done
7679IFS=$as_save_IFS
7680
7681  test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7682  ;;
7683esac
7684fi
7685POD2MAN=$ac_cv_path_POD2MAN
7686if test -n "$POD2MAN"; then
7687  { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7688echo "${ECHO_T}$POD2MAN" >&6; }
7689else
7690  { echo "$as_me:$LINENO: result: no" >&5
7691echo "${ECHO_T}no" >&6; }
7692fi
7693
7694
7695# Extract the first word of "runtest", so it can be a program name with args.
7696set dummy runtest; ac_word=$2
7697{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7699if test "${ac_cv_path_RUNTEST+set}" = set; then
7700  echo $ECHO_N "(cached) $ECHO_C" >&6
7701else
7702  case $RUNTEST in
7703  [\\/]* | ?:[\\/]*)
7704  ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7705  ;;
7706  *)
7707  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708for as_dir in $PATH
7709do
7710  IFS=$as_save_IFS
7711  test -z "$as_dir" && as_dir=.
7712  for ac_exec_ext in '' $ac_executable_extensions; do
7713  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7714    ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7715    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7716    break 2
7717  fi
7718done
7719done
7720IFS=$as_save_IFS
7721
7722  test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7723  ;;
7724esac
7725fi
7726RUNTEST=$ac_cv_path_RUNTEST
7727if test -n "$RUNTEST"; then
7728  { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7729echo "${ECHO_T}$RUNTEST" >&6; }
7730else
7731  { echo "$as_me:$LINENO: result: no" >&5
7732echo "${ECHO_T}no" >&6; }
7733fi
7734
7735
7736
7737no_itcl=true
7738{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7739echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7740
7741# Check whether --with-tclinclude was given.
7742if test "${with_tclinclude+set}" = set; then
7743  withval=$with_tclinclude; with_tclinclude=${withval}
7744else
7745  with_tclinclude=''
7746fi
7747
7748if test "${ac_cv_path_tclsh+set}" = set; then
7749  echo $ECHO_N "(cached) $ECHO_C" >&6
7750else
7751
7752if test x"${with_tclinclude}" != x ; then
7753  if test -f ${with_tclinclude}/tclsh ; then
7754    ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7755  elif test -f ${with_tclinclude}/src/tclsh ; then
7756    ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7757  else
7758    { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7759echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7760   { (exit 1); exit 1; }; }
7761  fi
7762fi
7763
7764if test x"${ac_cv_path_tclsh}" = x ; then
7765  { echo "$as_me:$LINENO: result: none" >&5
7766echo "${ECHO_T}none" >&6; }
7767  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
7768do
7769  # Extract the first word of "$ac_prog", so it can be a program name with args.
7770set dummy $ac_prog; ac_word=$2
7771{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7773if test "${ac_cv_path_TCLSH+set}" = set; then
7774  echo $ECHO_N "(cached) $ECHO_C" >&6
7775else
7776  case $TCLSH in
7777  [\\/]* | ?:[\\/]*)
7778  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7779  ;;
7780  *)
7781  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782for as_dir in $PATH
7783do
7784  IFS=$as_save_IFS
7785  test -z "$as_dir" && as_dir=.
7786  for ac_exec_ext in '' $ac_executable_extensions; do
7787  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7788    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7789    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7790    break 2
7791  fi
7792done
7793done
7794IFS=$as_save_IFS
7795
7796  ;;
7797esac
7798fi
7799TCLSH=$ac_cv_path_TCLSH
7800if test -n "$TCLSH"; then
7801  { echo "$as_me:$LINENO: result: $TCLSH" >&5
7802echo "${ECHO_T}$TCLSH" >&6; }
7803else
7804  { echo "$as_me:$LINENO: result: no" >&5
7805echo "${ECHO_T}no" >&6; }
7806fi
7807
7808
7809  test -n "$TCLSH" && break
7810done
7811
7812  if test x"${TCLSH}" = x ; then
7813    ac_cv_path_tclsh='';
7814  else
7815    ac_cv_path_tclsh="${TCLSH}";
7816  fi
7817else
7818  { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7819echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7820  TCLSH="${ac_cv_path_tclsh}"
7821
7822fi
7823
7824fi
7825
7826# Extract the first word of "zip", so it can be a program name with args.
7827set dummy zip; ac_word=$2
7828{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7830if test "${ac_cv_path_ZIP+set}" = set; then
7831  echo $ECHO_N "(cached) $ECHO_C" >&6
7832else
7833  case $ZIP in
7834  [\\/]* | ?:[\\/]*)
7835  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7836  ;;
7837  *)
7838  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839for as_dir in $PATH
7840do
7841  IFS=$as_save_IFS
7842  test -z "$as_dir" && as_dir=.
7843  for ac_exec_ext in '' $ac_executable_extensions; do
7844  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7845    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7846    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7847    break 2
7848  fi
7849done
7850done
7851IFS=$as_save_IFS
7852
7853  test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7854  ;;
7855esac
7856fi
7857ZIP=$ac_cv_path_ZIP
7858if test -n "$ZIP"; then
7859  { echo "$as_me:$LINENO: result: $ZIP" >&5
7860echo "${ECHO_T}$ZIP" >&6; }
7861else
7862  { echo "$as_me:$LINENO: result: no" >&5
7863echo "${ECHO_T}no" >&6; }
7864fi
7865
7866
7867
7868{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7869echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7870if test "${llvm_cv_link_use_r+set}" = set; then
7871  echo $ECHO_N "(cached) $ECHO_C" >&6
7872else
7873   ac_ext=c
7874ac_cpp='$CPP $CPPFLAGS'
7875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7877ac_compiler_gnu=$ac_cv_c_compiler_gnu
7878
7879  oldcflags="$CFLAGS"
7880  CFLAGS="$CFLAGS -Wl,-R."
7881  cat >conftest.$ac_ext <<_ACEOF
7882/* confdefs.h.  */
7883_ACEOF
7884cat confdefs.h >>conftest.$ac_ext
7885cat >>conftest.$ac_ext <<_ACEOF
7886/* end confdefs.h.  */
7887
7888int
7889main ()
7890{
7891int main() { return 0; }
7892  ;
7893  return 0;
7894}
7895_ACEOF
7896rm -f conftest.$ac_objext conftest$ac_exeext
7897if { (ac_try="$ac_link"
7898case "(($ac_try" in
7899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7900  *) ac_try_echo=$ac_try;;
7901esac
7902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7903  (eval "$ac_link") 2>conftest.er1
7904  ac_status=$?
7905  grep -v '^ *+' conftest.er1 >conftest.err
7906  rm -f conftest.er1
7907  cat conftest.err >&5
7908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909  (exit $ac_status); } &&
7910	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7911  { (case "(($ac_try" in
7912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7913  *) ac_try_echo=$ac_try;;
7914esac
7915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7916  (eval "$ac_try") 2>&5
7917  ac_status=$?
7918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919  (exit $ac_status); }; } &&
7920	 { ac_try='test -s conftest$ac_exeext'
7921  { (case "(($ac_try" in
7922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923  *) ac_try_echo=$ac_try;;
7924esac
7925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926  (eval "$ac_try") 2>&5
7927  ac_status=$?
7928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929  (exit $ac_status); }; }; then
7930  llvm_cv_link_use_r=yes
7931else
7932  echo "$as_me: failed program was:" >&5
7933sed 's/^/| /' conftest.$ac_ext >&5
7934
7935	llvm_cv_link_use_r=no
7936fi
7937
7938rm -f core conftest.err conftest.$ac_objext \
7939      conftest$ac_exeext conftest.$ac_ext
7940  CFLAGS="$oldcflags"
7941  ac_ext=c
7942ac_cpp='$CPP $CPPFLAGS'
7943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7945ac_compiler_gnu=$ac_cv_c_compiler_gnu
7946
7947
7948fi
7949{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7950echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7951if test "$llvm_cv_link_use_r" = yes ; then
7952
7953cat >>confdefs.h <<\_ACEOF
7954#define HAVE_LINK_R 1
7955_ACEOF
7956
7957  fi
7958
7959
7960
7961
7962{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7963echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7964if test "${ac_cv_c_const+set}" = set; then
7965  echo $ECHO_N "(cached) $ECHO_C" >&6
7966else
7967  cat >conftest.$ac_ext <<_ACEOF
7968/* confdefs.h.  */
7969_ACEOF
7970cat confdefs.h >>conftest.$ac_ext
7971cat >>conftest.$ac_ext <<_ACEOF
7972/* end confdefs.h.  */
7973
7974int
7975main ()
7976{
7977/* FIXME: Include the comments suggested by Paul. */
7978#ifndef __cplusplus
7979  /* Ultrix mips cc rejects this.  */
7980  typedef int charset[2];
7981  const charset x;
7982  /* SunOS 4.1.1 cc rejects this.  */
7983  char const *const *ccp;
7984  char **p;
7985  /* NEC SVR4.0.2 mips cc rejects this.  */
7986  struct point {int x, y;};
7987  static struct point const zero = {0,0};
7988  /* AIX XL C 1.02.0.0 rejects this.
7989     It does not let you subtract one const X* pointer from another in
7990     an arm of an if-expression whose if-part is not a constant
7991     expression */
7992  const char *g = "string";
7993  ccp = &g + (g ? g-g : 0);
7994  /* HPUX 7.0 cc rejects these. */
7995  ++ccp;
7996  p = (char**) ccp;
7997  ccp = (char const *const *) p;
7998  { /* SCO 3.2v4 cc rejects this.  */
7999    char *t;
8000    char const *s = 0 ? (char *) 0 : (char const *) 0;
8001
8002    *t++ = 0;
8003    if (s) return 0;
8004  }
8005  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8006    int x[] = {25, 17};
8007    const int *foo = &x[0];
8008    ++foo;
8009  }
8010  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8011    typedef const int *iptr;
8012    iptr p = 0;
8013    ++p;
8014  }
8015  { /* AIX XL C 1.02.0.0 rejects this saying
8016       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8017    struct s { int j; const int *ap[3]; };
8018    struct s *b; b->j = 5;
8019  }
8020  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8021    const int foo = 10;
8022    if (!foo) return 0;
8023  }
8024  return !x[0] && !zero.x;
8025#endif
8026
8027  ;
8028  return 0;
8029}
8030_ACEOF
8031rm -f conftest.$ac_objext
8032if { (ac_try="$ac_compile"
8033case "(($ac_try" in
8034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035  *) ac_try_echo=$ac_try;;
8036esac
8037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038  (eval "$ac_compile") 2>conftest.er1
8039  ac_status=$?
8040  grep -v '^ *+' conftest.er1 >conftest.err
8041  rm -f conftest.er1
8042  cat conftest.err >&5
8043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044  (exit $ac_status); } &&
8045	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8046  { (case "(($ac_try" in
8047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048  *) ac_try_echo=$ac_try;;
8049esac
8050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051  (eval "$ac_try") 2>&5
8052  ac_status=$?
8053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054  (exit $ac_status); }; } &&
8055	 { ac_try='test -s conftest.$ac_objext'
8056  { (case "(($ac_try" in
8057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058  *) ac_try_echo=$ac_try;;
8059esac
8060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061  (eval "$ac_try") 2>&5
8062  ac_status=$?
8063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064  (exit $ac_status); }; }; then
8065  ac_cv_c_const=yes
8066else
8067  echo "$as_me: failed program was:" >&5
8068sed 's/^/| /' conftest.$ac_ext >&5
8069
8070	ac_cv_c_const=no
8071fi
8072
8073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074fi
8075{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8076echo "${ECHO_T}$ac_cv_c_const" >&6; }
8077if test $ac_cv_c_const = no; then
8078
8079cat >>confdefs.h <<\_ACEOF
8080#define const
8081_ACEOF
8082
8083fi
8084
8085
8086
8087
8088
8089
8090ac_header_dirent=no
8091for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8092  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8093{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8094echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8096  echo $ECHO_N "(cached) $ECHO_C" >&6
8097else
8098  cat >conftest.$ac_ext <<_ACEOF
8099/* confdefs.h.  */
8100_ACEOF
8101cat confdefs.h >>conftest.$ac_ext
8102cat >>conftest.$ac_ext <<_ACEOF
8103/* end confdefs.h.  */
8104#include <sys/types.h>
8105#include <$ac_hdr>
8106
8107int
8108main ()
8109{
8110if ((DIR *) 0)
8111return 0;
8112  ;
8113  return 0;
8114}
8115_ACEOF
8116rm -f conftest.$ac_objext
8117if { (ac_try="$ac_compile"
8118case "(($ac_try" in
8119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120  *) ac_try_echo=$ac_try;;
8121esac
8122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123  (eval "$ac_compile") 2>conftest.er1
8124  ac_status=$?
8125  grep -v '^ *+' conftest.er1 >conftest.err
8126  rm -f conftest.er1
8127  cat conftest.err >&5
8128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129  (exit $ac_status); } &&
8130	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8131  { (case "(($ac_try" in
8132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133  *) ac_try_echo=$ac_try;;
8134esac
8135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8136  (eval "$ac_try") 2>&5
8137  ac_status=$?
8138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139  (exit $ac_status); }; } &&
8140	 { ac_try='test -s conftest.$ac_objext'
8141  { (case "(($ac_try" in
8142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8143  *) ac_try_echo=$ac_try;;
8144esac
8145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8146  (eval "$ac_try") 2>&5
8147  ac_status=$?
8148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149  (exit $ac_status); }; }; then
8150  eval "$as_ac_Header=yes"
8151else
8152  echo "$as_me: failed program was:" >&5
8153sed 's/^/| /' conftest.$ac_ext >&5
8154
8155	eval "$as_ac_Header=no"
8156fi
8157
8158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8159fi
8160ac_res=`eval echo '${'$as_ac_Header'}'`
8161	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8162echo "${ECHO_T}$ac_res" >&6; }
8163if test `eval echo '${'$as_ac_Header'}'` = yes; then
8164  cat >>confdefs.h <<_ACEOF
8165#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8166_ACEOF
8167
8168ac_header_dirent=$ac_hdr; break
8169fi
8170
8171done
8172# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8173if test $ac_header_dirent = dirent.h; then
8174  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8175echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8176if test "${ac_cv_search_opendir+set}" = set; then
8177  echo $ECHO_N "(cached) $ECHO_C" >&6
8178else
8179  ac_func_search_save_LIBS=$LIBS
8180cat >conftest.$ac_ext <<_ACEOF
8181/* confdefs.h.  */
8182_ACEOF
8183cat confdefs.h >>conftest.$ac_ext
8184cat >>conftest.$ac_ext <<_ACEOF
8185/* end confdefs.h.  */
8186
8187/* Override any GCC internal prototype to avoid an error.
8188   Use char because int might match the return type of a GCC
8189   builtin and then its argument prototype would still apply.  */
8190#ifdef __cplusplus
8191extern "C"
8192#endif
8193char opendir ();
8194int
8195main ()
8196{
8197return opendir ();
8198  ;
8199  return 0;
8200}
8201_ACEOF
8202for ac_lib in '' dir; do
8203  if test -z "$ac_lib"; then
8204    ac_res="none required"
8205  else
8206    ac_res=-l$ac_lib
8207    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8208  fi
8209  rm -f conftest.$ac_objext conftest$ac_exeext
8210if { (ac_try="$ac_link"
8211case "(($ac_try" in
8212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213  *) ac_try_echo=$ac_try;;
8214esac
8215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8216  (eval "$ac_link") 2>conftest.er1
8217  ac_status=$?
8218  grep -v '^ *+' conftest.er1 >conftest.err
8219  rm -f conftest.er1
8220  cat conftest.err >&5
8221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222  (exit $ac_status); } &&
8223	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8224  { (case "(($ac_try" in
8225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226  *) ac_try_echo=$ac_try;;
8227esac
8228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229  (eval "$ac_try") 2>&5
8230  ac_status=$?
8231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232  (exit $ac_status); }; } &&
8233	 { ac_try='test -s conftest$ac_exeext'
8234  { (case "(($ac_try" in
8235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8236  *) ac_try_echo=$ac_try;;
8237esac
8238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8239  (eval "$ac_try") 2>&5
8240  ac_status=$?
8241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242  (exit $ac_status); }; }; then
8243  ac_cv_search_opendir=$ac_res
8244else
8245  echo "$as_me: failed program was:" >&5
8246sed 's/^/| /' conftest.$ac_ext >&5
8247
8248
8249fi
8250
8251rm -f core conftest.err conftest.$ac_objext \
8252      conftest$ac_exeext
8253  if test "${ac_cv_search_opendir+set}" = set; then
8254  break
8255fi
8256done
8257if test "${ac_cv_search_opendir+set}" = set; then
8258  :
8259else
8260  ac_cv_search_opendir=no
8261fi
8262rm conftest.$ac_ext
8263LIBS=$ac_func_search_save_LIBS
8264fi
8265{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8266echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8267ac_res=$ac_cv_search_opendir
8268if test "$ac_res" != no; then
8269  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8270
8271fi
8272
8273else
8274  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8275echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8276if test "${ac_cv_search_opendir+set}" = set; then
8277  echo $ECHO_N "(cached) $ECHO_C" >&6
8278else
8279  ac_func_search_save_LIBS=$LIBS
8280cat >conftest.$ac_ext <<_ACEOF
8281/* confdefs.h.  */
8282_ACEOF
8283cat confdefs.h >>conftest.$ac_ext
8284cat >>conftest.$ac_ext <<_ACEOF
8285/* end confdefs.h.  */
8286
8287/* Override any GCC internal prototype to avoid an error.
8288   Use char because int might match the return type of a GCC
8289   builtin and then its argument prototype would still apply.  */
8290#ifdef __cplusplus
8291extern "C"
8292#endif
8293char opendir ();
8294int
8295main ()
8296{
8297return opendir ();
8298  ;
8299  return 0;
8300}
8301_ACEOF
8302for ac_lib in '' x; do
8303  if test -z "$ac_lib"; then
8304    ac_res="none required"
8305  else
8306    ac_res=-l$ac_lib
8307    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8308  fi
8309  rm -f conftest.$ac_objext conftest$ac_exeext
8310if { (ac_try="$ac_link"
8311case "(($ac_try" in
8312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313  *) ac_try_echo=$ac_try;;
8314esac
8315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316  (eval "$ac_link") 2>conftest.er1
8317  ac_status=$?
8318  grep -v '^ *+' conftest.er1 >conftest.err
8319  rm -f conftest.er1
8320  cat conftest.err >&5
8321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322  (exit $ac_status); } &&
8323	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8324  { (case "(($ac_try" in
8325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326  *) ac_try_echo=$ac_try;;
8327esac
8328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8329  (eval "$ac_try") 2>&5
8330  ac_status=$?
8331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332  (exit $ac_status); }; } &&
8333	 { ac_try='test -s conftest$ac_exeext'
8334  { (case "(($ac_try" in
8335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336  *) ac_try_echo=$ac_try;;
8337esac
8338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339  (eval "$ac_try") 2>&5
8340  ac_status=$?
8341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342  (exit $ac_status); }; }; then
8343  ac_cv_search_opendir=$ac_res
8344else
8345  echo "$as_me: failed program was:" >&5
8346sed 's/^/| /' conftest.$ac_ext >&5
8347
8348
8349fi
8350
8351rm -f core conftest.err conftest.$ac_objext \
8352      conftest$ac_exeext
8353  if test "${ac_cv_search_opendir+set}" = set; then
8354  break
8355fi
8356done
8357if test "${ac_cv_search_opendir+set}" = set; then
8358  :
8359else
8360  ac_cv_search_opendir=no
8361fi
8362rm conftest.$ac_ext
8363LIBS=$ac_func_search_save_LIBS
8364fi
8365{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8366echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8367ac_res=$ac_cv_search_opendir
8368if test "$ac_res" != no; then
8369  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8370
8371fi
8372
8373fi
8374
8375
8376for ac_header in dlfcn.h
8377do
8378as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8379if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8380  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8382if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8383  echo $ECHO_N "(cached) $ECHO_C" >&6
8384fi
8385ac_res=`eval echo '${'$as_ac_Header'}'`
8386	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8387echo "${ECHO_T}$ac_res" >&6; }
8388else
8389  # Is the header compilable?
8390{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8391echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8392cat >conftest.$ac_ext <<_ACEOF
8393/* confdefs.h.  */
8394_ACEOF
8395cat confdefs.h >>conftest.$ac_ext
8396cat >>conftest.$ac_ext <<_ACEOF
8397/* end confdefs.h.  */
8398$ac_includes_default
8399#include <$ac_header>
8400_ACEOF
8401rm -f conftest.$ac_objext
8402if { (ac_try="$ac_compile"
8403case "(($ac_try" in
8404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405  *) ac_try_echo=$ac_try;;
8406esac
8407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408  (eval "$ac_compile") 2>conftest.er1
8409  ac_status=$?
8410  grep -v '^ *+' conftest.er1 >conftest.err
8411  rm -f conftest.er1
8412  cat conftest.err >&5
8413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414  (exit $ac_status); } &&
8415	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8416  { (case "(($ac_try" in
8417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8418  *) ac_try_echo=$ac_try;;
8419esac
8420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8421  (eval "$ac_try") 2>&5
8422  ac_status=$?
8423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424  (exit $ac_status); }; } &&
8425	 { ac_try='test -s conftest.$ac_objext'
8426  { (case "(($ac_try" in
8427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8428  *) ac_try_echo=$ac_try;;
8429esac
8430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8431  (eval "$ac_try") 2>&5
8432  ac_status=$?
8433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434  (exit $ac_status); }; }; then
8435  ac_header_compiler=yes
8436else
8437  echo "$as_me: failed program was:" >&5
8438sed 's/^/| /' conftest.$ac_ext >&5
8439
8440	ac_header_compiler=no
8441fi
8442
8443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8444{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8445echo "${ECHO_T}$ac_header_compiler" >&6; }
8446
8447# Is the header present?
8448{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8449echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8450cat >conftest.$ac_ext <<_ACEOF
8451/* confdefs.h.  */
8452_ACEOF
8453cat confdefs.h >>conftest.$ac_ext
8454cat >>conftest.$ac_ext <<_ACEOF
8455/* end confdefs.h.  */
8456#include <$ac_header>
8457_ACEOF
8458if { (ac_try="$ac_cpp conftest.$ac_ext"
8459case "(($ac_try" in
8460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461  *) ac_try_echo=$ac_try;;
8462esac
8463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8465  ac_status=$?
8466  grep -v '^ *+' conftest.er1 >conftest.err
8467  rm -f conftest.er1
8468  cat conftest.err >&5
8469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470  (exit $ac_status); } >/dev/null; then
8471  if test -s conftest.err; then
8472    ac_cpp_err=$ac_c_preproc_warn_flag
8473    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8474  else
8475    ac_cpp_err=
8476  fi
8477else
8478  ac_cpp_err=yes
8479fi
8480if test -z "$ac_cpp_err"; then
8481  ac_header_preproc=yes
8482else
8483  echo "$as_me: failed program was:" >&5
8484sed 's/^/| /' conftest.$ac_ext >&5
8485
8486  ac_header_preproc=no
8487fi
8488
8489rm -f conftest.err conftest.$ac_ext
8490{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8491echo "${ECHO_T}$ac_header_preproc" >&6; }
8492
8493# So?  What about this header?
8494case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8495  yes:no: )
8496    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8497echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8498    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8499echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8500    ac_header_preproc=yes
8501    ;;
8502  no:yes:* )
8503    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8504echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8505    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8506echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8507    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8508echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8509    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8510echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8511    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8512echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8513    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8514echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8515    ( cat <<\_ASBOX
8516## ----------------------------------- ##
8517## Report this to llvmbugs@cs.uiuc.edu ##
8518## ----------------------------------- ##
8519_ASBOX
8520     ) | sed "s/^/$as_me: WARNING:     /" >&2
8521    ;;
8522esac
8523{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8524echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8525if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8526  echo $ECHO_N "(cached) $ECHO_C" >&6
8527else
8528  eval "$as_ac_Header=\$ac_header_preproc"
8529fi
8530ac_res=`eval echo '${'$as_ac_Header'}'`
8531	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8532echo "${ECHO_T}$ac_res" >&6; }
8533
8534fi
8535if test `eval echo '${'$as_ac_Header'}'` = yes; then
8536  cat >>confdefs.h <<_ACEOF
8537#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8538_ACEOF
8539
8540fi
8541
8542done
8543
8544# Check whether --enable-ltdl-install was given.
8545if test "${enable_ltdl_install+set}" = set; then
8546  enableval=$enable_ltdl_install;
8547fi
8548
8549
8550
8551
8552if test x"${enable_ltdl_install-no}" != xno; then
8553  INSTALL_LTDL_TRUE=
8554  INSTALL_LTDL_FALSE='#'
8555else
8556  INSTALL_LTDL_TRUE='#'
8557  INSTALL_LTDL_FALSE=
8558fi
8559
8560
8561
8562if test x"${enable_ltdl_convenience-no}" != xno; then
8563  CONVENIENCE_LTDL_TRUE=
8564  CONVENIENCE_LTDL_FALSE='#'
8565else
8566  CONVENIENCE_LTDL_TRUE='#'
8567  CONVENIENCE_LTDL_FALSE=
8568fi
8569
8570
8571{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8572echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8573library_names_spec=
8574libname_spec='lib$name'
8575soname_spec=
8576shrext_cmds=".so"
8577postinstall_cmds=
8578postuninstall_cmds=
8579finish_cmds=
8580finish_eval=
8581shlibpath_var=
8582shlibpath_overrides_runpath=unknown
8583version_type=none
8584dynamic_linker="$host_os ld.so"
8585sys_lib_dlsearch_path_spec="/lib /usr/lib"
8586if test "$GCC" = yes; then
8587  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8588  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8589    # if the path contains ";" then we assume it to be the separator
8590    # otherwise default to the standard path separator (i.e. ":") - it is
8591    # assumed that no part of a normal pathname contains ";" but that should
8592    # okay in the real world where ";" in dirpaths is itself problematic.
8593    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8594  else
8595    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8596  fi
8597else
8598  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8599fi
8600need_lib_prefix=unknown
8601hardcode_into_libs=no
8602
8603# when you set need_version to no, make sure it does not cause -set_version
8604# flags to be left without arguments
8605need_version=unknown
8606
8607case $host_os in
8608aix3*)
8609  version_type=linux
8610  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8611  shlibpath_var=LIBPATH
8612
8613  # AIX 3 has no versioning support, so we append a major version to the name.
8614  soname_spec='${libname}${release}${shared_ext}$major'
8615  ;;
8616
8617aix4* | aix5*)
8618  version_type=linux
8619  need_lib_prefix=no
8620  need_version=no
8621  hardcode_into_libs=yes
8622  if test "$host_cpu" = ia64; then
8623    # AIX 5 supports IA64
8624    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8625    shlibpath_var=LD_LIBRARY_PATH
8626  else
8627    # With GCC up to 2.95.x, collect2 would create an import file
8628    # for dependence libraries.  The import file would start with
8629    # the line `#! .'.  This would cause the generated library to
8630    # depend on `.', always an invalid library.  This was fixed in
8631    # development snapshots of GCC prior to 3.0.
8632    case $host_os in
8633      aix4 | aix4.[01] | aix4.[01].*)
8634      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8635	   echo ' yes '
8636	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8637	:
8638      else
8639	can_build_shared=no
8640      fi
8641      ;;
8642    esac
8643    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8644    # soname into executable. Probably we can add versioning support to
8645    # collect2, so additional links can be useful in future.
8646    if test "$aix_use_runtimelinking" = yes; then
8647      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8648      # instead of lib<name>.a to let people know that these are not
8649      # typical AIX shared libraries.
8650      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8651    else
8652      # We preserve .a as extension for shared libraries through AIX4.2
8653      # and later when we are not doing run time linking.
8654      library_names_spec='${libname}${release}.a $libname.a'
8655      soname_spec='${libname}${release}${shared_ext}$major'
8656    fi
8657    shlibpath_var=LIBPATH
8658  fi
8659  ;;
8660
8661amigaos*)
8662  library_names_spec='$libname.ixlibrary $libname.a'
8663  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8664  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'
8665  ;;
8666
8667beos*)
8668  library_names_spec='${libname}${shared_ext}'
8669  dynamic_linker="$host_os ld.so"
8670  shlibpath_var=LIBRARY_PATH
8671  ;;
8672
8673bsdi[45]*)
8674  version_type=linux
8675  need_version=no
8676  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8677  soname_spec='${libname}${release}${shared_ext}$major'
8678  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8679  shlibpath_var=LD_LIBRARY_PATH
8680  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8681  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8682  # the default ld.so.conf also contains /usr/contrib/lib and
8683  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8684  # libtool to hard-code these into programs
8685  ;;
8686
8687cygwin* | mingw* | pw32*)
8688  version_type=windows
8689  shrext_cmds=".dll"
8690  need_version=no
8691  need_lib_prefix=no
8692
8693  case $GCC,$host_os in
8694  yes,cygwin* | yes,mingw* | yes,pw32*)
8695    library_names_spec='$libname.dll.a'
8696    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8697    postinstall_cmds='base_file=`basename \${file}`~
8698      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8699      dldir=$destdir/`dirname \$dlpath`~
8700      test -d \$dldir || mkdir -p \$dldir~
8701      $install_prog $dir/$dlname \$dldir/$dlname~
8702      chmod a+x \$dldir/$dlname'
8703    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8704      dlpath=$dir/\$dldll~
8705       $rm \$dlpath'
8706    shlibpath_overrides_runpath=yes
8707
8708    case $host_os in
8709    cygwin*)
8710      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8711      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8712      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8713      ;;
8714    mingw*)
8715      # MinGW DLLs use traditional 'lib' prefix
8716      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8717      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8718      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8719        # It is most probably a Windows format PATH printed by
8720        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8721        # path with ; separators, and with drive letters. We can handle the
8722        # drive letters (cygwin fileutils understands them), so leave them,
8723        # especially as we might pass files found there to a mingw objdump,
8724        # which wouldn't understand a cygwinified path. Ahh.
8725        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8726      else
8727        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8728      fi
8729      ;;
8730    pw32*)
8731      # pw32 DLLs use 'pw' prefix rather than 'lib'
8732      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8733      ;;
8734    esac
8735    ;;
8736
8737  *)
8738    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8739    ;;
8740  esac
8741  dynamic_linker='Win32 ld.exe'
8742  # FIXME: first we should search . and the directory the executable is in
8743  shlibpath_var=PATH
8744  ;;
8745
8746darwin* | rhapsody*)
8747  dynamic_linker="$host_os dyld"
8748  version_type=darwin
8749  need_lib_prefix=no
8750  need_version=no
8751  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8752  soname_spec='${libname}${release}${major}$shared_ext'
8753  shlibpath_overrides_runpath=yes
8754  shlibpath_var=DYLD_LIBRARY_PATH
8755  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8756  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8757  if test "$GCC" = yes; then
8758    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"`
8759  else
8760    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8761  fi
8762  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8763  ;;
8764
8765dgux*)
8766  version_type=linux
8767  need_lib_prefix=no
8768  need_version=no
8769  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8770  soname_spec='${libname}${release}${shared_ext}$major'
8771  shlibpath_var=LD_LIBRARY_PATH
8772  ;;
8773
8774freebsd1*)
8775  dynamic_linker=no
8776  ;;
8777
8778kfreebsd*-gnu)
8779  version_type=linux
8780  need_lib_prefix=no
8781  need_version=no
8782  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8783  soname_spec='${libname}${release}${shared_ext}$major'
8784  shlibpath_var=LD_LIBRARY_PATH
8785  shlibpath_overrides_runpath=no
8786  hardcode_into_libs=yes
8787  dynamic_linker='GNU ld.so'
8788  ;;
8789
8790freebsd* | dragonfly*)
8791  # DragonFly does not have aout.  When/if they implement a new
8792  # versioning mechanism, adjust this.
8793  if test -x /usr/bin/objformat; then
8794    objformat=`/usr/bin/objformat`
8795  else
8796    case $host_os in
8797    freebsd[123]*) objformat=aout ;;
8798    *) objformat=elf ;;
8799    esac
8800  fi
8801  version_type=freebsd-$objformat
8802  case $version_type in
8803    freebsd-elf*)
8804      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8805      need_version=no
8806      need_lib_prefix=no
8807      ;;
8808    freebsd-*)
8809      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8810      need_version=yes
8811      ;;
8812  esac
8813  shlibpath_var=LD_LIBRARY_PATH
8814  case $host_os in
8815  freebsd2*)
8816    shlibpath_overrides_runpath=yes
8817    ;;
8818  freebsd3.[01]* | freebsdelf3.[01]*)
8819    shlibpath_overrides_runpath=yes
8820    hardcode_into_libs=yes
8821    ;;
8822  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8823  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8824    shlibpath_overrides_runpath=no
8825    hardcode_into_libs=yes
8826    ;;
8827  freebsd*) # from 4.6 on
8828    shlibpath_overrides_runpath=yes
8829    hardcode_into_libs=yes
8830    ;;
8831  esac
8832  ;;
8833
8834gnu*)
8835  version_type=linux
8836  need_lib_prefix=no
8837  need_version=no
8838  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8839  soname_spec='${libname}${release}${shared_ext}$major'
8840  shlibpath_var=LD_LIBRARY_PATH
8841  hardcode_into_libs=yes
8842  ;;
8843
8844hpux9* | hpux10* | hpux11*)
8845  # Give a soname corresponding to the major version so that dld.sl refuses to
8846  # link against other versions.
8847  version_type=sunos
8848  need_lib_prefix=no
8849  need_version=no
8850  case $host_cpu in
8851  ia64*)
8852    shrext_cmds='.so'
8853    hardcode_into_libs=yes
8854    dynamic_linker="$host_os dld.so"
8855    shlibpath_var=LD_LIBRARY_PATH
8856    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8857    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8858    soname_spec='${libname}${release}${shared_ext}$major'
8859    if test "X$HPUX_IA64_MODE" = X32; then
8860      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8861    else
8862      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8863    fi
8864    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8865    ;;
8866   hppa*64*)
8867     shrext_cmds='.sl'
8868     hardcode_into_libs=yes
8869     dynamic_linker="$host_os dld.sl"
8870     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8871     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8872     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8873     soname_spec='${libname}${release}${shared_ext}$major'
8874     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8875     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8876     ;;
8877   *)
8878    shrext_cmds='.sl'
8879    dynamic_linker="$host_os dld.sl"
8880    shlibpath_var=SHLIB_PATH
8881    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8882    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8883    soname_spec='${libname}${release}${shared_ext}$major'
8884    ;;
8885  esac
8886  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8887  postinstall_cmds='chmod 555 $lib'
8888  ;;
8889
8890interix3*)
8891  version_type=linux
8892  need_lib_prefix=no
8893  need_version=no
8894  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8895  soname_spec='${libname}${release}${shared_ext}$major'
8896  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8897  shlibpath_var=LD_LIBRARY_PATH
8898  shlibpath_overrides_runpath=no
8899  hardcode_into_libs=yes
8900  ;;
8901
8902irix5* | irix6* | nonstopux*)
8903  case $host_os in
8904    nonstopux*) version_type=nonstopux ;;
8905    *)
8906	if test "$lt_cv_prog_gnu_ld" = yes; then
8907		version_type=linux
8908	else
8909		version_type=irix
8910	fi ;;
8911  esac
8912  need_lib_prefix=no
8913  need_version=no
8914  soname_spec='${libname}${release}${shared_ext}$major'
8915  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8916  case $host_os in
8917  irix5* | nonstopux*)
8918    libsuff= shlibsuff=
8919    ;;
8920  *)
8921    case $LD in # libtool.m4 will add one of these switches to LD
8922    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8923      libsuff= shlibsuff= libmagic=32-bit;;
8924    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8925      libsuff=32 shlibsuff=N32 libmagic=N32;;
8926    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8927      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8928    *) libsuff= shlibsuff= libmagic=never-match;;
8929    esac
8930    ;;
8931  esac
8932  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8933  shlibpath_overrides_runpath=no
8934  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8935  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8936  hardcode_into_libs=yes
8937  ;;
8938
8939# No shared lib support for Linux oldld, aout, or coff.
8940linux*oldld* | linux*aout* | linux*coff*)
8941  dynamic_linker=no
8942  ;;
8943
8944# This must be Linux ELF.
8945linux*)
8946  version_type=linux
8947  need_lib_prefix=no
8948  need_version=no
8949  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8950  soname_spec='${libname}${release}${shared_ext}$major'
8951  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8952  shlibpath_var=LD_LIBRARY_PATH
8953  shlibpath_overrides_runpath=no
8954  # This implies no fast_install, which is unacceptable.
8955  # Some rework will be needed to allow for fast_install
8956  # before this can be enabled.
8957  hardcode_into_libs=yes
8958
8959  # Append ld.so.conf contents to the search path
8960  if test -f /etc/ld.so.conf; then
8961    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' ' '`
8962    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8963  fi
8964
8965  # We used to test for /lib/ld.so.1 and disable shared libraries on
8966  # powerpc, because MkLinux only supported shared libraries with the
8967  # GNU dynamic linker.  Since this was broken with cross compilers,
8968  # most powerpc-linux boxes support dynamic linking these days and
8969  # people can always --disable-shared, the test was removed, and we
8970  # assume the GNU/Linux dynamic linker is in use.
8971  dynamic_linker='GNU/Linux ld.so'
8972  ;;
8973
8974knetbsd*-gnu)
8975  version_type=linux
8976  need_lib_prefix=no
8977  need_version=no
8978  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8979  soname_spec='${libname}${release}${shared_ext}$major'
8980  shlibpath_var=LD_LIBRARY_PATH
8981  shlibpath_overrides_runpath=no
8982  hardcode_into_libs=yes
8983  dynamic_linker='GNU ld.so'
8984  ;;
8985
8986netbsd*)
8987  version_type=sunos
8988  need_lib_prefix=no
8989  need_version=no
8990  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8991    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8992    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8993    dynamic_linker='NetBSD (a.out) ld.so'
8994  else
8995    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8996    soname_spec='${libname}${release}${shared_ext}$major'
8997    dynamic_linker='NetBSD ld.elf_so'
8998  fi
8999  shlibpath_var=LD_LIBRARY_PATH
9000  shlibpath_overrides_runpath=yes
9001  hardcode_into_libs=yes
9002  ;;
9003
9004newsos6)
9005  version_type=linux
9006  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9007  shlibpath_var=LD_LIBRARY_PATH
9008  shlibpath_overrides_runpath=yes
9009  ;;
9010
9011nto-qnx*)
9012  version_type=linux
9013  need_lib_prefix=no
9014  need_version=no
9015  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9016  soname_spec='${libname}${release}${shared_ext}$major'
9017  shlibpath_var=LD_LIBRARY_PATH
9018  shlibpath_overrides_runpath=yes
9019  ;;
9020
9021openbsd*)
9022  version_type=sunos
9023  sys_lib_dlsearch_path_spec="/usr/lib"
9024  need_lib_prefix=no
9025  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9026  case $host_os in
9027    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9028    *)                         need_version=no  ;;
9029  esac
9030  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9031  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9032  shlibpath_var=LD_LIBRARY_PATH
9033  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9034    case $host_os in
9035      openbsd2.[89] | openbsd2.[89].*)
9036	shlibpath_overrides_runpath=no
9037	;;
9038      *)
9039	shlibpath_overrides_runpath=yes
9040	;;
9041      esac
9042  else
9043    shlibpath_overrides_runpath=yes
9044  fi
9045  ;;
9046
9047os2*)
9048  libname_spec='$name'
9049  shrext_cmds=".dll"
9050  need_lib_prefix=no
9051  library_names_spec='$libname${shared_ext} $libname.a'
9052  dynamic_linker='OS/2 ld.exe'
9053  shlibpath_var=LIBPATH
9054  ;;
9055
9056osf3* | osf4* | osf5*)
9057  version_type=osf
9058  need_lib_prefix=no
9059  need_version=no
9060  soname_spec='${libname}${release}${shared_ext}$major'
9061  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9062  shlibpath_var=LD_LIBRARY_PATH
9063  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9064  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9065  ;;
9066
9067solaris*)
9068  version_type=linux
9069  need_lib_prefix=no
9070  need_version=no
9071  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9072  soname_spec='${libname}${release}${shared_ext}$major'
9073  shlibpath_var=LD_LIBRARY_PATH
9074  shlibpath_overrides_runpath=yes
9075  hardcode_into_libs=yes
9076  # ldd complains unless libraries are executable
9077  postinstall_cmds='chmod +x $lib'
9078  ;;
9079
9080sunos4*)
9081  version_type=sunos
9082  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9083  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9084  shlibpath_var=LD_LIBRARY_PATH
9085  shlibpath_overrides_runpath=yes
9086  if test "$with_gnu_ld" = yes; then
9087    need_lib_prefix=no
9088  fi
9089  need_version=yes
9090  ;;
9091
9092sysv4 | sysv4.3*)
9093  version_type=linux
9094  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9095  soname_spec='${libname}${release}${shared_ext}$major'
9096  shlibpath_var=LD_LIBRARY_PATH
9097  case $host_vendor in
9098    sni)
9099      shlibpath_overrides_runpath=no
9100      need_lib_prefix=no
9101      export_dynamic_flag_spec='${wl}-Blargedynsym'
9102      runpath_var=LD_RUN_PATH
9103      ;;
9104    siemens)
9105      need_lib_prefix=no
9106      ;;
9107    motorola)
9108      need_lib_prefix=no
9109      need_version=no
9110      shlibpath_overrides_runpath=no
9111      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9112      ;;
9113  esac
9114  ;;
9115
9116sysv4*MP*)
9117  if test -d /usr/nec ;then
9118    version_type=linux
9119    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9120    soname_spec='$libname${shared_ext}.$major'
9121    shlibpath_var=LD_LIBRARY_PATH
9122  fi
9123  ;;
9124
9125sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9126  version_type=freebsd-elf
9127  need_lib_prefix=no
9128  need_version=no
9129  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9130  soname_spec='${libname}${release}${shared_ext}$major'
9131  shlibpath_var=LD_LIBRARY_PATH
9132  hardcode_into_libs=yes
9133  if test "$with_gnu_ld" = yes; then
9134    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9135    shlibpath_overrides_runpath=no
9136  else
9137    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9138    shlibpath_overrides_runpath=yes
9139    case $host_os in
9140      sco3.2v5*)
9141        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9142	;;
9143    esac
9144  fi
9145  sys_lib_dlsearch_path_spec='/usr/lib'
9146  ;;
9147
9148uts4*)
9149  version_type=linux
9150  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9151  soname_spec='${libname}${release}${shared_ext}$major'
9152  shlibpath_var=LD_LIBRARY_PATH
9153  ;;
9154
9155*)
9156  dynamic_linker=no
9157  ;;
9158esac
9159{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9160echo "${ECHO_T}$dynamic_linker" >&6; }
9161test "$dynamic_linker" = no && can_build_shared=no
9162
9163variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9164if test "$GCC" = yes; then
9165  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9166fi
9167
9168
9169{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9170echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9171if test "${libltdl_cv_shlibext+set}" = set; then
9172  echo $ECHO_N "(cached) $ECHO_C" >&6
9173else
9174
9175module=yes
9176eval libltdl_cv_shlibext=$shrext_cmds
9177
9178fi
9179{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9180echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9181if test -n "$libltdl_cv_shlibext"; then
9182
9183cat >>confdefs.h <<_ACEOF
9184#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9185_ACEOF
9186
9187fi
9188
9189
9190{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9191echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9192if test "${libltdl_cv_shlibpath_var+set}" = set; then
9193  echo $ECHO_N "(cached) $ECHO_C" >&6
9194else
9195  libltdl_cv_shlibpath_var="$shlibpath_var"
9196fi
9197{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9198echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9199if test -n "$libltdl_cv_shlibpath_var"; then
9200
9201cat >>confdefs.h <<_ACEOF
9202#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9203_ACEOF
9204
9205fi
9206
9207
9208{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9209echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9210if test "${libltdl_cv_sys_search_path+set}" = set; then
9211  echo $ECHO_N "(cached) $ECHO_C" >&6
9212else
9213  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9214fi
9215{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9216echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9217if test -n "$libltdl_cv_sys_search_path"; then
9218  sys_search_path=
9219  for dir in $libltdl_cv_sys_search_path; do
9220    if test -z "$sys_search_path"; then
9221      sys_search_path="$dir"
9222    else
9223      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9224    fi
9225  done
9226
9227cat >>confdefs.h <<_ACEOF
9228#define LTDL_SYSSEARCHPATH "$sys_search_path"
9229_ACEOF
9230
9231fi
9232
9233{ echo "$as_me:$LINENO: checking for objdir" >&5
9234echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9235if test "${libltdl_cv_objdir+set}" = set; then
9236  echo $ECHO_N "(cached) $ECHO_C" >&6
9237else
9238  libltdl_cv_objdir="$objdir"
9239  if test -n "$objdir"; then
9240    :
9241  else
9242    rm -f .libs 2>/dev/null
9243    mkdir .libs 2>/dev/null
9244    if test -d .libs; then
9245      libltdl_cv_objdir=.libs
9246    else
9247      # MS-DOS does not allow filenames that begin with a dot.
9248      libltdl_cv_objdir=_libs
9249    fi
9250  rmdir .libs 2>/dev/null
9251  fi
9252
9253fi
9254{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9255echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9256
9257cat >>confdefs.h <<_ACEOF
9258#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9259_ACEOF
9260
9261
9262
9263
9264
9265
9266# Check for command to grab the raw symbol name followed by C symbol from nm.
9267{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9268echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9269if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9270  echo $ECHO_N "(cached) $ECHO_C" >&6
9271else
9272
9273# These are sane defaults that work on at least a few old systems.
9274# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9275
9276# Character class describing NM global symbol codes.
9277symcode='[BCDEGRST]'
9278
9279# Regexp to match symbols that can be accessed directly from C.
9280sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9281
9282# Transform an extracted symbol line into a proper C declaration
9283lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9284
9285# Transform an extracted symbol line into symbol name and symbol address
9286lt_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'"
9287
9288# Define system-specific variables.
9289case $host_os in
9290aix*)
9291  symcode='[BCDT]'
9292  ;;
9293cygwin* | mingw* | pw32*)
9294  symcode='[ABCDGISTW]'
9295  ;;
9296hpux*) # Its linker distinguishes data from code symbols
9297  if test "$host_cpu" = ia64; then
9298    symcode='[ABCDEGRST]'
9299  fi
9300  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9301  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'"
9302  ;;
9303linux*)
9304  if test "$host_cpu" = ia64; then
9305    symcode='[ABCDGIRSTW]'
9306    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9307    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'"
9308  fi
9309  ;;
9310irix* | nonstopux*)
9311  symcode='[BCDEGRST]'
9312  ;;
9313osf*)
9314  symcode='[BCDEGQRST]'
9315  ;;
9316solaris*)
9317  symcode='[BDRT]'
9318  ;;
9319sco3.2v5*)
9320  symcode='[DT]'
9321  ;;
9322sysv4.2uw2*)
9323  symcode='[DT]'
9324  ;;
9325sysv5* | sco5v6* | unixware* | OpenUNIX*)
9326  symcode='[ABDT]'
9327  ;;
9328sysv4)
9329  symcode='[DFNSTU]'
9330  ;;
9331esac
9332
9333# Handle CRLF in mingw tool chain
9334opt_cr=
9335case $build_os in
9336mingw*)
9337  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9338  ;;
9339esac
9340
9341# If we're using GNU nm, then use its standard symbol codes.
9342case `$NM -V 2>&1` in
9343*GNU* | *'with BFD'*)
9344  symcode='[ABCDGIRSTW]' ;;
9345esac
9346
9347# Try without a prefix undercore, then with it.
9348for ac_symprfx in "" "_"; do
9349
9350  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9351  symxfrm="\\1 $ac_symprfx\\2 \\2"
9352
9353  # Write the raw and C identifiers.
9354  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9355
9356  # Check to see that the pipe works correctly.
9357  pipe_works=no
9358
9359  rm -f conftest*
9360  cat > conftest.$ac_ext <<EOF
9361#ifdef __cplusplus
9362extern "C" {
9363#endif
9364char nm_test_var;
9365void nm_test_func(){}
9366#ifdef __cplusplus
9367}
9368#endif
9369int main(){nm_test_var='a';nm_test_func();return(0);}
9370EOF
9371
9372  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9373  (eval $ac_compile) 2>&5
9374  ac_status=$?
9375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376  (exit $ac_status); }; then
9377    # Now try to grab the symbols.
9378    nlist=conftest.nm
9379    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9380  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9381  ac_status=$?
9382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383  (exit $ac_status); } && test -s "$nlist"; then
9384      # Try sorting and uniquifying the output.
9385      if sort "$nlist" | uniq > "$nlist"T; then
9386	mv -f "$nlist"T "$nlist"
9387      else
9388	rm -f "$nlist"T
9389      fi
9390
9391      # Make sure that we snagged all the symbols we need.
9392      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9393	if grep ' nm_test_func$' "$nlist" >/dev/null; then
9394	  cat <<EOF > conftest.$ac_ext
9395#ifdef __cplusplus
9396extern "C" {
9397#endif
9398
9399EOF
9400	  # Now generate the symbol file.
9401	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9402
9403	  cat <<EOF >> conftest.$ac_ext
9404#if defined (__STDC__) && __STDC__
9405# define lt_ptr_t void *
9406#else
9407# define lt_ptr_t char *
9408# define const
9409#endif
9410
9411/* The mapping between symbol names and symbols. */
9412const struct {
9413  const char *name;
9414  lt_ptr_t address;
9415}
9416lt_preloaded_symbols[] =
9417{
9418EOF
9419	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9420	  cat <<\EOF >> conftest.$ac_ext
9421  {0, (lt_ptr_t) 0}
9422};
9423
9424#ifdef __cplusplus
9425}
9426#endif
9427EOF
9428	  # Now try linking the two files.
9429	  mv conftest.$ac_objext conftstm.$ac_objext
9430	  lt_save_LIBS="$LIBS"
9431	  lt_save_CFLAGS="$CFLAGS"
9432	  LIBS="conftstm.$ac_objext"
9433	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9434	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9435  (eval $ac_link) 2>&5
9436  ac_status=$?
9437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9439	    pipe_works=yes
9440	  fi
9441	  LIBS="$lt_save_LIBS"
9442	  CFLAGS="$lt_save_CFLAGS"
9443	else
9444	  echo "cannot find nm_test_func in $nlist" >&5
9445	fi
9446      else
9447	echo "cannot find nm_test_var in $nlist" >&5
9448      fi
9449    else
9450      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9451    fi
9452  else
9453    echo "$progname: failed program was:" >&5
9454    cat conftest.$ac_ext >&5
9455  fi
9456  rm -f conftest* conftst*
9457
9458  # Do not use the global_symbol_pipe unless it works.
9459  if test "$pipe_works" = yes; then
9460    break
9461  else
9462    lt_cv_sys_global_symbol_pipe=
9463  fi
9464done
9465
9466fi
9467
9468if test -z "$lt_cv_sys_global_symbol_pipe"; then
9469  lt_cv_sys_global_symbol_to_cdecl=
9470fi
9471if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9472  { echo "$as_me:$LINENO: result: failed" >&5
9473echo "${ECHO_T}failed" >&6; }
9474else
9475  { echo "$as_me:$LINENO: result: ok" >&5
9476echo "${ECHO_T}ok" >&6; }
9477fi
9478
9479
9480{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9481echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9482if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9483  echo $ECHO_N "(cached) $ECHO_C" >&6
9484else
9485  if test -n "$lt_cv_sys_global_symbol_pipe"; then
9486    libltdl_cv_preloaded_symbols=yes
9487  else
9488    libltdl_cv_preloaded_symbols=no
9489  fi
9490
9491fi
9492{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9493echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9494if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9495
9496cat >>confdefs.h <<\_ACEOF
9497#define HAVE_PRELOADED_SYMBOLS 1
9498_ACEOF
9499
9500fi
9501
9502LIBADD_DL=
9503
9504ac_ext=c
9505ac_cpp='$CPP $CPPFLAGS'
9506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9508ac_compiler_gnu=$ac_cv_c_compiler_gnu
9509
9510
9511{ echo "$as_me:$LINENO: checking for shl_load" >&5
9512echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9513if test "${ac_cv_func_shl_load+set}" = set; then
9514  echo $ECHO_N "(cached) $ECHO_C" >&6
9515else
9516  cat >conftest.$ac_ext <<_ACEOF
9517/* confdefs.h.  */
9518_ACEOF
9519cat confdefs.h >>conftest.$ac_ext
9520cat >>conftest.$ac_ext <<_ACEOF
9521/* end confdefs.h.  */
9522/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9523   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9524#define shl_load innocuous_shl_load
9525
9526/* System header to define __stub macros and hopefully few prototypes,
9527    which can conflict with char shl_load (); below.
9528    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9529    <limits.h> exists even on freestanding compilers.  */
9530
9531#ifdef __STDC__
9532# include <limits.h>
9533#else
9534# include <assert.h>
9535#endif
9536
9537#undef shl_load
9538
9539/* Override any GCC internal prototype to avoid an error.
9540   Use char because int might match the return type of a GCC
9541   builtin and then its argument prototype would still apply.  */
9542#ifdef __cplusplus
9543extern "C"
9544#endif
9545char shl_load ();
9546/* The GNU C library defines this for functions which it implements
9547    to always fail with ENOSYS.  Some functions are actually named
9548    something starting with __ and the normal name is an alias.  */
9549#if defined __stub_shl_load || defined __stub___shl_load
9550choke me
9551#endif
9552
9553int
9554main ()
9555{
9556return shl_load ();
9557  ;
9558  return 0;
9559}
9560_ACEOF
9561rm -f conftest.$ac_objext conftest$ac_exeext
9562if { (ac_try="$ac_link"
9563case "(($ac_try" in
9564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9565  *) ac_try_echo=$ac_try;;
9566esac
9567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9568  (eval "$ac_link") 2>conftest.er1
9569  ac_status=$?
9570  grep -v '^ *+' conftest.er1 >conftest.err
9571  rm -f conftest.er1
9572  cat conftest.err >&5
9573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574  (exit $ac_status); } &&
9575	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9576  { (case "(($ac_try" in
9577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9578  *) ac_try_echo=$ac_try;;
9579esac
9580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9581  (eval "$ac_try") 2>&5
9582  ac_status=$?
9583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584  (exit $ac_status); }; } &&
9585	 { ac_try='test -s conftest$ac_exeext'
9586  { (case "(($ac_try" in
9587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9588  *) ac_try_echo=$ac_try;;
9589esac
9590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9591  (eval "$ac_try") 2>&5
9592  ac_status=$?
9593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594  (exit $ac_status); }; }; then
9595  ac_cv_func_shl_load=yes
9596else
9597  echo "$as_me: failed program was:" >&5
9598sed 's/^/| /' conftest.$ac_ext >&5
9599
9600	ac_cv_func_shl_load=no
9601fi
9602
9603rm -f core conftest.err conftest.$ac_objext \
9604      conftest$ac_exeext conftest.$ac_ext
9605fi
9606{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9607echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9608if test $ac_cv_func_shl_load = yes; then
9609
9610cat >>confdefs.h <<\_ACEOF
9611#define HAVE_SHL_LOAD 1
9612_ACEOF
9613
9614else
9615  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9616echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9617if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9618  echo $ECHO_N "(cached) $ECHO_C" >&6
9619else
9620  ac_check_lib_save_LIBS=$LIBS
9621LIBS="-ldld  $LIBS"
9622cat >conftest.$ac_ext <<_ACEOF
9623/* confdefs.h.  */
9624_ACEOF
9625cat confdefs.h >>conftest.$ac_ext
9626cat >>conftest.$ac_ext <<_ACEOF
9627/* end confdefs.h.  */
9628
9629/* Override any GCC internal prototype to avoid an error.
9630   Use char because int might match the return type of a GCC
9631   builtin and then its argument prototype would still apply.  */
9632#ifdef __cplusplus
9633extern "C"
9634#endif
9635char shl_load ();
9636int
9637main ()
9638{
9639return shl_load ();
9640  ;
9641  return 0;
9642}
9643_ACEOF
9644rm -f conftest.$ac_objext conftest$ac_exeext
9645if { (ac_try="$ac_link"
9646case "(($ac_try" in
9647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648  *) ac_try_echo=$ac_try;;
9649esac
9650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9651  (eval "$ac_link") 2>conftest.er1
9652  ac_status=$?
9653  grep -v '^ *+' conftest.er1 >conftest.err
9654  rm -f conftest.er1
9655  cat conftest.err >&5
9656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657  (exit $ac_status); } &&
9658	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9659  { (case "(($ac_try" in
9660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661  *) ac_try_echo=$ac_try;;
9662esac
9663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664  (eval "$ac_try") 2>&5
9665  ac_status=$?
9666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667  (exit $ac_status); }; } &&
9668	 { ac_try='test -s conftest$ac_exeext'
9669  { (case "(($ac_try" in
9670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671  *) ac_try_echo=$ac_try;;
9672esac
9673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9674  (eval "$ac_try") 2>&5
9675  ac_status=$?
9676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677  (exit $ac_status); }; }; then
9678  ac_cv_lib_dld_shl_load=yes
9679else
9680  echo "$as_me: failed program was:" >&5
9681sed 's/^/| /' conftest.$ac_ext >&5
9682
9683	ac_cv_lib_dld_shl_load=no
9684fi
9685
9686rm -f core conftest.err conftest.$ac_objext \
9687      conftest$ac_exeext conftest.$ac_ext
9688LIBS=$ac_check_lib_save_LIBS
9689fi
9690{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9691echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9692if test $ac_cv_lib_dld_shl_load = yes; then
9693
9694cat >>confdefs.h <<\_ACEOF
9695#define HAVE_SHL_LOAD 1
9696_ACEOF
9697
9698	LIBADD_DL="$LIBADD_DL -ldld"
9699else
9700  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9701echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9702if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9703  echo $ECHO_N "(cached) $ECHO_C" >&6
9704else
9705  ac_check_lib_save_LIBS=$LIBS
9706LIBS="-ldl  $LIBS"
9707cat >conftest.$ac_ext <<_ACEOF
9708/* confdefs.h.  */
9709_ACEOF
9710cat confdefs.h >>conftest.$ac_ext
9711cat >>conftest.$ac_ext <<_ACEOF
9712/* end confdefs.h.  */
9713
9714/* Override any GCC internal prototype to avoid an error.
9715   Use char because int might match the return type of a GCC
9716   builtin and then its argument prototype would still apply.  */
9717#ifdef __cplusplus
9718extern "C"
9719#endif
9720char dlopen ();
9721int
9722main ()
9723{
9724return dlopen ();
9725  ;
9726  return 0;
9727}
9728_ACEOF
9729rm -f conftest.$ac_objext conftest$ac_exeext
9730if { (ac_try="$ac_link"
9731case "(($ac_try" in
9732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9733  *) ac_try_echo=$ac_try;;
9734esac
9735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9736  (eval "$ac_link") 2>conftest.er1
9737  ac_status=$?
9738  grep -v '^ *+' conftest.er1 >conftest.err
9739  rm -f conftest.er1
9740  cat conftest.err >&5
9741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742  (exit $ac_status); } &&
9743	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9744  { (case "(($ac_try" in
9745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746  *) ac_try_echo=$ac_try;;
9747esac
9748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9749  (eval "$ac_try") 2>&5
9750  ac_status=$?
9751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752  (exit $ac_status); }; } &&
9753	 { ac_try='test -s conftest$ac_exeext'
9754  { (case "(($ac_try" in
9755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756  *) ac_try_echo=$ac_try;;
9757esac
9758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9759  (eval "$ac_try") 2>&5
9760  ac_status=$?
9761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762  (exit $ac_status); }; }; then
9763  ac_cv_lib_dl_dlopen=yes
9764else
9765  echo "$as_me: failed program was:" >&5
9766sed 's/^/| /' conftest.$ac_ext >&5
9767
9768	ac_cv_lib_dl_dlopen=no
9769fi
9770
9771rm -f core conftest.err conftest.$ac_objext \
9772      conftest$ac_exeext conftest.$ac_ext
9773LIBS=$ac_check_lib_save_LIBS
9774fi
9775{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9776echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9777if test $ac_cv_lib_dl_dlopen = yes; then
9778
9779cat >>confdefs.h <<\_ACEOF
9780#define HAVE_LIBDL 1
9781_ACEOF
9782
9783	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9784else
9785  cat >conftest.$ac_ext <<_ACEOF
9786/* confdefs.h.  */
9787_ACEOF
9788cat confdefs.h >>conftest.$ac_ext
9789cat >>conftest.$ac_ext <<_ACEOF
9790/* end confdefs.h.  */
9791#if HAVE_DLFCN_H
9792#  include <dlfcn.h>
9793#endif
9794
9795int
9796main ()
9797{
9798dlopen(0, 0);
9799  ;
9800  return 0;
9801}
9802_ACEOF
9803rm -f conftest.$ac_objext conftest$ac_exeext
9804if { (ac_try="$ac_link"
9805case "(($ac_try" in
9806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807  *) ac_try_echo=$ac_try;;
9808esac
9809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810  (eval "$ac_link") 2>conftest.er1
9811  ac_status=$?
9812  grep -v '^ *+' conftest.er1 >conftest.err
9813  rm -f conftest.er1
9814  cat conftest.err >&5
9815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816  (exit $ac_status); } &&
9817	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9818  { (case "(($ac_try" in
9819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820  *) ac_try_echo=$ac_try;;
9821esac
9822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823  (eval "$ac_try") 2>&5
9824  ac_status=$?
9825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826  (exit $ac_status); }; } &&
9827	 { ac_try='test -s conftest$ac_exeext'
9828  { (case "(($ac_try" in
9829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830  *) ac_try_echo=$ac_try;;
9831esac
9832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833  (eval "$ac_try") 2>&5
9834  ac_status=$?
9835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836  (exit $ac_status); }; }; then
9837
9838cat >>confdefs.h <<\_ACEOF
9839#define HAVE_LIBDL 1
9840_ACEOF
9841 libltdl_cv_func_dlopen="yes"
9842else
9843  echo "$as_me: failed program was:" >&5
9844sed 's/^/| /' conftest.$ac_ext >&5
9845
9846	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9847echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9848if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9849  echo $ECHO_N "(cached) $ECHO_C" >&6
9850else
9851  ac_check_lib_save_LIBS=$LIBS
9852LIBS="-lsvld  $LIBS"
9853cat >conftest.$ac_ext <<_ACEOF
9854/* confdefs.h.  */
9855_ACEOF
9856cat confdefs.h >>conftest.$ac_ext
9857cat >>conftest.$ac_ext <<_ACEOF
9858/* end confdefs.h.  */
9859
9860/* Override any GCC internal prototype to avoid an error.
9861   Use char because int might match the return type of a GCC
9862   builtin and then its argument prototype would still apply.  */
9863#ifdef __cplusplus
9864extern "C"
9865#endif
9866char dlopen ();
9867int
9868main ()
9869{
9870return dlopen ();
9871  ;
9872  return 0;
9873}
9874_ACEOF
9875rm -f conftest.$ac_objext conftest$ac_exeext
9876if { (ac_try="$ac_link"
9877case "(($ac_try" in
9878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879  *) ac_try_echo=$ac_try;;
9880esac
9881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882  (eval "$ac_link") 2>conftest.er1
9883  ac_status=$?
9884  grep -v '^ *+' conftest.er1 >conftest.err
9885  rm -f conftest.er1
9886  cat conftest.err >&5
9887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888  (exit $ac_status); } &&
9889	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9890  { (case "(($ac_try" in
9891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892  *) ac_try_echo=$ac_try;;
9893esac
9894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895  (eval "$ac_try") 2>&5
9896  ac_status=$?
9897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898  (exit $ac_status); }; } &&
9899	 { ac_try='test -s conftest$ac_exeext'
9900  { (case "(($ac_try" in
9901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9902  *) ac_try_echo=$ac_try;;
9903esac
9904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9905  (eval "$ac_try") 2>&5
9906  ac_status=$?
9907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908  (exit $ac_status); }; }; then
9909  ac_cv_lib_svld_dlopen=yes
9910else
9911  echo "$as_me: failed program was:" >&5
9912sed 's/^/| /' conftest.$ac_ext >&5
9913
9914	ac_cv_lib_svld_dlopen=no
9915fi
9916
9917rm -f core conftest.err conftest.$ac_objext \
9918      conftest$ac_exeext conftest.$ac_ext
9919LIBS=$ac_check_lib_save_LIBS
9920fi
9921{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9922echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9923if test $ac_cv_lib_svld_dlopen = yes; then
9924
9925cat >>confdefs.h <<\_ACEOF
9926#define HAVE_LIBDL 1
9927_ACEOF
9928
9929	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9930else
9931  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9932echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9933if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9934  echo $ECHO_N "(cached) $ECHO_C" >&6
9935else
9936  ac_check_lib_save_LIBS=$LIBS
9937LIBS="-ldld  $LIBS"
9938cat >conftest.$ac_ext <<_ACEOF
9939/* confdefs.h.  */
9940_ACEOF
9941cat confdefs.h >>conftest.$ac_ext
9942cat >>conftest.$ac_ext <<_ACEOF
9943/* end confdefs.h.  */
9944
9945/* Override any GCC internal prototype to avoid an error.
9946   Use char because int might match the return type of a GCC
9947   builtin and then its argument prototype would still apply.  */
9948#ifdef __cplusplus
9949extern "C"
9950#endif
9951char dld_link ();
9952int
9953main ()
9954{
9955return dld_link ();
9956  ;
9957  return 0;
9958}
9959_ACEOF
9960rm -f conftest.$ac_objext conftest$ac_exeext
9961if { (ac_try="$ac_link"
9962case "(($ac_try" in
9963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964  *) ac_try_echo=$ac_try;;
9965esac
9966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967  (eval "$ac_link") 2>conftest.er1
9968  ac_status=$?
9969  grep -v '^ *+' conftest.er1 >conftest.err
9970  rm -f conftest.er1
9971  cat conftest.err >&5
9972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973  (exit $ac_status); } &&
9974	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9975  { (case "(($ac_try" in
9976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9977  *) ac_try_echo=$ac_try;;
9978esac
9979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9980  (eval "$ac_try") 2>&5
9981  ac_status=$?
9982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983  (exit $ac_status); }; } &&
9984	 { ac_try='test -s conftest$ac_exeext'
9985  { (case "(($ac_try" in
9986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987  *) ac_try_echo=$ac_try;;
9988esac
9989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9990  (eval "$ac_try") 2>&5
9991  ac_status=$?
9992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993  (exit $ac_status); }; }; then
9994  ac_cv_lib_dld_dld_link=yes
9995else
9996  echo "$as_me: failed program was:" >&5
9997sed 's/^/| /' conftest.$ac_ext >&5
9998
9999	ac_cv_lib_dld_dld_link=no
10000fi
10001
10002rm -f core conftest.err conftest.$ac_objext \
10003      conftest$ac_exeext conftest.$ac_ext
10004LIBS=$ac_check_lib_save_LIBS
10005fi
10006{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10007echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10008if test $ac_cv_lib_dld_dld_link = yes; then
10009
10010cat >>confdefs.h <<\_ACEOF
10011#define HAVE_DLD 1
10012_ACEOF
10013
10014	 	LIBADD_DL="$LIBADD_DL -ldld"
10015else
10016  { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10017echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10018if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10019  echo $ECHO_N "(cached) $ECHO_C" >&6
10020else
10021  cat >conftest.$ac_ext <<_ACEOF
10022/* confdefs.h.  */
10023_ACEOF
10024cat confdefs.h >>conftest.$ac_ext
10025cat >>conftest.$ac_ext <<_ACEOF
10026/* end confdefs.h.  */
10027/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10028   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10029#define _dyld_func_lookup innocuous__dyld_func_lookup
10030
10031/* System header to define __stub macros and hopefully few prototypes,
10032    which can conflict with char _dyld_func_lookup (); below.
10033    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10034    <limits.h> exists even on freestanding compilers.  */
10035
10036#ifdef __STDC__
10037# include <limits.h>
10038#else
10039# include <assert.h>
10040#endif
10041
10042#undef _dyld_func_lookup
10043
10044/* Override any GCC internal prototype to avoid an error.
10045   Use char because int might match the return type of a GCC
10046   builtin and then its argument prototype would still apply.  */
10047#ifdef __cplusplus
10048extern "C"
10049#endif
10050char _dyld_func_lookup ();
10051/* The GNU C library defines this for functions which it implements
10052    to always fail with ENOSYS.  Some functions are actually named
10053    something starting with __ and the normal name is an alias.  */
10054#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10055choke me
10056#endif
10057
10058int
10059main ()
10060{
10061return _dyld_func_lookup ();
10062  ;
10063  return 0;
10064}
10065_ACEOF
10066rm -f conftest.$ac_objext conftest$ac_exeext
10067if { (ac_try="$ac_link"
10068case "(($ac_try" in
10069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070  *) ac_try_echo=$ac_try;;
10071esac
10072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073  (eval "$ac_link") 2>conftest.er1
10074  ac_status=$?
10075  grep -v '^ *+' conftest.er1 >conftest.err
10076  rm -f conftest.er1
10077  cat conftest.err >&5
10078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079  (exit $ac_status); } &&
10080	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10081  { (case "(($ac_try" in
10082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10083  *) ac_try_echo=$ac_try;;
10084esac
10085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10086  (eval "$ac_try") 2>&5
10087  ac_status=$?
10088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089  (exit $ac_status); }; } &&
10090	 { ac_try='test -s conftest$ac_exeext'
10091  { (case "(($ac_try" in
10092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10093  *) ac_try_echo=$ac_try;;
10094esac
10095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10096  (eval "$ac_try") 2>&5
10097  ac_status=$?
10098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099  (exit $ac_status); }; }; then
10100  ac_cv_func__dyld_func_lookup=yes
10101else
10102  echo "$as_me: failed program was:" >&5
10103sed 's/^/| /' conftest.$ac_ext >&5
10104
10105	ac_cv_func__dyld_func_lookup=no
10106fi
10107
10108rm -f core conftest.err conftest.$ac_objext \
10109      conftest$ac_exeext conftest.$ac_ext
10110fi
10111{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10112echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10113if test $ac_cv_func__dyld_func_lookup = yes; then
10114
10115cat >>confdefs.h <<\_ACEOF
10116#define HAVE_DYLD 1
10117_ACEOF
10118
10119fi
10120
10121
10122fi
10123
10124
10125fi
10126
10127
10128fi
10129
10130rm -f core conftest.err conftest.$ac_objext \
10131      conftest$ac_exeext conftest.$ac_ext
10132
10133fi
10134
10135
10136fi
10137
10138
10139fi
10140
10141
10142if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10143then
10144  lt_save_LIBS="$LIBS"
10145  LIBS="$LIBS $LIBADD_DL"
10146
10147for ac_func in dlerror
10148do
10149as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10150{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10151echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10152if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10153  echo $ECHO_N "(cached) $ECHO_C" >&6
10154else
10155  cat >conftest.$ac_ext <<_ACEOF
10156/* confdefs.h.  */
10157_ACEOF
10158cat confdefs.h >>conftest.$ac_ext
10159cat >>conftest.$ac_ext <<_ACEOF
10160/* end confdefs.h.  */
10161/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10162   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10163#define $ac_func innocuous_$ac_func
10164
10165/* System header to define __stub macros and hopefully few prototypes,
10166    which can conflict with char $ac_func (); below.
10167    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10168    <limits.h> exists even on freestanding compilers.  */
10169
10170#ifdef __STDC__
10171# include <limits.h>
10172#else
10173# include <assert.h>
10174#endif
10175
10176#undef $ac_func
10177
10178/* Override any GCC internal prototype to avoid an error.
10179   Use char because int might match the return type of a GCC
10180   builtin and then its argument prototype would still apply.  */
10181#ifdef __cplusplus
10182extern "C"
10183#endif
10184char $ac_func ();
10185/* The GNU C library defines this for functions which it implements
10186    to always fail with ENOSYS.  Some functions are actually named
10187    something starting with __ and the normal name is an alias.  */
10188#if defined __stub_$ac_func || defined __stub___$ac_func
10189choke me
10190#endif
10191
10192int
10193main ()
10194{
10195return $ac_func ();
10196  ;
10197  return 0;
10198}
10199_ACEOF
10200rm -f conftest.$ac_objext conftest$ac_exeext
10201if { (ac_try="$ac_link"
10202case "(($ac_try" in
10203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204  *) ac_try_echo=$ac_try;;
10205esac
10206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207  (eval "$ac_link") 2>conftest.er1
10208  ac_status=$?
10209  grep -v '^ *+' conftest.er1 >conftest.err
10210  rm -f conftest.er1
10211  cat conftest.err >&5
10212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213  (exit $ac_status); } &&
10214	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10215  { (case "(($ac_try" in
10216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10217  *) ac_try_echo=$ac_try;;
10218esac
10219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10220  (eval "$ac_try") 2>&5
10221  ac_status=$?
10222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223  (exit $ac_status); }; } &&
10224	 { ac_try='test -s conftest$ac_exeext'
10225  { (case "(($ac_try" in
10226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227  *) ac_try_echo=$ac_try;;
10228esac
10229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230  (eval "$ac_try") 2>&5
10231  ac_status=$?
10232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233  (exit $ac_status); }; }; then
10234  eval "$as_ac_var=yes"
10235else
10236  echo "$as_me: failed program was:" >&5
10237sed 's/^/| /' conftest.$ac_ext >&5
10238
10239	eval "$as_ac_var=no"
10240fi
10241
10242rm -f core conftest.err conftest.$ac_objext \
10243      conftest$ac_exeext conftest.$ac_ext
10244fi
10245ac_res=`eval echo '${'$as_ac_var'}'`
10246	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10247echo "${ECHO_T}$ac_res" >&6; }
10248if test `eval echo '${'$as_ac_var'}'` = yes; then
10249  cat >>confdefs.h <<_ACEOF
10250#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10251_ACEOF
10252
10253fi
10254done
10255
10256  LIBS="$lt_save_LIBS"
10257fi
10258ac_ext=c
10259ac_cpp='$CPP $CPPFLAGS'
10260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10262ac_compiler_gnu=$ac_cv_c_compiler_gnu
10263
10264
10265
10266{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10267echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10268if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10269  echo $ECHO_N "(cached) $ECHO_C" >&6
10270else
10271  ac_cv_sys_symbol_underscore=no
10272  cat > conftest.$ac_ext <<EOF
10273void nm_test_func(){}
10274int main(){nm_test_func;return 0;}
10275EOF
10276  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10277  (eval $ac_compile) 2>&5
10278  ac_status=$?
10279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280  (exit $ac_status); }; then
10281    # Now try to grab the symbols.
10282    ac_nlist=conftest.nm
10283    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10284  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10285  ac_status=$?
10286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287  (exit $ac_status); } && test -s "$ac_nlist"; then
10288      # See whether the symbols have a leading underscore.
10289      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10290        ac_cv_sys_symbol_underscore=yes
10291      else
10292        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10293	  :
10294        else
10295	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10296        fi
10297      fi
10298    else
10299      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10300    fi
10301  else
10302    echo "configure: failed program was:" >&5
10303    cat conftest.c >&5
10304  fi
10305  rm -rf conftest*
10306
10307fi
10308{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10309echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10310
10311
10312if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10313  if test x"$libltdl_cv_func_dlopen" = xyes ||
10314     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10315	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10316echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10317if test "${libltdl_cv_need_uscore+set}" = set; then
10318  echo $ECHO_N "(cached) $ECHO_C" >&6
10319else
10320  libltdl_cv_need_uscore=unknown
10321          save_LIBS="$LIBS"
10322          LIBS="$LIBS $LIBADD_DL"
10323	  if test "$cross_compiling" = yes; then :
10324  libltdl_cv_need_uscore=cross
10325else
10326  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10327  lt_status=$lt_dlunknown
10328  cat > conftest.$ac_ext <<EOF
10329#line 10329 "configure"
10330#include "confdefs.h"
10331
10332#if HAVE_DLFCN_H
10333#include <dlfcn.h>
10334#endif
10335
10336#include <stdio.h>
10337
10338#ifdef RTLD_GLOBAL
10339#  define LT_DLGLOBAL		RTLD_GLOBAL
10340#else
10341#  ifdef DL_GLOBAL
10342#    define LT_DLGLOBAL		DL_GLOBAL
10343#  else
10344#    define LT_DLGLOBAL		0
10345#  endif
10346#endif
10347
10348/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10349   find out it does not work in some platform. */
10350#ifndef LT_DLLAZY_OR_NOW
10351#  ifdef RTLD_LAZY
10352#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10353#  else
10354#    ifdef DL_LAZY
10355#      define LT_DLLAZY_OR_NOW		DL_LAZY
10356#    else
10357#      ifdef RTLD_NOW
10358#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10359#      else
10360#        ifdef DL_NOW
10361#          define LT_DLLAZY_OR_NOW	DL_NOW
10362#        else
10363#          define LT_DLLAZY_OR_NOW	0
10364#        endif
10365#      endif
10366#    endif
10367#  endif
10368#endif
10369
10370#ifdef __cplusplus
10371extern "C" void exit (int);
10372#endif
10373
10374void fnord() { int i=42;}
10375int main ()
10376{
10377  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10378  int status = $lt_dlunknown;
10379
10380  if (self)
10381    {
10382      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10383      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10384      /* dlclose (self); */
10385    }
10386  else
10387    puts (dlerror ());
10388
10389    exit (status);
10390}
10391EOF
10392  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10393  (eval $ac_link) 2>&5
10394  ac_status=$?
10395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10397    (./conftest; exit; ) >&5 2>/dev/null
10398    lt_status=$?
10399    case x$lt_status in
10400      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10401      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10402      x$lt_dlunknown|x*)  ;;
10403    esac
10404  else :
10405    # compilation failed
10406
10407  fi
10408fi
10409rm -fr conftest*
10410
10411	  LIBS="$save_LIBS"
10412
10413fi
10414{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10415echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10416  fi
10417fi
10418
10419if test x"$libltdl_cv_need_uscore" = xyes; then
10420
10421cat >>confdefs.h <<\_ACEOF
10422#define NEED_USCORE 1
10423_ACEOF
10424
10425fi
10426
10427
10428{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10429echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10430if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10431  echo $ECHO_N "(cached) $ECHO_C" >&6
10432else
10433  # PORTME does your system automatically load deplibs for dlopen?
10434  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10435  # For now, we just catch OSes we know something about -- in the
10436  # future, we'll try test this programmatically.
10437  libltdl_cv_sys_dlopen_deplibs=unknown
10438  case "$host_os" in
10439  aix3*|aix4.1.*|aix4.2.*)
10440    # Unknown whether this is true for these versions of AIX, but
10441    # we want this `case' here to explicitly catch those versions.
10442    libltdl_cv_sys_dlopen_deplibs=unknown
10443    ;;
10444  aix[45]*)
10445    libltdl_cv_sys_dlopen_deplibs=yes
10446    ;;
10447  darwin*)
10448    # Assuming the user has installed a libdl from somewhere, this is true
10449    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10450    libltdl_cv_sys_dlopen_deplibs=yes
10451    ;;
10452  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10453    # GNU and its variants, using gnu ld.so (Glibc)
10454    libltdl_cv_sys_dlopen_deplibs=yes
10455    ;;
10456  hpux10*|hpux11*)
10457    libltdl_cv_sys_dlopen_deplibs=yes
10458    ;;
10459  interix*)
10460    libltdl_cv_sys_dlopen_deplibs=yes
10461    ;;
10462  irix[12345]*|irix6.[01]*)
10463    # Catch all versions of IRIX before 6.2, and indicate that we don't
10464    # know how it worked for any of those versions.
10465    libltdl_cv_sys_dlopen_deplibs=unknown
10466    ;;
10467  irix*)
10468    # The case above catches anything before 6.2, and it's known that
10469    # at 6.2 and later dlopen does load deplibs.
10470    libltdl_cv_sys_dlopen_deplibs=yes
10471    ;;
10472  netbsd*)
10473    libltdl_cv_sys_dlopen_deplibs=yes
10474    ;;
10475  openbsd*)
10476    libltdl_cv_sys_dlopen_deplibs=yes
10477    ;;
10478  osf[1234]*)
10479    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10480    # it did *not* use an RPATH in a shared library to find objects the
10481    # library depends on, so we explictly say `no'.
10482    libltdl_cv_sys_dlopen_deplibs=no
10483    ;;
10484  osf5.0|osf5.0a|osf5.1)
10485    # dlopen *does* load deplibs and with the right loader patch applied
10486    # it even uses RPATH in a shared library to search for shared objects
10487    # that the library depends on, but there's no easy way to know if that
10488    # patch is installed.  Since this is the case, all we can really
10489    # say is unknown -- it depends on the patch being installed.  If
10490    # it is, this changes to `yes'.  Without it, it would be `no'.
10491    libltdl_cv_sys_dlopen_deplibs=unknown
10492    ;;
10493  osf*)
10494    # the two cases above should catch all versions of osf <= 5.1.  Read
10495    # the comments above for what we know about them.
10496    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10497    # is used to find them so we can finally say `yes'.
10498    libltdl_cv_sys_dlopen_deplibs=yes
10499    ;;
10500  solaris*)
10501    libltdl_cv_sys_dlopen_deplibs=yes
10502    ;;
10503  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10504    libltdl_cv_sys_dlopen_deplibs=yes
10505    ;;
10506  esac
10507
10508fi
10509{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10510echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10511if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10512
10513cat >>confdefs.h <<\_ACEOF
10514#define LTDL_DLOPEN_DEPLIBS 1
10515_ACEOF
10516
10517fi
10518
10519
10520for ac_header in argz.h
10521do
10522as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10523if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10524  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10526if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10527  echo $ECHO_N "(cached) $ECHO_C" >&6
10528fi
10529ac_res=`eval echo '${'$as_ac_Header'}'`
10530	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10531echo "${ECHO_T}$ac_res" >&6; }
10532else
10533  # Is the header compilable?
10534{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10535echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10536cat >conftest.$ac_ext <<_ACEOF
10537/* confdefs.h.  */
10538_ACEOF
10539cat confdefs.h >>conftest.$ac_ext
10540cat >>conftest.$ac_ext <<_ACEOF
10541/* end confdefs.h.  */
10542$ac_includes_default
10543#include <$ac_header>
10544_ACEOF
10545rm -f conftest.$ac_objext
10546if { (ac_try="$ac_compile"
10547case "(($ac_try" in
10548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549  *) ac_try_echo=$ac_try;;
10550esac
10551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552  (eval "$ac_compile") 2>conftest.er1
10553  ac_status=$?
10554  grep -v '^ *+' conftest.er1 >conftest.err
10555  rm -f conftest.er1
10556  cat conftest.err >&5
10557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558  (exit $ac_status); } &&
10559	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10560  { (case "(($ac_try" in
10561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562  *) ac_try_echo=$ac_try;;
10563esac
10564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10565  (eval "$ac_try") 2>&5
10566  ac_status=$?
10567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568  (exit $ac_status); }; } &&
10569	 { ac_try='test -s conftest.$ac_objext'
10570  { (case "(($ac_try" in
10571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10572  *) ac_try_echo=$ac_try;;
10573esac
10574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10575  (eval "$ac_try") 2>&5
10576  ac_status=$?
10577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578  (exit $ac_status); }; }; then
10579  ac_header_compiler=yes
10580else
10581  echo "$as_me: failed program was:" >&5
10582sed 's/^/| /' conftest.$ac_ext >&5
10583
10584	ac_header_compiler=no
10585fi
10586
10587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10588{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10589echo "${ECHO_T}$ac_header_compiler" >&6; }
10590
10591# Is the header present?
10592{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10593echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10594cat >conftest.$ac_ext <<_ACEOF
10595/* confdefs.h.  */
10596_ACEOF
10597cat confdefs.h >>conftest.$ac_ext
10598cat >>conftest.$ac_ext <<_ACEOF
10599/* end confdefs.h.  */
10600#include <$ac_header>
10601_ACEOF
10602if { (ac_try="$ac_cpp conftest.$ac_ext"
10603case "(($ac_try" in
10604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605  *) ac_try_echo=$ac_try;;
10606esac
10607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10609  ac_status=$?
10610  grep -v '^ *+' conftest.er1 >conftest.err
10611  rm -f conftest.er1
10612  cat conftest.err >&5
10613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614  (exit $ac_status); } >/dev/null; then
10615  if test -s conftest.err; then
10616    ac_cpp_err=$ac_c_preproc_warn_flag
10617    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10618  else
10619    ac_cpp_err=
10620  fi
10621else
10622  ac_cpp_err=yes
10623fi
10624if test -z "$ac_cpp_err"; then
10625  ac_header_preproc=yes
10626else
10627  echo "$as_me: failed program was:" >&5
10628sed 's/^/| /' conftest.$ac_ext >&5
10629
10630  ac_header_preproc=no
10631fi
10632
10633rm -f conftest.err conftest.$ac_ext
10634{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10635echo "${ECHO_T}$ac_header_preproc" >&6; }
10636
10637# So?  What about this header?
10638case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10639  yes:no: )
10640    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10641echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10642    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10643echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10644    ac_header_preproc=yes
10645    ;;
10646  no:yes:* )
10647    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10648echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10649    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10650echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10651    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10652echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10653    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10654echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10655    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10656echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10657    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10658echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10659    ( cat <<\_ASBOX
10660## ----------------------------------- ##
10661## Report this to llvmbugs@cs.uiuc.edu ##
10662## ----------------------------------- ##
10663_ASBOX
10664     ) | sed "s/^/$as_me: WARNING:     /" >&2
10665    ;;
10666esac
10667{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10668echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10669if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10670  echo $ECHO_N "(cached) $ECHO_C" >&6
10671else
10672  eval "$as_ac_Header=\$ac_header_preproc"
10673fi
10674ac_res=`eval echo '${'$as_ac_Header'}'`
10675	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10676echo "${ECHO_T}$ac_res" >&6; }
10677
10678fi
10679if test `eval echo '${'$as_ac_Header'}'` = yes; then
10680  cat >>confdefs.h <<_ACEOF
10681#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10682_ACEOF
10683
10684fi
10685
10686done
10687
10688
10689{ echo "$as_me:$LINENO: checking for error_t" >&5
10690echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10691if test "${ac_cv_type_error_t+set}" = set; then
10692  echo $ECHO_N "(cached) $ECHO_C" >&6
10693else
10694  cat >conftest.$ac_ext <<_ACEOF
10695/* confdefs.h.  */
10696_ACEOF
10697cat confdefs.h >>conftest.$ac_ext
10698cat >>conftest.$ac_ext <<_ACEOF
10699/* end confdefs.h.  */
10700#if HAVE_ARGZ_H
10701#  include <argz.h>
10702#endif
10703
10704typedef error_t ac__type_new_;
10705int
10706main ()
10707{
10708if ((ac__type_new_ *) 0)
10709  return 0;
10710if (sizeof (ac__type_new_))
10711  return 0;
10712  ;
10713  return 0;
10714}
10715_ACEOF
10716rm -f conftest.$ac_objext
10717if { (ac_try="$ac_compile"
10718case "(($ac_try" in
10719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720  *) ac_try_echo=$ac_try;;
10721esac
10722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723  (eval "$ac_compile") 2>conftest.er1
10724  ac_status=$?
10725  grep -v '^ *+' conftest.er1 >conftest.err
10726  rm -f conftest.er1
10727  cat conftest.err >&5
10728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729  (exit $ac_status); } &&
10730	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10731  { (case "(($ac_try" in
10732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733  *) ac_try_echo=$ac_try;;
10734esac
10735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736  (eval "$ac_try") 2>&5
10737  ac_status=$?
10738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739  (exit $ac_status); }; } &&
10740	 { ac_try='test -s conftest.$ac_objext'
10741  { (case "(($ac_try" in
10742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743  *) ac_try_echo=$ac_try;;
10744esac
10745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746  (eval "$ac_try") 2>&5
10747  ac_status=$?
10748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749  (exit $ac_status); }; }; then
10750  ac_cv_type_error_t=yes
10751else
10752  echo "$as_me: failed program was:" >&5
10753sed 's/^/| /' conftest.$ac_ext >&5
10754
10755	ac_cv_type_error_t=no
10756fi
10757
10758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10759fi
10760{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10761echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10762if test $ac_cv_type_error_t = yes; then
10763
10764cat >>confdefs.h <<_ACEOF
10765#define HAVE_ERROR_T 1
10766_ACEOF
10767
10768
10769else
10770
10771cat >>confdefs.h <<\_ACEOF
10772#define error_t int
10773_ACEOF
10774
10775fi
10776
10777
10778
10779
10780
10781
10782
10783for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10784do
10785as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10786{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10787echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10788if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10789  echo $ECHO_N "(cached) $ECHO_C" >&6
10790else
10791  cat >conftest.$ac_ext <<_ACEOF
10792/* confdefs.h.  */
10793_ACEOF
10794cat confdefs.h >>conftest.$ac_ext
10795cat >>conftest.$ac_ext <<_ACEOF
10796/* end confdefs.h.  */
10797/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10798   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10799#define $ac_func innocuous_$ac_func
10800
10801/* System header to define __stub macros and hopefully few prototypes,
10802    which can conflict with char $ac_func (); below.
10803    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10804    <limits.h> exists even on freestanding compilers.  */
10805
10806#ifdef __STDC__
10807# include <limits.h>
10808#else
10809# include <assert.h>
10810#endif
10811
10812#undef $ac_func
10813
10814/* Override any GCC internal prototype to avoid an error.
10815   Use char because int might match the return type of a GCC
10816   builtin and then its argument prototype would still apply.  */
10817#ifdef __cplusplus
10818extern "C"
10819#endif
10820char $ac_func ();
10821/* The GNU C library defines this for functions which it implements
10822    to always fail with ENOSYS.  Some functions are actually named
10823    something starting with __ and the normal name is an alias.  */
10824#if defined __stub_$ac_func || defined __stub___$ac_func
10825choke me
10826#endif
10827
10828int
10829main ()
10830{
10831return $ac_func ();
10832  ;
10833  return 0;
10834}
10835_ACEOF
10836rm -f conftest.$ac_objext conftest$ac_exeext
10837if { (ac_try="$ac_link"
10838case "(($ac_try" in
10839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840  *) ac_try_echo=$ac_try;;
10841esac
10842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843  (eval "$ac_link") 2>conftest.er1
10844  ac_status=$?
10845  grep -v '^ *+' conftest.er1 >conftest.err
10846  rm -f conftest.er1
10847  cat conftest.err >&5
10848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849  (exit $ac_status); } &&
10850	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10851  { (case "(($ac_try" in
10852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853  *) ac_try_echo=$ac_try;;
10854esac
10855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10856  (eval "$ac_try") 2>&5
10857  ac_status=$?
10858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859  (exit $ac_status); }; } &&
10860	 { ac_try='test -s conftest$ac_exeext'
10861  { (case "(($ac_try" in
10862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10863  *) ac_try_echo=$ac_try;;
10864esac
10865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866  (eval "$ac_try") 2>&5
10867  ac_status=$?
10868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869  (exit $ac_status); }; }; then
10870  eval "$as_ac_var=yes"
10871else
10872  echo "$as_me: failed program was:" >&5
10873sed 's/^/| /' conftest.$ac_ext >&5
10874
10875	eval "$as_ac_var=no"
10876fi
10877
10878rm -f core conftest.err conftest.$ac_objext \
10879      conftest$ac_exeext conftest.$ac_ext
10880fi
10881ac_res=`eval echo '${'$as_ac_var'}'`
10882	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10883echo "${ECHO_T}$ac_res" >&6; }
10884if test `eval echo '${'$as_ac_var'}'` = yes; then
10885  cat >>confdefs.h <<_ACEOF
10886#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10887_ACEOF
10888
10889fi
10890done
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10920		  stdio.h unistd.h
10921do
10922as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10923if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10924  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10926if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10927  echo $ECHO_N "(cached) $ECHO_C" >&6
10928fi
10929ac_res=`eval echo '${'$as_ac_Header'}'`
10930	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10931echo "${ECHO_T}$ac_res" >&6; }
10932else
10933  # Is the header compilable?
10934{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10935echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10936cat >conftest.$ac_ext <<_ACEOF
10937/* confdefs.h.  */
10938_ACEOF
10939cat confdefs.h >>conftest.$ac_ext
10940cat >>conftest.$ac_ext <<_ACEOF
10941/* end confdefs.h.  */
10942$ac_includes_default
10943#include <$ac_header>
10944_ACEOF
10945rm -f conftest.$ac_objext
10946if { (ac_try="$ac_compile"
10947case "(($ac_try" in
10948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10949  *) ac_try_echo=$ac_try;;
10950esac
10951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10952  (eval "$ac_compile") 2>conftest.er1
10953  ac_status=$?
10954  grep -v '^ *+' conftest.er1 >conftest.err
10955  rm -f conftest.er1
10956  cat conftest.err >&5
10957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958  (exit $ac_status); } &&
10959	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10960  { (case "(($ac_try" in
10961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962  *) ac_try_echo=$ac_try;;
10963esac
10964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965  (eval "$ac_try") 2>&5
10966  ac_status=$?
10967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968  (exit $ac_status); }; } &&
10969	 { ac_try='test -s conftest.$ac_objext'
10970  { (case "(($ac_try" in
10971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10972  *) ac_try_echo=$ac_try;;
10973esac
10974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10975  (eval "$ac_try") 2>&5
10976  ac_status=$?
10977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978  (exit $ac_status); }; }; then
10979  ac_header_compiler=yes
10980else
10981  echo "$as_me: failed program was:" >&5
10982sed 's/^/| /' conftest.$ac_ext >&5
10983
10984	ac_header_compiler=no
10985fi
10986
10987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10988{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10989echo "${ECHO_T}$ac_header_compiler" >&6; }
10990
10991# Is the header present?
10992{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10993echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10994cat >conftest.$ac_ext <<_ACEOF
10995/* confdefs.h.  */
10996_ACEOF
10997cat confdefs.h >>conftest.$ac_ext
10998cat >>conftest.$ac_ext <<_ACEOF
10999/* end confdefs.h.  */
11000#include <$ac_header>
11001_ACEOF
11002if { (ac_try="$ac_cpp conftest.$ac_ext"
11003case "(($ac_try" in
11004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005  *) ac_try_echo=$ac_try;;
11006esac
11007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11008  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11009  ac_status=$?
11010  grep -v '^ *+' conftest.er1 >conftest.err
11011  rm -f conftest.er1
11012  cat conftest.err >&5
11013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014  (exit $ac_status); } >/dev/null; then
11015  if test -s conftest.err; then
11016    ac_cpp_err=$ac_c_preproc_warn_flag
11017    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11018  else
11019    ac_cpp_err=
11020  fi
11021else
11022  ac_cpp_err=yes
11023fi
11024if test -z "$ac_cpp_err"; then
11025  ac_header_preproc=yes
11026else
11027  echo "$as_me: failed program was:" >&5
11028sed 's/^/| /' conftest.$ac_ext >&5
11029
11030  ac_header_preproc=no
11031fi
11032
11033rm -f conftest.err conftest.$ac_ext
11034{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11035echo "${ECHO_T}$ac_header_preproc" >&6; }
11036
11037# So?  What about this header?
11038case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11039  yes:no: )
11040    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11041echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11042    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11043echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11044    ac_header_preproc=yes
11045    ;;
11046  no:yes:* )
11047    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11048echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11049    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11050echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11051    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11052echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11053    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11054echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11055    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11056echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11057    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11058echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11059    ( cat <<\_ASBOX
11060## ----------------------------------- ##
11061## Report this to llvmbugs@cs.uiuc.edu ##
11062## ----------------------------------- ##
11063_ASBOX
11064     ) | sed "s/^/$as_me: WARNING:     /" >&2
11065    ;;
11066esac
11067{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11068echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11069if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11070  echo $ECHO_N "(cached) $ECHO_C" >&6
11071else
11072  eval "$as_ac_Header=\$ac_header_preproc"
11073fi
11074ac_res=`eval echo '${'$as_ac_Header'}'`
11075	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11076echo "${ECHO_T}$ac_res" >&6; }
11077
11078fi
11079if test `eval echo '${'$as_ac_Header'}'` = yes; then
11080  cat >>confdefs.h <<_ACEOF
11081#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11082_ACEOF
11083
11084fi
11085
11086done
11087
11088
11089
11090
11091
11092for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11093do
11094as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11096  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11097echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11099  echo $ECHO_N "(cached) $ECHO_C" >&6
11100fi
11101ac_res=`eval echo '${'$as_ac_Header'}'`
11102	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11103echo "${ECHO_T}$ac_res" >&6; }
11104else
11105  # Is the header compilable?
11106{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11107echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11108cat >conftest.$ac_ext <<_ACEOF
11109/* confdefs.h.  */
11110_ACEOF
11111cat confdefs.h >>conftest.$ac_ext
11112cat >>conftest.$ac_ext <<_ACEOF
11113/* end confdefs.h.  */
11114$ac_includes_default
11115#include <$ac_header>
11116_ACEOF
11117rm -f conftest.$ac_objext
11118if { (ac_try="$ac_compile"
11119case "(($ac_try" in
11120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121  *) ac_try_echo=$ac_try;;
11122esac
11123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124  (eval "$ac_compile") 2>conftest.er1
11125  ac_status=$?
11126  grep -v '^ *+' conftest.er1 >conftest.err
11127  rm -f conftest.er1
11128  cat conftest.err >&5
11129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130  (exit $ac_status); } &&
11131	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11132  { (case "(($ac_try" in
11133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134  *) ac_try_echo=$ac_try;;
11135esac
11136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11137  (eval "$ac_try") 2>&5
11138  ac_status=$?
11139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140  (exit $ac_status); }; } &&
11141	 { ac_try='test -s conftest.$ac_objext'
11142  { (case "(($ac_try" in
11143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144  *) ac_try_echo=$ac_try;;
11145esac
11146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147  (eval "$ac_try") 2>&5
11148  ac_status=$?
11149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150  (exit $ac_status); }; }; then
11151  ac_header_compiler=yes
11152else
11153  echo "$as_me: failed program was:" >&5
11154sed 's/^/| /' conftest.$ac_ext >&5
11155
11156	ac_header_compiler=no
11157fi
11158
11159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11160{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11161echo "${ECHO_T}$ac_header_compiler" >&6; }
11162
11163# Is the header present?
11164{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11165echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11166cat >conftest.$ac_ext <<_ACEOF
11167/* confdefs.h.  */
11168_ACEOF
11169cat confdefs.h >>conftest.$ac_ext
11170cat >>conftest.$ac_ext <<_ACEOF
11171/* end confdefs.h.  */
11172#include <$ac_header>
11173_ACEOF
11174if { (ac_try="$ac_cpp conftest.$ac_ext"
11175case "(($ac_try" in
11176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11177  *) ac_try_echo=$ac_try;;
11178esac
11179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11180  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11181  ac_status=$?
11182  grep -v '^ *+' conftest.er1 >conftest.err
11183  rm -f conftest.er1
11184  cat conftest.err >&5
11185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186  (exit $ac_status); } >/dev/null; then
11187  if test -s conftest.err; then
11188    ac_cpp_err=$ac_c_preproc_warn_flag
11189    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11190  else
11191    ac_cpp_err=
11192  fi
11193else
11194  ac_cpp_err=yes
11195fi
11196if test -z "$ac_cpp_err"; then
11197  ac_header_preproc=yes
11198else
11199  echo "$as_me: failed program was:" >&5
11200sed 's/^/| /' conftest.$ac_ext >&5
11201
11202  ac_header_preproc=no
11203fi
11204
11205rm -f conftest.err conftest.$ac_ext
11206{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11207echo "${ECHO_T}$ac_header_preproc" >&6; }
11208
11209# So?  What about this header?
11210case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11211  yes:no: )
11212    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11213echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11214    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11215echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11216    ac_header_preproc=yes
11217    ;;
11218  no:yes:* )
11219    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11220echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11221    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11222echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11223    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11224echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11225    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11226echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11227    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11228echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11229    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11230echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11231    ( cat <<\_ASBOX
11232## ----------------------------------- ##
11233## Report this to llvmbugs@cs.uiuc.edu ##
11234## ----------------------------------- ##
11235_ASBOX
11236     ) | sed "s/^/$as_me: WARNING:     /" >&2
11237    ;;
11238esac
11239{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11241if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11242  echo $ECHO_N "(cached) $ECHO_C" >&6
11243else
11244  eval "$as_ac_Header=\$ac_header_preproc"
11245fi
11246ac_res=`eval echo '${'$as_ac_Header'}'`
11247	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11248echo "${ECHO_T}$ac_res" >&6; }
11249
11250fi
11251if test `eval echo '${'$as_ac_Header'}'` = yes; then
11252  cat >>confdefs.h <<_ACEOF
11253#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11254_ACEOF
11255
11256fi
11257
11258done
11259
11260
11261
11262for ac_header in string.h strings.h
11263do
11264as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11265if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11266  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11267echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11268if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11269  echo $ECHO_N "(cached) $ECHO_C" >&6
11270fi
11271ac_res=`eval echo '${'$as_ac_Header'}'`
11272	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11273echo "${ECHO_T}$ac_res" >&6; }
11274else
11275  # Is the header compilable?
11276{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11277echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11278cat >conftest.$ac_ext <<_ACEOF
11279/* confdefs.h.  */
11280_ACEOF
11281cat confdefs.h >>conftest.$ac_ext
11282cat >>conftest.$ac_ext <<_ACEOF
11283/* end confdefs.h.  */
11284$ac_includes_default
11285#include <$ac_header>
11286_ACEOF
11287rm -f conftest.$ac_objext
11288if { (ac_try="$ac_compile"
11289case "(($ac_try" in
11290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11291  *) ac_try_echo=$ac_try;;
11292esac
11293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11294  (eval "$ac_compile") 2>conftest.er1
11295  ac_status=$?
11296  grep -v '^ *+' conftest.er1 >conftest.err
11297  rm -f conftest.er1
11298  cat conftest.err >&5
11299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300  (exit $ac_status); } &&
11301	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11302  { (case "(($ac_try" in
11303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11304  *) ac_try_echo=$ac_try;;
11305esac
11306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11307  (eval "$ac_try") 2>&5
11308  ac_status=$?
11309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310  (exit $ac_status); }; } &&
11311	 { ac_try='test -s conftest.$ac_objext'
11312  { (case "(($ac_try" in
11313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314  *) ac_try_echo=$ac_try;;
11315esac
11316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11317  (eval "$ac_try") 2>&5
11318  ac_status=$?
11319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320  (exit $ac_status); }; }; then
11321  ac_header_compiler=yes
11322else
11323  echo "$as_me: failed program was:" >&5
11324sed 's/^/| /' conftest.$ac_ext >&5
11325
11326	ac_header_compiler=no
11327fi
11328
11329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11330{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11331echo "${ECHO_T}$ac_header_compiler" >&6; }
11332
11333# Is the header present?
11334{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11335echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11336cat >conftest.$ac_ext <<_ACEOF
11337/* confdefs.h.  */
11338_ACEOF
11339cat confdefs.h >>conftest.$ac_ext
11340cat >>conftest.$ac_ext <<_ACEOF
11341/* end confdefs.h.  */
11342#include <$ac_header>
11343_ACEOF
11344if { (ac_try="$ac_cpp conftest.$ac_ext"
11345case "(($ac_try" in
11346  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11347  *) ac_try_echo=$ac_try;;
11348esac
11349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11350  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11351  ac_status=$?
11352  grep -v '^ *+' conftest.er1 >conftest.err
11353  rm -f conftest.er1
11354  cat conftest.err >&5
11355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356  (exit $ac_status); } >/dev/null; then
11357  if test -s conftest.err; then
11358    ac_cpp_err=$ac_c_preproc_warn_flag
11359    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11360  else
11361    ac_cpp_err=
11362  fi
11363else
11364  ac_cpp_err=yes
11365fi
11366if test -z "$ac_cpp_err"; then
11367  ac_header_preproc=yes
11368else
11369  echo "$as_me: failed program was:" >&5
11370sed 's/^/| /' conftest.$ac_ext >&5
11371
11372  ac_header_preproc=no
11373fi
11374
11375rm -f conftest.err conftest.$ac_ext
11376{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11377echo "${ECHO_T}$ac_header_preproc" >&6; }
11378
11379# So?  What about this header?
11380case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11381  yes:no: )
11382    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11383echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11384    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11385echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11386    ac_header_preproc=yes
11387    ;;
11388  no:yes:* )
11389    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11390echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11391    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11392echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11393    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11394echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11395    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11396echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11397    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11398echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11399    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11400echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11401    ( cat <<\_ASBOX
11402## ----------------------------------- ##
11403## Report this to llvmbugs@cs.uiuc.edu ##
11404## ----------------------------------- ##
11405_ASBOX
11406     ) | sed "s/^/$as_me: WARNING:     /" >&2
11407    ;;
11408esac
11409{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11410echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11411if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11412  echo $ECHO_N "(cached) $ECHO_C" >&6
11413else
11414  eval "$as_ac_Header=\$ac_header_preproc"
11415fi
11416ac_res=`eval echo '${'$as_ac_Header'}'`
11417	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11418echo "${ECHO_T}$ac_res" >&6; }
11419
11420fi
11421if test `eval echo '${'$as_ac_Header'}'` = yes; then
11422  cat >>confdefs.h <<_ACEOF
11423#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11424_ACEOF
11425 break
11426fi
11427
11428done
11429
11430
11431
11432
11433for ac_func in strchr index
11434do
11435as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11436{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11437echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11438if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11439  echo $ECHO_N "(cached) $ECHO_C" >&6
11440else
11441  cat >conftest.$ac_ext <<_ACEOF
11442/* confdefs.h.  */
11443_ACEOF
11444cat confdefs.h >>conftest.$ac_ext
11445cat >>conftest.$ac_ext <<_ACEOF
11446/* end confdefs.h.  */
11447/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11448   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11449#define $ac_func innocuous_$ac_func
11450
11451/* System header to define __stub macros and hopefully few prototypes,
11452    which can conflict with char $ac_func (); below.
11453    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11454    <limits.h> exists even on freestanding compilers.  */
11455
11456#ifdef __STDC__
11457# include <limits.h>
11458#else
11459# include <assert.h>
11460#endif
11461
11462#undef $ac_func
11463
11464/* Override any GCC internal prototype to avoid an error.
11465   Use char because int might match the return type of a GCC
11466   builtin and then its argument prototype would still apply.  */
11467#ifdef __cplusplus
11468extern "C"
11469#endif
11470char $ac_func ();
11471/* The GNU C library defines this for functions which it implements
11472    to always fail with ENOSYS.  Some functions are actually named
11473    something starting with __ and the normal name is an alias.  */
11474#if defined __stub_$ac_func || defined __stub___$ac_func
11475choke me
11476#endif
11477
11478int
11479main ()
11480{
11481return $ac_func ();
11482  ;
11483  return 0;
11484}
11485_ACEOF
11486rm -f conftest.$ac_objext conftest$ac_exeext
11487if { (ac_try="$ac_link"
11488case "(($ac_try" in
11489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490  *) ac_try_echo=$ac_try;;
11491esac
11492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493  (eval "$ac_link") 2>conftest.er1
11494  ac_status=$?
11495  grep -v '^ *+' conftest.er1 >conftest.err
11496  rm -f conftest.er1
11497  cat conftest.err >&5
11498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499  (exit $ac_status); } &&
11500	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11501  { (case "(($ac_try" in
11502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503  *) ac_try_echo=$ac_try;;
11504esac
11505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506  (eval "$ac_try") 2>&5
11507  ac_status=$?
11508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509  (exit $ac_status); }; } &&
11510	 { ac_try='test -s conftest$ac_exeext'
11511  { (case "(($ac_try" in
11512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513  *) ac_try_echo=$ac_try;;
11514esac
11515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11516  (eval "$ac_try") 2>&5
11517  ac_status=$?
11518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519  (exit $ac_status); }; }; then
11520  eval "$as_ac_var=yes"
11521else
11522  echo "$as_me: failed program was:" >&5
11523sed 's/^/| /' conftest.$ac_ext >&5
11524
11525	eval "$as_ac_var=no"
11526fi
11527
11528rm -f core conftest.err conftest.$ac_objext \
11529      conftest$ac_exeext conftest.$ac_ext
11530fi
11531ac_res=`eval echo '${'$as_ac_var'}'`
11532	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11533echo "${ECHO_T}$ac_res" >&6; }
11534if test `eval echo '${'$as_ac_var'}'` = yes; then
11535  cat >>confdefs.h <<_ACEOF
11536#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11537_ACEOF
11538 break
11539fi
11540done
11541
11542
11543
11544for ac_func in strrchr rindex
11545do
11546as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11547{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11548echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11549if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11550  echo $ECHO_N "(cached) $ECHO_C" >&6
11551else
11552  cat >conftest.$ac_ext <<_ACEOF
11553/* confdefs.h.  */
11554_ACEOF
11555cat confdefs.h >>conftest.$ac_ext
11556cat >>conftest.$ac_ext <<_ACEOF
11557/* end confdefs.h.  */
11558/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11559   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11560#define $ac_func innocuous_$ac_func
11561
11562/* System header to define __stub macros and hopefully few prototypes,
11563    which can conflict with char $ac_func (); below.
11564    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11565    <limits.h> exists even on freestanding compilers.  */
11566
11567#ifdef __STDC__
11568# include <limits.h>
11569#else
11570# include <assert.h>
11571#endif
11572
11573#undef $ac_func
11574
11575/* Override any GCC internal prototype to avoid an error.
11576   Use char because int might match the return type of a GCC
11577   builtin and then its argument prototype would still apply.  */
11578#ifdef __cplusplus
11579extern "C"
11580#endif
11581char $ac_func ();
11582/* The GNU C library defines this for functions which it implements
11583    to always fail with ENOSYS.  Some functions are actually named
11584    something starting with __ and the normal name is an alias.  */
11585#if defined __stub_$ac_func || defined __stub___$ac_func
11586choke me
11587#endif
11588
11589int
11590main ()
11591{
11592return $ac_func ();
11593  ;
11594  return 0;
11595}
11596_ACEOF
11597rm -f conftest.$ac_objext conftest$ac_exeext
11598if { (ac_try="$ac_link"
11599case "(($ac_try" in
11600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11601  *) ac_try_echo=$ac_try;;
11602esac
11603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11604  (eval "$ac_link") 2>conftest.er1
11605  ac_status=$?
11606  grep -v '^ *+' conftest.er1 >conftest.err
11607  rm -f conftest.er1
11608  cat conftest.err >&5
11609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610  (exit $ac_status); } &&
11611	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11612  { (case "(($ac_try" in
11613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614  *) ac_try_echo=$ac_try;;
11615esac
11616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11617  (eval "$ac_try") 2>&5
11618  ac_status=$?
11619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620  (exit $ac_status); }; } &&
11621	 { ac_try='test -s conftest$ac_exeext'
11622  { (case "(($ac_try" in
11623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624  *) ac_try_echo=$ac_try;;
11625esac
11626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627  (eval "$ac_try") 2>&5
11628  ac_status=$?
11629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630  (exit $ac_status); }; }; then
11631  eval "$as_ac_var=yes"
11632else
11633  echo "$as_me: failed program was:" >&5
11634sed 's/^/| /' conftest.$ac_ext >&5
11635
11636	eval "$as_ac_var=no"
11637fi
11638
11639rm -f core conftest.err conftest.$ac_objext \
11640      conftest$ac_exeext conftest.$ac_ext
11641fi
11642ac_res=`eval echo '${'$as_ac_var'}'`
11643	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11644echo "${ECHO_T}$ac_res" >&6; }
11645if test `eval echo '${'$as_ac_var'}'` = yes; then
11646  cat >>confdefs.h <<_ACEOF
11647#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11648_ACEOF
11649 break
11650fi
11651done
11652
11653
11654
11655for ac_func in memcpy bcopy
11656do
11657as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11658{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11659echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11660if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11661  echo $ECHO_N "(cached) $ECHO_C" >&6
11662else
11663  cat >conftest.$ac_ext <<_ACEOF
11664/* confdefs.h.  */
11665_ACEOF
11666cat confdefs.h >>conftest.$ac_ext
11667cat >>conftest.$ac_ext <<_ACEOF
11668/* end confdefs.h.  */
11669/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11670   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11671#define $ac_func innocuous_$ac_func
11672
11673/* System header to define __stub macros and hopefully few prototypes,
11674    which can conflict with char $ac_func (); below.
11675    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11676    <limits.h> exists even on freestanding compilers.  */
11677
11678#ifdef __STDC__
11679# include <limits.h>
11680#else
11681# include <assert.h>
11682#endif
11683
11684#undef $ac_func
11685
11686/* Override any GCC internal prototype to avoid an error.
11687   Use char because int might match the return type of a GCC
11688   builtin and then its argument prototype would still apply.  */
11689#ifdef __cplusplus
11690extern "C"
11691#endif
11692char $ac_func ();
11693/* The GNU C library defines this for functions which it implements
11694    to always fail with ENOSYS.  Some functions are actually named
11695    something starting with __ and the normal name is an alias.  */
11696#if defined __stub_$ac_func || defined __stub___$ac_func
11697choke me
11698#endif
11699
11700int
11701main ()
11702{
11703return $ac_func ();
11704  ;
11705  return 0;
11706}
11707_ACEOF
11708rm -f conftest.$ac_objext conftest$ac_exeext
11709if { (ac_try="$ac_link"
11710case "(($ac_try" in
11711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11712  *) ac_try_echo=$ac_try;;
11713esac
11714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11715  (eval "$ac_link") 2>conftest.er1
11716  ac_status=$?
11717  grep -v '^ *+' conftest.er1 >conftest.err
11718  rm -f conftest.er1
11719  cat conftest.err >&5
11720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721  (exit $ac_status); } &&
11722	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11723  { (case "(($ac_try" in
11724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725  *) ac_try_echo=$ac_try;;
11726esac
11727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11728  (eval "$ac_try") 2>&5
11729  ac_status=$?
11730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731  (exit $ac_status); }; } &&
11732	 { ac_try='test -s conftest$ac_exeext'
11733  { (case "(($ac_try" in
11734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11735  *) ac_try_echo=$ac_try;;
11736esac
11737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738  (eval "$ac_try") 2>&5
11739  ac_status=$?
11740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741  (exit $ac_status); }; }; then
11742  eval "$as_ac_var=yes"
11743else
11744  echo "$as_me: failed program was:" >&5
11745sed 's/^/| /' conftest.$ac_ext >&5
11746
11747	eval "$as_ac_var=no"
11748fi
11749
11750rm -f core conftest.err conftest.$ac_objext \
11751      conftest$ac_exeext conftest.$ac_ext
11752fi
11753ac_res=`eval echo '${'$as_ac_var'}'`
11754	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11755echo "${ECHO_T}$ac_res" >&6; }
11756if test `eval echo '${'$as_ac_var'}'` = yes; then
11757  cat >>confdefs.h <<_ACEOF
11758#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11759_ACEOF
11760 break
11761fi
11762done
11763
11764
11765
11766for ac_func in memmove strcmp
11767do
11768as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11769{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11770echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11771if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11772  echo $ECHO_N "(cached) $ECHO_C" >&6
11773else
11774  cat >conftest.$ac_ext <<_ACEOF
11775/* confdefs.h.  */
11776_ACEOF
11777cat confdefs.h >>conftest.$ac_ext
11778cat >>conftest.$ac_ext <<_ACEOF
11779/* end confdefs.h.  */
11780/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11781   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11782#define $ac_func innocuous_$ac_func
11783
11784/* System header to define __stub macros and hopefully few prototypes,
11785    which can conflict with char $ac_func (); below.
11786    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11787    <limits.h> exists even on freestanding compilers.  */
11788
11789#ifdef __STDC__
11790# include <limits.h>
11791#else
11792# include <assert.h>
11793#endif
11794
11795#undef $ac_func
11796
11797/* Override any GCC internal prototype to avoid an error.
11798   Use char because int might match the return type of a GCC
11799   builtin and then its argument prototype would still apply.  */
11800#ifdef __cplusplus
11801extern "C"
11802#endif
11803char $ac_func ();
11804/* The GNU C library defines this for functions which it implements
11805    to always fail with ENOSYS.  Some functions are actually named
11806    something starting with __ and the normal name is an alias.  */
11807#if defined __stub_$ac_func || defined __stub___$ac_func
11808choke me
11809#endif
11810
11811int
11812main ()
11813{
11814return $ac_func ();
11815  ;
11816  return 0;
11817}
11818_ACEOF
11819rm -f conftest.$ac_objext conftest$ac_exeext
11820if { (ac_try="$ac_link"
11821case "(($ac_try" in
11822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823  *) ac_try_echo=$ac_try;;
11824esac
11825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826  (eval "$ac_link") 2>conftest.er1
11827  ac_status=$?
11828  grep -v '^ *+' conftest.er1 >conftest.err
11829  rm -f conftest.er1
11830  cat conftest.err >&5
11831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832  (exit $ac_status); } &&
11833	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11834  { (case "(($ac_try" in
11835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11836  *) ac_try_echo=$ac_try;;
11837esac
11838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11839  (eval "$ac_try") 2>&5
11840  ac_status=$?
11841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842  (exit $ac_status); }; } &&
11843	 { ac_try='test -s conftest$ac_exeext'
11844  { (case "(($ac_try" in
11845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846  *) ac_try_echo=$ac_try;;
11847esac
11848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11849  (eval "$ac_try") 2>&5
11850  ac_status=$?
11851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852  (exit $ac_status); }; }; then
11853  eval "$as_ac_var=yes"
11854else
11855  echo "$as_me: failed program was:" >&5
11856sed 's/^/| /' conftest.$ac_ext >&5
11857
11858	eval "$as_ac_var=no"
11859fi
11860
11861rm -f core conftest.err conftest.$ac_objext \
11862      conftest$ac_exeext conftest.$ac_ext
11863fi
11864ac_res=`eval echo '${'$as_ac_var'}'`
11865	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11866echo "${ECHO_T}$ac_res" >&6; }
11867if test `eval echo '${'$as_ac_var'}'` = yes; then
11868  cat >>confdefs.h <<_ACEOF
11869#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11870_ACEOF
11871
11872fi
11873done
11874
11875
11876
11877
11878for ac_func in closedir opendir readdir
11879do
11880as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11881{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11882echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11883if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11884  echo $ECHO_N "(cached) $ECHO_C" >&6
11885else
11886  cat >conftest.$ac_ext <<_ACEOF
11887/* confdefs.h.  */
11888_ACEOF
11889cat confdefs.h >>conftest.$ac_ext
11890cat >>conftest.$ac_ext <<_ACEOF
11891/* end confdefs.h.  */
11892/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11893   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11894#define $ac_func innocuous_$ac_func
11895
11896/* System header to define __stub macros and hopefully few prototypes,
11897    which can conflict with char $ac_func (); below.
11898    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11899    <limits.h> exists even on freestanding compilers.  */
11900
11901#ifdef __STDC__
11902# include <limits.h>
11903#else
11904# include <assert.h>
11905#endif
11906
11907#undef $ac_func
11908
11909/* Override any GCC internal prototype to avoid an error.
11910   Use char because int might match the return type of a GCC
11911   builtin and then its argument prototype would still apply.  */
11912#ifdef __cplusplus
11913extern "C"
11914#endif
11915char $ac_func ();
11916/* The GNU C library defines this for functions which it implements
11917    to always fail with ENOSYS.  Some functions are actually named
11918    something starting with __ and the normal name is an alias.  */
11919#if defined __stub_$ac_func || defined __stub___$ac_func
11920choke me
11921#endif
11922
11923int
11924main ()
11925{
11926return $ac_func ();
11927  ;
11928  return 0;
11929}
11930_ACEOF
11931rm -f conftest.$ac_objext conftest$ac_exeext
11932if { (ac_try="$ac_link"
11933case "(($ac_try" in
11934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935  *) ac_try_echo=$ac_try;;
11936esac
11937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938  (eval "$ac_link") 2>conftest.er1
11939  ac_status=$?
11940  grep -v '^ *+' conftest.er1 >conftest.err
11941  rm -f conftest.er1
11942  cat conftest.err >&5
11943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944  (exit $ac_status); } &&
11945	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11946  { (case "(($ac_try" in
11947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11948  *) ac_try_echo=$ac_try;;
11949esac
11950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11951  (eval "$ac_try") 2>&5
11952  ac_status=$?
11953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954  (exit $ac_status); }; } &&
11955	 { ac_try='test -s conftest$ac_exeext'
11956  { (case "(($ac_try" in
11957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958  *) ac_try_echo=$ac_try;;
11959esac
11960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961  (eval "$ac_try") 2>&5
11962  ac_status=$?
11963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964  (exit $ac_status); }; }; then
11965  eval "$as_ac_var=yes"
11966else
11967  echo "$as_me: failed program was:" >&5
11968sed 's/^/| /' conftest.$ac_ext >&5
11969
11970	eval "$as_ac_var=no"
11971fi
11972
11973rm -f core conftest.err conftest.$ac_objext \
11974      conftest$ac_exeext conftest.$ac_ext
11975fi
11976ac_res=`eval echo '${'$as_ac_var'}'`
11977	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11978echo "${ECHO_T}$ac_res" >&6; }
11979if test `eval echo '${'$as_ac_var'}'` = yes; then
11980  cat >>confdefs.h <<_ACEOF
11981#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11982_ACEOF
11983
11984fi
11985done
11986
11987
11988# Check whether --enable-shared was given.
11989if test "${enable_shared+set}" = set; then
11990  enableval=$enable_shared; p=${PACKAGE-default}
11991    case $enableval in
11992    yes) enable_shared=yes ;;
11993    no) enable_shared=no ;;
11994    *)
11995      enable_shared=no
11996      # Look at the argument we got.  We use all the common list separators.
11997      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11998      for pkg in $enableval; do
11999	IFS="$lt_save_ifs"
12000	if test "X$pkg" = "X$p"; then
12001	  enable_shared=yes
12002	fi
12003      done
12004      IFS="$lt_save_ifs"
12005      ;;
12006    esac
12007else
12008  enable_shared=yes
12009fi
12010
12011
12012# Check whether --enable-static was given.
12013if test "${enable_static+set}" = set; then
12014  enableval=$enable_static; p=${PACKAGE-default}
12015    case $enableval in
12016    yes) enable_static=yes ;;
12017    no) enable_static=no ;;
12018    *)
12019     enable_static=no
12020      # Look at the argument we got.  We use all the common list separators.
12021      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12022      for pkg in $enableval; do
12023	IFS="$lt_save_ifs"
12024	if test "X$pkg" = "X$p"; then
12025	  enable_static=yes
12026	fi
12027      done
12028      IFS="$lt_save_ifs"
12029      ;;
12030    esac
12031else
12032  enable_static=yes
12033fi
12034
12035
12036# Check whether --enable-fast-install was given.
12037if test "${enable_fast_install+set}" = set; then
12038  enableval=$enable_fast_install; p=${PACKAGE-default}
12039    case $enableval in
12040    yes) enable_fast_install=yes ;;
12041    no) enable_fast_install=no ;;
12042    *)
12043      enable_fast_install=no
12044      # Look at the argument we got.  We use all the common list separators.
12045      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12046      for pkg in $enableval; do
12047	IFS="$lt_save_ifs"
12048	if test "X$pkg" = "X$p"; then
12049	  enable_fast_install=yes
12050	fi
12051      done
12052      IFS="$lt_save_ifs"
12053      ;;
12054    esac
12055else
12056  enable_fast_install=yes
12057fi
12058
12059
12060{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12061echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12062if test "${lt_cv_path_SED+set}" = set; then
12063  echo $ECHO_N "(cached) $ECHO_C" >&6
12064else
12065  # Loop through the user's path and test for sed and gsed.
12066# Then use that list of sed's as ones to test for truncation.
12067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12068for as_dir in $PATH
12069do
12070  IFS=$as_save_IFS
12071  test -z "$as_dir" && as_dir=.
12072  for lt_ac_prog in sed gsed; do
12073    for ac_exec_ext in '' $ac_executable_extensions; do
12074      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12075        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12076      fi
12077    done
12078  done
12079done
12080lt_ac_max=0
12081lt_ac_count=0
12082# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12083# along with /bin/sed that truncates output.
12084for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12085  test ! -f $lt_ac_sed && continue
12086  cat /dev/null > conftest.in
12087  lt_ac_count=0
12088  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12089  # Check for GNU sed and select it if it is found.
12090  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12091    lt_cv_path_SED=$lt_ac_sed
12092    break
12093  fi
12094  while true; do
12095    cat conftest.in conftest.in >conftest.tmp
12096    mv conftest.tmp conftest.in
12097    cp conftest.in conftest.nl
12098    echo >>conftest.nl
12099    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12100    cmp -s conftest.out conftest.nl || break
12101    # 10000 chars as input seems more than enough
12102    test $lt_ac_count -gt 10 && break
12103    lt_ac_count=`expr $lt_ac_count + 1`
12104    if test $lt_ac_count -gt $lt_ac_max; then
12105      lt_ac_max=$lt_ac_count
12106      lt_cv_path_SED=$lt_ac_sed
12107    fi
12108  done
12109done
12110
12111fi
12112
12113SED=$lt_cv_path_SED
12114{ echo "$as_me:$LINENO: result: $SED" >&5
12115echo "${ECHO_T}$SED" >&6; }
12116
12117
12118# Check whether --with-gnu-ld was given.
12119if test "${with_gnu_ld+set}" = set; then
12120  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12121else
12122  with_gnu_ld=no
12123fi
12124
12125ac_prog=ld
12126if test "$GCC" = yes; then
12127  # Check if gcc -print-prog-name=ld gives a path.
12128  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12129echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12130  case $host in
12131  *-*-mingw*)
12132    # gcc leaves a trailing carriage return which upsets mingw
12133    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12134  *)
12135    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12136  esac
12137  case $ac_prog in
12138    # Accept absolute paths.
12139    [\\/]* | ?:[\\/]*)
12140      re_direlt='/[^/][^/]*/\.\./'
12141      # Canonicalize the pathname of ld
12142      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12143      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12144	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12145      done
12146      test -z "$LD" && LD="$ac_prog"
12147      ;;
12148  "")
12149    # If it fails, then pretend we aren't using GCC.
12150    ac_prog=ld
12151    ;;
12152  *)
12153    # If it is relative, then search for the first ld in PATH.
12154    with_gnu_ld=unknown
12155    ;;
12156  esac
12157elif test "$with_gnu_ld" = yes; then
12158  { echo "$as_me:$LINENO: checking for GNU ld" >&5
12159echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12160else
12161  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12162echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12163fi
12164if test "${lt_cv_path_LD+set}" = set; then
12165  echo $ECHO_N "(cached) $ECHO_C" >&6
12166else
12167  if test -z "$LD"; then
12168  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12169  for ac_dir in $PATH; do
12170    IFS="$lt_save_ifs"
12171    test -z "$ac_dir" && ac_dir=.
12172    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12173      lt_cv_path_LD="$ac_dir/$ac_prog"
12174      # Check to see if the program is GNU ld.  I'd rather use --version,
12175      # but apparently some variants of GNU ld only accept -v.
12176      # Break only if it was the GNU/non-GNU ld that we prefer.
12177      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12178      *GNU* | *'with BFD'*)
12179	test "$with_gnu_ld" != no && break
12180	;;
12181      *)
12182	test "$with_gnu_ld" != yes && break
12183	;;
12184      esac
12185    fi
12186  done
12187  IFS="$lt_save_ifs"
12188else
12189  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12190fi
12191fi
12192
12193LD="$lt_cv_path_LD"
12194if test -n "$LD"; then
12195  { echo "$as_me:$LINENO: result: $LD" >&5
12196echo "${ECHO_T}$LD" >&6; }
12197else
12198  { echo "$as_me:$LINENO: result: no" >&5
12199echo "${ECHO_T}no" >&6; }
12200fi
12201test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12202echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12203   { (exit 1); exit 1; }; }
12204{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12205echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12206if test "${lt_cv_prog_gnu_ld+set}" = set; then
12207  echo $ECHO_N "(cached) $ECHO_C" >&6
12208else
12209  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12210case `$LD -v 2>&1 </dev/null` in
12211*GNU* | *'with BFD'*)
12212  lt_cv_prog_gnu_ld=yes
12213  ;;
12214*)
12215  lt_cv_prog_gnu_ld=no
12216  ;;
12217esac
12218fi
12219{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12220echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12221with_gnu_ld=$lt_cv_prog_gnu_ld
12222
12223
12224{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12225echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12226if test "${lt_cv_ld_reload_flag+set}" = set; then
12227  echo $ECHO_N "(cached) $ECHO_C" >&6
12228else
12229  lt_cv_ld_reload_flag='-r'
12230fi
12231{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12232echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12233reload_flag=$lt_cv_ld_reload_flag
12234case $reload_flag in
12235"" | " "*) ;;
12236*) reload_flag=" $reload_flag" ;;
12237esac
12238reload_cmds='$LD$reload_flag -o $output$reload_objs'
12239case $host_os in
12240  darwin*)
12241    if test "$GCC" = yes; then
12242      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12243    else
12244      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12245    fi
12246    ;;
12247esac
12248
12249{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12250echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12251if test "${lt_cv_deplibs_check_method+set}" = set; then
12252  echo $ECHO_N "(cached) $ECHO_C" >&6
12253else
12254  lt_cv_file_magic_cmd='$MAGIC_CMD'
12255lt_cv_file_magic_test_file=
12256lt_cv_deplibs_check_method='unknown'
12257# Need to set the preceding variable on all platforms that support
12258# interlibrary dependencies.
12259# 'none' -- dependencies not supported.
12260# `unknown' -- same as none, but documents that we really don't know.
12261# 'pass_all' -- all dependencies passed with no checks.
12262# 'test_compile' -- check by making test program.
12263# 'file_magic [[regex]]' -- check by looking for files in library path
12264# which responds to the $file_magic_cmd with a given extended regex.
12265# If you have `file' or equivalent on your system and you're not sure
12266# whether `pass_all' will *always* work, you probably want this one.
12267
12268case $host_os in
12269aix4* | aix5*)
12270  lt_cv_deplibs_check_method=pass_all
12271  ;;
12272
12273beos*)
12274  lt_cv_deplibs_check_method=pass_all
12275  ;;
12276
12277bsdi[45]*)
12278  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12279  lt_cv_file_magic_cmd='/usr/bin/file -L'
12280  lt_cv_file_magic_test_file=/shlib/libc.so
12281  ;;
12282
12283cygwin*)
12284  # func_win32_libid is a shell function defined in ltmain.sh
12285  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12286  lt_cv_file_magic_cmd='func_win32_libid'
12287  ;;
12288
12289mingw* | pw32*)
12290  # Base MSYS/MinGW do not provide the 'file' command needed by
12291  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12292  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12293  lt_cv_file_magic_cmd='$OBJDUMP -f'
12294  ;;
12295
12296darwin* | rhapsody*)
12297  lt_cv_deplibs_check_method=pass_all
12298  ;;
12299
12300freebsd* | kfreebsd*-gnu | dragonfly*)
12301  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12302    case $host_cpu in
12303    i*86 )
12304      # Not sure whether the presence of OpenBSD here was a mistake.
12305      # Let's accept both of them until this is cleared up.
12306      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12307      lt_cv_file_magic_cmd=/usr/bin/file
12308      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12309      ;;
12310    esac
12311  else
12312    lt_cv_deplibs_check_method=pass_all
12313  fi
12314  ;;
12315
12316gnu*)
12317  lt_cv_deplibs_check_method=pass_all
12318  ;;
12319
12320hpux10.20* | hpux11*)
12321  lt_cv_file_magic_cmd=/usr/bin/file
12322  case $host_cpu in
12323  ia64*)
12324    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12325    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12326    ;;
12327  hppa*64*)
12328    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]'
12329    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12330    ;;
12331  *)
12332    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12333    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12334    ;;
12335  esac
12336  ;;
12337
12338interix3*)
12339  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12340  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12341  ;;
12342
12343irix5* | irix6* | nonstopux*)
12344  case $LD in
12345  *-32|*"-32 ") libmagic=32-bit;;
12346  *-n32|*"-n32 ") libmagic=N32;;
12347  *-64|*"-64 ") libmagic=64-bit;;
12348  *) libmagic=never-match;;
12349  esac
12350  lt_cv_deplibs_check_method=pass_all
12351  ;;
12352
12353# This must be Linux ELF.
12354linux*)
12355  lt_cv_deplibs_check_method=pass_all
12356  ;;
12357
12358netbsd*)
12359  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12360    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12361  else
12362    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12363  fi
12364  ;;
12365
12366newos6*)
12367  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12368  lt_cv_file_magic_cmd=/usr/bin/file
12369  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12370  ;;
12371
12372nto-qnx*)
12373  lt_cv_deplibs_check_method=unknown
12374  ;;
12375
12376openbsd*)
12377  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12378    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12379  else
12380    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12381  fi
12382  ;;
12383
12384osf3* | osf4* | osf5*)
12385  lt_cv_deplibs_check_method=pass_all
12386  ;;
12387
12388solaris*)
12389  lt_cv_deplibs_check_method=pass_all
12390  ;;
12391
12392sysv4 | sysv4.3*)
12393  case $host_vendor in
12394  motorola)
12395    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]'
12396    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12397    ;;
12398  ncr)
12399    lt_cv_deplibs_check_method=pass_all
12400    ;;
12401  sequent)
12402    lt_cv_file_magic_cmd='/bin/file'
12403    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12404    ;;
12405  sni)
12406    lt_cv_file_magic_cmd='/bin/file'
12407    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12408    lt_cv_file_magic_test_file=/lib/libc.so
12409    ;;
12410  siemens)
12411    lt_cv_deplibs_check_method=pass_all
12412    ;;
12413  pc)
12414    lt_cv_deplibs_check_method=pass_all
12415    ;;
12416  esac
12417  ;;
12418
12419sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12420  lt_cv_deplibs_check_method=pass_all
12421  ;;
12422esac
12423
12424fi
12425{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12426echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12427file_magic_cmd=$lt_cv_file_magic_cmd
12428deplibs_check_method=$lt_cv_deplibs_check_method
12429test -z "$deplibs_check_method" && deplibs_check_method=unknown
12430
12431
12432
12433# If no C compiler was specified, use CC.
12434LTCC=${LTCC-"$CC"}
12435
12436# If no C compiler flags were specified, use CFLAGS.
12437LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12438
12439# Allow CC to be a program name with arguments.
12440compiler=$CC
12441
12442# Check whether --enable-libtool-lock was given.
12443if test "${enable_libtool_lock+set}" = set; then
12444  enableval=$enable_libtool_lock;
12445fi
12446
12447test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12448
12449# Some flags need to be propagated to the compiler or linker for good
12450# libtool support.
12451case $host in
12452ia64-*-hpux*)
12453  # Find out which ABI we are using.
12454  echo 'int i;' > conftest.$ac_ext
12455  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12456  (eval $ac_compile) 2>&5
12457  ac_status=$?
12458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459  (exit $ac_status); }; then
12460    case `/usr/bin/file conftest.$ac_objext` in
12461    *ELF-32*)
12462      HPUX_IA64_MODE="32"
12463      ;;
12464    *ELF-64*)
12465      HPUX_IA64_MODE="64"
12466      ;;
12467    esac
12468  fi
12469  rm -rf conftest*
12470  ;;
12471*-*-irix6*)
12472  # Find out which ABI we are using.
12473  echo '#line 12473 "configure"' > conftest.$ac_ext
12474  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12475  (eval $ac_compile) 2>&5
12476  ac_status=$?
12477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478  (exit $ac_status); }; then
12479   if test "$lt_cv_prog_gnu_ld" = yes; then
12480    case `/usr/bin/file conftest.$ac_objext` in
12481    *32-bit*)
12482      LD="${LD-ld} -melf32bsmip"
12483      ;;
12484    *N32*)
12485      LD="${LD-ld} -melf32bmipn32"
12486      ;;
12487    *64-bit*)
12488      LD="${LD-ld} -melf64bmip"
12489      ;;
12490    esac
12491   else
12492    case `/usr/bin/file conftest.$ac_objext` in
12493    *32-bit*)
12494      LD="${LD-ld} -32"
12495      ;;
12496    *N32*)
12497      LD="${LD-ld} -n32"
12498      ;;
12499    *64-bit*)
12500      LD="${LD-ld} -64"
12501      ;;
12502    esac
12503   fi
12504  fi
12505  rm -rf conftest*
12506  ;;
12507
12508x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12509  # Find out which ABI we are using.
12510  echo 'int i;' > conftest.$ac_ext
12511  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12512  (eval $ac_compile) 2>&5
12513  ac_status=$?
12514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515  (exit $ac_status); }; then
12516    case `/usr/bin/file conftest.o` in
12517    *32-bit*)
12518      case $host in
12519        x86_64-*linux*)
12520          LD="${LD-ld} -m elf_i386"
12521          ;;
12522        ppc64-*linux*|powerpc64-*linux*)
12523          LD="${LD-ld} -m elf32ppclinux"
12524          ;;
12525        s390x-*linux*)
12526          LD="${LD-ld} -m elf_s390"
12527          ;;
12528        sparc64-*linux*)
12529          LD="${LD-ld} -m elf32_sparc"
12530          ;;
12531      esac
12532      ;;
12533    *64-bit*)
12534      case $host in
12535        x86_64-*linux*)
12536          LD="${LD-ld} -m elf_x86_64"
12537          ;;
12538        ppc*-*linux*|powerpc*-*linux*)
12539          LD="${LD-ld} -m elf64ppc"
12540          ;;
12541        s390*-*linux*)
12542          LD="${LD-ld} -m elf64_s390"
12543          ;;
12544        sparc*-*linux*)
12545          LD="${LD-ld} -m elf64_sparc"
12546          ;;
12547      esac
12548      ;;
12549    esac
12550  fi
12551  rm -rf conftest*
12552  ;;
12553
12554*-*-sco3.2v5*)
12555  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12556  SAVE_CFLAGS="$CFLAGS"
12557  CFLAGS="$CFLAGS -belf"
12558  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12559echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12560if test "${lt_cv_cc_needs_belf+set}" = set; then
12561  echo $ECHO_N "(cached) $ECHO_C" >&6
12562else
12563  ac_ext=c
12564ac_cpp='$CPP $CPPFLAGS'
12565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12567ac_compiler_gnu=$ac_cv_c_compiler_gnu
12568
12569     cat >conftest.$ac_ext <<_ACEOF
12570/* confdefs.h.  */
12571_ACEOF
12572cat confdefs.h >>conftest.$ac_ext
12573cat >>conftest.$ac_ext <<_ACEOF
12574/* end confdefs.h.  */
12575
12576int
12577main ()
12578{
12579
12580  ;
12581  return 0;
12582}
12583_ACEOF
12584rm -f conftest.$ac_objext conftest$ac_exeext
12585if { (ac_try="$ac_link"
12586case "(($ac_try" in
12587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588  *) ac_try_echo=$ac_try;;
12589esac
12590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591  (eval "$ac_link") 2>conftest.er1
12592  ac_status=$?
12593  grep -v '^ *+' conftest.er1 >conftest.err
12594  rm -f conftest.er1
12595  cat conftest.err >&5
12596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597  (exit $ac_status); } &&
12598	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12599  { (case "(($ac_try" in
12600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601  *) ac_try_echo=$ac_try;;
12602esac
12603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12604  (eval "$ac_try") 2>&5
12605  ac_status=$?
12606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607  (exit $ac_status); }; } &&
12608	 { ac_try='test -s conftest$ac_exeext'
12609  { (case "(($ac_try" in
12610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12611  *) ac_try_echo=$ac_try;;
12612esac
12613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614  (eval "$ac_try") 2>&5
12615  ac_status=$?
12616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617  (exit $ac_status); }; }; then
12618  lt_cv_cc_needs_belf=yes
12619else
12620  echo "$as_me: failed program was:" >&5
12621sed 's/^/| /' conftest.$ac_ext >&5
12622
12623	lt_cv_cc_needs_belf=no
12624fi
12625
12626rm -f core conftest.err conftest.$ac_objext \
12627      conftest$ac_exeext conftest.$ac_ext
12628     ac_ext=c
12629ac_cpp='$CPP $CPPFLAGS'
12630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12632ac_compiler_gnu=$ac_cv_c_compiler_gnu
12633
12634fi
12635{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12636echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12637  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12638    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12639    CFLAGS="$SAVE_CFLAGS"
12640  fi
12641  ;;
12642sparc*-*solaris*)
12643  # Find out which ABI we are using.
12644  echo 'int i;' > conftest.$ac_ext
12645  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12646  (eval $ac_compile) 2>&5
12647  ac_status=$?
12648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649  (exit $ac_status); }; then
12650    case `/usr/bin/file conftest.o` in
12651    *64-bit*)
12652      case $lt_cv_prog_gnu_ld in
12653      yes*) LD="${LD-ld} -m elf64_sparc" ;;
12654      *)    LD="${LD-ld} -64" ;;
12655      esac
12656      ;;
12657    esac
12658  fi
12659  rm -rf conftest*
12660  ;;
12661
12662
12663esac
12664
12665need_locks="$enable_libtool_lock"
12666
12667
12668
12669
12670if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12671    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12672    (test "X$CXX" != "Xg++"))) ; then
12673  ac_ext=cpp
12674ac_cpp='$CXXCPP $CPPFLAGS'
12675ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12676ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12677ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12678{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12679echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12680if test -z "$CXXCPP"; then
12681  if test "${ac_cv_prog_CXXCPP+set}" = set; then
12682  echo $ECHO_N "(cached) $ECHO_C" >&6
12683else
12684      # Double quotes because CXXCPP needs to be expanded
12685    for CXXCPP in "$CXX -E" "/lib/cpp"
12686    do
12687      ac_preproc_ok=false
12688for ac_cxx_preproc_warn_flag in '' yes
12689do
12690  # Use a header file that comes with gcc, so configuring glibc
12691  # with a fresh cross-compiler works.
12692  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12693  # <limits.h> exists even on freestanding compilers.
12694  # On the NeXT, cc -E runs the code through the compiler's parser,
12695  # not just through cpp. "Syntax error" is here to catch this case.
12696  cat >conftest.$ac_ext <<_ACEOF
12697/* confdefs.h.  */
12698_ACEOF
12699cat confdefs.h >>conftest.$ac_ext
12700cat >>conftest.$ac_ext <<_ACEOF
12701/* end confdefs.h.  */
12702#ifdef __STDC__
12703# include <limits.h>
12704#else
12705# include <assert.h>
12706#endif
12707		     Syntax error
12708_ACEOF
12709if { (ac_try="$ac_cpp conftest.$ac_ext"
12710case "(($ac_try" in
12711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712  *) ac_try_echo=$ac_try;;
12713esac
12714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12716  ac_status=$?
12717  grep -v '^ *+' conftest.er1 >conftest.err
12718  rm -f conftest.er1
12719  cat conftest.err >&5
12720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721  (exit $ac_status); } >/dev/null; then
12722  if test -s conftest.err; then
12723    ac_cpp_err=$ac_cxx_preproc_warn_flag
12724    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12725  else
12726    ac_cpp_err=
12727  fi
12728else
12729  ac_cpp_err=yes
12730fi
12731if test -z "$ac_cpp_err"; then
12732  :
12733else
12734  echo "$as_me: failed program was:" >&5
12735sed 's/^/| /' conftest.$ac_ext >&5
12736
12737  # Broken: fails on valid input.
12738continue
12739fi
12740
12741rm -f conftest.err conftest.$ac_ext
12742
12743  # OK, works on sane cases.  Now check whether nonexistent headers
12744  # can be detected and how.
12745  cat >conftest.$ac_ext <<_ACEOF
12746/* confdefs.h.  */
12747_ACEOF
12748cat confdefs.h >>conftest.$ac_ext
12749cat >>conftest.$ac_ext <<_ACEOF
12750/* end confdefs.h.  */
12751#include <ac_nonexistent.h>
12752_ACEOF
12753if { (ac_try="$ac_cpp conftest.$ac_ext"
12754case "(($ac_try" in
12755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12756  *) ac_try_echo=$ac_try;;
12757esac
12758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12759  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12760  ac_status=$?
12761  grep -v '^ *+' conftest.er1 >conftest.err
12762  rm -f conftest.er1
12763  cat conftest.err >&5
12764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765  (exit $ac_status); } >/dev/null; then
12766  if test -s conftest.err; then
12767    ac_cpp_err=$ac_cxx_preproc_warn_flag
12768    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12769  else
12770    ac_cpp_err=
12771  fi
12772else
12773  ac_cpp_err=yes
12774fi
12775if test -z "$ac_cpp_err"; then
12776  # Broken: success on invalid input.
12777continue
12778else
12779  echo "$as_me: failed program was:" >&5
12780sed 's/^/| /' conftest.$ac_ext >&5
12781
12782  # Passes both tests.
12783ac_preproc_ok=:
12784break
12785fi
12786
12787rm -f conftest.err conftest.$ac_ext
12788
12789done
12790# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12791rm -f conftest.err conftest.$ac_ext
12792if $ac_preproc_ok; then
12793  break
12794fi
12795
12796    done
12797    ac_cv_prog_CXXCPP=$CXXCPP
12798
12799fi
12800  CXXCPP=$ac_cv_prog_CXXCPP
12801else
12802  ac_cv_prog_CXXCPP=$CXXCPP
12803fi
12804{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12805echo "${ECHO_T}$CXXCPP" >&6; }
12806ac_preproc_ok=false
12807for ac_cxx_preproc_warn_flag in '' yes
12808do
12809  # Use a header file that comes with gcc, so configuring glibc
12810  # with a fresh cross-compiler works.
12811  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12812  # <limits.h> exists even on freestanding compilers.
12813  # On the NeXT, cc -E runs the code through the compiler's parser,
12814  # not just through cpp. "Syntax error" is here to catch this case.
12815  cat >conftest.$ac_ext <<_ACEOF
12816/* confdefs.h.  */
12817_ACEOF
12818cat confdefs.h >>conftest.$ac_ext
12819cat >>conftest.$ac_ext <<_ACEOF
12820/* end confdefs.h.  */
12821#ifdef __STDC__
12822# include <limits.h>
12823#else
12824# include <assert.h>
12825#endif
12826		     Syntax error
12827_ACEOF
12828if { (ac_try="$ac_cpp conftest.$ac_ext"
12829case "(($ac_try" in
12830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831  *) ac_try_echo=$ac_try;;
12832esac
12833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12834  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12835  ac_status=$?
12836  grep -v '^ *+' conftest.er1 >conftest.err
12837  rm -f conftest.er1
12838  cat conftest.err >&5
12839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840  (exit $ac_status); } >/dev/null; then
12841  if test -s conftest.err; then
12842    ac_cpp_err=$ac_cxx_preproc_warn_flag
12843    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12844  else
12845    ac_cpp_err=
12846  fi
12847else
12848  ac_cpp_err=yes
12849fi
12850if test -z "$ac_cpp_err"; then
12851  :
12852else
12853  echo "$as_me: failed program was:" >&5
12854sed 's/^/| /' conftest.$ac_ext >&5
12855
12856  # Broken: fails on valid input.
12857continue
12858fi
12859
12860rm -f conftest.err conftest.$ac_ext
12861
12862  # OK, works on sane cases.  Now check whether nonexistent headers
12863  # can be detected and how.
12864  cat >conftest.$ac_ext <<_ACEOF
12865/* confdefs.h.  */
12866_ACEOF
12867cat confdefs.h >>conftest.$ac_ext
12868cat >>conftest.$ac_ext <<_ACEOF
12869/* end confdefs.h.  */
12870#include <ac_nonexistent.h>
12871_ACEOF
12872if { (ac_try="$ac_cpp conftest.$ac_ext"
12873case "(($ac_try" in
12874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12875  *) ac_try_echo=$ac_try;;
12876esac
12877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12878  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12879  ac_status=$?
12880  grep -v '^ *+' conftest.er1 >conftest.err
12881  rm -f conftest.er1
12882  cat conftest.err >&5
12883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884  (exit $ac_status); } >/dev/null; then
12885  if test -s conftest.err; then
12886    ac_cpp_err=$ac_cxx_preproc_warn_flag
12887    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12888  else
12889    ac_cpp_err=
12890  fi
12891else
12892  ac_cpp_err=yes
12893fi
12894if test -z "$ac_cpp_err"; then
12895  # Broken: success on invalid input.
12896continue
12897else
12898  echo "$as_me: failed program was:" >&5
12899sed 's/^/| /' conftest.$ac_ext >&5
12900
12901  # Passes both tests.
12902ac_preproc_ok=:
12903break
12904fi
12905
12906rm -f conftest.err conftest.$ac_ext
12907
12908done
12909# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12910rm -f conftest.err conftest.$ac_ext
12911if $ac_preproc_ok; then
12912  :
12913else
12914  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12915See \`config.log' for more details." >&5
12916echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12917See \`config.log' for more details." >&2;}
12918   { (exit 1); exit 1; }; }
12919fi
12920
12921ac_ext=cpp
12922ac_cpp='$CXXCPP $CPPFLAGS'
12923ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12924ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12925ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12926
12927fi
12928
12929
12930ac_ext=f
12931ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12932ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12933ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12934if test -n "$ac_tool_prefix"; then
12935  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
12936  do
12937    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12938set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12939{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12941if test "${ac_cv_prog_F77+set}" = set; then
12942  echo $ECHO_N "(cached) $ECHO_C" >&6
12943else
12944  if test -n "$F77"; then
12945  ac_cv_prog_F77="$F77" # Let the user override the test.
12946else
12947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12948for as_dir in $PATH
12949do
12950  IFS=$as_save_IFS
12951  test -z "$as_dir" && as_dir=.
12952  for ac_exec_ext in '' $ac_executable_extensions; do
12953  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12954    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12955    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12956    break 2
12957  fi
12958done
12959done
12960IFS=$as_save_IFS
12961
12962fi
12963fi
12964F77=$ac_cv_prog_F77
12965if test -n "$F77"; then
12966  { echo "$as_me:$LINENO: result: $F77" >&5
12967echo "${ECHO_T}$F77" >&6; }
12968else
12969  { echo "$as_me:$LINENO: result: no" >&5
12970echo "${ECHO_T}no" >&6; }
12971fi
12972
12973
12974    test -n "$F77" && break
12975  done
12976fi
12977if test -z "$F77"; then
12978  ac_ct_F77=$F77
12979  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
12980do
12981  # Extract the first word of "$ac_prog", so it can be a program name with args.
12982set dummy $ac_prog; ac_word=$2
12983{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12985if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12986  echo $ECHO_N "(cached) $ECHO_C" >&6
12987else
12988  if test -n "$ac_ct_F77"; then
12989  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12990else
12991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12992for as_dir in $PATH
12993do
12994  IFS=$as_save_IFS
12995  test -z "$as_dir" && as_dir=.
12996  for ac_exec_ext in '' $ac_executable_extensions; do
12997  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12998    ac_cv_prog_ac_ct_F77="$ac_prog"
12999    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13000    break 2
13001  fi
13002done
13003done
13004IFS=$as_save_IFS
13005
13006fi
13007fi
13008ac_ct_F77=$ac_cv_prog_ac_ct_F77
13009if test -n "$ac_ct_F77"; then
13010  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13011echo "${ECHO_T}$ac_ct_F77" >&6; }
13012else
13013  { echo "$as_me:$LINENO: result: no" >&5
13014echo "${ECHO_T}no" >&6; }
13015fi
13016
13017
13018  test -n "$ac_ct_F77" && break
13019done
13020
13021  if test "x$ac_ct_F77" = x; then
13022    F77=""
13023  else
13024    case $cross_compiling:$ac_tool_warned in
13025yes:)
13026{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13027whose name does not start with the host triplet.  If you think this
13028configuration is useful to you, please write to autoconf@gnu.org." >&5
13029echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13030whose name does not start with the host triplet.  If you think this
13031configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13032ac_tool_warned=yes ;;
13033esac
13034    F77=$ac_ct_F77
13035  fi
13036fi
13037
13038
13039# Provide some information about the compiler.
13040echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13041ac_compiler=`set X $ac_compile; echo $2`
13042{ (ac_try="$ac_compiler --version >&5"
13043case "(($ac_try" in
13044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045  *) ac_try_echo=$ac_try;;
13046esac
13047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13048  (eval "$ac_compiler --version >&5") 2>&5
13049  ac_status=$?
13050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051  (exit $ac_status); }
13052{ (ac_try="$ac_compiler -v >&5"
13053case "(($ac_try" in
13054  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13055  *) ac_try_echo=$ac_try;;
13056esac
13057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13058  (eval "$ac_compiler -v >&5") 2>&5
13059  ac_status=$?
13060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061  (exit $ac_status); }
13062{ (ac_try="$ac_compiler -V >&5"
13063case "(($ac_try" in
13064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13065  *) ac_try_echo=$ac_try;;
13066esac
13067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13068  (eval "$ac_compiler -V >&5") 2>&5
13069  ac_status=$?
13070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071  (exit $ac_status); }
13072rm -f a.out
13073
13074# If we don't use `.F' as extension, the preprocessor is not run on the
13075# input file.  (Note that this only needs to work for GNU compilers.)
13076ac_save_ext=$ac_ext
13077ac_ext=F
13078{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13079echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13080if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13081  echo $ECHO_N "(cached) $ECHO_C" >&6
13082else
13083  cat >conftest.$ac_ext <<_ACEOF
13084      program main
13085#ifndef __GNUC__
13086       choke me
13087#endif
13088
13089      end
13090_ACEOF
13091rm -f conftest.$ac_objext
13092if { (ac_try="$ac_compile"
13093case "(($ac_try" in
13094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13095  *) ac_try_echo=$ac_try;;
13096esac
13097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13098  (eval "$ac_compile") 2>conftest.er1
13099  ac_status=$?
13100  grep -v '^ *+' conftest.er1 >conftest.err
13101  rm -f conftest.er1
13102  cat conftest.err >&5
13103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104  (exit $ac_status); } &&
13105	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13106  { (case "(($ac_try" in
13107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108  *) ac_try_echo=$ac_try;;
13109esac
13110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111  (eval "$ac_try") 2>&5
13112  ac_status=$?
13113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114  (exit $ac_status); }; } &&
13115	 { ac_try='test -s conftest.$ac_objext'
13116  { (case "(($ac_try" in
13117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13118  *) ac_try_echo=$ac_try;;
13119esac
13120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13121  (eval "$ac_try") 2>&5
13122  ac_status=$?
13123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124  (exit $ac_status); }; }; then
13125  ac_compiler_gnu=yes
13126else
13127  echo "$as_me: failed program was:" >&5
13128sed 's/^/| /' conftest.$ac_ext >&5
13129
13130	ac_compiler_gnu=no
13131fi
13132
13133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13134ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13135
13136fi
13137{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13138echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13139ac_ext=$ac_save_ext
13140ac_test_FFLAGS=${FFLAGS+set}
13141ac_save_FFLAGS=$FFLAGS
13142FFLAGS=
13143{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13144echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13145if test "${ac_cv_prog_f77_g+set}" = set; then
13146  echo $ECHO_N "(cached) $ECHO_C" >&6
13147else
13148  FFLAGS=-g
13149cat >conftest.$ac_ext <<_ACEOF
13150      program main
13151
13152      end
13153_ACEOF
13154rm -f conftest.$ac_objext
13155if { (ac_try="$ac_compile"
13156case "(($ac_try" in
13157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158  *) ac_try_echo=$ac_try;;
13159esac
13160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161  (eval "$ac_compile") 2>conftest.er1
13162  ac_status=$?
13163  grep -v '^ *+' conftest.er1 >conftest.err
13164  rm -f conftest.er1
13165  cat conftest.err >&5
13166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167  (exit $ac_status); } &&
13168	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13169  { (case "(($ac_try" in
13170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171  *) ac_try_echo=$ac_try;;
13172esac
13173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174  (eval "$ac_try") 2>&5
13175  ac_status=$?
13176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177  (exit $ac_status); }; } &&
13178	 { ac_try='test -s conftest.$ac_objext'
13179  { (case "(($ac_try" in
13180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181  *) ac_try_echo=$ac_try;;
13182esac
13183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184  (eval "$ac_try") 2>&5
13185  ac_status=$?
13186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187  (exit $ac_status); }; }; then
13188  ac_cv_prog_f77_g=yes
13189else
13190  echo "$as_me: failed program was:" >&5
13191sed 's/^/| /' conftest.$ac_ext >&5
13192
13193	ac_cv_prog_f77_g=no
13194fi
13195
13196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13197
13198fi
13199{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13200echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13201if test "$ac_test_FFLAGS" = set; then
13202  FFLAGS=$ac_save_FFLAGS
13203elif test $ac_cv_prog_f77_g = yes; then
13204  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13205    FFLAGS="-g -O2"
13206  else
13207    FFLAGS="-g"
13208  fi
13209else
13210  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13211    FFLAGS="-O2"
13212  else
13213    FFLAGS=
13214  fi
13215fi
13216
13217G77=`test $ac_compiler_gnu = yes && echo yes`
13218ac_ext=c
13219ac_cpp='$CPP $CPPFLAGS'
13220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13222ac_compiler_gnu=$ac_cv_c_compiler_gnu
13223
13224
13225
13226# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13227
13228# find the maximum length of command line arguments
13229{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13230echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13231if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13232  echo $ECHO_N "(cached) $ECHO_C" >&6
13233else
13234    i=0
13235  teststring="ABCD"
13236
13237  case $build_os in
13238  msdosdjgpp*)
13239    # On DJGPP, this test can blow up pretty badly due to problems in libc
13240    # (any single argument exceeding 2000 bytes causes a buffer overrun
13241    # during glob expansion).  Even if it were fixed, the result of this
13242    # check would be larger than it should be.
13243    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13244    ;;
13245
13246  gnu*)
13247    # Under GNU Hurd, this test is not required because there is
13248    # no limit to the length of command line arguments.
13249    # Libtool will interpret -1 as no limit whatsoever
13250    lt_cv_sys_max_cmd_len=-1;
13251    ;;
13252
13253  cygwin* | mingw*)
13254    # On Win9x/ME, this test blows up -- it succeeds, but takes
13255    # about 5 minutes as the teststring grows exponentially.
13256    # Worse, since 9x/ME are not pre-emptively multitasking,
13257    # you end up with a "frozen" computer, even though with patience
13258    # the test eventually succeeds (with a max line length of 256k).
13259    # Instead, let's just punt: use the minimum linelength reported by
13260    # all of the supported platforms: 8192 (on NT/2K/XP).
13261    lt_cv_sys_max_cmd_len=8192;
13262    ;;
13263
13264  amigaos*)
13265    # On AmigaOS with pdksh, this test takes hours, literally.
13266    # So we just punt and use a minimum line length of 8192.
13267    lt_cv_sys_max_cmd_len=8192;
13268    ;;
13269
13270  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13271    # This has been around since 386BSD, at least.  Likely further.
13272    if test -x /sbin/sysctl; then
13273      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13274    elif test -x /usr/sbin/sysctl; then
13275      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13276    else
13277      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
13278    fi
13279    # And add a safety zone
13280    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13281    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13282    ;;
13283
13284  interix*)
13285    # We know the value 262144 and hardcode it with a safety zone (like BSD)
13286    lt_cv_sys_max_cmd_len=196608
13287    ;;
13288
13289  osf*)
13290    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13291    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13292    # nice to cause kernel panics so lets avoid the loop below.
13293    # First set a reasonable default.
13294    lt_cv_sys_max_cmd_len=16384
13295    #
13296    if test -x /sbin/sysconfig; then
13297      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13298        *1*) lt_cv_sys_max_cmd_len=-1 ;;
13299      esac
13300    fi
13301    ;;
13302  sco3.2v5*)
13303    lt_cv_sys_max_cmd_len=102400
13304    ;;
13305  sysv5* | sco5v6* | sysv4.2uw2*)
13306    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13307    if test -n "$kargmax"; then
13308      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
13309    else
13310      lt_cv_sys_max_cmd_len=32768
13311    fi
13312    ;;
13313  *)
13314    # If test is not a shell built-in, we'll probably end up computing a
13315    # maximum length that is only half of the actual maximum length, but
13316    # we can't tell.
13317    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13318    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13319	       = "XX$teststring") >/dev/null 2>&1 &&
13320	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
13321	    lt_cv_sys_max_cmd_len=$new_result &&
13322	    test $i != 17 # 1/2 MB should be enough
13323    do
13324      i=`expr $i + 1`
13325      teststring=$teststring$teststring
13326    done
13327    teststring=
13328    # Add a significant safety factor because C++ compilers can tack on massive
13329    # amounts of additional arguments before passing them to the linker.
13330    # It appears as though 1/2 is a usable value.
13331    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13332    ;;
13333  esac
13334
13335fi
13336
13337if test -n $lt_cv_sys_max_cmd_len ; then
13338  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13339echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13340else
13341  { echo "$as_me:$LINENO: result: none" >&5
13342echo "${ECHO_T}none" >&6; }
13343fi
13344
13345
13346
13347
13348# Check for command to grab the raw symbol name followed by C symbol from nm.
13349{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13350echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13351if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13352  echo $ECHO_N "(cached) $ECHO_C" >&6
13353else
13354
13355# These are sane defaults that work on at least a few old systems.
13356# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13357
13358# Character class describing NM global symbol codes.
13359symcode='[BCDEGRST]'
13360
13361# Regexp to match symbols that can be accessed directly from C.
13362sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13363
13364# Transform an extracted symbol line into a proper C declaration
13365lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13366
13367# Transform an extracted symbol line into symbol name and symbol address
13368lt_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'"
13369
13370# Define system-specific variables.
13371case $host_os in
13372aix*)
13373  symcode='[BCDT]'
13374  ;;
13375cygwin* | mingw* | pw32*)
13376  symcode='[ABCDGISTW]'
13377  ;;
13378hpux*) # Its linker distinguishes data from code symbols
13379  if test "$host_cpu" = ia64; then
13380    symcode='[ABCDEGRST]'
13381  fi
13382  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13383  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'"
13384  ;;
13385linux*)
13386  if test "$host_cpu" = ia64; then
13387    symcode='[ABCDGIRSTW]'
13388    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13389    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'"
13390  fi
13391  ;;
13392irix* | nonstopux*)
13393  symcode='[BCDEGRST]'
13394  ;;
13395osf*)
13396  symcode='[BCDEGQRST]'
13397  ;;
13398solaris*)
13399  symcode='[BDRT]'
13400  ;;
13401sco3.2v5*)
13402  symcode='[DT]'
13403  ;;
13404sysv4.2uw2*)
13405  symcode='[DT]'
13406  ;;
13407sysv5* | sco5v6* | unixware* | OpenUNIX*)
13408  symcode='[ABDT]'
13409  ;;
13410sysv4)
13411  symcode='[DFNSTU]'
13412  ;;
13413esac
13414
13415# Handle CRLF in mingw tool chain
13416opt_cr=
13417case $build_os in
13418mingw*)
13419  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13420  ;;
13421esac
13422
13423# If we're using GNU nm, then use its standard symbol codes.
13424case `$NM -V 2>&1` in
13425*GNU* | *'with BFD'*)
13426  symcode='[ABCDGIRSTW]' ;;
13427esac
13428
13429# Try without a prefix undercore, then with it.
13430for ac_symprfx in "" "_"; do
13431
13432  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13433  symxfrm="\\1 $ac_symprfx\\2 \\2"
13434
13435  # Write the raw and C identifiers.
13436  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13437
13438  # Check to see that the pipe works correctly.
13439  pipe_works=no
13440
13441  rm -f conftest*
13442  cat > conftest.$ac_ext <<EOF
13443#ifdef __cplusplus
13444extern "C" {
13445#endif
13446char nm_test_var;
13447void nm_test_func(){}
13448#ifdef __cplusplus
13449}
13450#endif
13451int main(){nm_test_var='a';nm_test_func();return(0);}
13452EOF
13453
13454  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13455  (eval $ac_compile) 2>&5
13456  ac_status=$?
13457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458  (exit $ac_status); }; then
13459    # Now try to grab the symbols.
13460    nlist=conftest.nm
13461    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13462  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13463  ac_status=$?
13464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465  (exit $ac_status); } && test -s "$nlist"; then
13466      # Try sorting and uniquifying the output.
13467      if sort "$nlist" | uniq > "$nlist"T; then
13468	mv -f "$nlist"T "$nlist"
13469      else
13470	rm -f "$nlist"T
13471      fi
13472
13473      # Make sure that we snagged all the symbols we need.
13474      if grep ' nm_test_var$' "$nlist" >/dev/null; then
13475	if grep ' nm_test_func$' "$nlist" >/dev/null; then
13476	  cat <<EOF > conftest.$ac_ext
13477#ifdef __cplusplus
13478extern "C" {
13479#endif
13480
13481EOF
13482	  # Now generate the symbol file.
13483	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13484
13485	  cat <<EOF >> conftest.$ac_ext
13486#if defined (__STDC__) && __STDC__
13487# define lt_ptr_t void *
13488#else
13489# define lt_ptr_t char *
13490# define const
13491#endif
13492
13493/* The mapping between symbol names and symbols. */
13494const struct {
13495  const char *name;
13496  lt_ptr_t address;
13497}
13498lt_preloaded_symbols[] =
13499{
13500EOF
13501	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13502	  cat <<\EOF >> conftest.$ac_ext
13503  {0, (lt_ptr_t) 0}
13504};
13505
13506#ifdef __cplusplus
13507}
13508#endif
13509EOF
13510	  # Now try linking the two files.
13511	  mv conftest.$ac_objext conftstm.$ac_objext
13512	  lt_save_LIBS="$LIBS"
13513	  lt_save_CFLAGS="$CFLAGS"
13514	  LIBS="conftstm.$ac_objext"
13515	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13516	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13517  (eval $ac_link) 2>&5
13518  ac_status=$?
13519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520  (exit $ac_status); } && test -s conftest${ac_exeext}; then
13521	    pipe_works=yes
13522	  fi
13523	  LIBS="$lt_save_LIBS"
13524	  CFLAGS="$lt_save_CFLAGS"
13525	else
13526	  echo "cannot find nm_test_func in $nlist" >&5
13527	fi
13528      else
13529	echo "cannot find nm_test_var in $nlist" >&5
13530      fi
13531    else
13532      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13533    fi
13534  else
13535    echo "$progname: failed program was:" >&5
13536    cat conftest.$ac_ext >&5
13537  fi
13538  rm -f conftest* conftst*
13539
13540  # Do not use the global_symbol_pipe unless it works.
13541  if test "$pipe_works" = yes; then
13542    break
13543  else
13544    lt_cv_sys_global_symbol_pipe=
13545  fi
13546done
13547
13548fi
13549
13550if test -z "$lt_cv_sys_global_symbol_pipe"; then
13551  lt_cv_sys_global_symbol_to_cdecl=
13552fi
13553if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13554  { echo "$as_me:$LINENO: result: failed" >&5
13555echo "${ECHO_T}failed" >&6; }
13556else
13557  { echo "$as_me:$LINENO: result: ok" >&5
13558echo "${ECHO_T}ok" >&6; }
13559fi
13560
13561{ echo "$as_me:$LINENO: checking for objdir" >&5
13562echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13563if test "${lt_cv_objdir+set}" = set; then
13564  echo $ECHO_N "(cached) $ECHO_C" >&6
13565else
13566  rm -f .libs 2>/dev/null
13567mkdir .libs 2>/dev/null
13568if test -d .libs; then
13569  lt_cv_objdir=.libs
13570else
13571  # MS-DOS does not allow filenames that begin with a dot.
13572  lt_cv_objdir=_libs
13573fi
13574rmdir .libs 2>/dev/null
13575fi
13576{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13577echo "${ECHO_T}$lt_cv_objdir" >&6; }
13578objdir=$lt_cv_objdir
13579
13580
13581
13582
13583
13584case $host_os in
13585aix3*)
13586  # AIX sometimes has problems with the GCC collect2 program.  For some
13587  # reason, if we set the COLLECT_NAMES environment variable, the problems
13588  # vanish in a puff of smoke.
13589  if test "X${COLLECT_NAMES+set}" != Xset; then
13590    COLLECT_NAMES=
13591    export COLLECT_NAMES
13592  fi
13593  ;;
13594esac
13595
13596# Sed substitution that helps us do robust quoting.  It backslashifies
13597# metacharacters that are still active within double-quoted strings.
13598Xsed='sed -e 1s/^X//'
13599sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13600
13601# Same as above, but do not quote variable references.
13602double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13603
13604# Sed substitution to delay expansion of an escaped shell variable in a
13605# double_quote_subst'ed string.
13606delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13607
13608# Sed substitution to avoid accidental globbing in evaled expressions
13609no_glob_subst='s/\*/\\\*/g'
13610
13611# Constants:
13612rm="rm -f"
13613
13614# Global variables:
13615default_ofile=mklib
13616can_build_shared=yes
13617
13618# All known linkers require a `.a' archive for static linking (except MSVC,
13619# which needs '.lib').
13620libext=a
13621ltmain="$ac_aux_dir/ltmain.sh"
13622ofile="$default_ofile"
13623with_gnu_ld="$lt_cv_prog_gnu_ld"
13624
13625if test -n "$ac_tool_prefix"; then
13626  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13627set dummy ${ac_tool_prefix}ar; ac_word=$2
13628{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13630if test "${ac_cv_prog_AR+set}" = set; then
13631  echo $ECHO_N "(cached) $ECHO_C" >&6
13632else
13633  if test -n "$AR"; then
13634  ac_cv_prog_AR="$AR" # Let the user override the test.
13635else
13636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13637for as_dir in $PATH
13638do
13639  IFS=$as_save_IFS
13640  test -z "$as_dir" && as_dir=.
13641  for ac_exec_ext in '' $ac_executable_extensions; do
13642  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13643    ac_cv_prog_AR="${ac_tool_prefix}ar"
13644    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13645    break 2
13646  fi
13647done
13648done
13649IFS=$as_save_IFS
13650
13651fi
13652fi
13653AR=$ac_cv_prog_AR
13654if test -n "$AR"; then
13655  { echo "$as_me:$LINENO: result: $AR" >&5
13656echo "${ECHO_T}$AR" >&6; }
13657else
13658  { echo "$as_me:$LINENO: result: no" >&5
13659echo "${ECHO_T}no" >&6; }
13660fi
13661
13662
13663fi
13664if test -z "$ac_cv_prog_AR"; then
13665  ac_ct_AR=$AR
13666  # Extract the first word of "ar", so it can be a program name with args.
13667set dummy ar; ac_word=$2
13668{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13670if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13671  echo $ECHO_N "(cached) $ECHO_C" >&6
13672else
13673  if test -n "$ac_ct_AR"; then
13674  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13675else
13676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13677for as_dir in $PATH
13678do
13679  IFS=$as_save_IFS
13680  test -z "$as_dir" && as_dir=.
13681  for ac_exec_ext in '' $ac_executable_extensions; do
13682  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13683    ac_cv_prog_ac_ct_AR="ar"
13684    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13685    break 2
13686  fi
13687done
13688done
13689IFS=$as_save_IFS
13690
13691fi
13692fi
13693ac_ct_AR=$ac_cv_prog_ac_ct_AR
13694if test -n "$ac_ct_AR"; then
13695  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13696echo "${ECHO_T}$ac_ct_AR" >&6; }
13697else
13698  { echo "$as_me:$LINENO: result: no" >&5
13699echo "${ECHO_T}no" >&6; }
13700fi
13701
13702  if test "x$ac_ct_AR" = x; then
13703    AR="false"
13704  else
13705    case $cross_compiling:$ac_tool_warned in
13706yes:)
13707{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13708whose name does not start with the host triplet.  If you think this
13709configuration is useful to you, please write to autoconf@gnu.org." >&5
13710echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13711whose name does not start with the host triplet.  If you think this
13712configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13713ac_tool_warned=yes ;;
13714esac
13715    AR=$ac_ct_AR
13716  fi
13717else
13718  AR="$ac_cv_prog_AR"
13719fi
13720
13721if test -n "$ac_tool_prefix"; then
13722  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13723set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13724{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13726if test "${ac_cv_prog_RANLIB+set}" = set; then
13727  echo $ECHO_N "(cached) $ECHO_C" >&6
13728else
13729  if test -n "$RANLIB"; then
13730  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13731else
13732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13733for as_dir in $PATH
13734do
13735  IFS=$as_save_IFS
13736  test -z "$as_dir" && as_dir=.
13737  for ac_exec_ext in '' $ac_executable_extensions; do
13738  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13739    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13740    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13741    break 2
13742  fi
13743done
13744done
13745IFS=$as_save_IFS
13746
13747fi
13748fi
13749RANLIB=$ac_cv_prog_RANLIB
13750if test -n "$RANLIB"; then
13751  { echo "$as_me:$LINENO: result: $RANLIB" >&5
13752echo "${ECHO_T}$RANLIB" >&6; }
13753else
13754  { echo "$as_me:$LINENO: result: no" >&5
13755echo "${ECHO_T}no" >&6; }
13756fi
13757
13758
13759fi
13760if test -z "$ac_cv_prog_RANLIB"; then
13761  ac_ct_RANLIB=$RANLIB
13762  # Extract the first word of "ranlib", so it can be a program name with args.
13763set dummy ranlib; ac_word=$2
13764{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13766if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13767  echo $ECHO_N "(cached) $ECHO_C" >&6
13768else
13769  if test -n "$ac_ct_RANLIB"; then
13770  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13771else
13772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13773for as_dir in $PATH
13774do
13775  IFS=$as_save_IFS
13776  test -z "$as_dir" && as_dir=.
13777  for ac_exec_ext in '' $ac_executable_extensions; do
13778  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13779    ac_cv_prog_ac_ct_RANLIB="ranlib"
13780    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13781    break 2
13782  fi
13783done
13784done
13785IFS=$as_save_IFS
13786
13787fi
13788fi
13789ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13790if test -n "$ac_ct_RANLIB"; then
13791  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13792echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13793else
13794  { echo "$as_me:$LINENO: result: no" >&5
13795echo "${ECHO_T}no" >&6; }
13796fi
13797
13798  if test "x$ac_ct_RANLIB" = x; then
13799    RANLIB=":"
13800  else
13801    case $cross_compiling:$ac_tool_warned in
13802yes:)
13803{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13804whose name does not start with the host triplet.  If you think this
13805configuration is useful to you, please write to autoconf@gnu.org." >&5
13806echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13807whose name does not start with the host triplet.  If you think this
13808configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13809ac_tool_warned=yes ;;
13810esac
13811    RANLIB=$ac_ct_RANLIB
13812  fi
13813else
13814  RANLIB="$ac_cv_prog_RANLIB"
13815fi
13816
13817if test -n "$ac_tool_prefix"; then
13818  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13819set dummy ${ac_tool_prefix}strip; ac_word=$2
13820{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13822if test "${ac_cv_prog_STRIP+set}" = set; then
13823  echo $ECHO_N "(cached) $ECHO_C" >&6
13824else
13825  if test -n "$STRIP"; then
13826  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13827else
13828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13829for as_dir in $PATH
13830do
13831  IFS=$as_save_IFS
13832  test -z "$as_dir" && as_dir=.
13833  for ac_exec_ext in '' $ac_executable_extensions; do
13834  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13835    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13836    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13837    break 2
13838  fi
13839done
13840done
13841IFS=$as_save_IFS
13842
13843fi
13844fi
13845STRIP=$ac_cv_prog_STRIP
13846if test -n "$STRIP"; then
13847  { echo "$as_me:$LINENO: result: $STRIP" >&5
13848echo "${ECHO_T}$STRIP" >&6; }
13849else
13850  { echo "$as_me:$LINENO: result: no" >&5
13851echo "${ECHO_T}no" >&6; }
13852fi
13853
13854
13855fi
13856if test -z "$ac_cv_prog_STRIP"; then
13857  ac_ct_STRIP=$STRIP
13858  # Extract the first word of "strip", so it can be a program name with args.
13859set dummy strip; ac_word=$2
13860{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13862if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13863  echo $ECHO_N "(cached) $ECHO_C" >&6
13864else
13865  if test -n "$ac_ct_STRIP"; then
13866  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13867else
13868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13869for as_dir in $PATH
13870do
13871  IFS=$as_save_IFS
13872  test -z "$as_dir" && as_dir=.
13873  for ac_exec_ext in '' $ac_executable_extensions; do
13874  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13875    ac_cv_prog_ac_ct_STRIP="strip"
13876    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13877    break 2
13878  fi
13879done
13880done
13881IFS=$as_save_IFS
13882
13883fi
13884fi
13885ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13886if test -n "$ac_ct_STRIP"; then
13887  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13888echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13889else
13890  { echo "$as_me:$LINENO: result: no" >&5
13891echo "${ECHO_T}no" >&6; }
13892fi
13893
13894  if test "x$ac_ct_STRIP" = x; then
13895    STRIP=":"
13896  else
13897    case $cross_compiling:$ac_tool_warned in
13898yes:)
13899{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13900whose name does not start with the host triplet.  If you think this
13901configuration is useful to you, please write to autoconf@gnu.org." >&5
13902echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13903whose name does not start with the host triplet.  If you think this
13904configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13905ac_tool_warned=yes ;;
13906esac
13907    STRIP=$ac_ct_STRIP
13908  fi
13909else
13910  STRIP="$ac_cv_prog_STRIP"
13911fi
13912
13913
13914old_CC="$CC"
13915old_CFLAGS="$CFLAGS"
13916
13917# Set sane defaults for various variables
13918test -z "$AR" && AR=ar
13919test -z "$AR_FLAGS" && AR_FLAGS=cru
13920test -z "$AS" && AS=as
13921test -z "$CC" && CC=cc
13922test -z "$LTCC" && LTCC=$CC
13923test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13924test -z "$DLLTOOL" && DLLTOOL=dlltool
13925test -z "$LD" && LD=ld
13926test -z "$LN_S" && LN_S="ln -s"
13927test -z "$MAGIC_CMD" && MAGIC_CMD=file
13928test -z "$NM" && NM=nm
13929test -z "$SED" && SED=sed
13930test -z "$OBJDUMP" && OBJDUMP=objdump
13931test -z "$RANLIB" && RANLIB=:
13932test -z "$STRIP" && STRIP=:
13933test -z "$ac_objext" && ac_objext=o
13934
13935# Determine commands to create old-style static archives.
13936old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13937old_postinstall_cmds='chmod 644 $oldlib'
13938old_postuninstall_cmds=
13939
13940if test -n "$RANLIB"; then
13941  case $host_os in
13942  openbsd*)
13943    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13944    ;;
13945  *)
13946    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13947    ;;
13948  esac
13949  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13950fi
13951
13952for cc_temp in $compiler""; do
13953  case $cc_temp in
13954    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13955    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13956    \-*) ;;
13957    *) break;;
13958  esac
13959done
13960cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13961
13962
13963# Only perform the check for file, if the check method requires it
13964case $deplibs_check_method in
13965file_magic*)
13966  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13967    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13968echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13969if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13970  echo $ECHO_N "(cached) $ECHO_C" >&6
13971else
13972  case $MAGIC_CMD in
13973[\\/*] |  ?:[\\/]*)
13974  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13975  ;;
13976*)
13977  lt_save_MAGIC_CMD="$MAGIC_CMD"
13978  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13979  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13980  for ac_dir in $ac_dummy; do
13981    IFS="$lt_save_ifs"
13982    test -z "$ac_dir" && ac_dir=.
13983    if test -f $ac_dir/${ac_tool_prefix}file; then
13984      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13985      if test -n "$file_magic_test_file"; then
13986	case $deplibs_check_method in
13987	"file_magic "*)
13988	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13989	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13990	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13991	    $EGREP "$file_magic_regex" > /dev/null; then
13992	    :
13993	  else
13994	    cat <<EOF 1>&2
13995
13996*** Warning: the command libtool uses to detect shared libraries,
13997*** $file_magic_cmd, produces output that libtool cannot recognize.
13998*** The result is that libtool may fail to recognize shared libraries
13999*** as such.  This will affect the creation of libtool libraries that
14000*** depend on shared libraries, but programs linked with such libtool
14001*** libraries will work regardless of this problem.  Nevertheless, you
14002*** may want to report the problem to your system manager and/or to
14003*** bug-libtool@gnu.org
14004
14005EOF
14006	  fi ;;
14007	esac
14008      fi
14009      break
14010    fi
14011  done
14012  IFS="$lt_save_ifs"
14013  MAGIC_CMD="$lt_save_MAGIC_CMD"
14014  ;;
14015esac
14016fi
14017
14018MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14019if test -n "$MAGIC_CMD"; then
14020  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14021echo "${ECHO_T}$MAGIC_CMD" >&6; }
14022else
14023  { echo "$as_me:$LINENO: result: no" >&5
14024echo "${ECHO_T}no" >&6; }
14025fi
14026
14027if test -z "$lt_cv_path_MAGIC_CMD"; then
14028  if test -n "$ac_tool_prefix"; then
14029    { echo "$as_me:$LINENO: checking for file" >&5
14030echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14031if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14032  echo $ECHO_N "(cached) $ECHO_C" >&6
14033else
14034  case $MAGIC_CMD in
14035[\\/*] |  ?:[\\/]*)
14036  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14037  ;;
14038*)
14039  lt_save_MAGIC_CMD="$MAGIC_CMD"
14040  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14041  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14042  for ac_dir in $ac_dummy; do
14043    IFS="$lt_save_ifs"
14044    test -z "$ac_dir" && ac_dir=.
14045    if test -f $ac_dir/file; then
14046      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14047      if test -n "$file_magic_test_file"; then
14048	case $deplibs_check_method in
14049	"file_magic "*)
14050	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14051	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14052	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14053	    $EGREP "$file_magic_regex" > /dev/null; then
14054	    :
14055	  else
14056	    cat <<EOF 1>&2
14057
14058*** Warning: the command libtool uses to detect shared libraries,
14059*** $file_magic_cmd, produces output that libtool cannot recognize.
14060*** The result is that libtool may fail to recognize shared libraries
14061*** as such.  This will affect the creation of libtool libraries that
14062*** depend on shared libraries, but programs linked with such libtool
14063*** libraries will work regardless of this problem.  Nevertheless, you
14064*** may want to report the problem to your system manager and/or to
14065*** bug-libtool@gnu.org
14066
14067EOF
14068	  fi ;;
14069	esac
14070      fi
14071      break
14072    fi
14073  done
14074  IFS="$lt_save_ifs"
14075  MAGIC_CMD="$lt_save_MAGIC_CMD"
14076  ;;
14077esac
14078fi
14079
14080MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14081if test -n "$MAGIC_CMD"; then
14082  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14083echo "${ECHO_T}$MAGIC_CMD" >&6; }
14084else
14085  { echo "$as_me:$LINENO: result: no" >&5
14086echo "${ECHO_T}no" >&6; }
14087fi
14088
14089  else
14090    MAGIC_CMD=:
14091  fi
14092fi
14093
14094  fi
14095  ;;
14096esac
14097
14098enable_dlopen=yes
14099enable_win32_dll=no
14100
14101# Check whether --enable-libtool-lock was given.
14102if test "${enable_libtool_lock+set}" = set; then
14103  enableval=$enable_libtool_lock;
14104fi
14105
14106test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14107
14108
14109# Check whether --with-pic was given.
14110if test "${with_pic+set}" = set; then
14111  withval=$with_pic; pic_mode="$withval"
14112else
14113  pic_mode=default
14114fi
14115
14116test -z "$pic_mode" && pic_mode=default
14117
14118# Use C for the default configuration in the libtool script
14119tagname=
14120lt_save_CC="$CC"
14121ac_ext=c
14122ac_cpp='$CPP $CPPFLAGS'
14123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14125ac_compiler_gnu=$ac_cv_c_compiler_gnu
14126
14127
14128# Source file extension for C test sources.
14129ac_ext=c
14130
14131# Object file extension for compiled C test sources.
14132objext=o
14133objext=$objext
14134
14135# Code to be used in simple compile tests
14136lt_simple_compile_test_code="int some_variable = 0;\n"
14137
14138# Code to be used in simple link tests
14139lt_simple_link_test_code='int main(){return(0);}\n'
14140
14141
14142# If no C compiler was specified, use CC.
14143LTCC=${LTCC-"$CC"}
14144
14145# If no C compiler flags were specified, use CFLAGS.
14146LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14147
14148# Allow CC to be a program name with arguments.
14149compiler=$CC
14150
14151
14152# save warnings/boilerplate of simple test code
14153ac_outfile=conftest.$ac_objext
14154printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14155eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14156_lt_compiler_boilerplate=`cat conftest.err`
14157$rm conftest*
14158
14159ac_outfile=conftest.$ac_objext
14160printf "$lt_simple_link_test_code" >conftest.$ac_ext
14161eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14162_lt_linker_boilerplate=`cat conftest.err`
14163$rm conftest*
14164
14165
14166
14167lt_prog_compiler_no_builtin_flag=
14168
14169if test "$GCC" = yes; then
14170  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14171
14172
14173{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14174echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14175if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14176  echo $ECHO_N "(cached) $ECHO_C" >&6
14177else
14178  lt_cv_prog_compiler_rtti_exceptions=no
14179  ac_outfile=conftest.$ac_objext
14180   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14181   lt_compiler_flag="-fno-rtti -fno-exceptions"
14182   # Insert the option either (1) after the last *FLAGS variable, or
14183   # (2) before a word containing "conftest.", or (3) at the end.
14184   # Note that $ac_compile itself does not contain backslashes and begins
14185   # with a dollar sign (not a hyphen), so the echo should work correctly.
14186   # The option is referenced via a variable to avoid confusing sed.
14187   lt_compile=`echo "$ac_compile" | $SED \
14188   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14189   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14190   -e 's:$: $lt_compiler_flag:'`
14191   (eval echo "\"\$as_me:14191: $lt_compile\"" >&5)
14192   (eval "$lt_compile" 2>conftest.err)
14193   ac_status=$?
14194   cat conftest.err >&5
14195   echo "$as_me:14195: \$? = $ac_status" >&5
14196   if (exit $ac_status) && test -s "$ac_outfile"; then
14197     # The compiler can only warn and ignore the option if not recognized
14198     # So say no if there are warnings other than the usual output.
14199     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14200     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14201     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14202       lt_cv_prog_compiler_rtti_exceptions=yes
14203     fi
14204   fi
14205   $rm conftest*
14206
14207fi
14208{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14209echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14210
14211if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14212    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14213else
14214    :
14215fi
14216
14217fi
14218
14219lt_prog_compiler_wl=
14220lt_prog_compiler_pic=
14221lt_prog_compiler_static=
14222
14223{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14224echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14225
14226  if test "$GCC" = yes; then
14227    lt_prog_compiler_wl='-Wl,'
14228    lt_prog_compiler_static='-static'
14229
14230    case $host_os in
14231      aix*)
14232      # All AIX code is PIC.
14233      if test "$host_cpu" = ia64; then
14234	# AIX 5 now supports IA64 processor
14235	lt_prog_compiler_static='-Bstatic'
14236      fi
14237      ;;
14238
14239    amigaos*)
14240      # FIXME: we need at least 68020 code to build shared libraries, but
14241      # adding the `-m68020' flag to GCC prevents building anything better,
14242      # like `-m68040'.
14243      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14244      ;;
14245
14246    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14247      # PIC is the default for these OSes.
14248      ;;
14249
14250    mingw* | pw32* | os2*)
14251      # This hack is so that the source file can tell whether it is being
14252      # built for inclusion in a dll (and should export symbols for example).
14253      lt_prog_compiler_pic='-DDLL_EXPORT'
14254      ;;
14255
14256    darwin* | rhapsody*)
14257      # PIC is the default on this platform
14258      # Common symbols not allowed in MH_DYLIB files
14259      lt_prog_compiler_pic='-fno-common'
14260      ;;
14261
14262    interix3*)
14263      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14264      # Instead, we relocate shared libraries at runtime.
14265      ;;
14266
14267    msdosdjgpp*)
14268      # Just because we use GCC doesn't mean we suddenly get shared libraries
14269      # on systems that don't support them.
14270      lt_prog_compiler_can_build_shared=no
14271      enable_shared=no
14272      ;;
14273
14274    sysv4*MP*)
14275      if test -d /usr/nec; then
14276	lt_prog_compiler_pic=-Kconform_pic
14277      fi
14278      ;;
14279
14280    hpux*)
14281      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14282      # not for PA HP-UX.
14283      case $host_cpu in
14284      hppa*64*|ia64*)
14285	# +Z the default
14286	;;
14287      *)
14288	lt_prog_compiler_pic='-fPIC'
14289	;;
14290      esac
14291      ;;
14292
14293    *)
14294      lt_prog_compiler_pic='-fPIC'
14295      ;;
14296    esac
14297  else
14298    # PORTME Check for flag to pass linker flags through the system compiler.
14299    case $host_os in
14300    aix*)
14301      lt_prog_compiler_wl='-Wl,'
14302      if test "$host_cpu" = ia64; then
14303	# AIX 5 now supports IA64 processor
14304	lt_prog_compiler_static='-Bstatic'
14305      else
14306	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14307      fi
14308      ;;
14309      darwin*)
14310        # PIC is the default on this platform
14311        # Common symbols not allowed in MH_DYLIB files
14312       case $cc_basename in
14313         xlc*)
14314         lt_prog_compiler_pic='-qnocommon'
14315         lt_prog_compiler_wl='-Wl,'
14316         ;;
14317       esac
14318       ;;
14319
14320    mingw* | pw32* | os2*)
14321      # This hack is so that the source file can tell whether it is being
14322      # built for inclusion in a dll (and should export symbols for example).
14323      lt_prog_compiler_pic='-DDLL_EXPORT'
14324      ;;
14325
14326    hpux9* | hpux10* | hpux11*)
14327      lt_prog_compiler_wl='-Wl,'
14328      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14329      # not for PA HP-UX.
14330      case $host_cpu in
14331      hppa*64*|ia64*)
14332	# +Z the default
14333	;;
14334      *)
14335	lt_prog_compiler_pic='+Z'
14336	;;
14337      esac
14338      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14339      lt_prog_compiler_static='${wl}-a ${wl}archive'
14340      ;;
14341
14342    irix5* | irix6* | nonstopux*)
14343      lt_prog_compiler_wl='-Wl,'
14344      # PIC (with -KPIC) is the default.
14345      lt_prog_compiler_static='-non_shared'
14346      ;;
14347
14348    newsos6)
14349      lt_prog_compiler_pic='-KPIC'
14350      lt_prog_compiler_static='-Bstatic'
14351      ;;
14352
14353    linux*)
14354      case $cc_basename in
14355      icc* | ecc*)
14356	lt_prog_compiler_wl='-Wl,'
14357	lt_prog_compiler_pic='-KPIC'
14358	lt_prog_compiler_static='-static'
14359        ;;
14360      pgcc* | pgf77* | pgf90* | pgf95*)
14361        # Portland Group compilers (*not* the Pentium gcc compiler,
14362	# which looks to be a dead project)
14363	lt_prog_compiler_wl='-Wl,'
14364	lt_prog_compiler_pic='-fpic'
14365	lt_prog_compiler_static='-Bstatic'
14366        ;;
14367      ccc*)
14368        lt_prog_compiler_wl='-Wl,'
14369        # All Alpha code is PIC.
14370        lt_prog_compiler_static='-non_shared'
14371        ;;
14372      esac
14373      ;;
14374
14375    osf3* | osf4* | osf5*)
14376      lt_prog_compiler_wl='-Wl,'
14377      # All OSF/1 code is PIC.
14378      lt_prog_compiler_static='-non_shared'
14379      ;;
14380
14381    solaris*)
14382      lt_prog_compiler_pic='-KPIC'
14383      lt_prog_compiler_static='-Bstatic'
14384      case $cc_basename in
14385      f77* | f90* | f95*)
14386	lt_prog_compiler_wl='-Qoption ld ';;
14387      *)
14388	lt_prog_compiler_wl='-Wl,';;
14389      esac
14390      ;;
14391
14392    sunos4*)
14393      lt_prog_compiler_wl='-Qoption ld '
14394      lt_prog_compiler_pic='-PIC'
14395      lt_prog_compiler_static='-Bstatic'
14396      ;;
14397
14398    sysv4 | sysv4.2uw2* | sysv4.3*)
14399      lt_prog_compiler_wl='-Wl,'
14400      lt_prog_compiler_pic='-KPIC'
14401      lt_prog_compiler_static='-Bstatic'
14402      ;;
14403
14404    sysv4*MP*)
14405      if test -d /usr/nec ;then
14406	lt_prog_compiler_pic='-Kconform_pic'
14407	lt_prog_compiler_static='-Bstatic'
14408      fi
14409      ;;
14410
14411    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14412      lt_prog_compiler_wl='-Wl,'
14413      lt_prog_compiler_pic='-KPIC'
14414      lt_prog_compiler_static='-Bstatic'
14415      ;;
14416
14417    unicos*)
14418      lt_prog_compiler_wl='-Wl,'
14419      lt_prog_compiler_can_build_shared=no
14420      ;;
14421
14422    uts4*)
14423      lt_prog_compiler_pic='-pic'
14424      lt_prog_compiler_static='-Bstatic'
14425      ;;
14426
14427    *)
14428      lt_prog_compiler_can_build_shared=no
14429      ;;
14430    esac
14431  fi
14432
14433{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14434echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14435
14436#
14437# Check to make sure the PIC flag actually works.
14438#
14439if test -n "$lt_prog_compiler_pic"; then
14440
14441{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14442echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14443if test "${lt_prog_compiler_pic_works+set}" = set; then
14444  echo $ECHO_N "(cached) $ECHO_C" >&6
14445else
14446  lt_prog_compiler_pic_works=no
14447  ac_outfile=conftest.$ac_objext
14448   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14449   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14450   # Insert the option either (1) after the last *FLAGS variable, or
14451   # (2) before a word containing "conftest.", or (3) at the end.
14452   # Note that $ac_compile itself does not contain backslashes and begins
14453   # with a dollar sign (not a hyphen), so the echo should work correctly.
14454   # The option is referenced via a variable to avoid confusing sed.
14455   lt_compile=`echo "$ac_compile" | $SED \
14456   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14457   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14458   -e 's:$: $lt_compiler_flag:'`
14459   (eval echo "\"\$as_me:14459: $lt_compile\"" >&5)
14460   (eval "$lt_compile" 2>conftest.err)
14461   ac_status=$?
14462   cat conftest.err >&5
14463   echo "$as_me:14463: \$? = $ac_status" >&5
14464   if (exit $ac_status) && test -s "$ac_outfile"; then
14465     # The compiler can only warn and ignore the option if not recognized
14466     # So say no if there are warnings other than the usual output.
14467     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14468     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14469     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14470       lt_prog_compiler_pic_works=yes
14471     fi
14472   fi
14473   $rm conftest*
14474
14475fi
14476{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14477echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14478
14479if test x"$lt_prog_compiler_pic_works" = xyes; then
14480    case $lt_prog_compiler_pic in
14481     "" | " "*) ;;
14482     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14483     esac
14484else
14485    lt_prog_compiler_pic=
14486     lt_prog_compiler_can_build_shared=no
14487fi
14488
14489fi
14490case $host_os in
14491  # For platforms which do not support PIC, -DPIC is meaningless:
14492  *djgpp*)
14493    lt_prog_compiler_pic=
14494    ;;
14495  *)
14496    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14497    ;;
14498esac
14499
14500#
14501# Check to make sure the static flag actually works.
14502#
14503wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14504{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14505echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14506if test "${lt_prog_compiler_static_works+set}" = set; then
14507  echo $ECHO_N "(cached) $ECHO_C" >&6
14508else
14509  lt_prog_compiler_static_works=no
14510   save_LDFLAGS="$LDFLAGS"
14511   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14512   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14513   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14514     # The linker can only warn and ignore the option if not recognized
14515     # So say no if there are warnings
14516     if test -s conftest.err; then
14517       # Append any errors to the config.log.
14518       cat conftest.err 1>&5
14519       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14520       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14521       if diff conftest.exp conftest.er2 >/dev/null; then
14522         lt_prog_compiler_static_works=yes
14523       fi
14524     else
14525       lt_prog_compiler_static_works=yes
14526     fi
14527   fi
14528   $rm conftest*
14529   LDFLAGS="$save_LDFLAGS"
14530
14531fi
14532{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14533echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14534
14535if test x"$lt_prog_compiler_static_works" = xyes; then
14536    :
14537else
14538    lt_prog_compiler_static=
14539fi
14540
14541
14542{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14543echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14544if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14545  echo $ECHO_N "(cached) $ECHO_C" >&6
14546else
14547  lt_cv_prog_compiler_c_o=no
14548   $rm -r conftest 2>/dev/null
14549   mkdir conftest
14550   cd conftest
14551   mkdir out
14552   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14553
14554   lt_compiler_flag="-o out/conftest2.$ac_objext"
14555   # Insert the option either (1) after the last *FLAGS variable, or
14556   # (2) before a word containing "conftest.", or (3) at the end.
14557   # Note that $ac_compile itself does not contain backslashes and begins
14558   # with a dollar sign (not a hyphen), so the echo should work correctly.
14559   lt_compile=`echo "$ac_compile" | $SED \
14560   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14561   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14562   -e 's:$: $lt_compiler_flag:'`
14563   (eval echo "\"\$as_me:14563: $lt_compile\"" >&5)
14564   (eval "$lt_compile" 2>out/conftest.err)
14565   ac_status=$?
14566   cat out/conftest.err >&5
14567   echo "$as_me:14567: \$? = $ac_status" >&5
14568   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14569   then
14570     # The compiler can only warn and ignore the option if not recognized
14571     # So say no if there are warnings
14572     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14573     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14574     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14575       lt_cv_prog_compiler_c_o=yes
14576     fi
14577   fi
14578   chmod u+w . 2>&5
14579   $rm conftest*
14580   # SGI C++ compiler will create directory out/ii_files/ for
14581   # template instantiation
14582   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14583   $rm out/* && rmdir out
14584   cd ..
14585   rmdir conftest
14586   $rm conftest*
14587
14588fi
14589{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14590echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14591
14592
14593hard_links="nottested"
14594if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14595  # do not overwrite the value of need_locks provided by the user
14596  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14597echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14598  hard_links=yes
14599  $rm conftest*
14600  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14601  touch conftest.a
14602  ln conftest.a conftest.b 2>&5 || hard_links=no
14603  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14604  { echo "$as_me:$LINENO: result: $hard_links" >&5
14605echo "${ECHO_T}$hard_links" >&6; }
14606  if test "$hard_links" = no; then
14607    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14608echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14609    need_locks=warn
14610  fi
14611else
14612  need_locks=no
14613fi
14614
14615{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14616echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14617
14618  runpath_var=
14619  allow_undefined_flag=
14620  enable_shared_with_static_runtimes=no
14621  archive_cmds=
14622  archive_expsym_cmds=
14623  old_archive_From_new_cmds=
14624  old_archive_from_expsyms_cmds=
14625  export_dynamic_flag_spec=
14626  whole_archive_flag_spec=
14627  thread_safe_flag_spec=
14628  hardcode_libdir_flag_spec=
14629  hardcode_libdir_flag_spec_ld=
14630  hardcode_libdir_separator=
14631  hardcode_direct=no
14632  hardcode_minus_L=no
14633  hardcode_shlibpath_var=unsupported
14634  link_all_deplibs=unknown
14635  hardcode_automatic=no
14636  module_cmds=
14637  module_expsym_cmds=
14638  always_export_symbols=no
14639  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14640  # include_expsyms should be a list of space-separated symbols to be *always*
14641  # included in the symbol list
14642  include_expsyms=
14643  # exclude_expsyms can be an extended regexp of symbols to exclude
14644  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14645  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14646  # as well as any symbol that contains `d'.
14647  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14648  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14649  # platforms (ab)use it in PIC code, but their linkers get confused if
14650  # the symbol is explicitly referenced.  Since portable code cannot
14651  # rely on this symbol name, it's probably fine to never include it in
14652  # preloaded symbol tables.
14653  extract_expsyms_cmds=
14654  # Just being paranoid about ensuring that cc_basename is set.
14655  for cc_temp in $compiler""; do
14656  case $cc_temp in
14657    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14658    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14659    \-*) ;;
14660    *) break;;
14661  esac
14662done
14663cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14664
14665  case $host_os in
14666  cygwin* | mingw* | pw32*)
14667    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14668    # When not using gcc, we currently assume that we are using
14669    # Microsoft Visual C++.
14670    if test "$GCC" != yes; then
14671      with_gnu_ld=no
14672    fi
14673    ;;
14674  interix*)
14675    # we just hope/assume this is gcc and not c89 (= MSVC++)
14676    with_gnu_ld=yes
14677    ;;
14678  openbsd*)
14679    with_gnu_ld=no
14680    ;;
14681  esac
14682
14683  ld_shlibs=yes
14684  if test "$with_gnu_ld" = yes; then
14685    # If archive_cmds runs LD, not CC, wlarc should be empty
14686    wlarc='${wl}'
14687
14688    # Set some defaults for GNU ld with shared library support. These
14689    # are reset later if shared libraries are not supported. Putting them
14690    # here allows them to be overridden if necessary.
14691    runpath_var=LD_RUN_PATH
14692    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14693    export_dynamic_flag_spec='${wl}--export-dynamic'
14694    # ancient GNU ld didn't support --whole-archive et. al.
14695    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14696	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14697      else
14698  	whole_archive_flag_spec=
14699    fi
14700    supports_anon_versioning=no
14701    case `$LD -v 2>/dev/null` in
14702      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14703      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14704      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14705      *\ 2.11.*) ;; # other 2.11 versions
14706      *) supports_anon_versioning=yes ;;
14707    esac
14708
14709    # See if GNU ld supports shared libraries.
14710    case $host_os in
14711    aix3* | aix4* | aix5*)
14712      # On AIX/PPC, the GNU linker is very broken
14713      if test "$host_cpu" != ia64; then
14714	ld_shlibs=no
14715	cat <<EOF 1>&2
14716
14717*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14718*** to be unable to reliably create shared libraries on AIX.
14719*** Therefore, libtool is disabling shared libraries support.  If you
14720*** really care for shared libraries, you may want to modify your PATH
14721*** so that a non-GNU linker is found, and then restart.
14722
14723EOF
14724      fi
14725      ;;
14726
14727    amigaos*)
14728      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)'
14729      hardcode_libdir_flag_spec='-L$libdir'
14730      hardcode_minus_L=yes
14731
14732      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14733      # that the semantics of dynamic libraries on AmigaOS, at least up
14734      # to version 4, is to share data among multiple programs linked
14735      # with the same dynamic library.  Since this doesn't match the
14736      # behavior of shared libraries on other platforms, we can't use
14737      # them.
14738      ld_shlibs=no
14739      ;;
14740
14741    beos*)
14742      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14743	allow_undefined_flag=unsupported
14744	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14745	# support --undefined.  This deserves some investigation.  FIXME
14746	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14747      else
14748	ld_shlibs=no
14749      fi
14750      ;;
14751
14752    cygwin* | mingw* | pw32*)
14753      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14754      # as there is no search path for DLLs.
14755      hardcode_libdir_flag_spec='-L$libdir'
14756      allow_undefined_flag=unsupported
14757      always_export_symbols=no
14758      enable_shared_with_static_runtimes=yes
14759      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14760
14761      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14762        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14763	# If the export-symbols file already is a .def file (1st line
14764	# is EXPORTS), use it as is; otherwise, prepend...
14765	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14766	  cp $export_symbols $output_objdir/$soname.def;
14767	else
14768	  echo EXPORTS > $output_objdir/$soname.def;
14769	  cat $export_symbols >> $output_objdir/$soname.def;
14770	fi~
14771	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14772      else
14773	ld_shlibs=no
14774      fi
14775      ;;
14776
14777    interix3*)
14778      hardcode_direct=no
14779      hardcode_shlibpath_var=no
14780      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14781      export_dynamic_flag_spec='${wl}-E'
14782      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14783      # Instead, shared libraries are loaded at an image base (0x10000000 by
14784      # default) and relocated if they conflict, which is a slow very memory
14785      # consuming and fragmenting process.  To avoid this, we pick a random,
14786      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14787      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14788      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14789      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'
14790      ;;
14791
14792    linux*)
14793      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14794	tmp_addflag=
14795	case $cc_basename,$host_cpu in
14796	pgcc*)				# Portland Group C compiler
14797	  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'
14798	  tmp_addflag=' $pic_flag'
14799	  ;;
14800	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14801	  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'
14802	  tmp_addflag=' $pic_flag -Mnomain' ;;
14803	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14804	  tmp_addflag=' -i_dynamic' ;;
14805	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14806	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14807	ifc* | ifort*)			# Intel Fortran compiler
14808	  tmp_addflag=' -nofor_main' ;;
14809	esac
14810	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14811
14812	if test $supports_anon_versioning = yes; then
14813	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14814  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14815  $echo "local: *; };" >> $output_objdir/$libname.ver~
14816	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14817	fi
14818      else
14819	ld_shlibs=no
14820      fi
14821      ;;
14822
14823    netbsd*)
14824      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14825	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14826	wlarc=
14827      else
14828	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14829	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14830      fi
14831      ;;
14832
14833    solaris*)
14834      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14835	ld_shlibs=no
14836	cat <<EOF 1>&2
14837
14838*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14839*** create shared libraries on Solaris systems.  Therefore, libtool
14840*** is disabling shared libraries support.  We urge you to upgrade GNU
14841*** binutils to release 2.9.1 or newer.  Another option is to modify
14842*** your PATH or compiler configuration so that the native linker is
14843*** used, and then restart.
14844
14845EOF
14846      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14847	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14848	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14849      else
14850	ld_shlibs=no
14851      fi
14852      ;;
14853
14854    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14855      case `$LD -v 2>&1` in
14856        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14857	ld_shlibs=no
14858	cat <<_LT_EOF 1>&2
14859
14860*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14861*** reliably create shared libraries on SCO systems.  Therefore, libtool
14862*** is disabling shared libraries support.  We urge you to upgrade GNU
14863*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14864*** your PATH or compiler configuration so that the native linker is
14865*** used, and then restart.
14866
14867_LT_EOF
14868	;;
14869	*)
14870	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14871	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14872	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14873	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14874	  else
14875	    ld_shlibs=no
14876	  fi
14877	;;
14878      esac
14879      ;;
14880
14881    sunos4*)
14882      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14883      wlarc=
14884      hardcode_direct=yes
14885      hardcode_shlibpath_var=no
14886      ;;
14887
14888    *)
14889      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14890	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14891	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14892      else
14893	ld_shlibs=no
14894      fi
14895      ;;
14896    esac
14897
14898    if test "$ld_shlibs" = no; then
14899      runpath_var=
14900      hardcode_libdir_flag_spec=
14901      export_dynamic_flag_spec=
14902      whole_archive_flag_spec=
14903    fi
14904  else
14905    # PORTME fill in a description of your system's linker (not GNU ld)
14906    case $host_os in
14907    aix3*)
14908      allow_undefined_flag=unsupported
14909      always_export_symbols=yes
14910      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'
14911      # Note: this linker hardcodes the directories in LIBPATH if there
14912      # are no directories specified by -L.
14913      hardcode_minus_L=yes
14914      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14915	# Neither direct hardcoding nor static linking is supported with a
14916	# broken collect2.
14917	hardcode_direct=unsupported
14918      fi
14919      ;;
14920
14921    aix4* | aix5*)
14922      if test "$host_cpu" = ia64; then
14923	# On IA64, the linker does run time linking by default, so we don't
14924	# have to do anything special.
14925	aix_use_runtimelinking=no
14926	exp_sym_flag='-Bexport'
14927	no_entry_flag=""
14928      else
14929	# If we're using GNU nm, then we don't want the "-C" option.
14930	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14931	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14932	  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'
14933	else
14934	  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'
14935	fi
14936	aix_use_runtimelinking=no
14937
14938	# Test if we are trying to use run time linking or normal
14939	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14940	# need to do runtime linking.
14941	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14942	  for ld_flag in $LDFLAGS; do
14943  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14944  	    aix_use_runtimelinking=yes
14945  	    break
14946  	  fi
14947	  done
14948	  ;;
14949	esac
14950
14951	exp_sym_flag='-bexport'
14952	no_entry_flag='-bnoentry'
14953      fi
14954
14955      # When large executables or shared objects are built, AIX ld can
14956      # have problems creating the table of contents.  If linking a library
14957      # or program results in "error TOC overflow" add -mminimal-toc to
14958      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14959      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14960
14961      archive_cmds=''
14962      hardcode_direct=yes
14963      hardcode_libdir_separator=':'
14964      link_all_deplibs=yes
14965
14966      if test "$GCC" = yes; then
14967	case $host_os in aix4.[012]|aix4.[012].*)
14968	# We only want to do this on AIX 4.2 and lower, the check
14969	# below for broken collect2 doesn't work under 4.3+
14970	  collect2name=`${CC} -print-prog-name=collect2`
14971	  if test -f "$collect2name" && \
14972  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14973	  then
14974  	  # We have reworked collect2
14975  	  hardcode_direct=yes
14976	  else
14977  	  # We have old collect2
14978  	  hardcode_direct=unsupported
14979  	  # It fails to find uninstalled libraries when the uninstalled
14980  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14981  	  # to unsupported forces relinking
14982  	  hardcode_minus_L=yes
14983  	  hardcode_libdir_flag_spec='-L$libdir'
14984  	  hardcode_libdir_separator=
14985	  fi
14986	  ;;
14987	esac
14988	shared_flag='-shared'
14989	if test "$aix_use_runtimelinking" = yes; then
14990	  shared_flag="$shared_flag "'${wl}-G'
14991	fi
14992      else
14993	# not using gcc
14994	if test "$host_cpu" = ia64; then
14995  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14996  	# chokes on -Wl,-G. The following line is correct:
14997	  shared_flag='-G'
14998	else
14999	  if test "$aix_use_runtimelinking" = yes; then
15000	    shared_flag='${wl}-G'
15001	  else
15002	    shared_flag='${wl}-bM:SRE'
15003	  fi
15004	fi
15005      fi
15006
15007      # It seems that -bexpall does not export symbols beginning with
15008      # underscore (_), so it is better to generate a list of symbols to export.
15009      always_export_symbols=yes
15010      if test "$aix_use_runtimelinking" = yes; then
15011	# Warning - without using the other runtime loading flags (-brtl),
15012	# -berok will link without error, but may produce a broken library.
15013	allow_undefined_flag='-berok'
15014       # Determine the default libpath from the value encoded in an empty executable.
15015       cat >conftest.$ac_ext <<_ACEOF
15016/* confdefs.h.  */
15017_ACEOF
15018cat confdefs.h >>conftest.$ac_ext
15019cat >>conftest.$ac_ext <<_ACEOF
15020/* end confdefs.h.  */
15021
15022int
15023main ()
15024{
15025
15026  ;
15027  return 0;
15028}
15029_ACEOF
15030rm -f conftest.$ac_objext conftest$ac_exeext
15031if { (ac_try="$ac_link"
15032case "(($ac_try" in
15033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15034  *) ac_try_echo=$ac_try;;
15035esac
15036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15037  (eval "$ac_link") 2>conftest.er1
15038  ac_status=$?
15039  grep -v '^ *+' conftest.er1 >conftest.err
15040  rm -f conftest.er1
15041  cat conftest.err >&5
15042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043  (exit $ac_status); } &&
15044	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15045  { (case "(($ac_try" in
15046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15047  *) ac_try_echo=$ac_try;;
15048esac
15049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15050  (eval "$ac_try") 2>&5
15051  ac_status=$?
15052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053  (exit $ac_status); }; } &&
15054	 { ac_try='test -s conftest$ac_exeext'
15055  { (case "(($ac_try" in
15056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15057  *) ac_try_echo=$ac_try;;
15058esac
15059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15060  (eval "$ac_try") 2>&5
15061  ac_status=$?
15062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063  (exit $ac_status); }; }; then
15064
15065aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15066}'`
15067# Check for a 64-bit object if we didn't find anything.
15068if 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; }
15069}'`; fi
15070else
15071  echo "$as_me: failed program was:" >&5
15072sed 's/^/| /' conftest.$ac_ext >&5
15073
15074
15075fi
15076
15077rm -f core conftest.err conftest.$ac_objext \
15078      conftest$ac_exeext conftest.$ac_ext
15079if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15080
15081       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15082	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"
15083       else
15084	if test "$host_cpu" = ia64; then
15085	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15086	  allow_undefined_flag="-z nodefs"
15087	  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"
15088	else
15089	 # Determine the default libpath from the value encoded in an empty executable.
15090	 cat >conftest.$ac_ext <<_ACEOF
15091/* confdefs.h.  */
15092_ACEOF
15093cat confdefs.h >>conftest.$ac_ext
15094cat >>conftest.$ac_ext <<_ACEOF
15095/* end confdefs.h.  */
15096
15097int
15098main ()
15099{
15100
15101  ;
15102  return 0;
15103}
15104_ACEOF
15105rm -f conftest.$ac_objext conftest$ac_exeext
15106if { (ac_try="$ac_link"
15107case "(($ac_try" in
15108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15109  *) ac_try_echo=$ac_try;;
15110esac
15111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15112  (eval "$ac_link") 2>conftest.er1
15113  ac_status=$?
15114  grep -v '^ *+' conftest.er1 >conftest.err
15115  rm -f conftest.er1
15116  cat conftest.err >&5
15117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118  (exit $ac_status); } &&
15119	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15120  { (case "(($ac_try" in
15121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122  *) ac_try_echo=$ac_try;;
15123esac
15124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125  (eval "$ac_try") 2>&5
15126  ac_status=$?
15127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128  (exit $ac_status); }; } &&
15129	 { ac_try='test -s conftest$ac_exeext'
15130  { (case "(($ac_try" in
15131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15132  *) ac_try_echo=$ac_try;;
15133esac
15134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15135  (eval "$ac_try") 2>&5
15136  ac_status=$?
15137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138  (exit $ac_status); }; }; then
15139
15140aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15141}'`
15142# Check for a 64-bit object if we didn't find anything.
15143if 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; }
15144}'`; fi
15145else
15146  echo "$as_me: failed program was:" >&5
15147sed 's/^/| /' conftest.$ac_ext >&5
15148
15149
15150fi
15151
15152rm -f core conftest.err conftest.$ac_objext \
15153      conftest$ac_exeext conftest.$ac_ext
15154if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15155
15156	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15157	  # Warning - without using the other run time loading flags,
15158	  # -berok will link without error, but may produce a broken library.
15159	  no_undefined_flag=' ${wl}-bernotok'
15160	  allow_undefined_flag=' ${wl}-berok'
15161	  # Exported symbols can be pulled into shared objects from archives
15162	  whole_archive_flag_spec='$convenience'
15163	  archive_cmds_need_lc=yes
15164	  # This is similar to how AIX traditionally builds its shared libraries.
15165	  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'
15166	fi
15167      fi
15168      ;;
15169
15170    amigaos*)
15171      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)'
15172      hardcode_libdir_flag_spec='-L$libdir'
15173      hardcode_minus_L=yes
15174      # see comment about different semantics on the GNU ld section
15175      ld_shlibs=no
15176      ;;
15177
15178    bsdi[45]*)
15179      export_dynamic_flag_spec=-rdynamic
15180      ;;
15181
15182    cygwin* | mingw* | pw32*)
15183      # When not using gcc, we currently assume that we are using
15184      # Microsoft Visual C++.
15185      # hardcode_libdir_flag_spec is actually meaningless, as there is
15186      # no search path for DLLs.
15187      hardcode_libdir_flag_spec=' '
15188      allow_undefined_flag=unsupported
15189      # Tell ltmain to make .lib files, not .a files.
15190      libext=lib
15191      # Tell ltmain to make .dll files, not .so files.
15192      shrext_cmds=".dll"
15193      # FIXME: Setting linknames here is a bad hack.
15194      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15195      # The linker will automatically build a .lib file if we build a DLL.
15196      old_archive_From_new_cmds='true'
15197      # FIXME: Should let the user specify the lib program.
15198      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15199      fix_srcfile_path='`cygpath -w "$srcfile"`'
15200      enable_shared_with_static_runtimes=yes
15201      ;;
15202
15203    darwin* | rhapsody*)
15204      case $host_os in
15205        rhapsody* | darwin1.[012])
15206         allow_undefined_flag='${wl}-undefined ${wl}suppress'
15207         ;;
15208       *) # Darwin 1.3 on
15209         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15210           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15211         else
15212           case ${MACOSX_DEPLOYMENT_TARGET} in
15213             10.[012])
15214               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15215               ;;
15216             10.*)
15217               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15218               ;;
15219           esac
15220         fi
15221         ;;
15222      esac
15223      archive_cmds_need_lc=no
15224      hardcode_direct=no
15225      hardcode_automatic=yes
15226      hardcode_shlibpath_var=unsupported
15227      whole_archive_flag_spec=''
15228      link_all_deplibs=yes
15229    if test "$GCC" = yes ; then
15230    	output_verbose_link_cmd='echo'
15231        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15232      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15233      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15234      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}'
15235      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}'
15236    else
15237      case $cc_basename in
15238        xlc*)
15239         output_verbose_link_cmd='echo'
15240         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15241         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15242          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15243         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}'
15244          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}'
15245          ;;
15246       *)
15247         ld_shlibs=no
15248          ;;
15249      esac
15250    fi
15251      ;;
15252
15253    dgux*)
15254      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15255      hardcode_libdir_flag_spec='-L$libdir'
15256      hardcode_shlibpath_var=no
15257      ;;
15258
15259    freebsd1*)
15260      ld_shlibs=no
15261      ;;
15262
15263    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15264    # support.  Future versions do this automatically, but an explicit c++rt0.o
15265    # does not break anything, and helps significantly (at the cost of a little
15266    # extra space).
15267    freebsd2.2*)
15268      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15269      hardcode_libdir_flag_spec='-R$libdir'
15270      hardcode_direct=yes
15271      hardcode_shlibpath_var=no
15272      ;;
15273
15274    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15275    freebsd2*)
15276      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15277      hardcode_direct=yes
15278      hardcode_minus_L=yes
15279      hardcode_shlibpath_var=no
15280      ;;
15281
15282    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15283    freebsd* | kfreebsd*-gnu | dragonfly*)
15284      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15285      hardcode_libdir_flag_spec='-R$libdir'
15286      hardcode_direct=yes
15287      hardcode_shlibpath_var=no
15288      ;;
15289
15290    hpux9*)
15291      if test "$GCC" = yes; then
15292	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'
15293      else
15294	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'
15295      fi
15296      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15297      hardcode_libdir_separator=:
15298      hardcode_direct=yes
15299
15300      # hardcode_minus_L: Not really in the search PATH,
15301      # but as the default location of the library.
15302      hardcode_minus_L=yes
15303      export_dynamic_flag_spec='${wl}-E'
15304      ;;
15305
15306    hpux10*)
15307      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15308	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15309      else
15310	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15311      fi
15312      if test "$with_gnu_ld" = no; then
15313	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15314	hardcode_libdir_separator=:
15315
15316	hardcode_direct=yes
15317	export_dynamic_flag_spec='${wl}-E'
15318
15319	# hardcode_minus_L: Not really in the search PATH,
15320	# but as the default location of the library.
15321	hardcode_minus_L=yes
15322      fi
15323      ;;
15324
15325    hpux11*)
15326      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15327	case $host_cpu in
15328	hppa*64*)
15329	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15330	  ;;
15331	ia64*)
15332	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15333	  ;;
15334	*)
15335	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15336	  ;;
15337	esac
15338      else
15339	case $host_cpu in
15340	hppa*64*)
15341	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15342	  ;;
15343	ia64*)
15344	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15345	  ;;
15346	*)
15347	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15348	  ;;
15349	esac
15350      fi
15351      if test "$with_gnu_ld" = no; then
15352	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15353	hardcode_libdir_separator=:
15354
15355	case $host_cpu in
15356	hppa*64*|ia64*)
15357	  hardcode_libdir_flag_spec_ld='+b $libdir'
15358	  hardcode_direct=no
15359	  hardcode_shlibpath_var=no
15360	  ;;
15361	*)
15362	  hardcode_direct=yes
15363	  export_dynamic_flag_spec='${wl}-E'
15364
15365	  # hardcode_minus_L: Not really in the search PATH,
15366	  # but as the default location of the library.
15367	  hardcode_minus_L=yes
15368	  ;;
15369	esac
15370      fi
15371      ;;
15372
15373    irix5* | irix6* | nonstopux*)
15374      if test "$GCC" = yes; then
15375	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'
15376      else
15377	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'
15378	hardcode_libdir_flag_spec_ld='-rpath $libdir'
15379      fi
15380      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15381      hardcode_libdir_separator=:
15382      link_all_deplibs=yes
15383      ;;
15384
15385    netbsd*)
15386      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15387	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15388      else
15389	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15390      fi
15391      hardcode_libdir_flag_spec='-R$libdir'
15392      hardcode_direct=yes
15393      hardcode_shlibpath_var=no
15394      ;;
15395
15396    newsos6)
15397      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15398      hardcode_direct=yes
15399      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15400      hardcode_libdir_separator=:
15401      hardcode_shlibpath_var=no
15402      ;;
15403
15404    openbsd*)
15405      hardcode_direct=yes
15406      hardcode_shlibpath_var=no
15407      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15408	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15409	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15410	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15411	export_dynamic_flag_spec='${wl}-E'
15412      else
15413       case $host_os in
15414	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15415	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15416	   hardcode_libdir_flag_spec='-R$libdir'
15417	   ;;
15418	 *)
15419	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15420	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15421	   ;;
15422       esac
15423      fi
15424      ;;
15425
15426    os2*)
15427      hardcode_libdir_flag_spec='-L$libdir'
15428      hardcode_minus_L=yes
15429      allow_undefined_flag=unsupported
15430      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'
15431      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15432      ;;
15433
15434    osf3*)
15435      if test "$GCC" = yes; then
15436	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15437	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'
15438      else
15439	allow_undefined_flag=' -expect_unresolved \*'
15440	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'
15441      fi
15442      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15443      hardcode_libdir_separator=:
15444      ;;
15445
15446    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15447      if test "$GCC" = yes; then
15448	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15449	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'
15450	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15451      else
15452	allow_undefined_flag=' -expect_unresolved \*'
15453	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'
15454	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15455	$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'
15456
15457	# Both c and cxx compiler support -rpath directly
15458	hardcode_libdir_flag_spec='-rpath $libdir'
15459      fi
15460      hardcode_libdir_separator=:
15461      ;;
15462
15463    solaris*)
15464      no_undefined_flag=' -z text'
15465      if test "$GCC" = yes; then
15466	wlarc='${wl}'
15467	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15468	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15469	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15470      else
15471	wlarc=''
15472	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15473	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15474  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15475      fi
15476      hardcode_libdir_flag_spec='-R$libdir'
15477      hardcode_shlibpath_var=no
15478      case $host_os in
15479      solaris2.[0-5] | solaris2.[0-5].*) ;;
15480      *)
15481 	# The compiler driver will combine linker options so we
15482 	# cannot just pass the convience library names through
15483 	# without $wl, iff we do not link with $LD.
15484 	# Luckily, gcc supports the same syntax we need for Sun Studio.
15485 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15486 	case $wlarc in
15487 	'')
15488 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15489 	*)
15490 	  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' ;;
15491 	esac ;;
15492      esac
15493      link_all_deplibs=yes
15494      ;;
15495
15496    sunos4*)
15497      if test "x$host_vendor" = xsequent; then
15498	# Use $CC to link under sequent, because it throws in some extra .o
15499	# files that make .init and .fini sections work.
15500	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15501      else
15502	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15503      fi
15504      hardcode_libdir_flag_spec='-L$libdir'
15505      hardcode_direct=yes
15506      hardcode_minus_L=yes
15507      hardcode_shlibpath_var=no
15508      ;;
15509
15510    sysv4)
15511      case $host_vendor in
15512	sni)
15513	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15514	  hardcode_direct=yes # is this really true???
15515	;;
15516	siemens)
15517	  ## LD is ld it makes a PLAMLIB
15518	  ## CC just makes a GrossModule.
15519	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15520	  reload_cmds='$CC -r -o $output$reload_objs'
15521	  hardcode_direct=no
15522        ;;
15523	motorola)
15524	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15525	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15526	;;
15527      esac
15528      runpath_var='LD_RUN_PATH'
15529      hardcode_shlibpath_var=no
15530      ;;
15531
15532    sysv4.3*)
15533      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15534      hardcode_shlibpath_var=no
15535      export_dynamic_flag_spec='-Bexport'
15536      ;;
15537
15538    sysv4*MP*)
15539      if test -d /usr/nec; then
15540	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15541	hardcode_shlibpath_var=no
15542	runpath_var=LD_RUN_PATH
15543	hardcode_runpath_var=yes
15544	ld_shlibs=yes
15545      fi
15546      ;;
15547
15548    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15549      no_undefined_flag='${wl}-z,text'
15550      archive_cmds_need_lc=no
15551      hardcode_shlibpath_var=no
15552      runpath_var='LD_RUN_PATH'
15553
15554      if test "$GCC" = yes; then
15555	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15556	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15557      else
15558	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15559	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15560      fi
15561      ;;
15562
15563    sysv5* | sco3.2v5* | sco5v6*)
15564      # Note: We can NOT use -z defs as we might desire, because we do not
15565      # link with -lc, and that would cause any symbols used from libc to
15566      # always be unresolved, which means just about no library would
15567      # ever link correctly.  If we're not using GNU ld we use -z text
15568      # though, which does catch some bad symbols but isn't as heavy-handed
15569      # as -z defs.
15570      no_undefined_flag='${wl}-z,text'
15571      allow_undefined_flag='${wl}-z,nodefs'
15572      archive_cmds_need_lc=no
15573      hardcode_shlibpath_var=no
15574      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15575      hardcode_libdir_separator=':'
15576      link_all_deplibs=yes
15577      export_dynamic_flag_spec='${wl}-Bexport'
15578      runpath_var='LD_RUN_PATH'
15579
15580      if test "$GCC" = yes; then
15581	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15582	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15583      else
15584	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15585	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15586      fi
15587      ;;
15588
15589    uts4*)
15590      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15591      hardcode_libdir_flag_spec='-L$libdir'
15592      hardcode_shlibpath_var=no
15593      ;;
15594
15595    *)
15596      ld_shlibs=no
15597      ;;
15598    esac
15599  fi
15600
15601{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15602echo "${ECHO_T}$ld_shlibs" >&6; }
15603test "$ld_shlibs" = no && can_build_shared=no
15604
15605#
15606# Do we need to explicitly link libc?
15607#
15608case "x$archive_cmds_need_lc" in
15609x|xyes)
15610  # Assume -lc should be added
15611  archive_cmds_need_lc=yes
15612
15613  if test "$enable_shared" = yes && test "$GCC" = yes; then
15614    case $archive_cmds in
15615    *'~'*)
15616      # FIXME: we may have to deal with multi-command sequences.
15617      ;;
15618    '$CC '*)
15619      # Test whether the compiler implicitly links with -lc since on some
15620      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15621      # to ld, don't add -lc before -lgcc.
15622      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15623echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15624      $rm conftest*
15625      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15626
15627      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15628  (eval $ac_compile) 2>&5
15629  ac_status=$?
15630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631  (exit $ac_status); } 2>conftest.err; then
15632        soname=conftest
15633        lib=conftest
15634        libobjs=conftest.$ac_objext
15635        deplibs=
15636        wl=$lt_prog_compiler_wl
15637	pic_flag=$lt_prog_compiler_pic
15638        compiler_flags=-v
15639        linker_flags=-v
15640        verstring=
15641        output_objdir=.
15642        libname=conftest
15643        lt_save_allow_undefined_flag=$allow_undefined_flag
15644        allow_undefined_flag=
15645        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15646  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15647  ac_status=$?
15648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649  (exit $ac_status); }
15650        then
15651	  archive_cmds_need_lc=no
15652        else
15653	  archive_cmds_need_lc=yes
15654        fi
15655        allow_undefined_flag=$lt_save_allow_undefined_flag
15656      else
15657        cat conftest.err 1>&5
15658      fi
15659      $rm conftest*
15660      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15661echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15662      ;;
15663    esac
15664  fi
15665  ;;
15666esac
15667
15668{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15669echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15670library_names_spec=
15671libname_spec='lib$name'
15672soname_spec=
15673shrext_cmds=".so"
15674postinstall_cmds=
15675postuninstall_cmds=
15676finish_cmds=
15677finish_eval=
15678shlibpath_var=
15679shlibpath_overrides_runpath=unknown
15680version_type=none
15681dynamic_linker="$host_os ld.so"
15682sys_lib_dlsearch_path_spec="/lib /usr/lib"
15683if test "$GCC" = yes; then
15684  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15685  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15686    # if the path contains ";" then we assume it to be the separator
15687    # otherwise default to the standard path separator (i.e. ":") - it is
15688    # assumed that no part of a normal pathname contains ";" but that should
15689    # okay in the real world where ";" in dirpaths is itself problematic.
15690    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15691  else
15692    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15693  fi
15694else
15695  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15696fi
15697need_lib_prefix=unknown
15698hardcode_into_libs=no
15699
15700# when you set need_version to no, make sure it does not cause -set_version
15701# flags to be left without arguments
15702need_version=unknown
15703
15704case $host_os in
15705aix3*)
15706  version_type=linux
15707  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15708  shlibpath_var=LIBPATH
15709
15710  # AIX 3 has no versioning support, so we append a major version to the name.
15711  soname_spec='${libname}${release}${shared_ext}$major'
15712  ;;
15713
15714aix4* | aix5*)
15715  version_type=linux
15716  need_lib_prefix=no
15717  need_version=no
15718  hardcode_into_libs=yes
15719  if test "$host_cpu" = ia64; then
15720    # AIX 5 supports IA64
15721    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15722    shlibpath_var=LD_LIBRARY_PATH
15723  else
15724    # With GCC up to 2.95.x, collect2 would create an import file
15725    # for dependence libraries.  The import file would start with
15726    # the line `#! .'.  This would cause the generated library to
15727    # depend on `.', always an invalid library.  This was fixed in
15728    # development snapshots of GCC prior to 3.0.
15729    case $host_os in
15730      aix4 | aix4.[01] | aix4.[01].*)
15731      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15732	   echo ' yes '
15733	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15734	:
15735      else
15736	can_build_shared=no
15737      fi
15738      ;;
15739    esac
15740    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15741    # soname into executable. Probably we can add versioning support to
15742    # collect2, so additional links can be useful in future.
15743    if test "$aix_use_runtimelinking" = yes; then
15744      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15745      # instead of lib<name>.a to let people know that these are not
15746      # typical AIX shared libraries.
15747      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15748    else
15749      # We preserve .a as extension for shared libraries through AIX4.2
15750      # and later when we are not doing run time linking.
15751      library_names_spec='${libname}${release}.a $libname.a'
15752      soname_spec='${libname}${release}${shared_ext}$major'
15753    fi
15754    shlibpath_var=LIBPATH
15755  fi
15756  ;;
15757
15758amigaos*)
15759  library_names_spec='$libname.ixlibrary $libname.a'
15760  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15761  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'
15762  ;;
15763
15764beos*)
15765  library_names_spec='${libname}${shared_ext}'
15766  dynamic_linker="$host_os ld.so"
15767  shlibpath_var=LIBRARY_PATH
15768  ;;
15769
15770bsdi[45]*)
15771  version_type=linux
15772  need_version=no
15773  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15774  soname_spec='${libname}${release}${shared_ext}$major'
15775  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15776  shlibpath_var=LD_LIBRARY_PATH
15777  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15778  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15779  # the default ld.so.conf also contains /usr/contrib/lib and
15780  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15781  # libtool to hard-code these into programs
15782  ;;
15783
15784cygwin* | mingw* | pw32*)
15785  version_type=windows
15786  shrext_cmds=".dll"
15787  need_version=no
15788  need_lib_prefix=no
15789
15790  case $GCC,$host_os in
15791  yes,cygwin* | yes,mingw* | yes,pw32*)
15792    library_names_spec='$libname.dll.a'
15793    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15794    postinstall_cmds='base_file=`basename \${file}`~
15795      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15796      dldir=$destdir/`dirname \$dlpath`~
15797      test -d \$dldir || mkdir -p \$dldir~
15798      $install_prog $dir/$dlname \$dldir/$dlname~
15799      chmod a+x \$dldir/$dlname'
15800    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15801      dlpath=$dir/\$dldll~
15802       $rm \$dlpath'
15803    shlibpath_overrides_runpath=yes
15804
15805    case $host_os in
15806    cygwin*)
15807      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15808      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15809      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15810      ;;
15811    mingw*)
15812      # MinGW DLLs use traditional 'lib' prefix
15813      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15814      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15815      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15816        # It is most probably a Windows format PATH printed by
15817        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15818        # path with ; separators, and with drive letters. We can handle the
15819        # drive letters (cygwin fileutils understands them), so leave them,
15820        # especially as we might pass files found there to a mingw objdump,
15821        # which wouldn't understand a cygwinified path. Ahh.
15822        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15823      else
15824        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15825      fi
15826      ;;
15827    pw32*)
15828      # pw32 DLLs use 'pw' prefix rather than 'lib'
15829      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15830      ;;
15831    esac
15832    ;;
15833
15834  *)
15835    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15836    ;;
15837  esac
15838  dynamic_linker='Win32 ld.exe'
15839  # FIXME: first we should search . and the directory the executable is in
15840  shlibpath_var=PATH
15841  ;;
15842
15843darwin* | rhapsody*)
15844  dynamic_linker="$host_os dyld"
15845  version_type=darwin
15846  need_lib_prefix=no
15847  need_version=no
15848  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15849  soname_spec='${libname}${release}${major}$shared_ext'
15850  shlibpath_overrides_runpath=yes
15851  shlibpath_var=DYLD_LIBRARY_PATH
15852  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15853  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15854  if test "$GCC" = yes; then
15855    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"`
15856  else
15857    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15858  fi
15859  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15860  ;;
15861
15862dgux*)
15863  version_type=linux
15864  need_lib_prefix=no
15865  need_version=no
15866  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15867  soname_spec='${libname}${release}${shared_ext}$major'
15868  shlibpath_var=LD_LIBRARY_PATH
15869  ;;
15870
15871freebsd1*)
15872  dynamic_linker=no
15873  ;;
15874
15875kfreebsd*-gnu)
15876  version_type=linux
15877  need_lib_prefix=no
15878  need_version=no
15879  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15880  soname_spec='${libname}${release}${shared_ext}$major'
15881  shlibpath_var=LD_LIBRARY_PATH
15882  shlibpath_overrides_runpath=no
15883  hardcode_into_libs=yes
15884  dynamic_linker='GNU ld.so'
15885  ;;
15886
15887freebsd* | dragonfly*)
15888  # DragonFly does not have aout.  When/if they implement a new
15889  # versioning mechanism, adjust this.
15890  if test -x /usr/bin/objformat; then
15891    objformat=`/usr/bin/objformat`
15892  else
15893    case $host_os in
15894    freebsd[123]*) objformat=aout ;;
15895    *) objformat=elf ;;
15896    esac
15897  fi
15898  version_type=freebsd-$objformat
15899  case $version_type in
15900    freebsd-elf*)
15901      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15902      need_version=no
15903      need_lib_prefix=no
15904      ;;
15905    freebsd-*)
15906      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15907      need_version=yes
15908      ;;
15909  esac
15910  shlibpath_var=LD_LIBRARY_PATH
15911  case $host_os in
15912  freebsd2*)
15913    shlibpath_overrides_runpath=yes
15914    ;;
15915  freebsd3.[01]* | freebsdelf3.[01]*)
15916    shlibpath_overrides_runpath=yes
15917    hardcode_into_libs=yes
15918    ;;
15919  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15920  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15921    shlibpath_overrides_runpath=no
15922    hardcode_into_libs=yes
15923    ;;
15924  freebsd*) # from 4.6 on
15925    shlibpath_overrides_runpath=yes
15926    hardcode_into_libs=yes
15927    ;;
15928  esac
15929  ;;
15930
15931gnu*)
15932  version_type=linux
15933  need_lib_prefix=no
15934  need_version=no
15935  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15936  soname_spec='${libname}${release}${shared_ext}$major'
15937  shlibpath_var=LD_LIBRARY_PATH
15938  hardcode_into_libs=yes
15939  ;;
15940
15941hpux9* | hpux10* | hpux11*)
15942  # Give a soname corresponding to the major version so that dld.sl refuses to
15943  # link against other versions.
15944  version_type=sunos
15945  need_lib_prefix=no
15946  need_version=no
15947  case $host_cpu in
15948  ia64*)
15949    shrext_cmds='.so'
15950    hardcode_into_libs=yes
15951    dynamic_linker="$host_os dld.so"
15952    shlibpath_var=LD_LIBRARY_PATH
15953    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15954    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15955    soname_spec='${libname}${release}${shared_ext}$major'
15956    if test "X$HPUX_IA64_MODE" = X32; then
15957      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15958    else
15959      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15960    fi
15961    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15962    ;;
15963   hppa*64*)
15964     shrext_cmds='.sl'
15965     hardcode_into_libs=yes
15966     dynamic_linker="$host_os dld.sl"
15967     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15968     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15969     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15970     soname_spec='${libname}${release}${shared_ext}$major'
15971     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15972     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15973     ;;
15974   *)
15975    shrext_cmds='.sl'
15976    dynamic_linker="$host_os dld.sl"
15977    shlibpath_var=SHLIB_PATH
15978    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15979    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15980    soname_spec='${libname}${release}${shared_ext}$major'
15981    ;;
15982  esac
15983  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15984  postinstall_cmds='chmod 555 $lib'
15985  ;;
15986
15987interix3*)
15988  version_type=linux
15989  need_lib_prefix=no
15990  need_version=no
15991  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15992  soname_spec='${libname}${release}${shared_ext}$major'
15993  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15994  shlibpath_var=LD_LIBRARY_PATH
15995  shlibpath_overrides_runpath=no
15996  hardcode_into_libs=yes
15997  ;;
15998
15999irix5* | irix6* | nonstopux*)
16000  case $host_os in
16001    nonstopux*) version_type=nonstopux ;;
16002    *)
16003	if test "$lt_cv_prog_gnu_ld" = yes; then
16004		version_type=linux
16005	else
16006		version_type=irix
16007	fi ;;
16008  esac
16009  need_lib_prefix=no
16010  need_version=no
16011  soname_spec='${libname}${release}${shared_ext}$major'
16012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16013  case $host_os in
16014  irix5* | nonstopux*)
16015    libsuff= shlibsuff=
16016    ;;
16017  *)
16018    case $LD in # libtool.m4 will add one of these switches to LD
16019    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16020      libsuff= shlibsuff= libmagic=32-bit;;
16021    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16022      libsuff=32 shlibsuff=N32 libmagic=N32;;
16023    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16024      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16025    *) libsuff= shlibsuff= libmagic=never-match;;
16026    esac
16027    ;;
16028  esac
16029  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16030  shlibpath_overrides_runpath=no
16031  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16032  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16033  hardcode_into_libs=yes
16034  ;;
16035
16036# No shared lib support for Linux oldld, aout, or coff.
16037linux*oldld* | linux*aout* | linux*coff*)
16038  dynamic_linker=no
16039  ;;
16040
16041# This must be Linux ELF.
16042linux*)
16043  version_type=linux
16044  need_lib_prefix=no
16045  need_version=no
16046  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16047  soname_spec='${libname}${release}${shared_ext}$major'
16048  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16049  shlibpath_var=LD_LIBRARY_PATH
16050  shlibpath_overrides_runpath=no
16051  # This implies no fast_install, which is unacceptable.
16052  # Some rework will be needed to allow for fast_install
16053  # before this can be enabled.
16054  hardcode_into_libs=yes
16055
16056  # Append ld.so.conf contents to the search path
16057  if test -f /etc/ld.so.conf; then
16058    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' ' '`
16059    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16060  fi
16061
16062  # We used to test for /lib/ld.so.1 and disable shared libraries on
16063  # powerpc, because MkLinux only supported shared libraries with the
16064  # GNU dynamic linker.  Since this was broken with cross compilers,
16065  # most powerpc-linux boxes support dynamic linking these days and
16066  # people can always --disable-shared, the test was removed, and we
16067  # assume the GNU/Linux dynamic linker is in use.
16068  dynamic_linker='GNU/Linux ld.so'
16069  ;;
16070
16071knetbsd*-gnu)
16072  version_type=linux
16073  need_lib_prefix=no
16074  need_version=no
16075  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16076  soname_spec='${libname}${release}${shared_ext}$major'
16077  shlibpath_var=LD_LIBRARY_PATH
16078  shlibpath_overrides_runpath=no
16079  hardcode_into_libs=yes
16080  dynamic_linker='GNU ld.so'
16081  ;;
16082
16083netbsd*)
16084  version_type=sunos
16085  need_lib_prefix=no
16086  need_version=no
16087  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16088    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16089    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16090    dynamic_linker='NetBSD (a.out) ld.so'
16091  else
16092    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16093    soname_spec='${libname}${release}${shared_ext}$major'
16094    dynamic_linker='NetBSD ld.elf_so'
16095  fi
16096  shlibpath_var=LD_LIBRARY_PATH
16097  shlibpath_overrides_runpath=yes
16098  hardcode_into_libs=yes
16099  ;;
16100
16101newsos6)
16102  version_type=linux
16103  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16104  shlibpath_var=LD_LIBRARY_PATH
16105  shlibpath_overrides_runpath=yes
16106  ;;
16107
16108nto-qnx*)
16109  version_type=linux
16110  need_lib_prefix=no
16111  need_version=no
16112  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16113  soname_spec='${libname}${release}${shared_ext}$major'
16114  shlibpath_var=LD_LIBRARY_PATH
16115  shlibpath_overrides_runpath=yes
16116  ;;
16117
16118openbsd*)
16119  version_type=sunos
16120  sys_lib_dlsearch_path_spec="/usr/lib"
16121  need_lib_prefix=no
16122  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16123  case $host_os in
16124    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16125    *)                         need_version=no  ;;
16126  esac
16127  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16128  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16129  shlibpath_var=LD_LIBRARY_PATH
16130  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16131    case $host_os in
16132      openbsd2.[89] | openbsd2.[89].*)
16133	shlibpath_overrides_runpath=no
16134	;;
16135      *)
16136	shlibpath_overrides_runpath=yes
16137	;;
16138      esac
16139  else
16140    shlibpath_overrides_runpath=yes
16141  fi
16142  ;;
16143
16144os2*)
16145  libname_spec='$name'
16146  shrext_cmds=".dll"
16147  need_lib_prefix=no
16148  library_names_spec='$libname${shared_ext} $libname.a'
16149  dynamic_linker='OS/2 ld.exe'
16150  shlibpath_var=LIBPATH
16151  ;;
16152
16153osf3* | osf4* | osf5*)
16154  version_type=osf
16155  need_lib_prefix=no
16156  need_version=no
16157  soname_spec='${libname}${release}${shared_ext}$major'
16158  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16159  shlibpath_var=LD_LIBRARY_PATH
16160  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16161  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16162  ;;
16163
16164solaris*)
16165  version_type=linux
16166  need_lib_prefix=no
16167  need_version=no
16168  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16169  soname_spec='${libname}${release}${shared_ext}$major'
16170  shlibpath_var=LD_LIBRARY_PATH
16171  shlibpath_overrides_runpath=yes
16172  hardcode_into_libs=yes
16173  # ldd complains unless libraries are executable
16174  postinstall_cmds='chmod +x $lib'
16175  ;;
16176
16177sunos4*)
16178  version_type=sunos
16179  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16180  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16181  shlibpath_var=LD_LIBRARY_PATH
16182  shlibpath_overrides_runpath=yes
16183  if test "$with_gnu_ld" = yes; then
16184    need_lib_prefix=no
16185  fi
16186  need_version=yes
16187  ;;
16188
16189sysv4 | sysv4.3*)
16190  version_type=linux
16191  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16192  soname_spec='${libname}${release}${shared_ext}$major'
16193  shlibpath_var=LD_LIBRARY_PATH
16194  case $host_vendor in
16195    sni)
16196      shlibpath_overrides_runpath=no
16197      need_lib_prefix=no
16198      export_dynamic_flag_spec='${wl}-Blargedynsym'
16199      runpath_var=LD_RUN_PATH
16200      ;;
16201    siemens)
16202      need_lib_prefix=no
16203      ;;
16204    motorola)
16205      need_lib_prefix=no
16206      need_version=no
16207      shlibpath_overrides_runpath=no
16208      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16209      ;;
16210  esac
16211  ;;
16212
16213sysv4*MP*)
16214  if test -d /usr/nec ;then
16215    version_type=linux
16216    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16217    soname_spec='$libname${shared_ext}.$major'
16218    shlibpath_var=LD_LIBRARY_PATH
16219  fi
16220  ;;
16221
16222sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16223  version_type=freebsd-elf
16224  need_lib_prefix=no
16225  need_version=no
16226  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16227  soname_spec='${libname}${release}${shared_ext}$major'
16228  shlibpath_var=LD_LIBRARY_PATH
16229  hardcode_into_libs=yes
16230  if test "$with_gnu_ld" = yes; then
16231    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16232    shlibpath_overrides_runpath=no
16233  else
16234    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16235    shlibpath_overrides_runpath=yes
16236    case $host_os in
16237      sco3.2v5*)
16238        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16239	;;
16240    esac
16241  fi
16242  sys_lib_dlsearch_path_spec='/usr/lib'
16243  ;;
16244
16245uts4*)
16246  version_type=linux
16247  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16248  soname_spec='${libname}${release}${shared_ext}$major'
16249  shlibpath_var=LD_LIBRARY_PATH
16250  ;;
16251
16252*)
16253  dynamic_linker=no
16254  ;;
16255esac
16256{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16257echo "${ECHO_T}$dynamic_linker" >&6; }
16258test "$dynamic_linker" = no && can_build_shared=no
16259
16260variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16261if test "$GCC" = yes; then
16262  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16263fi
16264
16265{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16266echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16267hardcode_action=
16268if test -n "$hardcode_libdir_flag_spec" || \
16269   test -n "$runpath_var" || \
16270   test "X$hardcode_automatic" = "Xyes" ; then
16271
16272  # We can hardcode non-existant directories.
16273  if test "$hardcode_direct" != no &&
16274     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16275     # have to relink, otherwise we might link with an installed library
16276     # when we should be linking with a yet-to-be-installed one
16277     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16278     test "$hardcode_minus_L" != no; then
16279    # Linking always hardcodes the temporary library directory.
16280    hardcode_action=relink
16281  else
16282    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16283    hardcode_action=immediate
16284  fi
16285else
16286  # We cannot hardcode anything, or else we can only hardcode existing
16287  # directories.
16288  hardcode_action=unsupported
16289fi
16290{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16291echo "${ECHO_T}$hardcode_action" >&6; }
16292
16293if test "$hardcode_action" = relink; then
16294  # Fast installation is not supported
16295  enable_fast_install=no
16296elif test "$shlibpath_overrides_runpath" = yes ||
16297     test "$enable_shared" = no; then
16298  # Fast installation is not necessary
16299  enable_fast_install=needless
16300fi
16301
16302striplib=
16303old_striplib=
16304{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16305echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16306if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16307  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16308  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16309  { echo "$as_me:$LINENO: result: yes" >&5
16310echo "${ECHO_T}yes" >&6; }
16311else
16312# FIXME - insert some real tests, host_os isn't really good enough
16313  case $host_os in
16314   darwin*)
16315       if test -n "$STRIP" ; then
16316         striplib="$STRIP -x"
16317         { echo "$as_me:$LINENO: result: yes" >&5
16318echo "${ECHO_T}yes" >&6; }
16319       else
16320  { echo "$as_me:$LINENO: result: no" >&5
16321echo "${ECHO_T}no" >&6; }
16322fi
16323       ;;
16324   *)
16325  { echo "$as_me:$LINENO: result: no" >&5
16326echo "${ECHO_T}no" >&6; }
16327    ;;
16328  esac
16329fi
16330
16331if test "x$enable_dlopen" != xyes; then
16332  enable_dlopen=unknown
16333  enable_dlopen_self=unknown
16334  enable_dlopen_self_static=unknown
16335else
16336  lt_cv_dlopen=no
16337  lt_cv_dlopen_libs=
16338
16339  case $host_os in
16340  beos*)
16341    lt_cv_dlopen="load_add_on"
16342    lt_cv_dlopen_libs=
16343    lt_cv_dlopen_self=yes
16344    ;;
16345
16346  mingw* | pw32*)
16347    lt_cv_dlopen="LoadLibrary"
16348    lt_cv_dlopen_libs=
16349   ;;
16350
16351  cygwin*)
16352    lt_cv_dlopen="dlopen"
16353    lt_cv_dlopen_libs=
16354   ;;
16355
16356  darwin*)
16357  # if libdl is installed we need to link against it
16358    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16359echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16360if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16361  echo $ECHO_N "(cached) $ECHO_C" >&6
16362else
16363  ac_check_lib_save_LIBS=$LIBS
16364LIBS="-ldl  $LIBS"
16365cat >conftest.$ac_ext <<_ACEOF
16366/* confdefs.h.  */
16367_ACEOF
16368cat confdefs.h >>conftest.$ac_ext
16369cat >>conftest.$ac_ext <<_ACEOF
16370/* end confdefs.h.  */
16371
16372/* Override any GCC internal prototype to avoid an error.
16373   Use char because int might match the return type of a GCC
16374   builtin and then its argument prototype would still apply.  */
16375#ifdef __cplusplus
16376extern "C"
16377#endif
16378char dlopen ();
16379int
16380main ()
16381{
16382return dlopen ();
16383  ;
16384  return 0;
16385}
16386_ACEOF
16387rm -f conftest.$ac_objext conftest$ac_exeext
16388if { (ac_try="$ac_link"
16389case "(($ac_try" in
16390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16391  *) ac_try_echo=$ac_try;;
16392esac
16393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16394  (eval "$ac_link") 2>conftest.er1
16395  ac_status=$?
16396  grep -v '^ *+' conftest.er1 >conftest.err
16397  rm -f conftest.er1
16398  cat conftest.err >&5
16399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400  (exit $ac_status); } &&
16401	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16402  { (case "(($ac_try" in
16403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404  *) ac_try_echo=$ac_try;;
16405esac
16406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16407  (eval "$ac_try") 2>&5
16408  ac_status=$?
16409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410  (exit $ac_status); }; } &&
16411	 { ac_try='test -s conftest$ac_exeext'
16412  { (case "(($ac_try" in
16413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16414  *) ac_try_echo=$ac_try;;
16415esac
16416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16417  (eval "$ac_try") 2>&5
16418  ac_status=$?
16419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420  (exit $ac_status); }; }; then
16421  ac_cv_lib_dl_dlopen=yes
16422else
16423  echo "$as_me: failed program was:" >&5
16424sed 's/^/| /' conftest.$ac_ext >&5
16425
16426	ac_cv_lib_dl_dlopen=no
16427fi
16428
16429rm -f core conftest.err conftest.$ac_objext \
16430      conftest$ac_exeext conftest.$ac_ext
16431LIBS=$ac_check_lib_save_LIBS
16432fi
16433{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16434echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16435if test $ac_cv_lib_dl_dlopen = yes; then
16436  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16437else
16438
16439    lt_cv_dlopen="dyld"
16440    lt_cv_dlopen_libs=
16441    lt_cv_dlopen_self=yes
16442
16443fi
16444
16445   ;;
16446
16447  *)
16448    { echo "$as_me:$LINENO: checking for shl_load" >&5
16449echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16450if test "${ac_cv_func_shl_load+set}" = set; then
16451  echo $ECHO_N "(cached) $ECHO_C" >&6
16452else
16453  cat >conftest.$ac_ext <<_ACEOF
16454/* confdefs.h.  */
16455_ACEOF
16456cat confdefs.h >>conftest.$ac_ext
16457cat >>conftest.$ac_ext <<_ACEOF
16458/* end confdefs.h.  */
16459/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16460   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16461#define shl_load innocuous_shl_load
16462
16463/* System header to define __stub macros and hopefully few prototypes,
16464    which can conflict with char shl_load (); below.
16465    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16466    <limits.h> exists even on freestanding compilers.  */
16467
16468#ifdef __STDC__
16469# include <limits.h>
16470#else
16471# include <assert.h>
16472#endif
16473
16474#undef shl_load
16475
16476/* Override any GCC internal prototype to avoid an error.
16477   Use char because int might match the return type of a GCC
16478   builtin and then its argument prototype would still apply.  */
16479#ifdef __cplusplus
16480extern "C"
16481#endif
16482char shl_load ();
16483/* The GNU C library defines this for functions which it implements
16484    to always fail with ENOSYS.  Some functions are actually named
16485    something starting with __ and the normal name is an alias.  */
16486#if defined __stub_shl_load || defined __stub___shl_load
16487choke me
16488#endif
16489
16490int
16491main ()
16492{
16493return shl_load ();
16494  ;
16495  return 0;
16496}
16497_ACEOF
16498rm -f conftest.$ac_objext conftest$ac_exeext
16499if { (ac_try="$ac_link"
16500case "(($ac_try" in
16501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502  *) ac_try_echo=$ac_try;;
16503esac
16504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16505  (eval "$ac_link") 2>conftest.er1
16506  ac_status=$?
16507  grep -v '^ *+' conftest.er1 >conftest.err
16508  rm -f conftest.er1
16509  cat conftest.err >&5
16510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511  (exit $ac_status); } &&
16512	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16513  { (case "(($ac_try" in
16514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515  *) ac_try_echo=$ac_try;;
16516esac
16517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518  (eval "$ac_try") 2>&5
16519  ac_status=$?
16520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521  (exit $ac_status); }; } &&
16522	 { ac_try='test -s conftest$ac_exeext'
16523  { (case "(($ac_try" in
16524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525  *) ac_try_echo=$ac_try;;
16526esac
16527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528  (eval "$ac_try") 2>&5
16529  ac_status=$?
16530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531  (exit $ac_status); }; }; then
16532  ac_cv_func_shl_load=yes
16533else
16534  echo "$as_me: failed program was:" >&5
16535sed 's/^/| /' conftest.$ac_ext >&5
16536
16537	ac_cv_func_shl_load=no
16538fi
16539
16540rm -f core conftest.err conftest.$ac_objext \
16541      conftest$ac_exeext conftest.$ac_ext
16542fi
16543{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16544echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16545if test $ac_cv_func_shl_load = yes; then
16546  lt_cv_dlopen="shl_load"
16547else
16548  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16549echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16550if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16551  echo $ECHO_N "(cached) $ECHO_C" >&6
16552else
16553  ac_check_lib_save_LIBS=$LIBS
16554LIBS="-ldld  $LIBS"
16555cat >conftest.$ac_ext <<_ACEOF
16556/* confdefs.h.  */
16557_ACEOF
16558cat confdefs.h >>conftest.$ac_ext
16559cat >>conftest.$ac_ext <<_ACEOF
16560/* end confdefs.h.  */
16561
16562/* Override any GCC internal prototype to avoid an error.
16563   Use char because int might match the return type of a GCC
16564   builtin and then its argument prototype would still apply.  */
16565#ifdef __cplusplus
16566extern "C"
16567#endif
16568char shl_load ();
16569int
16570main ()
16571{
16572return shl_load ();
16573  ;
16574  return 0;
16575}
16576_ACEOF
16577rm -f conftest.$ac_objext conftest$ac_exeext
16578if { (ac_try="$ac_link"
16579case "(($ac_try" in
16580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581  *) ac_try_echo=$ac_try;;
16582esac
16583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16584  (eval "$ac_link") 2>conftest.er1
16585  ac_status=$?
16586  grep -v '^ *+' conftest.er1 >conftest.err
16587  rm -f conftest.er1
16588  cat conftest.err >&5
16589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590  (exit $ac_status); } &&
16591	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16592  { (case "(($ac_try" in
16593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16594  *) ac_try_echo=$ac_try;;
16595esac
16596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16597  (eval "$ac_try") 2>&5
16598  ac_status=$?
16599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600  (exit $ac_status); }; } &&
16601	 { ac_try='test -s conftest$ac_exeext'
16602  { (case "(($ac_try" in
16603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16604  *) ac_try_echo=$ac_try;;
16605esac
16606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16607  (eval "$ac_try") 2>&5
16608  ac_status=$?
16609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610  (exit $ac_status); }; }; then
16611  ac_cv_lib_dld_shl_load=yes
16612else
16613  echo "$as_me: failed program was:" >&5
16614sed 's/^/| /' conftest.$ac_ext >&5
16615
16616	ac_cv_lib_dld_shl_load=no
16617fi
16618
16619rm -f core conftest.err conftest.$ac_objext \
16620      conftest$ac_exeext conftest.$ac_ext
16621LIBS=$ac_check_lib_save_LIBS
16622fi
16623{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16624echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16625if test $ac_cv_lib_dld_shl_load = yes; then
16626  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16627else
16628  { echo "$as_me:$LINENO: checking for dlopen" >&5
16629echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16630if test "${ac_cv_func_dlopen+set}" = set; then
16631  echo $ECHO_N "(cached) $ECHO_C" >&6
16632else
16633  cat >conftest.$ac_ext <<_ACEOF
16634/* confdefs.h.  */
16635_ACEOF
16636cat confdefs.h >>conftest.$ac_ext
16637cat >>conftest.$ac_ext <<_ACEOF
16638/* end confdefs.h.  */
16639/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16640   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16641#define dlopen innocuous_dlopen
16642
16643/* System header to define __stub macros and hopefully few prototypes,
16644    which can conflict with char dlopen (); below.
16645    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16646    <limits.h> exists even on freestanding compilers.  */
16647
16648#ifdef __STDC__
16649# include <limits.h>
16650#else
16651# include <assert.h>
16652#endif
16653
16654#undef dlopen
16655
16656/* Override any GCC internal prototype to avoid an error.
16657   Use char because int might match the return type of a GCC
16658   builtin and then its argument prototype would still apply.  */
16659#ifdef __cplusplus
16660extern "C"
16661#endif
16662char dlopen ();
16663/* The GNU C library defines this for functions which it implements
16664    to always fail with ENOSYS.  Some functions are actually named
16665    something starting with __ and the normal name is an alias.  */
16666#if defined __stub_dlopen || defined __stub___dlopen
16667choke me
16668#endif
16669
16670int
16671main ()
16672{
16673return dlopen ();
16674  ;
16675  return 0;
16676}
16677_ACEOF
16678rm -f conftest.$ac_objext conftest$ac_exeext
16679if { (ac_try="$ac_link"
16680case "(($ac_try" in
16681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682  *) ac_try_echo=$ac_try;;
16683esac
16684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16685  (eval "$ac_link") 2>conftest.er1
16686  ac_status=$?
16687  grep -v '^ *+' conftest.er1 >conftest.err
16688  rm -f conftest.er1
16689  cat conftest.err >&5
16690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691  (exit $ac_status); } &&
16692	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16693  { (case "(($ac_try" in
16694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695  *) ac_try_echo=$ac_try;;
16696esac
16697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16698  (eval "$ac_try") 2>&5
16699  ac_status=$?
16700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701  (exit $ac_status); }; } &&
16702	 { ac_try='test -s conftest$ac_exeext'
16703  { (case "(($ac_try" in
16704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16705  *) ac_try_echo=$ac_try;;
16706esac
16707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16708  (eval "$ac_try") 2>&5
16709  ac_status=$?
16710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711  (exit $ac_status); }; }; then
16712  ac_cv_func_dlopen=yes
16713else
16714  echo "$as_me: failed program was:" >&5
16715sed 's/^/| /' conftest.$ac_ext >&5
16716
16717	ac_cv_func_dlopen=no
16718fi
16719
16720rm -f core conftest.err conftest.$ac_objext \
16721      conftest$ac_exeext conftest.$ac_ext
16722fi
16723{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16724echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16725if test $ac_cv_func_dlopen = yes; then
16726  lt_cv_dlopen="dlopen"
16727else
16728  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16729echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16730if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16731  echo $ECHO_N "(cached) $ECHO_C" >&6
16732else
16733  ac_check_lib_save_LIBS=$LIBS
16734LIBS="-ldl  $LIBS"
16735cat >conftest.$ac_ext <<_ACEOF
16736/* confdefs.h.  */
16737_ACEOF
16738cat confdefs.h >>conftest.$ac_ext
16739cat >>conftest.$ac_ext <<_ACEOF
16740/* end confdefs.h.  */
16741
16742/* Override any GCC internal prototype to avoid an error.
16743   Use char because int might match the return type of a GCC
16744   builtin and then its argument prototype would still apply.  */
16745#ifdef __cplusplus
16746extern "C"
16747#endif
16748char dlopen ();
16749int
16750main ()
16751{
16752return dlopen ();
16753  ;
16754  return 0;
16755}
16756_ACEOF
16757rm -f conftest.$ac_objext conftest$ac_exeext
16758if { (ac_try="$ac_link"
16759case "(($ac_try" in
16760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16761  *) ac_try_echo=$ac_try;;
16762esac
16763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16764  (eval "$ac_link") 2>conftest.er1
16765  ac_status=$?
16766  grep -v '^ *+' conftest.er1 >conftest.err
16767  rm -f conftest.er1
16768  cat conftest.err >&5
16769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770  (exit $ac_status); } &&
16771	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16772  { (case "(($ac_try" in
16773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16774  *) ac_try_echo=$ac_try;;
16775esac
16776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16777  (eval "$ac_try") 2>&5
16778  ac_status=$?
16779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780  (exit $ac_status); }; } &&
16781	 { ac_try='test -s conftest$ac_exeext'
16782  { (case "(($ac_try" in
16783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16784  *) ac_try_echo=$ac_try;;
16785esac
16786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16787  (eval "$ac_try") 2>&5
16788  ac_status=$?
16789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790  (exit $ac_status); }; }; then
16791  ac_cv_lib_dl_dlopen=yes
16792else
16793  echo "$as_me: failed program was:" >&5
16794sed 's/^/| /' conftest.$ac_ext >&5
16795
16796	ac_cv_lib_dl_dlopen=no
16797fi
16798
16799rm -f core conftest.err conftest.$ac_objext \
16800      conftest$ac_exeext conftest.$ac_ext
16801LIBS=$ac_check_lib_save_LIBS
16802fi
16803{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16804echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16805if test $ac_cv_lib_dl_dlopen = yes; then
16806  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16807else
16808  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16809echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16810if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16811  echo $ECHO_N "(cached) $ECHO_C" >&6
16812else
16813  ac_check_lib_save_LIBS=$LIBS
16814LIBS="-lsvld  $LIBS"
16815cat >conftest.$ac_ext <<_ACEOF
16816/* confdefs.h.  */
16817_ACEOF
16818cat confdefs.h >>conftest.$ac_ext
16819cat >>conftest.$ac_ext <<_ACEOF
16820/* end confdefs.h.  */
16821
16822/* Override any GCC internal prototype to avoid an error.
16823   Use char because int might match the return type of a GCC
16824   builtin and then its argument prototype would still apply.  */
16825#ifdef __cplusplus
16826extern "C"
16827#endif
16828char dlopen ();
16829int
16830main ()
16831{
16832return dlopen ();
16833  ;
16834  return 0;
16835}
16836_ACEOF
16837rm -f conftest.$ac_objext conftest$ac_exeext
16838if { (ac_try="$ac_link"
16839case "(($ac_try" in
16840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16841  *) ac_try_echo=$ac_try;;
16842esac
16843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16844  (eval "$ac_link") 2>conftest.er1
16845  ac_status=$?
16846  grep -v '^ *+' conftest.er1 >conftest.err
16847  rm -f conftest.er1
16848  cat conftest.err >&5
16849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850  (exit $ac_status); } &&
16851	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16852  { (case "(($ac_try" in
16853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854  *) ac_try_echo=$ac_try;;
16855esac
16856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16857  (eval "$ac_try") 2>&5
16858  ac_status=$?
16859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860  (exit $ac_status); }; } &&
16861	 { ac_try='test -s conftest$ac_exeext'
16862  { (case "(($ac_try" in
16863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16864  *) ac_try_echo=$ac_try;;
16865esac
16866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16867  (eval "$ac_try") 2>&5
16868  ac_status=$?
16869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870  (exit $ac_status); }; }; then
16871  ac_cv_lib_svld_dlopen=yes
16872else
16873  echo "$as_me: failed program was:" >&5
16874sed 's/^/| /' conftest.$ac_ext >&5
16875
16876	ac_cv_lib_svld_dlopen=no
16877fi
16878
16879rm -f core conftest.err conftest.$ac_objext \
16880      conftest$ac_exeext conftest.$ac_ext
16881LIBS=$ac_check_lib_save_LIBS
16882fi
16883{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16884echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16885if test $ac_cv_lib_svld_dlopen = yes; then
16886  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16887else
16888  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16889echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16890if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16891  echo $ECHO_N "(cached) $ECHO_C" >&6
16892else
16893  ac_check_lib_save_LIBS=$LIBS
16894LIBS="-ldld  $LIBS"
16895cat >conftest.$ac_ext <<_ACEOF
16896/* confdefs.h.  */
16897_ACEOF
16898cat confdefs.h >>conftest.$ac_ext
16899cat >>conftest.$ac_ext <<_ACEOF
16900/* end confdefs.h.  */
16901
16902/* Override any GCC internal prototype to avoid an error.
16903   Use char because int might match the return type of a GCC
16904   builtin and then its argument prototype would still apply.  */
16905#ifdef __cplusplus
16906extern "C"
16907#endif
16908char dld_link ();
16909int
16910main ()
16911{
16912return dld_link ();
16913  ;
16914  return 0;
16915}
16916_ACEOF
16917rm -f conftest.$ac_objext conftest$ac_exeext
16918if { (ac_try="$ac_link"
16919case "(($ac_try" in
16920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16921  *) ac_try_echo=$ac_try;;
16922esac
16923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16924  (eval "$ac_link") 2>conftest.er1
16925  ac_status=$?
16926  grep -v '^ *+' conftest.er1 >conftest.err
16927  rm -f conftest.er1
16928  cat conftest.err >&5
16929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930  (exit $ac_status); } &&
16931	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16932  { (case "(($ac_try" in
16933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934  *) ac_try_echo=$ac_try;;
16935esac
16936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16937  (eval "$ac_try") 2>&5
16938  ac_status=$?
16939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940  (exit $ac_status); }; } &&
16941	 { ac_try='test -s conftest$ac_exeext'
16942  { (case "(($ac_try" in
16943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16944  *) ac_try_echo=$ac_try;;
16945esac
16946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16947  (eval "$ac_try") 2>&5
16948  ac_status=$?
16949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950  (exit $ac_status); }; }; then
16951  ac_cv_lib_dld_dld_link=yes
16952else
16953  echo "$as_me: failed program was:" >&5
16954sed 's/^/| /' conftest.$ac_ext >&5
16955
16956	ac_cv_lib_dld_dld_link=no
16957fi
16958
16959rm -f core conftest.err conftest.$ac_objext \
16960      conftest$ac_exeext conftest.$ac_ext
16961LIBS=$ac_check_lib_save_LIBS
16962fi
16963{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16964echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16965if test $ac_cv_lib_dld_dld_link = yes; then
16966  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16967fi
16968
16969
16970fi
16971
16972
16973fi
16974
16975
16976fi
16977
16978
16979fi
16980
16981
16982fi
16983
16984    ;;
16985  esac
16986
16987  if test "x$lt_cv_dlopen" != xno; then
16988    enable_dlopen=yes
16989  else
16990    enable_dlopen=no
16991  fi
16992
16993  case $lt_cv_dlopen in
16994  dlopen)
16995    save_CPPFLAGS="$CPPFLAGS"
16996    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16997
16998    save_LDFLAGS="$LDFLAGS"
16999    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17000
17001    save_LIBS="$LIBS"
17002    LIBS="$lt_cv_dlopen_libs $LIBS"
17003
17004    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17005echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17006if test "${lt_cv_dlopen_self+set}" = set; then
17007  echo $ECHO_N "(cached) $ECHO_C" >&6
17008else
17009  	  if test "$cross_compiling" = yes; then :
17010  lt_cv_dlopen_self=cross
17011else
17012  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17013  lt_status=$lt_dlunknown
17014  cat > conftest.$ac_ext <<EOF
17015#line 17015 "configure"
17016#include "confdefs.h"
17017
17018#if HAVE_DLFCN_H
17019#include <dlfcn.h>
17020#endif
17021
17022#include <stdio.h>
17023
17024#ifdef RTLD_GLOBAL
17025#  define LT_DLGLOBAL		RTLD_GLOBAL
17026#else
17027#  ifdef DL_GLOBAL
17028#    define LT_DLGLOBAL		DL_GLOBAL
17029#  else
17030#    define LT_DLGLOBAL		0
17031#  endif
17032#endif
17033
17034/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17035   find out it does not work in some platform. */
17036#ifndef LT_DLLAZY_OR_NOW
17037#  ifdef RTLD_LAZY
17038#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17039#  else
17040#    ifdef DL_LAZY
17041#      define LT_DLLAZY_OR_NOW		DL_LAZY
17042#    else
17043#      ifdef RTLD_NOW
17044#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17045#      else
17046#        ifdef DL_NOW
17047#          define LT_DLLAZY_OR_NOW	DL_NOW
17048#        else
17049#          define LT_DLLAZY_OR_NOW	0
17050#        endif
17051#      endif
17052#    endif
17053#  endif
17054#endif
17055
17056#ifdef __cplusplus
17057extern "C" void exit (int);
17058#endif
17059
17060void fnord() { int i=42;}
17061int main ()
17062{
17063  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17064  int status = $lt_dlunknown;
17065
17066  if (self)
17067    {
17068      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17069      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17070      /* dlclose (self); */
17071    }
17072  else
17073    puts (dlerror ());
17074
17075    exit (status);
17076}
17077EOF
17078  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17079  (eval $ac_link) 2>&5
17080  ac_status=$?
17081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17083    (./conftest; exit; ) >&5 2>/dev/null
17084    lt_status=$?
17085    case x$lt_status in
17086      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17087      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17088      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17089    esac
17090  else :
17091    # compilation failed
17092    lt_cv_dlopen_self=no
17093  fi
17094fi
17095rm -fr conftest*
17096
17097
17098fi
17099{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17100echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17101
17102    if test "x$lt_cv_dlopen_self" = xyes; then
17103      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17104      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17105echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17106if test "${lt_cv_dlopen_self_static+set}" = set; then
17107  echo $ECHO_N "(cached) $ECHO_C" >&6
17108else
17109  	  if test "$cross_compiling" = yes; then :
17110  lt_cv_dlopen_self_static=cross
17111else
17112  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17113  lt_status=$lt_dlunknown
17114  cat > conftest.$ac_ext <<EOF
17115#line 17115 "configure"
17116#include "confdefs.h"
17117
17118#if HAVE_DLFCN_H
17119#include <dlfcn.h>
17120#endif
17121
17122#include <stdio.h>
17123
17124#ifdef RTLD_GLOBAL
17125#  define LT_DLGLOBAL		RTLD_GLOBAL
17126#else
17127#  ifdef DL_GLOBAL
17128#    define LT_DLGLOBAL		DL_GLOBAL
17129#  else
17130#    define LT_DLGLOBAL		0
17131#  endif
17132#endif
17133
17134/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17135   find out it does not work in some platform. */
17136#ifndef LT_DLLAZY_OR_NOW
17137#  ifdef RTLD_LAZY
17138#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17139#  else
17140#    ifdef DL_LAZY
17141#      define LT_DLLAZY_OR_NOW		DL_LAZY
17142#    else
17143#      ifdef RTLD_NOW
17144#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17145#      else
17146#        ifdef DL_NOW
17147#          define LT_DLLAZY_OR_NOW	DL_NOW
17148#        else
17149#          define LT_DLLAZY_OR_NOW	0
17150#        endif
17151#      endif
17152#    endif
17153#  endif
17154#endif
17155
17156#ifdef __cplusplus
17157extern "C" void exit (int);
17158#endif
17159
17160void fnord() { int i=42;}
17161int main ()
17162{
17163  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17164  int status = $lt_dlunknown;
17165
17166  if (self)
17167    {
17168      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17169      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17170      /* dlclose (self); */
17171    }
17172  else
17173    puts (dlerror ());
17174
17175    exit (status);
17176}
17177EOF
17178  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17179  (eval $ac_link) 2>&5
17180  ac_status=$?
17181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17183    (./conftest; exit; ) >&5 2>/dev/null
17184    lt_status=$?
17185    case x$lt_status in
17186      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17187      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17188      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17189    esac
17190  else :
17191    # compilation failed
17192    lt_cv_dlopen_self_static=no
17193  fi
17194fi
17195rm -fr conftest*
17196
17197
17198fi
17199{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17200echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17201    fi
17202
17203    CPPFLAGS="$save_CPPFLAGS"
17204    LDFLAGS="$save_LDFLAGS"
17205    LIBS="$save_LIBS"
17206    ;;
17207  esac
17208
17209  case $lt_cv_dlopen_self in
17210  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17211  *) enable_dlopen_self=unknown ;;
17212  esac
17213
17214  case $lt_cv_dlopen_self_static in
17215  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17216  *) enable_dlopen_self_static=unknown ;;
17217  esac
17218fi
17219
17220
17221# Report which library types will actually be built
17222{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17223echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17224{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17225echo "${ECHO_T}$can_build_shared" >&6; }
17226
17227{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17228echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17229test "$can_build_shared" = "no" && enable_shared=no
17230
17231# On AIX, shared libraries and static libraries use the same namespace, and
17232# are all built from PIC.
17233case $host_os in
17234aix3*)
17235  test "$enable_shared" = yes && enable_static=no
17236  if test -n "$RANLIB"; then
17237    archive_cmds="$archive_cmds~\$RANLIB \$lib"
17238    postinstall_cmds='$RANLIB $lib'
17239  fi
17240  ;;
17241
17242aix4* | aix5*)
17243  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17244    test "$enable_shared" = yes && enable_static=no
17245  fi
17246    ;;
17247esac
17248{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17249echo "${ECHO_T}$enable_shared" >&6; }
17250
17251{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17252echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17253# Make sure either enable_shared or enable_static is yes.
17254test "$enable_shared" = yes || enable_static=yes
17255{ echo "$as_me:$LINENO: result: $enable_static" >&5
17256echo "${ECHO_T}$enable_static" >&6; }
17257
17258# The else clause should only fire when bootstrapping the
17259# libtool distribution, otherwise you forgot to ship ltmain.sh
17260# with your package, and you will get complaints that there are
17261# no rules to generate ltmain.sh.
17262if test -f "$ltmain"; then
17263  # See if we are running on zsh, and set the options which allow our commands through
17264  # without removal of \ escapes.
17265  if test -n "${ZSH_VERSION+set}" ; then
17266    setopt NO_GLOB_SUBST
17267  fi
17268  # Now quote all the things that may contain metacharacters while being
17269  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17270  # variables and quote the copies for generation of the libtool script.
17271  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17272    SED SHELL STRIP \
17273    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17274    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17275    deplibs_check_method reload_flag reload_cmds need_locks \
17276    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17277    lt_cv_sys_global_symbol_to_c_name_address \
17278    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17279    old_postinstall_cmds old_postuninstall_cmds \
17280    compiler \
17281    CC \
17282    LD \
17283    lt_prog_compiler_wl \
17284    lt_prog_compiler_pic \
17285    lt_prog_compiler_static \
17286    lt_prog_compiler_no_builtin_flag \
17287    export_dynamic_flag_spec \
17288    thread_safe_flag_spec \
17289    whole_archive_flag_spec \
17290    enable_shared_with_static_runtimes \
17291    old_archive_cmds \
17292    old_archive_from_new_cmds \
17293    predep_objects \
17294    postdep_objects \
17295    predeps \
17296    postdeps \
17297    compiler_lib_search_path \
17298    archive_cmds \
17299    archive_expsym_cmds \
17300    postinstall_cmds \
17301    postuninstall_cmds \
17302    old_archive_from_expsyms_cmds \
17303    allow_undefined_flag \
17304    no_undefined_flag \
17305    export_symbols_cmds \
17306    hardcode_libdir_flag_spec \
17307    hardcode_libdir_flag_spec_ld \
17308    hardcode_libdir_separator \
17309    hardcode_automatic \
17310    module_cmds \
17311    module_expsym_cmds \
17312    lt_cv_prog_compiler_c_o \
17313    exclude_expsyms \
17314    include_expsyms; do
17315
17316    case $var in
17317    old_archive_cmds | \
17318    old_archive_from_new_cmds | \
17319    archive_cmds | \
17320    archive_expsym_cmds | \
17321    module_cmds | \
17322    module_expsym_cmds | \
17323    old_archive_from_expsyms_cmds | \
17324    export_symbols_cmds | \
17325    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17326    postinstall_cmds | postuninstall_cmds | \
17327    old_postinstall_cmds | old_postuninstall_cmds | \
17328    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17329      # Double-quote double-evaled strings.
17330      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17331      ;;
17332    *)
17333      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17334      ;;
17335    esac
17336  done
17337
17338  case $lt_echo in
17339  *'\$0 --fallback-echo"')
17340    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17341    ;;
17342  esac
17343
17344cfgfile="${ofile}T"
17345  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17346  $rm -f "$cfgfile"
17347  { echo "$as_me:$LINENO: creating $ofile" >&5
17348echo "$as_me: creating $ofile" >&6;}
17349
17350  cat <<__EOF__ >> "$cfgfile"
17351#! $SHELL
17352
17353# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17354# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17355# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17356#
17357# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17358# Free Software Foundation, Inc.
17359#
17360# This file is part of GNU Libtool:
17361# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17362#
17363# This program is free software; you can redistribute it and/or modify
17364# it under the terms of the GNU General Public License as published by
17365# the Free Software Foundation; either version 2 of the License, or
17366# (at your option) any later version.
17367#
17368# This program is distributed in the hope that it will be useful, but
17369# WITHOUT ANY WARRANTY; without even the implied warranty of
17370# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17371# General Public License for more details.
17372#
17373# You should have received a copy of the GNU General Public License
17374# along with this program; if not, write to the Free Software
17375# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17376#
17377# As a special exception to the GNU General Public License, if you
17378# distribute this file as part of a program that contains a
17379# configuration script generated by Autoconf, you may include it under
17380# the same distribution terms that you use for the rest of that program.
17381
17382# A sed program that does not truncate output.
17383SED=$lt_SED
17384
17385# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17386Xsed="$SED -e 1s/^X//"
17387
17388# The HP-UX ksh and POSIX shell print the target directory to stdout
17389# if CDPATH is set.
17390(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17391
17392# The names of the tagged configurations supported by this script.
17393available_tags=
17394
17395# ### BEGIN LIBTOOL CONFIG
17396
17397# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17398
17399# Shell to use when invoking shell scripts.
17400SHELL=$lt_SHELL
17401
17402# Whether or not to build shared libraries.
17403build_libtool_libs=$enable_shared
17404
17405# Whether or not to build static libraries.
17406build_old_libs=$enable_static
17407
17408# Whether or not to add -lc for building shared libraries.
17409build_libtool_need_lc=$archive_cmds_need_lc
17410
17411# Whether or not to disallow shared libs when runtime libs are static
17412allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17413
17414# Whether or not to optimize for fast installation.
17415fast_install=$enable_fast_install
17416
17417# The host system.
17418host_alias=$host_alias
17419host=$host
17420host_os=$host_os
17421
17422# The build system.
17423build_alias=$build_alias
17424build=$build
17425build_os=$build_os
17426
17427# An echo program that does not interpret backslashes.
17428echo=$lt_echo
17429
17430# The archiver.
17431AR=$lt_AR
17432AR_FLAGS=$lt_AR_FLAGS
17433
17434# A C compiler.
17435LTCC=$lt_LTCC
17436
17437# LTCC compiler flags.
17438LTCFLAGS=$lt_LTCFLAGS
17439
17440# A language-specific compiler.
17441CC=$lt_compiler
17442
17443# Is the compiler the GNU C compiler?
17444with_gcc=$GCC
17445
17446# An ERE matcher.
17447EGREP=$lt_EGREP
17448
17449# The linker used to build libraries.
17450LD=$lt_LD
17451
17452# Whether we need hard or soft links.
17453LN_S=$lt_LN_S
17454
17455# A BSD-compatible nm program.
17456NM=$lt_NM
17457
17458# A symbol stripping program
17459STRIP=$lt_STRIP
17460
17461# Used to examine libraries when file_magic_cmd begins "file"
17462MAGIC_CMD=$MAGIC_CMD
17463
17464# Used on cygwin: DLL creation program.
17465DLLTOOL="$DLLTOOL"
17466
17467# Used on cygwin: object dumper.
17468OBJDUMP="$OBJDUMP"
17469
17470# Used on cygwin: assembler.
17471AS="$AS"
17472
17473# The name of the directory that contains temporary libtool files.
17474objdir=$objdir
17475
17476# How to create reloadable object files.
17477reload_flag=$lt_reload_flag
17478reload_cmds=$lt_reload_cmds
17479
17480# How to pass a linker flag through the compiler.
17481wl=$lt_lt_prog_compiler_wl
17482
17483# Object file suffix (normally "o").
17484objext="$ac_objext"
17485
17486# Old archive suffix (normally "a").
17487libext="$libext"
17488
17489# Shared library suffix (normally ".so").
17490shrext_cmds='$shrext_cmds'
17491
17492# Executable file suffix (normally "").
17493exeext="$exeext"
17494
17495# Additional compiler flags for building library objects.
17496pic_flag=$lt_lt_prog_compiler_pic
17497pic_mode=$pic_mode
17498
17499# What is the maximum length of a command?
17500max_cmd_len=$lt_cv_sys_max_cmd_len
17501
17502# Does compiler simultaneously support -c and -o options?
17503compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17504
17505# Must we lock files when doing compilation?
17506need_locks=$lt_need_locks
17507
17508# Do we need the lib prefix for modules?
17509need_lib_prefix=$need_lib_prefix
17510
17511# Do we need a version for libraries?
17512need_version=$need_version
17513
17514# Whether dlopen is supported.
17515dlopen_support=$enable_dlopen
17516
17517# Whether dlopen of programs is supported.
17518dlopen_self=$enable_dlopen_self
17519
17520# Whether dlopen of statically linked programs is supported.
17521dlopen_self_static=$enable_dlopen_self_static
17522
17523# Compiler flag to prevent dynamic linking.
17524link_static_flag=$lt_lt_prog_compiler_static
17525
17526# Compiler flag to turn off builtin functions.
17527no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17528
17529# Compiler flag to allow reflexive dlopens.
17530export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17531
17532# Compiler flag to generate shared objects directly from archives.
17533whole_archive_flag_spec=$lt_whole_archive_flag_spec
17534
17535# Compiler flag to generate thread-safe objects.
17536thread_safe_flag_spec=$lt_thread_safe_flag_spec
17537
17538# Library versioning type.
17539version_type=$version_type
17540
17541# Format of library name prefix.
17542libname_spec=$lt_libname_spec
17543
17544# List of archive names.  First name is the real one, the rest are links.
17545# The last name is the one that the linker finds with -lNAME.
17546library_names_spec=$lt_library_names_spec
17547
17548# The coded name of the library, if different from the real name.
17549soname_spec=$lt_soname_spec
17550
17551# Commands used to build and install an old-style archive.
17552RANLIB=$lt_RANLIB
17553old_archive_cmds=$lt_old_archive_cmds
17554old_postinstall_cmds=$lt_old_postinstall_cmds
17555old_postuninstall_cmds=$lt_old_postuninstall_cmds
17556
17557# Create an old-style archive from a shared archive.
17558old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17559
17560# Create a temporary old-style archive to link instead of a shared archive.
17561old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17562
17563# Commands used to build and install a shared archive.
17564archive_cmds=$lt_archive_cmds
17565archive_expsym_cmds=$lt_archive_expsym_cmds
17566postinstall_cmds=$lt_postinstall_cmds
17567postuninstall_cmds=$lt_postuninstall_cmds
17568
17569# Commands used to build a loadable module (assumed same as above if empty)
17570module_cmds=$lt_module_cmds
17571module_expsym_cmds=$lt_module_expsym_cmds
17572
17573# Commands to strip libraries.
17574old_striplib=$lt_old_striplib
17575striplib=$lt_striplib
17576
17577# Dependencies to place before the objects being linked to create a
17578# shared library.
17579predep_objects=$lt_predep_objects
17580
17581# Dependencies to place after the objects being linked to create a
17582# shared library.
17583postdep_objects=$lt_postdep_objects
17584
17585# Dependencies to place before the objects being linked to create a
17586# shared library.
17587predeps=$lt_predeps
17588
17589# Dependencies to place after the objects being linked to create a
17590# shared library.
17591postdeps=$lt_postdeps
17592
17593# The library search path used internally by the compiler when linking
17594# a shared library.
17595compiler_lib_search_path=$lt_compiler_lib_search_path
17596
17597# Method to check whether dependent libraries are shared objects.
17598deplibs_check_method=$lt_deplibs_check_method
17599
17600# Command to use when deplibs_check_method == file_magic.
17601file_magic_cmd=$lt_file_magic_cmd
17602
17603# Flag that allows shared libraries with undefined symbols to be built.
17604allow_undefined_flag=$lt_allow_undefined_flag
17605
17606# Flag that forces no undefined symbols.
17607no_undefined_flag=$lt_no_undefined_flag
17608
17609# Commands used to finish a libtool library installation in a directory.
17610finish_cmds=$lt_finish_cmds
17611
17612# Same as above, but a single script fragment to be evaled but not shown.
17613finish_eval=$lt_finish_eval
17614
17615# Take the output of nm and produce a listing of raw symbols and C names.
17616global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17617
17618# Transform the output of nm in a proper C declaration
17619global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17620
17621# Transform the output of nm in a C name address pair
17622global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17623
17624# This is the shared library runtime path variable.
17625runpath_var=$runpath_var
17626
17627# This is the shared library path variable.
17628shlibpath_var=$shlibpath_var
17629
17630# Is shlibpath searched before the hard-coded library search path?
17631shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17632
17633# How to hardcode a shared library path into an executable.
17634hardcode_action=$hardcode_action
17635
17636# Whether we should hardcode library paths into libraries.
17637hardcode_into_libs=$hardcode_into_libs
17638
17639# Flag to hardcode \$libdir into a binary during linking.
17640# This must work even if \$libdir does not exist.
17641hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17642
17643# If ld is used when linking, flag to hardcode \$libdir into
17644# a binary during linking. This must work even if \$libdir does
17645# not exist.
17646hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17647
17648# Whether we need a single -rpath flag with a separated argument.
17649hardcode_libdir_separator=$lt_hardcode_libdir_separator
17650
17651# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17652# resulting binary.
17653hardcode_direct=$hardcode_direct
17654
17655# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17656# resulting binary.
17657hardcode_minus_L=$hardcode_minus_L
17658
17659# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17660# the resulting binary.
17661hardcode_shlibpath_var=$hardcode_shlibpath_var
17662
17663# Set to yes if building a shared library automatically hardcodes DIR into the library
17664# and all subsequent libraries and executables linked against it.
17665hardcode_automatic=$hardcode_automatic
17666
17667# Variables whose values should be saved in libtool wrapper scripts and
17668# restored at relink time.
17669variables_saved_for_relink="$variables_saved_for_relink"
17670
17671# Whether libtool must link a program against all its dependency libraries.
17672link_all_deplibs=$link_all_deplibs
17673
17674# Compile-time system search path for libraries
17675sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17676
17677# Run-time system search path for libraries
17678sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17679
17680# Fix the shell variable \$srcfile for the compiler.
17681fix_srcfile_path="$fix_srcfile_path"
17682
17683# Set to yes if exported symbols are required.
17684always_export_symbols=$always_export_symbols
17685
17686# The commands to list exported symbols.
17687export_symbols_cmds=$lt_export_symbols_cmds
17688
17689# The commands to extract the exported symbol list from a shared archive.
17690extract_expsyms_cmds=$lt_extract_expsyms_cmds
17691
17692# Symbols that should not be listed in the preloaded symbols.
17693exclude_expsyms=$lt_exclude_expsyms
17694
17695# Symbols that must always be exported.
17696include_expsyms=$lt_include_expsyms
17697
17698# ### END LIBTOOL CONFIG
17699
17700__EOF__
17701
17702
17703  case $host_os in
17704  aix3*)
17705    cat <<\EOF >> "$cfgfile"
17706
17707# AIX sometimes has problems with the GCC collect2 program.  For some
17708# reason, if we set the COLLECT_NAMES environment variable, the problems
17709# vanish in a puff of smoke.
17710if test "X${COLLECT_NAMES+set}" != Xset; then
17711  COLLECT_NAMES=
17712  export COLLECT_NAMES
17713fi
17714EOF
17715    ;;
17716  esac
17717
17718  # We use sed instead of cat because bash on DJGPP gets confused if
17719  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17720  # text mode, it properly converts lines to CR/LF.  This bash problem
17721  # is reportedly fixed, but why not run on old versions too?
17722  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17723
17724  mv -f "$cfgfile" "$ofile" || \
17725    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17726  chmod +x "$ofile"
17727
17728else
17729  # If there is no Makefile yet, we rely on a make rule to execute
17730  # `config.status --recheck' to rerun these tests and create the
17731  # libtool script then.
17732  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17733  if test -f "$ltmain_in"; then
17734    test -f Makefile && make "$ltmain"
17735  fi
17736fi
17737
17738
17739ac_ext=c
17740ac_cpp='$CPP $CPPFLAGS'
17741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17743ac_compiler_gnu=$ac_cv_c_compiler_gnu
17744
17745CC="$lt_save_CC"
17746
17747
17748# Check whether --with-tags was given.
17749if test "${with_tags+set}" = set; then
17750  withval=$with_tags; tagnames="$withval"
17751fi
17752
17753
17754if test -f "$ltmain" && test -n "$tagnames"; then
17755  if test ! -f "${ofile}"; then
17756    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17757echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17758  fi
17759
17760  if test -z "$LTCC"; then
17761    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17762    if test -z "$LTCC"; then
17763      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17764echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17765    else
17766      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17767echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17768    fi
17769  fi
17770  if test -z "$LTCFLAGS"; then
17771    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17772  fi
17773
17774  # Extract list of available tagged configurations in $ofile.
17775  # Note that this assumes the entire list is on one line.
17776  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17777
17778  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17779  for tagname in $tagnames; do
17780    IFS="$lt_save_ifs"
17781    # Check whether tagname contains only valid characters
17782    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17783    "") ;;
17784    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17785echo "$as_me: error: invalid tag name: $tagname" >&2;}
17786   { (exit 1); exit 1; }; }
17787	;;
17788    esac
17789
17790    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17791    then
17792      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17793echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17794   { (exit 1); exit 1; }; }
17795    fi
17796
17797    # Update the list of available tags.
17798    if test -n "$tagname"; then
17799      echo appending configuration tag \"$tagname\" to $ofile
17800
17801      case $tagname in
17802      CXX)
17803	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17804	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17805	    (test "X$CXX" != "Xg++"))) ; then
17806	  ac_ext=cpp
17807ac_cpp='$CXXCPP $CPPFLAGS'
17808ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17809ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17810ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17811
17812
17813
17814
17815archive_cmds_need_lc_CXX=no
17816allow_undefined_flag_CXX=
17817always_export_symbols_CXX=no
17818archive_expsym_cmds_CXX=
17819export_dynamic_flag_spec_CXX=
17820hardcode_direct_CXX=no
17821hardcode_libdir_flag_spec_CXX=
17822hardcode_libdir_flag_spec_ld_CXX=
17823hardcode_libdir_separator_CXX=
17824hardcode_minus_L_CXX=no
17825hardcode_shlibpath_var_CXX=unsupported
17826hardcode_automatic_CXX=no
17827module_cmds_CXX=
17828module_expsym_cmds_CXX=
17829link_all_deplibs_CXX=unknown
17830old_archive_cmds_CXX=$old_archive_cmds
17831no_undefined_flag_CXX=
17832whole_archive_flag_spec_CXX=
17833enable_shared_with_static_runtimes_CXX=no
17834
17835# Dependencies to place before and after the object being linked:
17836predep_objects_CXX=
17837postdep_objects_CXX=
17838predeps_CXX=
17839postdeps_CXX=
17840compiler_lib_search_path_CXX=
17841
17842# Source file extension for C++ test sources.
17843ac_ext=cpp
17844
17845# Object file extension for compiled C++ test sources.
17846objext=o
17847objext_CXX=$objext
17848
17849# Code to be used in simple compile tests
17850lt_simple_compile_test_code="int some_variable = 0;\n"
17851
17852# Code to be used in simple link tests
17853lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17854
17855# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17856
17857# If no C compiler was specified, use CC.
17858LTCC=${LTCC-"$CC"}
17859
17860# If no C compiler flags were specified, use CFLAGS.
17861LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17862
17863# Allow CC to be a program name with arguments.
17864compiler=$CC
17865
17866
17867# save warnings/boilerplate of simple test code
17868ac_outfile=conftest.$ac_objext
17869printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17870eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17871_lt_compiler_boilerplate=`cat conftest.err`
17872$rm conftest*
17873
17874ac_outfile=conftest.$ac_objext
17875printf "$lt_simple_link_test_code" >conftest.$ac_ext
17876eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17877_lt_linker_boilerplate=`cat conftest.err`
17878$rm conftest*
17879
17880
17881# Allow CC to be a program name with arguments.
17882lt_save_CC=$CC
17883lt_save_LD=$LD
17884lt_save_GCC=$GCC
17885GCC=$GXX
17886lt_save_with_gnu_ld=$with_gnu_ld
17887lt_save_path_LD=$lt_cv_path_LD
17888if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17889  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17890else
17891  $as_unset lt_cv_prog_gnu_ld
17892fi
17893if test -n "${lt_cv_path_LDCXX+set}"; then
17894  lt_cv_path_LD=$lt_cv_path_LDCXX
17895else
17896  $as_unset lt_cv_path_LD
17897fi
17898test -z "${LDCXX+set}" || LD=$LDCXX
17899CC=${CXX-"c++"}
17900compiler=$CC
17901compiler_CXX=$CC
17902for cc_temp in $compiler""; do
17903  case $cc_temp in
17904    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17905    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17906    \-*) ;;
17907    *) break;;
17908  esac
17909done
17910cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17911
17912
17913# We don't want -fno-exception wen compiling C++ code, so set the
17914# no_builtin_flag separately
17915if test "$GXX" = yes; then
17916  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17917else
17918  lt_prog_compiler_no_builtin_flag_CXX=
17919fi
17920
17921if test "$GXX" = yes; then
17922  # Set up default GNU C++ configuration
17923
17924
17925# Check whether --with-gnu-ld was given.
17926if test "${with_gnu_ld+set}" = set; then
17927  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17928else
17929  with_gnu_ld=no
17930fi
17931
17932ac_prog=ld
17933if test "$GCC" = yes; then
17934  # Check if gcc -print-prog-name=ld gives a path.
17935  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17936echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17937  case $host in
17938  *-*-mingw*)
17939    # gcc leaves a trailing carriage return which upsets mingw
17940    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17941  *)
17942    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17943  esac
17944  case $ac_prog in
17945    # Accept absolute paths.
17946    [\\/]* | ?:[\\/]*)
17947      re_direlt='/[^/][^/]*/\.\./'
17948      # Canonicalize the pathname of ld
17949      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17950      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17951	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17952      done
17953      test -z "$LD" && LD="$ac_prog"
17954      ;;
17955  "")
17956    # If it fails, then pretend we aren't using GCC.
17957    ac_prog=ld
17958    ;;
17959  *)
17960    # If it is relative, then search for the first ld in PATH.
17961    with_gnu_ld=unknown
17962    ;;
17963  esac
17964elif test "$with_gnu_ld" = yes; then
17965  { echo "$as_me:$LINENO: checking for GNU ld" >&5
17966echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17967else
17968  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17969echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17970fi
17971if test "${lt_cv_path_LD+set}" = set; then
17972  echo $ECHO_N "(cached) $ECHO_C" >&6
17973else
17974  if test -z "$LD"; then
17975  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17976  for ac_dir in $PATH; do
17977    IFS="$lt_save_ifs"
17978    test -z "$ac_dir" && ac_dir=.
17979    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17980      lt_cv_path_LD="$ac_dir/$ac_prog"
17981      # Check to see if the program is GNU ld.  I'd rather use --version,
17982      # but apparently some variants of GNU ld only accept -v.
17983      # Break only if it was the GNU/non-GNU ld that we prefer.
17984      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17985      *GNU* | *'with BFD'*)
17986	test "$with_gnu_ld" != no && break
17987	;;
17988      *)
17989	test "$with_gnu_ld" != yes && break
17990	;;
17991      esac
17992    fi
17993  done
17994  IFS="$lt_save_ifs"
17995else
17996  lt_cv_path_LD="$LD" # Let the user override the test with a path.
17997fi
17998fi
17999
18000LD="$lt_cv_path_LD"
18001if test -n "$LD"; then
18002  { echo "$as_me:$LINENO: result: $LD" >&5
18003echo "${ECHO_T}$LD" >&6; }
18004else
18005  { echo "$as_me:$LINENO: result: no" >&5
18006echo "${ECHO_T}no" >&6; }
18007fi
18008test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18009echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18010   { (exit 1); exit 1; }; }
18011{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18012echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18013if test "${lt_cv_prog_gnu_ld+set}" = set; then
18014  echo $ECHO_N "(cached) $ECHO_C" >&6
18015else
18016  # I'd rather use --version here, but apparently some GNU lds only accept -v.
18017case `$LD -v 2>&1 </dev/null` in
18018*GNU* | *'with BFD'*)
18019  lt_cv_prog_gnu_ld=yes
18020  ;;
18021*)
18022  lt_cv_prog_gnu_ld=no
18023  ;;
18024esac
18025fi
18026{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18027echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18028with_gnu_ld=$lt_cv_prog_gnu_ld
18029
18030
18031
18032  # Check if GNU C++ uses GNU ld as the underlying linker, since the
18033  # archiving commands below assume that GNU ld is being used.
18034  if test "$with_gnu_ld" = yes; then
18035    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18036    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'
18037
18038    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18039    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18040
18041    # If archive_cmds runs LD, not CC, wlarc should be empty
18042    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18043    #     investigate it a little bit more. (MM)
18044    wlarc='${wl}'
18045
18046    # ancient GNU ld didn't support --whole-archive et. al.
18047    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18048	grep 'no-whole-archive' > /dev/null; then
18049      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18050    else
18051      whole_archive_flag_spec_CXX=
18052    fi
18053  else
18054    with_gnu_ld=no
18055    wlarc=
18056
18057    # A generic and very simple default shared library creation
18058    # command for GNU C++ for the case where it uses the native
18059    # linker, instead of GNU ld.  If possible, this setting should
18060    # overridden to take advantage of the native linker features on
18061    # the platform it is being used on.
18062    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18063  fi
18064
18065  # Commands to make compiler produce verbose output that lists
18066  # what "hidden" libraries, object files and flags are used when
18067  # linking a shared library.
18068  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18069
18070else
18071  GXX=no
18072  with_gnu_ld=no
18073  wlarc=
18074fi
18075
18076# PORTME: fill in a description of your system's C++ link characteristics
18077{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18078echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18079ld_shlibs_CXX=yes
18080case $host_os in
18081  aix3*)
18082    # FIXME: insert proper C++ library support
18083    ld_shlibs_CXX=no
18084    ;;
18085  aix4* | aix5*)
18086    if test "$host_cpu" = ia64; then
18087      # On IA64, the linker does run time linking by default, so we don't
18088      # have to do anything special.
18089      aix_use_runtimelinking=no
18090      exp_sym_flag='-Bexport'
18091      no_entry_flag=""
18092    else
18093      aix_use_runtimelinking=no
18094
18095      # Test if we are trying to use run time linking or normal
18096      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18097      # need to do runtime linking.
18098      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18099	for ld_flag in $LDFLAGS; do
18100	  case $ld_flag in
18101	  *-brtl*)
18102	    aix_use_runtimelinking=yes
18103	    break
18104	    ;;
18105	  esac
18106	done
18107	;;
18108      esac
18109
18110      exp_sym_flag='-bexport'
18111      no_entry_flag='-bnoentry'
18112    fi
18113
18114    # When large executables or shared objects are built, AIX ld can
18115    # have problems creating the table of contents.  If linking a library
18116    # or program results in "error TOC overflow" add -mminimal-toc to
18117    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18118    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18119
18120    archive_cmds_CXX=''
18121    hardcode_direct_CXX=yes
18122    hardcode_libdir_separator_CXX=':'
18123    link_all_deplibs_CXX=yes
18124
18125    if test "$GXX" = yes; then
18126      case $host_os in aix4.[012]|aix4.[012].*)
18127      # We only want to do this on AIX 4.2 and lower, the check
18128      # below for broken collect2 doesn't work under 4.3+
18129	collect2name=`${CC} -print-prog-name=collect2`
18130	if test -f "$collect2name" && \
18131	   strings "$collect2name" | grep resolve_lib_name >/dev/null
18132	then
18133	  # We have reworked collect2
18134	  hardcode_direct_CXX=yes
18135	else
18136	  # We have old collect2
18137	  hardcode_direct_CXX=unsupported
18138	  # It fails to find uninstalled libraries when the uninstalled
18139	  # path is not listed in the libpath.  Setting hardcode_minus_L
18140	  # to unsupported forces relinking
18141	  hardcode_minus_L_CXX=yes
18142	  hardcode_libdir_flag_spec_CXX='-L$libdir'
18143	  hardcode_libdir_separator_CXX=
18144	fi
18145	;;
18146      esac
18147      shared_flag='-shared'
18148      if test "$aix_use_runtimelinking" = yes; then
18149	shared_flag="$shared_flag "'${wl}-G'
18150      fi
18151    else
18152      # not using gcc
18153      if test "$host_cpu" = ia64; then
18154	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18155	# chokes on -Wl,-G. The following line is correct:
18156	shared_flag='-G'
18157      else
18158	if test "$aix_use_runtimelinking" = yes; then
18159	  shared_flag='${wl}-G'
18160	else
18161	  shared_flag='${wl}-bM:SRE'
18162	fi
18163      fi
18164    fi
18165
18166    # It seems that -bexpall does not export symbols beginning with
18167    # underscore (_), so it is better to generate a list of symbols to export.
18168    always_export_symbols_CXX=yes
18169    if test "$aix_use_runtimelinking" = yes; then
18170      # Warning - without using the other runtime loading flags (-brtl),
18171      # -berok will link without error, but may produce a broken library.
18172      allow_undefined_flag_CXX='-berok'
18173      # Determine the default libpath from the value encoded in an empty executable.
18174      cat >conftest.$ac_ext <<_ACEOF
18175/* confdefs.h.  */
18176_ACEOF
18177cat confdefs.h >>conftest.$ac_ext
18178cat >>conftest.$ac_ext <<_ACEOF
18179/* end confdefs.h.  */
18180
18181int
18182main ()
18183{
18184
18185  ;
18186  return 0;
18187}
18188_ACEOF
18189rm -f conftest.$ac_objext conftest$ac_exeext
18190if { (ac_try="$ac_link"
18191case "(($ac_try" in
18192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18193  *) ac_try_echo=$ac_try;;
18194esac
18195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18196  (eval "$ac_link") 2>conftest.er1
18197  ac_status=$?
18198  grep -v '^ *+' conftest.er1 >conftest.err
18199  rm -f conftest.er1
18200  cat conftest.err >&5
18201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202  (exit $ac_status); } &&
18203	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18204  { (case "(($ac_try" in
18205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18206  *) ac_try_echo=$ac_try;;
18207esac
18208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18209  (eval "$ac_try") 2>&5
18210  ac_status=$?
18211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212  (exit $ac_status); }; } &&
18213	 { ac_try='test -s conftest$ac_exeext'
18214  { (case "(($ac_try" in
18215  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216  *) ac_try_echo=$ac_try;;
18217esac
18218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18219  (eval "$ac_try") 2>&5
18220  ac_status=$?
18221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222  (exit $ac_status); }; }; then
18223
18224aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18225}'`
18226# Check for a 64-bit object if we didn't find anything.
18227if 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; }
18228}'`; fi
18229else
18230  echo "$as_me: failed program was:" >&5
18231sed 's/^/| /' conftest.$ac_ext >&5
18232
18233
18234fi
18235
18236rm -f core conftest.err conftest.$ac_objext \
18237      conftest$ac_exeext conftest.$ac_ext
18238if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18239
18240      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18241
18242      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"
18243     else
18244      if test "$host_cpu" = ia64; then
18245	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18246	allow_undefined_flag_CXX="-z nodefs"
18247	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"
18248      else
18249	# Determine the default libpath from the value encoded in an empty executable.
18250	cat >conftest.$ac_ext <<_ACEOF
18251/* confdefs.h.  */
18252_ACEOF
18253cat confdefs.h >>conftest.$ac_ext
18254cat >>conftest.$ac_ext <<_ACEOF
18255/* end confdefs.h.  */
18256
18257int
18258main ()
18259{
18260
18261  ;
18262  return 0;
18263}
18264_ACEOF
18265rm -f conftest.$ac_objext conftest$ac_exeext
18266if { (ac_try="$ac_link"
18267case "(($ac_try" in
18268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18269  *) ac_try_echo=$ac_try;;
18270esac
18271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18272  (eval "$ac_link") 2>conftest.er1
18273  ac_status=$?
18274  grep -v '^ *+' conftest.er1 >conftest.err
18275  rm -f conftest.er1
18276  cat conftest.err >&5
18277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278  (exit $ac_status); } &&
18279	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18280  { (case "(($ac_try" in
18281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18282  *) ac_try_echo=$ac_try;;
18283esac
18284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18285  (eval "$ac_try") 2>&5
18286  ac_status=$?
18287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288  (exit $ac_status); }; } &&
18289	 { ac_try='test -s conftest$ac_exeext'
18290  { (case "(($ac_try" in
18291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292  *) ac_try_echo=$ac_try;;
18293esac
18294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295  (eval "$ac_try") 2>&5
18296  ac_status=$?
18297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298  (exit $ac_status); }; }; then
18299
18300aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18301}'`
18302# Check for a 64-bit object if we didn't find anything.
18303if 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; }
18304}'`; fi
18305else
18306  echo "$as_me: failed program was:" >&5
18307sed 's/^/| /' conftest.$ac_ext >&5
18308
18309
18310fi
18311
18312rm -f core conftest.err conftest.$ac_objext \
18313      conftest$ac_exeext conftest.$ac_ext
18314if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18315
18316	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18317	# Warning - without using the other run time loading flags,
18318	# -berok will link without error, but may produce a broken library.
18319	no_undefined_flag_CXX=' ${wl}-bernotok'
18320	allow_undefined_flag_CXX=' ${wl}-berok'
18321	# Exported symbols can be pulled into shared objects from archives
18322	whole_archive_flag_spec_CXX='$convenience'
18323	archive_cmds_need_lc_CXX=yes
18324	# This is similar to how AIX traditionally builds its shared libraries.
18325	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'
18326      fi
18327    fi
18328    ;;
18329
18330  beos*)
18331    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18332      allow_undefined_flag_CXX=unsupported
18333      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18334      # support --undefined.  This deserves some investigation.  FIXME
18335      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18336    else
18337      ld_shlibs_CXX=no
18338    fi
18339    ;;
18340
18341  chorus*)
18342    case $cc_basename in
18343      *)
18344	# FIXME: insert proper C++ library support
18345	ld_shlibs_CXX=no
18346	;;
18347    esac
18348    ;;
18349
18350  cygwin* | mingw* | pw32*)
18351    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18352    # as there is no search path for DLLs.
18353    hardcode_libdir_flag_spec_CXX='-L$libdir'
18354    allow_undefined_flag_CXX=unsupported
18355    always_export_symbols_CXX=no
18356    enable_shared_with_static_runtimes_CXX=yes
18357
18358    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18359      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'
18360      # If the export-symbols file already is a .def file (1st line
18361      # is EXPORTS), use it as is; otherwise, prepend...
18362      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18363	cp $export_symbols $output_objdir/$soname.def;
18364      else
18365	echo EXPORTS > $output_objdir/$soname.def;
18366	cat $export_symbols >> $output_objdir/$soname.def;
18367      fi~
18368      $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'
18369    else
18370      ld_shlibs_CXX=no
18371    fi
18372  ;;
18373      darwin* | rhapsody*)
18374        case $host_os in
18375        rhapsody* | darwin1.[012])
18376         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18377         ;;
18378       *) # Darwin 1.3 on
18379         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18380           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18381         else
18382           case ${MACOSX_DEPLOYMENT_TARGET} in
18383             10.[012])
18384               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18385               ;;
18386             10.*)
18387               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18388               ;;
18389           esac
18390         fi
18391         ;;
18392        esac
18393      archive_cmds_need_lc_CXX=no
18394      hardcode_direct_CXX=no
18395      hardcode_automatic_CXX=yes
18396      hardcode_shlibpath_var_CXX=unsupported
18397      whole_archive_flag_spec_CXX=''
18398      link_all_deplibs_CXX=yes
18399
18400    if test "$GXX" = yes ; then
18401      lt_int_apple_cc_single_mod=no
18402      output_verbose_link_cmd='echo'
18403      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18404       lt_int_apple_cc_single_mod=yes
18405      fi
18406      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18407       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18408      else
18409          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'
18410        fi
18411        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18412        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18413          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18414            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}'
18415          else
18416            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}'
18417          fi
18418            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}'
18419      else
18420      case $cc_basename in
18421        xlc*)
18422         output_verbose_link_cmd='echo'
18423          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'
18424          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18425          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18426          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}'
18427          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}'
18428          ;;
18429       *)
18430         ld_shlibs_CXX=no
18431          ;;
18432      esac
18433      fi
18434        ;;
18435
18436  dgux*)
18437    case $cc_basename in
18438      ec++*)
18439	# FIXME: insert proper C++ library support
18440	ld_shlibs_CXX=no
18441	;;
18442      ghcx*)
18443	# Green Hills C++ Compiler
18444	# FIXME: insert proper C++ library support
18445	ld_shlibs_CXX=no
18446	;;
18447      *)
18448	# FIXME: insert proper C++ library support
18449	ld_shlibs_CXX=no
18450	;;
18451    esac
18452    ;;
18453  freebsd[12]*)
18454    # C++ shared libraries reported to be fairly broken before switch to ELF
18455    ld_shlibs_CXX=no
18456    ;;
18457  freebsd-elf*)
18458    archive_cmds_need_lc_CXX=no
18459    ;;
18460  freebsd* | kfreebsd*-gnu | dragonfly*)
18461    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18462    # conventions
18463    ld_shlibs_CXX=yes
18464    ;;
18465  gnu*)
18466    ;;
18467  hpux9*)
18468    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18469    hardcode_libdir_separator_CXX=:
18470    export_dynamic_flag_spec_CXX='${wl}-E'
18471    hardcode_direct_CXX=yes
18472    hardcode_minus_L_CXX=yes # Not in the search PATH,
18473				# but as the default
18474				# location of the library.
18475
18476    case $cc_basename in
18477    CC*)
18478      # FIXME: insert proper C++ library support
18479      ld_shlibs_CXX=no
18480      ;;
18481    aCC*)
18482      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'
18483      # Commands to make compiler produce verbose output that lists
18484      # what "hidden" libraries, object files and flags are used when
18485      # linking a shared library.
18486      #
18487      # There doesn't appear to be a way to prevent this compiler from
18488      # explicitly linking system object files so we need to strip them
18489      # from the output so that they don't get included in the library
18490      # dependencies.
18491      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'
18492      ;;
18493    *)
18494      if test "$GXX" = yes; then
18495        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'
18496      else
18497        # FIXME: insert proper C++ library support
18498        ld_shlibs_CXX=no
18499      fi
18500      ;;
18501    esac
18502    ;;
18503  hpux10*|hpux11*)
18504    if test $with_gnu_ld = no; then
18505      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18506      hardcode_libdir_separator_CXX=:
18507
18508      case $host_cpu in
18509      hppa*64*|ia64*)
18510	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18511        ;;
18512      *)
18513	export_dynamic_flag_spec_CXX='${wl}-E'
18514        ;;
18515      esac
18516    fi
18517    case $host_cpu in
18518    hppa*64*|ia64*)
18519      hardcode_direct_CXX=no
18520      hardcode_shlibpath_var_CXX=no
18521      ;;
18522    *)
18523      hardcode_direct_CXX=yes
18524      hardcode_minus_L_CXX=yes # Not in the search PATH,
18525					      # but as the default
18526					      # location of the library.
18527      ;;
18528    esac
18529
18530    case $cc_basename in
18531      CC*)
18532	# FIXME: insert proper C++ library support
18533	ld_shlibs_CXX=no
18534	;;
18535      aCC*)
18536	case $host_cpu in
18537	hppa*64*)
18538	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18539	  ;;
18540	ia64*)
18541	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18542	  ;;
18543	*)
18544	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18545	  ;;
18546	esac
18547	# Commands to make compiler produce verbose output that lists
18548	# what "hidden" libraries, object files and flags are used when
18549	# linking a shared library.
18550	#
18551	# There doesn't appear to be a way to prevent this compiler from
18552	# explicitly linking system object files so we need to strip them
18553	# from the output so that they don't get included in the library
18554	# dependencies.
18555	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'
18556	;;
18557      *)
18558	if test "$GXX" = yes; then
18559	  if test $with_gnu_ld = no; then
18560	    case $host_cpu in
18561	    hppa*64*)
18562	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18563	      ;;
18564	    ia64*)
18565	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18566	      ;;
18567	    *)
18568	      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'
18569	      ;;
18570	    esac
18571	  fi
18572	else
18573	  # FIXME: insert proper C++ library support
18574	  ld_shlibs_CXX=no
18575	fi
18576	;;
18577    esac
18578    ;;
18579  interix3*)
18580    hardcode_direct_CXX=no
18581    hardcode_shlibpath_var_CXX=no
18582    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18583    export_dynamic_flag_spec_CXX='${wl}-E'
18584    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18585    # Instead, shared libraries are loaded at an image base (0x10000000 by
18586    # default) and relocated if they conflict, which is a slow very memory
18587    # consuming and fragmenting process.  To avoid this, we pick a random,
18588    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18589    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18590    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'
18591    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'
18592    ;;
18593  irix5* | irix6*)
18594    case $cc_basename in
18595      CC*)
18596	# SGI C++
18597	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'
18598
18599	# Archives containing C++ object files must be created using
18600	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18601	# necessary to make sure instantiated templates are included
18602	# in the archive.
18603	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18604	;;
18605      *)
18606	if test "$GXX" = yes; then
18607	  if test "$with_gnu_ld" = no; then
18608	    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'
18609	  else
18610	    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'
18611	  fi
18612	fi
18613	link_all_deplibs_CXX=yes
18614	;;
18615    esac
18616    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18617    hardcode_libdir_separator_CXX=:
18618    ;;
18619  linux*)
18620    case $cc_basename in
18621      KCC*)
18622	# Kuck and Associates, Inc. (KAI) C++ Compiler
18623
18624	# KCC will only create a shared library if the output file
18625	# ends with ".so" (or ".sl" for HP-UX), so rename the library
18626	# to its proper name (with version) after linking.
18627	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'
18628	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'
18629	# Commands to make compiler produce verbose output that lists
18630	# what "hidden" libraries, object files and flags are used when
18631	# linking a shared library.
18632	#
18633	# There doesn't appear to be a way to prevent this compiler from
18634	# explicitly linking system object files so we need to strip them
18635	# from the output so that they don't get included in the library
18636	# dependencies.
18637	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'
18638
18639	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18640	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18641
18642	# Archives containing C++ object files must be created using
18643	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
18644	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18645	;;
18646      icpc*)
18647	# Intel C++
18648	with_gnu_ld=yes
18649	# version 8.0 and above of icpc choke on multiply defined symbols
18650	# if we add $predep_objects and $postdep_objects, however 7.1 and
18651	# earlier do not add the objects themselves.
18652	case `$CC -V 2>&1` in
18653	*"Version 7."*)
18654  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18655  	  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'
18656	  ;;
18657	*)  # Version 8.0 or newer
18658	  tmp_idyn=
18659	  case $host_cpu in
18660	    ia64*) tmp_idyn=' -i_dynamic';;
18661	  esac
18662  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18663	  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'
18664	  ;;
18665	esac
18666	archive_cmds_need_lc_CXX=no
18667	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18668	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18669	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18670	;;
18671      pgCC*)
18672        # Portland Group C++ compiler
18673	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18674  	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'
18675
18676	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18677	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18678	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'
18679        ;;
18680      cxx*)
18681	# Compaq C++
18682	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18683	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'
18684
18685	runpath_var=LD_RUN_PATH
18686	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18687	hardcode_libdir_separator_CXX=:
18688
18689	# Commands to make compiler produce verbose output that lists
18690	# what "hidden" libraries, object files and flags are used when
18691	# linking a shared library.
18692	#
18693	# There doesn't appear to be a way to prevent this compiler from
18694	# explicitly linking system object files so we need to strip them
18695	# from the output so that they don't get included in the library
18696	# dependencies.
18697	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'
18698	;;
18699    esac
18700    ;;
18701  lynxos*)
18702    # FIXME: insert proper C++ library support
18703    ld_shlibs_CXX=no
18704    ;;
18705  m88k*)
18706    # FIXME: insert proper C++ library support
18707    ld_shlibs_CXX=no
18708    ;;
18709  mvs*)
18710    case $cc_basename in
18711      cxx*)
18712	# FIXME: insert proper C++ library support
18713	ld_shlibs_CXX=no
18714	;;
18715      *)
18716	# FIXME: insert proper C++ library support
18717	ld_shlibs_CXX=no
18718	;;
18719    esac
18720    ;;
18721  netbsd*)
18722    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18723      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18724      wlarc=
18725      hardcode_libdir_flag_spec_CXX='-R$libdir'
18726      hardcode_direct_CXX=yes
18727      hardcode_shlibpath_var_CXX=no
18728    fi
18729    # Workaround some broken pre-1.5 toolchains
18730    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18731    ;;
18732  openbsd2*)
18733    # C++ shared libraries are fairly broken
18734    ld_shlibs_CXX=no
18735    ;;
18736  openbsd*)
18737    hardcode_direct_CXX=yes
18738    hardcode_shlibpath_var_CXX=no
18739    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18740    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18741    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18742      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18743      export_dynamic_flag_spec_CXX='${wl}-E'
18744      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18745    fi
18746    output_verbose_link_cmd='echo'
18747    ;;
18748  osf3*)
18749    case $cc_basename in
18750      KCC*)
18751	# Kuck and Associates, Inc. (KAI) C++ Compiler
18752
18753	# KCC will only create a shared library if the output file
18754	# ends with ".so" (or ".sl" for HP-UX), so rename the library
18755	# to its proper name (with version) after linking.
18756	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'
18757
18758	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18759	hardcode_libdir_separator_CXX=:
18760
18761	# Archives containing C++ object files must be created using
18762	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
18763	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18764
18765	;;
18766      RCC*)
18767	# Rational C++ 2.4.1
18768	# FIXME: insert proper C++ library support
18769	ld_shlibs_CXX=no
18770	;;
18771      cxx*)
18772	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18773	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'
18774
18775	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18776	hardcode_libdir_separator_CXX=:
18777
18778	# Commands to make compiler produce verbose output that lists
18779	# what "hidden" libraries, object files and flags are used when
18780	# linking a shared library.
18781	#
18782	# There doesn't appear to be a way to prevent this compiler from
18783	# explicitly linking system object files so we need to strip them
18784	# from the output so that they don't get included in the library
18785	# dependencies.
18786	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'
18787	;;
18788      *)
18789	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18790	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18791	  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'
18792
18793	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18794	  hardcode_libdir_separator_CXX=:
18795
18796	  # Commands to make compiler produce verbose output that lists
18797	  # what "hidden" libraries, object files and flags are used when
18798	  # linking a shared library.
18799	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18800
18801	else
18802	  # FIXME: insert proper C++ library support
18803	  ld_shlibs_CXX=no
18804	fi
18805	;;
18806    esac
18807    ;;
18808  osf4* | osf5*)
18809    case $cc_basename in
18810      KCC*)
18811	# Kuck and Associates, Inc. (KAI) C++ Compiler
18812
18813	# KCC will only create a shared library if the output file
18814	# ends with ".so" (or ".sl" for HP-UX), so rename the library
18815	# to its proper name (with version) after linking.
18816	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'
18817
18818	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18819	hardcode_libdir_separator_CXX=:
18820
18821	# Archives containing C++ object files must be created using
18822	# the KAI C++ compiler.
18823	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18824	;;
18825      RCC*)
18826	# Rational C++ 2.4.1
18827	# FIXME: insert proper C++ library support
18828	ld_shlibs_CXX=no
18829	;;
18830      cxx*)
18831	allow_undefined_flag_CXX=' -expect_unresolved \*'
18832	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'
18833	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18834	  echo "-hidden">> $lib.exp~
18835	  $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~
18836	  $rm $lib.exp'
18837
18838	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18839	hardcode_libdir_separator_CXX=:
18840
18841	# Commands to make compiler produce verbose output that lists
18842	# what "hidden" libraries, object files and flags are used when
18843	# linking a shared library.
18844	#
18845	# There doesn't appear to be a way to prevent this compiler from
18846	# explicitly linking system object files so we need to strip them
18847	# from the output so that they don't get included in the library
18848	# dependencies.
18849	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'
18850	;;
18851      *)
18852	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18853	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18854	 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'
18855
18856	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18857	  hardcode_libdir_separator_CXX=:
18858
18859	  # Commands to make compiler produce verbose output that lists
18860	  # what "hidden" libraries, object files and flags are used when
18861	  # linking a shared library.
18862	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18863
18864	else
18865	  # FIXME: insert proper C++ library support
18866	  ld_shlibs_CXX=no
18867	fi
18868	;;
18869    esac
18870    ;;
18871  psos*)
18872    # FIXME: insert proper C++ library support
18873    ld_shlibs_CXX=no
18874    ;;
18875  sunos4*)
18876    case $cc_basename in
18877      CC*)
18878	# Sun C++ 4.x
18879	# FIXME: insert proper C++ library support
18880	ld_shlibs_CXX=no
18881	;;
18882      lcc*)
18883	# Lucid
18884	# FIXME: insert proper C++ library support
18885	ld_shlibs_CXX=no
18886	;;
18887      *)
18888	# FIXME: insert proper C++ library support
18889	ld_shlibs_CXX=no
18890	;;
18891    esac
18892    ;;
18893  solaris*)
18894    case $cc_basename in
18895      CC*)
18896	# Sun C++ 4.2, 5.x and Centerline C++
18897        archive_cmds_need_lc_CXX=yes
18898	no_undefined_flag_CXX=' -zdefs'
18899	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18900	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18901	$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'
18902
18903	hardcode_libdir_flag_spec_CXX='-R$libdir'
18904	hardcode_shlibpath_var_CXX=no
18905	case $host_os in
18906	  solaris2.[0-5] | solaris2.[0-5].*) ;;
18907	  *)
18908	    # The C++ compiler is used as linker so we must use $wl
18909	    # flag to pass the commands to the underlying system
18910	    # linker. We must also pass each convience library through
18911	    # to the system linker between allextract/defaultextract.
18912	    # The C++ compiler will combine linker options so we
18913	    # cannot just pass the convience library names through
18914	    # without $wl.
18915	    # Supported since Solaris 2.6 (maybe 2.5.1?)
18916	    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'
18917	    ;;
18918	esac
18919	link_all_deplibs_CXX=yes
18920
18921	output_verbose_link_cmd='echo'
18922
18923	# Archives containing C++ object files must be created using
18924	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
18925	# necessary to make sure instantiated templates are included
18926	# in the archive.
18927	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18928	;;
18929      gcx*)
18930	# Green Hills C++ Compiler
18931	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18932
18933	# The C++ compiler must be used to create the archive.
18934	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18935	;;
18936      *)
18937	# GNU C++ compiler with Solaris linker
18938	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18939	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18940	  if $CC --version | grep -v '^2\.7' > /dev/null; then
18941	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18942	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18943		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18944
18945	    # Commands to make compiler produce verbose output that lists
18946	    # what "hidden" libraries, object files and flags are used when
18947	    # linking a shared library.
18948	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18949	  else
18950	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
18951	    # platform.
18952	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18953	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18954		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18955
18956	    # Commands to make compiler produce verbose output that lists
18957	    # what "hidden" libraries, object files and flags are used when
18958	    # linking a shared library.
18959	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18960	  fi
18961
18962	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18963	fi
18964	;;
18965    esac
18966    ;;
18967  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18968    no_undefined_flag_CXX='${wl}-z,text'
18969    archive_cmds_need_lc_CXX=no
18970    hardcode_shlibpath_var_CXX=no
18971    runpath_var='LD_RUN_PATH'
18972
18973    case $cc_basename in
18974      CC*)
18975	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18976	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18977	;;
18978      *)
18979	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18980	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18981	;;
18982    esac
18983    ;;
18984  sysv5* | sco3.2v5* | sco5v6*)
18985    # Note: We can NOT use -z defs as we might desire, because we do not
18986    # link with -lc, and that would cause any symbols used from libc to
18987    # always be unresolved, which means just about no library would
18988    # ever link correctly.  If we're not using GNU ld we use -z text
18989    # though, which does catch some bad symbols but isn't as heavy-handed
18990    # as -z defs.
18991    # For security reasons, it is highly recommended that you always
18992    # use absolute paths for naming shared libraries, and exclude the
18993    # DT_RUNPATH tag from executables and libraries.  But doing so
18994    # requires that you compile everything twice, which is a pain.
18995    # So that behaviour is only enabled if SCOABSPATH is set to a
18996    # non-empty value in the environment.  Most likely only useful for
18997    # creating official distributions of packages.
18998    # This is a hack until libtool officially supports absolute path
18999    # names for shared libraries.
19000    no_undefined_flag_CXX='${wl}-z,text'
19001    allow_undefined_flag_CXX='${wl}-z,nodefs'
19002    archive_cmds_need_lc_CXX=no
19003    hardcode_shlibpath_var_CXX=no
19004    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19005    hardcode_libdir_separator_CXX=':'
19006    link_all_deplibs_CXX=yes
19007    export_dynamic_flag_spec_CXX='${wl}-Bexport'
19008    runpath_var='LD_RUN_PATH'
19009
19010    case $cc_basename in
19011      CC*)
19012	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19013	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19014	;;
19015      *)
19016	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19017	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19018	;;
19019    esac
19020    ;;
19021  tandem*)
19022    case $cc_basename in
19023      NCC*)
19024	# NonStop-UX NCC 3.20
19025	# FIXME: insert proper C++ library support
19026	ld_shlibs_CXX=no
19027	;;
19028      *)
19029	# FIXME: insert proper C++ library support
19030	ld_shlibs_CXX=no
19031	;;
19032    esac
19033    ;;
19034  vxworks*)
19035    # FIXME: insert proper C++ library support
19036    ld_shlibs_CXX=no
19037    ;;
19038  *)
19039    # FIXME: insert proper C++ library support
19040    ld_shlibs_CXX=no
19041    ;;
19042esac
19043{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19044echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19045test "$ld_shlibs_CXX" = no && can_build_shared=no
19046
19047GCC_CXX="$GXX"
19048LD_CXX="$LD"
19049
19050
19051cat > conftest.$ac_ext <<EOF
19052class Foo
19053{
19054public:
19055  Foo (void) { a = 0; }
19056private:
19057  int a;
19058};
19059EOF
19060
19061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19062  (eval $ac_compile) 2>&5
19063  ac_status=$?
19064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065  (exit $ac_status); }; then
19066  # Parse the compiler output and extract the necessary
19067  # objects, libraries and library flags.
19068
19069  # Sentinel used to keep track of whether or not we are before
19070  # the conftest object file.
19071  pre_test_object_deps_done=no
19072
19073  # The `*' in the case matches for architectures that use `case' in
19074  # $output_verbose_cmd can trigger glob expansion during the loop
19075  # eval without this substitution.
19076  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19077
19078  for p in `eval $output_verbose_link_cmd`; do
19079    case $p in
19080
19081    -L* | -R* | -l*)
19082       # Some compilers place space between "-{L,R}" and the path.
19083       # Remove the space.
19084       if test $p = "-L" \
19085	  || test $p = "-R"; then
19086	 prev=$p
19087	 continue
19088       else
19089	 prev=
19090       fi
19091
19092       if test "$pre_test_object_deps_done" = no; then
19093	 case $p in
19094	 -L* | -R*)
19095	   # Internal compiler library paths should come after those
19096	   # provided the user.  The postdeps already come after the
19097	   # user supplied libs so there is no need to process them.
19098	   if test -z "$compiler_lib_search_path_CXX"; then
19099	     compiler_lib_search_path_CXX="${prev}${p}"
19100	   else
19101	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19102	   fi
19103	   ;;
19104	 # The "-l" case would never come before the object being
19105	 # linked, so don't bother handling this case.
19106	 esac
19107       else
19108	 if test -z "$postdeps_CXX"; then
19109	   postdeps_CXX="${prev}${p}"
19110	 else
19111	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19112	 fi
19113       fi
19114       ;;
19115
19116    *.$objext)
19117       # This assumes that the test object file only shows up
19118       # once in the compiler output.
19119       if test "$p" = "conftest.$objext"; then
19120	 pre_test_object_deps_done=yes
19121	 continue
19122       fi
19123
19124       if test "$pre_test_object_deps_done" = no; then
19125	 if test -z "$predep_objects_CXX"; then
19126	   predep_objects_CXX="$p"
19127	 else
19128	   predep_objects_CXX="$predep_objects_CXX $p"
19129	 fi
19130       else
19131	 if test -z "$postdep_objects_CXX"; then
19132	   postdep_objects_CXX="$p"
19133	 else
19134	   postdep_objects_CXX="$postdep_objects_CXX $p"
19135	 fi
19136       fi
19137       ;;
19138
19139    *) ;; # Ignore the rest.
19140
19141    esac
19142  done
19143
19144  # Clean up.
19145  rm -f a.out a.exe
19146else
19147  echo "libtool.m4: error: problem compiling CXX test program"
19148fi
19149
19150$rm -f confest.$objext
19151
19152# PORTME: override above test on systems where it is broken
19153case $host_os in
19154interix3*)
19155  # Interix 3.5 installs completely hosed .la files for C++, so rather than
19156  # hack all around it, let's just trust "g++" to DTRT.
19157  predep_objects_CXX=
19158  postdep_objects_CXX=
19159  postdeps_CXX=
19160  ;;
19161
19162solaris*)
19163  case $cc_basename in
19164  CC*)
19165    # Adding this requires a known-good setup of shared libraries for
19166    # Sun compiler versions before 5.6, else PIC objects from an old
19167    # archive will be linked into the output, leading to subtle bugs.
19168    postdeps_CXX='-lCstd -lCrun'
19169    ;;
19170  esac
19171  ;;
19172esac
19173
19174
19175case " $postdeps_CXX " in
19176*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19177esac
19178
19179lt_prog_compiler_wl_CXX=
19180lt_prog_compiler_pic_CXX=
19181lt_prog_compiler_static_CXX=
19182
19183{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19184echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19185
19186  # C++ specific cases for pic, static, wl, etc.
19187  if test "$GXX" = yes; then
19188    lt_prog_compiler_wl_CXX='-Wl,'
19189    lt_prog_compiler_static_CXX='-static'
19190
19191    case $host_os in
19192    aix*)
19193      # All AIX code is PIC.
19194      if test "$host_cpu" = ia64; then
19195	# AIX 5 now supports IA64 processor
19196	lt_prog_compiler_static_CXX='-Bstatic'
19197      fi
19198      ;;
19199    amigaos*)
19200      # FIXME: we need at least 68020 code to build shared libraries, but
19201      # adding the `-m68020' flag to GCC prevents building anything better,
19202      # like `-m68040'.
19203      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19204      ;;
19205    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19206      # PIC is the default for these OSes.
19207      ;;
19208    mingw* | os2* | pw32*)
19209      # This hack is so that the source file can tell whether it is being
19210      # built for inclusion in a dll (and should export symbols for example).
19211      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19212      ;;
19213    darwin* | rhapsody*)
19214      # PIC is the default on this platform
19215      # Common symbols not allowed in MH_DYLIB files
19216      lt_prog_compiler_pic_CXX='-fno-common'
19217      ;;
19218    *djgpp*)
19219      # DJGPP does not support shared libraries at all
19220      lt_prog_compiler_pic_CXX=
19221      ;;
19222    interix3*)
19223      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19224      # Instead, we relocate shared libraries at runtime.
19225      ;;
19226    sysv4*MP*)
19227      if test -d /usr/nec; then
19228	lt_prog_compiler_pic_CXX=-Kconform_pic
19229      fi
19230      ;;
19231    hpux*)
19232      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19233      # not for PA HP-UX.
19234      case $host_cpu in
19235      hppa*64*|ia64*)
19236	;;
19237      *)
19238	lt_prog_compiler_pic_CXX='-fPIC'
19239	;;
19240      esac
19241      ;;
19242    *)
19243      lt_prog_compiler_pic_CXX='-fPIC'
19244      ;;
19245    esac
19246  else
19247    case $host_os in
19248      aix4* | aix5*)
19249	# All AIX code is PIC.
19250	if test "$host_cpu" = ia64; then
19251	  # AIX 5 now supports IA64 processor
19252	  lt_prog_compiler_static_CXX='-Bstatic'
19253	else
19254	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19255	fi
19256	;;
19257      chorus*)
19258	case $cc_basename in
19259	cxch68*)
19260	  # Green Hills C++ Compiler
19261	  # _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"
19262	  ;;
19263	esac
19264	;;
19265       darwin*)
19266         # PIC is the default on this platform
19267         # Common symbols not allowed in MH_DYLIB files
19268         case $cc_basename in
19269           xlc*)
19270           lt_prog_compiler_pic_CXX='-qnocommon'
19271           lt_prog_compiler_wl_CXX='-Wl,'
19272           ;;
19273         esac
19274       ;;
19275      dgux*)
19276	case $cc_basename in
19277	  ec++*)
19278	    lt_prog_compiler_pic_CXX='-KPIC'
19279	    ;;
19280	  ghcx*)
19281	    # Green Hills C++ Compiler
19282	    lt_prog_compiler_pic_CXX='-pic'
19283	    ;;
19284	  *)
19285	    ;;
19286	esac
19287	;;
19288      freebsd* | kfreebsd*-gnu | dragonfly*)
19289	# FreeBSD uses GNU C++
19290	;;
19291      hpux9* | hpux10* | hpux11*)
19292	case $cc_basename in
19293	  CC*)
19294	    lt_prog_compiler_wl_CXX='-Wl,'
19295	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19296	    if test "$host_cpu" != ia64; then
19297	      lt_prog_compiler_pic_CXX='+Z'
19298	    fi
19299	    ;;
19300	  aCC*)
19301	    lt_prog_compiler_wl_CXX='-Wl,'
19302	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19303	    case $host_cpu in
19304	    hppa*64*|ia64*)
19305	      # +Z the default
19306	      ;;
19307	    *)
19308	      lt_prog_compiler_pic_CXX='+Z'
19309	      ;;
19310	    esac
19311	    ;;
19312	  *)
19313	    ;;
19314	esac
19315	;;
19316      interix*)
19317	# This is c89, which is MS Visual C++ (no shared libs)
19318	# Anyone wants to do a port?
19319	;;
19320      irix5* | irix6* | nonstopux*)
19321	case $cc_basename in
19322	  CC*)
19323	    lt_prog_compiler_wl_CXX='-Wl,'
19324	    lt_prog_compiler_static_CXX='-non_shared'
19325	    # CC pic flag -KPIC is the default.
19326	    ;;
19327	  *)
19328	    ;;
19329	esac
19330	;;
19331      linux*)
19332	case $cc_basename in
19333	  KCC*)
19334	    # KAI C++ Compiler
19335	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19336	    lt_prog_compiler_pic_CXX='-fPIC'
19337	    ;;
19338	  icpc* | ecpc*)
19339	    # Intel C++
19340	    lt_prog_compiler_wl_CXX='-Wl,'
19341	    lt_prog_compiler_pic_CXX='-KPIC'
19342	    lt_prog_compiler_static_CXX='-static'
19343	    ;;
19344	  pgCC*)
19345	    # Portland Group C++ compiler.
19346	    lt_prog_compiler_wl_CXX='-Wl,'
19347	    lt_prog_compiler_pic_CXX='-fpic'
19348	    lt_prog_compiler_static_CXX='-Bstatic'
19349	    ;;
19350	  cxx*)
19351	    # Compaq C++
19352	    # Make sure the PIC flag is empty.  It appears that all Alpha
19353	    # Linux and Compaq Tru64 Unix objects are PIC.
19354	    lt_prog_compiler_pic_CXX=
19355	    lt_prog_compiler_static_CXX='-non_shared'
19356	    ;;
19357	  *)
19358	    ;;
19359	esac
19360	;;
19361      lynxos*)
19362	;;
19363      m88k*)
19364	;;
19365      mvs*)
19366	case $cc_basename in
19367	  cxx*)
19368	    lt_prog_compiler_pic_CXX='-W c,exportall'
19369	    ;;
19370	  *)
19371	    ;;
19372	esac
19373	;;
19374      netbsd*)
19375	;;
19376      osf3* | osf4* | osf5*)
19377	case $cc_basename in
19378	  KCC*)
19379	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19380	    ;;
19381	  RCC*)
19382	    # Rational C++ 2.4.1
19383	    lt_prog_compiler_pic_CXX='-pic'
19384	    ;;
19385	  cxx*)
19386	    # Digital/Compaq C++
19387	    lt_prog_compiler_wl_CXX='-Wl,'
19388	    # Make sure the PIC flag is empty.  It appears that all Alpha
19389	    # Linux and Compaq Tru64 Unix objects are PIC.
19390	    lt_prog_compiler_pic_CXX=
19391	    lt_prog_compiler_static_CXX='-non_shared'
19392	    ;;
19393	  *)
19394	    ;;
19395	esac
19396	;;
19397      psos*)
19398	;;
19399      solaris*)
19400	case $cc_basename in
19401	  CC*)
19402	    # Sun C++ 4.2, 5.x and Centerline C++
19403	    lt_prog_compiler_pic_CXX='-KPIC'
19404	    lt_prog_compiler_static_CXX='-Bstatic'
19405	    lt_prog_compiler_wl_CXX='-Qoption ld '
19406	    ;;
19407	  gcx*)
19408	    # Green Hills C++ Compiler
19409	    lt_prog_compiler_pic_CXX='-PIC'
19410	    ;;
19411	  *)
19412	    ;;
19413	esac
19414	;;
19415      sunos4*)
19416	case $cc_basename in
19417	  CC*)
19418	    # Sun C++ 4.x
19419	    lt_prog_compiler_pic_CXX='-pic'
19420	    lt_prog_compiler_static_CXX='-Bstatic'
19421	    ;;
19422	  lcc*)
19423	    # Lucid
19424	    lt_prog_compiler_pic_CXX='-pic'
19425	    ;;
19426	  *)
19427	    ;;
19428	esac
19429	;;
19430      tandem*)
19431	case $cc_basename in
19432	  NCC*)
19433	    # NonStop-UX NCC 3.20
19434	    lt_prog_compiler_pic_CXX='-KPIC'
19435	    ;;
19436	  *)
19437	    ;;
19438	esac
19439	;;
19440      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19441	case $cc_basename in
19442	  CC*)
19443	    lt_prog_compiler_wl_CXX='-Wl,'
19444	    lt_prog_compiler_pic_CXX='-KPIC'
19445	    lt_prog_compiler_static_CXX='-Bstatic'
19446	    ;;
19447	esac
19448	;;
19449      vxworks*)
19450	;;
19451      *)
19452	lt_prog_compiler_can_build_shared_CXX=no
19453	;;
19454    esac
19455  fi
19456
19457{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19458echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19459
19460#
19461# Check to make sure the PIC flag actually works.
19462#
19463if test -n "$lt_prog_compiler_pic_CXX"; then
19464
19465{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19466echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19467if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19468  echo $ECHO_N "(cached) $ECHO_C" >&6
19469else
19470  lt_prog_compiler_pic_works_CXX=no
19471  ac_outfile=conftest.$ac_objext
19472   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19473   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19474   # Insert the option either (1) after the last *FLAGS variable, or
19475   # (2) before a word containing "conftest.", or (3) at the end.
19476   # Note that $ac_compile itself does not contain backslashes and begins
19477   # with a dollar sign (not a hyphen), so the echo should work correctly.
19478   # The option is referenced via a variable to avoid confusing sed.
19479   lt_compile=`echo "$ac_compile" | $SED \
19480   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19481   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19482   -e 's:$: $lt_compiler_flag:'`
19483   (eval echo "\"\$as_me:19483: $lt_compile\"" >&5)
19484   (eval "$lt_compile" 2>conftest.err)
19485   ac_status=$?
19486   cat conftest.err >&5
19487   echo "$as_me:19487: \$? = $ac_status" >&5
19488   if (exit $ac_status) && test -s "$ac_outfile"; then
19489     # The compiler can only warn and ignore the option if not recognized
19490     # So say no if there are warnings other than the usual output.
19491     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19492     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19493     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19494       lt_prog_compiler_pic_works_CXX=yes
19495     fi
19496   fi
19497   $rm conftest*
19498
19499fi
19500{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19501echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19502
19503if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19504    case $lt_prog_compiler_pic_CXX in
19505     "" | " "*) ;;
19506     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19507     esac
19508else
19509    lt_prog_compiler_pic_CXX=
19510     lt_prog_compiler_can_build_shared_CXX=no
19511fi
19512
19513fi
19514case $host_os in
19515  # For platforms which do not support PIC, -DPIC is meaningless:
19516  *djgpp*)
19517    lt_prog_compiler_pic_CXX=
19518    ;;
19519  *)
19520    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19521    ;;
19522esac
19523
19524#
19525# Check to make sure the static flag actually works.
19526#
19527wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19528{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19529echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19530if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19531  echo $ECHO_N "(cached) $ECHO_C" >&6
19532else
19533  lt_prog_compiler_static_works_CXX=no
19534   save_LDFLAGS="$LDFLAGS"
19535   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19536   printf "$lt_simple_link_test_code" > conftest.$ac_ext
19537   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19538     # The linker can only warn and ignore the option if not recognized
19539     # So say no if there are warnings
19540     if test -s conftest.err; then
19541       # Append any errors to the config.log.
19542       cat conftest.err 1>&5
19543       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19544       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19545       if diff conftest.exp conftest.er2 >/dev/null; then
19546         lt_prog_compiler_static_works_CXX=yes
19547       fi
19548     else
19549       lt_prog_compiler_static_works_CXX=yes
19550     fi
19551   fi
19552   $rm conftest*
19553   LDFLAGS="$save_LDFLAGS"
19554
19555fi
19556{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19557echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19558
19559if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19560    :
19561else
19562    lt_prog_compiler_static_CXX=
19563fi
19564
19565
19566{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19567echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19568if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19569  echo $ECHO_N "(cached) $ECHO_C" >&6
19570else
19571  lt_cv_prog_compiler_c_o_CXX=no
19572   $rm -r conftest 2>/dev/null
19573   mkdir conftest
19574   cd conftest
19575   mkdir out
19576   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19577
19578   lt_compiler_flag="-o out/conftest2.$ac_objext"
19579   # Insert the option either (1) after the last *FLAGS variable, or
19580   # (2) before a word containing "conftest.", or (3) at the end.
19581   # Note that $ac_compile itself does not contain backslashes and begins
19582   # with a dollar sign (not a hyphen), so the echo should work correctly.
19583   lt_compile=`echo "$ac_compile" | $SED \
19584   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19585   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19586   -e 's:$: $lt_compiler_flag:'`
19587   (eval echo "\"\$as_me:19587: $lt_compile\"" >&5)
19588   (eval "$lt_compile" 2>out/conftest.err)
19589   ac_status=$?
19590   cat out/conftest.err >&5
19591   echo "$as_me:19591: \$? = $ac_status" >&5
19592   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19593   then
19594     # The compiler can only warn and ignore the option if not recognized
19595     # So say no if there are warnings
19596     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19597     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19598     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19599       lt_cv_prog_compiler_c_o_CXX=yes
19600     fi
19601   fi
19602   chmod u+w . 2>&5
19603   $rm conftest*
19604   # SGI C++ compiler will create directory out/ii_files/ for
19605   # template instantiation
19606   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19607   $rm out/* && rmdir out
19608   cd ..
19609   rmdir conftest
19610   $rm conftest*
19611
19612fi
19613{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19614echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19615
19616
19617hard_links="nottested"
19618if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19619  # do not overwrite the value of need_locks provided by the user
19620  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19621echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19622  hard_links=yes
19623  $rm conftest*
19624  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19625  touch conftest.a
19626  ln conftest.a conftest.b 2>&5 || hard_links=no
19627  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19628  { echo "$as_me:$LINENO: result: $hard_links" >&5
19629echo "${ECHO_T}$hard_links" >&6; }
19630  if test "$hard_links" = no; then
19631    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19632echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19633    need_locks=warn
19634  fi
19635else
19636  need_locks=no
19637fi
19638
19639{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19640echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19641
19642  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19643  case $host_os in
19644  aix4* | aix5*)
19645    # If we're using GNU nm, then we don't want the "-C" option.
19646    # -C means demangle to AIX nm, but means don't demangle with GNU nm
19647    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19648      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'
19649    else
19650      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'
19651    fi
19652    ;;
19653  pw32*)
19654    export_symbols_cmds_CXX="$ltdll_cmds"
19655  ;;
19656  cygwin* | mingw*)
19657    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'
19658  ;;
19659  *)
19660    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19661  ;;
19662  esac
19663
19664{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19665echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19666test "$ld_shlibs_CXX" = no && can_build_shared=no
19667
19668#
19669# Do we need to explicitly link libc?
19670#
19671case "x$archive_cmds_need_lc_CXX" in
19672x|xyes)
19673  # Assume -lc should be added
19674  archive_cmds_need_lc_CXX=yes
19675
19676  if test "$enable_shared" = yes && test "$GCC" = yes; then
19677    case $archive_cmds_CXX in
19678    *'~'*)
19679      # FIXME: we may have to deal with multi-command sequences.
19680      ;;
19681    '$CC '*)
19682      # Test whether the compiler implicitly links with -lc since on some
19683      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19684      # to ld, don't add -lc before -lgcc.
19685      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19686echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19687      $rm conftest*
19688      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19689
19690      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19691  (eval $ac_compile) 2>&5
19692  ac_status=$?
19693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694  (exit $ac_status); } 2>conftest.err; then
19695        soname=conftest
19696        lib=conftest
19697        libobjs=conftest.$ac_objext
19698        deplibs=
19699        wl=$lt_prog_compiler_wl_CXX
19700	pic_flag=$lt_prog_compiler_pic_CXX
19701        compiler_flags=-v
19702        linker_flags=-v
19703        verstring=
19704        output_objdir=.
19705        libname=conftest
19706        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19707        allow_undefined_flag_CXX=
19708        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19709  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19710  ac_status=$?
19711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712  (exit $ac_status); }
19713        then
19714	  archive_cmds_need_lc_CXX=no
19715        else
19716	  archive_cmds_need_lc_CXX=yes
19717        fi
19718        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19719      else
19720        cat conftest.err 1>&5
19721      fi
19722      $rm conftest*
19723      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19724echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19725      ;;
19726    esac
19727  fi
19728  ;;
19729esac
19730
19731{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19732echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19733library_names_spec=
19734libname_spec='lib$name'
19735soname_spec=
19736shrext_cmds=".so"
19737postinstall_cmds=
19738postuninstall_cmds=
19739finish_cmds=
19740finish_eval=
19741shlibpath_var=
19742shlibpath_overrides_runpath=unknown
19743version_type=none
19744dynamic_linker="$host_os ld.so"
19745sys_lib_dlsearch_path_spec="/lib /usr/lib"
19746if test "$GCC" = yes; then
19747  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19748  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19749    # if the path contains ";" then we assume it to be the separator
19750    # otherwise default to the standard path separator (i.e. ":") - it is
19751    # assumed that no part of a normal pathname contains ";" but that should
19752    # okay in the real world where ";" in dirpaths is itself problematic.
19753    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19754  else
19755    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19756  fi
19757else
19758  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19759fi
19760need_lib_prefix=unknown
19761hardcode_into_libs=no
19762
19763# when you set need_version to no, make sure it does not cause -set_version
19764# flags to be left without arguments
19765need_version=unknown
19766
19767case $host_os in
19768aix3*)
19769  version_type=linux
19770  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19771  shlibpath_var=LIBPATH
19772
19773  # AIX 3 has no versioning support, so we append a major version to the name.
19774  soname_spec='${libname}${release}${shared_ext}$major'
19775  ;;
19776
19777aix4* | aix5*)
19778  version_type=linux
19779  need_lib_prefix=no
19780  need_version=no
19781  hardcode_into_libs=yes
19782  if test "$host_cpu" = ia64; then
19783    # AIX 5 supports IA64
19784    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19785    shlibpath_var=LD_LIBRARY_PATH
19786  else
19787    # With GCC up to 2.95.x, collect2 would create an import file
19788    # for dependence libraries.  The import file would start with
19789    # the line `#! .'.  This would cause the generated library to
19790    # depend on `.', always an invalid library.  This was fixed in
19791    # development snapshots of GCC prior to 3.0.
19792    case $host_os in
19793      aix4 | aix4.[01] | aix4.[01].*)
19794      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19795	   echo ' yes '
19796	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19797	:
19798      else
19799	can_build_shared=no
19800      fi
19801      ;;
19802    esac
19803    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19804    # soname into executable. Probably we can add versioning support to
19805    # collect2, so additional links can be useful in future.
19806    if test "$aix_use_runtimelinking" = yes; then
19807      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19808      # instead of lib<name>.a to let people know that these are not
19809      # typical AIX shared libraries.
19810      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19811    else
19812      # We preserve .a as extension for shared libraries through AIX4.2
19813      # and later when we are not doing run time linking.
19814      library_names_spec='${libname}${release}.a $libname.a'
19815      soname_spec='${libname}${release}${shared_ext}$major'
19816    fi
19817    shlibpath_var=LIBPATH
19818  fi
19819  ;;
19820
19821amigaos*)
19822  library_names_spec='$libname.ixlibrary $libname.a'
19823  # Create ${libname}_ixlibrary.a entries in /sys/libs.
19824  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'
19825  ;;
19826
19827beos*)
19828  library_names_spec='${libname}${shared_ext}'
19829  dynamic_linker="$host_os ld.so"
19830  shlibpath_var=LIBRARY_PATH
19831  ;;
19832
19833bsdi[45]*)
19834  version_type=linux
19835  need_version=no
19836  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19837  soname_spec='${libname}${release}${shared_ext}$major'
19838  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19839  shlibpath_var=LD_LIBRARY_PATH
19840  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19841  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19842  # the default ld.so.conf also contains /usr/contrib/lib and
19843  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19844  # libtool to hard-code these into programs
19845  ;;
19846
19847cygwin* | mingw* | pw32*)
19848  version_type=windows
19849  shrext_cmds=".dll"
19850  need_version=no
19851  need_lib_prefix=no
19852
19853  case $GCC,$host_os in
19854  yes,cygwin* | yes,mingw* | yes,pw32*)
19855    library_names_spec='$libname.dll.a'
19856    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19857    postinstall_cmds='base_file=`basename \${file}`~
19858      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19859      dldir=$destdir/`dirname \$dlpath`~
19860      test -d \$dldir || mkdir -p \$dldir~
19861      $install_prog $dir/$dlname \$dldir/$dlname~
19862      chmod a+x \$dldir/$dlname'
19863    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19864      dlpath=$dir/\$dldll~
19865       $rm \$dlpath'
19866    shlibpath_overrides_runpath=yes
19867
19868    case $host_os in
19869    cygwin*)
19870      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19871      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19872      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19873      ;;
19874    mingw*)
19875      # MinGW DLLs use traditional 'lib' prefix
19876      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19877      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19878      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19879        # It is most probably a Windows format PATH printed by
19880        # mingw gcc, but we are running on Cygwin. Gcc prints its search
19881        # path with ; separators, and with drive letters. We can handle the
19882        # drive letters (cygwin fileutils understands them), so leave them,
19883        # especially as we might pass files found there to a mingw objdump,
19884        # which wouldn't understand a cygwinified path. Ahh.
19885        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19886      else
19887        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19888      fi
19889      ;;
19890    pw32*)
19891      # pw32 DLLs use 'pw' prefix rather than 'lib'
19892      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19893      ;;
19894    esac
19895    ;;
19896
19897  *)
19898    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19899    ;;
19900  esac
19901  dynamic_linker='Win32 ld.exe'
19902  # FIXME: first we should search . and the directory the executable is in
19903  shlibpath_var=PATH
19904  ;;
19905
19906darwin* | rhapsody*)
19907  dynamic_linker="$host_os dyld"
19908  version_type=darwin
19909  need_lib_prefix=no
19910  need_version=no
19911  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19912  soname_spec='${libname}${release}${major}$shared_ext'
19913  shlibpath_overrides_runpath=yes
19914  shlibpath_var=DYLD_LIBRARY_PATH
19915  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19916  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19917  if test "$GCC" = yes; then
19918    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"`
19919  else
19920    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19921  fi
19922  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19923  ;;
19924
19925dgux*)
19926  version_type=linux
19927  need_lib_prefix=no
19928  need_version=no
19929  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19930  soname_spec='${libname}${release}${shared_ext}$major'
19931  shlibpath_var=LD_LIBRARY_PATH
19932  ;;
19933
19934freebsd1*)
19935  dynamic_linker=no
19936  ;;
19937
19938kfreebsd*-gnu)
19939  version_type=linux
19940  need_lib_prefix=no
19941  need_version=no
19942  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19943  soname_spec='${libname}${release}${shared_ext}$major'
19944  shlibpath_var=LD_LIBRARY_PATH
19945  shlibpath_overrides_runpath=no
19946  hardcode_into_libs=yes
19947  dynamic_linker='GNU ld.so'
19948  ;;
19949
19950freebsd* | dragonfly*)
19951  # DragonFly does not have aout.  When/if they implement a new
19952  # versioning mechanism, adjust this.
19953  if test -x /usr/bin/objformat; then
19954    objformat=`/usr/bin/objformat`
19955  else
19956    case $host_os in
19957    freebsd[123]*) objformat=aout ;;
19958    *) objformat=elf ;;
19959    esac
19960  fi
19961  version_type=freebsd-$objformat
19962  case $version_type in
19963    freebsd-elf*)
19964      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19965      need_version=no
19966      need_lib_prefix=no
19967      ;;
19968    freebsd-*)
19969      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19970      need_version=yes
19971      ;;
19972  esac
19973  shlibpath_var=LD_LIBRARY_PATH
19974  case $host_os in
19975  freebsd2*)
19976    shlibpath_overrides_runpath=yes
19977    ;;
19978  freebsd3.[01]* | freebsdelf3.[01]*)
19979    shlibpath_overrides_runpath=yes
19980    hardcode_into_libs=yes
19981    ;;
19982  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19983  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19984    shlibpath_overrides_runpath=no
19985    hardcode_into_libs=yes
19986    ;;
19987  freebsd*) # from 4.6 on
19988    shlibpath_overrides_runpath=yes
19989    hardcode_into_libs=yes
19990    ;;
19991  esac
19992  ;;
19993
19994gnu*)
19995  version_type=linux
19996  need_lib_prefix=no
19997  need_version=no
19998  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19999  soname_spec='${libname}${release}${shared_ext}$major'
20000  shlibpath_var=LD_LIBRARY_PATH
20001  hardcode_into_libs=yes
20002  ;;
20003
20004hpux9* | hpux10* | hpux11*)
20005  # Give a soname corresponding to the major version so that dld.sl refuses to
20006  # link against other versions.
20007  version_type=sunos
20008  need_lib_prefix=no
20009  need_version=no
20010  case $host_cpu in
20011  ia64*)
20012    shrext_cmds='.so'
20013    hardcode_into_libs=yes
20014    dynamic_linker="$host_os dld.so"
20015    shlibpath_var=LD_LIBRARY_PATH
20016    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20017    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20018    soname_spec='${libname}${release}${shared_ext}$major'
20019    if test "X$HPUX_IA64_MODE" = X32; then
20020      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20021    else
20022      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20023    fi
20024    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20025    ;;
20026   hppa*64*)
20027     shrext_cmds='.sl'
20028     hardcode_into_libs=yes
20029     dynamic_linker="$host_os dld.sl"
20030     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20031     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20032     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20033     soname_spec='${libname}${release}${shared_ext}$major'
20034     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20035     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20036     ;;
20037   *)
20038    shrext_cmds='.sl'
20039    dynamic_linker="$host_os dld.sl"
20040    shlibpath_var=SHLIB_PATH
20041    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20042    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20043    soname_spec='${libname}${release}${shared_ext}$major'
20044    ;;
20045  esac
20046  # HP-UX runs *really* slowly unless shared libraries are mode 555.
20047  postinstall_cmds='chmod 555 $lib'
20048  ;;
20049
20050interix3*)
20051  version_type=linux
20052  need_lib_prefix=no
20053  need_version=no
20054  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20055  soname_spec='${libname}${release}${shared_ext}$major'
20056  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20057  shlibpath_var=LD_LIBRARY_PATH
20058  shlibpath_overrides_runpath=no
20059  hardcode_into_libs=yes
20060  ;;
20061
20062irix5* | irix6* | nonstopux*)
20063  case $host_os in
20064    nonstopux*) version_type=nonstopux ;;
20065    *)
20066	if test "$lt_cv_prog_gnu_ld" = yes; then
20067		version_type=linux
20068	else
20069		version_type=irix
20070	fi ;;
20071  esac
20072  need_lib_prefix=no
20073  need_version=no
20074  soname_spec='${libname}${release}${shared_ext}$major'
20075  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20076  case $host_os in
20077  irix5* | nonstopux*)
20078    libsuff= shlibsuff=
20079    ;;
20080  *)
20081    case $LD in # libtool.m4 will add one of these switches to LD
20082    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20083      libsuff= shlibsuff= libmagic=32-bit;;
20084    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20085      libsuff=32 shlibsuff=N32 libmagic=N32;;
20086    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20087      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20088    *) libsuff= shlibsuff= libmagic=never-match;;
20089    esac
20090    ;;
20091  esac
20092  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20093  shlibpath_overrides_runpath=no
20094  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20095  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20096  hardcode_into_libs=yes
20097  ;;
20098
20099# No shared lib support for Linux oldld, aout, or coff.
20100linux*oldld* | linux*aout* | linux*coff*)
20101  dynamic_linker=no
20102  ;;
20103
20104# This must be Linux ELF.
20105linux*)
20106  version_type=linux
20107  need_lib_prefix=no
20108  need_version=no
20109  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20110  soname_spec='${libname}${release}${shared_ext}$major'
20111  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20112  shlibpath_var=LD_LIBRARY_PATH
20113  shlibpath_overrides_runpath=no
20114  # This implies no fast_install, which is unacceptable.
20115  # Some rework will be needed to allow for fast_install
20116  # before this can be enabled.
20117  hardcode_into_libs=yes
20118
20119  # Append ld.so.conf contents to the search path
20120  if test -f /etc/ld.so.conf; then
20121    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' ' '`
20122    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20123  fi
20124
20125  # We used to test for /lib/ld.so.1 and disable shared libraries on
20126  # powerpc, because MkLinux only supported shared libraries with the
20127  # GNU dynamic linker.  Since this was broken with cross compilers,
20128  # most powerpc-linux boxes support dynamic linking these days and
20129  # people can always --disable-shared, the test was removed, and we
20130  # assume the GNU/Linux dynamic linker is in use.
20131  dynamic_linker='GNU/Linux ld.so'
20132  ;;
20133
20134knetbsd*-gnu)
20135  version_type=linux
20136  need_lib_prefix=no
20137  need_version=no
20138  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20139  soname_spec='${libname}${release}${shared_ext}$major'
20140  shlibpath_var=LD_LIBRARY_PATH
20141  shlibpath_overrides_runpath=no
20142  hardcode_into_libs=yes
20143  dynamic_linker='GNU ld.so'
20144  ;;
20145
20146netbsd*)
20147  version_type=sunos
20148  need_lib_prefix=no
20149  need_version=no
20150  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20151    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20152    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20153    dynamic_linker='NetBSD (a.out) ld.so'
20154  else
20155    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20156    soname_spec='${libname}${release}${shared_ext}$major'
20157    dynamic_linker='NetBSD ld.elf_so'
20158  fi
20159  shlibpath_var=LD_LIBRARY_PATH
20160  shlibpath_overrides_runpath=yes
20161  hardcode_into_libs=yes
20162  ;;
20163
20164newsos6)
20165  version_type=linux
20166  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20167  shlibpath_var=LD_LIBRARY_PATH
20168  shlibpath_overrides_runpath=yes
20169  ;;
20170
20171nto-qnx*)
20172  version_type=linux
20173  need_lib_prefix=no
20174  need_version=no
20175  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20176  soname_spec='${libname}${release}${shared_ext}$major'
20177  shlibpath_var=LD_LIBRARY_PATH
20178  shlibpath_overrides_runpath=yes
20179  ;;
20180
20181openbsd*)
20182  version_type=sunos
20183  sys_lib_dlsearch_path_spec="/usr/lib"
20184  need_lib_prefix=no
20185  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20186  case $host_os in
20187    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20188    *)                         need_version=no  ;;
20189  esac
20190  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20191  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20192  shlibpath_var=LD_LIBRARY_PATH
20193  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20194    case $host_os in
20195      openbsd2.[89] | openbsd2.[89].*)
20196	shlibpath_overrides_runpath=no
20197	;;
20198      *)
20199	shlibpath_overrides_runpath=yes
20200	;;
20201      esac
20202  else
20203    shlibpath_overrides_runpath=yes
20204  fi
20205  ;;
20206
20207os2*)
20208  libname_spec='$name'
20209  shrext_cmds=".dll"
20210  need_lib_prefix=no
20211  library_names_spec='$libname${shared_ext} $libname.a'
20212  dynamic_linker='OS/2 ld.exe'
20213  shlibpath_var=LIBPATH
20214  ;;
20215
20216osf3* | osf4* | osf5*)
20217  version_type=osf
20218  need_lib_prefix=no
20219  need_version=no
20220  soname_spec='${libname}${release}${shared_ext}$major'
20221  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20222  shlibpath_var=LD_LIBRARY_PATH
20223  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20224  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20225  ;;
20226
20227solaris*)
20228  version_type=linux
20229  need_lib_prefix=no
20230  need_version=no
20231  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20232  soname_spec='${libname}${release}${shared_ext}$major'
20233  shlibpath_var=LD_LIBRARY_PATH
20234  shlibpath_overrides_runpath=yes
20235  hardcode_into_libs=yes
20236  # ldd complains unless libraries are executable
20237  postinstall_cmds='chmod +x $lib'
20238  ;;
20239
20240sunos4*)
20241  version_type=sunos
20242  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20243  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20244  shlibpath_var=LD_LIBRARY_PATH
20245  shlibpath_overrides_runpath=yes
20246  if test "$with_gnu_ld" = yes; then
20247    need_lib_prefix=no
20248  fi
20249  need_version=yes
20250  ;;
20251
20252sysv4 | sysv4.3*)
20253  version_type=linux
20254  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20255  soname_spec='${libname}${release}${shared_ext}$major'
20256  shlibpath_var=LD_LIBRARY_PATH
20257  case $host_vendor in
20258    sni)
20259      shlibpath_overrides_runpath=no
20260      need_lib_prefix=no
20261      export_dynamic_flag_spec='${wl}-Blargedynsym'
20262      runpath_var=LD_RUN_PATH
20263      ;;
20264    siemens)
20265      need_lib_prefix=no
20266      ;;
20267    motorola)
20268      need_lib_prefix=no
20269      need_version=no
20270      shlibpath_overrides_runpath=no
20271      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20272      ;;
20273  esac
20274  ;;
20275
20276sysv4*MP*)
20277  if test -d /usr/nec ;then
20278    version_type=linux
20279    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20280    soname_spec='$libname${shared_ext}.$major'
20281    shlibpath_var=LD_LIBRARY_PATH
20282  fi
20283  ;;
20284
20285sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20286  version_type=freebsd-elf
20287  need_lib_prefix=no
20288  need_version=no
20289  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20290  soname_spec='${libname}${release}${shared_ext}$major'
20291  shlibpath_var=LD_LIBRARY_PATH
20292  hardcode_into_libs=yes
20293  if test "$with_gnu_ld" = yes; then
20294    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20295    shlibpath_overrides_runpath=no
20296  else
20297    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20298    shlibpath_overrides_runpath=yes
20299    case $host_os in
20300      sco3.2v5*)
20301        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20302	;;
20303    esac
20304  fi
20305  sys_lib_dlsearch_path_spec='/usr/lib'
20306  ;;
20307
20308uts4*)
20309  version_type=linux
20310  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20311  soname_spec='${libname}${release}${shared_ext}$major'
20312  shlibpath_var=LD_LIBRARY_PATH
20313  ;;
20314
20315*)
20316  dynamic_linker=no
20317  ;;
20318esac
20319{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20320echo "${ECHO_T}$dynamic_linker" >&6; }
20321test "$dynamic_linker" = no && can_build_shared=no
20322
20323variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20324if test "$GCC" = yes; then
20325  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20326fi
20327
20328{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20329echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20330hardcode_action_CXX=
20331if test -n "$hardcode_libdir_flag_spec_CXX" || \
20332   test -n "$runpath_var_CXX" || \
20333   test "X$hardcode_automatic_CXX" = "Xyes" ; then
20334
20335  # We can hardcode non-existant directories.
20336  if test "$hardcode_direct_CXX" != no &&
20337     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20338     # have to relink, otherwise we might link with an installed library
20339     # when we should be linking with a yet-to-be-installed one
20340     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20341     test "$hardcode_minus_L_CXX" != no; then
20342    # Linking always hardcodes the temporary library directory.
20343    hardcode_action_CXX=relink
20344  else
20345    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20346    hardcode_action_CXX=immediate
20347  fi
20348else
20349  # We cannot hardcode anything, or else we can only hardcode existing
20350  # directories.
20351  hardcode_action_CXX=unsupported
20352fi
20353{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20354echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20355
20356if test "$hardcode_action_CXX" = relink; then
20357  # Fast installation is not supported
20358  enable_fast_install=no
20359elif test "$shlibpath_overrides_runpath" = yes ||
20360     test "$enable_shared" = no; then
20361  # Fast installation is not necessary
20362  enable_fast_install=needless
20363fi
20364
20365
20366# The else clause should only fire when bootstrapping the
20367# libtool distribution, otherwise you forgot to ship ltmain.sh
20368# with your package, and you will get complaints that there are
20369# no rules to generate ltmain.sh.
20370if test -f "$ltmain"; then
20371  # See if we are running on zsh, and set the options which allow our commands through
20372  # without removal of \ escapes.
20373  if test -n "${ZSH_VERSION+set}" ; then
20374    setopt NO_GLOB_SUBST
20375  fi
20376  # Now quote all the things that may contain metacharacters while being
20377  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20378  # variables and quote the copies for generation of the libtool script.
20379  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20380    SED SHELL STRIP \
20381    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20382    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20383    deplibs_check_method reload_flag reload_cmds need_locks \
20384    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20385    lt_cv_sys_global_symbol_to_c_name_address \
20386    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20387    old_postinstall_cmds old_postuninstall_cmds \
20388    compiler_CXX \
20389    CC_CXX \
20390    LD_CXX \
20391    lt_prog_compiler_wl_CXX \
20392    lt_prog_compiler_pic_CXX \
20393    lt_prog_compiler_static_CXX \
20394    lt_prog_compiler_no_builtin_flag_CXX \
20395    export_dynamic_flag_spec_CXX \
20396    thread_safe_flag_spec_CXX \
20397    whole_archive_flag_spec_CXX \
20398    enable_shared_with_static_runtimes_CXX \
20399    old_archive_cmds_CXX \
20400    old_archive_from_new_cmds_CXX \
20401    predep_objects_CXX \
20402    postdep_objects_CXX \
20403    predeps_CXX \
20404    postdeps_CXX \
20405    compiler_lib_search_path_CXX \
20406    archive_cmds_CXX \
20407    archive_expsym_cmds_CXX \
20408    postinstall_cmds_CXX \
20409    postuninstall_cmds_CXX \
20410    old_archive_from_expsyms_cmds_CXX \
20411    allow_undefined_flag_CXX \
20412    no_undefined_flag_CXX \
20413    export_symbols_cmds_CXX \
20414    hardcode_libdir_flag_spec_CXX \
20415    hardcode_libdir_flag_spec_ld_CXX \
20416    hardcode_libdir_separator_CXX \
20417    hardcode_automatic_CXX \
20418    module_cmds_CXX \
20419    module_expsym_cmds_CXX \
20420    lt_cv_prog_compiler_c_o_CXX \
20421    exclude_expsyms_CXX \
20422    include_expsyms_CXX; do
20423
20424    case $var in
20425    old_archive_cmds_CXX | \
20426    old_archive_from_new_cmds_CXX | \
20427    archive_cmds_CXX | \
20428    archive_expsym_cmds_CXX | \
20429    module_cmds_CXX | \
20430    module_expsym_cmds_CXX | \
20431    old_archive_from_expsyms_cmds_CXX | \
20432    export_symbols_cmds_CXX | \
20433    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20434    postinstall_cmds | postuninstall_cmds | \
20435    old_postinstall_cmds | old_postuninstall_cmds | \
20436    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20437      # Double-quote double-evaled strings.
20438      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20439      ;;
20440    *)
20441      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20442      ;;
20443    esac
20444  done
20445
20446  case $lt_echo in
20447  *'\$0 --fallback-echo"')
20448    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20449    ;;
20450  esac
20451
20452cfgfile="$ofile"
20453
20454  cat <<__EOF__ >> "$cfgfile"
20455# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20456
20457# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20458
20459# Shell to use when invoking shell scripts.
20460SHELL=$lt_SHELL
20461
20462# Whether or not to build shared libraries.
20463build_libtool_libs=$enable_shared
20464
20465# Whether or not to build static libraries.
20466build_old_libs=$enable_static
20467
20468# Whether or not to add -lc for building shared libraries.
20469build_libtool_need_lc=$archive_cmds_need_lc_CXX
20470
20471# Whether or not to disallow shared libs when runtime libs are static
20472allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20473
20474# Whether or not to optimize for fast installation.
20475fast_install=$enable_fast_install
20476
20477# The host system.
20478host_alias=$host_alias
20479host=$host
20480host_os=$host_os
20481
20482# The build system.
20483build_alias=$build_alias
20484build=$build
20485build_os=$build_os
20486
20487# An echo program that does not interpret backslashes.
20488echo=$lt_echo
20489
20490# The archiver.
20491AR=$lt_AR
20492AR_FLAGS=$lt_AR_FLAGS
20493
20494# A C compiler.
20495LTCC=$lt_LTCC
20496
20497# LTCC compiler flags.
20498LTCFLAGS=$lt_LTCFLAGS
20499
20500# A language-specific compiler.
20501CC=$lt_compiler_CXX
20502
20503# Is the compiler the GNU C compiler?
20504with_gcc=$GCC_CXX
20505
20506# An ERE matcher.
20507EGREP=$lt_EGREP
20508
20509# The linker used to build libraries.
20510LD=$lt_LD_CXX
20511
20512# Whether we need hard or soft links.
20513LN_S=$lt_LN_S
20514
20515# A BSD-compatible nm program.
20516NM=$lt_NM
20517
20518# A symbol stripping program
20519STRIP=$lt_STRIP
20520
20521# Used to examine libraries when file_magic_cmd begins "file"
20522MAGIC_CMD=$MAGIC_CMD
20523
20524# Used on cygwin: DLL creation program.
20525DLLTOOL="$DLLTOOL"
20526
20527# Used on cygwin: object dumper.
20528OBJDUMP="$OBJDUMP"
20529
20530# Used on cygwin: assembler.
20531AS="$AS"
20532
20533# The name of the directory that contains temporary libtool files.
20534objdir=$objdir
20535
20536# How to create reloadable object files.
20537reload_flag=$lt_reload_flag
20538reload_cmds=$lt_reload_cmds
20539
20540# How to pass a linker flag through the compiler.
20541wl=$lt_lt_prog_compiler_wl_CXX
20542
20543# Object file suffix (normally "o").
20544objext="$ac_objext"
20545
20546# Old archive suffix (normally "a").
20547libext="$libext"
20548
20549# Shared library suffix (normally ".so").
20550shrext_cmds='$shrext_cmds'
20551
20552# Executable file suffix (normally "").
20553exeext="$exeext"
20554
20555# Additional compiler flags for building library objects.
20556pic_flag=$lt_lt_prog_compiler_pic_CXX
20557pic_mode=$pic_mode
20558
20559# What is the maximum length of a command?
20560max_cmd_len=$lt_cv_sys_max_cmd_len
20561
20562# Does compiler simultaneously support -c and -o options?
20563compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20564
20565# Must we lock files when doing compilation?
20566need_locks=$lt_need_locks
20567
20568# Do we need the lib prefix for modules?
20569need_lib_prefix=$need_lib_prefix
20570
20571# Do we need a version for libraries?
20572need_version=$need_version
20573
20574# Whether dlopen is supported.
20575dlopen_support=$enable_dlopen
20576
20577# Whether dlopen of programs is supported.
20578dlopen_self=$enable_dlopen_self
20579
20580# Whether dlopen of statically linked programs is supported.
20581dlopen_self_static=$enable_dlopen_self_static
20582
20583# Compiler flag to prevent dynamic linking.
20584link_static_flag=$lt_lt_prog_compiler_static_CXX
20585
20586# Compiler flag to turn off builtin functions.
20587no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20588
20589# Compiler flag to allow reflexive dlopens.
20590export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20591
20592# Compiler flag to generate shared objects directly from archives.
20593whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20594
20595# Compiler flag to generate thread-safe objects.
20596thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20597
20598# Library versioning type.
20599version_type=$version_type
20600
20601# Format of library name prefix.
20602libname_spec=$lt_libname_spec
20603
20604# List of archive names.  First name is the real one, the rest are links.
20605# The last name is the one that the linker finds with -lNAME.
20606library_names_spec=$lt_library_names_spec
20607
20608# The coded name of the library, if different from the real name.
20609soname_spec=$lt_soname_spec
20610
20611# Commands used to build and install an old-style archive.
20612RANLIB=$lt_RANLIB
20613old_archive_cmds=$lt_old_archive_cmds_CXX
20614old_postinstall_cmds=$lt_old_postinstall_cmds
20615old_postuninstall_cmds=$lt_old_postuninstall_cmds
20616
20617# Create an old-style archive from a shared archive.
20618old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20619
20620# Create a temporary old-style archive to link instead of a shared archive.
20621old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20622
20623# Commands used to build and install a shared archive.
20624archive_cmds=$lt_archive_cmds_CXX
20625archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20626postinstall_cmds=$lt_postinstall_cmds
20627postuninstall_cmds=$lt_postuninstall_cmds
20628
20629# Commands used to build a loadable module (assumed same as above if empty)
20630module_cmds=$lt_module_cmds_CXX
20631module_expsym_cmds=$lt_module_expsym_cmds_CXX
20632
20633# Commands to strip libraries.
20634old_striplib=$lt_old_striplib
20635striplib=$lt_striplib
20636
20637# Dependencies to place before the objects being linked to create a
20638# shared library.
20639predep_objects=$lt_predep_objects_CXX
20640
20641# Dependencies to place after the objects being linked to create a
20642# shared library.
20643postdep_objects=$lt_postdep_objects_CXX
20644
20645# Dependencies to place before the objects being linked to create a
20646# shared library.
20647predeps=$lt_predeps_CXX
20648
20649# Dependencies to place after the objects being linked to create a
20650# shared library.
20651postdeps=$lt_postdeps_CXX
20652
20653# The library search path used internally by the compiler when linking
20654# a shared library.
20655compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20656
20657# Method to check whether dependent libraries are shared objects.
20658deplibs_check_method=$lt_deplibs_check_method
20659
20660# Command to use when deplibs_check_method == file_magic.
20661file_magic_cmd=$lt_file_magic_cmd
20662
20663# Flag that allows shared libraries with undefined symbols to be built.
20664allow_undefined_flag=$lt_allow_undefined_flag_CXX
20665
20666# Flag that forces no undefined symbols.
20667no_undefined_flag=$lt_no_undefined_flag_CXX
20668
20669# Commands used to finish a libtool library installation in a directory.
20670finish_cmds=$lt_finish_cmds
20671
20672# Same as above, but a single script fragment to be evaled but not shown.
20673finish_eval=$lt_finish_eval
20674
20675# Take the output of nm and produce a listing of raw symbols and C names.
20676global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20677
20678# Transform the output of nm in a proper C declaration
20679global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20680
20681# Transform the output of nm in a C name address pair
20682global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20683
20684# This is the shared library runtime path variable.
20685runpath_var=$runpath_var
20686
20687# This is the shared library path variable.
20688shlibpath_var=$shlibpath_var
20689
20690# Is shlibpath searched before the hard-coded library search path?
20691shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20692
20693# How to hardcode a shared library path into an executable.
20694hardcode_action=$hardcode_action_CXX
20695
20696# Whether we should hardcode library paths into libraries.
20697hardcode_into_libs=$hardcode_into_libs
20698
20699# Flag to hardcode \$libdir into a binary during linking.
20700# This must work even if \$libdir does not exist.
20701hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20702
20703# If ld is used when linking, flag to hardcode \$libdir into
20704# a binary during linking. This must work even if \$libdir does
20705# not exist.
20706hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20707
20708# Whether we need a single -rpath flag with a separated argument.
20709hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20710
20711# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20712# resulting binary.
20713hardcode_direct=$hardcode_direct_CXX
20714
20715# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20716# resulting binary.
20717hardcode_minus_L=$hardcode_minus_L_CXX
20718
20719# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20720# the resulting binary.
20721hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20722
20723# Set to yes if building a shared library automatically hardcodes DIR into the library
20724# and all subsequent libraries and executables linked against it.
20725hardcode_automatic=$hardcode_automatic_CXX
20726
20727# Variables whose values should be saved in libtool wrapper scripts and
20728# restored at relink time.
20729variables_saved_for_relink="$variables_saved_for_relink"
20730
20731# Whether libtool must link a program against all its dependency libraries.
20732link_all_deplibs=$link_all_deplibs_CXX
20733
20734# Compile-time system search path for libraries
20735sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20736
20737# Run-time system search path for libraries
20738sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20739
20740# Fix the shell variable \$srcfile for the compiler.
20741fix_srcfile_path="$fix_srcfile_path_CXX"
20742
20743# Set to yes if exported symbols are required.
20744always_export_symbols=$always_export_symbols_CXX
20745
20746# The commands to list exported symbols.
20747export_symbols_cmds=$lt_export_symbols_cmds_CXX
20748
20749# The commands to extract the exported symbol list from a shared archive.
20750extract_expsyms_cmds=$lt_extract_expsyms_cmds
20751
20752# Symbols that should not be listed in the preloaded symbols.
20753exclude_expsyms=$lt_exclude_expsyms_CXX
20754
20755# Symbols that must always be exported.
20756include_expsyms=$lt_include_expsyms_CXX
20757
20758# ### END LIBTOOL TAG CONFIG: $tagname
20759
20760__EOF__
20761
20762
20763else
20764  # If there is no Makefile yet, we rely on a make rule to execute
20765  # `config.status --recheck' to rerun these tests and create the
20766  # libtool script then.
20767  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20768  if test -f "$ltmain_in"; then
20769    test -f Makefile && make "$ltmain"
20770  fi
20771fi
20772
20773
20774ac_ext=c
20775ac_cpp='$CPP $CPPFLAGS'
20776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20778ac_compiler_gnu=$ac_cv_c_compiler_gnu
20779
20780CC=$lt_save_CC
20781LDCXX=$LD
20782LD=$lt_save_LD
20783GCC=$lt_save_GCC
20784with_gnu_ldcxx=$with_gnu_ld
20785with_gnu_ld=$lt_save_with_gnu_ld
20786lt_cv_path_LDCXX=$lt_cv_path_LD
20787lt_cv_path_LD=$lt_save_path_LD
20788lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20789lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20790
20791	else
20792	  tagname=""
20793	fi
20794	;;
20795
20796      F77)
20797	if test -n "$F77" && test "X$F77" != "Xno"; then
20798
20799ac_ext=f
20800ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20801ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20802ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20803
20804
20805archive_cmds_need_lc_F77=no
20806allow_undefined_flag_F77=
20807always_export_symbols_F77=no
20808archive_expsym_cmds_F77=
20809export_dynamic_flag_spec_F77=
20810hardcode_direct_F77=no
20811hardcode_libdir_flag_spec_F77=
20812hardcode_libdir_flag_spec_ld_F77=
20813hardcode_libdir_separator_F77=
20814hardcode_minus_L_F77=no
20815hardcode_automatic_F77=no
20816module_cmds_F77=
20817module_expsym_cmds_F77=
20818link_all_deplibs_F77=unknown
20819old_archive_cmds_F77=$old_archive_cmds
20820no_undefined_flag_F77=
20821whole_archive_flag_spec_F77=
20822enable_shared_with_static_runtimes_F77=no
20823
20824# Source file extension for f77 test sources.
20825ac_ext=f
20826
20827# Object file extension for compiled f77 test sources.
20828objext=o
20829objext_F77=$objext
20830
20831# Code to be used in simple compile tests
20832lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
20833
20834# Code to be used in simple link tests
20835lt_simple_link_test_code="      program t\n      end\n"
20836
20837# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20838
20839# If no C compiler was specified, use CC.
20840LTCC=${LTCC-"$CC"}
20841
20842# If no C compiler flags were specified, use CFLAGS.
20843LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20844
20845# Allow CC to be a program name with arguments.
20846compiler=$CC
20847
20848
20849# save warnings/boilerplate of simple test code
20850ac_outfile=conftest.$ac_objext
20851printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20852eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20853_lt_compiler_boilerplate=`cat conftest.err`
20854$rm conftest*
20855
20856ac_outfile=conftest.$ac_objext
20857printf "$lt_simple_link_test_code" >conftest.$ac_ext
20858eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20859_lt_linker_boilerplate=`cat conftest.err`
20860$rm conftest*
20861
20862
20863# Allow CC to be a program name with arguments.
20864lt_save_CC="$CC"
20865CC=${F77-"f77"}
20866compiler=$CC
20867compiler_F77=$CC
20868for cc_temp in $compiler""; do
20869  case $cc_temp in
20870    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20871    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20872    \-*) ;;
20873    *) break;;
20874  esac
20875done
20876cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20877
20878
20879{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20880echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20881{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
20882echo "${ECHO_T}$can_build_shared" >&6; }
20883
20884{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20885echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20886test "$can_build_shared" = "no" && enable_shared=no
20887
20888# On AIX, shared libraries and static libraries use the same namespace, and
20889# are all built from PIC.
20890case $host_os in
20891aix3*)
20892  test "$enable_shared" = yes && enable_static=no
20893  if test -n "$RANLIB"; then
20894    archive_cmds="$archive_cmds~\$RANLIB \$lib"
20895    postinstall_cmds='$RANLIB $lib'
20896  fi
20897  ;;
20898aix4* | aix5*)
20899  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20900    test "$enable_shared" = yes && enable_static=no
20901  fi
20902  ;;
20903esac
20904{ echo "$as_me:$LINENO: result: $enable_shared" >&5
20905echo "${ECHO_T}$enable_shared" >&6; }
20906
20907{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20908echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20909# Make sure either enable_shared or enable_static is yes.
20910test "$enable_shared" = yes || enable_static=yes
20911{ echo "$as_me:$LINENO: result: $enable_static" >&5
20912echo "${ECHO_T}$enable_static" >&6; }
20913
20914GCC_F77="$G77"
20915LD_F77="$LD"
20916
20917lt_prog_compiler_wl_F77=
20918lt_prog_compiler_pic_F77=
20919lt_prog_compiler_static_F77=
20920
20921{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20922echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20923
20924  if test "$GCC" = yes; then
20925    lt_prog_compiler_wl_F77='-Wl,'
20926    lt_prog_compiler_static_F77='-static'
20927
20928    case $host_os in
20929      aix*)
20930      # All AIX code is PIC.
20931      if test "$host_cpu" = ia64; then
20932	# AIX 5 now supports IA64 processor
20933	lt_prog_compiler_static_F77='-Bstatic'
20934      fi
20935      ;;
20936
20937    amigaos*)
20938      # FIXME: we need at least 68020 code to build shared libraries, but
20939      # adding the `-m68020' flag to GCC prevents building anything better,
20940      # like `-m68040'.
20941      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20942      ;;
20943
20944    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20945      # PIC is the default for these OSes.
20946      ;;
20947
20948    mingw* | pw32* | os2*)
20949      # This hack is so that the source file can tell whether it is being
20950      # built for inclusion in a dll (and should export symbols for example).
20951      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20952      ;;
20953
20954    darwin* | rhapsody*)
20955      # PIC is the default on this platform
20956      # Common symbols not allowed in MH_DYLIB files
20957      lt_prog_compiler_pic_F77='-fno-common'
20958      ;;
20959
20960    interix3*)
20961      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20962      # Instead, we relocate shared libraries at runtime.
20963      ;;
20964
20965    msdosdjgpp*)
20966      # Just because we use GCC doesn't mean we suddenly get shared libraries
20967      # on systems that don't support them.
20968      lt_prog_compiler_can_build_shared_F77=no
20969      enable_shared=no
20970      ;;
20971
20972    sysv4*MP*)
20973      if test -d /usr/nec; then
20974	lt_prog_compiler_pic_F77=-Kconform_pic
20975      fi
20976      ;;
20977
20978    hpux*)
20979      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20980      # not for PA HP-UX.
20981      case $host_cpu in
20982      hppa*64*|ia64*)
20983	# +Z the default
20984	;;
20985      *)
20986	lt_prog_compiler_pic_F77='-fPIC'
20987	;;
20988      esac
20989      ;;
20990
20991    *)
20992      lt_prog_compiler_pic_F77='-fPIC'
20993      ;;
20994    esac
20995  else
20996    # PORTME Check for flag to pass linker flags through the system compiler.
20997    case $host_os in
20998    aix*)
20999      lt_prog_compiler_wl_F77='-Wl,'
21000      if test "$host_cpu" = ia64; then
21001	# AIX 5 now supports IA64 processor
21002	lt_prog_compiler_static_F77='-Bstatic'
21003      else
21004	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21005      fi
21006      ;;
21007      darwin*)
21008        # PIC is the default on this platform
21009        # Common symbols not allowed in MH_DYLIB files
21010       case $cc_basename in
21011         xlc*)
21012         lt_prog_compiler_pic_F77='-qnocommon'
21013         lt_prog_compiler_wl_F77='-Wl,'
21014         ;;
21015       esac
21016       ;;
21017
21018    mingw* | pw32* | os2*)
21019      # This hack is so that the source file can tell whether it is being
21020      # built for inclusion in a dll (and should export symbols for example).
21021      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21022      ;;
21023
21024    hpux9* | hpux10* | hpux11*)
21025      lt_prog_compiler_wl_F77='-Wl,'
21026      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21027      # not for PA HP-UX.
21028      case $host_cpu in
21029      hppa*64*|ia64*)
21030	# +Z the default
21031	;;
21032      *)
21033	lt_prog_compiler_pic_F77='+Z'
21034	;;
21035      esac
21036      # Is there a better lt_prog_compiler_static that works with the bundled CC?
21037      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21038      ;;
21039
21040    irix5* | irix6* | nonstopux*)
21041      lt_prog_compiler_wl_F77='-Wl,'
21042      # PIC (with -KPIC) is the default.
21043      lt_prog_compiler_static_F77='-non_shared'
21044      ;;
21045
21046    newsos6)
21047      lt_prog_compiler_pic_F77='-KPIC'
21048      lt_prog_compiler_static_F77='-Bstatic'
21049      ;;
21050
21051    linux*)
21052      case $cc_basename in
21053      icc* | ecc*)
21054	lt_prog_compiler_wl_F77='-Wl,'
21055	lt_prog_compiler_pic_F77='-KPIC'
21056	lt_prog_compiler_static_F77='-static'
21057        ;;
21058      pgcc* | pgf77* | pgf90* | pgf95*)
21059        # Portland Group compilers (*not* the Pentium gcc compiler,
21060	# which looks to be a dead project)
21061	lt_prog_compiler_wl_F77='-Wl,'
21062	lt_prog_compiler_pic_F77='-fpic'
21063	lt_prog_compiler_static_F77='-Bstatic'
21064        ;;
21065      ccc*)
21066        lt_prog_compiler_wl_F77='-Wl,'
21067        # All Alpha code is PIC.
21068        lt_prog_compiler_static_F77='-non_shared'
21069        ;;
21070      esac
21071      ;;
21072
21073    osf3* | osf4* | osf5*)
21074      lt_prog_compiler_wl_F77='-Wl,'
21075      # All OSF/1 code is PIC.
21076      lt_prog_compiler_static_F77='-non_shared'
21077      ;;
21078
21079    solaris*)
21080      lt_prog_compiler_pic_F77='-KPIC'
21081      lt_prog_compiler_static_F77='-Bstatic'
21082      case $cc_basename in
21083      f77* | f90* | f95*)
21084	lt_prog_compiler_wl_F77='-Qoption ld ';;
21085      *)
21086	lt_prog_compiler_wl_F77='-Wl,';;
21087      esac
21088      ;;
21089
21090    sunos4*)
21091      lt_prog_compiler_wl_F77='-Qoption ld '
21092      lt_prog_compiler_pic_F77='-PIC'
21093      lt_prog_compiler_static_F77='-Bstatic'
21094      ;;
21095
21096    sysv4 | sysv4.2uw2* | sysv4.3*)
21097      lt_prog_compiler_wl_F77='-Wl,'
21098      lt_prog_compiler_pic_F77='-KPIC'
21099      lt_prog_compiler_static_F77='-Bstatic'
21100      ;;
21101
21102    sysv4*MP*)
21103      if test -d /usr/nec ;then
21104	lt_prog_compiler_pic_F77='-Kconform_pic'
21105	lt_prog_compiler_static_F77='-Bstatic'
21106      fi
21107      ;;
21108
21109    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21110      lt_prog_compiler_wl_F77='-Wl,'
21111      lt_prog_compiler_pic_F77='-KPIC'
21112      lt_prog_compiler_static_F77='-Bstatic'
21113      ;;
21114
21115    unicos*)
21116      lt_prog_compiler_wl_F77='-Wl,'
21117      lt_prog_compiler_can_build_shared_F77=no
21118      ;;
21119
21120    uts4*)
21121      lt_prog_compiler_pic_F77='-pic'
21122      lt_prog_compiler_static_F77='-Bstatic'
21123      ;;
21124
21125    *)
21126      lt_prog_compiler_can_build_shared_F77=no
21127      ;;
21128    esac
21129  fi
21130
21131{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21132echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21133
21134#
21135# Check to make sure the PIC flag actually works.
21136#
21137if test -n "$lt_prog_compiler_pic_F77"; then
21138
21139{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21140echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21141if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21142  echo $ECHO_N "(cached) $ECHO_C" >&6
21143else
21144  lt_prog_compiler_pic_works_F77=no
21145  ac_outfile=conftest.$ac_objext
21146   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21147   lt_compiler_flag="$lt_prog_compiler_pic_F77"
21148   # Insert the option either (1) after the last *FLAGS variable, or
21149   # (2) before a word containing "conftest.", or (3) at the end.
21150   # Note that $ac_compile itself does not contain backslashes and begins
21151   # with a dollar sign (not a hyphen), so the echo should work correctly.
21152   # The option is referenced via a variable to avoid confusing sed.
21153   lt_compile=`echo "$ac_compile" | $SED \
21154   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21155   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21156   -e 's:$: $lt_compiler_flag:'`
21157   (eval echo "\"\$as_me:21157: $lt_compile\"" >&5)
21158   (eval "$lt_compile" 2>conftest.err)
21159   ac_status=$?
21160   cat conftest.err >&5
21161   echo "$as_me:21161: \$? = $ac_status" >&5
21162   if (exit $ac_status) && test -s "$ac_outfile"; then
21163     # The compiler can only warn and ignore the option if not recognized
21164     # So say no if there are warnings other than the usual output.
21165     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21166     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21167     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21168       lt_prog_compiler_pic_works_F77=yes
21169     fi
21170   fi
21171   $rm conftest*
21172
21173fi
21174{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21175echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21176
21177if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21178    case $lt_prog_compiler_pic_F77 in
21179     "" | " "*) ;;
21180     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21181     esac
21182else
21183    lt_prog_compiler_pic_F77=
21184     lt_prog_compiler_can_build_shared_F77=no
21185fi
21186
21187fi
21188case $host_os in
21189  # For platforms which do not support PIC, -DPIC is meaningless:
21190  *djgpp*)
21191    lt_prog_compiler_pic_F77=
21192    ;;
21193  *)
21194    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21195    ;;
21196esac
21197
21198#
21199# Check to make sure the static flag actually works.
21200#
21201wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21202{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21203echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21204if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21205  echo $ECHO_N "(cached) $ECHO_C" >&6
21206else
21207  lt_prog_compiler_static_works_F77=no
21208   save_LDFLAGS="$LDFLAGS"
21209   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21210   printf "$lt_simple_link_test_code" > conftest.$ac_ext
21211   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21212     # The linker can only warn and ignore the option if not recognized
21213     # So say no if there are warnings
21214     if test -s conftest.err; then
21215       # Append any errors to the config.log.
21216       cat conftest.err 1>&5
21217       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21218       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21219       if diff conftest.exp conftest.er2 >/dev/null; then
21220         lt_prog_compiler_static_works_F77=yes
21221       fi
21222     else
21223       lt_prog_compiler_static_works_F77=yes
21224     fi
21225   fi
21226   $rm conftest*
21227   LDFLAGS="$save_LDFLAGS"
21228
21229fi
21230{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21231echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21232
21233if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21234    :
21235else
21236    lt_prog_compiler_static_F77=
21237fi
21238
21239
21240{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21241echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21242if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21243  echo $ECHO_N "(cached) $ECHO_C" >&6
21244else
21245  lt_cv_prog_compiler_c_o_F77=no
21246   $rm -r conftest 2>/dev/null
21247   mkdir conftest
21248   cd conftest
21249   mkdir out
21250   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21251
21252   lt_compiler_flag="-o out/conftest2.$ac_objext"
21253   # Insert the option either (1) after the last *FLAGS variable, or
21254   # (2) before a word containing "conftest.", or (3) at the end.
21255   # Note that $ac_compile itself does not contain backslashes and begins
21256   # with a dollar sign (not a hyphen), so the echo should work correctly.
21257   lt_compile=`echo "$ac_compile" | $SED \
21258   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21259   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21260   -e 's:$: $lt_compiler_flag:'`
21261   (eval echo "\"\$as_me:21261: $lt_compile\"" >&5)
21262   (eval "$lt_compile" 2>out/conftest.err)
21263   ac_status=$?
21264   cat out/conftest.err >&5
21265   echo "$as_me:21265: \$? = $ac_status" >&5
21266   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21267   then
21268     # The compiler can only warn and ignore the option if not recognized
21269     # So say no if there are warnings
21270     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21271     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21272     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21273       lt_cv_prog_compiler_c_o_F77=yes
21274     fi
21275   fi
21276   chmod u+w . 2>&5
21277   $rm conftest*
21278   # SGI C++ compiler will create directory out/ii_files/ for
21279   # template instantiation
21280   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21281   $rm out/* && rmdir out
21282   cd ..
21283   rmdir conftest
21284   $rm conftest*
21285
21286fi
21287{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21288echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21289
21290
21291hard_links="nottested"
21292if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21293  # do not overwrite the value of need_locks provided by the user
21294  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21295echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21296  hard_links=yes
21297  $rm conftest*
21298  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21299  touch conftest.a
21300  ln conftest.a conftest.b 2>&5 || hard_links=no
21301  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21302  { echo "$as_me:$LINENO: result: $hard_links" >&5
21303echo "${ECHO_T}$hard_links" >&6; }
21304  if test "$hard_links" = no; then
21305    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21306echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21307    need_locks=warn
21308  fi
21309else
21310  need_locks=no
21311fi
21312
21313{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21314echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21315
21316  runpath_var=
21317  allow_undefined_flag_F77=
21318  enable_shared_with_static_runtimes_F77=no
21319  archive_cmds_F77=
21320  archive_expsym_cmds_F77=
21321  old_archive_From_new_cmds_F77=
21322  old_archive_from_expsyms_cmds_F77=
21323  export_dynamic_flag_spec_F77=
21324  whole_archive_flag_spec_F77=
21325  thread_safe_flag_spec_F77=
21326  hardcode_libdir_flag_spec_F77=
21327  hardcode_libdir_flag_spec_ld_F77=
21328  hardcode_libdir_separator_F77=
21329  hardcode_direct_F77=no
21330  hardcode_minus_L_F77=no
21331  hardcode_shlibpath_var_F77=unsupported
21332  link_all_deplibs_F77=unknown
21333  hardcode_automatic_F77=no
21334  module_cmds_F77=
21335  module_expsym_cmds_F77=
21336  always_export_symbols_F77=no
21337  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21338  # include_expsyms should be a list of space-separated symbols to be *always*
21339  # included in the symbol list
21340  include_expsyms_F77=
21341  # exclude_expsyms can be an extended regexp of symbols to exclude
21342  # it will be wrapped by ` (' and `)$', so one must not match beginning or
21343  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21344  # as well as any symbol that contains `d'.
21345  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21346  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21347  # platforms (ab)use it in PIC code, but their linkers get confused if
21348  # the symbol is explicitly referenced.  Since portable code cannot
21349  # rely on this symbol name, it's probably fine to never include it in
21350  # preloaded symbol tables.
21351  extract_expsyms_cmds=
21352  # Just being paranoid about ensuring that cc_basename is set.
21353  for cc_temp in $compiler""; do
21354  case $cc_temp in
21355    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21356    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21357    \-*) ;;
21358    *) break;;
21359  esac
21360done
21361cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21362
21363  case $host_os in
21364  cygwin* | mingw* | pw32*)
21365    # FIXME: the MSVC++ port hasn't been tested in a loooong time
21366    # When not using gcc, we currently assume that we are using
21367    # Microsoft Visual C++.
21368    if test "$GCC" != yes; then
21369      with_gnu_ld=no
21370    fi
21371    ;;
21372  interix*)
21373    # we just hope/assume this is gcc and not c89 (= MSVC++)
21374    with_gnu_ld=yes
21375    ;;
21376  openbsd*)
21377    with_gnu_ld=no
21378    ;;
21379  esac
21380
21381  ld_shlibs_F77=yes
21382  if test "$with_gnu_ld" = yes; then
21383    # If archive_cmds runs LD, not CC, wlarc should be empty
21384    wlarc='${wl}'
21385
21386    # Set some defaults for GNU ld with shared library support. These
21387    # are reset later if shared libraries are not supported. Putting them
21388    # here allows them to be overridden if necessary.
21389    runpath_var=LD_RUN_PATH
21390    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21391    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21392    # ancient GNU ld didn't support --whole-archive et. al.
21393    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21394	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21395      else
21396  	whole_archive_flag_spec_F77=
21397    fi
21398    supports_anon_versioning=no
21399    case `$LD -v 2>/dev/null` in
21400      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21401      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21402      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21403      *\ 2.11.*) ;; # other 2.11 versions
21404      *) supports_anon_versioning=yes ;;
21405    esac
21406
21407    # See if GNU ld supports shared libraries.
21408    case $host_os in
21409    aix3* | aix4* | aix5*)
21410      # On AIX/PPC, the GNU linker is very broken
21411      if test "$host_cpu" != ia64; then
21412	ld_shlibs_F77=no
21413	cat <<EOF 1>&2
21414
21415*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21416*** to be unable to reliably create shared libraries on AIX.
21417*** Therefore, libtool is disabling shared libraries support.  If you
21418*** really care for shared libraries, you may want to modify your PATH
21419*** so that a non-GNU linker is found, and then restart.
21420
21421EOF
21422      fi
21423      ;;
21424
21425    amigaos*)
21426      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)'
21427      hardcode_libdir_flag_spec_F77='-L$libdir'
21428      hardcode_minus_L_F77=yes
21429
21430      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21431      # that the semantics of dynamic libraries on AmigaOS, at least up
21432      # to version 4, is to share data among multiple programs linked
21433      # with the same dynamic library.  Since this doesn't match the
21434      # behavior of shared libraries on other platforms, we can't use
21435      # them.
21436      ld_shlibs_F77=no
21437      ;;
21438
21439    beos*)
21440      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21441	allow_undefined_flag_F77=unsupported
21442	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21443	# support --undefined.  This deserves some investigation.  FIXME
21444	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21445      else
21446	ld_shlibs_F77=no
21447      fi
21448      ;;
21449
21450    cygwin* | mingw* | pw32*)
21451      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21452      # as there is no search path for DLLs.
21453      hardcode_libdir_flag_spec_F77='-L$libdir'
21454      allow_undefined_flag_F77=unsupported
21455      always_export_symbols_F77=no
21456      enable_shared_with_static_runtimes_F77=yes
21457      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21458
21459      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21460        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21461	# If the export-symbols file already is a .def file (1st line
21462	# is EXPORTS), use it as is; otherwise, prepend...
21463	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21464	  cp $export_symbols $output_objdir/$soname.def;
21465	else
21466	  echo EXPORTS > $output_objdir/$soname.def;
21467	  cat $export_symbols >> $output_objdir/$soname.def;
21468	fi~
21469	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21470      else
21471	ld_shlibs_F77=no
21472      fi
21473      ;;
21474
21475    interix3*)
21476      hardcode_direct_F77=no
21477      hardcode_shlibpath_var_F77=no
21478      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21479      export_dynamic_flag_spec_F77='${wl}-E'
21480      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21481      # Instead, shared libraries are loaded at an image base (0x10000000 by
21482      # default) and relocated if they conflict, which is a slow very memory
21483      # consuming and fragmenting process.  To avoid this, we pick a random,
21484      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21485      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21486      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'
21487      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'
21488      ;;
21489
21490    linux*)
21491      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21492	tmp_addflag=
21493	case $cc_basename,$host_cpu in
21494	pgcc*)				# Portland Group C compiler
21495	  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'
21496	  tmp_addflag=' $pic_flag'
21497	  ;;
21498	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
21499	  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'
21500	  tmp_addflag=' $pic_flag -Mnomain' ;;
21501	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
21502	  tmp_addflag=' -i_dynamic' ;;
21503	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
21504	  tmp_addflag=' -i_dynamic -nofor_main' ;;
21505	ifc* | ifort*)			# Intel Fortran compiler
21506	  tmp_addflag=' -nofor_main' ;;
21507	esac
21508	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21509
21510	if test $supports_anon_versioning = yes; then
21511	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21512  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21513  $echo "local: *; };" >> $output_objdir/$libname.ver~
21514	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21515	fi
21516      else
21517	ld_shlibs_F77=no
21518      fi
21519      ;;
21520
21521    netbsd*)
21522      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21523	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21524	wlarc=
21525      else
21526	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21527	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21528      fi
21529      ;;
21530
21531    solaris*)
21532      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21533	ld_shlibs_F77=no
21534	cat <<EOF 1>&2
21535
21536*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21537*** create shared libraries on Solaris systems.  Therefore, libtool
21538*** is disabling shared libraries support.  We urge you to upgrade GNU
21539*** binutils to release 2.9.1 or newer.  Another option is to modify
21540*** your PATH or compiler configuration so that the native linker is
21541*** used, and then restart.
21542
21543EOF
21544      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21545	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21546	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21547      else
21548	ld_shlibs_F77=no
21549      fi
21550      ;;
21551
21552    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21553      case `$LD -v 2>&1` in
21554        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21555	ld_shlibs_F77=no
21556	cat <<_LT_EOF 1>&2
21557
21558*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21559*** reliably create shared libraries on SCO systems.  Therefore, libtool
21560*** is disabling shared libraries support.  We urge you to upgrade GNU
21561*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21562*** your PATH or compiler configuration so that the native linker is
21563*** used, and then restart.
21564
21565_LT_EOF
21566	;;
21567	*)
21568	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21569	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21570	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21571	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21572	  else
21573	    ld_shlibs_F77=no
21574	  fi
21575	;;
21576      esac
21577      ;;
21578
21579    sunos4*)
21580      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21581      wlarc=
21582      hardcode_direct_F77=yes
21583      hardcode_shlibpath_var_F77=no
21584      ;;
21585
21586    *)
21587      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21588	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21589	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21590      else
21591	ld_shlibs_F77=no
21592      fi
21593      ;;
21594    esac
21595
21596    if test "$ld_shlibs_F77" = no; then
21597      runpath_var=
21598      hardcode_libdir_flag_spec_F77=
21599      export_dynamic_flag_spec_F77=
21600      whole_archive_flag_spec_F77=
21601    fi
21602  else
21603    # PORTME fill in a description of your system's linker (not GNU ld)
21604    case $host_os in
21605    aix3*)
21606      allow_undefined_flag_F77=unsupported
21607      always_export_symbols_F77=yes
21608      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'
21609      # Note: this linker hardcodes the directories in LIBPATH if there
21610      # are no directories specified by -L.
21611      hardcode_minus_L_F77=yes
21612      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21613	# Neither direct hardcoding nor static linking is supported with a
21614	# broken collect2.
21615	hardcode_direct_F77=unsupported
21616      fi
21617      ;;
21618
21619    aix4* | aix5*)
21620      if test "$host_cpu" = ia64; then
21621	# On IA64, the linker does run time linking by default, so we don't
21622	# have to do anything special.
21623	aix_use_runtimelinking=no
21624	exp_sym_flag='-Bexport'
21625	no_entry_flag=""
21626      else
21627	# If we're using GNU nm, then we don't want the "-C" option.
21628	# -C means demangle to AIX nm, but means don't demangle with GNU nm
21629	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21630	  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'
21631	else
21632	  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'
21633	fi
21634	aix_use_runtimelinking=no
21635
21636	# Test if we are trying to use run time linking or normal
21637	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
21638	# need to do runtime linking.
21639	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21640	  for ld_flag in $LDFLAGS; do
21641  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21642  	    aix_use_runtimelinking=yes
21643  	    break
21644  	  fi
21645	  done
21646	  ;;
21647	esac
21648
21649	exp_sym_flag='-bexport'
21650	no_entry_flag='-bnoentry'
21651      fi
21652
21653      # When large executables or shared objects are built, AIX ld can
21654      # have problems creating the table of contents.  If linking a library
21655      # or program results in "error TOC overflow" add -mminimal-toc to
21656      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21657      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21658
21659      archive_cmds_F77=''
21660      hardcode_direct_F77=yes
21661      hardcode_libdir_separator_F77=':'
21662      link_all_deplibs_F77=yes
21663
21664      if test "$GCC" = yes; then
21665	case $host_os in aix4.[012]|aix4.[012].*)
21666	# We only want to do this on AIX 4.2 and lower, the check
21667	# below for broken collect2 doesn't work under 4.3+
21668	  collect2name=`${CC} -print-prog-name=collect2`
21669	  if test -f "$collect2name" && \
21670  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
21671	  then
21672  	  # We have reworked collect2
21673  	  hardcode_direct_F77=yes
21674	  else
21675  	  # We have old collect2
21676  	  hardcode_direct_F77=unsupported
21677  	  # It fails to find uninstalled libraries when the uninstalled
21678  	  # path is not listed in the libpath.  Setting hardcode_minus_L
21679  	  # to unsupported forces relinking
21680  	  hardcode_minus_L_F77=yes
21681  	  hardcode_libdir_flag_spec_F77='-L$libdir'
21682  	  hardcode_libdir_separator_F77=
21683	  fi
21684	  ;;
21685	esac
21686	shared_flag='-shared'
21687	if test "$aix_use_runtimelinking" = yes; then
21688	  shared_flag="$shared_flag "'${wl}-G'
21689	fi
21690      else
21691	# not using gcc
21692	if test "$host_cpu" = ia64; then
21693  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21694  	# chokes on -Wl,-G. The following line is correct:
21695	  shared_flag='-G'
21696	else
21697	  if test "$aix_use_runtimelinking" = yes; then
21698	    shared_flag='${wl}-G'
21699	  else
21700	    shared_flag='${wl}-bM:SRE'
21701	  fi
21702	fi
21703      fi
21704
21705      # It seems that -bexpall does not export symbols beginning with
21706      # underscore (_), so it is better to generate a list of symbols to export.
21707      always_export_symbols_F77=yes
21708      if test "$aix_use_runtimelinking" = yes; then
21709	# Warning - without using the other runtime loading flags (-brtl),
21710	# -berok will link without error, but may produce a broken library.
21711	allow_undefined_flag_F77='-berok'
21712       # Determine the default libpath from the value encoded in an empty executable.
21713       cat >conftest.$ac_ext <<_ACEOF
21714      program main
21715
21716      end
21717_ACEOF
21718rm -f conftest.$ac_objext conftest$ac_exeext
21719if { (ac_try="$ac_link"
21720case "(($ac_try" in
21721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21722  *) ac_try_echo=$ac_try;;
21723esac
21724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21725  (eval "$ac_link") 2>conftest.er1
21726  ac_status=$?
21727  grep -v '^ *+' conftest.er1 >conftest.err
21728  rm -f conftest.er1
21729  cat conftest.err >&5
21730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731  (exit $ac_status); } &&
21732	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21733  { (case "(($ac_try" in
21734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21735  *) ac_try_echo=$ac_try;;
21736esac
21737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21738  (eval "$ac_try") 2>&5
21739  ac_status=$?
21740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741  (exit $ac_status); }; } &&
21742	 { ac_try='test -s conftest$ac_exeext'
21743  { (case "(($ac_try" in
21744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21745  *) ac_try_echo=$ac_try;;
21746esac
21747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21748  (eval "$ac_try") 2>&5
21749  ac_status=$?
21750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751  (exit $ac_status); }; }; then
21752
21753aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21754}'`
21755# Check for a 64-bit object if we didn't find anything.
21756if 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; }
21757}'`; fi
21758else
21759  echo "$as_me: failed program was:" >&5
21760sed 's/^/| /' conftest.$ac_ext >&5
21761
21762
21763fi
21764
21765rm -f core conftest.err conftest.$ac_objext \
21766      conftest$ac_exeext conftest.$ac_ext
21767if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21768
21769       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21770	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"
21771       else
21772	if test "$host_cpu" = ia64; then
21773	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21774	  allow_undefined_flag_F77="-z nodefs"
21775	  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"
21776	else
21777	 # Determine the default libpath from the value encoded in an empty executable.
21778	 cat >conftest.$ac_ext <<_ACEOF
21779      program main
21780
21781      end
21782_ACEOF
21783rm -f conftest.$ac_objext conftest$ac_exeext
21784if { (ac_try="$ac_link"
21785case "(($ac_try" in
21786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21787  *) ac_try_echo=$ac_try;;
21788esac
21789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21790  (eval "$ac_link") 2>conftest.er1
21791  ac_status=$?
21792  grep -v '^ *+' conftest.er1 >conftest.err
21793  rm -f conftest.er1
21794  cat conftest.err >&5
21795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796  (exit $ac_status); } &&
21797	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21798  { (case "(($ac_try" in
21799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21800  *) ac_try_echo=$ac_try;;
21801esac
21802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21803  (eval "$ac_try") 2>&5
21804  ac_status=$?
21805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806  (exit $ac_status); }; } &&
21807	 { ac_try='test -s conftest$ac_exeext'
21808  { (case "(($ac_try" in
21809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21810  *) ac_try_echo=$ac_try;;
21811esac
21812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21813  (eval "$ac_try") 2>&5
21814  ac_status=$?
21815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816  (exit $ac_status); }; }; then
21817
21818aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21819}'`
21820# Check for a 64-bit object if we didn't find anything.
21821if 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; }
21822}'`; fi
21823else
21824  echo "$as_me: failed program was:" >&5
21825sed 's/^/| /' conftest.$ac_ext >&5
21826
21827
21828fi
21829
21830rm -f core conftest.err conftest.$ac_objext \
21831      conftest$ac_exeext conftest.$ac_ext
21832if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21833
21834	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21835	  # Warning - without using the other run time loading flags,
21836	  # -berok will link without error, but may produce a broken library.
21837	  no_undefined_flag_F77=' ${wl}-bernotok'
21838	  allow_undefined_flag_F77=' ${wl}-berok'
21839	  # Exported symbols can be pulled into shared objects from archives
21840	  whole_archive_flag_spec_F77='$convenience'
21841	  archive_cmds_need_lc_F77=yes
21842	  # This is similar to how AIX traditionally builds its shared libraries.
21843	  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'
21844	fi
21845      fi
21846      ;;
21847
21848    amigaos*)
21849      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)'
21850      hardcode_libdir_flag_spec_F77='-L$libdir'
21851      hardcode_minus_L_F77=yes
21852      # see comment about different semantics on the GNU ld section
21853      ld_shlibs_F77=no
21854      ;;
21855
21856    bsdi[45]*)
21857      export_dynamic_flag_spec_F77=-rdynamic
21858      ;;
21859
21860    cygwin* | mingw* | pw32*)
21861      # When not using gcc, we currently assume that we are using
21862      # Microsoft Visual C++.
21863      # hardcode_libdir_flag_spec is actually meaningless, as there is
21864      # no search path for DLLs.
21865      hardcode_libdir_flag_spec_F77=' '
21866      allow_undefined_flag_F77=unsupported
21867      # Tell ltmain to make .lib files, not .a files.
21868      libext=lib
21869      # Tell ltmain to make .dll files, not .so files.
21870      shrext_cmds=".dll"
21871      # FIXME: Setting linknames here is a bad hack.
21872      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21873      # The linker will automatically build a .lib file if we build a DLL.
21874      old_archive_From_new_cmds_F77='true'
21875      # FIXME: Should let the user specify the lib program.
21876      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21877      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21878      enable_shared_with_static_runtimes_F77=yes
21879      ;;
21880
21881    darwin* | rhapsody*)
21882      case $host_os in
21883        rhapsody* | darwin1.[012])
21884         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21885         ;;
21886       *) # Darwin 1.3 on
21887         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21888           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21889         else
21890           case ${MACOSX_DEPLOYMENT_TARGET} in
21891             10.[012])
21892               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21893               ;;
21894             10.*)
21895               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21896               ;;
21897           esac
21898         fi
21899         ;;
21900      esac
21901      archive_cmds_need_lc_F77=no
21902      hardcode_direct_F77=no
21903      hardcode_automatic_F77=yes
21904      hardcode_shlibpath_var_F77=unsupported
21905      whole_archive_flag_spec_F77=''
21906      link_all_deplibs_F77=yes
21907    if test "$GCC" = yes ; then
21908    	output_verbose_link_cmd='echo'
21909        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21910      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21911      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21912      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}'
21913      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}'
21914    else
21915      case $cc_basename in
21916        xlc*)
21917         output_verbose_link_cmd='echo'
21918         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21919         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21920          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21921         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}'
21922          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}'
21923          ;;
21924       *)
21925         ld_shlibs_F77=no
21926          ;;
21927      esac
21928    fi
21929      ;;
21930
21931    dgux*)
21932      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21933      hardcode_libdir_flag_spec_F77='-L$libdir'
21934      hardcode_shlibpath_var_F77=no
21935      ;;
21936
21937    freebsd1*)
21938      ld_shlibs_F77=no
21939      ;;
21940
21941    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21942    # support.  Future versions do this automatically, but an explicit c++rt0.o
21943    # does not break anything, and helps significantly (at the cost of a little
21944    # extra space).
21945    freebsd2.2*)
21946      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21947      hardcode_libdir_flag_spec_F77='-R$libdir'
21948      hardcode_direct_F77=yes
21949      hardcode_shlibpath_var_F77=no
21950      ;;
21951
21952    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21953    freebsd2*)
21954      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21955      hardcode_direct_F77=yes
21956      hardcode_minus_L_F77=yes
21957      hardcode_shlibpath_var_F77=no
21958      ;;
21959
21960    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21961    freebsd* | kfreebsd*-gnu | dragonfly*)
21962      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21963      hardcode_libdir_flag_spec_F77='-R$libdir'
21964      hardcode_direct_F77=yes
21965      hardcode_shlibpath_var_F77=no
21966      ;;
21967
21968    hpux9*)
21969      if test "$GCC" = yes; then
21970	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'
21971      else
21972	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'
21973      fi
21974      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21975      hardcode_libdir_separator_F77=:
21976      hardcode_direct_F77=yes
21977
21978      # hardcode_minus_L: Not really in the search PATH,
21979      # but as the default location of the library.
21980      hardcode_minus_L_F77=yes
21981      export_dynamic_flag_spec_F77='${wl}-E'
21982      ;;
21983
21984    hpux10*)
21985      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21986	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21987      else
21988	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21989      fi
21990      if test "$with_gnu_ld" = no; then
21991	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21992	hardcode_libdir_separator_F77=:
21993
21994	hardcode_direct_F77=yes
21995	export_dynamic_flag_spec_F77='${wl}-E'
21996
21997	# hardcode_minus_L: Not really in the search PATH,
21998	# but as the default location of the library.
21999	hardcode_minus_L_F77=yes
22000      fi
22001      ;;
22002
22003    hpux11*)
22004      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22005	case $host_cpu in
22006	hppa*64*)
22007	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22008	  ;;
22009	ia64*)
22010	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22011	  ;;
22012	*)
22013	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22014	  ;;
22015	esac
22016      else
22017	case $host_cpu in
22018	hppa*64*)
22019	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22020	  ;;
22021	ia64*)
22022	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22023	  ;;
22024	*)
22025	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22026	  ;;
22027	esac
22028      fi
22029      if test "$with_gnu_ld" = no; then
22030	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22031	hardcode_libdir_separator_F77=:
22032
22033	case $host_cpu in
22034	hppa*64*|ia64*)
22035	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22036	  hardcode_direct_F77=no
22037	  hardcode_shlibpath_var_F77=no
22038	  ;;
22039	*)
22040	  hardcode_direct_F77=yes
22041	  export_dynamic_flag_spec_F77='${wl}-E'
22042
22043	  # hardcode_minus_L: Not really in the search PATH,
22044	  # but as the default location of the library.
22045	  hardcode_minus_L_F77=yes
22046	  ;;
22047	esac
22048      fi
22049      ;;
22050
22051    irix5* | irix6* | nonstopux*)
22052      if test "$GCC" = yes; then
22053	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'
22054      else
22055	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'
22056	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22057      fi
22058      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22059      hardcode_libdir_separator_F77=:
22060      link_all_deplibs_F77=yes
22061      ;;
22062
22063    netbsd*)
22064      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22065	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22066      else
22067	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22068      fi
22069      hardcode_libdir_flag_spec_F77='-R$libdir'
22070      hardcode_direct_F77=yes
22071      hardcode_shlibpath_var_F77=no
22072      ;;
22073
22074    newsos6)
22075      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22076      hardcode_direct_F77=yes
22077      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22078      hardcode_libdir_separator_F77=:
22079      hardcode_shlibpath_var_F77=no
22080      ;;
22081
22082    openbsd*)
22083      hardcode_direct_F77=yes
22084      hardcode_shlibpath_var_F77=no
22085      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22086	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22087	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22088	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22089	export_dynamic_flag_spec_F77='${wl}-E'
22090      else
22091       case $host_os in
22092	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22093	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22094	   hardcode_libdir_flag_spec_F77='-R$libdir'
22095	   ;;
22096	 *)
22097	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22098	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22099	   ;;
22100       esac
22101      fi
22102      ;;
22103
22104    os2*)
22105      hardcode_libdir_flag_spec_F77='-L$libdir'
22106      hardcode_minus_L_F77=yes
22107      allow_undefined_flag_F77=unsupported
22108      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'
22109      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22110      ;;
22111
22112    osf3*)
22113      if test "$GCC" = yes; then
22114	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22115	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'
22116      else
22117	allow_undefined_flag_F77=' -expect_unresolved \*'
22118	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'
22119      fi
22120      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22121      hardcode_libdir_separator_F77=:
22122      ;;
22123
22124    osf4* | osf5*)	# as osf3* with the addition of -msym flag
22125      if test "$GCC" = yes; then
22126	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22127	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'
22128	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22129      else
22130	allow_undefined_flag_F77=' -expect_unresolved \*'
22131	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'
22132	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~
22133	$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'
22134
22135	# Both c and cxx compiler support -rpath directly
22136	hardcode_libdir_flag_spec_F77='-rpath $libdir'
22137      fi
22138      hardcode_libdir_separator_F77=:
22139      ;;
22140
22141    solaris*)
22142      no_undefined_flag_F77=' -z text'
22143      if test "$GCC" = yes; then
22144	wlarc='${wl}'
22145	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22146	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22147	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22148      else
22149	wlarc=''
22150	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22151	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22152  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22153      fi
22154      hardcode_libdir_flag_spec_F77='-R$libdir'
22155      hardcode_shlibpath_var_F77=no
22156      case $host_os in
22157      solaris2.[0-5] | solaris2.[0-5].*) ;;
22158      *)
22159 	# The compiler driver will combine linker options so we
22160 	# cannot just pass the convience library names through
22161 	# without $wl, iff we do not link with $LD.
22162 	# Luckily, gcc supports the same syntax we need for Sun Studio.
22163 	# Supported since Solaris 2.6 (maybe 2.5.1?)
22164 	case $wlarc in
22165 	'')
22166 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22167 	*)
22168 	  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' ;;
22169 	esac ;;
22170      esac
22171      link_all_deplibs_F77=yes
22172      ;;
22173
22174    sunos4*)
22175      if test "x$host_vendor" = xsequent; then
22176	# Use $CC to link under sequent, because it throws in some extra .o
22177	# files that make .init and .fini sections work.
22178	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22179      else
22180	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22181      fi
22182      hardcode_libdir_flag_spec_F77='-L$libdir'
22183      hardcode_direct_F77=yes
22184      hardcode_minus_L_F77=yes
22185      hardcode_shlibpath_var_F77=no
22186      ;;
22187
22188    sysv4)
22189      case $host_vendor in
22190	sni)
22191	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22192	  hardcode_direct_F77=yes # is this really true???
22193	;;
22194	siemens)
22195	  ## LD is ld it makes a PLAMLIB
22196	  ## CC just makes a GrossModule.
22197	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22198	  reload_cmds_F77='$CC -r -o $output$reload_objs'
22199	  hardcode_direct_F77=no
22200        ;;
22201	motorola)
22202	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22203	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22204	;;
22205      esac
22206      runpath_var='LD_RUN_PATH'
22207      hardcode_shlibpath_var_F77=no
22208      ;;
22209
22210    sysv4.3*)
22211      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22212      hardcode_shlibpath_var_F77=no
22213      export_dynamic_flag_spec_F77='-Bexport'
22214      ;;
22215
22216    sysv4*MP*)
22217      if test -d /usr/nec; then
22218	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22219	hardcode_shlibpath_var_F77=no
22220	runpath_var=LD_RUN_PATH
22221	hardcode_runpath_var=yes
22222	ld_shlibs_F77=yes
22223      fi
22224      ;;
22225
22226    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22227      no_undefined_flag_F77='${wl}-z,text'
22228      archive_cmds_need_lc_F77=no
22229      hardcode_shlibpath_var_F77=no
22230      runpath_var='LD_RUN_PATH'
22231
22232      if test "$GCC" = yes; then
22233	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22234	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22235      else
22236	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22237	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22238      fi
22239      ;;
22240
22241    sysv5* | sco3.2v5* | sco5v6*)
22242      # Note: We can NOT use -z defs as we might desire, because we do not
22243      # link with -lc, and that would cause any symbols used from libc to
22244      # always be unresolved, which means just about no library would
22245      # ever link correctly.  If we're not using GNU ld we use -z text
22246      # though, which does catch some bad symbols but isn't as heavy-handed
22247      # as -z defs.
22248      no_undefined_flag_F77='${wl}-z,text'
22249      allow_undefined_flag_F77='${wl}-z,nodefs'
22250      archive_cmds_need_lc_F77=no
22251      hardcode_shlibpath_var_F77=no
22252      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22253      hardcode_libdir_separator_F77=':'
22254      link_all_deplibs_F77=yes
22255      export_dynamic_flag_spec_F77='${wl}-Bexport'
22256      runpath_var='LD_RUN_PATH'
22257
22258      if test "$GCC" = yes; then
22259	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22260	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22261      else
22262	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22263	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22264      fi
22265      ;;
22266
22267    uts4*)
22268      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22269      hardcode_libdir_flag_spec_F77='-L$libdir'
22270      hardcode_shlibpath_var_F77=no
22271      ;;
22272
22273    *)
22274      ld_shlibs_F77=no
22275      ;;
22276    esac
22277  fi
22278
22279{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22280echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22281test "$ld_shlibs_F77" = no && can_build_shared=no
22282
22283#
22284# Do we need to explicitly link libc?
22285#
22286case "x$archive_cmds_need_lc_F77" in
22287x|xyes)
22288  # Assume -lc should be added
22289  archive_cmds_need_lc_F77=yes
22290
22291  if test "$enable_shared" = yes && test "$GCC" = yes; then
22292    case $archive_cmds_F77 in
22293    *'~'*)
22294      # FIXME: we may have to deal with multi-command sequences.
22295      ;;
22296    '$CC '*)
22297      # Test whether the compiler implicitly links with -lc since on some
22298      # systems, -lgcc has to come before -lc. If gcc already passes -lc
22299      # to ld, don't add -lc before -lgcc.
22300      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22301echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22302      $rm conftest*
22303      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22304
22305      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22306  (eval $ac_compile) 2>&5
22307  ac_status=$?
22308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309  (exit $ac_status); } 2>conftest.err; then
22310        soname=conftest
22311        lib=conftest
22312        libobjs=conftest.$ac_objext
22313        deplibs=
22314        wl=$lt_prog_compiler_wl_F77
22315	pic_flag=$lt_prog_compiler_pic_F77
22316        compiler_flags=-v
22317        linker_flags=-v
22318        verstring=
22319        output_objdir=.
22320        libname=conftest
22321        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22322        allow_undefined_flag_F77=
22323        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22324  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22325  ac_status=$?
22326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327  (exit $ac_status); }
22328        then
22329	  archive_cmds_need_lc_F77=no
22330        else
22331	  archive_cmds_need_lc_F77=yes
22332        fi
22333        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22334      else
22335        cat conftest.err 1>&5
22336      fi
22337      $rm conftest*
22338      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22339echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22340      ;;
22341    esac
22342  fi
22343  ;;
22344esac
22345
22346{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22347echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22348library_names_spec=
22349libname_spec='lib$name'
22350soname_spec=
22351shrext_cmds=".so"
22352postinstall_cmds=
22353postuninstall_cmds=
22354finish_cmds=
22355finish_eval=
22356shlibpath_var=
22357shlibpath_overrides_runpath=unknown
22358version_type=none
22359dynamic_linker="$host_os ld.so"
22360sys_lib_dlsearch_path_spec="/lib /usr/lib"
22361if test "$GCC" = yes; then
22362  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22363  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22364    # if the path contains ";" then we assume it to be the separator
22365    # otherwise default to the standard path separator (i.e. ":") - it is
22366    # assumed that no part of a normal pathname contains ";" but that should
22367    # okay in the real world where ";" in dirpaths is itself problematic.
22368    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22369  else
22370    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22371  fi
22372else
22373  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22374fi
22375need_lib_prefix=unknown
22376hardcode_into_libs=no
22377
22378# when you set need_version to no, make sure it does not cause -set_version
22379# flags to be left without arguments
22380need_version=unknown
22381
22382case $host_os in
22383aix3*)
22384  version_type=linux
22385  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22386  shlibpath_var=LIBPATH
22387
22388  # AIX 3 has no versioning support, so we append a major version to the name.
22389  soname_spec='${libname}${release}${shared_ext}$major'
22390  ;;
22391
22392aix4* | aix5*)
22393  version_type=linux
22394  need_lib_prefix=no
22395  need_version=no
22396  hardcode_into_libs=yes
22397  if test "$host_cpu" = ia64; then
22398    # AIX 5 supports IA64
22399    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22400    shlibpath_var=LD_LIBRARY_PATH
22401  else
22402    # With GCC up to 2.95.x, collect2 would create an import file
22403    # for dependence libraries.  The import file would start with
22404    # the line `#! .'.  This would cause the generated library to
22405    # depend on `.', always an invalid library.  This was fixed in
22406    # development snapshots of GCC prior to 3.0.
22407    case $host_os in
22408      aix4 | aix4.[01] | aix4.[01].*)
22409      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22410	   echo ' yes '
22411	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22412	:
22413      else
22414	can_build_shared=no
22415      fi
22416      ;;
22417    esac
22418    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22419    # soname into executable. Probably we can add versioning support to
22420    # collect2, so additional links can be useful in future.
22421    if test "$aix_use_runtimelinking" = yes; then
22422      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22423      # instead of lib<name>.a to let people know that these are not
22424      # typical AIX shared libraries.
22425      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22426    else
22427      # We preserve .a as extension for shared libraries through AIX4.2
22428      # and later when we are not doing run time linking.
22429      library_names_spec='${libname}${release}.a $libname.a'
22430      soname_spec='${libname}${release}${shared_ext}$major'
22431    fi
22432    shlibpath_var=LIBPATH
22433  fi
22434  ;;
22435
22436amigaos*)
22437  library_names_spec='$libname.ixlibrary $libname.a'
22438  # Create ${libname}_ixlibrary.a entries in /sys/libs.
22439  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'
22440  ;;
22441
22442beos*)
22443  library_names_spec='${libname}${shared_ext}'
22444  dynamic_linker="$host_os ld.so"
22445  shlibpath_var=LIBRARY_PATH
22446  ;;
22447
22448bsdi[45]*)
22449  version_type=linux
22450  need_version=no
22451  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22452  soname_spec='${libname}${release}${shared_ext}$major'
22453  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22454  shlibpath_var=LD_LIBRARY_PATH
22455  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22456  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22457  # the default ld.so.conf also contains /usr/contrib/lib and
22458  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22459  # libtool to hard-code these into programs
22460  ;;
22461
22462cygwin* | mingw* | pw32*)
22463  version_type=windows
22464  shrext_cmds=".dll"
22465  need_version=no
22466  need_lib_prefix=no
22467
22468  case $GCC,$host_os in
22469  yes,cygwin* | yes,mingw* | yes,pw32*)
22470    library_names_spec='$libname.dll.a'
22471    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22472    postinstall_cmds='base_file=`basename \${file}`~
22473      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22474      dldir=$destdir/`dirname \$dlpath`~
22475      test -d \$dldir || mkdir -p \$dldir~
22476      $install_prog $dir/$dlname \$dldir/$dlname~
22477      chmod a+x \$dldir/$dlname'
22478    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22479      dlpath=$dir/\$dldll~
22480       $rm \$dlpath'
22481    shlibpath_overrides_runpath=yes
22482
22483    case $host_os in
22484    cygwin*)
22485      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22486      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22487      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22488      ;;
22489    mingw*)
22490      # MinGW DLLs use traditional 'lib' prefix
22491      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22492      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22493      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22494        # It is most probably a Windows format PATH printed by
22495        # mingw gcc, but we are running on Cygwin. Gcc prints its search
22496        # path with ; separators, and with drive letters. We can handle the
22497        # drive letters (cygwin fileutils understands them), so leave them,
22498        # especially as we might pass files found there to a mingw objdump,
22499        # which wouldn't understand a cygwinified path. Ahh.
22500        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22501      else
22502        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22503      fi
22504      ;;
22505    pw32*)
22506      # pw32 DLLs use 'pw' prefix rather than 'lib'
22507      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22508      ;;
22509    esac
22510    ;;
22511
22512  *)
22513    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22514    ;;
22515  esac
22516  dynamic_linker='Win32 ld.exe'
22517  # FIXME: first we should search . and the directory the executable is in
22518  shlibpath_var=PATH
22519  ;;
22520
22521darwin* | rhapsody*)
22522  dynamic_linker="$host_os dyld"
22523  version_type=darwin
22524  need_lib_prefix=no
22525  need_version=no
22526  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22527  soname_spec='${libname}${release}${major}$shared_ext'
22528  shlibpath_overrides_runpath=yes
22529  shlibpath_var=DYLD_LIBRARY_PATH
22530  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22531  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22532  if test "$GCC" = yes; then
22533    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"`
22534  else
22535    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22536  fi
22537  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22538  ;;
22539
22540dgux*)
22541  version_type=linux
22542  need_lib_prefix=no
22543  need_version=no
22544  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22545  soname_spec='${libname}${release}${shared_ext}$major'
22546  shlibpath_var=LD_LIBRARY_PATH
22547  ;;
22548
22549freebsd1*)
22550  dynamic_linker=no
22551  ;;
22552
22553kfreebsd*-gnu)
22554  version_type=linux
22555  need_lib_prefix=no
22556  need_version=no
22557  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22558  soname_spec='${libname}${release}${shared_ext}$major'
22559  shlibpath_var=LD_LIBRARY_PATH
22560  shlibpath_overrides_runpath=no
22561  hardcode_into_libs=yes
22562  dynamic_linker='GNU ld.so'
22563  ;;
22564
22565freebsd* | dragonfly*)
22566  # DragonFly does not have aout.  When/if they implement a new
22567  # versioning mechanism, adjust this.
22568  if test -x /usr/bin/objformat; then
22569    objformat=`/usr/bin/objformat`
22570  else
22571    case $host_os in
22572    freebsd[123]*) objformat=aout ;;
22573    *) objformat=elf ;;
22574    esac
22575  fi
22576  version_type=freebsd-$objformat
22577  case $version_type in
22578    freebsd-elf*)
22579      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22580      need_version=no
22581      need_lib_prefix=no
22582      ;;
22583    freebsd-*)
22584      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22585      need_version=yes
22586      ;;
22587  esac
22588  shlibpath_var=LD_LIBRARY_PATH
22589  case $host_os in
22590  freebsd2*)
22591    shlibpath_overrides_runpath=yes
22592    ;;
22593  freebsd3.[01]* | freebsdelf3.[01]*)
22594    shlibpath_overrides_runpath=yes
22595    hardcode_into_libs=yes
22596    ;;
22597  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22598  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22599    shlibpath_overrides_runpath=no
22600    hardcode_into_libs=yes
22601    ;;
22602  freebsd*) # from 4.6 on
22603    shlibpath_overrides_runpath=yes
22604    hardcode_into_libs=yes
22605    ;;
22606  esac
22607  ;;
22608
22609gnu*)
22610  version_type=linux
22611  need_lib_prefix=no
22612  need_version=no
22613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22614  soname_spec='${libname}${release}${shared_ext}$major'
22615  shlibpath_var=LD_LIBRARY_PATH
22616  hardcode_into_libs=yes
22617  ;;
22618
22619hpux9* | hpux10* | hpux11*)
22620  # Give a soname corresponding to the major version so that dld.sl refuses to
22621  # link against other versions.
22622  version_type=sunos
22623  need_lib_prefix=no
22624  need_version=no
22625  case $host_cpu in
22626  ia64*)
22627    shrext_cmds='.so'
22628    hardcode_into_libs=yes
22629    dynamic_linker="$host_os dld.so"
22630    shlibpath_var=LD_LIBRARY_PATH
22631    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22632    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22633    soname_spec='${libname}${release}${shared_ext}$major'
22634    if test "X$HPUX_IA64_MODE" = X32; then
22635      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22636    else
22637      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22638    fi
22639    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22640    ;;
22641   hppa*64*)
22642     shrext_cmds='.sl'
22643     hardcode_into_libs=yes
22644     dynamic_linker="$host_os dld.sl"
22645     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22646     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22647     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22648     soname_spec='${libname}${release}${shared_ext}$major'
22649     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22650     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22651     ;;
22652   *)
22653    shrext_cmds='.sl'
22654    dynamic_linker="$host_os dld.sl"
22655    shlibpath_var=SHLIB_PATH
22656    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22657    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22658    soname_spec='${libname}${release}${shared_ext}$major'
22659    ;;
22660  esac
22661  # HP-UX runs *really* slowly unless shared libraries are mode 555.
22662  postinstall_cmds='chmod 555 $lib'
22663  ;;
22664
22665interix3*)
22666  version_type=linux
22667  need_lib_prefix=no
22668  need_version=no
22669  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22670  soname_spec='${libname}${release}${shared_ext}$major'
22671  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22672  shlibpath_var=LD_LIBRARY_PATH
22673  shlibpath_overrides_runpath=no
22674  hardcode_into_libs=yes
22675  ;;
22676
22677irix5* | irix6* | nonstopux*)
22678  case $host_os in
22679    nonstopux*) version_type=nonstopux ;;
22680    *)
22681	if test "$lt_cv_prog_gnu_ld" = yes; then
22682		version_type=linux
22683	else
22684		version_type=irix
22685	fi ;;
22686  esac
22687  need_lib_prefix=no
22688  need_version=no
22689  soname_spec='${libname}${release}${shared_ext}$major'
22690  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22691  case $host_os in
22692  irix5* | nonstopux*)
22693    libsuff= shlibsuff=
22694    ;;
22695  *)
22696    case $LD in # libtool.m4 will add one of these switches to LD
22697    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22698      libsuff= shlibsuff= libmagic=32-bit;;
22699    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22700      libsuff=32 shlibsuff=N32 libmagic=N32;;
22701    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22702      libsuff=64 shlibsuff=64 libmagic=64-bit;;
22703    *) libsuff= shlibsuff= libmagic=never-match;;
22704    esac
22705    ;;
22706  esac
22707  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22708  shlibpath_overrides_runpath=no
22709  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22710  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22711  hardcode_into_libs=yes
22712  ;;
22713
22714# No shared lib support for Linux oldld, aout, or coff.
22715linux*oldld* | linux*aout* | linux*coff*)
22716  dynamic_linker=no
22717  ;;
22718
22719# This must be Linux ELF.
22720linux*)
22721  version_type=linux
22722  need_lib_prefix=no
22723  need_version=no
22724  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22725  soname_spec='${libname}${release}${shared_ext}$major'
22726  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22727  shlibpath_var=LD_LIBRARY_PATH
22728  shlibpath_overrides_runpath=no
22729  # This implies no fast_install, which is unacceptable.
22730  # Some rework will be needed to allow for fast_install
22731  # before this can be enabled.
22732  hardcode_into_libs=yes
22733
22734  # Append ld.so.conf contents to the search path
22735  if test -f /etc/ld.so.conf; then
22736    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' ' '`
22737    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22738  fi
22739
22740  # We used to test for /lib/ld.so.1 and disable shared libraries on
22741  # powerpc, because MkLinux only supported shared libraries with the
22742  # GNU dynamic linker.  Since this was broken with cross compilers,
22743  # most powerpc-linux boxes support dynamic linking these days and
22744  # people can always --disable-shared, the test was removed, and we
22745  # assume the GNU/Linux dynamic linker is in use.
22746  dynamic_linker='GNU/Linux ld.so'
22747  ;;
22748
22749knetbsd*-gnu)
22750  version_type=linux
22751  need_lib_prefix=no
22752  need_version=no
22753  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22754  soname_spec='${libname}${release}${shared_ext}$major'
22755  shlibpath_var=LD_LIBRARY_PATH
22756  shlibpath_overrides_runpath=no
22757  hardcode_into_libs=yes
22758  dynamic_linker='GNU ld.so'
22759  ;;
22760
22761netbsd*)
22762  version_type=sunos
22763  need_lib_prefix=no
22764  need_version=no
22765  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22766    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22767    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22768    dynamic_linker='NetBSD (a.out) ld.so'
22769  else
22770    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22771    soname_spec='${libname}${release}${shared_ext}$major'
22772    dynamic_linker='NetBSD ld.elf_so'
22773  fi
22774  shlibpath_var=LD_LIBRARY_PATH
22775  shlibpath_overrides_runpath=yes
22776  hardcode_into_libs=yes
22777  ;;
22778
22779newsos6)
22780  version_type=linux
22781  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22782  shlibpath_var=LD_LIBRARY_PATH
22783  shlibpath_overrides_runpath=yes
22784  ;;
22785
22786nto-qnx*)
22787  version_type=linux
22788  need_lib_prefix=no
22789  need_version=no
22790  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22791  soname_spec='${libname}${release}${shared_ext}$major'
22792  shlibpath_var=LD_LIBRARY_PATH
22793  shlibpath_overrides_runpath=yes
22794  ;;
22795
22796openbsd*)
22797  version_type=sunos
22798  sys_lib_dlsearch_path_spec="/usr/lib"
22799  need_lib_prefix=no
22800  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22801  case $host_os in
22802    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22803    *)                         need_version=no  ;;
22804  esac
22805  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22806  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22807  shlibpath_var=LD_LIBRARY_PATH
22808  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22809    case $host_os in
22810      openbsd2.[89] | openbsd2.[89].*)
22811	shlibpath_overrides_runpath=no
22812	;;
22813      *)
22814	shlibpath_overrides_runpath=yes
22815	;;
22816      esac
22817  else
22818    shlibpath_overrides_runpath=yes
22819  fi
22820  ;;
22821
22822os2*)
22823  libname_spec='$name'
22824  shrext_cmds=".dll"
22825  need_lib_prefix=no
22826  library_names_spec='$libname${shared_ext} $libname.a'
22827  dynamic_linker='OS/2 ld.exe'
22828  shlibpath_var=LIBPATH
22829  ;;
22830
22831osf3* | osf4* | osf5*)
22832  version_type=osf
22833  need_lib_prefix=no
22834  need_version=no
22835  soname_spec='${libname}${release}${shared_ext}$major'
22836  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22837  shlibpath_var=LD_LIBRARY_PATH
22838  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22839  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22840  ;;
22841
22842solaris*)
22843  version_type=linux
22844  need_lib_prefix=no
22845  need_version=no
22846  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22847  soname_spec='${libname}${release}${shared_ext}$major'
22848  shlibpath_var=LD_LIBRARY_PATH
22849  shlibpath_overrides_runpath=yes
22850  hardcode_into_libs=yes
22851  # ldd complains unless libraries are executable
22852  postinstall_cmds='chmod +x $lib'
22853  ;;
22854
22855sunos4*)
22856  version_type=sunos
22857  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22858  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22859  shlibpath_var=LD_LIBRARY_PATH
22860  shlibpath_overrides_runpath=yes
22861  if test "$with_gnu_ld" = yes; then
22862    need_lib_prefix=no
22863  fi
22864  need_version=yes
22865  ;;
22866
22867sysv4 | sysv4.3*)
22868  version_type=linux
22869  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22870  soname_spec='${libname}${release}${shared_ext}$major'
22871  shlibpath_var=LD_LIBRARY_PATH
22872  case $host_vendor in
22873    sni)
22874      shlibpath_overrides_runpath=no
22875      need_lib_prefix=no
22876      export_dynamic_flag_spec='${wl}-Blargedynsym'
22877      runpath_var=LD_RUN_PATH
22878      ;;
22879    siemens)
22880      need_lib_prefix=no
22881      ;;
22882    motorola)
22883      need_lib_prefix=no
22884      need_version=no
22885      shlibpath_overrides_runpath=no
22886      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22887      ;;
22888  esac
22889  ;;
22890
22891sysv4*MP*)
22892  if test -d /usr/nec ;then
22893    version_type=linux
22894    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22895    soname_spec='$libname${shared_ext}.$major'
22896    shlibpath_var=LD_LIBRARY_PATH
22897  fi
22898  ;;
22899
22900sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22901  version_type=freebsd-elf
22902  need_lib_prefix=no
22903  need_version=no
22904  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22905  soname_spec='${libname}${release}${shared_ext}$major'
22906  shlibpath_var=LD_LIBRARY_PATH
22907  hardcode_into_libs=yes
22908  if test "$with_gnu_ld" = yes; then
22909    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22910    shlibpath_overrides_runpath=no
22911  else
22912    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22913    shlibpath_overrides_runpath=yes
22914    case $host_os in
22915      sco3.2v5*)
22916        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22917	;;
22918    esac
22919  fi
22920  sys_lib_dlsearch_path_spec='/usr/lib'
22921  ;;
22922
22923uts4*)
22924  version_type=linux
22925  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22926  soname_spec='${libname}${release}${shared_ext}$major'
22927  shlibpath_var=LD_LIBRARY_PATH
22928  ;;
22929
22930*)
22931  dynamic_linker=no
22932  ;;
22933esac
22934{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22935echo "${ECHO_T}$dynamic_linker" >&6; }
22936test "$dynamic_linker" = no && can_build_shared=no
22937
22938variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22939if test "$GCC" = yes; then
22940  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22941fi
22942
22943{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22944echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22945hardcode_action_F77=
22946if test -n "$hardcode_libdir_flag_spec_F77" || \
22947   test -n "$runpath_var_F77" || \
22948   test "X$hardcode_automatic_F77" = "Xyes" ; then
22949
22950  # We can hardcode non-existant directories.
22951  if test "$hardcode_direct_F77" != no &&
22952     # If the only mechanism to avoid hardcoding is shlibpath_var, we
22953     # have to relink, otherwise we might link with an installed library
22954     # when we should be linking with a yet-to-be-installed one
22955     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22956     test "$hardcode_minus_L_F77" != no; then
22957    # Linking always hardcodes the temporary library directory.
22958    hardcode_action_F77=relink
22959  else
22960    # We can link without hardcoding, and we can hardcode nonexisting dirs.
22961    hardcode_action_F77=immediate
22962  fi
22963else
22964  # We cannot hardcode anything, or else we can only hardcode existing
22965  # directories.
22966  hardcode_action_F77=unsupported
22967fi
22968{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22969echo "${ECHO_T}$hardcode_action_F77" >&6; }
22970
22971if test "$hardcode_action_F77" = relink; then
22972  # Fast installation is not supported
22973  enable_fast_install=no
22974elif test "$shlibpath_overrides_runpath" = yes ||
22975     test "$enable_shared" = no; then
22976  # Fast installation is not necessary
22977  enable_fast_install=needless
22978fi
22979
22980
22981# The else clause should only fire when bootstrapping the
22982# libtool distribution, otherwise you forgot to ship ltmain.sh
22983# with your package, and you will get complaints that there are
22984# no rules to generate ltmain.sh.
22985if test -f "$ltmain"; then
22986  # See if we are running on zsh, and set the options which allow our commands through
22987  # without removal of \ escapes.
22988  if test -n "${ZSH_VERSION+set}" ; then
22989    setopt NO_GLOB_SUBST
22990  fi
22991  # Now quote all the things that may contain metacharacters while being
22992  # careful not to overquote the AC_SUBSTed values.  We take copies of the
22993  # variables and quote the copies for generation of the libtool script.
22994  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22995    SED SHELL STRIP \
22996    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22997    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22998    deplibs_check_method reload_flag reload_cmds need_locks \
22999    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23000    lt_cv_sys_global_symbol_to_c_name_address \
23001    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23002    old_postinstall_cmds old_postuninstall_cmds \
23003    compiler_F77 \
23004    CC_F77 \
23005    LD_F77 \
23006    lt_prog_compiler_wl_F77 \
23007    lt_prog_compiler_pic_F77 \
23008    lt_prog_compiler_static_F77 \
23009    lt_prog_compiler_no_builtin_flag_F77 \
23010    export_dynamic_flag_spec_F77 \
23011    thread_safe_flag_spec_F77 \
23012    whole_archive_flag_spec_F77 \
23013    enable_shared_with_static_runtimes_F77 \
23014    old_archive_cmds_F77 \
23015    old_archive_from_new_cmds_F77 \
23016    predep_objects_F77 \
23017    postdep_objects_F77 \
23018    predeps_F77 \
23019    postdeps_F77 \
23020    compiler_lib_search_path_F77 \
23021    archive_cmds_F77 \
23022    archive_expsym_cmds_F77 \
23023    postinstall_cmds_F77 \
23024    postuninstall_cmds_F77 \
23025    old_archive_from_expsyms_cmds_F77 \
23026    allow_undefined_flag_F77 \
23027    no_undefined_flag_F77 \
23028    export_symbols_cmds_F77 \
23029    hardcode_libdir_flag_spec_F77 \
23030    hardcode_libdir_flag_spec_ld_F77 \
23031    hardcode_libdir_separator_F77 \
23032    hardcode_automatic_F77 \
23033    module_cmds_F77 \
23034    module_expsym_cmds_F77 \
23035    lt_cv_prog_compiler_c_o_F77 \
23036    exclude_expsyms_F77 \
23037    include_expsyms_F77; do
23038
23039    case $var in
23040    old_archive_cmds_F77 | \
23041    old_archive_from_new_cmds_F77 | \
23042    archive_cmds_F77 | \
23043    archive_expsym_cmds_F77 | \
23044    module_cmds_F77 | \
23045    module_expsym_cmds_F77 | \
23046    old_archive_from_expsyms_cmds_F77 | \
23047    export_symbols_cmds_F77 | \
23048    extract_expsyms_cmds | reload_cmds | finish_cmds | \
23049    postinstall_cmds | postuninstall_cmds | \
23050    old_postinstall_cmds | old_postuninstall_cmds | \
23051    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23052      # Double-quote double-evaled strings.
23053      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23054      ;;
23055    *)
23056      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23057      ;;
23058    esac
23059  done
23060
23061  case $lt_echo in
23062  *'\$0 --fallback-echo"')
23063    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23064    ;;
23065  esac
23066
23067cfgfile="$ofile"
23068
23069  cat <<__EOF__ >> "$cfgfile"
23070# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23071
23072# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23073
23074# Shell to use when invoking shell scripts.
23075SHELL=$lt_SHELL
23076
23077# Whether or not to build shared libraries.
23078build_libtool_libs=$enable_shared
23079
23080# Whether or not to build static libraries.
23081build_old_libs=$enable_static
23082
23083# Whether or not to add -lc for building shared libraries.
23084build_libtool_need_lc=$archive_cmds_need_lc_F77
23085
23086# Whether or not to disallow shared libs when runtime libs are static
23087allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23088
23089# Whether or not to optimize for fast installation.
23090fast_install=$enable_fast_install
23091
23092# The host system.
23093host_alias=$host_alias
23094host=$host
23095host_os=$host_os
23096
23097# The build system.
23098build_alias=$build_alias
23099build=$build
23100build_os=$build_os
23101
23102# An echo program that does not interpret backslashes.
23103echo=$lt_echo
23104
23105# The archiver.
23106AR=$lt_AR
23107AR_FLAGS=$lt_AR_FLAGS
23108
23109# A C compiler.
23110LTCC=$lt_LTCC
23111
23112# LTCC compiler flags.
23113LTCFLAGS=$lt_LTCFLAGS
23114
23115# A language-specific compiler.
23116CC=$lt_compiler_F77
23117
23118# Is the compiler the GNU C compiler?
23119with_gcc=$GCC_F77
23120
23121# An ERE matcher.
23122EGREP=$lt_EGREP
23123
23124# The linker used to build libraries.
23125LD=$lt_LD_F77
23126
23127# Whether we need hard or soft links.
23128LN_S=$lt_LN_S
23129
23130# A BSD-compatible nm program.
23131NM=$lt_NM
23132
23133# A symbol stripping program
23134STRIP=$lt_STRIP
23135
23136# Used to examine libraries when file_magic_cmd begins "file"
23137MAGIC_CMD=$MAGIC_CMD
23138
23139# Used on cygwin: DLL creation program.
23140DLLTOOL="$DLLTOOL"
23141
23142# Used on cygwin: object dumper.
23143OBJDUMP="$OBJDUMP"
23144
23145# Used on cygwin: assembler.
23146AS="$AS"
23147
23148# The name of the directory that contains temporary libtool files.
23149objdir=$objdir
23150
23151# How to create reloadable object files.
23152reload_flag=$lt_reload_flag
23153reload_cmds=$lt_reload_cmds
23154
23155# How to pass a linker flag through the compiler.
23156wl=$lt_lt_prog_compiler_wl_F77
23157
23158# Object file suffix (normally "o").
23159objext="$ac_objext"
23160
23161# Old archive suffix (normally "a").
23162libext="$libext"
23163
23164# Shared library suffix (normally ".so").
23165shrext_cmds='$shrext_cmds'
23166
23167# Executable file suffix (normally "").
23168exeext="$exeext"
23169
23170# Additional compiler flags for building library objects.
23171pic_flag=$lt_lt_prog_compiler_pic_F77
23172pic_mode=$pic_mode
23173
23174# What is the maximum length of a command?
23175max_cmd_len=$lt_cv_sys_max_cmd_len
23176
23177# Does compiler simultaneously support -c and -o options?
23178compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23179
23180# Must we lock files when doing compilation?
23181need_locks=$lt_need_locks
23182
23183# Do we need the lib prefix for modules?
23184need_lib_prefix=$need_lib_prefix
23185
23186# Do we need a version for libraries?
23187need_version=$need_version
23188
23189# Whether dlopen is supported.
23190dlopen_support=$enable_dlopen
23191
23192# Whether dlopen of programs is supported.
23193dlopen_self=$enable_dlopen_self
23194
23195# Whether dlopen of statically linked programs is supported.
23196dlopen_self_static=$enable_dlopen_self_static
23197
23198# Compiler flag to prevent dynamic linking.
23199link_static_flag=$lt_lt_prog_compiler_static_F77
23200
23201# Compiler flag to turn off builtin functions.
23202no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23203
23204# Compiler flag to allow reflexive dlopens.
23205export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23206
23207# Compiler flag to generate shared objects directly from archives.
23208whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23209
23210# Compiler flag to generate thread-safe objects.
23211thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23212
23213# Library versioning type.
23214version_type=$version_type
23215
23216# Format of library name prefix.
23217libname_spec=$lt_libname_spec
23218
23219# List of archive names.  First name is the real one, the rest are links.
23220# The last name is the one that the linker finds with -lNAME.
23221library_names_spec=$lt_library_names_spec
23222
23223# The coded name of the library, if different from the real name.
23224soname_spec=$lt_soname_spec
23225
23226# Commands used to build and install an old-style archive.
23227RANLIB=$lt_RANLIB
23228old_archive_cmds=$lt_old_archive_cmds_F77
23229old_postinstall_cmds=$lt_old_postinstall_cmds
23230old_postuninstall_cmds=$lt_old_postuninstall_cmds
23231
23232# Create an old-style archive from a shared archive.
23233old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23234
23235# Create a temporary old-style archive to link instead of a shared archive.
23236old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23237
23238# Commands used to build and install a shared archive.
23239archive_cmds=$lt_archive_cmds_F77
23240archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23241postinstall_cmds=$lt_postinstall_cmds
23242postuninstall_cmds=$lt_postuninstall_cmds
23243
23244# Commands used to build a loadable module (assumed same as above if empty)
23245module_cmds=$lt_module_cmds_F77
23246module_expsym_cmds=$lt_module_expsym_cmds_F77
23247
23248# Commands to strip libraries.
23249old_striplib=$lt_old_striplib
23250striplib=$lt_striplib
23251
23252# Dependencies to place before the objects being linked to create a
23253# shared library.
23254predep_objects=$lt_predep_objects_F77
23255
23256# Dependencies to place after the objects being linked to create a
23257# shared library.
23258postdep_objects=$lt_postdep_objects_F77
23259
23260# Dependencies to place before the objects being linked to create a
23261# shared library.
23262predeps=$lt_predeps_F77
23263
23264# Dependencies to place after the objects being linked to create a
23265# shared library.
23266postdeps=$lt_postdeps_F77
23267
23268# The library search path used internally by the compiler when linking
23269# a shared library.
23270compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23271
23272# Method to check whether dependent libraries are shared objects.
23273deplibs_check_method=$lt_deplibs_check_method
23274
23275# Command to use when deplibs_check_method == file_magic.
23276file_magic_cmd=$lt_file_magic_cmd
23277
23278# Flag that allows shared libraries with undefined symbols to be built.
23279allow_undefined_flag=$lt_allow_undefined_flag_F77
23280
23281# Flag that forces no undefined symbols.
23282no_undefined_flag=$lt_no_undefined_flag_F77
23283
23284# Commands used to finish a libtool library installation in a directory.
23285finish_cmds=$lt_finish_cmds
23286
23287# Same as above, but a single script fragment to be evaled but not shown.
23288finish_eval=$lt_finish_eval
23289
23290# Take the output of nm and produce a listing of raw symbols and C names.
23291global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23292
23293# Transform the output of nm in a proper C declaration
23294global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23295
23296# Transform the output of nm in a C name address pair
23297global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23298
23299# This is the shared library runtime path variable.
23300runpath_var=$runpath_var
23301
23302# This is the shared library path variable.
23303shlibpath_var=$shlibpath_var
23304
23305# Is shlibpath searched before the hard-coded library search path?
23306shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23307
23308# How to hardcode a shared library path into an executable.
23309hardcode_action=$hardcode_action_F77
23310
23311# Whether we should hardcode library paths into libraries.
23312hardcode_into_libs=$hardcode_into_libs
23313
23314# Flag to hardcode \$libdir into a binary during linking.
23315# This must work even if \$libdir does not exist.
23316hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23317
23318# If ld is used when linking, flag to hardcode \$libdir into
23319# a binary during linking. This must work even if \$libdir does
23320# not exist.
23321hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23322
23323# Whether we need a single -rpath flag with a separated argument.
23324hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23325
23326# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23327# resulting binary.
23328hardcode_direct=$hardcode_direct_F77
23329
23330# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23331# resulting binary.
23332hardcode_minus_L=$hardcode_minus_L_F77
23333
23334# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23335# the resulting binary.
23336hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23337
23338# Set to yes if building a shared library automatically hardcodes DIR into the library
23339# and all subsequent libraries and executables linked against it.
23340hardcode_automatic=$hardcode_automatic_F77
23341
23342# Variables whose values should be saved in libtool wrapper scripts and
23343# restored at relink time.
23344variables_saved_for_relink="$variables_saved_for_relink"
23345
23346# Whether libtool must link a program against all its dependency libraries.
23347link_all_deplibs=$link_all_deplibs_F77
23348
23349# Compile-time system search path for libraries
23350sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23351
23352# Run-time system search path for libraries
23353sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23354
23355# Fix the shell variable \$srcfile for the compiler.
23356fix_srcfile_path="$fix_srcfile_path_F77"
23357
23358# Set to yes if exported symbols are required.
23359always_export_symbols=$always_export_symbols_F77
23360
23361# The commands to list exported symbols.
23362export_symbols_cmds=$lt_export_symbols_cmds_F77
23363
23364# The commands to extract the exported symbol list from a shared archive.
23365extract_expsyms_cmds=$lt_extract_expsyms_cmds
23366
23367# Symbols that should not be listed in the preloaded symbols.
23368exclude_expsyms=$lt_exclude_expsyms_F77
23369
23370# Symbols that must always be exported.
23371include_expsyms=$lt_include_expsyms_F77
23372
23373# ### END LIBTOOL TAG CONFIG: $tagname
23374
23375__EOF__
23376
23377
23378else
23379  # If there is no Makefile yet, we rely on a make rule to execute
23380  # `config.status --recheck' to rerun these tests and create the
23381  # libtool script then.
23382  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23383  if test -f "$ltmain_in"; then
23384    test -f Makefile && make "$ltmain"
23385  fi
23386fi
23387
23388
23389ac_ext=c
23390ac_cpp='$CPP $CPPFLAGS'
23391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23393ac_compiler_gnu=$ac_cv_c_compiler_gnu
23394
23395CC="$lt_save_CC"
23396
23397	else
23398	  tagname=""
23399	fi
23400	;;
23401
23402      GCJ)
23403	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23404	  ac_ext=c
23405ac_cpp='$CPP $CPPFLAGS'
23406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23408ac_compiler_gnu=$ac_cv_c_compiler_gnu
23409
23410
23411# Source file extension for Java test sources.
23412ac_ext=java
23413
23414# Object file extension for compiled Java test sources.
23415objext=o
23416objext_GCJ=$objext
23417
23418# Code to be used in simple compile tests
23419lt_simple_compile_test_code="class foo {}\n"
23420
23421# Code to be used in simple link tests
23422lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23423
23424# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23425
23426# If no C compiler was specified, use CC.
23427LTCC=${LTCC-"$CC"}
23428
23429# If no C compiler flags were specified, use CFLAGS.
23430LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23431
23432# Allow CC to be a program name with arguments.
23433compiler=$CC
23434
23435
23436# save warnings/boilerplate of simple test code
23437ac_outfile=conftest.$ac_objext
23438printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23439eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23440_lt_compiler_boilerplate=`cat conftest.err`
23441$rm conftest*
23442
23443ac_outfile=conftest.$ac_objext
23444printf "$lt_simple_link_test_code" >conftest.$ac_ext
23445eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23446_lt_linker_boilerplate=`cat conftest.err`
23447$rm conftest*
23448
23449
23450# Allow CC to be a program name with arguments.
23451lt_save_CC="$CC"
23452CC=${GCJ-"gcj"}
23453compiler=$CC
23454compiler_GCJ=$CC
23455for cc_temp in $compiler""; do
23456  case $cc_temp in
23457    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23458    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23459    \-*) ;;
23460    *) break;;
23461  esac
23462done
23463cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23464
23465
23466# GCJ did not exist at the time GCC didn't implicitly link libc in.
23467archive_cmds_need_lc_GCJ=no
23468
23469old_archive_cmds_GCJ=$old_archive_cmds
23470
23471
23472lt_prog_compiler_no_builtin_flag_GCJ=
23473
23474if test "$GCC" = yes; then
23475  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23476
23477
23478{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23479echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23480if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23481  echo $ECHO_N "(cached) $ECHO_C" >&6
23482else
23483  lt_cv_prog_compiler_rtti_exceptions=no
23484  ac_outfile=conftest.$ac_objext
23485   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23486   lt_compiler_flag="-fno-rtti -fno-exceptions"
23487   # Insert the option either (1) after the last *FLAGS variable, or
23488   # (2) before a word containing "conftest.", or (3) at the end.
23489   # Note that $ac_compile itself does not contain backslashes and begins
23490   # with a dollar sign (not a hyphen), so the echo should work correctly.
23491   # The option is referenced via a variable to avoid confusing sed.
23492   lt_compile=`echo "$ac_compile" | $SED \
23493   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23494   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23495   -e 's:$: $lt_compiler_flag:'`
23496   (eval echo "\"\$as_me:23496: $lt_compile\"" >&5)
23497   (eval "$lt_compile" 2>conftest.err)
23498   ac_status=$?
23499   cat conftest.err >&5
23500   echo "$as_me:23500: \$? = $ac_status" >&5
23501   if (exit $ac_status) && test -s "$ac_outfile"; then
23502     # The compiler can only warn and ignore the option if not recognized
23503     # So say no if there are warnings other than the usual output.
23504     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23505     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23506     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23507       lt_cv_prog_compiler_rtti_exceptions=yes
23508     fi
23509   fi
23510   $rm conftest*
23511
23512fi
23513{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23514echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23515
23516if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23517    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23518else
23519    :
23520fi
23521
23522fi
23523
23524lt_prog_compiler_wl_GCJ=
23525lt_prog_compiler_pic_GCJ=
23526lt_prog_compiler_static_GCJ=
23527
23528{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23529echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23530
23531  if test "$GCC" = yes; then
23532    lt_prog_compiler_wl_GCJ='-Wl,'
23533    lt_prog_compiler_static_GCJ='-static'
23534
23535    case $host_os in
23536      aix*)
23537      # All AIX code is PIC.
23538      if test "$host_cpu" = ia64; then
23539	# AIX 5 now supports IA64 processor
23540	lt_prog_compiler_static_GCJ='-Bstatic'
23541      fi
23542      ;;
23543
23544    amigaos*)
23545      # FIXME: we need at least 68020 code to build shared libraries, but
23546      # adding the `-m68020' flag to GCC prevents building anything better,
23547      # like `-m68040'.
23548      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23549      ;;
23550
23551    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23552      # PIC is the default for these OSes.
23553      ;;
23554
23555    mingw* | pw32* | os2*)
23556      # This hack is so that the source file can tell whether it is being
23557      # built for inclusion in a dll (and should export symbols for example).
23558      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23559      ;;
23560
23561    darwin* | rhapsody*)
23562      # PIC is the default on this platform
23563      # Common symbols not allowed in MH_DYLIB files
23564      lt_prog_compiler_pic_GCJ='-fno-common'
23565      ;;
23566
23567    interix3*)
23568      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23569      # Instead, we relocate shared libraries at runtime.
23570      ;;
23571
23572    msdosdjgpp*)
23573      # Just because we use GCC doesn't mean we suddenly get shared libraries
23574      # on systems that don't support them.
23575      lt_prog_compiler_can_build_shared_GCJ=no
23576      enable_shared=no
23577      ;;
23578
23579    sysv4*MP*)
23580      if test -d /usr/nec; then
23581	lt_prog_compiler_pic_GCJ=-Kconform_pic
23582      fi
23583      ;;
23584
23585    hpux*)
23586      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23587      # not for PA HP-UX.
23588      case $host_cpu in
23589      hppa*64*|ia64*)
23590	# +Z the default
23591	;;
23592      *)
23593	lt_prog_compiler_pic_GCJ='-fPIC'
23594	;;
23595      esac
23596      ;;
23597
23598    *)
23599      lt_prog_compiler_pic_GCJ='-fPIC'
23600      ;;
23601    esac
23602  else
23603    # PORTME Check for flag to pass linker flags through the system compiler.
23604    case $host_os in
23605    aix*)
23606      lt_prog_compiler_wl_GCJ='-Wl,'
23607      if test "$host_cpu" = ia64; then
23608	# AIX 5 now supports IA64 processor
23609	lt_prog_compiler_static_GCJ='-Bstatic'
23610      else
23611	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23612      fi
23613      ;;
23614      darwin*)
23615        # PIC is the default on this platform
23616        # Common symbols not allowed in MH_DYLIB files
23617       case $cc_basename in
23618         xlc*)
23619         lt_prog_compiler_pic_GCJ='-qnocommon'
23620         lt_prog_compiler_wl_GCJ='-Wl,'
23621         ;;
23622       esac
23623       ;;
23624
23625    mingw* | pw32* | os2*)
23626      # This hack is so that the source file can tell whether it is being
23627      # built for inclusion in a dll (and should export symbols for example).
23628      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23629      ;;
23630
23631    hpux9* | hpux10* | hpux11*)
23632      lt_prog_compiler_wl_GCJ='-Wl,'
23633      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23634      # not for PA HP-UX.
23635      case $host_cpu in
23636      hppa*64*|ia64*)
23637	# +Z the default
23638	;;
23639      *)
23640	lt_prog_compiler_pic_GCJ='+Z'
23641	;;
23642      esac
23643      # Is there a better lt_prog_compiler_static that works with the bundled CC?
23644      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23645      ;;
23646
23647    irix5* | irix6* | nonstopux*)
23648      lt_prog_compiler_wl_GCJ='-Wl,'
23649      # PIC (with -KPIC) is the default.
23650      lt_prog_compiler_static_GCJ='-non_shared'
23651      ;;
23652
23653    newsos6)
23654      lt_prog_compiler_pic_GCJ='-KPIC'
23655      lt_prog_compiler_static_GCJ='-Bstatic'
23656      ;;
23657
23658    linux*)
23659      case $cc_basename in
23660      icc* | ecc*)
23661	lt_prog_compiler_wl_GCJ='-Wl,'
23662	lt_prog_compiler_pic_GCJ='-KPIC'
23663	lt_prog_compiler_static_GCJ='-static'
23664        ;;
23665      pgcc* | pgf77* | pgf90* | pgf95*)
23666        # Portland Group compilers (*not* the Pentium gcc compiler,
23667	# which looks to be a dead project)
23668	lt_prog_compiler_wl_GCJ='-Wl,'
23669	lt_prog_compiler_pic_GCJ='-fpic'
23670	lt_prog_compiler_static_GCJ='-Bstatic'
23671        ;;
23672      ccc*)
23673        lt_prog_compiler_wl_GCJ='-Wl,'
23674        # All Alpha code is PIC.
23675        lt_prog_compiler_static_GCJ='-non_shared'
23676        ;;
23677      esac
23678      ;;
23679
23680    osf3* | osf4* | osf5*)
23681      lt_prog_compiler_wl_GCJ='-Wl,'
23682      # All OSF/1 code is PIC.
23683      lt_prog_compiler_static_GCJ='-non_shared'
23684      ;;
23685
23686    solaris*)
23687      lt_prog_compiler_pic_GCJ='-KPIC'
23688      lt_prog_compiler_static_GCJ='-Bstatic'
23689      case $cc_basename in
23690      f77* | f90* | f95*)
23691	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23692      *)
23693	lt_prog_compiler_wl_GCJ='-Wl,';;
23694      esac
23695      ;;
23696
23697    sunos4*)
23698      lt_prog_compiler_wl_GCJ='-Qoption ld '
23699      lt_prog_compiler_pic_GCJ='-PIC'
23700      lt_prog_compiler_static_GCJ='-Bstatic'
23701      ;;
23702
23703    sysv4 | sysv4.2uw2* | sysv4.3*)
23704      lt_prog_compiler_wl_GCJ='-Wl,'
23705      lt_prog_compiler_pic_GCJ='-KPIC'
23706      lt_prog_compiler_static_GCJ='-Bstatic'
23707      ;;
23708
23709    sysv4*MP*)
23710      if test -d /usr/nec ;then
23711	lt_prog_compiler_pic_GCJ='-Kconform_pic'
23712	lt_prog_compiler_static_GCJ='-Bstatic'
23713      fi
23714      ;;
23715
23716    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23717      lt_prog_compiler_wl_GCJ='-Wl,'
23718      lt_prog_compiler_pic_GCJ='-KPIC'
23719      lt_prog_compiler_static_GCJ='-Bstatic'
23720      ;;
23721
23722    unicos*)
23723      lt_prog_compiler_wl_GCJ='-Wl,'
23724      lt_prog_compiler_can_build_shared_GCJ=no
23725      ;;
23726
23727    uts4*)
23728      lt_prog_compiler_pic_GCJ='-pic'
23729      lt_prog_compiler_static_GCJ='-Bstatic'
23730      ;;
23731
23732    *)
23733      lt_prog_compiler_can_build_shared_GCJ=no
23734      ;;
23735    esac
23736  fi
23737
23738{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23739echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23740
23741#
23742# Check to make sure the PIC flag actually works.
23743#
23744if test -n "$lt_prog_compiler_pic_GCJ"; then
23745
23746{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23747echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23748if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23749  echo $ECHO_N "(cached) $ECHO_C" >&6
23750else
23751  lt_prog_compiler_pic_works_GCJ=no
23752  ac_outfile=conftest.$ac_objext
23753   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23754   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23755   # Insert the option either (1) after the last *FLAGS variable, or
23756   # (2) before a word containing "conftest.", or (3) at the end.
23757   # Note that $ac_compile itself does not contain backslashes and begins
23758   # with a dollar sign (not a hyphen), so the echo should work correctly.
23759   # The option is referenced via a variable to avoid confusing sed.
23760   lt_compile=`echo "$ac_compile" | $SED \
23761   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23762   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23763   -e 's:$: $lt_compiler_flag:'`
23764   (eval echo "\"\$as_me:23764: $lt_compile\"" >&5)
23765   (eval "$lt_compile" 2>conftest.err)
23766   ac_status=$?
23767   cat conftest.err >&5
23768   echo "$as_me:23768: \$? = $ac_status" >&5
23769   if (exit $ac_status) && test -s "$ac_outfile"; then
23770     # The compiler can only warn and ignore the option if not recognized
23771     # So say no if there are warnings other than the usual output.
23772     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23773     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23774     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23775       lt_prog_compiler_pic_works_GCJ=yes
23776     fi
23777   fi
23778   $rm conftest*
23779
23780fi
23781{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23782echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23783
23784if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23785    case $lt_prog_compiler_pic_GCJ in
23786     "" | " "*) ;;
23787     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23788     esac
23789else
23790    lt_prog_compiler_pic_GCJ=
23791     lt_prog_compiler_can_build_shared_GCJ=no
23792fi
23793
23794fi
23795case $host_os in
23796  # For platforms which do not support PIC, -DPIC is meaningless:
23797  *djgpp*)
23798    lt_prog_compiler_pic_GCJ=
23799    ;;
23800  *)
23801    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23802    ;;
23803esac
23804
23805#
23806# Check to make sure the static flag actually works.
23807#
23808wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23809{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23810echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23811if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23812  echo $ECHO_N "(cached) $ECHO_C" >&6
23813else
23814  lt_prog_compiler_static_works_GCJ=no
23815   save_LDFLAGS="$LDFLAGS"
23816   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23817   printf "$lt_simple_link_test_code" > conftest.$ac_ext
23818   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23819     # The linker can only warn and ignore the option if not recognized
23820     # So say no if there are warnings
23821     if test -s conftest.err; then
23822       # Append any errors to the config.log.
23823       cat conftest.err 1>&5
23824       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23825       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23826       if diff conftest.exp conftest.er2 >/dev/null; then
23827         lt_prog_compiler_static_works_GCJ=yes
23828       fi
23829     else
23830       lt_prog_compiler_static_works_GCJ=yes
23831     fi
23832   fi
23833   $rm conftest*
23834   LDFLAGS="$save_LDFLAGS"
23835
23836fi
23837{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23838echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23839
23840if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23841    :
23842else
23843    lt_prog_compiler_static_GCJ=
23844fi
23845
23846
23847{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23848echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23849if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23850  echo $ECHO_N "(cached) $ECHO_C" >&6
23851else
23852  lt_cv_prog_compiler_c_o_GCJ=no
23853   $rm -r conftest 2>/dev/null
23854   mkdir conftest
23855   cd conftest
23856   mkdir out
23857   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23858
23859   lt_compiler_flag="-o out/conftest2.$ac_objext"
23860   # Insert the option either (1) after the last *FLAGS variable, or
23861   # (2) before a word containing "conftest.", or (3) at the end.
23862   # Note that $ac_compile itself does not contain backslashes and begins
23863   # with a dollar sign (not a hyphen), so the echo should work correctly.
23864   lt_compile=`echo "$ac_compile" | $SED \
23865   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23866   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23867   -e 's:$: $lt_compiler_flag:'`
23868   (eval echo "\"\$as_me:23868: $lt_compile\"" >&5)
23869   (eval "$lt_compile" 2>out/conftest.err)
23870   ac_status=$?
23871   cat out/conftest.err >&5
23872   echo "$as_me:23872: \$? = $ac_status" >&5
23873   if (exit $ac_status) && test -s out/conftest2.$ac_objext
23874   then
23875     # The compiler can only warn and ignore the option if not recognized
23876     # So say no if there are warnings
23877     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23878     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23879     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23880       lt_cv_prog_compiler_c_o_GCJ=yes
23881     fi
23882   fi
23883   chmod u+w . 2>&5
23884   $rm conftest*
23885   # SGI C++ compiler will create directory out/ii_files/ for
23886   # template instantiation
23887   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23888   $rm out/* && rmdir out
23889   cd ..
23890   rmdir conftest
23891   $rm conftest*
23892
23893fi
23894{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23895echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23896
23897
23898hard_links="nottested"
23899if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23900  # do not overwrite the value of need_locks provided by the user
23901  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23902echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23903  hard_links=yes
23904  $rm conftest*
23905  ln conftest.a conftest.b 2>/dev/null && hard_links=no
23906  touch conftest.a
23907  ln conftest.a conftest.b 2>&5 || hard_links=no
23908  ln conftest.a conftest.b 2>/dev/null && hard_links=no
23909  { echo "$as_me:$LINENO: result: $hard_links" >&5
23910echo "${ECHO_T}$hard_links" >&6; }
23911  if test "$hard_links" = no; then
23912    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23913echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23914    need_locks=warn
23915  fi
23916else
23917  need_locks=no
23918fi
23919
23920{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23921echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23922
23923  runpath_var=
23924  allow_undefined_flag_GCJ=
23925  enable_shared_with_static_runtimes_GCJ=no
23926  archive_cmds_GCJ=
23927  archive_expsym_cmds_GCJ=
23928  old_archive_From_new_cmds_GCJ=
23929  old_archive_from_expsyms_cmds_GCJ=
23930  export_dynamic_flag_spec_GCJ=
23931  whole_archive_flag_spec_GCJ=
23932  thread_safe_flag_spec_GCJ=
23933  hardcode_libdir_flag_spec_GCJ=
23934  hardcode_libdir_flag_spec_ld_GCJ=
23935  hardcode_libdir_separator_GCJ=
23936  hardcode_direct_GCJ=no
23937  hardcode_minus_L_GCJ=no
23938  hardcode_shlibpath_var_GCJ=unsupported
23939  link_all_deplibs_GCJ=unknown
23940  hardcode_automatic_GCJ=no
23941  module_cmds_GCJ=
23942  module_expsym_cmds_GCJ=
23943  always_export_symbols_GCJ=no
23944  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23945  # include_expsyms should be a list of space-separated symbols to be *always*
23946  # included in the symbol list
23947  include_expsyms_GCJ=
23948  # exclude_expsyms can be an extended regexp of symbols to exclude
23949  # it will be wrapped by ` (' and `)$', so one must not match beginning or
23950  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23951  # as well as any symbol that contains `d'.
23952  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23953  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23954  # platforms (ab)use it in PIC code, but their linkers get confused if
23955  # the symbol is explicitly referenced.  Since portable code cannot
23956  # rely on this symbol name, it's probably fine to never include it in
23957  # preloaded symbol tables.
23958  extract_expsyms_cmds=
23959  # Just being paranoid about ensuring that cc_basename is set.
23960  for cc_temp in $compiler""; do
23961  case $cc_temp in
23962    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23963    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23964    \-*) ;;
23965    *) break;;
23966  esac
23967done
23968cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23969
23970  case $host_os in
23971  cygwin* | mingw* | pw32*)
23972    # FIXME: the MSVC++ port hasn't been tested in a loooong time
23973    # When not using gcc, we currently assume that we are using
23974    # Microsoft Visual C++.
23975    if test "$GCC" != yes; then
23976      with_gnu_ld=no
23977    fi
23978    ;;
23979  interix*)
23980    # we just hope/assume this is gcc and not c89 (= MSVC++)
23981    with_gnu_ld=yes
23982    ;;
23983  openbsd*)
23984    with_gnu_ld=no
23985    ;;
23986  esac
23987
23988  ld_shlibs_GCJ=yes
23989  if test "$with_gnu_ld" = yes; then
23990    # If archive_cmds runs LD, not CC, wlarc should be empty
23991    wlarc='${wl}'
23992
23993    # Set some defaults for GNU ld with shared library support. These
23994    # are reset later if shared libraries are not supported. Putting them
23995    # here allows them to be overridden if necessary.
23996    runpath_var=LD_RUN_PATH
23997    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23998    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23999    # ancient GNU ld didn't support --whole-archive et. al.
24000    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24001	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24002      else
24003  	whole_archive_flag_spec_GCJ=
24004    fi
24005    supports_anon_versioning=no
24006    case `$LD -v 2>/dev/null` in
24007      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24008      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24009      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24010      *\ 2.11.*) ;; # other 2.11 versions
24011      *) supports_anon_versioning=yes ;;
24012    esac
24013
24014    # See if GNU ld supports shared libraries.
24015    case $host_os in
24016    aix3* | aix4* | aix5*)
24017      # On AIX/PPC, the GNU linker is very broken
24018      if test "$host_cpu" != ia64; then
24019	ld_shlibs_GCJ=no
24020	cat <<EOF 1>&2
24021
24022*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24023*** to be unable to reliably create shared libraries on AIX.
24024*** Therefore, libtool is disabling shared libraries support.  If you
24025*** really care for shared libraries, you may want to modify your PATH
24026*** so that a non-GNU linker is found, and then restart.
24027
24028EOF
24029      fi
24030      ;;
24031
24032    amigaos*)
24033      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)'
24034      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24035      hardcode_minus_L_GCJ=yes
24036
24037      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24038      # that the semantics of dynamic libraries on AmigaOS, at least up
24039      # to version 4, is to share data among multiple programs linked
24040      # with the same dynamic library.  Since this doesn't match the
24041      # behavior of shared libraries on other platforms, we can't use
24042      # them.
24043      ld_shlibs_GCJ=no
24044      ;;
24045
24046    beos*)
24047      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24048	allow_undefined_flag_GCJ=unsupported
24049	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24050	# support --undefined.  This deserves some investigation.  FIXME
24051	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24052      else
24053	ld_shlibs_GCJ=no
24054      fi
24055      ;;
24056
24057    cygwin* | mingw* | pw32*)
24058      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24059      # as there is no search path for DLLs.
24060      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24061      allow_undefined_flag_GCJ=unsupported
24062      always_export_symbols_GCJ=no
24063      enable_shared_with_static_runtimes_GCJ=yes
24064      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24065
24066      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24067        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24068	# If the export-symbols file already is a .def file (1st line
24069	# is EXPORTS), use it as is; otherwise, prepend...
24070	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24071	  cp $export_symbols $output_objdir/$soname.def;
24072	else
24073	  echo EXPORTS > $output_objdir/$soname.def;
24074	  cat $export_symbols >> $output_objdir/$soname.def;
24075	fi~
24076	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24077      else
24078	ld_shlibs_GCJ=no
24079      fi
24080      ;;
24081
24082    interix3*)
24083      hardcode_direct_GCJ=no
24084      hardcode_shlibpath_var_GCJ=no
24085      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24086      export_dynamic_flag_spec_GCJ='${wl}-E'
24087      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24088      # Instead, shared libraries are loaded at an image base (0x10000000 by
24089      # default) and relocated if they conflict, which is a slow very memory
24090      # consuming and fragmenting process.  To avoid this, we pick a random,
24091      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24092      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24093      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'
24094      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'
24095      ;;
24096
24097    linux*)
24098      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24099	tmp_addflag=
24100	case $cc_basename,$host_cpu in
24101	pgcc*)				# Portland Group C compiler
24102	  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'
24103	  tmp_addflag=' $pic_flag'
24104	  ;;
24105	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
24106	  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'
24107	  tmp_addflag=' $pic_flag -Mnomain' ;;
24108	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
24109	  tmp_addflag=' -i_dynamic' ;;
24110	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
24111	  tmp_addflag=' -i_dynamic -nofor_main' ;;
24112	ifc* | ifort*)			# Intel Fortran compiler
24113	  tmp_addflag=' -nofor_main' ;;
24114	esac
24115	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24116
24117	if test $supports_anon_versioning = yes; then
24118	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24119  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24120  $echo "local: *; };" >> $output_objdir/$libname.ver~
24121	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24122	fi
24123      else
24124	ld_shlibs_GCJ=no
24125      fi
24126      ;;
24127
24128    netbsd*)
24129      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24130	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24131	wlarc=
24132      else
24133	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24134	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24135      fi
24136      ;;
24137
24138    solaris*)
24139      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24140	ld_shlibs_GCJ=no
24141	cat <<EOF 1>&2
24142
24143*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24144*** create shared libraries on Solaris systems.  Therefore, libtool
24145*** is disabling shared libraries support.  We urge you to upgrade GNU
24146*** binutils to release 2.9.1 or newer.  Another option is to modify
24147*** your PATH or compiler configuration so that the native linker is
24148*** used, and then restart.
24149
24150EOF
24151      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24152	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24153	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24154      else
24155	ld_shlibs_GCJ=no
24156      fi
24157      ;;
24158
24159    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24160      case `$LD -v 2>&1` in
24161        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24162	ld_shlibs_GCJ=no
24163	cat <<_LT_EOF 1>&2
24164
24165*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24166*** reliably create shared libraries on SCO systems.  Therefore, libtool
24167*** is disabling shared libraries support.  We urge you to upgrade GNU
24168*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24169*** your PATH or compiler configuration so that the native linker is
24170*** used, and then restart.
24171
24172_LT_EOF
24173	;;
24174	*)
24175	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24176	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24177	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24178	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24179	  else
24180	    ld_shlibs_GCJ=no
24181	  fi
24182	;;
24183      esac
24184      ;;
24185
24186    sunos4*)
24187      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24188      wlarc=
24189      hardcode_direct_GCJ=yes
24190      hardcode_shlibpath_var_GCJ=no
24191      ;;
24192
24193    *)
24194      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24195	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24196	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24197      else
24198	ld_shlibs_GCJ=no
24199      fi
24200      ;;
24201    esac
24202
24203    if test "$ld_shlibs_GCJ" = no; then
24204      runpath_var=
24205      hardcode_libdir_flag_spec_GCJ=
24206      export_dynamic_flag_spec_GCJ=
24207      whole_archive_flag_spec_GCJ=
24208    fi
24209  else
24210    # PORTME fill in a description of your system's linker (not GNU ld)
24211    case $host_os in
24212    aix3*)
24213      allow_undefined_flag_GCJ=unsupported
24214      always_export_symbols_GCJ=yes
24215      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'
24216      # Note: this linker hardcodes the directories in LIBPATH if there
24217      # are no directories specified by -L.
24218      hardcode_minus_L_GCJ=yes
24219      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24220	# Neither direct hardcoding nor static linking is supported with a
24221	# broken collect2.
24222	hardcode_direct_GCJ=unsupported
24223      fi
24224      ;;
24225
24226    aix4* | aix5*)
24227      if test "$host_cpu" = ia64; then
24228	# On IA64, the linker does run time linking by default, so we don't
24229	# have to do anything special.
24230	aix_use_runtimelinking=no
24231	exp_sym_flag='-Bexport'
24232	no_entry_flag=""
24233      else
24234	# If we're using GNU nm, then we don't want the "-C" option.
24235	# -C means demangle to AIX nm, but means don't demangle with GNU nm
24236	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24237	  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'
24238	else
24239	  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'
24240	fi
24241	aix_use_runtimelinking=no
24242
24243	# Test if we are trying to use run time linking or normal
24244	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
24245	# need to do runtime linking.
24246	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24247	  for ld_flag in $LDFLAGS; do
24248  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24249  	    aix_use_runtimelinking=yes
24250  	    break
24251  	  fi
24252	  done
24253	  ;;
24254	esac
24255
24256	exp_sym_flag='-bexport'
24257	no_entry_flag='-bnoentry'
24258      fi
24259
24260      # When large executables or shared objects are built, AIX ld can
24261      # have problems creating the table of contents.  If linking a library
24262      # or program results in "error TOC overflow" add -mminimal-toc to
24263      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24264      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24265
24266      archive_cmds_GCJ=''
24267      hardcode_direct_GCJ=yes
24268      hardcode_libdir_separator_GCJ=':'
24269      link_all_deplibs_GCJ=yes
24270
24271      if test "$GCC" = yes; then
24272	case $host_os in aix4.[012]|aix4.[012].*)
24273	# We only want to do this on AIX 4.2 and lower, the check
24274	# below for broken collect2 doesn't work under 4.3+
24275	  collect2name=`${CC} -print-prog-name=collect2`
24276	  if test -f "$collect2name" && \
24277  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
24278	  then
24279  	  # We have reworked collect2
24280  	  hardcode_direct_GCJ=yes
24281	  else
24282  	  # We have old collect2
24283  	  hardcode_direct_GCJ=unsupported
24284  	  # It fails to find uninstalled libraries when the uninstalled
24285  	  # path is not listed in the libpath.  Setting hardcode_minus_L
24286  	  # to unsupported forces relinking
24287  	  hardcode_minus_L_GCJ=yes
24288  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
24289  	  hardcode_libdir_separator_GCJ=
24290	  fi
24291	  ;;
24292	esac
24293	shared_flag='-shared'
24294	if test "$aix_use_runtimelinking" = yes; then
24295	  shared_flag="$shared_flag "'${wl}-G'
24296	fi
24297      else
24298	# not using gcc
24299	if test "$host_cpu" = ia64; then
24300  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24301  	# chokes on -Wl,-G. The following line is correct:
24302	  shared_flag='-G'
24303	else
24304	  if test "$aix_use_runtimelinking" = yes; then
24305	    shared_flag='${wl}-G'
24306	  else
24307	    shared_flag='${wl}-bM:SRE'
24308	  fi
24309	fi
24310      fi
24311
24312      # It seems that -bexpall does not export symbols beginning with
24313      # underscore (_), so it is better to generate a list of symbols to export.
24314      always_export_symbols_GCJ=yes
24315      if test "$aix_use_runtimelinking" = yes; then
24316	# Warning - without using the other runtime loading flags (-brtl),
24317	# -berok will link without error, but may produce a broken library.
24318	allow_undefined_flag_GCJ='-berok'
24319       # Determine the default libpath from the value encoded in an empty executable.
24320       cat >conftest.$ac_ext <<_ACEOF
24321/* confdefs.h.  */
24322_ACEOF
24323cat confdefs.h >>conftest.$ac_ext
24324cat >>conftest.$ac_ext <<_ACEOF
24325/* end confdefs.h.  */
24326
24327int
24328main ()
24329{
24330
24331  ;
24332  return 0;
24333}
24334_ACEOF
24335rm -f conftest.$ac_objext conftest$ac_exeext
24336if { (ac_try="$ac_link"
24337case "(($ac_try" in
24338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24339  *) ac_try_echo=$ac_try;;
24340esac
24341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24342  (eval "$ac_link") 2>conftest.er1
24343  ac_status=$?
24344  grep -v '^ *+' conftest.er1 >conftest.err
24345  rm -f conftest.er1
24346  cat conftest.err >&5
24347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348  (exit $ac_status); } &&
24349	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24350  { (case "(($ac_try" in
24351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24352  *) ac_try_echo=$ac_try;;
24353esac
24354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24355  (eval "$ac_try") 2>&5
24356  ac_status=$?
24357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24358  (exit $ac_status); }; } &&
24359	 { ac_try='test -s conftest$ac_exeext'
24360  { (case "(($ac_try" in
24361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24362  *) ac_try_echo=$ac_try;;
24363esac
24364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24365  (eval "$ac_try") 2>&5
24366  ac_status=$?
24367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24368  (exit $ac_status); }; }; then
24369
24370aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24371}'`
24372# Check for a 64-bit object if we didn't find anything.
24373if 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; }
24374}'`; fi
24375else
24376  echo "$as_me: failed program was:" >&5
24377sed 's/^/| /' conftest.$ac_ext >&5
24378
24379
24380fi
24381
24382rm -f core conftest.err conftest.$ac_objext \
24383      conftest$ac_exeext conftest.$ac_ext
24384if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24385
24386       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24387	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"
24388       else
24389	if test "$host_cpu" = ia64; then
24390	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24391	  allow_undefined_flag_GCJ="-z nodefs"
24392	  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"
24393	else
24394	 # Determine the default libpath from the value encoded in an empty executable.
24395	 cat >conftest.$ac_ext <<_ACEOF
24396/* confdefs.h.  */
24397_ACEOF
24398cat confdefs.h >>conftest.$ac_ext
24399cat >>conftest.$ac_ext <<_ACEOF
24400/* end confdefs.h.  */
24401
24402int
24403main ()
24404{
24405
24406  ;
24407  return 0;
24408}
24409_ACEOF
24410rm -f conftest.$ac_objext conftest$ac_exeext
24411if { (ac_try="$ac_link"
24412case "(($ac_try" in
24413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24414  *) ac_try_echo=$ac_try;;
24415esac
24416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24417  (eval "$ac_link") 2>conftest.er1
24418  ac_status=$?
24419  grep -v '^ *+' conftest.er1 >conftest.err
24420  rm -f conftest.er1
24421  cat conftest.err >&5
24422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423  (exit $ac_status); } &&
24424	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24425  { (case "(($ac_try" in
24426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24427  *) ac_try_echo=$ac_try;;
24428esac
24429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24430  (eval "$ac_try") 2>&5
24431  ac_status=$?
24432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433  (exit $ac_status); }; } &&
24434	 { ac_try='test -s conftest$ac_exeext'
24435  { (case "(($ac_try" in
24436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24437  *) ac_try_echo=$ac_try;;
24438esac
24439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24440  (eval "$ac_try") 2>&5
24441  ac_status=$?
24442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443  (exit $ac_status); }; }; then
24444
24445aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24446}'`
24447# Check for a 64-bit object if we didn't find anything.
24448if 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; }
24449}'`; fi
24450else
24451  echo "$as_me: failed program was:" >&5
24452sed 's/^/| /' conftest.$ac_ext >&5
24453
24454
24455fi
24456
24457rm -f core conftest.err conftest.$ac_objext \
24458      conftest$ac_exeext conftest.$ac_ext
24459if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24460
24461	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24462	  # Warning - without using the other run time loading flags,
24463	  # -berok will link without error, but may produce a broken library.
24464	  no_undefined_flag_GCJ=' ${wl}-bernotok'
24465	  allow_undefined_flag_GCJ=' ${wl}-berok'
24466	  # Exported symbols can be pulled into shared objects from archives
24467	  whole_archive_flag_spec_GCJ='$convenience'
24468	  archive_cmds_need_lc_GCJ=yes
24469	  # This is similar to how AIX traditionally builds its shared libraries.
24470	  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'
24471	fi
24472      fi
24473      ;;
24474
24475    amigaos*)
24476      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)'
24477      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24478      hardcode_minus_L_GCJ=yes
24479      # see comment about different semantics on the GNU ld section
24480      ld_shlibs_GCJ=no
24481      ;;
24482
24483    bsdi[45]*)
24484      export_dynamic_flag_spec_GCJ=-rdynamic
24485      ;;
24486
24487    cygwin* | mingw* | pw32*)
24488      # When not using gcc, we currently assume that we are using
24489      # Microsoft Visual C++.
24490      # hardcode_libdir_flag_spec is actually meaningless, as there is
24491      # no search path for DLLs.
24492      hardcode_libdir_flag_spec_GCJ=' '
24493      allow_undefined_flag_GCJ=unsupported
24494      # Tell ltmain to make .lib files, not .a files.
24495      libext=lib
24496      # Tell ltmain to make .dll files, not .so files.
24497      shrext_cmds=".dll"
24498      # FIXME: Setting linknames here is a bad hack.
24499      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24500      # The linker will automatically build a .lib file if we build a DLL.
24501      old_archive_From_new_cmds_GCJ='true'
24502      # FIXME: Should let the user specify the lib program.
24503      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24504      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24505      enable_shared_with_static_runtimes_GCJ=yes
24506      ;;
24507
24508    darwin* | rhapsody*)
24509      case $host_os in
24510        rhapsody* | darwin1.[012])
24511         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24512         ;;
24513       *) # Darwin 1.3 on
24514         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24515           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24516         else
24517           case ${MACOSX_DEPLOYMENT_TARGET} in
24518             10.[012])
24519               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24520               ;;
24521             10.*)
24522               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24523               ;;
24524           esac
24525         fi
24526         ;;
24527      esac
24528      archive_cmds_need_lc_GCJ=no
24529      hardcode_direct_GCJ=no
24530      hardcode_automatic_GCJ=yes
24531      hardcode_shlibpath_var_GCJ=unsupported
24532      whole_archive_flag_spec_GCJ=''
24533      link_all_deplibs_GCJ=yes
24534    if test "$GCC" = yes ; then
24535    	output_verbose_link_cmd='echo'
24536        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24537      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24538      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24539      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}'
24540      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}'
24541    else
24542      case $cc_basename in
24543        xlc*)
24544         output_verbose_link_cmd='echo'
24545         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24546         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24547          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24548         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}'
24549          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}'
24550          ;;
24551       *)
24552         ld_shlibs_GCJ=no
24553          ;;
24554      esac
24555    fi
24556      ;;
24557
24558    dgux*)
24559      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24560      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24561      hardcode_shlibpath_var_GCJ=no
24562      ;;
24563
24564    freebsd1*)
24565      ld_shlibs_GCJ=no
24566      ;;
24567
24568    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24569    # support.  Future versions do this automatically, but an explicit c++rt0.o
24570    # does not break anything, and helps significantly (at the cost of a little
24571    # extra space).
24572    freebsd2.2*)
24573      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24574      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24575      hardcode_direct_GCJ=yes
24576      hardcode_shlibpath_var_GCJ=no
24577      ;;
24578
24579    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24580    freebsd2*)
24581      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24582      hardcode_direct_GCJ=yes
24583      hardcode_minus_L_GCJ=yes
24584      hardcode_shlibpath_var_GCJ=no
24585      ;;
24586
24587    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24588    freebsd* | kfreebsd*-gnu | dragonfly*)
24589      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24590      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24591      hardcode_direct_GCJ=yes
24592      hardcode_shlibpath_var_GCJ=no
24593      ;;
24594
24595    hpux9*)
24596      if test "$GCC" = yes; then
24597	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'
24598      else
24599	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'
24600      fi
24601      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24602      hardcode_libdir_separator_GCJ=:
24603      hardcode_direct_GCJ=yes
24604
24605      # hardcode_minus_L: Not really in the search PATH,
24606      # but as the default location of the library.
24607      hardcode_minus_L_GCJ=yes
24608      export_dynamic_flag_spec_GCJ='${wl}-E'
24609      ;;
24610
24611    hpux10*)
24612      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24613	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24614      else
24615	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24616      fi
24617      if test "$with_gnu_ld" = no; then
24618	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24619	hardcode_libdir_separator_GCJ=:
24620
24621	hardcode_direct_GCJ=yes
24622	export_dynamic_flag_spec_GCJ='${wl}-E'
24623
24624	# hardcode_minus_L: Not really in the search PATH,
24625	# but as the default location of the library.
24626	hardcode_minus_L_GCJ=yes
24627      fi
24628      ;;
24629
24630    hpux11*)
24631      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24632	case $host_cpu in
24633	hppa*64*)
24634	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24635	  ;;
24636	ia64*)
24637	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24638	  ;;
24639	*)
24640	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24641	  ;;
24642	esac
24643      else
24644	case $host_cpu in
24645	hppa*64*)
24646	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24647	  ;;
24648	ia64*)
24649	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24650	  ;;
24651	*)
24652	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24653	  ;;
24654	esac
24655      fi
24656      if test "$with_gnu_ld" = no; then
24657	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24658	hardcode_libdir_separator_GCJ=:
24659
24660	case $host_cpu in
24661	hppa*64*|ia64*)
24662	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24663	  hardcode_direct_GCJ=no
24664	  hardcode_shlibpath_var_GCJ=no
24665	  ;;
24666	*)
24667	  hardcode_direct_GCJ=yes
24668	  export_dynamic_flag_spec_GCJ='${wl}-E'
24669
24670	  # hardcode_minus_L: Not really in the search PATH,
24671	  # but as the default location of the library.
24672	  hardcode_minus_L_GCJ=yes
24673	  ;;
24674	esac
24675      fi
24676      ;;
24677
24678    irix5* | irix6* | nonstopux*)
24679      if test "$GCC" = yes; then
24680	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'
24681      else
24682	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'
24683	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24684      fi
24685      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24686      hardcode_libdir_separator_GCJ=:
24687      link_all_deplibs_GCJ=yes
24688      ;;
24689
24690    netbsd*)
24691      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24692	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24693      else
24694	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24695      fi
24696      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24697      hardcode_direct_GCJ=yes
24698      hardcode_shlibpath_var_GCJ=no
24699      ;;
24700
24701    newsos6)
24702      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24703      hardcode_direct_GCJ=yes
24704      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24705      hardcode_libdir_separator_GCJ=:
24706      hardcode_shlibpath_var_GCJ=no
24707      ;;
24708
24709    openbsd*)
24710      hardcode_direct_GCJ=yes
24711      hardcode_shlibpath_var_GCJ=no
24712      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24713	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24714	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24715	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24716	export_dynamic_flag_spec_GCJ='${wl}-E'
24717      else
24718       case $host_os in
24719	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24720	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24721	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
24722	   ;;
24723	 *)
24724	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24725	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24726	   ;;
24727       esac
24728      fi
24729      ;;
24730
24731    os2*)
24732      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24733      hardcode_minus_L_GCJ=yes
24734      allow_undefined_flag_GCJ=unsupported
24735      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'
24736      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24737      ;;
24738
24739    osf3*)
24740      if test "$GCC" = yes; then
24741	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24742	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'
24743      else
24744	allow_undefined_flag_GCJ=' -expect_unresolved \*'
24745	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'
24746      fi
24747      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24748      hardcode_libdir_separator_GCJ=:
24749      ;;
24750
24751    osf4* | osf5*)	# as osf3* with the addition of -msym flag
24752      if test "$GCC" = yes; then
24753	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24754	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'
24755	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24756      else
24757	allow_undefined_flag_GCJ=' -expect_unresolved \*'
24758	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'
24759	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~
24760	$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'
24761
24762	# Both c and cxx compiler support -rpath directly
24763	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24764      fi
24765      hardcode_libdir_separator_GCJ=:
24766      ;;
24767
24768    solaris*)
24769      no_undefined_flag_GCJ=' -z text'
24770      if test "$GCC" = yes; then
24771	wlarc='${wl}'
24772	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24773	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24774	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24775      else
24776	wlarc=''
24777	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24778	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24779  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24780      fi
24781      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24782      hardcode_shlibpath_var_GCJ=no
24783      case $host_os in
24784      solaris2.[0-5] | solaris2.[0-5].*) ;;
24785      *)
24786 	# The compiler driver will combine linker options so we
24787 	# cannot just pass the convience library names through
24788 	# without $wl, iff we do not link with $LD.
24789 	# Luckily, gcc supports the same syntax we need for Sun Studio.
24790 	# Supported since Solaris 2.6 (maybe 2.5.1?)
24791 	case $wlarc in
24792 	'')
24793 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24794 	*)
24795 	  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' ;;
24796 	esac ;;
24797      esac
24798      link_all_deplibs_GCJ=yes
24799      ;;
24800
24801    sunos4*)
24802      if test "x$host_vendor" = xsequent; then
24803	# Use $CC to link under sequent, because it throws in some extra .o
24804	# files that make .init and .fini sections work.
24805	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24806      else
24807	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24808      fi
24809      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24810      hardcode_direct_GCJ=yes
24811      hardcode_minus_L_GCJ=yes
24812      hardcode_shlibpath_var_GCJ=no
24813      ;;
24814
24815    sysv4)
24816      case $host_vendor in
24817	sni)
24818	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24819	  hardcode_direct_GCJ=yes # is this really true???
24820	;;
24821	siemens)
24822	  ## LD is ld it makes a PLAMLIB
24823	  ## CC just makes a GrossModule.
24824	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24825	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24826	  hardcode_direct_GCJ=no
24827        ;;
24828	motorola)
24829	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24830	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24831	;;
24832      esac
24833      runpath_var='LD_RUN_PATH'
24834      hardcode_shlibpath_var_GCJ=no
24835      ;;
24836
24837    sysv4.3*)
24838      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24839      hardcode_shlibpath_var_GCJ=no
24840      export_dynamic_flag_spec_GCJ='-Bexport'
24841      ;;
24842
24843    sysv4*MP*)
24844      if test -d /usr/nec; then
24845	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24846	hardcode_shlibpath_var_GCJ=no
24847	runpath_var=LD_RUN_PATH
24848	hardcode_runpath_var=yes
24849	ld_shlibs_GCJ=yes
24850      fi
24851      ;;
24852
24853    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24854      no_undefined_flag_GCJ='${wl}-z,text'
24855      archive_cmds_need_lc_GCJ=no
24856      hardcode_shlibpath_var_GCJ=no
24857      runpath_var='LD_RUN_PATH'
24858
24859      if test "$GCC" = yes; then
24860	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24861	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24862      else
24863	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24864	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24865      fi
24866      ;;
24867
24868    sysv5* | sco3.2v5* | sco5v6*)
24869      # Note: We can NOT use -z defs as we might desire, because we do not
24870      # link with -lc, and that would cause any symbols used from libc to
24871      # always be unresolved, which means just about no library would
24872      # ever link correctly.  If we're not using GNU ld we use -z text
24873      # though, which does catch some bad symbols but isn't as heavy-handed
24874      # as -z defs.
24875      no_undefined_flag_GCJ='${wl}-z,text'
24876      allow_undefined_flag_GCJ='${wl}-z,nodefs'
24877      archive_cmds_need_lc_GCJ=no
24878      hardcode_shlibpath_var_GCJ=no
24879      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24880      hardcode_libdir_separator_GCJ=':'
24881      link_all_deplibs_GCJ=yes
24882      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24883      runpath_var='LD_RUN_PATH'
24884
24885      if test "$GCC" = yes; then
24886	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24887	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24888      else
24889	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24890	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24891      fi
24892      ;;
24893
24894    uts4*)
24895      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24896      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24897      hardcode_shlibpath_var_GCJ=no
24898      ;;
24899
24900    *)
24901      ld_shlibs_GCJ=no
24902      ;;
24903    esac
24904  fi
24905
24906{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24907echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24908test "$ld_shlibs_GCJ" = no && can_build_shared=no
24909
24910#
24911# Do we need to explicitly link libc?
24912#
24913case "x$archive_cmds_need_lc_GCJ" in
24914x|xyes)
24915  # Assume -lc should be added
24916  archive_cmds_need_lc_GCJ=yes
24917
24918  if test "$enable_shared" = yes && test "$GCC" = yes; then
24919    case $archive_cmds_GCJ in
24920    *'~'*)
24921      # FIXME: we may have to deal with multi-command sequences.
24922      ;;
24923    '$CC '*)
24924      # Test whether the compiler implicitly links with -lc since on some
24925      # systems, -lgcc has to come before -lc. If gcc already passes -lc
24926      # to ld, don't add -lc before -lgcc.
24927      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24928echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24929      $rm conftest*
24930      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24931
24932      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24933  (eval $ac_compile) 2>&5
24934  ac_status=$?
24935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936  (exit $ac_status); } 2>conftest.err; then
24937        soname=conftest
24938        lib=conftest
24939        libobjs=conftest.$ac_objext
24940        deplibs=
24941        wl=$lt_prog_compiler_wl_GCJ
24942	pic_flag=$lt_prog_compiler_pic_GCJ
24943        compiler_flags=-v
24944        linker_flags=-v
24945        verstring=
24946        output_objdir=.
24947        libname=conftest
24948        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24949        allow_undefined_flag_GCJ=
24950        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24951  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24952  ac_status=$?
24953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954  (exit $ac_status); }
24955        then
24956	  archive_cmds_need_lc_GCJ=no
24957        else
24958	  archive_cmds_need_lc_GCJ=yes
24959        fi
24960        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24961      else
24962        cat conftest.err 1>&5
24963      fi
24964      $rm conftest*
24965      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24966echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24967      ;;
24968    esac
24969  fi
24970  ;;
24971esac
24972
24973{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24974echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24975library_names_spec=
24976libname_spec='lib$name'
24977soname_spec=
24978shrext_cmds=".so"
24979postinstall_cmds=
24980postuninstall_cmds=
24981finish_cmds=
24982finish_eval=
24983shlibpath_var=
24984shlibpath_overrides_runpath=unknown
24985version_type=none
24986dynamic_linker="$host_os ld.so"
24987sys_lib_dlsearch_path_spec="/lib /usr/lib"
24988if test "$GCC" = yes; then
24989  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24990  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24991    # if the path contains ";" then we assume it to be the separator
24992    # otherwise default to the standard path separator (i.e. ":") - it is
24993    # assumed that no part of a normal pathname contains ";" but that should
24994    # okay in the real world where ";" in dirpaths is itself problematic.
24995    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24996  else
24997    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
24998  fi
24999else
25000  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25001fi
25002need_lib_prefix=unknown
25003hardcode_into_libs=no
25004
25005# when you set need_version to no, make sure it does not cause -set_version
25006# flags to be left without arguments
25007need_version=unknown
25008
25009case $host_os in
25010aix3*)
25011  version_type=linux
25012  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25013  shlibpath_var=LIBPATH
25014
25015  # AIX 3 has no versioning support, so we append a major version to the name.
25016  soname_spec='${libname}${release}${shared_ext}$major'
25017  ;;
25018
25019aix4* | aix5*)
25020  version_type=linux
25021  need_lib_prefix=no
25022  need_version=no
25023  hardcode_into_libs=yes
25024  if test "$host_cpu" = ia64; then
25025    # AIX 5 supports IA64
25026    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25027    shlibpath_var=LD_LIBRARY_PATH
25028  else
25029    # With GCC up to 2.95.x, collect2 would create an import file
25030    # for dependence libraries.  The import file would start with
25031    # the line `#! .'.  This would cause the generated library to
25032    # depend on `.', always an invalid library.  This was fixed in
25033    # development snapshots of GCC prior to 3.0.
25034    case $host_os in
25035      aix4 | aix4.[01] | aix4.[01].*)
25036      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25037	   echo ' yes '
25038	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25039	:
25040      else
25041	can_build_shared=no
25042      fi
25043      ;;
25044    esac
25045    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25046    # soname into executable. Probably we can add versioning support to
25047    # collect2, so additional links can be useful in future.
25048    if test "$aix_use_runtimelinking" = yes; then
25049      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25050      # instead of lib<name>.a to let people know that these are not
25051      # typical AIX shared libraries.
25052      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25053    else
25054      # We preserve .a as extension for shared libraries through AIX4.2
25055      # and later when we are not doing run time linking.
25056      library_names_spec='${libname}${release}.a $libname.a'
25057      soname_spec='${libname}${release}${shared_ext}$major'
25058    fi
25059    shlibpath_var=LIBPATH
25060  fi
25061  ;;
25062
25063amigaos*)
25064  library_names_spec='$libname.ixlibrary $libname.a'
25065  # Create ${libname}_ixlibrary.a entries in /sys/libs.
25066  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'
25067  ;;
25068
25069beos*)
25070  library_names_spec='${libname}${shared_ext}'
25071  dynamic_linker="$host_os ld.so"
25072  shlibpath_var=LIBRARY_PATH
25073  ;;
25074
25075bsdi[45]*)
25076  version_type=linux
25077  need_version=no
25078  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25079  soname_spec='${libname}${release}${shared_ext}$major'
25080  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25081  shlibpath_var=LD_LIBRARY_PATH
25082  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25083  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25084  # the default ld.so.conf also contains /usr/contrib/lib and
25085  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25086  # libtool to hard-code these into programs
25087  ;;
25088
25089cygwin* | mingw* | pw32*)
25090  version_type=windows
25091  shrext_cmds=".dll"
25092  need_version=no
25093  need_lib_prefix=no
25094
25095  case $GCC,$host_os in
25096  yes,cygwin* | yes,mingw* | yes,pw32*)
25097    library_names_spec='$libname.dll.a'
25098    # DLL is installed to $(libdir)/../bin by postinstall_cmds
25099    postinstall_cmds='base_file=`basename \${file}`~
25100      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25101      dldir=$destdir/`dirname \$dlpath`~
25102      test -d \$dldir || mkdir -p \$dldir~
25103      $install_prog $dir/$dlname \$dldir/$dlname~
25104      chmod a+x \$dldir/$dlname'
25105    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25106      dlpath=$dir/\$dldll~
25107       $rm \$dlpath'
25108    shlibpath_overrides_runpath=yes
25109
25110    case $host_os in
25111    cygwin*)
25112      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25113      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25114      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25115      ;;
25116    mingw*)
25117      # MinGW DLLs use traditional 'lib' prefix
25118      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25119      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25120      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25121        # It is most probably a Windows format PATH printed by
25122        # mingw gcc, but we are running on Cygwin. Gcc prints its search
25123        # path with ; separators, and with drive letters. We can handle the
25124        # drive letters (cygwin fileutils understands them), so leave them,
25125        # especially as we might pass files found there to a mingw objdump,
25126        # which wouldn't understand a cygwinified path. Ahh.
25127        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25128      else
25129        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25130      fi
25131      ;;
25132    pw32*)
25133      # pw32 DLLs use 'pw' prefix rather than 'lib'
25134      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25135      ;;
25136    esac
25137    ;;
25138
25139  *)
25140    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25141    ;;
25142  esac
25143  dynamic_linker='Win32 ld.exe'
25144  # FIXME: first we should search . and the directory the executable is in
25145  shlibpath_var=PATH
25146  ;;
25147
25148darwin* | rhapsody*)
25149  dynamic_linker="$host_os dyld"
25150  version_type=darwin
25151  need_lib_prefix=no
25152  need_version=no
25153  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25154  soname_spec='${libname}${release}${major}$shared_ext'
25155  shlibpath_overrides_runpath=yes
25156  shlibpath_var=DYLD_LIBRARY_PATH
25157  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25158  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25159  if test "$GCC" = yes; then
25160    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"`
25161  else
25162    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25163  fi
25164  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25165  ;;
25166
25167dgux*)
25168  version_type=linux
25169  need_lib_prefix=no
25170  need_version=no
25171  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25172  soname_spec='${libname}${release}${shared_ext}$major'
25173  shlibpath_var=LD_LIBRARY_PATH
25174  ;;
25175
25176freebsd1*)
25177  dynamic_linker=no
25178  ;;
25179
25180kfreebsd*-gnu)
25181  version_type=linux
25182  need_lib_prefix=no
25183  need_version=no
25184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25185  soname_spec='${libname}${release}${shared_ext}$major'
25186  shlibpath_var=LD_LIBRARY_PATH
25187  shlibpath_overrides_runpath=no
25188  hardcode_into_libs=yes
25189  dynamic_linker='GNU ld.so'
25190  ;;
25191
25192freebsd* | dragonfly*)
25193  # DragonFly does not have aout.  When/if they implement a new
25194  # versioning mechanism, adjust this.
25195  if test -x /usr/bin/objformat; then
25196    objformat=`/usr/bin/objformat`
25197  else
25198    case $host_os in
25199    freebsd[123]*) objformat=aout ;;
25200    *) objformat=elf ;;
25201    esac
25202  fi
25203  version_type=freebsd-$objformat
25204  case $version_type in
25205    freebsd-elf*)
25206      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25207      need_version=no
25208      need_lib_prefix=no
25209      ;;
25210    freebsd-*)
25211      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25212      need_version=yes
25213      ;;
25214  esac
25215  shlibpath_var=LD_LIBRARY_PATH
25216  case $host_os in
25217  freebsd2*)
25218    shlibpath_overrides_runpath=yes
25219    ;;
25220  freebsd3.[01]* | freebsdelf3.[01]*)
25221    shlibpath_overrides_runpath=yes
25222    hardcode_into_libs=yes
25223    ;;
25224  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25225  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25226    shlibpath_overrides_runpath=no
25227    hardcode_into_libs=yes
25228    ;;
25229  freebsd*) # from 4.6 on
25230    shlibpath_overrides_runpath=yes
25231    hardcode_into_libs=yes
25232    ;;
25233  esac
25234  ;;
25235
25236gnu*)
25237  version_type=linux
25238  need_lib_prefix=no
25239  need_version=no
25240  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25241  soname_spec='${libname}${release}${shared_ext}$major'
25242  shlibpath_var=LD_LIBRARY_PATH
25243  hardcode_into_libs=yes
25244  ;;
25245
25246hpux9* | hpux10* | hpux11*)
25247  # Give a soname corresponding to the major version so that dld.sl refuses to
25248  # link against other versions.
25249  version_type=sunos
25250  need_lib_prefix=no
25251  need_version=no
25252  case $host_cpu in
25253  ia64*)
25254    shrext_cmds='.so'
25255    hardcode_into_libs=yes
25256    dynamic_linker="$host_os dld.so"
25257    shlibpath_var=LD_LIBRARY_PATH
25258    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25259    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25260    soname_spec='${libname}${release}${shared_ext}$major'
25261    if test "X$HPUX_IA64_MODE" = X32; then
25262      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25263    else
25264      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25265    fi
25266    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25267    ;;
25268   hppa*64*)
25269     shrext_cmds='.sl'
25270     hardcode_into_libs=yes
25271     dynamic_linker="$host_os dld.sl"
25272     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25273     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25274     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25275     soname_spec='${libname}${release}${shared_ext}$major'
25276     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25277     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25278     ;;
25279   *)
25280    shrext_cmds='.sl'
25281    dynamic_linker="$host_os dld.sl"
25282    shlibpath_var=SHLIB_PATH
25283    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25284    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25285    soname_spec='${libname}${release}${shared_ext}$major'
25286    ;;
25287  esac
25288  # HP-UX runs *really* slowly unless shared libraries are mode 555.
25289  postinstall_cmds='chmod 555 $lib'
25290  ;;
25291
25292interix3*)
25293  version_type=linux
25294  need_lib_prefix=no
25295  need_version=no
25296  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25297  soname_spec='${libname}${release}${shared_ext}$major'
25298  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25299  shlibpath_var=LD_LIBRARY_PATH
25300  shlibpath_overrides_runpath=no
25301  hardcode_into_libs=yes
25302  ;;
25303
25304irix5* | irix6* | nonstopux*)
25305  case $host_os in
25306    nonstopux*) version_type=nonstopux ;;
25307    *)
25308	if test "$lt_cv_prog_gnu_ld" = yes; then
25309		version_type=linux
25310	else
25311		version_type=irix
25312	fi ;;
25313  esac
25314  need_lib_prefix=no
25315  need_version=no
25316  soname_spec='${libname}${release}${shared_ext}$major'
25317  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25318  case $host_os in
25319  irix5* | nonstopux*)
25320    libsuff= shlibsuff=
25321    ;;
25322  *)
25323    case $LD in # libtool.m4 will add one of these switches to LD
25324    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25325      libsuff= shlibsuff= libmagic=32-bit;;
25326    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25327      libsuff=32 shlibsuff=N32 libmagic=N32;;
25328    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25329      libsuff=64 shlibsuff=64 libmagic=64-bit;;
25330    *) libsuff= shlibsuff= libmagic=never-match;;
25331    esac
25332    ;;
25333  esac
25334  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25335  shlibpath_overrides_runpath=no
25336  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25337  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25338  hardcode_into_libs=yes
25339  ;;
25340
25341# No shared lib support for Linux oldld, aout, or coff.
25342linux*oldld* | linux*aout* | linux*coff*)
25343  dynamic_linker=no
25344  ;;
25345
25346# This must be Linux ELF.
25347linux*)
25348  version_type=linux
25349  need_lib_prefix=no
25350  need_version=no
25351  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25352  soname_spec='${libname}${release}${shared_ext}$major'
25353  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25354  shlibpath_var=LD_LIBRARY_PATH
25355  shlibpath_overrides_runpath=no
25356  # This implies no fast_install, which is unacceptable.
25357  # Some rework will be needed to allow for fast_install
25358  # before this can be enabled.
25359  hardcode_into_libs=yes
25360
25361  # Append ld.so.conf contents to the search path
25362  if test -f /etc/ld.so.conf; then
25363    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' ' '`
25364    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25365  fi
25366
25367  # We used to test for /lib/ld.so.1 and disable shared libraries on
25368  # powerpc, because MkLinux only supported shared libraries with the
25369  # GNU dynamic linker.  Since this was broken with cross compilers,
25370  # most powerpc-linux boxes support dynamic linking these days and
25371  # people can always --disable-shared, the test was removed, and we
25372  # assume the GNU/Linux dynamic linker is in use.
25373  dynamic_linker='GNU/Linux ld.so'
25374  ;;
25375
25376knetbsd*-gnu)
25377  version_type=linux
25378  need_lib_prefix=no
25379  need_version=no
25380  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25381  soname_spec='${libname}${release}${shared_ext}$major'
25382  shlibpath_var=LD_LIBRARY_PATH
25383  shlibpath_overrides_runpath=no
25384  hardcode_into_libs=yes
25385  dynamic_linker='GNU ld.so'
25386  ;;
25387
25388netbsd*)
25389  version_type=sunos
25390  need_lib_prefix=no
25391  need_version=no
25392  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25393    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25394    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25395    dynamic_linker='NetBSD (a.out) ld.so'
25396  else
25397    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25398    soname_spec='${libname}${release}${shared_ext}$major'
25399    dynamic_linker='NetBSD ld.elf_so'
25400  fi
25401  shlibpath_var=LD_LIBRARY_PATH
25402  shlibpath_overrides_runpath=yes
25403  hardcode_into_libs=yes
25404  ;;
25405
25406newsos6)
25407  version_type=linux
25408  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25409  shlibpath_var=LD_LIBRARY_PATH
25410  shlibpath_overrides_runpath=yes
25411  ;;
25412
25413nto-qnx*)
25414  version_type=linux
25415  need_lib_prefix=no
25416  need_version=no
25417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25418  soname_spec='${libname}${release}${shared_ext}$major'
25419  shlibpath_var=LD_LIBRARY_PATH
25420  shlibpath_overrides_runpath=yes
25421  ;;
25422
25423openbsd*)
25424  version_type=sunos
25425  sys_lib_dlsearch_path_spec="/usr/lib"
25426  need_lib_prefix=no
25427  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25428  case $host_os in
25429    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25430    *)                         need_version=no  ;;
25431  esac
25432  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25433  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25434  shlibpath_var=LD_LIBRARY_PATH
25435  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25436    case $host_os in
25437      openbsd2.[89] | openbsd2.[89].*)
25438	shlibpath_overrides_runpath=no
25439	;;
25440      *)
25441	shlibpath_overrides_runpath=yes
25442	;;
25443      esac
25444  else
25445    shlibpath_overrides_runpath=yes
25446  fi
25447  ;;
25448
25449os2*)
25450  libname_spec='$name'
25451  shrext_cmds=".dll"
25452  need_lib_prefix=no
25453  library_names_spec='$libname${shared_ext} $libname.a'
25454  dynamic_linker='OS/2 ld.exe'
25455  shlibpath_var=LIBPATH
25456  ;;
25457
25458osf3* | osf4* | osf5*)
25459  version_type=osf
25460  need_lib_prefix=no
25461  need_version=no
25462  soname_spec='${libname}${release}${shared_ext}$major'
25463  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25464  shlibpath_var=LD_LIBRARY_PATH
25465  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25466  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25467  ;;
25468
25469solaris*)
25470  version_type=linux
25471  need_lib_prefix=no
25472  need_version=no
25473  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25474  soname_spec='${libname}${release}${shared_ext}$major'
25475  shlibpath_var=LD_LIBRARY_PATH
25476  shlibpath_overrides_runpath=yes
25477  hardcode_into_libs=yes
25478  # ldd complains unless libraries are executable
25479  postinstall_cmds='chmod +x $lib'
25480  ;;
25481
25482sunos4*)
25483  version_type=sunos
25484  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25485  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25486  shlibpath_var=LD_LIBRARY_PATH
25487  shlibpath_overrides_runpath=yes
25488  if test "$with_gnu_ld" = yes; then
25489    need_lib_prefix=no
25490  fi
25491  need_version=yes
25492  ;;
25493
25494sysv4 | sysv4.3*)
25495  version_type=linux
25496  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25497  soname_spec='${libname}${release}${shared_ext}$major'
25498  shlibpath_var=LD_LIBRARY_PATH
25499  case $host_vendor in
25500    sni)
25501      shlibpath_overrides_runpath=no
25502      need_lib_prefix=no
25503      export_dynamic_flag_spec='${wl}-Blargedynsym'
25504      runpath_var=LD_RUN_PATH
25505      ;;
25506    siemens)
25507      need_lib_prefix=no
25508      ;;
25509    motorola)
25510      need_lib_prefix=no
25511      need_version=no
25512      shlibpath_overrides_runpath=no
25513      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25514      ;;
25515  esac
25516  ;;
25517
25518sysv4*MP*)
25519  if test -d /usr/nec ;then
25520    version_type=linux
25521    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25522    soname_spec='$libname${shared_ext}.$major'
25523    shlibpath_var=LD_LIBRARY_PATH
25524  fi
25525  ;;
25526
25527sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25528  version_type=freebsd-elf
25529  need_lib_prefix=no
25530  need_version=no
25531  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25532  soname_spec='${libname}${release}${shared_ext}$major'
25533  shlibpath_var=LD_LIBRARY_PATH
25534  hardcode_into_libs=yes
25535  if test "$with_gnu_ld" = yes; then
25536    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25537    shlibpath_overrides_runpath=no
25538  else
25539    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25540    shlibpath_overrides_runpath=yes
25541    case $host_os in
25542      sco3.2v5*)
25543        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25544	;;
25545    esac
25546  fi
25547  sys_lib_dlsearch_path_spec='/usr/lib'
25548  ;;
25549
25550uts4*)
25551  version_type=linux
25552  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25553  soname_spec='${libname}${release}${shared_ext}$major'
25554  shlibpath_var=LD_LIBRARY_PATH
25555  ;;
25556
25557*)
25558  dynamic_linker=no
25559  ;;
25560esac
25561{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25562echo "${ECHO_T}$dynamic_linker" >&6; }
25563test "$dynamic_linker" = no && can_build_shared=no
25564
25565variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25566if test "$GCC" = yes; then
25567  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25568fi
25569
25570{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25571echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25572hardcode_action_GCJ=
25573if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25574   test -n "$runpath_var_GCJ" || \
25575   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25576
25577  # We can hardcode non-existant directories.
25578  if test "$hardcode_direct_GCJ" != no &&
25579     # If the only mechanism to avoid hardcoding is shlibpath_var, we
25580     # have to relink, otherwise we might link with an installed library
25581     # when we should be linking with a yet-to-be-installed one
25582     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25583     test "$hardcode_minus_L_GCJ" != no; then
25584    # Linking always hardcodes the temporary library directory.
25585    hardcode_action_GCJ=relink
25586  else
25587    # We can link without hardcoding, and we can hardcode nonexisting dirs.
25588    hardcode_action_GCJ=immediate
25589  fi
25590else
25591  # We cannot hardcode anything, or else we can only hardcode existing
25592  # directories.
25593  hardcode_action_GCJ=unsupported
25594fi
25595{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25596echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25597
25598if test "$hardcode_action_GCJ" = relink; then
25599  # Fast installation is not supported
25600  enable_fast_install=no
25601elif test "$shlibpath_overrides_runpath" = yes ||
25602     test "$enable_shared" = no; then
25603  # Fast installation is not necessary
25604  enable_fast_install=needless
25605fi
25606
25607
25608# The else clause should only fire when bootstrapping the
25609# libtool distribution, otherwise you forgot to ship ltmain.sh
25610# with your package, and you will get complaints that there are
25611# no rules to generate ltmain.sh.
25612if test -f "$ltmain"; then
25613  # See if we are running on zsh, and set the options which allow our commands through
25614  # without removal of \ escapes.
25615  if test -n "${ZSH_VERSION+set}" ; then
25616    setopt NO_GLOB_SUBST
25617  fi
25618  # Now quote all the things that may contain metacharacters while being
25619  # careful not to overquote the AC_SUBSTed values.  We take copies of the
25620  # variables and quote the copies for generation of the libtool script.
25621  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25622    SED SHELL STRIP \
25623    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25624    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25625    deplibs_check_method reload_flag reload_cmds need_locks \
25626    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25627    lt_cv_sys_global_symbol_to_c_name_address \
25628    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25629    old_postinstall_cmds old_postuninstall_cmds \
25630    compiler_GCJ \
25631    CC_GCJ \
25632    LD_GCJ \
25633    lt_prog_compiler_wl_GCJ \
25634    lt_prog_compiler_pic_GCJ \
25635    lt_prog_compiler_static_GCJ \
25636    lt_prog_compiler_no_builtin_flag_GCJ \
25637    export_dynamic_flag_spec_GCJ \
25638    thread_safe_flag_spec_GCJ \
25639    whole_archive_flag_spec_GCJ \
25640    enable_shared_with_static_runtimes_GCJ \
25641    old_archive_cmds_GCJ \
25642    old_archive_from_new_cmds_GCJ \
25643    predep_objects_GCJ \
25644    postdep_objects_GCJ \
25645    predeps_GCJ \
25646    postdeps_GCJ \
25647    compiler_lib_search_path_GCJ \
25648    archive_cmds_GCJ \
25649    archive_expsym_cmds_GCJ \
25650    postinstall_cmds_GCJ \
25651    postuninstall_cmds_GCJ \
25652    old_archive_from_expsyms_cmds_GCJ \
25653    allow_undefined_flag_GCJ \
25654    no_undefined_flag_GCJ \
25655    export_symbols_cmds_GCJ \
25656    hardcode_libdir_flag_spec_GCJ \
25657    hardcode_libdir_flag_spec_ld_GCJ \
25658    hardcode_libdir_separator_GCJ \
25659    hardcode_automatic_GCJ \
25660    module_cmds_GCJ \
25661    module_expsym_cmds_GCJ \
25662    lt_cv_prog_compiler_c_o_GCJ \
25663    exclude_expsyms_GCJ \
25664    include_expsyms_GCJ; do
25665
25666    case $var in
25667    old_archive_cmds_GCJ | \
25668    old_archive_from_new_cmds_GCJ | \
25669    archive_cmds_GCJ | \
25670    archive_expsym_cmds_GCJ | \
25671    module_cmds_GCJ | \
25672    module_expsym_cmds_GCJ | \
25673    old_archive_from_expsyms_cmds_GCJ | \
25674    export_symbols_cmds_GCJ | \
25675    extract_expsyms_cmds | reload_cmds | finish_cmds | \
25676    postinstall_cmds | postuninstall_cmds | \
25677    old_postinstall_cmds | old_postuninstall_cmds | \
25678    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25679      # Double-quote double-evaled strings.
25680      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25681      ;;
25682    *)
25683      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25684      ;;
25685    esac
25686  done
25687
25688  case $lt_echo in
25689  *'\$0 --fallback-echo"')
25690    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25691    ;;
25692  esac
25693
25694cfgfile="$ofile"
25695
25696  cat <<__EOF__ >> "$cfgfile"
25697# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25698
25699# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25700
25701# Shell to use when invoking shell scripts.
25702SHELL=$lt_SHELL
25703
25704# Whether or not to build shared libraries.
25705build_libtool_libs=$enable_shared
25706
25707# Whether or not to build static libraries.
25708build_old_libs=$enable_static
25709
25710# Whether or not to add -lc for building shared libraries.
25711build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25712
25713# Whether or not to disallow shared libs when runtime libs are static
25714allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25715
25716# Whether or not to optimize for fast installation.
25717fast_install=$enable_fast_install
25718
25719# The host system.
25720host_alias=$host_alias
25721host=$host
25722host_os=$host_os
25723
25724# The build system.
25725build_alias=$build_alias
25726build=$build
25727build_os=$build_os
25728
25729# An echo program that does not interpret backslashes.
25730echo=$lt_echo
25731
25732# The archiver.
25733AR=$lt_AR
25734AR_FLAGS=$lt_AR_FLAGS
25735
25736# A C compiler.
25737LTCC=$lt_LTCC
25738
25739# LTCC compiler flags.
25740LTCFLAGS=$lt_LTCFLAGS
25741
25742# A language-specific compiler.
25743CC=$lt_compiler_GCJ
25744
25745# Is the compiler the GNU C compiler?
25746with_gcc=$GCC_GCJ
25747
25748# An ERE matcher.
25749EGREP=$lt_EGREP
25750
25751# The linker used to build libraries.
25752LD=$lt_LD_GCJ
25753
25754# Whether we need hard or soft links.
25755LN_S=$lt_LN_S
25756
25757# A BSD-compatible nm program.
25758NM=$lt_NM
25759
25760# A symbol stripping program
25761STRIP=$lt_STRIP
25762
25763# Used to examine libraries when file_magic_cmd begins "file"
25764MAGIC_CMD=$MAGIC_CMD
25765
25766# Used on cygwin: DLL creation program.
25767DLLTOOL="$DLLTOOL"
25768
25769# Used on cygwin: object dumper.
25770OBJDUMP="$OBJDUMP"
25771
25772# Used on cygwin: assembler.
25773AS="$AS"
25774
25775# The name of the directory that contains temporary libtool files.
25776objdir=$objdir
25777
25778# How to create reloadable object files.
25779reload_flag=$lt_reload_flag
25780reload_cmds=$lt_reload_cmds
25781
25782# How to pass a linker flag through the compiler.
25783wl=$lt_lt_prog_compiler_wl_GCJ
25784
25785# Object file suffix (normally "o").
25786objext="$ac_objext"
25787
25788# Old archive suffix (normally "a").
25789libext="$libext"
25790
25791# Shared library suffix (normally ".so").
25792shrext_cmds='$shrext_cmds'
25793
25794# Executable file suffix (normally "").
25795exeext="$exeext"
25796
25797# Additional compiler flags for building library objects.
25798pic_flag=$lt_lt_prog_compiler_pic_GCJ
25799pic_mode=$pic_mode
25800
25801# What is the maximum length of a command?
25802max_cmd_len=$lt_cv_sys_max_cmd_len
25803
25804# Does compiler simultaneously support -c and -o options?
25805compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25806
25807# Must we lock files when doing compilation?
25808need_locks=$lt_need_locks
25809
25810# Do we need the lib prefix for modules?
25811need_lib_prefix=$need_lib_prefix
25812
25813# Do we need a version for libraries?
25814need_version=$need_version
25815
25816# Whether dlopen is supported.
25817dlopen_support=$enable_dlopen
25818
25819# Whether dlopen of programs is supported.
25820dlopen_self=$enable_dlopen_self
25821
25822# Whether dlopen of statically linked programs is supported.
25823dlopen_self_static=$enable_dlopen_self_static
25824
25825# Compiler flag to prevent dynamic linking.
25826link_static_flag=$lt_lt_prog_compiler_static_GCJ
25827
25828# Compiler flag to turn off builtin functions.
25829no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25830
25831# Compiler flag to allow reflexive dlopens.
25832export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25833
25834# Compiler flag to generate shared objects directly from archives.
25835whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25836
25837# Compiler flag to generate thread-safe objects.
25838thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25839
25840# Library versioning type.
25841version_type=$version_type
25842
25843# Format of library name prefix.
25844libname_spec=$lt_libname_spec
25845
25846# List of archive names.  First name is the real one, the rest are links.
25847# The last name is the one that the linker finds with -lNAME.
25848library_names_spec=$lt_library_names_spec
25849
25850# The coded name of the library, if different from the real name.
25851soname_spec=$lt_soname_spec
25852
25853# Commands used to build and install an old-style archive.
25854RANLIB=$lt_RANLIB
25855old_archive_cmds=$lt_old_archive_cmds_GCJ
25856old_postinstall_cmds=$lt_old_postinstall_cmds
25857old_postuninstall_cmds=$lt_old_postuninstall_cmds
25858
25859# Create an old-style archive from a shared archive.
25860old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25861
25862# Create a temporary old-style archive to link instead of a shared archive.
25863old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25864
25865# Commands used to build and install a shared archive.
25866archive_cmds=$lt_archive_cmds_GCJ
25867archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25868postinstall_cmds=$lt_postinstall_cmds
25869postuninstall_cmds=$lt_postuninstall_cmds
25870
25871# Commands used to build a loadable module (assumed same as above if empty)
25872module_cmds=$lt_module_cmds_GCJ
25873module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25874
25875# Commands to strip libraries.
25876old_striplib=$lt_old_striplib
25877striplib=$lt_striplib
25878
25879# Dependencies to place before the objects being linked to create a
25880# shared library.
25881predep_objects=$lt_predep_objects_GCJ
25882
25883# Dependencies to place after the objects being linked to create a
25884# shared library.
25885postdep_objects=$lt_postdep_objects_GCJ
25886
25887# Dependencies to place before the objects being linked to create a
25888# shared library.
25889predeps=$lt_predeps_GCJ
25890
25891# Dependencies to place after the objects being linked to create a
25892# shared library.
25893postdeps=$lt_postdeps_GCJ
25894
25895# The library search path used internally by the compiler when linking
25896# a shared library.
25897compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25898
25899# Method to check whether dependent libraries are shared objects.
25900deplibs_check_method=$lt_deplibs_check_method
25901
25902# Command to use when deplibs_check_method == file_magic.
25903file_magic_cmd=$lt_file_magic_cmd
25904
25905# Flag that allows shared libraries with undefined symbols to be built.
25906allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25907
25908# Flag that forces no undefined symbols.
25909no_undefined_flag=$lt_no_undefined_flag_GCJ
25910
25911# Commands used to finish a libtool library installation in a directory.
25912finish_cmds=$lt_finish_cmds
25913
25914# Same as above, but a single script fragment to be evaled but not shown.
25915finish_eval=$lt_finish_eval
25916
25917# Take the output of nm and produce a listing of raw symbols and C names.
25918global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25919
25920# Transform the output of nm in a proper C declaration
25921global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25922
25923# Transform the output of nm in a C name address pair
25924global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25925
25926# This is the shared library runtime path variable.
25927runpath_var=$runpath_var
25928
25929# This is the shared library path variable.
25930shlibpath_var=$shlibpath_var
25931
25932# Is shlibpath searched before the hard-coded library search path?
25933shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25934
25935# How to hardcode a shared library path into an executable.
25936hardcode_action=$hardcode_action_GCJ
25937
25938# Whether we should hardcode library paths into libraries.
25939hardcode_into_libs=$hardcode_into_libs
25940
25941# Flag to hardcode \$libdir into a binary during linking.
25942# This must work even if \$libdir does not exist.
25943hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25944
25945# If ld is used when linking, flag to hardcode \$libdir into
25946# a binary during linking. This must work even if \$libdir does
25947# not exist.
25948hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25949
25950# Whether we need a single -rpath flag with a separated argument.
25951hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25952
25953# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25954# resulting binary.
25955hardcode_direct=$hardcode_direct_GCJ
25956
25957# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25958# resulting binary.
25959hardcode_minus_L=$hardcode_minus_L_GCJ
25960
25961# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25962# the resulting binary.
25963hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25964
25965# Set to yes if building a shared library automatically hardcodes DIR into the library
25966# and all subsequent libraries and executables linked against it.
25967hardcode_automatic=$hardcode_automatic_GCJ
25968
25969# Variables whose values should be saved in libtool wrapper scripts and
25970# restored at relink time.
25971variables_saved_for_relink="$variables_saved_for_relink"
25972
25973# Whether libtool must link a program against all its dependency libraries.
25974link_all_deplibs=$link_all_deplibs_GCJ
25975
25976# Compile-time system search path for libraries
25977sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25978
25979# Run-time system search path for libraries
25980sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25981
25982# Fix the shell variable \$srcfile for the compiler.
25983fix_srcfile_path="$fix_srcfile_path_GCJ"
25984
25985# Set to yes if exported symbols are required.
25986always_export_symbols=$always_export_symbols_GCJ
25987
25988# The commands to list exported symbols.
25989export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25990
25991# The commands to extract the exported symbol list from a shared archive.
25992extract_expsyms_cmds=$lt_extract_expsyms_cmds
25993
25994# Symbols that should not be listed in the preloaded symbols.
25995exclude_expsyms=$lt_exclude_expsyms_GCJ
25996
25997# Symbols that must always be exported.
25998include_expsyms=$lt_include_expsyms_GCJ
25999
26000# ### END LIBTOOL TAG CONFIG: $tagname
26001
26002__EOF__
26003
26004
26005else
26006  # If there is no Makefile yet, we rely on a make rule to execute
26007  # `config.status --recheck' to rerun these tests and create the
26008  # libtool script then.
26009  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26010  if test -f "$ltmain_in"; then
26011    test -f Makefile && make "$ltmain"
26012  fi
26013fi
26014
26015
26016ac_ext=c
26017ac_cpp='$CPP $CPPFLAGS'
26018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26020ac_compiler_gnu=$ac_cv_c_compiler_gnu
26021
26022CC="$lt_save_CC"
26023
26024	else
26025	  tagname=""
26026	fi
26027	;;
26028
26029      RC)
26030	ac_ext=c
26031ac_cpp='$CPP $CPPFLAGS'
26032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26034ac_compiler_gnu=$ac_cv_c_compiler_gnu
26035
26036
26037# Source file extension for RC test sources.
26038ac_ext=rc
26039
26040# Object file extension for compiled RC test sources.
26041objext=o
26042objext_RC=$objext
26043
26044# Code to be used in simple compile tests
26045lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26046
26047# Code to be used in simple link tests
26048lt_simple_link_test_code="$lt_simple_compile_test_code"
26049
26050# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26051
26052# If no C compiler was specified, use CC.
26053LTCC=${LTCC-"$CC"}
26054
26055# If no C compiler flags were specified, use CFLAGS.
26056LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26057
26058# Allow CC to be a program name with arguments.
26059compiler=$CC
26060
26061
26062# save warnings/boilerplate of simple test code
26063ac_outfile=conftest.$ac_objext
26064printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26065eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26066_lt_compiler_boilerplate=`cat conftest.err`
26067$rm conftest*
26068
26069ac_outfile=conftest.$ac_objext
26070printf "$lt_simple_link_test_code" >conftest.$ac_ext
26071eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26072_lt_linker_boilerplate=`cat conftest.err`
26073$rm conftest*
26074
26075
26076# Allow CC to be a program name with arguments.
26077lt_save_CC="$CC"
26078CC=${RC-"windres"}
26079compiler=$CC
26080compiler_RC=$CC
26081for cc_temp in $compiler""; do
26082  case $cc_temp in
26083    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26084    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26085    \-*) ;;
26086    *) break;;
26087  esac
26088done
26089cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26090
26091lt_cv_prog_compiler_c_o_RC=yes
26092
26093# The else clause should only fire when bootstrapping the
26094# libtool distribution, otherwise you forgot to ship ltmain.sh
26095# with your package, and you will get complaints that there are
26096# no rules to generate ltmain.sh.
26097if test -f "$ltmain"; then
26098  # See if we are running on zsh, and set the options which allow our commands through
26099  # without removal of \ escapes.
26100  if test -n "${ZSH_VERSION+set}" ; then
26101    setopt NO_GLOB_SUBST
26102  fi
26103  # Now quote all the things that may contain metacharacters while being
26104  # careful not to overquote the AC_SUBSTed values.  We take copies of the
26105  # variables and quote the copies for generation of the libtool script.
26106  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26107    SED SHELL STRIP \
26108    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26109    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26110    deplibs_check_method reload_flag reload_cmds need_locks \
26111    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26112    lt_cv_sys_global_symbol_to_c_name_address \
26113    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26114    old_postinstall_cmds old_postuninstall_cmds \
26115    compiler_RC \
26116    CC_RC \
26117    LD_RC \
26118    lt_prog_compiler_wl_RC \
26119    lt_prog_compiler_pic_RC \
26120    lt_prog_compiler_static_RC \
26121    lt_prog_compiler_no_builtin_flag_RC \
26122    export_dynamic_flag_spec_RC \
26123    thread_safe_flag_spec_RC \
26124    whole_archive_flag_spec_RC \
26125    enable_shared_with_static_runtimes_RC \
26126    old_archive_cmds_RC \
26127    old_archive_from_new_cmds_RC \
26128    predep_objects_RC \
26129    postdep_objects_RC \
26130    predeps_RC \
26131    postdeps_RC \
26132    compiler_lib_search_path_RC \
26133    archive_cmds_RC \
26134    archive_expsym_cmds_RC \
26135    postinstall_cmds_RC \
26136    postuninstall_cmds_RC \
26137    old_archive_from_expsyms_cmds_RC \
26138    allow_undefined_flag_RC \
26139    no_undefined_flag_RC \
26140    export_symbols_cmds_RC \
26141    hardcode_libdir_flag_spec_RC \
26142    hardcode_libdir_flag_spec_ld_RC \
26143    hardcode_libdir_separator_RC \
26144    hardcode_automatic_RC \
26145    module_cmds_RC \
26146    module_expsym_cmds_RC \
26147    lt_cv_prog_compiler_c_o_RC \
26148    exclude_expsyms_RC \
26149    include_expsyms_RC; do
26150
26151    case $var in
26152    old_archive_cmds_RC | \
26153    old_archive_from_new_cmds_RC | \
26154    archive_cmds_RC | \
26155    archive_expsym_cmds_RC | \
26156    module_cmds_RC | \
26157    module_expsym_cmds_RC | \
26158    old_archive_from_expsyms_cmds_RC | \
26159    export_symbols_cmds_RC | \
26160    extract_expsyms_cmds | reload_cmds | finish_cmds | \
26161    postinstall_cmds | postuninstall_cmds | \
26162    old_postinstall_cmds | old_postuninstall_cmds | \
26163    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26164      # Double-quote double-evaled strings.
26165      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26166      ;;
26167    *)
26168      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26169      ;;
26170    esac
26171  done
26172
26173  case $lt_echo in
26174  *'\$0 --fallback-echo"')
26175    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26176    ;;
26177  esac
26178
26179cfgfile="$ofile"
26180
26181  cat <<__EOF__ >> "$cfgfile"
26182# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26183
26184# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26185
26186# Shell to use when invoking shell scripts.
26187SHELL=$lt_SHELL
26188
26189# Whether or not to build shared libraries.
26190build_libtool_libs=$enable_shared
26191
26192# Whether or not to build static libraries.
26193build_old_libs=$enable_static
26194
26195# Whether or not to add -lc for building shared libraries.
26196build_libtool_need_lc=$archive_cmds_need_lc_RC
26197
26198# Whether or not to disallow shared libs when runtime libs are static
26199allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26200
26201# Whether or not to optimize for fast installation.
26202fast_install=$enable_fast_install
26203
26204# The host system.
26205host_alias=$host_alias
26206host=$host
26207host_os=$host_os
26208
26209# The build system.
26210build_alias=$build_alias
26211build=$build
26212build_os=$build_os
26213
26214# An echo program that does not interpret backslashes.
26215echo=$lt_echo
26216
26217# The archiver.
26218AR=$lt_AR
26219AR_FLAGS=$lt_AR_FLAGS
26220
26221# A C compiler.
26222LTCC=$lt_LTCC
26223
26224# LTCC compiler flags.
26225LTCFLAGS=$lt_LTCFLAGS
26226
26227# A language-specific compiler.
26228CC=$lt_compiler_RC
26229
26230# Is the compiler the GNU C compiler?
26231with_gcc=$GCC_RC
26232
26233# An ERE matcher.
26234EGREP=$lt_EGREP
26235
26236# The linker used to build libraries.
26237LD=$lt_LD_RC
26238
26239# Whether we need hard or soft links.
26240LN_S=$lt_LN_S
26241
26242# A BSD-compatible nm program.
26243NM=$lt_NM
26244
26245# A symbol stripping program
26246STRIP=$lt_STRIP
26247
26248# Used to examine libraries when file_magic_cmd begins "file"
26249MAGIC_CMD=$MAGIC_CMD
26250
26251# Used on cygwin: DLL creation program.
26252DLLTOOL="$DLLTOOL"
26253
26254# Used on cygwin: object dumper.
26255OBJDUMP="$OBJDUMP"
26256
26257# Used on cygwin: assembler.
26258AS="$AS"
26259
26260# The name of the directory that contains temporary libtool files.
26261objdir=$objdir
26262
26263# How to create reloadable object files.
26264reload_flag=$lt_reload_flag
26265reload_cmds=$lt_reload_cmds
26266
26267# How to pass a linker flag through the compiler.
26268wl=$lt_lt_prog_compiler_wl_RC
26269
26270# Object file suffix (normally "o").
26271objext="$ac_objext"
26272
26273# Old archive suffix (normally "a").
26274libext="$libext"
26275
26276# Shared library suffix (normally ".so").
26277shrext_cmds='$shrext_cmds'
26278
26279# Executable file suffix (normally "").
26280exeext="$exeext"
26281
26282# Additional compiler flags for building library objects.
26283pic_flag=$lt_lt_prog_compiler_pic_RC
26284pic_mode=$pic_mode
26285
26286# What is the maximum length of a command?
26287max_cmd_len=$lt_cv_sys_max_cmd_len
26288
26289# Does compiler simultaneously support -c and -o options?
26290compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26291
26292# Must we lock files when doing compilation?
26293need_locks=$lt_need_locks
26294
26295# Do we need the lib prefix for modules?
26296need_lib_prefix=$need_lib_prefix
26297
26298# Do we need a version for libraries?
26299need_version=$need_version
26300
26301# Whether dlopen is supported.
26302dlopen_support=$enable_dlopen
26303
26304# Whether dlopen of programs is supported.
26305dlopen_self=$enable_dlopen_self
26306
26307# Whether dlopen of statically linked programs is supported.
26308dlopen_self_static=$enable_dlopen_self_static
26309
26310# Compiler flag to prevent dynamic linking.
26311link_static_flag=$lt_lt_prog_compiler_static_RC
26312
26313# Compiler flag to turn off builtin functions.
26314no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26315
26316# Compiler flag to allow reflexive dlopens.
26317export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26318
26319# Compiler flag to generate shared objects directly from archives.
26320whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26321
26322# Compiler flag to generate thread-safe objects.
26323thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26324
26325# Library versioning type.
26326version_type=$version_type
26327
26328# Format of library name prefix.
26329libname_spec=$lt_libname_spec
26330
26331# List of archive names.  First name is the real one, the rest are links.
26332# The last name is the one that the linker finds with -lNAME.
26333library_names_spec=$lt_library_names_spec
26334
26335# The coded name of the library, if different from the real name.
26336soname_spec=$lt_soname_spec
26337
26338# Commands used to build and install an old-style archive.
26339RANLIB=$lt_RANLIB
26340old_archive_cmds=$lt_old_archive_cmds_RC
26341old_postinstall_cmds=$lt_old_postinstall_cmds
26342old_postuninstall_cmds=$lt_old_postuninstall_cmds
26343
26344# Create an old-style archive from a shared archive.
26345old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26346
26347# Create a temporary old-style archive to link instead of a shared archive.
26348old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26349
26350# Commands used to build and install a shared archive.
26351archive_cmds=$lt_archive_cmds_RC
26352archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26353postinstall_cmds=$lt_postinstall_cmds
26354postuninstall_cmds=$lt_postuninstall_cmds
26355
26356# Commands used to build a loadable module (assumed same as above if empty)
26357module_cmds=$lt_module_cmds_RC
26358module_expsym_cmds=$lt_module_expsym_cmds_RC
26359
26360# Commands to strip libraries.
26361old_striplib=$lt_old_striplib
26362striplib=$lt_striplib
26363
26364# Dependencies to place before the objects being linked to create a
26365# shared library.
26366predep_objects=$lt_predep_objects_RC
26367
26368# Dependencies to place after the objects being linked to create a
26369# shared library.
26370postdep_objects=$lt_postdep_objects_RC
26371
26372# Dependencies to place before the objects being linked to create a
26373# shared library.
26374predeps=$lt_predeps_RC
26375
26376# Dependencies to place after the objects being linked to create a
26377# shared library.
26378postdeps=$lt_postdeps_RC
26379
26380# The library search path used internally by the compiler when linking
26381# a shared library.
26382compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26383
26384# Method to check whether dependent libraries are shared objects.
26385deplibs_check_method=$lt_deplibs_check_method
26386
26387# Command to use when deplibs_check_method == file_magic.
26388file_magic_cmd=$lt_file_magic_cmd
26389
26390# Flag that allows shared libraries with undefined symbols to be built.
26391allow_undefined_flag=$lt_allow_undefined_flag_RC
26392
26393# Flag that forces no undefined symbols.
26394no_undefined_flag=$lt_no_undefined_flag_RC
26395
26396# Commands used to finish a libtool library installation in a directory.
26397finish_cmds=$lt_finish_cmds
26398
26399# Same as above, but a single script fragment to be evaled but not shown.
26400finish_eval=$lt_finish_eval
26401
26402# Take the output of nm and produce a listing of raw symbols and C names.
26403global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26404
26405# Transform the output of nm in a proper C declaration
26406global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26407
26408# Transform the output of nm in a C name address pair
26409global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26410
26411# This is the shared library runtime path variable.
26412runpath_var=$runpath_var
26413
26414# This is the shared library path variable.
26415shlibpath_var=$shlibpath_var
26416
26417# Is shlibpath searched before the hard-coded library search path?
26418shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26419
26420# How to hardcode a shared library path into an executable.
26421hardcode_action=$hardcode_action_RC
26422
26423# Whether we should hardcode library paths into libraries.
26424hardcode_into_libs=$hardcode_into_libs
26425
26426# Flag to hardcode \$libdir into a binary during linking.
26427# This must work even if \$libdir does not exist.
26428hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26429
26430# If ld is used when linking, flag to hardcode \$libdir into
26431# a binary during linking. This must work even if \$libdir does
26432# not exist.
26433hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26434
26435# Whether we need a single -rpath flag with a separated argument.
26436hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26437
26438# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26439# resulting binary.
26440hardcode_direct=$hardcode_direct_RC
26441
26442# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26443# resulting binary.
26444hardcode_minus_L=$hardcode_minus_L_RC
26445
26446# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26447# the resulting binary.
26448hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26449
26450# Set to yes if building a shared library automatically hardcodes DIR into the library
26451# and all subsequent libraries and executables linked against it.
26452hardcode_automatic=$hardcode_automatic_RC
26453
26454# Variables whose values should be saved in libtool wrapper scripts and
26455# restored at relink time.
26456variables_saved_for_relink="$variables_saved_for_relink"
26457
26458# Whether libtool must link a program against all its dependency libraries.
26459link_all_deplibs=$link_all_deplibs_RC
26460
26461# Compile-time system search path for libraries
26462sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26463
26464# Run-time system search path for libraries
26465sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26466
26467# Fix the shell variable \$srcfile for the compiler.
26468fix_srcfile_path="$fix_srcfile_path_RC"
26469
26470# Set to yes if exported symbols are required.
26471always_export_symbols=$always_export_symbols_RC
26472
26473# The commands to list exported symbols.
26474export_symbols_cmds=$lt_export_symbols_cmds_RC
26475
26476# The commands to extract the exported symbol list from a shared archive.
26477extract_expsyms_cmds=$lt_extract_expsyms_cmds
26478
26479# Symbols that should not be listed in the preloaded symbols.
26480exclude_expsyms=$lt_exclude_expsyms_RC
26481
26482# Symbols that must always be exported.
26483include_expsyms=$lt_include_expsyms_RC
26484
26485# ### END LIBTOOL TAG CONFIG: $tagname
26486
26487__EOF__
26488
26489
26490else
26491  # If there is no Makefile yet, we rely on a make rule to execute
26492  # `config.status --recheck' to rerun these tests and create the
26493  # libtool script then.
26494  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26495  if test -f "$ltmain_in"; then
26496    test -f Makefile && make "$ltmain"
26497  fi
26498fi
26499
26500
26501ac_ext=c
26502ac_cpp='$CPP $CPPFLAGS'
26503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26505ac_compiler_gnu=$ac_cv_c_compiler_gnu
26506
26507CC="$lt_save_CC"
26508
26509	;;
26510
26511      *)
26512	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26513echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26514   { (exit 1); exit 1; }; }
26515	;;
26516      esac
26517
26518      # Append the new tag name to the list of available tags.
26519      if test -n "$tagname" ; then
26520      available_tags="$available_tags $tagname"
26521    fi
26522    fi
26523  done
26524  IFS="$lt_save_ifs"
26525
26526  # Now substitute the updated list of available tags.
26527  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26528    mv "${ofile}T" "$ofile"
26529    chmod +x "$ofile"
26530  else
26531    rm -f "${ofile}T"
26532    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26533echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26534   { (exit 1); exit 1; }; }
26535  fi
26536fi
26537
26538
26539
26540# This can be used to rebuild libtool when needed
26541LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26542
26543# Always use our own libtool.
26544LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26545
26546# Prevent multiple expansion
26547
26548
26549
26550
26551
26552
26553
26554
26555
26556
26557
26558
26559
26560
26561
26562
26563
26564
26565
26566
26567
26568if test "$lt_cv_dlopen_self" = "yes" ; then
26569
26570cat >>confdefs.h <<\_ACEOF
26571#define CAN_DLOPEN_SELF 1
26572_ACEOF
26573
26574fi
26575
26576etags_version=`$ETAGS --version 2>&1`
26577case "$etags_version" in
26578	*Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26579	*GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26580	*) ETAGSFLAGS="" ;;
26581esac
26582ETAGSFLAGS=$ETAGSFLAGS
26583
26584
26585if test "$WITH_LLVMGCCDIR" = "default" ; then
26586  LLVMGCC="llvm-gcc${EXEEXT}"
26587  LLVMGXX="llvm-g++${EXEEXT}"
26588  # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26589set dummy $LLVMGCC; ac_word=$2
26590{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26592if test "${ac_cv_path_LLVMGCC+set}" = set; then
26593  echo $ECHO_N "(cached) $ECHO_C" >&6
26594else
26595  case $LLVMGCC in
26596  [\\/]* | ?:[\\/]*)
26597  ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26598  ;;
26599  *)
26600  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26601for as_dir in $PATH
26602do
26603  IFS=$as_save_IFS
26604  test -z "$as_dir" && as_dir=.
26605  for ac_exec_ext in '' $ac_executable_extensions; do
26606  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26607    ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26608    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26609    break 2
26610  fi
26611done
26612done
26613IFS=$as_save_IFS
26614
26615  ;;
26616esac
26617fi
26618LLVMGCC=$ac_cv_path_LLVMGCC
26619if test -n "$LLVMGCC"; then
26620  { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26621echo "${ECHO_T}$LLVMGCC" >&6; }
26622else
26623  { echo "$as_me:$LINENO: result: no" >&5
26624echo "${ECHO_T}no" >&6; }
26625fi
26626
26627
26628  # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26629set dummy $LLVMGXX; ac_word=$2
26630{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26632if test "${ac_cv_path_LLVMGXX+set}" = set; then
26633  echo $ECHO_N "(cached) $ECHO_C" >&6
26634else
26635  case $LLVMGXX in
26636  [\\/]* | ?:[\\/]*)
26637  ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26638  ;;
26639  *)
26640  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26641for as_dir in $PATH
26642do
26643  IFS=$as_save_IFS
26644  test -z "$as_dir" && as_dir=.
26645  for ac_exec_ext in '' $ac_executable_extensions; do
26646  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26647    ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26648    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26649    break 2
26650  fi
26651done
26652done
26653IFS=$as_save_IFS
26654
26655  ;;
26656esac
26657fi
26658LLVMGXX=$ac_cv_path_LLVMGXX
26659if test -n "$LLVMGXX"; then
26660  { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26661echo "${ECHO_T}$LLVMGXX" >&6; }
26662else
26663  { echo "$as_me:$LINENO: result: no" >&5
26664echo "${ECHO_T}no" >&6; }
26665fi
26666
26667
26668else
26669  LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26670  LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26671  LLVMGCC=$LLVMGCC
26672
26673  LLVMGXX=$LLVMGXX
26674
26675fi
26676
26677{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26678echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26679
26680ICC=no
26681IXX=no
26682case $CC in
26683  icc*|icpc*)
26684    ICC=yes
26685    IXX=yes
26686    ;;
26687   *)
26688    ;;
26689esac
26690
26691if test "$GCC" != "yes" && test "$ICC" != "yes"
26692then
26693  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26694echo "$as_me: error: gcc|icc required but not found" >&2;}
26695   { (exit 1); exit 1; }; }
26696fi
26697
26698if test "$GXX" != "yes" && test "$IXX" != "yes"
26699then
26700  { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26701echo "$as_me: error: g++|icc required but not found" >&2;}
26702   { (exit 1); exit 1; }; }
26703fi
26704
26705if test "$GCC" = "yes"
26706then
26707  gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26708  if test "$gccmajor" -lt "3"
26709  then
26710    { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26711echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26712   { (exit 1); exit 1; }; }
26713  fi
26714fi
26715
26716if test -z "$llvm_cv_gnu_make_command"
26717then
26718  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26719echo "$as_me: error: GNU Make required but not found" >&2;}
26720   { (exit 1); exit 1; }; }
26721fi
26722
26723{ echo "$as_me:$LINENO: result: ok" >&5
26724echo "${ECHO_T}ok" >&6; }
26725
26726
26727
26728{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26729echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26730if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26731  echo $ECHO_N "(cached) $ECHO_C" >&6
26732else
26733  ac_check_lib_save_LIBS=$LIBS
26734LIBS="-lelf  $LIBS"
26735cat >conftest.$ac_ext <<_ACEOF
26736/* confdefs.h.  */
26737_ACEOF
26738cat confdefs.h >>conftest.$ac_ext
26739cat >>conftest.$ac_ext <<_ACEOF
26740/* end confdefs.h.  */
26741
26742/* Override any GCC internal prototype to avoid an error.
26743   Use char because int might match the return type of a GCC
26744   builtin and then its argument prototype would still apply.  */
26745#ifdef __cplusplus
26746extern "C"
26747#endif
26748char elf_begin ();
26749int
26750main ()
26751{
26752return elf_begin ();
26753  ;
26754  return 0;
26755}
26756_ACEOF
26757rm -f conftest.$ac_objext conftest$ac_exeext
26758if { (ac_try="$ac_link"
26759case "(($ac_try" in
26760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26761  *) ac_try_echo=$ac_try;;
26762esac
26763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26764  (eval "$ac_link") 2>conftest.er1
26765  ac_status=$?
26766  grep -v '^ *+' conftest.er1 >conftest.err
26767  rm -f conftest.er1
26768  cat conftest.err >&5
26769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26770  (exit $ac_status); } &&
26771	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26772  { (case "(($ac_try" in
26773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26774  *) ac_try_echo=$ac_try;;
26775esac
26776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26777  (eval "$ac_try") 2>&5
26778  ac_status=$?
26779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780  (exit $ac_status); }; } &&
26781	 { ac_try='test -s conftest$ac_exeext'
26782  { (case "(($ac_try" in
26783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26784  *) ac_try_echo=$ac_try;;
26785esac
26786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26787  (eval "$ac_try") 2>&5
26788  ac_status=$?
26789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790  (exit $ac_status); }; }; then
26791  ac_cv_lib_elf_elf_begin=yes
26792else
26793  echo "$as_me: failed program was:" >&5
26794sed 's/^/| /' conftest.$ac_ext >&5
26795
26796	ac_cv_lib_elf_elf_begin=no
26797fi
26798
26799rm -f core conftest.err conftest.$ac_objext \
26800      conftest$ac_exeext conftest.$ac_ext
26801LIBS=$ac_check_lib_save_LIBS
26802fi
26803{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26804echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26805if test $ac_cv_lib_elf_elf_begin = yes; then
26806  cat >>confdefs.h <<_ACEOF
26807#define HAVE_LIBELF 1
26808_ACEOF
26809
26810  LIBS="-lelf $LIBS"
26811
26812fi
26813
26814
26815{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
26816echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26817if test "${ac_cv_lib_m_sin+set}" = set; then
26818  echo $ECHO_N "(cached) $ECHO_C" >&6
26819else
26820  ac_check_lib_save_LIBS=$LIBS
26821LIBS="-lm  $LIBS"
26822cat >conftest.$ac_ext <<_ACEOF
26823/* confdefs.h.  */
26824_ACEOF
26825cat confdefs.h >>conftest.$ac_ext
26826cat >>conftest.$ac_ext <<_ACEOF
26827/* end confdefs.h.  */
26828
26829/* Override any GCC internal prototype to avoid an error.
26830   Use char because int might match the return type of a GCC
26831   builtin and then its argument prototype would still apply.  */
26832#ifdef __cplusplus
26833extern "C"
26834#endif
26835char sin ();
26836int
26837main ()
26838{
26839return sin ();
26840  ;
26841  return 0;
26842}
26843_ACEOF
26844rm -f conftest.$ac_objext conftest$ac_exeext
26845if { (ac_try="$ac_link"
26846case "(($ac_try" in
26847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26848  *) ac_try_echo=$ac_try;;
26849esac
26850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26851  (eval "$ac_link") 2>conftest.er1
26852  ac_status=$?
26853  grep -v '^ *+' conftest.er1 >conftest.err
26854  rm -f conftest.er1
26855  cat conftest.err >&5
26856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26857  (exit $ac_status); } &&
26858	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26859  { (case "(($ac_try" in
26860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26861  *) ac_try_echo=$ac_try;;
26862esac
26863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26864  (eval "$ac_try") 2>&5
26865  ac_status=$?
26866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26867  (exit $ac_status); }; } &&
26868	 { ac_try='test -s conftest$ac_exeext'
26869  { (case "(($ac_try" in
26870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26871  *) ac_try_echo=$ac_try;;
26872esac
26873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26874  (eval "$ac_try") 2>&5
26875  ac_status=$?
26876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26877  (exit $ac_status); }; }; then
26878  ac_cv_lib_m_sin=yes
26879else
26880  echo "$as_me: failed program was:" >&5
26881sed 's/^/| /' conftest.$ac_ext >&5
26882
26883	ac_cv_lib_m_sin=no
26884fi
26885
26886rm -f core conftest.err conftest.$ac_objext \
26887      conftest$ac_exeext conftest.$ac_ext
26888LIBS=$ac_check_lib_save_LIBS
26889fi
26890{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26891echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
26892if test $ac_cv_lib_m_sin = yes; then
26893  cat >>confdefs.h <<_ACEOF
26894#define HAVE_LIBM 1
26895_ACEOF
26896
26897  LIBS="-lm $LIBS"
26898
26899fi
26900
26901if test "$llvm_cv_os_type" == "MingW" ; then
26902
26903{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26904echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
26905if test "${ac_cv_lib_imagehlp_main+set}" = set; then
26906  echo $ECHO_N "(cached) $ECHO_C" >&6
26907else
26908  ac_check_lib_save_LIBS=$LIBS
26909LIBS="-limagehlp  $LIBS"
26910cat >conftest.$ac_ext <<_ACEOF
26911/* confdefs.h.  */
26912_ACEOF
26913cat confdefs.h >>conftest.$ac_ext
26914cat >>conftest.$ac_ext <<_ACEOF
26915/* end confdefs.h.  */
26916
26917
26918int
26919main ()
26920{
26921return main ();
26922  ;
26923  return 0;
26924}
26925_ACEOF
26926rm -f conftest.$ac_objext conftest$ac_exeext
26927if { (ac_try="$ac_link"
26928case "(($ac_try" in
26929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26930  *) ac_try_echo=$ac_try;;
26931esac
26932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26933  (eval "$ac_link") 2>conftest.er1
26934  ac_status=$?
26935  grep -v '^ *+' conftest.er1 >conftest.err
26936  rm -f conftest.er1
26937  cat conftest.err >&5
26938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939  (exit $ac_status); } &&
26940	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26941  { (case "(($ac_try" in
26942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26943  *) ac_try_echo=$ac_try;;
26944esac
26945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26946  (eval "$ac_try") 2>&5
26947  ac_status=$?
26948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949  (exit $ac_status); }; } &&
26950	 { ac_try='test -s conftest$ac_exeext'
26951  { (case "(($ac_try" in
26952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26953  *) ac_try_echo=$ac_try;;
26954esac
26955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26956  (eval "$ac_try") 2>&5
26957  ac_status=$?
26958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959  (exit $ac_status); }; }; then
26960  ac_cv_lib_imagehlp_main=yes
26961else
26962  echo "$as_me: failed program was:" >&5
26963sed 's/^/| /' conftest.$ac_ext >&5
26964
26965	ac_cv_lib_imagehlp_main=no
26966fi
26967
26968rm -f core conftest.err conftest.$ac_objext \
26969      conftest$ac_exeext conftest.$ac_ext
26970LIBS=$ac_check_lib_save_LIBS
26971fi
26972{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26973echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
26974if test $ac_cv_lib_imagehlp_main = yes; then
26975  cat >>confdefs.h <<_ACEOF
26976#define HAVE_LIBIMAGEHLP 1
26977_ACEOF
26978
26979  LIBS="-limagehlp $LIBS"
26980
26981fi
26982
26983
26984{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26985echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
26986if test "${ac_cv_lib_psapi_main+set}" = set; then
26987  echo $ECHO_N "(cached) $ECHO_C" >&6
26988else
26989  ac_check_lib_save_LIBS=$LIBS
26990LIBS="-lpsapi  $LIBS"
26991cat >conftest.$ac_ext <<_ACEOF
26992/* confdefs.h.  */
26993_ACEOF
26994cat confdefs.h >>conftest.$ac_ext
26995cat >>conftest.$ac_ext <<_ACEOF
26996/* end confdefs.h.  */
26997
26998
26999int
27000main ()
27001{
27002return main ();
27003  ;
27004  return 0;
27005}
27006_ACEOF
27007rm -f conftest.$ac_objext conftest$ac_exeext
27008if { (ac_try="$ac_link"
27009case "(($ac_try" in
27010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27011  *) ac_try_echo=$ac_try;;
27012esac
27013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27014  (eval "$ac_link") 2>conftest.er1
27015  ac_status=$?
27016  grep -v '^ *+' conftest.er1 >conftest.err
27017  rm -f conftest.er1
27018  cat conftest.err >&5
27019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020  (exit $ac_status); } &&
27021	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27022  { (case "(($ac_try" in
27023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024  *) ac_try_echo=$ac_try;;
27025esac
27026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27027  (eval "$ac_try") 2>&5
27028  ac_status=$?
27029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030  (exit $ac_status); }; } &&
27031	 { ac_try='test -s conftest$ac_exeext'
27032  { (case "(($ac_try" in
27033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27034  *) ac_try_echo=$ac_try;;
27035esac
27036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27037  (eval "$ac_try") 2>&5
27038  ac_status=$?
27039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040  (exit $ac_status); }; }; then
27041  ac_cv_lib_psapi_main=yes
27042else
27043  echo "$as_me: failed program was:" >&5
27044sed 's/^/| /' conftest.$ac_ext >&5
27045
27046	ac_cv_lib_psapi_main=no
27047fi
27048
27049rm -f core conftest.err conftest.$ac_objext \
27050      conftest$ac_exeext conftest.$ac_ext
27051LIBS=$ac_check_lib_save_LIBS
27052fi
27053{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27054echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27055if test $ac_cv_lib_psapi_main = yes; then
27056  cat >>confdefs.h <<_ACEOF
27057#define HAVE_LIBPSAPI 1
27058_ACEOF
27059
27060  LIBS="-lpsapi $LIBS"
27061
27062fi
27063
27064fi
27065
27066{ echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27067echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27068if test "${ac_cv_search_lt_dlopen+set}" = set; then
27069  echo $ECHO_N "(cached) $ECHO_C" >&6
27070else
27071  ac_func_search_save_LIBS=$LIBS
27072cat >conftest.$ac_ext <<_ACEOF
27073/* confdefs.h.  */
27074_ACEOF
27075cat confdefs.h >>conftest.$ac_ext
27076cat >>conftest.$ac_ext <<_ACEOF
27077/* end confdefs.h.  */
27078
27079/* Override any GCC internal prototype to avoid an error.
27080   Use char because int might match the return type of a GCC
27081   builtin and then its argument prototype would still apply.  */
27082#ifdef __cplusplus
27083extern "C"
27084#endif
27085char lt_dlopen ();
27086int
27087main ()
27088{
27089return lt_dlopen ();
27090  ;
27091  return 0;
27092}
27093_ACEOF
27094for ac_lib in '' ltdl; do
27095  if test -z "$ac_lib"; then
27096    ac_res="none required"
27097  else
27098    ac_res=-l$ac_lib
27099    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27100  fi
27101  rm -f conftest.$ac_objext conftest$ac_exeext
27102if { (ac_try="$ac_link"
27103case "(($ac_try" in
27104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27105  *) ac_try_echo=$ac_try;;
27106esac
27107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27108  (eval "$ac_link") 2>conftest.er1
27109  ac_status=$?
27110  grep -v '^ *+' conftest.er1 >conftest.err
27111  rm -f conftest.er1
27112  cat conftest.err >&5
27113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114  (exit $ac_status); } &&
27115	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27116  { (case "(($ac_try" in
27117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27118  *) ac_try_echo=$ac_try;;
27119esac
27120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27121  (eval "$ac_try") 2>&5
27122  ac_status=$?
27123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124  (exit $ac_status); }; } &&
27125	 { ac_try='test -s conftest$ac_exeext'
27126  { (case "(($ac_try" in
27127  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27128  *) ac_try_echo=$ac_try;;
27129esac
27130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27131  (eval "$ac_try") 2>&5
27132  ac_status=$?
27133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134  (exit $ac_status); }; }; then
27135  ac_cv_search_lt_dlopen=$ac_res
27136else
27137  echo "$as_me: failed program was:" >&5
27138sed 's/^/| /' conftest.$ac_ext >&5
27139
27140
27141fi
27142
27143rm -f core conftest.err conftest.$ac_objext \
27144      conftest$ac_exeext
27145  if test "${ac_cv_search_lt_dlopen+set}" = set; then
27146  break
27147fi
27148done
27149if test "${ac_cv_search_lt_dlopen+set}" = set; then
27150  :
27151else
27152  ac_cv_search_lt_dlopen=no
27153fi
27154rm conftest.$ac_ext
27155LIBS=$ac_func_search_save_LIBS
27156fi
27157{ echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27158echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27159ac_res=$ac_cv_search_lt_dlopen
27160if test "$ac_res" != no; then
27161  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27162
27163cat >>confdefs.h <<\_ACEOF
27164#define HAVE_LT_DLOPEN 1
27165_ACEOF
27166
27167else
27168  { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27169                           not be available" >&5
27170echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27171                           not be available" >&2;}
27172fi
27173
27174
27175{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27176echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27177if test "${ac_cv_search_dlopen+set}" = set; then
27178  echo $ECHO_N "(cached) $ECHO_C" >&6
27179else
27180  ac_func_search_save_LIBS=$LIBS
27181cat >conftest.$ac_ext <<_ACEOF
27182/* confdefs.h.  */
27183_ACEOF
27184cat confdefs.h >>conftest.$ac_ext
27185cat >>conftest.$ac_ext <<_ACEOF
27186/* end confdefs.h.  */
27187
27188/* Override any GCC internal prototype to avoid an error.
27189   Use char because int might match the return type of a GCC
27190   builtin and then its argument prototype would still apply.  */
27191#ifdef __cplusplus
27192extern "C"
27193#endif
27194char dlopen ();
27195int
27196main ()
27197{
27198return dlopen ();
27199  ;
27200  return 0;
27201}
27202_ACEOF
27203for ac_lib in '' dl; do
27204  if test -z "$ac_lib"; then
27205    ac_res="none required"
27206  else
27207    ac_res=-l$ac_lib
27208    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27209  fi
27210  rm -f conftest.$ac_objext conftest$ac_exeext
27211if { (ac_try="$ac_link"
27212case "(($ac_try" in
27213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27214  *) ac_try_echo=$ac_try;;
27215esac
27216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27217  (eval "$ac_link") 2>conftest.er1
27218  ac_status=$?
27219  grep -v '^ *+' conftest.er1 >conftest.err
27220  rm -f conftest.er1
27221  cat conftest.err >&5
27222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27223  (exit $ac_status); } &&
27224	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27225  { (case "(($ac_try" in
27226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27227  *) ac_try_echo=$ac_try;;
27228esac
27229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27230  (eval "$ac_try") 2>&5
27231  ac_status=$?
27232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27233  (exit $ac_status); }; } &&
27234	 { ac_try='test -s conftest$ac_exeext'
27235  { (case "(($ac_try" in
27236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27237  *) ac_try_echo=$ac_try;;
27238esac
27239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27240  (eval "$ac_try") 2>&5
27241  ac_status=$?
27242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27243  (exit $ac_status); }; }; then
27244  ac_cv_search_dlopen=$ac_res
27245else
27246  echo "$as_me: failed program was:" >&5
27247sed 's/^/| /' conftest.$ac_ext >&5
27248
27249
27250fi
27251
27252rm -f core conftest.err conftest.$ac_objext \
27253      conftest$ac_exeext
27254  if test "${ac_cv_search_dlopen+set}" = set; then
27255  break
27256fi
27257done
27258if test "${ac_cv_search_dlopen+set}" = set; then
27259  :
27260else
27261  ac_cv_search_dlopen=no
27262fi
27263rm conftest.$ac_ext
27264LIBS=$ac_func_search_save_LIBS
27265fi
27266{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27267echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27268ac_res=$ac_cv_search_dlopen
27269if test "$ac_res" != no; then
27270  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27271
27272cat >>confdefs.h <<\_ACEOF
27273#define HAVE_DLOPEN 1
27274_ACEOF
27275
27276else
27277  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27278echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27279fi
27280
27281
27282{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27283echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27284if test "${ac_cv_search_mallinfo+set}" = set; then
27285  echo $ECHO_N "(cached) $ECHO_C" >&6
27286else
27287  ac_func_search_save_LIBS=$LIBS
27288cat >conftest.$ac_ext <<_ACEOF
27289/* confdefs.h.  */
27290_ACEOF
27291cat confdefs.h >>conftest.$ac_ext
27292cat >>conftest.$ac_ext <<_ACEOF
27293/* end confdefs.h.  */
27294
27295/* Override any GCC internal prototype to avoid an error.
27296   Use char because int might match the return type of a GCC
27297   builtin and then its argument prototype would still apply.  */
27298#ifdef __cplusplus
27299extern "C"
27300#endif
27301char mallinfo ();
27302int
27303main ()
27304{
27305return mallinfo ();
27306  ;
27307  return 0;
27308}
27309_ACEOF
27310for ac_lib in '' malloc; do
27311  if test -z "$ac_lib"; then
27312    ac_res="none required"
27313  else
27314    ac_res=-l$ac_lib
27315    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27316  fi
27317  rm -f conftest.$ac_objext conftest$ac_exeext
27318if { (ac_try="$ac_link"
27319case "(($ac_try" in
27320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27321  *) ac_try_echo=$ac_try;;
27322esac
27323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27324  (eval "$ac_link") 2>conftest.er1
27325  ac_status=$?
27326  grep -v '^ *+' conftest.er1 >conftest.err
27327  rm -f conftest.er1
27328  cat conftest.err >&5
27329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330  (exit $ac_status); } &&
27331	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27332  { (case "(($ac_try" in
27333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27334  *) ac_try_echo=$ac_try;;
27335esac
27336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27337  (eval "$ac_try") 2>&5
27338  ac_status=$?
27339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27340  (exit $ac_status); }; } &&
27341	 { ac_try='test -s conftest$ac_exeext'
27342  { (case "(($ac_try" in
27343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27344  *) ac_try_echo=$ac_try;;
27345esac
27346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27347  (eval "$ac_try") 2>&5
27348  ac_status=$?
27349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27350  (exit $ac_status); }; }; then
27351  ac_cv_search_mallinfo=$ac_res
27352else
27353  echo "$as_me: failed program was:" >&5
27354sed 's/^/| /' conftest.$ac_ext >&5
27355
27356
27357fi
27358
27359rm -f core conftest.err conftest.$ac_objext \
27360      conftest$ac_exeext
27361  if test "${ac_cv_search_mallinfo+set}" = set; then
27362  break
27363fi
27364done
27365if test "${ac_cv_search_mallinfo+set}" = set; then
27366  :
27367else
27368  ac_cv_search_mallinfo=no
27369fi
27370rm conftest.$ac_ext
27371LIBS=$ac_func_search_save_LIBS
27372fi
27373{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27374echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27375ac_res=$ac_cv_search_mallinfo
27376if test "$ac_res" != no; then
27377  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27378
27379cat >>confdefs.h <<\_ACEOF
27380#define HAVE_MALLINFO 1
27381_ACEOF
27382
27383fi
27384
27385
27386if test "$ENABLE_THREADS" -eq 1 ; then
27387
27388{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27389echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27390if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27391  echo $ECHO_N "(cached) $ECHO_C" >&6
27392else
27393  ac_check_lib_save_LIBS=$LIBS
27394LIBS="-lpthread  $LIBS"
27395cat >conftest.$ac_ext <<_ACEOF
27396/* confdefs.h.  */
27397_ACEOF
27398cat confdefs.h >>conftest.$ac_ext
27399cat >>conftest.$ac_ext <<_ACEOF
27400/* end confdefs.h.  */
27401
27402/* Override any GCC internal prototype to avoid an error.
27403   Use char because int might match the return type of a GCC
27404   builtin and then its argument prototype would still apply.  */
27405#ifdef __cplusplus
27406extern "C"
27407#endif
27408char pthread_mutex_init ();
27409int
27410main ()
27411{
27412return pthread_mutex_init ();
27413  ;
27414  return 0;
27415}
27416_ACEOF
27417rm -f conftest.$ac_objext conftest$ac_exeext
27418if { (ac_try="$ac_link"
27419case "(($ac_try" in
27420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27421  *) ac_try_echo=$ac_try;;
27422esac
27423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27424  (eval "$ac_link") 2>conftest.er1
27425  ac_status=$?
27426  grep -v '^ *+' conftest.er1 >conftest.err
27427  rm -f conftest.er1
27428  cat conftest.err >&5
27429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27430  (exit $ac_status); } &&
27431	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27432  { (case "(($ac_try" in
27433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27434  *) ac_try_echo=$ac_try;;
27435esac
27436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27437  (eval "$ac_try") 2>&5
27438  ac_status=$?
27439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27440  (exit $ac_status); }; } &&
27441	 { ac_try='test -s conftest$ac_exeext'
27442  { (case "(($ac_try" in
27443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27444  *) ac_try_echo=$ac_try;;
27445esac
27446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27447  (eval "$ac_try") 2>&5
27448  ac_status=$?
27449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27450  (exit $ac_status); }; }; then
27451  ac_cv_lib_pthread_pthread_mutex_init=yes
27452else
27453  echo "$as_me: failed program was:" >&5
27454sed 's/^/| /' conftest.$ac_ext >&5
27455
27456	ac_cv_lib_pthread_pthread_mutex_init=no
27457fi
27458
27459rm -f core conftest.err conftest.$ac_objext \
27460      conftest$ac_exeext conftest.$ac_ext
27461LIBS=$ac_check_lib_save_LIBS
27462fi
27463{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27464echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27465if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27466  cat >>confdefs.h <<_ACEOF
27467#define HAVE_LIBPTHREAD 1
27468_ACEOF
27469
27470  LIBS="-lpthread $LIBS"
27471
27472fi
27473
27474  { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27475echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27476if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27477  echo $ECHO_N "(cached) $ECHO_C" >&6
27478else
27479  ac_func_search_save_LIBS=$LIBS
27480cat >conftest.$ac_ext <<_ACEOF
27481/* confdefs.h.  */
27482_ACEOF
27483cat confdefs.h >>conftest.$ac_ext
27484cat >>conftest.$ac_ext <<_ACEOF
27485/* end confdefs.h.  */
27486
27487/* Override any GCC internal prototype to avoid an error.
27488   Use char because int might match the return type of a GCC
27489   builtin and then its argument prototype would still apply.  */
27490#ifdef __cplusplus
27491extern "C"
27492#endif
27493char pthread_mutex_lock ();
27494int
27495main ()
27496{
27497return pthread_mutex_lock ();
27498  ;
27499  return 0;
27500}
27501_ACEOF
27502for ac_lib in '' pthread; do
27503  if test -z "$ac_lib"; then
27504    ac_res="none required"
27505  else
27506    ac_res=-l$ac_lib
27507    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27508  fi
27509  rm -f conftest.$ac_objext conftest$ac_exeext
27510if { (ac_try="$ac_link"
27511case "(($ac_try" in
27512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27513  *) ac_try_echo=$ac_try;;
27514esac
27515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27516  (eval "$ac_link") 2>conftest.er1
27517  ac_status=$?
27518  grep -v '^ *+' conftest.er1 >conftest.err
27519  rm -f conftest.er1
27520  cat conftest.err >&5
27521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522  (exit $ac_status); } &&
27523	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27524  { (case "(($ac_try" in
27525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27526  *) ac_try_echo=$ac_try;;
27527esac
27528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27529  (eval "$ac_try") 2>&5
27530  ac_status=$?
27531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27532  (exit $ac_status); }; } &&
27533	 { ac_try='test -s conftest$ac_exeext'
27534  { (case "(($ac_try" in
27535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27536  *) ac_try_echo=$ac_try;;
27537esac
27538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27539  (eval "$ac_try") 2>&5
27540  ac_status=$?
27541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27542  (exit $ac_status); }; }; then
27543  ac_cv_search_pthread_mutex_lock=$ac_res
27544else
27545  echo "$as_me: failed program was:" >&5
27546sed 's/^/| /' conftest.$ac_ext >&5
27547
27548
27549fi
27550
27551rm -f core conftest.err conftest.$ac_objext \
27552      conftest$ac_exeext
27553  if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27554  break
27555fi
27556done
27557if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27558  :
27559else
27560  ac_cv_search_pthread_mutex_lock=no
27561fi
27562rm conftest.$ac_ext
27563LIBS=$ac_func_search_save_LIBS
27564fi
27565{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27566echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27567ac_res=$ac_cv_search_pthread_mutex_lock
27568if test "$ac_res" != no; then
27569  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27570
27571cat >>confdefs.h <<\_ACEOF
27572#define HAVE_PTHREAD_MUTEX_LOCK 1
27573_ACEOF
27574
27575fi
27576
27577fi
27578
27579
27580
27581
27582
27583
27584
27585ac_header_dirent=no
27586for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27587  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27588{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27589echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27590if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27591  echo $ECHO_N "(cached) $ECHO_C" >&6
27592else
27593  cat >conftest.$ac_ext <<_ACEOF
27594/* confdefs.h.  */
27595_ACEOF
27596cat confdefs.h >>conftest.$ac_ext
27597cat >>conftest.$ac_ext <<_ACEOF
27598/* end confdefs.h.  */
27599#include <sys/types.h>
27600#include <$ac_hdr>
27601
27602int
27603main ()
27604{
27605if ((DIR *) 0)
27606return 0;
27607  ;
27608  return 0;
27609}
27610_ACEOF
27611rm -f conftest.$ac_objext
27612if { (ac_try="$ac_compile"
27613case "(($ac_try" in
27614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27615  *) ac_try_echo=$ac_try;;
27616esac
27617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27618  (eval "$ac_compile") 2>conftest.er1
27619  ac_status=$?
27620  grep -v '^ *+' conftest.er1 >conftest.err
27621  rm -f conftest.er1
27622  cat conftest.err >&5
27623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624  (exit $ac_status); } &&
27625	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27626  { (case "(($ac_try" in
27627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27628  *) ac_try_echo=$ac_try;;
27629esac
27630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27631  (eval "$ac_try") 2>&5
27632  ac_status=$?
27633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27634  (exit $ac_status); }; } &&
27635	 { ac_try='test -s conftest.$ac_objext'
27636  { (case "(($ac_try" in
27637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27638  *) ac_try_echo=$ac_try;;
27639esac
27640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27641  (eval "$ac_try") 2>&5
27642  ac_status=$?
27643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27644  (exit $ac_status); }; }; then
27645  eval "$as_ac_Header=yes"
27646else
27647  echo "$as_me: failed program was:" >&5
27648sed 's/^/| /' conftest.$ac_ext >&5
27649
27650	eval "$as_ac_Header=no"
27651fi
27652
27653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27654fi
27655ac_res=`eval echo '${'$as_ac_Header'}'`
27656	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27657echo "${ECHO_T}$ac_res" >&6; }
27658if test `eval echo '${'$as_ac_Header'}'` = yes; then
27659  cat >>confdefs.h <<_ACEOF
27660#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27661_ACEOF
27662
27663ac_header_dirent=$ac_hdr; break
27664fi
27665
27666done
27667# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27668if test $ac_header_dirent = dirent.h; then
27669  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27670echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27671if test "${ac_cv_search_opendir+set}" = set; then
27672  echo $ECHO_N "(cached) $ECHO_C" >&6
27673else
27674  ac_func_search_save_LIBS=$LIBS
27675cat >conftest.$ac_ext <<_ACEOF
27676/* confdefs.h.  */
27677_ACEOF
27678cat confdefs.h >>conftest.$ac_ext
27679cat >>conftest.$ac_ext <<_ACEOF
27680/* end confdefs.h.  */
27681
27682/* Override any GCC internal prototype to avoid an error.
27683   Use char because int might match the return type of a GCC
27684   builtin and then its argument prototype would still apply.  */
27685#ifdef __cplusplus
27686extern "C"
27687#endif
27688char opendir ();
27689int
27690main ()
27691{
27692return opendir ();
27693  ;
27694  return 0;
27695}
27696_ACEOF
27697for ac_lib in '' dir; do
27698  if test -z "$ac_lib"; then
27699    ac_res="none required"
27700  else
27701    ac_res=-l$ac_lib
27702    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27703  fi
27704  rm -f conftest.$ac_objext conftest$ac_exeext
27705if { (ac_try="$ac_link"
27706case "(($ac_try" in
27707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27708  *) ac_try_echo=$ac_try;;
27709esac
27710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27711  (eval "$ac_link") 2>conftest.er1
27712  ac_status=$?
27713  grep -v '^ *+' conftest.er1 >conftest.err
27714  rm -f conftest.er1
27715  cat conftest.err >&5
27716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27717  (exit $ac_status); } &&
27718	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27719  { (case "(($ac_try" in
27720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27721  *) ac_try_echo=$ac_try;;
27722esac
27723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27724  (eval "$ac_try") 2>&5
27725  ac_status=$?
27726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27727  (exit $ac_status); }; } &&
27728	 { ac_try='test -s conftest$ac_exeext'
27729  { (case "(($ac_try" in
27730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27731  *) ac_try_echo=$ac_try;;
27732esac
27733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27734  (eval "$ac_try") 2>&5
27735  ac_status=$?
27736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27737  (exit $ac_status); }; }; then
27738  ac_cv_search_opendir=$ac_res
27739else
27740  echo "$as_me: failed program was:" >&5
27741sed 's/^/| /' conftest.$ac_ext >&5
27742
27743
27744fi
27745
27746rm -f core conftest.err conftest.$ac_objext \
27747      conftest$ac_exeext
27748  if test "${ac_cv_search_opendir+set}" = set; then
27749  break
27750fi
27751done
27752if test "${ac_cv_search_opendir+set}" = set; then
27753  :
27754else
27755  ac_cv_search_opendir=no
27756fi
27757rm conftest.$ac_ext
27758LIBS=$ac_func_search_save_LIBS
27759fi
27760{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27761echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27762ac_res=$ac_cv_search_opendir
27763if test "$ac_res" != no; then
27764  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27765
27766fi
27767
27768else
27769  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27770echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27771if test "${ac_cv_search_opendir+set}" = set; then
27772  echo $ECHO_N "(cached) $ECHO_C" >&6
27773else
27774  ac_func_search_save_LIBS=$LIBS
27775cat >conftest.$ac_ext <<_ACEOF
27776/* confdefs.h.  */
27777_ACEOF
27778cat confdefs.h >>conftest.$ac_ext
27779cat >>conftest.$ac_ext <<_ACEOF
27780/* end confdefs.h.  */
27781
27782/* Override any GCC internal prototype to avoid an error.
27783   Use char because int might match the return type of a GCC
27784   builtin and then its argument prototype would still apply.  */
27785#ifdef __cplusplus
27786extern "C"
27787#endif
27788char opendir ();
27789int
27790main ()
27791{
27792return opendir ();
27793  ;
27794  return 0;
27795}
27796_ACEOF
27797for ac_lib in '' x; do
27798  if test -z "$ac_lib"; then
27799    ac_res="none required"
27800  else
27801    ac_res=-l$ac_lib
27802    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27803  fi
27804  rm -f conftest.$ac_objext conftest$ac_exeext
27805if { (ac_try="$ac_link"
27806case "(($ac_try" in
27807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27808  *) ac_try_echo=$ac_try;;
27809esac
27810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27811  (eval "$ac_link") 2>conftest.er1
27812  ac_status=$?
27813  grep -v '^ *+' conftest.er1 >conftest.err
27814  rm -f conftest.er1
27815  cat conftest.err >&5
27816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27817  (exit $ac_status); } &&
27818	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27819  { (case "(($ac_try" in
27820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27821  *) ac_try_echo=$ac_try;;
27822esac
27823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27824  (eval "$ac_try") 2>&5
27825  ac_status=$?
27826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827  (exit $ac_status); }; } &&
27828	 { ac_try='test -s conftest$ac_exeext'
27829  { (case "(($ac_try" in
27830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27831  *) ac_try_echo=$ac_try;;
27832esac
27833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27834  (eval "$ac_try") 2>&5
27835  ac_status=$?
27836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27837  (exit $ac_status); }; }; then
27838  ac_cv_search_opendir=$ac_res
27839else
27840  echo "$as_me: failed program was:" >&5
27841sed 's/^/| /' conftest.$ac_ext >&5
27842
27843
27844fi
27845
27846rm -f core conftest.err conftest.$ac_objext \
27847      conftest$ac_exeext
27848  if test "${ac_cv_search_opendir+set}" = set; then
27849  break
27850fi
27851done
27852if test "${ac_cv_search_opendir+set}" = set; then
27853  :
27854else
27855  ac_cv_search_opendir=no
27856fi
27857rm conftest.$ac_ext
27858LIBS=$ac_func_search_save_LIBS
27859fi
27860{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27861echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27862ac_res=$ac_cv_search_opendir
27863if test "$ac_res" != no; then
27864  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27865
27866fi
27867
27868fi
27869
27870{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27871echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
27872if test "${ac_cv_header_mmap_anon+set}" = set; then
27873  echo $ECHO_N "(cached) $ECHO_C" >&6
27874else
27875   ac_ext=c
27876ac_cpp='$CPP $CPPFLAGS'
27877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27879ac_compiler_gnu=$ac_cv_c_compiler_gnu
27880
27881  cat >conftest.$ac_ext <<_ACEOF
27882/* confdefs.h.  */
27883_ACEOF
27884cat confdefs.h >>conftest.$ac_ext
27885cat >>conftest.$ac_ext <<_ACEOF
27886/* end confdefs.h.  */
27887#include <sys/mman.h>
27888#include <unistd.h>
27889#include <fcntl.h>
27890int
27891main ()
27892{
27893mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
27894  ;
27895  return 0;
27896}
27897_ACEOF
27898rm -f conftest.$ac_objext
27899if { (ac_try="$ac_compile"
27900case "(($ac_try" in
27901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27902  *) ac_try_echo=$ac_try;;
27903esac
27904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27905  (eval "$ac_compile") 2>conftest.er1
27906  ac_status=$?
27907  grep -v '^ *+' conftest.er1 >conftest.err
27908  rm -f conftest.er1
27909  cat conftest.err >&5
27910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911  (exit $ac_status); } &&
27912	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27913  { (case "(($ac_try" in
27914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27915  *) ac_try_echo=$ac_try;;
27916esac
27917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27918  (eval "$ac_try") 2>&5
27919  ac_status=$?
27920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27921  (exit $ac_status); }; } &&
27922	 { ac_try='test -s conftest.$ac_objext'
27923  { (case "(($ac_try" in
27924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27925  *) ac_try_echo=$ac_try;;
27926esac
27927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27928  (eval "$ac_try") 2>&5
27929  ac_status=$?
27930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27931  (exit $ac_status); }; }; then
27932  ac_cv_header_mmap_anon=yes
27933else
27934  echo "$as_me: failed program was:" >&5
27935sed 's/^/| /' conftest.$ac_ext >&5
27936
27937	ac_cv_header_mmap_anon=no
27938fi
27939
27940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27941  ac_ext=c
27942ac_cpp='$CPP $CPPFLAGS'
27943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27945ac_compiler_gnu=$ac_cv_c_compiler_gnu
27946
27947
27948fi
27949{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
27950echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
27951if test "$ac_cv_header_mmap_anon" = yes; then
27952
27953cat >>confdefs.h <<\_ACEOF
27954#define HAVE_MMAP_ANONYMOUS 1
27955_ACEOF
27956
27957fi
27958
27959{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27960echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
27961if test "${ac_cv_header_stat_broken+set}" = set; then
27962  echo $ECHO_N "(cached) $ECHO_C" >&6
27963else
27964  cat >conftest.$ac_ext <<_ACEOF
27965/* confdefs.h.  */
27966_ACEOF
27967cat confdefs.h >>conftest.$ac_ext
27968cat >>conftest.$ac_ext <<_ACEOF
27969/* end confdefs.h.  */
27970#include <sys/types.h>
27971#include <sys/stat.h>
27972
27973#if defined S_ISBLK && defined S_IFDIR
27974# if S_ISBLK (S_IFDIR)
27975You lose.
27976# endif
27977#endif
27978
27979#if defined S_ISBLK && defined S_IFCHR
27980# if S_ISBLK (S_IFCHR)
27981You lose.
27982# endif
27983#endif
27984
27985#if defined S_ISLNK && defined S_IFREG
27986# if S_ISLNK (S_IFREG)
27987You lose.
27988# endif
27989#endif
27990
27991#if defined S_ISSOCK && defined S_IFREG
27992# if S_ISSOCK (S_IFREG)
27993You lose.
27994# endif
27995#endif
27996
27997_ACEOF
27998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27999  $EGREP "You lose" >/dev/null 2>&1; then
28000  ac_cv_header_stat_broken=yes
28001else
28002  ac_cv_header_stat_broken=no
28003fi
28004rm -f conftest*
28005
28006fi
28007{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28008echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28009if test $ac_cv_header_stat_broken = yes; then
28010
28011cat >>confdefs.h <<\_ACEOF
28012#define STAT_MACROS_BROKEN 1
28013_ACEOF
28014
28015fi
28016
28017{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28018echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28019if test "${ac_cv_header_stdc+set}" = set; then
28020  echo $ECHO_N "(cached) $ECHO_C" >&6
28021else
28022  cat >conftest.$ac_ext <<_ACEOF
28023/* confdefs.h.  */
28024_ACEOF
28025cat confdefs.h >>conftest.$ac_ext
28026cat >>conftest.$ac_ext <<_ACEOF
28027/* end confdefs.h.  */
28028#include <stdlib.h>
28029#include <stdarg.h>
28030#include <string.h>
28031#include <float.h>
28032
28033int
28034main ()
28035{
28036
28037  ;
28038  return 0;
28039}
28040_ACEOF
28041rm -f conftest.$ac_objext
28042if { (ac_try="$ac_compile"
28043case "(($ac_try" in
28044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28045  *) ac_try_echo=$ac_try;;
28046esac
28047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28048  (eval "$ac_compile") 2>conftest.er1
28049  ac_status=$?
28050  grep -v '^ *+' conftest.er1 >conftest.err
28051  rm -f conftest.er1
28052  cat conftest.err >&5
28053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28054  (exit $ac_status); } &&
28055	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28056  { (case "(($ac_try" in
28057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28058  *) ac_try_echo=$ac_try;;
28059esac
28060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28061  (eval "$ac_try") 2>&5
28062  ac_status=$?
28063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064  (exit $ac_status); }; } &&
28065	 { ac_try='test -s conftest.$ac_objext'
28066  { (case "(($ac_try" in
28067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28068  *) ac_try_echo=$ac_try;;
28069esac
28070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28071  (eval "$ac_try") 2>&5
28072  ac_status=$?
28073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28074  (exit $ac_status); }; }; then
28075  ac_cv_header_stdc=yes
28076else
28077  echo "$as_me: failed program was:" >&5
28078sed 's/^/| /' conftest.$ac_ext >&5
28079
28080	ac_cv_header_stdc=no
28081fi
28082
28083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28084
28085if test $ac_cv_header_stdc = yes; then
28086  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28087  cat >conftest.$ac_ext <<_ACEOF
28088/* confdefs.h.  */
28089_ACEOF
28090cat confdefs.h >>conftest.$ac_ext
28091cat >>conftest.$ac_ext <<_ACEOF
28092/* end confdefs.h.  */
28093#include <string.h>
28094
28095_ACEOF
28096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28097  $EGREP "memchr" >/dev/null 2>&1; then
28098  :
28099else
28100  ac_cv_header_stdc=no
28101fi
28102rm -f conftest*
28103
28104fi
28105
28106if test $ac_cv_header_stdc = yes; then
28107  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28108  cat >conftest.$ac_ext <<_ACEOF
28109/* confdefs.h.  */
28110_ACEOF
28111cat confdefs.h >>conftest.$ac_ext
28112cat >>conftest.$ac_ext <<_ACEOF
28113/* end confdefs.h.  */
28114#include <stdlib.h>
28115
28116_ACEOF
28117if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28118  $EGREP "free" >/dev/null 2>&1; then
28119  :
28120else
28121  ac_cv_header_stdc=no
28122fi
28123rm -f conftest*
28124
28125fi
28126
28127if test $ac_cv_header_stdc = yes; then
28128  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28129  if test "$cross_compiling" = yes; then
28130  :
28131else
28132  cat >conftest.$ac_ext <<_ACEOF
28133/* confdefs.h.  */
28134_ACEOF
28135cat confdefs.h >>conftest.$ac_ext
28136cat >>conftest.$ac_ext <<_ACEOF
28137/* end confdefs.h.  */
28138#include <ctype.h>
28139#include <stdlib.h>
28140#if ((' ' & 0x0FF) == 0x020)
28141# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28142# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28143#else
28144# define ISLOWER(c) \
28145		   (('a' <= (c) && (c) <= 'i') \
28146		     || ('j' <= (c) && (c) <= 'r') \
28147		     || ('s' <= (c) && (c) <= 'z'))
28148# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28149#endif
28150
28151#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28152int
28153main ()
28154{
28155  int i;
28156  for (i = 0; i < 256; i++)
28157    if (XOR (islower (i), ISLOWER (i))
28158	|| toupper (i) != TOUPPER (i))
28159      return 2;
28160  return 0;
28161}
28162_ACEOF
28163rm -f conftest$ac_exeext
28164if { (ac_try="$ac_link"
28165case "(($ac_try" in
28166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28167  *) ac_try_echo=$ac_try;;
28168esac
28169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28170  (eval "$ac_link") 2>&5
28171  ac_status=$?
28172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28173  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28174  { (case "(($ac_try" in
28175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28176  *) ac_try_echo=$ac_try;;
28177esac
28178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28179  (eval "$ac_try") 2>&5
28180  ac_status=$?
28181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182  (exit $ac_status); }; }; then
28183  :
28184else
28185  echo "$as_me: program exited with status $ac_status" >&5
28186echo "$as_me: failed program was:" >&5
28187sed 's/^/| /' conftest.$ac_ext >&5
28188
28189( exit $ac_status )
28190ac_cv_header_stdc=no
28191fi
28192rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28193fi
28194
28195
28196fi
28197fi
28198{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28199echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28200if test $ac_cv_header_stdc = yes; then
28201
28202cat >>confdefs.h <<\_ACEOF
28203#define STDC_HEADERS 1
28204_ACEOF
28205
28206fi
28207
28208{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28209echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28210if test "${ac_cv_header_sys_wait_h+set}" = set; then
28211  echo $ECHO_N "(cached) $ECHO_C" >&6
28212else
28213  cat >conftest.$ac_ext <<_ACEOF
28214/* confdefs.h.  */
28215_ACEOF
28216cat confdefs.h >>conftest.$ac_ext
28217cat >>conftest.$ac_ext <<_ACEOF
28218/* end confdefs.h.  */
28219#include <sys/types.h>
28220#include <sys/wait.h>
28221#ifndef WEXITSTATUS
28222# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28223#endif
28224#ifndef WIFEXITED
28225# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28226#endif
28227
28228int
28229main ()
28230{
28231  int s;
28232  wait (&s);
28233  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28234  ;
28235  return 0;
28236}
28237_ACEOF
28238rm -f conftest.$ac_objext
28239if { (ac_try="$ac_compile"
28240case "(($ac_try" in
28241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28242  *) ac_try_echo=$ac_try;;
28243esac
28244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28245  (eval "$ac_compile") 2>conftest.er1
28246  ac_status=$?
28247  grep -v '^ *+' conftest.er1 >conftest.err
28248  rm -f conftest.er1
28249  cat conftest.err >&5
28250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28251  (exit $ac_status); } &&
28252	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28253  { (case "(($ac_try" in
28254  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28255  *) ac_try_echo=$ac_try;;
28256esac
28257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28258  (eval "$ac_try") 2>&5
28259  ac_status=$?
28260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28261  (exit $ac_status); }; } &&
28262	 { ac_try='test -s conftest.$ac_objext'
28263  { (case "(($ac_try" in
28264  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28265  *) ac_try_echo=$ac_try;;
28266esac
28267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28268  (eval "$ac_try") 2>&5
28269  ac_status=$?
28270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28271  (exit $ac_status); }; }; then
28272  ac_cv_header_sys_wait_h=yes
28273else
28274  echo "$as_me: failed program was:" >&5
28275sed 's/^/| /' conftest.$ac_ext >&5
28276
28277	ac_cv_header_sys_wait_h=no
28278fi
28279
28280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28281fi
28282{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28283echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28284if test $ac_cv_header_sys_wait_h = yes; then
28285
28286cat >>confdefs.h <<\_ACEOF
28287#define HAVE_SYS_WAIT_H 1
28288_ACEOF
28289
28290fi
28291
28292{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28293echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28294if test "${ac_cv_header_time+set}" = set; then
28295  echo $ECHO_N "(cached) $ECHO_C" >&6
28296else
28297  cat >conftest.$ac_ext <<_ACEOF
28298/* confdefs.h.  */
28299_ACEOF
28300cat confdefs.h >>conftest.$ac_ext
28301cat >>conftest.$ac_ext <<_ACEOF
28302/* end confdefs.h.  */
28303#include <sys/types.h>
28304#include <sys/time.h>
28305#include <time.h>
28306
28307int
28308main ()
28309{
28310if ((struct tm *) 0)
28311return 0;
28312  ;
28313  return 0;
28314}
28315_ACEOF
28316rm -f conftest.$ac_objext
28317if { (ac_try="$ac_compile"
28318case "(($ac_try" in
28319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28320  *) ac_try_echo=$ac_try;;
28321esac
28322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28323  (eval "$ac_compile") 2>conftest.er1
28324  ac_status=$?
28325  grep -v '^ *+' conftest.er1 >conftest.err
28326  rm -f conftest.er1
28327  cat conftest.err >&5
28328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329  (exit $ac_status); } &&
28330	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28331  { (case "(($ac_try" in
28332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28333  *) ac_try_echo=$ac_try;;
28334esac
28335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28336  (eval "$ac_try") 2>&5
28337  ac_status=$?
28338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28339  (exit $ac_status); }; } &&
28340	 { ac_try='test -s conftest.$ac_objext'
28341  { (case "(($ac_try" in
28342  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28343  *) ac_try_echo=$ac_try;;
28344esac
28345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28346  (eval "$ac_try") 2>&5
28347  ac_status=$?
28348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28349  (exit $ac_status); }; }; then
28350  ac_cv_header_time=yes
28351else
28352  echo "$as_me: failed program was:" >&5
28353sed 's/^/| /' conftest.$ac_ext >&5
28354
28355	ac_cv_header_time=no
28356fi
28357
28358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28359fi
28360{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28361echo "${ECHO_T}$ac_cv_header_time" >&6; }
28362if test $ac_cv_header_time = yes; then
28363
28364cat >>confdefs.h <<\_ACEOF
28365#define TIME_WITH_SYS_TIME 1
28366_ACEOF
28367
28368fi
28369
28370
28371
28372
28373
28374
28375
28376
28377for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28378do
28379as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28380if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28381  { echo "$as_me:$LINENO: checking for $ac_header" >&5
28382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28383if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28384  echo $ECHO_N "(cached) $ECHO_C" >&6
28385fi
28386ac_res=`eval echo '${'$as_ac_Header'}'`
28387	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28388echo "${ECHO_T}$ac_res" >&6; }
28389else
28390  # Is the header compilable?
28391{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28392echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28393cat >conftest.$ac_ext <<_ACEOF
28394/* confdefs.h.  */
28395_ACEOF
28396cat confdefs.h >>conftest.$ac_ext
28397cat >>conftest.$ac_ext <<_ACEOF
28398/* end confdefs.h.  */
28399$ac_includes_default
28400#include <$ac_header>
28401_ACEOF
28402rm -f conftest.$ac_objext
28403if { (ac_try="$ac_compile"
28404case "(($ac_try" in
28405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28406  *) ac_try_echo=$ac_try;;
28407esac
28408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28409  (eval "$ac_compile") 2>conftest.er1
28410  ac_status=$?
28411  grep -v '^ *+' conftest.er1 >conftest.err
28412  rm -f conftest.er1
28413  cat conftest.err >&5
28414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415  (exit $ac_status); } &&
28416	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28417  { (case "(($ac_try" in
28418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28419  *) ac_try_echo=$ac_try;;
28420esac
28421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28422  (eval "$ac_try") 2>&5
28423  ac_status=$?
28424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425  (exit $ac_status); }; } &&
28426	 { ac_try='test -s conftest.$ac_objext'
28427  { (case "(($ac_try" in
28428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28429  *) ac_try_echo=$ac_try;;
28430esac
28431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28432  (eval "$ac_try") 2>&5
28433  ac_status=$?
28434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435  (exit $ac_status); }; }; then
28436  ac_header_compiler=yes
28437else
28438  echo "$as_me: failed program was:" >&5
28439sed 's/^/| /' conftest.$ac_ext >&5
28440
28441	ac_header_compiler=no
28442fi
28443
28444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28445{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28446echo "${ECHO_T}$ac_header_compiler" >&6; }
28447
28448# Is the header present?
28449{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28450echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28451cat >conftest.$ac_ext <<_ACEOF
28452/* confdefs.h.  */
28453_ACEOF
28454cat confdefs.h >>conftest.$ac_ext
28455cat >>conftest.$ac_ext <<_ACEOF
28456/* end confdefs.h.  */
28457#include <$ac_header>
28458_ACEOF
28459if { (ac_try="$ac_cpp conftest.$ac_ext"
28460case "(($ac_try" in
28461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28462  *) ac_try_echo=$ac_try;;
28463esac
28464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28465  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28466  ac_status=$?
28467  grep -v '^ *+' conftest.er1 >conftest.err
28468  rm -f conftest.er1
28469  cat conftest.err >&5
28470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471  (exit $ac_status); } >/dev/null; then
28472  if test -s conftest.err; then
28473    ac_cpp_err=$ac_c_preproc_warn_flag
28474    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28475  else
28476    ac_cpp_err=
28477  fi
28478else
28479  ac_cpp_err=yes
28480fi
28481if test -z "$ac_cpp_err"; then
28482  ac_header_preproc=yes
28483else
28484  echo "$as_me: failed program was:" >&5
28485sed 's/^/| /' conftest.$ac_ext >&5
28486
28487  ac_header_preproc=no
28488fi
28489
28490rm -f conftest.err conftest.$ac_ext
28491{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28492echo "${ECHO_T}$ac_header_preproc" >&6; }
28493
28494# So?  What about this header?
28495case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28496  yes:no: )
28497    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28498echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28499    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28500echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28501    ac_header_preproc=yes
28502    ;;
28503  no:yes:* )
28504    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28505echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28506    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28507echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28508    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28509echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28510    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28511echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28512    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28513echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28514    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28515echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28516    ( cat <<\_ASBOX
28517## ----------------------------------- ##
28518## Report this to llvmbugs@cs.uiuc.edu ##
28519## ----------------------------------- ##
28520_ASBOX
28521     ) | sed "s/^/$as_me: WARNING:     /" >&2
28522    ;;
28523esac
28524{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28526if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28527  echo $ECHO_N "(cached) $ECHO_C" >&6
28528else
28529  eval "$as_ac_Header=\$ac_header_preproc"
28530fi
28531ac_res=`eval echo '${'$as_ac_Header'}'`
28532	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28533echo "${ECHO_T}$ac_res" >&6; }
28534
28535fi
28536if test `eval echo '${'$as_ac_Header'}'` = yes; then
28537  cat >>confdefs.h <<_ACEOF
28538#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28539_ACEOF
28540
28541fi
28542
28543done
28544
28545
28546
28547
28548
28549
28550
28551for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28552do
28553as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28554if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28555  { echo "$as_me:$LINENO: checking for $ac_header" >&5
28556echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28557if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28558  echo $ECHO_N "(cached) $ECHO_C" >&6
28559fi
28560ac_res=`eval echo '${'$as_ac_Header'}'`
28561	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28562echo "${ECHO_T}$ac_res" >&6; }
28563else
28564  # Is the header compilable?
28565{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28566echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28567cat >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$ac_includes_default
28574#include <$ac_header>
28575_ACEOF
28576rm -f conftest.$ac_objext
28577if { (ac_try="$ac_compile"
28578case "(($ac_try" in
28579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28580  *) ac_try_echo=$ac_try;;
28581esac
28582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28583  (eval "$ac_compile") 2>conftest.er1
28584  ac_status=$?
28585  grep -v '^ *+' conftest.er1 >conftest.err
28586  rm -f conftest.er1
28587  cat conftest.err >&5
28588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28589  (exit $ac_status); } &&
28590	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28591  { (case "(($ac_try" in
28592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28593  *) ac_try_echo=$ac_try;;
28594esac
28595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28596  (eval "$ac_try") 2>&5
28597  ac_status=$?
28598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599  (exit $ac_status); }; } &&
28600	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
28610  ac_header_compiler=yes
28611else
28612  echo "$as_me: failed program was:" >&5
28613sed 's/^/| /' conftest.$ac_ext >&5
28614
28615	ac_header_compiler=no
28616fi
28617
28618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28619{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28620echo "${ECHO_T}$ac_header_compiler" >&6; }
28621
28622# Is the header present?
28623{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28624echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28625cat >conftest.$ac_ext <<_ACEOF
28626/* confdefs.h.  */
28627_ACEOF
28628cat confdefs.h >>conftest.$ac_ext
28629cat >>conftest.$ac_ext <<_ACEOF
28630/* end confdefs.h.  */
28631#include <$ac_header>
28632_ACEOF
28633if { (ac_try="$ac_cpp conftest.$ac_ext"
28634case "(($ac_try" in
28635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28636  *) ac_try_echo=$ac_try;;
28637esac
28638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28639  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28640  ac_status=$?
28641  grep -v '^ *+' conftest.er1 >conftest.err
28642  rm -f conftest.er1
28643  cat conftest.err >&5
28644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28645  (exit $ac_status); } >/dev/null; then
28646  if test -s conftest.err; then
28647    ac_cpp_err=$ac_c_preproc_warn_flag
28648    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28649  else
28650    ac_cpp_err=
28651  fi
28652else
28653  ac_cpp_err=yes
28654fi
28655if test -z "$ac_cpp_err"; then
28656  ac_header_preproc=yes
28657else
28658  echo "$as_me: failed program was:" >&5
28659sed 's/^/| /' conftest.$ac_ext >&5
28660
28661  ac_header_preproc=no
28662fi
28663
28664rm -f conftest.err conftest.$ac_ext
28665{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28666echo "${ECHO_T}$ac_header_preproc" >&6; }
28667
28668# So?  What about this header?
28669case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28670  yes:no: )
28671    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28672echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28673    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28674echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28675    ac_header_preproc=yes
28676    ;;
28677  no:yes:* )
28678    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28679echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28680    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28681echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28682    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28683echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28684    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28685echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28686    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28687echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28688    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28689echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28690    ( cat <<\_ASBOX
28691## ----------------------------------- ##
28692## Report this to llvmbugs@cs.uiuc.edu ##
28693## ----------------------------------- ##
28694_ASBOX
28695     ) | sed "s/^/$as_me: WARNING:     /" >&2
28696    ;;
28697esac
28698{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28700if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28701  echo $ECHO_N "(cached) $ECHO_C" >&6
28702else
28703  eval "$as_ac_Header=\$ac_header_preproc"
28704fi
28705ac_res=`eval echo '${'$as_ac_Header'}'`
28706	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28707echo "${ECHO_T}$ac_res" >&6; }
28708
28709fi
28710if test `eval echo '${'$as_ac_Header'}'` = yes; then
28711  cat >>confdefs.h <<_ACEOF
28712#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28713_ACEOF
28714
28715fi
28716
28717done
28718
28719
28720
28721
28722
28723
28724for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
28725do
28726as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28727if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28728  { echo "$as_me:$LINENO: checking for $ac_header" >&5
28729echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28730if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28731  echo $ECHO_N "(cached) $ECHO_C" >&6
28732fi
28733ac_res=`eval echo '${'$as_ac_Header'}'`
28734	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28735echo "${ECHO_T}$ac_res" >&6; }
28736else
28737  # Is the header compilable?
28738{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28739echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28740cat >conftest.$ac_ext <<_ACEOF
28741/* confdefs.h.  */
28742_ACEOF
28743cat confdefs.h >>conftest.$ac_ext
28744cat >>conftest.$ac_ext <<_ACEOF
28745/* end confdefs.h.  */
28746$ac_includes_default
28747#include <$ac_header>
28748_ACEOF
28749rm -f conftest.$ac_objext
28750if { (ac_try="$ac_compile"
28751case "(($ac_try" in
28752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28753  *) ac_try_echo=$ac_try;;
28754esac
28755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28756  (eval "$ac_compile") 2>conftest.er1
28757  ac_status=$?
28758  grep -v '^ *+' conftest.er1 >conftest.err
28759  rm -f conftest.er1
28760  cat conftest.err >&5
28761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28762  (exit $ac_status); } &&
28763	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28764  { (case "(($ac_try" in
28765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28766  *) ac_try_echo=$ac_try;;
28767esac
28768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28769  (eval "$ac_try") 2>&5
28770  ac_status=$?
28771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28772  (exit $ac_status); }; } &&
28773	 { ac_try='test -s conftest.$ac_objext'
28774  { (case "(($ac_try" in
28775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28776  *) ac_try_echo=$ac_try;;
28777esac
28778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28779  (eval "$ac_try") 2>&5
28780  ac_status=$?
28781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28782  (exit $ac_status); }; }; then
28783  ac_header_compiler=yes
28784else
28785  echo "$as_me: failed program was:" >&5
28786sed 's/^/| /' conftest.$ac_ext >&5
28787
28788	ac_header_compiler=no
28789fi
28790
28791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28792{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28793echo "${ECHO_T}$ac_header_compiler" >&6; }
28794
28795# Is the header present?
28796{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28797echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28798cat >conftest.$ac_ext <<_ACEOF
28799/* confdefs.h.  */
28800_ACEOF
28801cat confdefs.h >>conftest.$ac_ext
28802cat >>conftest.$ac_ext <<_ACEOF
28803/* end confdefs.h.  */
28804#include <$ac_header>
28805_ACEOF
28806if { (ac_try="$ac_cpp conftest.$ac_ext"
28807case "(($ac_try" in
28808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28809  *) ac_try_echo=$ac_try;;
28810esac
28811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28812  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28813  ac_status=$?
28814  grep -v '^ *+' conftest.er1 >conftest.err
28815  rm -f conftest.er1
28816  cat conftest.err >&5
28817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28818  (exit $ac_status); } >/dev/null; then
28819  if test -s conftest.err; then
28820    ac_cpp_err=$ac_c_preproc_warn_flag
28821    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28822  else
28823    ac_cpp_err=
28824  fi
28825else
28826  ac_cpp_err=yes
28827fi
28828if test -z "$ac_cpp_err"; then
28829  ac_header_preproc=yes
28830else
28831  echo "$as_me: failed program was:" >&5
28832sed 's/^/| /' conftest.$ac_ext >&5
28833
28834  ac_header_preproc=no
28835fi
28836
28837rm -f conftest.err conftest.$ac_ext
28838{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28839echo "${ECHO_T}$ac_header_preproc" >&6; }
28840
28841# So?  What about this header?
28842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28843  yes:no: )
28844    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28845echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28846    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28847echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28848    ac_header_preproc=yes
28849    ;;
28850  no:yes:* )
28851    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28852echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28853    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28854echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28855    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28856echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28857    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28858echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28859    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28860echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28861    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28862echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28863    ( cat <<\_ASBOX
28864## ----------------------------------- ##
28865## Report this to llvmbugs@cs.uiuc.edu ##
28866## ----------------------------------- ##
28867_ASBOX
28868     ) | sed "s/^/$as_me: WARNING:     /" >&2
28869    ;;
28870esac
28871{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28872echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28873if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28874  echo $ECHO_N "(cached) $ECHO_C" >&6
28875else
28876  eval "$as_ac_Header=\$ac_header_preproc"
28877fi
28878ac_res=`eval echo '${'$as_ac_Header'}'`
28879	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28880echo "${ECHO_T}$ac_res" >&6; }
28881
28882fi
28883if test `eval echo '${'$as_ac_Header'}'` = yes; then
28884  cat >>confdefs.h <<_ACEOF
28885#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28886_ACEOF
28887
28888fi
28889
28890done
28891
28892
28893
28894
28895for ac_header in sys/types.h malloc/malloc.h mach/mach.h
28896do
28897as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28898if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28899  { echo "$as_me:$LINENO: checking for $ac_header" >&5
28900echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28901if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28902  echo $ECHO_N "(cached) $ECHO_C" >&6
28903fi
28904ac_res=`eval echo '${'$as_ac_Header'}'`
28905	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28906echo "${ECHO_T}$ac_res" >&6; }
28907else
28908  # Is the header compilable?
28909{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28910echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28911cat >conftest.$ac_ext <<_ACEOF
28912/* confdefs.h.  */
28913_ACEOF
28914cat confdefs.h >>conftest.$ac_ext
28915cat >>conftest.$ac_ext <<_ACEOF
28916/* end confdefs.h.  */
28917$ac_includes_default
28918#include <$ac_header>
28919_ACEOF
28920rm -f conftest.$ac_objext
28921if { (ac_try="$ac_compile"
28922case "(($ac_try" in
28923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28924  *) ac_try_echo=$ac_try;;
28925esac
28926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28927  (eval "$ac_compile") 2>conftest.er1
28928  ac_status=$?
28929  grep -v '^ *+' conftest.er1 >conftest.err
28930  rm -f conftest.er1
28931  cat conftest.err >&5
28932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28933  (exit $ac_status); } &&
28934	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28935  { (case "(($ac_try" in
28936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28937  *) ac_try_echo=$ac_try;;
28938esac
28939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28940  (eval "$ac_try") 2>&5
28941  ac_status=$?
28942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943  (exit $ac_status); }; } &&
28944	 { ac_try='test -s conftest.$ac_objext'
28945  { (case "(($ac_try" in
28946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28947  *) ac_try_echo=$ac_try;;
28948esac
28949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28950  (eval "$ac_try") 2>&5
28951  ac_status=$?
28952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28953  (exit $ac_status); }; }; then
28954  ac_header_compiler=yes
28955else
28956  echo "$as_me: failed program was:" >&5
28957sed 's/^/| /' conftest.$ac_ext >&5
28958
28959	ac_header_compiler=no
28960fi
28961
28962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28963{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28964echo "${ECHO_T}$ac_header_compiler" >&6; }
28965
28966# Is the header present?
28967{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28968echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28969cat >conftest.$ac_ext <<_ACEOF
28970/* confdefs.h.  */
28971_ACEOF
28972cat confdefs.h >>conftest.$ac_ext
28973cat >>conftest.$ac_ext <<_ACEOF
28974/* end confdefs.h.  */
28975#include <$ac_header>
28976_ACEOF
28977if { (ac_try="$ac_cpp conftest.$ac_ext"
28978case "(($ac_try" in
28979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28980  *) ac_try_echo=$ac_try;;
28981esac
28982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28983  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28984  ac_status=$?
28985  grep -v '^ *+' conftest.er1 >conftest.err
28986  rm -f conftest.er1
28987  cat conftest.err >&5
28988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28989  (exit $ac_status); } >/dev/null; then
28990  if test -s conftest.err; then
28991    ac_cpp_err=$ac_c_preproc_warn_flag
28992    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28993  else
28994    ac_cpp_err=
28995  fi
28996else
28997  ac_cpp_err=yes
28998fi
28999if test -z "$ac_cpp_err"; then
29000  ac_header_preproc=yes
29001else
29002  echo "$as_me: failed program was:" >&5
29003sed 's/^/| /' conftest.$ac_ext >&5
29004
29005  ac_header_preproc=no
29006fi
29007
29008rm -f conftest.err conftest.$ac_ext
29009{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29010echo "${ECHO_T}$ac_header_preproc" >&6; }
29011
29012# So?  What about this header?
29013case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29014  yes:no: )
29015    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29016echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29017    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29018echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29019    ac_header_preproc=yes
29020    ;;
29021  no:yes:* )
29022    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29023echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29024    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29025echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29026    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29027echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29028    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29029echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29030    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29031echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29032    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29033echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29034    ( cat <<\_ASBOX
29035## ----------------------------------- ##
29036## Report this to llvmbugs@cs.uiuc.edu ##
29037## ----------------------------------- ##
29038_ASBOX
29039     ) | sed "s/^/$as_me: WARNING:     /" >&2
29040    ;;
29041esac
29042{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29043echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29044if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29045  echo $ECHO_N "(cached) $ECHO_C" >&6
29046else
29047  eval "$as_ac_Header=\$ac_header_preproc"
29048fi
29049ac_res=`eval echo '${'$as_ac_Header'}'`
29050	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29051echo "${ECHO_T}$ac_res" >&6; }
29052
29053fi
29054if test `eval echo '${'$as_ac_Header'}'` = yes; then
29055  cat >>confdefs.h <<_ACEOF
29056#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29057_ACEOF
29058
29059fi
29060
29061done
29062
29063if test "$ENABLE_THREADS" -eq 1 ; then
29064  if test "${ac_cv_header_pthread_h+set}" = set; then
29065  { echo "$as_me:$LINENO: checking for pthread.h" >&5
29066echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29067if test "${ac_cv_header_pthread_h+set}" = set; then
29068  echo $ECHO_N "(cached) $ECHO_C" >&6
29069fi
29070{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29071echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29072else
29073  # Is the header compilable?
29074{ echo "$as_me:$LINENO: checking pthread.h usability" >&5
29075echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
29076cat >conftest.$ac_ext <<_ACEOF
29077/* confdefs.h.  */
29078_ACEOF
29079cat confdefs.h >>conftest.$ac_ext
29080cat >>conftest.$ac_ext <<_ACEOF
29081/* end confdefs.h.  */
29082$ac_includes_default
29083#include <pthread.h>
29084_ACEOF
29085rm -f conftest.$ac_objext
29086if { (ac_try="$ac_compile"
29087case "(($ac_try" in
29088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29089  *) ac_try_echo=$ac_try;;
29090esac
29091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29092  (eval "$ac_compile") 2>conftest.er1
29093  ac_status=$?
29094  grep -v '^ *+' conftest.er1 >conftest.err
29095  rm -f conftest.er1
29096  cat conftest.err >&5
29097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29098  (exit $ac_status); } &&
29099	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29100  { (case "(($ac_try" in
29101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29102  *) ac_try_echo=$ac_try;;
29103esac
29104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29105  (eval "$ac_try") 2>&5
29106  ac_status=$?
29107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29108  (exit $ac_status); }; } &&
29109	 { ac_try='test -s conftest.$ac_objext'
29110  { (case "(($ac_try" in
29111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29112  *) ac_try_echo=$ac_try;;
29113esac
29114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29115  (eval "$ac_try") 2>&5
29116  ac_status=$?
29117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118  (exit $ac_status); }; }; then
29119  ac_header_compiler=yes
29120else
29121  echo "$as_me: failed program was:" >&5
29122sed 's/^/| /' conftest.$ac_ext >&5
29123
29124	ac_header_compiler=no
29125fi
29126
29127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29128{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29129echo "${ECHO_T}$ac_header_compiler" >&6; }
29130
29131# Is the header present?
29132{ echo "$as_me:$LINENO: checking pthread.h presence" >&5
29133echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
29134cat >conftest.$ac_ext <<_ACEOF
29135/* confdefs.h.  */
29136_ACEOF
29137cat confdefs.h >>conftest.$ac_ext
29138cat >>conftest.$ac_ext <<_ACEOF
29139/* end confdefs.h.  */
29140#include <pthread.h>
29141_ACEOF
29142if { (ac_try="$ac_cpp conftest.$ac_ext"
29143case "(($ac_try" in
29144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29145  *) ac_try_echo=$ac_try;;
29146esac
29147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29148  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29149  ac_status=$?
29150  grep -v '^ *+' conftest.er1 >conftest.err
29151  rm -f conftest.er1
29152  cat conftest.err >&5
29153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154  (exit $ac_status); } >/dev/null; then
29155  if test -s conftest.err; then
29156    ac_cpp_err=$ac_c_preproc_warn_flag
29157    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29158  else
29159    ac_cpp_err=
29160  fi
29161else
29162  ac_cpp_err=yes
29163fi
29164if test -z "$ac_cpp_err"; then
29165  ac_header_preproc=yes
29166else
29167  echo "$as_me: failed program was:" >&5
29168sed 's/^/| /' conftest.$ac_ext >&5
29169
29170  ac_header_preproc=no
29171fi
29172
29173rm -f conftest.err conftest.$ac_ext
29174{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29175echo "${ECHO_T}$ac_header_preproc" >&6; }
29176
29177# So?  What about this header?
29178case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29179  yes:no: )
29180    { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
29181echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29182    { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
29183echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
29184    ac_header_preproc=yes
29185    ;;
29186  no:yes:* )
29187    { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
29188echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
29189    { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
29190echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
29191    { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
29192echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
29193    { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
29194echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29195    { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
29196echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
29197    { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
29198echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
29199    ( cat <<\_ASBOX
29200## ----------------------------------- ##
29201## Report this to llvmbugs@cs.uiuc.edu ##
29202## ----------------------------------- ##
29203_ASBOX
29204     ) | sed "s/^/$as_me: WARNING:     /" >&2
29205    ;;
29206esac
29207{ echo "$as_me:$LINENO: checking for pthread.h" >&5
29208echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29209if test "${ac_cv_header_pthread_h+set}" = set; then
29210  echo $ECHO_N "(cached) $ECHO_C" >&6
29211else
29212  ac_cv_header_pthread_h=$ac_header_preproc
29213fi
29214{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29215echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29216
29217fi
29218if test $ac_cv_header_pthread_h = yes; then
29219  HAVE_PTHREAD=1
29220
29221else
29222  HAVE_PTHREAD=0
29223
29224fi
29225
29226
29227else
29228  HAVE_PTHREAD=0
29229
29230fi
29231
29232
29233
29234  { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29235echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29236if test "${ac_cv_huge_val_sanity+set}" = set; then
29237  echo $ECHO_N "(cached) $ECHO_C" >&6
29238else
29239
29240    ac_ext=cpp
29241ac_cpp='$CXXCPP $CPPFLAGS'
29242ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29243ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29244ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29245
29246    CXXFLAGS=-pedantic
29247    if test "$cross_compiling" = yes; then
29248  ac_cv_huge_val_sanity=yes
29249else
29250  cat >conftest.$ac_ext <<_ACEOF
29251/* confdefs.h.  */
29252_ACEOF
29253cat confdefs.h >>conftest.$ac_ext
29254cat >>conftest.$ac_ext <<_ACEOF
29255/* end confdefs.h.  */
29256#include <math.h>
29257int
29258main ()
29259{
29260double x = HUGE_VAL; return x != x;
29261  ;
29262  return 0;
29263}
29264_ACEOF
29265rm -f conftest$ac_exeext
29266if { (ac_try="$ac_link"
29267case "(($ac_try" in
29268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29269  *) ac_try_echo=$ac_try;;
29270esac
29271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29272  (eval "$ac_link") 2>&5
29273  ac_status=$?
29274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29275  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29276  { (case "(($ac_try" in
29277  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29278  *) ac_try_echo=$ac_try;;
29279esac
29280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29281  (eval "$ac_try") 2>&5
29282  ac_status=$?
29283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29284  (exit $ac_status); }; }; then
29285  ac_cv_huge_val_sanity=yes
29286else
29287  echo "$as_me: program exited with status $ac_status" >&5
29288echo "$as_me: failed program was:" >&5
29289sed 's/^/| /' conftest.$ac_ext >&5
29290
29291( exit $ac_status )
29292ac_cv_huge_val_sanity=no
29293fi
29294rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29295fi
29296
29297
29298    ac_ext=c
29299ac_cpp='$CPP $CPPFLAGS'
29300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29302ac_compiler_gnu=$ac_cv_c_compiler_gnu
29303
29304
29305fi
29306{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29307echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29308  HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29309
29310
29311{ echo "$as_me:$LINENO: checking for pid_t" >&5
29312echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29313if test "${ac_cv_type_pid_t+set}" = set; then
29314  echo $ECHO_N "(cached) $ECHO_C" >&6
29315else
29316  cat >conftest.$ac_ext <<_ACEOF
29317/* confdefs.h.  */
29318_ACEOF
29319cat confdefs.h >>conftest.$ac_ext
29320cat >>conftest.$ac_ext <<_ACEOF
29321/* end confdefs.h.  */
29322$ac_includes_default
29323typedef pid_t ac__type_new_;
29324int
29325main ()
29326{
29327if ((ac__type_new_ *) 0)
29328  return 0;
29329if (sizeof (ac__type_new_))
29330  return 0;
29331  ;
29332  return 0;
29333}
29334_ACEOF
29335rm -f conftest.$ac_objext
29336if { (ac_try="$ac_compile"
29337case "(($ac_try" in
29338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29339  *) ac_try_echo=$ac_try;;
29340esac
29341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29342  (eval "$ac_compile") 2>conftest.er1
29343  ac_status=$?
29344  grep -v '^ *+' conftest.er1 >conftest.err
29345  rm -f conftest.er1
29346  cat conftest.err >&5
29347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29348  (exit $ac_status); } &&
29349	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29350  { (case "(($ac_try" in
29351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29352  *) ac_try_echo=$ac_try;;
29353esac
29354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29355  (eval "$ac_try") 2>&5
29356  ac_status=$?
29357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29358  (exit $ac_status); }; } &&
29359	 { ac_try='test -s conftest.$ac_objext'
29360  { (case "(($ac_try" in
29361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29362  *) ac_try_echo=$ac_try;;
29363esac
29364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29365  (eval "$ac_try") 2>&5
29366  ac_status=$?
29367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29368  (exit $ac_status); }; }; then
29369  ac_cv_type_pid_t=yes
29370else
29371  echo "$as_me: failed program was:" >&5
29372sed 's/^/| /' conftest.$ac_ext >&5
29373
29374	ac_cv_type_pid_t=no
29375fi
29376
29377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29378fi
29379{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29380echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29381if test $ac_cv_type_pid_t = yes; then
29382  :
29383else
29384
29385cat >>confdefs.h <<_ACEOF
29386#define pid_t int
29387_ACEOF
29388
29389fi
29390
29391{ echo "$as_me:$LINENO: checking for size_t" >&5
29392echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29393if test "${ac_cv_type_size_t+set}" = set; then
29394  echo $ECHO_N "(cached) $ECHO_C" >&6
29395else
29396  cat >conftest.$ac_ext <<_ACEOF
29397/* confdefs.h.  */
29398_ACEOF
29399cat confdefs.h >>conftest.$ac_ext
29400cat >>conftest.$ac_ext <<_ACEOF
29401/* end confdefs.h.  */
29402$ac_includes_default
29403typedef size_t ac__type_new_;
29404int
29405main ()
29406{
29407if ((ac__type_new_ *) 0)
29408  return 0;
29409if (sizeof (ac__type_new_))
29410  return 0;
29411  ;
29412  return 0;
29413}
29414_ACEOF
29415rm -f conftest.$ac_objext
29416if { (ac_try="$ac_compile"
29417case "(($ac_try" in
29418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29419  *) ac_try_echo=$ac_try;;
29420esac
29421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29422  (eval "$ac_compile") 2>conftest.er1
29423  ac_status=$?
29424  grep -v '^ *+' conftest.er1 >conftest.err
29425  rm -f conftest.er1
29426  cat conftest.err >&5
29427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29428  (exit $ac_status); } &&
29429	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29430  { (case "(($ac_try" in
29431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29432  *) ac_try_echo=$ac_try;;
29433esac
29434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29435  (eval "$ac_try") 2>&5
29436  ac_status=$?
29437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29438  (exit $ac_status); }; } &&
29439	 { ac_try='test -s conftest.$ac_objext'
29440  { (case "(($ac_try" in
29441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29442  *) ac_try_echo=$ac_try;;
29443esac
29444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29445  (eval "$ac_try") 2>&5
29446  ac_status=$?
29447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448  (exit $ac_status); }; }; then
29449  ac_cv_type_size_t=yes
29450else
29451  echo "$as_me: failed program was:" >&5
29452sed 's/^/| /' conftest.$ac_ext >&5
29453
29454	ac_cv_type_size_t=no
29455fi
29456
29457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29458fi
29459{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29460echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29461if test $ac_cv_type_size_t = yes; then
29462  :
29463else
29464
29465cat >>confdefs.h <<_ACEOF
29466#define size_t unsigned int
29467_ACEOF
29468
29469fi
29470
29471{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29472echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29473if test "${ac_cv_type_signal+set}" = set; then
29474  echo $ECHO_N "(cached) $ECHO_C" >&6
29475else
29476  cat >conftest.$ac_ext <<_ACEOF
29477/* confdefs.h.  */
29478_ACEOF
29479cat confdefs.h >>conftest.$ac_ext
29480cat >>conftest.$ac_ext <<_ACEOF
29481/* end confdefs.h.  */
29482#include <sys/types.h>
29483#include <signal.h>
29484
29485int
29486main ()
29487{
29488return *(signal (0, 0)) (0) == 1;
29489  ;
29490  return 0;
29491}
29492_ACEOF
29493rm -f conftest.$ac_objext
29494if { (ac_try="$ac_compile"
29495case "(($ac_try" in
29496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29497  *) ac_try_echo=$ac_try;;
29498esac
29499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29500  (eval "$ac_compile") 2>conftest.er1
29501  ac_status=$?
29502  grep -v '^ *+' conftest.er1 >conftest.err
29503  rm -f conftest.er1
29504  cat conftest.err >&5
29505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506  (exit $ac_status); } &&
29507	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29508  { (case "(($ac_try" in
29509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29510  *) ac_try_echo=$ac_try;;
29511esac
29512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29513  (eval "$ac_try") 2>&5
29514  ac_status=$?
29515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29516  (exit $ac_status); }; } &&
29517	 { ac_try='test -s conftest.$ac_objext'
29518  { (case "(($ac_try" in
29519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29520  *) ac_try_echo=$ac_try;;
29521esac
29522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29523  (eval "$ac_try") 2>&5
29524  ac_status=$?
29525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29526  (exit $ac_status); }; }; then
29527  ac_cv_type_signal=int
29528else
29529  echo "$as_me: failed program was:" >&5
29530sed 's/^/| /' conftest.$ac_ext >&5
29531
29532	ac_cv_type_signal=void
29533fi
29534
29535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29536fi
29537{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29538echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29539
29540cat >>confdefs.h <<_ACEOF
29541#define RETSIGTYPE $ac_cv_type_signal
29542_ACEOF
29543
29544
29545{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29546echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29547if test "${ac_cv_struct_tm+set}" = set; then
29548  echo $ECHO_N "(cached) $ECHO_C" >&6
29549else
29550  cat >conftest.$ac_ext <<_ACEOF
29551/* confdefs.h.  */
29552_ACEOF
29553cat confdefs.h >>conftest.$ac_ext
29554cat >>conftest.$ac_ext <<_ACEOF
29555/* end confdefs.h.  */
29556#include <sys/types.h>
29557#include <time.h>
29558
29559int
29560main ()
29561{
29562struct tm *tp; tp->tm_sec;
29563  ;
29564  return 0;
29565}
29566_ACEOF
29567rm -f conftest.$ac_objext
29568if { (ac_try="$ac_compile"
29569case "(($ac_try" in
29570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29571  *) ac_try_echo=$ac_try;;
29572esac
29573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29574  (eval "$ac_compile") 2>conftest.er1
29575  ac_status=$?
29576  grep -v '^ *+' conftest.er1 >conftest.err
29577  rm -f conftest.er1
29578  cat conftest.err >&5
29579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29580  (exit $ac_status); } &&
29581	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29582  { (case "(($ac_try" in
29583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29584  *) ac_try_echo=$ac_try;;
29585esac
29586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29587  (eval "$ac_try") 2>&5
29588  ac_status=$?
29589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29590  (exit $ac_status); }; } &&
29591	 { ac_try='test -s conftest.$ac_objext'
29592  { (case "(($ac_try" in
29593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29594  *) ac_try_echo=$ac_try;;
29595esac
29596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29597  (eval "$ac_try") 2>&5
29598  ac_status=$?
29599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29600  (exit $ac_status); }; }; then
29601  ac_cv_struct_tm=time.h
29602else
29603  echo "$as_me: failed program was:" >&5
29604sed 's/^/| /' conftest.$ac_ext >&5
29605
29606	ac_cv_struct_tm=sys/time.h
29607fi
29608
29609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29610fi
29611{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29612echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
29613if test $ac_cv_struct_tm = sys/time.h; then
29614
29615cat >>confdefs.h <<\_ACEOF
29616#define TM_IN_SYS_TIME 1
29617_ACEOF
29618
29619fi
29620
29621{ echo "$as_me:$LINENO: checking for int64_t" >&5
29622echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
29623if test "${ac_cv_type_int64_t+set}" = set; then
29624  echo $ECHO_N "(cached) $ECHO_C" >&6
29625else
29626  cat >conftest.$ac_ext <<_ACEOF
29627/* confdefs.h.  */
29628_ACEOF
29629cat confdefs.h >>conftest.$ac_ext
29630cat >>conftest.$ac_ext <<_ACEOF
29631/* end confdefs.h.  */
29632$ac_includes_default
29633typedef int64_t ac__type_new_;
29634int
29635main ()
29636{
29637if ((ac__type_new_ *) 0)
29638  return 0;
29639if (sizeof (ac__type_new_))
29640  return 0;
29641  ;
29642  return 0;
29643}
29644_ACEOF
29645rm -f conftest.$ac_objext
29646if { (ac_try="$ac_compile"
29647case "(($ac_try" in
29648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29649  *) ac_try_echo=$ac_try;;
29650esac
29651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29652  (eval "$ac_compile") 2>conftest.er1
29653  ac_status=$?
29654  grep -v '^ *+' conftest.er1 >conftest.err
29655  rm -f conftest.er1
29656  cat conftest.err >&5
29657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29658  (exit $ac_status); } &&
29659	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29660  { (case "(($ac_try" in
29661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29662  *) ac_try_echo=$ac_try;;
29663esac
29664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29665  (eval "$ac_try") 2>&5
29666  ac_status=$?
29667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29668  (exit $ac_status); }; } &&
29669	 { ac_try='test -s conftest.$ac_objext'
29670  { (case "(($ac_try" in
29671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29672  *) ac_try_echo=$ac_try;;
29673esac
29674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29675  (eval "$ac_try") 2>&5
29676  ac_status=$?
29677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678  (exit $ac_status); }; }; then
29679  ac_cv_type_int64_t=yes
29680else
29681  echo "$as_me: failed program was:" >&5
29682sed 's/^/| /' conftest.$ac_ext >&5
29683
29684	ac_cv_type_int64_t=no
29685fi
29686
29687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29688fi
29689{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29690echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
29691if test $ac_cv_type_int64_t = yes; then
29692
29693cat >>confdefs.h <<_ACEOF
29694#define HAVE_INT64_T 1
29695_ACEOF
29696
29697
29698else
29699  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29700echo "$as_me: error: Type int64_t required but not found" >&2;}
29701   { (exit 1); exit 1; }; }
29702fi
29703
29704{ echo "$as_me:$LINENO: checking for uint64_t" >&5
29705echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
29706if test "${ac_cv_type_uint64_t+set}" = set; then
29707  echo $ECHO_N "(cached) $ECHO_C" >&6
29708else
29709  cat >conftest.$ac_ext <<_ACEOF
29710/* confdefs.h.  */
29711_ACEOF
29712cat confdefs.h >>conftest.$ac_ext
29713cat >>conftest.$ac_ext <<_ACEOF
29714/* end confdefs.h.  */
29715$ac_includes_default
29716typedef uint64_t ac__type_new_;
29717int
29718main ()
29719{
29720if ((ac__type_new_ *) 0)
29721  return 0;
29722if (sizeof (ac__type_new_))
29723  return 0;
29724  ;
29725  return 0;
29726}
29727_ACEOF
29728rm -f conftest.$ac_objext
29729if { (ac_try="$ac_compile"
29730case "(($ac_try" in
29731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29732  *) ac_try_echo=$ac_try;;
29733esac
29734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29735  (eval "$ac_compile") 2>conftest.er1
29736  ac_status=$?
29737  grep -v '^ *+' conftest.er1 >conftest.err
29738  rm -f conftest.er1
29739  cat conftest.err >&5
29740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741  (exit $ac_status); } &&
29742	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29743  { (case "(($ac_try" in
29744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29745  *) ac_try_echo=$ac_try;;
29746esac
29747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29748  (eval "$ac_try") 2>&5
29749  ac_status=$?
29750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29751  (exit $ac_status); }; } &&
29752	 { ac_try='test -s conftest.$ac_objext'
29753  { (case "(($ac_try" in
29754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29755  *) ac_try_echo=$ac_try;;
29756esac
29757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29758  (eval "$ac_try") 2>&5
29759  ac_status=$?
29760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29761  (exit $ac_status); }; }; then
29762  ac_cv_type_uint64_t=yes
29763else
29764  echo "$as_me: failed program was:" >&5
29765sed 's/^/| /' conftest.$ac_ext >&5
29766
29767	ac_cv_type_uint64_t=no
29768fi
29769
29770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29771fi
29772{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29773echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
29774if test $ac_cv_type_uint64_t = yes; then
29775
29776cat >>confdefs.h <<_ACEOF
29777#define HAVE_UINT64_T 1
29778_ACEOF
29779
29780
29781else
29782  { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29783echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
29784if test "${ac_cv_type_u_int64_t+set}" = set; then
29785  echo $ECHO_N "(cached) $ECHO_C" >&6
29786else
29787  cat >conftest.$ac_ext <<_ACEOF
29788/* confdefs.h.  */
29789_ACEOF
29790cat confdefs.h >>conftest.$ac_ext
29791cat >>conftest.$ac_ext <<_ACEOF
29792/* end confdefs.h.  */
29793$ac_includes_default
29794typedef u_int64_t ac__type_new_;
29795int
29796main ()
29797{
29798if ((ac__type_new_ *) 0)
29799  return 0;
29800if (sizeof (ac__type_new_))
29801  return 0;
29802  ;
29803  return 0;
29804}
29805_ACEOF
29806rm -f conftest.$ac_objext
29807if { (ac_try="$ac_compile"
29808case "(($ac_try" in
29809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29810  *) ac_try_echo=$ac_try;;
29811esac
29812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29813  (eval "$ac_compile") 2>conftest.er1
29814  ac_status=$?
29815  grep -v '^ *+' conftest.er1 >conftest.err
29816  rm -f conftest.er1
29817  cat conftest.err >&5
29818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29819  (exit $ac_status); } &&
29820	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29821  { (case "(($ac_try" in
29822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29823  *) ac_try_echo=$ac_try;;
29824esac
29825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29826  (eval "$ac_try") 2>&5
29827  ac_status=$?
29828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29829  (exit $ac_status); }; } &&
29830	 { ac_try='test -s conftest.$ac_objext'
29831  { (case "(($ac_try" in
29832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29833  *) ac_try_echo=$ac_try;;
29834esac
29835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29836  (eval "$ac_try") 2>&5
29837  ac_status=$?
29838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29839  (exit $ac_status); }; }; then
29840  ac_cv_type_u_int64_t=yes
29841else
29842  echo "$as_me: failed program was:" >&5
29843sed 's/^/| /' conftest.$ac_ext >&5
29844
29845	ac_cv_type_u_int64_t=no
29846fi
29847
29848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29849fi
29850{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29851echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
29852if test $ac_cv_type_u_int64_t = yes; then
29853
29854cat >>confdefs.h <<_ACEOF
29855#define HAVE_U_INT64_T 1
29856_ACEOF
29857
29858
29859else
29860  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29861echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29862   { (exit 1); exit 1; }; }
29863fi
29864
29865fi
29866
29867
29868
29869
29870
29871
29872
29873
29874
29875
29876for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
29877do
29878as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29879{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29880echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29881if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29882  echo $ECHO_N "(cached) $ECHO_C" >&6
29883else
29884  cat >conftest.$ac_ext <<_ACEOF
29885/* confdefs.h.  */
29886_ACEOF
29887cat confdefs.h >>conftest.$ac_ext
29888cat >>conftest.$ac_ext <<_ACEOF
29889/* end confdefs.h.  */
29890/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29891   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29892#define $ac_func innocuous_$ac_func
29893
29894/* System header to define __stub macros and hopefully few prototypes,
29895    which can conflict with char $ac_func (); below.
29896    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29897    <limits.h> exists even on freestanding compilers.  */
29898
29899#ifdef __STDC__
29900# include <limits.h>
29901#else
29902# include <assert.h>
29903#endif
29904
29905#undef $ac_func
29906
29907/* Override any GCC internal prototype to avoid an error.
29908   Use char because int might match the return type of a GCC
29909   builtin and then its argument prototype would still apply.  */
29910#ifdef __cplusplus
29911extern "C"
29912#endif
29913char $ac_func ();
29914/* The GNU C library defines this for functions which it implements
29915    to always fail with ENOSYS.  Some functions are actually named
29916    something starting with __ and the normal name is an alias.  */
29917#if defined __stub_$ac_func || defined __stub___$ac_func
29918choke me
29919#endif
29920
29921int
29922main ()
29923{
29924return $ac_func ();
29925  ;
29926  return 0;
29927}
29928_ACEOF
29929rm -f conftest.$ac_objext conftest$ac_exeext
29930if { (ac_try="$ac_link"
29931case "(($ac_try" in
29932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29933  *) ac_try_echo=$ac_try;;
29934esac
29935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29936  (eval "$ac_link") 2>conftest.er1
29937  ac_status=$?
29938  grep -v '^ *+' conftest.er1 >conftest.err
29939  rm -f conftest.er1
29940  cat conftest.err >&5
29941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29942  (exit $ac_status); } &&
29943	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29944  { (case "(($ac_try" in
29945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29946  *) ac_try_echo=$ac_try;;
29947esac
29948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29949  (eval "$ac_try") 2>&5
29950  ac_status=$?
29951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29952  (exit $ac_status); }; } &&
29953	 { ac_try='test -s conftest$ac_exeext'
29954  { (case "(($ac_try" in
29955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29956  *) ac_try_echo=$ac_try;;
29957esac
29958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29959  (eval "$ac_try") 2>&5
29960  ac_status=$?
29961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29962  (exit $ac_status); }; }; then
29963  eval "$as_ac_var=yes"
29964else
29965  echo "$as_me: failed program was:" >&5
29966sed 's/^/| /' conftest.$ac_ext >&5
29967
29968	eval "$as_ac_var=no"
29969fi
29970
29971rm -f core conftest.err conftest.$ac_objext \
29972      conftest$ac_exeext conftest.$ac_ext
29973fi
29974ac_res=`eval echo '${'$as_ac_var'}'`
29975	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29976echo "${ECHO_T}$ac_res" >&6; }
29977if test `eval echo '${'$as_ac_var'}'` = yes; then
29978  cat >>confdefs.h <<_ACEOF
29979#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29980_ACEOF
29981
29982fi
29983done
29984
29985
29986
29987
29988
29989
29990
29991for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
29992do
29993as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29994{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29995echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29996if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29997  echo $ECHO_N "(cached) $ECHO_C" >&6
29998else
29999  cat >conftest.$ac_ext <<_ACEOF
30000/* confdefs.h.  */
30001_ACEOF
30002cat confdefs.h >>conftest.$ac_ext
30003cat >>conftest.$ac_ext <<_ACEOF
30004/* end confdefs.h.  */
30005/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30006   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30007#define $ac_func innocuous_$ac_func
30008
30009/* System header to define __stub macros and hopefully few prototypes,
30010    which can conflict with char $ac_func (); below.
30011    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30012    <limits.h> exists even on freestanding compilers.  */
30013
30014#ifdef __STDC__
30015# include <limits.h>
30016#else
30017# include <assert.h>
30018#endif
30019
30020#undef $ac_func
30021
30022/* Override any GCC internal prototype to avoid an error.
30023   Use char because int might match the return type of a GCC
30024   builtin and then its argument prototype would still apply.  */
30025#ifdef __cplusplus
30026extern "C"
30027#endif
30028char $ac_func ();
30029/* The GNU C library defines this for functions which it implements
30030    to always fail with ENOSYS.  Some functions are actually named
30031    something starting with __ and the normal name is an alias.  */
30032#if defined __stub_$ac_func || defined __stub___$ac_func
30033choke me
30034#endif
30035
30036int
30037main ()
30038{
30039return $ac_func ();
30040  ;
30041  return 0;
30042}
30043_ACEOF
30044rm -f conftest.$ac_objext conftest$ac_exeext
30045if { (ac_try="$ac_link"
30046case "(($ac_try" in
30047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30048  *) ac_try_echo=$ac_try;;
30049esac
30050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30051  (eval "$ac_link") 2>conftest.er1
30052  ac_status=$?
30053  grep -v '^ *+' conftest.er1 >conftest.err
30054  rm -f conftest.er1
30055  cat conftest.err >&5
30056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30057  (exit $ac_status); } &&
30058	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30059  { (case "(($ac_try" in
30060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30061  *) ac_try_echo=$ac_try;;
30062esac
30063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30064  (eval "$ac_try") 2>&5
30065  ac_status=$?
30066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30067  (exit $ac_status); }; } &&
30068	 { ac_try='test -s conftest$ac_exeext'
30069  { (case "(($ac_try" in
30070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30071  *) ac_try_echo=$ac_try;;
30072esac
30073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30074  (eval "$ac_try") 2>&5
30075  ac_status=$?
30076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30077  (exit $ac_status); }; }; then
30078  eval "$as_ac_var=yes"
30079else
30080  echo "$as_me: failed program was:" >&5
30081sed 's/^/| /' conftest.$ac_ext >&5
30082
30083	eval "$as_ac_var=no"
30084fi
30085
30086rm -f core conftest.err conftest.$ac_objext \
30087      conftest$ac_exeext conftest.$ac_ext
30088fi
30089ac_res=`eval echo '${'$as_ac_var'}'`
30090	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30091echo "${ECHO_T}$ac_res" >&6; }
30092if test `eval echo '${'$as_ac_var'}'` = yes; then
30093  cat >>confdefs.h <<_ACEOF
30094#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30095_ACEOF
30096
30097fi
30098done
30099
30100
30101
30102
30103
30104
30105
30106
30107for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30108do
30109as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30110{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30111echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30112if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30113  echo $ECHO_N "(cached) $ECHO_C" >&6
30114else
30115  cat >conftest.$ac_ext <<_ACEOF
30116/* confdefs.h.  */
30117_ACEOF
30118cat confdefs.h >>conftest.$ac_ext
30119cat >>conftest.$ac_ext <<_ACEOF
30120/* end confdefs.h.  */
30121/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30122   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30123#define $ac_func innocuous_$ac_func
30124
30125/* System header to define __stub macros and hopefully few prototypes,
30126    which can conflict with char $ac_func (); below.
30127    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30128    <limits.h> exists even on freestanding compilers.  */
30129
30130#ifdef __STDC__
30131# include <limits.h>
30132#else
30133# include <assert.h>
30134#endif
30135
30136#undef $ac_func
30137
30138/* Override any GCC internal prototype to avoid an error.
30139   Use char because int might match the return type of a GCC
30140   builtin and then its argument prototype would still apply.  */
30141#ifdef __cplusplus
30142extern "C"
30143#endif
30144char $ac_func ();
30145/* The GNU C library defines this for functions which it implements
30146    to always fail with ENOSYS.  Some functions are actually named
30147    something starting with __ and the normal name is an alias.  */
30148#if defined __stub_$ac_func || defined __stub___$ac_func
30149choke me
30150#endif
30151
30152int
30153main ()
30154{
30155return $ac_func ();
30156  ;
30157  return 0;
30158}
30159_ACEOF
30160rm -f conftest.$ac_objext conftest$ac_exeext
30161if { (ac_try="$ac_link"
30162case "(($ac_try" in
30163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30164  *) ac_try_echo=$ac_try;;
30165esac
30166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30167  (eval "$ac_link") 2>conftest.er1
30168  ac_status=$?
30169  grep -v '^ *+' conftest.er1 >conftest.err
30170  rm -f conftest.er1
30171  cat conftest.err >&5
30172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30173  (exit $ac_status); } &&
30174	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30175  { (case "(($ac_try" in
30176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30177  *) ac_try_echo=$ac_try;;
30178esac
30179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30180  (eval "$ac_try") 2>&5
30181  ac_status=$?
30182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30183  (exit $ac_status); }; } &&
30184	 { ac_try='test -s conftest$ac_exeext'
30185  { (case "(($ac_try" in
30186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30187  *) ac_try_echo=$ac_try;;
30188esac
30189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30190  (eval "$ac_try") 2>&5
30191  ac_status=$?
30192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193  (exit $ac_status); }; }; then
30194  eval "$as_ac_var=yes"
30195else
30196  echo "$as_me: failed program was:" >&5
30197sed 's/^/| /' conftest.$ac_ext >&5
30198
30199	eval "$as_ac_var=no"
30200fi
30201
30202rm -f core conftest.err conftest.$ac_objext \
30203      conftest$ac_exeext conftest.$ac_ext
30204fi
30205ac_res=`eval echo '${'$as_ac_var'}'`
30206	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30207echo "${ECHO_T}$ac_res" >&6; }
30208if test `eval echo '${'$as_ac_var'}'` = yes; then
30209  cat >>confdefs.h <<_ACEOF
30210#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30211_ACEOF
30212
30213fi
30214done
30215
30216
30217
30218
30219
30220for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30221do
30222as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30223{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30224echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30225if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30226  echo $ECHO_N "(cached) $ECHO_C" >&6
30227else
30228  cat >conftest.$ac_ext <<_ACEOF
30229/* confdefs.h.  */
30230_ACEOF
30231cat confdefs.h >>conftest.$ac_ext
30232cat >>conftest.$ac_ext <<_ACEOF
30233/* end confdefs.h.  */
30234/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30235   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30236#define $ac_func innocuous_$ac_func
30237
30238/* System header to define __stub macros and hopefully few prototypes,
30239    which can conflict with char $ac_func (); below.
30240    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30241    <limits.h> exists even on freestanding compilers.  */
30242
30243#ifdef __STDC__
30244# include <limits.h>
30245#else
30246# include <assert.h>
30247#endif
30248
30249#undef $ac_func
30250
30251/* Override any GCC internal prototype to avoid an error.
30252   Use char because int might match the return type of a GCC
30253   builtin and then its argument prototype would still apply.  */
30254#ifdef __cplusplus
30255extern "C"
30256#endif
30257char $ac_func ();
30258/* The GNU C library defines this for functions which it implements
30259    to always fail with ENOSYS.  Some functions are actually named
30260    something starting with __ and the normal name is an alias.  */
30261#if defined __stub_$ac_func || defined __stub___$ac_func
30262choke me
30263#endif
30264
30265int
30266main ()
30267{
30268return $ac_func ();
30269  ;
30270  return 0;
30271}
30272_ACEOF
30273rm -f conftest.$ac_objext conftest$ac_exeext
30274if { (ac_try="$ac_link"
30275case "(($ac_try" in
30276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30277  *) ac_try_echo=$ac_try;;
30278esac
30279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30280  (eval "$ac_link") 2>conftest.er1
30281  ac_status=$?
30282  grep -v '^ *+' conftest.er1 >conftest.err
30283  rm -f conftest.er1
30284  cat conftest.err >&5
30285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30286  (exit $ac_status); } &&
30287	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30288  { (case "(($ac_try" in
30289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30290  *) ac_try_echo=$ac_try;;
30291esac
30292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30293  (eval "$ac_try") 2>&5
30294  ac_status=$?
30295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30296  (exit $ac_status); }; } &&
30297	 { ac_try='test -s conftest$ac_exeext'
30298  { (case "(($ac_try" in
30299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30300  *) ac_try_echo=$ac_try;;
30301esac
30302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30303  (eval "$ac_try") 2>&5
30304  ac_status=$?
30305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30306  (exit $ac_status); }; }; then
30307  eval "$as_ac_var=yes"
30308else
30309  echo "$as_me: failed program was:" >&5
30310sed 's/^/| /' conftest.$ac_ext >&5
30311
30312	eval "$as_ac_var=no"
30313fi
30314
30315rm -f core conftest.err conftest.$ac_objext \
30316      conftest$ac_exeext conftest.$ac_ext
30317fi
30318ac_res=`eval echo '${'$as_ac_var'}'`
30319	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30320echo "${ECHO_T}$ac_res" >&6; }
30321if test `eval echo '${'$as_ac_var'}'` = yes; then
30322  cat >>confdefs.h <<_ACEOF
30323#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30324_ACEOF
30325
30326fi
30327done
30328
30329
30330
30331
30332
30333for ac_func in setjmp longjmp sigsetjmp siglongjmp
30334do
30335as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30336{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30337echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30338if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30339  echo $ECHO_N "(cached) $ECHO_C" >&6
30340else
30341  cat >conftest.$ac_ext <<_ACEOF
30342/* confdefs.h.  */
30343_ACEOF
30344cat confdefs.h >>conftest.$ac_ext
30345cat >>conftest.$ac_ext <<_ACEOF
30346/* end confdefs.h.  */
30347/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30348   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30349#define $ac_func innocuous_$ac_func
30350
30351/* System header to define __stub macros and hopefully few prototypes,
30352    which can conflict with char $ac_func (); below.
30353    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30354    <limits.h> exists even on freestanding compilers.  */
30355
30356#ifdef __STDC__
30357# include <limits.h>
30358#else
30359# include <assert.h>
30360#endif
30361
30362#undef $ac_func
30363
30364/* Override any GCC internal prototype to avoid an error.
30365   Use char because int might match the return type of a GCC
30366   builtin and then its argument prototype would still apply.  */
30367#ifdef __cplusplus
30368extern "C"
30369#endif
30370char $ac_func ();
30371/* The GNU C library defines this for functions which it implements
30372    to always fail with ENOSYS.  Some functions are actually named
30373    something starting with __ and the normal name is an alias.  */
30374#if defined __stub_$ac_func || defined __stub___$ac_func
30375choke me
30376#endif
30377
30378int
30379main ()
30380{
30381return $ac_func ();
30382  ;
30383  return 0;
30384}
30385_ACEOF
30386rm -f conftest.$ac_objext conftest$ac_exeext
30387if { (ac_try="$ac_link"
30388case "(($ac_try" in
30389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30390  *) ac_try_echo=$ac_try;;
30391esac
30392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30393  (eval "$ac_link") 2>conftest.er1
30394  ac_status=$?
30395  grep -v '^ *+' conftest.er1 >conftest.err
30396  rm -f conftest.er1
30397  cat conftest.err >&5
30398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30399  (exit $ac_status); } &&
30400	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30401  { (case "(($ac_try" in
30402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30403  *) ac_try_echo=$ac_try;;
30404esac
30405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30406  (eval "$ac_try") 2>&5
30407  ac_status=$?
30408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30409  (exit $ac_status); }; } &&
30410	 { ac_try='test -s conftest$ac_exeext'
30411  { (case "(($ac_try" in
30412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30413  *) ac_try_echo=$ac_try;;
30414esac
30415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30416  (eval "$ac_try") 2>&5
30417  ac_status=$?
30418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30419  (exit $ac_status); }; }; then
30420  eval "$as_ac_var=yes"
30421else
30422  echo "$as_me: failed program was:" >&5
30423sed 's/^/| /' conftest.$ac_ext >&5
30424
30425	eval "$as_ac_var=no"
30426fi
30427
30428rm -f core conftest.err conftest.$ac_objext \
30429      conftest$ac_exeext conftest.$ac_ext
30430fi
30431ac_res=`eval echo '${'$as_ac_var'}'`
30432	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30433echo "${ECHO_T}$ac_res" >&6; }
30434if test `eval echo '${'$as_ac_var'}'` = yes; then
30435  cat >>confdefs.h <<_ACEOF
30436#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30437_ACEOF
30438
30439fi
30440done
30441
30442{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30443echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
30444if test "${llvm_cv_c_printf_a+set}" = set; then
30445  echo $ECHO_N "(cached) $ECHO_C" >&6
30446else
30447  ac_ext=c
30448ac_cpp='$CPP $CPPFLAGS'
30449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30451ac_compiler_gnu=$ac_cv_c_compiler_gnu
30452
30453 if test "$cross_compiling" = yes; then
30454  llvmac_cv_c_printf_a=no
30455else
30456  cat >conftest.$ac_ext <<_ACEOF
30457
30458  /* confdefs.h.  */
30459_ACEOF
30460cat confdefs.h >>conftest.$ac_ext
30461cat >>conftest.$ac_ext <<_ACEOF
30462/* end confdefs.h.  */
30463
30464#include <stdio.h>
30465#include <stdlib.h>
30466
30467int
30468main ()
30469{
30470
30471volatile double A, B;
30472char Buffer[100];
30473A = 1;
30474A /= 10.0;
30475sprintf(Buffer, "%a", A);
30476B = atof(Buffer);
30477if (A != B)
30478  return (1);
30479if (A != 0x1.999999999999ap-4)
30480  return (1);
30481return (0);
30482  ;
30483  return 0;
30484}
30485_ACEOF
30486rm -f conftest$ac_exeext
30487if { (ac_try="$ac_link"
30488case "(($ac_try" in
30489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30490  *) ac_try_echo=$ac_try;;
30491esac
30492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30493  (eval "$ac_link") 2>&5
30494  ac_status=$?
30495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30496  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30497  { (case "(($ac_try" in
30498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30499  *) ac_try_echo=$ac_try;;
30500esac
30501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30502  (eval "$ac_try") 2>&5
30503  ac_status=$?
30504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30505  (exit $ac_status); }; }; then
30506  llvm_cv_c_printf_a=yes
30507else
30508  echo "$as_me: program exited with status $ac_status" >&5
30509echo "$as_me: failed program was:" >&5
30510sed 's/^/| /' conftest.$ac_ext >&5
30511
30512( exit $ac_status )
30513llvmac_cv_c_printf_a=no
30514fi
30515rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30516fi
30517
30518
30519 ac_ext=c
30520ac_cpp='$CPP $CPPFLAGS'
30521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30523ac_compiler_gnu=$ac_cv_c_compiler_gnu
30524
30525fi
30526{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30527echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
30528 if test "$llvm_cv_c_printf_a" = "yes"; then
30529
30530cat >>confdefs.h <<\_ACEOF
30531#define HAVE_PRINTF_A 1
30532_ACEOF
30533
30534 fi
30535
30536# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30537# for constant arguments.  Useless!
30538{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
30539echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
30540if test "${ac_cv_working_alloca_h+set}" = set; then
30541  echo $ECHO_N "(cached) $ECHO_C" >&6
30542else
30543  cat >conftest.$ac_ext <<_ACEOF
30544/* confdefs.h.  */
30545_ACEOF
30546cat confdefs.h >>conftest.$ac_ext
30547cat >>conftest.$ac_ext <<_ACEOF
30548/* end confdefs.h.  */
30549#include <alloca.h>
30550int
30551main ()
30552{
30553char *p = (char *) alloca (2 * sizeof (int));
30554			  if (p) return 0;
30555  ;
30556  return 0;
30557}
30558_ACEOF
30559rm -f conftest.$ac_objext conftest$ac_exeext
30560if { (ac_try="$ac_link"
30561case "(($ac_try" in
30562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30563  *) ac_try_echo=$ac_try;;
30564esac
30565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30566  (eval "$ac_link") 2>conftest.er1
30567  ac_status=$?
30568  grep -v '^ *+' conftest.er1 >conftest.err
30569  rm -f conftest.er1
30570  cat conftest.err >&5
30571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30572  (exit $ac_status); } &&
30573	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30574  { (case "(($ac_try" in
30575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30576  *) ac_try_echo=$ac_try;;
30577esac
30578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30579  (eval "$ac_try") 2>&5
30580  ac_status=$?
30581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30582  (exit $ac_status); }; } &&
30583	 { ac_try='test -s conftest$ac_exeext'
30584  { (case "(($ac_try" in
30585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30586  *) ac_try_echo=$ac_try;;
30587esac
30588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30589  (eval "$ac_try") 2>&5
30590  ac_status=$?
30591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592  (exit $ac_status); }; }; then
30593  ac_cv_working_alloca_h=yes
30594else
30595  echo "$as_me: failed program was:" >&5
30596sed 's/^/| /' conftest.$ac_ext >&5
30597
30598	ac_cv_working_alloca_h=no
30599fi
30600
30601rm -f core conftest.err conftest.$ac_objext \
30602      conftest$ac_exeext conftest.$ac_ext
30603fi
30604{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30605echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
30606if test $ac_cv_working_alloca_h = yes; then
30607
30608cat >>confdefs.h <<\_ACEOF
30609#define HAVE_ALLOCA_H 1
30610_ACEOF
30611
30612fi
30613
30614{ echo "$as_me:$LINENO: checking for alloca" >&5
30615echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
30616if test "${ac_cv_func_alloca_works+set}" = set; then
30617  echo $ECHO_N "(cached) $ECHO_C" >&6
30618else
30619  cat >conftest.$ac_ext <<_ACEOF
30620/* confdefs.h.  */
30621_ACEOF
30622cat confdefs.h >>conftest.$ac_ext
30623cat >>conftest.$ac_ext <<_ACEOF
30624/* end confdefs.h.  */
30625#ifdef __GNUC__
30626# define alloca __builtin_alloca
30627#else
30628# ifdef _MSC_VER
30629#  include <malloc.h>
30630#  define alloca _alloca
30631# else
30632#  if HAVE_ALLOCA_H
30633#   include <alloca.h>
30634#  else
30635#   ifdef _AIX
30636 #pragma alloca
30637#   else
30638#    ifndef alloca /* predefined by HP cc +Olibcalls */
30639char *alloca ();
30640#    endif
30641#   endif
30642#  endif
30643# endif
30644#endif
30645
30646int
30647main ()
30648{
30649char *p = (char *) alloca (1);
30650				    if (p) return 0;
30651  ;
30652  return 0;
30653}
30654_ACEOF
30655rm -f conftest.$ac_objext conftest$ac_exeext
30656if { (ac_try="$ac_link"
30657case "(($ac_try" in
30658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30659  *) ac_try_echo=$ac_try;;
30660esac
30661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30662  (eval "$ac_link") 2>conftest.er1
30663  ac_status=$?
30664  grep -v '^ *+' conftest.er1 >conftest.err
30665  rm -f conftest.er1
30666  cat conftest.err >&5
30667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30668  (exit $ac_status); } &&
30669	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30670  { (case "(($ac_try" in
30671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30672  *) ac_try_echo=$ac_try;;
30673esac
30674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30675  (eval "$ac_try") 2>&5
30676  ac_status=$?
30677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30678  (exit $ac_status); }; } &&
30679	 { ac_try='test -s conftest$ac_exeext'
30680  { (case "(($ac_try" in
30681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30682  *) ac_try_echo=$ac_try;;
30683esac
30684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30685  (eval "$ac_try") 2>&5
30686  ac_status=$?
30687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30688  (exit $ac_status); }; }; then
30689  ac_cv_func_alloca_works=yes
30690else
30691  echo "$as_me: failed program was:" >&5
30692sed 's/^/| /' conftest.$ac_ext >&5
30693
30694	ac_cv_func_alloca_works=no
30695fi
30696
30697rm -f core conftest.err conftest.$ac_objext \
30698      conftest$ac_exeext conftest.$ac_ext
30699fi
30700{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30701echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
30702
30703if test $ac_cv_func_alloca_works = yes; then
30704
30705cat >>confdefs.h <<\_ACEOF
30706#define HAVE_ALLOCA 1
30707_ACEOF
30708
30709else
30710  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30711# that cause trouble.  Some versions do not even contain alloca or
30712# contain a buggy version.  If you still want to use their alloca,
30713# use ar to extract alloca.o from them instead of compiling alloca.c.
30714
30715ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
30716
30717cat >>confdefs.h <<\_ACEOF
30718#define C_ALLOCA 1
30719_ACEOF
30720
30721
30722{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30723echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
30724if test "${ac_cv_os_cray+set}" = set; then
30725  echo $ECHO_N "(cached) $ECHO_C" >&6
30726else
30727  cat >conftest.$ac_ext <<_ACEOF
30728/* confdefs.h.  */
30729_ACEOF
30730cat confdefs.h >>conftest.$ac_ext
30731cat >>conftest.$ac_ext <<_ACEOF
30732/* end confdefs.h.  */
30733#if defined CRAY && ! defined CRAY2
30734webecray
30735#else
30736wenotbecray
30737#endif
30738
30739_ACEOF
30740if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30741  $EGREP "webecray" >/dev/null 2>&1; then
30742  ac_cv_os_cray=yes
30743else
30744  ac_cv_os_cray=no
30745fi
30746rm -f conftest*
30747
30748fi
30749{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30750echo "${ECHO_T}$ac_cv_os_cray" >&6; }
30751if test $ac_cv_os_cray = yes; then
30752  for ac_func in _getb67 GETB67 getb67; do
30753    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30754{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30755echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30756if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30757  echo $ECHO_N "(cached) $ECHO_C" >&6
30758else
30759  cat >conftest.$ac_ext <<_ACEOF
30760/* confdefs.h.  */
30761_ACEOF
30762cat confdefs.h >>conftest.$ac_ext
30763cat >>conftest.$ac_ext <<_ACEOF
30764/* end confdefs.h.  */
30765/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30766   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30767#define $ac_func innocuous_$ac_func
30768
30769/* System header to define __stub macros and hopefully few prototypes,
30770    which can conflict with char $ac_func (); below.
30771    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30772    <limits.h> exists even on freestanding compilers.  */
30773
30774#ifdef __STDC__
30775# include <limits.h>
30776#else
30777# include <assert.h>
30778#endif
30779
30780#undef $ac_func
30781
30782/* Override any GCC internal prototype to avoid an error.
30783   Use char because int might match the return type of a GCC
30784   builtin and then its argument prototype would still apply.  */
30785#ifdef __cplusplus
30786extern "C"
30787#endif
30788char $ac_func ();
30789/* The GNU C library defines this for functions which it implements
30790    to always fail with ENOSYS.  Some functions are actually named
30791    something starting with __ and the normal name is an alias.  */
30792#if defined __stub_$ac_func || defined __stub___$ac_func
30793choke me
30794#endif
30795
30796int
30797main ()
30798{
30799return $ac_func ();
30800  ;
30801  return 0;
30802}
30803_ACEOF
30804rm -f conftest.$ac_objext conftest$ac_exeext
30805if { (ac_try="$ac_link"
30806case "(($ac_try" in
30807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30808  *) ac_try_echo=$ac_try;;
30809esac
30810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30811  (eval "$ac_link") 2>conftest.er1
30812  ac_status=$?
30813  grep -v '^ *+' conftest.er1 >conftest.err
30814  rm -f conftest.er1
30815  cat conftest.err >&5
30816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30817  (exit $ac_status); } &&
30818	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30819  { (case "(($ac_try" in
30820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30821  *) ac_try_echo=$ac_try;;
30822esac
30823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30824  (eval "$ac_try") 2>&5
30825  ac_status=$?
30826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30827  (exit $ac_status); }; } &&
30828	 { ac_try='test -s conftest$ac_exeext'
30829  { (case "(($ac_try" in
30830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30831  *) ac_try_echo=$ac_try;;
30832esac
30833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30834  (eval "$ac_try") 2>&5
30835  ac_status=$?
30836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30837  (exit $ac_status); }; }; then
30838  eval "$as_ac_var=yes"
30839else
30840  echo "$as_me: failed program was:" >&5
30841sed 's/^/| /' conftest.$ac_ext >&5
30842
30843	eval "$as_ac_var=no"
30844fi
30845
30846rm -f core conftest.err conftest.$ac_objext \
30847      conftest$ac_exeext conftest.$ac_ext
30848fi
30849ac_res=`eval echo '${'$as_ac_var'}'`
30850	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30851echo "${ECHO_T}$ac_res" >&6; }
30852if test `eval echo '${'$as_ac_var'}'` = yes; then
30853
30854cat >>confdefs.h <<_ACEOF
30855#define CRAY_STACKSEG_END $ac_func
30856_ACEOF
30857
30858    break
30859fi
30860
30861  done
30862fi
30863
30864{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30865echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
30866if test "${ac_cv_c_stack_direction+set}" = set; then
30867  echo $ECHO_N "(cached) $ECHO_C" >&6
30868else
30869  if test "$cross_compiling" = yes; then
30870  ac_cv_c_stack_direction=0
30871else
30872  cat >conftest.$ac_ext <<_ACEOF
30873/* confdefs.h.  */
30874_ACEOF
30875cat confdefs.h >>conftest.$ac_ext
30876cat >>conftest.$ac_ext <<_ACEOF
30877/* end confdefs.h.  */
30878$ac_includes_default
30879int
30880find_stack_direction ()
30881{
30882  static char *addr = 0;
30883  auto char dummy;
30884  if (addr == 0)
30885    {
30886      addr = &dummy;
30887      return find_stack_direction ();
30888    }
30889  else
30890    return (&dummy > addr) ? 1 : -1;
30891}
30892
30893int
30894main ()
30895{
30896  return find_stack_direction () < 0;
30897}
30898_ACEOF
30899rm -f conftest$ac_exeext
30900if { (ac_try="$ac_link"
30901case "(($ac_try" in
30902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30903  *) ac_try_echo=$ac_try;;
30904esac
30905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30906  (eval "$ac_link") 2>&5
30907  ac_status=$?
30908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30909  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30910  { (case "(($ac_try" in
30911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30912  *) ac_try_echo=$ac_try;;
30913esac
30914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30915  (eval "$ac_try") 2>&5
30916  ac_status=$?
30917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30918  (exit $ac_status); }; }; then
30919  ac_cv_c_stack_direction=1
30920else
30921  echo "$as_me: program exited with status $ac_status" >&5
30922echo "$as_me: failed program was:" >&5
30923sed 's/^/| /' conftest.$ac_ext >&5
30924
30925( exit $ac_status )
30926ac_cv_c_stack_direction=-1
30927fi
30928rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30929fi
30930
30931
30932fi
30933{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
30934echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
30935
30936cat >>confdefs.h <<_ACEOF
30937#define STACK_DIRECTION $ac_cv_c_stack_direction
30938_ACEOF
30939
30940
30941fi
30942
30943
30944{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
30945echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
30946if test "${ac_cv_func_rand48+set}" = set; then
30947  echo $ECHO_N "(cached) $ECHO_C" >&6
30948else
30949  ac_ext=cpp
30950ac_cpp='$CXXCPP $CPPFLAGS'
30951ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30952ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30953ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30954
30955   cat >conftest.$ac_ext <<_ACEOF
30956/* confdefs.h.  */
30957_ACEOF
30958cat confdefs.h >>conftest.$ac_ext
30959cat >>conftest.$ac_ext <<_ACEOF
30960/* end confdefs.h.  */
30961#include <stdlib.h>
30962int
30963main ()
30964{
30965srand48(0);lrand48();drand48();
30966  ;
30967  return 0;
30968}
30969_ACEOF
30970rm -f conftest.$ac_objext
30971if { (ac_try="$ac_compile"
30972case "(($ac_try" in
30973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30974  *) ac_try_echo=$ac_try;;
30975esac
30976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30977  (eval "$ac_compile") 2>conftest.er1
30978  ac_status=$?
30979  grep -v '^ *+' conftest.er1 >conftest.err
30980  rm -f conftest.er1
30981  cat conftest.err >&5
30982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30983  (exit $ac_status); } &&
30984	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30985  { (case "(($ac_try" in
30986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30987  *) ac_try_echo=$ac_try;;
30988esac
30989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30990  (eval "$ac_try") 2>&5
30991  ac_status=$?
30992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30993  (exit $ac_status); }; } &&
30994	 { ac_try='test -s conftest.$ac_objext'
30995  { (case "(($ac_try" in
30996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30997  *) ac_try_echo=$ac_try;;
30998esac
30999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31000  (eval "$ac_try") 2>&5
31001  ac_status=$?
31002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31003  (exit $ac_status); }; }; then
31004  ac_cv_func_rand48=yes
31005else
31006  echo "$as_me: failed program was:" >&5
31007sed 's/^/| /' conftest.$ac_ext >&5
31008
31009	ac_cv_func_rand48=no
31010fi
31011
31012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31013  ac_ext=c
31014ac_cpp='$CPP $CPPFLAGS'
31015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31017ac_compiler_gnu=$ac_cv_c_compiler_gnu
31018
31019fi
31020{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31021echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31022
31023if test "$ac_cv_func_rand48" = "yes" ; then
31024
31025cat >>confdefs.h <<\_ACEOF
31026#define HAVE_RAND48 1
31027_ACEOF
31028
31029fi
31030
31031
31032{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31033echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31034if test "${ac_cv_cxx_namespaces+set}" = set; then
31035  echo $ECHO_N "(cached) $ECHO_C" >&6
31036else
31037  ac_ext=cpp
31038ac_cpp='$CXXCPP $CPPFLAGS'
31039ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31040ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31041ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31042
31043 cat >conftest.$ac_ext <<_ACEOF
31044/* confdefs.h.  */
31045_ACEOF
31046cat confdefs.h >>conftest.$ac_ext
31047cat >>conftest.$ac_ext <<_ACEOF
31048/* end confdefs.h.  */
31049namespace Outer { namespace Inner { int i = 0; }}
31050int
31051main ()
31052{
31053using namespace Outer::Inner; return i;
31054  ;
31055  return 0;
31056}
31057_ACEOF
31058rm -f conftest.$ac_objext
31059if { (ac_try="$ac_compile"
31060case "(($ac_try" in
31061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31062  *) ac_try_echo=$ac_try;;
31063esac
31064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31065  (eval "$ac_compile") 2>conftest.er1
31066  ac_status=$?
31067  grep -v '^ *+' conftest.er1 >conftest.err
31068  rm -f conftest.er1
31069  cat conftest.err >&5
31070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31071  (exit $ac_status); } &&
31072	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31073  { (case "(($ac_try" in
31074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31075  *) ac_try_echo=$ac_try;;
31076esac
31077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31078  (eval "$ac_try") 2>&5
31079  ac_status=$?
31080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31081  (exit $ac_status); }; } &&
31082	 { ac_try='test -s conftest.$ac_objext'
31083  { (case "(($ac_try" in
31084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31085  *) ac_try_echo=$ac_try;;
31086esac
31087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31088  (eval "$ac_try") 2>&5
31089  ac_status=$?
31090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31091  (exit $ac_status); }; }; then
31092  ac_cv_cxx_namespaces=yes
31093else
31094  echo "$as_me: failed program was:" >&5
31095sed 's/^/| /' conftest.$ac_ext >&5
31096
31097	ac_cv_cxx_namespaces=no
31098fi
31099
31100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31101 ac_ext=c
31102ac_cpp='$CPP $CPPFLAGS'
31103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31105ac_compiler_gnu=$ac_cv_c_compiler_gnu
31106
31107
31108fi
31109{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31110echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31111if test "$ac_cv_cxx_namespaces" = yes; then
31112
31113cat >>confdefs.h <<\_ACEOF
31114#define HAVE_NAMESPACES
31115_ACEOF
31116
31117fi
31118
31119{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31120echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31121if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31122  echo $ECHO_N "(cached) $ECHO_C" >&6
31123else
31124
31125  ac_ext=cpp
31126ac_cpp='$CXXCPP $CPPFLAGS'
31127ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31128ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31129ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31130
31131  cat >conftest.$ac_ext <<_ACEOF
31132/* confdefs.h.  */
31133_ACEOF
31134cat confdefs.h >>conftest.$ac_ext
31135cat >>conftest.$ac_ext <<_ACEOF
31136/* end confdefs.h.  */
31137#include <ext/hash_map>
31138#ifdef HAVE_NAMESPACES
31139using namespace std;
31140#endif
31141int
31142main ()
31143{
31144hash_map<int, int> t;
31145  ;
31146  return 0;
31147}
31148_ACEOF
31149rm -f conftest.$ac_objext
31150if { (ac_try="$ac_compile"
31151case "(($ac_try" in
31152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31153  *) ac_try_echo=$ac_try;;
31154esac
31155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31156  (eval "$ac_compile") 2>conftest.er1
31157  ac_status=$?
31158  grep -v '^ *+' conftest.er1 >conftest.err
31159  rm -f conftest.er1
31160  cat conftest.err >&5
31161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31162  (exit $ac_status); } &&
31163	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31164  { (case "(($ac_try" in
31165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31166  *) ac_try_echo=$ac_try;;
31167esac
31168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31169  (eval "$ac_try") 2>&5
31170  ac_status=$?
31171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31172  (exit $ac_status); }; } &&
31173	 { ac_try='test -s conftest.$ac_objext'
31174  { (case "(($ac_try" in
31175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31176  *) ac_try_echo=$ac_try;;
31177esac
31178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31179  (eval "$ac_try") 2>&5
31180  ac_status=$?
31181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31182  (exit $ac_status); }; }; then
31183  ac_cv_cxx_have_std_ext_hash_map=yes
31184else
31185  echo "$as_me: failed program was:" >&5
31186sed 's/^/| /' conftest.$ac_ext >&5
31187
31188	ac_cv_cxx_have_std_ext_hash_map=no
31189fi
31190
31191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31192  ac_ext=c
31193ac_cpp='$CPP $CPPFLAGS'
31194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31196ac_compiler_gnu=$ac_cv_c_compiler_gnu
31197
31198fi
31199{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31200echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31201 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31202 then
31203
31204cat >>confdefs.h <<\_ACEOF
31205#define HAVE_STD_EXT_HASH_MAP 1
31206_ACEOF
31207
31208 else
31209
31210cat >>confdefs.h <<\_ACEOF
31211#define HAVE_STD_EXT_HASH_MAP 0
31212_ACEOF
31213
31214 fi
31215
31216 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31217echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31218if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31219  echo $ECHO_N "(cached) $ECHO_C" >&6
31220else
31221
31222  ac_ext=cpp
31223ac_cpp='$CXXCPP $CPPFLAGS'
31224ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31225ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31226ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31227
31228  cat >conftest.$ac_ext <<_ACEOF
31229/* confdefs.h.  */
31230_ACEOF
31231cat confdefs.h >>conftest.$ac_ext
31232cat >>conftest.$ac_ext <<_ACEOF
31233/* end confdefs.h.  */
31234#include <ext/hash_map>
31235#ifdef HAVE_NAMESPACES
31236using namespace __gnu_cxx;
31237#endif
31238int
31239main ()
31240{
31241hash_map<int,int> t;
31242  ;
31243  return 0;
31244}
31245_ACEOF
31246rm -f conftest.$ac_objext
31247if { (ac_try="$ac_compile"
31248case "(($ac_try" in
31249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31250  *) ac_try_echo=$ac_try;;
31251esac
31252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31253  (eval "$ac_compile") 2>conftest.er1
31254  ac_status=$?
31255  grep -v '^ *+' conftest.er1 >conftest.err
31256  rm -f conftest.er1
31257  cat conftest.err >&5
31258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31259  (exit $ac_status); } &&
31260	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31261  { (case "(($ac_try" in
31262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31263  *) ac_try_echo=$ac_try;;
31264esac
31265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31266  (eval "$ac_try") 2>&5
31267  ac_status=$?
31268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31269  (exit $ac_status); }; } &&
31270	 { ac_try='test -s conftest.$ac_objext'
31271  { (case "(($ac_try" in
31272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31273  *) ac_try_echo=$ac_try;;
31274esac
31275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31276  (eval "$ac_try") 2>&5
31277  ac_status=$?
31278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31279  (exit $ac_status); }; }; then
31280  ac_cv_cxx_have_gnu_ext_hash_map=yes
31281else
31282  echo "$as_me: failed program was:" >&5
31283sed 's/^/| /' conftest.$ac_ext >&5
31284
31285	ac_cv_cxx_have_gnu_ext_hash_map=no
31286fi
31287
31288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31289  ac_ext=c
31290ac_cpp='$CPP $CPPFLAGS'
31291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31293ac_compiler_gnu=$ac_cv_c_compiler_gnu
31294
31295fi
31296{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31297echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31298 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31299 then
31300
31301cat >>confdefs.h <<\_ACEOF
31302#define HAVE_GNU_EXT_HASH_MAP 1
31303_ACEOF
31304
31305 else
31306
31307cat >>confdefs.h <<\_ACEOF
31308#define HAVE_GNU_EXT_HASH_MAP 0
31309_ACEOF
31310
31311 fi
31312
31313 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31314echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31315if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31316  echo $ECHO_N "(cached) $ECHO_C" >&6
31317else
31318
31319  ac_ext=cpp
31320ac_cpp='$CXXCPP $CPPFLAGS'
31321ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31322ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31323ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31324
31325  cat >conftest.$ac_ext <<_ACEOF
31326/* confdefs.h.  */
31327_ACEOF
31328cat confdefs.h >>conftest.$ac_ext
31329cat >>conftest.$ac_ext <<_ACEOF
31330/* end confdefs.h.  */
31331#include <hash_map>
31332int
31333main ()
31334{
31335hash_map<int,int> t;
31336  ;
31337  return 0;
31338}
31339_ACEOF
31340rm -f conftest.$ac_objext
31341if { (ac_try="$ac_compile"
31342case "(($ac_try" in
31343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31344  *) ac_try_echo=$ac_try;;
31345esac
31346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31347  (eval "$ac_compile") 2>conftest.er1
31348  ac_status=$?
31349  grep -v '^ *+' conftest.er1 >conftest.err
31350  rm -f conftest.er1
31351  cat conftest.err >&5
31352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31353  (exit $ac_status); } &&
31354	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31355  { (case "(($ac_try" in
31356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31357  *) ac_try_echo=$ac_try;;
31358esac
31359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31360  (eval "$ac_try") 2>&5
31361  ac_status=$?
31362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31363  (exit $ac_status); }; } &&
31364	 { ac_try='test -s conftest.$ac_objext'
31365  { (case "(($ac_try" in
31366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31367  *) ac_try_echo=$ac_try;;
31368esac
31369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31370  (eval "$ac_try") 2>&5
31371  ac_status=$?
31372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31373  (exit $ac_status); }; }; then
31374  ac_cv_cxx_have_global_hash_map=yes
31375else
31376  echo "$as_me: failed program was:" >&5
31377sed 's/^/| /' conftest.$ac_ext >&5
31378
31379	ac_cv_cxx_have_global_hash_map=no
31380fi
31381
31382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31383  ac_ext=c
31384ac_cpp='$CPP $CPPFLAGS'
31385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31387ac_compiler_gnu=$ac_cv_c_compiler_gnu
31388
31389fi
31390{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31391echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
31392 if test "$ac_cv_cxx_have_global_hash_map" = yes
31393 then
31394
31395cat >>confdefs.h <<\_ACEOF
31396#define HAVE_GLOBAL_HASH_MAP 1
31397_ACEOF
31398
31399 else
31400
31401cat >>confdefs.h <<\_ACEOF
31402#define HAVE_GLOBAL_HASH_MAP 0
31403_ACEOF
31404
31405 fi
31406
31407{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31408echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
31409if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
31410  echo $ECHO_N "(cached) $ECHO_C" >&6
31411else
31412
31413  ac_ext=cpp
31414ac_cpp='$CXXCPP $CPPFLAGS'
31415ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31416ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31417ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31418
31419  cat >conftest.$ac_ext <<_ACEOF
31420/* confdefs.h.  */
31421_ACEOF
31422cat confdefs.h >>conftest.$ac_ext
31423cat >>conftest.$ac_ext <<_ACEOF
31424/* end confdefs.h.  */
31425#include <ext/hash_set>
31426#ifdef HAVE_NAMESPACES
31427using namespace std;
31428#endif
31429int
31430main ()
31431{
31432hash_set<int> t;
31433  ;
31434  return 0;
31435}
31436_ACEOF
31437rm -f conftest.$ac_objext
31438if { (ac_try="$ac_compile"
31439case "(($ac_try" in
31440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31441  *) ac_try_echo=$ac_try;;
31442esac
31443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31444  (eval "$ac_compile") 2>conftest.er1
31445  ac_status=$?
31446  grep -v '^ *+' conftest.er1 >conftest.err
31447  rm -f conftest.er1
31448  cat conftest.err >&5
31449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31450  (exit $ac_status); } &&
31451	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31452  { (case "(($ac_try" in
31453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31454  *) ac_try_echo=$ac_try;;
31455esac
31456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31457  (eval "$ac_try") 2>&5
31458  ac_status=$?
31459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31460  (exit $ac_status); }; } &&
31461	 { ac_try='test -s conftest.$ac_objext'
31462  { (case "(($ac_try" in
31463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31464  *) ac_try_echo=$ac_try;;
31465esac
31466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31467  (eval "$ac_try") 2>&5
31468  ac_status=$?
31469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31470  (exit $ac_status); }; }; then
31471  ac_cv_cxx_have_std_ext_hash_set=yes
31472else
31473  echo "$as_me: failed program was:" >&5
31474sed 's/^/| /' conftest.$ac_ext >&5
31475
31476	ac_cv_cxx_have_std_ext_hash_set=no
31477fi
31478
31479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31480  ac_ext=c
31481ac_cpp='$CPP $CPPFLAGS'
31482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31484ac_compiler_gnu=$ac_cv_c_compiler_gnu
31485
31486fi
31487{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31488echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
31489 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31490 then
31491
31492cat >>confdefs.h <<\_ACEOF
31493#define HAVE_STD_EXT_HASH_SET 1
31494_ACEOF
31495
31496 else
31497
31498cat >>confdefs.h <<\_ACEOF
31499#define HAVE_STD_EXT_HASH_SET 0
31500_ACEOF
31501
31502 fi
31503
31504 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31505echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
31506if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31507  echo $ECHO_N "(cached) $ECHO_C" >&6
31508else
31509
31510  ac_ext=cpp
31511ac_cpp='$CXXCPP $CPPFLAGS'
31512ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31513ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31514ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31515
31516  cat >conftest.$ac_ext <<_ACEOF
31517/* confdefs.h.  */
31518_ACEOF
31519cat confdefs.h >>conftest.$ac_ext
31520cat >>conftest.$ac_ext <<_ACEOF
31521/* end confdefs.h.  */
31522#include <ext/hash_set>
31523#ifdef HAVE_NAMESPACES
31524using namespace __gnu_cxx;
31525#endif
31526int
31527main ()
31528{
31529hash_set<int> t;
31530  ;
31531  return 0;
31532}
31533_ACEOF
31534rm -f conftest.$ac_objext
31535if { (ac_try="$ac_compile"
31536case "(($ac_try" in
31537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31538  *) ac_try_echo=$ac_try;;
31539esac
31540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31541  (eval "$ac_compile") 2>conftest.er1
31542  ac_status=$?
31543  grep -v '^ *+' conftest.er1 >conftest.err
31544  rm -f conftest.er1
31545  cat conftest.err >&5
31546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547  (exit $ac_status); } &&
31548	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31549  { (case "(($ac_try" in
31550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31551  *) ac_try_echo=$ac_try;;
31552esac
31553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31554  (eval "$ac_try") 2>&5
31555  ac_status=$?
31556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31557  (exit $ac_status); }; } &&
31558	 { ac_try='test -s conftest.$ac_objext'
31559  { (case "(($ac_try" in
31560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31561  *) ac_try_echo=$ac_try;;
31562esac
31563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31564  (eval "$ac_try") 2>&5
31565  ac_status=$?
31566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567  (exit $ac_status); }; }; then
31568  ac_cv_cxx_have_gnu_ext_hash_set=yes
31569else
31570  echo "$as_me: failed program was:" >&5
31571sed 's/^/| /' conftest.$ac_ext >&5
31572
31573	ac_cv_cxx_have_gnu_ext_hash_set=no
31574fi
31575
31576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31577  ac_ext=c
31578ac_cpp='$CPP $CPPFLAGS'
31579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31581ac_compiler_gnu=$ac_cv_c_compiler_gnu
31582
31583fi
31584{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31585echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
31586 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31587 then
31588
31589cat >>confdefs.h <<\_ACEOF
31590#define HAVE_GNU_EXT_HASH_SET 1
31591_ACEOF
31592
31593 else
31594
31595cat >>confdefs.h <<\_ACEOF
31596#define HAVE_GNU_EXT_HASH_SET 0
31597_ACEOF
31598
31599 fi
31600
31601 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31602echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
31603if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31604  echo $ECHO_N "(cached) $ECHO_C" >&6
31605else
31606
31607  ac_ext=cpp
31608ac_cpp='$CXXCPP $CPPFLAGS'
31609ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31610ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31611ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31612
31613  cat >conftest.$ac_ext <<_ACEOF
31614/* confdefs.h.  */
31615_ACEOF
31616cat confdefs.h >>conftest.$ac_ext
31617cat >>conftest.$ac_ext <<_ACEOF
31618/* end confdefs.h.  */
31619#include <hash_set>
31620int
31621main ()
31622{
31623hash_set<int> t; return 0;
31624  ;
31625  return 0;
31626}
31627_ACEOF
31628rm -f conftest.$ac_objext
31629if { (ac_try="$ac_compile"
31630case "(($ac_try" in
31631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31632  *) ac_try_echo=$ac_try;;
31633esac
31634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31635  (eval "$ac_compile") 2>conftest.er1
31636  ac_status=$?
31637  grep -v '^ *+' conftest.er1 >conftest.err
31638  rm -f conftest.er1
31639  cat conftest.err >&5
31640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31641  (exit $ac_status); } &&
31642	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31643  { (case "(($ac_try" in
31644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31645  *) ac_try_echo=$ac_try;;
31646esac
31647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31648  (eval "$ac_try") 2>&5
31649  ac_status=$?
31650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31651  (exit $ac_status); }; } &&
31652	 { ac_try='test -s conftest.$ac_objext'
31653  { (case "(($ac_try" in
31654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31655  *) ac_try_echo=$ac_try;;
31656esac
31657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31658  (eval "$ac_try") 2>&5
31659  ac_status=$?
31660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31661  (exit $ac_status); }; }; then
31662  ac_cv_cxx_have_global_hash_set=yes
31663else
31664  echo "$as_me: failed program was:" >&5
31665sed 's/^/| /' conftest.$ac_ext >&5
31666
31667	ac_cv_cxx_have_global_hash_set=no
31668fi
31669
31670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31671  ac_ext=c
31672ac_cpp='$CPP $CPPFLAGS'
31673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31675ac_compiler_gnu=$ac_cv_c_compiler_gnu
31676
31677fi
31678{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31679echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
31680 if test "$ac_cv_cxx_have_global_hash_set" = yes
31681 then
31682
31683cat >>confdefs.h <<\_ACEOF
31684#define HAVE_GLOBAL_HASH_SET 1
31685_ACEOF
31686
31687 else
31688
31689cat >>confdefs.h <<\_ACEOF
31690#define HAVE_GLOBAL_HASH_SET 0
31691_ACEOF
31692
31693 fi
31694
31695{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31696echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
31697if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31698  echo $ECHO_N "(cached) $ECHO_C" >&6
31699else
31700
31701  ac_ext=cpp
31702ac_cpp='$CXXCPP $CPPFLAGS'
31703ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31704ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31705ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31706
31707  cat >conftest.$ac_ext <<_ACEOF
31708/* confdefs.h.  */
31709_ACEOF
31710cat confdefs.h >>conftest.$ac_ext
31711cat >>conftest.$ac_ext <<_ACEOF
31712/* end confdefs.h.  */
31713#include <iterator>
31714#ifdef HAVE_NAMESPACES
31715using namespace std;
31716#endif
31717int
31718main ()
31719{
31720iterator<int,int,int> t; return 0;
31721  ;
31722  return 0;
31723}
31724_ACEOF
31725rm -f conftest.$ac_objext
31726if { (ac_try="$ac_compile"
31727case "(($ac_try" in
31728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31729  *) ac_try_echo=$ac_try;;
31730esac
31731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31732  (eval "$ac_compile") 2>conftest.er1
31733  ac_status=$?
31734  grep -v '^ *+' conftest.er1 >conftest.err
31735  rm -f conftest.er1
31736  cat conftest.err >&5
31737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31738  (exit $ac_status); } &&
31739	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31740  { (case "(($ac_try" in
31741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31742  *) ac_try_echo=$ac_try;;
31743esac
31744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31745  (eval "$ac_try") 2>&5
31746  ac_status=$?
31747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31748  (exit $ac_status); }; } &&
31749	 { ac_try='test -s conftest.$ac_objext'
31750  { (case "(($ac_try" in
31751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31752  *) ac_try_echo=$ac_try;;
31753esac
31754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31755  (eval "$ac_try") 2>&5
31756  ac_status=$?
31757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31758  (exit $ac_status); }; }; then
31759  ac_cv_cxx_have_std_iterator=yes
31760else
31761  echo "$as_me: failed program was:" >&5
31762sed 's/^/| /' conftest.$ac_ext >&5
31763
31764	ac_cv_cxx_have_std_iterator=no
31765fi
31766
31767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31768  ac_ext=c
31769ac_cpp='$CPP $CPPFLAGS'
31770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31772ac_compiler_gnu=$ac_cv_c_compiler_gnu
31773
31774
31775fi
31776{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
31777echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
31778if test "$ac_cv_cxx_have_std_iterator" = yes
31779then
31780
31781cat >>confdefs.h <<\_ACEOF
31782#define HAVE_STD_ITERATOR 1
31783_ACEOF
31784
31785else
31786
31787cat >>confdefs.h <<\_ACEOF
31788#define HAVE_STD_ITERATOR 0
31789_ACEOF
31790
31791fi
31792
31793{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
31794echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
31795if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
31796  echo $ECHO_N "(cached) $ECHO_C" >&6
31797else
31798
31799  ac_ext=cpp
31800ac_cpp='$CXXCPP $CPPFLAGS'
31801ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31802ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31803ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31804
31805  cat >conftest.$ac_ext <<_ACEOF
31806/* confdefs.h.  */
31807_ACEOF
31808cat confdefs.h >>conftest.$ac_ext
31809cat >>conftest.$ac_ext <<_ACEOF
31810/* end confdefs.h.  */
31811#include <iterator>
31812#ifdef HAVE_NAMESPACES
31813using namespace std;
31814#endif
31815int
31816main ()
31817{
31818bidirectional_iterator<int,int> t; return 0;
31819  ;
31820  return 0;
31821}
31822_ACEOF
31823rm -f conftest.$ac_objext
31824if { (ac_try="$ac_compile"
31825case "(($ac_try" in
31826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31827  *) ac_try_echo=$ac_try;;
31828esac
31829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31830  (eval "$ac_compile") 2>conftest.er1
31831  ac_status=$?
31832  grep -v '^ *+' conftest.er1 >conftest.err
31833  rm -f conftest.er1
31834  cat conftest.err >&5
31835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31836  (exit $ac_status); } &&
31837	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31838  { (case "(($ac_try" in
31839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31840  *) ac_try_echo=$ac_try;;
31841esac
31842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31843  (eval "$ac_try") 2>&5
31844  ac_status=$?
31845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31846  (exit $ac_status); }; } &&
31847	 { ac_try='test -s conftest.$ac_objext'
31848  { (case "(($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_try") 2>&5
31854  ac_status=$?
31855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31856  (exit $ac_status); }; }; then
31857  ac_cv_cxx_have_bi_iterator=yes
31858else
31859  echo "$as_me: failed program was:" >&5
31860sed 's/^/| /' conftest.$ac_ext >&5
31861
31862	ac_cv_cxx_have_bi_iterator=no
31863fi
31864
31865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31866  ac_ext=c
31867ac_cpp='$CPP $CPPFLAGS'
31868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31870ac_compiler_gnu=$ac_cv_c_compiler_gnu
31871
31872
31873fi
31874{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
31875echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
31876if test "$ac_cv_cxx_have_bi_iterator" = yes
31877then
31878
31879cat >>confdefs.h <<\_ACEOF
31880#define HAVE_BI_ITERATOR 1
31881_ACEOF
31882
31883else
31884
31885cat >>confdefs.h <<\_ACEOF
31886#define HAVE_BI_ITERATOR 0
31887_ACEOF
31888
31889fi
31890
31891{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
31892echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
31893if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
31894  echo $ECHO_N "(cached) $ECHO_C" >&6
31895else
31896
31897  ac_ext=cpp
31898ac_cpp='$CXXCPP $CPPFLAGS'
31899ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31900ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31901ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31902
31903  cat >conftest.$ac_ext <<_ACEOF
31904/* confdefs.h.  */
31905_ACEOF
31906cat confdefs.h >>conftest.$ac_ext
31907cat >>conftest.$ac_ext <<_ACEOF
31908/* end confdefs.h.  */
31909#include <iterator>
31910#ifdef HAVE_NAMESPACES
31911using namespace std;
31912#endif
31913int
31914main ()
31915{
31916forward_iterator<int,int> t; return 0;
31917  ;
31918  return 0;
31919}
31920_ACEOF
31921rm -f conftest.$ac_objext
31922if { (ac_try="$ac_compile"
31923case "(($ac_try" in
31924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31925  *) ac_try_echo=$ac_try;;
31926esac
31927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31928  (eval "$ac_compile") 2>conftest.er1
31929  ac_status=$?
31930  grep -v '^ *+' conftest.er1 >conftest.err
31931  rm -f conftest.er1
31932  cat conftest.err >&5
31933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31934  (exit $ac_status); } &&
31935	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31936  { (case "(($ac_try" in
31937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31938  *) ac_try_echo=$ac_try;;
31939esac
31940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31941  (eval "$ac_try") 2>&5
31942  ac_status=$?
31943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31944  (exit $ac_status); }; } &&
31945	 { ac_try='test -s conftest.$ac_objext'
31946  { (case "(($ac_try" in
31947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31948  *) ac_try_echo=$ac_try;;
31949esac
31950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31951  (eval "$ac_try") 2>&5
31952  ac_status=$?
31953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31954  (exit $ac_status); }; }; then
31955  ac_cv_cxx_have_fwd_iterator=yes
31956else
31957  echo "$as_me: failed program was:" >&5
31958sed 's/^/| /' conftest.$ac_ext >&5
31959
31960	ac_cv_cxx_have_fwd_iterator=no
31961fi
31962
31963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31964  ac_ext=c
31965ac_cpp='$CPP $CPPFLAGS'
31966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31968ac_compiler_gnu=$ac_cv_c_compiler_gnu
31969
31970
31971fi
31972{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
31973echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
31974if test "$ac_cv_cxx_have_fwd_iterator" = yes
31975then
31976
31977cat >>confdefs.h <<\_ACEOF
31978#define HAVE_FWD_ITERATOR 1
31979_ACEOF
31980
31981else
31982
31983cat >>confdefs.h <<\_ACEOF
31984#define HAVE_FWD_ITERATOR 0
31985_ACEOF
31986
31987fi
31988
31989
31990{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
31991echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
31992if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
31993  echo $ECHO_N "(cached) $ECHO_C" >&6
31994else
31995  ac_ext=cpp
31996ac_cpp='$CXXCPP $CPPFLAGS'
31997ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31998ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31999ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32000
32001   cat >conftest.$ac_ext <<_ACEOF
32002/* confdefs.h.  */
32003_ACEOF
32004cat confdefs.h >>conftest.$ac_ext
32005cat >>conftest.$ac_ext <<_ACEOF
32006/* end confdefs.h.  */
32007#include <math.h>
32008int
32009main ()
32010{
32011float f; isnan(f);
32012  ;
32013  return 0;
32014}
32015_ACEOF
32016rm -f conftest.$ac_objext
32017if { (ac_try="$ac_compile"
32018case "(($ac_try" in
32019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32020  *) ac_try_echo=$ac_try;;
32021esac
32022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32023  (eval "$ac_compile") 2>conftest.er1
32024  ac_status=$?
32025  grep -v '^ *+' conftest.er1 >conftest.err
32026  rm -f conftest.er1
32027  cat conftest.err >&5
32028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32029  (exit $ac_status); } &&
32030	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32031  { (case "(($ac_try" in
32032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32033  *) ac_try_echo=$ac_try;;
32034esac
32035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32036  (eval "$ac_try") 2>&5
32037  ac_status=$?
32038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32039  (exit $ac_status); }; } &&
32040	 { ac_try='test -s conftest.$ac_objext'
32041  { (case "(($ac_try" in
32042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32043  *) ac_try_echo=$ac_try;;
32044esac
32045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32046  (eval "$ac_try") 2>&5
32047  ac_status=$?
32048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32049  (exit $ac_status); }; }; then
32050  ac_cv_func_isnan_in_math_h=yes
32051else
32052  echo "$as_me: failed program was:" >&5
32053sed 's/^/| /' conftest.$ac_ext >&5
32054
32055	ac_cv_func_isnan_in_math_h=no
32056fi
32057
32058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32059  ac_ext=c
32060ac_cpp='$CPP $CPPFLAGS'
32061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32063ac_compiler_gnu=$ac_cv_c_compiler_gnu
32064
32065fi
32066{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32067echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32068
32069
32070if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32071
32072cat >>confdefs.h <<\_ACEOF
32073#define HAVE_ISNAN_IN_MATH_H 1
32074_ACEOF
32075
32076fi
32077
32078{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32079echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32080if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32081  echo $ECHO_N "(cached) $ECHO_C" >&6
32082else
32083  ac_ext=cpp
32084ac_cpp='$CXXCPP $CPPFLAGS'
32085ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32086ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32087ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32088
32089   cat >conftest.$ac_ext <<_ACEOF
32090/* confdefs.h.  */
32091_ACEOF
32092cat confdefs.h >>conftest.$ac_ext
32093cat >>conftest.$ac_ext <<_ACEOF
32094/* end confdefs.h.  */
32095#include <cmath>
32096int
32097main ()
32098{
32099float f; isnan(f);
32100  ;
32101  return 0;
32102}
32103_ACEOF
32104rm -f conftest.$ac_objext
32105if { (ac_try="$ac_compile"
32106case "(($ac_try" in
32107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32108  *) ac_try_echo=$ac_try;;
32109esac
32110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32111  (eval "$ac_compile") 2>conftest.er1
32112  ac_status=$?
32113  grep -v '^ *+' conftest.er1 >conftest.err
32114  rm -f conftest.er1
32115  cat conftest.err >&5
32116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32117  (exit $ac_status); } &&
32118	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32119  { (case "(($ac_try" in
32120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32121  *) ac_try_echo=$ac_try;;
32122esac
32123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32124  (eval "$ac_try") 2>&5
32125  ac_status=$?
32126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32127  (exit $ac_status); }; } &&
32128	 { ac_try='test -s conftest.$ac_objext'
32129  { (case "(($ac_try" in
32130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32131  *) ac_try_echo=$ac_try;;
32132esac
32133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32134  (eval "$ac_try") 2>&5
32135  ac_status=$?
32136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32137  (exit $ac_status); }; }; then
32138  ac_cv_func_isnan_in_cmath=yes
32139else
32140  echo "$as_me: failed program was:" >&5
32141sed 's/^/| /' conftest.$ac_ext >&5
32142
32143	ac_cv_func_isnan_in_cmath=no
32144fi
32145
32146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32147  ac_ext=c
32148ac_cpp='$CPP $CPPFLAGS'
32149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32151ac_compiler_gnu=$ac_cv_c_compiler_gnu
32152
32153fi
32154{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32155echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32156
32157if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32158
32159cat >>confdefs.h <<\_ACEOF
32160#define HAVE_ISNAN_IN_CMATH 1
32161_ACEOF
32162
32163fi
32164
32165{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32166echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32167if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32168  echo $ECHO_N "(cached) $ECHO_C" >&6
32169else
32170  ac_ext=cpp
32171ac_cpp='$CXXCPP $CPPFLAGS'
32172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32175
32176   cat >conftest.$ac_ext <<_ACEOF
32177/* confdefs.h.  */
32178_ACEOF
32179cat confdefs.h >>conftest.$ac_ext
32180cat >>conftest.$ac_ext <<_ACEOF
32181/* end confdefs.h.  */
32182#include <cmath>
32183int
32184main ()
32185{
32186float f; std::isnan(f);
32187  ;
32188  return 0;
32189}
32190_ACEOF
32191rm -f conftest.$ac_objext
32192if { (ac_try="$ac_compile"
32193case "(($ac_try" in
32194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32195  *) ac_try_echo=$ac_try;;
32196esac
32197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32198  (eval "$ac_compile") 2>conftest.er1
32199  ac_status=$?
32200  grep -v '^ *+' conftest.er1 >conftest.err
32201  rm -f conftest.er1
32202  cat conftest.err >&5
32203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32204  (exit $ac_status); } &&
32205	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32206  { (case "(($ac_try" in
32207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32208  *) ac_try_echo=$ac_try;;
32209esac
32210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32211  (eval "$ac_try") 2>&5
32212  ac_status=$?
32213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32214  (exit $ac_status); }; } &&
32215	 { ac_try='test -s conftest.$ac_objext'
32216  { (case "(($ac_try" in
32217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32218  *) ac_try_echo=$ac_try;;
32219esac
32220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32221  (eval "$ac_try") 2>&5
32222  ac_status=$?
32223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32224  (exit $ac_status); }; }; then
32225  ac_cv_func_std_isnan_in_cmath=yes
32226else
32227  echo "$as_me: failed program was:" >&5
32228sed 's/^/| /' conftest.$ac_ext >&5
32229
32230	ac_cv_func_std_isnan_in_cmath=no
32231fi
32232
32233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32234  ac_ext=c
32235ac_cpp='$CPP $CPPFLAGS'
32236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32238ac_compiler_gnu=$ac_cv_c_compiler_gnu
32239
32240fi
32241{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32242echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32243
32244if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32245
32246cat >>confdefs.h <<\_ACEOF
32247#define HAVE_STD_ISNAN_IN_CMATH 1
32248_ACEOF
32249
32250fi
32251
32252
32253{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32254echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32255if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32256  echo $ECHO_N "(cached) $ECHO_C" >&6
32257else
32258  ac_ext=cpp
32259ac_cpp='$CXXCPP $CPPFLAGS'
32260ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32261ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32262ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32263
32264   cat >conftest.$ac_ext <<_ACEOF
32265/* confdefs.h.  */
32266_ACEOF
32267cat confdefs.h >>conftest.$ac_ext
32268cat >>conftest.$ac_ext <<_ACEOF
32269/* end confdefs.h.  */
32270#include <math.h>
32271int
32272main ()
32273{
32274float f; isinf(f);
32275  ;
32276  return 0;
32277}
32278_ACEOF
32279rm -f conftest.$ac_objext
32280if { (ac_try="$ac_compile"
32281case "(($ac_try" in
32282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32283  *) ac_try_echo=$ac_try;;
32284esac
32285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32286  (eval "$ac_compile") 2>conftest.er1
32287  ac_status=$?
32288  grep -v '^ *+' conftest.er1 >conftest.err
32289  rm -f conftest.er1
32290  cat conftest.err >&5
32291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32292  (exit $ac_status); } &&
32293	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32294  { (case "(($ac_try" in
32295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32296  *) ac_try_echo=$ac_try;;
32297esac
32298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32299  (eval "$ac_try") 2>&5
32300  ac_status=$?
32301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32302  (exit $ac_status); }; } &&
32303	 { ac_try='test -s conftest.$ac_objext'
32304  { (case "(($ac_try" in
32305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32306  *) ac_try_echo=$ac_try;;
32307esac
32308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32309  (eval "$ac_try") 2>&5
32310  ac_status=$?
32311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312  (exit $ac_status); }; }; then
32313  ac_cv_func_isinf_in_math_h=yes
32314else
32315  echo "$as_me: failed program was:" >&5
32316sed 's/^/| /' conftest.$ac_ext >&5
32317
32318	ac_cv_func_isinf_in_math_h=no
32319fi
32320
32321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32322  ac_ext=c
32323ac_cpp='$CPP $CPPFLAGS'
32324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32326ac_compiler_gnu=$ac_cv_c_compiler_gnu
32327
32328fi
32329{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32330echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32331
32332if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32333
32334cat >>confdefs.h <<\_ACEOF
32335#define HAVE_ISINF_IN_MATH_H 1
32336_ACEOF
32337
32338fi
32339
32340{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32341echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32342if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32343  echo $ECHO_N "(cached) $ECHO_C" >&6
32344else
32345  ac_ext=cpp
32346ac_cpp='$CXXCPP $CPPFLAGS'
32347ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32348ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32349ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32350
32351   cat >conftest.$ac_ext <<_ACEOF
32352/* confdefs.h.  */
32353_ACEOF
32354cat confdefs.h >>conftest.$ac_ext
32355cat >>conftest.$ac_ext <<_ACEOF
32356/* end confdefs.h.  */
32357#include <cmath>
32358int
32359main ()
32360{
32361float f; isinf(f);
32362  ;
32363  return 0;
32364}
32365_ACEOF
32366rm -f conftest.$ac_objext
32367if { (ac_try="$ac_compile"
32368case "(($ac_try" in
32369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32370  *) ac_try_echo=$ac_try;;
32371esac
32372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32373  (eval "$ac_compile") 2>conftest.er1
32374  ac_status=$?
32375  grep -v '^ *+' conftest.er1 >conftest.err
32376  rm -f conftest.er1
32377  cat conftest.err >&5
32378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32379  (exit $ac_status); } &&
32380	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32381  { (case "(($ac_try" in
32382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32383  *) ac_try_echo=$ac_try;;
32384esac
32385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32386  (eval "$ac_try") 2>&5
32387  ac_status=$?
32388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32389  (exit $ac_status); }; } &&
32390	 { ac_try='test -s conftest.$ac_objext'
32391  { (case "(($ac_try" in
32392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32393  *) ac_try_echo=$ac_try;;
32394esac
32395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32396  (eval "$ac_try") 2>&5
32397  ac_status=$?
32398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32399  (exit $ac_status); }; }; then
32400  ac_cv_func_isinf_in_cmath=yes
32401else
32402  echo "$as_me: failed program was:" >&5
32403sed 's/^/| /' conftest.$ac_ext >&5
32404
32405	ac_cv_func_isinf_in_cmath=no
32406fi
32407
32408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32409  ac_ext=c
32410ac_cpp='$CPP $CPPFLAGS'
32411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32413ac_compiler_gnu=$ac_cv_c_compiler_gnu
32414
32415fi
32416{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32417echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32418
32419if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32420
32421cat >>confdefs.h <<\_ACEOF
32422#define HAVE_ISINF_IN_CMATH 1
32423_ACEOF
32424
32425fi
32426
32427{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32428echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32429if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32430  echo $ECHO_N "(cached) $ECHO_C" >&6
32431else
32432  ac_ext=cpp
32433ac_cpp='$CXXCPP $CPPFLAGS'
32434ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32435ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32436ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32437
32438   cat >conftest.$ac_ext <<_ACEOF
32439/* confdefs.h.  */
32440_ACEOF
32441cat confdefs.h >>conftest.$ac_ext
32442cat >>conftest.$ac_ext <<_ACEOF
32443/* end confdefs.h.  */
32444#include <cmath>
32445int
32446main ()
32447{
32448float f; std::isinf(f)}
32449  ;
32450  return 0;
32451}
32452_ACEOF
32453rm -f conftest.$ac_objext
32454if { (ac_try="$ac_compile"
32455case "(($ac_try" in
32456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32457  *) ac_try_echo=$ac_try;;
32458esac
32459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32460  (eval "$ac_compile") 2>conftest.er1
32461  ac_status=$?
32462  grep -v '^ *+' conftest.er1 >conftest.err
32463  rm -f conftest.er1
32464  cat conftest.err >&5
32465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32466  (exit $ac_status); } &&
32467	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32468  { (case "(($ac_try" in
32469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32470  *) ac_try_echo=$ac_try;;
32471esac
32472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32473  (eval "$ac_try") 2>&5
32474  ac_status=$?
32475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32476  (exit $ac_status); }; } &&
32477	 { ac_try='test -s conftest.$ac_objext'
32478  { (case "(($ac_try" in
32479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32480  *) ac_try_echo=$ac_try;;
32481esac
32482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32483  (eval "$ac_try") 2>&5
32484  ac_status=$?
32485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32486  (exit $ac_status); }; }; then
32487  ac_cv_func_std_isinf_in_cmath=yes
32488else
32489  echo "$as_me: failed program was:" >&5
32490sed 's/^/| /' conftest.$ac_ext >&5
32491
32492	ac_cv_func_std_isinf_in_cmath=no
32493fi
32494
32495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32496  ac_ext=c
32497ac_cpp='$CPP $CPPFLAGS'
32498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32500ac_compiler_gnu=$ac_cv_c_compiler_gnu
32501
32502fi
32503{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32504echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32505
32506if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32507
32508cat >>confdefs.h <<\_ACEOF
32509#define HAVE_STD_ISINF_IN_CMATH 1
32510_ACEOF
32511
32512fi
32513
32514{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32515echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32516if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32517  echo $ECHO_N "(cached) $ECHO_C" >&6
32518else
32519  ac_ext=cpp
32520ac_cpp='$CXXCPP $CPPFLAGS'
32521ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32522ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32523ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32524
32525   cat >conftest.$ac_ext <<_ACEOF
32526/* confdefs.h.  */
32527_ACEOF
32528cat confdefs.h >>conftest.$ac_ext
32529cat >>conftest.$ac_ext <<_ACEOF
32530/* end confdefs.h.  */
32531#include <ieeefp.h>
32532int
32533main ()
32534{
32535float f; finite(f);
32536  ;
32537  return 0;
32538}
32539_ACEOF
32540rm -f conftest.$ac_objext
32541if { (ac_try="$ac_compile"
32542case "(($ac_try" in
32543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32544  *) ac_try_echo=$ac_try;;
32545esac
32546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32547  (eval "$ac_compile") 2>conftest.er1
32548  ac_status=$?
32549  grep -v '^ *+' conftest.er1 >conftest.err
32550  rm -f conftest.er1
32551  cat conftest.err >&5
32552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32553  (exit $ac_status); } &&
32554	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32555  { (case "(($ac_try" in
32556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32557  *) ac_try_echo=$ac_try;;
32558esac
32559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32560  (eval "$ac_try") 2>&5
32561  ac_status=$?
32562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32563  (exit $ac_status); }; } &&
32564	 { ac_try='test -s conftest.$ac_objext'
32565  { (case "(($ac_try" in
32566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32567  *) ac_try_echo=$ac_try;;
32568esac
32569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32570  (eval "$ac_try") 2>&5
32571  ac_status=$?
32572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32573  (exit $ac_status); }; }; then
32574  ac_cv_func_finite_in_ieeefp_h=yes
32575else
32576  echo "$as_me: failed program was:" >&5
32577sed 's/^/| /' conftest.$ac_ext >&5
32578
32579	ac_cv_func_finite_in_ieeefp_h=no
32580fi
32581
32582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32583  ac_ext=c
32584ac_cpp='$CPP $CPPFLAGS'
32585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32587ac_compiler_gnu=$ac_cv_c_compiler_gnu
32588
32589fi
32590{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32591echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
32592
32593if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
32594
32595cat >>confdefs.h <<\_ACEOF
32596#define HAVE_FINITE_IN_IEEEFP_H 1
32597_ACEOF
32598
32599fi
32600
32601
32602
32603
32604
32605for ac_header in stdlib.h unistd.h
32606do
32607as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32608if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32609  { echo "$as_me:$LINENO: checking for $ac_header" >&5
32610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32611if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32612  echo $ECHO_N "(cached) $ECHO_C" >&6
32613fi
32614ac_res=`eval echo '${'$as_ac_Header'}'`
32615	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32616echo "${ECHO_T}$ac_res" >&6; }
32617else
32618  # Is the header compilable?
32619{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32620echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32621cat >conftest.$ac_ext <<_ACEOF
32622/* confdefs.h.  */
32623_ACEOF
32624cat confdefs.h >>conftest.$ac_ext
32625cat >>conftest.$ac_ext <<_ACEOF
32626/* end confdefs.h.  */
32627$ac_includes_default
32628#include <$ac_header>
32629_ACEOF
32630rm -f conftest.$ac_objext
32631if { (ac_try="$ac_compile"
32632case "(($ac_try" in
32633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32634  *) ac_try_echo=$ac_try;;
32635esac
32636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32637  (eval "$ac_compile") 2>conftest.er1
32638  ac_status=$?
32639  grep -v '^ *+' conftest.er1 >conftest.err
32640  rm -f conftest.er1
32641  cat conftest.err >&5
32642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32643  (exit $ac_status); } &&
32644	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32645  { (case "(($ac_try" in
32646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32647  *) ac_try_echo=$ac_try;;
32648esac
32649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32650  (eval "$ac_try") 2>&5
32651  ac_status=$?
32652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32653  (exit $ac_status); }; } &&
32654	 { ac_try='test -s conftest.$ac_objext'
32655  { (case "(($ac_try" in
32656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32657  *) ac_try_echo=$ac_try;;
32658esac
32659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32660  (eval "$ac_try") 2>&5
32661  ac_status=$?
32662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32663  (exit $ac_status); }; }; then
32664  ac_header_compiler=yes
32665else
32666  echo "$as_me: failed program was:" >&5
32667sed 's/^/| /' conftest.$ac_ext >&5
32668
32669	ac_header_compiler=no
32670fi
32671
32672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32673{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32674echo "${ECHO_T}$ac_header_compiler" >&6; }
32675
32676# Is the header present?
32677{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
32678echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32679cat >conftest.$ac_ext <<_ACEOF
32680/* confdefs.h.  */
32681_ACEOF
32682cat confdefs.h >>conftest.$ac_ext
32683cat >>conftest.$ac_ext <<_ACEOF
32684/* end confdefs.h.  */
32685#include <$ac_header>
32686_ACEOF
32687if { (ac_try="$ac_cpp conftest.$ac_ext"
32688case "(($ac_try" in
32689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32690  *) ac_try_echo=$ac_try;;
32691esac
32692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32693  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32694  ac_status=$?
32695  grep -v '^ *+' conftest.er1 >conftest.err
32696  rm -f conftest.er1
32697  cat conftest.err >&5
32698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32699  (exit $ac_status); } >/dev/null; then
32700  if test -s conftest.err; then
32701    ac_cpp_err=$ac_c_preproc_warn_flag
32702    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32703  else
32704    ac_cpp_err=
32705  fi
32706else
32707  ac_cpp_err=yes
32708fi
32709if test -z "$ac_cpp_err"; then
32710  ac_header_preproc=yes
32711else
32712  echo "$as_me: failed program was:" >&5
32713sed 's/^/| /' conftest.$ac_ext >&5
32714
32715  ac_header_preproc=no
32716fi
32717
32718rm -f conftest.err conftest.$ac_ext
32719{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32720echo "${ECHO_T}$ac_header_preproc" >&6; }
32721
32722# So?  What about this header?
32723case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32724  yes:no: )
32725    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32726echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32727    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32728echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32729    ac_header_preproc=yes
32730    ;;
32731  no:yes:* )
32732    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32733echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32734    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32735echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32736    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32737echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32738    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32739echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32740    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32741echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32742    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32743echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32744    ( cat <<\_ASBOX
32745## ----------------------------------- ##
32746## Report this to llvmbugs@cs.uiuc.edu ##
32747## ----------------------------------- ##
32748_ASBOX
32749     ) | sed "s/^/$as_me: WARNING:     /" >&2
32750    ;;
32751esac
32752{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32753echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32754if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32755  echo $ECHO_N "(cached) $ECHO_C" >&6
32756else
32757  eval "$as_ac_Header=\$ac_header_preproc"
32758fi
32759ac_res=`eval echo '${'$as_ac_Header'}'`
32760	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32761echo "${ECHO_T}$ac_res" >&6; }
32762
32763fi
32764if test `eval echo '${'$as_ac_Header'}'` = yes; then
32765  cat >>confdefs.h <<_ACEOF
32766#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32767_ACEOF
32768
32769fi
32770
32771done
32772
32773
32774for ac_func in getpagesize
32775do
32776as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32777{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32778echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32779if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32780  echo $ECHO_N "(cached) $ECHO_C" >&6
32781else
32782  cat >conftest.$ac_ext <<_ACEOF
32783/* confdefs.h.  */
32784_ACEOF
32785cat confdefs.h >>conftest.$ac_ext
32786cat >>conftest.$ac_ext <<_ACEOF
32787/* end confdefs.h.  */
32788/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32789   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32790#define $ac_func innocuous_$ac_func
32791
32792/* System header to define __stub macros and hopefully few prototypes,
32793    which can conflict with char $ac_func (); below.
32794    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32795    <limits.h> exists even on freestanding compilers.  */
32796
32797#ifdef __STDC__
32798# include <limits.h>
32799#else
32800# include <assert.h>
32801#endif
32802
32803#undef $ac_func
32804
32805/* Override any GCC internal prototype to avoid an error.
32806   Use char because int might match the return type of a GCC
32807   builtin and then its argument prototype would still apply.  */
32808#ifdef __cplusplus
32809extern "C"
32810#endif
32811char $ac_func ();
32812/* The GNU C library defines this for functions which it implements
32813    to always fail with ENOSYS.  Some functions are actually named
32814    something starting with __ and the normal name is an alias.  */
32815#if defined __stub_$ac_func || defined __stub___$ac_func
32816choke me
32817#endif
32818
32819int
32820main ()
32821{
32822return $ac_func ();
32823  ;
32824  return 0;
32825}
32826_ACEOF
32827rm -f conftest.$ac_objext conftest$ac_exeext
32828if { (ac_try="$ac_link"
32829case "(($ac_try" in
32830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32831  *) ac_try_echo=$ac_try;;
32832esac
32833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32834  (eval "$ac_link") 2>conftest.er1
32835  ac_status=$?
32836  grep -v '^ *+' conftest.er1 >conftest.err
32837  rm -f conftest.er1
32838  cat conftest.err >&5
32839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32840  (exit $ac_status); } &&
32841	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32842  { (case "(($ac_try" in
32843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32844  *) ac_try_echo=$ac_try;;
32845esac
32846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32847  (eval "$ac_try") 2>&5
32848  ac_status=$?
32849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32850  (exit $ac_status); }; } &&
32851	 { ac_try='test -s conftest$ac_exeext'
32852  { (case "(($ac_try" in
32853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32854  *) ac_try_echo=$ac_try;;
32855esac
32856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32857  (eval "$ac_try") 2>&5
32858  ac_status=$?
32859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32860  (exit $ac_status); }; }; then
32861  eval "$as_ac_var=yes"
32862else
32863  echo "$as_me: failed program was:" >&5
32864sed 's/^/| /' conftest.$ac_ext >&5
32865
32866	eval "$as_ac_var=no"
32867fi
32868
32869rm -f core conftest.err conftest.$ac_objext \
32870      conftest$ac_exeext conftest.$ac_ext
32871fi
32872ac_res=`eval echo '${'$as_ac_var'}'`
32873	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32874echo "${ECHO_T}$ac_res" >&6; }
32875if test `eval echo '${'$as_ac_var'}'` = yes; then
32876  cat >>confdefs.h <<_ACEOF
32877#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32878_ACEOF
32879
32880fi
32881done
32882
32883{ echo "$as_me:$LINENO: checking for working mmap" >&5
32884echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
32885if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
32886  echo $ECHO_N "(cached) $ECHO_C" >&6
32887else
32888  if test "$cross_compiling" = yes; then
32889  ac_cv_func_mmap_fixed_mapped=no
32890else
32891  cat >conftest.$ac_ext <<_ACEOF
32892/* confdefs.h.  */
32893_ACEOF
32894cat confdefs.h >>conftest.$ac_ext
32895cat >>conftest.$ac_ext <<_ACEOF
32896/* end confdefs.h.  */
32897$ac_includes_default
32898/* malloc might have been renamed as rpl_malloc. */
32899#undef malloc
32900
32901/* Thanks to Mike Haertel and Jim Avera for this test.
32902   Here is a matrix of mmap possibilities:
32903	mmap private not fixed
32904	mmap private fixed at somewhere currently unmapped
32905	mmap private fixed at somewhere already mapped
32906	mmap shared not fixed
32907	mmap shared fixed at somewhere currently unmapped
32908	mmap shared fixed at somewhere already mapped
32909   For private mappings, we should verify that changes cannot be read()
32910   back from the file, nor mmap's back from the file at a different
32911   address.  (There have been systems where private was not correctly
32912   implemented like the infamous i386 svr4.0, and systems where the
32913   VM page cache was not coherent with the file system buffer cache
32914   like early versions of FreeBSD and possibly contemporary NetBSD.)
32915   For shared mappings, we should conversely verify that changes get
32916   propagated back to all the places they're supposed to be.
32917
32918   Grep wants private fixed already mapped.
32919   The main things grep needs to know about mmap are:
32920   * does it exist and is it safe to write into the mmap'd area
32921   * how to use it (BSD variants)  */
32922
32923#include <fcntl.h>
32924#include <sys/mman.h>
32925
32926#if !STDC_HEADERS && !HAVE_STDLIB_H
32927char *malloc ();
32928#endif
32929
32930/* This mess was copied from the GNU getpagesize.h.  */
32931#if !HAVE_GETPAGESIZE
32932/* Assume that all systems that can run configure have sys/param.h.  */
32933# if !HAVE_SYS_PARAM_H
32934#  define HAVE_SYS_PARAM_H 1
32935# endif
32936
32937# ifdef _SC_PAGESIZE
32938#  define getpagesize() sysconf(_SC_PAGESIZE)
32939# else /* no _SC_PAGESIZE */
32940#  if HAVE_SYS_PARAM_H
32941#   include <sys/param.h>
32942#   ifdef EXEC_PAGESIZE
32943#    define getpagesize() EXEC_PAGESIZE
32944#   else /* no EXEC_PAGESIZE */
32945#    ifdef NBPG
32946#     define getpagesize() NBPG * CLSIZE
32947#     ifndef CLSIZE
32948#      define CLSIZE 1
32949#     endif /* no CLSIZE */
32950#    else /* no NBPG */
32951#     ifdef NBPC
32952#      define getpagesize() NBPC
32953#     else /* no NBPC */
32954#      ifdef PAGESIZE
32955#       define getpagesize() PAGESIZE
32956#      endif /* PAGESIZE */
32957#     endif /* no NBPC */
32958#    endif /* no NBPG */
32959#   endif /* no EXEC_PAGESIZE */
32960#  else /* no HAVE_SYS_PARAM_H */
32961#   define getpagesize() 8192	/* punt totally */
32962#  endif /* no HAVE_SYS_PARAM_H */
32963# endif /* no _SC_PAGESIZE */
32964
32965#endif /* no HAVE_GETPAGESIZE */
32966
32967int
32968main ()
32969{
32970  char *data, *data2, *data3;
32971  int i, pagesize;
32972  int fd;
32973
32974  pagesize = getpagesize ();
32975
32976  /* First, make a file with some known garbage in it. */
32977  data = (char *) malloc (pagesize);
32978  if (!data)
32979    return 1;
32980  for (i = 0; i < pagesize; ++i)
32981    *(data + i) = rand ();
32982  umask (0);
32983  fd = creat ("conftest.mmap", 0600);
32984  if (fd < 0)
32985    return 1;
32986  if (write (fd, data, pagesize) != pagesize)
32987    return 1;
32988  close (fd);
32989
32990  /* Next, try to mmap the file at a fixed address which already has
32991     something else allocated at it.  If we can, also make sure that
32992     we see the same garbage.  */
32993  fd = open ("conftest.mmap", O_RDWR);
32994  if (fd < 0)
32995    return 1;
32996  data2 = (char *) malloc (2 * pagesize);
32997  if (!data2)
32998    return 1;
32999  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33000  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33001		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
33002    return 1;
33003  for (i = 0; i < pagesize; ++i)
33004    if (*(data + i) != *(data2 + i))
33005      return 1;
33006
33007  /* Finally, make sure that changes to the mapped area do not
33008     percolate back to the file as seen by read().  (This is a bug on
33009     some variants of i386 svr4.0.)  */
33010  for (i = 0; i < pagesize; ++i)
33011    *(data2 + i) = *(data2 + i) + 1;
33012  data3 = (char *) malloc (pagesize);
33013  if (!data3)
33014    return 1;
33015  if (read (fd, data3, pagesize) != pagesize)
33016    return 1;
33017  for (i = 0; i < pagesize; ++i)
33018    if (*(data + i) != *(data3 + i))
33019      return 1;
33020  close (fd);
33021  return 0;
33022}
33023_ACEOF
33024rm -f conftest$ac_exeext
33025if { (ac_try="$ac_link"
33026case "(($ac_try" in
33027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33028  *) ac_try_echo=$ac_try;;
33029esac
33030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33031  (eval "$ac_link") 2>&5
33032  ac_status=$?
33033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33034  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33035  { (case "(($ac_try" in
33036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33037  *) ac_try_echo=$ac_try;;
33038esac
33039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33040  (eval "$ac_try") 2>&5
33041  ac_status=$?
33042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33043  (exit $ac_status); }; }; then
33044  ac_cv_func_mmap_fixed_mapped=yes
33045else
33046  echo "$as_me: program exited with status $ac_status" >&5
33047echo "$as_me: failed program was:" >&5
33048sed 's/^/| /' conftest.$ac_ext >&5
33049
33050( exit $ac_status )
33051ac_cv_func_mmap_fixed_mapped=no
33052fi
33053rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33054fi
33055
33056
33057fi
33058{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33059echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33060if test $ac_cv_func_mmap_fixed_mapped = yes; then
33061
33062cat >>confdefs.h <<\_ACEOF
33063#define HAVE_MMAP 1
33064_ACEOF
33065
33066fi
33067rm -f conftest.mmap
33068
33069{ echo "$as_me:$LINENO: checking for mmap of files" >&5
33070echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33071if test "${ac_cv_func_mmap_file+set}" = set; then
33072  echo $ECHO_N "(cached) $ECHO_C" >&6
33073else
33074   ac_ext=c
33075ac_cpp='$CPP $CPPFLAGS'
33076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33078ac_compiler_gnu=$ac_cv_c_compiler_gnu
33079
33080  if test "$cross_compiling" = yes; then
33081  ac_cv_func_mmap_file=no
33082else
33083  cat >conftest.$ac_ext <<_ACEOF
33084
33085    /* confdefs.h.  */
33086_ACEOF
33087cat confdefs.h >>conftest.$ac_ext
33088cat >>conftest.$ac_ext <<_ACEOF
33089/* end confdefs.h.  */
33090
33091#include <sys/types.h>
33092#include <sys/mman.h>
33093#include <fcntl.h>
33094
33095int
33096main ()
33097{
33098
33099  int fd;
33100  fd = creat ("foo",0777);
33101  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33102  unlink ("foo");
33103  return (fd != (int) MAP_FAILED);
33104  ;
33105  return 0;
33106}
33107_ACEOF
33108rm -f conftest$ac_exeext
33109if { (ac_try="$ac_link"
33110case "(($ac_try" in
33111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33112  *) ac_try_echo=$ac_try;;
33113esac
33114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33115  (eval "$ac_link") 2>&5
33116  ac_status=$?
33117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33118  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33119  { (case "(($ac_try" in
33120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33121  *) ac_try_echo=$ac_try;;
33122esac
33123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33124  (eval "$ac_try") 2>&5
33125  ac_status=$?
33126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33127  (exit $ac_status); }; }; then
33128  ac_cv_func_mmap_file=yes
33129else
33130  echo "$as_me: program exited with status $ac_status" >&5
33131echo "$as_me: failed program was:" >&5
33132sed 's/^/| /' conftest.$ac_ext >&5
33133
33134( exit $ac_status )
33135ac_cv_func_mmap_file=no
33136fi
33137rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33138fi
33139
33140
33141  ac_ext=c
33142ac_cpp='$CPP $CPPFLAGS'
33143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33145ac_compiler_gnu=$ac_cv_c_compiler_gnu
33146
33147
33148fi
33149{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33150echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33151if test "$ac_cv_func_mmap_file" = yes; then
33152
33153cat >>confdefs.h <<\_ACEOF
33154#define HAVE_MMAP_FILE
33155_ACEOF
33156
33157   MMAP_FILE=yes
33158
33159fi
33160
33161{ echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33162echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33163if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33164  echo $ECHO_N "(cached) $ECHO_C" >&6
33165else
33166  if test "$llvm_cv_os_type" = "Interix" ; then
33167   ac_cv_need_dev_zero_for_mmap=yes
33168 else
33169   ac_cv_need_dev_zero_for_mmap=no
33170 fi
33171
33172fi
33173{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33174echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33175if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33176
33177cat >>confdefs.h <<\_ACEOF
33178#define NEED_DEV_ZERO_FOR_MMAP 1
33179_ACEOF
33180
33181fi
33182{ echo "$as_me:$LINENO: checking for mprotect" >&5
33183echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; }
33184if test "${ac_cv_func_mprotect+set}" = set; then
33185  echo $ECHO_N "(cached) $ECHO_C" >&6
33186else
33187  cat >conftest.$ac_ext <<_ACEOF
33188/* confdefs.h.  */
33189_ACEOF
33190cat confdefs.h >>conftest.$ac_ext
33191cat >>conftest.$ac_ext <<_ACEOF
33192/* end confdefs.h.  */
33193/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
33194   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33195#define mprotect innocuous_mprotect
33196
33197/* System header to define __stub macros and hopefully few prototypes,
33198    which can conflict with char mprotect (); below.
33199    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33200    <limits.h> exists even on freestanding compilers.  */
33201
33202#ifdef __STDC__
33203# include <limits.h>
33204#else
33205# include <assert.h>
33206#endif
33207
33208#undef mprotect
33209
33210/* Override any GCC internal prototype to avoid an error.
33211   Use char because int might match the return type of a GCC
33212   builtin and then its argument prototype would still apply.  */
33213#ifdef __cplusplus
33214extern "C"
33215#endif
33216char mprotect ();
33217/* The GNU C library defines this for functions which it implements
33218    to always fail with ENOSYS.  Some functions are actually named
33219    something starting with __ and the normal name is an alias.  */
33220#if defined __stub_mprotect || defined __stub___mprotect
33221choke me
33222#endif
33223
33224int
33225main ()
33226{
33227return mprotect ();
33228  ;
33229  return 0;
33230}
33231_ACEOF
33232rm -f conftest.$ac_objext conftest$ac_exeext
33233if { (ac_try="$ac_link"
33234case "(($ac_try" in
33235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33236  *) ac_try_echo=$ac_try;;
33237esac
33238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33239  (eval "$ac_link") 2>conftest.er1
33240  ac_status=$?
33241  grep -v '^ *+' conftest.er1 >conftest.err
33242  rm -f conftest.er1
33243  cat conftest.err >&5
33244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33245  (exit $ac_status); } &&
33246	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33247  { (case "(($ac_try" in
33248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33249  *) ac_try_echo=$ac_try;;
33250esac
33251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33252  (eval "$ac_try") 2>&5
33253  ac_status=$?
33254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33255  (exit $ac_status); }; } &&
33256	 { ac_try='test -s conftest$ac_exeext'
33257  { (case "(($ac_try" in
33258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33259  *) ac_try_echo=$ac_try;;
33260esac
33261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33262  (eval "$ac_try") 2>&5
33263  ac_status=$?
33264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33265  (exit $ac_status); }; }; then
33266  ac_cv_func_mprotect=yes
33267else
33268  echo "$as_me: failed program was:" >&5
33269sed 's/^/| /' conftest.$ac_ext >&5
33270
33271	ac_cv_func_mprotect=no
33272fi
33273
33274rm -f core conftest.err conftest.$ac_objext \
33275      conftest$ac_exeext conftest.$ac_ext
33276fi
33277{ echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
33278echo "${ECHO_T}$ac_cv_func_mprotect" >&6; }
33279if test $ac_cv_func_mprotect = yes; then
33280  :
33281else
33282  { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
33283echo "$as_me: error: Function mprotect() required but not found" >&2;}
33284   { (exit 1); exit 1; }; }
33285fi
33286
33287
33288if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33289then
33290  { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33291echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33292fi
33293if test "$ac_cv_func_mmap_file" = "no"
33294then
33295  { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33296echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33297fi
33298
33299
33300{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33301echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33302if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33303  echo $ECHO_N "(cached) $ECHO_C" >&6
33304else
33305  llvm_cv_llvmgcc_sanity="no"
33306if test -x "$LLVMGCC" ; then
33307  cp /dev/null conftest.c
33308  "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
33309  if test $? -eq 0 ; then
33310    llvm_cv_llvmgcc_sanity="yes"
33311  fi
33312  rm conftest.c
33313fi
33314fi
33315{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33316echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33317
33318if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33319  llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33320  LLVMCC1=$llvmcc1path
33321
33322  llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33323  LLVMCC1PLUS=$llvmcc1pluspath
33324
33325  llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33326  LLVMGCCDIR=$llvmgccdir
33327
33328  llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33329  llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33330  LLVMGCC_VERSION=$llvmgccversion
33331
33332  LLVMGCC_MAJVERS=$llvmgccmajvers
33333
33334fi
33335
33336SHLIBEXT=$libltdl_cv_shlibext
33337
33338
33339# Translate the various configuration directories and other basic
33340# information into substitutions that will end up in Makefile.config.in
33341# that these configured values can be used by the makefiles
33342if test "${prefix}" == "NONE" ; then
33343  prefix="/usr/local"
33344fi
33345eval LLVM_PREFIX="${prefix}";
33346eval LLVM_BINDIR="${prefix}/bin";
33347eval LLVM_LIBDIR="${prefix}/lib";
33348eval LLVM_DATADIR="${prefix}/share/llvm";
33349eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33350eval LLVM_ETCDIR="${prefix}/etc/llvm";
33351eval LLVM_INCLUDEDIR="${prefix}/include";
33352eval LLVM_INFODIR="${prefix}/info";
33353eval LLVM_MANDIR="${prefix}/man";
33354LLVM_CONFIGTIME=`date`
33355
33356
33357
33358
33359
33360
33361
33362
33363
33364
33365
33366# Place the various directores into the config.h file as #defines so that we
33367# can know about the installation paths within LLVM.
33368
33369cat >>confdefs.h <<_ACEOF
33370#define LLVM_PREFIX "$LLVM_PREFIX"
33371_ACEOF
33372
33373
33374cat >>confdefs.h <<_ACEOF
33375#define LLVM_BINDIR "$LLVM_BINDIR"
33376_ACEOF
33377
33378
33379cat >>confdefs.h <<_ACEOF
33380#define LLVM_LIBDIR "$LLVM_LIBDIR"
33381_ACEOF
33382
33383
33384cat >>confdefs.h <<_ACEOF
33385#define LLVM_DATADIR "$LLVM_DATADIR"
33386_ACEOF
33387
33388
33389cat >>confdefs.h <<_ACEOF
33390#define LLVM_DATADIR "$LLVM_DOCSDIR"
33391_ACEOF
33392
33393
33394cat >>confdefs.h <<_ACEOF
33395#define LLVM_ETCDIR "$LLVM_ETCDIR"
33396_ACEOF
33397
33398
33399cat >>confdefs.h <<_ACEOF
33400#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33401_ACEOF
33402
33403
33404cat >>confdefs.h <<_ACEOF
33405#define LLVM_INFODIR "$LLVM_INFODIR"
33406_ACEOF
33407
33408
33409cat >>confdefs.h <<_ACEOF
33410#define LLVM_MANDIR "$LLVM_MANDIR"
33411_ACEOF
33412
33413
33414cat >>confdefs.h <<_ACEOF
33415#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33416_ACEOF
33417
33418
33419
33420ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
33421
33422ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
33423
33424ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
33425
33426ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
33427
33428ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
33429
33430
33431ac_config_files="$ac_config_files Makefile.config"
33432
33433
33434ac_config_files="$ac_config_files llvm.spec"
33435
33436
33437ac_config_files="$ac_config_files docs/doxygen.cfg"
33438
33439
33440ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
33441
33442
33443ac_config_commands="$ac_config_commands setup"
33444
33445ac_config_commands="$ac_config_commands Makefile"
33446
33447
33448ac_config_commands="$ac_config_commands Makefile.common"
33449
33450
33451ac_config_commands="$ac_config_commands examples/Makefile"
33452
33453
33454ac_config_commands="$ac_config_commands lib/Makefile"
33455
33456
33457ac_config_commands="$ac_config_commands runtime/Makefile"
33458
33459
33460ac_config_commands="$ac_config_commands test/Makefile"
33461
33462
33463ac_config_commands="$ac_config_commands test/Makefile.tests"
33464
33465
33466ac_config_commands="$ac_config_commands tools/Makefile"
33467
33468
33469ac_config_commands="$ac_config_commands utils/Makefile"
33470
33471
33472ac_config_commands="$ac_config_commands projects/Makefile"
33473
33474
33475
33476cat >confcache <<\_ACEOF
33477# This file is a shell script that caches the results of configure
33478# tests run on this system so they can be shared between configure
33479# scripts and configure runs, see configure's option --config-cache.
33480# It is not useful on other systems.  If it contains results you don't
33481# want to keep, you may remove or edit it.
33482#
33483# config.status only pays attention to the cache file if you give it
33484# the --recheck option to rerun configure.
33485#
33486# `ac_cv_env_foo' variables (set or unset) will be overridden when
33487# loading this file, other *unset* `ac_cv_foo' will be assigned the
33488# following values.
33489
33490_ACEOF
33491
33492# The following way of writing the cache mishandles newlines in values,
33493# but we know of no workaround that is simple, portable, and efficient.
33494# So, we kill variables containing newlines.
33495# Ultrix sh set writes to stderr and can't be redirected directly,
33496# and sets the high bit in the cache file unless we assign to the vars.
33497(
33498  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33499    eval ac_val=\$$ac_var
33500    case $ac_val in #(
33501    *${as_nl}*)
33502      case $ac_var in #(
33503      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33504echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33505      esac
33506      case $ac_var in #(
33507      _ | IFS | as_nl) ;; #(
33508      *) $as_unset $ac_var ;;
33509      esac ;;
33510    esac
33511  done
33512
33513  (set) 2>&1 |
33514    case $as_nl`(ac_space=' '; set) 2>&1` in #(
33515    *${as_nl}ac_space=\ *)
33516      # `set' does not quote correctly, so add quotes (double-quote
33517      # substitution turns \\\\ into \\, and sed turns \\ into \).
33518      sed -n \
33519	"s/'/'\\\\''/g;
33520	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33521      ;; #(
33522    *)
33523      # `set' quotes correctly as required by POSIX, so do not add quotes.
33524      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33525      ;;
33526    esac |
33527    sort
33528) |
33529  sed '
33530     /^ac_cv_env_/b end
33531     t clear
33532     :clear
33533     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33534     t end
33535     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33536     :end' >>confcache
33537if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33538  if test -w "$cache_file"; then
33539    test "x$cache_file" != "x/dev/null" &&
33540      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33541echo "$as_me: updating cache $cache_file" >&6;}
33542    cat confcache >$cache_file
33543  else
33544    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33545echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33546  fi
33547fi
33548rm -f confcache
33549
33550test "x$prefix" = xNONE && prefix=$ac_default_prefix
33551# Let make expand exec_prefix.
33552test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33553
33554DEFS=-DHAVE_CONFIG_H
33555
33556ac_libobjs=
33557ac_ltlibobjs=
33558for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33559  # 1. Remove the extension, and $U if already installed.
33560  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33561  ac_i=`echo "$ac_i" | sed "$ac_script"`
33562  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
33563  #    will be set to the directory where LIBOBJS objects are built.
33564  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33565  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33566done
33567LIBOBJS=$ac_libobjs
33568
33569LTLIBOBJS=$ac_ltlibobjs
33570
33571
33572if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33573  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33574Usually this means the macro was only invoked conditionally." >&5
33575echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33576Usually this means the macro was only invoked conditionally." >&2;}
33577   { (exit 1); exit 1; }; }
33578fi
33579if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33580  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33581Usually this means the macro was only invoked conditionally." >&5
33582echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33583Usually this means the macro was only invoked conditionally." >&2;}
33584   { (exit 1); exit 1; }; }
33585fi
33586
33587: ${CONFIG_STATUS=./config.status}
33588ac_clean_files_save=$ac_clean_files
33589ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33590{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33591echo "$as_me: creating $CONFIG_STATUS" >&6;}
33592cat >$CONFIG_STATUS <<_ACEOF
33593#! $SHELL
33594# Generated by $as_me.
33595# Run this file to recreate the current configuration.
33596# Compiler output produced by configure, useful for debugging
33597# configure, is in config.log if it exists.
33598
33599debug=false
33600ac_cs_recheck=false
33601ac_cs_silent=false
33602SHELL=\${CONFIG_SHELL-$SHELL}
33603_ACEOF
33604
33605cat >>$CONFIG_STATUS <<\_ACEOF
33606## --------------------- ##
33607## M4sh Initialization.  ##
33608## --------------------- ##
33609
33610# Be Bourne compatible
33611if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33612  emulate sh
33613  NULLCMD=:
33614  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33615  # is contrary to our usage.  Disable this feature.
33616  alias -g '${1+"$@"}'='"$@"'
33617  setopt NO_GLOB_SUBST
33618else
33619  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
33620fi
33621BIN_SH=xpg4; export BIN_SH # for Tru64
33622DUALCASE=1; export DUALCASE # for MKS sh
33623
33624
33625# PATH needs CR
33626# Avoid depending upon Character Ranges.
33627as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33628as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33629as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33630as_cr_digits='0123456789'
33631as_cr_alnum=$as_cr_Letters$as_cr_digits
33632
33633# The user is always right.
33634if test "${PATH_SEPARATOR+set}" != set; then
33635  echo "#! /bin/sh" >conf$$.sh
33636  echo  "exit 0"   >>conf$$.sh
33637  chmod +x conf$$.sh
33638  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33639    PATH_SEPARATOR=';'
33640  else
33641    PATH_SEPARATOR=:
33642  fi
33643  rm -f conf$$.sh
33644fi
33645
33646# Support unset when possible.
33647if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33648  as_unset=unset
33649else
33650  as_unset=false
33651fi
33652
33653
33654# IFS
33655# We need space, tab and new line, in precisely that order.  Quoting is
33656# there to prevent editors from complaining about space-tab.
33657# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33658# splitting by setting IFS to empty value.)
33659as_nl='
33660'
33661IFS=" ""	$as_nl"
33662
33663# Find who we are.  Look in the path if we contain no directory separator.
33664case $0 in
33665  *[\\/]* ) as_myself=$0 ;;
33666  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33667for as_dir in $PATH
33668do
33669  IFS=$as_save_IFS
33670  test -z "$as_dir" && as_dir=.
33671  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33672done
33673IFS=$as_save_IFS
33674
33675     ;;
33676esac
33677# We did not find ourselves, most probably we were run as `sh COMMAND'
33678# in which case we are not to be found in the path.
33679if test "x$as_myself" = x; then
33680  as_myself=$0
33681fi
33682if test ! -f "$as_myself"; then
33683  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33684  { (exit 1); exit 1; }
33685fi
33686
33687# Work around bugs in pre-3.0 UWIN ksh.
33688for as_var in ENV MAIL MAILPATH
33689do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33690done
33691PS1='$ '
33692PS2='> '
33693PS4='+ '
33694
33695# NLS nuisances.
33696for as_var in \
33697  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33698  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33699  LC_TELEPHONE LC_TIME
33700do
33701  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33702    eval $as_var=C; export $as_var
33703  else
33704    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33705  fi
33706done
33707
33708# Required to use basename.
33709if expr a : '\(a\)' >/dev/null 2>&1 &&
33710   test "X`expr 00001 : '.*\(...\)'`" = X001; then
33711  as_expr=expr
33712else
33713  as_expr=false
33714fi
33715
33716if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33717  as_basename=basename
33718else
33719  as_basename=false
33720fi
33721
33722
33723# Name of the executable.
33724as_me=`$as_basename -- "$0" ||
33725$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33726	 X"$0" : 'X\(//\)$' \| \
33727	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33728echo X/"$0" |
33729    sed '/^.*\/\([^/][^/]*\)\/*$/{
33730	    s//\1/
33731	    q
33732	  }
33733	  /^X\/\(\/\/\)$/{
33734	    s//\1/
33735	    q
33736	  }
33737	  /^X\/\(\/\).*/{
33738	    s//\1/
33739	    q
33740	  }
33741	  s/.*/./; q'`
33742
33743# CDPATH.
33744$as_unset CDPATH
33745
33746
33747
33748  as_lineno_1=$LINENO
33749  as_lineno_2=$LINENO
33750  test "x$as_lineno_1" != "x$as_lineno_2" &&
33751  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33752
33753  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33754  # uniformly replaced by the line number.  The first 'sed' inserts a
33755  # line-number line after each line using $LINENO; the second 'sed'
33756  # does the real work.  The second script uses 'N' to pair each
33757  # line-number line with the line containing $LINENO, and appends
33758  # trailing '-' during substitution so that $LINENO is not a special
33759  # case at line end.
33760  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33761  # scripts with optimization help from Paolo Bonzini.  Blame Lee
33762  # E. McMahon (1931-1989) for sed's syntax.  :-)
33763  sed -n '
33764    p
33765    /[$]LINENO/=
33766  ' <$as_myself |
33767    sed '
33768      s/[$]LINENO.*/&-/
33769      t lineno
33770      b
33771      :lineno
33772      N
33773      :loop
33774      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33775      t loop
33776      s/-\n.*//
33777    ' >$as_me.lineno &&
33778  chmod +x "$as_me.lineno" ||
33779    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33780   { (exit 1); exit 1; }; }
33781
33782  # Don't try to exec as it changes $[0], causing all sort of problems
33783  # (the dirname of $[0] is not the place where we might find the
33784  # original and so on.  Autoconf is especially sensitive to this).
33785  . "./$as_me.lineno"
33786  # Exit status is that of the last command.
33787  exit
33788}
33789
33790
33791if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33792  as_dirname=dirname
33793else
33794  as_dirname=false
33795fi
33796
33797ECHO_C= ECHO_N= ECHO_T=
33798case `echo -n x` in
33799-n*)
33800  case `echo 'x\c'` in
33801  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
33802  *)   ECHO_C='\c';;
33803  esac;;
33804*)
33805  ECHO_N='-n';;
33806esac
33807
33808if expr a : '\(a\)' >/dev/null 2>&1 &&
33809   test "X`expr 00001 : '.*\(...\)'`" = X001; then
33810  as_expr=expr
33811else
33812  as_expr=false
33813fi
33814
33815rm -f conf$$ conf$$.exe conf$$.file
33816if test -d conf$$.dir; then
33817  rm -f conf$$.dir/conf$$.file
33818else
33819  rm -f conf$$.dir
33820  mkdir conf$$.dir
33821fi
33822echo >conf$$.file
33823if ln -s conf$$.file conf$$ 2>/dev/null; then
33824  as_ln_s='ln -s'
33825  # ... but there are two gotchas:
33826  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33827  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33828  # In both cases, we have to default to `cp -p'.
33829  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33830    as_ln_s='cp -p'
33831elif ln conf$$.file conf$$ 2>/dev/null; then
33832  as_ln_s=ln
33833else
33834  as_ln_s='cp -p'
33835fi
33836rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33837rmdir conf$$.dir 2>/dev/null
33838
33839if mkdir -p . 2>/dev/null; then
33840  as_mkdir_p=:
33841else
33842  test -d ./-p && rmdir ./-p
33843  as_mkdir_p=false
33844fi
33845
33846# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
33847# systems may use methods other than mode bits to determine executability.
33848cat >conf$$.file <<_ASEOF
33849#! /bin/sh
33850exit 0
33851_ASEOF
33852chmod +x conf$$.file
33853if test -x conf$$.file >/dev/null 2>&1; then
33854  as_executable_p="test -x"
33855else
33856  as_executable_p=:
33857fi
33858rm -f conf$$.file
33859
33860# Sed expression to map a string onto a valid CPP name.
33861as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33862
33863# Sed expression to map a string onto a valid variable name.
33864as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33865
33866
33867exec 6>&1
33868
33869# Save the log message, to keep $[0] and so on meaningful, and to
33870# report actual input values of CONFIG_FILES etc. instead of their
33871# values after options handling.
33872ac_log="
33873This file was extended by llvm $as_me 2.0cvs, which was
33874generated by GNU Autoconf 2.60.  Invocation command line was
33875
33876  CONFIG_FILES    = $CONFIG_FILES
33877  CONFIG_HEADERS  = $CONFIG_HEADERS
33878  CONFIG_LINKS    = $CONFIG_LINKS
33879  CONFIG_COMMANDS = $CONFIG_COMMANDS
33880  $ $0 $@
33881
33882on `(hostname || uname -n) 2>/dev/null | sed 1q`
33883"
33884
33885_ACEOF
33886
33887cat >>$CONFIG_STATUS <<_ACEOF
33888# Files that config.status was made for.
33889config_files="$ac_config_files"
33890config_headers="$ac_config_headers"
33891config_commands="$ac_config_commands"
33892
33893_ACEOF
33894
33895cat >>$CONFIG_STATUS <<\_ACEOF
33896ac_cs_usage="\
33897\`$as_me' instantiates files from templates according to the
33898current configuration.
33899
33900Usage: $0 [OPTIONS] [FILE]...
33901
33902  -h, --help       print this help, then exit
33903  -V, --version    print version number, then exit
33904  -q, --quiet      do not print progress messages
33905  -d, --debug      don't remove temporary files
33906      --recheck    update $as_me by reconfiguring in the same conditions
33907  --file=FILE[:TEMPLATE]
33908		   instantiate the configuration file FILE
33909  --header=FILE[:TEMPLATE]
33910		   instantiate the configuration header FILE
33911
33912Configuration files:
33913$config_files
33914
33915Configuration headers:
33916$config_headers
33917
33918Configuration commands:
33919$config_commands
33920
33921Report bugs to <bug-autoconf@gnu.org>."
33922
33923_ACEOF
33924cat >>$CONFIG_STATUS <<_ACEOF
33925ac_cs_version="\\
33926llvm config.status 2.0cvs
33927configured by $0, generated by GNU Autoconf 2.60,
33928  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33929
33930Copyright (C) 2006 Free Software Foundation, Inc.
33931This config.status script is free software; the Free Software Foundation
33932gives unlimited permission to copy, distribute and modify it."
33933
33934ac_pwd='$ac_pwd'
33935srcdir='$srcdir'
33936INSTALL='$INSTALL'
33937_ACEOF
33938
33939cat >>$CONFIG_STATUS <<\_ACEOF
33940# If no file are specified by the user, then we need to provide default
33941# value.  By we need to know if files were specified by the user.
33942ac_need_defaults=:
33943while test $# != 0
33944do
33945  case $1 in
33946  --*=*)
33947    ac_option=`expr "X$1" : 'X\([^=]*\)='`
33948    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33949    ac_shift=:
33950    ;;
33951  *)
33952    ac_option=$1
33953    ac_optarg=$2
33954    ac_shift=shift
33955    ;;
33956  esac
33957
33958  case $ac_option in
33959  # Handling of the options.
33960  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33961    ac_cs_recheck=: ;;
33962  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33963    echo "$ac_cs_version"; exit ;;
33964  --debug | --debu | --deb | --de | --d | -d )
33965    debug=: ;;
33966  --file | --fil | --fi | --f )
33967    $ac_shift
33968    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33969    ac_need_defaults=false;;
33970  --header | --heade | --head | --hea )
33971    $ac_shift
33972    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33973    ac_need_defaults=false;;
33974  --he | --h)
33975    # Conflict between --help and --header
33976    { echo "$as_me: error: ambiguous option: $1
33977Try \`$0 --help' for more information." >&2
33978   { (exit 1); exit 1; }; };;
33979  --help | --hel | -h )
33980    echo "$ac_cs_usage"; exit ;;
33981  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33982  | -silent | --silent | --silen | --sile | --sil | --si | --s)
33983    ac_cs_silent=: ;;
33984
33985  # This is an error.
33986  -*) { echo "$as_me: error: unrecognized option: $1
33987Try \`$0 --help' for more information." >&2
33988   { (exit 1); exit 1; }; } ;;
33989
33990  *) ac_config_targets="$ac_config_targets $1"
33991     ac_need_defaults=false ;;
33992
33993  esac
33994  shift
33995done
33996
33997ac_configure_extra_args=
33998
33999if $ac_cs_silent; then
34000  exec 6>/dev/null
34001  ac_configure_extra_args="$ac_configure_extra_args --silent"
34002fi
34003
34004_ACEOF
34005cat >>$CONFIG_STATUS <<_ACEOF
34006if \$ac_cs_recheck; then
34007  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34008  CONFIG_SHELL=$SHELL
34009  export CONFIG_SHELL
34010  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34011fi
34012
34013_ACEOF
34014cat >>$CONFIG_STATUS <<\_ACEOF
34015exec 5>>config.log
34016{
34017  echo
34018  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34019## Running $as_me. ##
34020_ASBOX
34021  echo "$ac_log"
34022} >&5
34023
34024_ACEOF
34025cat >>$CONFIG_STATUS <<_ACEOF
34026#
34027# INIT-COMMANDS
34028#
34029llvm_src="${srcdir}"
34030
34031_ACEOF
34032
34033cat >>$CONFIG_STATUS <<\_ACEOF
34034
34035# Handling of arguments.
34036for ac_config_target in $ac_config_targets
34037do
34038  case $ac_config_target in
34039    "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34040    "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34041    "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34042    "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34043    "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34044    "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34045    "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34046    "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34047    "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34048    "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34049    "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34050    "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34051    "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34052    "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34053    "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34054    "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34055    "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34056    "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34057    "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34058    "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34059
34060  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34061echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34062   { (exit 1); exit 1; }; };;
34063  esac
34064done
34065
34066
34067# If the user did not use the arguments to specify the items to instantiate,
34068# then the envvar interface is used.  Set only those that are not.
34069# We use the long form for the default assignment because of an extremely
34070# bizarre bug on SunOS 4.1.3.
34071if $ac_need_defaults; then
34072  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34073  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34074  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34075fi
34076
34077# Have a temporary directory for convenience.  Make it in the build tree
34078# simply because there is no reason against having it here, and in addition,
34079# creating and moving files from /tmp can sometimes cause problems.
34080# Hook for its removal unless debugging.
34081# Note that there is a small window in which the directory will not be cleaned:
34082# after its creation but before its name has been assigned to `$tmp'.
34083$debug ||
34084{
34085  tmp=
34086  trap 'exit_status=$?
34087  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34088' 0
34089  trap '{ (exit 1); exit 1; }' 1 2 13 15
34090}
34091# Create a (secure) tmp directory for tmp files.
34092
34093{
34094  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34095  test -n "$tmp" && test -d "$tmp"
34096}  ||
34097{
34098  tmp=./conf$$-$RANDOM
34099  (umask 077 && mkdir "$tmp")
34100} ||
34101{
34102   echo "$me: cannot create a temporary directory in ." >&2
34103   { (exit 1); exit 1; }
34104}
34105
34106#
34107# Set up the sed scripts for CONFIG_FILES section.
34108#
34109
34110# No need to generate the scripts if there are no CONFIG_FILES.
34111# This happens for instance when ./config.status config.h
34112if test -n "$CONFIG_FILES"; then
34113
34114_ACEOF
34115
34116
34117
34118ac_delim='%!_!# '
34119for ac_last_try in false false false false false :; do
34120  cat >conf$$subs.sed <<_ACEOF
34121SHELL!$SHELL$ac_delim
34122PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34123PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34124PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34125PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34126PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34127PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34128exec_prefix!$exec_prefix$ac_delim
34129prefix!$prefix$ac_delim
34130program_transform_name!$program_transform_name$ac_delim
34131bindir!$bindir$ac_delim
34132sbindir!$sbindir$ac_delim
34133libexecdir!$libexecdir$ac_delim
34134datarootdir!$datarootdir$ac_delim
34135datadir!$datadir$ac_delim
34136sysconfdir!$sysconfdir$ac_delim
34137sharedstatedir!$sharedstatedir$ac_delim
34138localstatedir!$localstatedir$ac_delim
34139includedir!$includedir$ac_delim
34140oldincludedir!$oldincludedir$ac_delim
34141docdir!$docdir$ac_delim
34142infodir!$infodir$ac_delim
34143htmldir!$htmldir$ac_delim
34144dvidir!$dvidir$ac_delim
34145pdfdir!$pdfdir$ac_delim
34146psdir!$psdir$ac_delim
34147libdir!$libdir$ac_delim
34148localedir!$localedir$ac_delim
34149mandir!$mandir$ac_delim
34150DEFS!$DEFS$ac_delim
34151ECHO_C!$ECHO_C$ac_delim
34152ECHO_N!$ECHO_N$ac_delim
34153ECHO_T!$ECHO_T$ac_delim
34154LIBS!$LIBS$ac_delim
34155build_alias!$build_alias$ac_delim
34156host_alias!$host_alias$ac_delim
34157target_alias!$target_alias$ac_delim
34158LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34159subdirs!$subdirs$ac_delim
34160build!$build$ac_delim
34161build_cpu!$build_cpu$ac_delim
34162build_vendor!$build_vendor$ac_delim
34163build_os!$build_os$ac_delim
34164host!$host$ac_delim
34165host_cpu!$host_cpu$ac_delim
34166host_vendor!$host_vendor$ac_delim
34167host_os!$host_os$ac_delim
34168target!$target$ac_delim
34169target_cpu!$target_cpu$ac_delim
34170target_vendor!$target_vendor$ac_delim
34171target_os!$target_os$ac_delim
34172OS!$OS$ac_delim
34173LINKALL!$LINKALL$ac_delim
34174NOLINKALL!$NOLINKALL$ac_delim
34175LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34176LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34177ARCH!$ARCH$ac_delim
34178ENDIAN!$ENDIAN$ac_delim
34179CC!$CC$ac_delim
34180CFLAGS!$CFLAGS$ac_delim
34181LDFLAGS!$LDFLAGS$ac_delim
34182CPPFLAGS!$CPPFLAGS$ac_delim
34183ac_ct_CC!$ac_ct_CC$ac_delim
34184EXEEXT!$EXEEXT$ac_delim
34185OBJEXT!$OBJEXT$ac_delim
34186CPP!$CPP$ac_delim
34187GREP!$GREP$ac_delim
34188EGREP!$EGREP$ac_delim
34189LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34190BUILD_CC!$BUILD_CC$ac_delim
34191BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34192CVSBUILD!$CVSBUILD$ac_delim
34193ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34194DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34195DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34196JIT!$JIT$ac_delim
34197TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34198ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34199ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34200ENABLE_PIC!$ENABLE_PIC$ac_delim
34201TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34202ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34203EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34204CXX!$CXX$ac_delim
34205CXXFLAGS!$CXXFLAGS$ac_delim
34206ac_ct_CXX!$ac_ct_CXX$ac_delim
34207LEX!$LEX$ac_delim
34208LEXLIB!$LEXLIB$ac_delim
34209LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34210FLEX!$FLEX$ac_delim
34211YACC!$YACC$ac_delim
34212YFLAGS!$YFLAGS$ac_delim
34213BISON!$BISON$ac_delim
34214NM!$NM$ac_delim
34215ifGNUmake!$ifGNUmake$ac_delim
34216LN_S!$LN_S$ac_delim
34217CMP!$CMP$ac_delim
34218_ACEOF
34219
34220  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34221    break
34222  elif $ac_last_try; then
34223    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34224echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34225   { (exit 1); exit 1; }; }
34226  else
34227    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34228  fi
34229done
34230
34231ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34232if test -n "$ac_eof"; then
34233  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34234  ac_eof=`expr $ac_eof + 1`
34235fi
34236
34237cat >>$CONFIG_STATUS <<_ACEOF
34238cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34239/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34240_ACEOF
34241sed '
34242s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34243s/^/s,@/; s/!/@,|#_!!_#|/
34244:n
34245t n
34246s/'"$ac_delim"'$/,g/; t
34247s/$/\\/; p
34248N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34249' >>$CONFIG_STATUS <conf$$subs.sed
34250rm -f conf$$subs.sed
34251cat >>$CONFIG_STATUS <<_ACEOF
34252CEOF$ac_eof
34253_ACEOF
34254
34255
34256ac_delim='%!_!# '
34257for ac_last_try in false false false false false :; do
34258  cat >conf$$subs.sed <<_ACEOF
34259CP!$CP$ac_delim
34260DATE!$DATE$ac_delim
34261FIND!$FIND$ac_delim
34262MKDIR!$MKDIR$ac_delim
34263MV!$MV$ac_delim
34264RANLIB!$RANLIB$ac_delim
34265RM!$RM$ac_delim
34266SED!$SED$ac_delim
34267TAR!$TAR$ac_delim
34268BINPWD!$BINPWD$ac_delim
34269GRAPHVIZ!$GRAPHVIZ$ac_delim
34270DOT!$DOT$ac_delim
34271GV!$GV$ac_delim
34272DOTTY!$DOTTY$ac_delim
34273PERL!$PERL$ac_delim
34274HAVE_PERL!$HAVE_PERL$ac_delim
34275INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34276INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34277INSTALL_DATA!$INSTALL_DATA$ac_delim
34278BZIP2!$BZIP2$ac_delim
34279DOXYGEN!$DOXYGEN$ac_delim
34280GROFF!$GROFF$ac_delim
34281GZIP!$GZIP$ac_delim
34282POD2HTML!$POD2HTML$ac_delim
34283POD2MAN!$POD2MAN$ac_delim
34284RUNTEST!$RUNTEST$ac_delim
34285TCLSH!$TCLSH$ac_delim
34286ZIP!$ZIP$ac_delim
34287INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34288INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34289CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34290CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34291LIBADD_DL!$LIBADD_DL$ac_delim
34292ECHO!$ECHO$ac_delim
34293AR!$AR$ac_delim
34294STRIP!$STRIP$ac_delim
34295CXXCPP!$CXXCPP$ac_delim
34296F77!$F77$ac_delim
34297FFLAGS!$FFLAGS$ac_delim
34298ac_ct_F77!$ac_ct_F77$ac_delim
34299LIBTOOL!$LIBTOOL$ac_delim
34300ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34301LLVMGCC!$LLVMGCC$ac_delim
34302LLVMGXX!$LLVMGXX$ac_delim
34303HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34304HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34305ALLOCA!$ALLOCA$ac_delim
34306MMAP_FILE!$MMAP_FILE$ac_delim
34307LLVMCC1!$LLVMCC1$ac_delim
34308LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34309LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34310LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34311LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34312SHLIBEXT!$SHLIBEXT$ac_delim
34313LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34314LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34315LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34316LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34317LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34318LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34319LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34320LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34321LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34322LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34323LIBOBJS!$LIBOBJS$ac_delim
34324LTLIBOBJS!$LTLIBOBJS$ac_delim
34325_ACEOF
34326
34327  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 66; then
34328    break
34329  elif $ac_last_try; then
34330    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34331echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34332   { (exit 1); exit 1; }; }
34333  else
34334    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34335  fi
34336done
34337
34338ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34339if test -n "$ac_eof"; then
34340  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34341  ac_eof=`expr $ac_eof + 1`
34342fi
34343
34344cat >>$CONFIG_STATUS <<_ACEOF
34345cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34346/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34347_ACEOF
34348sed '
34349s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34350s/^/s,@/; s/!/@,|#_!!_#|/
34351:n
34352t n
34353s/'"$ac_delim"'$/,g/; t
34354s/$/\\/; p
34355N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34356' >>$CONFIG_STATUS <conf$$subs.sed
34357rm -f conf$$subs.sed
34358cat >>$CONFIG_STATUS <<_ACEOF
34359:end
34360s/|#_!!_#|//g
34361CEOF$ac_eof
34362_ACEOF
34363
34364
34365# VPATH may cause trouble with some makes, so we remove $(srcdir),
34366# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34367# trailing colons and then remove the whole line if VPATH becomes empty
34368# (actually we leave an empty line to preserve line numbers).
34369if test "x$srcdir" = x.; then
34370  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
34371s/:*\$(srcdir):*/:/
34372s/:*\${srcdir}:*/:/
34373s/:*@srcdir@:*/:/
34374s/^\([^=]*=[	 ]*\):*/\1/
34375s/:*$//
34376s/^[^=]*=[	 ]*$//
34377}'
34378fi
34379
34380cat >>$CONFIG_STATUS <<\_ACEOF
34381fi # test -n "$CONFIG_FILES"
34382
34383
34384for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
34385do
34386  case $ac_tag in
34387  :[FHLC]) ac_mode=$ac_tag; continue;;
34388  esac
34389  case $ac_mode$ac_tag in
34390  :[FHL]*:*);;
34391  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34392echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34393   { (exit 1); exit 1; }; };;
34394  :[FH]-) ac_tag=-:-;;
34395  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34396  esac
34397  ac_save_IFS=$IFS
34398  IFS=:
34399  set x $ac_tag
34400  IFS=$ac_save_IFS
34401  shift
34402  ac_file=$1
34403  shift
34404
34405  case $ac_mode in
34406  :L) ac_source=$1;;
34407  :[FH])
34408    ac_file_inputs=
34409    for ac_f
34410    do
34411      case $ac_f in
34412      -) ac_f="$tmp/stdin";;
34413      *) # Look for the file first in the build tree, then in the source tree
34414	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
34415	 # because $ac_f cannot contain `:'.
34416	 test -f "$ac_f" ||
34417	   case $ac_f in
34418	   [\\/$]*) false;;
34419	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34420	   esac ||
34421	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34422echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34423   { (exit 1); exit 1; }; };;
34424      esac
34425      ac_file_inputs="$ac_file_inputs $ac_f"
34426    done
34427
34428    # Let's still pretend it is `configure' which instantiates (i.e., don't
34429    # use $as_me), people would be surprised to read:
34430    #    /* config.h.  Generated by config.status.  */
34431    configure_input="Generated from "`IFS=:
34432	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34433    if test x"$ac_file" != x-; then
34434      configure_input="$ac_file.  $configure_input"
34435      { echo "$as_me:$LINENO: creating $ac_file" >&5
34436echo "$as_me: creating $ac_file" >&6;}
34437    fi
34438
34439    case $ac_tag in
34440    *:-:* | *:-) cat >"$tmp/stdin";;
34441    esac
34442    ;;
34443  esac
34444
34445  ac_dir=`$as_dirname -- "$ac_file" ||
34446$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34447	 X"$ac_file" : 'X\(//\)[^/]' \| \
34448	 X"$ac_file" : 'X\(//\)$' \| \
34449	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34450echo X"$ac_file" |
34451    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34452	    s//\1/
34453	    q
34454	  }
34455	  /^X\(\/\/\)[^/].*/{
34456	    s//\1/
34457	    q
34458	  }
34459	  /^X\(\/\/\)$/{
34460	    s//\1/
34461	    q
34462	  }
34463	  /^X\(\/\).*/{
34464	    s//\1/
34465	    q
34466	  }
34467	  s/.*/./; q'`
34468  { as_dir="$ac_dir"
34469  case $as_dir in #(
34470  -*) as_dir=./$as_dir;;
34471  esac
34472  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34473    as_dirs=
34474    while :; do
34475      case $as_dir in #(
34476      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34477      *) as_qdir=$as_dir;;
34478      esac
34479      as_dirs="'$as_qdir' $as_dirs"
34480      as_dir=`$as_dirname -- "$as_dir" ||
34481$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34482	 X"$as_dir" : 'X\(//\)[^/]' \| \
34483	 X"$as_dir" : 'X\(//\)$' \| \
34484	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34485echo X"$as_dir" |
34486    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34487	    s//\1/
34488	    q
34489	  }
34490	  /^X\(\/\/\)[^/].*/{
34491	    s//\1/
34492	    q
34493	  }
34494	  /^X\(\/\/\)$/{
34495	    s//\1/
34496	    q
34497	  }
34498	  /^X\(\/\).*/{
34499	    s//\1/
34500	    q
34501	  }
34502	  s/.*/./; q'`
34503      test -d "$as_dir" && break
34504    done
34505    test -z "$as_dirs" || eval "mkdir $as_dirs"
34506  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34507echo "$as_me: error: cannot create directory $as_dir" >&2;}
34508   { (exit 1); exit 1; }; }; }
34509  ac_builddir=.
34510
34511case "$ac_dir" in
34512.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34513*)
34514  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34515  # A ".." for each directory in $ac_dir_suffix.
34516  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34517  case $ac_top_builddir_sub in
34518  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34519  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34520  esac ;;
34521esac
34522ac_abs_top_builddir=$ac_pwd
34523ac_abs_builddir=$ac_pwd$ac_dir_suffix
34524# for backward compatibility:
34525ac_top_builddir=$ac_top_build_prefix
34526
34527case $srcdir in
34528  .)  # We are building in place.
34529    ac_srcdir=.
34530    ac_top_srcdir=$ac_top_builddir_sub
34531    ac_abs_top_srcdir=$ac_pwd ;;
34532  [\\/]* | ?:[\\/]* )  # Absolute name.
34533    ac_srcdir=$srcdir$ac_dir_suffix;
34534    ac_top_srcdir=$srcdir
34535    ac_abs_top_srcdir=$srcdir ;;
34536  *) # Relative name.
34537    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34538    ac_top_srcdir=$ac_top_build_prefix$srcdir
34539    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34540esac
34541ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34542
34543
34544  case $ac_mode in
34545  :F)
34546  #
34547  # CONFIG_FILE
34548  #
34549
34550  case $INSTALL in
34551  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34552  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34553  esac
34554_ACEOF
34555
34556cat >>$CONFIG_STATUS <<\_ACEOF
34557# If the template does not know about datarootdir, expand it.
34558# FIXME: This hack should be removed a few years after 2.60.
34559ac_datarootdir_hack=; ac_datarootdir_seen=
34560
34561case `sed -n '/datarootdir/ {
34562  p
34563  q
34564}
34565/@datadir@/p
34566/@docdir@/p
34567/@infodir@/p
34568/@localedir@/p
34569/@mandir@/p
34570' $ac_file_inputs` in
34571*datarootdir*) ac_datarootdir_seen=yes;;
34572*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34573  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34574echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34575_ACEOF
34576cat >>$CONFIG_STATUS <<_ACEOF
34577  ac_datarootdir_hack='
34578  s&@datadir@&$datadir&g
34579  s&@docdir@&$docdir&g
34580  s&@infodir@&$infodir&g
34581  s&@localedir@&$localedir&g
34582  s&@mandir@&$mandir&g
34583    s&\\\${datarootdir}&$datarootdir&g' ;;
34584esac
34585_ACEOF
34586
34587# Neutralize VPATH when `$srcdir' = `.'.
34588# Shell code in configure.ac might set extrasub.
34589# FIXME: do we really want to maintain this feature?
34590cat >>$CONFIG_STATUS <<_ACEOF
34591  sed "$ac_vpsub
34592$extrasub
34593_ACEOF
34594cat >>$CONFIG_STATUS <<\_ACEOF
34595:t
34596/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34597s&@configure_input@&$configure_input&;t t
34598s&@top_builddir@&$ac_top_builddir_sub&;t t
34599s&@srcdir@&$ac_srcdir&;t t
34600s&@abs_srcdir@&$ac_abs_srcdir&;t t
34601s&@top_srcdir@&$ac_top_srcdir&;t t
34602s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34603s&@builddir@&$ac_builddir&;t t
34604s&@abs_builddir@&$ac_abs_builddir&;t t
34605s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34606s&@INSTALL@&$ac_INSTALL&;t t
34607$ac_datarootdir_hack
34608" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
34609
34610test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34611  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34612  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34613  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34614which seems to be undefined.  Please make sure it is defined." >&5
34615echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34616which seems to be undefined.  Please make sure it is defined." >&2;}
34617
34618  rm -f "$tmp/stdin"
34619  case $ac_file in
34620  -) cat "$tmp/out"; rm -f "$tmp/out";;
34621  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34622  esac
34623 ;;
34624  :H)
34625  #
34626  # CONFIG_HEADER
34627  #
34628_ACEOF
34629
34630# Transform confdefs.h into a sed script `conftest.defines', that
34631# substitutes the proper values into config.h.in to produce config.h.
34632rm -f conftest.defines conftest.tail
34633# First, append a space to every undef/define line, to ease matching.
34634echo 's/$/ /' >conftest.defines
34635# Then, protect against being on the right side of a sed subst, or in
34636# an unquoted here document, in config.status.  If some macros were
34637# called several times there might be several #defines for the same
34638# symbol, which is useless.  But do not sort them, since the last
34639# AC_DEFINE must be honored.
34640ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34641# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34642# NAME is the cpp macro being defined, VALUE is the value it is being given.
34643# PARAMS is the parameter list in the macro definition--in most cases, it's
34644# just an empty string.
34645ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
34646ac_dB='\\)[	 (].*,\\1define\\2'
34647ac_dC=' '
34648ac_dD=' ,'
34649
34650uniq confdefs.h |
34651  sed -n '
34652	t rset
34653	:rset
34654	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
34655	t ok
34656	d
34657	:ok
34658	s/[\\&,]/\\&/g
34659	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34660	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34661  ' >>conftest.defines
34662
34663# Remove the space that was appended to ease matching.
34664# Then replace #undef with comments.  This is necessary, for
34665# example, in the case of _POSIX_SOURCE, which is predefined and required
34666# on some systems where configure will not decide to define it.
34667# (The regexp can be short, since the line contains either #define or #undef.)
34668echo 's/ $//
34669s,^[	 #]*u.*,/* & */,' >>conftest.defines
34670
34671# Break up conftest.defines:
34672ac_max_sed_lines=50
34673
34674# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34675# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34676# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34677# et cetera.
34678ac_in='$ac_file_inputs'
34679ac_out='"$tmp/out1"'
34680ac_nxt='"$tmp/out2"'
34681
34682while :
34683do
34684  # Write a here document:
34685    cat >>$CONFIG_STATUS <<_ACEOF
34686    # First, check the format of the line:
34687    cat >"\$tmp/defines.sed" <<\\CEOF
34688/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
34689/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
34690b
34691:def
34692_ACEOF
34693  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
34694  echo 'CEOF
34695    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34696  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34697  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34698  grep . conftest.tail >/dev/null || break
34699  rm -f conftest.defines
34700  mv conftest.tail conftest.defines
34701done
34702rm -f conftest.defines conftest.tail
34703
34704echo "ac_result=$ac_in" >>$CONFIG_STATUS
34705cat >>$CONFIG_STATUS <<\_ACEOF
34706  if test x"$ac_file" != x-; then
34707    echo "/* $configure_input  */" >"$tmp/config.h"
34708    cat "$ac_result" >>"$tmp/config.h"
34709    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
34710      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34711echo "$as_me: $ac_file is unchanged" >&6;}
34712    else
34713      rm -f $ac_file
34714      mv "$tmp/config.h" $ac_file
34715    fi
34716  else
34717    echo "/* $configure_input  */"
34718    cat "$ac_result"
34719  fi
34720  rm -f "$tmp/out12"
34721 ;;
34722
34723  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34724echo "$as_me: executing $ac_file commands" >&6;}
34725 ;;
34726  esac
34727
34728
34729  case $ac_file$ac_mode in
34730    "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34731   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34732    "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34733   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34734    "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34735   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34736    "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34737   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
34738    "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34739   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
34740    "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34741   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34742    "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34743   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34744    "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34745   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34746    "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34747   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34748    "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34749   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34750
34751  esac
34752done # for ac_tag
34753
34754
34755{ (exit 0); exit 0; }
34756_ACEOF
34757chmod +x $CONFIG_STATUS
34758ac_clean_files=$ac_clean_files_save
34759
34760
34761# configure is writing to config.log, and then calls config.status.
34762# config.status does its own redirection, appending to config.log.
34763# Unfortunately, on DOS this fails, as config.log is still kept open
34764# by configure, so config.status won't be able to write to it; its
34765# output is simply discarded.  So we exec the FD to /dev/null,
34766# effectively closing config.log, so it can be properly (re)opened and
34767# appended to by config.status.  When coming back to configure, we
34768# need to make the FD available again.
34769if test "$no_create" != yes; then
34770  ac_cs_success=:
34771  ac_config_status_args=
34772  test "$silent" = yes &&
34773    ac_config_status_args="$ac_config_status_args --quiet"
34774  exec 5>/dev/null
34775  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34776  exec 5>>config.log
34777  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34778  # would make configure fail if this is the last instruction.
34779  $ac_cs_success || { (exit 1); exit 1; }
34780fi
34781
34782#
34783# CONFIG_SUBDIRS section.
34784#
34785if test "$no_recursion" != yes; then
34786
34787  # Remove --cache-file and --srcdir arguments so they do not pile up.
34788  ac_sub_configure_args=
34789  ac_prev=
34790  eval "set x $ac_configure_args"
34791  shift
34792  for ac_arg
34793  do
34794    if test -n "$ac_prev"; then
34795      ac_prev=
34796      continue
34797    fi
34798    case $ac_arg in
34799    -cache-file | --cache-file | --cache-fil | --cache-fi \
34800    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34801      ac_prev=cache_file ;;
34802    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34803    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34804    | --c=*)
34805      ;;
34806    --config-cache | -C)
34807      ;;
34808    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34809      ac_prev=srcdir ;;
34810    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34811      ;;
34812    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34813      ac_prev=prefix ;;
34814    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34815      ;;
34816    *)
34817      case $ac_arg in
34818      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34819      esac
34820      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
34821    esac
34822  done
34823
34824  # Always prepend --prefix to ensure using the same prefix
34825  # in subdir configurations.
34826  ac_arg="--prefix=$prefix"
34827  case $ac_arg in
34828  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34829  esac
34830  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
34831
34832  ac_popdir=`pwd`
34833  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34834
34835    # Do not complain, so a configure script can configure whichever
34836    # parts of a large source tree are present.
34837    test -d "$srcdir/$ac_dir" || continue
34838
34839    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34840    echo "$as_me:$LINENO: $ac_msg" >&5
34841    echo "$ac_msg" >&6
34842    { as_dir="$ac_dir"
34843  case $as_dir in #(
34844  -*) as_dir=./$as_dir;;
34845  esac
34846  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34847    as_dirs=
34848    while :; do
34849      case $as_dir in #(
34850      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34851      *) as_qdir=$as_dir;;
34852      esac
34853      as_dirs="'$as_qdir' $as_dirs"
34854      as_dir=`$as_dirname -- "$as_dir" ||
34855$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34856	 X"$as_dir" : 'X\(//\)[^/]' \| \
34857	 X"$as_dir" : 'X\(//\)$' \| \
34858	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34859echo X"$as_dir" |
34860    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34861	    s//\1/
34862	    q
34863	  }
34864	  /^X\(\/\/\)[^/].*/{
34865	    s//\1/
34866	    q
34867	  }
34868	  /^X\(\/\/\)$/{
34869	    s//\1/
34870	    q
34871	  }
34872	  /^X\(\/\).*/{
34873	    s//\1/
34874	    q
34875	  }
34876	  s/.*/./; q'`
34877      test -d "$as_dir" && break
34878    done
34879    test -z "$as_dirs" || eval "mkdir $as_dirs"
34880  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34881echo "$as_me: error: cannot create directory $as_dir" >&2;}
34882   { (exit 1); exit 1; }; }; }
34883    ac_builddir=.
34884
34885case "$ac_dir" in
34886.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34887*)
34888  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34889  # A ".." for each directory in $ac_dir_suffix.
34890  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34891  case $ac_top_builddir_sub in
34892  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34893  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34894  esac ;;
34895esac
34896ac_abs_top_builddir=$ac_pwd
34897ac_abs_builddir=$ac_pwd$ac_dir_suffix
34898# for backward compatibility:
34899ac_top_builddir=$ac_top_build_prefix
34900
34901case $srcdir in
34902  .)  # We are building in place.
34903    ac_srcdir=.
34904    ac_top_srcdir=$ac_top_builddir_sub
34905    ac_abs_top_srcdir=$ac_pwd ;;
34906  [\\/]* | ?:[\\/]* )  # Absolute name.
34907    ac_srcdir=$srcdir$ac_dir_suffix;
34908    ac_top_srcdir=$srcdir
34909    ac_abs_top_srcdir=$srcdir ;;
34910  *) # Relative name.
34911    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34912    ac_top_srcdir=$ac_top_build_prefix$srcdir
34913    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34914esac
34915ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34916
34917
34918    cd "$ac_dir"
34919
34920    # Check for guested configure; otherwise get Cygnus style configure.
34921    if test -f "$ac_srcdir/configure.gnu"; then
34922      ac_sub_configure=$ac_srcdir/configure.gnu
34923    elif test -f "$ac_srcdir/configure"; then
34924      ac_sub_configure=$ac_srcdir/configure
34925    elif test -f "$ac_srcdir/configure.in"; then
34926      # This should be Cygnus configure.
34927      ac_sub_configure=$ac_aux_dir/configure
34928    else
34929      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
34930echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34931      ac_sub_configure=
34932    fi
34933
34934    # The recursion is here.
34935    if test -n "$ac_sub_configure"; then
34936      # Make the cache file name correct relative to the subdirectory.
34937      case $cache_file in
34938      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
34939      *) # Relative name.
34940	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
34941      esac
34942
34943      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34944echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
34945      # The eval makes quoting arguments work.
34946      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34947	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
34948	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
34949echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
34950   { (exit 1); exit 1; }; }
34951    fi
34952
34953    cd "$ac_popdir"
34954  done
34955fi
34956
34957
34958