1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60a for thrulay 0.9rc1.
4#
5# Report bugs to <thrulay-users@internet2.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## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17  emulate sh
18  NULLCMD=:
19  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20  # is contrary to our usage.  Disable this feature.
21  alias -g '${1+"$@"}'='"$@"'
22  setopt NO_GLOB_SUBST
23else
24  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25fi
26BIN_SH=xpg4; export BIN_SH # for Tru64
27DUALCASE=1; export DUALCASE # for MKS sh
28
29
30# PATH needs CR
31# Avoid depending upon Character Ranges.
32as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35as_cr_digits='0123456789'
36as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38# The user is always right.
39if test "${PATH_SEPARATOR+set}" != set; then
40  echo "#! /bin/sh" >conf$$.sh
41  echo  "exit 0"   >>conf$$.sh
42  chmod +x conf$$.sh
43  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44    PATH_SEPARATOR=';'
45  else
46    PATH_SEPARATOR=:
47  fi
48  rm -f conf$$.sh
49fi
50
51# Support unset when possible.
52if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53  as_unset=unset
54else
55  as_unset=false
56fi
57
58
59# IFS
60# We need space, tab and new line, in precisely that order.  Quoting is
61# there to prevent editors from complaining about space-tab.
62# (If _AS_PATH_WALK were called with IFS unset, it would disable word
63# splitting by setting IFS to empty value.)
64as_nl='
65'
66IFS=" ""	$as_nl"
67
68# Find who we are.  Look in the path if we contain no directory separator.
69case $0 in
70  *[\\/]* ) as_myself=$0 ;;
71  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72for as_dir in $PATH
73do
74  IFS=$as_save_IFS
75  test -z "$as_dir" && as_dir=.
76  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77done
78IFS=$as_save_IFS
79
80     ;;
81esac
82# We did not find ourselves, most probably we were run as `sh COMMAND'
83# in which case we are not to be found in the path.
84if test "x$as_myself" = x; then
85  as_myself=$0
86fi
87if test ! -f "$as_myself"; then
88  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89  { (exit 1); exit 1; }
90fi
91
92# Work around bugs in pre-3.0 UWIN ksh.
93for as_var in ENV MAIL MAILPATH
94do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95done
96PS1='$ '
97PS2='> '
98PS4='+ '
99
100# NLS nuisances.
101for as_var in \
102  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104  LC_TELEPHONE LC_TIME
105do
106  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107    eval $as_var=C; export $as_var
108  else
109    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110  fi
111done
112
113# Required to use basename.
114if expr a : '\(a\)' >/dev/null 2>&1 &&
115   test "X`expr 00001 : '.*\(...\)'`" = X001; then
116  as_expr=expr
117else
118  as_expr=false
119fi
120
121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122  as_basename=basename
123else
124  as_basename=false
125fi
126
127
128# Name of the executable.
129as_me=`$as_basename -- "$0" ||
130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131	 X"$0" : 'X\(//\)$' \| \
132	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133echo X/"$0" |
134    sed '/^.*\/\([^/][^/]*\)\/*$/{
135	    s//\1/
136	    q
137	  }
138	  /^X\/\(\/\/\)$/{
139	    s//\1/
140	    q
141	  }
142	  /^X\/\(\/\).*/{
143	    s//\1/
144	    q
145	  }
146	  s/.*/./; q'`
147
148# CDPATH.
149$as_unset CDPATH
150
151
152if test "x$CONFIG_SHELL" = x; then
153  if (eval ":") 2>/dev/null; then
154  as_have_required=yes
155else
156  as_have_required=no
157fi
158
159  if test $as_have_required = yes && 	 (eval ":
160(as_func_return () {
161  (exit \$1)
162}
163as_func_success () {
164  as_func_return 0
165}
166as_func_failure () {
167  as_func_return 1
168}
169as_func_ret_success () {
170  return 0
171}
172as_func_ret_failure () {
173  return 1
174}
175
176exitcode=0
177if as_func_success; then
178  :
179else
180  exitcode=1
181  echo as_func_success failed.
182fi
183
184if as_func_failure; then
185  exitcode=1
186  echo as_func_failure succeeded.
187fi
188
189if as_func_ret_success; then
190  :
191else
192  exitcode=1
193  echo as_func_ret_success failed.
194fi
195
196if as_func_ret_failure; then
197  exitcode=1
198  echo as_func_ret_failure succeeded.
199fi
200
201if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202  :
203else
204  exitcode=1
205  echo positional parameters were not saved.
206fi
207
208test \$exitcode = 0) || { (exit 1); exit 1; }
209
210(
211  as_lineno_1=\$LINENO
212  as_lineno_2=\$LINENO
213  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215") 2> /dev/null; then
216  :
217else
218  as_candidate_shells=
219    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  case $as_dir in
225	 /*)
226	   for as_base in sh bash ksh sh5; do
227	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228	   done;;
229       esac
230done
231IFS=$as_save_IFS
232
233
234      for as_shell in $as_candidate_shells $SHELL; do
235	 # Try only shells that exist, to save several forks.
236	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237		{ ("$as_shell") 2> /dev/null <<\_ASEOF
238# Be Bourne compatible
239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240  emulate sh
241  NULLCMD=:
242  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243  # is contrary to our usage.  Disable this feature.
244  alias -g '${1+"$@"}'='"$@"'
245  setopt NO_GLOB_SUBST
246else
247  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248fi
249BIN_SH=xpg4; export BIN_SH # for Tru64
250DUALCASE=1; export DUALCASE # for MKS sh
251
252:
253_ASEOF
254}; then
255  CONFIG_SHELL=$as_shell
256	       as_have_required=yes
257	       if { "$as_shell" 2> /dev/null <<\_ASEOF
258# Be Bourne compatible
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260  emulate sh
261  NULLCMD=:
262  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263  # is contrary to our usage.  Disable this feature.
264  alias -g '${1+"$@"}'='"$@"'
265  setopt NO_GLOB_SUBST
266else
267  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268fi
269BIN_SH=xpg4; export BIN_SH # for Tru64
270DUALCASE=1; export DUALCASE # for MKS sh
271
272:
273(as_func_return () {
274  (exit $1)
275}
276as_func_success () {
277  as_func_return 0
278}
279as_func_failure () {
280  as_func_return 1
281}
282as_func_ret_success () {
283  return 0
284}
285as_func_ret_failure () {
286  return 1
287}
288
289exitcode=0
290if as_func_success; then
291  :
292else
293  exitcode=1
294  echo as_func_success failed.
295fi
296
297if as_func_failure; then
298  exitcode=1
299  echo as_func_failure succeeded.
300fi
301
302if as_func_ret_success; then
303  :
304else
305  exitcode=1
306  echo as_func_ret_success failed.
307fi
308
309if as_func_ret_failure; then
310  exitcode=1
311  echo as_func_ret_failure succeeded.
312fi
313
314if ( set x; as_func_ret_success y && test x = "$1" ); then
315  :
316else
317  exitcode=1
318  echo positional parameters were not saved.
319fi
320
321test $exitcode = 0) || { (exit 1); exit 1; }
322
323(
324  as_lineno_1=$LINENO
325  as_lineno_2=$LINENO
326  test "x$as_lineno_1" != "x$as_lineno_2" &&
327  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329_ASEOF
330}; then
331  break
332fi
333
334fi
335
336      done
337
338      if test "x$CONFIG_SHELL" != x; then
339  for as_var in BASH_ENV ENV
340        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341        done
342        export CONFIG_SHELL
343        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344fi
345
346
347    if test $as_have_required = no; then
348  echo This script requires a shell more modern than all the
349      echo shells that I found on your system.  Please install a
350      echo modern shell, or manually run the script under such a
351      echo shell if you do have one.
352      { (exit 1); exit 1; }
353fi
354
355
356fi
357
358fi
359
360
361
362(eval "as_func_return () {
363  (exit \$1)
364}
365as_func_success () {
366  as_func_return 0
367}
368as_func_failure () {
369  as_func_return 1
370}
371as_func_ret_success () {
372  return 0
373}
374as_func_ret_failure () {
375  return 1
376}
377
378exitcode=0
379if as_func_success; then
380  :
381else
382  exitcode=1
383  echo as_func_success failed.
384fi
385
386if as_func_failure; then
387  exitcode=1
388  echo as_func_failure succeeded.
389fi
390
391if as_func_ret_success; then
392  :
393else
394  exitcode=1
395  echo as_func_ret_success failed.
396fi
397
398if as_func_ret_failure; then
399  exitcode=1
400  echo as_func_ret_failure succeeded.
401fi
402
403if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404  :
405else
406  exitcode=1
407  echo positional parameters were not saved.
408fi
409
410test \$exitcode = 0") || {
411  echo No shell found that supports shell functions.
412  echo Please tell autoconf@gnu.org about your system,
413  echo including any error possibly output before this
414  echo message
415}
416
417
418
419  as_lineno_1=$LINENO
420  as_lineno_2=$LINENO
421  test "x$as_lineno_1" != "x$as_lineno_2" &&
422  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425  # uniformly replaced by the line number.  The first 'sed' inserts a
426  # line-number line after each line using $LINENO; the second 'sed'
427  # does the real work.  The second script uses 'N' to pair each
428  # line-number line with the line containing $LINENO, and appends
429  # trailing '-' during substitution so that $LINENO is not a special
430  # case at line end.
431  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432  # scripts with optimization help from Paolo Bonzini.  Blame Lee
433  # E. McMahon (1931-1989) for sed's syntax.  :-)
434  sed -n '
435    p
436    /[$]LINENO/=
437  ' <$as_myself |
438    sed '
439      s/[$]LINENO.*/&-/
440      t lineno
441      b
442      :lineno
443      N
444      :loop
445      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446      t loop
447      s/-\n.*//
448    ' >$as_me.lineno &&
449  chmod +x "$as_me.lineno" ||
450    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451   { (exit 1); exit 1; }; }
452
453  # Don't try to exec as it changes $[0], causing all sort of problems
454  # (the dirname of $[0] is not the place where we might find the
455  # original and so on.  Autoconf is especially sensitive to this).
456  . "./$as_me.lineno"
457  # Exit status is that of the last command.
458  exit
459}
460
461
462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463  as_dirname=dirname
464else
465  as_dirname=false
466fi
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in
470-n*)
471  case `echo 'x\c'` in
472  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
473  *)   ECHO_C='\c';;
474  esac;;
475*)
476  ECHO_N='-n';;
477esac
478
479if expr a : '\(a\)' >/dev/null 2>&1 &&
480   test "X`expr 00001 : '.*\(...\)'`" = X001; then
481  as_expr=expr
482else
483  as_expr=false
484fi
485
486rm -f conf$$ conf$$.exe conf$$.file
487if test -d conf$$.dir; then
488  rm -f conf$$.dir/conf$$.file
489else
490  rm -f conf$$.dir
491  mkdir conf$$.dir
492fi
493echo >conf$$.file
494if ln -s conf$$.file conf$$ 2>/dev/null; then
495  as_ln_s='ln -s'
496  # ... but there are two gotchas:
497  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499  # In both cases, we have to default to `cp -p'.
500  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501    as_ln_s='cp -p'
502elif ln conf$$.file conf$$ 2>/dev/null; then
503  as_ln_s=ln
504else
505  as_ln_s='cp -p'
506fi
507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508rmdir conf$$.dir 2>/dev/null
509
510if mkdir -p . 2>/dev/null; then
511  as_mkdir_p=:
512else
513  test -d ./-p && rmdir ./-p
514  as_mkdir_p=false
515fi
516
517# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
518# systems may use methods other than mode bits to determine executability.
519cat >conf$$.file <<_ASEOF
520#! /bin/sh
521exit 0
522_ASEOF
523chmod +x conf$$.file
524if test -x conf$$.file >/dev/null 2>&1; then
525  as_executable_p="test -x"
526else
527  as_executable_p=:
528fi
529rm -f conf$$.file
530
531# Sed expression to map a string onto a valid CPP name.
532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534# Sed expression to map a string onto a valid variable name.
535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539
540# Check that we are running under the correct shell.
541SHELL=${CONFIG_SHELL-/bin/sh}
542
543case X$ECHO in
544X*--fallback-echo)
545  # Remove one level of quotation (which was required for Make).
546  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
547  ;;
548esac
549
550echo=${ECHO-echo}
551if test "X$1" = X--no-reexec; then
552  # Discard the --no-reexec flag, and continue.
553  shift
554elif test "X$1" = X--fallback-echo; then
555  # Avoid inline document here, it may be left over
556  :
557elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
558  # Yippee, $echo works!
559  :
560else
561  # Restart under the correct shell.
562  exec $SHELL "$0" --no-reexec ${1+"$@"}
563fi
564
565if test "X$1" = X--fallback-echo; then
566  # used as fallback echo
567  shift
568  cat <<EOF
569$*
570EOF
571  exit 0
572fi
573
574# The HP-UX ksh and POSIX shell print the target directory to stdout
575# if CDPATH is set.
576(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
577
578if test -z "$ECHO"; then
579if test "X${echo_test_string+set}" != Xset; then
580# find a string as large as possible, as long as the shell can cope with it
581  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
582    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
583    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
584       echo_test_string=`eval $cmd` &&
585       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
586    then
587      break
588    fi
589  done
590fi
591
592if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
593   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
594   test "X$echo_testing_string" = "X$echo_test_string"; then
595  :
596else
597  # The Solaris, AIX, and Digital Unix default echo programs unquote
598  # backslashes.  This makes it impossible to quote backslashes using
599  #   echo "$something" | sed 's/\\/\\\\/g'
600  #
601  # So, first we look for a working echo in the user's PATH.
602
603  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604  for dir in $PATH /usr/ucb; do
605    IFS="$lt_save_ifs"
606    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609       test "X$echo_testing_string" = "X$echo_test_string"; then
610      echo="$dir/echo"
611      break
612    fi
613  done
614  IFS="$lt_save_ifs"
615
616  if test "X$echo" = Xecho; then
617    # We didn't find a better echo, so look for alternatives.
618    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
619       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
620       test "X$echo_testing_string" = "X$echo_test_string"; then
621      # This shell has a builtin print -r that does the trick.
622      echo='print -r'
623    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
624	 test "X$CONFIG_SHELL" != X/bin/ksh; then
625      # If we have ksh, try running configure again with it.
626      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627      export ORIGINAL_CONFIG_SHELL
628      CONFIG_SHELL=/bin/ksh
629      export CONFIG_SHELL
630      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
631    else
632      # Try using printf.
633      echo='printf %s\n'
634      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
635	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
636	 test "X$echo_testing_string" = "X$echo_test_string"; then
637	# Cool, printf works
638	:
639      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640	   test "X$echo_testing_string" = 'X\t' &&
641	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642	   test "X$echo_testing_string" = "X$echo_test_string"; then
643	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
644	export CONFIG_SHELL
645	SHELL="$CONFIG_SHELL"
646	export SHELL
647	echo="$CONFIG_SHELL $0 --fallback-echo"
648      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649	   test "X$echo_testing_string" = 'X\t' &&
650	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651	   test "X$echo_testing_string" = "X$echo_test_string"; then
652	echo="$CONFIG_SHELL $0 --fallback-echo"
653      else
654	# maybe with a smaller string...
655	prev=:
656
657	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
659	  then
660	    break
661	  fi
662	  prev="$cmd"
663	done
664
665	if test "$prev" != 'sed 50q "$0"'; then
666	  echo_test_string=`eval $prev`
667	  export echo_test_string
668	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
669	else
670	  # Oops.  We lost completely, so just stick with echo.
671	  echo=echo
672	fi
673      fi
674    fi
675  fi
676fi
677fi
678
679# Copy echo and quote the copy suitably for passing to libtool from
680# the Makefile, instead of quoting the original, which is used later.
681ECHO=$echo
682if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
684fi
685
686
687
688
689tagnames=${tagnames+${tagnames},}CXX
690
691tagnames=${tagnames+${tagnames},}F77
692
693exec 7<&0 </dev/null 6>&1
694
695# Name of the host.
696# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
697# so uname gets run too.
698ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
699
700#
701# Initializations.
702#
703ac_default_prefix=/usr/local
704ac_clean_files=
705ac_config_libobj_dir=.
706LIBOBJS=
707cross_compiling=no
708subdirs=
709MFLAGS=
710MAKEFLAGS=
711SHELL=${CONFIG_SHELL-/bin/sh}
712
713# Identity of this package.
714PACKAGE_NAME='thrulay'
715PACKAGE_TARNAME='thrulay'
716PACKAGE_VERSION='0.9rc1'
717PACKAGE_STRING='thrulay 0.9rc1'
718PACKAGE_BUGREPORT='thrulay-users@internet2.edu'
719
720# Factoring default headers for most tests.
721ac_includes_default="\
722#include <stdio.h>
723#ifdef HAVE_SYS_TYPES_H
724# include <sys/types.h>
725#endif
726#ifdef HAVE_SYS_STAT_H
727# include <sys/stat.h>
728#endif
729#ifdef STDC_HEADERS
730# include <stdlib.h>
731# include <stddef.h>
732#else
733# ifdef HAVE_STDLIB_H
734#  include <stdlib.h>
735# endif
736#endif
737#ifdef HAVE_STRING_H
738# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
739#  include <memory.h>
740# endif
741# include <string.h>
742#endif
743#ifdef HAVE_STRINGS_H
744# include <strings.h>
745#endif
746#ifdef HAVE_INTTYPES_H
747# include <inttypes.h>
748#endif
749#ifdef HAVE_STDINT_H
750# include <stdint.h>
751#endif
752#ifdef HAVE_UNISTD_H
753# include <unistd.h>
754#endif"
755
756ac_subst_vars='SHELL
757PATH_SEPARATOR
758PACKAGE_NAME
759PACKAGE_TARNAME
760PACKAGE_VERSION
761PACKAGE_STRING
762PACKAGE_BUGREPORT
763exec_prefix
764prefix
765program_transform_name
766bindir
767sbindir
768libexecdir
769datarootdir
770datadir
771sysconfdir
772sharedstatedir
773localstatedir
774includedir
775oldincludedir
776docdir
777infodir
778htmldir
779dvidir
780pdfdir
781psdir
782libdir
783localedir
784mandir
785DEFS
786ECHO_C
787ECHO_N
788ECHO_T
789LIBS
790build_alias
791host_alias
792target_alias
793INSTALL_PROGRAM
794INSTALL_SCRIPT
795INSTALL_DATA
796CYGPATH_W
797PACKAGE
798VERSION
799ACLOCAL
800AUTOCONF
801AUTOMAKE
802AUTOHEADER
803MAKEINFO
804install_sh
805STRIP
806INSTALL_STRIP_PROGRAM
807mkdir_p
808AWK
809SET_MAKE
810am__leading_dot
811AMTAR
812am__tar
813am__untar
814CC
815CFLAGS
816LDFLAGS
817CPPFLAGS
818ac_ct_CC
819EXEEXT
820OBJEXT
821DEPDIR
822am__include
823am__quote
824AMDEP_TRUE
825AMDEP_FALSE
826AMDEPBACKSLASH
827CCDEPMODE
828am__fastdepCC_TRUE
829am__fastdepCC_FALSE
830build
831build_cpu
832build_vendor
833build_os
834host
835host_cpu
836host_vendor
837host_os
838GREP
839EGREP
840LN_S
841ECHO
842AR
843RANLIB
844CPP
845CXX
846CXXFLAGS
847ac_ct_CXX
848CXXDEPMODE
849am__fastdepCXX_TRUE
850am__fastdepCXX_FALSE
851CXXCPP
852F77
853FFLAGS
854ac_ct_F77
855LIBTOOL
856C_STD_FLAGS
857WARNING_FLAGS
858LT_VERSION
859LIBOBJS
860LTLIBOBJS'
861ac_subst_files=''
862      ac_precious_vars='build_alias
863host_alias
864target_alias
865CC
866CFLAGS
867LDFLAGS
868CPPFLAGS
869CPP
870CXX
871CXXFLAGS
872CCC
873CXXCPP
874F77
875FFLAGS'
876
877
878# Initialize some variables set by options.
879ac_init_help=
880ac_init_version=false
881# The variables have the same names as the options, with
882# dashes changed to underlines.
883cache_file=/dev/null
884exec_prefix=NONE
885no_create=
886no_recursion=
887prefix=NONE
888program_prefix=NONE
889program_suffix=NONE
890program_transform_name=s,x,x,
891silent=
892site=
893srcdir=
894verbose=
895x_includes=NONE
896x_libraries=NONE
897
898# Installation directory options.
899# These are left unexpanded so users can "make install exec_prefix=/foo"
900# and all the variables that are supposed to be based on exec_prefix
901# by default will actually change.
902# Use braces instead of parens because sh, perl, etc. also accept them.
903# (The list follows the same order as the GNU Coding Standards.)
904bindir='${exec_prefix}/bin'
905sbindir='${exec_prefix}/sbin'
906libexecdir='${exec_prefix}/libexec'
907datarootdir='${prefix}/share'
908datadir='${datarootdir}'
909sysconfdir='${prefix}/etc'
910sharedstatedir='${prefix}/com'
911localstatedir='${prefix}/var'
912includedir='${prefix}/include'
913oldincludedir='/usr/include'
914docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
915infodir='${datarootdir}/info'
916htmldir='${docdir}'
917dvidir='${docdir}'
918pdfdir='${docdir}'
919psdir='${docdir}'
920libdir='${exec_prefix}/lib'
921localedir='${datarootdir}/locale'
922mandir='${prefix}/man'
923
924ac_prev=
925ac_dashdash=
926for ac_option
927do
928  # If the previous option needs an argument, assign it.
929  if test -n "$ac_prev"; then
930    eval $ac_prev=\$ac_option
931    ac_prev=
932    continue
933  fi
934
935  case $ac_option in
936  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
937  *)	ac_optarg=yes ;;
938  esac
939
940  # Accept the important Cygnus configure options, so we can diagnose typos.
941
942  case $ac_dashdash$ac_option in
943  --)
944    ac_dashdash=yes ;;
945
946  -bindir | --bindir | --bindi | --bind | --bin | --bi)
947    ac_prev=bindir ;;
948  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
949    bindir=$ac_optarg ;;
950
951  -build | --build | --buil | --bui | --bu)
952    ac_prev=build_alias ;;
953  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
954    build_alias=$ac_optarg ;;
955
956  -cache-file | --cache-file | --cache-fil | --cache-fi \
957  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
958    ac_prev=cache_file ;;
959  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
960  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
961    cache_file=$ac_optarg ;;
962
963  --config-cache | -C)
964    cache_file=config.cache ;;
965
966  -datadir | --datadir | --datadi | --datad)
967    ac_prev=datadir ;;
968  -datadir=* | --datadir=* | --datadi=* | --datad=*)
969    datadir=$ac_optarg ;;
970
971  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
972  | --dataroo | --dataro | --datar)
973    ac_prev=datarootdir ;;
974  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
975  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
976    datarootdir=$ac_optarg ;;
977
978  -disable-* | --disable-*)
979    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
980    # Reject names that are not valid shell variable names.
981    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
982      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
983   { (exit 1); exit 1; }; }
984    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
985    eval enable_$ac_feature=no ;;
986
987  -docdir | --docdir | --docdi | --doc | --do)
988    ac_prev=docdir ;;
989  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
990    docdir=$ac_optarg ;;
991
992  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
993    ac_prev=dvidir ;;
994  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
995    dvidir=$ac_optarg ;;
996
997  -enable-* | --enable-*)
998    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
999    # Reject names that are not valid shell variable names.
1000    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1001      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1002   { (exit 1); exit 1; }; }
1003    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1004    eval enable_$ac_feature=\$ac_optarg ;;
1005
1006  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1007  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1008  | --exec | --exe | --ex)
1009    ac_prev=exec_prefix ;;
1010  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1011  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1012  | --exec=* | --exe=* | --ex=*)
1013    exec_prefix=$ac_optarg ;;
1014
1015  -gas | --gas | --ga | --g)
1016    # Obsolete; use --with-gas.
1017    with_gas=yes ;;
1018
1019  -help | --help | --hel | --he | -h)
1020    ac_init_help=long ;;
1021  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1022    ac_init_help=recursive ;;
1023  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1024    ac_init_help=short ;;
1025
1026  -host | --host | --hos | --ho)
1027    ac_prev=host_alias ;;
1028  -host=* | --host=* | --hos=* | --ho=*)
1029    host_alias=$ac_optarg ;;
1030
1031  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1032    ac_prev=htmldir ;;
1033  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1034  | --ht=*)
1035    htmldir=$ac_optarg ;;
1036
1037  -includedir | --includedir | --includedi | --included | --include \
1038  | --includ | --inclu | --incl | --inc)
1039    ac_prev=includedir ;;
1040  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1041  | --includ=* | --inclu=* | --incl=* | --inc=*)
1042    includedir=$ac_optarg ;;
1043
1044  -infodir | --infodir | --infodi | --infod | --info | --inf)
1045    ac_prev=infodir ;;
1046  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1047    infodir=$ac_optarg ;;
1048
1049  -libdir | --libdir | --libdi | --libd)
1050    ac_prev=libdir ;;
1051  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1052    libdir=$ac_optarg ;;
1053
1054  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1055  | --libexe | --libex | --libe)
1056    ac_prev=libexecdir ;;
1057  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1058  | --libexe=* | --libex=* | --libe=*)
1059    libexecdir=$ac_optarg ;;
1060
1061  -localedir | --localedir | --localedi | --localed | --locale)
1062    ac_prev=localedir ;;
1063  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1064    localedir=$ac_optarg ;;
1065
1066  -localstatedir | --localstatedir | --localstatedi | --localstated \
1067  | --localstate | --localstat | --localsta | --localst | --locals)
1068    ac_prev=localstatedir ;;
1069  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1070  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1071    localstatedir=$ac_optarg ;;
1072
1073  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1074    ac_prev=mandir ;;
1075  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1076    mandir=$ac_optarg ;;
1077
1078  -nfp | --nfp | --nf)
1079    # Obsolete; use --without-fp.
1080    with_fp=no ;;
1081
1082  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1083  | --no-cr | --no-c | -n)
1084    no_create=yes ;;
1085
1086  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1087  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1088    no_recursion=yes ;;
1089
1090  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1091  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1092  | --oldin | --oldi | --old | --ol | --o)
1093    ac_prev=oldincludedir ;;
1094  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1095  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1096  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1097    oldincludedir=$ac_optarg ;;
1098
1099  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1100    ac_prev=prefix ;;
1101  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1102    prefix=$ac_optarg ;;
1103
1104  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1105  | --program-pre | --program-pr | --program-p)
1106    ac_prev=program_prefix ;;
1107  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1108  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1109    program_prefix=$ac_optarg ;;
1110
1111  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1112  | --program-suf | --program-su | --program-s)
1113    ac_prev=program_suffix ;;
1114  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1115  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1116    program_suffix=$ac_optarg ;;
1117
1118  -program-transform-name | --program-transform-name \
1119  | --program-transform-nam | --program-transform-na \
1120  | --program-transform-n | --program-transform- \
1121  | --program-transform | --program-transfor \
1122  | --program-transfo | --program-transf \
1123  | --program-trans | --program-tran \
1124  | --progr-tra | --program-tr | --program-t)
1125    ac_prev=program_transform_name ;;
1126  -program-transform-name=* | --program-transform-name=* \
1127  | --program-transform-nam=* | --program-transform-na=* \
1128  | --program-transform-n=* | --program-transform-=* \
1129  | --program-transform=* | --program-transfor=* \
1130  | --program-transfo=* | --program-transf=* \
1131  | --program-trans=* | --program-tran=* \
1132  | --progr-tra=* | --program-tr=* | --program-t=*)
1133    program_transform_name=$ac_optarg ;;
1134
1135  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1136    ac_prev=pdfdir ;;
1137  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1138    pdfdir=$ac_optarg ;;
1139
1140  -psdir | --psdir | --psdi | --psd | --ps)
1141    ac_prev=psdir ;;
1142  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1143    psdir=$ac_optarg ;;
1144
1145  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1146  | -silent | --silent | --silen | --sile | --sil)
1147    silent=yes ;;
1148
1149  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1150    ac_prev=sbindir ;;
1151  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1152  | --sbi=* | --sb=*)
1153    sbindir=$ac_optarg ;;
1154
1155  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1156  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1157  | --sharedst | --shareds | --shared | --share | --shar \
1158  | --sha | --sh)
1159    ac_prev=sharedstatedir ;;
1160  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1161  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1162  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1163  | --sha=* | --sh=*)
1164    sharedstatedir=$ac_optarg ;;
1165
1166  -site | --site | --sit)
1167    ac_prev=site ;;
1168  -site=* | --site=* | --sit=*)
1169    site=$ac_optarg ;;
1170
1171  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1172    ac_prev=srcdir ;;
1173  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1174    srcdir=$ac_optarg ;;
1175
1176  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1177  | --syscon | --sysco | --sysc | --sys | --sy)
1178    ac_prev=sysconfdir ;;
1179  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1180  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1181    sysconfdir=$ac_optarg ;;
1182
1183  -target | --target | --targe | --targ | --tar | --ta | --t)
1184    ac_prev=target_alias ;;
1185  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1186    target_alias=$ac_optarg ;;
1187
1188  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1189    verbose=yes ;;
1190
1191  -version | --version | --versio | --versi | --vers | -V)
1192    ac_init_version=: ;;
1193
1194  -with-* | --with-*)
1195    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1196    # Reject names that are not valid shell variable names.
1197    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1198      { echo "$as_me: error: invalid package name: $ac_package" >&2
1199   { (exit 1); exit 1; }; }
1200    ac_package=`echo $ac_package| sed 's/-/_/g'`
1201    eval with_$ac_package=\$ac_optarg ;;
1202
1203  -without-* | --without-*)
1204    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205    # Reject names that are not valid shell variable names.
1206    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1207      { echo "$as_me: error: invalid package name: $ac_package" >&2
1208   { (exit 1); exit 1; }; }
1209    ac_package=`echo $ac_package | sed 's/-/_/g'`
1210    eval with_$ac_package=no ;;
1211
1212  --x)
1213    # Obsolete; use --with-x.
1214    with_x=yes ;;
1215
1216  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217  | --x-incl | --x-inc | --x-in | --x-i)
1218    ac_prev=x_includes ;;
1219  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221    x_includes=$ac_optarg ;;
1222
1223  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225    ac_prev=x_libraries ;;
1226  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228    x_libraries=$ac_optarg ;;
1229
1230  -*) { echo "$as_me: error: unrecognized option: $ac_option
1231Try \`$0 --help' for more information." >&2
1232   { (exit 1); exit 1; }; }
1233    ;;
1234
1235  *=*)
1236    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237    # Reject names that are not valid shell variable names.
1238    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1239      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1240   { (exit 1); exit 1; }; }
1241    eval $ac_envvar=\$ac_optarg
1242    export $ac_envvar ;;
1243
1244  *)
1245    # FIXME: should be removed in autoconf 3.0.
1246    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1250    ;;
1251
1252  esac
1253done
1254
1255if test -n "$ac_prev"; then
1256  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257  { echo "$as_me: error: missing argument to $ac_option" >&2
1258   { (exit 1); exit 1; }; }
1259fi
1260
1261# Be sure to have absolute directory names.
1262for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263		datadir sysconfdir sharedstatedir localstatedir includedir \
1264		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265		libdir localedir mandir
1266do
1267  eval ac_val=\$$ac_var
1268  case $ac_val in
1269    [\\/$]* | ?:[\\/]* )  continue;;
1270    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271  esac
1272  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1273   { (exit 1); exit 1; }; }
1274done
1275
1276# There might be people who depend on the old broken behavior: `$host'
1277# used to hold the argument of --host etc.
1278# FIXME: To remove some day.
1279build=$build_alias
1280host=$host_alias
1281target=$target_alias
1282
1283# FIXME: To remove some day.
1284if test "x$host_alias" != x; then
1285  if test "x$build_alias" = x; then
1286    cross_compiling=maybe
1287    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1288    If a cross compiler is detected then cross compile mode will be used." >&2
1289  elif test "x$build_alias" != "x$host_alias"; then
1290    cross_compiling=yes
1291  fi
1292fi
1293
1294ac_tool_prefix=
1295test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296
1297test "$silent" = yes && exec 6>/dev/null
1298
1299
1300ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301ac_ls_di=`ls -di .` &&
1302ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303  { echo "$as_me: error: Working directory cannot be determined" >&2
1304   { (exit 1); exit 1; }; }
1305test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306  { echo "$as_me: error: pwd does not report name of working directory" >&2
1307   { (exit 1); exit 1; }; }
1308
1309
1310# Find the source files, if location was not specified.
1311if test -z "$srcdir"; then
1312  ac_srcdir_defaulted=yes
1313  # Try the directory containing this script, then the parent directory.
1314  ac_confdir=`$as_dirname -- "$0" ||
1315$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316	 X"$0" : 'X\(//\)[^/]' \| \
1317	 X"$0" : 'X\(//\)$' \| \
1318	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1319echo X"$0" |
1320    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321	    s//\1/
1322	    q
1323	  }
1324	  /^X\(\/\/\)[^/].*/{
1325	    s//\1/
1326	    q
1327	  }
1328	  /^X\(\/\/\)$/{
1329	    s//\1/
1330	    q
1331	  }
1332	  /^X\(\/\).*/{
1333	    s//\1/
1334	    q
1335	  }
1336	  s/.*/./; q'`
1337  srcdir=$ac_confdir
1338  if test ! -r "$srcdir/$ac_unique_file"; then
1339    srcdir=..
1340  fi
1341else
1342  ac_srcdir_defaulted=no
1343fi
1344if test ! -r "$srcdir/$ac_unique_file"; then
1345  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1347   { (exit 1); exit 1; }; }
1348fi
1349ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350ac_abs_confdir=`(
1351	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1352   { (exit 1); exit 1; }; }
1353	pwd)`
1354# When building in place, set srcdir=.
1355if test "$ac_abs_confdir" = "$ac_pwd"; then
1356  srcdir=.
1357fi
1358# Remove unnecessary trailing slashes from srcdir.
1359# Double slashes in file names in object file debugging info
1360# mess up M-x gdb in Emacs.
1361case $srcdir in
1362*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363esac
1364for ac_var in $ac_precious_vars; do
1365  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366  eval ac_env_${ac_var}_value=\$${ac_var}
1367  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369done
1370
1371#
1372# Report the --help message.
1373#
1374if test "$ac_init_help" = "long"; then
1375  # Omit some internal or obsolete options to make the list less imposing.
1376  # This message is too long to be a string in the A/UX 3.1 sh.
1377  cat <<_ACEOF
1378\`configure' configures thrulay 0.9rc1 to adapt to many kinds of systems.
1379
1380Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383VAR=VALUE.  See below for descriptions of some of the useful variables.
1384
1385Defaults for the options are specified in brackets.
1386
1387Configuration:
1388  -h, --help              display this help and exit
1389      --help=short        display options specific to this package
1390      --help=recursive    display the short help of all the included packages
1391  -V, --version           display version information and exit
1392  -q, --quiet, --silent   do not print \`checking...' messages
1393      --cache-file=FILE   cache test results in FILE [disabled]
1394  -C, --config-cache      alias for \`--cache-file=config.cache'
1395  -n, --no-create         do not create output files
1396      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1397
1398Installation directories:
1399  --prefix=PREFIX         install architecture-independent files in PREFIX
1400			  [$ac_default_prefix]
1401  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1402			  [PREFIX]
1403
1404By default, \`make install' will install all the files in
1405\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1406an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407for instance \`--prefix=\$HOME'.
1408
1409For better control, use the options below.
1410
1411Fine tuning of the installation directories:
1412  --bindir=DIR           user executables [EPREFIX/bin]
1413  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1414  --libexecdir=DIR       program executables [EPREFIX/libexec]
1415  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1416  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1417  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1418  --libdir=DIR           object code libraries [EPREFIX/lib]
1419  --includedir=DIR       C header files [PREFIX/include]
1420  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1421  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1422  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1423  --infodir=DIR          info documentation [DATAROOTDIR/info]
1424  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1425  --mandir=DIR           man documentation [DATAROOTDIR/man]
1426  --docdir=DIR           documentation root [DATAROOTDIR/doc/thrulay]
1427  --htmldir=DIR          html documentation [DOCDIR]
1428  --dvidir=DIR           dvi documentation [DOCDIR]
1429  --pdfdir=DIR           pdf documentation [DOCDIR]
1430  --psdir=DIR            ps documentation [DOCDIR]
1431_ACEOF
1432
1433  cat <<\_ACEOF
1434
1435Program names:
1436  --program-prefix=PREFIX            prepend PREFIX to installed program names
1437  --program-suffix=SUFFIX            append SUFFIX to installed program names
1438  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1439
1440System types:
1441  --build=BUILD     configure for building on BUILD [guessed]
1442  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1443_ACEOF
1444fi
1445
1446if test -n "$ac_init_help"; then
1447  case $ac_init_help in
1448     short | recursive ) echo "Configuration of thrulay 0.9rc1:";;
1449   esac
1450  cat <<\_ACEOF
1451
1452Optional Features:
1453  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1454  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1455  --disable-multicast     disable multicast (enabled by default)
1456  --disable-dependency-tracking  speeds up one-time build
1457  --enable-dependency-tracking   do not reject slow dependency extractors
1458  --enable-shared[=PKGS]  build shared libraries [default=yes]
1459  --enable-static[=PKGS]  build static libraries [default=yes]
1460  --enable-fast-install[=PKGS]
1461                          optimize for fast installation [default=yes]
1462  --disable-libtool-lock  avoid locking (might break parallel builds)
1463
1464Optional Packages:
1465  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1466  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1467  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1468  --with-pic              try to use only PIC/non-PIC objects [default=use
1469                          both]
1470  --with-tags[=TAGS]      include additional configurations [automatic]
1471
1472Some influential environment variables:
1473  CC          C compiler command
1474  CFLAGS      C compiler flags
1475  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1476              nonstandard directory <lib dir>
1477  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1478              you have headers in a nonstandard directory <include dir>
1479  CPP         C preprocessor
1480  CXX         C++ compiler command
1481  CXXFLAGS    C++ compiler flags
1482  CXXCPP      C++ preprocessor
1483  F77         Fortran 77 compiler command
1484  FFLAGS      Fortran 77 compiler flags
1485
1486Use these variables to override the choices made by `configure' or to help
1487it to find libraries and programs with nonstandard names/locations.
1488
1489Report bugs to <thrulay-users@internet2.edu>.
1490_ACEOF
1491ac_status=$?
1492fi
1493
1494if test "$ac_init_help" = "recursive"; then
1495  # If there are subdirs, report their specific --help.
1496  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1497    test -d "$ac_dir" || continue
1498    ac_builddir=.
1499
1500case "$ac_dir" in
1501.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502*)
1503  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1504  # A ".." for each directory in $ac_dir_suffix.
1505  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1506  case $ac_top_builddir_sub in
1507  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1509  esac ;;
1510esac
1511ac_abs_top_builddir=$ac_pwd
1512ac_abs_builddir=$ac_pwd$ac_dir_suffix
1513# for backward compatibility:
1514ac_top_builddir=$ac_top_build_prefix
1515
1516case $srcdir in
1517  .)  # We are building in place.
1518    ac_srcdir=.
1519    ac_top_srcdir=$ac_top_builddir_sub
1520    ac_abs_top_srcdir=$ac_pwd ;;
1521  [\\/]* | ?:[\\/]* )  # Absolute name.
1522    ac_srcdir=$srcdir$ac_dir_suffix;
1523    ac_top_srcdir=$srcdir
1524    ac_abs_top_srcdir=$srcdir ;;
1525  *) # Relative name.
1526    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1527    ac_top_srcdir=$ac_top_build_prefix$srcdir
1528    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1529esac
1530ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1531
1532    cd "$ac_dir" || { ac_status=$?; continue; }
1533    # Check for guested configure.
1534    if test -f "$ac_srcdir/configure.gnu"; then
1535      echo &&
1536      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1537    elif test -f "$ac_srcdir/configure"; then
1538      echo &&
1539      $SHELL "$ac_srcdir/configure" --help=recursive
1540    else
1541      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1542    fi || ac_status=$?
1543    cd "$ac_pwd" || { ac_status=$?; break; }
1544  done
1545fi
1546
1547test -n "$ac_init_help" && exit $ac_status
1548if $ac_init_version; then
1549  cat <<\_ACEOF
1550thrulay configure 0.9rc1
1551generated by GNU Autoconf 2.60a
1552
1553Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15542002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1555This configure script is free software; the Free Software Foundation
1556gives unlimited permission to copy, distribute and modify it.
1557_ACEOF
1558  exit
1559fi
1560cat >config.log <<_ACEOF
1561This file contains any messages produced by compilers while
1562running configure, to aid debugging if configure makes a mistake.
1563
1564It was created by thrulay $as_me 0.9rc1, which was
1565generated by GNU Autoconf 2.60a.  Invocation command line was
1566
1567  $ $0 $@
1568
1569_ACEOF
1570exec 5>>config.log
1571{
1572cat <<_ASUNAME
1573## --------- ##
1574## Platform. ##
1575## --------- ##
1576
1577hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1578uname -m = `(uname -m) 2>/dev/null || echo unknown`
1579uname -r = `(uname -r) 2>/dev/null || echo unknown`
1580uname -s = `(uname -s) 2>/dev/null || echo unknown`
1581uname -v = `(uname -v) 2>/dev/null || echo unknown`
1582
1583/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1584/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1585
1586/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1587/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1588/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1589/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1590/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1591/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1592/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1593
1594_ASUNAME
1595
1596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1597for as_dir in $PATH
1598do
1599  IFS=$as_save_IFS
1600  test -z "$as_dir" && as_dir=.
1601  echo "PATH: $as_dir"
1602done
1603IFS=$as_save_IFS
1604
1605} >&5
1606
1607cat >&5 <<_ACEOF
1608
1609
1610## ----------- ##
1611## Core tests. ##
1612## ----------- ##
1613
1614_ACEOF
1615
1616
1617# Keep a trace of the command line.
1618# Strip out --no-create and --no-recursion so they do not pile up.
1619# Strip out --silent because we don't want to record it for future runs.
1620# Also quote any args containing shell meta-characters.
1621# Make two passes to allow for proper duplicate-argument suppression.
1622ac_configure_args=
1623ac_configure_args0=
1624ac_configure_args1=
1625ac_must_keep_next=false
1626for ac_pass in 1 2
1627do
1628  for ac_arg
1629  do
1630    case $ac_arg in
1631    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1632    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1633    | -silent | --silent | --silen | --sile | --sil)
1634      continue ;;
1635    *\'*)
1636      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1637    esac
1638    case $ac_pass in
1639    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1640    2)
1641      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1642      if test $ac_must_keep_next = true; then
1643	ac_must_keep_next=false # Got value, back to normal.
1644      else
1645	case $ac_arg in
1646	  *=* | --config-cache | -C | -disable-* | --disable-* \
1647	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1648	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1649	  | -with-* | --with-* | -without-* | --without-* | --x)
1650	    case "$ac_configure_args0 " in
1651	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1652	    esac
1653	    ;;
1654	  -* ) ac_must_keep_next=true ;;
1655	esac
1656      fi
1657      ac_configure_args="$ac_configure_args '$ac_arg'"
1658      ;;
1659    esac
1660  done
1661done
1662$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1663$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1664
1665# When interrupted or exit'd, cleanup temporary files, and complete
1666# config.log.  We remove comments because anyway the quotes in there
1667# would cause problems or look ugly.
1668# WARNING: Use '\'' to represent an apostrophe within the trap.
1669# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1670trap 'exit_status=$?
1671  # Save into config.log some information that might help in debugging.
1672  {
1673    echo
1674
1675    cat <<\_ASBOX
1676## ---------------- ##
1677## Cache variables. ##
1678## ---------------- ##
1679_ASBOX
1680    echo
1681    # The following way of writing the cache mishandles newlines in values,
1682(
1683  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1684    eval ac_val=\$$ac_var
1685    case $ac_val in #(
1686    *${as_nl}*)
1687      case $ac_var in #(
1688      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1689echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1690      esac
1691      case $ac_var in #(
1692      _ | IFS | as_nl) ;; #(
1693      *) $as_unset $ac_var ;;
1694      esac ;;
1695    esac
1696  done
1697  (set) 2>&1 |
1698    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1699    *${as_nl}ac_space=\ *)
1700      sed -n \
1701	"s/'\''/'\''\\\\'\'''\''/g;
1702	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1703      ;; #(
1704    *)
1705      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1706      ;;
1707    esac |
1708    sort
1709)
1710    echo
1711
1712    cat <<\_ASBOX
1713## ----------------- ##
1714## Output variables. ##
1715## ----------------- ##
1716_ASBOX
1717    echo
1718    for ac_var in $ac_subst_vars
1719    do
1720      eval ac_val=\$$ac_var
1721      case $ac_val in
1722      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1723      esac
1724      echo "$ac_var='\''$ac_val'\''"
1725    done | sort
1726    echo
1727
1728    if test -n "$ac_subst_files"; then
1729      cat <<\_ASBOX
1730## ------------------- ##
1731## File substitutions. ##
1732## ------------------- ##
1733_ASBOX
1734      echo
1735      for ac_var in $ac_subst_files
1736      do
1737	eval ac_val=\$$ac_var
1738	case $ac_val in
1739	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1740	esac
1741	echo "$ac_var='\''$ac_val'\''"
1742      done | sort
1743      echo
1744    fi
1745
1746    if test -s confdefs.h; then
1747      cat <<\_ASBOX
1748## ----------- ##
1749## confdefs.h. ##
1750## ----------- ##
1751_ASBOX
1752      echo
1753      cat confdefs.h
1754      echo
1755    fi
1756    test "$ac_signal" != 0 &&
1757      echo "$as_me: caught signal $ac_signal"
1758    echo "$as_me: exit $exit_status"
1759  } >&5
1760  rm -f core *.core core.conftest.* &&
1761    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1762    exit $exit_status
1763' 0
1764for ac_signal in 1 2 13 15; do
1765  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1766done
1767ac_signal=0
1768
1769# confdefs.h avoids OS command line length limits that DEFS can exceed.
1770rm -f -r conftest* confdefs.h
1771
1772# Predefined preprocessor variables.
1773
1774cat >>confdefs.h <<_ACEOF
1775#define PACKAGE_NAME "$PACKAGE_NAME"
1776_ACEOF
1777
1778
1779cat >>confdefs.h <<_ACEOF
1780#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1781_ACEOF
1782
1783
1784cat >>confdefs.h <<_ACEOF
1785#define PACKAGE_VERSION "$PACKAGE_VERSION"
1786_ACEOF
1787
1788
1789cat >>confdefs.h <<_ACEOF
1790#define PACKAGE_STRING "$PACKAGE_STRING"
1791_ACEOF
1792
1793
1794cat >>confdefs.h <<_ACEOF
1795#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1796_ACEOF
1797
1798
1799# Let the site file select an alternate cache file if it wants to.
1800# Prefer explicitly selected file to automatically selected ones.
1801if test -n "$CONFIG_SITE"; then
1802  set x "$CONFIG_SITE"
1803elif test "x$prefix" != xNONE; then
1804  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1805else
1806  set x "$ac_default_prefix/share/config.site" \
1807	"$ac_default_prefix/etc/config.site"
1808fi
1809shift
1810for ac_site_file
1811do
1812  if test -r "$ac_site_file"; then
1813    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1814echo "$as_me: loading site script $ac_site_file" >&6;}
1815    sed 's/^/| /' "$ac_site_file" >&5
1816    . "$ac_site_file"
1817  fi
1818done
1819
1820if test -r "$cache_file"; then
1821  # Some versions of bash will fail to source /dev/null (special
1822  # files actually), so we avoid doing that.
1823  if test -f "$cache_file"; then
1824    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1825echo "$as_me: loading cache $cache_file" >&6;}
1826    case $cache_file in
1827      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1828      *)                      . "./$cache_file";;
1829    esac
1830  fi
1831else
1832  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1833echo "$as_me: creating cache $cache_file" >&6;}
1834  >$cache_file
1835fi
1836
1837# Check that the precious variables saved in the cache have kept the same
1838# value.
1839ac_cache_corrupted=false
1840for ac_var in $ac_precious_vars; do
1841  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1842  eval ac_new_set=\$ac_env_${ac_var}_set
1843  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1844  eval ac_new_val=\$ac_env_${ac_var}_value
1845  case $ac_old_set,$ac_new_set in
1846    set,)
1847      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1848echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1849      ac_cache_corrupted=: ;;
1850    ,set)
1851      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1852echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1853      ac_cache_corrupted=: ;;
1854    ,);;
1855    *)
1856      if test "x$ac_old_val" != "x$ac_new_val"; then
1857	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1858echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1859	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1860echo "$as_me:   former value:  $ac_old_val" >&2;}
1861	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1862echo "$as_me:   current value: $ac_new_val" >&2;}
1863	ac_cache_corrupted=:
1864      fi;;
1865  esac
1866  # Pass precious variables to config.status.
1867  if test "$ac_new_set" = set; then
1868    case $ac_new_val in
1869    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1870    *) ac_arg=$ac_var=$ac_new_val ;;
1871    esac
1872    case " $ac_configure_args " in
1873      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1874      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1875    esac
1876  fi
1877done
1878if $ac_cache_corrupted; then
1879  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1880echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1881  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1882echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1883   { (exit 1); exit 1; }; }
1884fi
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910ac_ext=c
1911ac_cpp='$CPP $CPPFLAGS'
1912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1914ac_compiler_gnu=$ac_cv_c_compiler_gnu
1915
1916
1917PACKAGE=thrulay
1918VERSION="0.9"
1919# For libtool
1920LT_VERSION="0:0:0"
1921# AC_PREREQ([2.59])
1922ac_config_headers="$ac_config_headers config.h"
1923
1924am__api_version="1.9"
1925ac_aux_dir=
1926for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1927  if test -f "$ac_dir/install-sh"; then
1928    ac_aux_dir=$ac_dir
1929    ac_install_sh="$ac_aux_dir/install-sh -c"
1930    break
1931  elif test -f "$ac_dir/install.sh"; then
1932    ac_aux_dir=$ac_dir
1933    ac_install_sh="$ac_aux_dir/install.sh -c"
1934    break
1935  elif test -f "$ac_dir/shtool"; then
1936    ac_aux_dir=$ac_dir
1937    ac_install_sh="$ac_aux_dir/shtool install -c"
1938    break
1939  fi
1940done
1941if test -z "$ac_aux_dir"; then
1942  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1943echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1944   { (exit 1); exit 1; }; }
1945fi
1946
1947# These three variables are undocumented and unsupported,
1948# and are intended to be withdrawn in a future Autoconf release.
1949# They can cause serious problems if a builder's source tree is in a directory
1950# whose full name contains unusual characters.
1951ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1952ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1953ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1954
1955
1956# Find a good install program.  We prefer a C program (faster),
1957# so one script is as good as another.  But avoid the broken or
1958# incompatible versions:
1959# SysV /etc/install, /usr/sbin/install
1960# SunOS /usr/etc/install
1961# IRIX /sbin/install
1962# AIX /bin/install
1963# AmigaOS /C/install, which installs bootblocks on floppy discs
1964# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1965# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1966# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1967# OS/2's system install, which has a completely different semantic
1968# ./install, which can be erroneously created by make from ./install.sh.
1969{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1970echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1971if test -z "$INSTALL"; then
1972if test "${ac_cv_path_install+set}" = set; then
1973  echo $ECHO_N "(cached) $ECHO_C" >&6
1974else
1975  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976for as_dir in $PATH
1977do
1978  IFS=$as_save_IFS
1979  test -z "$as_dir" && as_dir=.
1980  # Account for people who put trailing slashes in PATH elements.
1981case $as_dir/ in
1982  ./ | .// | /cC/* | \
1983  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1984  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1985  /usr/ucb/* ) ;;
1986  *)
1987    # OSF1 and SCO ODT 3.0 have their own names for install.
1988    # Don't use installbsd from OSF since it installs stuff as root
1989    # by default.
1990    for ac_prog in ginstall scoinst install; do
1991      for ac_exec_ext in '' $ac_executable_extensions; do
1992	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
1993	  if test $ac_prog = install &&
1994	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1995	    # AIX install.  It has an incompatible calling convention.
1996	    :
1997	  elif test $ac_prog = install &&
1998	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1999	    # program-specific install script used by HP pwplus--don't use.
2000	    :
2001	  else
2002	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2003	    break 3
2004	  fi
2005	fi
2006      done
2007    done
2008    ;;
2009esac
2010done
2011IFS=$as_save_IFS
2012
2013
2014fi
2015  if test "${ac_cv_path_install+set}" = set; then
2016    INSTALL=$ac_cv_path_install
2017  else
2018    # As a last resort, use the slow shell script.  Don't cache a
2019    # value for INSTALL within a source directory, because that will
2020    # break other packages using the cache if that directory is
2021    # removed, or if the value is a relative name.
2022    INSTALL=$ac_install_sh
2023  fi
2024fi
2025{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2026echo "${ECHO_T}$INSTALL" >&6; }
2027
2028# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2029# It thinks the first close brace ends the variable substitution.
2030test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2031
2032test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2033
2034test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2035
2036{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2037echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2038# Just in case
2039sleep 1
2040echo timestamp > conftest.file
2041# Do `set' in a subshell so we don't clobber the current shell's
2042# arguments.  Must try -L first in case configure is actually a
2043# symlink; some systems play weird games with the mod time of symlinks
2044# (eg FreeBSD returns the mod time of the symlink's containing
2045# directory).
2046if (
2047   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2048   if test "$*" = "X"; then
2049      # -L didn't work.
2050      set X `ls -t $srcdir/configure conftest.file`
2051   fi
2052   rm -f conftest.file
2053   if test "$*" != "X $srcdir/configure conftest.file" \
2054      && test "$*" != "X conftest.file $srcdir/configure"; then
2055
2056      # If neither matched, then we have a broken ls.  This can happen
2057      # if, for instance, CONFIG_SHELL is bash and it inherits a
2058      # broken ls alias from the environment.  This has actually
2059      # happened.  Such a system could not be considered "sane".
2060      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2061alias in your environment" >&5
2062echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2063alias in your environment" >&2;}
2064   { (exit 1); exit 1; }; }
2065   fi
2066
2067   test "$2" = conftest.file
2068   )
2069then
2070   # Ok.
2071   :
2072else
2073   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2074Check your system clock" >&5
2075echo "$as_me: error: newly created file is older than distributed files!
2076Check your system clock" >&2;}
2077   { (exit 1); exit 1; }; }
2078fi
2079{ echo "$as_me:$LINENO: result: yes" >&5
2080echo "${ECHO_T}yes" >&6; }
2081test "$program_prefix" != NONE &&
2082  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2083# Use a double $ so make ignores it.
2084test "$program_suffix" != NONE &&
2085  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2086# Double any \ or $.  echo might interpret backslashes.
2087# By default was `s,x,x', remove it if useless.
2088cat <<\_ACEOF >conftest.sed
2089s/[\\$]/&&/g;s/;s,x,x,$//
2090_ACEOF
2091program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2092rm -f conftest.sed
2093
2094# expand $ac_aux_dir to an absolute path
2095am_aux_dir=`cd $ac_aux_dir && pwd`
2096
2097test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2098# Use eval to expand $SHELL
2099if eval "$MISSING --run true"; then
2100  am_missing_run="$MISSING --run "
2101else
2102  am_missing_run=
2103  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2104echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2105fi
2106
2107if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2108  # We used to keeping the `.' as first argument, in order to
2109  # allow $(mkdir_p) to be used without argument.  As in
2110  #   $(mkdir_p) $(somedir)
2111  # where $(somedir) is conditionally defined.  However this is wrong
2112  # for two reasons:
2113  #  1. if the package is installed by a user who cannot write `.'
2114  #     make install will fail,
2115  #  2. the above comment should most certainly read
2116  #     $(mkdir_p) $(DESTDIR)$(somedir)
2117  #     so it does not work when $(somedir) is undefined and
2118  #     $(DESTDIR) is not.
2119  #  To support the latter case, we have to write
2120  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2121  #  so the `.' trick is pointless.
2122  mkdir_p='mkdir -p --'
2123else
2124  # On NextStep and OpenStep, the `mkdir' command does not
2125  # recognize any option.  It will interpret all options as
2126  # directories to create, and then abort because `.' already
2127  # exists.
2128  for d in ./-p ./--version;
2129  do
2130    test -d $d && rmdir $d
2131  done
2132  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2133  if test -f "$ac_aux_dir/mkinstalldirs"; then
2134    mkdir_p='$(mkinstalldirs)'
2135  else
2136    mkdir_p='$(install_sh) -d'
2137  fi
2138fi
2139
2140for ac_prog in gawk mawk nawk awk
2141do
2142  # Extract the first word of "$ac_prog", so it can be a program name with args.
2143set dummy $ac_prog; ac_word=$2
2144{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2146if test "${ac_cv_prog_AWK+set}" = set; then
2147  echo $ECHO_N "(cached) $ECHO_C" >&6
2148else
2149  if test -n "$AWK"; then
2150  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2151else
2152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153for as_dir in $PATH
2154do
2155  IFS=$as_save_IFS
2156  test -z "$as_dir" && as_dir=.
2157  for ac_exec_ext in '' $ac_executable_extensions; do
2158  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2159    ac_cv_prog_AWK="$ac_prog"
2160    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2161    break 2
2162  fi
2163done
2164done
2165IFS=$as_save_IFS
2166
2167fi
2168fi
2169AWK=$ac_cv_prog_AWK
2170if test -n "$AWK"; then
2171  { echo "$as_me:$LINENO: result: $AWK" >&5
2172echo "${ECHO_T}$AWK" >&6; }
2173else
2174  { echo "$as_me:$LINENO: result: no" >&5
2175echo "${ECHO_T}no" >&6; }
2176fi
2177
2178
2179  test -n "$AWK" && break
2180done
2181
2182{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2183echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2184set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2185if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2186  echo $ECHO_N "(cached) $ECHO_C" >&6
2187else
2188  cat >conftest.make <<\_ACEOF
2189SHELL = /bin/sh
2190all:
2191	@echo '@@@%%%=$(MAKE)=@@@%%%'
2192_ACEOF
2193# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2194case `${MAKE-make} -f conftest.make 2>/dev/null` in
2195  *@@@%%%=?*=@@@%%%*)
2196    eval ac_cv_prog_make_${ac_make}_set=yes;;
2197  *)
2198    eval ac_cv_prog_make_${ac_make}_set=no;;
2199esac
2200rm -f conftest.make
2201fi
2202if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2203  { echo "$as_me:$LINENO: result: yes" >&5
2204echo "${ECHO_T}yes" >&6; }
2205  SET_MAKE=
2206else
2207  { echo "$as_me:$LINENO: result: no" >&5
2208echo "${ECHO_T}no" >&6; }
2209  SET_MAKE="MAKE=${MAKE-make}"
2210fi
2211
2212rm -rf .tst 2>/dev/null
2213mkdir .tst 2>/dev/null
2214if test -d .tst; then
2215  am__leading_dot=.
2216else
2217  am__leading_dot=_
2218fi
2219rmdir .tst 2>/dev/null
2220
2221# test to see if srcdir already configured
2222if test "`cd $srcdir && pwd`" != "`pwd`" &&
2223   test -f $srcdir/config.status; then
2224  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2225echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2226   { (exit 1); exit 1; }; }
2227fi
2228
2229# test whether we have cygpath
2230if test -z "$CYGPATH_W"; then
2231  if (cygpath --version) >/dev/null 2>/dev/null; then
2232    CYGPATH_W='cygpath -w'
2233  else
2234    CYGPATH_W=echo
2235  fi
2236fi
2237
2238
2239# Define the identity of the package.
2240 PACKAGE=$PACKAGE
2241 VERSION=$VERSION
2242
2243
2244cat >>confdefs.h <<_ACEOF
2245#define PACKAGE "$PACKAGE"
2246_ACEOF
2247
2248
2249cat >>confdefs.h <<_ACEOF
2250#define VERSION "$VERSION"
2251_ACEOF
2252
2253# Some tools Automake needs.
2254
2255ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2256
2257
2258AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2259
2260
2261AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2262
2263
2264AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2265
2266
2267MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2268
2269install_sh=${install_sh-"$am_aux_dir/install-sh"}
2270
2271# Installed binaries are usually stripped using `strip' when the user
2272# run `make install-strip'.  However `strip' might not be the right
2273# tool to use in cross-compilation environments, therefore Automake
2274# will honor the `STRIP' environment variable to overrule this program.
2275if test "$cross_compiling" != no; then
2276  if test -n "$ac_tool_prefix"; then
2277  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2278set dummy ${ac_tool_prefix}strip; ac_word=$2
2279{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2281if test "${ac_cv_prog_STRIP+set}" = set; then
2282  echo $ECHO_N "(cached) $ECHO_C" >&6
2283else
2284  if test -n "$STRIP"; then
2285  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2286else
2287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288for as_dir in $PATH
2289do
2290  IFS=$as_save_IFS
2291  test -z "$as_dir" && as_dir=.
2292  for ac_exec_ext in '' $ac_executable_extensions; do
2293  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2294    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2295    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296    break 2
2297  fi
2298done
2299done
2300IFS=$as_save_IFS
2301
2302fi
2303fi
2304STRIP=$ac_cv_prog_STRIP
2305if test -n "$STRIP"; then
2306  { echo "$as_me:$LINENO: result: $STRIP" >&5
2307echo "${ECHO_T}$STRIP" >&6; }
2308else
2309  { echo "$as_me:$LINENO: result: no" >&5
2310echo "${ECHO_T}no" >&6; }
2311fi
2312
2313
2314fi
2315if test -z "$ac_cv_prog_STRIP"; then
2316  ac_ct_STRIP=$STRIP
2317  # Extract the first word of "strip", so it can be a program name with args.
2318set dummy strip; ac_word=$2
2319{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2321if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2322  echo $ECHO_N "(cached) $ECHO_C" >&6
2323else
2324  if test -n "$ac_ct_STRIP"; then
2325  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2326else
2327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328for as_dir in $PATH
2329do
2330  IFS=$as_save_IFS
2331  test -z "$as_dir" && as_dir=.
2332  for ac_exec_ext in '' $ac_executable_extensions; do
2333  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2334    ac_cv_prog_ac_ct_STRIP="strip"
2335    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336    break 2
2337  fi
2338done
2339done
2340IFS=$as_save_IFS
2341
2342fi
2343fi
2344ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2345if test -n "$ac_ct_STRIP"; then
2346  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2347echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2348else
2349  { echo "$as_me:$LINENO: result: no" >&5
2350echo "${ECHO_T}no" >&6; }
2351fi
2352
2353  if test "x$ac_ct_STRIP" = x; then
2354    STRIP=":"
2355  else
2356    case $cross_compiling:$ac_tool_warned in
2357yes:)
2358{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2359whose name does not start with the host triplet.  If you think this
2360configuration is useful to you, please write to autoconf@gnu.org." >&5
2361echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2362whose name does not start with the host triplet.  If you think this
2363configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2364ac_tool_warned=yes ;;
2365esac
2366    STRIP=$ac_ct_STRIP
2367  fi
2368else
2369  STRIP="$ac_cv_prog_STRIP"
2370fi
2371
2372fi
2373INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2374
2375# We need awk for the "check" target.  The system "awk" is bad on
2376# some platforms.
2377# Always define AMTAR for backward compatibility.
2378
2379AMTAR=${AMTAR-"${am_missing_run}tar"}
2380
2381am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2382
2383
2384
2385
2386
2387
2388# Configure options.
2389# Multicast support.
2390{ echo "$as_me:$LINENO: checking for multicast" >&5
2391echo $ECHO_N "checking for multicast... $ECHO_C" >&6; }
2392# Check whether --enable-multicast was given.
2393if test "${enable_multicast+set}" = set; then
2394  enableval=$enable_multicast;
2395fi
2396
2397if test -z "$enable_multicast"; then
2398   enable_multicast=yes
2399fi
2400if test "$enable_multicast" = "yes"; then
2401
2402cat >>confdefs.h <<\_ACEOF
2403#define ENABLE_THRULAY_MULTICAST 1
2404_ACEOF
2405
2406fi
2407
2408# Checks for programs.
2409ac_ext=c
2410ac_cpp='$CPP $CPPFLAGS'
2411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2413ac_compiler_gnu=$ac_cv_c_compiler_gnu
2414if test -n "$ac_tool_prefix"; then
2415  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2416set dummy ${ac_tool_prefix}gcc; ac_word=$2
2417{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2419if test "${ac_cv_prog_CC+set}" = set; then
2420  echo $ECHO_N "(cached) $ECHO_C" >&6
2421else
2422  if test -n "$CC"; then
2423  ac_cv_prog_CC="$CC" # Let the user override the test.
2424else
2425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426for as_dir in $PATH
2427do
2428  IFS=$as_save_IFS
2429  test -z "$as_dir" && as_dir=.
2430  for ac_exec_ext in '' $ac_executable_extensions; do
2431  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2432    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2433    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2434    break 2
2435  fi
2436done
2437done
2438IFS=$as_save_IFS
2439
2440fi
2441fi
2442CC=$ac_cv_prog_CC
2443if test -n "$CC"; then
2444  { echo "$as_me:$LINENO: result: $CC" >&5
2445echo "${ECHO_T}$CC" >&6; }
2446else
2447  { echo "$as_me:$LINENO: result: no" >&5
2448echo "${ECHO_T}no" >&6; }
2449fi
2450
2451
2452fi
2453if test -z "$ac_cv_prog_CC"; then
2454  ac_ct_CC=$CC
2455  # Extract the first word of "gcc", so it can be a program name with args.
2456set dummy gcc; ac_word=$2
2457{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2459if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2460  echo $ECHO_N "(cached) $ECHO_C" >&6
2461else
2462  if test -n "$ac_ct_CC"; then
2463  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2464else
2465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466for as_dir in $PATH
2467do
2468  IFS=$as_save_IFS
2469  test -z "$as_dir" && as_dir=.
2470  for ac_exec_ext in '' $ac_executable_extensions; do
2471  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2472    ac_cv_prog_ac_ct_CC="gcc"
2473    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2474    break 2
2475  fi
2476done
2477done
2478IFS=$as_save_IFS
2479
2480fi
2481fi
2482ac_ct_CC=$ac_cv_prog_ac_ct_CC
2483if test -n "$ac_ct_CC"; then
2484  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2485echo "${ECHO_T}$ac_ct_CC" >&6; }
2486else
2487  { echo "$as_me:$LINENO: result: no" >&5
2488echo "${ECHO_T}no" >&6; }
2489fi
2490
2491  if test "x$ac_ct_CC" = x; then
2492    CC=""
2493  else
2494    case $cross_compiling:$ac_tool_warned in
2495yes:)
2496{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2497whose name does not start with the host triplet.  If you think this
2498configuration is useful to you, please write to autoconf@gnu.org." >&5
2499echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2500whose name does not start with the host triplet.  If you think this
2501configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2502ac_tool_warned=yes ;;
2503esac
2504    CC=$ac_ct_CC
2505  fi
2506else
2507  CC="$ac_cv_prog_CC"
2508fi
2509
2510if test -z "$CC"; then
2511          if test -n "$ac_tool_prefix"; then
2512    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2513set dummy ${ac_tool_prefix}cc; ac_word=$2
2514{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2516if test "${ac_cv_prog_CC+set}" = set; then
2517  echo $ECHO_N "(cached) $ECHO_C" >&6
2518else
2519  if test -n "$CC"; then
2520  ac_cv_prog_CC="$CC" # Let the user override the test.
2521else
2522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523for as_dir in $PATH
2524do
2525  IFS=$as_save_IFS
2526  test -z "$as_dir" && as_dir=.
2527  for ac_exec_ext in '' $ac_executable_extensions; do
2528  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2529    ac_cv_prog_CC="${ac_tool_prefix}cc"
2530    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531    break 2
2532  fi
2533done
2534done
2535IFS=$as_save_IFS
2536
2537fi
2538fi
2539CC=$ac_cv_prog_CC
2540if test -n "$CC"; then
2541  { echo "$as_me:$LINENO: result: $CC" >&5
2542echo "${ECHO_T}$CC" >&6; }
2543else
2544  { echo "$as_me:$LINENO: result: no" >&5
2545echo "${ECHO_T}no" >&6; }
2546fi
2547
2548
2549  fi
2550fi
2551if test -z "$CC"; then
2552  # Extract the first word of "cc", so it can be a program name with args.
2553set dummy cc; ac_word=$2
2554{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2556if test "${ac_cv_prog_CC+set}" = set; then
2557  echo $ECHO_N "(cached) $ECHO_C" >&6
2558else
2559  if test -n "$CC"; then
2560  ac_cv_prog_CC="$CC" # Let the user override the test.
2561else
2562  ac_prog_rejected=no
2563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564for as_dir in $PATH
2565do
2566  IFS=$as_save_IFS
2567  test -z "$as_dir" && as_dir=.
2568  for ac_exec_ext in '' $ac_executable_extensions; do
2569  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2570    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2571       ac_prog_rejected=yes
2572       continue
2573     fi
2574    ac_cv_prog_CC="cc"
2575    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2576    break 2
2577  fi
2578done
2579done
2580IFS=$as_save_IFS
2581
2582if test $ac_prog_rejected = yes; then
2583  # We found a bogon in the path, so make sure we never use it.
2584  set dummy $ac_cv_prog_CC
2585  shift
2586  if test $# != 0; then
2587    # We chose a different compiler from the bogus one.
2588    # However, it has the same basename, so the bogon will be chosen
2589    # first if we set CC to just the basename; use the full file name.
2590    shift
2591    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2592  fi
2593fi
2594fi
2595fi
2596CC=$ac_cv_prog_CC
2597if test -n "$CC"; then
2598  { echo "$as_me:$LINENO: result: $CC" >&5
2599echo "${ECHO_T}$CC" >&6; }
2600else
2601  { echo "$as_me:$LINENO: result: no" >&5
2602echo "${ECHO_T}no" >&6; }
2603fi
2604
2605
2606fi
2607if test -z "$CC"; then
2608  if test -n "$ac_tool_prefix"; then
2609  for ac_prog in cl.exe
2610  do
2611    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2612set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2613{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2615if test "${ac_cv_prog_CC+set}" = set; then
2616  echo $ECHO_N "(cached) $ECHO_C" >&6
2617else
2618  if test -n "$CC"; then
2619  ac_cv_prog_CC="$CC" # Let the user override the test.
2620else
2621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622for as_dir in $PATH
2623do
2624  IFS=$as_save_IFS
2625  test -z "$as_dir" && as_dir=.
2626  for ac_exec_ext in '' $ac_executable_extensions; do
2627  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2628    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2629    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2630    break 2
2631  fi
2632done
2633done
2634IFS=$as_save_IFS
2635
2636fi
2637fi
2638CC=$ac_cv_prog_CC
2639if test -n "$CC"; then
2640  { echo "$as_me:$LINENO: result: $CC" >&5
2641echo "${ECHO_T}$CC" >&6; }
2642else
2643  { echo "$as_me:$LINENO: result: no" >&5
2644echo "${ECHO_T}no" >&6; }
2645fi
2646
2647
2648    test -n "$CC" && break
2649  done
2650fi
2651if test -z "$CC"; then
2652  ac_ct_CC=$CC
2653  for ac_prog in cl.exe
2654do
2655  # Extract the first word of "$ac_prog", so it can be a program name with args.
2656set dummy $ac_prog; ac_word=$2
2657{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2659if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2660  echo $ECHO_N "(cached) $ECHO_C" >&6
2661else
2662  if test -n "$ac_ct_CC"; then
2663  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2664else
2665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666for as_dir in $PATH
2667do
2668  IFS=$as_save_IFS
2669  test -z "$as_dir" && as_dir=.
2670  for ac_exec_ext in '' $ac_executable_extensions; do
2671  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2672    ac_cv_prog_ac_ct_CC="$ac_prog"
2673    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2674    break 2
2675  fi
2676done
2677done
2678IFS=$as_save_IFS
2679
2680fi
2681fi
2682ac_ct_CC=$ac_cv_prog_ac_ct_CC
2683if test -n "$ac_ct_CC"; then
2684  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2685echo "${ECHO_T}$ac_ct_CC" >&6; }
2686else
2687  { echo "$as_me:$LINENO: result: no" >&5
2688echo "${ECHO_T}no" >&6; }
2689fi
2690
2691
2692  test -n "$ac_ct_CC" && break
2693done
2694
2695  if test "x$ac_ct_CC" = x; then
2696    CC=""
2697  else
2698    case $cross_compiling:$ac_tool_warned in
2699yes:)
2700{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2701whose name does not start with the host triplet.  If you think this
2702configuration is useful to you, please write to autoconf@gnu.org." >&5
2703echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2704whose name does not start with the host triplet.  If you think this
2705configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2706ac_tool_warned=yes ;;
2707esac
2708    CC=$ac_ct_CC
2709  fi
2710fi
2711
2712fi
2713
2714
2715test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2716See \`config.log' for more details." >&5
2717echo "$as_me: error: no acceptable C compiler found in \$PATH
2718See \`config.log' for more details." >&2;}
2719   { (exit 1); exit 1; }; }
2720
2721# Provide some information about the compiler.
2722echo "$as_me:$LINENO: checking for C compiler version" >&5
2723ac_compiler=`set X $ac_compile; echo $2`
2724{ (ac_try="$ac_compiler --version >&5"
2725case "(($ac_try" in
2726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727  *) ac_try_echo=$ac_try;;
2728esac
2729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730  (eval "$ac_compiler --version >&5") 2>&5
2731  ac_status=$?
2732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733  (exit $ac_status); }
2734{ (ac_try="$ac_compiler -v >&5"
2735case "(($ac_try" in
2736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737  *) ac_try_echo=$ac_try;;
2738esac
2739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740  (eval "$ac_compiler -v >&5") 2>&5
2741  ac_status=$?
2742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743  (exit $ac_status); }
2744{ (ac_try="$ac_compiler -V >&5"
2745case "(($ac_try" in
2746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747  *) ac_try_echo=$ac_try;;
2748esac
2749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750  (eval "$ac_compiler -V >&5") 2>&5
2751  ac_status=$?
2752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753  (exit $ac_status); }
2754
2755cat >conftest.$ac_ext <<_ACEOF
2756/* confdefs.h.  */
2757_ACEOF
2758cat confdefs.h >>conftest.$ac_ext
2759cat >>conftest.$ac_ext <<_ACEOF
2760/* end confdefs.h.  */
2761
2762int
2763main ()
2764{
2765
2766  ;
2767  return 0;
2768}
2769_ACEOF
2770ac_clean_files_save=$ac_clean_files
2771ac_clean_files="$ac_clean_files a.out a.exe b.out"
2772# Try to create an executable without -o first, disregard a.out.
2773# It will help us diagnose broken compilers, and finding out an intuition
2774# of exeext.
2775{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2776echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2777ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2778#
2779# List of possible output files, starting from the most likely.
2780# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2781# only as a last resort.  b.out is created by i960 compilers.
2782ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2783#
2784# The IRIX 6 linker writes into existing files which may not be
2785# executable, retaining their permissions.  Remove them first so a
2786# subsequent execution test works.
2787ac_rmfiles=
2788for ac_file in $ac_files
2789do
2790  case $ac_file in
2791    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2792    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2793  esac
2794done
2795rm -f $ac_rmfiles
2796
2797if { (ac_try="$ac_link_default"
2798case "(($ac_try" in
2799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800  *) ac_try_echo=$ac_try;;
2801esac
2802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2803  (eval "$ac_link_default") 2>&5
2804  ac_status=$?
2805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806  (exit $ac_status); }; then
2807  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2808# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2809# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2810# so that the user can short-circuit this test for compilers unknown to
2811# Autoconf.
2812for ac_file in $ac_files ''
2813do
2814  test -f "$ac_file" || continue
2815  case $ac_file in
2816    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2817	;;
2818    [ab].out )
2819	# We found the default executable, but exeext='' is most
2820	# certainly right.
2821	break;;
2822    *.* )
2823        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2824	then :; else
2825	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2826	fi
2827	# We set ac_cv_exeext here because the later test for it is not
2828	# safe: cross compilers may not add the suffix if given an `-o'
2829	# argument, so we may need to know it at that point already.
2830	# Even if this section looks crufty: it has the advantage of
2831	# actually working.
2832	break;;
2833    * )
2834	break;;
2835  esac
2836done
2837test "$ac_cv_exeext" = no && ac_cv_exeext=
2838
2839else
2840  ac_file=''
2841fi
2842
2843{ echo "$as_me:$LINENO: result: $ac_file" >&5
2844echo "${ECHO_T}$ac_file" >&6; }
2845if test -z "$ac_file"; then
2846  echo "$as_me: failed program was:" >&5
2847sed 's/^/| /' conftest.$ac_ext >&5
2848
2849{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2850See \`config.log' for more details." >&5
2851echo "$as_me: error: C compiler cannot create executables
2852See \`config.log' for more details." >&2;}
2853   { (exit 77); exit 77; }; }
2854fi
2855
2856ac_exeext=$ac_cv_exeext
2857
2858# Check that the compiler produces executables we can run.  If not, either
2859# the compiler is broken, or we cross compile.
2860{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2861echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2862# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2863# If not cross compiling, check that we can run a simple program.
2864if test "$cross_compiling" != yes; then
2865  if { ac_try='./$ac_file'
2866  { (case "(($ac_try" in
2867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868  *) ac_try_echo=$ac_try;;
2869esac
2870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2871  (eval "$ac_try") 2>&5
2872  ac_status=$?
2873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874  (exit $ac_status); }; }; then
2875    cross_compiling=no
2876  else
2877    if test "$cross_compiling" = maybe; then
2878	cross_compiling=yes
2879    else
2880	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2881If you meant to cross compile, use \`--host'.
2882See \`config.log' for more details." >&5
2883echo "$as_me: error: cannot run C compiled programs.
2884If you meant to cross compile, use \`--host'.
2885See \`config.log' for more details." >&2;}
2886   { (exit 1); exit 1; }; }
2887    fi
2888  fi
2889fi
2890{ echo "$as_me:$LINENO: result: yes" >&5
2891echo "${ECHO_T}yes" >&6; }
2892
2893rm -f a.out a.exe conftest$ac_cv_exeext b.out
2894ac_clean_files=$ac_clean_files_save
2895# Check that the compiler produces executables we can run.  If not, either
2896# the compiler is broken, or we cross compile.
2897{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2898echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2899{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2900echo "${ECHO_T}$cross_compiling" >&6; }
2901
2902{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2903echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2904if { (ac_try="$ac_link"
2905case "(($ac_try" in
2906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907  *) ac_try_echo=$ac_try;;
2908esac
2909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910  (eval "$ac_link") 2>&5
2911  ac_status=$?
2912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913  (exit $ac_status); }; then
2914  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2915# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2916# work properly (i.e., refer to `conftest.exe'), while it won't with
2917# `rm'.
2918for ac_file in conftest.exe conftest conftest.*; do
2919  test -f "$ac_file" || continue
2920  case $ac_file in
2921    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2922    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2923	  break;;
2924    * ) break;;
2925  esac
2926done
2927else
2928  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2929See \`config.log' for more details." >&5
2930echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2931See \`config.log' for more details." >&2;}
2932   { (exit 1); exit 1; }; }
2933fi
2934
2935rm -f conftest$ac_cv_exeext
2936{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2937echo "${ECHO_T}$ac_cv_exeext" >&6; }
2938
2939rm -f conftest.$ac_ext
2940EXEEXT=$ac_cv_exeext
2941ac_exeext=$EXEEXT
2942{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2943echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2944if test "${ac_cv_objext+set}" = set; then
2945  echo $ECHO_N "(cached) $ECHO_C" >&6
2946else
2947  cat >conftest.$ac_ext <<_ACEOF
2948/* confdefs.h.  */
2949_ACEOF
2950cat confdefs.h >>conftest.$ac_ext
2951cat >>conftest.$ac_ext <<_ACEOF
2952/* end confdefs.h.  */
2953
2954int
2955main ()
2956{
2957
2958  ;
2959  return 0;
2960}
2961_ACEOF
2962rm -f conftest.o conftest.obj
2963if { (ac_try="$ac_compile"
2964case "(($ac_try" in
2965  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966  *) ac_try_echo=$ac_try;;
2967esac
2968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969  (eval "$ac_compile") 2>&5
2970  ac_status=$?
2971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972  (exit $ac_status); }; then
2973  for ac_file in conftest.o conftest.obj conftest.*; do
2974  test -f "$ac_file" || continue;
2975  case $ac_file in
2976    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2977    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2978       break;;
2979  esac
2980done
2981else
2982  echo "$as_me: failed program was:" >&5
2983sed 's/^/| /' conftest.$ac_ext >&5
2984
2985{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2986See \`config.log' for more details." >&5
2987echo "$as_me: error: cannot compute suffix of object files: cannot compile
2988See \`config.log' for more details." >&2;}
2989   { (exit 1); exit 1; }; }
2990fi
2991
2992rm -f conftest.$ac_cv_objext conftest.$ac_ext
2993fi
2994{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2995echo "${ECHO_T}$ac_cv_objext" >&6; }
2996OBJEXT=$ac_cv_objext
2997ac_objext=$OBJEXT
2998{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2999echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3000if test "${ac_cv_c_compiler_gnu+set}" = set; then
3001  echo $ECHO_N "(cached) $ECHO_C" >&6
3002else
3003  cat >conftest.$ac_ext <<_ACEOF
3004/* confdefs.h.  */
3005_ACEOF
3006cat confdefs.h >>conftest.$ac_ext
3007cat >>conftest.$ac_ext <<_ACEOF
3008/* end confdefs.h.  */
3009
3010int
3011main ()
3012{
3013#ifndef __GNUC__
3014       choke me
3015#endif
3016
3017  ;
3018  return 0;
3019}
3020_ACEOF
3021rm -f conftest.$ac_objext
3022if { (ac_try="$ac_compile"
3023case "(($ac_try" in
3024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025  *) ac_try_echo=$ac_try;;
3026esac
3027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028  (eval "$ac_compile") 2>conftest.er1
3029  ac_status=$?
3030  grep -v '^ *+' conftest.er1 >conftest.err
3031  rm -f conftest.er1
3032  cat conftest.err >&5
3033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034  (exit $ac_status); } &&
3035	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3036  { (case "(($ac_try" in
3037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038  *) ac_try_echo=$ac_try;;
3039esac
3040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041  (eval "$ac_try") 2>&5
3042  ac_status=$?
3043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044  (exit $ac_status); }; } &&
3045	 { ac_try='test -s conftest.$ac_objext'
3046  { (case "(($ac_try" in
3047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048  *) ac_try_echo=$ac_try;;
3049esac
3050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051  (eval "$ac_try") 2>&5
3052  ac_status=$?
3053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054  (exit $ac_status); }; }; then
3055  ac_compiler_gnu=yes
3056else
3057  echo "$as_me: failed program was:" >&5
3058sed 's/^/| /' conftest.$ac_ext >&5
3059
3060	ac_compiler_gnu=no
3061fi
3062
3063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3064ac_cv_c_compiler_gnu=$ac_compiler_gnu
3065
3066fi
3067{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3068echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3069GCC=`test $ac_compiler_gnu = yes && echo yes`
3070ac_test_CFLAGS=${CFLAGS+set}
3071ac_save_CFLAGS=$CFLAGS
3072{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3073echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3074if test "${ac_cv_prog_cc_g+set}" = set; then
3075  echo $ECHO_N "(cached) $ECHO_C" >&6
3076else
3077  ac_save_c_werror_flag=$ac_c_werror_flag
3078   ac_c_werror_flag=yes
3079   ac_cv_prog_cc_g=no
3080   CFLAGS="-g"
3081   cat >conftest.$ac_ext <<_ACEOF
3082/* confdefs.h.  */
3083_ACEOF
3084cat confdefs.h >>conftest.$ac_ext
3085cat >>conftest.$ac_ext <<_ACEOF
3086/* end confdefs.h.  */
3087
3088int
3089main ()
3090{
3091
3092  ;
3093  return 0;
3094}
3095_ACEOF
3096rm -f conftest.$ac_objext
3097if { (ac_try="$ac_compile"
3098case "(($ac_try" in
3099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100  *) ac_try_echo=$ac_try;;
3101esac
3102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103  (eval "$ac_compile") 2>conftest.er1
3104  ac_status=$?
3105  grep -v '^ *+' conftest.er1 >conftest.err
3106  rm -f conftest.er1
3107  cat conftest.err >&5
3108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109  (exit $ac_status); } &&
3110	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3111  { (case "(($ac_try" in
3112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113  *) ac_try_echo=$ac_try;;
3114esac
3115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116  (eval "$ac_try") 2>&5
3117  ac_status=$?
3118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119  (exit $ac_status); }; } &&
3120	 { ac_try='test -s conftest.$ac_objext'
3121  { (case "(($ac_try" in
3122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123  *) ac_try_echo=$ac_try;;
3124esac
3125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126  (eval "$ac_try") 2>&5
3127  ac_status=$?
3128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129  (exit $ac_status); }; }; then
3130  ac_cv_prog_cc_g=yes
3131else
3132  echo "$as_me: failed program was:" >&5
3133sed 's/^/| /' conftest.$ac_ext >&5
3134
3135	CFLAGS=""
3136      cat >conftest.$ac_ext <<_ACEOF
3137/* confdefs.h.  */
3138_ACEOF
3139cat confdefs.h >>conftest.$ac_ext
3140cat >>conftest.$ac_ext <<_ACEOF
3141/* end confdefs.h.  */
3142
3143int
3144main ()
3145{
3146
3147  ;
3148  return 0;
3149}
3150_ACEOF
3151rm -f conftest.$ac_objext
3152if { (ac_try="$ac_compile"
3153case "(($ac_try" in
3154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155  *) ac_try_echo=$ac_try;;
3156esac
3157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158  (eval "$ac_compile") 2>conftest.er1
3159  ac_status=$?
3160  grep -v '^ *+' conftest.er1 >conftest.err
3161  rm -f conftest.er1
3162  cat conftest.err >&5
3163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164  (exit $ac_status); } &&
3165	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3166  { (case "(($ac_try" in
3167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168  *) ac_try_echo=$ac_try;;
3169esac
3170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171  (eval "$ac_try") 2>&5
3172  ac_status=$?
3173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174  (exit $ac_status); }; } &&
3175	 { ac_try='test -s conftest.$ac_objext'
3176  { (case "(($ac_try" in
3177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178  *) ac_try_echo=$ac_try;;
3179esac
3180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181  (eval "$ac_try") 2>&5
3182  ac_status=$?
3183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184  (exit $ac_status); }; }; then
3185  :
3186else
3187  echo "$as_me: failed program was:" >&5
3188sed 's/^/| /' conftest.$ac_ext >&5
3189
3190	ac_c_werror_flag=$ac_save_c_werror_flag
3191	 CFLAGS="-g"
3192	 cat >conftest.$ac_ext <<_ACEOF
3193/* confdefs.h.  */
3194_ACEOF
3195cat confdefs.h >>conftest.$ac_ext
3196cat >>conftest.$ac_ext <<_ACEOF
3197/* end confdefs.h.  */
3198
3199int
3200main ()
3201{
3202
3203  ;
3204  return 0;
3205}
3206_ACEOF
3207rm -f conftest.$ac_objext
3208if { (ac_try="$ac_compile"
3209case "(($ac_try" in
3210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211  *) ac_try_echo=$ac_try;;
3212esac
3213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3214  (eval "$ac_compile") 2>conftest.er1
3215  ac_status=$?
3216  grep -v '^ *+' conftest.er1 >conftest.err
3217  rm -f conftest.er1
3218  cat conftest.err >&5
3219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220  (exit $ac_status); } &&
3221	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3222  { (case "(($ac_try" in
3223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224  *) ac_try_echo=$ac_try;;
3225esac
3226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227  (eval "$ac_try") 2>&5
3228  ac_status=$?
3229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230  (exit $ac_status); }; } &&
3231	 { ac_try='test -s conftest.$ac_objext'
3232  { (case "(($ac_try" in
3233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234  *) ac_try_echo=$ac_try;;
3235esac
3236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237  (eval "$ac_try") 2>&5
3238  ac_status=$?
3239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240  (exit $ac_status); }; }; then
3241  ac_cv_prog_cc_g=yes
3242else
3243  echo "$as_me: failed program was:" >&5
3244sed 's/^/| /' conftest.$ac_ext >&5
3245
3246
3247fi
3248
3249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250fi
3251
3252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3253fi
3254
3255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3256   ac_c_werror_flag=$ac_save_c_werror_flag
3257fi
3258{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3259echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3260if test "$ac_test_CFLAGS" = set; then
3261  CFLAGS=$ac_save_CFLAGS
3262elif test $ac_cv_prog_cc_g = yes; then
3263  if test "$GCC" = yes; then
3264    CFLAGS="-g -O2"
3265  else
3266    CFLAGS="-g"
3267  fi
3268else
3269  if test "$GCC" = yes; then
3270    CFLAGS="-O2"
3271  else
3272    CFLAGS=
3273  fi
3274fi
3275{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3276echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3277if test "${ac_cv_prog_cc_c89+set}" = set; then
3278  echo $ECHO_N "(cached) $ECHO_C" >&6
3279else
3280  ac_cv_prog_cc_c89=no
3281ac_save_CC=$CC
3282cat >conftest.$ac_ext <<_ACEOF
3283/* confdefs.h.  */
3284_ACEOF
3285cat confdefs.h >>conftest.$ac_ext
3286cat >>conftest.$ac_ext <<_ACEOF
3287/* end confdefs.h.  */
3288#include <stdarg.h>
3289#include <stdio.h>
3290#include <sys/types.h>
3291#include <sys/stat.h>
3292/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3293struct buf { int x; };
3294FILE * (*rcsopen) (struct buf *, struct stat *, int);
3295static char *e (p, i)
3296     char **p;
3297     int i;
3298{
3299  return p[i];
3300}
3301static char *f (char * (*g) (char **, int), char **p, ...)
3302{
3303  char *s;
3304  va_list v;
3305  va_start (v,p);
3306  s = g (p, va_arg (v,int));
3307  va_end (v);
3308  return s;
3309}
3310
3311/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3312   function prototypes and stuff, but not '\xHH' hex character constants.
3313   These don't provoke an error unfortunately, instead are silently treated
3314   as 'x'.  The following induces an error, until -std is added to get
3315   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3316   array size at least.  It's necessary to write '\x00'==0 to get something
3317   that's true only with -std.  */
3318int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3319
3320/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3321   inside strings and character constants.  */
3322#define FOO(x) 'x'
3323int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3324
3325int test (int i, double x);
3326struct s1 {int (*f) (int a);};
3327struct s2 {int (*f) (double a);};
3328int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3329int argc;
3330char **argv;
3331int
3332main ()
3333{
3334return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3335  ;
3336  return 0;
3337}
3338_ACEOF
3339for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3340	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3341do
3342  CC="$ac_save_CC $ac_arg"
3343  rm -f conftest.$ac_objext
3344if { (ac_try="$ac_compile"
3345case "(($ac_try" in
3346  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347  *) ac_try_echo=$ac_try;;
3348esac
3349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3350  (eval "$ac_compile") 2>conftest.er1
3351  ac_status=$?
3352  grep -v '^ *+' conftest.er1 >conftest.err
3353  rm -f conftest.er1
3354  cat conftest.err >&5
3355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356  (exit $ac_status); } &&
3357	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3358  { (case "(($ac_try" in
3359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360  *) ac_try_echo=$ac_try;;
3361esac
3362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363  (eval "$ac_try") 2>&5
3364  ac_status=$?
3365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366  (exit $ac_status); }; } &&
3367	 { ac_try='test -s conftest.$ac_objext'
3368  { (case "(($ac_try" in
3369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370  *) ac_try_echo=$ac_try;;
3371esac
3372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3373  (eval "$ac_try") 2>&5
3374  ac_status=$?
3375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376  (exit $ac_status); }; }; then
3377  ac_cv_prog_cc_c89=$ac_arg
3378else
3379  echo "$as_me: failed program was:" >&5
3380sed 's/^/| /' conftest.$ac_ext >&5
3381
3382
3383fi
3384
3385rm -f core conftest.err conftest.$ac_objext
3386  test "x$ac_cv_prog_cc_c89" != "xno" && break
3387done
3388rm -f conftest.$ac_ext
3389CC=$ac_save_CC
3390
3391fi
3392# AC_CACHE_VAL
3393case "x$ac_cv_prog_cc_c89" in
3394  x)
3395    { echo "$as_me:$LINENO: result: none needed" >&5
3396echo "${ECHO_T}none needed" >&6; } ;;
3397  xno)
3398    { echo "$as_me:$LINENO: result: unsupported" >&5
3399echo "${ECHO_T}unsupported" >&6; } ;;
3400  *)
3401    CC="$CC $ac_cv_prog_cc_c89"
3402    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3403echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3404esac
3405
3406
3407ac_ext=c
3408ac_cpp='$CPP $CPPFLAGS'
3409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3411ac_compiler_gnu=$ac_cv_c_compiler_gnu
3412DEPDIR="${am__leading_dot}deps"
3413
3414ac_config_commands="$ac_config_commands depfiles"
3415
3416
3417am_make=${MAKE-make}
3418cat > confinc << 'END'
3419am__doit:
3420	@echo done
3421.PHONY: am__doit
3422END
3423# If we don't find an include directive, just comment out the code.
3424{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3425echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3426am__include="#"
3427am__quote=
3428_am_result=none
3429# First try GNU make style include.
3430echo "include confinc" > confmf
3431# We grep out `Entering directory' and `Leaving directory'
3432# messages which can occur if `w' ends up in MAKEFLAGS.
3433# In particular we don't look at `^make:' because GNU make might
3434# be invoked under some other name (usually "gmake"), in which
3435# case it prints its new name instead of `make'.
3436if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3437   am__include=include
3438   am__quote=
3439   _am_result=GNU
3440fi
3441# Now try BSD make style include.
3442if test "$am__include" = "#"; then
3443   echo '.include "confinc"' > confmf
3444   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3445      am__include=.include
3446      am__quote="\""
3447      _am_result=BSD
3448   fi
3449fi
3450
3451
3452{ echo "$as_me:$LINENO: result: $_am_result" >&5
3453echo "${ECHO_T}$_am_result" >&6; }
3454rm -f confinc confmf
3455
3456# Check whether --enable-dependency-tracking was given.
3457if test "${enable_dependency_tracking+set}" = set; then
3458  enableval=$enable_dependency_tracking;
3459fi
3460
3461if test "x$enable_dependency_tracking" != xno; then
3462  am_depcomp="$ac_aux_dir/depcomp"
3463  AMDEPBACKSLASH='\'
3464fi
3465
3466
3467if test "x$enable_dependency_tracking" != xno; then
3468  AMDEP_TRUE=
3469  AMDEP_FALSE='#'
3470else
3471  AMDEP_TRUE='#'
3472  AMDEP_FALSE=
3473fi
3474
3475
3476
3477
3478depcc="$CC"   am_compiler_list=
3479
3480{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3481echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3482if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3483  echo $ECHO_N "(cached) $ECHO_C" >&6
3484else
3485  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3486  # We make a subdir and do the tests there.  Otherwise we can end up
3487  # making bogus files that we don't know about and never remove.  For
3488  # instance it was reported that on HP-UX the gcc test will end up
3489  # making a dummy file named `D' -- because `-MD' means `put the output
3490  # in D'.
3491  mkdir conftest.dir
3492  # Copy depcomp to subdir because otherwise we won't find it if we're
3493  # using a relative directory.
3494  cp "$am_depcomp" conftest.dir
3495  cd conftest.dir
3496  # We will build objects and dependencies in a subdirectory because
3497  # it helps to detect inapplicable dependency modes.  For instance
3498  # both Tru64's cc and ICC support -MD to output dependencies as a
3499  # side effect of compilation, but ICC will put the dependencies in
3500  # the current directory while Tru64 will put them in the object
3501  # directory.
3502  mkdir sub
3503
3504  am_cv_CC_dependencies_compiler_type=none
3505  if test "$am_compiler_list" = ""; then
3506     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3507  fi
3508  for depmode in $am_compiler_list; do
3509    # Setup a source with many dependencies, because some compilers
3510    # like to wrap large dependency lists on column 80 (with \), and
3511    # we should not choose a depcomp mode which is confused by this.
3512    #
3513    # We need to recreate these files for each test, as the compiler may
3514    # overwrite some of them when testing with obscure command lines.
3515    # This happens at least with the AIX C compiler.
3516    : > sub/conftest.c
3517    for i in 1 2 3 4 5 6; do
3518      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3519      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3520      # Solaris 8's {/usr,}/bin/sh.
3521      touch sub/conftst$i.h
3522    done
3523    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3524
3525    case $depmode in
3526    nosideeffect)
3527      # after this tag, mechanisms are not by side-effect, so they'll
3528      # only be used when explicitly requested
3529      if test "x$enable_dependency_tracking" = xyes; then
3530	continue
3531      else
3532	break
3533      fi
3534      ;;
3535    none) break ;;
3536    esac
3537    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3538    # mode.  It turns out that the SunPro C++ compiler does not properly
3539    # handle `-M -o', and we need to detect this.
3540    if depmode=$depmode \
3541       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3542       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3543       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3544         >/dev/null 2>conftest.err &&
3545       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3546       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3547       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3548      # icc doesn't choke on unknown options, it will just issue warnings
3549      # or remarks (even with -Werror).  So we grep stderr for any message
3550      # that says an option was ignored or not supported.
3551      # When given -MP, icc 7.0 and 7.1 complain thusly:
3552      #   icc: Command line warning: ignoring option '-M'; no argument required
3553      # The diagnosis changed in icc 8.0:
3554      #   icc: Command line remark: option '-MP' not supported
3555      if (grep 'ignoring option' conftest.err ||
3556          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3557        am_cv_CC_dependencies_compiler_type=$depmode
3558        break
3559      fi
3560    fi
3561  done
3562
3563  cd ..
3564  rm -rf conftest.dir
3565else
3566  am_cv_CC_dependencies_compiler_type=none
3567fi
3568
3569fi
3570{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3571echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3572CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3573
3574
3575
3576if
3577  test "x$enable_dependency_tracking" != xno \
3578  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3579  am__fastdepCC_TRUE=
3580  am__fastdepCC_FALSE='#'
3581else
3582  am__fastdepCC_TRUE='#'
3583  am__fastdepCC_FALSE=
3584fi
3585
3586
3587{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3588echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3589set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3590if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3591  echo $ECHO_N "(cached) $ECHO_C" >&6
3592else
3593  cat >conftest.make <<\_ACEOF
3594SHELL = /bin/sh
3595all:
3596	@echo '@@@%%%=$(MAKE)=@@@%%%'
3597_ACEOF
3598# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3599case `${MAKE-make} -f conftest.make 2>/dev/null` in
3600  *@@@%%%=?*=@@@%%%*)
3601    eval ac_cv_prog_make_${ac_make}_set=yes;;
3602  *)
3603    eval ac_cv_prog_make_${ac_make}_set=no;;
3604esac
3605rm -f conftest.make
3606fi
3607if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3608  { echo "$as_me:$LINENO: result: yes" >&5
3609echo "${ECHO_T}yes" >&6; }
3610  SET_MAKE=
3611else
3612  { echo "$as_me:$LINENO: result: no" >&5
3613echo "${ECHO_T}no" >&6; }
3614  SET_MAKE="MAKE=${MAKE-make}"
3615fi
3616
3617# Check whether --enable-shared was given.
3618if test "${enable_shared+set}" = set; then
3619  enableval=$enable_shared; p=${PACKAGE-default}
3620    case $enableval in
3621    yes) enable_shared=yes ;;
3622    no) enable_shared=no ;;
3623    *)
3624      enable_shared=no
3625      # Look at the argument we got.  We use all the common list separators.
3626      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3627      for pkg in $enableval; do
3628	IFS="$lt_save_ifs"
3629	if test "X$pkg" = "X$p"; then
3630	  enable_shared=yes
3631	fi
3632      done
3633      IFS="$lt_save_ifs"
3634      ;;
3635    esac
3636else
3637  enable_shared=yes
3638fi
3639
3640
3641# Check whether --enable-static was given.
3642if test "${enable_static+set}" = set; then
3643  enableval=$enable_static; p=${PACKAGE-default}
3644    case $enableval in
3645    yes) enable_static=yes ;;
3646    no) enable_static=no ;;
3647    *)
3648     enable_static=no
3649      # Look at the argument we got.  We use all the common list separators.
3650      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3651      for pkg in $enableval; do
3652	IFS="$lt_save_ifs"
3653	if test "X$pkg" = "X$p"; then
3654	  enable_static=yes
3655	fi
3656      done
3657      IFS="$lt_save_ifs"
3658      ;;
3659    esac
3660else
3661  enable_static=yes
3662fi
3663
3664
3665# Check whether --enable-fast-install was given.
3666if test "${enable_fast_install+set}" = set; then
3667  enableval=$enable_fast_install; p=${PACKAGE-default}
3668    case $enableval in
3669    yes) enable_fast_install=yes ;;
3670    no) enable_fast_install=no ;;
3671    *)
3672      enable_fast_install=no
3673      # Look at the argument we got.  We use all the common list separators.
3674      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3675      for pkg in $enableval; do
3676	IFS="$lt_save_ifs"
3677	if test "X$pkg" = "X$p"; then
3678	  enable_fast_install=yes
3679	fi
3680      done
3681      IFS="$lt_save_ifs"
3682      ;;
3683    esac
3684else
3685  enable_fast_install=yes
3686fi
3687
3688
3689# Make sure we can run config.sub.
3690$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3691  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3692echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3693   { (exit 1); exit 1; }; }
3694
3695{ echo "$as_me:$LINENO: checking build system type" >&5
3696echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3697if test "${ac_cv_build+set}" = set; then
3698  echo $ECHO_N "(cached) $ECHO_C" >&6
3699else
3700  ac_build_alias=$build_alias
3701test "x$ac_build_alias" = x &&
3702  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3703test "x$ac_build_alias" = x &&
3704  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3705echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3706   { (exit 1); exit 1; }; }
3707ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3708  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3709echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3710   { (exit 1); exit 1; }; }
3711
3712fi
3713{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3714echo "${ECHO_T}$ac_cv_build" >&6; }
3715case $ac_cv_build in
3716*-*-*) ;;
3717*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3718echo "$as_me: error: invalid value of canonical build" >&2;}
3719   { (exit 1); exit 1; }; };;
3720esac
3721build=$ac_cv_build
3722ac_save_IFS=$IFS; IFS='-'
3723set x $ac_cv_build
3724shift
3725build_cpu=$1
3726build_vendor=$2
3727shift; shift
3728# Remember, the first character of IFS is used to create $*,
3729# except with old shells:
3730build_os=$*
3731IFS=$ac_save_IFS
3732case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3733
3734
3735{ echo "$as_me:$LINENO: checking host system type" >&5
3736echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3737if test "${ac_cv_host+set}" = set; then
3738  echo $ECHO_N "(cached) $ECHO_C" >&6
3739else
3740  if test "x$host_alias" = x; then
3741  ac_cv_host=$ac_cv_build
3742else
3743  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3744    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3745echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3746   { (exit 1); exit 1; }; }
3747fi
3748
3749fi
3750{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3751echo "${ECHO_T}$ac_cv_host" >&6; }
3752case $ac_cv_host in
3753*-*-*) ;;
3754*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3755echo "$as_me: error: invalid value of canonical host" >&2;}
3756   { (exit 1); exit 1; }; };;
3757esac
3758host=$ac_cv_host
3759ac_save_IFS=$IFS; IFS='-'
3760set x $ac_cv_host
3761shift
3762host_cpu=$1
3763host_vendor=$2
3764shift; shift
3765# Remember, the first character of IFS is used to create $*,
3766# except with old shells:
3767host_os=$*
3768IFS=$ac_save_IFS
3769case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3770
3771
3772{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3773echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3774if test "${lt_cv_path_SED+set}" = set; then
3775  echo $ECHO_N "(cached) $ECHO_C" >&6
3776else
3777  # Loop through the user's path and test for sed and gsed.
3778# Then use that list of sed's as ones to test for truncation.
3779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780for as_dir in $PATH
3781do
3782  IFS=$as_save_IFS
3783  test -z "$as_dir" && as_dir=.
3784  for lt_ac_prog in sed gsed; do
3785    for ac_exec_ext in '' $ac_executable_extensions; do
3786      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3787        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3788      fi
3789    done
3790  done
3791done
3792lt_ac_max=0
3793lt_ac_count=0
3794# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3795# along with /bin/sed that truncates output.
3796for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3797  test ! -f $lt_ac_sed && continue
3798  cat /dev/null > conftest.in
3799  lt_ac_count=0
3800  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3801  # Check for GNU sed and select it if it is found.
3802  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3803    lt_cv_path_SED=$lt_ac_sed
3804    break
3805  fi
3806  while true; do
3807    cat conftest.in conftest.in >conftest.tmp
3808    mv conftest.tmp conftest.in
3809    cp conftest.in conftest.nl
3810    echo >>conftest.nl
3811    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3812    cmp -s conftest.out conftest.nl || break
3813    # 10000 chars as input seems more than enough
3814    test $lt_ac_count -gt 10 && break
3815    lt_ac_count=`expr $lt_ac_count + 1`
3816    if test $lt_ac_count -gt $lt_ac_max; then
3817      lt_ac_max=$lt_ac_count
3818      lt_cv_path_SED=$lt_ac_sed
3819    fi
3820  done
3821done
3822
3823fi
3824
3825SED=$lt_cv_path_SED
3826{ echo "$as_me:$LINENO: result: $SED" >&5
3827echo "${ECHO_T}$SED" >&6; }
3828
3829{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3830echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3831if test "${ac_cv_path_GREP+set}" = set; then
3832  echo $ECHO_N "(cached) $ECHO_C" >&6
3833else
3834  # Extract the first word of "grep ggrep" to use in msg output
3835if test -z "$GREP"; then
3836set dummy grep ggrep; ac_prog_name=$2
3837if test "${ac_cv_path_GREP+set}" = set; then
3838  echo $ECHO_N "(cached) $ECHO_C" >&6
3839else
3840  ac_path_GREP_found=false
3841# Loop through the user's path and test for each of PROGNAME-LIST
3842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3844do
3845  IFS=$as_save_IFS
3846  test -z "$as_dir" && as_dir=.
3847  for ac_prog in grep ggrep; do
3848  for ac_exec_ext in '' $ac_executable_extensions; do
3849    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3850    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3851    # Check for GNU ac_path_GREP and select it if it is found.
3852  # Check for GNU $ac_path_GREP
3853case `"$ac_path_GREP" --version 2>&1` in
3854*GNU*)
3855  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3856*)
3857  ac_count=0
3858  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3859  while :
3860  do
3861    cat "conftest.in" "conftest.in" >"conftest.tmp"
3862    mv "conftest.tmp" "conftest.in"
3863    cp "conftest.in" "conftest.nl"
3864    echo 'GREP' >> "conftest.nl"
3865    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3866    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3867    ac_count=`expr $ac_count + 1`
3868    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3869      # Best one so far, save it but keep looking for a better one
3870      ac_cv_path_GREP="$ac_path_GREP"
3871      ac_path_GREP_max=$ac_count
3872    fi
3873    # 10*(2^10) chars as input seems more than enough
3874    test $ac_count -gt 10 && break
3875  done
3876  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3877esac
3878
3879
3880    $ac_path_GREP_found && break 3
3881  done
3882done
3883
3884done
3885IFS=$as_save_IFS
3886
3887
3888fi
3889
3890GREP="$ac_cv_path_GREP"
3891if test -z "$GREP"; then
3892  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3893echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3894   { (exit 1); exit 1; }; }
3895fi
3896
3897else
3898  ac_cv_path_GREP=$GREP
3899fi
3900
3901
3902fi
3903{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3904echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3905 GREP="$ac_cv_path_GREP"
3906
3907
3908{ echo "$as_me:$LINENO: checking for egrep" >&5
3909echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3910if test "${ac_cv_path_EGREP+set}" = set; then
3911  echo $ECHO_N "(cached) $ECHO_C" >&6
3912else
3913  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3914   then ac_cv_path_EGREP="$GREP -E"
3915   else
3916     # Extract the first word of "egrep" to use in msg output
3917if test -z "$EGREP"; then
3918set dummy egrep; ac_prog_name=$2
3919if test "${ac_cv_path_EGREP+set}" = set; then
3920  echo $ECHO_N "(cached) $ECHO_C" >&6
3921else
3922  ac_path_EGREP_found=false
3923# Loop through the user's path and test for each of PROGNAME-LIST
3924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3926do
3927  IFS=$as_save_IFS
3928  test -z "$as_dir" && as_dir=.
3929  for ac_prog in egrep; do
3930  for ac_exec_ext in '' $ac_executable_extensions; do
3931    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3932    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3933    # Check for GNU ac_path_EGREP and select it if it is found.
3934  # Check for GNU $ac_path_EGREP
3935case `"$ac_path_EGREP" --version 2>&1` in
3936*GNU*)
3937  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3938*)
3939  ac_count=0
3940  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3941  while :
3942  do
3943    cat "conftest.in" "conftest.in" >"conftest.tmp"
3944    mv "conftest.tmp" "conftest.in"
3945    cp "conftest.in" "conftest.nl"
3946    echo 'EGREP' >> "conftest.nl"
3947    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3948    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3949    ac_count=`expr $ac_count + 1`
3950    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3951      # Best one so far, save it but keep looking for a better one
3952      ac_cv_path_EGREP="$ac_path_EGREP"
3953      ac_path_EGREP_max=$ac_count
3954    fi
3955    # 10*(2^10) chars as input seems more than enough
3956    test $ac_count -gt 10 && break
3957  done
3958  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3959esac
3960
3961
3962    $ac_path_EGREP_found && break 3
3963  done
3964done
3965
3966done
3967IFS=$as_save_IFS
3968
3969
3970fi
3971
3972EGREP="$ac_cv_path_EGREP"
3973if test -z "$EGREP"; then
3974  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3975echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3976   { (exit 1); exit 1; }; }
3977fi
3978
3979else
3980  ac_cv_path_EGREP=$EGREP
3981fi
3982
3983
3984   fi
3985fi
3986{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3987echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3988 EGREP="$ac_cv_path_EGREP"
3989
3990
3991
3992# Check whether --with-gnu-ld was given.
3993if test "${with_gnu_ld+set}" = set; then
3994  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3995else
3996  with_gnu_ld=no
3997fi
3998
3999ac_prog=ld
4000if test "$GCC" = yes; then
4001  # Check if gcc -print-prog-name=ld gives a path.
4002  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4003echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4004  case $host in
4005  *-*-mingw*)
4006    # gcc leaves a trailing carriage return which upsets mingw
4007    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4008  *)
4009    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4010  esac
4011  case $ac_prog in
4012    # Accept absolute paths.
4013    [\\/]* | ?:[\\/]*)
4014      re_direlt='/[^/][^/]*/\.\./'
4015      # Canonicalize the pathname of ld
4016      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4017      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4018	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4019      done
4020      test -z "$LD" && LD="$ac_prog"
4021      ;;
4022  "")
4023    # If it fails, then pretend we aren't using GCC.
4024    ac_prog=ld
4025    ;;
4026  *)
4027    # If it is relative, then search for the first ld in PATH.
4028    with_gnu_ld=unknown
4029    ;;
4030  esac
4031elif test "$with_gnu_ld" = yes; then
4032  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4033echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4034else
4035  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4036echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4037fi
4038if test "${lt_cv_path_LD+set}" = set; then
4039  echo $ECHO_N "(cached) $ECHO_C" >&6
4040else
4041  if test -z "$LD"; then
4042  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4043  for ac_dir in $PATH; do
4044    IFS="$lt_save_ifs"
4045    test -z "$ac_dir" && ac_dir=.
4046    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4047      lt_cv_path_LD="$ac_dir/$ac_prog"
4048      # Check to see if the program is GNU ld.  I'd rather use --version,
4049      # but apparently some variants of GNU ld only accept -v.
4050      # Break only if it was the GNU/non-GNU ld that we prefer.
4051      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4052      *GNU* | *'with BFD'*)
4053	test "$with_gnu_ld" != no && break
4054	;;
4055      *)
4056	test "$with_gnu_ld" != yes && break
4057	;;
4058      esac
4059    fi
4060  done
4061  IFS="$lt_save_ifs"
4062else
4063  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4064fi
4065fi
4066
4067LD="$lt_cv_path_LD"
4068if test -n "$LD"; then
4069  { echo "$as_me:$LINENO: result: $LD" >&5
4070echo "${ECHO_T}$LD" >&6; }
4071else
4072  { echo "$as_me:$LINENO: result: no" >&5
4073echo "${ECHO_T}no" >&6; }
4074fi
4075test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4076echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4077   { (exit 1); exit 1; }; }
4078{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4079echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4080if test "${lt_cv_prog_gnu_ld+set}" = set; then
4081  echo $ECHO_N "(cached) $ECHO_C" >&6
4082else
4083  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4084case `$LD -v 2>&1 </dev/null` in
4085*GNU* | *'with BFD'*)
4086  lt_cv_prog_gnu_ld=yes
4087  ;;
4088*)
4089  lt_cv_prog_gnu_ld=no
4090  ;;
4091esac
4092fi
4093{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4094echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4095with_gnu_ld=$lt_cv_prog_gnu_ld
4096
4097
4098{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4099echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4100if test "${lt_cv_ld_reload_flag+set}" = set; then
4101  echo $ECHO_N "(cached) $ECHO_C" >&6
4102else
4103  lt_cv_ld_reload_flag='-r'
4104fi
4105{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4106echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4107reload_flag=$lt_cv_ld_reload_flag
4108case $reload_flag in
4109"" | " "*) ;;
4110*) reload_flag=" $reload_flag" ;;
4111esac
4112reload_cmds='$LD$reload_flag -o $output$reload_objs'
4113case $host_os in
4114  darwin*)
4115    if test "$GCC" = yes; then
4116      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4117    else
4118      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4119    fi
4120    ;;
4121esac
4122
4123{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4124echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4125if test "${lt_cv_path_NM+set}" = set; then
4126  echo $ECHO_N "(cached) $ECHO_C" >&6
4127else
4128  if test -n "$NM"; then
4129  # Let the user override the test.
4130  lt_cv_path_NM="$NM"
4131else
4132  lt_nm_to_check="${ac_tool_prefix}nm"
4133  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4134    lt_nm_to_check="$lt_nm_to_check nm"
4135  fi
4136  for lt_tmp_nm in $lt_nm_to_check; do
4137    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4138    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4139      IFS="$lt_save_ifs"
4140      test -z "$ac_dir" && ac_dir=.
4141      tmp_nm="$ac_dir/$lt_tmp_nm"
4142      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4143	# Check to see if the nm accepts a BSD-compat flag.
4144	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4145	#   nm: unknown option "B" ignored
4146	# Tru64's nm complains that /dev/null is an invalid object file
4147	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4148	*/dev/null* | *'Invalid file or object type'*)
4149	  lt_cv_path_NM="$tmp_nm -B"
4150	  break
4151	  ;;
4152	*)
4153	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4154	  */dev/null*)
4155	    lt_cv_path_NM="$tmp_nm -p"
4156	    break
4157	    ;;
4158	  *)
4159	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4160	    continue # so that we can try to find one that supports BSD flags
4161	    ;;
4162	  esac
4163	  ;;
4164	esac
4165      fi
4166    done
4167    IFS="$lt_save_ifs"
4168  done
4169  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4170fi
4171fi
4172{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4173echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4174NM="$lt_cv_path_NM"
4175
4176{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4177echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4178LN_S=$as_ln_s
4179if test "$LN_S" = "ln -s"; then
4180  { echo "$as_me:$LINENO: result: yes" >&5
4181echo "${ECHO_T}yes" >&6; }
4182else
4183  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4184echo "${ECHO_T}no, using $LN_S" >&6; }
4185fi
4186
4187{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4188echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4189if test "${lt_cv_deplibs_check_method+set}" = set; then
4190  echo $ECHO_N "(cached) $ECHO_C" >&6
4191else
4192  lt_cv_file_magic_cmd='$MAGIC_CMD'
4193lt_cv_file_magic_test_file=
4194lt_cv_deplibs_check_method='unknown'
4195# Need to set the preceding variable on all platforms that support
4196# interlibrary dependencies.
4197# 'none' -- dependencies not supported.
4198# `unknown' -- same as none, but documents that we really don't know.
4199# 'pass_all' -- all dependencies passed with no checks.
4200# 'test_compile' -- check by making test program.
4201# 'file_magic [[regex]]' -- check by looking for files in library path
4202# which responds to the $file_magic_cmd with a given extended regex.
4203# If you have `file' or equivalent on your system and you're not sure
4204# whether `pass_all' will *always* work, you probably want this one.
4205
4206case $host_os in
4207aix4* | aix5*)
4208  lt_cv_deplibs_check_method=pass_all
4209  ;;
4210
4211beos*)
4212  lt_cv_deplibs_check_method=pass_all
4213  ;;
4214
4215bsdi[45]*)
4216  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4217  lt_cv_file_magic_cmd='/usr/bin/file -L'
4218  lt_cv_file_magic_test_file=/shlib/libc.so
4219  ;;
4220
4221cygwin*)
4222  # func_win32_libid is a shell function defined in ltmain.sh
4223  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4224  lt_cv_file_magic_cmd='func_win32_libid'
4225  ;;
4226
4227mingw* | pw32*)
4228  # Base MSYS/MinGW do not provide the 'file' command needed by
4229  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4230  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4231  lt_cv_file_magic_cmd='$OBJDUMP -f'
4232  ;;
4233
4234darwin* | rhapsody*)
4235  lt_cv_deplibs_check_method=pass_all
4236  ;;
4237
4238freebsd* | dragonfly*)
4239  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4240    case $host_cpu in
4241    i*86 )
4242      # Not sure whether the presence of OpenBSD here was a mistake.
4243      # Let's accept both of them until this is cleared up.
4244      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4245      lt_cv_file_magic_cmd=/usr/bin/file
4246      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4247      ;;
4248    esac
4249  else
4250    lt_cv_deplibs_check_method=pass_all
4251  fi
4252  ;;
4253
4254gnu*)
4255  lt_cv_deplibs_check_method=pass_all
4256  ;;
4257
4258hpux10.20* | hpux11*)
4259  lt_cv_file_magic_cmd=/usr/bin/file
4260  case $host_cpu in
4261  ia64*)
4262    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4263    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4264    ;;
4265  hppa*64*)
4266    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]'
4267    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4268    ;;
4269  *)
4270    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4271    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4272    ;;
4273  esac
4274  ;;
4275
4276interix3*)
4277  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4278  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4279  ;;
4280
4281irix5* | irix6* | nonstopux*)
4282  case $LD in
4283  *-32|*"-32 ") libmagic=32-bit;;
4284  *-n32|*"-n32 ") libmagic=N32;;
4285  *-64|*"-64 ") libmagic=64-bit;;
4286  *) libmagic=never-match;;
4287  esac
4288  lt_cv_deplibs_check_method=pass_all
4289  ;;
4290
4291# This must be Linux ELF.
4292linux* | k*bsd*-gnu)
4293  lt_cv_deplibs_check_method=pass_all
4294  ;;
4295
4296netbsd* | netbsdelf*-gnu)
4297  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4298    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4299  else
4300    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4301  fi
4302  ;;
4303
4304newos6*)
4305  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4306  lt_cv_file_magic_cmd=/usr/bin/file
4307  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4308  ;;
4309
4310nto-qnx*)
4311  lt_cv_deplibs_check_method=unknown
4312  ;;
4313
4314openbsd*)
4315  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4316    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4317  else
4318    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4319  fi
4320  ;;
4321
4322osf3* | osf4* | osf5*)
4323  lt_cv_deplibs_check_method=pass_all
4324  ;;
4325
4326solaris*)
4327  lt_cv_deplibs_check_method=pass_all
4328  ;;
4329
4330sysv4 | sysv4.3*)
4331  case $host_vendor in
4332  motorola)
4333    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]'
4334    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4335    ;;
4336  ncr)
4337    lt_cv_deplibs_check_method=pass_all
4338    ;;
4339  sequent)
4340    lt_cv_file_magic_cmd='/bin/file'
4341    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4342    ;;
4343  sni)
4344    lt_cv_file_magic_cmd='/bin/file'
4345    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4346    lt_cv_file_magic_test_file=/lib/libc.so
4347    ;;
4348  siemens)
4349    lt_cv_deplibs_check_method=pass_all
4350    ;;
4351  pc)
4352    lt_cv_deplibs_check_method=pass_all
4353    ;;
4354  esac
4355  ;;
4356
4357sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4358  lt_cv_deplibs_check_method=pass_all
4359  ;;
4360esac
4361
4362fi
4363{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4364echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4365file_magic_cmd=$lt_cv_file_magic_cmd
4366deplibs_check_method=$lt_cv_deplibs_check_method
4367test -z "$deplibs_check_method" && deplibs_check_method=unknown
4368
4369
4370
4371
4372# If no C compiler was specified, use CC.
4373LTCC=${LTCC-"$CC"}
4374
4375# If no C compiler flags were specified, use CFLAGS.
4376LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4377
4378# Allow CC to be a program name with arguments.
4379compiler=$CC
4380
4381
4382# Check whether --enable-libtool-lock was given.
4383if test "${enable_libtool_lock+set}" = set; then
4384  enableval=$enable_libtool_lock;
4385fi
4386
4387test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4388
4389# Some flags need to be propagated to the compiler or linker for good
4390# libtool support.
4391case $host in
4392ia64-*-hpux*)
4393  # Find out which ABI we are using.
4394  echo 'int i;' > conftest.$ac_ext
4395  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396  (eval $ac_compile) 2>&5
4397  ac_status=$?
4398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399  (exit $ac_status); }; then
4400    case `/usr/bin/file conftest.$ac_objext` in
4401    *ELF-32*)
4402      HPUX_IA64_MODE="32"
4403      ;;
4404    *ELF-64*)
4405      HPUX_IA64_MODE="64"
4406      ;;
4407    esac
4408  fi
4409  rm -rf conftest*
4410  ;;
4411*-*-irix6*)
4412  # Find out which ABI we are using.
4413  echo '#line 4413 "configure"' > conftest.$ac_ext
4414  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4415  (eval $ac_compile) 2>&5
4416  ac_status=$?
4417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418  (exit $ac_status); }; then
4419   if test "$lt_cv_prog_gnu_ld" = yes; then
4420    case `/usr/bin/file conftest.$ac_objext` in
4421    *32-bit*)
4422      LD="${LD-ld} -melf32bsmip"
4423      ;;
4424    *N32*)
4425      LD="${LD-ld} -melf32bmipn32"
4426      ;;
4427    *64-bit*)
4428      LD="${LD-ld} -melf64bmip"
4429      ;;
4430    esac
4431   else
4432    case `/usr/bin/file conftest.$ac_objext` in
4433    *32-bit*)
4434      LD="${LD-ld} -32"
4435      ;;
4436    *N32*)
4437      LD="${LD-ld} -n32"
4438      ;;
4439    *64-bit*)
4440      LD="${LD-ld} -64"
4441      ;;
4442    esac
4443   fi
4444  fi
4445  rm -rf conftest*
4446  ;;
4447
4448x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4449  # Find out which ABI we are using.
4450  echo 'int i;' > conftest.$ac_ext
4451  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4452  (eval $ac_compile) 2>&5
4453  ac_status=$?
4454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455  (exit $ac_status); }; then
4456    case `/usr/bin/file conftest.o` in
4457    *32-bit*)
4458      case $host in
4459        x86_64-*linux*)
4460          LD="${LD-ld} -m elf_i386"
4461          ;;
4462        ppc64-*linux*|powerpc64-*linux*)
4463          LD="${LD-ld} -m elf32ppclinux"
4464          ;;
4465        s390x-*linux*)
4466          LD="${LD-ld} -m elf_s390"
4467          ;;
4468        sparc64-*linux*)
4469          LD="${LD-ld} -m elf32_sparc"
4470          ;;
4471      esac
4472      ;;
4473    *64-bit*)
4474      case $host in
4475        x86_64-*linux*)
4476          LD="${LD-ld} -m elf_x86_64"
4477          ;;
4478        ppc*-*linux*|powerpc*-*linux*)
4479          LD="${LD-ld} -m elf64ppc"
4480          ;;
4481        s390*-*linux*)
4482          LD="${LD-ld} -m elf64_s390"
4483          ;;
4484        sparc*-*linux*)
4485          LD="${LD-ld} -m elf64_sparc"
4486          ;;
4487      esac
4488      ;;
4489    esac
4490  fi
4491  rm -rf conftest*
4492  ;;
4493
4494*-*-sco3.2v5*)
4495  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4496  SAVE_CFLAGS="$CFLAGS"
4497  CFLAGS="$CFLAGS -belf"
4498  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4499echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4500if test "${lt_cv_cc_needs_belf+set}" = set; then
4501  echo $ECHO_N "(cached) $ECHO_C" >&6
4502else
4503  ac_ext=c
4504ac_cpp='$CPP $CPPFLAGS'
4505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4507ac_compiler_gnu=$ac_cv_c_compiler_gnu
4508
4509     cat >conftest.$ac_ext <<_ACEOF
4510/* confdefs.h.  */
4511_ACEOF
4512cat confdefs.h >>conftest.$ac_ext
4513cat >>conftest.$ac_ext <<_ACEOF
4514/* end confdefs.h.  */
4515
4516int
4517main ()
4518{
4519
4520  ;
4521  return 0;
4522}
4523_ACEOF
4524rm -f conftest.$ac_objext conftest$ac_exeext
4525if { (ac_try="$ac_link"
4526case "(($ac_try" in
4527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528  *) ac_try_echo=$ac_try;;
4529esac
4530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4531  (eval "$ac_link") 2>conftest.er1
4532  ac_status=$?
4533  grep -v '^ *+' conftest.er1 >conftest.err
4534  rm -f conftest.er1
4535  cat conftest.err >&5
4536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537  (exit $ac_status); } &&
4538	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4539  { (case "(($ac_try" in
4540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541  *) ac_try_echo=$ac_try;;
4542esac
4543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4544  (eval "$ac_try") 2>&5
4545  ac_status=$?
4546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547  (exit $ac_status); }; } &&
4548	 { ac_try='test -s conftest$ac_exeext'
4549  { (case "(($ac_try" in
4550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4551  *) ac_try_echo=$ac_try;;
4552esac
4553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4554  (eval "$ac_try") 2>&5
4555  ac_status=$?
4556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557  (exit $ac_status); }; }; then
4558  lt_cv_cc_needs_belf=yes
4559else
4560  echo "$as_me: failed program was:" >&5
4561sed 's/^/| /' conftest.$ac_ext >&5
4562
4563	lt_cv_cc_needs_belf=no
4564fi
4565
4566rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4567      conftest$ac_exeext conftest.$ac_ext
4568     ac_ext=c
4569ac_cpp='$CPP $CPPFLAGS'
4570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572ac_compiler_gnu=$ac_cv_c_compiler_gnu
4573
4574fi
4575{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4576echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4577  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4578    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4579    CFLAGS="$SAVE_CFLAGS"
4580  fi
4581  ;;
4582sparc*-*solaris*)
4583  # Find out which ABI we are using.
4584  echo 'int i;' > conftest.$ac_ext
4585  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4586  (eval $ac_compile) 2>&5
4587  ac_status=$?
4588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589  (exit $ac_status); }; then
4590    case `/usr/bin/file conftest.o` in
4591    *64-bit*)
4592      case $lt_cv_prog_gnu_ld in
4593      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4594      *)    LD="${LD-ld} -64" ;;
4595      esac
4596      ;;
4597    esac
4598  fi
4599  rm -rf conftest*
4600  ;;
4601
4602
4603esac
4604
4605need_locks="$enable_libtool_lock"
4606
4607
4608ac_ext=c
4609ac_cpp='$CPP $CPPFLAGS'
4610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4612ac_compiler_gnu=$ac_cv_c_compiler_gnu
4613{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4614echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4615# On Suns, sometimes $CPP names a directory.
4616if test -n "$CPP" && test -d "$CPP"; then
4617  CPP=
4618fi
4619if test -z "$CPP"; then
4620  if test "${ac_cv_prog_CPP+set}" = set; then
4621  echo $ECHO_N "(cached) $ECHO_C" >&6
4622else
4623      # Double quotes because CPP needs to be expanded
4624    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4625    do
4626      ac_preproc_ok=false
4627for ac_c_preproc_warn_flag in '' yes
4628do
4629  # Use a header file that comes with gcc, so configuring glibc
4630  # with a fresh cross-compiler works.
4631  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4632  # <limits.h> exists even on freestanding compilers.
4633  # On the NeXT, cc -E runs the code through the compiler's parser,
4634  # not just through cpp. "Syntax error" is here to catch this case.
4635  cat >conftest.$ac_ext <<_ACEOF
4636/* confdefs.h.  */
4637_ACEOF
4638cat confdefs.h >>conftest.$ac_ext
4639cat >>conftest.$ac_ext <<_ACEOF
4640/* end confdefs.h.  */
4641#ifdef __STDC__
4642# include <limits.h>
4643#else
4644# include <assert.h>
4645#endif
4646		     Syntax error
4647_ACEOF
4648if { (ac_try="$ac_cpp conftest.$ac_ext"
4649case "(($ac_try" in
4650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4651  *) ac_try_echo=$ac_try;;
4652esac
4653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4654  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4655  ac_status=$?
4656  grep -v '^ *+' conftest.er1 >conftest.err
4657  rm -f conftest.er1
4658  cat conftest.err >&5
4659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660  (exit $ac_status); } >/dev/null; then
4661  if test -s conftest.err; then
4662    ac_cpp_err=$ac_c_preproc_warn_flag
4663    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4664  else
4665    ac_cpp_err=
4666  fi
4667else
4668  ac_cpp_err=yes
4669fi
4670if test -z "$ac_cpp_err"; then
4671  :
4672else
4673  echo "$as_me: failed program was:" >&5
4674sed 's/^/| /' conftest.$ac_ext >&5
4675
4676  # Broken: fails on valid input.
4677continue
4678fi
4679
4680rm -f conftest.err conftest.$ac_ext
4681
4682  # OK, works on sane cases.  Now check whether nonexistent headers
4683  # can be detected and how.
4684  cat >conftest.$ac_ext <<_ACEOF
4685/* confdefs.h.  */
4686_ACEOF
4687cat confdefs.h >>conftest.$ac_ext
4688cat >>conftest.$ac_ext <<_ACEOF
4689/* end confdefs.h.  */
4690#include <ac_nonexistent.h>
4691_ACEOF
4692if { (ac_try="$ac_cpp conftest.$ac_ext"
4693case "(($ac_try" in
4694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695  *) ac_try_echo=$ac_try;;
4696esac
4697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4698  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4699  ac_status=$?
4700  grep -v '^ *+' conftest.er1 >conftest.err
4701  rm -f conftest.er1
4702  cat conftest.err >&5
4703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704  (exit $ac_status); } >/dev/null; then
4705  if test -s conftest.err; then
4706    ac_cpp_err=$ac_c_preproc_warn_flag
4707    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4708  else
4709    ac_cpp_err=
4710  fi
4711else
4712  ac_cpp_err=yes
4713fi
4714if test -z "$ac_cpp_err"; then
4715  # Broken: success on invalid input.
4716continue
4717else
4718  echo "$as_me: failed program was:" >&5
4719sed 's/^/| /' conftest.$ac_ext >&5
4720
4721  # Passes both tests.
4722ac_preproc_ok=:
4723break
4724fi
4725
4726rm -f conftest.err conftest.$ac_ext
4727
4728done
4729# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4730rm -f conftest.err conftest.$ac_ext
4731if $ac_preproc_ok; then
4732  break
4733fi
4734
4735    done
4736    ac_cv_prog_CPP=$CPP
4737
4738fi
4739  CPP=$ac_cv_prog_CPP
4740else
4741  ac_cv_prog_CPP=$CPP
4742fi
4743{ echo "$as_me:$LINENO: result: $CPP" >&5
4744echo "${ECHO_T}$CPP" >&6; }
4745ac_preproc_ok=false
4746for ac_c_preproc_warn_flag in '' yes
4747do
4748  # Use a header file that comes with gcc, so configuring glibc
4749  # with a fresh cross-compiler works.
4750  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4751  # <limits.h> exists even on freestanding compilers.
4752  # On the NeXT, cc -E runs the code through the compiler's parser,
4753  # not just through cpp. "Syntax error" is here to catch this case.
4754  cat >conftest.$ac_ext <<_ACEOF
4755/* confdefs.h.  */
4756_ACEOF
4757cat confdefs.h >>conftest.$ac_ext
4758cat >>conftest.$ac_ext <<_ACEOF
4759/* end confdefs.h.  */
4760#ifdef __STDC__
4761# include <limits.h>
4762#else
4763# include <assert.h>
4764#endif
4765		     Syntax error
4766_ACEOF
4767if { (ac_try="$ac_cpp conftest.$ac_ext"
4768case "(($ac_try" in
4769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4770  *) ac_try_echo=$ac_try;;
4771esac
4772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4773  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4774  ac_status=$?
4775  grep -v '^ *+' conftest.er1 >conftest.err
4776  rm -f conftest.er1
4777  cat conftest.err >&5
4778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779  (exit $ac_status); } >/dev/null; then
4780  if test -s conftest.err; then
4781    ac_cpp_err=$ac_c_preproc_warn_flag
4782    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4783  else
4784    ac_cpp_err=
4785  fi
4786else
4787  ac_cpp_err=yes
4788fi
4789if test -z "$ac_cpp_err"; then
4790  :
4791else
4792  echo "$as_me: failed program was:" >&5
4793sed 's/^/| /' conftest.$ac_ext >&5
4794
4795  # Broken: fails on valid input.
4796continue
4797fi
4798
4799rm -f conftest.err conftest.$ac_ext
4800
4801  # OK, works on sane cases.  Now check whether nonexistent headers
4802  # can be detected and how.
4803  cat >conftest.$ac_ext <<_ACEOF
4804/* confdefs.h.  */
4805_ACEOF
4806cat confdefs.h >>conftest.$ac_ext
4807cat >>conftest.$ac_ext <<_ACEOF
4808/* end confdefs.h.  */
4809#include <ac_nonexistent.h>
4810_ACEOF
4811if { (ac_try="$ac_cpp conftest.$ac_ext"
4812case "(($ac_try" in
4813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4814  *) ac_try_echo=$ac_try;;
4815esac
4816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4817  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4818  ac_status=$?
4819  grep -v '^ *+' conftest.er1 >conftest.err
4820  rm -f conftest.er1
4821  cat conftest.err >&5
4822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823  (exit $ac_status); } >/dev/null; then
4824  if test -s conftest.err; then
4825    ac_cpp_err=$ac_c_preproc_warn_flag
4826    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4827  else
4828    ac_cpp_err=
4829  fi
4830else
4831  ac_cpp_err=yes
4832fi
4833if test -z "$ac_cpp_err"; then
4834  # Broken: success on invalid input.
4835continue
4836else
4837  echo "$as_me: failed program was:" >&5
4838sed 's/^/| /' conftest.$ac_ext >&5
4839
4840  # Passes both tests.
4841ac_preproc_ok=:
4842break
4843fi
4844
4845rm -f conftest.err conftest.$ac_ext
4846
4847done
4848# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4849rm -f conftest.err conftest.$ac_ext
4850if $ac_preproc_ok; then
4851  :
4852else
4853  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4854See \`config.log' for more details." >&5
4855echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4856See \`config.log' for more details." >&2;}
4857   { (exit 1); exit 1; }; }
4858fi
4859
4860ac_ext=c
4861ac_cpp='$CPP $CPPFLAGS'
4862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4864ac_compiler_gnu=$ac_cv_c_compiler_gnu
4865
4866
4867{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4868echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4869if test "${ac_cv_header_stdc+set}" = set; then
4870  echo $ECHO_N "(cached) $ECHO_C" >&6
4871else
4872  cat >conftest.$ac_ext <<_ACEOF
4873/* confdefs.h.  */
4874_ACEOF
4875cat confdefs.h >>conftest.$ac_ext
4876cat >>conftest.$ac_ext <<_ACEOF
4877/* end confdefs.h.  */
4878#include <stdlib.h>
4879#include <stdarg.h>
4880#include <string.h>
4881#include <float.h>
4882
4883int
4884main ()
4885{
4886
4887  ;
4888  return 0;
4889}
4890_ACEOF
4891rm -f conftest.$ac_objext
4892if { (ac_try="$ac_compile"
4893case "(($ac_try" in
4894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895  *) ac_try_echo=$ac_try;;
4896esac
4897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4898  (eval "$ac_compile") 2>conftest.er1
4899  ac_status=$?
4900  grep -v '^ *+' conftest.er1 >conftest.err
4901  rm -f conftest.er1
4902  cat conftest.err >&5
4903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904  (exit $ac_status); } &&
4905	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4906  { (case "(($ac_try" in
4907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4908  *) ac_try_echo=$ac_try;;
4909esac
4910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4911  (eval "$ac_try") 2>&5
4912  ac_status=$?
4913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914  (exit $ac_status); }; } &&
4915	 { ac_try='test -s conftest.$ac_objext'
4916  { (case "(($ac_try" in
4917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4918  *) ac_try_echo=$ac_try;;
4919esac
4920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4921  (eval "$ac_try") 2>&5
4922  ac_status=$?
4923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924  (exit $ac_status); }; }; then
4925  ac_cv_header_stdc=yes
4926else
4927  echo "$as_me: failed program was:" >&5
4928sed 's/^/| /' conftest.$ac_ext >&5
4929
4930	ac_cv_header_stdc=no
4931fi
4932
4933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4934
4935if test $ac_cv_header_stdc = yes; then
4936  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4937  cat >conftest.$ac_ext <<_ACEOF
4938/* confdefs.h.  */
4939_ACEOF
4940cat confdefs.h >>conftest.$ac_ext
4941cat >>conftest.$ac_ext <<_ACEOF
4942/* end confdefs.h.  */
4943#include <string.h>
4944
4945_ACEOF
4946if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4947  $EGREP "memchr" >/dev/null 2>&1; then
4948  :
4949else
4950  ac_cv_header_stdc=no
4951fi
4952rm -f conftest*
4953
4954fi
4955
4956if test $ac_cv_header_stdc = yes; then
4957  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4958  cat >conftest.$ac_ext <<_ACEOF
4959/* confdefs.h.  */
4960_ACEOF
4961cat confdefs.h >>conftest.$ac_ext
4962cat >>conftest.$ac_ext <<_ACEOF
4963/* end confdefs.h.  */
4964#include <stdlib.h>
4965
4966_ACEOF
4967if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4968  $EGREP "free" >/dev/null 2>&1; then
4969  :
4970else
4971  ac_cv_header_stdc=no
4972fi
4973rm -f conftest*
4974
4975fi
4976
4977if test $ac_cv_header_stdc = yes; then
4978  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4979  if test "$cross_compiling" = yes; then
4980  :
4981else
4982  cat >conftest.$ac_ext <<_ACEOF
4983/* confdefs.h.  */
4984_ACEOF
4985cat confdefs.h >>conftest.$ac_ext
4986cat >>conftest.$ac_ext <<_ACEOF
4987/* end confdefs.h.  */
4988#include <ctype.h>
4989#include <stdlib.h>
4990#if ((' ' & 0x0FF) == 0x020)
4991# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4992# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4993#else
4994# define ISLOWER(c) \
4995		   (('a' <= (c) && (c) <= 'i') \
4996		     || ('j' <= (c) && (c) <= 'r') \
4997		     || ('s' <= (c) && (c) <= 'z'))
4998# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4999#endif
5000
5001#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5002int
5003main ()
5004{
5005  int i;
5006  for (i = 0; i < 256; i++)
5007    if (XOR (islower (i), ISLOWER (i))
5008	|| toupper (i) != TOUPPER (i))
5009      return 2;
5010  return 0;
5011}
5012_ACEOF
5013rm -f conftest$ac_exeext
5014if { (ac_try="$ac_link"
5015case "(($ac_try" in
5016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5017  *) ac_try_echo=$ac_try;;
5018esac
5019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5020  (eval "$ac_link") 2>&5
5021  ac_status=$?
5022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5024  { (case "(($ac_try" in
5025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5026  *) ac_try_echo=$ac_try;;
5027esac
5028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5029  (eval "$ac_try") 2>&5
5030  ac_status=$?
5031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032  (exit $ac_status); }; }; then
5033  :
5034else
5035  echo "$as_me: program exited with status $ac_status" >&5
5036echo "$as_me: failed program was:" >&5
5037sed 's/^/| /' conftest.$ac_ext >&5
5038
5039( exit $ac_status )
5040ac_cv_header_stdc=no
5041fi
5042rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5043fi
5044
5045
5046fi
5047fi
5048{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5049echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5050if test $ac_cv_header_stdc = yes; then
5051
5052cat >>confdefs.h <<\_ACEOF
5053#define STDC_HEADERS 1
5054_ACEOF
5055
5056fi
5057
5058# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5069		  inttypes.h stdint.h unistd.h
5070do
5071as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5072{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5073echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5074if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5075  echo $ECHO_N "(cached) $ECHO_C" >&6
5076else
5077  cat >conftest.$ac_ext <<_ACEOF
5078/* confdefs.h.  */
5079_ACEOF
5080cat confdefs.h >>conftest.$ac_ext
5081cat >>conftest.$ac_ext <<_ACEOF
5082/* end confdefs.h.  */
5083$ac_includes_default
5084
5085#include <$ac_header>
5086_ACEOF
5087rm -f conftest.$ac_objext
5088if { (ac_try="$ac_compile"
5089case "(($ac_try" in
5090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5091  *) ac_try_echo=$ac_try;;
5092esac
5093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5094  (eval "$ac_compile") 2>conftest.er1
5095  ac_status=$?
5096  grep -v '^ *+' conftest.er1 >conftest.err
5097  rm -f conftest.er1
5098  cat conftest.err >&5
5099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100  (exit $ac_status); } &&
5101	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5102  { (case "(($ac_try" in
5103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5104  *) ac_try_echo=$ac_try;;
5105esac
5106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5107  (eval "$ac_try") 2>&5
5108  ac_status=$?
5109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110  (exit $ac_status); }; } &&
5111	 { ac_try='test -s conftest.$ac_objext'
5112  { (case "(($ac_try" in
5113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114  *) ac_try_echo=$ac_try;;
5115esac
5116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5117  (eval "$ac_try") 2>&5
5118  ac_status=$?
5119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120  (exit $ac_status); }; }; then
5121  eval "$as_ac_Header=yes"
5122else
5123  echo "$as_me: failed program was:" >&5
5124sed 's/^/| /' conftest.$ac_ext >&5
5125
5126	eval "$as_ac_Header=no"
5127fi
5128
5129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5130fi
5131ac_res=`eval echo '${'$as_ac_Header'}'`
5132	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5133echo "${ECHO_T}$ac_res" >&6; }
5134if test `eval echo '${'$as_ac_Header'}'` = yes; then
5135  cat >>confdefs.h <<_ACEOF
5136#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5137_ACEOF
5138
5139fi
5140
5141done
5142
5143
5144
5145for ac_header in dlfcn.h
5146do
5147as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5148if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5149  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5150echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5151if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5152  echo $ECHO_N "(cached) $ECHO_C" >&6
5153fi
5154ac_res=`eval echo '${'$as_ac_Header'}'`
5155	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5156echo "${ECHO_T}$ac_res" >&6; }
5157else
5158  # Is the header compilable?
5159{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5160echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5161cat >conftest.$ac_ext <<_ACEOF
5162/* confdefs.h.  */
5163_ACEOF
5164cat confdefs.h >>conftest.$ac_ext
5165cat >>conftest.$ac_ext <<_ACEOF
5166/* end confdefs.h.  */
5167$ac_includes_default
5168#include <$ac_header>
5169_ACEOF
5170rm -f conftest.$ac_objext
5171if { (ac_try="$ac_compile"
5172case "(($ac_try" in
5173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5174  *) ac_try_echo=$ac_try;;
5175esac
5176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5177  (eval "$ac_compile") 2>conftest.er1
5178  ac_status=$?
5179  grep -v '^ *+' conftest.er1 >conftest.err
5180  rm -f conftest.er1
5181  cat conftest.err >&5
5182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183  (exit $ac_status); } &&
5184	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5185  { (case "(($ac_try" in
5186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187  *) ac_try_echo=$ac_try;;
5188esac
5189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5190  (eval "$ac_try") 2>&5
5191  ac_status=$?
5192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193  (exit $ac_status); }; } &&
5194	 { ac_try='test -s conftest.$ac_objext'
5195  { (case "(($ac_try" in
5196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197  *) ac_try_echo=$ac_try;;
5198esac
5199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200  (eval "$ac_try") 2>&5
5201  ac_status=$?
5202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203  (exit $ac_status); }; }; then
5204  ac_header_compiler=yes
5205else
5206  echo "$as_me: failed program was:" >&5
5207sed 's/^/| /' conftest.$ac_ext >&5
5208
5209	ac_header_compiler=no
5210fi
5211
5212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5213{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5214echo "${ECHO_T}$ac_header_compiler" >&6; }
5215
5216# Is the header present?
5217{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5218echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5219cat >conftest.$ac_ext <<_ACEOF
5220/* confdefs.h.  */
5221_ACEOF
5222cat confdefs.h >>conftest.$ac_ext
5223cat >>conftest.$ac_ext <<_ACEOF
5224/* end confdefs.h.  */
5225#include <$ac_header>
5226_ACEOF
5227if { (ac_try="$ac_cpp conftest.$ac_ext"
5228case "(($ac_try" in
5229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5230  *) ac_try_echo=$ac_try;;
5231esac
5232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5233  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5234  ac_status=$?
5235  grep -v '^ *+' conftest.er1 >conftest.err
5236  rm -f conftest.er1
5237  cat conftest.err >&5
5238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239  (exit $ac_status); } >/dev/null; then
5240  if test -s conftest.err; then
5241    ac_cpp_err=$ac_c_preproc_warn_flag
5242    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5243  else
5244    ac_cpp_err=
5245  fi
5246else
5247  ac_cpp_err=yes
5248fi
5249if test -z "$ac_cpp_err"; then
5250  ac_header_preproc=yes
5251else
5252  echo "$as_me: failed program was:" >&5
5253sed 's/^/| /' conftest.$ac_ext >&5
5254
5255  ac_header_preproc=no
5256fi
5257
5258rm -f conftest.err conftest.$ac_ext
5259{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5260echo "${ECHO_T}$ac_header_preproc" >&6; }
5261
5262# So?  What about this header?
5263case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5264  yes:no: )
5265    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5266echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5267    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5268echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5269    ac_header_preproc=yes
5270    ;;
5271  no:yes:* )
5272    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5273echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5274    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5275echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5276    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5277echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5278    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5279echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5280    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5281echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5282    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5283echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5284    ( cat <<\_ASBOX
5285## ------------------------------------------ ##
5286## Report this to thrulay-users@internet2.edu ##
5287## ------------------------------------------ ##
5288_ASBOX
5289     ) | sed "s/^/$as_me: WARNING:     /" >&2
5290    ;;
5291esac
5292{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5293echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5294if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5295  echo $ECHO_N "(cached) $ECHO_C" >&6
5296else
5297  eval "$as_ac_Header=\$ac_header_preproc"
5298fi
5299ac_res=`eval echo '${'$as_ac_Header'}'`
5300	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5301echo "${ECHO_T}$ac_res" >&6; }
5302
5303fi
5304if test `eval echo '${'$as_ac_Header'}'` = yes; then
5305  cat >>confdefs.h <<_ACEOF
5306#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5307_ACEOF
5308
5309fi
5310
5311done
5312
5313ac_ext=cpp
5314ac_cpp='$CXXCPP $CPPFLAGS'
5315ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5316ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5317ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5318if test -z "$CXX"; then
5319  if test -n "$CCC"; then
5320    CXX=$CCC
5321  else
5322    if test -n "$ac_tool_prefix"; then
5323  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5324  do
5325    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5326set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5327{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5329if test "${ac_cv_prog_CXX+set}" = set; then
5330  echo $ECHO_N "(cached) $ECHO_C" >&6
5331else
5332  if test -n "$CXX"; then
5333  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5334else
5335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336for as_dir in $PATH
5337do
5338  IFS=$as_save_IFS
5339  test -z "$as_dir" && as_dir=.
5340  for ac_exec_ext in '' $ac_executable_extensions; do
5341  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5342    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5343    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5344    break 2
5345  fi
5346done
5347done
5348IFS=$as_save_IFS
5349
5350fi
5351fi
5352CXX=$ac_cv_prog_CXX
5353if test -n "$CXX"; then
5354  { echo "$as_me:$LINENO: result: $CXX" >&5
5355echo "${ECHO_T}$CXX" >&6; }
5356else
5357  { echo "$as_me:$LINENO: result: no" >&5
5358echo "${ECHO_T}no" >&6; }
5359fi
5360
5361
5362    test -n "$CXX" && break
5363  done
5364fi
5365if test -z "$CXX"; then
5366  ac_ct_CXX=$CXX
5367  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5368do
5369  # Extract the first word of "$ac_prog", so it can be a program name with args.
5370set dummy $ac_prog; ac_word=$2
5371{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5373if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5374  echo $ECHO_N "(cached) $ECHO_C" >&6
5375else
5376  if test -n "$ac_ct_CXX"; then
5377  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5378else
5379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380for as_dir in $PATH
5381do
5382  IFS=$as_save_IFS
5383  test -z "$as_dir" && as_dir=.
5384  for ac_exec_ext in '' $ac_executable_extensions; do
5385  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5386    ac_cv_prog_ac_ct_CXX="$ac_prog"
5387    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5388    break 2
5389  fi
5390done
5391done
5392IFS=$as_save_IFS
5393
5394fi
5395fi
5396ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5397if test -n "$ac_ct_CXX"; then
5398  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5399echo "${ECHO_T}$ac_ct_CXX" >&6; }
5400else
5401  { echo "$as_me:$LINENO: result: no" >&5
5402echo "${ECHO_T}no" >&6; }
5403fi
5404
5405
5406  test -n "$ac_ct_CXX" && break
5407done
5408
5409  if test "x$ac_ct_CXX" = x; then
5410    CXX="g++"
5411  else
5412    case $cross_compiling:$ac_tool_warned in
5413yes:)
5414{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5415whose name does not start with the host triplet.  If you think this
5416configuration is useful to you, please write to autoconf@gnu.org." >&5
5417echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5418whose name does not start with the host triplet.  If you think this
5419configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5420ac_tool_warned=yes ;;
5421esac
5422    CXX=$ac_ct_CXX
5423  fi
5424fi
5425
5426  fi
5427fi
5428# Provide some information about the compiler.
5429echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5430ac_compiler=`set X $ac_compile; echo $2`
5431{ (ac_try="$ac_compiler --version >&5"
5432case "(($ac_try" in
5433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5434  *) ac_try_echo=$ac_try;;
5435esac
5436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5437  (eval "$ac_compiler --version >&5") 2>&5
5438  ac_status=$?
5439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440  (exit $ac_status); }
5441{ (ac_try="$ac_compiler -v >&5"
5442case "(($ac_try" in
5443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5444  *) ac_try_echo=$ac_try;;
5445esac
5446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5447  (eval "$ac_compiler -v >&5") 2>&5
5448  ac_status=$?
5449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450  (exit $ac_status); }
5451{ (ac_try="$ac_compiler -V >&5"
5452case "(($ac_try" in
5453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5454  *) ac_try_echo=$ac_try;;
5455esac
5456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5457  (eval "$ac_compiler -V >&5") 2>&5
5458  ac_status=$?
5459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460  (exit $ac_status); }
5461
5462{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5463echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5464if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5465  echo $ECHO_N "(cached) $ECHO_C" >&6
5466else
5467  cat >conftest.$ac_ext <<_ACEOF
5468/* confdefs.h.  */
5469_ACEOF
5470cat confdefs.h >>conftest.$ac_ext
5471cat >>conftest.$ac_ext <<_ACEOF
5472/* end confdefs.h.  */
5473
5474int
5475main ()
5476{
5477#ifndef __GNUC__
5478       choke me
5479#endif
5480
5481  ;
5482  return 0;
5483}
5484_ACEOF
5485rm -f conftest.$ac_objext
5486if { (ac_try="$ac_compile"
5487case "(($ac_try" in
5488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5489  *) ac_try_echo=$ac_try;;
5490esac
5491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5492  (eval "$ac_compile") 2>conftest.er1
5493  ac_status=$?
5494  grep -v '^ *+' conftest.er1 >conftest.err
5495  rm -f conftest.er1
5496  cat conftest.err >&5
5497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498  (exit $ac_status); } &&
5499	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5500  { (case "(($ac_try" in
5501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502  *) ac_try_echo=$ac_try;;
5503esac
5504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5505  (eval "$ac_try") 2>&5
5506  ac_status=$?
5507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508  (exit $ac_status); }; } &&
5509	 { ac_try='test -s conftest.$ac_objext'
5510  { (case "(($ac_try" in
5511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5512  *) ac_try_echo=$ac_try;;
5513esac
5514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5515  (eval "$ac_try") 2>&5
5516  ac_status=$?
5517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518  (exit $ac_status); }; }; then
5519  ac_compiler_gnu=yes
5520else
5521  echo "$as_me: failed program was:" >&5
5522sed 's/^/| /' conftest.$ac_ext >&5
5523
5524	ac_compiler_gnu=no
5525fi
5526
5527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5528ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5529
5530fi
5531{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5532echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5533GXX=`test $ac_compiler_gnu = yes && echo yes`
5534ac_test_CXXFLAGS=${CXXFLAGS+set}
5535ac_save_CXXFLAGS=$CXXFLAGS
5536{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5537echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5538if test "${ac_cv_prog_cxx_g+set}" = set; then
5539  echo $ECHO_N "(cached) $ECHO_C" >&6
5540else
5541  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5542   ac_cxx_werror_flag=yes
5543   ac_cv_prog_cxx_g=no
5544   CXXFLAGS="-g"
5545   cat >conftest.$ac_ext <<_ACEOF
5546/* confdefs.h.  */
5547_ACEOF
5548cat confdefs.h >>conftest.$ac_ext
5549cat >>conftest.$ac_ext <<_ACEOF
5550/* end confdefs.h.  */
5551
5552int
5553main ()
5554{
5555
5556  ;
5557  return 0;
5558}
5559_ACEOF
5560rm -f conftest.$ac_objext
5561if { (ac_try="$ac_compile"
5562case "(($ac_try" in
5563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5564  *) ac_try_echo=$ac_try;;
5565esac
5566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5567  (eval "$ac_compile") 2>conftest.er1
5568  ac_status=$?
5569  grep -v '^ *+' conftest.er1 >conftest.err
5570  rm -f conftest.er1
5571  cat conftest.err >&5
5572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573  (exit $ac_status); } &&
5574	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5575  { (case "(($ac_try" in
5576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5577  *) ac_try_echo=$ac_try;;
5578esac
5579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5580  (eval "$ac_try") 2>&5
5581  ac_status=$?
5582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583  (exit $ac_status); }; } &&
5584	 { ac_try='test -s conftest.$ac_objext'
5585  { (case "(($ac_try" in
5586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5587  *) ac_try_echo=$ac_try;;
5588esac
5589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5590  (eval "$ac_try") 2>&5
5591  ac_status=$?
5592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593  (exit $ac_status); }; }; then
5594  ac_cv_prog_cxx_g=yes
5595else
5596  echo "$as_me: failed program was:" >&5
5597sed 's/^/| /' conftest.$ac_ext >&5
5598
5599	CXXFLAGS=""
5600      cat >conftest.$ac_ext <<_ACEOF
5601/* confdefs.h.  */
5602_ACEOF
5603cat confdefs.h >>conftest.$ac_ext
5604cat >>conftest.$ac_ext <<_ACEOF
5605/* end confdefs.h.  */
5606
5607int
5608main ()
5609{
5610
5611  ;
5612  return 0;
5613}
5614_ACEOF
5615rm -f conftest.$ac_objext
5616if { (ac_try="$ac_compile"
5617case "(($ac_try" in
5618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619  *) ac_try_echo=$ac_try;;
5620esac
5621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5622  (eval "$ac_compile") 2>conftest.er1
5623  ac_status=$?
5624  grep -v '^ *+' conftest.er1 >conftest.err
5625  rm -f conftest.er1
5626  cat conftest.err >&5
5627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628  (exit $ac_status); } &&
5629	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5630  { (case "(($ac_try" in
5631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5632  *) ac_try_echo=$ac_try;;
5633esac
5634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5635  (eval "$ac_try") 2>&5
5636  ac_status=$?
5637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638  (exit $ac_status); }; } &&
5639	 { ac_try='test -s conftest.$ac_objext'
5640  { (case "(($ac_try" in
5641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5642  *) ac_try_echo=$ac_try;;
5643esac
5644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5645  (eval "$ac_try") 2>&5
5646  ac_status=$?
5647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648  (exit $ac_status); }; }; then
5649  :
5650else
5651  echo "$as_me: failed program was:" >&5
5652sed 's/^/| /' conftest.$ac_ext >&5
5653
5654	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5655	 CXXFLAGS="-g"
5656	 cat >conftest.$ac_ext <<_ACEOF
5657/* confdefs.h.  */
5658_ACEOF
5659cat confdefs.h >>conftest.$ac_ext
5660cat >>conftest.$ac_ext <<_ACEOF
5661/* end confdefs.h.  */
5662
5663int
5664main ()
5665{
5666
5667  ;
5668  return 0;
5669}
5670_ACEOF
5671rm -f conftest.$ac_objext
5672if { (ac_try="$ac_compile"
5673case "(($ac_try" in
5674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5675  *) ac_try_echo=$ac_try;;
5676esac
5677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5678  (eval "$ac_compile") 2>conftest.er1
5679  ac_status=$?
5680  grep -v '^ *+' conftest.er1 >conftest.err
5681  rm -f conftest.er1
5682  cat conftest.err >&5
5683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684  (exit $ac_status); } &&
5685	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5686  { (case "(($ac_try" in
5687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688  *) ac_try_echo=$ac_try;;
5689esac
5690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691  (eval "$ac_try") 2>&5
5692  ac_status=$?
5693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694  (exit $ac_status); }; } &&
5695	 { ac_try='test -s conftest.$ac_objext'
5696  { (case "(($ac_try" in
5697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5698  *) ac_try_echo=$ac_try;;
5699esac
5700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5701  (eval "$ac_try") 2>&5
5702  ac_status=$?
5703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704  (exit $ac_status); }; }; then
5705  ac_cv_prog_cxx_g=yes
5706else
5707  echo "$as_me: failed program was:" >&5
5708sed 's/^/| /' conftest.$ac_ext >&5
5709
5710
5711fi
5712
5713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714fi
5715
5716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5717fi
5718
5719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5721fi
5722{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5723echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5724if test "$ac_test_CXXFLAGS" = set; then
5725  CXXFLAGS=$ac_save_CXXFLAGS
5726elif test $ac_cv_prog_cxx_g = yes; then
5727  if test "$GXX" = yes; then
5728    CXXFLAGS="-g -O2"
5729  else
5730    CXXFLAGS="-g"
5731  fi
5732else
5733  if test "$GXX" = yes; then
5734    CXXFLAGS="-O2"
5735  else
5736    CXXFLAGS=
5737  fi
5738fi
5739ac_ext=cpp
5740ac_cpp='$CXXCPP $CPPFLAGS'
5741ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5742ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5743ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5744
5745depcc="$CXX"  am_compiler_list=
5746
5747{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5748echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5749if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5750  echo $ECHO_N "(cached) $ECHO_C" >&6
5751else
5752  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5753  # We make a subdir and do the tests there.  Otherwise we can end up
5754  # making bogus files that we don't know about and never remove.  For
5755  # instance it was reported that on HP-UX the gcc test will end up
5756  # making a dummy file named `D' -- because `-MD' means `put the output
5757  # in D'.
5758  mkdir conftest.dir
5759  # Copy depcomp to subdir because otherwise we won't find it if we're
5760  # using a relative directory.
5761  cp "$am_depcomp" conftest.dir
5762  cd conftest.dir
5763  # We will build objects and dependencies in a subdirectory because
5764  # it helps to detect inapplicable dependency modes.  For instance
5765  # both Tru64's cc and ICC support -MD to output dependencies as a
5766  # side effect of compilation, but ICC will put the dependencies in
5767  # the current directory while Tru64 will put them in the object
5768  # directory.
5769  mkdir sub
5770
5771  am_cv_CXX_dependencies_compiler_type=none
5772  if test "$am_compiler_list" = ""; then
5773     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5774  fi
5775  for depmode in $am_compiler_list; do
5776    # Setup a source with many dependencies, because some compilers
5777    # like to wrap large dependency lists on column 80 (with \), and
5778    # we should not choose a depcomp mode which is confused by this.
5779    #
5780    # We need to recreate these files for each test, as the compiler may
5781    # overwrite some of them when testing with obscure command lines.
5782    # This happens at least with the AIX C compiler.
5783    : > sub/conftest.c
5784    for i in 1 2 3 4 5 6; do
5785      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5786      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5787      # Solaris 8's {/usr,}/bin/sh.
5788      touch sub/conftst$i.h
5789    done
5790    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5791
5792    case $depmode in
5793    nosideeffect)
5794      # after this tag, mechanisms are not by side-effect, so they'll
5795      # only be used when explicitly requested
5796      if test "x$enable_dependency_tracking" = xyes; then
5797	continue
5798      else
5799	break
5800      fi
5801      ;;
5802    none) break ;;
5803    esac
5804    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5805    # mode.  It turns out that the SunPro C++ compiler does not properly
5806    # handle `-M -o', and we need to detect this.
5807    if depmode=$depmode \
5808       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5809       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5810       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5811         >/dev/null 2>conftest.err &&
5812       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5813       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5814       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5815      # icc doesn't choke on unknown options, it will just issue warnings
5816      # or remarks (even with -Werror).  So we grep stderr for any message
5817      # that says an option was ignored or not supported.
5818      # When given -MP, icc 7.0 and 7.1 complain thusly:
5819      #   icc: Command line warning: ignoring option '-M'; no argument required
5820      # The diagnosis changed in icc 8.0:
5821      #   icc: Command line remark: option '-MP' not supported
5822      if (grep 'ignoring option' conftest.err ||
5823          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5824        am_cv_CXX_dependencies_compiler_type=$depmode
5825        break
5826      fi
5827    fi
5828  done
5829
5830  cd ..
5831  rm -rf conftest.dir
5832else
5833  am_cv_CXX_dependencies_compiler_type=none
5834fi
5835
5836fi
5837{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5838echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5839CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5840
5841
5842
5843if
5844  test "x$enable_dependency_tracking" != xno \
5845  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5846  am__fastdepCXX_TRUE=
5847  am__fastdepCXX_FALSE='#'
5848else
5849  am__fastdepCXX_TRUE='#'
5850  am__fastdepCXX_FALSE=
5851fi
5852
5853
5854
5855
5856if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5857    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5858    (test "X$CXX" != "Xg++"))) ; then
5859  ac_ext=cpp
5860ac_cpp='$CXXCPP $CPPFLAGS'
5861ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5862ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5863ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5864{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5865echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5866if test -z "$CXXCPP"; then
5867  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5868  echo $ECHO_N "(cached) $ECHO_C" >&6
5869else
5870      # Double quotes because CXXCPP needs to be expanded
5871    for CXXCPP in "$CXX -E" "/lib/cpp"
5872    do
5873      ac_preproc_ok=false
5874for ac_cxx_preproc_warn_flag in '' yes
5875do
5876  # Use a header file that comes with gcc, so configuring glibc
5877  # with a fresh cross-compiler works.
5878  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5879  # <limits.h> exists even on freestanding compilers.
5880  # On the NeXT, cc -E runs the code through the compiler's parser,
5881  # not just through cpp. "Syntax error" is here to catch this case.
5882  cat >conftest.$ac_ext <<_ACEOF
5883/* confdefs.h.  */
5884_ACEOF
5885cat confdefs.h >>conftest.$ac_ext
5886cat >>conftest.$ac_ext <<_ACEOF
5887/* end confdefs.h.  */
5888#ifdef __STDC__
5889# include <limits.h>
5890#else
5891# include <assert.h>
5892#endif
5893		     Syntax error
5894_ACEOF
5895if { (ac_try="$ac_cpp conftest.$ac_ext"
5896case "(($ac_try" in
5897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898  *) ac_try_echo=$ac_try;;
5899esac
5900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5902  ac_status=$?
5903  grep -v '^ *+' conftest.er1 >conftest.err
5904  rm -f conftest.er1
5905  cat conftest.err >&5
5906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907  (exit $ac_status); } >/dev/null; then
5908  if test -s conftest.err; then
5909    ac_cpp_err=$ac_cxx_preproc_warn_flag
5910    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5911  else
5912    ac_cpp_err=
5913  fi
5914else
5915  ac_cpp_err=yes
5916fi
5917if test -z "$ac_cpp_err"; then
5918  :
5919else
5920  echo "$as_me: failed program was:" >&5
5921sed 's/^/| /' conftest.$ac_ext >&5
5922
5923  # Broken: fails on valid input.
5924continue
5925fi
5926
5927rm -f conftest.err conftest.$ac_ext
5928
5929  # OK, works on sane cases.  Now check whether nonexistent headers
5930  # can be detected and how.
5931  cat >conftest.$ac_ext <<_ACEOF
5932/* confdefs.h.  */
5933_ACEOF
5934cat confdefs.h >>conftest.$ac_ext
5935cat >>conftest.$ac_ext <<_ACEOF
5936/* end confdefs.h.  */
5937#include <ac_nonexistent.h>
5938_ACEOF
5939if { (ac_try="$ac_cpp conftest.$ac_ext"
5940case "(($ac_try" in
5941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942  *) ac_try_echo=$ac_try;;
5943esac
5944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5945  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5946  ac_status=$?
5947  grep -v '^ *+' conftest.er1 >conftest.err
5948  rm -f conftest.er1
5949  cat conftest.err >&5
5950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951  (exit $ac_status); } >/dev/null; then
5952  if test -s conftest.err; then
5953    ac_cpp_err=$ac_cxx_preproc_warn_flag
5954    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5955  else
5956    ac_cpp_err=
5957  fi
5958else
5959  ac_cpp_err=yes
5960fi
5961if test -z "$ac_cpp_err"; then
5962  # Broken: success on invalid input.
5963continue
5964else
5965  echo "$as_me: failed program was:" >&5
5966sed 's/^/| /' conftest.$ac_ext >&5
5967
5968  # Passes both tests.
5969ac_preproc_ok=:
5970break
5971fi
5972
5973rm -f conftest.err conftest.$ac_ext
5974
5975done
5976# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5977rm -f conftest.err conftest.$ac_ext
5978if $ac_preproc_ok; then
5979  break
5980fi
5981
5982    done
5983    ac_cv_prog_CXXCPP=$CXXCPP
5984
5985fi
5986  CXXCPP=$ac_cv_prog_CXXCPP
5987else
5988  ac_cv_prog_CXXCPP=$CXXCPP
5989fi
5990{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5991echo "${ECHO_T}$CXXCPP" >&6; }
5992ac_preproc_ok=false
5993for ac_cxx_preproc_warn_flag in '' yes
5994do
5995  # Use a header file that comes with gcc, so configuring glibc
5996  # with a fresh cross-compiler works.
5997  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5998  # <limits.h> exists even on freestanding compilers.
5999  # On the NeXT, cc -E runs the code through the compiler's parser,
6000  # not just through cpp. "Syntax error" is here to catch this case.
6001  cat >conftest.$ac_ext <<_ACEOF
6002/* confdefs.h.  */
6003_ACEOF
6004cat confdefs.h >>conftest.$ac_ext
6005cat >>conftest.$ac_ext <<_ACEOF
6006/* end confdefs.h.  */
6007#ifdef __STDC__
6008# include <limits.h>
6009#else
6010# include <assert.h>
6011#endif
6012		     Syntax error
6013_ACEOF
6014if { (ac_try="$ac_cpp conftest.$ac_ext"
6015case "(($ac_try" in
6016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6017  *) ac_try_echo=$ac_try;;
6018esac
6019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6020  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6021  ac_status=$?
6022  grep -v '^ *+' conftest.er1 >conftest.err
6023  rm -f conftest.er1
6024  cat conftest.err >&5
6025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026  (exit $ac_status); } >/dev/null; then
6027  if test -s conftest.err; then
6028    ac_cpp_err=$ac_cxx_preproc_warn_flag
6029    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6030  else
6031    ac_cpp_err=
6032  fi
6033else
6034  ac_cpp_err=yes
6035fi
6036if test -z "$ac_cpp_err"; then
6037  :
6038else
6039  echo "$as_me: failed program was:" >&5
6040sed 's/^/| /' conftest.$ac_ext >&5
6041
6042  # Broken: fails on valid input.
6043continue
6044fi
6045
6046rm -f conftest.err conftest.$ac_ext
6047
6048  # OK, works on sane cases.  Now check whether nonexistent headers
6049  # can be detected and how.
6050  cat >conftest.$ac_ext <<_ACEOF
6051/* confdefs.h.  */
6052_ACEOF
6053cat confdefs.h >>conftest.$ac_ext
6054cat >>conftest.$ac_ext <<_ACEOF
6055/* end confdefs.h.  */
6056#include <ac_nonexistent.h>
6057_ACEOF
6058if { (ac_try="$ac_cpp conftest.$ac_ext"
6059case "(($ac_try" in
6060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061  *) ac_try_echo=$ac_try;;
6062esac
6063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6064  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6065  ac_status=$?
6066  grep -v '^ *+' conftest.er1 >conftest.err
6067  rm -f conftest.er1
6068  cat conftest.err >&5
6069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070  (exit $ac_status); } >/dev/null; then
6071  if test -s conftest.err; then
6072    ac_cpp_err=$ac_cxx_preproc_warn_flag
6073    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6074  else
6075    ac_cpp_err=
6076  fi
6077else
6078  ac_cpp_err=yes
6079fi
6080if test -z "$ac_cpp_err"; then
6081  # Broken: success on invalid input.
6082continue
6083else
6084  echo "$as_me: failed program was:" >&5
6085sed 's/^/| /' conftest.$ac_ext >&5
6086
6087  # Passes both tests.
6088ac_preproc_ok=:
6089break
6090fi
6091
6092rm -f conftest.err conftest.$ac_ext
6093
6094done
6095# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6096rm -f conftest.err conftest.$ac_ext
6097if $ac_preproc_ok; then
6098  :
6099else
6100  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6101See \`config.log' for more details." >&5
6102echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6103See \`config.log' for more details." >&2;}
6104   { (exit 1); exit 1; }; }
6105fi
6106
6107ac_ext=cpp
6108ac_cpp='$CXXCPP $CPPFLAGS'
6109ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6110ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6111ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6112
6113fi
6114
6115
6116ac_ext=f
6117ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6118ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6119ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6120if test -n "$ac_tool_prefix"; then
6121  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
6122  do
6123    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6124set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6125{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6127if test "${ac_cv_prog_F77+set}" = set; then
6128  echo $ECHO_N "(cached) $ECHO_C" >&6
6129else
6130  if test -n "$F77"; then
6131  ac_cv_prog_F77="$F77" # Let the user override the test.
6132else
6133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134for as_dir in $PATH
6135do
6136  IFS=$as_save_IFS
6137  test -z "$as_dir" && as_dir=.
6138  for ac_exec_ext in '' $ac_executable_extensions; do
6139  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6140    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6141    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6142    break 2
6143  fi
6144done
6145done
6146IFS=$as_save_IFS
6147
6148fi
6149fi
6150F77=$ac_cv_prog_F77
6151if test -n "$F77"; then
6152  { echo "$as_me:$LINENO: result: $F77" >&5
6153echo "${ECHO_T}$F77" >&6; }
6154else
6155  { echo "$as_me:$LINENO: result: no" >&5
6156echo "${ECHO_T}no" >&6; }
6157fi
6158
6159
6160    test -n "$F77" && break
6161  done
6162fi
6163if test -z "$F77"; then
6164  ac_ct_F77=$F77
6165  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
6166do
6167  # Extract the first word of "$ac_prog", so it can be a program name with args.
6168set dummy $ac_prog; ac_word=$2
6169{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6171if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6172  echo $ECHO_N "(cached) $ECHO_C" >&6
6173else
6174  if test -n "$ac_ct_F77"; then
6175  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6176else
6177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178for as_dir in $PATH
6179do
6180  IFS=$as_save_IFS
6181  test -z "$as_dir" && as_dir=.
6182  for ac_exec_ext in '' $ac_executable_extensions; do
6183  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6184    ac_cv_prog_ac_ct_F77="$ac_prog"
6185    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6186    break 2
6187  fi
6188done
6189done
6190IFS=$as_save_IFS
6191
6192fi
6193fi
6194ac_ct_F77=$ac_cv_prog_ac_ct_F77
6195if test -n "$ac_ct_F77"; then
6196  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6197echo "${ECHO_T}$ac_ct_F77" >&6; }
6198else
6199  { echo "$as_me:$LINENO: result: no" >&5
6200echo "${ECHO_T}no" >&6; }
6201fi
6202
6203
6204  test -n "$ac_ct_F77" && break
6205done
6206
6207  if test "x$ac_ct_F77" = x; then
6208    F77=""
6209  else
6210    case $cross_compiling:$ac_tool_warned in
6211yes:)
6212{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6213whose name does not start with the host triplet.  If you think this
6214configuration is useful to you, please write to autoconf@gnu.org." >&5
6215echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6216whose name does not start with the host triplet.  If you think this
6217configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6218ac_tool_warned=yes ;;
6219esac
6220    F77=$ac_ct_F77
6221  fi
6222fi
6223
6224
6225# Provide some information about the compiler.
6226echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6227ac_compiler=`set X $ac_compile; echo $2`
6228{ (ac_try="$ac_compiler --version >&5"
6229case "(($ac_try" in
6230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6231  *) ac_try_echo=$ac_try;;
6232esac
6233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6234  (eval "$ac_compiler --version >&5") 2>&5
6235  ac_status=$?
6236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237  (exit $ac_status); }
6238{ (ac_try="$ac_compiler -v >&5"
6239case "(($ac_try" in
6240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6241  *) ac_try_echo=$ac_try;;
6242esac
6243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6244  (eval "$ac_compiler -v >&5") 2>&5
6245  ac_status=$?
6246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247  (exit $ac_status); }
6248{ (ac_try="$ac_compiler -V >&5"
6249case "(($ac_try" in
6250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251  *) ac_try_echo=$ac_try;;
6252esac
6253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254  (eval "$ac_compiler -V >&5") 2>&5
6255  ac_status=$?
6256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257  (exit $ac_status); }
6258rm -f a.out
6259
6260# If we don't use `.F' as extension, the preprocessor is not run on the
6261# input file.  (Note that this only needs to work for GNU compilers.)
6262ac_save_ext=$ac_ext
6263ac_ext=F
6264{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6265echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6266if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6267  echo $ECHO_N "(cached) $ECHO_C" >&6
6268else
6269  cat >conftest.$ac_ext <<_ACEOF
6270      program main
6271#ifndef __GNUC__
6272       choke me
6273#endif
6274
6275      end
6276_ACEOF
6277rm -f conftest.$ac_objext
6278if { (ac_try="$ac_compile"
6279case "(($ac_try" in
6280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281  *) ac_try_echo=$ac_try;;
6282esac
6283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284  (eval "$ac_compile") 2>conftest.er1
6285  ac_status=$?
6286  grep -v '^ *+' conftest.er1 >conftest.err
6287  rm -f conftest.er1
6288  cat conftest.err >&5
6289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290  (exit $ac_status); } &&
6291	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6292  { (case "(($ac_try" in
6293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6294  *) ac_try_echo=$ac_try;;
6295esac
6296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6297  (eval "$ac_try") 2>&5
6298  ac_status=$?
6299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300  (exit $ac_status); }; } &&
6301	 { ac_try='test -s conftest.$ac_objext'
6302  { (case "(($ac_try" in
6303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6304  *) ac_try_echo=$ac_try;;
6305esac
6306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6307  (eval "$ac_try") 2>&5
6308  ac_status=$?
6309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310  (exit $ac_status); }; }; then
6311  ac_compiler_gnu=yes
6312else
6313  echo "$as_me: failed program was:" >&5
6314sed 's/^/| /' conftest.$ac_ext >&5
6315
6316	ac_compiler_gnu=no
6317fi
6318
6319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6320ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6321
6322fi
6323{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6324echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6325ac_ext=$ac_save_ext
6326ac_test_FFLAGS=${FFLAGS+set}
6327ac_save_FFLAGS=$FFLAGS
6328FFLAGS=
6329{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6330echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6331if test "${ac_cv_prog_f77_g+set}" = set; then
6332  echo $ECHO_N "(cached) $ECHO_C" >&6
6333else
6334  FFLAGS=-g
6335cat >conftest.$ac_ext <<_ACEOF
6336      program main
6337
6338      end
6339_ACEOF
6340rm -f conftest.$ac_objext
6341if { (ac_try="$ac_compile"
6342case "(($ac_try" in
6343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6344  *) ac_try_echo=$ac_try;;
6345esac
6346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6347  (eval "$ac_compile") 2>conftest.er1
6348  ac_status=$?
6349  grep -v '^ *+' conftest.er1 >conftest.err
6350  rm -f conftest.er1
6351  cat conftest.err >&5
6352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353  (exit $ac_status); } &&
6354	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6355  { (case "(($ac_try" in
6356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6357  *) ac_try_echo=$ac_try;;
6358esac
6359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6360  (eval "$ac_try") 2>&5
6361  ac_status=$?
6362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363  (exit $ac_status); }; } &&
6364	 { ac_try='test -s conftest.$ac_objext'
6365  { (case "(($ac_try" in
6366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6367  *) ac_try_echo=$ac_try;;
6368esac
6369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6370  (eval "$ac_try") 2>&5
6371  ac_status=$?
6372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373  (exit $ac_status); }; }; then
6374  ac_cv_prog_f77_g=yes
6375else
6376  echo "$as_me: failed program was:" >&5
6377sed 's/^/| /' conftest.$ac_ext >&5
6378
6379	ac_cv_prog_f77_g=no
6380fi
6381
6382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6383
6384fi
6385{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6386echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6387if test "$ac_test_FFLAGS" = set; then
6388  FFLAGS=$ac_save_FFLAGS
6389elif test $ac_cv_prog_f77_g = yes; then
6390  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6391    FFLAGS="-g -O2"
6392  else
6393    FFLAGS="-g"
6394  fi
6395else
6396  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6397    FFLAGS="-O2"
6398  else
6399    FFLAGS=
6400  fi
6401fi
6402
6403G77=`test $ac_compiler_gnu = yes && echo yes`
6404ac_ext=c
6405ac_cpp='$CPP $CPPFLAGS'
6406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6408ac_compiler_gnu=$ac_cv_c_compiler_gnu
6409
6410
6411
6412# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6413
6414# find the maximum length of command line arguments
6415{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6416echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6417if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6418  echo $ECHO_N "(cached) $ECHO_C" >&6
6419else
6420    i=0
6421  teststring="ABCD"
6422
6423  case $build_os in
6424  msdosdjgpp*)
6425    # On DJGPP, this test can blow up pretty badly due to problems in libc
6426    # (any single argument exceeding 2000 bytes causes a buffer overrun
6427    # during glob expansion).  Even if it were fixed, the result of this
6428    # check would be larger than it should be.
6429    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6430    ;;
6431
6432  gnu*)
6433    # Under GNU Hurd, this test is not required because there is
6434    # no limit to the length of command line arguments.
6435    # Libtool will interpret -1 as no limit whatsoever
6436    lt_cv_sys_max_cmd_len=-1;
6437    ;;
6438
6439  cygwin* | mingw*)
6440    # On Win9x/ME, this test blows up -- it succeeds, but takes
6441    # about 5 minutes as the teststring grows exponentially.
6442    # Worse, since 9x/ME are not pre-emptively multitasking,
6443    # you end up with a "frozen" computer, even though with patience
6444    # the test eventually succeeds (with a max line length of 256k).
6445    # Instead, let's just punt: use the minimum linelength reported by
6446    # all of the supported platforms: 8192 (on NT/2K/XP).
6447    lt_cv_sys_max_cmd_len=8192;
6448    ;;
6449
6450  amigaos*)
6451    # On AmigaOS with pdksh, this test takes hours, literally.
6452    # So we just punt and use a minimum line length of 8192.
6453    lt_cv_sys_max_cmd_len=8192;
6454    ;;
6455
6456  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6457    # This has been around since 386BSD, at least.  Likely further.
6458    if test -x /sbin/sysctl; then
6459      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6460    elif test -x /usr/sbin/sysctl; then
6461      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6462    else
6463      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6464    fi
6465    # And add a safety zone
6466    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6467    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6468    ;;
6469
6470  interix*)
6471    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6472    lt_cv_sys_max_cmd_len=196608
6473    ;;
6474
6475  osf*)
6476    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6477    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6478    # nice to cause kernel panics so lets avoid the loop below.
6479    # First set a reasonable default.
6480    lt_cv_sys_max_cmd_len=16384
6481    #
6482    if test -x /sbin/sysconfig; then
6483      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6484        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6485      esac
6486    fi
6487    ;;
6488  sco3.2v5*)
6489    lt_cv_sys_max_cmd_len=102400
6490    ;;
6491  sysv5* | sco5v6* | sysv4.2uw2*)
6492    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6493    if test -n "$kargmax"; then
6494      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6495    else
6496      lt_cv_sys_max_cmd_len=32768
6497    fi
6498    ;;
6499  *)
6500    # If test is not a shell built-in, we'll probably end up computing a
6501    # maximum length that is only half of the actual maximum length, but
6502    # we can't tell.
6503    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6504    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6505	       = "XX$teststring") >/dev/null 2>&1 &&
6506	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
6507	    lt_cv_sys_max_cmd_len=$new_result &&
6508	    test $i != 17 # 1/2 MB should be enough
6509    do
6510      i=`expr $i + 1`
6511      teststring=$teststring$teststring
6512    done
6513    teststring=
6514    # Add a significant safety factor because C++ compilers can tack on massive
6515    # amounts of additional arguments before passing them to the linker.
6516    # It appears as though 1/2 is a usable value.
6517    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6518    ;;
6519  esac
6520
6521fi
6522
6523if test -n $lt_cv_sys_max_cmd_len ; then
6524  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6525echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6526else
6527  { echo "$as_me:$LINENO: result: none" >&5
6528echo "${ECHO_T}none" >&6; }
6529fi
6530
6531
6532
6533
6534# Check for command to grab the raw symbol name followed by C symbol from nm.
6535{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6536echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6537if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6538  echo $ECHO_N "(cached) $ECHO_C" >&6
6539else
6540
6541# These are sane defaults that work on at least a few old systems.
6542# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6543
6544# Character class describing NM global symbol codes.
6545symcode='[BCDEGRST]'
6546
6547# Regexp to match symbols that can be accessed directly from C.
6548sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6549
6550# Transform an extracted symbol line into a proper C declaration
6551lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6552
6553# Transform an extracted symbol line into symbol name and symbol address
6554lt_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'"
6555
6556# Define system-specific variables.
6557case $host_os in
6558aix*)
6559  symcode='[BCDT]'
6560  ;;
6561cygwin* | mingw* | pw32*)
6562  symcode='[ABCDGISTW]'
6563  ;;
6564hpux*) # Its linker distinguishes data from code symbols
6565  if test "$host_cpu" = ia64; then
6566    symcode='[ABCDEGRST]'
6567  fi
6568  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6569  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'"
6570  ;;
6571linux* | k*bsd*-gnu)
6572  if test "$host_cpu" = ia64; then
6573    symcode='[ABCDGIRSTW]'
6574    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6575    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'"
6576  fi
6577  ;;
6578irix* | nonstopux*)
6579  symcode='[BCDEGRST]'
6580  ;;
6581osf*)
6582  symcode='[BCDEGQRST]'
6583  ;;
6584solaris*)
6585  symcode='[BDRT]'
6586  ;;
6587sco3.2v5*)
6588  symcode='[DT]'
6589  ;;
6590sysv4.2uw2*)
6591  symcode='[DT]'
6592  ;;
6593sysv5* | sco5v6* | unixware* | OpenUNIX*)
6594  symcode='[ABDT]'
6595  ;;
6596sysv4)
6597  symcode='[DFNSTU]'
6598  ;;
6599esac
6600
6601# Handle CRLF in mingw tool chain
6602opt_cr=
6603case $build_os in
6604mingw*)
6605  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6606  ;;
6607esac
6608
6609# If we're using GNU nm, then use its standard symbol codes.
6610case `$NM -V 2>&1` in
6611*GNU* | *'with BFD'*)
6612  symcode='[ABCDGIRSTW]' ;;
6613esac
6614
6615# Try without a prefix undercore, then with it.
6616for ac_symprfx in "" "_"; do
6617
6618  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6619  symxfrm="\\1 $ac_symprfx\\2 \\2"
6620
6621  # Write the raw and C identifiers.
6622  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6623
6624  # Check to see that the pipe works correctly.
6625  pipe_works=no
6626
6627  rm -f conftest*
6628  cat > conftest.$ac_ext <<EOF
6629#ifdef __cplusplus
6630extern "C" {
6631#endif
6632char nm_test_var;
6633void nm_test_func(){}
6634#ifdef __cplusplus
6635}
6636#endif
6637int main(){nm_test_var='a';nm_test_func();return(0);}
6638EOF
6639
6640  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6641  (eval $ac_compile) 2>&5
6642  ac_status=$?
6643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644  (exit $ac_status); }; then
6645    # Now try to grab the symbols.
6646    nlist=conftest.nm
6647    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6648  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6649  ac_status=$?
6650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651  (exit $ac_status); } && test -s "$nlist"; then
6652      # Try sorting and uniquifying the output.
6653      if sort "$nlist" | uniq > "$nlist"T; then
6654	mv -f "$nlist"T "$nlist"
6655      else
6656	rm -f "$nlist"T
6657      fi
6658
6659      # Make sure that we snagged all the symbols we need.
6660      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6661	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6662	  cat <<EOF > conftest.$ac_ext
6663#ifdef __cplusplus
6664extern "C" {
6665#endif
6666
6667EOF
6668	  # Now generate the symbol file.
6669	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6670
6671	  cat <<EOF >> conftest.$ac_ext
6672#if defined (__STDC__) && __STDC__
6673# define lt_ptr_t void *
6674#else
6675# define lt_ptr_t char *
6676# define const
6677#endif
6678
6679/* The mapping between symbol names and symbols. */
6680const struct {
6681  const char *name;
6682  lt_ptr_t address;
6683}
6684lt_preloaded_symbols[] =
6685{
6686EOF
6687	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6688	  cat <<\EOF >> conftest.$ac_ext
6689  {0, (lt_ptr_t) 0}
6690};
6691
6692#ifdef __cplusplus
6693}
6694#endif
6695EOF
6696	  # Now try linking the two files.
6697	  mv conftest.$ac_objext conftstm.$ac_objext
6698	  lt_save_LIBS="$LIBS"
6699	  lt_save_CFLAGS="$CFLAGS"
6700	  LIBS="conftstm.$ac_objext"
6701	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6702	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703  (eval $ac_link) 2>&5
6704  ac_status=$?
6705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6707	    pipe_works=yes
6708	  fi
6709	  LIBS="$lt_save_LIBS"
6710	  CFLAGS="$lt_save_CFLAGS"
6711	else
6712	  echo "cannot find nm_test_func in $nlist" >&5
6713	fi
6714      else
6715	echo "cannot find nm_test_var in $nlist" >&5
6716      fi
6717    else
6718      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6719    fi
6720  else
6721    echo "$progname: failed program was:" >&5
6722    cat conftest.$ac_ext >&5
6723  fi
6724  rm -f conftest* conftst*
6725
6726  # Do not use the global_symbol_pipe unless it works.
6727  if test "$pipe_works" = yes; then
6728    break
6729  else
6730    lt_cv_sys_global_symbol_pipe=
6731  fi
6732done
6733
6734fi
6735
6736if test -z "$lt_cv_sys_global_symbol_pipe"; then
6737  lt_cv_sys_global_symbol_to_cdecl=
6738fi
6739if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6740  { echo "$as_me:$LINENO: result: failed" >&5
6741echo "${ECHO_T}failed" >&6; }
6742else
6743  { echo "$as_me:$LINENO: result: ok" >&5
6744echo "${ECHO_T}ok" >&6; }
6745fi
6746
6747{ echo "$as_me:$LINENO: checking for objdir" >&5
6748echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6749if test "${lt_cv_objdir+set}" = set; then
6750  echo $ECHO_N "(cached) $ECHO_C" >&6
6751else
6752  rm -f .libs 2>/dev/null
6753mkdir .libs 2>/dev/null
6754if test -d .libs; then
6755  lt_cv_objdir=.libs
6756else
6757  # MS-DOS does not allow filenames that begin with a dot.
6758  lt_cv_objdir=_libs
6759fi
6760rmdir .libs 2>/dev/null
6761fi
6762{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6763echo "${ECHO_T}$lt_cv_objdir" >&6; }
6764objdir=$lt_cv_objdir
6765
6766
6767
6768
6769
6770case $host_os in
6771aix3*)
6772  # AIX sometimes has problems with the GCC collect2 program.  For some
6773  # reason, if we set the COLLECT_NAMES environment variable, the problems
6774  # vanish in a puff of smoke.
6775  if test "X${COLLECT_NAMES+set}" != Xset; then
6776    COLLECT_NAMES=
6777    export COLLECT_NAMES
6778  fi
6779  ;;
6780esac
6781
6782# Sed substitution that helps us do robust quoting.  It backslashifies
6783# metacharacters that are still active within double-quoted strings.
6784Xsed='sed -e 1s/^X//'
6785sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6786
6787# Same as above, but do not quote variable references.
6788double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6789
6790# Sed substitution to delay expansion of an escaped shell variable in a
6791# double_quote_subst'ed string.
6792delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6793
6794# Sed substitution to avoid accidental globbing in evaled expressions
6795no_glob_subst='s/\*/\\\*/g'
6796
6797# Constants:
6798rm="rm -f"
6799
6800# Global variables:
6801default_ofile=libtool
6802can_build_shared=yes
6803
6804# All known linkers require a `.a' archive for static linking (except MSVC,
6805# which needs '.lib').
6806libext=a
6807ltmain="$ac_aux_dir/ltmain.sh"
6808ofile="$default_ofile"
6809with_gnu_ld="$lt_cv_prog_gnu_ld"
6810
6811if test -n "$ac_tool_prefix"; then
6812  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6813set dummy ${ac_tool_prefix}ar; ac_word=$2
6814{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816if test "${ac_cv_prog_AR+set}" = set; then
6817  echo $ECHO_N "(cached) $ECHO_C" >&6
6818else
6819  if test -n "$AR"; then
6820  ac_cv_prog_AR="$AR" # Let the user override the test.
6821else
6822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823for as_dir in $PATH
6824do
6825  IFS=$as_save_IFS
6826  test -z "$as_dir" && as_dir=.
6827  for ac_exec_ext in '' $ac_executable_extensions; do
6828  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6829    ac_cv_prog_AR="${ac_tool_prefix}ar"
6830    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6831    break 2
6832  fi
6833done
6834done
6835IFS=$as_save_IFS
6836
6837fi
6838fi
6839AR=$ac_cv_prog_AR
6840if test -n "$AR"; then
6841  { echo "$as_me:$LINENO: result: $AR" >&5
6842echo "${ECHO_T}$AR" >&6; }
6843else
6844  { echo "$as_me:$LINENO: result: no" >&5
6845echo "${ECHO_T}no" >&6; }
6846fi
6847
6848
6849fi
6850if test -z "$ac_cv_prog_AR"; then
6851  ac_ct_AR=$AR
6852  # Extract the first word of "ar", so it can be a program name with args.
6853set dummy ar; ac_word=$2
6854{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6856if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6857  echo $ECHO_N "(cached) $ECHO_C" >&6
6858else
6859  if test -n "$ac_ct_AR"; then
6860  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6861else
6862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863for as_dir in $PATH
6864do
6865  IFS=$as_save_IFS
6866  test -z "$as_dir" && as_dir=.
6867  for ac_exec_ext in '' $ac_executable_extensions; do
6868  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6869    ac_cv_prog_ac_ct_AR="ar"
6870    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6871    break 2
6872  fi
6873done
6874done
6875IFS=$as_save_IFS
6876
6877fi
6878fi
6879ac_ct_AR=$ac_cv_prog_ac_ct_AR
6880if test -n "$ac_ct_AR"; then
6881  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6882echo "${ECHO_T}$ac_ct_AR" >&6; }
6883else
6884  { echo "$as_me:$LINENO: result: no" >&5
6885echo "${ECHO_T}no" >&6; }
6886fi
6887
6888  if test "x$ac_ct_AR" = x; then
6889    AR="false"
6890  else
6891    case $cross_compiling:$ac_tool_warned in
6892yes:)
6893{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6894whose name does not start with the host triplet.  If you think this
6895configuration is useful to you, please write to autoconf@gnu.org." >&5
6896echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6897whose name does not start with the host triplet.  If you think this
6898configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6899ac_tool_warned=yes ;;
6900esac
6901    AR=$ac_ct_AR
6902  fi
6903else
6904  AR="$ac_cv_prog_AR"
6905fi
6906
6907if test -n "$ac_tool_prefix"; then
6908  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6909set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6910{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6912if test "${ac_cv_prog_RANLIB+set}" = set; then
6913  echo $ECHO_N "(cached) $ECHO_C" >&6
6914else
6915  if test -n "$RANLIB"; then
6916  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6917else
6918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919for as_dir in $PATH
6920do
6921  IFS=$as_save_IFS
6922  test -z "$as_dir" && as_dir=.
6923  for ac_exec_ext in '' $ac_executable_extensions; do
6924  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6925    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6926    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6927    break 2
6928  fi
6929done
6930done
6931IFS=$as_save_IFS
6932
6933fi
6934fi
6935RANLIB=$ac_cv_prog_RANLIB
6936if test -n "$RANLIB"; then
6937  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6938echo "${ECHO_T}$RANLIB" >&6; }
6939else
6940  { echo "$as_me:$LINENO: result: no" >&5
6941echo "${ECHO_T}no" >&6; }
6942fi
6943
6944
6945fi
6946if test -z "$ac_cv_prog_RANLIB"; then
6947  ac_ct_RANLIB=$RANLIB
6948  # Extract the first word of "ranlib", so it can be a program name with args.
6949set dummy ranlib; ac_word=$2
6950{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6952if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6953  echo $ECHO_N "(cached) $ECHO_C" >&6
6954else
6955  if test -n "$ac_ct_RANLIB"; then
6956  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6957else
6958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959for as_dir in $PATH
6960do
6961  IFS=$as_save_IFS
6962  test -z "$as_dir" && as_dir=.
6963  for ac_exec_ext in '' $ac_executable_extensions; do
6964  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6965    ac_cv_prog_ac_ct_RANLIB="ranlib"
6966    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6967    break 2
6968  fi
6969done
6970done
6971IFS=$as_save_IFS
6972
6973fi
6974fi
6975ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6976if test -n "$ac_ct_RANLIB"; then
6977  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6978echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6979else
6980  { echo "$as_me:$LINENO: result: no" >&5
6981echo "${ECHO_T}no" >&6; }
6982fi
6983
6984  if test "x$ac_ct_RANLIB" = x; then
6985    RANLIB=":"
6986  else
6987    case $cross_compiling:$ac_tool_warned in
6988yes:)
6989{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6990whose name does not start with the host triplet.  If you think this
6991configuration is useful to you, please write to autoconf@gnu.org." >&5
6992echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6993whose name does not start with the host triplet.  If you think this
6994configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6995ac_tool_warned=yes ;;
6996esac
6997    RANLIB=$ac_ct_RANLIB
6998  fi
6999else
7000  RANLIB="$ac_cv_prog_RANLIB"
7001fi
7002
7003if test -n "$ac_tool_prefix"; then
7004  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7005set dummy ${ac_tool_prefix}strip; ac_word=$2
7006{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7008if test "${ac_cv_prog_STRIP+set}" = set; then
7009  echo $ECHO_N "(cached) $ECHO_C" >&6
7010else
7011  if test -n "$STRIP"; then
7012  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7013else
7014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015for as_dir in $PATH
7016do
7017  IFS=$as_save_IFS
7018  test -z "$as_dir" && as_dir=.
7019  for ac_exec_ext in '' $ac_executable_extensions; do
7020  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7021    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7022    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7023    break 2
7024  fi
7025done
7026done
7027IFS=$as_save_IFS
7028
7029fi
7030fi
7031STRIP=$ac_cv_prog_STRIP
7032if test -n "$STRIP"; then
7033  { echo "$as_me:$LINENO: result: $STRIP" >&5
7034echo "${ECHO_T}$STRIP" >&6; }
7035else
7036  { echo "$as_me:$LINENO: result: no" >&5
7037echo "${ECHO_T}no" >&6; }
7038fi
7039
7040
7041fi
7042if test -z "$ac_cv_prog_STRIP"; then
7043  ac_ct_STRIP=$STRIP
7044  # Extract the first word of "strip", so it can be a program name with args.
7045set dummy strip; ac_word=$2
7046{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7048if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7049  echo $ECHO_N "(cached) $ECHO_C" >&6
7050else
7051  if test -n "$ac_ct_STRIP"; then
7052  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7053else
7054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055for as_dir in $PATH
7056do
7057  IFS=$as_save_IFS
7058  test -z "$as_dir" && as_dir=.
7059  for ac_exec_ext in '' $ac_executable_extensions; do
7060  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7061    ac_cv_prog_ac_ct_STRIP="strip"
7062    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7063    break 2
7064  fi
7065done
7066done
7067IFS=$as_save_IFS
7068
7069fi
7070fi
7071ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7072if test -n "$ac_ct_STRIP"; then
7073  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7074echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7075else
7076  { echo "$as_me:$LINENO: result: no" >&5
7077echo "${ECHO_T}no" >&6; }
7078fi
7079
7080  if test "x$ac_ct_STRIP" = x; then
7081    STRIP=":"
7082  else
7083    case $cross_compiling:$ac_tool_warned in
7084yes:)
7085{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7086whose name does not start with the host triplet.  If you think this
7087configuration is useful to you, please write to autoconf@gnu.org." >&5
7088echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7089whose name does not start with the host triplet.  If you think this
7090configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7091ac_tool_warned=yes ;;
7092esac
7093    STRIP=$ac_ct_STRIP
7094  fi
7095else
7096  STRIP="$ac_cv_prog_STRIP"
7097fi
7098
7099
7100old_CC="$CC"
7101old_CFLAGS="$CFLAGS"
7102
7103# Set sane defaults for various variables
7104test -z "$AR" && AR=ar
7105test -z "$AR_FLAGS" && AR_FLAGS=cru
7106test -z "$AS" && AS=as
7107test -z "$CC" && CC=cc
7108test -z "$LTCC" && LTCC=$CC
7109test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7110test -z "$DLLTOOL" && DLLTOOL=dlltool
7111test -z "$LD" && LD=ld
7112test -z "$LN_S" && LN_S="ln -s"
7113test -z "$MAGIC_CMD" && MAGIC_CMD=file
7114test -z "$NM" && NM=nm
7115test -z "$SED" && SED=sed
7116test -z "$OBJDUMP" && OBJDUMP=objdump
7117test -z "$RANLIB" && RANLIB=:
7118test -z "$STRIP" && STRIP=:
7119test -z "$ac_objext" && ac_objext=o
7120
7121# Determine commands to create old-style static archives.
7122old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7123old_postinstall_cmds='chmod 644 $oldlib'
7124old_postuninstall_cmds=
7125
7126if test -n "$RANLIB"; then
7127  case $host_os in
7128  openbsd*)
7129    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7130    ;;
7131  *)
7132    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7133    ;;
7134  esac
7135  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7136fi
7137
7138for cc_temp in $compiler""; do
7139  case $cc_temp in
7140    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7141    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7142    \-*) ;;
7143    *) break;;
7144  esac
7145done
7146cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7147
7148
7149# Only perform the check for file, if the check method requires it
7150case $deplibs_check_method in
7151file_magic*)
7152  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7153    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7154echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7155if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7156  echo $ECHO_N "(cached) $ECHO_C" >&6
7157else
7158  case $MAGIC_CMD in
7159[\\/*] |  ?:[\\/]*)
7160  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7161  ;;
7162*)
7163  lt_save_MAGIC_CMD="$MAGIC_CMD"
7164  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7165  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7166  for ac_dir in $ac_dummy; do
7167    IFS="$lt_save_ifs"
7168    test -z "$ac_dir" && ac_dir=.
7169    if test -f $ac_dir/${ac_tool_prefix}file; then
7170      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7171      if test -n "$file_magic_test_file"; then
7172	case $deplibs_check_method in
7173	"file_magic "*)
7174	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7175	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7176	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7177	    $EGREP "$file_magic_regex" > /dev/null; then
7178	    :
7179	  else
7180	    cat <<EOF 1>&2
7181
7182*** Warning: the command libtool uses to detect shared libraries,
7183*** $file_magic_cmd, produces output that libtool cannot recognize.
7184*** The result is that libtool may fail to recognize shared libraries
7185*** as such.  This will affect the creation of libtool libraries that
7186*** depend on shared libraries, but programs linked with such libtool
7187*** libraries will work regardless of this problem.  Nevertheless, you
7188*** may want to report the problem to your system manager and/or to
7189*** bug-libtool@gnu.org
7190
7191EOF
7192	  fi ;;
7193	esac
7194      fi
7195      break
7196    fi
7197  done
7198  IFS="$lt_save_ifs"
7199  MAGIC_CMD="$lt_save_MAGIC_CMD"
7200  ;;
7201esac
7202fi
7203
7204MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7205if test -n "$MAGIC_CMD"; then
7206  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7207echo "${ECHO_T}$MAGIC_CMD" >&6; }
7208else
7209  { echo "$as_me:$LINENO: result: no" >&5
7210echo "${ECHO_T}no" >&6; }
7211fi
7212
7213if test -z "$lt_cv_path_MAGIC_CMD"; then
7214  if test -n "$ac_tool_prefix"; then
7215    { echo "$as_me:$LINENO: checking for file" >&5
7216echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7217if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7218  echo $ECHO_N "(cached) $ECHO_C" >&6
7219else
7220  case $MAGIC_CMD in
7221[\\/*] |  ?:[\\/]*)
7222  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7223  ;;
7224*)
7225  lt_save_MAGIC_CMD="$MAGIC_CMD"
7226  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7227  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7228  for ac_dir in $ac_dummy; do
7229    IFS="$lt_save_ifs"
7230    test -z "$ac_dir" && ac_dir=.
7231    if test -f $ac_dir/file; then
7232      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7233      if test -n "$file_magic_test_file"; then
7234	case $deplibs_check_method in
7235	"file_magic "*)
7236	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7237	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7238	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7239	    $EGREP "$file_magic_regex" > /dev/null; then
7240	    :
7241	  else
7242	    cat <<EOF 1>&2
7243
7244*** Warning: the command libtool uses to detect shared libraries,
7245*** $file_magic_cmd, produces output that libtool cannot recognize.
7246*** The result is that libtool may fail to recognize shared libraries
7247*** as such.  This will affect the creation of libtool libraries that
7248*** depend on shared libraries, but programs linked with such libtool
7249*** libraries will work regardless of this problem.  Nevertheless, you
7250*** may want to report the problem to your system manager and/or to
7251*** bug-libtool@gnu.org
7252
7253EOF
7254	  fi ;;
7255	esac
7256      fi
7257      break
7258    fi
7259  done
7260  IFS="$lt_save_ifs"
7261  MAGIC_CMD="$lt_save_MAGIC_CMD"
7262  ;;
7263esac
7264fi
7265
7266MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7267if test -n "$MAGIC_CMD"; then
7268  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7269echo "${ECHO_T}$MAGIC_CMD" >&6; }
7270else
7271  { echo "$as_me:$LINENO: result: no" >&5
7272echo "${ECHO_T}no" >&6; }
7273fi
7274
7275  else
7276    MAGIC_CMD=:
7277  fi
7278fi
7279
7280  fi
7281  ;;
7282esac
7283
7284enable_dlopen=no
7285enable_win32_dll=no
7286
7287# Check whether --enable-libtool-lock was given.
7288if test "${enable_libtool_lock+set}" = set; then
7289  enableval=$enable_libtool_lock;
7290fi
7291
7292test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7293
7294
7295# Check whether --with-pic was given.
7296if test "${with_pic+set}" = set; then
7297  withval=$with_pic; pic_mode="$withval"
7298else
7299  pic_mode=default
7300fi
7301
7302test -z "$pic_mode" && pic_mode=default
7303
7304# Use C for the default configuration in the libtool script
7305tagname=
7306lt_save_CC="$CC"
7307ac_ext=c
7308ac_cpp='$CPP $CPPFLAGS'
7309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7311ac_compiler_gnu=$ac_cv_c_compiler_gnu
7312
7313
7314# Source file extension for C test sources.
7315ac_ext=c
7316
7317# Object file extension for compiled C test sources.
7318objext=o
7319objext=$objext
7320
7321# Code to be used in simple compile tests
7322lt_simple_compile_test_code="int some_variable = 0;\n"
7323
7324# Code to be used in simple link tests
7325lt_simple_link_test_code='int main(){return(0);}\n'
7326
7327
7328# If no C compiler was specified, use CC.
7329LTCC=${LTCC-"$CC"}
7330
7331# If no C compiler flags were specified, use CFLAGS.
7332LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7333
7334# Allow CC to be a program name with arguments.
7335compiler=$CC
7336
7337
7338# save warnings/boilerplate of simple test code
7339ac_outfile=conftest.$ac_objext
7340printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7341eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7342_lt_compiler_boilerplate=`cat conftest.err`
7343$rm conftest*
7344
7345ac_outfile=conftest.$ac_objext
7346printf "$lt_simple_link_test_code" >conftest.$ac_ext
7347eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7348_lt_linker_boilerplate=`cat conftest.err`
7349$rm conftest*
7350
7351
7352
7353lt_prog_compiler_no_builtin_flag=
7354
7355if test "$GCC" = yes; then
7356  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7357
7358
7359{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7360echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7361if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7362  echo $ECHO_N "(cached) $ECHO_C" >&6
7363else
7364  lt_cv_prog_compiler_rtti_exceptions=no
7365  ac_outfile=conftest.$ac_objext
7366   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7367   lt_compiler_flag="-fno-rtti -fno-exceptions"
7368   # Insert the option either (1) after the last *FLAGS variable, or
7369   # (2) before a word containing "conftest.", or (3) at the end.
7370   # Note that $ac_compile itself does not contain backslashes and begins
7371   # with a dollar sign (not a hyphen), so the echo should work correctly.
7372   # The option is referenced via a variable to avoid confusing sed.
7373   lt_compile=`echo "$ac_compile" | $SED \
7374   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7375   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7376   -e 's:$: $lt_compiler_flag:'`
7377   (eval echo "\"\$as_me:7377: $lt_compile\"" >&5)
7378   (eval "$lt_compile" 2>conftest.err)
7379   ac_status=$?
7380   cat conftest.err >&5
7381   echo "$as_me:7381: \$? = $ac_status" >&5
7382   if (exit $ac_status) && test -s "$ac_outfile"; then
7383     # The compiler can only warn and ignore the option if not recognized
7384     # So say no if there are warnings other than the usual output.
7385     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7386     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7387     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7388       lt_cv_prog_compiler_rtti_exceptions=yes
7389     fi
7390   fi
7391   $rm conftest*
7392
7393fi
7394{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7395echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7396
7397if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7398    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7399else
7400    :
7401fi
7402
7403fi
7404
7405lt_prog_compiler_wl=
7406lt_prog_compiler_pic=
7407lt_prog_compiler_static=
7408
7409{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7410echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7411
7412  if test "$GCC" = yes; then
7413    lt_prog_compiler_wl='-Wl,'
7414    lt_prog_compiler_static='-static'
7415
7416    case $host_os in
7417      aix*)
7418      # All AIX code is PIC.
7419      if test "$host_cpu" = ia64; then
7420	# AIX 5 now supports IA64 processor
7421	lt_prog_compiler_static='-Bstatic'
7422      fi
7423      ;;
7424
7425    amigaos*)
7426      # FIXME: we need at least 68020 code to build shared libraries, but
7427      # adding the `-m68020' flag to GCC prevents building anything better,
7428      # like `-m68040'.
7429      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7430      ;;
7431
7432    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7433      # PIC is the default for these OSes.
7434      ;;
7435
7436    mingw* | pw32* | os2*)
7437      # This hack is so that the source file can tell whether it is being
7438      # built for inclusion in a dll (and should export symbols for example).
7439      lt_prog_compiler_pic='-DDLL_EXPORT'
7440      ;;
7441
7442    darwin* | rhapsody*)
7443      # PIC is the default on this platform
7444      # Common symbols not allowed in MH_DYLIB files
7445      lt_prog_compiler_pic='-fno-common'
7446      ;;
7447
7448    interix3*)
7449      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7450      # Instead, we relocate shared libraries at runtime.
7451      ;;
7452
7453    msdosdjgpp*)
7454      # Just because we use GCC doesn't mean we suddenly get shared libraries
7455      # on systems that don't support them.
7456      lt_prog_compiler_can_build_shared=no
7457      enable_shared=no
7458      ;;
7459
7460    sysv4*MP*)
7461      if test -d /usr/nec; then
7462	lt_prog_compiler_pic=-Kconform_pic
7463      fi
7464      ;;
7465
7466    hpux*)
7467      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7468      # not for PA HP-UX.
7469      case $host_cpu in
7470      hppa*64*|ia64*)
7471	# +Z the default
7472	;;
7473      *)
7474	lt_prog_compiler_pic='-fPIC'
7475	;;
7476      esac
7477      ;;
7478
7479    *)
7480      lt_prog_compiler_pic='-fPIC'
7481      ;;
7482    esac
7483  else
7484    # PORTME Check for flag to pass linker flags through the system compiler.
7485    case $host_os in
7486    aix*)
7487      lt_prog_compiler_wl='-Wl,'
7488      if test "$host_cpu" = ia64; then
7489	# AIX 5 now supports IA64 processor
7490	lt_prog_compiler_static='-Bstatic'
7491      else
7492	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7493      fi
7494      ;;
7495      darwin*)
7496        # PIC is the default on this platform
7497        # Common symbols not allowed in MH_DYLIB files
7498       case $cc_basename in
7499         xlc*)
7500         lt_prog_compiler_pic='-qnocommon'
7501         lt_prog_compiler_wl='-Wl,'
7502         ;;
7503       esac
7504       ;;
7505
7506    mingw* | pw32* | os2*)
7507      # This hack is so that the source file can tell whether it is being
7508      # built for inclusion in a dll (and should export symbols for example).
7509      lt_prog_compiler_pic='-DDLL_EXPORT'
7510      ;;
7511
7512    hpux9* | hpux10* | hpux11*)
7513      lt_prog_compiler_wl='-Wl,'
7514      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7515      # not for PA HP-UX.
7516      case $host_cpu in
7517      hppa*64*|ia64*)
7518	# +Z the default
7519	;;
7520      *)
7521	lt_prog_compiler_pic='+Z'
7522	;;
7523      esac
7524      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7525      lt_prog_compiler_static='${wl}-a ${wl}archive'
7526      ;;
7527
7528    irix5* | irix6* | nonstopux*)
7529      lt_prog_compiler_wl='-Wl,'
7530      # PIC (with -KPIC) is the default.
7531      lt_prog_compiler_static='-non_shared'
7532      ;;
7533
7534    newsos6)
7535      lt_prog_compiler_pic='-KPIC'
7536      lt_prog_compiler_static='-Bstatic'
7537      ;;
7538
7539    linux* | k*bsd*-gnu)
7540      case $cc_basename in
7541      icc* | ecc*)
7542	lt_prog_compiler_wl='-Wl,'
7543	lt_prog_compiler_pic='-KPIC'
7544	lt_prog_compiler_static='-static'
7545        ;;
7546      pgcc* | pgf77* | pgf90* | pgf95*)
7547        # Portland Group compilers (*not* the Pentium gcc compiler,
7548	# which looks to be a dead project)
7549	lt_prog_compiler_wl='-Wl,'
7550	lt_prog_compiler_pic='-fpic'
7551	lt_prog_compiler_static='-Bstatic'
7552        ;;
7553      ccc*)
7554        lt_prog_compiler_wl='-Wl,'
7555        # All Alpha code is PIC.
7556        lt_prog_compiler_static='-non_shared'
7557        ;;
7558      esac
7559      ;;
7560
7561    osf3* | osf4* | osf5*)
7562      lt_prog_compiler_wl='-Wl,'
7563      # All OSF/1 code is PIC.
7564      lt_prog_compiler_static='-non_shared'
7565      ;;
7566
7567    solaris*)
7568      lt_prog_compiler_pic='-KPIC'
7569      lt_prog_compiler_static='-Bstatic'
7570      case $cc_basename in
7571      f77* | f90* | f95*)
7572	lt_prog_compiler_wl='-Qoption ld ';;
7573      *)
7574	lt_prog_compiler_wl='-Wl,';;
7575      esac
7576      ;;
7577
7578    sunos4*)
7579      lt_prog_compiler_wl='-Qoption ld '
7580      lt_prog_compiler_pic='-PIC'
7581      lt_prog_compiler_static='-Bstatic'
7582      ;;
7583
7584    sysv4 | sysv4.2uw2* | sysv4.3*)
7585      lt_prog_compiler_wl='-Wl,'
7586      lt_prog_compiler_pic='-KPIC'
7587      lt_prog_compiler_static='-Bstatic'
7588      ;;
7589
7590    sysv4*MP*)
7591      if test -d /usr/nec ;then
7592	lt_prog_compiler_pic='-Kconform_pic'
7593	lt_prog_compiler_static='-Bstatic'
7594      fi
7595      ;;
7596
7597    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7598      lt_prog_compiler_wl='-Wl,'
7599      lt_prog_compiler_pic='-KPIC'
7600      lt_prog_compiler_static='-Bstatic'
7601      ;;
7602
7603    unicos*)
7604      lt_prog_compiler_wl='-Wl,'
7605      lt_prog_compiler_can_build_shared=no
7606      ;;
7607
7608    uts4*)
7609      lt_prog_compiler_pic='-pic'
7610      lt_prog_compiler_static='-Bstatic'
7611      ;;
7612
7613    *)
7614      lt_prog_compiler_can_build_shared=no
7615      ;;
7616    esac
7617  fi
7618
7619{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7620echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7621
7622#
7623# Check to make sure the PIC flag actually works.
7624#
7625if test -n "$lt_prog_compiler_pic"; then
7626
7627{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7628echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7629if test "${lt_prog_compiler_pic_works+set}" = set; then
7630  echo $ECHO_N "(cached) $ECHO_C" >&6
7631else
7632  lt_prog_compiler_pic_works=no
7633  ac_outfile=conftest.$ac_objext
7634   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7635   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7636   # Insert the option either (1) after the last *FLAGS variable, or
7637   # (2) before a word containing "conftest.", or (3) at the end.
7638   # Note that $ac_compile itself does not contain backslashes and begins
7639   # with a dollar sign (not a hyphen), so the echo should work correctly.
7640   # The option is referenced via a variable to avoid confusing sed.
7641   lt_compile=`echo "$ac_compile" | $SED \
7642   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7643   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7644   -e 's:$: $lt_compiler_flag:'`
7645   (eval echo "\"\$as_me:7645: $lt_compile\"" >&5)
7646   (eval "$lt_compile" 2>conftest.err)
7647   ac_status=$?
7648   cat conftest.err >&5
7649   echo "$as_me:7649: \$? = $ac_status" >&5
7650   if (exit $ac_status) && test -s "$ac_outfile"; then
7651     # The compiler can only warn and ignore the option if not recognized
7652     # So say no if there are warnings other than the usual output.
7653     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7654     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7655     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7656       lt_prog_compiler_pic_works=yes
7657     fi
7658   fi
7659   $rm conftest*
7660
7661fi
7662{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7663echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7664
7665if test x"$lt_prog_compiler_pic_works" = xyes; then
7666    case $lt_prog_compiler_pic in
7667     "" | " "*) ;;
7668     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7669     esac
7670else
7671    lt_prog_compiler_pic=
7672     lt_prog_compiler_can_build_shared=no
7673fi
7674
7675fi
7676case $host_os in
7677  # For platforms which do not support PIC, -DPIC is meaningless:
7678  *djgpp*)
7679    lt_prog_compiler_pic=
7680    ;;
7681  *)
7682    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7683    ;;
7684esac
7685
7686#
7687# Check to make sure the static flag actually works.
7688#
7689wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7690{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7691echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7692if test "${lt_prog_compiler_static_works+set}" = set; then
7693  echo $ECHO_N "(cached) $ECHO_C" >&6
7694else
7695  lt_prog_compiler_static_works=no
7696   save_LDFLAGS="$LDFLAGS"
7697   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7698   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7699   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7700     # The linker can only warn and ignore the option if not recognized
7701     # So say no if there are warnings
7702     if test -s conftest.err; then
7703       # Append any errors to the config.log.
7704       cat conftest.err 1>&5
7705       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7706       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7707       if diff conftest.exp conftest.er2 >/dev/null; then
7708         lt_prog_compiler_static_works=yes
7709       fi
7710     else
7711       lt_prog_compiler_static_works=yes
7712     fi
7713   fi
7714   $rm conftest*
7715   LDFLAGS="$save_LDFLAGS"
7716
7717fi
7718{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7719echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7720
7721if test x"$lt_prog_compiler_static_works" = xyes; then
7722    :
7723else
7724    lt_prog_compiler_static=
7725fi
7726
7727
7728{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7729echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7730if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7731  echo $ECHO_N "(cached) $ECHO_C" >&6
7732else
7733  lt_cv_prog_compiler_c_o=no
7734   $rm -r conftest 2>/dev/null
7735   mkdir conftest
7736   cd conftest
7737   mkdir out
7738   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7739
7740   lt_compiler_flag="-o out/conftest2.$ac_objext"
7741   # Insert the option either (1) after the last *FLAGS variable, or
7742   # (2) before a word containing "conftest.", or (3) at the end.
7743   # Note that $ac_compile itself does not contain backslashes and begins
7744   # with a dollar sign (not a hyphen), so the echo should work correctly.
7745   lt_compile=`echo "$ac_compile" | $SED \
7746   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7747   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7748   -e 's:$: $lt_compiler_flag:'`
7749   (eval echo "\"\$as_me:7749: $lt_compile\"" >&5)
7750   (eval "$lt_compile" 2>out/conftest.err)
7751   ac_status=$?
7752   cat out/conftest.err >&5
7753   echo "$as_me:7753: \$? = $ac_status" >&5
7754   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7755   then
7756     # The compiler can only warn and ignore the option if not recognized
7757     # So say no if there are warnings
7758     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7759     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7760     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7761       lt_cv_prog_compiler_c_o=yes
7762     fi
7763   fi
7764   chmod u+w . 2>&5
7765   $rm conftest*
7766   # SGI C++ compiler will create directory out/ii_files/ for
7767   # template instantiation
7768   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7769   $rm out/* && rmdir out
7770   cd ..
7771   rmdir conftest
7772   $rm conftest*
7773
7774fi
7775{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7776echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7777
7778
7779hard_links="nottested"
7780if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7781  # do not overwrite the value of need_locks provided by the user
7782  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7783echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7784  hard_links=yes
7785  $rm conftest*
7786  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7787  touch conftest.a
7788  ln conftest.a conftest.b 2>&5 || hard_links=no
7789  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7790  { echo "$as_me:$LINENO: result: $hard_links" >&5
7791echo "${ECHO_T}$hard_links" >&6; }
7792  if test "$hard_links" = no; then
7793    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7794echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7795    need_locks=warn
7796  fi
7797else
7798  need_locks=no
7799fi
7800
7801{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7802echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7803
7804  runpath_var=
7805  allow_undefined_flag=
7806  enable_shared_with_static_runtimes=no
7807  archive_cmds=
7808  archive_expsym_cmds=
7809  old_archive_From_new_cmds=
7810  old_archive_from_expsyms_cmds=
7811  export_dynamic_flag_spec=
7812  whole_archive_flag_spec=
7813  thread_safe_flag_spec=
7814  hardcode_libdir_flag_spec=
7815  hardcode_libdir_flag_spec_ld=
7816  hardcode_libdir_separator=
7817  hardcode_direct=no
7818  hardcode_minus_L=no
7819  hardcode_shlibpath_var=unsupported
7820  link_all_deplibs=unknown
7821  hardcode_automatic=no
7822  module_cmds=
7823  module_expsym_cmds=
7824  always_export_symbols=no
7825  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7826  # include_expsyms should be a list of space-separated symbols to be *always*
7827  # included in the symbol list
7828  include_expsyms=
7829  # exclude_expsyms can be an extended regexp of symbols to exclude
7830  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7831  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7832  # as well as any symbol that contains `d'.
7833  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7834  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7835  # platforms (ab)use it in PIC code, but their linkers get confused if
7836  # the symbol is explicitly referenced.  Since portable code cannot
7837  # rely on this symbol name, it's probably fine to never include it in
7838  # preloaded symbol tables.
7839  extract_expsyms_cmds=
7840  # Just being paranoid about ensuring that cc_basename is set.
7841  for cc_temp in $compiler""; do
7842  case $cc_temp in
7843    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7844    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7845    \-*) ;;
7846    *) break;;
7847  esac
7848done
7849cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7850
7851  case $host_os in
7852  cygwin* | mingw* | pw32*)
7853    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7854    # When not using gcc, we currently assume that we are using
7855    # Microsoft Visual C++.
7856    if test "$GCC" != yes; then
7857      with_gnu_ld=no
7858    fi
7859    ;;
7860  interix*)
7861    # we just hope/assume this is gcc and not c89 (= MSVC++)
7862    with_gnu_ld=yes
7863    ;;
7864  openbsd*)
7865    with_gnu_ld=no
7866    ;;
7867  esac
7868
7869  ld_shlibs=yes
7870  if test "$with_gnu_ld" = yes; then
7871    # If archive_cmds runs LD, not CC, wlarc should be empty
7872    wlarc='${wl}'
7873
7874    # Set some defaults for GNU ld with shared library support. These
7875    # are reset later if shared libraries are not supported. Putting them
7876    # here allows them to be overridden if necessary.
7877    runpath_var=LD_RUN_PATH
7878    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7879    export_dynamic_flag_spec='${wl}--export-dynamic'
7880    # ancient GNU ld didn't support --whole-archive et. al.
7881    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7882	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7883      else
7884  	whole_archive_flag_spec=
7885    fi
7886    supports_anon_versioning=no
7887    case `$LD -v 2>/dev/null` in
7888      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7889      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7890      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7891      *\ 2.11.*) ;; # other 2.11 versions
7892      *) supports_anon_versioning=yes ;;
7893    esac
7894
7895    # See if GNU ld supports shared libraries.
7896    case $host_os in
7897    aix3* | aix4* | aix5*)
7898      # On AIX/PPC, the GNU linker is very broken
7899      if test "$host_cpu" != ia64; then
7900	ld_shlibs=no
7901	cat <<EOF 1>&2
7902
7903*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7904*** to be unable to reliably create shared libraries on AIX.
7905*** Therefore, libtool is disabling shared libraries support.  If you
7906*** really care for shared libraries, you may want to modify your PATH
7907*** so that a non-GNU linker is found, and then restart.
7908
7909EOF
7910      fi
7911      ;;
7912
7913    amigaos*)
7914      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)'
7915      hardcode_libdir_flag_spec='-L$libdir'
7916      hardcode_minus_L=yes
7917
7918      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7919      # that the semantics of dynamic libraries on AmigaOS, at least up
7920      # to version 4, is to share data among multiple programs linked
7921      # with the same dynamic library.  Since this doesn't match the
7922      # behavior of shared libraries on other platforms, we can't use
7923      # them.
7924      ld_shlibs=no
7925      ;;
7926
7927    beos*)
7928      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7929	allow_undefined_flag=unsupported
7930	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7931	# support --undefined.  This deserves some investigation.  FIXME
7932	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7933      else
7934	ld_shlibs=no
7935      fi
7936      ;;
7937
7938    cygwin* | mingw* | pw32*)
7939      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7940      # as there is no search path for DLLs.
7941      hardcode_libdir_flag_spec='-L$libdir'
7942      allow_undefined_flag=unsupported
7943      always_export_symbols=no
7944      enable_shared_with_static_runtimes=yes
7945      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7946
7947      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7948        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7949	# If the export-symbols file already is a .def file (1st line
7950	# is EXPORTS), use it as is; otherwise, prepend...
7951	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7952	  cp $export_symbols $output_objdir/$soname.def;
7953	else
7954	  echo EXPORTS > $output_objdir/$soname.def;
7955	  cat $export_symbols >> $output_objdir/$soname.def;
7956	fi~
7957	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7958      else
7959	ld_shlibs=no
7960      fi
7961      ;;
7962
7963    interix3*)
7964      hardcode_direct=no
7965      hardcode_shlibpath_var=no
7966      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7967      export_dynamic_flag_spec='${wl}-E'
7968      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7969      # Instead, shared libraries are loaded at an image base (0x10000000 by
7970      # default) and relocated if they conflict, which is a slow very memory
7971      # consuming and fragmenting process.  To avoid this, we pick a random,
7972      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7973      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7974      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7975      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'
7976      ;;
7977
7978    linux* | k*bsd*-gnu)
7979      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7980	tmp_addflag=
7981	case $cc_basename,$host_cpu in
7982	pgcc*)				# Portland Group C compiler
7983	  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'
7984	  tmp_addflag=' $pic_flag'
7985	  ;;
7986	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7987	  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'
7988	  tmp_addflag=' $pic_flag -Mnomain' ;;
7989	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7990	  tmp_addflag=' -i_dynamic' ;;
7991	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7992	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7993	ifc* | ifort*)			# Intel Fortran compiler
7994	  tmp_addflag=' -nofor_main' ;;
7995	esac
7996	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7997
7998	if test $supports_anon_versioning = yes; then
7999	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8000  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8001  $echo "local: *; };" >> $output_objdir/$libname.ver~
8002	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8003	fi
8004	link_all_deplibs=no
8005      else
8006	ld_shlibs=no
8007      fi
8008      ;;
8009
8010    netbsd* | netbsdelf*-gnu)
8011      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8012	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8013	wlarc=
8014      else
8015	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8016	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8017      fi
8018      ;;
8019
8020    solaris*)
8021      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8022	ld_shlibs=no
8023	cat <<EOF 1>&2
8024
8025*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8026*** create shared libraries on Solaris systems.  Therefore, libtool
8027*** is disabling shared libraries support.  We urge you to upgrade GNU
8028*** binutils to release 2.9.1 or newer.  Another option is to modify
8029*** your PATH or compiler configuration so that the native linker is
8030*** used, and then restart.
8031
8032EOF
8033      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8034	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8035	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8036      else
8037	ld_shlibs=no
8038      fi
8039      ;;
8040
8041    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8042      case `$LD -v 2>&1` in
8043        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8044	ld_shlibs=no
8045	cat <<_LT_EOF 1>&2
8046
8047*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8048*** reliably create shared libraries on SCO systems.  Therefore, libtool
8049*** is disabling shared libraries support.  We urge you to upgrade GNU
8050*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8051*** your PATH or compiler configuration so that the native linker is
8052*** used, and then restart.
8053
8054_LT_EOF
8055	;;
8056	*)
8057	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8058	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8059	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8060	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8061	  else
8062	    ld_shlibs=no
8063	  fi
8064	;;
8065      esac
8066      ;;
8067
8068    sunos4*)
8069      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8070      wlarc=
8071      hardcode_direct=yes
8072      hardcode_shlibpath_var=no
8073      ;;
8074
8075    *)
8076      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8077	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8078	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8079      else
8080	ld_shlibs=no
8081      fi
8082      ;;
8083    esac
8084
8085    if test "$ld_shlibs" = no; then
8086      runpath_var=
8087      hardcode_libdir_flag_spec=
8088      export_dynamic_flag_spec=
8089      whole_archive_flag_spec=
8090    fi
8091  else
8092    # PORTME fill in a description of your system's linker (not GNU ld)
8093    case $host_os in
8094    aix3*)
8095      allow_undefined_flag=unsupported
8096      always_export_symbols=yes
8097      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'
8098      # Note: this linker hardcodes the directories in LIBPATH if there
8099      # are no directories specified by -L.
8100      hardcode_minus_L=yes
8101      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8102	# Neither direct hardcoding nor static linking is supported with a
8103	# broken collect2.
8104	hardcode_direct=unsupported
8105      fi
8106      ;;
8107
8108    aix4* | aix5*)
8109      if test "$host_cpu" = ia64; then
8110	# On IA64, the linker does run time linking by default, so we don't
8111	# have to do anything special.
8112	aix_use_runtimelinking=no
8113	exp_sym_flag='-Bexport'
8114	no_entry_flag=""
8115      else
8116	# If we're using GNU nm, then we don't want the "-C" option.
8117	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8118	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8119	  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'
8120	else
8121	  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'
8122	fi
8123	aix_use_runtimelinking=no
8124
8125	# Test if we are trying to use run time linking or normal
8126	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8127	# need to do runtime linking.
8128	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8129	  for ld_flag in $LDFLAGS; do
8130  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8131  	    aix_use_runtimelinking=yes
8132  	    break
8133  	  fi
8134	  done
8135	  ;;
8136	esac
8137
8138	exp_sym_flag='-bexport'
8139	no_entry_flag='-bnoentry'
8140      fi
8141
8142      # When large executables or shared objects are built, AIX ld can
8143      # have problems creating the table of contents.  If linking a library
8144      # or program results in "error TOC overflow" add -mminimal-toc to
8145      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8146      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8147
8148      archive_cmds=''
8149      hardcode_direct=yes
8150      hardcode_libdir_separator=':'
8151      link_all_deplibs=yes
8152
8153      if test "$GCC" = yes; then
8154	case $host_os in aix4.[012]|aix4.[012].*)
8155	# We only want to do this on AIX 4.2 and lower, the check
8156	# below for broken collect2 doesn't work under 4.3+
8157	  collect2name=`${CC} -print-prog-name=collect2`
8158	  if test -f "$collect2name" && \
8159  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8160	  then
8161  	  # We have reworked collect2
8162  	  hardcode_direct=yes
8163	  else
8164  	  # We have old collect2
8165  	  hardcode_direct=unsupported
8166  	  # It fails to find uninstalled libraries when the uninstalled
8167  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8168  	  # to unsupported forces relinking
8169  	  hardcode_minus_L=yes
8170  	  hardcode_libdir_flag_spec='-L$libdir'
8171  	  hardcode_libdir_separator=
8172	  fi
8173	  ;;
8174	esac
8175	shared_flag='-shared'
8176	if test "$aix_use_runtimelinking" = yes; then
8177	  shared_flag="$shared_flag "'${wl}-G'
8178	fi
8179      else
8180	# not using gcc
8181	if test "$host_cpu" = ia64; then
8182  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8183  	# chokes on -Wl,-G. The following line is correct:
8184	  shared_flag='-G'
8185	else
8186	  if test "$aix_use_runtimelinking" = yes; then
8187	    shared_flag='${wl}-G'
8188	  else
8189	    shared_flag='${wl}-bM:SRE'
8190	  fi
8191	fi
8192      fi
8193
8194      # It seems that -bexpall does not export symbols beginning with
8195      # underscore (_), so it is better to generate a list of symbols to export.
8196      always_export_symbols=yes
8197      if test "$aix_use_runtimelinking" = yes; then
8198	# Warning - without using the other runtime loading flags (-brtl),
8199	# -berok will link without error, but may produce a broken library.
8200	allow_undefined_flag='-berok'
8201       # Determine the default libpath from the value encoded in an empty executable.
8202       cat >conftest.$ac_ext <<_ACEOF
8203/* confdefs.h.  */
8204_ACEOF
8205cat confdefs.h >>conftest.$ac_ext
8206cat >>conftest.$ac_ext <<_ACEOF
8207/* end confdefs.h.  */
8208
8209int
8210main ()
8211{
8212
8213  ;
8214  return 0;
8215}
8216_ACEOF
8217rm -f conftest.$ac_objext conftest$ac_exeext
8218if { (ac_try="$ac_link"
8219case "(($ac_try" in
8220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8221  *) ac_try_echo=$ac_try;;
8222esac
8223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8224  (eval "$ac_link") 2>conftest.er1
8225  ac_status=$?
8226  grep -v '^ *+' conftest.er1 >conftest.err
8227  rm -f conftest.er1
8228  cat conftest.err >&5
8229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230  (exit $ac_status); } &&
8231	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8232  { (case "(($ac_try" in
8233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8234  *) ac_try_echo=$ac_try;;
8235esac
8236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8237  (eval "$ac_try") 2>&5
8238  ac_status=$?
8239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240  (exit $ac_status); }; } &&
8241	 { ac_try='test -s conftest$ac_exeext'
8242  { (case "(($ac_try" in
8243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244  *) ac_try_echo=$ac_try;;
8245esac
8246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8247  (eval "$ac_try") 2>&5
8248  ac_status=$?
8249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250  (exit $ac_status); }; }; then
8251
8252aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8253}'`
8254# Check for a 64-bit object if we didn't find anything.
8255if 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; }
8256}'`; fi
8257else
8258  echo "$as_me: failed program was:" >&5
8259sed 's/^/| /' conftest.$ac_ext >&5
8260
8261
8262fi
8263
8264rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8265      conftest$ac_exeext conftest.$ac_ext
8266if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8267
8268       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8269	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"
8270       else
8271	if test "$host_cpu" = ia64; then
8272	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8273	  allow_undefined_flag="-z nodefs"
8274	  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"
8275	else
8276	 # Determine the default libpath from the value encoded in an empty executable.
8277	 cat >conftest.$ac_ext <<_ACEOF
8278/* confdefs.h.  */
8279_ACEOF
8280cat confdefs.h >>conftest.$ac_ext
8281cat >>conftest.$ac_ext <<_ACEOF
8282/* end confdefs.h.  */
8283
8284int
8285main ()
8286{
8287
8288  ;
8289  return 0;
8290}
8291_ACEOF
8292rm -f conftest.$ac_objext conftest$ac_exeext
8293if { (ac_try="$ac_link"
8294case "(($ac_try" in
8295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296  *) ac_try_echo=$ac_try;;
8297esac
8298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299  (eval "$ac_link") 2>conftest.er1
8300  ac_status=$?
8301  grep -v '^ *+' conftest.er1 >conftest.err
8302  rm -f conftest.er1
8303  cat conftest.err >&5
8304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305  (exit $ac_status); } &&
8306	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8307  { (case "(($ac_try" in
8308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8309  *) ac_try_echo=$ac_try;;
8310esac
8311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8312  (eval "$ac_try") 2>&5
8313  ac_status=$?
8314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315  (exit $ac_status); }; } &&
8316	 { ac_try='test -s conftest$ac_exeext'
8317  { (case "(($ac_try" in
8318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8319  *) ac_try_echo=$ac_try;;
8320esac
8321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8322  (eval "$ac_try") 2>&5
8323  ac_status=$?
8324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325  (exit $ac_status); }; }; then
8326
8327aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8328}'`
8329# Check for a 64-bit object if we didn't find anything.
8330if 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; }
8331}'`; fi
8332else
8333  echo "$as_me: failed program was:" >&5
8334sed 's/^/| /' conftest.$ac_ext >&5
8335
8336
8337fi
8338
8339rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8340      conftest$ac_exeext conftest.$ac_ext
8341if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8342
8343	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8344	  # Warning - without using the other run time loading flags,
8345	  # -berok will link without error, but may produce a broken library.
8346	  no_undefined_flag=' ${wl}-bernotok'
8347	  allow_undefined_flag=' ${wl}-berok'
8348	  # Exported symbols can be pulled into shared objects from archives
8349	  whole_archive_flag_spec='$convenience'
8350	  archive_cmds_need_lc=yes
8351	  # This is similar to how AIX traditionally builds its shared libraries.
8352	  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'
8353	fi
8354      fi
8355      ;;
8356
8357    amigaos*)
8358      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)'
8359      hardcode_libdir_flag_spec='-L$libdir'
8360      hardcode_minus_L=yes
8361      # see comment about different semantics on the GNU ld section
8362      ld_shlibs=no
8363      ;;
8364
8365    bsdi[45]*)
8366      export_dynamic_flag_spec=-rdynamic
8367      ;;
8368
8369    cygwin* | mingw* | pw32*)
8370      # When not using gcc, we currently assume that we are using
8371      # Microsoft Visual C++.
8372      # hardcode_libdir_flag_spec is actually meaningless, as there is
8373      # no search path for DLLs.
8374      hardcode_libdir_flag_spec=' '
8375      allow_undefined_flag=unsupported
8376      # Tell ltmain to make .lib files, not .a files.
8377      libext=lib
8378      # Tell ltmain to make .dll files, not .so files.
8379      shrext_cmds=".dll"
8380      # FIXME: Setting linknames here is a bad hack.
8381      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8382      # The linker will automatically build a .lib file if we build a DLL.
8383      old_archive_From_new_cmds='true'
8384      # FIXME: Should let the user specify the lib program.
8385      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8386      fix_srcfile_path='`cygpath -w "$srcfile"`'
8387      enable_shared_with_static_runtimes=yes
8388      ;;
8389
8390    darwin* | rhapsody*)
8391      case $host_os in
8392        rhapsody* | darwin1.[012])
8393         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8394         ;;
8395       *) # Darwin 1.3 on
8396         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8397           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8398         else
8399           case ${MACOSX_DEPLOYMENT_TARGET} in
8400             10.[012])
8401               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8402               ;;
8403             10.*)
8404               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8405               ;;
8406           esac
8407         fi
8408         ;;
8409      esac
8410      archive_cmds_need_lc=no
8411      hardcode_direct=no
8412      hardcode_automatic=yes
8413      hardcode_shlibpath_var=unsupported
8414      whole_archive_flag_spec=''
8415      link_all_deplibs=yes
8416    if test "$GCC" = yes ; then
8417    	output_verbose_link_cmd='echo'
8418        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8419      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8420      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8421      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}'
8422      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}'
8423    else
8424      case $cc_basename in
8425        xlc*)
8426         output_verbose_link_cmd='echo'
8427         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8428         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8429          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8430         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}'
8431          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}'
8432          ;;
8433       *)
8434         ld_shlibs=no
8435          ;;
8436      esac
8437    fi
8438      ;;
8439
8440    dgux*)
8441      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8442      hardcode_libdir_flag_spec='-L$libdir'
8443      hardcode_shlibpath_var=no
8444      ;;
8445
8446    freebsd1*)
8447      ld_shlibs=no
8448      ;;
8449
8450    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8451    # support.  Future versions do this automatically, but an explicit c++rt0.o
8452    # does not break anything, and helps significantly (at the cost of a little
8453    # extra space).
8454    freebsd2.2*)
8455      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8456      hardcode_libdir_flag_spec='-R$libdir'
8457      hardcode_direct=yes
8458      hardcode_shlibpath_var=no
8459      ;;
8460
8461    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8462    freebsd2*)
8463      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8464      hardcode_direct=yes
8465      hardcode_minus_L=yes
8466      hardcode_shlibpath_var=no
8467      ;;
8468
8469    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8470    freebsd* | dragonfly*)
8471      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8472      hardcode_libdir_flag_spec='-R$libdir'
8473      hardcode_direct=yes
8474      hardcode_shlibpath_var=no
8475      ;;
8476
8477    hpux9*)
8478      if test "$GCC" = yes; then
8479	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'
8480      else
8481	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'
8482      fi
8483      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8484      hardcode_libdir_separator=:
8485      hardcode_direct=yes
8486
8487      # hardcode_minus_L: Not really in the search PATH,
8488      # but as the default location of the library.
8489      hardcode_minus_L=yes
8490      export_dynamic_flag_spec='${wl}-E'
8491      ;;
8492
8493    hpux10*)
8494      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8495	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8496      else
8497	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8498      fi
8499      if test "$with_gnu_ld" = no; then
8500	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8501	hardcode_libdir_separator=:
8502
8503	hardcode_direct=yes
8504	export_dynamic_flag_spec='${wl}-E'
8505
8506	# hardcode_minus_L: Not really in the search PATH,
8507	# but as the default location of the library.
8508	hardcode_minus_L=yes
8509      fi
8510      ;;
8511
8512    hpux11*)
8513      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8514	case $host_cpu in
8515	hppa*64*)
8516	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8517	  ;;
8518	ia64*)
8519	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8520	  ;;
8521	*)
8522	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8523	  ;;
8524	esac
8525      else
8526	case $host_cpu in
8527	hppa*64*)
8528	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8529	  ;;
8530	ia64*)
8531	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8532	  ;;
8533	*)
8534	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8535	  ;;
8536	esac
8537      fi
8538      if test "$with_gnu_ld" = no; then
8539	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8540	hardcode_libdir_separator=:
8541
8542	case $host_cpu in
8543	hppa*64*|ia64*)
8544	  hardcode_libdir_flag_spec_ld='+b $libdir'
8545	  hardcode_direct=no
8546	  hardcode_shlibpath_var=no
8547	  ;;
8548	*)
8549	  hardcode_direct=yes
8550	  export_dynamic_flag_spec='${wl}-E'
8551
8552	  # hardcode_minus_L: Not really in the search PATH,
8553	  # but as the default location of the library.
8554	  hardcode_minus_L=yes
8555	  ;;
8556	esac
8557      fi
8558      ;;
8559
8560    irix5* | irix6* | nonstopux*)
8561      if test "$GCC" = yes; then
8562	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'
8563      else
8564	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'
8565	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8566      fi
8567      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8568      hardcode_libdir_separator=:
8569      link_all_deplibs=yes
8570      ;;
8571
8572    netbsd* | netbsdelf*-gnu)
8573      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8574	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8575      else
8576	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8577      fi
8578      hardcode_libdir_flag_spec='-R$libdir'
8579      hardcode_direct=yes
8580      hardcode_shlibpath_var=no
8581      ;;
8582
8583    newsos6)
8584      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8585      hardcode_direct=yes
8586      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8587      hardcode_libdir_separator=:
8588      hardcode_shlibpath_var=no
8589      ;;
8590
8591    openbsd*)
8592      hardcode_direct=yes
8593      hardcode_shlibpath_var=no
8594      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8595	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8596	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8597	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8598	export_dynamic_flag_spec='${wl}-E'
8599      else
8600       case $host_os in
8601	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8602	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8603	   hardcode_libdir_flag_spec='-R$libdir'
8604	   ;;
8605	 *)
8606	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8607	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8608	   ;;
8609       esac
8610      fi
8611      ;;
8612
8613    os2*)
8614      hardcode_libdir_flag_spec='-L$libdir'
8615      hardcode_minus_L=yes
8616      allow_undefined_flag=unsupported
8617      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'
8618      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8619      ;;
8620
8621    osf3*)
8622      if test "$GCC" = yes; then
8623	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8624	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'
8625      else
8626	allow_undefined_flag=' -expect_unresolved \*'
8627	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'
8628      fi
8629      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8630      hardcode_libdir_separator=:
8631      ;;
8632
8633    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8634      if test "$GCC" = yes; then
8635	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8636	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'
8637	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8638      else
8639	allow_undefined_flag=' -expect_unresolved \*'
8640	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'
8641	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8642	$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'
8643
8644	# Both c and cxx compiler support -rpath directly
8645	hardcode_libdir_flag_spec='-rpath $libdir'
8646      fi
8647      hardcode_libdir_separator=:
8648      ;;
8649
8650    solaris*)
8651      no_undefined_flag=' -z text'
8652      if test "$GCC" = yes; then
8653	wlarc='${wl}'
8654	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8655	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8656	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8657      else
8658	wlarc=''
8659	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8660	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8661  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8662      fi
8663      hardcode_libdir_flag_spec='-R$libdir'
8664      hardcode_shlibpath_var=no
8665      case $host_os in
8666      solaris2.[0-5] | solaris2.[0-5].*) ;;
8667      *)
8668 	# The compiler driver will combine linker options so we
8669 	# cannot just pass the convience library names through
8670 	# without $wl, iff we do not link with $LD.
8671 	# Luckily, gcc supports the same syntax we need for Sun Studio.
8672 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8673 	case $wlarc in
8674 	'')
8675 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8676 	*)
8677 	  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' ;;
8678 	esac ;;
8679      esac
8680      link_all_deplibs=yes
8681      ;;
8682
8683    sunos4*)
8684      if test "x$host_vendor" = xsequent; then
8685	# Use $CC to link under sequent, because it throws in some extra .o
8686	# files that make .init and .fini sections work.
8687	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8688      else
8689	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8690      fi
8691      hardcode_libdir_flag_spec='-L$libdir'
8692      hardcode_direct=yes
8693      hardcode_minus_L=yes
8694      hardcode_shlibpath_var=no
8695      ;;
8696
8697    sysv4)
8698      case $host_vendor in
8699	sni)
8700	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8701	  hardcode_direct=yes # is this really true???
8702	;;
8703	siemens)
8704	  ## LD is ld it makes a PLAMLIB
8705	  ## CC just makes a GrossModule.
8706	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8707	  reload_cmds='$CC -r -o $output$reload_objs'
8708	  hardcode_direct=no
8709        ;;
8710	motorola)
8711	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8712	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8713	;;
8714      esac
8715      runpath_var='LD_RUN_PATH'
8716      hardcode_shlibpath_var=no
8717      ;;
8718
8719    sysv4.3*)
8720      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8721      hardcode_shlibpath_var=no
8722      export_dynamic_flag_spec='-Bexport'
8723      ;;
8724
8725    sysv4*MP*)
8726      if test -d /usr/nec; then
8727	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8728	hardcode_shlibpath_var=no
8729	runpath_var=LD_RUN_PATH
8730	hardcode_runpath_var=yes
8731	ld_shlibs=yes
8732      fi
8733      ;;
8734
8735    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8736      no_undefined_flag='${wl}-z,text'
8737      archive_cmds_need_lc=no
8738      hardcode_shlibpath_var=no
8739      runpath_var='LD_RUN_PATH'
8740
8741      if test "$GCC" = yes; then
8742	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8743	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8744      else
8745	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8746	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8747      fi
8748      ;;
8749
8750    sysv5* | sco3.2v5* | sco5v6*)
8751      # Note: We can NOT use -z defs as we might desire, because we do not
8752      # link with -lc, and that would cause any symbols used from libc to
8753      # always be unresolved, which means just about no library would
8754      # ever link correctly.  If we're not using GNU ld we use -z text
8755      # though, which does catch some bad symbols but isn't as heavy-handed
8756      # as -z defs.
8757      no_undefined_flag='${wl}-z,text'
8758      allow_undefined_flag='${wl}-z,nodefs'
8759      archive_cmds_need_lc=no
8760      hardcode_shlibpath_var=no
8761      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8762      hardcode_libdir_separator=':'
8763      link_all_deplibs=yes
8764      export_dynamic_flag_spec='${wl}-Bexport'
8765      runpath_var='LD_RUN_PATH'
8766
8767      if test "$GCC" = yes; then
8768	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8769	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8770      else
8771	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8772	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8773      fi
8774      ;;
8775
8776    uts4*)
8777      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8778      hardcode_libdir_flag_spec='-L$libdir'
8779      hardcode_shlibpath_var=no
8780      ;;
8781
8782    *)
8783      ld_shlibs=no
8784      ;;
8785    esac
8786  fi
8787
8788{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8789echo "${ECHO_T}$ld_shlibs" >&6; }
8790test "$ld_shlibs" = no && can_build_shared=no
8791
8792#
8793# Do we need to explicitly link libc?
8794#
8795case "x$archive_cmds_need_lc" in
8796x|xyes)
8797  # Assume -lc should be added
8798  archive_cmds_need_lc=yes
8799
8800  if test "$enable_shared" = yes && test "$GCC" = yes; then
8801    case $archive_cmds in
8802    *'~'*)
8803      # FIXME: we may have to deal with multi-command sequences.
8804      ;;
8805    '$CC '*)
8806      # Test whether the compiler implicitly links with -lc since on some
8807      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8808      # to ld, don't add -lc before -lgcc.
8809      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8810echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8811      $rm conftest*
8812      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8813
8814      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8815  (eval $ac_compile) 2>&5
8816  ac_status=$?
8817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818  (exit $ac_status); } 2>conftest.err; then
8819        soname=conftest
8820        lib=conftest
8821        libobjs=conftest.$ac_objext
8822        deplibs=
8823        wl=$lt_prog_compiler_wl
8824	pic_flag=$lt_prog_compiler_pic
8825        compiler_flags=-v
8826        linker_flags=-v
8827        verstring=
8828        output_objdir=.
8829        libname=conftest
8830        lt_save_allow_undefined_flag=$allow_undefined_flag
8831        allow_undefined_flag=
8832        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8833  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8834  ac_status=$?
8835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836  (exit $ac_status); }
8837        then
8838	  archive_cmds_need_lc=no
8839        else
8840	  archive_cmds_need_lc=yes
8841        fi
8842        allow_undefined_flag=$lt_save_allow_undefined_flag
8843      else
8844        cat conftest.err 1>&5
8845      fi
8846      $rm conftest*
8847      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8848echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8849      ;;
8850    esac
8851  fi
8852  ;;
8853esac
8854
8855{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8856echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8857library_names_spec=
8858libname_spec='lib$name'
8859soname_spec=
8860shrext_cmds=".so"
8861postinstall_cmds=
8862postuninstall_cmds=
8863finish_cmds=
8864finish_eval=
8865shlibpath_var=
8866shlibpath_overrides_runpath=unknown
8867version_type=none
8868dynamic_linker="$host_os ld.so"
8869sys_lib_dlsearch_path_spec="/lib /usr/lib"
8870if test "$GCC" = yes; then
8871  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8872  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8873    # if the path contains ";" then we assume it to be the separator
8874    # otherwise default to the standard path separator (i.e. ":") - it is
8875    # assumed that no part of a normal pathname contains ";" but that should
8876    # okay in the real world where ";" in dirpaths is itself problematic.
8877    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8878  else
8879    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8880  fi
8881else
8882  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8883fi
8884need_lib_prefix=unknown
8885hardcode_into_libs=no
8886
8887# when you set need_version to no, make sure it does not cause -set_version
8888# flags to be left without arguments
8889need_version=unknown
8890
8891case $host_os in
8892aix3*)
8893  version_type=linux
8894  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8895  shlibpath_var=LIBPATH
8896
8897  # AIX 3 has no versioning support, so we append a major version to the name.
8898  soname_spec='${libname}${release}${shared_ext}$major'
8899  ;;
8900
8901aix4* | aix5*)
8902  version_type=linux
8903  need_lib_prefix=no
8904  need_version=no
8905  hardcode_into_libs=yes
8906  if test "$host_cpu" = ia64; then
8907    # AIX 5 supports IA64
8908    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8909    shlibpath_var=LD_LIBRARY_PATH
8910  else
8911    # With GCC up to 2.95.x, collect2 would create an import file
8912    # for dependence libraries.  The import file would start with
8913    # the line `#! .'.  This would cause the generated library to
8914    # depend on `.', always an invalid library.  This was fixed in
8915    # development snapshots of GCC prior to 3.0.
8916    case $host_os in
8917      aix4 | aix4.[01] | aix4.[01].*)
8918      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8919	   echo ' yes '
8920	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8921	:
8922      else
8923	can_build_shared=no
8924      fi
8925      ;;
8926    esac
8927    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8928    # soname into executable. Probably we can add versioning support to
8929    # collect2, so additional links can be useful in future.
8930    if test "$aix_use_runtimelinking" = yes; then
8931      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8932      # instead of lib<name>.a to let people know that these are not
8933      # typical AIX shared libraries.
8934      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8935    else
8936      # We preserve .a as extension for shared libraries through AIX4.2
8937      # and later when we are not doing run time linking.
8938      library_names_spec='${libname}${release}.a $libname.a'
8939      soname_spec='${libname}${release}${shared_ext}$major'
8940    fi
8941    shlibpath_var=LIBPATH
8942  fi
8943  ;;
8944
8945amigaos*)
8946  library_names_spec='$libname.ixlibrary $libname.a'
8947  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8948  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'
8949  ;;
8950
8951beos*)
8952  library_names_spec='${libname}${shared_ext}'
8953  dynamic_linker="$host_os ld.so"
8954  shlibpath_var=LIBRARY_PATH
8955  ;;
8956
8957bsdi[45]*)
8958  version_type=linux
8959  need_version=no
8960  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8961  soname_spec='${libname}${release}${shared_ext}$major'
8962  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8963  shlibpath_var=LD_LIBRARY_PATH
8964  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8965  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8966  # the default ld.so.conf also contains /usr/contrib/lib and
8967  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8968  # libtool to hard-code these into programs
8969  ;;
8970
8971cygwin* | mingw* | pw32*)
8972  version_type=windows
8973  shrext_cmds=".dll"
8974  need_version=no
8975  need_lib_prefix=no
8976
8977  case $GCC,$host_os in
8978  yes,cygwin* | yes,mingw* | yes,pw32*)
8979    library_names_spec='$libname.dll.a'
8980    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8981    postinstall_cmds='base_file=`basename \${file}`~
8982      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8983      dldir=$destdir/`dirname \$dlpath`~
8984      test -d \$dldir || mkdir -p \$dldir~
8985      $install_prog $dir/$dlname \$dldir/$dlname~
8986      chmod a+x \$dldir/$dlname'
8987    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8988      dlpath=$dir/\$dldll~
8989       $rm \$dlpath'
8990    shlibpath_overrides_runpath=yes
8991
8992    case $host_os in
8993    cygwin*)
8994      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8995      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8996      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8997      ;;
8998    mingw*)
8999      # MinGW DLLs use traditional 'lib' prefix
9000      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9001      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9002      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9003        # It is most probably a Windows format PATH printed by
9004        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9005        # path with ; separators, and with drive letters. We can handle the
9006        # drive letters (cygwin fileutils understands them), so leave them,
9007        # especially as we might pass files found there to a mingw objdump,
9008        # which wouldn't understand a cygwinified path. Ahh.
9009        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9010      else
9011        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9012      fi
9013      ;;
9014    pw32*)
9015      # pw32 DLLs use 'pw' prefix rather than 'lib'
9016      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9017      ;;
9018    esac
9019    ;;
9020
9021  *)
9022    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9023    ;;
9024  esac
9025  dynamic_linker='Win32 ld.exe'
9026  # FIXME: first we should search . and the directory the executable is in
9027  shlibpath_var=PATH
9028  ;;
9029
9030darwin* | rhapsody*)
9031  dynamic_linker="$host_os dyld"
9032  version_type=darwin
9033  need_lib_prefix=no
9034  need_version=no
9035  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9036  soname_spec='${libname}${release}${major}$shared_ext'
9037  shlibpath_overrides_runpath=yes
9038  shlibpath_var=DYLD_LIBRARY_PATH
9039  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9040  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9041  if test "$GCC" = yes; then
9042    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"`
9043  else
9044    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9045  fi
9046  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9047  ;;
9048
9049dgux*)
9050  version_type=linux
9051  need_lib_prefix=no
9052  need_version=no
9053  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9054  soname_spec='${libname}${release}${shared_ext}$major'
9055  shlibpath_var=LD_LIBRARY_PATH
9056  ;;
9057
9058freebsd1*)
9059  dynamic_linker=no
9060  ;;
9061
9062freebsd* | dragonfly*)
9063  # DragonFly does not have aout.  When/if they implement a new
9064  # versioning mechanism, adjust this.
9065  if test -x /usr/bin/objformat; then
9066    objformat=`/usr/bin/objformat`
9067  else
9068    case $host_os in
9069    freebsd[123]*) objformat=aout ;;
9070    *) objformat=elf ;;
9071    esac
9072  fi
9073  version_type=freebsd-$objformat
9074  case $version_type in
9075    freebsd-elf*)
9076      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9077      need_version=no
9078      need_lib_prefix=no
9079      ;;
9080    freebsd-*)
9081      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9082      need_version=yes
9083      ;;
9084  esac
9085  shlibpath_var=LD_LIBRARY_PATH
9086  case $host_os in
9087  freebsd2*)
9088    shlibpath_overrides_runpath=yes
9089    ;;
9090  freebsd3.[01]* | freebsdelf3.[01]*)
9091    shlibpath_overrides_runpath=yes
9092    hardcode_into_libs=yes
9093    ;;
9094  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9095  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9096    shlibpath_overrides_runpath=no
9097    hardcode_into_libs=yes
9098    ;;
9099  freebsd*) # from 4.6 on
9100    shlibpath_overrides_runpath=yes
9101    hardcode_into_libs=yes
9102    ;;
9103  esac
9104  ;;
9105
9106gnu*)
9107  version_type=linux
9108  need_lib_prefix=no
9109  need_version=no
9110  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9111  soname_spec='${libname}${release}${shared_ext}$major'
9112  shlibpath_var=LD_LIBRARY_PATH
9113  hardcode_into_libs=yes
9114  ;;
9115
9116hpux9* | hpux10* | hpux11*)
9117  # Give a soname corresponding to the major version so that dld.sl refuses to
9118  # link against other versions.
9119  version_type=sunos
9120  need_lib_prefix=no
9121  need_version=no
9122  case $host_cpu in
9123  ia64*)
9124    shrext_cmds='.so'
9125    hardcode_into_libs=yes
9126    dynamic_linker="$host_os dld.so"
9127    shlibpath_var=LD_LIBRARY_PATH
9128    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9129    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9130    soname_spec='${libname}${release}${shared_ext}$major'
9131    if test "X$HPUX_IA64_MODE" = X32; then
9132      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9133    else
9134      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9135    fi
9136    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9137    ;;
9138   hppa*64*)
9139     shrext_cmds='.sl'
9140     hardcode_into_libs=yes
9141     dynamic_linker="$host_os dld.sl"
9142     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9143     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9144     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145     soname_spec='${libname}${release}${shared_ext}$major'
9146     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9147     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9148     ;;
9149   *)
9150    shrext_cmds='.sl'
9151    dynamic_linker="$host_os dld.sl"
9152    shlibpath_var=SHLIB_PATH
9153    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9154    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9155    soname_spec='${libname}${release}${shared_ext}$major'
9156    ;;
9157  esac
9158  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9159  postinstall_cmds='chmod 555 $lib'
9160  ;;
9161
9162interix3*)
9163  version_type=linux
9164  need_lib_prefix=no
9165  need_version=no
9166  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9167  soname_spec='${libname}${release}${shared_ext}$major'
9168  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9169  shlibpath_var=LD_LIBRARY_PATH
9170  shlibpath_overrides_runpath=no
9171  hardcode_into_libs=yes
9172  ;;
9173
9174irix5* | irix6* | nonstopux*)
9175  case $host_os in
9176    nonstopux*) version_type=nonstopux ;;
9177    *)
9178	if test "$lt_cv_prog_gnu_ld" = yes; then
9179		version_type=linux
9180	else
9181		version_type=irix
9182	fi ;;
9183  esac
9184  need_lib_prefix=no
9185  need_version=no
9186  soname_spec='${libname}${release}${shared_ext}$major'
9187  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9188  case $host_os in
9189  irix5* | nonstopux*)
9190    libsuff= shlibsuff=
9191    ;;
9192  *)
9193    case $LD in # libtool.m4 will add one of these switches to LD
9194    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9195      libsuff= shlibsuff= libmagic=32-bit;;
9196    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9197      libsuff=32 shlibsuff=N32 libmagic=N32;;
9198    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9199      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9200    *) libsuff= shlibsuff= libmagic=never-match;;
9201    esac
9202    ;;
9203  esac
9204  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9205  shlibpath_overrides_runpath=no
9206  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9207  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9208  hardcode_into_libs=yes
9209  ;;
9210
9211# No shared lib support for Linux oldld, aout, or coff.
9212linux*oldld* | linux*aout* | linux*coff*)
9213  dynamic_linker=no
9214  ;;
9215
9216# This must be Linux ELF.
9217linux* | k*bsd*-gnu)
9218  version_type=linux
9219  need_lib_prefix=no
9220  need_version=no
9221  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9222  soname_spec='${libname}${release}${shared_ext}$major'
9223  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9224  shlibpath_var=LD_LIBRARY_PATH
9225  shlibpath_overrides_runpath=no
9226  # This implies no fast_install, which is unacceptable.
9227  # Some rework will be needed to allow for fast_install
9228  # before this can be enabled.
9229  hardcode_into_libs=yes
9230
9231  # Append ld.so.conf contents to the search path
9232  if test -f /etc/ld.so.conf; then
9233    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' ' '`
9234    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9235  fi
9236
9237  # We used to test for /lib/ld.so.1 and disable shared libraries on
9238  # powerpc, because MkLinux only supported shared libraries with the
9239  # GNU dynamic linker.  Since this was broken with cross compilers,
9240  # most powerpc-linux boxes support dynamic linking these days and
9241  # people can always --disable-shared, the test was removed, and we
9242  # assume the GNU/Linux dynamic linker is in use.
9243  dynamic_linker='GNU/Linux ld.so'
9244  ;;
9245
9246netbsdelf*-gnu)
9247  version_type=linux
9248  need_lib_prefix=no
9249  need_version=no
9250  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9251  soname_spec='${libname}${release}${shared_ext}$major'
9252  shlibpath_var=LD_LIBRARY_PATH
9253  shlibpath_overrides_runpath=no
9254  hardcode_into_libs=yes
9255  dynamic_linker='NetBSD ld.elf_so'
9256  ;;
9257
9258netbsd*)
9259  version_type=sunos
9260  need_lib_prefix=no
9261  need_version=no
9262  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9263    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9264    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9265    dynamic_linker='NetBSD (a.out) ld.so'
9266  else
9267    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9268    soname_spec='${libname}${release}${shared_ext}$major'
9269    dynamic_linker='NetBSD ld.elf_so'
9270  fi
9271  shlibpath_var=LD_LIBRARY_PATH
9272  shlibpath_overrides_runpath=yes
9273  hardcode_into_libs=yes
9274  ;;
9275
9276newsos6)
9277  version_type=linux
9278  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9279  shlibpath_var=LD_LIBRARY_PATH
9280  shlibpath_overrides_runpath=yes
9281  ;;
9282
9283nto-qnx*)
9284  version_type=linux
9285  need_lib_prefix=no
9286  need_version=no
9287  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9288  soname_spec='${libname}${release}${shared_ext}$major'
9289  shlibpath_var=LD_LIBRARY_PATH
9290  shlibpath_overrides_runpath=yes
9291  ;;
9292
9293openbsd*)
9294  version_type=sunos
9295  sys_lib_dlsearch_path_spec="/usr/lib"
9296  need_lib_prefix=no
9297  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9298  case $host_os in
9299    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9300    *)                         need_version=no  ;;
9301  esac
9302  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9303  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9304  shlibpath_var=LD_LIBRARY_PATH
9305  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9306    case $host_os in
9307      openbsd2.[89] | openbsd2.[89].*)
9308	shlibpath_overrides_runpath=no
9309	;;
9310      *)
9311	shlibpath_overrides_runpath=yes
9312	;;
9313      esac
9314  else
9315    shlibpath_overrides_runpath=yes
9316  fi
9317  ;;
9318
9319os2*)
9320  libname_spec='$name'
9321  shrext_cmds=".dll"
9322  need_lib_prefix=no
9323  library_names_spec='$libname${shared_ext} $libname.a'
9324  dynamic_linker='OS/2 ld.exe'
9325  shlibpath_var=LIBPATH
9326  ;;
9327
9328osf3* | osf4* | osf5*)
9329  version_type=osf
9330  need_lib_prefix=no
9331  need_version=no
9332  soname_spec='${libname}${release}${shared_ext}$major'
9333  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9334  shlibpath_var=LD_LIBRARY_PATH
9335  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9336  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9337  ;;
9338
9339solaris*)
9340  version_type=linux
9341  need_lib_prefix=no
9342  need_version=no
9343  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9344  soname_spec='${libname}${release}${shared_ext}$major'
9345  shlibpath_var=LD_LIBRARY_PATH
9346  shlibpath_overrides_runpath=yes
9347  hardcode_into_libs=yes
9348  # ldd complains unless libraries are executable
9349  postinstall_cmds='chmod +x $lib'
9350  ;;
9351
9352sunos4*)
9353  version_type=sunos
9354  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9355  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9356  shlibpath_var=LD_LIBRARY_PATH
9357  shlibpath_overrides_runpath=yes
9358  if test "$with_gnu_ld" = yes; then
9359    need_lib_prefix=no
9360  fi
9361  need_version=yes
9362  ;;
9363
9364sysv4 | sysv4.3*)
9365  version_type=linux
9366  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9367  soname_spec='${libname}${release}${shared_ext}$major'
9368  shlibpath_var=LD_LIBRARY_PATH
9369  case $host_vendor in
9370    sni)
9371      shlibpath_overrides_runpath=no
9372      need_lib_prefix=no
9373      export_dynamic_flag_spec='${wl}-Blargedynsym'
9374      runpath_var=LD_RUN_PATH
9375      ;;
9376    siemens)
9377      need_lib_prefix=no
9378      ;;
9379    motorola)
9380      need_lib_prefix=no
9381      need_version=no
9382      shlibpath_overrides_runpath=no
9383      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9384      ;;
9385  esac
9386  ;;
9387
9388sysv4*MP*)
9389  if test -d /usr/nec ;then
9390    version_type=linux
9391    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9392    soname_spec='$libname${shared_ext}.$major'
9393    shlibpath_var=LD_LIBRARY_PATH
9394  fi
9395  ;;
9396
9397sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9398  version_type=freebsd-elf
9399  need_lib_prefix=no
9400  need_version=no
9401  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9402  soname_spec='${libname}${release}${shared_ext}$major'
9403  shlibpath_var=LD_LIBRARY_PATH
9404  hardcode_into_libs=yes
9405  if test "$with_gnu_ld" = yes; then
9406    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9407    shlibpath_overrides_runpath=no
9408  else
9409    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9410    shlibpath_overrides_runpath=yes
9411    case $host_os in
9412      sco3.2v5*)
9413        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9414	;;
9415    esac
9416  fi
9417  sys_lib_dlsearch_path_spec='/usr/lib'
9418  ;;
9419
9420uts4*)
9421  version_type=linux
9422  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9423  soname_spec='${libname}${release}${shared_ext}$major'
9424  shlibpath_var=LD_LIBRARY_PATH
9425  ;;
9426
9427*)
9428  dynamic_linker=no
9429  ;;
9430esac
9431{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9432echo "${ECHO_T}$dynamic_linker" >&6; }
9433test "$dynamic_linker" = no && can_build_shared=no
9434
9435variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9436if test "$GCC" = yes; then
9437  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9438fi
9439
9440{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9441echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9442hardcode_action=
9443if test -n "$hardcode_libdir_flag_spec" || \
9444   test -n "$runpath_var" || \
9445   test "X$hardcode_automatic" = "Xyes" ; then
9446
9447  # We can hardcode non-existant directories.
9448  if test "$hardcode_direct" != no &&
9449     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9450     # have to relink, otherwise we might link with an installed library
9451     # when we should be linking with a yet-to-be-installed one
9452     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9453     test "$hardcode_minus_L" != no; then
9454    # Linking always hardcodes the temporary library directory.
9455    hardcode_action=relink
9456  else
9457    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9458    hardcode_action=immediate
9459  fi
9460else
9461  # We cannot hardcode anything, or else we can only hardcode existing
9462  # directories.
9463  hardcode_action=unsupported
9464fi
9465{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9466echo "${ECHO_T}$hardcode_action" >&6; }
9467
9468if test "$hardcode_action" = relink; then
9469  # Fast installation is not supported
9470  enable_fast_install=no
9471elif test "$shlibpath_overrides_runpath" = yes ||
9472     test "$enable_shared" = no; then
9473  # Fast installation is not necessary
9474  enable_fast_install=needless
9475fi
9476
9477striplib=
9478old_striplib=
9479{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9480echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9481if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9482  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9483  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9484  { echo "$as_me:$LINENO: result: yes" >&5
9485echo "${ECHO_T}yes" >&6; }
9486else
9487# FIXME - insert some real tests, host_os isn't really good enough
9488  case $host_os in
9489   darwin*)
9490       if test -n "$STRIP" ; then
9491         striplib="$STRIP -x"
9492         { echo "$as_me:$LINENO: result: yes" >&5
9493echo "${ECHO_T}yes" >&6; }
9494       else
9495  { echo "$as_me:$LINENO: result: no" >&5
9496echo "${ECHO_T}no" >&6; }
9497fi
9498       ;;
9499   *)
9500  { echo "$as_me:$LINENO: result: no" >&5
9501echo "${ECHO_T}no" >&6; }
9502    ;;
9503  esac
9504fi
9505
9506if test "x$enable_dlopen" != xyes; then
9507  enable_dlopen=unknown
9508  enable_dlopen_self=unknown
9509  enable_dlopen_self_static=unknown
9510else
9511  lt_cv_dlopen=no
9512  lt_cv_dlopen_libs=
9513
9514  case $host_os in
9515  beos*)
9516    lt_cv_dlopen="load_add_on"
9517    lt_cv_dlopen_libs=
9518    lt_cv_dlopen_self=yes
9519    ;;
9520
9521  mingw* | pw32*)
9522    lt_cv_dlopen="LoadLibrary"
9523    lt_cv_dlopen_libs=
9524   ;;
9525
9526  cygwin*)
9527    lt_cv_dlopen="dlopen"
9528    lt_cv_dlopen_libs=
9529   ;;
9530
9531  darwin*)
9532  # if libdl is installed we need to link against it
9533    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9534echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9535if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9536  echo $ECHO_N "(cached) $ECHO_C" >&6
9537else
9538  ac_check_lib_save_LIBS=$LIBS
9539LIBS="-ldl  $LIBS"
9540cat >conftest.$ac_ext <<_ACEOF
9541/* confdefs.h.  */
9542_ACEOF
9543cat confdefs.h >>conftest.$ac_ext
9544cat >>conftest.$ac_ext <<_ACEOF
9545/* end confdefs.h.  */
9546
9547/* Override any GCC internal prototype to avoid an error.
9548   Use char because int might match the return type of a GCC
9549   builtin and then its argument prototype would still apply.  */
9550#ifdef __cplusplus
9551extern "C"
9552#endif
9553char dlopen ();
9554int
9555main ()
9556{
9557return dlopen ();
9558  ;
9559  return 0;
9560}
9561_ACEOF
9562rm -f conftest.$ac_objext conftest$ac_exeext
9563if { (ac_try="$ac_link"
9564case "(($ac_try" in
9565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9566  *) ac_try_echo=$ac_try;;
9567esac
9568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9569  (eval "$ac_link") 2>conftest.er1
9570  ac_status=$?
9571  grep -v '^ *+' conftest.er1 >conftest.err
9572  rm -f conftest.er1
9573  cat conftest.err >&5
9574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575  (exit $ac_status); } &&
9576	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9577  { (case "(($ac_try" in
9578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579  *) ac_try_echo=$ac_try;;
9580esac
9581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9582  (eval "$ac_try") 2>&5
9583  ac_status=$?
9584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585  (exit $ac_status); }; } &&
9586	 { ac_try='test -s conftest$ac_exeext'
9587  { (case "(($ac_try" in
9588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9589  *) ac_try_echo=$ac_try;;
9590esac
9591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9592  (eval "$ac_try") 2>&5
9593  ac_status=$?
9594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595  (exit $ac_status); }; }; then
9596  ac_cv_lib_dl_dlopen=yes
9597else
9598  echo "$as_me: failed program was:" >&5
9599sed 's/^/| /' conftest.$ac_ext >&5
9600
9601	ac_cv_lib_dl_dlopen=no
9602fi
9603
9604rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9605      conftest$ac_exeext conftest.$ac_ext
9606LIBS=$ac_check_lib_save_LIBS
9607fi
9608{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9609echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9610if test $ac_cv_lib_dl_dlopen = yes; then
9611  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9612else
9613
9614    lt_cv_dlopen="dyld"
9615    lt_cv_dlopen_libs=
9616    lt_cv_dlopen_self=yes
9617
9618fi
9619
9620   ;;
9621
9622  *)
9623    { echo "$as_me:$LINENO: checking for shl_load" >&5
9624echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9625if test "${ac_cv_func_shl_load+set}" = set; then
9626  echo $ECHO_N "(cached) $ECHO_C" >&6
9627else
9628  cat >conftest.$ac_ext <<_ACEOF
9629/* confdefs.h.  */
9630_ACEOF
9631cat confdefs.h >>conftest.$ac_ext
9632cat >>conftest.$ac_ext <<_ACEOF
9633/* end confdefs.h.  */
9634/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9635   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9636#define shl_load innocuous_shl_load
9637
9638/* System header to define __stub macros and hopefully few prototypes,
9639    which can conflict with char shl_load (); below.
9640    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9641    <limits.h> exists even on freestanding compilers.  */
9642
9643#ifdef __STDC__
9644# include <limits.h>
9645#else
9646# include <assert.h>
9647#endif
9648
9649#undef shl_load
9650
9651/* Override any GCC internal prototype to avoid an error.
9652   Use char because int might match the return type of a GCC
9653   builtin and then its argument prototype would still apply.  */
9654#ifdef __cplusplus
9655extern "C"
9656#endif
9657char shl_load ();
9658/* The GNU C library defines this for functions which it implements
9659    to always fail with ENOSYS.  Some functions are actually named
9660    something starting with __ and the normal name is an alias.  */
9661#if defined __stub_shl_load || defined __stub___shl_load
9662choke me
9663#endif
9664
9665int
9666main ()
9667{
9668return shl_load ();
9669  ;
9670  return 0;
9671}
9672_ACEOF
9673rm -f conftest.$ac_objext conftest$ac_exeext
9674if { (ac_try="$ac_link"
9675case "(($ac_try" in
9676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677  *) ac_try_echo=$ac_try;;
9678esac
9679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680  (eval "$ac_link") 2>conftest.er1
9681  ac_status=$?
9682  grep -v '^ *+' conftest.er1 >conftest.err
9683  rm -f conftest.er1
9684  cat conftest.err >&5
9685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686  (exit $ac_status); } &&
9687	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9688  { (case "(($ac_try" in
9689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9690  *) ac_try_echo=$ac_try;;
9691esac
9692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9693  (eval "$ac_try") 2>&5
9694  ac_status=$?
9695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696  (exit $ac_status); }; } &&
9697	 { ac_try='test -s conftest$ac_exeext'
9698  { (case "(($ac_try" in
9699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700  *) ac_try_echo=$ac_try;;
9701esac
9702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9703  (eval "$ac_try") 2>&5
9704  ac_status=$?
9705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706  (exit $ac_status); }; }; then
9707  ac_cv_func_shl_load=yes
9708else
9709  echo "$as_me: failed program was:" >&5
9710sed 's/^/| /' conftest.$ac_ext >&5
9711
9712	ac_cv_func_shl_load=no
9713fi
9714
9715rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9716      conftest$ac_exeext conftest.$ac_ext
9717fi
9718{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9719echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9720if test $ac_cv_func_shl_load = yes; then
9721  lt_cv_dlopen="shl_load"
9722else
9723  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9724echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9725if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9726  echo $ECHO_N "(cached) $ECHO_C" >&6
9727else
9728  ac_check_lib_save_LIBS=$LIBS
9729LIBS="-ldld  $LIBS"
9730cat >conftest.$ac_ext <<_ACEOF
9731/* confdefs.h.  */
9732_ACEOF
9733cat confdefs.h >>conftest.$ac_ext
9734cat >>conftest.$ac_ext <<_ACEOF
9735/* end confdefs.h.  */
9736
9737/* Override any GCC internal prototype to avoid an error.
9738   Use char because int might match the return type of a GCC
9739   builtin and then its argument prototype would still apply.  */
9740#ifdef __cplusplus
9741extern "C"
9742#endif
9743char shl_load ();
9744int
9745main ()
9746{
9747return shl_load ();
9748  ;
9749  return 0;
9750}
9751_ACEOF
9752rm -f conftest.$ac_objext conftest$ac_exeext
9753if { (ac_try="$ac_link"
9754case "(($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_link") 2>conftest.er1
9760  ac_status=$?
9761  grep -v '^ *+' conftest.er1 >conftest.err
9762  rm -f conftest.er1
9763  cat conftest.err >&5
9764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765  (exit $ac_status); } &&
9766	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9767  { (case "(($ac_try" in
9768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769  *) ac_try_echo=$ac_try;;
9770esac
9771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9772  (eval "$ac_try") 2>&5
9773  ac_status=$?
9774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775  (exit $ac_status); }; } &&
9776	 { ac_try='test -s conftest$ac_exeext'
9777  { (case "(($ac_try" in
9778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9779  *) ac_try_echo=$ac_try;;
9780esac
9781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9782  (eval "$ac_try") 2>&5
9783  ac_status=$?
9784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785  (exit $ac_status); }; }; then
9786  ac_cv_lib_dld_shl_load=yes
9787else
9788  echo "$as_me: failed program was:" >&5
9789sed 's/^/| /' conftest.$ac_ext >&5
9790
9791	ac_cv_lib_dld_shl_load=no
9792fi
9793
9794rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9795      conftest$ac_exeext conftest.$ac_ext
9796LIBS=$ac_check_lib_save_LIBS
9797fi
9798{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9799echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9800if test $ac_cv_lib_dld_shl_load = yes; then
9801  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9802else
9803  { echo "$as_me:$LINENO: checking for dlopen" >&5
9804echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9805if test "${ac_cv_func_dlopen+set}" = set; then
9806  echo $ECHO_N "(cached) $ECHO_C" >&6
9807else
9808  cat >conftest.$ac_ext <<_ACEOF
9809/* confdefs.h.  */
9810_ACEOF
9811cat confdefs.h >>conftest.$ac_ext
9812cat >>conftest.$ac_ext <<_ACEOF
9813/* end confdefs.h.  */
9814/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9815   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9816#define dlopen innocuous_dlopen
9817
9818/* System header to define __stub macros and hopefully few prototypes,
9819    which can conflict with char dlopen (); below.
9820    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9821    <limits.h> exists even on freestanding compilers.  */
9822
9823#ifdef __STDC__
9824# include <limits.h>
9825#else
9826# include <assert.h>
9827#endif
9828
9829#undef dlopen
9830
9831/* Override any GCC internal prototype to avoid an error.
9832   Use char because int might match the return type of a GCC
9833   builtin and then its argument prototype would still apply.  */
9834#ifdef __cplusplus
9835extern "C"
9836#endif
9837char dlopen ();
9838/* The GNU C library defines this for functions which it implements
9839    to always fail with ENOSYS.  Some functions are actually named
9840    something starting with __ and the normal name is an alias.  */
9841#if defined __stub_dlopen || defined __stub___dlopen
9842choke me
9843#endif
9844
9845int
9846main ()
9847{
9848return dlopen ();
9849  ;
9850  return 0;
9851}
9852_ACEOF
9853rm -f conftest.$ac_objext conftest$ac_exeext
9854if { (ac_try="$ac_link"
9855case "(($ac_try" in
9856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857  *) ac_try_echo=$ac_try;;
9858esac
9859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860  (eval "$ac_link") 2>conftest.er1
9861  ac_status=$?
9862  grep -v '^ *+' conftest.er1 >conftest.err
9863  rm -f conftest.er1
9864  cat conftest.err >&5
9865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866  (exit $ac_status); } &&
9867	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9868  { (case "(($ac_try" in
9869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870  *) ac_try_echo=$ac_try;;
9871esac
9872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873  (eval "$ac_try") 2>&5
9874  ac_status=$?
9875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876  (exit $ac_status); }; } &&
9877	 { ac_try='test -s conftest$ac_exeext'
9878  { (case "(($ac_try" in
9879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880  *) ac_try_echo=$ac_try;;
9881esac
9882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883  (eval "$ac_try") 2>&5
9884  ac_status=$?
9885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886  (exit $ac_status); }; }; then
9887  ac_cv_func_dlopen=yes
9888else
9889  echo "$as_me: failed program was:" >&5
9890sed 's/^/| /' conftest.$ac_ext >&5
9891
9892	ac_cv_func_dlopen=no
9893fi
9894
9895rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9896      conftest$ac_exeext conftest.$ac_ext
9897fi
9898{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9899echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9900if test $ac_cv_func_dlopen = yes; then
9901  lt_cv_dlopen="dlopen"
9902else
9903  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9904echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9905if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9906  echo $ECHO_N "(cached) $ECHO_C" >&6
9907else
9908  ac_check_lib_save_LIBS=$LIBS
9909LIBS="-ldl  $LIBS"
9910cat >conftest.$ac_ext <<_ACEOF
9911/* confdefs.h.  */
9912_ACEOF
9913cat confdefs.h >>conftest.$ac_ext
9914cat >>conftest.$ac_ext <<_ACEOF
9915/* end confdefs.h.  */
9916
9917/* Override any GCC internal prototype to avoid an error.
9918   Use char because int might match the return type of a GCC
9919   builtin and then its argument prototype would still apply.  */
9920#ifdef __cplusplus
9921extern "C"
9922#endif
9923char dlopen ();
9924int
9925main ()
9926{
9927return dlopen ();
9928  ;
9929  return 0;
9930}
9931_ACEOF
9932rm -f conftest.$ac_objext conftest$ac_exeext
9933if { (ac_try="$ac_link"
9934case "(($ac_try" in
9935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936  *) ac_try_echo=$ac_try;;
9937esac
9938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939  (eval "$ac_link") 2>conftest.er1
9940  ac_status=$?
9941  grep -v '^ *+' conftest.er1 >conftest.err
9942  rm -f conftest.er1
9943  cat conftest.err >&5
9944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945  (exit $ac_status); } &&
9946	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9947  { (case "(($ac_try" in
9948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9949  *) ac_try_echo=$ac_try;;
9950esac
9951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9952  (eval "$ac_try") 2>&5
9953  ac_status=$?
9954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955  (exit $ac_status); }; } &&
9956	 { ac_try='test -s conftest$ac_exeext'
9957  { (case "(($ac_try" in
9958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959  *) ac_try_echo=$ac_try;;
9960esac
9961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962  (eval "$ac_try") 2>&5
9963  ac_status=$?
9964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965  (exit $ac_status); }; }; then
9966  ac_cv_lib_dl_dlopen=yes
9967else
9968  echo "$as_me: failed program was:" >&5
9969sed 's/^/| /' conftest.$ac_ext >&5
9970
9971	ac_cv_lib_dl_dlopen=no
9972fi
9973
9974rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9975      conftest$ac_exeext conftest.$ac_ext
9976LIBS=$ac_check_lib_save_LIBS
9977fi
9978{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9979echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9980if test $ac_cv_lib_dl_dlopen = yes; then
9981  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9982else
9983  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9984echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9985if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9986  echo $ECHO_N "(cached) $ECHO_C" >&6
9987else
9988  ac_check_lib_save_LIBS=$LIBS
9989LIBS="-lsvld  $LIBS"
9990cat >conftest.$ac_ext <<_ACEOF
9991/* confdefs.h.  */
9992_ACEOF
9993cat confdefs.h >>conftest.$ac_ext
9994cat >>conftest.$ac_ext <<_ACEOF
9995/* end confdefs.h.  */
9996
9997/* Override any GCC internal prototype to avoid an error.
9998   Use char because int might match the return type of a GCC
9999   builtin and then its argument prototype would still apply.  */
10000#ifdef __cplusplus
10001extern "C"
10002#endif
10003char dlopen ();
10004int
10005main ()
10006{
10007return dlopen ();
10008  ;
10009  return 0;
10010}
10011_ACEOF
10012rm -f conftest.$ac_objext conftest$ac_exeext
10013if { (ac_try="$ac_link"
10014case "(($ac_try" in
10015  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016  *) ac_try_echo=$ac_try;;
10017esac
10018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019  (eval "$ac_link") 2>conftest.er1
10020  ac_status=$?
10021  grep -v '^ *+' conftest.er1 >conftest.err
10022  rm -f conftest.er1
10023  cat conftest.err >&5
10024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025  (exit $ac_status); } &&
10026	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10027  { (case "(($ac_try" in
10028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029  *) ac_try_echo=$ac_try;;
10030esac
10031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032  (eval "$ac_try") 2>&5
10033  ac_status=$?
10034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035  (exit $ac_status); }; } &&
10036	 { ac_try='test -s conftest$ac_exeext'
10037  { (case "(($ac_try" in
10038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039  *) ac_try_echo=$ac_try;;
10040esac
10041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042  (eval "$ac_try") 2>&5
10043  ac_status=$?
10044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045  (exit $ac_status); }; }; then
10046  ac_cv_lib_svld_dlopen=yes
10047else
10048  echo "$as_me: failed program was:" >&5
10049sed 's/^/| /' conftest.$ac_ext >&5
10050
10051	ac_cv_lib_svld_dlopen=no
10052fi
10053
10054rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10055      conftest$ac_exeext conftest.$ac_ext
10056LIBS=$ac_check_lib_save_LIBS
10057fi
10058{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10059echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10060if test $ac_cv_lib_svld_dlopen = yes; then
10061  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10062else
10063  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10064echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10065if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10066  echo $ECHO_N "(cached) $ECHO_C" >&6
10067else
10068  ac_check_lib_save_LIBS=$LIBS
10069LIBS="-ldld  $LIBS"
10070cat >conftest.$ac_ext <<_ACEOF
10071/* confdefs.h.  */
10072_ACEOF
10073cat confdefs.h >>conftest.$ac_ext
10074cat >>conftest.$ac_ext <<_ACEOF
10075/* end confdefs.h.  */
10076
10077/* Override any GCC internal prototype to avoid an error.
10078   Use char because int might match the return type of a GCC
10079   builtin and then its argument prototype would still apply.  */
10080#ifdef __cplusplus
10081extern "C"
10082#endif
10083char dld_link ();
10084int
10085main ()
10086{
10087return dld_link ();
10088  ;
10089  return 0;
10090}
10091_ACEOF
10092rm -f conftest.$ac_objext conftest$ac_exeext
10093if { (ac_try="$ac_link"
10094case "(($ac_try" in
10095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096  *) ac_try_echo=$ac_try;;
10097esac
10098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10099  (eval "$ac_link") 2>conftest.er1
10100  ac_status=$?
10101  grep -v '^ *+' conftest.er1 >conftest.err
10102  rm -f conftest.er1
10103  cat conftest.err >&5
10104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105  (exit $ac_status); } &&
10106	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10107  { (case "(($ac_try" in
10108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109  *) ac_try_echo=$ac_try;;
10110esac
10111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112  (eval "$ac_try") 2>&5
10113  ac_status=$?
10114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115  (exit $ac_status); }; } &&
10116	 { ac_try='test -s conftest$ac_exeext'
10117  { (case "(($ac_try" in
10118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10119  *) ac_try_echo=$ac_try;;
10120esac
10121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122  (eval "$ac_try") 2>&5
10123  ac_status=$?
10124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125  (exit $ac_status); }; }; then
10126  ac_cv_lib_dld_dld_link=yes
10127else
10128  echo "$as_me: failed program was:" >&5
10129sed 's/^/| /' conftest.$ac_ext >&5
10130
10131	ac_cv_lib_dld_dld_link=no
10132fi
10133
10134rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10135      conftest$ac_exeext conftest.$ac_ext
10136LIBS=$ac_check_lib_save_LIBS
10137fi
10138{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10139echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10140if test $ac_cv_lib_dld_dld_link = yes; then
10141  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10142fi
10143
10144
10145fi
10146
10147
10148fi
10149
10150
10151fi
10152
10153
10154fi
10155
10156
10157fi
10158
10159    ;;
10160  esac
10161
10162  if test "x$lt_cv_dlopen" != xno; then
10163    enable_dlopen=yes
10164  else
10165    enable_dlopen=no
10166  fi
10167
10168  case $lt_cv_dlopen in
10169  dlopen)
10170    save_CPPFLAGS="$CPPFLAGS"
10171    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10172
10173    save_LDFLAGS="$LDFLAGS"
10174    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10175
10176    save_LIBS="$LIBS"
10177    LIBS="$lt_cv_dlopen_libs $LIBS"
10178
10179    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10180echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10181if test "${lt_cv_dlopen_self+set}" = set; then
10182  echo $ECHO_N "(cached) $ECHO_C" >&6
10183else
10184  	  if test "$cross_compiling" = yes; then :
10185  lt_cv_dlopen_self=cross
10186else
10187  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10188  lt_status=$lt_dlunknown
10189  cat > conftest.$ac_ext <<EOF
10190#line 10190 "configure"
10191#include "confdefs.h"
10192
10193#if HAVE_DLFCN_H
10194#include <dlfcn.h>
10195#endif
10196
10197#include <stdio.h>
10198
10199#ifdef RTLD_GLOBAL
10200#  define LT_DLGLOBAL		RTLD_GLOBAL
10201#else
10202#  ifdef DL_GLOBAL
10203#    define LT_DLGLOBAL		DL_GLOBAL
10204#  else
10205#    define LT_DLGLOBAL		0
10206#  endif
10207#endif
10208
10209/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10210   find out it does not work in some platform. */
10211#ifndef LT_DLLAZY_OR_NOW
10212#  ifdef RTLD_LAZY
10213#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10214#  else
10215#    ifdef DL_LAZY
10216#      define LT_DLLAZY_OR_NOW		DL_LAZY
10217#    else
10218#      ifdef RTLD_NOW
10219#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10220#      else
10221#        ifdef DL_NOW
10222#          define LT_DLLAZY_OR_NOW	DL_NOW
10223#        else
10224#          define LT_DLLAZY_OR_NOW	0
10225#        endif
10226#      endif
10227#    endif
10228#  endif
10229#endif
10230
10231#ifdef __cplusplus
10232extern "C" void exit (int);
10233#endif
10234
10235void fnord() { int i=42;}
10236int main ()
10237{
10238  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10239  int status = $lt_dlunknown;
10240
10241  if (self)
10242    {
10243      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10244      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10245      /* dlclose (self); */
10246    }
10247  else
10248    puts (dlerror ());
10249
10250    exit (status);
10251}
10252EOF
10253  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10254  (eval $ac_link) 2>&5
10255  ac_status=$?
10256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10258    (./conftest; exit; ) >&5 2>/dev/null
10259    lt_status=$?
10260    case x$lt_status in
10261      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10262      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10263      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10264    esac
10265  else :
10266    # compilation failed
10267    lt_cv_dlopen_self=no
10268  fi
10269fi
10270rm -fr conftest*
10271
10272
10273fi
10274{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10275echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10276
10277    if test "x$lt_cv_dlopen_self" = xyes; then
10278      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10279      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10280echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10281if test "${lt_cv_dlopen_self_static+set}" = set; then
10282  echo $ECHO_N "(cached) $ECHO_C" >&6
10283else
10284  	  if test "$cross_compiling" = yes; then :
10285  lt_cv_dlopen_self_static=cross
10286else
10287  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10288  lt_status=$lt_dlunknown
10289  cat > conftest.$ac_ext <<EOF
10290#line 10290 "configure"
10291#include "confdefs.h"
10292
10293#if HAVE_DLFCN_H
10294#include <dlfcn.h>
10295#endif
10296
10297#include <stdio.h>
10298
10299#ifdef RTLD_GLOBAL
10300#  define LT_DLGLOBAL		RTLD_GLOBAL
10301#else
10302#  ifdef DL_GLOBAL
10303#    define LT_DLGLOBAL		DL_GLOBAL
10304#  else
10305#    define LT_DLGLOBAL		0
10306#  endif
10307#endif
10308
10309/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10310   find out it does not work in some platform. */
10311#ifndef LT_DLLAZY_OR_NOW
10312#  ifdef RTLD_LAZY
10313#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10314#  else
10315#    ifdef DL_LAZY
10316#      define LT_DLLAZY_OR_NOW		DL_LAZY
10317#    else
10318#      ifdef RTLD_NOW
10319#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10320#      else
10321#        ifdef DL_NOW
10322#          define LT_DLLAZY_OR_NOW	DL_NOW
10323#        else
10324#          define LT_DLLAZY_OR_NOW	0
10325#        endif
10326#      endif
10327#    endif
10328#  endif
10329#endif
10330
10331#ifdef __cplusplus
10332extern "C" void exit (int);
10333#endif
10334
10335void fnord() { int i=42;}
10336int main ()
10337{
10338  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10339  int status = $lt_dlunknown;
10340
10341  if (self)
10342    {
10343      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10344      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10345      /* dlclose (self); */
10346    }
10347  else
10348    puts (dlerror ());
10349
10350    exit (status);
10351}
10352EOF
10353  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10354  (eval $ac_link) 2>&5
10355  ac_status=$?
10356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10358    (./conftest; exit; ) >&5 2>/dev/null
10359    lt_status=$?
10360    case x$lt_status in
10361      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10362      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10363      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10364    esac
10365  else :
10366    # compilation failed
10367    lt_cv_dlopen_self_static=no
10368  fi
10369fi
10370rm -fr conftest*
10371
10372
10373fi
10374{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10375echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10376    fi
10377
10378    CPPFLAGS="$save_CPPFLAGS"
10379    LDFLAGS="$save_LDFLAGS"
10380    LIBS="$save_LIBS"
10381    ;;
10382  esac
10383
10384  case $lt_cv_dlopen_self in
10385  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10386  *) enable_dlopen_self=unknown ;;
10387  esac
10388
10389  case $lt_cv_dlopen_self_static in
10390  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10391  *) enable_dlopen_self_static=unknown ;;
10392  esac
10393fi
10394
10395
10396# Report which library types will actually be built
10397{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10398echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10399{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10400echo "${ECHO_T}$can_build_shared" >&6; }
10401
10402{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10403echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10404test "$can_build_shared" = "no" && enable_shared=no
10405
10406# On AIX, shared libraries and static libraries use the same namespace, and
10407# are all built from PIC.
10408case $host_os in
10409aix3*)
10410  test "$enable_shared" = yes && enable_static=no
10411  if test -n "$RANLIB"; then
10412    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10413    postinstall_cmds='$RANLIB $lib'
10414  fi
10415  ;;
10416
10417aix4* | aix5*)
10418  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10419    test "$enable_shared" = yes && enable_static=no
10420  fi
10421    ;;
10422esac
10423{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10424echo "${ECHO_T}$enable_shared" >&6; }
10425
10426{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10427echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10428# Make sure either enable_shared or enable_static is yes.
10429test "$enable_shared" = yes || enable_static=yes
10430{ echo "$as_me:$LINENO: result: $enable_static" >&5
10431echo "${ECHO_T}$enable_static" >&6; }
10432
10433# The else clause should only fire when bootstrapping the
10434# libtool distribution, otherwise you forgot to ship ltmain.sh
10435# with your package, and you will get complaints that there are
10436# no rules to generate ltmain.sh.
10437if test -f "$ltmain"; then
10438  # See if we are running on zsh, and set the options which allow our commands through
10439  # without removal of \ escapes.
10440  if test -n "${ZSH_VERSION+set}" ; then
10441    setopt NO_GLOB_SUBST
10442  fi
10443  # Now quote all the things that may contain metacharacters while being
10444  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10445  # variables and quote the copies for generation of the libtool script.
10446  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10447    SED SHELL STRIP \
10448    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10449    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10450    deplibs_check_method reload_flag reload_cmds need_locks \
10451    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10452    lt_cv_sys_global_symbol_to_c_name_address \
10453    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10454    old_postinstall_cmds old_postuninstall_cmds \
10455    compiler \
10456    CC \
10457    LD \
10458    lt_prog_compiler_wl \
10459    lt_prog_compiler_pic \
10460    lt_prog_compiler_static \
10461    lt_prog_compiler_no_builtin_flag \
10462    export_dynamic_flag_spec \
10463    thread_safe_flag_spec \
10464    whole_archive_flag_spec \
10465    enable_shared_with_static_runtimes \
10466    old_archive_cmds \
10467    old_archive_from_new_cmds \
10468    predep_objects \
10469    postdep_objects \
10470    predeps \
10471    postdeps \
10472    compiler_lib_search_path \
10473    archive_cmds \
10474    archive_expsym_cmds \
10475    postinstall_cmds \
10476    postuninstall_cmds \
10477    old_archive_from_expsyms_cmds \
10478    allow_undefined_flag \
10479    no_undefined_flag \
10480    export_symbols_cmds \
10481    hardcode_libdir_flag_spec \
10482    hardcode_libdir_flag_spec_ld \
10483    hardcode_libdir_separator \
10484    hardcode_automatic \
10485    module_cmds \
10486    module_expsym_cmds \
10487    lt_cv_prog_compiler_c_o \
10488    exclude_expsyms \
10489    include_expsyms; do
10490
10491    case $var in
10492    old_archive_cmds | \
10493    old_archive_from_new_cmds | \
10494    archive_cmds | \
10495    archive_expsym_cmds | \
10496    module_cmds | \
10497    module_expsym_cmds | \
10498    old_archive_from_expsyms_cmds | \
10499    export_symbols_cmds | \
10500    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10501    postinstall_cmds | postuninstall_cmds | \
10502    old_postinstall_cmds | old_postuninstall_cmds | \
10503    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10504      # Double-quote double-evaled strings.
10505      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10506      ;;
10507    *)
10508      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10509      ;;
10510    esac
10511  done
10512
10513  case $lt_echo in
10514  *'\$0 --fallback-echo"')
10515    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10516    ;;
10517  esac
10518
10519cfgfile="${ofile}T"
10520  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10521  $rm -f "$cfgfile"
10522  { echo "$as_me:$LINENO: creating $ofile" >&5
10523echo "$as_me: creating $ofile" >&6;}
10524
10525  cat <<__EOF__ >> "$cfgfile"
10526#! $SHELL
10527
10528# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10529# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10530# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10531#
10532# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10533# Free Software Foundation, Inc.
10534#
10535# This file is part of GNU Libtool:
10536# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10537#
10538# This program is free software; you can redistribute it and/or modify
10539# it under the terms of the GNU General Public License as published by
10540# the Free Software Foundation; either version 2 of the License, or
10541# (at your option) any later version.
10542#
10543# This program is distributed in the hope that it will be useful, but
10544# WITHOUT ANY WARRANTY; without even the implied warranty of
10545# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10546# General Public License for more details.
10547#
10548# You should have received a copy of the GNU General Public License
10549# along with this program; if not, write to the Free Software
10550# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10551#
10552# As a special exception to the GNU General Public License, if you
10553# distribute this file as part of a program that contains a
10554# configuration script generated by Autoconf, you may include it under
10555# the same distribution terms that you use for the rest of that program.
10556
10557# A sed program that does not truncate output.
10558SED=$lt_SED
10559
10560# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10561Xsed="$SED -e 1s/^X//"
10562
10563# The HP-UX ksh and POSIX shell print the target directory to stdout
10564# if CDPATH is set.
10565(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10566
10567# The names of the tagged configurations supported by this script.
10568available_tags=
10569
10570# ### BEGIN LIBTOOL CONFIG
10571
10572# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10573
10574# Shell to use when invoking shell scripts.
10575SHELL=$lt_SHELL
10576
10577# Whether or not to build shared libraries.
10578build_libtool_libs=$enable_shared
10579
10580# Whether or not to build static libraries.
10581build_old_libs=$enable_static
10582
10583# Whether or not to add -lc for building shared libraries.
10584build_libtool_need_lc=$archive_cmds_need_lc
10585
10586# Whether or not to disallow shared libs when runtime libs are static
10587allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10588
10589# Whether or not to optimize for fast installation.
10590fast_install=$enable_fast_install
10591
10592# The host system.
10593host_alias=$host_alias
10594host=$host
10595host_os=$host_os
10596
10597# The build system.
10598build_alias=$build_alias
10599build=$build
10600build_os=$build_os
10601
10602# An echo program that does not interpret backslashes.
10603echo=$lt_echo
10604
10605# The archiver.
10606AR=$lt_AR
10607AR_FLAGS=$lt_AR_FLAGS
10608
10609# A C compiler.
10610LTCC=$lt_LTCC
10611
10612# LTCC compiler flags.
10613LTCFLAGS=$lt_LTCFLAGS
10614
10615# A language-specific compiler.
10616CC=$lt_compiler
10617
10618# Is the compiler the GNU C compiler?
10619with_gcc=$GCC
10620
10621# An ERE matcher.
10622EGREP=$lt_EGREP
10623
10624# The linker used to build libraries.
10625LD=$lt_LD
10626
10627# Whether we need hard or soft links.
10628LN_S=$lt_LN_S
10629
10630# A BSD-compatible nm program.
10631NM=$lt_NM
10632
10633# A symbol stripping program
10634STRIP=$lt_STRIP
10635
10636# Used to examine libraries when file_magic_cmd begins "file"
10637MAGIC_CMD=$MAGIC_CMD
10638
10639# Used on cygwin: DLL creation program.
10640DLLTOOL="$DLLTOOL"
10641
10642# Used on cygwin: object dumper.
10643OBJDUMP="$OBJDUMP"
10644
10645# Used on cygwin: assembler.
10646AS="$AS"
10647
10648# The name of the directory that contains temporary libtool files.
10649objdir=$objdir
10650
10651# How to create reloadable object files.
10652reload_flag=$lt_reload_flag
10653reload_cmds=$lt_reload_cmds
10654
10655# How to pass a linker flag through the compiler.
10656wl=$lt_lt_prog_compiler_wl
10657
10658# Object file suffix (normally "o").
10659objext="$ac_objext"
10660
10661# Old archive suffix (normally "a").
10662libext="$libext"
10663
10664# Shared library suffix (normally ".so").
10665shrext_cmds='$shrext_cmds'
10666
10667# Executable file suffix (normally "").
10668exeext="$exeext"
10669
10670# Additional compiler flags for building library objects.
10671pic_flag=$lt_lt_prog_compiler_pic
10672pic_mode=$pic_mode
10673
10674# What is the maximum length of a command?
10675max_cmd_len=$lt_cv_sys_max_cmd_len
10676
10677# Does compiler simultaneously support -c and -o options?
10678compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10679
10680# Must we lock files when doing compilation?
10681need_locks=$lt_need_locks
10682
10683# Do we need the lib prefix for modules?
10684need_lib_prefix=$need_lib_prefix
10685
10686# Do we need a version for libraries?
10687need_version=$need_version
10688
10689# Whether dlopen is supported.
10690dlopen_support=$enable_dlopen
10691
10692# Whether dlopen of programs is supported.
10693dlopen_self=$enable_dlopen_self
10694
10695# Whether dlopen of statically linked programs is supported.
10696dlopen_self_static=$enable_dlopen_self_static
10697
10698# Compiler flag to prevent dynamic linking.
10699link_static_flag=$lt_lt_prog_compiler_static
10700
10701# Compiler flag to turn off builtin functions.
10702no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10703
10704# Compiler flag to allow reflexive dlopens.
10705export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10706
10707# Compiler flag to generate shared objects directly from archives.
10708whole_archive_flag_spec=$lt_whole_archive_flag_spec
10709
10710# Compiler flag to generate thread-safe objects.
10711thread_safe_flag_spec=$lt_thread_safe_flag_spec
10712
10713# Library versioning type.
10714version_type=$version_type
10715
10716# Format of library name prefix.
10717libname_spec=$lt_libname_spec
10718
10719# List of archive names.  First name is the real one, the rest are links.
10720# The last name is the one that the linker finds with -lNAME.
10721library_names_spec=$lt_library_names_spec
10722
10723# The coded name of the library, if different from the real name.
10724soname_spec=$lt_soname_spec
10725
10726# Commands used to build and install an old-style archive.
10727RANLIB=$lt_RANLIB
10728old_archive_cmds=$lt_old_archive_cmds
10729old_postinstall_cmds=$lt_old_postinstall_cmds
10730old_postuninstall_cmds=$lt_old_postuninstall_cmds
10731
10732# Create an old-style archive from a shared archive.
10733old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10734
10735# Create a temporary old-style archive to link instead of a shared archive.
10736old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10737
10738# Commands used to build and install a shared archive.
10739archive_cmds=$lt_archive_cmds
10740archive_expsym_cmds=$lt_archive_expsym_cmds
10741postinstall_cmds=$lt_postinstall_cmds
10742postuninstall_cmds=$lt_postuninstall_cmds
10743
10744# Commands used to build a loadable module (assumed same as above if empty)
10745module_cmds=$lt_module_cmds
10746module_expsym_cmds=$lt_module_expsym_cmds
10747
10748# Commands to strip libraries.
10749old_striplib=$lt_old_striplib
10750striplib=$lt_striplib
10751
10752# Dependencies to place before the objects being linked to create a
10753# shared library.
10754predep_objects=$lt_predep_objects
10755
10756# Dependencies to place after the objects being linked to create a
10757# shared library.
10758postdep_objects=$lt_postdep_objects
10759
10760# Dependencies to place before the objects being linked to create a
10761# shared library.
10762predeps=$lt_predeps
10763
10764# Dependencies to place after the objects being linked to create a
10765# shared library.
10766postdeps=$lt_postdeps
10767
10768# The library search path used internally by the compiler when linking
10769# a shared library.
10770compiler_lib_search_path=$lt_compiler_lib_search_path
10771
10772# Method to check whether dependent libraries are shared objects.
10773deplibs_check_method=$lt_deplibs_check_method
10774
10775# Command to use when deplibs_check_method == file_magic.
10776file_magic_cmd=$lt_file_magic_cmd
10777
10778# Flag that allows shared libraries with undefined symbols to be built.
10779allow_undefined_flag=$lt_allow_undefined_flag
10780
10781# Flag that forces no undefined symbols.
10782no_undefined_flag=$lt_no_undefined_flag
10783
10784# Commands used to finish a libtool library installation in a directory.
10785finish_cmds=$lt_finish_cmds
10786
10787# Same as above, but a single script fragment to be evaled but not shown.
10788finish_eval=$lt_finish_eval
10789
10790# Take the output of nm and produce a listing of raw symbols and C names.
10791global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10792
10793# Transform the output of nm in a proper C declaration
10794global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10795
10796# Transform the output of nm in a C name address pair
10797global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10798
10799# This is the shared library runtime path variable.
10800runpath_var=$runpath_var
10801
10802# This is the shared library path variable.
10803shlibpath_var=$shlibpath_var
10804
10805# Is shlibpath searched before the hard-coded library search path?
10806shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10807
10808# How to hardcode a shared library path into an executable.
10809hardcode_action=$hardcode_action
10810
10811# Whether we should hardcode library paths into libraries.
10812hardcode_into_libs=$hardcode_into_libs
10813
10814# Flag to hardcode \$libdir into a binary during linking.
10815# This must work even if \$libdir does not exist.
10816hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10817
10818# If ld is used when linking, flag to hardcode \$libdir into
10819# a binary during linking. This must work even if \$libdir does
10820# not exist.
10821hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10822
10823# Whether we need a single -rpath flag with a separated argument.
10824hardcode_libdir_separator=$lt_hardcode_libdir_separator
10825
10826# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10827# resulting binary.
10828hardcode_direct=$hardcode_direct
10829
10830# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10831# resulting binary.
10832hardcode_minus_L=$hardcode_minus_L
10833
10834# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10835# the resulting binary.
10836hardcode_shlibpath_var=$hardcode_shlibpath_var
10837
10838# Set to yes if building a shared library automatically hardcodes DIR into the library
10839# and all subsequent libraries and executables linked against it.
10840hardcode_automatic=$hardcode_automatic
10841
10842# Variables whose values should be saved in libtool wrapper scripts and
10843# restored at relink time.
10844variables_saved_for_relink="$variables_saved_for_relink"
10845
10846# Whether libtool must link a program against all its dependency libraries.
10847link_all_deplibs=$link_all_deplibs
10848
10849# Compile-time system search path for libraries
10850sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10851
10852# Run-time system search path for libraries
10853sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10854
10855# Fix the shell variable \$srcfile for the compiler.
10856fix_srcfile_path="$fix_srcfile_path"
10857
10858# Set to yes if exported symbols are required.
10859always_export_symbols=$always_export_symbols
10860
10861# The commands to list exported symbols.
10862export_symbols_cmds=$lt_export_symbols_cmds
10863
10864# The commands to extract the exported symbol list from a shared archive.
10865extract_expsyms_cmds=$lt_extract_expsyms_cmds
10866
10867# Symbols that should not be listed in the preloaded symbols.
10868exclude_expsyms=$lt_exclude_expsyms
10869
10870# Symbols that must always be exported.
10871include_expsyms=$lt_include_expsyms
10872
10873# ### END LIBTOOL CONFIG
10874
10875__EOF__
10876
10877
10878  case $host_os in
10879  aix3*)
10880    cat <<\EOF >> "$cfgfile"
10881
10882# AIX sometimes has problems with the GCC collect2 program.  For some
10883# reason, if we set the COLLECT_NAMES environment variable, the problems
10884# vanish in a puff of smoke.
10885if test "X${COLLECT_NAMES+set}" != Xset; then
10886  COLLECT_NAMES=
10887  export COLLECT_NAMES
10888fi
10889EOF
10890    ;;
10891  esac
10892
10893  # We use sed instead of cat because bash on DJGPP gets confused if
10894  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10895  # text mode, it properly converts lines to CR/LF.  This bash problem
10896  # is reportedly fixed, but why not run on old versions too?
10897  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10898
10899  mv -f "$cfgfile" "$ofile" || \
10900    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10901  chmod +x "$ofile"
10902
10903else
10904  # If there is no Makefile yet, we rely on a make rule to execute
10905  # `config.status --recheck' to rerun these tests and create the
10906  # libtool script then.
10907  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10908  if test -f "$ltmain_in"; then
10909    test -f Makefile && make "$ltmain"
10910  fi
10911fi
10912
10913
10914ac_ext=c
10915ac_cpp='$CPP $CPPFLAGS'
10916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10918ac_compiler_gnu=$ac_cv_c_compiler_gnu
10919
10920CC="$lt_save_CC"
10921
10922
10923# Check whether --with-tags was given.
10924if test "${with_tags+set}" = set; then
10925  withval=$with_tags; tagnames="$withval"
10926fi
10927
10928
10929if test -f "$ltmain" && test -n "$tagnames"; then
10930  if test ! -f "${ofile}"; then
10931    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10932echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10933  fi
10934
10935  if test -z "$LTCC"; then
10936    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10937    if test -z "$LTCC"; then
10938      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10939echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10940    else
10941      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10942echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10943    fi
10944  fi
10945  if test -z "$LTCFLAGS"; then
10946    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10947  fi
10948
10949  # Extract list of available tagged configurations in $ofile.
10950  # Note that this assumes the entire list is on one line.
10951  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10952
10953  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10954  for tagname in $tagnames; do
10955    IFS="$lt_save_ifs"
10956    # Check whether tagname contains only valid characters
10957    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10958    "") ;;
10959    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10960echo "$as_me: error: invalid tag name: $tagname" >&2;}
10961   { (exit 1); exit 1; }; }
10962	;;
10963    esac
10964
10965    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10966    then
10967      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10968echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10969   { (exit 1); exit 1; }; }
10970    fi
10971
10972    # Update the list of available tags.
10973    if test -n "$tagname"; then
10974      echo appending configuration tag \"$tagname\" to $ofile
10975
10976      case $tagname in
10977      CXX)
10978	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10979	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10980	    (test "X$CXX" != "Xg++"))) ; then
10981	  ac_ext=cpp
10982ac_cpp='$CXXCPP $CPPFLAGS'
10983ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10984ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10985ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10986
10987
10988
10989
10990archive_cmds_need_lc_CXX=no
10991allow_undefined_flag_CXX=
10992always_export_symbols_CXX=no
10993archive_expsym_cmds_CXX=
10994export_dynamic_flag_spec_CXX=
10995hardcode_direct_CXX=no
10996hardcode_libdir_flag_spec_CXX=
10997hardcode_libdir_flag_spec_ld_CXX=
10998hardcode_libdir_separator_CXX=
10999hardcode_minus_L_CXX=no
11000hardcode_shlibpath_var_CXX=unsupported
11001hardcode_automatic_CXX=no
11002module_cmds_CXX=
11003module_expsym_cmds_CXX=
11004link_all_deplibs_CXX=unknown
11005old_archive_cmds_CXX=$old_archive_cmds
11006no_undefined_flag_CXX=
11007whole_archive_flag_spec_CXX=
11008enable_shared_with_static_runtimes_CXX=no
11009
11010# Dependencies to place before and after the object being linked:
11011predep_objects_CXX=
11012postdep_objects_CXX=
11013predeps_CXX=
11014postdeps_CXX=
11015compiler_lib_search_path_CXX=
11016
11017# Source file extension for C++ test sources.
11018ac_ext=cpp
11019
11020# Object file extension for compiled C++ test sources.
11021objext=o
11022objext_CXX=$objext
11023
11024# Code to be used in simple compile tests
11025lt_simple_compile_test_code="int some_variable = 0;\n"
11026
11027# Code to be used in simple link tests
11028lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11029
11030# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11031
11032# If no C compiler was specified, use CC.
11033LTCC=${LTCC-"$CC"}
11034
11035# If no C compiler flags were specified, use CFLAGS.
11036LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11037
11038# Allow CC to be a program name with arguments.
11039compiler=$CC
11040
11041
11042# save warnings/boilerplate of simple test code
11043ac_outfile=conftest.$ac_objext
11044printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11045eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11046_lt_compiler_boilerplate=`cat conftest.err`
11047$rm conftest*
11048
11049ac_outfile=conftest.$ac_objext
11050printf "$lt_simple_link_test_code" >conftest.$ac_ext
11051eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11052_lt_linker_boilerplate=`cat conftest.err`
11053$rm conftest*
11054
11055
11056# Allow CC to be a program name with arguments.
11057lt_save_CC=$CC
11058lt_save_LD=$LD
11059lt_save_GCC=$GCC
11060GCC=$GXX
11061lt_save_with_gnu_ld=$with_gnu_ld
11062lt_save_path_LD=$lt_cv_path_LD
11063if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11064  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11065else
11066  $as_unset lt_cv_prog_gnu_ld
11067fi
11068if test -n "${lt_cv_path_LDCXX+set}"; then
11069  lt_cv_path_LD=$lt_cv_path_LDCXX
11070else
11071  $as_unset lt_cv_path_LD
11072fi
11073test -z "${LDCXX+set}" || LD=$LDCXX
11074CC=${CXX-"c++"}
11075compiler=$CC
11076compiler_CXX=$CC
11077for cc_temp in $compiler""; do
11078  case $cc_temp in
11079    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11080    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11081    \-*) ;;
11082    *) break;;
11083  esac
11084done
11085cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11086
11087
11088# We don't want -fno-exception wen compiling C++ code, so set the
11089# no_builtin_flag separately
11090if test "$GXX" = yes; then
11091  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11092else
11093  lt_prog_compiler_no_builtin_flag_CXX=
11094fi
11095
11096if test "$GXX" = yes; then
11097  # Set up default GNU C++ configuration
11098
11099
11100# Check whether --with-gnu-ld was given.
11101if test "${with_gnu_ld+set}" = set; then
11102  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11103else
11104  with_gnu_ld=no
11105fi
11106
11107ac_prog=ld
11108if test "$GCC" = yes; then
11109  # Check if gcc -print-prog-name=ld gives a path.
11110  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11111echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11112  case $host in
11113  *-*-mingw*)
11114    # gcc leaves a trailing carriage return which upsets mingw
11115    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11116  *)
11117    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11118  esac
11119  case $ac_prog in
11120    # Accept absolute paths.
11121    [\\/]* | ?:[\\/]*)
11122      re_direlt='/[^/][^/]*/\.\./'
11123      # Canonicalize the pathname of ld
11124      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11125      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11126	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11127      done
11128      test -z "$LD" && LD="$ac_prog"
11129      ;;
11130  "")
11131    # If it fails, then pretend we aren't using GCC.
11132    ac_prog=ld
11133    ;;
11134  *)
11135    # If it is relative, then search for the first ld in PATH.
11136    with_gnu_ld=unknown
11137    ;;
11138  esac
11139elif test "$with_gnu_ld" = yes; then
11140  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11141echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11142else
11143  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11144echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11145fi
11146if test "${lt_cv_path_LD+set}" = set; then
11147  echo $ECHO_N "(cached) $ECHO_C" >&6
11148else
11149  if test -z "$LD"; then
11150  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11151  for ac_dir in $PATH; do
11152    IFS="$lt_save_ifs"
11153    test -z "$ac_dir" && ac_dir=.
11154    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11155      lt_cv_path_LD="$ac_dir/$ac_prog"
11156      # Check to see if the program is GNU ld.  I'd rather use --version,
11157      # but apparently some variants of GNU ld only accept -v.
11158      # Break only if it was the GNU/non-GNU ld that we prefer.
11159      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11160      *GNU* | *'with BFD'*)
11161	test "$with_gnu_ld" != no && break
11162	;;
11163      *)
11164	test "$with_gnu_ld" != yes && break
11165	;;
11166      esac
11167    fi
11168  done
11169  IFS="$lt_save_ifs"
11170else
11171  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11172fi
11173fi
11174
11175LD="$lt_cv_path_LD"
11176if test -n "$LD"; then
11177  { echo "$as_me:$LINENO: result: $LD" >&5
11178echo "${ECHO_T}$LD" >&6; }
11179else
11180  { echo "$as_me:$LINENO: result: no" >&5
11181echo "${ECHO_T}no" >&6; }
11182fi
11183test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11184echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11185   { (exit 1); exit 1; }; }
11186{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11187echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11188if test "${lt_cv_prog_gnu_ld+set}" = set; then
11189  echo $ECHO_N "(cached) $ECHO_C" >&6
11190else
11191  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11192case `$LD -v 2>&1 </dev/null` in
11193*GNU* | *'with BFD'*)
11194  lt_cv_prog_gnu_ld=yes
11195  ;;
11196*)
11197  lt_cv_prog_gnu_ld=no
11198  ;;
11199esac
11200fi
11201{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11202echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11203with_gnu_ld=$lt_cv_prog_gnu_ld
11204
11205
11206
11207  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11208  # archiving commands below assume that GNU ld is being used.
11209  if test "$with_gnu_ld" = yes; then
11210    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11211    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'
11212
11213    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11214    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11215
11216    # If archive_cmds runs LD, not CC, wlarc should be empty
11217    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11218    #     investigate it a little bit more. (MM)
11219    wlarc='${wl}'
11220
11221    # ancient GNU ld didn't support --whole-archive et. al.
11222    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11223	grep 'no-whole-archive' > /dev/null; then
11224      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11225    else
11226      whole_archive_flag_spec_CXX=
11227    fi
11228  else
11229    with_gnu_ld=no
11230    wlarc=
11231
11232    # A generic and very simple default shared library creation
11233    # command for GNU C++ for the case where it uses the native
11234    # linker, instead of GNU ld.  If possible, this setting should
11235    # overridden to take advantage of the native linker features on
11236    # the platform it is being used on.
11237    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11238  fi
11239
11240  # Commands to make compiler produce verbose output that lists
11241  # what "hidden" libraries, object files and flags are used when
11242  # linking a shared library.
11243  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11244
11245else
11246  GXX=no
11247  with_gnu_ld=no
11248  wlarc=
11249fi
11250
11251# PORTME: fill in a description of your system's C++ link characteristics
11252{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11253echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11254ld_shlibs_CXX=yes
11255case $host_os in
11256  aix3*)
11257    # FIXME: insert proper C++ library support
11258    ld_shlibs_CXX=no
11259    ;;
11260  aix4* | aix5*)
11261    if test "$host_cpu" = ia64; then
11262      # On IA64, the linker does run time linking by default, so we don't
11263      # have to do anything special.
11264      aix_use_runtimelinking=no
11265      exp_sym_flag='-Bexport'
11266      no_entry_flag=""
11267    else
11268      aix_use_runtimelinking=no
11269
11270      # Test if we are trying to use run time linking or normal
11271      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11272      # need to do runtime linking.
11273      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11274	for ld_flag in $LDFLAGS; do
11275	  case $ld_flag in
11276	  *-brtl*)
11277	    aix_use_runtimelinking=yes
11278	    break
11279	    ;;
11280	  esac
11281	done
11282	;;
11283      esac
11284
11285      exp_sym_flag='-bexport'
11286      no_entry_flag='-bnoentry'
11287    fi
11288
11289    # When large executables or shared objects are built, AIX ld can
11290    # have problems creating the table of contents.  If linking a library
11291    # or program results in "error TOC overflow" add -mminimal-toc to
11292    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11293    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11294
11295    archive_cmds_CXX=''
11296    hardcode_direct_CXX=yes
11297    hardcode_libdir_separator_CXX=':'
11298    link_all_deplibs_CXX=yes
11299
11300    if test "$GXX" = yes; then
11301      case $host_os in aix4.[012]|aix4.[012].*)
11302      # We only want to do this on AIX 4.2 and lower, the check
11303      # below for broken collect2 doesn't work under 4.3+
11304	collect2name=`${CC} -print-prog-name=collect2`
11305	if test -f "$collect2name" && \
11306	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11307	then
11308	  # We have reworked collect2
11309	  hardcode_direct_CXX=yes
11310	else
11311	  # We have old collect2
11312	  hardcode_direct_CXX=unsupported
11313	  # It fails to find uninstalled libraries when the uninstalled
11314	  # path is not listed in the libpath.  Setting hardcode_minus_L
11315	  # to unsupported forces relinking
11316	  hardcode_minus_L_CXX=yes
11317	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11318	  hardcode_libdir_separator_CXX=
11319	fi
11320	;;
11321      esac
11322      shared_flag='-shared'
11323      if test "$aix_use_runtimelinking" = yes; then
11324	shared_flag="$shared_flag "'${wl}-G'
11325      fi
11326    else
11327      # not using gcc
11328      if test "$host_cpu" = ia64; then
11329	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11330	# chokes on -Wl,-G. The following line is correct:
11331	shared_flag='-G'
11332      else
11333	if test "$aix_use_runtimelinking" = yes; then
11334	  shared_flag='${wl}-G'
11335	else
11336	  shared_flag='${wl}-bM:SRE'
11337	fi
11338      fi
11339    fi
11340
11341    # It seems that -bexpall does not export symbols beginning with
11342    # underscore (_), so it is better to generate a list of symbols to export.
11343    always_export_symbols_CXX=yes
11344    if test "$aix_use_runtimelinking" = yes; then
11345      # Warning - without using the other runtime loading flags (-brtl),
11346      # -berok will link without error, but may produce a broken library.
11347      allow_undefined_flag_CXX='-berok'
11348      # Determine the default libpath from the value encoded in an empty executable.
11349      cat >conftest.$ac_ext <<_ACEOF
11350/* confdefs.h.  */
11351_ACEOF
11352cat confdefs.h >>conftest.$ac_ext
11353cat >>conftest.$ac_ext <<_ACEOF
11354/* end confdefs.h.  */
11355
11356int
11357main ()
11358{
11359
11360  ;
11361  return 0;
11362}
11363_ACEOF
11364rm -f conftest.$ac_objext conftest$ac_exeext
11365if { (ac_try="$ac_link"
11366case "(($ac_try" in
11367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11368  *) ac_try_echo=$ac_try;;
11369esac
11370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11371  (eval "$ac_link") 2>conftest.er1
11372  ac_status=$?
11373  grep -v '^ *+' conftest.er1 >conftest.err
11374  rm -f conftest.er1
11375  cat conftest.err >&5
11376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377  (exit $ac_status); } &&
11378	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11379  { (case "(($ac_try" in
11380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11381  *) ac_try_echo=$ac_try;;
11382esac
11383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11384  (eval "$ac_try") 2>&5
11385  ac_status=$?
11386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387  (exit $ac_status); }; } &&
11388	 { ac_try='test -s conftest$ac_exeext'
11389  { (case "(($ac_try" in
11390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11391  *) ac_try_echo=$ac_try;;
11392esac
11393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11394  (eval "$ac_try") 2>&5
11395  ac_status=$?
11396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397  (exit $ac_status); }; }; then
11398
11399aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11400}'`
11401# Check for a 64-bit object if we didn't find anything.
11402if 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; }
11403}'`; fi
11404else
11405  echo "$as_me: failed program was:" >&5
11406sed 's/^/| /' conftest.$ac_ext >&5
11407
11408
11409fi
11410
11411rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11412      conftest$ac_exeext conftest.$ac_ext
11413if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11414
11415      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11416
11417      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"
11418     else
11419      if test "$host_cpu" = ia64; then
11420	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11421	allow_undefined_flag_CXX="-z nodefs"
11422	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"
11423      else
11424	# Determine the default libpath from the value encoded in an empty executable.
11425	cat >conftest.$ac_ext <<_ACEOF
11426/* confdefs.h.  */
11427_ACEOF
11428cat confdefs.h >>conftest.$ac_ext
11429cat >>conftest.$ac_ext <<_ACEOF
11430/* end confdefs.h.  */
11431
11432int
11433main ()
11434{
11435
11436  ;
11437  return 0;
11438}
11439_ACEOF
11440rm -f conftest.$ac_objext conftest$ac_exeext
11441if { (ac_try="$ac_link"
11442case "(($ac_try" in
11443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11444  *) ac_try_echo=$ac_try;;
11445esac
11446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11447  (eval "$ac_link") 2>conftest.er1
11448  ac_status=$?
11449  grep -v '^ *+' conftest.er1 >conftest.err
11450  rm -f conftest.er1
11451  cat conftest.err >&5
11452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453  (exit $ac_status); } &&
11454	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11455  { (case "(($ac_try" in
11456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11457  *) ac_try_echo=$ac_try;;
11458esac
11459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11460  (eval "$ac_try") 2>&5
11461  ac_status=$?
11462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463  (exit $ac_status); }; } &&
11464	 { ac_try='test -s conftest$ac_exeext'
11465  { (case "(($ac_try" in
11466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11467  *) ac_try_echo=$ac_try;;
11468esac
11469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11470  (eval "$ac_try") 2>&5
11471  ac_status=$?
11472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473  (exit $ac_status); }; }; then
11474
11475aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11476}'`
11477# Check for a 64-bit object if we didn't find anything.
11478if 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; }
11479}'`; fi
11480else
11481  echo "$as_me: failed program was:" >&5
11482sed 's/^/| /' conftest.$ac_ext >&5
11483
11484
11485fi
11486
11487rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11488      conftest$ac_exeext conftest.$ac_ext
11489if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11490
11491	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11492	# Warning - without using the other run time loading flags,
11493	# -berok will link without error, but may produce a broken library.
11494	no_undefined_flag_CXX=' ${wl}-bernotok'
11495	allow_undefined_flag_CXX=' ${wl}-berok'
11496	# Exported symbols can be pulled into shared objects from archives
11497	whole_archive_flag_spec_CXX='$convenience'
11498	archive_cmds_need_lc_CXX=yes
11499	# This is similar to how AIX traditionally builds its shared libraries.
11500	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'
11501      fi
11502    fi
11503    ;;
11504
11505  beos*)
11506    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11507      allow_undefined_flag_CXX=unsupported
11508      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11509      # support --undefined.  This deserves some investigation.  FIXME
11510      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11511    else
11512      ld_shlibs_CXX=no
11513    fi
11514    ;;
11515
11516  chorus*)
11517    case $cc_basename in
11518      *)
11519	# FIXME: insert proper C++ library support
11520	ld_shlibs_CXX=no
11521	;;
11522    esac
11523    ;;
11524
11525  cygwin* | mingw* | pw32*)
11526    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11527    # as there is no search path for DLLs.
11528    hardcode_libdir_flag_spec_CXX='-L$libdir'
11529    allow_undefined_flag_CXX=unsupported
11530    always_export_symbols_CXX=no
11531    enable_shared_with_static_runtimes_CXX=yes
11532
11533    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11534      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'
11535      # If the export-symbols file already is a .def file (1st line
11536      # is EXPORTS), use it as is; otherwise, prepend...
11537      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11538	cp $export_symbols $output_objdir/$soname.def;
11539      else
11540	echo EXPORTS > $output_objdir/$soname.def;
11541	cat $export_symbols >> $output_objdir/$soname.def;
11542      fi~
11543      $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'
11544    else
11545      ld_shlibs_CXX=no
11546    fi
11547  ;;
11548      darwin* | rhapsody*)
11549        case $host_os in
11550        rhapsody* | darwin1.[012])
11551         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11552         ;;
11553       *) # Darwin 1.3 on
11554         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11555           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11556         else
11557           case ${MACOSX_DEPLOYMENT_TARGET} in
11558             10.[012])
11559               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11560               ;;
11561             10.*)
11562               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11563               ;;
11564           esac
11565         fi
11566         ;;
11567        esac
11568      archive_cmds_need_lc_CXX=no
11569      hardcode_direct_CXX=no
11570      hardcode_automatic_CXX=yes
11571      hardcode_shlibpath_var_CXX=unsupported
11572      whole_archive_flag_spec_CXX=''
11573      link_all_deplibs_CXX=yes
11574
11575    if test "$GXX" = yes ; then
11576      lt_int_apple_cc_single_mod=no
11577      output_verbose_link_cmd='echo'
11578      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11579       lt_int_apple_cc_single_mod=yes
11580      fi
11581      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11582       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11583      else
11584          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'
11585        fi
11586        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11587        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11588          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11589            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}'
11590          else
11591            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}'
11592          fi
11593            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}'
11594      else
11595      case $cc_basename in
11596        xlc*)
11597         output_verbose_link_cmd='echo'
11598          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'
11599          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11600          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11601          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}'
11602          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}'
11603          ;;
11604       *)
11605         ld_shlibs_CXX=no
11606          ;;
11607      esac
11608      fi
11609        ;;
11610
11611  dgux*)
11612    case $cc_basename in
11613      ec++*)
11614	# FIXME: insert proper C++ library support
11615	ld_shlibs_CXX=no
11616	;;
11617      ghcx*)
11618	# Green Hills C++ Compiler
11619	# FIXME: insert proper C++ library support
11620	ld_shlibs_CXX=no
11621	;;
11622      *)
11623	# FIXME: insert proper C++ library support
11624	ld_shlibs_CXX=no
11625	;;
11626    esac
11627    ;;
11628  freebsd[12]*)
11629    # C++ shared libraries reported to be fairly broken before switch to ELF
11630    ld_shlibs_CXX=no
11631    ;;
11632  freebsd-elf*)
11633    archive_cmds_need_lc_CXX=no
11634    ;;
11635  freebsd* | dragonfly*)
11636    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11637    # conventions
11638    ld_shlibs_CXX=yes
11639    ;;
11640  gnu*)
11641    ;;
11642  hpux9*)
11643    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11644    hardcode_libdir_separator_CXX=:
11645    export_dynamic_flag_spec_CXX='${wl}-E'
11646    hardcode_direct_CXX=yes
11647    hardcode_minus_L_CXX=yes # Not in the search PATH,
11648				# but as the default
11649				# location of the library.
11650
11651    case $cc_basename in
11652    CC*)
11653      # FIXME: insert proper C++ library support
11654      ld_shlibs_CXX=no
11655      ;;
11656    aCC*)
11657      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'
11658      # Commands to make compiler produce verbose output that lists
11659      # what "hidden" libraries, object files and flags are used when
11660      # linking a shared library.
11661      #
11662      # There doesn't appear to be a way to prevent this compiler from
11663      # explicitly linking system object files so we need to strip them
11664      # from the output so that they don't get included in the library
11665      # dependencies.
11666      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'
11667      ;;
11668    *)
11669      if test "$GXX" = yes; then
11670        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'
11671      else
11672        # FIXME: insert proper C++ library support
11673        ld_shlibs_CXX=no
11674      fi
11675      ;;
11676    esac
11677    ;;
11678  hpux10*|hpux11*)
11679    if test $with_gnu_ld = no; then
11680      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11681      hardcode_libdir_separator_CXX=:
11682
11683      case $host_cpu in
11684      hppa*64*|ia64*)
11685	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11686        ;;
11687      *)
11688	export_dynamic_flag_spec_CXX='${wl}-E'
11689        ;;
11690      esac
11691    fi
11692    case $host_cpu in
11693    hppa*64*|ia64*)
11694      hardcode_direct_CXX=no
11695      hardcode_shlibpath_var_CXX=no
11696      ;;
11697    *)
11698      hardcode_direct_CXX=yes
11699      hardcode_minus_L_CXX=yes # Not in the search PATH,
11700					      # but as the default
11701					      # location of the library.
11702      ;;
11703    esac
11704
11705    case $cc_basename in
11706      CC*)
11707	# FIXME: insert proper C++ library support
11708	ld_shlibs_CXX=no
11709	;;
11710      aCC*)
11711	case $host_cpu in
11712	hppa*64*)
11713	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11714	  ;;
11715	ia64*)
11716	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11717	  ;;
11718	*)
11719	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11720	  ;;
11721	esac
11722	# Commands to make compiler produce verbose output that lists
11723	# what "hidden" libraries, object files and flags are used when
11724	# linking a shared library.
11725	#
11726	# There doesn't appear to be a way to prevent this compiler from
11727	# explicitly linking system object files so we need to strip them
11728	# from the output so that they don't get included in the library
11729	# dependencies.
11730	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'
11731	;;
11732      *)
11733	if test "$GXX" = yes; then
11734	  if test $with_gnu_ld = no; then
11735	    case $host_cpu in
11736	    hppa*64*)
11737	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11738	      ;;
11739	    ia64*)
11740	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11741	      ;;
11742	    *)
11743	      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'
11744	      ;;
11745	    esac
11746	  fi
11747	else
11748	  # FIXME: insert proper C++ library support
11749	  ld_shlibs_CXX=no
11750	fi
11751	;;
11752    esac
11753    ;;
11754  interix3*)
11755    hardcode_direct_CXX=no
11756    hardcode_shlibpath_var_CXX=no
11757    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11758    export_dynamic_flag_spec_CXX='${wl}-E'
11759    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11760    # Instead, shared libraries are loaded at an image base (0x10000000 by
11761    # default) and relocated if they conflict, which is a slow very memory
11762    # consuming and fragmenting process.  To avoid this, we pick a random,
11763    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11764    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11765    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'
11766    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'
11767    ;;
11768  irix5* | irix6*)
11769    case $cc_basename in
11770      CC*)
11771	# SGI C++
11772	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'
11773
11774	# Archives containing C++ object files must be created using
11775	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11776	# necessary to make sure instantiated templates are included
11777	# in the archive.
11778	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11779	;;
11780      *)
11781	if test "$GXX" = yes; then
11782	  if test "$with_gnu_ld" = no; then
11783	    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'
11784	  else
11785	    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'
11786	  fi
11787	fi
11788	link_all_deplibs_CXX=yes
11789	;;
11790    esac
11791    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11792    hardcode_libdir_separator_CXX=:
11793    ;;
11794  linux* | k*bsd*-gnu)
11795    case $cc_basename in
11796      KCC*)
11797	# Kuck and Associates, Inc. (KAI) C++ Compiler
11798
11799	# KCC will only create a shared library if the output file
11800	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11801	# to its proper name (with version) after linking.
11802	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'
11803	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'
11804	# Commands to make compiler produce verbose output that lists
11805	# what "hidden" libraries, object files and flags are used when
11806	# linking a shared library.
11807	#
11808	# There doesn't appear to be a way to prevent this compiler from
11809	# explicitly linking system object files so we need to strip them
11810	# from the output so that they don't get included in the library
11811	# dependencies.
11812	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'
11813
11814	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11815	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11816
11817	# Archives containing C++ object files must be created using
11818	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11819	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11820	;;
11821      icpc*)
11822	# Intel C++
11823	with_gnu_ld=yes
11824	# version 8.0 and above of icpc choke on multiply defined symbols
11825	# if we add $predep_objects and $postdep_objects, however 7.1 and
11826	# earlier do not add the objects themselves.
11827	case `$CC -V 2>&1` in
11828	*"Version 7."*)
11829  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11830  	  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'
11831	  ;;
11832	*)  # Version 8.0 or newer
11833	  tmp_idyn=
11834	  case $host_cpu in
11835	    ia64*) tmp_idyn=' -i_dynamic';;
11836	  esac
11837  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11838	  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'
11839	  ;;
11840	esac
11841	archive_cmds_need_lc_CXX=no
11842	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11843	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11844	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11845	;;
11846      pgCC*)
11847        # Portland Group C++ compiler
11848	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11849  	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'
11850
11851	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11852	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11853	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'
11854        ;;
11855      cxx*)
11856	# Compaq C++
11857	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11858	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'
11859
11860	runpath_var=LD_RUN_PATH
11861	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11862	hardcode_libdir_separator_CXX=:
11863
11864	# Commands to make compiler produce verbose output that lists
11865	# what "hidden" libraries, object files and flags are used when
11866	# linking a shared library.
11867	#
11868	# There doesn't appear to be a way to prevent this compiler from
11869	# explicitly linking system object files so we need to strip them
11870	# from the output so that they don't get included in the library
11871	# dependencies.
11872	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'
11873	;;
11874    esac
11875    ;;
11876  lynxos*)
11877    # FIXME: insert proper C++ library support
11878    ld_shlibs_CXX=no
11879    ;;
11880  m88k*)
11881    # FIXME: insert proper C++ library support
11882    ld_shlibs_CXX=no
11883    ;;
11884  mvs*)
11885    case $cc_basename in
11886      cxx*)
11887	# FIXME: insert proper C++ library support
11888	ld_shlibs_CXX=no
11889	;;
11890      *)
11891	# FIXME: insert proper C++ library support
11892	ld_shlibs_CXX=no
11893	;;
11894    esac
11895    ;;
11896  netbsd* | netbsdelf*-gnu)
11897    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11898      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11899      wlarc=
11900      hardcode_libdir_flag_spec_CXX='-R$libdir'
11901      hardcode_direct_CXX=yes
11902      hardcode_shlibpath_var_CXX=no
11903    fi
11904    # Workaround some broken pre-1.5 toolchains
11905    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11906    ;;
11907  openbsd2*)
11908    # C++ shared libraries are fairly broken
11909    ld_shlibs_CXX=no
11910    ;;
11911  openbsd*)
11912    hardcode_direct_CXX=yes
11913    hardcode_shlibpath_var_CXX=no
11914    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11915    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11916    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11917      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11918      export_dynamic_flag_spec_CXX='${wl}-E'
11919      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11920    fi
11921    output_verbose_link_cmd='echo'
11922    ;;
11923  osf3*)
11924    case $cc_basename in
11925      KCC*)
11926	# Kuck and Associates, Inc. (KAI) C++ Compiler
11927
11928	# KCC will only create a shared library if the output file
11929	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11930	# to its proper name (with version) after linking.
11931	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'
11932
11933	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11934	hardcode_libdir_separator_CXX=:
11935
11936	# Archives containing C++ object files must be created using
11937	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11938	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11939
11940	;;
11941      RCC*)
11942	# Rational C++ 2.4.1
11943	# FIXME: insert proper C++ library support
11944	ld_shlibs_CXX=no
11945	;;
11946      cxx*)
11947	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11948	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'
11949
11950	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11951	hardcode_libdir_separator_CXX=:
11952
11953	# Commands to make compiler produce verbose output that lists
11954	# what "hidden" libraries, object files and flags are used when
11955	# linking a shared library.
11956	#
11957	# There doesn't appear to be a way to prevent this compiler from
11958	# explicitly linking system object files so we need to strip them
11959	# from the output so that they don't get included in the library
11960	# dependencies.
11961	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'
11962	;;
11963      *)
11964	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11965	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11966	  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'
11967
11968	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11969	  hardcode_libdir_separator_CXX=:
11970
11971	  # Commands to make compiler produce verbose output that lists
11972	  # what "hidden" libraries, object files and flags are used when
11973	  # linking a shared library.
11974	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11975
11976	else
11977	  # FIXME: insert proper C++ library support
11978	  ld_shlibs_CXX=no
11979	fi
11980	;;
11981    esac
11982    ;;
11983  osf4* | osf5*)
11984    case $cc_basename in
11985      KCC*)
11986	# Kuck and Associates, Inc. (KAI) C++ Compiler
11987
11988	# KCC will only create a shared library if the output file
11989	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11990	# to its proper name (with version) after linking.
11991	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'
11992
11993	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11994	hardcode_libdir_separator_CXX=:
11995
11996	# Archives containing C++ object files must be created using
11997	# the KAI C++ compiler.
11998	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11999	;;
12000      RCC*)
12001	# Rational C++ 2.4.1
12002	# FIXME: insert proper C++ library support
12003	ld_shlibs_CXX=no
12004	;;
12005      cxx*)
12006	allow_undefined_flag_CXX=' -expect_unresolved \*'
12007	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'
12008	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12009	  echo "-hidden">> $lib.exp~
12010	  $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~
12011	  $rm $lib.exp'
12012
12013	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12014	hardcode_libdir_separator_CXX=:
12015
12016	# Commands to make compiler produce verbose output that lists
12017	# what "hidden" libraries, object files and flags are used when
12018	# linking a shared library.
12019	#
12020	# There doesn't appear to be a way to prevent this compiler from
12021	# explicitly linking system object files so we need to strip them
12022	# from the output so that they don't get included in the library
12023	# dependencies.
12024	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'
12025	;;
12026      *)
12027	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12028	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12029	 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'
12030
12031	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12032	  hardcode_libdir_separator_CXX=:
12033
12034	  # Commands to make compiler produce verbose output that lists
12035	  # what "hidden" libraries, object files and flags are used when
12036	  # linking a shared library.
12037	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12038
12039	else
12040	  # FIXME: insert proper C++ library support
12041	  ld_shlibs_CXX=no
12042	fi
12043	;;
12044    esac
12045    ;;
12046  psos*)
12047    # FIXME: insert proper C++ library support
12048    ld_shlibs_CXX=no
12049    ;;
12050  sunos4*)
12051    case $cc_basename in
12052      CC*)
12053	# Sun C++ 4.x
12054	# FIXME: insert proper C++ library support
12055	ld_shlibs_CXX=no
12056	;;
12057      lcc*)
12058	# Lucid
12059	# FIXME: insert proper C++ library support
12060	ld_shlibs_CXX=no
12061	;;
12062      *)
12063	# FIXME: insert proper C++ library support
12064	ld_shlibs_CXX=no
12065	;;
12066    esac
12067    ;;
12068  solaris*)
12069    case $cc_basename in
12070      CC*)
12071	# Sun C++ 4.2, 5.x and Centerline C++
12072        archive_cmds_need_lc_CXX=yes
12073	no_undefined_flag_CXX=' -zdefs'
12074	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12075	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12076	$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'
12077
12078	hardcode_libdir_flag_spec_CXX='-R$libdir'
12079	hardcode_shlibpath_var_CXX=no
12080	case $host_os in
12081	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12082	  *)
12083	    # The C++ compiler is used as linker so we must use $wl
12084	    # flag to pass the commands to the underlying system
12085	    # linker. We must also pass each convience library through
12086	    # to the system linker between allextract/defaultextract.
12087	    # The C++ compiler will combine linker options so we
12088	    # cannot just pass the convience library names through
12089	    # without $wl.
12090	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12091	    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'
12092	    ;;
12093	esac
12094	link_all_deplibs_CXX=yes
12095
12096	output_verbose_link_cmd='echo'
12097
12098	# Archives containing C++ object files must be created using
12099	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12100	# necessary to make sure instantiated templates are included
12101	# in the archive.
12102	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12103	;;
12104      gcx*)
12105	# Green Hills C++ Compiler
12106	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12107
12108	# The C++ compiler must be used to create the archive.
12109	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12110	;;
12111      *)
12112	# GNU C++ compiler with Solaris linker
12113	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12114	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12115	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12116	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12117	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12118		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12119
12120	    # Commands to make compiler produce verbose output that lists
12121	    # what "hidden" libraries, object files and flags are used when
12122	    # linking a shared library.
12123	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12124	  else
12125	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12126	    # platform.
12127	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12128	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12129		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12130
12131	    # Commands to make compiler produce verbose output that lists
12132	    # what "hidden" libraries, object files and flags are used when
12133	    # linking a shared library.
12134	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12135	  fi
12136
12137	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12138	fi
12139	;;
12140    esac
12141    ;;
12142  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12143    no_undefined_flag_CXX='${wl}-z,text'
12144    archive_cmds_need_lc_CXX=no
12145    hardcode_shlibpath_var_CXX=no
12146    runpath_var='LD_RUN_PATH'
12147
12148    case $cc_basename in
12149      CC*)
12150	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12151	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12152	;;
12153      *)
12154	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12155	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12156	;;
12157    esac
12158    ;;
12159  sysv5* | sco3.2v5* | sco5v6*)
12160    # Note: We can NOT use -z defs as we might desire, because we do not
12161    # link with -lc, and that would cause any symbols used from libc to
12162    # always be unresolved, which means just about no library would
12163    # ever link correctly.  If we're not using GNU ld we use -z text
12164    # though, which does catch some bad symbols but isn't as heavy-handed
12165    # as -z defs.
12166    # For security reasons, it is highly recommended that you always
12167    # use absolute paths for naming shared libraries, and exclude the
12168    # DT_RUNPATH tag from executables and libraries.  But doing so
12169    # requires that you compile everything twice, which is a pain.
12170    # So that behaviour is only enabled if SCOABSPATH is set to a
12171    # non-empty value in the environment.  Most likely only useful for
12172    # creating official distributions of packages.
12173    # This is a hack until libtool officially supports absolute path
12174    # names for shared libraries.
12175    no_undefined_flag_CXX='${wl}-z,text'
12176    allow_undefined_flag_CXX='${wl}-z,nodefs'
12177    archive_cmds_need_lc_CXX=no
12178    hardcode_shlibpath_var_CXX=no
12179    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12180    hardcode_libdir_separator_CXX=':'
12181    link_all_deplibs_CXX=yes
12182    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12183    runpath_var='LD_RUN_PATH'
12184
12185    case $cc_basename in
12186      CC*)
12187	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12188	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12189	;;
12190      *)
12191	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12192	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12193	;;
12194    esac
12195    ;;
12196  tandem*)
12197    case $cc_basename in
12198      NCC*)
12199	# NonStop-UX NCC 3.20
12200	# FIXME: insert proper C++ library support
12201	ld_shlibs_CXX=no
12202	;;
12203      *)
12204	# FIXME: insert proper C++ library support
12205	ld_shlibs_CXX=no
12206	;;
12207    esac
12208    ;;
12209  vxworks*)
12210    # FIXME: insert proper C++ library support
12211    ld_shlibs_CXX=no
12212    ;;
12213  *)
12214    # FIXME: insert proper C++ library support
12215    ld_shlibs_CXX=no
12216    ;;
12217esac
12218{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12219echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12220test "$ld_shlibs_CXX" = no && can_build_shared=no
12221
12222GCC_CXX="$GXX"
12223LD_CXX="$LD"
12224
12225
12226cat > conftest.$ac_ext <<EOF
12227class Foo
12228{
12229public:
12230  Foo (void) { a = 0; }
12231private:
12232  int a;
12233};
12234EOF
12235
12236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12237  (eval $ac_compile) 2>&5
12238  ac_status=$?
12239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240  (exit $ac_status); }; then
12241  # Parse the compiler output and extract the necessary
12242  # objects, libraries and library flags.
12243
12244  # Sentinel used to keep track of whether or not we are before
12245  # the conftest object file.
12246  pre_test_object_deps_done=no
12247
12248  # The `*' in the case matches for architectures that use `case' in
12249  # $output_verbose_cmd can trigger glob expansion during the loop
12250  # eval without this substitution.
12251  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12252
12253  for p in `eval $output_verbose_link_cmd`; do
12254    case $p in
12255
12256    -L* | -R* | -l*)
12257       # Some compilers place space between "-{L,R}" and the path.
12258       # Remove the space.
12259       if test $p = "-L" \
12260	  || test $p = "-R"; then
12261	 prev=$p
12262	 continue
12263       else
12264	 prev=
12265       fi
12266
12267       if test "$pre_test_object_deps_done" = no; then
12268	 case $p in
12269	 -L* | -R*)
12270	   # Internal compiler library paths should come after those
12271	   # provided the user.  The postdeps already come after the
12272	   # user supplied libs so there is no need to process them.
12273	   if test -z "$compiler_lib_search_path_CXX"; then
12274	     compiler_lib_search_path_CXX="${prev}${p}"
12275	   else
12276	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12277	   fi
12278	   ;;
12279	 # The "-l" case would never come before the object being
12280	 # linked, so don't bother handling this case.
12281	 esac
12282       else
12283	 if test -z "$postdeps_CXX"; then
12284	   postdeps_CXX="${prev}${p}"
12285	 else
12286	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12287	 fi
12288       fi
12289       ;;
12290
12291    *.$objext)
12292       # This assumes that the test object file only shows up
12293       # once in the compiler output.
12294       if test "$p" = "conftest.$objext"; then
12295	 pre_test_object_deps_done=yes
12296	 continue
12297       fi
12298
12299       if test "$pre_test_object_deps_done" = no; then
12300	 if test -z "$predep_objects_CXX"; then
12301	   predep_objects_CXX="$p"
12302	 else
12303	   predep_objects_CXX="$predep_objects_CXX $p"
12304	 fi
12305       else
12306	 if test -z "$postdep_objects_CXX"; then
12307	   postdep_objects_CXX="$p"
12308	 else
12309	   postdep_objects_CXX="$postdep_objects_CXX $p"
12310	 fi
12311       fi
12312       ;;
12313
12314    *) ;; # Ignore the rest.
12315
12316    esac
12317  done
12318
12319  # Clean up.
12320  rm -f a.out a.exe
12321else
12322  echo "libtool.m4: error: problem compiling CXX test program"
12323fi
12324
12325$rm -f confest.$objext
12326
12327# PORTME: override above test on systems where it is broken
12328case $host_os in
12329interix3*)
12330  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12331  # hack all around it, let's just trust "g++" to DTRT.
12332  predep_objects_CXX=
12333  postdep_objects_CXX=
12334  postdeps_CXX=
12335  ;;
12336
12337solaris*)
12338  case $cc_basename in
12339  CC*)
12340    # Adding this requires a known-good setup of shared libraries for
12341    # Sun compiler versions before 5.6, else PIC objects from an old
12342    # archive will be linked into the output, leading to subtle bugs.
12343    postdeps_CXX='-lCstd -lCrun'
12344    ;;
12345  esac
12346  ;;
12347esac
12348
12349
12350case " $postdeps_CXX " in
12351*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12352esac
12353
12354lt_prog_compiler_wl_CXX=
12355lt_prog_compiler_pic_CXX=
12356lt_prog_compiler_static_CXX=
12357
12358{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12359echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12360
12361  # C++ specific cases for pic, static, wl, etc.
12362  if test "$GXX" = yes; then
12363    lt_prog_compiler_wl_CXX='-Wl,'
12364    lt_prog_compiler_static_CXX='-static'
12365
12366    case $host_os in
12367    aix*)
12368      # All AIX code is PIC.
12369      if test "$host_cpu" = ia64; then
12370	# AIX 5 now supports IA64 processor
12371	lt_prog_compiler_static_CXX='-Bstatic'
12372      fi
12373      ;;
12374    amigaos*)
12375      # FIXME: we need at least 68020 code to build shared libraries, but
12376      # adding the `-m68020' flag to GCC prevents building anything better,
12377      # like `-m68040'.
12378      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12379      ;;
12380    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12381      # PIC is the default for these OSes.
12382      ;;
12383    mingw* | os2* | pw32*)
12384      # This hack is so that the source file can tell whether it is being
12385      # built for inclusion in a dll (and should export symbols for example).
12386      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12387      ;;
12388    darwin* | rhapsody*)
12389      # PIC is the default on this platform
12390      # Common symbols not allowed in MH_DYLIB files
12391      lt_prog_compiler_pic_CXX='-fno-common'
12392      ;;
12393    *djgpp*)
12394      # DJGPP does not support shared libraries at all
12395      lt_prog_compiler_pic_CXX=
12396      ;;
12397    interix3*)
12398      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12399      # Instead, we relocate shared libraries at runtime.
12400      ;;
12401    sysv4*MP*)
12402      if test -d /usr/nec; then
12403	lt_prog_compiler_pic_CXX=-Kconform_pic
12404      fi
12405      ;;
12406    hpux*)
12407      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12408      # not for PA HP-UX.
12409      case $host_cpu in
12410      hppa*64*|ia64*)
12411	;;
12412      *)
12413	lt_prog_compiler_pic_CXX='-fPIC'
12414	;;
12415      esac
12416      ;;
12417    *)
12418      lt_prog_compiler_pic_CXX='-fPIC'
12419      ;;
12420    esac
12421  else
12422    case $host_os in
12423      aix4* | aix5*)
12424	# All AIX code is PIC.
12425	if test "$host_cpu" = ia64; then
12426	  # AIX 5 now supports IA64 processor
12427	  lt_prog_compiler_static_CXX='-Bstatic'
12428	else
12429	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12430	fi
12431	;;
12432      chorus*)
12433	case $cc_basename in
12434	cxch68*)
12435	  # Green Hills C++ Compiler
12436	  # _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"
12437	  ;;
12438	esac
12439	;;
12440       darwin*)
12441         # PIC is the default on this platform
12442         # Common symbols not allowed in MH_DYLIB files
12443         case $cc_basename in
12444           xlc*)
12445           lt_prog_compiler_pic_CXX='-qnocommon'
12446           lt_prog_compiler_wl_CXX='-Wl,'
12447           ;;
12448         esac
12449       ;;
12450      dgux*)
12451	case $cc_basename in
12452	  ec++*)
12453	    lt_prog_compiler_pic_CXX='-KPIC'
12454	    ;;
12455	  ghcx*)
12456	    # Green Hills C++ Compiler
12457	    lt_prog_compiler_pic_CXX='-pic'
12458	    ;;
12459	  *)
12460	    ;;
12461	esac
12462	;;
12463      freebsd* | dragonfly*)
12464	# FreeBSD uses GNU C++
12465	;;
12466      hpux9* | hpux10* | hpux11*)
12467	case $cc_basename in
12468	  CC*)
12469	    lt_prog_compiler_wl_CXX='-Wl,'
12470	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12471	    if test "$host_cpu" != ia64; then
12472	      lt_prog_compiler_pic_CXX='+Z'
12473	    fi
12474	    ;;
12475	  aCC*)
12476	    lt_prog_compiler_wl_CXX='-Wl,'
12477	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12478	    case $host_cpu in
12479	    hppa*64*|ia64*)
12480	      # +Z the default
12481	      ;;
12482	    *)
12483	      lt_prog_compiler_pic_CXX='+Z'
12484	      ;;
12485	    esac
12486	    ;;
12487	  *)
12488	    ;;
12489	esac
12490	;;
12491      interix*)
12492	# This is c89, which is MS Visual C++ (no shared libs)
12493	# Anyone wants to do a port?
12494	;;
12495      irix5* | irix6* | nonstopux*)
12496	case $cc_basename in
12497	  CC*)
12498	    lt_prog_compiler_wl_CXX='-Wl,'
12499	    lt_prog_compiler_static_CXX='-non_shared'
12500	    # CC pic flag -KPIC is the default.
12501	    ;;
12502	  *)
12503	    ;;
12504	esac
12505	;;
12506      linux* | k*bsd*-gnu)
12507	case $cc_basename in
12508	  KCC*)
12509	    # KAI C++ Compiler
12510	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12511	    lt_prog_compiler_pic_CXX='-fPIC'
12512	    ;;
12513	  icpc* | ecpc*)
12514	    # Intel C++
12515	    lt_prog_compiler_wl_CXX='-Wl,'
12516	    lt_prog_compiler_pic_CXX='-KPIC'
12517	    lt_prog_compiler_static_CXX='-static'
12518	    ;;
12519	  pgCC*)
12520	    # Portland Group C++ compiler.
12521	    lt_prog_compiler_wl_CXX='-Wl,'
12522	    lt_prog_compiler_pic_CXX='-fpic'
12523	    lt_prog_compiler_static_CXX='-Bstatic'
12524	    ;;
12525	  cxx*)
12526	    # Compaq C++
12527	    # Make sure the PIC flag is empty.  It appears that all Alpha
12528	    # Linux and Compaq Tru64 Unix objects are PIC.
12529	    lt_prog_compiler_pic_CXX=
12530	    lt_prog_compiler_static_CXX='-non_shared'
12531	    ;;
12532	  *)
12533	    ;;
12534	esac
12535	;;
12536      lynxos*)
12537	;;
12538      m88k*)
12539	;;
12540      mvs*)
12541	case $cc_basename in
12542	  cxx*)
12543	    lt_prog_compiler_pic_CXX='-W c,exportall'
12544	    ;;
12545	  *)
12546	    ;;
12547	esac
12548	;;
12549      netbsd* | netbsdelf*-gnu)
12550	;;
12551      osf3* | osf4* | osf5*)
12552	case $cc_basename in
12553	  KCC*)
12554	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12555	    ;;
12556	  RCC*)
12557	    # Rational C++ 2.4.1
12558	    lt_prog_compiler_pic_CXX='-pic'
12559	    ;;
12560	  cxx*)
12561	    # Digital/Compaq C++
12562	    lt_prog_compiler_wl_CXX='-Wl,'
12563	    # Make sure the PIC flag is empty.  It appears that all Alpha
12564	    # Linux and Compaq Tru64 Unix objects are PIC.
12565	    lt_prog_compiler_pic_CXX=
12566	    lt_prog_compiler_static_CXX='-non_shared'
12567	    ;;
12568	  *)
12569	    ;;
12570	esac
12571	;;
12572      psos*)
12573	;;
12574      solaris*)
12575	case $cc_basename in
12576	  CC*)
12577	    # Sun C++ 4.2, 5.x and Centerline C++
12578	    lt_prog_compiler_pic_CXX='-KPIC'
12579	    lt_prog_compiler_static_CXX='-Bstatic'
12580	    lt_prog_compiler_wl_CXX='-Qoption ld '
12581	    ;;
12582	  gcx*)
12583	    # Green Hills C++ Compiler
12584	    lt_prog_compiler_pic_CXX='-PIC'
12585	    ;;
12586	  *)
12587	    ;;
12588	esac
12589	;;
12590      sunos4*)
12591	case $cc_basename in
12592	  CC*)
12593	    # Sun C++ 4.x
12594	    lt_prog_compiler_pic_CXX='-pic'
12595	    lt_prog_compiler_static_CXX='-Bstatic'
12596	    ;;
12597	  lcc*)
12598	    # Lucid
12599	    lt_prog_compiler_pic_CXX='-pic'
12600	    ;;
12601	  *)
12602	    ;;
12603	esac
12604	;;
12605      tandem*)
12606	case $cc_basename in
12607	  NCC*)
12608	    # NonStop-UX NCC 3.20
12609	    lt_prog_compiler_pic_CXX='-KPIC'
12610	    ;;
12611	  *)
12612	    ;;
12613	esac
12614	;;
12615      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12616	case $cc_basename in
12617	  CC*)
12618	    lt_prog_compiler_wl_CXX='-Wl,'
12619	    lt_prog_compiler_pic_CXX='-KPIC'
12620	    lt_prog_compiler_static_CXX='-Bstatic'
12621	    ;;
12622	esac
12623	;;
12624      vxworks*)
12625	;;
12626      *)
12627	lt_prog_compiler_can_build_shared_CXX=no
12628	;;
12629    esac
12630  fi
12631
12632{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12633echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12634
12635#
12636# Check to make sure the PIC flag actually works.
12637#
12638if test -n "$lt_prog_compiler_pic_CXX"; then
12639
12640{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12641echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12642if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12643  echo $ECHO_N "(cached) $ECHO_C" >&6
12644else
12645  lt_prog_compiler_pic_works_CXX=no
12646  ac_outfile=conftest.$ac_objext
12647   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12648   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12649   # Insert the option either (1) after the last *FLAGS variable, or
12650   # (2) before a word containing "conftest.", or (3) at the end.
12651   # Note that $ac_compile itself does not contain backslashes and begins
12652   # with a dollar sign (not a hyphen), so the echo should work correctly.
12653   # The option is referenced via a variable to avoid confusing sed.
12654   lt_compile=`echo "$ac_compile" | $SED \
12655   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12656   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12657   -e 's:$: $lt_compiler_flag:'`
12658   (eval echo "\"\$as_me:12658: $lt_compile\"" >&5)
12659   (eval "$lt_compile" 2>conftest.err)
12660   ac_status=$?
12661   cat conftest.err >&5
12662   echo "$as_me:12662: \$? = $ac_status" >&5
12663   if (exit $ac_status) && test -s "$ac_outfile"; then
12664     # The compiler can only warn and ignore the option if not recognized
12665     # So say no if there are warnings other than the usual output.
12666     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12667     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12668     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12669       lt_prog_compiler_pic_works_CXX=yes
12670     fi
12671   fi
12672   $rm conftest*
12673
12674fi
12675{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12676echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12677
12678if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12679    case $lt_prog_compiler_pic_CXX in
12680     "" | " "*) ;;
12681     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12682     esac
12683else
12684    lt_prog_compiler_pic_CXX=
12685     lt_prog_compiler_can_build_shared_CXX=no
12686fi
12687
12688fi
12689case $host_os in
12690  # For platforms which do not support PIC, -DPIC is meaningless:
12691  *djgpp*)
12692    lt_prog_compiler_pic_CXX=
12693    ;;
12694  *)
12695    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12696    ;;
12697esac
12698
12699#
12700# Check to make sure the static flag actually works.
12701#
12702wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12703{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12704echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12705if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12706  echo $ECHO_N "(cached) $ECHO_C" >&6
12707else
12708  lt_prog_compiler_static_works_CXX=no
12709   save_LDFLAGS="$LDFLAGS"
12710   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12711   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12712   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12713     # The linker can only warn and ignore the option if not recognized
12714     # So say no if there are warnings
12715     if test -s conftest.err; then
12716       # Append any errors to the config.log.
12717       cat conftest.err 1>&5
12718       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12719       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12720       if diff conftest.exp conftest.er2 >/dev/null; then
12721         lt_prog_compiler_static_works_CXX=yes
12722       fi
12723     else
12724       lt_prog_compiler_static_works_CXX=yes
12725     fi
12726   fi
12727   $rm conftest*
12728   LDFLAGS="$save_LDFLAGS"
12729
12730fi
12731{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12732echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12733
12734if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12735    :
12736else
12737    lt_prog_compiler_static_CXX=
12738fi
12739
12740
12741{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12742echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12743if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12744  echo $ECHO_N "(cached) $ECHO_C" >&6
12745else
12746  lt_cv_prog_compiler_c_o_CXX=no
12747   $rm -r conftest 2>/dev/null
12748   mkdir conftest
12749   cd conftest
12750   mkdir out
12751   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12752
12753   lt_compiler_flag="-o out/conftest2.$ac_objext"
12754   # Insert the option either (1) after the last *FLAGS variable, or
12755   # (2) before a word containing "conftest.", or (3) at the end.
12756   # Note that $ac_compile itself does not contain backslashes and begins
12757   # with a dollar sign (not a hyphen), so the echo should work correctly.
12758   lt_compile=`echo "$ac_compile" | $SED \
12759   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12760   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12761   -e 's:$: $lt_compiler_flag:'`
12762   (eval echo "\"\$as_me:12762: $lt_compile\"" >&5)
12763   (eval "$lt_compile" 2>out/conftest.err)
12764   ac_status=$?
12765   cat out/conftest.err >&5
12766   echo "$as_me:12766: \$? = $ac_status" >&5
12767   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12768   then
12769     # The compiler can only warn and ignore the option if not recognized
12770     # So say no if there are warnings
12771     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12772     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12773     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12774       lt_cv_prog_compiler_c_o_CXX=yes
12775     fi
12776   fi
12777   chmod u+w . 2>&5
12778   $rm conftest*
12779   # SGI C++ compiler will create directory out/ii_files/ for
12780   # template instantiation
12781   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12782   $rm out/* && rmdir out
12783   cd ..
12784   rmdir conftest
12785   $rm conftest*
12786
12787fi
12788{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12789echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12790
12791
12792hard_links="nottested"
12793if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12794  # do not overwrite the value of need_locks provided by the user
12795  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12796echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12797  hard_links=yes
12798  $rm conftest*
12799  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12800  touch conftest.a
12801  ln conftest.a conftest.b 2>&5 || hard_links=no
12802  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12803  { echo "$as_me:$LINENO: result: $hard_links" >&5
12804echo "${ECHO_T}$hard_links" >&6; }
12805  if test "$hard_links" = no; then
12806    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12807echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12808    need_locks=warn
12809  fi
12810else
12811  need_locks=no
12812fi
12813
12814{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12815echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12816
12817  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12818  case $host_os in
12819  aix4* | aix5*)
12820    # If we're using GNU nm, then we don't want the "-C" option.
12821    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12822    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12823      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'
12824    else
12825      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'
12826    fi
12827    ;;
12828  pw32*)
12829    export_symbols_cmds_CXX="$ltdll_cmds"
12830  ;;
12831  cygwin* | mingw*)
12832    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'
12833  ;;
12834  linux* | k*bsd*-gnu)
12835    link_all_deplibs_CXX=no
12836  ;;
12837  *)
12838    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12839  ;;
12840  esac
12841
12842{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12843echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12844test "$ld_shlibs_CXX" = no && can_build_shared=no
12845
12846#
12847# Do we need to explicitly link libc?
12848#
12849case "x$archive_cmds_need_lc_CXX" in
12850x|xyes)
12851  # Assume -lc should be added
12852  archive_cmds_need_lc_CXX=yes
12853
12854  if test "$enable_shared" = yes && test "$GCC" = yes; then
12855    case $archive_cmds_CXX in
12856    *'~'*)
12857      # FIXME: we may have to deal with multi-command sequences.
12858      ;;
12859    '$CC '*)
12860      # Test whether the compiler implicitly links with -lc since on some
12861      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12862      # to ld, don't add -lc before -lgcc.
12863      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12864echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12865      $rm conftest*
12866      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12867
12868      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12869  (eval $ac_compile) 2>&5
12870  ac_status=$?
12871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872  (exit $ac_status); } 2>conftest.err; then
12873        soname=conftest
12874        lib=conftest
12875        libobjs=conftest.$ac_objext
12876        deplibs=
12877        wl=$lt_prog_compiler_wl_CXX
12878	pic_flag=$lt_prog_compiler_pic_CXX
12879        compiler_flags=-v
12880        linker_flags=-v
12881        verstring=
12882        output_objdir=.
12883        libname=conftest
12884        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12885        allow_undefined_flag_CXX=
12886        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12887  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12888  ac_status=$?
12889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890  (exit $ac_status); }
12891        then
12892	  archive_cmds_need_lc_CXX=no
12893        else
12894	  archive_cmds_need_lc_CXX=yes
12895        fi
12896        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12897      else
12898        cat conftest.err 1>&5
12899      fi
12900      $rm conftest*
12901      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12902echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12903      ;;
12904    esac
12905  fi
12906  ;;
12907esac
12908
12909{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12910echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12911library_names_spec=
12912libname_spec='lib$name'
12913soname_spec=
12914shrext_cmds=".so"
12915postinstall_cmds=
12916postuninstall_cmds=
12917finish_cmds=
12918finish_eval=
12919shlibpath_var=
12920shlibpath_overrides_runpath=unknown
12921version_type=none
12922dynamic_linker="$host_os ld.so"
12923sys_lib_dlsearch_path_spec="/lib /usr/lib"
12924if test "$GCC" = yes; then
12925  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12926  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12927    # if the path contains ";" then we assume it to be the separator
12928    # otherwise default to the standard path separator (i.e. ":") - it is
12929    # assumed that no part of a normal pathname contains ";" but that should
12930    # okay in the real world where ";" in dirpaths is itself problematic.
12931    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12932  else
12933    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12934  fi
12935else
12936  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12937fi
12938need_lib_prefix=unknown
12939hardcode_into_libs=no
12940
12941# when you set need_version to no, make sure it does not cause -set_version
12942# flags to be left without arguments
12943need_version=unknown
12944
12945case $host_os in
12946aix3*)
12947  version_type=linux
12948  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12949  shlibpath_var=LIBPATH
12950
12951  # AIX 3 has no versioning support, so we append a major version to the name.
12952  soname_spec='${libname}${release}${shared_ext}$major'
12953  ;;
12954
12955aix4* | aix5*)
12956  version_type=linux
12957  need_lib_prefix=no
12958  need_version=no
12959  hardcode_into_libs=yes
12960  if test "$host_cpu" = ia64; then
12961    # AIX 5 supports IA64
12962    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12963    shlibpath_var=LD_LIBRARY_PATH
12964  else
12965    # With GCC up to 2.95.x, collect2 would create an import file
12966    # for dependence libraries.  The import file would start with
12967    # the line `#! .'.  This would cause the generated library to
12968    # depend on `.', always an invalid library.  This was fixed in
12969    # development snapshots of GCC prior to 3.0.
12970    case $host_os in
12971      aix4 | aix4.[01] | aix4.[01].*)
12972      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12973	   echo ' yes '
12974	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12975	:
12976      else
12977	can_build_shared=no
12978      fi
12979      ;;
12980    esac
12981    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12982    # soname into executable. Probably we can add versioning support to
12983    # collect2, so additional links can be useful in future.
12984    if test "$aix_use_runtimelinking" = yes; then
12985      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12986      # instead of lib<name>.a to let people know that these are not
12987      # typical AIX shared libraries.
12988      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12989    else
12990      # We preserve .a as extension for shared libraries through AIX4.2
12991      # and later when we are not doing run time linking.
12992      library_names_spec='${libname}${release}.a $libname.a'
12993      soname_spec='${libname}${release}${shared_ext}$major'
12994    fi
12995    shlibpath_var=LIBPATH
12996  fi
12997  ;;
12998
12999amigaos*)
13000  library_names_spec='$libname.ixlibrary $libname.a'
13001  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13002  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'
13003  ;;
13004
13005beos*)
13006  library_names_spec='${libname}${shared_ext}'
13007  dynamic_linker="$host_os ld.so"
13008  shlibpath_var=LIBRARY_PATH
13009  ;;
13010
13011bsdi[45]*)
13012  version_type=linux
13013  need_version=no
13014  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13015  soname_spec='${libname}${release}${shared_ext}$major'
13016  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13017  shlibpath_var=LD_LIBRARY_PATH
13018  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13019  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13020  # the default ld.so.conf also contains /usr/contrib/lib and
13021  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13022  # libtool to hard-code these into programs
13023  ;;
13024
13025cygwin* | mingw* | pw32*)
13026  version_type=windows
13027  shrext_cmds=".dll"
13028  need_version=no
13029  need_lib_prefix=no
13030
13031  case $GCC,$host_os in
13032  yes,cygwin* | yes,mingw* | yes,pw32*)
13033    library_names_spec='$libname.dll.a'
13034    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13035    postinstall_cmds='base_file=`basename \${file}`~
13036      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13037      dldir=$destdir/`dirname \$dlpath`~
13038      test -d \$dldir || mkdir -p \$dldir~
13039      $install_prog $dir/$dlname \$dldir/$dlname~
13040      chmod a+x \$dldir/$dlname'
13041    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13042      dlpath=$dir/\$dldll~
13043       $rm \$dlpath'
13044    shlibpath_overrides_runpath=yes
13045
13046    case $host_os in
13047    cygwin*)
13048      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13049      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13050      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13051      ;;
13052    mingw*)
13053      # MinGW DLLs use traditional 'lib' prefix
13054      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13055      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13056      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13057        # It is most probably a Windows format PATH printed by
13058        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13059        # path with ; separators, and with drive letters. We can handle the
13060        # drive letters (cygwin fileutils understands them), so leave them,
13061        # especially as we might pass files found there to a mingw objdump,
13062        # which wouldn't understand a cygwinified path. Ahh.
13063        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13064      else
13065        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13066      fi
13067      ;;
13068    pw32*)
13069      # pw32 DLLs use 'pw' prefix rather than 'lib'
13070      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13071      ;;
13072    esac
13073    ;;
13074
13075  *)
13076    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13077    ;;
13078  esac
13079  dynamic_linker='Win32 ld.exe'
13080  # FIXME: first we should search . and the directory the executable is in
13081  shlibpath_var=PATH
13082  ;;
13083
13084darwin* | rhapsody*)
13085  dynamic_linker="$host_os dyld"
13086  version_type=darwin
13087  need_lib_prefix=no
13088  need_version=no
13089  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13090  soname_spec='${libname}${release}${major}$shared_ext'
13091  shlibpath_overrides_runpath=yes
13092  shlibpath_var=DYLD_LIBRARY_PATH
13093  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13094  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13095  if test "$GCC" = yes; then
13096    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"`
13097  else
13098    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13099  fi
13100  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13101  ;;
13102
13103dgux*)
13104  version_type=linux
13105  need_lib_prefix=no
13106  need_version=no
13107  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13108  soname_spec='${libname}${release}${shared_ext}$major'
13109  shlibpath_var=LD_LIBRARY_PATH
13110  ;;
13111
13112freebsd1*)
13113  dynamic_linker=no
13114  ;;
13115
13116freebsd* | dragonfly*)
13117  # DragonFly does not have aout.  When/if they implement a new
13118  # versioning mechanism, adjust this.
13119  if test -x /usr/bin/objformat; then
13120    objformat=`/usr/bin/objformat`
13121  else
13122    case $host_os in
13123    freebsd[123]*) objformat=aout ;;
13124    *) objformat=elf ;;
13125    esac
13126  fi
13127  version_type=freebsd-$objformat
13128  case $version_type in
13129    freebsd-elf*)
13130      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13131      need_version=no
13132      need_lib_prefix=no
13133      ;;
13134    freebsd-*)
13135      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13136      need_version=yes
13137      ;;
13138  esac
13139  shlibpath_var=LD_LIBRARY_PATH
13140  case $host_os in
13141  freebsd2*)
13142    shlibpath_overrides_runpath=yes
13143    ;;
13144  freebsd3.[01]* | freebsdelf3.[01]*)
13145    shlibpath_overrides_runpath=yes
13146    hardcode_into_libs=yes
13147    ;;
13148  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13149  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13150    shlibpath_overrides_runpath=no
13151    hardcode_into_libs=yes
13152    ;;
13153  freebsd*) # from 4.6 on
13154    shlibpath_overrides_runpath=yes
13155    hardcode_into_libs=yes
13156    ;;
13157  esac
13158  ;;
13159
13160gnu*)
13161  version_type=linux
13162  need_lib_prefix=no
13163  need_version=no
13164  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13165  soname_spec='${libname}${release}${shared_ext}$major'
13166  shlibpath_var=LD_LIBRARY_PATH
13167  hardcode_into_libs=yes
13168  ;;
13169
13170hpux9* | hpux10* | hpux11*)
13171  # Give a soname corresponding to the major version so that dld.sl refuses to
13172  # link against other versions.
13173  version_type=sunos
13174  need_lib_prefix=no
13175  need_version=no
13176  case $host_cpu in
13177  ia64*)
13178    shrext_cmds='.so'
13179    hardcode_into_libs=yes
13180    dynamic_linker="$host_os dld.so"
13181    shlibpath_var=LD_LIBRARY_PATH
13182    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13183    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13184    soname_spec='${libname}${release}${shared_ext}$major'
13185    if test "X$HPUX_IA64_MODE" = X32; then
13186      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13187    else
13188      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13189    fi
13190    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13191    ;;
13192   hppa*64*)
13193     shrext_cmds='.sl'
13194     hardcode_into_libs=yes
13195     dynamic_linker="$host_os dld.sl"
13196     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13197     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13198     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13199     soname_spec='${libname}${release}${shared_ext}$major'
13200     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13201     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13202     ;;
13203   *)
13204    shrext_cmds='.sl'
13205    dynamic_linker="$host_os dld.sl"
13206    shlibpath_var=SHLIB_PATH
13207    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13208    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13209    soname_spec='${libname}${release}${shared_ext}$major'
13210    ;;
13211  esac
13212  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13213  postinstall_cmds='chmod 555 $lib'
13214  ;;
13215
13216interix3*)
13217  version_type=linux
13218  need_lib_prefix=no
13219  need_version=no
13220  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13221  soname_spec='${libname}${release}${shared_ext}$major'
13222  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13223  shlibpath_var=LD_LIBRARY_PATH
13224  shlibpath_overrides_runpath=no
13225  hardcode_into_libs=yes
13226  ;;
13227
13228irix5* | irix6* | nonstopux*)
13229  case $host_os in
13230    nonstopux*) version_type=nonstopux ;;
13231    *)
13232	if test "$lt_cv_prog_gnu_ld" = yes; then
13233		version_type=linux
13234	else
13235		version_type=irix
13236	fi ;;
13237  esac
13238  need_lib_prefix=no
13239  need_version=no
13240  soname_spec='${libname}${release}${shared_ext}$major'
13241  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13242  case $host_os in
13243  irix5* | nonstopux*)
13244    libsuff= shlibsuff=
13245    ;;
13246  *)
13247    case $LD in # libtool.m4 will add one of these switches to LD
13248    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13249      libsuff= shlibsuff= libmagic=32-bit;;
13250    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13251      libsuff=32 shlibsuff=N32 libmagic=N32;;
13252    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13253      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13254    *) libsuff= shlibsuff= libmagic=never-match;;
13255    esac
13256    ;;
13257  esac
13258  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13259  shlibpath_overrides_runpath=no
13260  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13261  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13262  hardcode_into_libs=yes
13263  ;;
13264
13265# No shared lib support for Linux oldld, aout, or coff.
13266linux*oldld* | linux*aout* | linux*coff*)
13267  dynamic_linker=no
13268  ;;
13269
13270# This must be Linux ELF.
13271linux* | k*bsd*-gnu)
13272  version_type=linux
13273  need_lib_prefix=no
13274  need_version=no
13275  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13276  soname_spec='${libname}${release}${shared_ext}$major'
13277  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13278  shlibpath_var=LD_LIBRARY_PATH
13279  shlibpath_overrides_runpath=no
13280  # This implies no fast_install, which is unacceptable.
13281  # Some rework will be needed to allow for fast_install
13282  # before this can be enabled.
13283  hardcode_into_libs=yes
13284
13285  # Append ld.so.conf contents to the search path
13286  if test -f /etc/ld.so.conf; then
13287    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' ' '`
13288    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13289  fi
13290
13291  # We used to test for /lib/ld.so.1 and disable shared libraries on
13292  # powerpc, because MkLinux only supported shared libraries with the
13293  # GNU dynamic linker.  Since this was broken with cross compilers,
13294  # most powerpc-linux boxes support dynamic linking these days and
13295  # people can always --disable-shared, the test was removed, and we
13296  # assume the GNU/Linux dynamic linker is in use.
13297  dynamic_linker='GNU/Linux ld.so'
13298  ;;
13299
13300netbsdelf*-gnu)
13301  version_type=linux
13302  need_lib_prefix=no
13303  need_version=no
13304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13305  soname_spec='${libname}${release}${shared_ext}$major'
13306  shlibpath_var=LD_LIBRARY_PATH
13307  shlibpath_overrides_runpath=no
13308  hardcode_into_libs=yes
13309  dynamic_linker='NetBSD ld.elf_so'
13310  ;;
13311
13312netbsd*)
13313  version_type=sunos
13314  need_lib_prefix=no
13315  need_version=no
13316  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13317    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13318    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13319    dynamic_linker='NetBSD (a.out) ld.so'
13320  else
13321    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13322    soname_spec='${libname}${release}${shared_ext}$major'
13323    dynamic_linker='NetBSD ld.elf_so'
13324  fi
13325  shlibpath_var=LD_LIBRARY_PATH
13326  shlibpath_overrides_runpath=yes
13327  hardcode_into_libs=yes
13328  ;;
13329
13330newsos6)
13331  version_type=linux
13332  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13333  shlibpath_var=LD_LIBRARY_PATH
13334  shlibpath_overrides_runpath=yes
13335  ;;
13336
13337nto-qnx*)
13338  version_type=linux
13339  need_lib_prefix=no
13340  need_version=no
13341  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13342  soname_spec='${libname}${release}${shared_ext}$major'
13343  shlibpath_var=LD_LIBRARY_PATH
13344  shlibpath_overrides_runpath=yes
13345  ;;
13346
13347openbsd*)
13348  version_type=sunos
13349  sys_lib_dlsearch_path_spec="/usr/lib"
13350  need_lib_prefix=no
13351  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13352  case $host_os in
13353    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13354    *)                         need_version=no  ;;
13355  esac
13356  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13357  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13358  shlibpath_var=LD_LIBRARY_PATH
13359  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13360    case $host_os in
13361      openbsd2.[89] | openbsd2.[89].*)
13362	shlibpath_overrides_runpath=no
13363	;;
13364      *)
13365	shlibpath_overrides_runpath=yes
13366	;;
13367      esac
13368  else
13369    shlibpath_overrides_runpath=yes
13370  fi
13371  ;;
13372
13373os2*)
13374  libname_spec='$name'
13375  shrext_cmds=".dll"
13376  need_lib_prefix=no
13377  library_names_spec='$libname${shared_ext} $libname.a'
13378  dynamic_linker='OS/2 ld.exe'
13379  shlibpath_var=LIBPATH
13380  ;;
13381
13382osf3* | osf4* | osf5*)
13383  version_type=osf
13384  need_lib_prefix=no
13385  need_version=no
13386  soname_spec='${libname}${release}${shared_ext}$major'
13387  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13388  shlibpath_var=LD_LIBRARY_PATH
13389  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13390  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13391  ;;
13392
13393solaris*)
13394  version_type=linux
13395  need_lib_prefix=no
13396  need_version=no
13397  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13398  soname_spec='${libname}${release}${shared_ext}$major'
13399  shlibpath_var=LD_LIBRARY_PATH
13400  shlibpath_overrides_runpath=yes
13401  hardcode_into_libs=yes
13402  # ldd complains unless libraries are executable
13403  postinstall_cmds='chmod +x $lib'
13404  ;;
13405
13406sunos4*)
13407  version_type=sunos
13408  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13409  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13410  shlibpath_var=LD_LIBRARY_PATH
13411  shlibpath_overrides_runpath=yes
13412  if test "$with_gnu_ld" = yes; then
13413    need_lib_prefix=no
13414  fi
13415  need_version=yes
13416  ;;
13417
13418sysv4 | sysv4.3*)
13419  version_type=linux
13420  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13421  soname_spec='${libname}${release}${shared_ext}$major'
13422  shlibpath_var=LD_LIBRARY_PATH
13423  case $host_vendor in
13424    sni)
13425      shlibpath_overrides_runpath=no
13426      need_lib_prefix=no
13427      export_dynamic_flag_spec='${wl}-Blargedynsym'
13428      runpath_var=LD_RUN_PATH
13429      ;;
13430    siemens)
13431      need_lib_prefix=no
13432      ;;
13433    motorola)
13434      need_lib_prefix=no
13435      need_version=no
13436      shlibpath_overrides_runpath=no
13437      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13438      ;;
13439  esac
13440  ;;
13441
13442sysv4*MP*)
13443  if test -d /usr/nec ;then
13444    version_type=linux
13445    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13446    soname_spec='$libname${shared_ext}.$major'
13447    shlibpath_var=LD_LIBRARY_PATH
13448  fi
13449  ;;
13450
13451sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13452  version_type=freebsd-elf
13453  need_lib_prefix=no
13454  need_version=no
13455  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13456  soname_spec='${libname}${release}${shared_ext}$major'
13457  shlibpath_var=LD_LIBRARY_PATH
13458  hardcode_into_libs=yes
13459  if test "$with_gnu_ld" = yes; then
13460    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13461    shlibpath_overrides_runpath=no
13462  else
13463    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13464    shlibpath_overrides_runpath=yes
13465    case $host_os in
13466      sco3.2v5*)
13467        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13468	;;
13469    esac
13470  fi
13471  sys_lib_dlsearch_path_spec='/usr/lib'
13472  ;;
13473
13474uts4*)
13475  version_type=linux
13476  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13477  soname_spec='${libname}${release}${shared_ext}$major'
13478  shlibpath_var=LD_LIBRARY_PATH
13479  ;;
13480
13481*)
13482  dynamic_linker=no
13483  ;;
13484esac
13485{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13486echo "${ECHO_T}$dynamic_linker" >&6; }
13487test "$dynamic_linker" = no && can_build_shared=no
13488
13489variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13490if test "$GCC" = yes; then
13491  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13492fi
13493
13494{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13495echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13496hardcode_action_CXX=
13497if test -n "$hardcode_libdir_flag_spec_CXX" || \
13498   test -n "$runpath_var_CXX" || \
13499   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13500
13501  # We can hardcode non-existant directories.
13502  if test "$hardcode_direct_CXX" != no &&
13503     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13504     # have to relink, otherwise we might link with an installed library
13505     # when we should be linking with a yet-to-be-installed one
13506     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13507     test "$hardcode_minus_L_CXX" != no; then
13508    # Linking always hardcodes the temporary library directory.
13509    hardcode_action_CXX=relink
13510  else
13511    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13512    hardcode_action_CXX=immediate
13513  fi
13514else
13515  # We cannot hardcode anything, or else we can only hardcode existing
13516  # directories.
13517  hardcode_action_CXX=unsupported
13518fi
13519{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13520echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13521
13522if test "$hardcode_action_CXX" = relink; then
13523  # Fast installation is not supported
13524  enable_fast_install=no
13525elif test "$shlibpath_overrides_runpath" = yes ||
13526     test "$enable_shared" = no; then
13527  # Fast installation is not necessary
13528  enable_fast_install=needless
13529fi
13530
13531
13532# The else clause should only fire when bootstrapping the
13533# libtool distribution, otherwise you forgot to ship ltmain.sh
13534# with your package, and you will get complaints that there are
13535# no rules to generate ltmain.sh.
13536if test -f "$ltmain"; then
13537  # See if we are running on zsh, and set the options which allow our commands through
13538  # without removal of \ escapes.
13539  if test -n "${ZSH_VERSION+set}" ; then
13540    setopt NO_GLOB_SUBST
13541  fi
13542  # Now quote all the things that may contain metacharacters while being
13543  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13544  # variables and quote the copies for generation of the libtool script.
13545  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13546    SED SHELL STRIP \
13547    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13548    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13549    deplibs_check_method reload_flag reload_cmds need_locks \
13550    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13551    lt_cv_sys_global_symbol_to_c_name_address \
13552    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13553    old_postinstall_cmds old_postuninstall_cmds \
13554    compiler_CXX \
13555    CC_CXX \
13556    LD_CXX \
13557    lt_prog_compiler_wl_CXX \
13558    lt_prog_compiler_pic_CXX \
13559    lt_prog_compiler_static_CXX \
13560    lt_prog_compiler_no_builtin_flag_CXX \
13561    export_dynamic_flag_spec_CXX \
13562    thread_safe_flag_spec_CXX \
13563    whole_archive_flag_spec_CXX \
13564    enable_shared_with_static_runtimes_CXX \
13565    old_archive_cmds_CXX \
13566    old_archive_from_new_cmds_CXX \
13567    predep_objects_CXX \
13568    postdep_objects_CXX \
13569    predeps_CXX \
13570    postdeps_CXX \
13571    compiler_lib_search_path_CXX \
13572    archive_cmds_CXX \
13573    archive_expsym_cmds_CXX \
13574    postinstall_cmds_CXX \
13575    postuninstall_cmds_CXX \
13576    old_archive_from_expsyms_cmds_CXX \
13577    allow_undefined_flag_CXX \
13578    no_undefined_flag_CXX \
13579    export_symbols_cmds_CXX \
13580    hardcode_libdir_flag_spec_CXX \
13581    hardcode_libdir_flag_spec_ld_CXX \
13582    hardcode_libdir_separator_CXX \
13583    hardcode_automatic_CXX \
13584    module_cmds_CXX \
13585    module_expsym_cmds_CXX \
13586    lt_cv_prog_compiler_c_o_CXX \
13587    exclude_expsyms_CXX \
13588    include_expsyms_CXX; do
13589
13590    case $var in
13591    old_archive_cmds_CXX | \
13592    old_archive_from_new_cmds_CXX | \
13593    archive_cmds_CXX | \
13594    archive_expsym_cmds_CXX | \
13595    module_cmds_CXX | \
13596    module_expsym_cmds_CXX | \
13597    old_archive_from_expsyms_cmds_CXX | \
13598    export_symbols_cmds_CXX | \
13599    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13600    postinstall_cmds | postuninstall_cmds | \
13601    old_postinstall_cmds | old_postuninstall_cmds | \
13602    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13603      # Double-quote double-evaled strings.
13604      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13605      ;;
13606    *)
13607      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13608      ;;
13609    esac
13610  done
13611
13612  case $lt_echo in
13613  *'\$0 --fallback-echo"')
13614    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13615    ;;
13616  esac
13617
13618cfgfile="$ofile"
13619
13620  cat <<__EOF__ >> "$cfgfile"
13621# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13622
13623# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13624
13625# Shell to use when invoking shell scripts.
13626SHELL=$lt_SHELL
13627
13628# Whether or not to build shared libraries.
13629build_libtool_libs=$enable_shared
13630
13631# Whether or not to build static libraries.
13632build_old_libs=$enable_static
13633
13634# Whether or not to add -lc for building shared libraries.
13635build_libtool_need_lc=$archive_cmds_need_lc_CXX
13636
13637# Whether or not to disallow shared libs when runtime libs are static
13638allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13639
13640# Whether or not to optimize for fast installation.
13641fast_install=$enable_fast_install
13642
13643# The host system.
13644host_alias=$host_alias
13645host=$host
13646host_os=$host_os
13647
13648# The build system.
13649build_alias=$build_alias
13650build=$build
13651build_os=$build_os
13652
13653# An echo program that does not interpret backslashes.
13654echo=$lt_echo
13655
13656# The archiver.
13657AR=$lt_AR
13658AR_FLAGS=$lt_AR_FLAGS
13659
13660# A C compiler.
13661LTCC=$lt_LTCC
13662
13663# LTCC compiler flags.
13664LTCFLAGS=$lt_LTCFLAGS
13665
13666# A language-specific compiler.
13667CC=$lt_compiler_CXX
13668
13669# Is the compiler the GNU C compiler?
13670with_gcc=$GCC_CXX
13671
13672# An ERE matcher.
13673EGREP=$lt_EGREP
13674
13675# The linker used to build libraries.
13676LD=$lt_LD_CXX
13677
13678# Whether we need hard or soft links.
13679LN_S=$lt_LN_S
13680
13681# A BSD-compatible nm program.
13682NM=$lt_NM
13683
13684# A symbol stripping program
13685STRIP=$lt_STRIP
13686
13687# Used to examine libraries when file_magic_cmd begins "file"
13688MAGIC_CMD=$MAGIC_CMD
13689
13690# Used on cygwin: DLL creation program.
13691DLLTOOL="$DLLTOOL"
13692
13693# Used on cygwin: object dumper.
13694OBJDUMP="$OBJDUMP"
13695
13696# Used on cygwin: assembler.
13697AS="$AS"
13698
13699# The name of the directory that contains temporary libtool files.
13700objdir=$objdir
13701
13702# How to create reloadable object files.
13703reload_flag=$lt_reload_flag
13704reload_cmds=$lt_reload_cmds
13705
13706# How to pass a linker flag through the compiler.
13707wl=$lt_lt_prog_compiler_wl_CXX
13708
13709# Object file suffix (normally "o").
13710objext="$ac_objext"
13711
13712# Old archive suffix (normally "a").
13713libext="$libext"
13714
13715# Shared library suffix (normally ".so").
13716shrext_cmds='$shrext_cmds'
13717
13718# Executable file suffix (normally "").
13719exeext="$exeext"
13720
13721# Additional compiler flags for building library objects.
13722pic_flag=$lt_lt_prog_compiler_pic_CXX
13723pic_mode=$pic_mode
13724
13725# What is the maximum length of a command?
13726max_cmd_len=$lt_cv_sys_max_cmd_len
13727
13728# Does compiler simultaneously support -c and -o options?
13729compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13730
13731# Must we lock files when doing compilation?
13732need_locks=$lt_need_locks
13733
13734# Do we need the lib prefix for modules?
13735need_lib_prefix=$need_lib_prefix
13736
13737# Do we need a version for libraries?
13738need_version=$need_version
13739
13740# Whether dlopen is supported.
13741dlopen_support=$enable_dlopen
13742
13743# Whether dlopen of programs is supported.
13744dlopen_self=$enable_dlopen_self
13745
13746# Whether dlopen of statically linked programs is supported.
13747dlopen_self_static=$enable_dlopen_self_static
13748
13749# Compiler flag to prevent dynamic linking.
13750link_static_flag=$lt_lt_prog_compiler_static_CXX
13751
13752# Compiler flag to turn off builtin functions.
13753no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13754
13755# Compiler flag to allow reflexive dlopens.
13756export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13757
13758# Compiler flag to generate shared objects directly from archives.
13759whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13760
13761# Compiler flag to generate thread-safe objects.
13762thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13763
13764# Library versioning type.
13765version_type=$version_type
13766
13767# Format of library name prefix.
13768libname_spec=$lt_libname_spec
13769
13770# List of archive names.  First name is the real one, the rest are links.
13771# The last name is the one that the linker finds with -lNAME.
13772library_names_spec=$lt_library_names_spec
13773
13774# The coded name of the library, if different from the real name.
13775soname_spec=$lt_soname_spec
13776
13777# Commands used to build and install an old-style archive.
13778RANLIB=$lt_RANLIB
13779old_archive_cmds=$lt_old_archive_cmds_CXX
13780old_postinstall_cmds=$lt_old_postinstall_cmds
13781old_postuninstall_cmds=$lt_old_postuninstall_cmds
13782
13783# Create an old-style archive from a shared archive.
13784old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13785
13786# Create a temporary old-style archive to link instead of a shared archive.
13787old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13788
13789# Commands used to build and install a shared archive.
13790archive_cmds=$lt_archive_cmds_CXX
13791archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13792postinstall_cmds=$lt_postinstall_cmds
13793postuninstall_cmds=$lt_postuninstall_cmds
13794
13795# Commands used to build a loadable module (assumed same as above if empty)
13796module_cmds=$lt_module_cmds_CXX
13797module_expsym_cmds=$lt_module_expsym_cmds_CXX
13798
13799# Commands to strip libraries.
13800old_striplib=$lt_old_striplib
13801striplib=$lt_striplib
13802
13803# Dependencies to place before the objects being linked to create a
13804# shared library.
13805predep_objects=$lt_predep_objects_CXX
13806
13807# Dependencies to place after the objects being linked to create a
13808# shared library.
13809postdep_objects=$lt_postdep_objects_CXX
13810
13811# Dependencies to place before the objects being linked to create a
13812# shared library.
13813predeps=$lt_predeps_CXX
13814
13815# Dependencies to place after the objects being linked to create a
13816# shared library.
13817postdeps=$lt_postdeps_CXX
13818
13819# The library search path used internally by the compiler when linking
13820# a shared library.
13821compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13822
13823# Method to check whether dependent libraries are shared objects.
13824deplibs_check_method=$lt_deplibs_check_method
13825
13826# Command to use when deplibs_check_method == file_magic.
13827file_magic_cmd=$lt_file_magic_cmd
13828
13829# Flag that allows shared libraries with undefined symbols to be built.
13830allow_undefined_flag=$lt_allow_undefined_flag_CXX
13831
13832# Flag that forces no undefined symbols.
13833no_undefined_flag=$lt_no_undefined_flag_CXX
13834
13835# Commands used to finish a libtool library installation in a directory.
13836finish_cmds=$lt_finish_cmds
13837
13838# Same as above, but a single script fragment to be evaled but not shown.
13839finish_eval=$lt_finish_eval
13840
13841# Take the output of nm and produce a listing of raw symbols and C names.
13842global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13843
13844# Transform the output of nm in a proper C declaration
13845global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13846
13847# Transform the output of nm in a C name address pair
13848global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13849
13850# This is the shared library runtime path variable.
13851runpath_var=$runpath_var
13852
13853# This is the shared library path variable.
13854shlibpath_var=$shlibpath_var
13855
13856# Is shlibpath searched before the hard-coded library search path?
13857shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13858
13859# How to hardcode a shared library path into an executable.
13860hardcode_action=$hardcode_action_CXX
13861
13862# Whether we should hardcode library paths into libraries.
13863hardcode_into_libs=$hardcode_into_libs
13864
13865# Flag to hardcode \$libdir into a binary during linking.
13866# This must work even if \$libdir does not exist.
13867hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13868
13869# If ld is used when linking, flag to hardcode \$libdir into
13870# a binary during linking. This must work even if \$libdir does
13871# not exist.
13872hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13873
13874# Whether we need a single -rpath flag with a separated argument.
13875hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13876
13877# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13878# resulting binary.
13879hardcode_direct=$hardcode_direct_CXX
13880
13881# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13882# resulting binary.
13883hardcode_minus_L=$hardcode_minus_L_CXX
13884
13885# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13886# the resulting binary.
13887hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13888
13889# Set to yes if building a shared library automatically hardcodes DIR into the library
13890# and all subsequent libraries and executables linked against it.
13891hardcode_automatic=$hardcode_automatic_CXX
13892
13893# Variables whose values should be saved in libtool wrapper scripts and
13894# restored at relink time.
13895variables_saved_for_relink="$variables_saved_for_relink"
13896
13897# Whether libtool must link a program against all its dependency libraries.
13898link_all_deplibs=$link_all_deplibs_CXX
13899
13900# Compile-time system search path for libraries
13901sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13902
13903# Run-time system search path for libraries
13904sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13905
13906# Fix the shell variable \$srcfile for the compiler.
13907fix_srcfile_path="$fix_srcfile_path_CXX"
13908
13909# Set to yes if exported symbols are required.
13910always_export_symbols=$always_export_symbols_CXX
13911
13912# The commands to list exported symbols.
13913export_symbols_cmds=$lt_export_symbols_cmds_CXX
13914
13915# The commands to extract the exported symbol list from a shared archive.
13916extract_expsyms_cmds=$lt_extract_expsyms_cmds
13917
13918# Symbols that should not be listed in the preloaded symbols.
13919exclude_expsyms=$lt_exclude_expsyms_CXX
13920
13921# Symbols that must always be exported.
13922include_expsyms=$lt_include_expsyms_CXX
13923
13924# ### END LIBTOOL TAG CONFIG: $tagname
13925
13926__EOF__
13927
13928
13929else
13930  # If there is no Makefile yet, we rely on a make rule to execute
13931  # `config.status --recheck' to rerun these tests and create the
13932  # libtool script then.
13933  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13934  if test -f "$ltmain_in"; then
13935    test -f Makefile && make "$ltmain"
13936  fi
13937fi
13938
13939
13940ac_ext=c
13941ac_cpp='$CPP $CPPFLAGS'
13942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13944ac_compiler_gnu=$ac_cv_c_compiler_gnu
13945
13946CC=$lt_save_CC
13947LDCXX=$LD
13948LD=$lt_save_LD
13949GCC=$lt_save_GCC
13950with_gnu_ldcxx=$with_gnu_ld
13951with_gnu_ld=$lt_save_with_gnu_ld
13952lt_cv_path_LDCXX=$lt_cv_path_LD
13953lt_cv_path_LD=$lt_save_path_LD
13954lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13955lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13956
13957	else
13958	  tagname=""
13959	fi
13960	;;
13961
13962      F77)
13963	if test -n "$F77" && test "X$F77" != "Xno"; then
13964
13965ac_ext=f
13966ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13967ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13968ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13969
13970
13971archive_cmds_need_lc_F77=no
13972allow_undefined_flag_F77=
13973always_export_symbols_F77=no
13974archive_expsym_cmds_F77=
13975export_dynamic_flag_spec_F77=
13976hardcode_direct_F77=no
13977hardcode_libdir_flag_spec_F77=
13978hardcode_libdir_flag_spec_ld_F77=
13979hardcode_libdir_separator_F77=
13980hardcode_minus_L_F77=no
13981hardcode_automatic_F77=no
13982module_cmds_F77=
13983module_expsym_cmds_F77=
13984link_all_deplibs_F77=unknown
13985old_archive_cmds_F77=$old_archive_cmds
13986no_undefined_flag_F77=
13987whole_archive_flag_spec_F77=
13988enable_shared_with_static_runtimes_F77=no
13989
13990# Source file extension for f77 test sources.
13991ac_ext=f
13992
13993# Object file extension for compiled f77 test sources.
13994objext=o
13995objext_F77=$objext
13996
13997# Code to be used in simple compile tests
13998lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13999
14000# Code to be used in simple link tests
14001lt_simple_link_test_code="      program t\n      end\n"
14002
14003# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14004
14005# If no C compiler was specified, use CC.
14006LTCC=${LTCC-"$CC"}
14007
14008# If no C compiler flags were specified, use CFLAGS.
14009LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14010
14011# Allow CC to be a program name with arguments.
14012compiler=$CC
14013
14014
14015# save warnings/boilerplate of simple test code
14016ac_outfile=conftest.$ac_objext
14017printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14018eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14019_lt_compiler_boilerplate=`cat conftest.err`
14020$rm conftest*
14021
14022ac_outfile=conftest.$ac_objext
14023printf "$lt_simple_link_test_code" >conftest.$ac_ext
14024eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14025_lt_linker_boilerplate=`cat conftest.err`
14026$rm conftest*
14027
14028
14029# Allow CC to be a program name with arguments.
14030lt_save_CC="$CC"
14031CC=${F77-"f77"}
14032compiler=$CC
14033compiler_F77=$CC
14034for cc_temp in $compiler""; do
14035  case $cc_temp in
14036    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14037    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14038    \-*) ;;
14039    *) break;;
14040  esac
14041done
14042cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14043
14044
14045{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14046echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14047{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14048echo "${ECHO_T}$can_build_shared" >&6; }
14049
14050{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14051echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14052test "$can_build_shared" = "no" && enable_shared=no
14053
14054# On AIX, shared libraries and static libraries use the same namespace, and
14055# are all built from PIC.
14056case $host_os in
14057aix3*)
14058  test "$enable_shared" = yes && enable_static=no
14059  if test -n "$RANLIB"; then
14060    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14061    postinstall_cmds='$RANLIB $lib'
14062  fi
14063  ;;
14064aix4* | aix5*)
14065  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14066    test "$enable_shared" = yes && enable_static=no
14067  fi
14068  ;;
14069esac
14070{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14071echo "${ECHO_T}$enable_shared" >&6; }
14072
14073{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14074echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14075# Make sure either enable_shared or enable_static is yes.
14076test "$enable_shared" = yes || enable_static=yes
14077{ echo "$as_me:$LINENO: result: $enable_static" >&5
14078echo "${ECHO_T}$enable_static" >&6; }
14079
14080GCC_F77="$G77"
14081LD_F77="$LD"
14082
14083lt_prog_compiler_wl_F77=
14084lt_prog_compiler_pic_F77=
14085lt_prog_compiler_static_F77=
14086
14087{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14088echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14089
14090  if test "$GCC" = yes; then
14091    lt_prog_compiler_wl_F77='-Wl,'
14092    lt_prog_compiler_static_F77='-static'
14093
14094    case $host_os in
14095      aix*)
14096      # All AIX code is PIC.
14097      if test "$host_cpu" = ia64; then
14098	# AIX 5 now supports IA64 processor
14099	lt_prog_compiler_static_F77='-Bstatic'
14100      fi
14101      ;;
14102
14103    amigaos*)
14104      # FIXME: we need at least 68020 code to build shared libraries, but
14105      # adding the `-m68020' flag to GCC prevents building anything better,
14106      # like `-m68040'.
14107      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14108      ;;
14109
14110    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14111      # PIC is the default for these OSes.
14112      ;;
14113
14114    mingw* | pw32* | os2*)
14115      # This hack is so that the source file can tell whether it is being
14116      # built for inclusion in a dll (and should export symbols for example).
14117      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14118      ;;
14119
14120    darwin* | rhapsody*)
14121      # PIC is the default on this platform
14122      # Common symbols not allowed in MH_DYLIB files
14123      lt_prog_compiler_pic_F77='-fno-common'
14124      ;;
14125
14126    interix3*)
14127      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14128      # Instead, we relocate shared libraries at runtime.
14129      ;;
14130
14131    msdosdjgpp*)
14132      # Just because we use GCC doesn't mean we suddenly get shared libraries
14133      # on systems that don't support them.
14134      lt_prog_compiler_can_build_shared_F77=no
14135      enable_shared=no
14136      ;;
14137
14138    sysv4*MP*)
14139      if test -d /usr/nec; then
14140	lt_prog_compiler_pic_F77=-Kconform_pic
14141      fi
14142      ;;
14143
14144    hpux*)
14145      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14146      # not for PA HP-UX.
14147      case $host_cpu in
14148      hppa*64*|ia64*)
14149	# +Z the default
14150	;;
14151      *)
14152	lt_prog_compiler_pic_F77='-fPIC'
14153	;;
14154      esac
14155      ;;
14156
14157    *)
14158      lt_prog_compiler_pic_F77='-fPIC'
14159      ;;
14160    esac
14161  else
14162    # PORTME Check for flag to pass linker flags through the system compiler.
14163    case $host_os in
14164    aix*)
14165      lt_prog_compiler_wl_F77='-Wl,'
14166      if test "$host_cpu" = ia64; then
14167	# AIX 5 now supports IA64 processor
14168	lt_prog_compiler_static_F77='-Bstatic'
14169      else
14170	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14171      fi
14172      ;;
14173      darwin*)
14174        # PIC is the default on this platform
14175        # Common symbols not allowed in MH_DYLIB files
14176       case $cc_basename in
14177         xlc*)
14178         lt_prog_compiler_pic_F77='-qnocommon'
14179         lt_prog_compiler_wl_F77='-Wl,'
14180         ;;
14181       esac
14182       ;;
14183
14184    mingw* | pw32* | os2*)
14185      # This hack is so that the source file can tell whether it is being
14186      # built for inclusion in a dll (and should export symbols for example).
14187      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14188      ;;
14189
14190    hpux9* | hpux10* | hpux11*)
14191      lt_prog_compiler_wl_F77='-Wl,'
14192      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14193      # not for PA HP-UX.
14194      case $host_cpu in
14195      hppa*64*|ia64*)
14196	# +Z the default
14197	;;
14198      *)
14199	lt_prog_compiler_pic_F77='+Z'
14200	;;
14201      esac
14202      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14203      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14204      ;;
14205
14206    irix5* | irix6* | nonstopux*)
14207      lt_prog_compiler_wl_F77='-Wl,'
14208      # PIC (with -KPIC) is the default.
14209      lt_prog_compiler_static_F77='-non_shared'
14210      ;;
14211
14212    newsos6)
14213      lt_prog_compiler_pic_F77='-KPIC'
14214      lt_prog_compiler_static_F77='-Bstatic'
14215      ;;
14216
14217    linux* | k*bsd*-gnu)
14218      case $cc_basename in
14219      icc* | ecc*)
14220	lt_prog_compiler_wl_F77='-Wl,'
14221	lt_prog_compiler_pic_F77='-KPIC'
14222	lt_prog_compiler_static_F77='-static'
14223        ;;
14224      pgcc* | pgf77* | pgf90* | pgf95*)
14225        # Portland Group compilers (*not* the Pentium gcc compiler,
14226	# which looks to be a dead project)
14227	lt_prog_compiler_wl_F77='-Wl,'
14228	lt_prog_compiler_pic_F77='-fpic'
14229	lt_prog_compiler_static_F77='-Bstatic'
14230        ;;
14231      ccc*)
14232        lt_prog_compiler_wl_F77='-Wl,'
14233        # All Alpha code is PIC.
14234        lt_prog_compiler_static_F77='-non_shared'
14235        ;;
14236      esac
14237      ;;
14238
14239    osf3* | osf4* | osf5*)
14240      lt_prog_compiler_wl_F77='-Wl,'
14241      # All OSF/1 code is PIC.
14242      lt_prog_compiler_static_F77='-non_shared'
14243      ;;
14244
14245    solaris*)
14246      lt_prog_compiler_pic_F77='-KPIC'
14247      lt_prog_compiler_static_F77='-Bstatic'
14248      case $cc_basename in
14249      f77* | f90* | f95*)
14250	lt_prog_compiler_wl_F77='-Qoption ld ';;
14251      *)
14252	lt_prog_compiler_wl_F77='-Wl,';;
14253      esac
14254      ;;
14255
14256    sunos4*)
14257      lt_prog_compiler_wl_F77='-Qoption ld '
14258      lt_prog_compiler_pic_F77='-PIC'
14259      lt_prog_compiler_static_F77='-Bstatic'
14260      ;;
14261
14262    sysv4 | sysv4.2uw2* | sysv4.3*)
14263      lt_prog_compiler_wl_F77='-Wl,'
14264      lt_prog_compiler_pic_F77='-KPIC'
14265      lt_prog_compiler_static_F77='-Bstatic'
14266      ;;
14267
14268    sysv4*MP*)
14269      if test -d /usr/nec ;then
14270	lt_prog_compiler_pic_F77='-Kconform_pic'
14271	lt_prog_compiler_static_F77='-Bstatic'
14272      fi
14273      ;;
14274
14275    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14276      lt_prog_compiler_wl_F77='-Wl,'
14277      lt_prog_compiler_pic_F77='-KPIC'
14278      lt_prog_compiler_static_F77='-Bstatic'
14279      ;;
14280
14281    unicos*)
14282      lt_prog_compiler_wl_F77='-Wl,'
14283      lt_prog_compiler_can_build_shared_F77=no
14284      ;;
14285
14286    uts4*)
14287      lt_prog_compiler_pic_F77='-pic'
14288      lt_prog_compiler_static_F77='-Bstatic'
14289      ;;
14290
14291    *)
14292      lt_prog_compiler_can_build_shared_F77=no
14293      ;;
14294    esac
14295  fi
14296
14297{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14298echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14299
14300#
14301# Check to make sure the PIC flag actually works.
14302#
14303if test -n "$lt_prog_compiler_pic_F77"; then
14304
14305{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14306echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14307if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14308  echo $ECHO_N "(cached) $ECHO_C" >&6
14309else
14310  lt_prog_compiler_pic_works_F77=no
14311  ac_outfile=conftest.$ac_objext
14312   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14313   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14314   # Insert the option either (1) after the last *FLAGS variable, or
14315   # (2) before a word containing "conftest.", or (3) at the end.
14316   # Note that $ac_compile itself does not contain backslashes and begins
14317   # with a dollar sign (not a hyphen), so the echo should work correctly.
14318   # The option is referenced via a variable to avoid confusing sed.
14319   lt_compile=`echo "$ac_compile" | $SED \
14320   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14321   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14322   -e 's:$: $lt_compiler_flag:'`
14323   (eval echo "\"\$as_me:14323: $lt_compile\"" >&5)
14324   (eval "$lt_compile" 2>conftest.err)
14325   ac_status=$?
14326   cat conftest.err >&5
14327   echo "$as_me:14327: \$? = $ac_status" >&5
14328   if (exit $ac_status) && test -s "$ac_outfile"; then
14329     # The compiler can only warn and ignore the option if not recognized
14330     # So say no if there are warnings other than the usual output.
14331     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14332     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14333     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14334       lt_prog_compiler_pic_works_F77=yes
14335     fi
14336   fi
14337   $rm conftest*
14338
14339fi
14340{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14341echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14342
14343if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14344    case $lt_prog_compiler_pic_F77 in
14345     "" | " "*) ;;
14346     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14347     esac
14348else
14349    lt_prog_compiler_pic_F77=
14350     lt_prog_compiler_can_build_shared_F77=no
14351fi
14352
14353fi
14354case $host_os in
14355  # For platforms which do not support PIC, -DPIC is meaningless:
14356  *djgpp*)
14357    lt_prog_compiler_pic_F77=
14358    ;;
14359  *)
14360    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14361    ;;
14362esac
14363
14364#
14365# Check to make sure the static flag actually works.
14366#
14367wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14368{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14369echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14370if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14371  echo $ECHO_N "(cached) $ECHO_C" >&6
14372else
14373  lt_prog_compiler_static_works_F77=no
14374   save_LDFLAGS="$LDFLAGS"
14375   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14376   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14377   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14378     # The linker can only warn and ignore the option if not recognized
14379     # So say no if there are warnings
14380     if test -s conftest.err; then
14381       # Append any errors to the config.log.
14382       cat conftest.err 1>&5
14383       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14384       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14385       if diff conftest.exp conftest.er2 >/dev/null; then
14386         lt_prog_compiler_static_works_F77=yes
14387       fi
14388     else
14389       lt_prog_compiler_static_works_F77=yes
14390     fi
14391   fi
14392   $rm conftest*
14393   LDFLAGS="$save_LDFLAGS"
14394
14395fi
14396{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14397echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14398
14399if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14400    :
14401else
14402    lt_prog_compiler_static_F77=
14403fi
14404
14405
14406{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14407echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14408if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14409  echo $ECHO_N "(cached) $ECHO_C" >&6
14410else
14411  lt_cv_prog_compiler_c_o_F77=no
14412   $rm -r conftest 2>/dev/null
14413   mkdir conftest
14414   cd conftest
14415   mkdir out
14416   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14417
14418   lt_compiler_flag="-o out/conftest2.$ac_objext"
14419   # Insert the option either (1) after the last *FLAGS variable, or
14420   # (2) before a word containing "conftest.", or (3) at the end.
14421   # Note that $ac_compile itself does not contain backslashes and begins
14422   # with a dollar sign (not a hyphen), so the echo should work correctly.
14423   lt_compile=`echo "$ac_compile" | $SED \
14424   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14425   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14426   -e 's:$: $lt_compiler_flag:'`
14427   (eval echo "\"\$as_me:14427: $lt_compile\"" >&5)
14428   (eval "$lt_compile" 2>out/conftest.err)
14429   ac_status=$?
14430   cat out/conftest.err >&5
14431   echo "$as_me:14431: \$? = $ac_status" >&5
14432   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14433   then
14434     # The compiler can only warn and ignore the option if not recognized
14435     # So say no if there are warnings
14436     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14437     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14438     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14439       lt_cv_prog_compiler_c_o_F77=yes
14440     fi
14441   fi
14442   chmod u+w . 2>&5
14443   $rm conftest*
14444   # SGI C++ compiler will create directory out/ii_files/ for
14445   # template instantiation
14446   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14447   $rm out/* && rmdir out
14448   cd ..
14449   rmdir conftest
14450   $rm conftest*
14451
14452fi
14453{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14454echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14455
14456
14457hard_links="nottested"
14458if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14459  # do not overwrite the value of need_locks provided by the user
14460  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14461echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14462  hard_links=yes
14463  $rm conftest*
14464  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14465  touch conftest.a
14466  ln conftest.a conftest.b 2>&5 || hard_links=no
14467  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14468  { echo "$as_me:$LINENO: result: $hard_links" >&5
14469echo "${ECHO_T}$hard_links" >&6; }
14470  if test "$hard_links" = no; then
14471    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14472echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14473    need_locks=warn
14474  fi
14475else
14476  need_locks=no
14477fi
14478
14479{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14480echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14481
14482  runpath_var=
14483  allow_undefined_flag_F77=
14484  enable_shared_with_static_runtimes_F77=no
14485  archive_cmds_F77=
14486  archive_expsym_cmds_F77=
14487  old_archive_From_new_cmds_F77=
14488  old_archive_from_expsyms_cmds_F77=
14489  export_dynamic_flag_spec_F77=
14490  whole_archive_flag_spec_F77=
14491  thread_safe_flag_spec_F77=
14492  hardcode_libdir_flag_spec_F77=
14493  hardcode_libdir_flag_spec_ld_F77=
14494  hardcode_libdir_separator_F77=
14495  hardcode_direct_F77=no
14496  hardcode_minus_L_F77=no
14497  hardcode_shlibpath_var_F77=unsupported
14498  link_all_deplibs_F77=unknown
14499  hardcode_automatic_F77=no
14500  module_cmds_F77=
14501  module_expsym_cmds_F77=
14502  always_export_symbols_F77=no
14503  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14504  # include_expsyms should be a list of space-separated symbols to be *always*
14505  # included in the symbol list
14506  include_expsyms_F77=
14507  # exclude_expsyms can be an extended regexp of symbols to exclude
14508  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14509  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14510  # as well as any symbol that contains `d'.
14511  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14512  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14513  # platforms (ab)use it in PIC code, but their linkers get confused if
14514  # the symbol is explicitly referenced.  Since portable code cannot
14515  # rely on this symbol name, it's probably fine to never include it in
14516  # preloaded symbol tables.
14517  extract_expsyms_cmds=
14518  # Just being paranoid about ensuring that cc_basename is set.
14519  for cc_temp in $compiler""; do
14520  case $cc_temp in
14521    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14522    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14523    \-*) ;;
14524    *) break;;
14525  esac
14526done
14527cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14528
14529  case $host_os in
14530  cygwin* | mingw* | pw32*)
14531    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14532    # When not using gcc, we currently assume that we are using
14533    # Microsoft Visual C++.
14534    if test "$GCC" != yes; then
14535      with_gnu_ld=no
14536    fi
14537    ;;
14538  interix*)
14539    # we just hope/assume this is gcc and not c89 (= MSVC++)
14540    with_gnu_ld=yes
14541    ;;
14542  openbsd*)
14543    with_gnu_ld=no
14544    ;;
14545  esac
14546
14547  ld_shlibs_F77=yes
14548  if test "$with_gnu_ld" = yes; then
14549    # If archive_cmds runs LD, not CC, wlarc should be empty
14550    wlarc='${wl}'
14551
14552    # Set some defaults for GNU ld with shared library support. These
14553    # are reset later if shared libraries are not supported. Putting them
14554    # here allows them to be overridden if necessary.
14555    runpath_var=LD_RUN_PATH
14556    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14557    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14558    # ancient GNU ld didn't support --whole-archive et. al.
14559    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14560	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14561      else
14562  	whole_archive_flag_spec_F77=
14563    fi
14564    supports_anon_versioning=no
14565    case `$LD -v 2>/dev/null` in
14566      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14567      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14568      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14569      *\ 2.11.*) ;; # other 2.11 versions
14570      *) supports_anon_versioning=yes ;;
14571    esac
14572
14573    # See if GNU ld supports shared libraries.
14574    case $host_os in
14575    aix3* | aix4* | aix5*)
14576      # On AIX/PPC, the GNU linker is very broken
14577      if test "$host_cpu" != ia64; then
14578	ld_shlibs_F77=no
14579	cat <<EOF 1>&2
14580
14581*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14582*** to be unable to reliably create shared libraries on AIX.
14583*** Therefore, libtool is disabling shared libraries support.  If you
14584*** really care for shared libraries, you may want to modify your PATH
14585*** so that a non-GNU linker is found, and then restart.
14586
14587EOF
14588      fi
14589      ;;
14590
14591    amigaos*)
14592      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)'
14593      hardcode_libdir_flag_spec_F77='-L$libdir'
14594      hardcode_minus_L_F77=yes
14595
14596      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14597      # that the semantics of dynamic libraries on AmigaOS, at least up
14598      # to version 4, is to share data among multiple programs linked
14599      # with the same dynamic library.  Since this doesn't match the
14600      # behavior of shared libraries on other platforms, we can't use
14601      # them.
14602      ld_shlibs_F77=no
14603      ;;
14604
14605    beos*)
14606      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14607	allow_undefined_flag_F77=unsupported
14608	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14609	# support --undefined.  This deserves some investigation.  FIXME
14610	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14611      else
14612	ld_shlibs_F77=no
14613      fi
14614      ;;
14615
14616    cygwin* | mingw* | pw32*)
14617      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14618      # as there is no search path for DLLs.
14619      hardcode_libdir_flag_spec_F77='-L$libdir'
14620      allow_undefined_flag_F77=unsupported
14621      always_export_symbols_F77=no
14622      enable_shared_with_static_runtimes_F77=yes
14623      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14624
14625      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14626        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14627	# If the export-symbols file already is a .def file (1st line
14628	# is EXPORTS), use it as is; otherwise, prepend...
14629	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14630	  cp $export_symbols $output_objdir/$soname.def;
14631	else
14632	  echo EXPORTS > $output_objdir/$soname.def;
14633	  cat $export_symbols >> $output_objdir/$soname.def;
14634	fi~
14635	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14636      else
14637	ld_shlibs_F77=no
14638      fi
14639      ;;
14640
14641    interix3*)
14642      hardcode_direct_F77=no
14643      hardcode_shlibpath_var_F77=no
14644      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14645      export_dynamic_flag_spec_F77='${wl}-E'
14646      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14647      # Instead, shared libraries are loaded at an image base (0x10000000 by
14648      # default) and relocated if they conflict, which is a slow very memory
14649      # consuming and fragmenting process.  To avoid this, we pick a random,
14650      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14651      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14652      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'
14653      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'
14654      ;;
14655
14656    linux* | k*bsd*-gnu)
14657      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14658	tmp_addflag=
14659	case $cc_basename,$host_cpu in
14660	pgcc*)				# Portland Group C compiler
14661	  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'
14662	  tmp_addflag=' $pic_flag'
14663	  ;;
14664	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14665	  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'
14666	  tmp_addflag=' $pic_flag -Mnomain' ;;
14667	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14668	  tmp_addflag=' -i_dynamic' ;;
14669	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14670	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14671	ifc* | ifort*)			# Intel Fortran compiler
14672	  tmp_addflag=' -nofor_main' ;;
14673	esac
14674	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14675
14676	if test $supports_anon_versioning = yes; then
14677	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14678  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14679  $echo "local: *; };" >> $output_objdir/$libname.ver~
14680	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14681	fi
14682	link_all_deplibs_F77=no
14683      else
14684	ld_shlibs_F77=no
14685      fi
14686      ;;
14687
14688    netbsd* | netbsdelf*-gnu)
14689      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14690	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14691	wlarc=
14692      else
14693	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14694	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14695      fi
14696      ;;
14697
14698    solaris*)
14699      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14700	ld_shlibs_F77=no
14701	cat <<EOF 1>&2
14702
14703*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14704*** create shared libraries on Solaris systems.  Therefore, libtool
14705*** is disabling shared libraries support.  We urge you to upgrade GNU
14706*** binutils to release 2.9.1 or newer.  Another option is to modify
14707*** your PATH or compiler configuration so that the native linker is
14708*** used, and then restart.
14709
14710EOF
14711      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14712	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14713	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14714      else
14715	ld_shlibs_F77=no
14716      fi
14717      ;;
14718
14719    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14720      case `$LD -v 2>&1` in
14721        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14722	ld_shlibs_F77=no
14723	cat <<_LT_EOF 1>&2
14724
14725*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14726*** reliably create shared libraries on SCO systems.  Therefore, libtool
14727*** is disabling shared libraries support.  We urge you to upgrade GNU
14728*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14729*** your PATH or compiler configuration so that the native linker is
14730*** used, and then restart.
14731
14732_LT_EOF
14733	;;
14734	*)
14735	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14736	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14737	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14738	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14739	  else
14740	    ld_shlibs_F77=no
14741	  fi
14742	;;
14743      esac
14744      ;;
14745
14746    sunos4*)
14747      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14748      wlarc=
14749      hardcode_direct_F77=yes
14750      hardcode_shlibpath_var_F77=no
14751      ;;
14752
14753    *)
14754      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14755	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14756	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14757      else
14758	ld_shlibs_F77=no
14759      fi
14760      ;;
14761    esac
14762
14763    if test "$ld_shlibs_F77" = no; then
14764      runpath_var=
14765      hardcode_libdir_flag_spec_F77=
14766      export_dynamic_flag_spec_F77=
14767      whole_archive_flag_spec_F77=
14768    fi
14769  else
14770    # PORTME fill in a description of your system's linker (not GNU ld)
14771    case $host_os in
14772    aix3*)
14773      allow_undefined_flag_F77=unsupported
14774      always_export_symbols_F77=yes
14775      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'
14776      # Note: this linker hardcodes the directories in LIBPATH if there
14777      # are no directories specified by -L.
14778      hardcode_minus_L_F77=yes
14779      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14780	# Neither direct hardcoding nor static linking is supported with a
14781	# broken collect2.
14782	hardcode_direct_F77=unsupported
14783      fi
14784      ;;
14785
14786    aix4* | aix5*)
14787      if test "$host_cpu" = ia64; then
14788	# On IA64, the linker does run time linking by default, so we don't
14789	# have to do anything special.
14790	aix_use_runtimelinking=no
14791	exp_sym_flag='-Bexport'
14792	no_entry_flag=""
14793      else
14794	# If we're using GNU nm, then we don't want the "-C" option.
14795	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14796	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14797	  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'
14798	else
14799	  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'
14800	fi
14801	aix_use_runtimelinking=no
14802
14803	# Test if we are trying to use run time linking or normal
14804	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14805	# need to do runtime linking.
14806	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14807	  for ld_flag in $LDFLAGS; do
14808  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14809  	    aix_use_runtimelinking=yes
14810  	    break
14811  	  fi
14812	  done
14813	  ;;
14814	esac
14815
14816	exp_sym_flag='-bexport'
14817	no_entry_flag='-bnoentry'
14818      fi
14819
14820      # When large executables or shared objects are built, AIX ld can
14821      # have problems creating the table of contents.  If linking a library
14822      # or program results in "error TOC overflow" add -mminimal-toc to
14823      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14824      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14825
14826      archive_cmds_F77=''
14827      hardcode_direct_F77=yes
14828      hardcode_libdir_separator_F77=':'
14829      link_all_deplibs_F77=yes
14830
14831      if test "$GCC" = yes; then
14832	case $host_os in aix4.[012]|aix4.[012].*)
14833	# We only want to do this on AIX 4.2 and lower, the check
14834	# below for broken collect2 doesn't work under 4.3+
14835	  collect2name=`${CC} -print-prog-name=collect2`
14836	  if test -f "$collect2name" && \
14837  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14838	  then
14839  	  # We have reworked collect2
14840  	  hardcode_direct_F77=yes
14841	  else
14842  	  # We have old collect2
14843  	  hardcode_direct_F77=unsupported
14844  	  # It fails to find uninstalled libraries when the uninstalled
14845  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14846  	  # to unsupported forces relinking
14847  	  hardcode_minus_L_F77=yes
14848  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14849  	  hardcode_libdir_separator_F77=
14850	  fi
14851	  ;;
14852	esac
14853	shared_flag='-shared'
14854	if test "$aix_use_runtimelinking" = yes; then
14855	  shared_flag="$shared_flag "'${wl}-G'
14856	fi
14857      else
14858	# not using gcc
14859	if test "$host_cpu" = ia64; then
14860  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14861  	# chokes on -Wl,-G. The following line is correct:
14862	  shared_flag='-G'
14863	else
14864	  if test "$aix_use_runtimelinking" = yes; then
14865	    shared_flag='${wl}-G'
14866	  else
14867	    shared_flag='${wl}-bM:SRE'
14868	  fi
14869	fi
14870      fi
14871
14872      # It seems that -bexpall does not export symbols beginning with
14873      # underscore (_), so it is better to generate a list of symbols to export.
14874      always_export_symbols_F77=yes
14875      if test "$aix_use_runtimelinking" = yes; then
14876	# Warning - without using the other runtime loading flags (-brtl),
14877	# -berok will link without error, but may produce a broken library.
14878	allow_undefined_flag_F77='-berok'
14879       # Determine the default libpath from the value encoded in an empty executable.
14880       cat >conftest.$ac_ext <<_ACEOF
14881      program main
14882
14883      end
14884_ACEOF
14885rm -f conftest.$ac_objext conftest$ac_exeext
14886if { (ac_try="$ac_link"
14887case "(($ac_try" in
14888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889  *) ac_try_echo=$ac_try;;
14890esac
14891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14892  (eval "$ac_link") 2>conftest.er1
14893  ac_status=$?
14894  grep -v '^ *+' conftest.er1 >conftest.err
14895  rm -f conftest.er1
14896  cat conftest.err >&5
14897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898  (exit $ac_status); } &&
14899	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14900  { (case "(($ac_try" in
14901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14902  *) ac_try_echo=$ac_try;;
14903esac
14904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14905  (eval "$ac_try") 2>&5
14906  ac_status=$?
14907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908  (exit $ac_status); }; } &&
14909	 { ac_try='test -s conftest$ac_exeext'
14910  { (case "(($ac_try" in
14911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14912  *) ac_try_echo=$ac_try;;
14913esac
14914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14915  (eval "$ac_try") 2>&5
14916  ac_status=$?
14917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918  (exit $ac_status); }; }; then
14919
14920aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14921}'`
14922# Check for a 64-bit object if we didn't find anything.
14923if 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; }
14924}'`; fi
14925else
14926  echo "$as_me: failed program was:" >&5
14927sed 's/^/| /' conftest.$ac_ext >&5
14928
14929
14930fi
14931
14932rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14933      conftest$ac_exeext conftest.$ac_ext
14934if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14935
14936       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14937	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"
14938       else
14939	if test "$host_cpu" = ia64; then
14940	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14941	  allow_undefined_flag_F77="-z nodefs"
14942	  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"
14943	else
14944	 # Determine the default libpath from the value encoded in an empty executable.
14945	 cat >conftest.$ac_ext <<_ACEOF
14946      program main
14947
14948      end
14949_ACEOF
14950rm -f conftest.$ac_objext conftest$ac_exeext
14951if { (ac_try="$ac_link"
14952case "(($ac_try" in
14953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14954  *) ac_try_echo=$ac_try;;
14955esac
14956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14957  (eval "$ac_link") 2>conftest.er1
14958  ac_status=$?
14959  grep -v '^ *+' conftest.er1 >conftest.err
14960  rm -f conftest.er1
14961  cat conftest.err >&5
14962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963  (exit $ac_status); } &&
14964	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14965  { (case "(($ac_try" in
14966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14967  *) ac_try_echo=$ac_try;;
14968esac
14969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14970  (eval "$ac_try") 2>&5
14971  ac_status=$?
14972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973  (exit $ac_status); }; } &&
14974	 { ac_try='test -s conftest$ac_exeext'
14975  { (case "(($ac_try" in
14976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14977  *) ac_try_echo=$ac_try;;
14978esac
14979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14980  (eval "$ac_try") 2>&5
14981  ac_status=$?
14982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983  (exit $ac_status); }; }; then
14984
14985aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14986}'`
14987# Check for a 64-bit object if we didn't find anything.
14988if 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; }
14989}'`; fi
14990else
14991  echo "$as_me: failed program was:" >&5
14992sed 's/^/| /' conftest.$ac_ext >&5
14993
14994
14995fi
14996
14997rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14998      conftest$ac_exeext conftest.$ac_ext
14999if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15000
15001	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15002	  # Warning - without using the other run time loading flags,
15003	  # -berok will link without error, but may produce a broken library.
15004	  no_undefined_flag_F77=' ${wl}-bernotok'
15005	  allow_undefined_flag_F77=' ${wl}-berok'
15006	  # Exported symbols can be pulled into shared objects from archives
15007	  whole_archive_flag_spec_F77='$convenience'
15008	  archive_cmds_need_lc_F77=yes
15009	  # This is similar to how AIX traditionally builds its shared libraries.
15010	  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'
15011	fi
15012      fi
15013      ;;
15014
15015    amigaos*)
15016      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)'
15017      hardcode_libdir_flag_spec_F77='-L$libdir'
15018      hardcode_minus_L_F77=yes
15019      # see comment about different semantics on the GNU ld section
15020      ld_shlibs_F77=no
15021      ;;
15022
15023    bsdi[45]*)
15024      export_dynamic_flag_spec_F77=-rdynamic
15025      ;;
15026
15027    cygwin* | mingw* | pw32*)
15028      # When not using gcc, we currently assume that we are using
15029      # Microsoft Visual C++.
15030      # hardcode_libdir_flag_spec is actually meaningless, as there is
15031      # no search path for DLLs.
15032      hardcode_libdir_flag_spec_F77=' '
15033      allow_undefined_flag_F77=unsupported
15034      # Tell ltmain to make .lib files, not .a files.
15035      libext=lib
15036      # Tell ltmain to make .dll files, not .so files.
15037      shrext_cmds=".dll"
15038      # FIXME: Setting linknames here is a bad hack.
15039      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15040      # The linker will automatically build a .lib file if we build a DLL.
15041      old_archive_From_new_cmds_F77='true'
15042      # FIXME: Should let the user specify the lib program.
15043      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15044      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15045      enable_shared_with_static_runtimes_F77=yes
15046      ;;
15047
15048    darwin* | rhapsody*)
15049      case $host_os in
15050        rhapsody* | darwin1.[012])
15051         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15052         ;;
15053       *) # Darwin 1.3 on
15054         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15055           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15056         else
15057           case ${MACOSX_DEPLOYMENT_TARGET} in
15058             10.[012])
15059               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15060               ;;
15061             10.*)
15062               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15063               ;;
15064           esac
15065         fi
15066         ;;
15067      esac
15068      archive_cmds_need_lc_F77=no
15069      hardcode_direct_F77=no
15070      hardcode_automatic_F77=yes
15071      hardcode_shlibpath_var_F77=unsupported
15072      whole_archive_flag_spec_F77=''
15073      link_all_deplibs_F77=yes
15074    if test "$GCC" = yes ; then
15075    	output_verbose_link_cmd='echo'
15076        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15077      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15078      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15079      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}'
15080      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}'
15081    else
15082      case $cc_basename in
15083        xlc*)
15084         output_verbose_link_cmd='echo'
15085         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15086         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15087          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15088         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}'
15089          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}'
15090          ;;
15091       *)
15092         ld_shlibs_F77=no
15093          ;;
15094      esac
15095    fi
15096      ;;
15097
15098    dgux*)
15099      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15100      hardcode_libdir_flag_spec_F77='-L$libdir'
15101      hardcode_shlibpath_var_F77=no
15102      ;;
15103
15104    freebsd1*)
15105      ld_shlibs_F77=no
15106      ;;
15107
15108    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15109    # support.  Future versions do this automatically, but an explicit c++rt0.o
15110    # does not break anything, and helps significantly (at the cost of a little
15111    # extra space).
15112    freebsd2.2*)
15113      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15114      hardcode_libdir_flag_spec_F77='-R$libdir'
15115      hardcode_direct_F77=yes
15116      hardcode_shlibpath_var_F77=no
15117      ;;
15118
15119    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15120    freebsd2*)
15121      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15122      hardcode_direct_F77=yes
15123      hardcode_minus_L_F77=yes
15124      hardcode_shlibpath_var_F77=no
15125      ;;
15126
15127    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15128    freebsd* | dragonfly*)
15129      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15130      hardcode_libdir_flag_spec_F77='-R$libdir'
15131      hardcode_direct_F77=yes
15132      hardcode_shlibpath_var_F77=no
15133      ;;
15134
15135    hpux9*)
15136      if test "$GCC" = yes; then
15137	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'
15138      else
15139	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'
15140      fi
15141      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15142      hardcode_libdir_separator_F77=:
15143      hardcode_direct_F77=yes
15144
15145      # hardcode_minus_L: Not really in the search PATH,
15146      # but as the default location of the library.
15147      hardcode_minus_L_F77=yes
15148      export_dynamic_flag_spec_F77='${wl}-E'
15149      ;;
15150
15151    hpux10*)
15152      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15153	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15154      else
15155	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15156      fi
15157      if test "$with_gnu_ld" = no; then
15158	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15159	hardcode_libdir_separator_F77=:
15160
15161	hardcode_direct_F77=yes
15162	export_dynamic_flag_spec_F77='${wl}-E'
15163
15164	# hardcode_minus_L: Not really in the search PATH,
15165	# but as the default location of the library.
15166	hardcode_minus_L_F77=yes
15167      fi
15168      ;;
15169
15170    hpux11*)
15171      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15172	case $host_cpu in
15173	hppa*64*)
15174	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15175	  ;;
15176	ia64*)
15177	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15178	  ;;
15179	*)
15180	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15181	  ;;
15182	esac
15183      else
15184	case $host_cpu in
15185	hppa*64*)
15186	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15187	  ;;
15188	ia64*)
15189	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15190	  ;;
15191	*)
15192	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15193	  ;;
15194	esac
15195      fi
15196      if test "$with_gnu_ld" = no; then
15197	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15198	hardcode_libdir_separator_F77=:
15199
15200	case $host_cpu in
15201	hppa*64*|ia64*)
15202	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15203	  hardcode_direct_F77=no
15204	  hardcode_shlibpath_var_F77=no
15205	  ;;
15206	*)
15207	  hardcode_direct_F77=yes
15208	  export_dynamic_flag_spec_F77='${wl}-E'
15209
15210	  # hardcode_minus_L: Not really in the search PATH,
15211	  # but as the default location of the library.
15212	  hardcode_minus_L_F77=yes
15213	  ;;
15214	esac
15215      fi
15216      ;;
15217
15218    irix5* | irix6* | nonstopux*)
15219      if test "$GCC" = yes; then
15220	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'
15221      else
15222	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'
15223	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15224      fi
15225      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15226      hardcode_libdir_separator_F77=:
15227      link_all_deplibs_F77=yes
15228      ;;
15229
15230    netbsd* | netbsdelf*-gnu)
15231      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15232	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15233      else
15234	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15235      fi
15236      hardcode_libdir_flag_spec_F77='-R$libdir'
15237      hardcode_direct_F77=yes
15238      hardcode_shlibpath_var_F77=no
15239      ;;
15240
15241    newsos6)
15242      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15243      hardcode_direct_F77=yes
15244      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15245      hardcode_libdir_separator_F77=:
15246      hardcode_shlibpath_var_F77=no
15247      ;;
15248
15249    openbsd*)
15250      hardcode_direct_F77=yes
15251      hardcode_shlibpath_var_F77=no
15252      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15253	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15254	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15255	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15256	export_dynamic_flag_spec_F77='${wl}-E'
15257      else
15258       case $host_os in
15259	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15260	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15261	   hardcode_libdir_flag_spec_F77='-R$libdir'
15262	   ;;
15263	 *)
15264	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15265	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15266	   ;;
15267       esac
15268      fi
15269      ;;
15270
15271    os2*)
15272      hardcode_libdir_flag_spec_F77='-L$libdir'
15273      hardcode_minus_L_F77=yes
15274      allow_undefined_flag_F77=unsupported
15275      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'
15276      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15277      ;;
15278
15279    osf3*)
15280      if test "$GCC" = yes; then
15281	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15282	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'
15283      else
15284	allow_undefined_flag_F77=' -expect_unresolved \*'
15285	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'
15286      fi
15287      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15288      hardcode_libdir_separator_F77=:
15289      ;;
15290
15291    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15292      if test "$GCC" = yes; then
15293	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15294	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'
15295	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15296      else
15297	allow_undefined_flag_F77=' -expect_unresolved \*'
15298	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'
15299	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~
15300	$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'
15301
15302	# Both c and cxx compiler support -rpath directly
15303	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15304      fi
15305      hardcode_libdir_separator_F77=:
15306      ;;
15307
15308    solaris*)
15309      no_undefined_flag_F77=' -z text'
15310      if test "$GCC" = yes; then
15311	wlarc='${wl}'
15312	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15313	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15314	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15315      else
15316	wlarc=''
15317	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15318	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15319  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15320      fi
15321      hardcode_libdir_flag_spec_F77='-R$libdir'
15322      hardcode_shlibpath_var_F77=no
15323      case $host_os in
15324      solaris2.[0-5] | solaris2.[0-5].*) ;;
15325      *)
15326 	# The compiler driver will combine linker options so we
15327 	# cannot just pass the convience library names through
15328 	# without $wl, iff we do not link with $LD.
15329 	# Luckily, gcc supports the same syntax we need for Sun Studio.
15330 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15331 	case $wlarc in
15332 	'')
15333 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15334 	*)
15335 	  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' ;;
15336 	esac ;;
15337      esac
15338      link_all_deplibs_F77=yes
15339      ;;
15340
15341    sunos4*)
15342      if test "x$host_vendor" = xsequent; then
15343	# Use $CC to link under sequent, because it throws in some extra .o
15344	# files that make .init and .fini sections work.
15345	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15346      else
15347	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15348      fi
15349      hardcode_libdir_flag_spec_F77='-L$libdir'
15350      hardcode_direct_F77=yes
15351      hardcode_minus_L_F77=yes
15352      hardcode_shlibpath_var_F77=no
15353      ;;
15354
15355    sysv4)
15356      case $host_vendor in
15357	sni)
15358	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15359	  hardcode_direct_F77=yes # is this really true???
15360	;;
15361	siemens)
15362	  ## LD is ld it makes a PLAMLIB
15363	  ## CC just makes a GrossModule.
15364	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15365	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15366	  hardcode_direct_F77=no
15367        ;;
15368	motorola)
15369	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15370	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15371	;;
15372      esac
15373      runpath_var='LD_RUN_PATH'
15374      hardcode_shlibpath_var_F77=no
15375      ;;
15376
15377    sysv4.3*)
15378      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15379      hardcode_shlibpath_var_F77=no
15380      export_dynamic_flag_spec_F77='-Bexport'
15381      ;;
15382
15383    sysv4*MP*)
15384      if test -d /usr/nec; then
15385	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15386	hardcode_shlibpath_var_F77=no
15387	runpath_var=LD_RUN_PATH
15388	hardcode_runpath_var=yes
15389	ld_shlibs_F77=yes
15390      fi
15391      ;;
15392
15393    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15394      no_undefined_flag_F77='${wl}-z,text'
15395      archive_cmds_need_lc_F77=no
15396      hardcode_shlibpath_var_F77=no
15397      runpath_var='LD_RUN_PATH'
15398
15399      if test "$GCC" = yes; then
15400	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15401	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15402      else
15403	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15404	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15405      fi
15406      ;;
15407
15408    sysv5* | sco3.2v5* | sco5v6*)
15409      # Note: We can NOT use -z defs as we might desire, because we do not
15410      # link with -lc, and that would cause any symbols used from libc to
15411      # always be unresolved, which means just about no library would
15412      # ever link correctly.  If we're not using GNU ld we use -z text
15413      # though, which does catch some bad symbols but isn't as heavy-handed
15414      # as -z defs.
15415      no_undefined_flag_F77='${wl}-z,text'
15416      allow_undefined_flag_F77='${wl}-z,nodefs'
15417      archive_cmds_need_lc_F77=no
15418      hardcode_shlibpath_var_F77=no
15419      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15420      hardcode_libdir_separator_F77=':'
15421      link_all_deplibs_F77=yes
15422      export_dynamic_flag_spec_F77='${wl}-Bexport'
15423      runpath_var='LD_RUN_PATH'
15424
15425      if test "$GCC" = yes; then
15426	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15427	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15428      else
15429	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15430	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15431      fi
15432      ;;
15433
15434    uts4*)
15435      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15436      hardcode_libdir_flag_spec_F77='-L$libdir'
15437      hardcode_shlibpath_var_F77=no
15438      ;;
15439
15440    *)
15441      ld_shlibs_F77=no
15442      ;;
15443    esac
15444  fi
15445
15446{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15447echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15448test "$ld_shlibs_F77" = no && can_build_shared=no
15449
15450#
15451# Do we need to explicitly link libc?
15452#
15453case "x$archive_cmds_need_lc_F77" in
15454x|xyes)
15455  # Assume -lc should be added
15456  archive_cmds_need_lc_F77=yes
15457
15458  if test "$enable_shared" = yes && test "$GCC" = yes; then
15459    case $archive_cmds_F77 in
15460    *'~'*)
15461      # FIXME: we may have to deal with multi-command sequences.
15462      ;;
15463    '$CC '*)
15464      # Test whether the compiler implicitly links with -lc since on some
15465      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15466      # to ld, don't add -lc before -lgcc.
15467      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15468echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15469      $rm conftest*
15470      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15471
15472      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15473  (eval $ac_compile) 2>&5
15474  ac_status=$?
15475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476  (exit $ac_status); } 2>conftest.err; then
15477        soname=conftest
15478        lib=conftest
15479        libobjs=conftest.$ac_objext
15480        deplibs=
15481        wl=$lt_prog_compiler_wl_F77
15482	pic_flag=$lt_prog_compiler_pic_F77
15483        compiler_flags=-v
15484        linker_flags=-v
15485        verstring=
15486        output_objdir=.
15487        libname=conftest
15488        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15489        allow_undefined_flag_F77=
15490        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15491  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15492  ac_status=$?
15493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494  (exit $ac_status); }
15495        then
15496	  archive_cmds_need_lc_F77=no
15497        else
15498	  archive_cmds_need_lc_F77=yes
15499        fi
15500        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15501      else
15502        cat conftest.err 1>&5
15503      fi
15504      $rm conftest*
15505      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15506echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15507      ;;
15508    esac
15509  fi
15510  ;;
15511esac
15512
15513{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15514echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15515library_names_spec=
15516libname_spec='lib$name'
15517soname_spec=
15518shrext_cmds=".so"
15519postinstall_cmds=
15520postuninstall_cmds=
15521finish_cmds=
15522finish_eval=
15523shlibpath_var=
15524shlibpath_overrides_runpath=unknown
15525version_type=none
15526dynamic_linker="$host_os ld.so"
15527sys_lib_dlsearch_path_spec="/lib /usr/lib"
15528if test "$GCC" = yes; then
15529  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15530  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15531    # if the path contains ";" then we assume it to be the separator
15532    # otherwise default to the standard path separator (i.e. ":") - it is
15533    # assumed that no part of a normal pathname contains ";" but that should
15534    # okay in the real world where ";" in dirpaths is itself problematic.
15535    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15536  else
15537    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15538  fi
15539else
15540  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15541fi
15542need_lib_prefix=unknown
15543hardcode_into_libs=no
15544
15545# when you set need_version to no, make sure it does not cause -set_version
15546# flags to be left without arguments
15547need_version=unknown
15548
15549case $host_os in
15550aix3*)
15551  version_type=linux
15552  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15553  shlibpath_var=LIBPATH
15554
15555  # AIX 3 has no versioning support, so we append a major version to the name.
15556  soname_spec='${libname}${release}${shared_ext}$major'
15557  ;;
15558
15559aix4* | aix5*)
15560  version_type=linux
15561  need_lib_prefix=no
15562  need_version=no
15563  hardcode_into_libs=yes
15564  if test "$host_cpu" = ia64; then
15565    # AIX 5 supports IA64
15566    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15567    shlibpath_var=LD_LIBRARY_PATH
15568  else
15569    # With GCC up to 2.95.x, collect2 would create an import file
15570    # for dependence libraries.  The import file would start with
15571    # the line `#! .'.  This would cause the generated library to
15572    # depend on `.', always an invalid library.  This was fixed in
15573    # development snapshots of GCC prior to 3.0.
15574    case $host_os in
15575      aix4 | aix4.[01] | aix4.[01].*)
15576      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15577	   echo ' yes '
15578	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15579	:
15580      else
15581	can_build_shared=no
15582      fi
15583      ;;
15584    esac
15585    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15586    # soname into executable. Probably we can add versioning support to
15587    # collect2, so additional links can be useful in future.
15588    if test "$aix_use_runtimelinking" = yes; then
15589      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15590      # instead of lib<name>.a to let people know that these are not
15591      # typical AIX shared libraries.
15592      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15593    else
15594      # We preserve .a as extension for shared libraries through AIX4.2
15595      # and later when we are not doing run time linking.
15596      library_names_spec='${libname}${release}.a $libname.a'
15597      soname_spec='${libname}${release}${shared_ext}$major'
15598    fi
15599    shlibpath_var=LIBPATH
15600  fi
15601  ;;
15602
15603amigaos*)
15604  library_names_spec='$libname.ixlibrary $libname.a'
15605  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15606  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'
15607  ;;
15608
15609beos*)
15610  library_names_spec='${libname}${shared_ext}'
15611  dynamic_linker="$host_os ld.so"
15612  shlibpath_var=LIBRARY_PATH
15613  ;;
15614
15615bsdi[45]*)
15616  version_type=linux
15617  need_version=no
15618  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15619  soname_spec='${libname}${release}${shared_ext}$major'
15620  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15621  shlibpath_var=LD_LIBRARY_PATH
15622  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15623  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15624  # the default ld.so.conf also contains /usr/contrib/lib and
15625  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15626  # libtool to hard-code these into programs
15627  ;;
15628
15629cygwin* | mingw* | pw32*)
15630  version_type=windows
15631  shrext_cmds=".dll"
15632  need_version=no
15633  need_lib_prefix=no
15634
15635  case $GCC,$host_os in
15636  yes,cygwin* | yes,mingw* | yes,pw32*)
15637    library_names_spec='$libname.dll.a'
15638    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15639    postinstall_cmds='base_file=`basename \${file}`~
15640      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15641      dldir=$destdir/`dirname \$dlpath`~
15642      test -d \$dldir || mkdir -p \$dldir~
15643      $install_prog $dir/$dlname \$dldir/$dlname~
15644      chmod a+x \$dldir/$dlname'
15645    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15646      dlpath=$dir/\$dldll~
15647       $rm \$dlpath'
15648    shlibpath_overrides_runpath=yes
15649
15650    case $host_os in
15651    cygwin*)
15652      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15653      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15654      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15655      ;;
15656    mingw*)
15657      # MinGW DLLs use traditional 'lib' prefix
15658      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15659      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15660      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15661        # It is most probably a Windows format PATH printed by
15662        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15663        # path with ; separators, and with drive letters. We can handle the
15664        # drive letters (cygwin fileutils understands them), so leave them,
15665        # especially as we might pass files found there to a mingw objdump,
15666        # which wouldn't understand a cygwinified path. Ahh.
15667        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15668      else
15669        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15670      fi
15671      ;;
15672    pw32*)
15673      # pw32 DLLs use 'pw' prefix rather than 'lib'
15674      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15675      ;;
15676    esac
15677    ;;
15678
15679  *)
15680    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15681    ;;
15682  esac
15683  dynamic_linker='Win32 ld.exe'
15684  # FIXME: first we should search . and the directory the executable is in
15685  shlibpath_var=PATH
15686  ;;
15687
15688darwin* | rhapsody*)
15689  dynamic_linker="$host_os dyld"
15690  version_type=darwin
15691  need_lib_prefix=no
15692  need_version=no
15693  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15694  soname_spec='${libname}${release}${major}$shared_ext'
15695  shlibpath_overrides_runpath=yes
15696  shlibpath_var=DYLD_LIBRARY_PATH
15697  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15698  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15699  if test "$GCC" = yes; then
15700    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"`
15701  else
15702    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15703  fi
15704  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15705  ;;
15706
15707dgux*)
15708  version_type=linux
15709  need_lib_prefix=no
15710  need_version=no
15711  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15712  soname_spec='${libname}${release}${shared_ext}$major'
15713  shlibpath_var=LD_LIBRARY_PATH
15714  ;;
15715
15716freebsd1*)
15717  dynamic_linker=no
15718  ;;
15719
15720freebsd* | dragonfly*)
15721  # DragonFly does not have aout.  When/if they implement a new
15722  # versioning mechanism, adjust this.
15723  if test -x /usr/bin/objformat; then
15724    objformat=`/usr/bin/objformat`
15725  else
15726    case $host_os in
15727    freebsd[123]*) objformat=aout ;;
15728    *) objformat=elf ;;
15729    esac
15730  fi
15731  version_type=freebsd-$objformat
15732  case $version_type in
15733    freebsd-elf*)
15734      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15735      need_version=no
15736      need_lib_prefix=no
15737      ;;
15738    freebsd-*)
15739      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15740      need_version=yes
15741      ;;
15742  esac
15743  shlibpath_var=LD_LIBRARY_PATH
15744  case $host_os in
15745  freebsd2*)
15746    shlibpath_overrides_runpath=yes
15747    ;;
15748  freebsd3.[01]* | freebsdelf3.[01]*)
15749    shlibpath_overrides_runpath=yes
15750    hardcode_into_libs=yes
15751    ;;
15752  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15753  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15754    shlibpath_overrides_runpath=no
15755    hardcode_into_libs=yes
15756    ;;
15757  freebsd*) # from 4.6 on
15758    shlibpath_overrides_runpath=yes
15759    hardcode_into_libs=yes
15760    ;;
15761  esac
15762  ;;
15763
15764gnu*)
15765  version_type=linux
15766  need_lib_prefix=no
15767  need_version=no
15768  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15769  soname_spec='${libname}${release}${shared_ext}$major'
15770  shlibpath_var=LD_LIBRARY_PATH
15771  hardcode_into_libs=yes
15772  ;;
15773
15774hpux9* | hpux10* | hpux11*)
15775  # Give a soname corresponding to the major version so that dld.sl refuses to
15776  # link against other versions.
15777  version_type=sunos
15778  need_lib_prefix=no
15779  need_version=no
15780  case $host_cpu in
15781  ia64*)
15782    shrext_cmds='.so'
15783    hardcode_into_libs=yes
15784    dynamic_linker="$host_os dld.so"
15785    shlibpath_var=LD_LIBRARY_PATH
15786    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15787    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15788    soname_spec='${libname}${release}${shared_ext}$major'
15789    if test "X$HPUX_IA64_MODE" = X32; then
15790      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15791    else
15792      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15793    fi
15794    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15795    ;;
15796   hppa*64*)
15797     shrext_cmds='.sl'
15798     hardcode_into_libs=yes
15799     dynamic_linker="$host_os dld.sl"
15800     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15801     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15802     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15803     soname_spec='${libname}${release}${shared_ext}$major'
15804     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15805     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15806     ;;
15807   *)
15808    shrext_cmds='.sl'
15809    dynamic_linker="$host_os dld.sl"
15810    shlibpath_var=SHLIB_PATH
15811    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15812    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15813    soname_spec='${libname}${release}${shared_ext}$major'
15814    ;;
15815  esac
15816  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15817  postinstall_cmds='chmod 555 $lib'
15818  ;;
15819
15820interix3*)
15821  version_type=linux
15822  need_lib_prefix=no
15823  need_version=no
15824  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15825  soname_spec='${libname}${release}${shared_ext}$major'
15826  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15827  shlibpath_var=LD_LIBRARY_PATH
15828  shlibpath_overrides_runpath=no
15829  hardcode_into_libs=yes
15830  ;;
15831
15832irix5* | irix6* | nonstopux*)
15833  case $host_os in
15834    nonstopux*) version_type=nonstopux ;;
15835    *)
15836	if test "$lt_cv_prog_gnu_ld" = yes; then
15837		version_type=linux
15838	else
15839		version_type=irix
15840	fi ;;
15841  esac
15842  need_lib_prefix=no
15843  need_version=no
15844  soname_spec='${libname}${release}${shared_ext}$major'
15845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15846  case $host_os in
15847  irix5* | nonstopux*)
15848    libsuff= shlibsuff=
15849    ;;
15850  *)
15851    case $LD in # libtool.m4 will add one of these switches to LD
15852    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15853      libsuff= shlibsuff= libmagic=32-bit;;
15854    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15855      libsuff=32 shlibsuff=N32 libmagic=N32;;
15856    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15857      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15858    *) libsuff= shlibsuff= libmagic=never-match;;
15859    esac
15860    ;;
15861  esac
15862  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15863  shlibpath_overrides_runpath=no
15864  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15865  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15866  hardcode_into_libs=yes
15867  ;;
15868
15869# No shared lib support for Linux oldld, aout, or coff.
15870linux*oldld* | linux*aout* | linux*coff*)
15871  dynamic_linker=no
15872  ;;
15873
15874# This must be Linux ELF.
15875linux* | k*bsd*-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  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15882  shlibpath_var=LD_LIBRARY_PATH
15883  shlibpath_overrides_runpath=no
15884  # This implies no fast_install, which is unacceptable.
15885  # Some rework will be needed to allow for fast_install
15886  # before this can be enabled.
15887  hardcode_into_libs=yes
15888
15889  # Append ld.so.conf contents to the search path
15890  if test -f /etc/ld.so.conf; then
15891    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' ' '`
15892    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15893  fi
15894
15895  # We used to test for /lib/ld.so.1 and disable shared libraries on
15896  # powerpc, because MkLinux only supported shared libraries with the
15897  # GNU dynamic linker.  Since this was broken with cross compilers,
15898  # most powerpc-linux boxes support dynamic linking these days and
15899  # people can always --disable-shared, the test was removed, and we
15900  # assume the GNU/Linux dynamic linker is in use.
15901  dynamic_linker='GNU/Linux ld.so'
15902  ;;
15903
15904netbsdelf*-gnu)
15905  version_type=linux
15906  need_lib_prefix=no
15907  need_version=no
15908  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15909  soname_spec='${libname}${release}${shared_ext}$major'
15910  shlibpath_var=LD_LIBRARY_PATH
15911  shlibpath_overrides_runpath=no
15912  hardcode_into_libs=yes
15913  dynamic_linker='NetBSD ld.elf_so'
15914  ;;
15915
15916netbsd*)
15917  version_type=sunos
15918  need_lib_prefix=no
15919  need_version=no
15920  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15921    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15922    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15923    dynamic_linker='NetBSD (a.out) ld.so'
15924  else
15925    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15926    soname_spec='${libname}${release}${shared_ext}$major'
15927    dynamic_linker='NetBSD ld.elf_so'
15928  fi
15929  shlibpath_var=LD_LIBRARY_PATH
15930  shlibpath_overrides_runpath=yes
15931  hardcode_into_libs=yes
15932  ;;
15933
15934newsos6)
15935  version_type=linux
15936  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15937  shlibpath_var=LD_LIBRARY_PATH
15938  shlibpath_overrides_runpath=yes
15939  ;;
15940
15941nto-qnx*)
15942  version_type=linux
15943  need_lib_prefix=no
15944  need_version=no
15945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15946  soname_spec='${libname}${release}${shared_ext}$major'
15947  shlibpath_var=LD_LIBRARY_PATH
15948  shlibpath_overrides_runpath=yes
15949  ;;
15950
15951openbsd*)
15952  version_type=sunos
15953  sys_lib_dlsearch_path_spec="/usr/lib"
15954  need_lib_prefix=no
15955  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15956  case $host_os in
15957    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15958    *)                         need_version=no  ;;
15959  esac
15960  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15961  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15962  shlibpath_var=LD_LIBRARY_PATH
15963  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15964    case $host_os in
15965      openbsd2.[89] | openbsd2.[89].*)
15966	shlibpath_overrides_runpath=no
15967	;;
15968      *)
15969	shlibpath_overrides_runpath=yes
15970	;;
15971      esac
15972  else
15973    shlibpath_overrides_runpath=yes
15974  fi
15975  ;;
15976
15977os2*)
15978  libname_spec='$name'
15979  shrext_cmds=".dll"
15980  need_lib_prefix=no
15981  library_names_spec='$libname${shared_ext} $libname.a'
15982  dynamic_linker='OS/2 ld.exe'
15983  shlibpath_var=LIBPATH
15984  ;;
15985
15986osf3* | osf4* | osf5*)
15987  version_type=osf
15988  need_lib_prefix=no
15989  need_version=no
15990  soname_spec='${libname}${release}${shared_ext}$major'
15991  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15992  shlibpath_var=LD_LIBRARY_PATH
15993  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15994  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15995  ;;
15996
15997solaris*)
15998  version_type=linux
15999  need_lib_prefix=no
16000  need_version=no
16001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16002  soname_spec='${libname}${release}${shared_ext}$major'
16003  shlibpath_var=LD_LIBRARY_PATH
16004  shlibpath_overrides_runpath=yes
16005  hardcode_into_libs=yes
16006  # ldd complains unless libraries are executable
16007  postinstall_cmds='chmod +x $lib'
16008  ;;
16009
16010sunos4*)
16011  version_type=sunos
16012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16013  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16014  shlibpath_var=LD_LIBRARY_PATH
16015  shlibpath_overrides_runpath=yes
16016  if test "$with_gnu_ld" = yes; then
16017    need_lib_prefix=no
16018  fi
16019  need_version=yes
16020  ;;
16021
16022sysv4 | sysv4.3*)
16023  version_type=linux
16024  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16025  soname_spec='${libname}${release}${shared_ext}$major'
16026  shlibpath_var=LD_LIBRARY_PATH
16027  case $host_vendor in
16028    sni)
16029      shlibpath_overrides_runpath=no
16030      need_lib_prefix=no
16031      export_dynamic_flag_spec='${wl}-Blargedynsym'
16032      runpath_var=LD_RUN_PATH
16033      ;;
16034    siemens)
16035      need_lib_prefix=no
16036      ;;
16037    motorola)
16038      need_lib_prefix=no
16039      need_version=no
16040      shlibpath_overrides_runpath=no
16041      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16042      ;;
16043  esac
16044  ;;
16045
16046sysv4*MP*)
16047  if test -d /usr/nec ;then
16048    version_type=linux
16049    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16050    soname_spec='$libname${shared_ext}.$major'
16051    shlibpath_var=LD_LIBRARY_PATH
16052  fi
16053  ;;
16054
16055sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16056  version_type=freebsd-elf
16057  need_lib_prefix=no
16058  need_version=no
16059  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16060  soname_spec='${libname}${release}${shared_ext}$major'
16061  shlibpath_var=LD_LIBRARY_PATH
16062  hardcode_into_libs=yes
16063  if test "$with_gnu_ld" = yes; then
16064    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16065    shlibpath_overrides_runpath=no
16066  else
16067    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16068    shlibpath_overrides_runpath=yes
16069    case $host_os in
16070      sco3.2v5*)
16071        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16072	;;
16073    esac
16074  fi
16075  sys_lib_dlsearch_path_spec='/usr/lib'
16076  ;;
16077
16078uts4*)
16079  version_type=linux
16080  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16081  soname_spec='${libname}${release}${shared_ext}$major'
16082  shlibpath_var=LD_LIBRARY_PATH
16083  ;;
16084
16085*)
16086  dynamic_linker=no
16087  ;;
16088esac
16089{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16090echo "${ECHO_T}$dynamic_linker" >&6; }
16091test "$dynamic_linker" = no && can_build_shared=no
16092
16093variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16094if test "$GCC" = yes; then
16095  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16096fi
16097
16098{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16099echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16100hardcode_action_F77=
16101if test -n "$hardcode_libdir_flag_spec_F77" || \
16102   test -n "$runpath_var_F77" || \
16103   test "X$hardcode_automatic_F77" = "Xyes" ; then
16104
16105  # We can hardcode non-existant directories.
16106  if test "$hardcode_direct_F77" != no &&
16107     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16108     # have to relink, otherwise we might link with an installed library
16109     # when we should be linking with a yet-to-be-installed one
16110     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16111     test "$hardcode_minus_L_F77" != no; then
16112    # Linking always hardcodes the temporary library directory.
16113    hardcode_action_F77=relink
16114  else
16115    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16116    hardcode_action_F77=immediate
16117  fi
16118else
16119  # We cannot hardcode anything, or else we can only hardcode existing
16120  # directories.
16121  hardcode_action_F77=unsupported
16122fi
16123{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16124echo "${ECHO_T}$hardcode_action_F77" >&6; }
16125
16126if test "$hardcode_action_F77" = relink; then
16127  # Fast installation is not supported
16128  enable_fast_install=no
16129elif test "$shlibpath_overrides_runpath" = yes ||
16130     test "$enable_shared" = no; then
16131  # Fast installation is not necessary
16132  enable_fast_install=needless
16133fi
16134
16135
16136# The else clause should only fire when bootstrapping the
16137# libtool distribution, otherwise you forgot to ship ltmain.sh
16138# with your package, and you will get complaints that there are
16139# no rules to generate ltmain.sh.
16140if test -f "$ltmain"; then
16141  # See if we are running on zsh, and set the options which allow our commands through
16142  # without removal of \ escapes.
16143  if test -n "${ZSH_VERSION+set}" ; then
16144    setopt NO_GLOB_SUBST
16145  fi
16146  # Now quote all the things that may contain metacharacters while being
16147  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16148  # variables and quote the copies for generation of the libtool script.
16149  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16150    SED SHELL STRIP \
16151    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16152    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16153    deplibs_check_method reload_flag reload_cmds need_locks \
16154    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16155    lt_cv_sys_global_symbol_to_c_name_address \
16156    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16157    old_postinstall_cmds old_postuninstall_cmds \
16158    compiler_F77 \
16159    CC_F77 \
16160    LD_F77 \
16161    lt_prog_compiler_wl_F77 \
16162    lt_prog_compiler_pic_F77 \
16163    lt_prog_compiler_static_F77 \
16164    lt_prog_compiler_no_builtin_flag_F77 \
16165    export_dynamic_flag_spec_F77 \
16166    thread_safe_flag_spec_F77 \
16167    whole_archive_flag_spec_F77 \
16168    enable_shared_with_static_runtimes_F77 \
16169    old_archive_cmds_F77 \
16170    old_archive_from_new_cmds_F77 \
16171    predep_objects_F77 \
16172    postdep_objects_F77 \
16173    predeps_F77 \
16174    postdeps_F77 \
16175    compiler_lib_search_path_F77 \
16176    archive_cmds_F77 \
16177    archive_expsym_cmds_F77 \
16178    postinstall_cmds_F77 \
16179    postuninstall_cmds_F77 \
16180    old_archive_from_expsyms_cmds_F77 \
16181    allow_undefined_flag_F77 \
16182    no_undefined_flag_F77 \
16183    export_symbols_cmds_F77 \
16184    hardcode_libdir_flag_spec_F77 \
16185    hardcode_libdir_flag_spec_ld_F77 \
16186    hardcode_libdir_separator_F77 \
16187    hardcode_automatic_F77 \
16188    module_cmds_F77 \
16189    module_expsym_cmds_F77 \
16190    lt_cv_prog_compiler_c_o_F77 \
16191    exclude_expsyms_F77 \
16192    include_expsyms_F77; do
16193
16194    case $var in
16195    old_archive_cmds_F77 | \
16196    old_archive_from_new_cmds_F77 | \
16197    archive_cmds_F77 | \
16198    archive_expsym_cmds_F77 | \
16199    module_cmds_F77 | \
16200    module_expsym_cmds_F77 | \
16201    old_archive_from_expsyms_cmds_F77 | \
16202    export_symbols_cmds_F77 | \
16203    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16204    postinstall_cmds | postuninstall_cmds | \
16205    old_postinstall_cmds | old_postuninstall_cmds | \
16206    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16207      # Double-quote double-evaled strings.
16208      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16209      ;;
16210    *)
16211      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16212      ;;
16213    esac
16214  done
16215
16216  case $lt_echo in
16217  *'\$0 --fallback-echo"')
16218    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16219    ;;
16220  esac
16221
16222cfgfile="$ofile"
16223
16224  cat <<__EOF__ >> "$cfgfile"
16225# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16226
16227# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16228
16229# Shell to use when invoking shell scripts.
16230SHELL=$lt_SHELL
16231
16232# Whether or not to build shared libraries.
16233build_libtool_libs=$enable_shared
16234
16235# Whether or not to build static libraries.
16236build_old_libs=$enable_static
16237
16238# Whether or not to add -lc for building shared libraries.
16239build_libtool_need_lc=$archive_cmds_need_lc_F77
16240
16241# Whether or not to disallow shared libs when runtime libs are static
16242allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16243
16244# Whether or not to optimize for fast installation.
16245fast_install=$enable_fast_install
16246
16247# The host system.
16248host_alias=$host_alias
16249host=$host
16250host_os=$host_os
16251
16252# The build system.
16253build_alias=$build_alias
16254build=$build
16255build_os=$build_os
16256
16257# An echo program that does not interpret backslashes.
16258echo=$lt_echo
16259
16260# The archiver.
16261AR=$lt_AR
16262AR_FLAGS=$lt_AR_FLAGS
16263
16264# A C compiler.
16265LTCC=$lt_LTCC
16266
16267# LTCC compiler flags.
16268LTCFLAGS=$lt_LTCFLAGS
16269
16270# A language-specific compiler.
16271CC=$lt_compiler_F77
16272
16273# Is the compiler the GNU C compiler?
16274with_gcc=$GCC_F77
16275
16276# An ERE matcher.
16277EGREP=$lt_EGREP
16278
16279# The linker used to build libraries.
16280LD=$lt_LD_F77
16281
16282# Whether we need hard or soft links.
16283LN_S=$lt_LN_S
16284
16285# A BSD-compatible nm program.
16286NM=$lt_NM
16287
16288# A symbol stripping program
16289STRIP=$lt_STRIP
16290
16291# Used to examine libraries when file_magic_cmd begins "file"
16292MAGIC_CMD=$MAGIC_CMD
16293
16294# Used on cygwin: DLL creation program.
16295DLLTOOL="$DLLTOOL"
16296
16297# Used on cygwin: object dumper.
16298OBJDUMP="$OBJDUMP"
16299
16300# Used on cygwin: assembler.
16301AS="$AS"
16302
16303# The name of the directory that contains temporary libtool files.
16304objdir=$objdir
16305
16306# How to create reloadable object files.
16307reload_flag=$lt_reload_flag
16308reload_cmds=$lt_reload_cmds
16309
16310# How to pass a linker flag through the compiler.
16311wl=$lt_lt_prog_compiler_wl_F77
16312
16313# Object file suffix (normally "o").
16314objext="$ac_objext"
16315
16316# Old archive suffix (normally "a").
16317libext="$libext"
16318
16319# Shared library suffix (normally ".so").
16320shrext_cmds='$shrext_cmds'
16321
16322# Executable file suffix (normally "").
16323exeext="$exeext"
16324
16325# Additional compiler flags for building library objects.
16326pic_flag=$lt_lt_prog_compiler_pic_F77
16327pic_mode=$pic_mode
16328
16329# What is the maximum length of a command?
16330max_cmd_len=$lt_cv_sys_max_cmd_len
16331
16332# Does compiler simultaneously support -c and -o options?
16333compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16334
16335# Must we lock files when doing compilation?
16336need_locks=$lt_need_locks
16337
16338# Do we need the lib prefix for modules?
16339need_lib_prefix=$need_lib_prefix
16340
16341# Do we need a version for libraries?
16342need_version=$need_version
16343
16344# Whether dlopen is supported.
16345dlopen_support=$enable_dlopen
16346
16347# Whether dlopen of programs is supported.
16348dlopen_self=$enable_dlopen_self
16349
16350# Whether dlopen of statically linked programs is supported.
16351dlopen_self_static=$enable_dlopen_self_static
16352
16353# Compiler flag to prevent dynamic linking.
16354link_static_flag=$lt_lt_prog_compiler_static_F77
16355
16356# Compiler flag to turn off builtin functions.
16357no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16358
16359# Compiler flag to allow reflexive dlopens.
16360export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16361
16362# Compiler flag to generate shared objects directly from archives.
16363whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16364
16365# Compiler flag to generate thread-safe objects.
16366thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16367
16368# Library versioning type.
16369version_type=$version_type
16370
16371# Format of library name prefix.
16372libname_spec=$lt_libname_spec
16373
16374# List of archive names.  First name is the real one, the rest are links.
16375# The last name is the one that the linker finds with -lNAME.
16376library_names_spec=$lt_library_names_spec
16377
16378# The coded name of the library, if different from the real name.
16379soname_spec=$lt_soname_spec
16380
16381# Commands used to build and install an old-style archive.
16382RANLIB=$lt_RANLIB
16383old_archive_cmds=$lt_old_archive_cmds_F77
16384old_postinstall_cmds=$lt_old_postinstall_cmds
16385old_postuninstall_cmds=$lt_old_postuninstall_cmds
16386
16387# Create an old-style archive from a shared archive.
16388old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16389
16390# Create a temporary old-style archive to link instead of a shared archive.
16391old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16392
16393# Commands used to build and install a shared archive.
16394archive_cmds=$lt_archive_cmds_F77
16395archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16396postinstall_cmds=$lt_postinstall_cmds
16397postuninstall_cmds=$lt_postuninstall_cmds
16398
16399# Commands used to build a loadable module (assumed same as above if empty)
16400module_cmds=$lt_module_cmds_F77
16401module_expsym_cmds=$lt_module_expsym_cmds_F77
16402
16403# Commands to strip libraries.
16404old_striplib=$lt_old_striplib
16405striplib=$lt_striplib
16406
16407# Dependencies to place before the objects being linked to create a
16408# shared library.
16409predep_objects=$lt_predep_objects_F77
16410
16411# Dependencies to place after the objects being linked to create a
16412# shared library.
16413postdep_objects=$lt_postdep_objects_F77
16414
16415# Dependencies to place before the objects being linked to create a
16416# shared library.
16417predeps=$lt_predeps_F77
16418
16419# Dependencies to place after the objects being linked to create a
16420# shared library.
16421postdeps=$lt_postdeps_F77
16422
16423# The library search path used internally by the compiler when linking
16424# a shared library.
16425compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16426
16427# Method to check whether dependent libraries are shared objects.
16428deplibs_check_method=$lt_deplibs_check_method
16429
16430# Command to use when deplibs_check_method == file_magic.
16431file_magic_cmd=$lt_file_magic_cmd
16432
16433# Flag that allows shared libraries with undefined symbols to be built.
16434allow_undefined_flag=$lt_allow_undefined_flag_F77
16435
16436# Flag that forces no undefined symbols.
16437no_undefined_flag=$lt_no_undefined_flag_F77
16438
16439# Commands used to finish a libtool library installation in a directory.
16440finish_cmds=$lt_finish_cmds
16441
16442# Same as above, but a single script fragment to be evaled but not shown.
16443finish_eval=$lt_finish_eval
16444
16445# Take the output of nm and produce a listing of raw symbols and C names.
16446global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16447
16448# Transform the output of nm in a proper C declaration
16449global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16450
16451# Transform the output of nm in a C name address pair
16452global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16453
16454# This is the shared library runtime path variable.
16455runpath_var=$runpath_var
16456
16457# This is the shared library path variable.
16458shlibpath_var=$shlibpath_var
16459
16460# Is shlibpath searched before the hard-coded library search path?
16461shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16462
16463# How to hardcode a shared library path into an executable.
16464hardcode_action=$hardcode_action_F77
16465
16466# Whether we should hardcode library paths into libraries.
16467hardcode_into_libs=$hardcode_into_libs
16468
16469# Flag to hardcode \$libdir into a binary during linking.
16470# This must work even if \$libdir does not exist.
16471hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16472
16473# If ld is used when linking, flag to hardcode \$libdir into
16474# a binary during linking. This must work even if \$libdir does
16475# not exist.
16476hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16477
16478# Whether we need a single -rpath flag with a separated argument.
16479hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16480
16481# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16482# resulting binary.
16483hardcode_direct=$hardcode_direct_F77
16484
16485# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16486# resulting binary.
16487hardcode_minus_L=$hardcode_minus_L_F77
16488
16489# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16490# the resulting binary.
16491hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16492
16493# Set to yes if building a shared library automatically hardcodes DIR into the library
16494# and all subsequent libraries and executables linked against it.
16495hardcode_automatic=$hardcode_automatic_F77
16496
16497# Variables whose values should be saved in libtool wrapper scripts and
16498# restored at relink time.
16499variables_saved_for_relink="$variables_saved_for_relink"
16500
16501# Whether libtool must link a program against all its dependency libraries.
16502link_all_deplibs=$link_all_deplibs_F77
16503
16504# Compile-time system search path for libraries
16505sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16506
16507# Run-time system search path for libraries
16508sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16509
16510# Fix the shell variable \$srcfile for the compiler.
16511fix_srcfile_path="$fix_srcfile_path_F77"
16512
16513# Set to yes if exported symbols are required.
16514always_export_symbols=$always_export_symbols_F77
16515
16516# The commands to list exported symbols.
16517export_symbols_cmds=$lt_export_symbols_cmds_F77
16518
16519# The commands to extract the exported symbol list from a shared archive.
16520extract_expsyms_cmds=$lt_extract_expsyms_cmds
16521
16522# Symbols that should not be listed in the preloaded symbols.
16523exclude_expsyms=$lt_exclude_expsyms_F77
16524
16525# Symbols that must always be exported.
16526include_expsyms=$lt_include_expsyms_F77
16527
16528# ### END LIBTOOL TAG CONFIG: $tagname
16529
16530__EOF__
16531
16532
16533else
16534  # If there is no Makefile yet, we rely on a make rule to execute
16535  # `config.status --recheck' to rerun these tests and create the
16536  # libtool script then.
16537  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16538  if test -f "$ltmain_in"; then
16539    test -f Makefile && make "$ltmain"
16540  fi
16541fi
16542
16543
16544ac_ext=c
16545ac_cpp='$CPP $CPPFLAGS'
16546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16548ac_compiler_gnu=$ac_cv_c_compiler_gnu
16549
16550CC="$lt_save_CC"
16551
16552	else
16553	  tagname=""
16554	fi
16555	;;
16556
16557      GCJ)
16558	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16559
16560
16561# Source file extension for Java test sources.
16562ac_ext=java
16563
16564# Object file extension for compiled Java test sources.
16565objext=o
16566objext_GCJ=$objext
16567
16568# Code to be used in simple compile tests
16569lt_simple_compile_test_code="class foo {}\n"
16570
16571# Code to be used in simple link tests
16572lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16573
16574# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16575
16576# If no C compiler was specified, use CC.
16577LTCC=${LTCC-"$CC"}
16578
16579# If no C compiler flags were specified, use CFLAGS.
16580LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16581
16582# Allow CC to be a program name with arguments.
16583compiler=$CC
16584
16585
16586# save warnings/boilerplate of simple test code
16587ac_outfile=conftest.$ac_objext
16588printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16589eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16590_lt_compiler_boilerplate=`cat conftest.err`
16591$rm conftest*
16592
16593ac_outfile=conftest.$ac_objext
16594printf "$lt_simple_link_test_code" >conftest.$ac_ext
16595eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16596_lt_linker_boilerplate=`cat conftest.err`
16597$rm conftest*
16598
16599
16600# Allow CC to be a program name with arguments.
16601lt_save_CC="$CC"
16602CC=${GCJ-"gcj"}
16603compiler=$CC
16604compiler_GCJ=$CC
16605for cc_temp in $compiler""; do
16606  case $cc_temp in
16607    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16608    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16609    \-*) ;;
16610    *) break;;
16611  esac
16612done
16613cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16614
16615
16616# GCJ did not exist at the time GCC didn't implicitly link libc in.
16617archive_cmds_need_lc_GCJ=no
16618
16619old_archive_cmds_GCJ=$old_archive_cmds
16620
16621
16622lt_prog_compiler_no_builtin_flag_GCJ=
16623
16624if test "$GCC" = yes; then
16625  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16626
16627
16628{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16629echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16630if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16631  echo $ECHO_N "(cached) $ECHO_C" >&6
16632else
16633  lt_cv_prog_compiler_rtti_exceptions=no
16634  ac_outfile=conftest.$ac_objext
16635   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16636   lt_compiler_flag="-fno-rtti -fno-exceptions"
16637   # Insert the option either (1) after the last *FLAGS variable, or
16638   # (2) before a word containing "conftest.", or (3) at the end.
16639   # Note that $ac_compile itself does not contain backslashes and begins
16640   # with a dollar sign (not a hyphen), so the echo should work correctly.
16641   # The option is referenced via a variable to avoid confusing sed.
16642   lt_compile=`echo "$ac_compile" | $SED \
16643   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16644   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16645   -e 's:$: $lt_compiler_flag:'`
16646   (eval echo "\"\$as_me:16646: $lt_compile\"" >&5)
16647   (eval "$lt_compile" 2>conftest.err)
16648   ac_status=$?
16649   cat conftest.err >&5
16650   echo "$as_me:16650: \$? = $ac_status" >&5
16651   if (exit $ac_status) && test -s "$ac_outfile"; then
16652     # The compiler can only warn and ignore the option if not recognized
16653     # So say no if there are warnings other than the usual output.
16654     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16655     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16656     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16657       lt_cv_prog_compiler_rtti_exceptions=yes
16658     fi
16659   fi
16660   $rm conftest*
16661
16662fi
16663{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16664echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16665
16666if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16667    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16668else
16669    :
16670fi
16671
16672fi
16673
16674lt_prog_compiler_wl_GCJ=
16675lt_prog_compiler_pic_GCJ=
16676lt_prog_compiler_static_GCJ=
16677
16678{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16679echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16680
16681  if test "$GCC" = yes; then
16682    lt_prog_compiler_wl_GCJ='-Wl,'
16683    lt_prog_compiler_static_GCJ='-static'
16684
16685    case $host_os in
16686      aix*)
16687      # All AIX code is PIC.
16688      if test "$host_cpu" = ia64; then
16689	# AIX 5 now supports IA64 processor
16690	lt_prog_compiler_static_GCJ='-Bstatic'
16691      fi
16692      ;;
16693
16694    amigaos*)
16695      # FIXME: we need at least 68020 code to build shared libraries, but
16696      # adding the `-m68020' flag to GCC prevents building anything better,
16697      # like `-m68040'.
16698      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16699      ;;
16700
16701    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16702      # PIC is the default for these OSes.
16703      ;;
16704
16705    mingw* | pw32* | os2*)
16706      # This hack is so that the source file can tell whether it is being
16707      # built for inclusion in a dll (and should export symbols for example).
16708      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16709      ;;
16710
16711    darwin* | rhapsody*)
16712      # PIC is the default on this platform
16713      # Common symbols not allowed in MH_DYLIB files
16714      lt_prog_compiler_pic_GCJ='-fno-common'
16715      ;;
16716
16717    interix3*)
16718      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16719      # Instead, we relocate shared libraries at runtime.
16720      ;;
16721
16722    msdosdjgpp*)
16723      # Just because we use GCC doesn't mean we suddenly get shared libraries
16724      # on systems that don't support them.
16725      lt_prog_compiler_can_build_shared_GCJ=no
16726      enable_shared=no
16727      ;;
16728
16729    sysv4*MP*)
16730      if test -d /usr/nec; then
16731	lt_prog_compiler_pic_GCJ=-Kconform_pic
16732      fi
16733      ;;
16734
16735    hpux*)
16736      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16737      # not for PA HP-UX.
16738      case $host_cpu in
16739      hppa*64*|ia64*)
16740	# +Z the default
16741	;;
16742      *)
16743	lt_prog_compiler_pic_GCJ='-fPIC'
16744	;;
16745      esac
16746      ;;
16747
16748    *)
16749      lt_prog_compiler_pic_GCJ='-fPIC'
16750      ;;
16751    esac
16752  else
16753    # PORTME Check for flag to pass linker flags through the system compiler.
16754    case $host_os in
16755    aix*)
16756      lt_prog_compiler_wl_GCJ='-Wl,'
16757      if test "$host_cpu" = ia64; then
16758	# AIX 5 now supports IA64 processor
16759	lt_prog_compiler_static_GCJ='-Bstatic'
16760      else
16761	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16762      fi
16763      ;;
16764      darwin*)
16765        # PIC is the default on this platform
16766        # Common symbols not allowed in MH_DYLIB files
16767       case $cc_basename in
16768         xlc*)
16769         lt_prog_compiler_pic_GCJ='-qnocommon'
16770         lt_prog_compiler_wl_GCJ='-Wl,'
16771         ;;
16772       esac
16773       ;;
16774
16775    mingw* | pw32* | os2*)
16776      # This hack is so that the source file can tell whether it is being
16777      # built for inclusion in a dll (and should export symbols for example).
16778      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16779      ;;
16780
16781    hpux9* | hpux10* | hpux11*)
16782      lt_prog_compiler_wl_GCJ='-Wl,'
16783      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16784      # not for PA HP-UX.
16785      case $host_cpu in
16786      hppa*64*|ia64*)
16787	# +Z the default
16788	;;
16789      *)
16790	lt_prog_compiler_pic_GCJ='+Z'
16791	;;
16792      esac
16793      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16794      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16795      ;;
16796
16797    irix5* | irix6* | nonstopux*)
16798      lt_prog_compiler_wl_GCJ='-Wl,'
16799      # PIC (with -KPIC) is the default.
16800      lt_prog_compiler_static_GCJ='-non_shared'
16801      ;;
16802
16803    newsos6)
16804      lt_prog_compiler_pic_GCJ='-KPIC'
16805      lt_prog_compiler_static_GCJ='-Bstatic'
16806      ;;
16807
16808    linux* | k*bsd*-gnu)
16809      case $cc_basename in
16810      icc* | ecc*)
16811	lt_prog_compiler_wl_GCJ='-Wl,'
16812	lt_prog_compiler_pic_GCJ='-KPIC'
16813	lt_prog_compiler_static_GCJ='-static'
16814        ;;
16815      pgcc* | pgf77* | pgf90* | pgf95*)
16816        # Portland Group compilers (*not* the Pentium gcc compiler,
16817	# which looks to be a dead project)
16818	lt_prog_compiler_wl_GCJ='-Wl,'
16819	lt_prog_compiler_pic_GCJ='-fpic'
16820	lt_prog_compiler_static_GCJ='-Bstatic'
16821        ;;
16822      ccc*)
16823        lt_prog_compiler_wl_GCJ='-Wl,'
16824        # All Alpha code is PIC.
16825        lt_prog_compiler_static_GCJ='-non_shared'
16826        ;;
16827      esac
16828      ;;
16829
16830    osf3* | osf4* | osf5*)
16831      lt_prog_compiler_wl_GCJ='-Wl,'
16832      # All OSF/1 code is PIC.
16833      lt_prog_compiler_static_GCJ='-non_shared'
16834      ;;
16835
16836    solaris*)
16837      lt_prog_compiler_pic_GCJ='-KPIC'
16838      lt_prog_compiler_static_GCJ='-Bstatic'
16839      case $cc_basename in
16840      f77* | f90* | f95*)
16841	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16842      *)
16843	lt_prog_compiler_wl_GCJ='-Wl,';;
16844      esac
16845      ;;
16846
16847    sunos4*)
16848      lt_prog_compiler_wl_GCJ='-Qoption ld '
16849      lt_prog_compiler_pic_GCJ='-PIC'
16850      lt_prog_compiler_static_GCJ='-Bstatic'
16851      ;;
16852
16853    sysv4 | sysv4.2uw2* | sysv4.3*)
16854      lt_prog_compiler_wl_GCJ='-Wl,'
16855      lt_prog_compiler_pic_GCJ='-KPIC'
16856      lt_prog_compiler_static_GCJ='-Bstatic'
16857      ;;
16858
16859    sysv4*MP*)
16860      if test -d /usr/nec ;then
16861	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16862	lt_prog_compiler_static_GCJ='-Bstatic'
16863      fi
16864      ;;
16865
16866    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16867      lt_prog_compiler_wl_GCJ='-Wl,'
16868      lt_prog_compiler_pic_GCJ='-KPIC'
16869      lt_prog_compiler_static_GCJ='-Bstatic'
16870      ;;
16871
16872    unicos*)
16873      lt_prog_compiler_wl_GCJ='-Wl,'
16874      lt_prog_compiler_can_build_shared_GCJ=no
16875      ;;
16876
16877    uts4*)
16878      lt_prog_compiler_pic_GCJ='-pic'
16879      lt_prog_compiler_static_GCJ='-Bstatic'
16880      ;;
16881
16882    *)
16883      lt_prog_compiler_can_build_shared_GCJ=no
16884      ;;
16885    esac
16886  fi
16887
16888{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16889echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16890
16891#
16892# Check to make sure the PIC flag actually works.
16893#
16894if test -n "$lt_prog_compiler_pic_GCJ"; then
16895
16896{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16897echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16898if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16899  echo $ECHO_N "(cached) $ECHO_C" >&6
16900else
16901  lt_prog_compiler_pic_works_GCJ=no
16902  ac_outfile=conftest.$ac_objext
16903   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16904   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16905   # Insert the option either (1) after the last *FLAGS variable, or
16906   # (2) before a word containing "conftest.", or (3) at the end.
16907   # Note that $ac_compile itself does not contain backslashes and begins
16908   # with a dollar sign (not a hyphen), so the echo should work correctly.
16909   # The option is referenced via a variable to avoid confusing sed.
16910   lt_compile=`echo "$ac_compile" | $SED \
16911   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16912   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16913   -e 's:$: $lt_compiler_flag:'`
16914   (eval echo "\"\$as_me:16914: $lt_compile\"" >&5)
16915   (eval "$lt_compile" 2>conftest.err)
16916   ac_status=$?
16917   cat conftest.err >&5
16918   echo "$as_me:16918: \$? = $ac_status" >&5
16919   if (exit $ac_status) && test -s "$ac_outfile"; then
16920     # The compiler can only warn and ignore the option if not recognized
16921     # So say no if there are warnings other than the usual output.
16922     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16923     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16924     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16925       lt_prog_compiler_pic_works_GCJ=yes
16926     fi
16927   fi
16928   $rm conftest*
16929
16930fi
16931{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16932echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16933
16934if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16935    case $lt_prog_compiler_pic_GCJ in
16936     "" | " "*) ;;
16937     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16938     esac
16939else
16940    lt_prog_compiler_pic_GCJ=
16941     lt_prog_compiler_can_build_shared_GCJ=no
16942fi
16943
16944fi
16945case $host_os in
16946  # For platforms which do not support PIC, -DPIC is meaningless:
16947  *djgpp*)
16948    lt_prog_compiler_pic_GCJ=
16949    ;;
16950  *)
16951    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16952    ;;
16953esac
16954
16955#
16956# Check to make sure the static flag actually works.
16957#
16958wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16959{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16960echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16961if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16962  echo $ECHO_N "(cached) $ECHO_C" >&6
16963else
16964  lt_prog_compiler_static_works_GCJ=no
16965   save_LDFLAGS="$LDFLAGS"
16966   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16967   printf "$lt_simple_link_test_code" > conftest.$ac_ext
16968   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16969     # The linker can only warn and ignore the option if not recognized
16970     # So say no if there are warnings
16971     if test -s conftest.err; then
16972       # Append any errors to the config.log.
16973       cat conftest.err 1>&5
16974       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16975       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16976       if diff conftest.exp conftest.er2 >/dev/null; then
16977         lt_prog_compiler_static_works_GCJ=yes
16978       fi
16979     else
16980       lt_prog_compiler_static_works_GCJ=yes
16981     fi
16982   fi
16983   $rm conftest*
16984   LDFLAGS="$save_LDFLAGS"
16985
16986fi
16987{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16988echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16989
16990if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16991    :
16992else
16993    lt_prog_compiler_static_GCJ=
16994fi
16995
16996
16997{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16998echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16999if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17000  echo $ECHO_N "(cached) $ECHO_C" >&6
17001else
17002  lt_cv_prog_compiler_c_o_GCJ=no
17003   $rm -r conftest 2>/dev/null
17004   mkdir conftest
17005   cd conftest
17006   mkdir out
17007   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17008
17009   lt_compiler_flag="-o out/conftest2.$ac_objext"
17010   # Insert the option either (1) after the last *FLAGS variable, or
17011   # (2) before a word containing "conftest.", or (3) at the end.
17012   # Note that $ac_compile itself does not contain backslashes and begins
17013   # with a dollar sign (not a hyphen), so the echo should work correctly.
17014   lt_compile=`echo "$ac_compile" | $SED \
17015   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17016   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17017   -e 's:$: $lt_compiler_flag:'`
17018   (eval echo "\"\$as_me:17018: $lt_compile\"" >&5)
17019   (eval "$lt_compile" 2>out/conftest.err)
17020   ac_status=$?
17021   cat out/conftest.err >&5
17022   echo "$as_me:17022: \$? = $ac_status" >&5
17023   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17024   then
17025     # The compiler can only warn and ignore the option if not recognized
17026     # So say no if there are warnings
17027     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17028     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17029     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17030       lt_cv_prog_compiler_c_o_GCJ=yes
17031     fi
17032   fi
17033   chmod u+w . 2>&5
17034   $rm conftest*
17035   # SGI C++ compiler will create directory out/ii_files/ for
17036   # template instantiation
17037   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17038   $rm out/* && rmdir out
17039   cd ..
17040   rmdir conftest
17041   $rm conftest*
17042
17043fi
17044{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17045echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17046
17047
17048hard_links="nottested"
17049if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17050  # do not overwrite the value of need_locks provided by the user
17051  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17052echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17053  hard_links=yes
17054  $rm conftest*
17055  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17056  touch conftest.a
17057  ln conftest.a conftest.b 2>&5 || hard_links=no
17058  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17059  { echo "$as_me:$LINENO: result: $hard_links" >&5
17060echo "${ECHO_T}$hard_links" >&6; }
17061  if test "$hard_links" = no; then
17062    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17063echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17064    need_locks=warn
17065  fi
17066else
17067  need_locks=no
17068fi
17069
17070{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17071echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17072
17073  runpath_var=
17074  allow_undefined_flag_GCJ=
17075  enable_shared_with_static_runtimes_GCJ=no
17076  archive_cmds_GCJ=
17077  archive_expsym_cmds_GCJ=
17078  old_archive_From_new_cmds_GCJ=
17079  old_archive_from_expsyms_cmds_GCJ=
17080  export_dynamic_flag_spec_GCJ=
17081  whole_archive_flag_spec_GCJ=
17082  thread_safe_flag_spec_GCJ=
17083  hardcode_libdir_flag_spec_GCJ=
17084  hardcode_libdir_flag_spec_ld_GCJ=
17085  hardcode_libdir_separator_GCJ=
17086  hardcode_direct_GCJ=no
17087  hardcode_minus_L_GCJ=no
17088  hardcode_shlibpath_var_GCJ=unsupported
17089  link_all_deplibs_GCJ=unknown
17090  hardcode_automatic_GCJ=no
17091  module_cmds_GCJ=
17092  module_expsym_cmds_GCJ=
17093  always_export_symbols_GCJ=no
17094  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17095  # include_expsyms should be a list of space-separated symbols to be *always*
17096  # included in the symbol list
17097  include_expsyms_GCJ=
17098  # exclude_expsyms can be an extended regexp of symbols to exclude
17099  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17100  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17101  # as well as any symbol that contains `d'.
17102  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17103  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17104  # platforms (ab)use it in PIC code, but their linkers get confused if
17105  # the symbol is explicitly referenced.  Since portable code cannot
17106  # rely on this symbol name, it's probably fine to never include it in
17107  # preloaded symbol tables.
17108  extract_expsyms_cmds=
17109  # Just being paranoid about ensuring that cc_basename is set.
17110  for cc_temp in $compiler""; do
17111  case $cc_temp in
17112    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17113    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17114    \-*) ;;
17115    *) break;;
17116  esac
17117done
17118cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17119
17120  case $host_os in
17121  cygwin* | mingw* | pw32*)
17122    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17123    # When not using gcc, we currently assume that we are using
17124    # Microsoft Visual C++.
17125    if test "$GCC" != yes; then
17126      with_gnu_ld=no
17127    fi
17128    ;;
17129  interix*)
17130    # we just hope/assume this is gcc and not c89 (= MSVC++)
17131    with_gnu_ld=yes
17132    ;;
17133  openbsd*)
17134    with_gnu_ld=no
17135    ;;
17136  esac
17137
17138  ld_shlibs_GCJ=yes
17139  if test "$with_gnu_ld" = yes; then
17140    # If archive_cmds runs LD, not CC, wlarc should be empty
17141    wlarc='${wl}'
17142
17143    # Set some defaults for GNU ld with shared library support. These
17144    # are reset later if shared libraries are not supported. Putting them
17145    # here allows them to be overridden if necessary.
17146    runpath_var=LD_RUN_PATH
17147    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17148    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17149    # ancient GNU ld didn't support --whole-archive et. al.
17150    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17151	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17152      else
17153  	whole_archive_flag_spec_GCJ=
17154    fi
17155    supports_anon_versioning=no
17156    case `$LD -v 2>/dev/null` in
17157      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17158      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17159      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17160      *\ 2.11.*) ;; # other 2.11 versions
17161      *) supports_anon_versioning=yes ;;
17162    esac
17163
17164    # See if GNU ld supports shared libraries.
17165    case $host_os in
17166    aix3* | aix4* | aix5*)
17167      # On AIX/PPC, the GNU linker is very broken
17168      if test "$host_cpu" != ia64; then
17169	ld_shlibs_GCJ=no
17170	cat <<EOF 1>&2
17171
17172*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17173*** to be unable to reliably create shared libraries on AIX.
17174*** Therefore, libtool is disabling shared libraries support.  If you
17175*** really care for shared libraries, you may want to modify your PATH
17176*** so that a non-GNU linker is found, and then restart.
17177
17178EOF
17179      fi
17180      ;;
17181
17182    amigaos*)
17183      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)'
17184      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17185      hardcode_minus_L_GCJ=yes
17186
17187      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17188      # that the semantics of dynamic libraries on AmigaOS, at least up
17189      # to version 4, is to share data among multiple programs linked
17190      # with the same dynamic library.  Since this doesn't match the
17191      # behavior of shared libraries on other platforms, we can't use
17192      # them.
17193      ld_shlibs_GCJ=no
17194      ;;
17195
17196    beos*)
17197      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17198	allow_undefined_flag_GCJ=unsupported
17199	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17200	# support --undefined.  This deserves some investigation.  FIXME
17201	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17202      else
17203	ld_shlibs_GCJ=no
17204      fi
17205      ;;
17206
17207    cygwin* | mingw* | pw32*)
17208      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17209      # as there is no search path for DLLs.
17210      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17211      allow_undefined_flag_GCJ=unsupported
17212      always_export_symbols_GCJ=no
17213      enable_shared_with_static_runtimes_GCJ=yes
17214      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17215
17216      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17217        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17218	# If the export-symbols file already is a .def file (1st line
17219	# is EXPORTS), use it as is; otherwise, prepend...
17220	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17221	  cp $export_symbols $output_objdir/$soname.def;
17222	else
17223	  echo EXPORTS > $output_objdir/$soname.def;
17224	  cat $export_symbols >> $output_objdir/$soname.def;
17225	fi~
17226	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17227      else
17228	ld_shlibs_GCJ=no
17229      fi
17230      ;;
17231
17232    interix3*)
17233      hardcode_direct_GCJ=no
17234      hardcode_shlibpath_var_GCJ=no
17235      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17236      export_dynamic_flag_spec_GCJ='${wl}-E'
17237      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17238      # Instead, shared libraries are loaded at an image base (0x10000000 by
17239      # default) and relocated if they conflict, which is a slow very memory
17240      # consuming and fragmenting process.  To avoid this, we pick a random,
17241      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17242      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17243      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'
17244      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'
17245      ;;
17246
17247    linux* | k*bsd*-gnu)
17248      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17249	tmp_addflag=
17250	case $cc_basename,$host_cpu in
17251	pgcc*)				# Portland Group C compiler
17252	  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'
17253	  tmp_addflag=' $pic_flag'
17254	  ;;
17255	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17256	  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'
17257	  tmp_addflag=' $pic_flag -Mnomain' ;;
17258	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17259	  tmp_addflag=' -i_dynamic' ;;
17260	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17261	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17262	ifc* | ifort*)			# Intel Fortran compiler
17263	  tmp_addflag=' -nofor_main' ;;
17264	esac
17265	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17266
17267	if test $supports_anon_versioning = yes; then
17268	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17269  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17270  $echo "local: *; };" >> $output_objdir/$libname.ver~
17271	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17272	fi
17273	link_all_deplibs_GCJ=no
17274      else
17275	ld_shlibs_GCJ=no
17276      fi
17277      ;;
17278
17279    netbsd* | netbsdelf*-gnu)
17280      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17281	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17282	wlarc=
17283      else
17284	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17285	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17286      fi
17287      ;;
17288
17289    solaris*)
17290      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17291	ld_shlibs_GCJ=no
17292	cat <<EOF 1>&2
17293
17294*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17295*** create shared libraries on Solaris systems.  Therefore, libtool
17296*** is disabling shared libraries support.  We urge you to upgrade GNU
17297*** binutils to release 2.9.1 or newer.  Another option is to modify
17298*** your PATH or compiler configuration so that the native linker is
17299*** used, and then restart.
17300
17301EOF
17302      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17303	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17304	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17305      else
17306	ld_shlibs_GCJ=no
17307      fi
17308      ;;
17309
17310    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17311      case `$LD -v 2>&1` in
17312        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17313	ld_shlibs_GCJ=no
17314	cat <<_LT_EOF 1>&2
17315
17316*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17317*** reliably create shared libraries on SCO systems.  Therefore, libtool
17318*** is disabling shared libraries support.  We urge you to upgrade GNU
17319*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17320*** your PATH or compiler configuration so that the native linker is
17321*** used, and then restart.
17322
17323_LT_EOF
17324	;;
17325	*)
17326	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17327	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17328	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17329	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17330	  else
17331	    ld_shlibs_GCJ=no
17332	  fi
17333	;;
17334      esac
17335      ;;
17336
17337    sunos4*)
17338      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17339      wlarc=
17340      hardcode_direct_GCJ=yes
17341      hardcode_shlibpath_var_GCJ=no
17342      ;;
17343
17344    *)
17345      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17346	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17347	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17348      else
17349	ld_shlibs_GCJ=no
17350      fi
17351      ;;
17352    esac
17353
17354    if test "$ld_shlibs_GCJ" = no; then
17355      runpath_var=
17356      hardcode_libdir_flag_spec_GCJ=
17357      export_dynamic_flag_spec_GCJ=
17358      whole_archive_flag_spec_GCJ=
17359    fi
17360  else
17361    # PORTME fill in a description of your system's linker (not GNU ld)
17362    case $host_os in
17363    aix3*)
17364      allow_undefined_flag_GCJ=unsupported
17365      always_export_symbols_GCJ=yes
17366      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'
17367      # Note: this linker hardcodes the directories in LIBPATH if there
17368      # are no directories specified by -L.
17369      hardcode_minus_L_GCJ=yes
17370      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17371	# Neither direct hardcoding nor static linking is supported with a
17372	# broken collect2.
17373	hardcode_direct_GCJ=unsupported
17374      fi
17375      ;;
17376
17377    aix4* | aix5*)
17378      if test "$host_cpu" = ia64; then
17379	# On IA64, the linker does run time linking by default, so we don't
17380	# have to do anything special.
17381	aix_use_runtimelinking=no
17382	exp_sym_flag='-Bexport'
17383	no_entry_flag=""
17384      else
17385	# If we're using GNU nm, then we don't want the "-C" option.
17386	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17387	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17388	  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'
17389	else
17390	  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'
17391	fi
17392	aix_use_runtimelinking=no
17393
17394	# Test if we are trying to use run time linking or normal
17395	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17396	# need to do runtime linking.
17397	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17398	  for ld_flag in $LDFLAGS; do
17399  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17400  	    aix_use_runtimelinking=yes
17401  	    break
17402  	  fi
17403	  done
17404	  ;;
17405	esac
17406
17407	exp_sym_flag='-bexport'
17408	no_entry_flag='-bnoentry'
17409      fi
17410
17411      # When large executables or shared objects are built, AIX ld can
17412      # have problems creating the table of contents.  If linking a library
17413      # or program results in "error TOC overflow" add -mminimal-toc to
17414      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17415      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17416
17417      archive_cmds_GCJ=''
17418      hardcode_direct_GCJ=yes
17419      hardcode_libdir_separator_GCJ=':'
17420      link_all_deplibs_GCJ=yes
17421
17422      if test "$GCC" = yes; then
17423	case $host_os in aix4.[012]|aix4.[012].*)
17424	# We only want to do this on AIX 4.2 and lower, the check
17425	# below for broken collect2 doesn't work under 4.3+
17426	  collect2name=`${CC} -print-prog-name=collect2`
17427	  if test -f "$collect2name" && \
17428  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17429	  then
17430  	  # We have reworked collect2
17431  	  hardcode_direct_GCJ=yes
17432	  else
17433  	  # We have old collect2
17434  	  hardcode_direct_GCJ=unsupported
17435  	  # It fails to find uninstalled libraries when the uninstalled
17436  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17437  	  # to unsupported forces relinking
17438  	  hardcode_minus_L_GCJ=yes
17439  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17440  	  hardcode_libdir_separator_GCJ=
17441	  fi
17442	  ;;
17443	esac
17444	shared_flag='-shared'
17445	if test "$aix_use_runtimelinking" = yes; then
17446	  shared_flag="$shared_flag "'${wl}-G'
17447	fi
17448      else
17449	# not using gcc
17450	if test "$host_cpu" = ia64; then
17451  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17452  	# chokes on -Wl,-G. The following line is correct:
17453	  shared_flag='-G'
17454	else
17455	  if test "$aix_use_runtimelinking" = yes; then
17456	    shared_flag='${wl}-G'
17457	  else
17458	    shared_flag='${wl}-bM:SRE'
17459	  fi
17460	fi
17461      fi
17462
17463      # It seems that -bexpall does not export symbols beginning with
17464      # underscore (_), so it is better to generate a list of symbols to export.
17465      always_export_symbols_GCJ=yes
17466      if test "$aix_use_runtimelinking" = yes; then
17467	# Warning - without using the other runtime loading flags (-brtl),
17468	# -berok will link without error, but may produce a broken library.
17469	allow_undefined_flag_GCJ='-berok'
17470       # Determine the default libpath from the value encoded in an empty executable.
17471       cat >conftest.$ac_ext <<_ACEOF
17472/* confdefs.h.  */
17473_ACEOF
17474cat confdefs.h >>conftest.$ac_ext
17475cat >>conftest.$ac_ext <<_ACEOF
17476/* end confdefs.h.  */
17477
17478int
17479main ()
17480{
17481
17482  ;
17483  return 0;
17484}
17485_ACEOF
17486rm -f conftest.$ac_objext conftest$ac_exeext
17487if { (ac_try="$ac_link"
17488case "(($ac_try" in
17489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17490  *) ac_try_echo=$ac_try;;
17491esac
17492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17493  (eval "$ac_link") 2>conftest.er1
17494  ac_status=$?
17495  grep -v '^ *+' conftest.er1 >conftest.err
17496  rm -f conftest.er1
17497  cat conftest.err >&5
17498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499  (exit $ac_status); } &&
17500	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17501  { (case "(($ac_try" in
17502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17503  *) ac_try_echo=$ac_try;;
17504esac
17505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17506  (eval "$ac_try") 2>&5
17507  ac_status=$?
17508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509  (exit $ac_status); }; } &&
17510	 { ac_try='test -s conftest$ac_exeext'
17511  { (case "(($ac_try" in
17512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17513  *) ac_try_echo=$ac_try;;
17514esac
17515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17516  (eval "$ac_try") 2>&5
17517  ac_status=$?
17518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519  (exit $ac_status); }; }; then
17520
17521aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17522}'`
17523# Check for a 64-bit object if we didn't find anything.
17524if 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; }
17525}'`; fi
17526else
17527  echo "$as_me: failed program was:" >&5
17528sed 's/^/| /' conftest.$ac_ext >&5
17529
17530
17531fi
17532
17533rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17534      conftest$ac_exeext conftest.$ac_ext
17535if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17536
17537       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17538	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"
17539       else
17540	if test "$host_cpu" = ia64; then
17541	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17542	  allow_undefined_flag_GCJ="-z nodefs"
17543	  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"
17544	else
17545	 # Determine the default libpath from the value encoded in an empty executable.
17546	 cat >conftest.$ac_ext <<_ACEOF
17547/* confdefs.h.  */
17548_ACEOF
17549cat confdefs.h >>conftest.$ac_ext
17550cat >>conftest.$ac_ext <<_ACEOF
17551/* end confdefs.h.  */
17552
17553int
17554main ()
17555{
17556
17557  ;
17558  return 0;
17559}
17560_ACEOF
17561rm -f conftest.$ac_objext conftest$ac_exeext
17562if { (ac_try="$ac_link"
17563case "(($ac_try" in
17564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17565  *) ac_try_echo=$ac_try;;
17566esac
17567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17568  (eval "$ac_link") 2>conftest.er1
17569  ac_status=$?
17570  grep -v '^ *+' conftest.er1 >conftest.err
17571  rm -f conftest.er1
17572  cat conftest.err >&5
17573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574  (exit $ac_status); } &&
17575	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17576  { (case "(($ac_try" in
17577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17578  *) ac_try_echo=$ac_try;;
17579esac
17580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17581  (eval "$ac_try") 2>&5
17582  ac_status=$?
17583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584  (exit $ac_status); }; } &&
17585	 { ac_try='test -s conftest$ac_exeext'
17586  { (case "(($ac_try" in
17587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588  *) ac_try_echo=$ac_try;;
17589esac
17590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17591  (eval "$ac_try") 2>&5
17592  ac_status=$?
17593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594  (exit $ac_status); }; }; then
17595
17596aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17597}'`
17598# Check for a 64-bit object if we didn't find anything.
17599if 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; }
17600}'`; fi
17601else
17602  echo "$as_me: failed program was:" >&5
17603sed 's/^/| /' conftest.$ac_ext >&5
17604
17605
17606fi
17607
17608rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17609      conftest$ac_exeext conftest.$ac_ext
17610if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17611
17612	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17613	  # Warning - without using the other run time loading flags,
17614	  # -berok will link without error, but may produce a broken library.
17615	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17616	  allow_undefined_flag_GCJ=' ${wl}-berok'
17617	  # Exported symbols can be pulled into shared objects from archives
17618	  whole_archive_flag_spec_GCJ='$convenience'
17619	  archive_cmds_need_lc_GCJ=yes
17620	  # This is similar to how AIX traditionally builds its shared libraries.
17621	  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'
17622	fi
17623      fi
17624      ;;
17625
17626    amigaos*)
17627      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)'
17628      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17629      hardcode_minus_L_GCJ=yes
17630      # see comment about different semantics on the GNU ld section
17631      ld_shlibs_GCJ=no
17632      ;;
17633
17634    bsdi[45]*)
17635      export_dynamic_flag_spec_GCJ=-rdynamic
17636      ;;
17637
17638    cygwin* | mingw* | pw32*)
17639      # When not using gcc, we currently assume that we are using
17640      # Microsoft Visual C++.
17641      # hardcode_libdir_flag_spec is actually meaningless, as there is
17642      # no search path for DLLs.
17643      hardcode_libdir_flag_spec_GCJ=' '
17644      allow_undefined_flag_GCJ=unsupported
17645      # Tell ltmain to make .lib files, not .a files.
17646      libext=lib
17647      # Tell ltmain to make .dll files, not .so files.
17648      shrext_cmds=".dll"
17649      # FIXME: Setting linknames here is a bad hack.
17650      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17651      # The linker will automatically build a .lib file if we build a DLL.
17652      old_archive_From_new_cmds_GCJ='true'
17653      # FIXME: Should let the user specify the lib program.
17654      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17655      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17656      enable_shared_with_static_runtimes_GCJ=yes
17657      ;;
17658
17659    darwin* | rhapsody*)
17660      case $host_os in
17661        rhapsody* | darwin1.[012])
17662         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17663         ;;
17664       *) # Darwin 1.3 on
17665         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17666           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17667         else
17668           case ${MACOSX_DEPLOYMENT_TARGET} in
17669             10.[012])
17670               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17671               ;;
17672             10.*)
17673               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17674               ;;
17675           esac
17676         fi
17677         ;;
17678      esac
17679      archive_cmds_need_lc_GCJ=no
17680      hardcode_direct_GCJ=no
17681      hardcode_automatic_GCJ=yes
17682      hardcode_shlibpath_var_GCJ=unsupported
17683      whole_archive_flag_spec_GCJ=''
17684      link_all_deplibs_GCJ=yes
17685    if test "$GCC" = yes ; then
17686    	output_verbose_link_cmd='echo'
17687        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17688      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17689      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17690      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}'
17691      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}'
17692    else
17693      case $cc_basename in
17694        xlc*)
17695         output_verbose_link_cmd='echo'
17696         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17697         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17698          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17699         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}'
17700          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}'
17701          ;;
17702       *)
17703         ld_shlibs_GCJ=no
17704          ;;
17705      esac
17706    fi
17707      ;;
17708
17709    dgux*)
17710      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17711      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17712      hardcode_shlibpath_var_GCJ=no
17713      ;;
17714
17715    freebsd1*)
17716      ld_shlibs_GCJ=no
17717      ;;
17718
17719    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17720    # support.  Future versions do this automatically, but an explicit c++rt0.o
17721    # does not break anything, and helps significantly (at the cost of a little
17722    # extra space).
17723    freebsd2.2*)
17724      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17725      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17726      hardcode_direct_GCJ=yes
17727      hardcode_shlibpath_var_GCJ=no
17728      ;;
17729
17730    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17731    freebsd2*)
17732      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17733      hardcode_direct_GCJ=yes
17734      hardcode_minus_L_GCJ=yes
17735      hardcode_shlibpath_var_GCJ=no
17736      ;;
17737
17738    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17739    freebsd* | dragonfly*)
17740      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17741      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17742      hardcode_direct_GCJ=yes
17743      hardcode_shlibpath_var_GCJ=no
17744      ;;
17745
17746    hpux9*)
17747      if test "$GCC" = yes; then
17748	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'
17749      else
17750	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'
17751      fi
17752      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17753      hardcode_libdir_separator_GCJ=:
17754      hardcode_direct_GCJ=yes
17755
17756      # hardcode_minus_L: Not really in the search PATH,
17757      # but as the default location of the library.
17758      hardcode_minus_L_GCJ=yes
17759      export_dynamic_flag_spec_GCJ='${wl}-E'
17760      ;;
17761
17762    hpux10*)
17763      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17764	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17765      else
17766	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17767      fi
17768      if test "$with_gnu_ld" = no; then
17769	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17770	hardcode_libdir_separator_GCJ=:
17771
17772	hardcode_direct_GCJ=yes
17773	export_dynamic_flag_spec_GCJ='${wl}-E'
17774
17775	# hardcode_minus_L: Not really in the search PATH,
17776	# but as the default location of the library.
17777	hardcode_minus_L_GCJ=yes
17778      fi
17779      ;;
17780
17781    hpux11*)
17782      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17783	case $host_cpu in
17784	hppa*64*)
17785	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17786	  ;;
17787	ia64*)
17788	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17789	  ;;
17790	*)
17791	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17792	  ;;
17793	esac
17794      else
17795	case $host_cpu in
17796	hppa*64*)
17797	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17798	  ;;
17799	ia64*)
17800	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17801	  ;;
17802	*)
17803	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17804	  ;;
17805	esac
17806      fi
17807      if test "$with_gnu_ld" = no; then
17808	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17809	hardcode_libdir_separator_GCJ=:
17810
17811	case $host_cpu in
17812	hppa*64*|ia64*)
17813	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17814	  hardcode_direct_GCJ=no
17815	  hardcode_shlibpath_var_GCJ=no
17816	  ;;
17817	*)
17818	  hardcode_direct_GCJ=yes
17819	  export_dynamic_flag_spec_GCJ='${wl}-E'
17820
17821	  # hardcode_minus_L: Not really in the search PATH,
17822	  # but as the default location of the library.
17823	  hardcode_minus_L_GCJ=yes
17824	  ;;
17825	esac
17826      fi
17827      ;;
17828
17829    irix5* | irix6* | nonstopux*)
17830      if test "$GCC" = yes; then
17831	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'
17832      else
17833	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'
17834	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17835      fi
17836      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17837      hardcode_libdir_separator_GCJ=:
17838      link_all_deplibs_GCJ=yes
17839      ;;
17840
17841    netbsd* | netbsdelf*-gnu)
17842      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17843	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17844      else
17845	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17846      fi
17847      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17848      hardcode_direct_GCJ=yes
17849      hardcode_shlibpath_var_GCJ=no
17850      ;;
17851
17852    newsos6)
17853      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17854      hardcode_direct_GCJ=yes
17855      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17856      hardcode_libdir_separator_GCJ=:
17857      hardcode_shlibpath_var_GCJ=no
17858      ;;
17859
17860    openbsd*)
17861      hardcode_direct_GCJ=yes
17862      hardcode_shlibpath_var_GCJ=no
17863      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17864	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17865	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17866	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17867	export_dynamic_flag_spec_GCJ='${wl}-E'
17868      else
17869       case $host_os in
17870	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17871	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17872	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17873	   ;;
17874	 *)
17875	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17876	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17877	   ;;
17878       esac
17879      fi
17880      ;;
17881
17882    os2*)
17883      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17884      hardcode_minus_L_GCJ=yes
17885      allow_undefined_flag_GCJ=unsupported
17886      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'
17887      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17888      ;;
17889
17890    osf3*)
17891      if test "$GCC" = yes; then
17892	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17893	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'
17894      else
17895	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17896	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'
17897      fi
17898      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17899      hardcode_libdir_separator_GCJ=:
17900      ;;
17901
17902    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17903      if test "$GCC" = yes; then
17904	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17905	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'
17906	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17907      else
17908	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17909	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'
17910	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~
17911	$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'
17912
17913	# Both c and cxx compiler support -rpath directly
17914	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17915      fi
17916      hardcode_libdir_separator_GCJ=:
17917      ;;
17918
17919    solaris*)
17920      no_undefined_flag_GCJ=' -z text'
17921      if test "$GCC" = yes; then
17922	wlarc='${wl}'
17923	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17924	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17925	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17926      else
17927	wlarc=''
17928	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17929	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17930  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17931      fi
17932      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17933      hardcode_shlibpath_var_GCJ=no
17934      case $host_os in
17935      solaris2.[0-5] | solaris2.[0-5].*) ;;
17936      *)
17937 	# The compiler driver will combine linker options so we
17938 	# cannot just pass the convience library names through
17939 	# without $wl, iff we do not link with $LD.
17940 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17941 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17942 	case $wlarc in
17943 	'')
17944 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17945 	*)
17946 	  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' ;;
17947 	esac ;;
17948      esac
17949      link_all_deplibs_GCJ=yes
17950      ;;
17951
17952    sunos4*)
17953      if test "x$host_vendor" = xsequent; then
17954	# Use $CC to link under sequent, because it throws in some extra .o
17955	# files that make .init and .fini sections work.
17956	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17957      else
17958	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17959      fi
17960      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17961      hardcode_direct_GCJ=yes
17962      hardcode_minus_L_GCJ=yes
17963      hardcode_shlibpath_var_GCJ=no
17964      ;;
17965
17966    sysv4)
17967      case $host_vendor in
17968	sni)
17969	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17970	  hardcode_direct_GCJ=yes # is this really true???
17971	;;
17972	siemens)
17973	  ## LD is ld it makes a PLAMLIB
17974	  ## CC just makes a GrossModule.
17975	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17976	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17977	  hardcode_direct_GCJ=no
17978        ;;
17979	motorola)
17980	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17981	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17982	;;
17983      esac
17984      runpath_var='LD_RUN_PATH'
17985      hardcode_shlibpath_var_GCJ=no
17986      ;;
17987
17988    sysv4.3*)
17989      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17990      hardcode_shlibpath_var_GCJ=no
17991      export_dynamic_flag_spec_GCJ='-Bexport'
17992      ;;
17993
17994    sysv4*MP*)
17995      if test -d /usr/nec; then
17996	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17997	hardcode_shlibpath_var_GCJ=no
17998	runpath_var=LD_RUN_PATH
17999	hardcode_runpath_var=yes
18000	ld_shlibs_GCJ=yes
18001      fi
18002      ;;
18003
18004    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18005      no_undefined_flag_GCJ='${wl}-z,text'
18006      archive_cmds_need_lc_GCJ=no
18007      hardcode_shlibpath_var_GCJ=no
18008      runpath_var='LD_RUN_PATH'
18009
18010      if test "$GCC" = yes; then
18011	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18012	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18013      else
18014	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18015	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18016      fi
18017      ;;
18018
18019    sysv5* | sco3.2v5* | sco5v6*)
18020      # Note: We can NOT use -z defs as we might desire, because we do not
18021      # link with -lc, and that would cause any symbols used from libc to
18022      # always be unresolved, which means just about no library would
18023      # ever link correctly.  If we're not using GNU ld we use -z text
18024      # though, which does catch some bad symbols but isn't as heavy-handed
18025      # as -z defs.
18026      no_undefined_flag_GCJ='${wl}-z,text'
18027      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18028      archive_cmds_need_lc_GCJ=no
18029      hardcode_shlibpath_var_GCJ=no
18030      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18031      hardcode_libdir_separator_GCJ=':'
18032      link_all_deplibs_GCJ=yes
18033      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18034      runpath_var='LD_RUN_PATH'
18035
18036      if test "$GCC" = yes; then
18037	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18038	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18039      else
18040	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18041	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18042      fi
18043      ;;
18044
18045    uts4*)
18046      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18047      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18048      hardcode_shlibpath_var_GCJ=no
18049      ;;
18050
18051    *)
18052      ld_shlibs_GCJ=no
18053      ;;
18054    esac
18055  fi
18056
18057{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18058echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18059test "$ld_shlibs_GCJ" = no && can_build_shared=no
18060
18061#
18062# Do we need to explicitly link libc?
18063#
18064case "x$archive_cmds_need_lc_GCJ" in
18065x|xyes)
18066  # Assume -lc should be added
18067  archive_cmds_need_lc_GCJ=yes
18068
18069  if test "$enable_shared" = yes && test "$GCC" = yes; then
18070    case $archive_cmds_GCJ in
18071    *'~'*)
18072      # FIXME: we may have to deal with multi-command sequences.
18073      ;;
18074    '$CC '*)
18075      # Test whether the compiler implicitly links with -lc since on some
18076      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18077      # to ld, don't add -lc before -lgcc.
18078      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18079echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18080      $rm conftest*
18081      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18082
18083      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18084  (eval $ac_compile) 2>&5
18085  ac_status=$?
18086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087  (exit $ac_status); } 2>conftest.err; then
18088        soname=conftest
18089        lib=conftest
18090        libobjs=conftest.$ac_objext
18091        deplibs=
18092        wl=$lt_prog_compiler_wl_GCJ
18093	pic_flag=$lt_prog_compiler_pic_GCJ
18094        compiler_flags=-v
18095        linker_flags=-v
18096        verstring=
18097        output_objdir=.
18098        libname=conftest
18099        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18100        allow_undefined_flag_GCJ=
18101        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18102  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18103  ac_status=$?
18104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105  (exit $ac_status); }
18106        then
18107	  archive_cmds_need_lc_GCJ=no
18108        else
18109	  archive_cmds_need_lc_GCJ=yes
18110        fi
18111        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18112      else
18113        cat conftest.err 1>&5
18114      fi
18115      $rm conftest*
18116      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18117echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18118      ;;
18119    esac
18120  fi
18121  ;;
18122esac
18123
18124{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18125echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18126library_names_spec=
18127libname_spec='lib$name'
18128soname_spec=
18129shrext_cmds=".so"
18130postinstall_cmds=
18131postuninstall_cmds=
18132finish_cmds=
18133finish_eval=
18134shlibpath_var=
18135shlibpath_overrides_runpath=unknown
18136version_type=none
18137dynamic_linker="$host_os ld.so"
18138sys_lib_dlsearch_path_spec="/lib /usr/lib"
18139if test "$GCC" = yes; then
18140  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18141  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18142    # if the path contains ";" then we assume it to be the separator
18143    # otherwise default to the standard path separator (i.e. ":") - it is
18144    # assumed that no part of a normal pathname contains ";" but that should
18145    # okay in the real world where ";" in dirpaths is itself problematic.
18146    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18147  else
18148    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18149  fi
18150else
18151  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18152fi
18153need_lib_prefix=unknown
18154hardcode_into_libs=no
18155
18156# when you set need_version to no, make sure it does not cause -set_version
18157# flags to be left without arguments
18158need_version=unknown
18159
18160case $host_os in
18161aix3*)
18162  version_type=linux
18163  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18164  shlibpath_var=LIBPATH
18165
18166  # AIX 3 has no versioning support, so we append a major version to the name.
18167  soname_spec='${libname}${release}${shared_ext}$major'
18168  ;;
18169
18170aix4* | aix5*)
18171  version_type=linux
18172  need_lib_prefix=no
18173  need_version=no
18174  hardcode_into_libs=yes
18175  if test "$host_cpu" = ia64; then
18176    # AIX 5 supports IA64
18177    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18178    shlibpath_var=LD_LIBRARY_PATH
18179  else
18180    # With GCC up to 2.95.x, collect2 would create an import file
18181    # for dependence libraries.  The import file would start with
18182    # the line `#! .'.  This would cause the generated library to
18183    # depend on `.', always an invalid library.  This was fixed in
18184    # development snapshots of GCC prior to 3.0.
18185    case $host_os in
18186      aix4 | aix4.[01] | aix4.[01].*)
18187      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18188	   echo ' yes '
18189	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18190	:
18191      else
18192	can_build_shared=no
18193      fi
18194      ;;
18195    esac
18196    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18197    # soname into executable. Probably we can add versioning support to
18198    # collect2, so additional links can be useful in future.
18199    if test "$aix_use_runtimelinking" = yes; then
18200      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18201      # instead of lib<name>.a to let people know that these are not
18202      # typical AIX shared libraries.
18203      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18204    else
18205      # We preserve .a as extension for shared libraries through AIX4.2
18206      # and later when we are not doing run time linking.
18207      library_names_spec='${libname}${release}.a $libname.a'
18208      soname_spec='${libname}${release}${shared_ext}$major'
18209    fi
18210    shlibpath_var=LIBPATH
18211  fi
18212  ;;
18213
18214amigaos*)
18215  library_names_spec='$libname.ixlibrary $libname.a'
18216  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18217  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'
18218  ;;
18219
18220beos*)
18221  library_names_spec='${libname}${shared_ext}'
18222  dynamic_linker="$host_os ld.so"
18223  shlibpath_var=LIBRARY_PATH
18224  ;;
18225
18226bsdi[45]*)
18227  version_type=linux
18228  need_version=no
18229  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18230  soname_spec='${libname}${release}${shared_ext}$major'
18231  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18232  shlibpath_var=LD_LIBRARY_PATH
18233  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18234  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18235  # the default ld.so.conf also contains /usr/contrib/lib and
18236  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18237  # libtool to hard-code these into programs
18238  ;;
18239
18240cygwin* | mingw* | pw32*)
18241  version_type=windows
18242  shrext_cmds=".dll"
18243  need_version=no
18244  need_lib_prefix=no
18245
18246  case $GCC,$host_os in
18247  yes,cygwin* | yes,mingw* | yes,pw32*)
18248    library_names_spec='$libname.dll.a'
18249    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18250    postinstall_cmds='base_file=`basename \${file}`~
18251      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18252      dldir=$destdir/`dirname \$dlpath`~
18253      test -d \$dldir || mkdir -p \$dldir~
18254      $install_prog $dir/$dlname \$dldir/$dlname~
18255      chmod a+x \$dldir/$dlname'
18256    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18257      dlpath=$dir/\$dldll~
18258       $rm \$dlpath'
18259    shlibpath_overrides_runpath=yes
18260
18261    case $host_os in
18262    cygwin*)
18263      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18264      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18265      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18266      ;;
18267    mingw*)
18268      # MinGW DLLs use traditional 'lib' prefix
18269      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18270      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18271      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18272        # It is most probably a Windows format PATH printed by
18273        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18274        # path with ; separators, and with drive letters. We can handle the
18275        # drive letters (cygwin fileutils understands them), so leave them,
18276        # especially as we might pass files found there to a mingw objdump,
18277        # which wouldn't understand a cygwinified path. Ahh.
18278        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18279      else
18280        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18281      fi
18282      ;;
18283    pw32*)
18284      # pw32 DLLs use 'pw' prefix rather than 'lib'
18285      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18286      ;;
18287    esac
18288    ;;
18289
18290  *)
18291    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18292    ;;
18293  esac
18294  dynamic_linker='Win32 ld.exe'
18295  # FIXME: first we should search . and the directory the executable is in
18296  shlibpath_var=PATH
18297  ;;
18298
18299darwin* | rhapsody*)
18300  dynamic_linker="$host_os dyld"
18301  version_type=darwin
18302  need_lib_prefix=no
18303  need_version=no
18304  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18305  soname_spec='${libname}${release}${major}$shared_ext'
18306  shlibpath_overrides_runpath=yes
18307  shlibpath_var=DYLD_LIBRARY_PATH
18308  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18309  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18310  if test "$GCC" = yes; then
18311    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"`
18312  else
18313    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18314  fi
18315  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18316  ;;
18317
18318dgux*)
18319  version_type=linux
18320  need_lib_prefix=no
18321  need_version=no
18322  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18323  soname_spec='${libname}${release}${shared_ext}$major'
18324  shlibpath_var=LD_LIBRARY_PATH
18325  ;;
18326
18327freebsd1*)
18328  dynamic_linker=no
18329  ;;
18330
18331freebsd* | dragonfly*)
18332  # DragonFly does not have aout.  When/if they implement a new
18333  # versioning mechanism, adjust this.
18334  if test -x /usr/bin/objformat; then
18335    objformat=`/usr/bin/objformat`
18336  else
18337    case $host_os in
18338    freebsd[123]*) objformat=aout ;;
18339    *) objformat=elf ;;
18340    esac
18341  fi
18342  version_type=freebsd-$objformat
18343  case $version_type in
18344    freebsd-elf*)
18345      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18346      need_version=no
18347      need_lib_prefix=no
18348      ;;
18349    freebsd-*)
18350      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18351      need_version=yes
18352      ;;
18353  esac
18354  shlibpath_var=LD_LIBRARY_PATH
18355  case $host_os in
18356  freebsd2*)
18357    shlibpath_overrides_runpath=yes
18358    ;;
18359  freebsd3.[01]* | freebsdelf3.[01]*)
18360    shlibpath_overrides_runpath=yes
18361    hardcode_into_libs=yes
18362    ;;
18363  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18364  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18365    shlibpath_overrides_runpath=no
18366    hardcode_into_libs=yes
18367    ;;
18368  freebsd*) # from 4.6 on
18369    shlibpath_overrides_runpath=yes
18370    hardcode_into_libs=yes
18371    ;;
18372  esac
18373  ;;
18374
18375gnu*)
18376  version_type=linux
18377  need_lib_prefix=no
18378  need_version=no
18379  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18380  soname_spec='${libname}${release}${shared_ext}$major'
18381  shlibpath_var=LD_LIBRARY_PATH
18382  hardcode_into_libs=yes
18383  ;;
18384
18385hpux9* | hpux10* | hpux11*)
18386  # Give a soname corresponding to the major version so that dld.sl refuses to
18387  # link against other versions.
18388  version_type=sunos
18389  need_lib_prefix=no
18390  need_version=no
18391  case $host_cpu in
18392  ia64*)
18393    shrext_cmds='.so'
18394    hardcode_into_libs=yes
18395    dynamic_linker="$host_os dld.so"
18396    shlibpath_var=LD_LIBRARY_PATH
18397    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18398    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18399    soname_spec='${libname}${release}${shared_ext}$major'
18400    if test "X$HPUX_IA64_MODE" = X32; then
18401      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18402    else
18403      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18404    fi
18405    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18406    ;;
18407   hppa*64*)
18408     shrext_cmds='.sl'
18409     hardcode_into_libs=yes
18410     dynamic_linker="$host_os dld.sl"
18411     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18412     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18413     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18414     soname_spec='${libname}${release}${shared_ext}$major'
18415     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18416     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18417     ;;
18418   *)
18419    shrext_cmds='.sl'
18420    dynamic_linker="$host_os dld.sl"
18421    shlibpath_var=SHLIB_PATH
18422    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18423    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18424    soname_spec='${libname}${release}${shared_ext}$major'
18425    ;;
18426  esac
18427  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18428  postinstall_cmds='chmod 555 $lib'
18429  ;;
18430
18431interix3*)
18432  version_type=linux
18433  need_lib_prefix=no
18434  need_version=no
18435  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18436  soname_spec='${libname}${release}${shared_ext}$major'
18437  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18438  shlibpath_var=LD_LIBRARY_PATH
18439  shlibpath_overrides_runpath=no
18440  hardcode_into_libs=yes
18441  ;;
18442
18443irix5* | irix6* | nonstopux*)
18444  case $host_os in
18445    nonstopux*) version_type=nonstopux ;;
18446    *)
18447	if test "$lt_cv_prog_gnu_ld" = yes; then
18448		version_type=linux
18449	else
18450		version_type=irix
18451	fi ;;
18452  esac
18453  need_lib_prefix=no
18454  need_version=no
18455  soname_spec='${libname}${release}${shared_ext}$major'
18456  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18457  case $host_os in
18458  irix5* | nonstopux*)
18459    libsuff= shlibsuff=
18460    ;;
18461  *)
18462    case $LD in # libtool.m4 will add one of these switches to LD
18463    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18464      libsuff= shlibsuff= libmagic=32-bit;;
18465    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18466      libsuff=32 shlibsuff=N32 libmagic=N32;;
18467    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18468      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18469    *) libsuff= shlibsuff= libmagic=never-match;;
18470    esac
18471    ;;
18472  esac
18473  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18474  shlibpath_overrides_runpath=no
18475  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18476  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18477  hardcode_into_libs=yes
18478  ;;
18479
18480# No shared lib support for Linux oldld, aout, or coff.
18481linux*oldld* | linux*aout* | linux*coff*)
18482  dynamic_linker=no
18483  ;;
18484
18485# This must be Linux ELF.
18486linux* | k*bsd*-gnu)
18487  version_type=linux
18488  need_lib_prefix=no
18489  need_version=no
18490  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18491  soname_spec='${libname}${release}${shared_ext}$major'
18492  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18493  shlibpath_var=LD_LIBRARY_PATH
18494  shlibpath_overrides_runpath=no
18495  # This implies no fast_install, which is unacceptable.
18496  # Some rework will be needed to allow for fast_install
18497  # before this can be enabled.
18498  hardcode_into_libs=yes
18499
18500  # Append ld.so.conf contents to the search path
18501  if test -f /etc/ld.so.conf; then
18502    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' ' '`
18503    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18504  fi
18505
18506  # We used to test for /lib/ld.so.1 and disable shared libraries on
18507  # powerpc, because MkLinux only supported shared libraries with the
18508  # GNU dynamic linker.  Since this was broken with cross compilers,
18509  # most powerpc-linux boxes support dynamic linking these days and
18510  # people can always --disable-shared, the test was removed, and we
18511  # assume the GNU/Linux dynamic linker is in use.
18512  dynamic_linker='GNU/Linux ld.so'
18513  ;;
18514
18515netbsdelf*-gnu)
18516  version_type=linux
18517  need_lib_prefix=no
18518  need_version=no
18519  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18520  soname_spec='${libname}${release}${shared_ext}$major'
18521  shlibpath_var=LD_LIBRARY_PATH
18522  shlibpath_overrides_runpath=no
18523  hardcode_into_libs=yes
18524  dynamic_linker='NetBSD ld.elf_so'
18525  ;;
18526
18527netbsd*)
18528  version_type=sunos
18529  need_lib_prefix=no
18530  need_version=no
18531  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18532    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18533    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18534    dynamic_linker='NetBSD (a.out) ld.so'
18535  else
18536    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18537    soname_spec='${libname}${release}${shared_ext}$major'
18538    dynamic_linker='NetBSD ld.elf_so'
18539  fi
18540  shlibpath_var=LD_LIBRARY_PATH
18541  shlibpath_overrides_runpath=yes
18542  hardcode_into_libs=yes
18543  ;;
18544
18545newsos6)
18546  version_type=linux
18547  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18548  shlibpath_var=LD_LIBRARY_PATH
18549  shlibpath_overrides_runpath=yes
18550  ;;
18551
18552nto-qnx*)
18553  version_type=linux
18554  need_lib_prefix=no
18555  need_version=no
18556  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18557  soname_spec='${libname}${release}${shared_ext}$major'
18558  shlibpath_var=LD_LIBRARY_PATH
18559  shlibpath_overrides_runpath=yes
18560  ;;
18561
18562openbsd*)
18563  version_type=sunos
18564  sys_lib_dlsearch_path_spec="/usr/lib"
18565  need_lib_prefix=no
18566  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18567  case $host_os in
18568    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18569    *)                         need_version=no  ;;
18570  esac
18571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18572  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18573  shlibpath_var=LD_LIBRARY_PATH
18574  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18575    case $host_os in
18576      openbsd2.[89] | openbsd2.[89].*)
18577	shlibpath_overrides_runpath=no
18578	;;
18579      *)
18580	shlibpath_overrides_runpath=yes
18581	;;
18582      esac
18583  else
18584    shlibpath_overrides_runpath=yes
18585  fi
18586  ;;
18587
18588os2*)
18589  libname_spec='$name'
18590  shrext_cmds=".dll"
18591  need_lib_prefix=no
18592  library_names_spec='$libname${shared_ext} $libname.a'
18593  dynamic_linker='OS/2 ld.exe'
18594  shlibpath_var=LIBPATH
18595  ;;
18596
18597osf3* | osf4* | osf5*)
18598  version_type=osf
18599  need_lib_prefix=no
18600  need_version=no
18601  soname_spec='${libname}${release}${shared_ext}$major'
18602  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18603  shlibpath_var=LD_LIBRARY_PATH
18604  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18605  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18606  ;;
18607
18608solaris*)
18609  version_type=linux
18610  need_lib_prefix=no
18611  need_version=no
18612  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18613  soname_spec='${libname}${release}${shared_ext}$major'
18614  shlibpath_var=LD_LIBRARY_PATH
18615  shlibpath_overrides_runpath=yes
18616  hardcode_into_libs=yes
18617  # ldd complains unless libraries are executable
18618  postinstall_cmds='chmod +x $lib'
18619  ;;
18620
18621sunos4*)
18622  version_type=sunos
18623  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18624  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18625  shlibpath_var=LD_LIBRARY_PATH
18626  shlibpath_overrides_runpath=yes
18627  if test "$with_gnu_ld" = yes; then
18628    need_lib_prefix=no
18629  fi
18630  need_version=yes
18631  ;;
18632
18633sysv4 | sysv4.3*)
18634  version_type=linux
18635  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18636  soname_spec='${libname}${release}${shared_ext}$major'
18637  shlibpath_var=LD_LIBRARY_PATH
18638  case $host_vendor in
18639    sni)
18640      shlibpath_overrides_runpath=no
18641      need_lib_prefix=no
18642      export_dynamic_flag_spec='${wl}-Blargedynsym'
18643      runpath_var=LD_RUN_PATH
18644      ;;
18645    siemens)
18646      need_lib_prefix=no
18647      ;;
18648    motorola)
18649      need_lib_prefix=no
18650      need_version=no
18651      shlibpath_overrides_runpath=no
18652      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18653      ;;
18654  esac
18655  ;;
18656
18657sysv4*MP*)
18658  if test -d /usr/nec ;then
18659    version_type=linux
18660    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18661    soname_spec='$libname${shared_ext}.$major'
18662    shlibpath_var=LD_LIBRARY_PATH
18663  fi
18664  ;;
18665
18666sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18667  version_type=freebsd-elf
18668  need_lib_prefix=no
18669  need_version=no
18670  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18671  soname_spec='${libname}${release}${shared_ext}$major'
18672  shlibpath_var=LD_LIBRARY_PATH
18673  hardcode_into_libs=yes
18674  if test "$with_gnu_ld" = yes; then
18675    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18676    shlibpath_overrides_runpath=no
18677  else
18678    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18679    shlibpath_overrides_runpath=yes
18680    case $host_os in
18681      sco3.2v5*)
18682        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18683	;;
18684    esac
18685  fi
18686  sys_lib_dlsearch_path_spec='/usr/lib'
18687  ;;
18688
18689uts4*)
18690  version_type=linux
18691  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18692  soname_spec='${libname}${release}${shared_ext}$major'
18693  shlibpath_var=LD_LIBRARY_PATH
18694  ;;
18695
18696*)
18697  dynamic_linker=no
18698  ;;
18699esac
18700{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18701echo "${ECHO_T}$dynamic_linker" >&6; }
18702test "$dynamic_linker" = no && can_build_shared=no
18703
18704variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18705if test "$GCC" = yes; then
18706  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18707fi
18708
18709{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18710echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18711hardcode_action_GCJ=
18712if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18713   test -n "$runpath_var_GCJ" || \
18714   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18715
18716  # We can hardcode non-existant directories.
18717  if test "$hardcode_direct_GCJ" != no &&
18718     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18719     # have to relink, otherwise we might link with an installed library
18720     # when we should be linking with a yet-to-be-installed one
18721     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18722     test "$hardcode_minus_L_GCJ" != no; then
18723    # Linking always hardcodes the temporary library directory.
18724    hardcode_action_GCJ=relink
18725  else
18726    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18727    hardcode_action_GCJ=immediate
18728  fi
18729else
18730  # We cannot hardcode anything, or else we can only hardcode existing
18731  # directories.
18732  hardcode_action_GCJ=unsupported
18733fi
18734{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18735echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18736
18737if test "$hardcode_action_GCJ" = relink; then
18738  # Fast installation is not supported
18739  enable_fast_install=no
18740elif test "$shlibpath_overrides_runpath" = yes ||
18741     test "$enable_shared" = no; then
18742  # Fast installation is not necessary
18743  enable_fast_install=needless
18744fi
18745
18746
18747# The else clause should only fire when bootstrapping the
18748# libtool distribution, otherwise you forgot to ship ltmain.sh
18749# with your package, and you will get complaints that there are
18750# no rules to generate ltmain.sh.
18751if test -f "$ltmain"; then
18752  # See if we are running on zsh, and set the options which allow our commands through
18753  # without removal of \ escapes.
18754  if test -n "${ZSH_VERSION+set}" ; then
18755    setopt NO_GLOB_SUBST
18756  fi
18757  # Now quote all the things that may contain metacharacters while being
18758  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18759  # variables and quote the copies for generation of the libtool script.
18760  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18761    SED SHELL STRIP \
18762    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18763    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18764    deplibs_check_method reload_flag reload_cmds need_locks \
18765    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18766    lt_cv_sys_global_symbol_to_c_name_address \
18767    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18768    old_postinstall_cmds old_postuninstall_cmds \
18769    compiler_GCJ \
18770    CC_GCJ \
18771    LD_GCJ \
18772    lt_prog_compiler_wl_GCJ \
18773    lt_prog_compiler_pic_GCJ \
18774    lt_prog_compiler_static_GCJ \
18775    lt_prog_compiler_no_builtin_flag_GCJ \
18776    export_dynamic_flag_spec_GCJ \
18777    thread_safe_flag_spec_GCJ \
18778    whole_archive_flag_spec_GCJ \
18779    enable_shared_with_static_runtimes_GCJ \
18780    old_archive_cmds_GCJ \
18781    old_archive_from_new_cmds_GCJ \
18782    predep_objects_GCJ \
18783    postdep_objects_GCJ \
18784    predeps_GCJ \
18785    postdeps_GCJ \
18786    compiler_lib_search_path_GCJ \
18787    archive_cmds_GCJ \
18788    archive_expsym_cmds_GCJ \
18789    postinstall_cmds_GCJ \
18790    postuninstall_cmds_GCJ \
18791    old_archive_from_expsyms_cmds_GCJ \
18792    allow_undefined_flag_GCJ \
18793    no_undefined_flag_GCJ \
18794    export_symbols_cmds_GCJ \
18795    hardcode_libdir_flag_spec_GCJ \
18796    hardcode_libdir_flag_spec_ld_GCJ \
18797    hardcode_libdir_separator_GCJ \
18798    hardcode_automatic_GCJ \
18799    module_cmds_GCJ \
18800    module_expsym_cmds_GCJ \
18801    lt_cv_prog_compiler_c_o_GCJ \
18802    exclude_expsyms_GCJ \
18803    include_expsyms_GCJ; do
18804
18805    case $var in
18806    old_archive_cmds_GCJ | \
18807    old_archive_from_new_cmds_GCJ | \
18808    archive_cmds_GCJ | \
18809    archive_expsym_cmds_GCJ | \
18810    module_cmds_GCJ | \
18811    module_expsym_cmds_GCJ | \
18812    old_archive_from_expsyms_cmds_GCJ | \
18813    export_symbols_cmds_GCJ | \
18814    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18815    postinstall_cmds | postuninstall_cmds | \
18816    old_postinstall_cmds | old_postuninstall_cmds | \
18817    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18818      # Double-quote double-evaled strings.
18819      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18820      ;;
18821    *)
18822      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18823      ;;
18824    esac
18825  done
18826
18827  case $lt_echo in
18828  *'\$0 --fallback-echo"')
18829    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18830    ;;
18831  esac
18832
18833cfgfile="$ofile"
18834
18835  cat <<__EOF__ >> "$cfgfile"
18836# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18837
18838# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18839
18840# Shell to use when invoking shell scripts.
18841SHELL=$lt_SHELL
18842
18843# Whether or not to build shared libraries.
18844build_libtool_libs=$enable_shared
18845
18846# Whether or not to build static libraries.
18847build_old_libs=$enable_static
18848
18849# Whether or not to add -lc for building shared libraries.
18850build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18851
18852# Whether or not to disallow shared libs when runtime libs are static
18853allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18854
18855# Whether or not to optimize for fast installation.
18856fast_install=$enable_fast_install
18857
18858# The host system.
18859host_alias=$host_alias
18860host=$host
18861host_os=$host_os
18862
18863# The build system.
18864build_alias=$build_alias
18865build=$build
18866build_os=$build_os
18867
18868# An echo program that does not interpret backslashes.
18869echo=$lt_echo
18870
18871# The archiver.
18872AR=$lt_AR
18873AR_FLAGS=$lt_AR_FLAGS
18874
18875# A C compiler.
18876LTCC=$lt_LTCC
18877
18878# LTCC compiler flags.
18879LTCFLAGS=$lt_LTCFLAGS
18880
18881# A language-specific compiler.
18882CC=$lt_compiler_GCJ
18883
18884# Is the compiler the GNU C compiler?
18885with_gcc=$GCC_GCJ
18886
18887# An ERE matcher.
18888EGREP=$lt_EGREP
18889
18890# The linker used to build libraries.
18891LD=$lt_LD_GCJ
18892
18893# Whether we need hard or soft links.
18894LN_S=$lt_LN_S
18895
18896# A BSD-compatible nm program.
18897NM=$lt_NM
18898
18899# A symbol stripping program
18900STRIP=$lt_STRIP
18901
18902# Used to examine libraries when file_magic_cmd begins "file"
18903MAGIC_CMD=$MAGIC_CMD
18904
18905# Used on cygwin: DLL creation program.
18906DLLTOOL="$DLLTOOL"
18907
18908# Used on cygwin: object dumper.
18909OBJDUMP="$OBJDUMP"
18910
18911# Used on cygwin: assembler.
18912AS="$AS"
18913
18914# The name of the directory that contains temporary libtool files.
18915objdir=$objdir
18916
18917# How to create reloadable object files.
18918reload_flag=$lt_reload_flag
18919reload_cmds=$lt_reload_cmds
18920
18921# How to pass a linker flag through the compiler.
18922wl=$lt_lt_prog_compiler_wl_GCJ
18923
18924# Object file suffix (normally "o").
18925objext="$ac_objext"
18926
18927# Old archive suffix (normally "a").
18928libext="$libext"
18929
18930# Shared library suffix (normally ".so").
18931shrext_cmds='$shrext_cmds'
18932
18933# Executable file suffix (normally "").
18934exeext="$exeext"
18935
18936# Additional compiler flags for building library objects.
18937pic_flag=$lt_lt_prog_compiler_pic_GCJ
18938pic_mode=$pic_mode
18939
18940# What is the maximum length of a command?
18941max_cmd_len=$lt_cv_sys_max_cmd_len
18942
18943# Does compiler simultaneously support -c and -o options?
18944compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18945
18946# Must we lock files when doing compilation?
18947need_locks=$lt_need_locks
18948
18949# Do we need the lib prefix for modules?
18950need_lib_prefix=$need_lib_prefix
18951
18952# Do we need a version for libraries?
18953need_version=$need_version
18954
18955# Whether dlopen is supported.
18956dlopen_support=$enable_dlopen
18957
18958# Whether dlopen of programs is supported.
18959dlopen_self=$enable_dlopen_self
18960
18961# Whether dlopen of statically linked programs is supported.
18962dlopen_self_static=$enable_dlopen_self_static
18963
18964# Compiler flag to prevent dynamic linking.
18965link_static_flag=$lt_lt_prog_compiler_static_GCJ
18966
18967# Compiler flag to turn off builtin functions.
18968no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18969
18970# Compiler flag to allow reflexive dlopens.
18971export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18972
18973# Compiler flag to generate shared objects directly from archives.
18974whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18975
18976# Compiler flag to generate thread-safe objects.
18977thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18978
18979# Library versioning type.
18980version_type=$version_type
18981
18982# Format of library name prefix.
18983libname_spec=$lt_libname_spec
18984
18985# List of archive names.  First name is the real one, the rest are links.
18986# The last name is the one that the linker finds with -lNAME.
18987library_names_spec=$lt_library_names_spec
18988
18989# The coded name of the library, if different from the real name.
18990soname_spec=$lt_soname_spec
18991
18992# Commands used to build and install an old-style archive.
18993RANLIB=$lt_RANLIB
18994old_archive_cmds=$lt_old_archive_cmds_GCJ
18995old_postinstall_cmds=$lt_old_postinstall_cmds
18996old_postuninstall_cmds=$lt_old_postuninstall_cmds
18997
18998# Create an old-style archive from a shared archive.
18999old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19000
19001# Create a temporary old-style archive to link instead of a shared archive.
19002old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19003
19004# Commands used to build and install a shared archive.
19005archive_cmds=$lt_archive_cmds_GCJ
19006archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19007postinstall_cmds=$lt_postinstall_cmds
19008postuninstall_cmds=$lt_postuninstall_cmds
19009
19010# Commands used to build a loadable module (assumed same as above if empty)
19011module_cmds=$lt_module_cmds_GCJ
19012module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19013
19014# Commands to strip libraries.
19015old_striplib=$lt_old_striplib
19016striplib=$lt_striplib
19017
19018# Dependencies to place before the objects being linked to create a
19019# shared library.
19020predep_objects=$lt_predep_objects_GCJ
19021
19022# Dependencies to place after the objects being linked to create a
19023# shared library.
19024postdep_objects=$lt_postdep_objects_GCJ
19025
19026# Dependencies to place before the objects being linked to create a
19027# shared library.
19028predeps=$lt_predeps_GCJ
19029
19030# Dependencies to place after the objects being linked to create a
19031# shared library.
19032postdeps=$lt_postdeps_GCJ
19033
19034# The library search path used internally by the compiler when linking
19035# a shared library.
19036compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19037
19038# Method to check whether dependent libraries are shared objects.
19039deplibs_check_method=$lt_deplibs_check_method
19040
19041# Command to use when deplibs_check_method == file_magic.
19042file_magic_cmd=$lt_file_magic_cmd
19043
19044# Flag that allows shared libraries with undefined symbols to be built.
19045allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19046
19047# Flag that forces no undefined symbols.
19048no_undefined_flag=$lt_no_undefined_flag_GCJ
19049
19050# Commands used to finish a libtool library installation in a directory.
19051finish_cmds=$lt_finish_cmds
19052
19053# Same as above, but a single script fragment to be evaled but not shown.
19054finish_eval=$lt_finish_eval
19055
19056# Take the output of nm and produce a listing of raw symbols and C names.
19057global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19058
19059# Transform the output of nm in a proper C declaration
19060global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19061
19062# Transform the output of nm in a C name address pair
19063global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19064
19065# This is the shared library runtime path variable.
19066runpath_var=$runpath_var
19067
19068# This is the shared library path variable.
19069shlibpath_var=$shlibpath_var
19070
19071# Is shlibpath searched before the hard-coded library search path?
19072shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19073
19074# How to hardcode a shared library path into an executable.
19075hardcode_action=$hardcode_action_GCJ
19076
19077# Whether we should hardcode library paths into libraries.
19078hardcode_into_libs=$hardcode_into_libs
19079
19080# Flag to hardcode \$libdir into a binary during linking.
19081# This must work even if \$libdir does not exist.
19082hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19083
19084# If ld is used when linking, flag to hardcode \$libdir into
19085# a binary during linking. This must work even if \$libdir does
19086# not exist.
19087hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19088
19089# Whether we need a single -rpath flag with a separated argument.
19090hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19091
19092# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19093# resulting binary.
19094hardcode_direct=$hardcode_direct_GCJ
19095
19096# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19097# resulting binary.
19098hardcode_minus_L=$hardcode_minus_L_GCJ
19099
19100# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19101# the resulting binary.
19102hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19103
19104# Set to yes if building a shared library automatically hardcodes DIR into the library
19105# and all subsequent libraries and executables linked against it.
19106hardcode_automatic=$hardcode_automatic_GCJ
19107
19108# Variables whose values should be saved in libtool wrapper scripts and
19109# restored at relink time.
19110variables_saved_for_relink="$variables_saved_for_relink"
19111
19112# Whether libtool must link a program against all its dependency libraries.
19113link_all_deplibs=$link_all_deplibs_GCJ
19114
19115# Compile-time system search path for libraries
19116sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19117
19118# Run-time system search path for libraries
19119sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19120
19121# Fix the shell variable \$srcfile for the compiler.
19122fix_srcfile_path="$fix_srcfile_path_GCJ"
19123
19124# Set to yes if exported symbols are required.
19125always_export_symbols=$always_export_symbols_GCJ
19126
19127# The commands to list exported symbols.
19128export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19129
19130# The commands to extract the exported symbol list from a shared archive.
19131extract_expsyms_cmds=$lt_extract_expsyms_cmds
19132
19133# Symbols that should not be listed in the preloaded symbols.
19134exclude_expsyms=$lt_exclude_expsyms_GCJ
19135
19136# Symbols that must always be exported.
19137include_expsyms=$lt_include_expsyms_GCJ
19138
19139# ### END LIBTOOL TAG CONFIG: $tagname
19140
19141__EOF__
19142
19143
19144else
19145  # If there is no Makefile yet, we rely on a make rule to execute
19146  # `config.status --recheck' to rerun these tests and create the
19147  # libtool script then.
19148  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19149  if test -f "$ltmain_in"; then
19150    test -f Makefile && make "$ltmain"
19151  fi
19152fi
19153
19154
19155ac_ext=c
19156ac_cpp='$CPP $CPPFLAGS'
19157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19159ac_compiler_gnu=$ac_cv_c_compiler_gnu
19160
19161CC="$lt_save_CC"
19162
19163	else
19164	  tagname=""
19165	fi
19166	;;
19167
19168      RC)
19169
19170
19171# Source file extension for RC test sources.
19172ac_ext=rc
19173
19174# Object file extension for compiled RC test sources.
19175objext=o
19176objext_RC=$objext
19177
19178# Code to be used in simple compile tests
19179lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19180
19181# Code to be used in simple link tests
19182lt_simple_link_test_code="$lt_simple_compile_test_code"
19183
19184# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19185
19186# If no C compiler was specified, use CC.
19187LTCC=${LTCC-"$CC"}
19188
19189# If no C compiler flags were specified, use CFLAGS.
19190LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19191
19192# Allow CC to be a program name with arguments.
19193compiler=$CC
19194
19195
19196# save warnings/boilerplate of simple test code
19197ac_outfile=conftest.$ac_objext
19198printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19199eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19200_lt_compiler_boilerplate=`cat conftest.err`
19201$rm conftest*
19202
19203ac_outfile=conftest.$ac_objext
19204printf "$lt_simple_link_test_code" >conftest.$ac_ext
19205eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19206_lt_linker_boilerplate=`cat conftest.err`
19207$rm conftest*
19208
19209
19210# Allow CC to be a program name with arguments.
19211lt_save_CC="$CC"
19212CC=${RC-"windres"}
19213compiler=$CC
19214compiler_RC=$CC
19215for cc_temp in $compiler""; do
19216  case $cc_temp in
19217    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19218    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19219    \-*) ;;
19220    *) break;;
19221  esac
19222done
19223cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19224
19225lt_cv_prog_compiler_c_o_RC=yes
19226
19227# The else clause should only fire when bootstrapping the
19228# libtool distribution, otherwise you forgot to ship ltmain.sh
19229# with your package, and you will get complaints that there are
19230# no rules to generate ltmain.sh.
19231if test -f "$ltmain"; then
19232  # See if we are running on zsh, and set the options which allow our commands through
19233  # without removal of \ escapes.
19234  if test -n "${ZSH_VERSION+set}" ; then
19235    setopt NO_GLOB_SUBST
19236  fi
19237  # Now quote all the things that may contain metacharacters while being
19238  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19239  # variables and quote the copies for generation of the libtool script.
19240  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19241    SED SHELL STRIP \
19242    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19243    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19244    deplibs_check_method reload_flag reload_cmds need_locks \
19245    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19246    lt_cv_sys_global_symbol_to_c_name_address \
19247    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19248    old_postinstall_cmds old_postuninstall_cmds \
19249    compiler_RC \
19250    CC_RC \
19251    LD_RC \
19252    lt_prog_compiler_wl_RC \
19253    lt_prog_compiler_pic_RC \
19254    lt_prog_compiler_static_RC \
19255    lt_prog_compiler_no_builtin_flag_RC \
19256    export_dynamic_flag_spec_RC \
19257    thread_safe_flag_spec_RC \
19258    whole_archive_flag_spec_RC \
19259    enable_shared_with_static_runtimes_RC \
19260    old_archive_cmds_RC \
19261    old_archive_from_new_cmds_RC \
19262    predep_objects_RC \
19263    postdep_objects_RC \
19264    predeps_RC \
19265    postdeps_RC \
19266    compiler_lib_search_path_RC \
19267    archive_cmds_RC \
19268    archive_expsym_cmds_RC \
19269    postinstall_cmds_RC \
19270    postuninstall_cmds_RC \
19271    old_archive_from_expsyms_cmds_RC \
19272    allow_undefined_flag_RC \
19273    no_undefined_flag_RC \
19274    export_symbols_cmds_RC \
19275    hardcode_libdir_flag_spec_RC \
19276    hardcode_libdir_flag_spec_ld_RC \
19277    hardcode_libdir_separator_RC \
19278    hardcode_automatic_RC \
19279    module_cmds_RC \
19280    module_expsym_cmds_RC \
19281    lt_cv_prog_compiler_c_o_RC \
19282    exclude_expsyms_RC \
19283    include_expsyms_RC; do
19284
19285    case $var in
19286    old_archive_cmds_RC | \
19287    old_archive_from_new_cmds_RC | \
19288    archive_cmds_RC | \
19289    archive_expsym_cmds_RC | \
19290    module_cmds_RC | \
19291    module_expsym_cmds_RC | \
19292    old_archive_from_expsyms_cmds_RC | \
19293    export_symbols_cmds_RC | \
19294    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19295    postinstall_cmds | postuninstall_cmds | \
19296    old_postinstall_cmds | old_postuninstall_cmds | \
19297    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19298      # Double-quote double-evaled strings.
19299      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19300      ;;
19301    *)
19302      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19303      ;;
19304    esac
19305  done
19306
19307  case $lt_echo in
19308  *'\$0 --fallback-echo"')
19309    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19310    ;;
19311  esac
19312
19313cfgfile="$ofile"
19314
19315  cat <<__EOF__ >> "$cfgfile"
19316# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19317
19318# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19319
19320# Shell to use when invoking shell scripts.
19321SHELL=$lt_SHELL
19322
19323# Whether or not to build shared libraries.
19324build_libtool_libs=$enable_shared
19325
19326# Whether or not to build static libraries.
19327build_old_libs=$enable_static
19328
19329# Whether or not to add -lc for building shared libraries.
19330build_libtool_need_lc=$archive_cmds_need_lc_RC
19331
19332# Whether or not to disallow shared libs when runtime libs are static
19333allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19334
19335# Whether or not to optimize for fast installation.
19336fast_install=$enable_fast_install
19337
19338# The host system.
19339host_alias=$host_alias
19340host=$host
19341host_os=$host_os
19342
19343# The build system.
19344build_alias=$build_alias
19345build=$build
19346build_os=$build_os
19347
19348# An echo program that does not interpret backslashes.
19349echo=$lt_echo
19350
19351# The archiver.
19352AR=$lt_AR
19353AR_FLAGS=$lt_AR_FLAGS
19354
19355# A C compiler.
19356LTCC=$lt_LTCC
19357
19358# LTCC compiler flags.
19359LTCFLAGS=$lt_LTCFLAGS
19360
19361# A language-specific compiler.
19362CC=$lt_compiler_RC
19363
19364# Is the compiler the GNU C compiler?
19365with_gcc=$GCC_RC
19366
19367# An ERE matcher.
19368EGREP=$lt_EGREP
19369
19370# The linker used to build libraries.
19371LD=$lt_LD_RC
19372
19373# Whether we need hard or soft links.
19374LN_S=$lt_LN_S
19375
19376# A BSD-compatible nm program.
19377NM=$lt_NM
19378
19379# A symbol stripping program
19380STRIP=$lt_STRIP
19381
19382# Used to examine libraries when file_magic_cmd begins "file"
19383MAGIC_CMD=$MAGIC_CMD
19384
19385# Used on cygwin: DLL creation program.
19386DLLTOOL="$DLLTOOL"
19387
19388# Used on cygwin: object dumper.
19389OBJDUMP="$OBJDUMP"
19390
19391# Used on cygwin: assembler.
19392AS="$AS"
19393
19394# The name of the directory that contains temporary libtool files.
19395objdir=$objdir
19396
19397# How to create reloadable object files.
19398reload_flag=$lt_reload_flag
19399reload_cmds=$lt_reload_cmds
19400
19401# How to pass a linker flag through the compiler.
19402wl=$lt_lt_prog_compiler_wl_RC
19403
19404# Object file suffix (normally "o").
19405objext="$ac_objext"
19406
19407# Old archive suffix (normally "a").
19408libext="$libext"
19409
19410# Shared library suffix (normally ".so").
19411shrext_cmds='$shrext_cmds'
19412
19413# Executable file suffix (normally "").
19414exeext="$exeext"
19415
19416# Additional compiler flags for building library objects.
19417pic_flag=$lt_lt_prog_compiler_pic_RC
19418pic_mode=$pic_mode
19419
19420# What is the maximum length of a command?
19421max_cmd_len=$lt_cv_sys_max_cmd_len
19422
19423# Does compiler simultaneously support -c and -o options?
19424compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19425
19426# Must we lock files when doing compilation?
19427need_locks=$lt_need_locks
19428
19429# Do we need the lib prefix for modules?
19430need_lib_prefix=$need_lib_prefix
19431
19432# Do we need a version for libraries?
19433need_version=$need_version
19434
19435# Whether dlopen is supported.
19436dlopen_support=$enable_dlopen
19437
19438# Whether dlopen of programs is supported.
19439dlopen_self=$enable_dlopen_self
19440
19441# Whether dlopen of statically linked programs is supported.
19442dlopen_self_static=$enable_dlopen_self_static
19443
19444# Compiler flag to prevent dynamic linking.
19445link_static_flag=$lt_lt_prog_compiler_static_RC
19446
19447# Compiler flag to turn off builtin functions.
19448no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19449
19450# Compiler flag to allow reflexive dlopens.
19451export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19452
19453# Compiler flag to generate shared objects directly from archives.
19454whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19455
19456# Compiler flag to generate thread-safe objects.
19457thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19458
19459# Library versioning type.
19460version_type=$version_type
19461
19462# Format of library name prefix.
19463libname_spec=$lt_libname_spec
19464
19465# List of archive names.  First name is the real one, the rest are links.
19466# The last name is the one that the linker finds with -lNAME.
19467library_names_spec=$lt_library_names_spec
19468
19469# The coded name of the library, if different from the real name.
19470soname_spec=$lt_soname_spec
19471
19472# Commands used to build and install an old-style archive.
19473RANLIB=$lt_RANLIB
19474old_archive_cmds=$lt_old_archive_cmds_RC
19475old_postinstall_cmds=$lt_old_postinstall_cmds
19476old_postuninstall_cmds=$lt_old_postuninstall_cmds
19477
19478# Create an old-style archive from a shared archive.
19479old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19480
19481# Create a temporary old-style archive to link instead of a shared archive.
19482old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19483
19484# Commands used to build and install a shared archive.
19485archive_cmds=$lt_archive_cmds_RC
19486archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19487postinstall_cmds=$lt_postinstall_cmds
19488postuninstall_cmds=$lt_postuninstall_cmds
19489
19490# Commands used to build a loadable module (assumed same as above if empty)
19491module_cmds=$lt_module_cmds_RC
19492module_expsym_cmds=$lt_module_expsym_cmds_RC
19493
19494# Commands to strip libraries.
19495old_striplib=$lt_old_striplib
19496striplib=$lt_striplib
19497
19498# Dependencies to place before the objects being linked to create a
19499# shared library.
19500predep_objects=$lt_predep_objects_RC
19501
19502# Dependencies to place after the objects being linked to create a
19503# shared library.
19504postdep_objects=$lt_postdep_objects_RC
19505
19506# Dependencies to place before the objects being linked to create a
19507# shared library.
19508predeps=$lt_predeps_RC
19509
19510# Dependencies to place after the objects being linked to create a
19511# shared library.
19512postdeps=$lt_postdeps_RC
19513
19514# The library search path used internally by the compiler when linking
19515# a shared library.
19516compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19517
19518# Method to check whether dependent libraries are shared objects.
19519deplibs_check_method=$lt_deplibs_check_method
19520
19521# Command to use when deplibs_check_method == file_magic.
19522file_magic_cmd=$lt_file_magic_cmd
19523
19524# Flag that allows shared libraries with undefined symbols to be built.
19525allow_undefined_flag=$lt_allow_undefined_flag_RC
19526
19527# Flag that forces no undefined symbols.
19528no_undefined_flag=$lt_no_undefined_flag_RC
19529
19530# Commands used to finish a libtool library installation in a directory.
19531finish_cmds=$lt_finish_cmds
19532
19533# Same as above, but a single script fragment to be evaled but not shown.
19534finish_eval=$lt_finish_eval
19535
19536# Take the output of nm and produce a listing of raw symbols and C names.
19537global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19538
19539# Transform the output of nm in a proper C declaration
19540global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19541
19542# Transform the output of nm in a C name address pair
19543global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19544
19545# This is the shared library runtime path variable.
19546runpath_var=$runpath_var
19547
19548# This is the shared library path variable.
19549shlibpath_var=$shlibpath_var
19550
19551# Is shlibpath searched before the hard-coded library search path?
19552shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19553
19554# How to hardcode a shared library path into an executable.
19555hardcode_action=$hardcode_action_RC
19556
19557# Whether we should hardcode library paths into libraries.
19558hardcode_into_libs=$hardcode_into_libs
19559
19560# Flag to hardcode \$libdir into a binary during linking.
19561# This must work even if \$libdir does not exist.
19562hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19563
19564# If ld is used when linking, flag to hardcode \$libdir into
19565# a binary during linking. This must work even if \$libdir does
19566# not exist.
19567hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19568
19569# Whether we need a single -rpath flag with a separated argument.
19570hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19571
19572# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19573# resulting binary.
19574hardcode_direct=$hardcode_direct_RC
19575
19576# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19577# resulting binary.
19578hardcode_minus_L=$hardcode_minus_L_RC
19579
19580# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19581# the resulting binary.
19582hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19583
19584# Set to yes if building a shared library automatically hardcodes DIR into the library
19585# and all subsequent libraries and executables linked against it.
19586hardcode_automatic=$hardcode_automatic_RC
19587
19588# Variables whose values should be saved in libtool wrapper scripts and
19589# restored at relink time.
19590variables_saved_for_relink="$variables_saved_for_relink"
19591
19592# Whether libtool must link a program against all its dependency libraries.
19593link_all_deplibs=$link_all_deplibs_RC
19594
19595# Compile-time system search path for libraries
19596sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19597
19598# Run-time system search path for libraries
19599sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19600
19601# Fix the shell variable \$srcfile for the compiler.
19602fix_srcfile_path="$fix_srcfile_path_RC"
19603
19604# Set to yes if exported symbols are required.
19605always_export_symbols=$always_export_symbols_RC
19606
19607# The commands to list exported symbols.
19608export_symbols_cmds=$lt_export_symbols_cmds_RC
19609
19610# The commands to extract the exported symbol list from a shared archive.
19611extract_expsyms_cmds=$lt_extract_expsyms_cmds
19612
19613# Symbols that should not be listed in the preloaded symbols.
19614exclude_expsyms=$lt_exclude_expsyms_RC
19615
19616# Symbols that must always be exported.
19617include_expsyms=$lt_include_expsyms_RC
19618
19619# ### END LIBTOOL TAG CONFIG: $tagname
19620
19621__EOF__
19622
19623
19624else
19625  # If there is no Makefile yet, we rely on a make rule to execute
19626  # `config.status --recheck' to rerun these tests and create the
19627  # libtool script then.
19628  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19629  if test -f "$ltmain_in"; then
19630    test -f Makefile && make "$ltmain"
19631  fi
19632fi
19633
19634
19635ac_ext=c
19636ac_cpp='$CPP $CPPFLAGS'
19637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19639ac_compiler_gnu=$ac_cv_c_compiler_gnu
19640
19641CC="$lt_save_CC"
19642
19643	;;
19644
19645      *)
19646	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19647echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19648   { (exit 1); exit 1; }; }
19649	;;
19650      esac
19651
19652      # Append the new tag name to the list of available tags.
19653      if test -n "$tagname" ; then
19654      available_tags="$available_tags $tagname"
19655    fi
19656    fi
19657  done
19658  IFS="$lt_save_ifs"
19659
19660  # Now substitute the updated list of available tags.
19661  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19662    mv "${ofile}T" "$ofile"
19663    chmod +x "$ofile"
19664  else
19665    rm -f "${ofile}T"
19666    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19667echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19668   { (exit 1); exit 1; }; }
19669  fi
19670fi
19671
19672
19673
19674# This can be used to rebuild libtool when needed
19675LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19676
19677# Always use our own libtool.
19678LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19679
19680# Prevent multiple expansion
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702# Flags for restrictive warnings:
19703if test $GCC = yes ; then
19704   C_STD_FLAGS="-std=gnu99"
19705   WARNING_FLAGS="-Wno-long-long -Wall -pedantic -W -Wpointer-arith \
19706				 -Wnested-externs"
19707else
19708   C_STD_FLAGS=""
19709   WARNING_FLAGS=""
19710fi
19711
19712
19713
19714# Checks for host-system types
19715{ echo "$as_me:$LINENO: checking host system type" >&5
19716echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
19717if test "${ac_cv_host+set}" = set; then
19718  echo $ECHO_N "(cached) $ECHO_C" >&6
19719else
19720  if test "x$host_alias" = x; then
19721  ac_cv_host=$ac_cv_build
19722else
19723  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
19724    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
19725echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
19726   { (exit 1); exit 1; }; }
19727fi
19728
19729fi
19730{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
19731echo "${ECHO_T}$ac_cv_host" >&6; }
19732case $ac_cv_host in
19733*-*-*) ;;
19734*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
19735echo "$as_me: error: invalid value of canonical host" >&2;}
19736   { (exit 1); exit 1; }; };;
19737esac
19738host=$ac_cv_host
19739ac_save_IFS=$IFS; IFS='-'
19740set x $ac_cv_host
19741shift
19742host_cpu=$1
19743host_vendor=$2
19744shift; shift
19745# Remember, the first character of IFS is used to create $*,
19746# except with old shells:
19747host_os=$*
19748IFS=$ac_save_IFS
19749case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
19750
19751
19752case $host in
19753  *darwin*)
19754
19755cat >>confdefs.h <<\_ACEOF
19756#define __DARWIN__ 1
19757_ACEOF
19758
19759
19760cat >>confdefs.h <<\_ACEOF
19761#define _BSD_SOCKLEN_T_
19762_ACEOF
19763
19764    ;;
19765  *freebsd*)
19766
19767cat >>confdefs.h <<\_ACEOF
19768#define __FREEBSD__ 1
19769_ACEOF
19770
19771    ;;
19772  *linux*)
19773
19774cat >>confdefs.h <<\_ACEOF
19775#define __LINUX__ 1
19776_ACEOF
19777
19778    ;;
19779  *solaris*)
19780
19781cat >>confdefs.h <<\_ACEOF
19782#define __SOLARIS__ 1
19783_ACEOF
19784
19785    ;;
19786esac
19787
19788# Checks for libraries.
19789
19790{ echo "$as_me:$LINENO: checking for log in -lm" >&5
19791echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6; }
19792if test "${ac_cv_lib_m_log+set}" = set; then
19793  echo $ECHO_N "(cached) $ECHO_C" >&6
19794else
19795  ac_check_lib_save_LIBS=$LIBS
19796LIBS="-lm  $LIBS"
19797cat >conftest.$ac_ext <<_ACEOF
19798/* confdefs.h.  */
19799_ACEOF
19800cat confdefs.h >>conftest.$ac_ext
19801cat >>conftest.$ac_ext <<_ACEOF
19802/* end confdefs.h.  */
19803
19804/* Override any GCC internal prototype to avoid an error.
19805   Use char because int might match the return type of a GCC
19806   builtin and then its argument prototype would still apply.  */
19807#ifdef __cplusplus
19808extern "C"
19809#endif
19810char log ();
19811int
19812main ()
19813{
19814return log ();
19815  ;
19816  return 0;
19817}
19818_ACEOF
19819rm -f conftest.$ac_objext conftest$ac_exeext
19820if { (ac_try="$ac_link"
19821case "(($ac_try" in
19822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19823  *) ac_try_echo=$ac_try;;
19824esac
19825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19826  (eval "$ac_link") 2>conftest.er1
19827  ac_status=$?
19828  grep -v '^ *+' conftest.er1 >conftest.err
19829  rm -f conftest.er1
19830  cat conftest.err >&5
19831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832  (exit $ac_status); } &&
19833	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19834  { (case "(($ac_try" in
19835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19836  *) ac_try_echo=$ac_try;;
19837esac
19838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19839  (eval "$ac_try") 2>&5
19840  ac_status=$?
19841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842  (exit $ac_status); }; } &&
19843	 { ac_try='test -s conftest$ac_exeext'
19844  { (case "(($ac_try" in
19845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19846  *) ac_try_echo=$ac_try;;
19847esac
19848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19849  (eval "$ac_try") 2>&5
19850  ac_status=$?
19851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852  (exit $ac_status); }; }; then
19853  ac_cv_lib_m_log=yes
19854else
19855  echo "$as_me: failed program was:" >&5
19856sed 's/^/| /' conftest.$ac_ext >&5
19857
19858	ac_cv_lib_m_log=no
19859fi
19860
19861rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19862      conftest$ac_exeext conftest.$ac_ext
19863LIBS=$ac_check_lib_save_LIBS
19864fi
19865{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5
19866echo "${ECHO_T}$ac_cv_lib_m_log" >&6; }
19867if test $ac_cv_lib_m_log = yes; then
19868  cat >>confdefs.h <<_ACEOF
19869#define HAVE_LIBM 1
19870_ACEOF
19871
19872  LIBS="-lm $LIBS"
19873
19874fi
19875
19876
19877{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
19878echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
19879if test "${ac_cv_lib_socket_socket+set}" = set; then
19880  echo $ECHO_N "(cached) $ECHO_C" >&6
19881else
19882  ac_check_lib_save_LIBS=$LIBS
19883LIBS="-lsocket  $LIBS"
19884cat >conftest.$ac_ext <<_ACEOF
19885/* confdefs.h.  */
19886_ACEOF
19887cat confdefs.h >>conftest.$ac_ext
19888cat >>conftest.$ac_ext <<_ACEOF
19889/* end confdefs.h.  */
19890
19891/* Override any GCC internal prototype to avoid an error.
19892   Use char because int might match the return type of a GCC
19893   builtin and then its argument prototype would still apply.  */
19894#ifdef __cplusplus
19895extern "C"
19896#endif
19897char socket ();
19898int
19899main ()
19900{
19901return socket ();
19902  ;
19903  return 0;
19904}
19905_ACEOF
19906rm -f conftest.$ac_objext conftest$ac_exeext
19907if { (ac_try="$ac_link"
19908case "(($ac_try" in
19909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19910  *) ac_try_echo=$ac_try;;
19911esac
19912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19913  (eval "$ac_link") 2>conftest.er1
19914  ac_status=$?
19915  grep -v '^ *+' conftest.er1 >conftest.err
19916  rm -f conftest.er1
19917  cat conftest.err >&5
19918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919  (exit $ac_status); } &&
19920	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19921  { (case "(($ac_try" in
19922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19923  *) ac_try_echo=$ac_try;;
19924esac
19925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19926  (eval "$ac_try") 2>&5
19927  ac_status=$?
19928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929  (exit $ac_status); }; } &&
19930	 { ac_try='test -s conftest$ac_exeext'
19931  { (case "(($ac_try" in
19932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19933  *) ac_try_echo=$ac_try;;
19934esac
19935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19936  (eval "$ac_try") 2>&5
19937  ac_status=$?
19938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939  (exit $ac_status); }; }; then
19940  ac_cv_lib_socket_socket=yes
19941else
19942  echo "$as_me: failed program was:" >&5
19943sed 's/^/| /' conftest.$ac_ext >&5
19944
19945	ac_cv_lib_socket_socket=no
19946fi
19947
19948rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19949      conftest$ac_exeext conftest.$ac_ext
19950LIBS=$ac_check_lib_save_LIBS
19951fi
19952{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
19953echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
19954if test $ac_cv_lib_socket_socket = yes; then
19955  cat >>confdefs.h <<_ACEOF
19956#define HAVE_LIBSOCKET 1
19957_ACEOF
19958
19959  LIBS="-lsocket $LIBS"
19960
19961fi
19962
19963
19964{ echo "$as_me:$LINENO: checking for socket in -lnsl" >&5
19965echo $ECHO_N "checking for socket in -lnsl... $ECHO_C" >&6; }
19966if test "${ac_cv_lib_nsl_socket+set}" = set; then
19967  echo $ECHO_N "(cached) $ECHO_C" >&6
19968else
19969  ac_check_lib_save_LIBS=$LIBS
19970LIBS="-lnsl  $LIBS"
19971cat >conftest.$ac_ext <<_ACEOF
19972/* confdefs.h.  */
19973_ACEOF
19974cat confdefs.h >>conftest.$ac_ext
19975cat >>conftest.$ac_ext <<_ACEOF
19976/* end confdefs.h.  */
19977
19978/* Override any GCC internal prototype to avoid an error.
19979   Use char because int might match the return type of a GCC
19980   builtin and then its argument prototype would still apply.  */
19981#ifdef __cplusplus
19982extern "C"
19983#endif
19984char socket ();
19985int
19986main ()
19987{
19988return socket ();
19989  ;
19990  return 0;
19991}
19992_ACEOF
19993rm -f conftest.$ac_objext conftest$ac_exeext
19994if { (ac_try="$ac_link"
19995case "(($ac_try" in
19996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997  *) ac_try_echo=$ac_try;;
19998esac
19999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20000  (eval "$ac_link") 2>conftest.er1
20001  ac_status=$?
20002  grep -v '^ *+' conftest.er1 >conftest.err
20003  rm -f conftest.er1
20004  cat conftest.err >&5
20005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006  (exit $ac_status); } &&
20007	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20008  { (case "(($ac_try" in
20009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20010  *) ac_try_echo=$ac_try;;
20011esac
20012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20013  (eval "$ac_try") 2>&5
20014  ac_status=$?
20015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016  (exit $ac_status); }; } &&
20017	 { ac_try='test -s conftest$ac_exeext'
20018  { (case "(($ac_try" in
20019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20020  *) ac_try_echo=$ac_try;;
20021esac
20022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20023  (eval "$ac_try") 2>&5
20024  ac_status=$?
20025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026  (exit $ac_status); }; }; then
20027  ac_cv_lib_nsl_socket=yes
20028else
20029  echo "$as_me: failed program was:" >&5
20030sed 's/^/| /' conftest.$ac_ext >&5
20031
20032	ac_cv_lib_nsl_socket=no
20033fi
20034
20035rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20036      conftest$ac_exeext conftest.$ac_ext
20037LIBS=$ac_check_lib_save_LIBS
20038fi
20039{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_socket" >&5
20040echo "${ECHO_T}$ac_cv_lib_nsl_socket" >&6; }
20041if test $ac_cv_lib_nsl_socket = yes; then
20042  cat >>confdefs.h <<_ACEOF
20043#define HAVE_LIBNSL 1
20044_ACEOF
20045
20046  LIBS="-lnsl $LIBS"
20047
20048fi
20049
20050
20051{ echo "$as_me:$LINENO: checking for herror in -lresolv" >&5
20052echo $ECHO_N "checking for herror in -lresolv... $ECHO_C" >&6; }
20053if test "${ac_cv_lib_resolv_herror+set}" = set; then
20054  echo $ECHO_N "(cached) $ECHO_C" >&6
20055else
20056  ac_check_lib_save_LIBS=$LIBS
20057LIBS="-lresolv  $LIBS"
20058cat >conftest.$ac_ext <<_ACEOF
20059/* confdefs.h.  */
20060_ACEOF
20061cat confdefs.h >>conftest.$ac_ext
20062cat >>conftest.$ac_ext <<_ACEOF
20063/* end confdefs.h.  */
20064
20065/* Override any GCC internal prototype to avoid an error.
20066   Use char because int might match the return type of a GCC
20067   builtin and then its argument prototype would still apply.  */
20068#ifdef __cplusplus
20069extern "C"
20070#endif
20071char herror ();
20072int
20073main ()
20074{
20075return herror ();
20076  ;
20077  return 0;
20078}
20079_ACEOF
20080rm -f conftest.$ac_objext conftest$ac_exeext
20081if { (ac_try="$ac_link"
20082case "(($ac_try" in
20083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20084  *) ac_try_echo=$ac_try;;
20085esac
20086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20087  (eval "$ac_link") 2>conftest.er1
20088  ac_status=$?
20089  grep -v '^ *+' conftest.er1 >conftest.err
20090  rm -f conftest.er1
20091  cat conftest.err >&5
20092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093  (exit $ac_status); } &&
20094	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20095  { (case "(($ac_try" in
20096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097  *) ac_try_echo=$ac_try;;
20098esac
20099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20100  (eval "$ac_try") 2>&5
20101  ac_status=$?
20102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103  (exit $ac_status); }; } &&
20104	 { ac_try='test -s conftest$ac_exeext'
20105  { (case "(($ac_try" in
20106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20107  *) ac_try_echo=$ac_try;;
20108esac
20109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20110  (eval "$ac_try") 2>&5
20111  ac_status=$?
20112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113  (exit $ac_status); }; }; then
20114  ac_cv_lib_resolv_herror=yes
20115else
20116  echo "$as_me: failed program was:" >&5
20117sed 's/^/| /' conftest.$ac_ext >&5
20118
20119	ac_cv_lib_resolv_herror=no
20120fi
20121
20122rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20123      conftest$ac_exeext conftest.$ac_ext
20124LIBS=$ac_check_lib_save_LIBS
20125fi
20126{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_herror" >&5
20127echo "${ECHO_T}$ac_cv_lib_resolv_herror" >&6; }
20128if test $ac_cv_lib_resolv_herror = yes; then
20129  cat >>confdefs.h <<_ACEOF
20130#define HAVE_LIBRESOLV 1
20131_ACEOF
20132
20133  LIBS="-lresolv $LIBS"
20134
20135fi
20136
20137
20138{ echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
20139echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
20140if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
20141  echo $ECHO_N "(cached) $ECHO_C" >&6
20142else
20143  ac_check_lib_save_LIBS=$LIBS
20144LIBS="-lrt  $LIBS"
20145cat >conftest.$ac_ext <<_ACEOF
20146/* confdefs.h.  */
20147_ACEOF
20148cat confdefs.h >>conftest.$ac_ext
20149cat >>conftest.$ac_ext <<_ACEOF
20150/* end confdefs.h.  */
20151
20152/* Override any GCC internal prototype to avoid an error.
20153   Use char because int might match the return type of a GCC
20154   builtin and then its argument prototype would still apply.  */
20155#ifdef __cplusplus
20156extern "C"
20157#endif
20158char nanosleep ();
20159int
20160main ()
20161{
20162return nanosleep ();
20163  ;
20164  return 0;
20165}
20166_ACEOF
20167rm -f conftest.$ac_objext conftest$ac_exeext
20168if { (ac_try="$ac_link"
20169case "(($ac_try" in
20170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20171  *) ac_try_echo=$ac_try;;
20172esac
20173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20174  (eval "$ac_link") 2>conftest.er1
20175  ac_status=$?
20176  grep -v '^ *+' conftest.er1 >conftest.err
20177  rm -f conftest.er1
20178  cat conftest.err >&5
20179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180  (exit $ac_status); } &&
20181	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20182  { (case "(($ac_try" in
20183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184  *) ac_try_echo=$ac_try;;
20185esac
20186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20187  (eval "$ac_try") 2>&5
20188  ac_status=$?
20189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190  (exit $ac_status); }; } &&
20191	 { ac_try='test -s conftest$ac_exeext'
20192  { (case "(($ac_try" in
20193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20194  *) ac_try_echo=$ac_try;;
20195esac
20196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20197  (eval "$ac_try") 2>&5
20198  ac_status=$?
20199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200  (exit $ac_status); }; }; then
20201  ac_cv_lib_rt_nanosleep=yes
20202else
20203  echo "$as_me: failed program was:" >&5
20204sed 's/^/| /' conftest.$ac_ext >&5
20205
20206	ac_cv_lib_rt_nanosleep=no
20207fi
20208
20209rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20210      conftest$ac_exeext conftest.$ac_ext
20211LIBS=$ac_check_lib_save_LIBS
20212fi
20213{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
20214echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
20215if test $ac_cv_lib_rt_nanosleep = yes; then
20216  cat >>confdefs.h <<_ACEOF
20217#define HAVE_LIBRT 1
20218_ACEOF
20219
20220  LIBS="-lrt $LIBS"
20221
20222fi
20223
20224
20225{ echo "$as_me:$LINENO: checking for fasttime_init_context in -lfasttime" >&5
20226echo $ECHO_N "checking for fasttime_init_context in -lfasttime... $ECHO_C" >&6; }
20227if test "${ac_cv_lib_fasttime_fasttime_init_context+set}" = set; then
20228  echo $ECHO_N "(cached) $ECHO_C" >&6
20229else
20230  ac_check_lib_save_LIBS=$LIBS
20231LIBS="-lfasttime  $LIBS"
20232cat >conftest.$ac_ext <<_ACEOF
20233/* confdefs.h.  */
20234_ACEOF
20235cat confdefs.h >>conftest.$ac_ext
20236cat >>conftest.$ac_ext <<_ACEOF
20237/* end confdefs.h.  */
20238
20239/* Override any GCC internal prototype to avoid an error.
20240   Use char because int might match the return type of a GCC
20241   builtin and then its argument prototype would still apply.  */
20242#ifdef __cplusplus
20243extern "C"
20244#endif
20245char fasttime_init_context ();
20246int
20247main ()
20248{
20249return fasttime_init_context ();
20250  ;
20251  return 0;
20252}
20253_ACEOF
20254rm -f conftest.$ac_objext conftest$ac_exeext
20255if { (ac_try="$ac_link"
20256case "(($ac_try" in
20257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258  *) ac_try_echo=$ac_try;;
20259esac
20260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20261  (eval "$ac_link") 2>conftest.er1
20262  ac_status=$?
20263  grep -v '^ *+' conftest.er1 >conftest.err
20264  rm -f conftest.er1
20265  cat conftest.err >&5
20266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267  (exit $ac_status); } &&
20268	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20269  { (case "(($ac_try" in
20270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20271  *) ac_try_echo=$ac_try;;
20272esac
20273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20274  (eval "$ac_try") 2>&5
20275  ac_status=$?
20276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277  (exit $ac_status); }; } &&
20278	 { ac_try='test -s conftest$ac_exeext'
20279  { (case "(($ac_try" in
20280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281  *) ac_try_echo=$ac_try;;
20282esac
20283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20284  (eval "$ac_try") 2>&5
20285  ac_status=$?
20286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287  (exit $ac_status); }; }; then
20288  ac_cv_lib_fasttime_fasttime_init_context=yes
20289else
20290  echo "$as_me: failed program was:" >&5
20291sed 's/^/| /' conftest.$ac_ext >&5
20292
20293	ac_cv_lib_fasttime_fasttime_init_context=no
20294fi
20295
20296rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20297      conftest$ac_exeext conftest.$ac_ext
20298LIBS=$ac_check_lib_save_LIBS
20299fi
20300{ echo "$as_me:$LINENO: result: $ac_cv_lib_fasttime_fasttime_init_context" >&5
20301echo "${ECHO_T}$ac_cv_lib_fasttime_fasttime_init_context" >&6; }
20302if test $ac_cv_lib_fasttime_fasttime_init_context = yes; then
20303  cat >>confdefs.h <<_ACEOF
20304#define HAVE_LIBFASTTIME 1
20305_ACEOF
20306
20307  LIBS="-lfasttime $LIBS"
20308
20309fi
20310
20311
20312{ echo "$as_me:$LINENO: checking for tsci2_init in -ltsci2" >&5
20313echo $ECHO_N "checking for tsci2_init in -ltsci2... $ECHO_C" >&6; }
20314if test "${ac_cv_lib_tsci2_tsci2_init+set}" = set; then
20315  echo $ECHO_N "(cached) $ECHO_C" >&6
20316else
20317  ac_check_lib_save_LIBS=$LIBS
20318LIBS="-ltsci2  $LIBS"
20319cat >conftest.$ac_ext <<_ACEOF
20320/* confdefs.h.  */
20321_ACEOF
20322cat confdefs.h >>conftest.$ac_ext
20323cat >>conftest.$ac_ext <<_ACEOF
20324/* end confdefs.h.  */
20325
20326/* Override any GCC internal prototype to avoid an error.
20327   Use char because int might match the return type of a GCC
20328   builtin and then its argument prototype would still apply.  */
20329#ifdef __cplusplus
20330extern "C"
20331#endif
20332char tsci2_init ();
20333int
20334main ()
20335{
20336return tsci2_init ();
20337  ;
20338  return 0;
20339}
20340_ACEOF
20341rm -f conftest.$ac_objext conftest$ac_exeext
20342if { (ac_try="$ac_link"
20343case "(($ac_try" in
20344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20345  *) ac_try_echo=$ac_try;;
20346esac
20347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20348  (eval "$ac_link") 2>conftest.er1
20349  ac_status=$?
20350  grep -v '^ *+' conftest.er1 >conftest.err
20351  rm -f conftest.er1
20352  cat conftest.err >&5
20353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354  (exit $ac_status); } &&
20355	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20356  { (case "(($ac_try" in
20357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20358  *) ac_try_echo=$ac_try;;
20359esac
20360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20361  (eval "$ac_try") 2>&5
20362  ac_status=$?
20363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364  (exit $ac_status); }; } &&
20365	 { ac_try='test -s conftest$ac_exeext'
20366  { (case "(($ac_try" in
20367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20368  *) ac_try_echo=$ac_try;;
20369esac
20370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20371  (eval "$ac_try") 2>&5
20372  ac_status=$?
20373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374  (exit $ac_status); }; }; then
20375  ac_cv_lib_tsci2_tsci2_init=yes
20376else
20377  echo "$as_me: failed program was:" >&5
20378sed 's/^/| /' conftest.$ac_ext >&5
20379
20380	ac_cv_lib_tsci2_tsci2_init=no
20381fi
20382
20383rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20384      conftest$ac_exeext conftest.$ac_ext
20385LIBS=$ac_check_lib_save_LIBS
20386fi
20387{ echo "$as_me:$LINENO: result: $ac_cv_lib_tsci2_tsci2_init" >&5
20388echo "${ECHO_T}$ac_cv_lib_tsci2_tsci2_init" >&6; }
20389if test $ac_cv_lib_tsci2_tsci2_init = yes; then
20390  cat >>confdefs.h <<_ACEOF
20391#define HAVE_LIBTSCI2 1
20392_ACEOF
20393
20394  LIBS="-ltsci2 $LIBS"
20395
20396fi
20397
20398
20399# Checks for header files.
20400{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20401echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20402if test "${ac_cv_header_stdc+set}" = set; then
20403  echo $ECHO_N "(cached) $ECHO_C" >&6
20404else
20405  cat >conftest.$ac_ext <<_ACEOF
20406/* confdefs.h.  */
20407_ACEOF
20408cat confdefs.h >>conftest.$ac_ext
20409cat >>conftest.$ac_ext <<_ACEOF
20410/* end confdefs.h.  */
20411#include <stdlib.h>
20412#include <stdarg.h>
20413#include <string.h>
20414#include <float.h>
20415
20416int
20417main ()
20418{
20419
20420  ;
20421  return 0;
20422}
20423_ACEOF
20424rm -f conftest.$ac_objext
20425if { (ac_try="$ac_compile"
20426case "(($ac_try" in
20427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428  *) ac_try_echo=$ac_try;;
20429esac
20430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20431  (eval "$ac_compile") 2>conftest.er1
20432  ac_status=$?
20433  grep -v '^ *+' conftest.er1 >conftest.err
20434  rm -f conftest.er1
20435  cat conftest.err >&5
20436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437  (exit $ac_status); } &&
20438	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20439  { (case "(($ac_try" in
20440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20441  *) ac_try_echo=$ac_try;;
20442esac
20443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20444  (eval "$ac_try") 2>&5
20445  ac_status=$?
20446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447  (exit $ac_status); }; } &&
20448	 { ac_try='test -s conftest.$ac_objext'
20449  { (case "(($ac_try" in
20450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451  *) ac_try_echo=$ac_try;;
20452esac
20453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20454  (eval "$ac_try") 2>&5
20455  ac_status=$?
20456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457  (exit $ac_status); }; }; then
20458  ac_cv_header_stdc=yes
20459else
20460  echo "$as_me: failed program was:" >&5
20461sed 's/^/| /' conftest.$ac_ext >&5
20462
20463	ac_cv_header_stdc=no
20464fi
20465
20466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20467
20468if test $ac_cv_header_stdc = yes; then
20469  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20470  cat >conftest.$ac_ext <<_ACEOF
20471/* confdefs.h.  */
20472_ACEOF
20473cat confdefs.h >>conftest.$ac_ext
20474cat >>conftest.$ac_ext <<_ACEOF
20475/* end confdefs.h.  */
20476#include <string.h>
20477
20478_ACEOF
20479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20480  $EGREP "memchr" >/dev/null 2>&1; then
20481  :
20482else
20483  ac_cv_header_stdc=no
20484fi
20485rm -f conftest*
20486
20487fi
20488
20489if test $ac_cv_header_stdc = yes; then
20490  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20491  cat >conftest.$ac_ext <<_ACEOF
20492/* confdefs.h.  */
20493_ACEOF
20494cat confdefs.h >>conftest.$ac_ext
20495cat >>conftest.$ac_ext <<_ACEOF
20496/* end confdefs.h.  */
20497#include <stdlib.h>
20498
20499_ACEOF
20500if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20501  $EGREP "free" >/dev/null 2>&1; then
20502  :
20503else
20504  ac_cv_header_stdc=no
20505fi
20506rm -f conftest*
20507
20508fi
20509
20510if test $ac_cv_header_stdc = yes; then
20511  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20512  if test "$cross_compiling" = yes; then
20513  :
20514else
20515  cat >conftest.$ac_ext <<_ACEOF
20516/* confdefs.h.  */
20517_ACEOF
20518cat confdefs.h >>conftest.$ac_ext
20519cat >>conftest.$ac_ext <<_ACEOF
20520/* end confdefs.h.  */
20521#include <ctype.h>
20522#include <stdlib.h>
20523#if ((' ' & 0x0FF) == 0x020)
20524# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20525# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20526#else
20527# define ISLOWER(c) \
20528		   (('a' <= (c) && (c) <= 'i') \
20529		     || ('j' <= (c) && (c) <= 'r') \
20530		     || ('s' <= (c) && (c) <= 'z'))
20531# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20532#endif
20533
20534#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20535int
20536main ()
20537{
20538  int i;
20539  for (i = 0; i < 256; i++)
20540    if (XOR (islower (i), ISLOWER (i))
20541	|| toupper (i) != TOUPPER (i))
20542      return 2;
20543  return 0;
20544}
20545_ACEOF
20546rm -f conftest$ac_exeext
20547if { (ac_try="$ac_link"
20548case "(($ac_try" in
20549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20550  *) ac_try_echo=$ac_try;;
20551esac
20552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20553  (eval "$ac_link") 2>&5
20554  ac_status=$?
20555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20557  { (case "(($ac_try" in
20558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559  *) ac_try_echo=$ac_try;;
20560esac
20561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20562  (eval "$ac_try") 2>&5
20563  ac_status=$?
20564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565  (exit $ac_status); }; }; then
20566  :
20567else
20568  echo "$as_me: program exited with status $ac_status" >&5
20569echo "$as_me: failed program was:" >&5
20570sed 's/^/| /' conftest.$ac_ext >&5
20571
20572( exit $ac_status )
20573ac_cv_header_stdc=no
20574fi
20575rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20576fi
20577
20578
20579fi
20580fi
20581{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20582echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20583if test $ac_cv_header_stdc = yes; then
20584
20585cat >>confdefs.h <<\_ACEOF
20586#define STDC_HEADERS 1
20587_ACEOF
20588
20589fi
20590
20591
20592
20593
20594
20595
20596
20597for ac_header in netdb.h syslog.h sys/resource.h sys/select.h sys/socket.h sys/wait.h
20598do
20599as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20600if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20601  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20603if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20604  echo $ECHO_N "(cached) $ECHO_C" >&6
20605fi
20606ac_res=`eval echo '${'$as_ac_Header'}'`
20607	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20608echo "${ECHO_T}$ac_res" >&6; }
20609else
20610  # Is the header compilable?
20611{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20612echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20613cat >conftest.$ac_ext <<_ACEOF
20614/* confdefs.h.  */
20615_ACEOF
20616cat confdefs.h >>conftest.$ac_ext
20617cat >>conftest.$ac_ext <<_ACEOF
20618/* end confdefs.h.  */
20619$ac_includes_default
20620#include <$ac_header>
20621_ACEOF
20622rm -f conftest.$ac_objext
20623if { (ac_try="$ac_compile"
20624case "(($ac_try" in
20625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626  *) ac_try_echo=$ac_try;;
20627esac
20628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20629  (eval "$ac_compile") 2>conftest.er1
20630  ac_status=$?
20631  grep -v '^ *+' conftest.er1 >conftest.err
20632  rm -f conftest.er1
20633  cat conftest.err >&5
20634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635  (exit $ac_status); } &&
20636	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20637  { (case "(($ac_try" in
20638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20639  *) ac_try_echo=$ac_try;;
20640esac
20641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20642  (eval "$ac_try") 2>&5
20643  ac_status=$?
20644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645  (exit $ac_status); }; } &&
20646	 { ac_try='test -s conftest.$ac_objext'
20647  { (case "(($ac_try" in
20648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20649  *) ac_try_echo=$ac_try;;
20650esac
20651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20652  (eval "$ac_try") 2>&5
20653  ac_status=$?
20654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655  (exit $ac_status); }; }; then
20656  ac_header_compiler=yes
20657else
20658  echo "$as_me: failed program was:" >&5
20659sed 's/^/| /' conftest.$ac_ext >&5
20660
20661	ac_header_compiler=no
20662fi
20663
20664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20665{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20666echo "${ECHO_T}$ac_header_compiler" >&6; }
20667
20668# Is the header present?
20669{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20670echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20671cat >conftest.$ac_ext <<_ACEOF
20672/* confdefs.h.  */
20673_ACEOF
20674cat confdefs.h >>conftest.$ac_ext
20675cat >>conftest.$ac_ext <<_ACEOF
20676/* end confdefs.h.  */
20677#include <$ac_header>
20678_ACEOF
20679if { (ac_try="$ac_cpp conftest.$ac_ext"
20680case "(($ac_try" in
20681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20682  *) ac_try_echo=$ac_try;;
20683esac
20684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20685  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20686  ac_status=$?
20687  grep -v '^ *+' conftest.er1 >conftest.err
20688  rm -f conftest.er1
20689  cat conftest.err >&5
20690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691  (exit $ac_status); } >/dev/null; then
20692  if test -s conftest.err; then
20693    ac_cpp_err=$ac_c_preproc_warn_flag
20694    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20695  else
20696    ac_cpp_err=
20697  fi
20698else
20699  ac_cpp_err=yes
20700fi
20701if test -z "$ac_cpp_err"; then
20702  ac_header_preproc=yes
20703else
20704  echo "$as_me: failed program was:" >&5
20705sed 's/^/| /' conftest.$ac_ext >&5
20706
20707  ac_header_preproc=no
20708fi
20709
20710rm -f conftest.err conftest.$ac_ext
20711{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20712echo "${ECHO_T}$ac_header_preproc" >&6; }
20713
20714# So?  What about this header?
20715case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20716  yes:no: )
20717    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20718echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20719    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20720echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20721    ac_header_preproc=yes
20722    ;;
20723  no:yes:* )
20724    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20725echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20726    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20727echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20728    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20729echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20730    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20731echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20732    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20733echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20734    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20735echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20736    ( cat <<\_ASBOX
20737## ------------------------------------------ ##
20738## Report this to thrulay-users@internet2.edu ##
20739## ------------------------------------------ ##
20740_ASBOX
20741     ) | sed "s/^/$as_me: WARNING:     /" >&2
20742    ;;
20743esac
20744{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20745echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20746if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20747  echo $ECHO_N "(cached) $ECHO_C" >&6
20748else
20749  eval "$as_ac_Header=\$ac_header_preproc"
20750fi
20751ac_res=`eval echo '${'$as_ac_Header'}'`
20752	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20753echo "${ECHO_T}$ac_res" >&6; }
20754
20755fi
20756if test `eval echo '${'$as_ac_Header'}'` = yes; then
20757  cat >>confdefs.h <<_ACEOF
20758#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20759_ACEOF
20760
20761fi
20762
20763done
20764
20765
20766
20767for ac_header in float.h stdint.h
20768do
20769as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20770if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20771  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20772echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20773if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20774  echo $ECHO_N "(cached) $ECHO_C" >&6
20775fi
20776ac_res=`eval echo '${'$as_ac_Header'}'`
20777	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20778echo "${ECHO_T}$ac_res" >&6; }
20779else
20780  # Is the header compilable?
20781{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20782echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20783cat >conftest.$ac_ext <<_ACEOF
20784/* confdefs.h.  */
20785_ACEOF
20786cat confdefs.h >>conftest.$ac_ext
20787cat >>conftest.$ac_ext <<_ACEOF
20788/* end confdefs.h.  */
20789$ac_includes_default
20790#include <$ac_header>
20791_ACEOF
20792rm -f conftest.$ac_objext
20793if { (ac_try="$ac_compile"
20794case "(($ac_try" in
20795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796  *) ac_try_echo=$ac_try;;
20797esac
20798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20799  (eval "$ac_compile") 2>conftest.er1
20800  ac_status=$?
20801  grep -v '^ *+' conftest.er1 >conftest.err
20802  rm -f conftest.er1
20803  cat conftest.err >&5
20804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805  (exit $ac_status); } &&
20806	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20807  { (case "(($ac_try" in
20808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20809  *) ac_try_echo=$ac_try;;
20810esac
20811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20812  (eval "$ac_try") 2>&5
20813  ac_status=$?
20814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815  (exit $ac_status); }; } &&
20816	 { ac_try='test -s conftest.$ac_objext'
20817  { (case "(($ac_try" in
20818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20819  *) ac_try_echo=$ac_try;;
20820esac
20821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20822  (eval "$ac_try") 2>&5
20823  ac_status=$?
20824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825  (exit $ac_status); }; }; then
20826  ac_header_compiler=yes
20827else
20828  echo "$as_me: failed program was:" >&5
20829sed 's/^/| /' conftest.$ac_ext >&5
20830
20831	ac_header_compiler=no
20832fi
20833
20834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20835{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20836echo "${ECHO_T}$ac_header_compiler" >&6; }
20837
20838# Is the header present?
20839{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20840echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20841cat >conftest.$ac_ext <<_ACEOF
20842/* confdefs.h.  */
20843_ACEOF
20844cat confdefs.h >>conftest.$ac_ext
20845cat >>conftest.$ac_ext <<_ACEOF
20846/* end confdefs.h.  */
20847#include <$ac_header>
20848_ACEOF
20849if { (ac_try="$ac_cpp conftest.$ac_ext"
20850case "(($ac_try" in
20851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20852  *) ac_try_echo=$ac_try;;
20853esac
20854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20855  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20856  ac_status=$?
20857  grep -v '^ *+' conftest.er1 >conftest.err
20858  rm -f conftest.er1
20859  cat conftest.err >&5
20860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861  (exit $ac_status); } >/dev/null; then
20862  if test -s conftest.err; then
20863    ac_cpp_err=$ac_c_preproc_warn_flag
20864    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20865  else
20866    ac_cpp_err=
20867  fi
20868else
20869  ac_cpp_err=yes
20870fi
20871if test -z "$ac_cpp_err"; then
20872  ac_header_preproc=yes
20873else
20874  echo "$as_me: failed program was:" >&5
20875sed 's/^/| /' conftest.$ac_ext >&5
20876
20877  ac_header_preproc=no
20878fi
20879
20880rm -f conftest.err conftest.$ac_ext
20881{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20882echo "${ECHO_T}$ac_header_preproc" >&6; }
20883
20884# So?  What about this header?
20885case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20886  yes:no: )
20887    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20888echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20889    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20890echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20891    ac_header_preproc=yes
20892    ;;
20893  no:yes:* )
20894    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20895echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20896    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20897echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20898    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20899echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20900    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20901echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20902    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20903echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20904    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20905echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20906    ( cat <<\_ASBOX
20907## ------------------------------------------ ##
20908## Report this to thrulay-users@internet2.edu ##
20909## ------------------------------------------ ##
20910_ASBOX
20911     ) | sed "s/^/$as_me: WARNING:     /" >&2
20912    ;;
20913esac
20914{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20915echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20916if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20917  echo $ECHO_N "(cached) $ECHO_C" >&6
20918else
20919  eval "$as_ac_Header=\$ac_header_preproc"
20920fi
20921ac_res=`eval echo '${'$as_ac_Header'}'`
20922	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20923echo "${ECHO_T}$ac_res" >&6; }
20924
20925fi
20926if test `eval echo '${'$as_ac_Header'}'` = yes; then
20927  cat >>confdefs.h <<_ACEOF
20928#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20929_ACEOF
20930
20931fi
20932
20933done
20934
20935
20936
20937for ac_header in winsock2.h ws2tcpip.h
20938do
20939as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20940if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20941  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20943if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20944  echo $ECHO_N "(cached) $ECHO_C" >&6
20945fi
20946ac_res=`eval echo '${'$as_ac_Header'}'`
20947	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20948echo "${ECHO_T}$ac_res" >&6; }
20949else
20950  # Is the header compilable?
20951{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20952echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20953cat >conftest.$ac_ext <<_ACEOF
20954/* confdefs.h.  */
20955_ACEOF
20956cat confdefs.h >>conftest.$ac_ext
20957cat >>conftest.$ac_ext <<_ACEOF
20958/* end confdefs.h.  */
20959$ac_includes_default
20960#include <$ac_header>
20961_ACEOF
20962rm -f conftest.$ac_objext
20963if { (ac_try="$ac_compile"
20964case "(($ac_try" in
20965  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20966  *) ac_try_echo=$ac_try;;
20967esac
20968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20969  (eval "$ac_compile") 2>conftest.er1
20970  ac_status=$?
20971  grep -v '^ *+' conftest.er1 >conftest.err
20972  rm -f conftest.er1
20973  cat conftest.err >&5
20974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975  (exit $ac_status); } &&
20976	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20977  { (case "(($ac_try" in
20978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979  *) ac_try_echo=$ac_try;;
20980esac
20981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982  (eval "$ac_try") 2>&5
20983  ac_status=$?
20984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985  (exit $ac_status); }; } &&
20986	 { ac_try='test -s conftest.$ac_objext'
20987  { (case "(($ac_try" in
20988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20989  *) ac_try_echo=$ac_try;;
20990esac
20991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20992  (eval "$ac_try") 2>&5
20993  ac_status=$?
20994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995  (exit $ac_status); }; }; then
20996  ac_header_compiler=yes
20997else
20998  echo "$as_me: failed program was:" >&5
20999sed 's/^/| /' conftest.$ac_ext >&5
21000
21001	ac_header_compiler=no
21002fi
21003
21004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21005{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21006echo "${ECHO_T}$ac_header_compiler" >&6; }
21007
21008# Is the header present?
21009{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21010echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21011cat >conftest.$ac_ext <<_ACEOF
21012/* confdefs.h.  */
21013_ACEOF
21014cat confdefs.h >>conftest.$ac_ext
21015cat >>conftest.$ac_ext <<_ACEOF
21016/* end confdefs.h.  */
21017#include <$ac_header>
21018_ACEOF
21019if { (ac_try="$ac_cpp conftest.$ac_ext"
21020case "(($ac_try" in
21021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21022  *) ac_try_echo=$ac_try;;
21023esac
21024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21025  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21026  ac_status=$?
21027  grep -v '^ *+' conftest.er1 >conftest.err
21028  rm -f conftest.er1
21029  cat conftest.err >&5
21030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031  (exit $ac_status); } >/dev/null; then
21032  if test -s conftest.err; then
21033    ac_cpp_err=$ac_c_preproc_warn_flag
21034    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21035  else
21036    ac_cpp_err=
21037  fi
21038else
21039  ac_cpp_err=yes
21040fi
21041if test -z "$ac_cpp_err"; then
21042  ac_header_preproc=yes
21043else
21044  echo "$as_me: failed program was:" >&5
21045sed 's/^/| /' conftest.$ac_ext >&5
21046
21047  ac_header_preproc=no
21048fi
21049
21050rm -f conftest.err conftest.$ac_ext
21051{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21052echo "${ECHO_T}$ac_header_preproc" >&6; }
21053
21054# So?  What about this header?
21055case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21056  yes:no: )
21057    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21058echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21059    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21060echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21061    ac_header_preproc=yes
21062    ;;
21063  no:yes:* )
21064    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21065echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21066    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21067echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21068    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21069echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21070    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21071echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21072    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21073echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21074    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21075echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21076    ( cat <<\_ASBOX
21077## ------------------------------------------ ##
21078## Report this to thrulay-users@internet2.edu ##
21079## ------------------------------------------ ##
21080_ASBOX
21081     ) | sed "s/^/$as_me: WARNING:     /" >&2
21082    ;;
21083esac
21084{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21086if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21087  echo $ECHO_N "(cached) $ECHO_C" >&6
21088else
21089  eval "$as_ac_Header=\$ac_header_preproc"
21090fi
21091ac_res=`eval echo '${'$as_ac_Header'}'`
21092	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21093echo "${ECHO_T}$ac_res" >&6; }
21094
21095fi
21096if test `eval echo '${'$as_ac_Header'}'` = yes; then
21097  cat >>confdefs.h <<_ACEOF
21098#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21099_ACEOF
21100
21101fi
21102
21103done
21104
21105
21106
21107for ac_header in fasttime.h tsci2.h
21108do
21109as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21110if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21111  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21113if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21114  echo $ECHO_N "(cached) $ECHO_C" >&6
21115fi
21116ac_res=`eval echo '${'$as_ac_Header'}'`
21117	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21118echo "${ECHO_T}$ac_res" >&6; }
21119else
21120  # Is the header compilable?
21121{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21122echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21123cat >conftest.$ac_ext <<_ACEOF
21124/* confdefs.h.  */
21125_ACEOF
21126cat confdefs.h >>conftest.$ac_ext
21127cat >>conftest.$ac_ext <<_ACEOF
21128/* end confdefs.h.  */
21129$ac_includes_default
21130#include <$ac_header>
21131_ACEOF
21132rm -f conftest.$ac_objext
21133if { (ac_try="$ac_compile"
21134case "(($ac_try" in
21135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21136  *) ac_try_echo=$ac_try;;
21137esac
21138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21139  (eval "$ac_compile") 2>conftest.er1
21140  ac_status=$?
21141  grep -v '^ *+' conftest.er1 >conftest.err
21142  rm -f conftest.er1
21143  cat conftest.err >&5
21144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145  (exit $ac_status); } &&
21146	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21147  { (case "(($ac_try" in
21148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21149  *) ac_try_echo=$ac_try;;
21150esac
21151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21152  (eval "$ac_try") 2>&5
21153  ac_status=$?
21154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155  (exit $ac_status); }; } &&
21156	 { ac_try='test -s conftest.$ac_objext'
21157  { (case "(($ac_try" in
21158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21159  *) ac_try_echo=$ac_try;;
21160esac
21161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21162  (eval "$ac_try") 2>&5
21163  ac_status=$?
21164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165  (exit $ac_status); }; }; then
21166  ac_header_compiler=yes
21167else
21168  echo "$as_me: failed program was:" >&5
21169sed 's/^/| /' conftest.$ac_ext >&5
21170
21171	ac_header_compiler=no
21172fi
21173
21174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21175{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21176echo "${ECHO_T}$ac_header_compiler" >&6; }
21177
21178# Is the header present?
21179{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21180echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21181cat >conftest.$ac_ext <<_ACEOF
21182/* confdefs.h.  */
21183_ACEOF
21184cat confdefs.h >>conftest.$ac_ext
21185cat >>conftest.$ac_ext <<_ACEOF
21186/* end confdefs.h.  */
21187#include <$ac_header>
21188_ACEOF
21189if { (ac_try="$ac_cpp conftest.$ac_ext"
21190case "(($ac_try" in
21191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21192  *) ac_try_echo=$ac_try;;
21193esac
21194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21195  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21196  ac_status=$?
21197  grep -v '^ *+' conftest.er1 >conftest.err
21198  rm -f conftest.er1
21199  cat conftest.err >&5
21200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201  (exit $ac_status); } >/dev/null; then
21202  if test -s conftest.err; then
21203    ac_cpp_err=$ac_c_preproc_warn_flag
21204    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21205  else
21206    ac_cpp_err=
21207  fi
21208else
21209  ac_cpp_err=yes
21210fi
21211if test -z "$ac_cpp_err"; then
21212  ac_header_preproc=yes
21213else
21214  echo "$as_me: failed program was:" >&5
21215sed 's/^/| /' conftest.$ac_ext >&5
21216
21217  ac_header_preproc=no
21218fi
21219
21220rm -f conftest.err conftest.$ac_ext
21221{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21222echo "${ECHO_T}$ac_header_preproc" >&6; }
21223
21224# So?  What about this header?
21225case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21226  yes:no: )
21227    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21228echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21229    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21230echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21231    ac_header_preproc=yes
21232    ;;
21233  no:yes:* )
21234    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21235echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21236    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21237echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21238    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21239echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21240    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21241echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21242    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21243echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21244    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21245echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21246    ( cat <<\_ASBOX
21247## ------------------------------------------ ##
21248## Report this to thrulay-users@internet2.edu ##
21249## ------------------------------------------ ##
21250_ASBOX
21251     ) | sed "s/^/$as_me: WARNING:     /" >&2
21252    ;;
21253esac
21254{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21255echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21256if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21257  echo $ECHO_N "(cached) $ECHO_C" >&6
21258else
21259  eval "$as_ac_Header=\$ac_header_preproc"
21260fi
21261ac_res=`eval echo '${'$as_ac_Header'}'`
21262	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21263echo "${ECHO_T}$ac_res" >&6; }
21264
21265fi
21266if test `eval echo '${'$as_ac_Header'}'` = yes; then
21267  cat >>confdefs.h <<_ACEOF
21268#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21269_ACEOF
21270
21271fi
21272
21273done
21274
21275
21276# Check if MinGW32 specific libs are required.
21277{ echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
21278echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
21279if test "${ac_cv_search_gethostbyname+set}" = set; then
21280  echo $ECHO_N "(cached) $ECHO_C" >&6
21281else
21282  ac_func_search_save_LIBS=$LIBS
21283cat >conftest.$ac_ext <<_ACEOF
21284/* confdefs.h.  */
21285_ACEOF
21286cat confdefs.h >>conftest.$ac_ext
21287cat >>conftest.$ac_ext <<_ACEOF
21288/* end confdefs.h.  */
21289
21290/* Override any GCC internal prototype to avoid an error.
21291   Use char because int might match the return type of a GCC
21292   builtin and then its argument prototype would still apply.  */
21293#ifdef __cplusplus
21294extern "C"
21295#endif
21296char gethostbyname ();
21297int
21298main ()
21299{
21300return gethostbyname ();
21301  ;
21302  return 0;
21303}
21304_ACEOF
21305for ac_lib in '' nsl socket; do
21306  if test -z "$ac_lib"; then
21307    ac_res="none required"
21308  else
21309    ac_res=-l$ac_lib
21310    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21311  fi
21312  rm -f conftest.$ac_objext conftest$ac_exeext
21313if { (ac_try="$ac_link"
21314case "(($ac_try" in
21315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21316  *) ac_try_echo=$ac_try;;
21317esac
21318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21319  (eval "$ac_link") 2>conftest.er1
21320  ac_status=$?
21321  grep -v '^ *+' conftest.er1 >conftest.err
21322  rm -f conftest.er1
21323  cat conftest.err >&5
21324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325  (exit $ac_status); } &&
21326	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21327  { (case "(($ac_try" in
21328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21329  *) ac_try_echo=$ac_try;;
21330esac
21331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21332  (eval "$ac_try") 2>&5
21333  ac_status=$?
21334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335  (exit $ac_status); }; } &&
21336	 { ac_try='test -s conftest$ac_exeext'
21337  { (case "(($ac_try" in
21338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21339  *) ac_try_echo=$ac_try;;
21340esac
21341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21342  (eval "$ac_try") 2>&5
21343  ac_status=$?
21344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345  (exit $ac_status); }; }; then
21346  ac_cv_search_gethostbyname=$ac_res
21347else
21348  echo "$as_me: failed program was:" >&5
21349sed 's/^/| /' conftest.$ac_ext >&5
21350
21351
21352fi
21353
21354rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21355      conftest$ac_exeext
21356  if test "${ac_cv_search_gethostbyname+set}" = set; then
21357  break
21358fi
21359done
21360if test "${ac_cv_search_gethostbyname+set}" = set; then
21361  :
21362else
21363  ac_cv_search_gethostbyname=no
21364fi
21365rm conftest.$ac_ext
21366LIBS=$ac_func_search_save_LIBS
21367fi
21368{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
21369echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
21370ac_res=$ac_cv_search_gethostbyname
21371if test "$ac_res" != no; then
21372  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21373
21374else
21375
21376my_old_LIBS=$LIBS
21377LIBS="-lws2_32 $LIBS"
21378ws2_result=yes
21379{ echo "$as_me:$LINENO: checking for gethostbyname in ws2_32" >&5
21380echo $ECHO_N "checking for gethostbyname in ws2_32... $ECHO_C" >&6; }
21381cat >conftest.$ac_ext <<_ACEOF
21382/* confdefs.h.  */
21383_ACEOF
21384cat confdefs.h >>conftest.$ac_ext
21385cat >>conftest.$ac_ext <<_ACEOF
21386/* end confdefs.h.  */
21387#include <winsock2.h>
21388int
21389main ()
21390{
21391gethostbyname("");
21392  ;
21393  return 0;
21394}
21395_ACEOF
21396rm -f conftest.$ac_objext conftest$ac_exeext
21397if { (ac_try="$ac_link"
21398case "(($ac_try" in
21399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21400  *) ac_try_echo=$ac_try;;
21401esac
21402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21403  (eval "$ac_link") 2>conftest.er1
21404  ac_status=$?
21405  grep -v '^ *+' conftest.er1 >conftest.err
21406  rm -f conftest.er1
21407  cat conftest.err >&5
21408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409  (exit $ac_status); } &&
21410	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21411  { (case "(($ac_try" in
21412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21413  *) ac_try_echo=$ac_try;;
21414esac
21415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21416  (eval "$ac_try") 2>&5
21417  ac_status=$?
21418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419  (exit $ac_status); }; } &&
21420	 { ac_try='test -s conftest$ac_exeext'
21421  { (case "(($ac_try" in
21422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21423  *) ac_try_echo=$ac_try;;
21424esac
21425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21426  (eval "$ac_try") 2>&5
21427  ac_status=$?
21428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429  (exit $ac_status); }; }; then
21430  :
21431else
21432  echo "$as_me: failed program was:" >&5
21433sed 's/^/| /' conftest.$ac_ext >&5
21434
21435	LIBS=$my_old_LIBS ws2_result=no
21436fi
21437
21438rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21439      conftest$ac_exeext conftest.$ac_ext
21440{ echo "$as_me:$LINENO: result: $ws2_result" >&5
21441echo "${ECHO_T}$ws2_result" >&6; }
21442
21443fi
21444
21445
21446# Checks for functions
21447{ echo "$as_me:$LINENO: checking for getaddrinfo" >&5
21448echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
21449cat >conftest.$ac_ext <<_ACEOF
21450/* confdefs.h.  */
21451_ACEOF
21452cat confdefs.h >>conftest.$ac_ext
21453cat >>conftest.$ac_ext <<_ACEOF
21454/* end confdefs.h.  */
21455#include <ws2tcpip.h>
21456int
21457main ()
21458{
21459getaddrinfo(NULL,NULL,NULL,NULL);
21460  ;
21461  return 0;
21462}
21463_ACEOF
21464rm -f conftest.$ac_objext
21465if { (ac_try="$ac_compile"
21466case "(($ac_try" in
21467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21468  *) ac_try_echo=$ac_try;;
21469esac
21470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21471  (eval "$ac_compile") 2>conftest.er1
21472  ac_status=$?
21473  grep -v '^ *+' conftest.er1 >conftest.err
21474  rm -f conftest.er1
21475  cat conftest.err >&5
21476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477  (exit $ac_status); } &&
21478	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21479  { (case "(($ac_try" in
21480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21481  *) ac_try_echo=$ac_try;;
21482esac
21483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21484  (eval "$ac_try") 2>&5
21485  ac_status=$?
21486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487  (exit $ac_status); }; } &&
21488	 { ac_try='test -s conftest.$ac_objext'
21489  { (case "(($ac_try" in
21490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21491  *) ac_try_echo=$ac_try;;
21492esac
21493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21494  (eval "$ac_try") 2>&5
21495  ac_status=$?
21496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497  (exit $ac_status); }; }; then
21498
21499cat >>confdefs.h <<\_ACEOF
21500#define HAVE_W32_GETADDRINFO 1
21501_ACEOF
21502
21503		   { echo "$as_me:$LINENO: result: yes" >&5
21504echo "${ECHO_T}yes" >&6; }
21505else
21506  echo "$as_me: failed program was:" >&5
21507sed 's/^/| /' conftest.$ac_ext >&5
21508
21509	{ echo "$as_me:$LINENO: result: no" >&5
21510echo "${ECHO_T}no" >&6; }
21511fi
21512
21513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21514
21515
21516
21517for ac_func in initstate getrusage
21518do
21519as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21520{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21521echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21522if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21523  echo $ECHO_N "(cached) $ECHO_C" >&6
21524else
21525  cat >conftest.$ac_ext <<_ACEOF
21526/* confdefs.h.  */
21527_ACEOF
21528cat confdefs.h >>conftest.$ac_ext
21529cat >>conftest.$ac_ext <<_ACEOF
21530/* end confdefs.h.  */
21531/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21532   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21533#define $ac_func innocuous_$ac_func
21534
21535/* System header to define __stub macros and hopefully few prototypes,
21536    which can conflict with char $ac_func (); below.
21537    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21538    <limits.h> exists even on freestanding compilers.  */
21539
21540#ifdef __STDC__
21541# include <limits.h>
21542#else
21543# include <assert.h>
21544#endif
21545
21546#undef $ac_func
21547
21548/* Override any GCC internal prototype to avoid an error.
21549   Use char because int might match the return type of a GCC
21550   builtin and then its argument prototype would still apply.  */
21551#ifdef __cplusplus
21552extern "C"
21553#endif
21554char $ac_func ();
21555/* The GNU C library defines this for functions which it implements
21556    to always fail with ENOSYS.  Some functions are actually named
21557    something starting with __ and the normal name is an alias.  */
21558#if defined __stub_$ac_func || defined __stub___$ac_func
21559choke me
21560#endif
21561
21562int
21563main ()
21564{
21565return $ac_func ();
21566  ;
21567  return 0;
21568}
21569_ACEOF
21570rm -f conftest.$ac_objext conftest$ac_exeext
21571if { (ac_try="$ac_link"
21572case "(($ac_try" in
21573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21574  *) ac_try_echo=$ac_try;;
21575esac
21576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21577  (eval "$ac_link") 2>conftest.er1
21578  ac_status=$?
21579  grep -v '^ *+' conftest.er1 >conftest.err
21580  rm -f conftest.er1
21581  cat conftest.err >&5
21582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583  (exit $ac_status); } &&
21584	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21585  { (case "(($ac_try" in
21586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21587  *) ac_try_echo=$ac_try;;
21588esac
21589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21590  (eval "$ac_try") 2>&5
21591  ac_status=$?
21592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593  (exit $ac_status); }; } &&
21594	 { ac_try='test -s conftest$ac_exeext'
21595  { (case "(($ac_try" in
21596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21597  *) ac_try_echo=$ac_try;;
21598esac
21599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21600  (eval "$ac_try") 2>&5
21601  ac_status=$?
21602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603  (exit $ac_status); }; }; then
21604  eval "$as_ac_var=yes"
21605else
21606  echo "$as_me: failed program was:" >&5
21607sed 's/^/| /' conftest.$ac_ext >&5
21608
21609	eval "$as_ac_var=no"
21610fi
21611
21612rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21613      conftest$ac_exeext conftest.$ac_ext
21614fi
21615ac_res=`eval echo '${'$as_ac_var'}'`
21616	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21617echo "${ECHO_T}$ac_res" >&6; }
21618if test `eval echo '${'$as_ac_var'}'` = yes; then
21619  cat >>confdefs.h <<_ACEOF
21620#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21621_ACEOF
21622
21623fi
21624done
21625
21626
21627# Checks for typedefs, structures, and compiler characteristics.
21628
21629# Check for multicast structs
21630{ echo "$as_me:$LINENO: checking for struct ip_mreqn" >&5
21631echo $ECHO_N "checking for struct ip_mreqn... $ECHO_C" >&6; }
21632cat >conftest.$ac_ext <<_ACEOF
21633/* confdefs.h.  */
21634_ACEOF
21635cat confdefs.h >>conftest.$ac_ext
21636cat >>conftest.$ac_ext <<_ACEOF
21637/* end confdefs.h.  */
21638#ifndef WIN32
21639		#include <netinet/in.h>
21640		#else
21641		#include <ws2tcpip.h>
21642		#endif
21643int
21644main ()
21645{
21646struct ip_mreqn mreq;
21647	        mreq.imr_address.s_addr = 0;
21648  ;
21649  return 0;
21650}
21651_ACEOF
21652rm -f conftest.$ac_objext
21653if { (ac_try="$ac_compile"
21654case "(($ac_try" in
21655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21656  *) ac_try_echo=$ac_try;;
21657esac
21658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21659  (eval "$ac_compile") 2>conftest.er1
21660  ac_status=$?
21661  grep -v '^ *+' conftest.er1 >conftest.err
21662  rm -f conftest.er1
21663  cat conftest.err >&5
21664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665  (exit $ac_status); } &&
21666	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21667  { (case "(($ac_try" in
21668  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21669  *) ac_try_echo=$ac_try;;
21670esac
21671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21672  (eval "$ac_try") 2>&5
21673  ac_status=$?
21674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675  (exit $ac_status); }; } &&
21676	 { ac_try='test -s conftest.$ac_objext'
21677  { (case "(($ac_try" in
21678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21679  *) ac_try_echo=$ac_try;;
21680esac
21681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21682  (eval "$ac_try") 2>&5
21683  ac_status=$?
21684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685  (exit $ac_status); }; }; then
21686  { echo "$as_me:$LINENO: result: yes" >&5
21687echo "${ECHO_T}yes" >&6; }
21688
21689cat >>confdefs.h <<\_ACEOF
21690#define HAVE_STRUCT_IP_MREQN 1
21691_ACEOF
21692
21693else
21694  echo "$as_me: failed program was:" >&5
21695sed 's/^/| /' conftest.$ac_ext >&5
21696
21697	{ echo "$as_me:$LINENO: result: no" >&5
21698echo "${ECHO_T}no" >&6; }
21699fi
21700
21701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21702{ echo "$as_me:$LINENO: checking for struct ip_mreq" >&5
21703echo $ECHO_N "checking for struct ip_mreq... $ECHO_C" >&6; }
21704cat >conftest.$ac_ext <<_ACEOF
21705/* confdefs.h.  */
21706_ACEOF
21707cat confdefs.h >>conftest.$ac_ext
21708cat >>conftest.$ac_ext <<_ACEOF
21709/* end confdefs.h.  */
21710#ifndef WIN32
21711		#include <netinet/in.h
21712		#else
21713		#include <ws2tcpip.h>
21714		#endif
21715int
21716main ()
21717{
21718struct ip_mreq mreq;
21719	        mreq.imr_interface.s_addr = 0;
21720  ;
21721  return 0;
21722}
21723_ACEOF
21724rm -f conftest.$ac_objext
21725if { (ac_try="$ac_compile"
21726case "(($ac_try" in
21727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21728  *) ac_try_echo=$ac_try;;
21729esac
21730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21731  (eval "$ac_compile") 2>conftest.er1
21732  ac_status=$?
21733  grep -v '^ *+' conftest.er1 >conftest.err
21734  rm -f conftest.er1
21735  cat conftest.err >&5
21736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737  (exit $ac_status); } &&
21738	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21739  { (case "(($ac_try" in
21740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21741  *) ac_try_echo=$ac_try;;
21742esac
21743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21744  (eval "$ac_try") 2>&5
21745  ac_status=$?
21746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747  (exit $ac_status); }; } &&
21748	 { ac_try='test -s conftest.$ac_objext'
21749  { (case "(($ac_try" in
21750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21751  *) ac_try_echo=$ac_try;;
21752esac
21753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21754  (eval "$ac_try") 2>&5
21755  ac_status=$?
21756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757  (exit $ac_status); }; }; then
21758  { echo "$as_me:$LINENO: result: yes" >&5
21759echo "${ECHO_T}yes" >&6; }
21760
21761cat >>confdefs.h <<\_ACEOF
21762#define HAVE_STRUCT_IP_MREQ 1
21763_ACEOF
21764
21765else
21766  echo "$as_me: failed program was:" >&5
21767sed 's/^/| /' conftest.$ac_ext >&5
21768
21769	{ echo "$as_me:$LINENO: result: no" >&5
21770echo "${ECHO_T}no" >&6; }
21771fi
21772
21773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21774
21775case $host in
21776  *solaris*)
21777    { echo "$as_me:$LINENO: Solaris system detected, disabling stripping of binaries" >&5
21778echo "$as_me: Solaris system detected, disabling stripping of binaries" >&6;}
21779    STRIP=
21780    ;;
21781esac
21782
21783
21784ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile thrulay.spec"
21785
21786cat >confcache <<\_ACEOF
21787# This file is a shell script that caches the results of configure
21788# tests run on this system so they can be shared between configure
21789# scripts and configure runs, see configure's option --config-cache.
21790# It is not useful on other systems.  If it contains results you don't
21791# want to keep, you may remove or edit it.
21792#
21793# config.status only pays attention to the cache file if you give it
21794# the --recheck option to rerun configure.
21795#
21796# `ac_cv_env_foo' variables (set or unset) will be overridden when
21797# loading this file, other *unset* `ac_cv_foo' will be assigned the
21798# following values.
21799
21800_ACEOF
21801
21802# The following way of writing the cache mishandles newlines in values,
21803# but we know of no workaround that is simple, portable, and efficient.
21804# So, we kill variables containing newlines.
21805# Ultrix sh set writes to stderr and can't be redirected directly,
21806# and sets the high bit in the cache file unless we assign to the vars.
21807(
21808  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21809    eval ac_val=\$$ac_var
21810    case $ac_val in #(
21811    *${as_nl}*)
21812      case $ac_var in #(
21813      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21814echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21815      esac
21816      case $ac_var in #(
21817      _ | IFS | as_nl) ;; #(
21818      *) $as_unset $ac_var ;;
21819      esac ;;
21820    esac
21821  done
21822
21823  (set) 2>&1 |
21824    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21825    *${as_nl}ac_space=\ *)
21826      # `set' does not quote correctly, so add quotes (double-quote
21827      # substitution turns \\\\ into \\, and sed turns \\ into \).
21828      sed -n \
21829	"s/'/'\\\\''/g;
21830	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21831      ;; #(
21832    *)
21833      # `set' quotes correctly as required by POSIX, so do not add quotes.
21834      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21835      ;;
21836    esac |
21837    sort
21838) |
21839  sed '
21840     /^ac_cv_env_/b end
21841     t clear
21842     :clear
21843     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21844     t end
21845     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21846     :end' >>confcache
21847if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21848  if test -w "$cache_file"; then
21849    test "x$cache_file" != "x/dev/null" &&
21850      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21851echo "$as_me: updating cache $cache_file" >&6;}
21852    cat confcache >$cache_file
21853  else
21854    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21855echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21856  fi
21857fi
21858rm -f confcache
21859
21860test "x$prefix" = xNONE && prefix=$ac_default_prefix
21861# Let make expand exec_prefix.
21862test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21863
21864DEFS=-DHAVE_CONFIG_H
21865
21866ac_libobjs=
21867ac_ltlibobjs=
21868for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21869  # 1. Remove the extension, and $U if already installed.
21870  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21871  ac_i=`echo "$ac_i" | sed "$ac_script"`
21872  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21873  #    will be set to the directory where LIBOBJS objects are built.
21874  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21875  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21876done
21877LIBOBJS=$ac_libobjs
21878
21879LTLIBOBJS=$ac_ltlibobjs
21880
21881
21882if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21883  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21884Usually this means the macro was only invoked conditionally." >&5
21885echo "$as_me: error: conditional \"AMDEP\" was never defined.
21886Usually this means the macro was only invoked conditionally." >&2;}
21887   { (exit 1); exit 1; }; }
21888fi
21889if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21890  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21891Usually this means the macro was only invoked conditionally." >&5
21892echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21893Usually this means the macro was only invoked conditionally." >&2;}
21894   { (exit 1); exit 1; }; }
21895fi
21896if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21897  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21898Usually this means the macro was only invoked conditionally." >&5
21899echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21900Usually this means the macro was only invoked conditionally." >&2;}
21901   { (exit 1); exit 1; }; }
21902fi
21903
21904: ${CONFIG_STATUS=./config.status}
21905ac_clean_files_save=$ac_clean_files
21906ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21907{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21908echo "$as_me: creating $CONFIG_STATUS" >&6;}
21909cat >$CONFIG_STATUS <<_ACEOF
21910#! $SHELL
21911# Generated by $as_me.
21912# Run this file to recreate the current configuration.
21913# Compiler output produced by configure, useful for debugging
21914# configure, is in config.log if it exists.
21915
21916debug=false
21917ac_cs_recheck=false
21918ac_cs_silent=false
21919SHELL=\${CONFIG_SHELL-$SHELL}
21920_ACEOF
21921
21922cat >>$CONFIG_STATUS <<\_ACEOF
21923## --------------------- ##
21924## M4sh Initialization.  ##
21925## --------------------- ##
21926
21927# Be Bourne compatible
21928if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21929  emulate sh
21930  NULLCMD=:
21931  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21932  # is contrary to our usage.  Disable this feature.
21933  alias -g '${1+"$@"}'='"$@"'
21934  setopt NO_GLOB_SUBST
21935else
21936  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21937fi
21938BIN_SH=xpg4; export BIN_SH # for Tru64
21939DUALCASE=1; export DUALCASE # for MKS sh
21940
21941
21942# PATH needs CR
21943# Avoid depending upon Character Ranges.
21944as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21945as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21946as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21947as_cr_digits='0123456789'
21948as_cr_alnum=$as_cr_Letters$as_cr_digits
21949
21950# The user is always right.
21951if test "${PATH_SEPARATOR+set}" != set; then
21952  echo "#! /bin/sh" >conf$$.sh
21953  echo  "exit 0"   >>conf$$.sh
21954  chmod +x conf$$.sh
21955  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21956    PATH_SEPARATOR=';'
21957  else
21958    PATH_SEPARATOR=:
21959  fi
21960  rm -f conf$$.sh
21961fi
21962
21963# Support unset when possible.
21964if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21965  as_unset=unset
21966else
21967  as_unset=false
21968fi
21969
21970
21971# IFS
21972# We need space, tab and new line, in precisely that order.  Quoting is
21973# there to prevent editors from complaining about space-tab.
21974# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21975# splitting by setting IFS to empty value.)
21976as_nl='
21977'
21978IFS=" ""	$as_nl"
21979
21980# Find who we are.  Look in the path if we contain no directory separator.
21981case $0 in
21982  *[\\/]* ) as_myself=$0 ;;
21983  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21984for as_dir in $PATH
21985do
21986  IFS=$as_save_IFS
21987  test -z "$as_dir" && as_dir=.
21988  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21989done
21990IFS=$as_save_IFS
21991
21992     ;;
21993esac
21994# We did not find ourselves, most probably we were run as `sh COMMAND'
21995# in which case we are not to be found in the path.
21996if test "x$as_myself" = x; then
21997  as_myself=$0
21998fi
21999if test ! -f "$as_myself"; then
22000  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22001  { (exit 1); exit 1; }
22002fi
22003
22004# Work around bugs in pre-3.0 UWIN ksh.
22005for as_var in ENV MAIL MAILPATH
22006do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22007done
22008PS1='$ '
22009PS2='> '
22010PS4='+ '
22011
22012# NLS nuisances.
22013for as_var in \
22014  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22015  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22016  LC_TELEPHONE LC_TIME
22017do
22018  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22019    eval $as_var=C; export $as_var
22020  else
22021    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22022  fi
22023done
22024
22025# Required to use basename.
22026if expr a : '\(a\)' >/dev/null 2>&1 &&
22027   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22028  as_expr=expr
22029else
22030  as_expr=false
22031fi
22032
22033if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22034  as_basename=basename
22035else
22036  as_basename=false
22037fi
22038
22039
22040# Name of the executable.
22041as_me=`$as_basename -- "$0" ||
22042$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22043	 X"$0" : 'X\(//\)$' \| \
22044	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22045echo X/"$0" |
22046    sed '/^.*\/\([^/][^/]*\)\/*$/{
22047	    s//\1/
22048	    q
22049	  }
22050	  /^X\/\(\/\/\)$/{
22051	    s//\1/
22052	    q
22053	  }
22054	  /^X\/\(\/\).*/{
22055	    s//\1/
22056	    q
22057	  }
22058	  s/.*/./; q'`
22059
22060# CDPATH.
22061$as_unset CDPATH
22062
22063
22064
22065  as_lineno_1=$LINENO
22066  as_lineno_2=$LINENO
22067  test "x$as_lineno_1" != "x$as_lineno_2" &&
22068  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22069
22070  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22071  # uniformly replaced by the line number.  The first 'sed' inserts a
22072  # line-number line after each line using $LINENO; the second 'sed'
22073  # does the real work.  The second script uses 'N' to pair each
22074  # line-number line with the line containing $LINENO, and appends
22075  # trailing '-' during substitution so that $LINENO is not a special
22076  # case at line end.
22077  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22078  # scripts with optimization help from Paolo Bonzini.  Blame Lee
22079  # E. McMahon (1931-1989) for sed's syntax.  :-)
22080  sed -n '
22081    p
22082    /[$]LINENO/=
22083  ' <$as_myself |
22084    sed '
22085      s/[$]LINENO.*/&-/
22086      t lineno
22087      b
22088      :lineno
22089      N
22090      :loop
22091      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22092      t loop
22093      s/-\n.*//
22094    ' >$as_me.lineno &&
22095  chmod +x "$as_me.lineno" ||
22096    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22097   { (exit 1); exit 1; }; }
22098
22099  # Don't try to exec as it changes $[0], causing all sort of problems
22100  # (the dirname of $[0] is not the place where we might find the
22101  # original and so on.  Autoconf is especially sensitive to this).
22102  . "./$as_me.lineno"
22103  # Exit status is that of the last command.
22104  exit
22105}
22106
22107
22108if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22109  as_dirname=dirname
22110else
22111  as_dirname=false
22112fi
22113
22114ECHO_C= ECHO_N= ECHO_T=
22115case `echo -n x` in
22116-n*)
22117  case `echo 'x\c'` in
22118  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22119  *)   ECHO_C='\c';;
22120  esac;;
22121*)
22122  ECHO_N='-n';;
22123esac
22124
22125if expr a : '\(a\)' >/dev/null 2>&1 &&
22126   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22127  as_expr=expr
22128else
22129  as_expr=false
22130fi
22131
22132rm -f conf$$ conf$$.exe conf$$.file
22133if test -d conf$$.dir; then
22134  rm -f conf$$.dir/conf$$.file
22135else
22136  rm -f conf$$.dir
22137  mkdir conf$$.dir
22138fi
22139echo >conf$$.file
22140if ln -s conf$$.file conf$$ 2>/dev/null; then
22141  as_ln_s='ln -s'
22142  # ... but there are two gotchas:
22143  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22144  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22145  # In both cases, we have to default to `cp -p'.
22146  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22147    as_ln_s='cp -p'
22148elif ln conf$$.file conf$$ 2>/dev/null; then
22149  as_ln_s=ln
22150else
22151  as_ln_s='cp -p'
22152fi
22153rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22154rmdir conf$$.dir 2>/dev/null
22155
22156if mkdir -p . 2>/dev/null; then
22157  as_mkdir_p=:
22158else
22159  test -d ./-p && rmdir ./-p
22160  as_mkdir_p=false
22161fi
22162
22163# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
22164# systems may use methods other than mode bits to determine executability.
22165cat >conf$$.file <<_ASEOF
22166#! /bin/sh
22167exit 0
22168_ASEOF
22169chmod +x conf$$.file
22170if test -x conf$$.file >/dev/null 2>&1; then
22171  as_executable_p="test -x"
22172else
22173  as_executable_p=:
22174fi
22175rm -f conf$$.file
22176
22177# Sed expression to map a string onto a valid CPP name.
22178as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22179
22180# Sed expression to map a string onto a valid variable name.
22181as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22182
22183
22184exec 6>&1
22185
22186# Save the log message, to keep $[0] and so on meaningful, and to
22187# report actual input values of CONFIG_FILES etc. instead of their
22188# values after options handling.
22189ac_log="
22190This file was extended by thrulay $as_me 0.9rc1, which was
22191generated by GNU Autoconf 2.60a.  Invocation command line was
22192
22193  CONFIG_FILES    = $CONFIG_FILES
22194  CONFIG_HEADERS  = $CONFIG_HEADERS
22195  CONFIG_LINKS    = $CONFIG_LINKS
22196  CONFIG_COMMANDS = $CONFIG_COMMANDS
22197  $ $0 $@
22198
22199on `(hostname || uname -n) 2>/dev/null | sed 1q`
22200"
22201
22202_ACEOF
22203
22204cat >>$CONFIG_STATUS <<_ACEOF
22205# Files that config.status was made for.
22206config_files="$ac_config_files"
22207config_headers="$ac_config_headers"
22208config_commands="$ac_config_commands"
22209
22210_ACEOF
22211
22212cat >>$CONFIG_STATUS <<\_ACEOF
22213ac_cs_usage="\
22214\`$as_me' instantiates files from templates according to the
22215current configuration.
22216
22217Usage: $0 [OPTIONS] [FILE]...
22218
22219  -h, --help       print this help, then exit
22220  -V, --version    print version number and configuration settings, then exit
22221  -q, --quiet      do not print progress messages
22222  -d, --debug      don't remove temporary files
22223      --recheck    update $as_me by reconfiguring in the same conditions
22224  --file=FILE[:TEMPLATE]
22225		   instantiate the configuration file FILE
22226  --header=FILE[:TEMPLATE]
22227		   instantiate the configuration header FILE
22228
22229Configuration files:
22230$config_files
22231
22232Configuration headers:
22233$config_headers
22234
22235Configuration commands:
22236$config_commands
22237
22238Report bugs to <bug-autoconf@gnu.org>."
22239
22240_ACEOF
22241cat >>$CONFIG_STATUS <<_ACEOF
22242ac_cs_version="\\
22243thrulay config.status 0.9rc1
22244configured by $0, generated by GNU Autoconf 2.60a,
22245  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22246
22247Copyright (C) 2006 Free Software Foundation, Inc.
22248This config.status script is free software; the Free Software Foundation
22249gives unlimited permission to copy, distribute and modify it."
22250
22251ac_pwd='$ac_pwd'
22252srcdir='$srcdir'
22253INSTALL='$INSTALL'
22254_ACEOF
22255
22256cat >>$CONFIG_STATUS <<\_ACEOF
22257# If no file are specified by the user, then we need to provide default
22258# value.  By we need to know if files were specified by the user.
22259ac_need_defaults=:
22260while test $# != 0
22261do
22262  case $1 in
22263  --*=*)
22264    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22265    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22266    ac_shift=:
22267    ;;
22268  *)
22269    ac_option=$1
22270    ac_optarg=$2
22271    ac_shift=shift
22272    ;;
22273  esac
22274
22275  case $ac_option in
22276  # Handling of the options.
22277  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22278    ac_cs_recheck=: ;;
22279  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22280    echo "$ac_cs_version"; exit ;;
22281  --debug | --debu | --deb | --de | --d | -d )
22282    debug=: ;;
22283  --file | --fil | --fi | --f )
22284    $ac_shift
22285    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22286    ac_need_defaults=false;;
22287  --header | --heade | --head | --hea )
22288    $ac_shift
22289    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22290    ac_need_defaults=false;;
22291  --he | --h)
22292    # Conflict between --help and --header
22293    { echo "$as_me: error: ambiguous option: $1
22294Try \`$0 --help' for more information." >&2
22295   { (exit 1); exit 1; }; };;
22296  --help | --hel | -h )
22297    echo "$ac_cs_usage"; exit ;;
22298  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22299  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22300    ac_cs_silent=: ;;
22301
22302  # This is an error.
22303  -*) { echo "$as_me: error: unrecognized option: $1
22304Try \`$0 --help' for more information." >&2
22305   { (exit 1); exit 1; }; } ;;
22306
22307  *) ac_config_targets="$ac_config_targets $1"
22308     ac_need_defaults=false ;;
22309
22310  esac
22311  shift
22312done
22313
22314ac_configure_extra_args=
22315
22316if $ac_cs_silent; then
22317  exec 6>/dev/null
22318  ac_configure_extra_args="$ac_configure_extra_args --silent"
22319fi
22320
22321_ACEOF
22322cat >>$CONFIG_STATUS <<_ACEOF
22323if \$ac_cs_recheck; then
22324  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22325  CONFIG_SHELL=$SHELL
22326  export CONFIG_SHELL
22327  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22328fi
22329
22330_ACEOF
22331cat >>$CONFIG_STATUS <<\_ACEOF
22332exec 5>>config.log
22333{
22334  echo
22335  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22336## Running $as_me. ##
22337_ASBOX
22338  echo "$ac_log"
22339} >&5
22340
22341_ACEOF
22342cat >>$CONFIG_STATUS <<_ACEOF
22343#
22344# INIT-COMMANDS
22345#
22346AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22347
22348_ACEOF
22349
22350cat >>$CONFIG_STATUS <<\_ACEOF
22351
22352# Handling of arguments.
22353for ac_config_target in $ac_config_targets
22354do
22355  case $ac_config_target in
22356    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22357    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22358    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22359    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22360    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22361    "thrulay.spec") CONFIG_FILES="$CONFIG_FILES thrulay.spec" ;;
22362
22363  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22364echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22365   { (exit 1); exit 1; }; };;
22366  esac
22367done
22368
22369
22370# If the user did not use the arguments to specify the items to instantiate,
22371# then the envvar interface is used.  Set only those that are not.
22372# We use the long form for the default assignment because of an extremely
22373# bizarre bug on SunOS 4.1.3.
22374if $ac_need_defaults; then
22375  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22376  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22377  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22378fi
22379
22380# Have a temporary directory for convenience.  Make it in the build tree
22381# simply because there is no reason against having it here, and in addition,
22382# creating and moving files from /tmp can sometimes cause problems.
22383# Hook for its removal unless debugging.
22384# Note that there is a small window in which the directory will not be cleaned:
22385# after its creation but before its name has been assigned to `$tmp'.
22386$debug ||
22387{
22388  tmp=
22389  trap 'exit_status=$?
22390  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22391' 0
22392  trap '{ (exit 1); exit 1; }' 1 2 13 15
22393}
22394# Create a (secure) tmp directory for tmp files.
22395
22396{
22397  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22398  test -n "$tmp" && test -d "$tmp"
22399}  ||
22400{
22401  tmp=./conf$$-$RANDOM
22402  (umask 077 && mkdir "$tmp")
22403} ||
22404{
22405   echo "$me: cannot create a temporary directory in ." >&2
22406   { (exit 1); exit 1; }
22407}
22408
22409#
22410# Set up the sed scripts for CONFIG_FILES section.
22411#
22412
22413# No need to generate the scripts if there are no CONFIG_FILES.
22414# This happens for instance when ./config.status config.h
22415if test -n "$CONFIG_FILES"; then
22416
22417_ACEOF
22418
22419
22420
22421ac_delim='%!_!# '
22422for ac_last_try in false false false false false :; do
22423  cat >conf$$subs.sed <<_ACEOF
22424SHELL!$SHELL$ac_delim
22425PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22426PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22427PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22428PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22429PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22430PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22431exec_prefix!$exec_prefix$ac_delim
22432prefix!$prefix$ac_delim
22433program_transform_name!$program_transform_name$ac_delim
22434bindir!$bindir$ac_delim
22435sbindir!$sbindir$ac_delim
22436libexecdir!$libexecdir$ac_delim
22437datarootdir!$datarootdir$ac_delim
22438datadir!$datadir$ac_delim
22439sysconfdir!$sysconfdir$ac_delim
22440sharedstatedir!$sharedstatedir$ac_delim
22441localstatedir!$localstatedir$ac_delim
22442includedir!$includedir$ac_delim
22443oldincludedir!$oldincludedir$ac_delim
22444docdir!$docdir$ac_delim
22445infodir!$infodir$ac_delim
22446htmldir!$htmldir$ac_delim
22447dvidir!$dvidir$ac_delim
22448pdfdir!$pdfdir$ac_delim
22449psdir!$psdir$ac_delim
22450libdir!$libdir$ac_delim
22451localedir!$localedir$ac_delim
22452mandir!$mandir$ac_delim
22453DEFS!$DEFS$ac_delim
22454ECHO_C!$ECHO_C$ac_delim
22455ECHO_N!$ECHO_N$ac_delim
22456ECHO_T!$ECHO_T$ac_delim
22457LIBS!$LIBS$ac_delim
22458build_alias!$build_alias$ac_delim
22459host_alias!$host_alias$ac_delim
22460target_alias!$target_alias$ac_delim
22461INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22462INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22463INSTALL_DATA!$INSTALL_DATA$ac_delim
22464CYGPATH_W!$CYGPATH_W$ac_delim
22465PACKAGE!$PACKAGE$ac_delim
22466VERSION!$VERSION$ac_delim
22467ACLOCAL!$ACLOCAL$ac_delim
22468AUTOCONF!$AUTOCONF$ac_delim
22469AUTOMAKE!$AUTOMAKE$ac_delim
22470AUTOHEADER!$AUTOHEADER$ac_delim
22471MAKEINFO!$MAKEINFO$ac_delim
22472install_sh!$install_sh$ac_delim
22473STRIP!$STRIP$ac_delim
22474INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22475mkdir_p!$mkdir_p$ac_delim
22476AWK!$AWK$ac_delim
22477SET_MAKE!$SET_MAKE$ac_delim
22478am__leading_dot!$am__leading_dot$ac_delim
22479AMTAR!$AMTAR$ac_delim
22480am__tar!$am__tar$ac_delim
22481am__untar!$am__untar$ac_delim
22482CC!$CC$ac_delim
22483CFLAGS!$CFLAGS$ac_delim
22484LDFLAGS!$LDFLAGS$ac_delim
22485CPPFLAGS!$CPPFLAGS$ac_delim
22486ac_ct_CC!$ac_ct_CC$ac_delim
22487EXEEXT!$EXEEXT$ac_delim
22488OBJEXT!$OBJEXT$ac_delim
22489DEPDIR!$DEPDIR$ac_delim
22490am__include!$am__include$ac_delim
22491am__quote!$am__quote$ac_delim
22492AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22493AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22494AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22495CCDEPMODE!$CCDEPMODE$ac_delim
22496am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22497am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22498build!$build$ac_delim
22499build_cpu!$build_cpu$ac_delim
22500build_vendor!$build_vendor$ac_delim
22501build_os!$build_os$ac_delim
22502host!$host$ac_delim
22503host_cpu!$host_cpu$ac_delim
22504host_vendor!$host_vendor$ac_delim
22505host_os!$host_os$ac_delim
22506GREP!$GREP$ac_delim
22507EGREP!$EGREP$ac_delim
22508LN_S!$LN_S$ac_delim
22509ECHO!$ECHO$ac_delim
22510AR!$AR$ac_delim
22511RANLIB!$RANLIB$ac_delim
22512CPP!$CPP$ac_delim
22513CXX!$CXX$ac_delim
22514CXXFLAGS!$CXXFLAGS$ac_delim
22515ac_ct_CXX!$ac_ct_CXX$ac_delim
22516CXXDEPMODE!$CXXDEPMODE$ac_delim
22517am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22518am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22519CXXCPP!$CXXCPP$ac_delim
22520F77!$F77$ac_delim
22521_ACEOF
22522
22523  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22524    break
22525  elif $ac_last_try; then
22526    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22527echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22528   { (exit 1); exit 1; }; }
22529  else
22530    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22531  fi
22532done
22533
22534ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22535if test -n "$ac_eof"; then
22536  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22537  ac_eof=`expr $ac_eof + 1`
22538fi
22539
22540cat >>$CONFIG_STATUS <<_ACEOF
22541cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22542/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22543_ACEOF
22544sed '
22545s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22546s/^/s,@/; s/!/@,|#_!!_#|/
22547:n
22548t n
22549s/'"$ac_delim"'$/,g/; t
22550s/$/\\/; p
22551N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22552' >>$CONFIG_STATUS <conf$$subs.sed
22553rm -f conf$$subs.sed
22554cat >>$CONFIG_STATUS <<_ACEOF
22555CEOF$ac_eof
22556_ACEOF
22557
22558
22559ac_delim='%!_!# '
22560for ac_last_try in false false false false false :; do
22561  cat >conf$$subs.sed <<_ACEOF
22562FFLAGS!$FFLAGS$ac_delim
22563ac_ct_F77!$ac_ct_F77$ac_delim
22564LIBTOOL!$LIBTOOL$ac_delim
22565C_STD_FLAGS!$C_STD_FLAGS$ac_delim
22566WARNING_FLAGS!$WARNING_FLAGS$ac_delim
22567LT_VERSION!$LT_VERSION$ac_delim
22568LIBOBJS!$LIBOBJS$ac_delim
22569LTLIBOBJS!$LTLIBOBJS$ac_delim
22570_ACEOF
22571
22572  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
22573    break
22574  elif $ac_last_try; then
22575    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22576echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22577   { (exit 1); exit 1; }; }
22578  else
22579    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22580  fi
22581done
22582
22583ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22584if test -n "$ac_eof"; then
22585  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22586  ac_eof=`expr $ac_eof + 1`
22587fi
22588
22589cat >>$CONFIG_STATUS <<_ACEOF
22590cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22591/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22592_ACEOF
22593sed '
22594s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22595s/^/s,@/; s/!/@,|#_!!_#|/
22596:n
22597t n
22598s/'"$ac_delim"'$/,g/; t
22599s/$/\\/; p
22600N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22601' >>$CONFIG_STATUS <conf$$subs.sed
22602rm -f conf$$subs.sed
22603cat >>$CONFIG_STATUS <<_ACEOF
22604:end
22605s/|#_!!_#|//g
22606CEOF$ac_eof
22607_ACEOF
22608
22609
22610# VPATH may cause trouble with some makes, so we remove $(srcdir),
22611# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22612# trailing colons and then remove the whole line if VPATH becomes empty
22613# (actually we leave an empty line to preserve line numbers).
22614if test "x$srcdir" = x.; then
22615  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22616s/:*\$(srcdir):*/:/
22617s/:*\${srcdir}:*/:/
22618s/:*@srcdir@:*/:/
22619s/^\([^=]*=[	 ]*\):*/\1/
22620s/:*$//
22621s/^[^=]*=[	 ]*$//
22622}'
22623fi
22624
22625cat >>$CONFIG_STATUS <<\_ACEOF
22626fi # test -n "$CONFIG_FILES"
22627
22628
22629for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22630do
22631  case $ac_tag in
22632  :[FHLC]) ac_mode=$ac_tag; continue;;
22633  esac
22634  case $ac_mode$ac_tag in
22635  :[FHL]*:*);;
22636  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22637echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22638   { (exit 1); exit 1; }; };;
22639  :[FH]-) ac_tag=-:-;;
22640  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22641  esac
22642  ac_save_IFS=$IFS
22643  IFS=:
22644  set x $ac_tag
22645  IFS=$ac_save_IFS
22646  shift
22647  ac_file=$1
22648  shift
22649
22650  case $ac_mode in
22651  :L) ac_source=$1;;
22652  :[FH])
22653    ac_file_inputs=
22654    for ac_f
22655    do
22656      case $ac_f in
22657      -) ac_f="$tmp/stdin";;
22658      *) # Look for the file first in the build tree, then in the source tree
22659	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22660	 # because $ac_f cannot contain `:'.
22661	 test -f "$ac_f" ||
22662	   case $ac_f in
22663	   [\\/$]*) false;;
22664	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22665	   esac ||
22666	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22667echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22668   { (exit 1); exit 1; }; };;
22669      esac
22670      ac_file_inputs="$ac_file_inputs $ac_f"
22671    done
22672
22673    # Let's still pretend it is `configure' which instantiates (i.e., don't
22674    # use $as_me), people would be surprised to read:
22675    #    /* config.h.  Generated by config.status.  */
22676    configure_input="Generated from "`IFS=:
22677	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22678    if test x"$ac_file" != x-; then
22679      configure_input="$ac_file.  $configure_input"
22680      { echo "$as_me:$LINENO: creating $ac_file" >&5
22681echo "$as_me: creating $ac_file" >&6;}
22682    fi
22683
22684    case $ac_tag in
22685    *:-:* | *:-) cat >"$tmp/stdin";;
22686    esac
22687    ;;
22688  esac
22689
22690  ac_dir=`$as_dirname -- "$ac_file" ||
22691$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22692	 X"$ac_file" : 'X\(//\)[^/]' \| \
22693	 X"$ac_file" : 'X\(//\)$' \| \
22694	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22695echo X"$ac_file" |
22696    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22697	    s//\1/
22698	    q
22699	  }
22700	  /^X\(\/\/\)[^/].*/{
22701	    s//\1/
22702	    q
22703	  }
22704	  /^X\(\/\/\)$/{
22705	    s//\1/
22706	    q
22707	  }
22708	  /^X\(\/\).*/{
22709	    s//\1/
22710	    q
22711	  }
22712	  s/.*/./; q'`
22713  { as_dir="$ac_dir"
22714  case $as_dir in #(
22715  -*) as_dir=./$as_dir;;
22716  esac
22717  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22718    as_dirs=
22719    while :; do
22720      case $as_dir in #(
22721      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22722      *) as_qdir=$as_dir;;
22723      esac
22724      as_dirs="'$as_qdir' $as_dirs"
22725      as_dir=`$as_dirname -- "$as_dir" ||
22726$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22727	 X"$as_dir" : 'X\(//\)[^/]' \| \
22728	 X"$as_dir" : 'X\(//\)$' \| \
22729	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22730echo X"$as_dir" |
22731    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22732	    s//\1/
22733	    q
22734	  }
22735	  /^X\(\/\/\)[^/].*/{
22736	    s//\1/
22737	    q
22738	  }
22739	  /^X\(\/\/\)$/{
22740	    s//\1/
22741	    q
22742	  }
22743	  /^X\(\/\).*/{
22744	    s//\1/
22745	    q
22746	  }
22747	  s/.*/./; q'`
22748      test -d "$as_dir" && break
22749    done
22750    test -z "$as_dirs" || eval "mkdir $as_dirs"
22751  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22752echo "$as_me: error: cannot create directory $as_dir" >&2;}
22753   { (exit 1); exit 1; }; }; }
22754  ac_builddir=.
22755
22756case "$ac_dir" in
22757.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22758*)
22759  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22760  # A ".." for each directory in $ac_dir_suffix.
22761  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22762  case $ac_top_builddir_sub in
22763  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22764  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22765  esac ;;
22766esac
22767ac_abs_top_builddir=$ac_pwd
22768ac_abs_builddir=$ac_pwd$ac_dir_suffix
22769# for backward compatibility:
22770ac_top_builddir=$ac_top_build_prefix
22771
22772case $srcdir in
22773  .)  # We are building in place.
22774    ac_srcdir=.
22775    ac_top_srcdir=$ac_top_builddir_sub
22776    ac_abs_top_srcdir=$ac_pwd ;;
22777  [\\/]* | ?:[\\/]* )  # Absolute name.
22778    ac_srcdir=$srcdir$ac_dir_suffix;
22779    ac_top_srcdir=$srcdir
22780    ac_abs_top_srcdir=$srcdir ;;
22781  *) # Relative name.
22782    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22783    ac_top_srcdir=$ac_top_build_prefix$srcdir
22784    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22785esac
22786ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22787
22788
22789  case $ac_mode in
22790  :F)
22791  #
22792  # CONFIG_FILE
22793  #
22794
22795  case $INSTALL in
22796  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22797  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22798  esac
22799_ACEOF
22800
22801cat >>$CONFIG_STATUS <<\_ACEOF
22802# If the template does not know about datarootdir, expand it.
22803# FIXME: This hack should be removed a few years after 2.60.
22804ac_datarootdir_hack=; ac_datarootdir_seen=
22805
22806case `sed -n '/datarootdir/ {
22807  p
22808  q
22809}
22810/@datadir@/p
22811/@docdir@/p
22812/@infodir@/p
22813/@localedir@/p
22814/@mandir@/p
22815' $ac_file_inputs` in
22816*datarootdir*) ac_datarootdir_seen=yes;;
22817*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22818  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22819echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22820_ACEOF
22821cat >>$CONFIG_STATUS <<_ACEOF
22822  ac_datarootdir_hack='
22823  s&@datadir@&$datadir&g
22824  s&@docdir@&$docdir&g
22825  s&@infodir@&$infodir&g
22826  s&@localedir@&$localedir&g
22827  s&@mandir@&$mandir&g
22828    s&\\\${datarootdir}&$datarootdir&g' ;;
22829esac
22830_ACEOF
22831
22832# Neutralize VPATH when `$srcdir' = `.'.
22833# Shell code in configure.ac might set extrasub.
22834# FIXME: do we really want to maintain this feature?
22835cat >>$CONFIG_STATUS <<_ACEOF
22836  sed "$ac_vpsub
22837$extrasub
22838_ACEOF
22839cat >>$CONFIG_STATUS <<\_ACEOF
22840:t
22841/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22842s&@configure_input@&$configure_input&;t t
22843s&@top_builddir@&$ac_top_builddir_sub&;t t
22844s&@srcdir@&$ac_srcdir&;t t
22845s&@abs_srcdir@&$ac_abs_srcdir&;t t
22846s&@top_srcdir@&$ac_top_srcdir&;t t
22847s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22848s&@builddir@&$ac_builddir&;t t
22849s&@abs_builddir@&$ac_abs_builddir&;t t
22850s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22851s&@INSTALL@&$ac_INSTALL&;t t
22852$ac_datarootdir_hack
22853" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22854
22855test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22856  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22857  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22858  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22859which seems to be undefined.  Please make sure it is defined." >&5
22860echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22861which seems to be undefined.  Please make sure it is defined." >&2;}
22862
22863  rm -f "$tmp/stdin"
22864  case $ac_file in
22865  -) cat "$tmp/out"; rm -f "$tmp/out";;
22866  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22867  esac
22868 ;;
22869  :H)
22870  #
22871  # CONFIG_HEADER
22872  #
22873_ACEOF
22874
22875# Transform confdefs.h into a sed script `conftest.defines', that
22876# substitutes the proper values into config.h.in to produce config.h.
22877rm -f conftest.defines conftest.tail
22878# First, append a space to every undef/define line, to ease matching.
22879echo 's/$/ /' >conftest.defines
22880# Then, protect against being on the right side of a sed subst, or in
22881# an unquoted here document, in config.status.  If some macros were
22882# called several times there might be several #defines for the same
22883# symbol, which is useless.  But do not sort them, since the last
22884# AC_DEFINE must be honored.
22885ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22886# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22887# NAME is the cpp macro being defined, VALUE is the value it is being given.
22888# PARAMS is the parameter list in the macro definition--in most cases, it's
22889# just an empty string.
22890ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
22891ac_dB='\\)[	 (].*,\\1define\\2'
22892ac_dC=' '
22893ac_dD=' ,'
22894
22895uniq confdefs.h |
22896  sed -n '
22897	t rset
22898	:rset
22899	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
22900	t ok
22901	d
22902	:ok
22903	s/[\\&,]/\\&/g
22904	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22905	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22906  ' >>conftest.defines
22907
22908# Remove the space that was appended to ease matching.
22909# Then replace #undef with comments.  This is necessary, for
22910# example, in the case of _POSIX_SOURCE, which is predefined and required
22911# on some systems where configure will not decide to define it.
22912# (The regexp can be short, since the line contains either #define or #undef.)
22913echo 's/ $//
22914s,^[	 #]*u.*,/* & */,' >>conftest.defines
22915
22916# Break up conftest.defines:
22917ac_max_sed_lines=50
22918
22919# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22920# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22921# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22922# et cetera.
22923ac_in='$ac_file_inputs'
22924ac_out='"$tmp/out1"'
22925ac_nxt='"$tmp/out2"'
22926
22927while :
22928do
22929  # Write a here document:
22930    cat >>$CONFIG_STATUS <<_ACEOF
22931    # First, check the format of the line:
22932    cat >"\$tmp/defines.sed" <<\\CEOF
22933/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
22934/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
22935b
22936:def
22937_ACEOF
22938  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22939  echo 'CEOF
22940    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22941  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22942  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22943  grep . conftest.tail >/dev/null || break
22944  rm -f conftest.defines
22945  mv conftest.tail conftest.defines
22946done
22947rm -f conftest.defines conftest.tail
22948
22949echo "ac_result=$ac_in" >>$CONFIG_STATUS
22950cat >>$CONFIG_STATUS <<\_ACEOF
22951  if test x"$ac_file" != x-; then
22952    echo "/* $configure_input  */" >"$tmp/config.h"
22953    cat "$ac_result" >>"$tmp/config.h"
22954    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22955      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22956echo "$as_me: $ac_file is unchanged" >&6;}
22957    else
22958      rm -f $ac_file
22959      mv "$tmp/config.h" $ac_file
22960    fi
22961  else
22962    echo "/* $configure_input  */"
22963    cat "$ac_result"
22964  fi
22965  rm -f "$tmp/out12"
22966# Compute $ac_file's index in $config_headers.
22967_am_stamp_count=1
22968for _am_header in $config_headers :; do
22969  case $_am_header in
22970    $ac_file | $ac_file:* )
22971      break ;;
22972    * )
22973      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22974  esac
22975done
22976echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22977$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22978	 X$ac_file : 'X\(//\)[^/]' \| \
22979	 X$ac_file : 'X\(//\)$' \| \
22980	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22981echo X$ac_file |
22982    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22983	    s//\1/
22984	    q
22985	  }
22986	  /^X\(\/\/\)[^/].*/{
22987	    s//\1/
22988	    q
22989	  }
22990	  /^X\(\/\/\)$/{
22991	    s//\1/
22992	    q
22993	  }
22994	  /^X\(\/\).*/{
22995	    s//\1/
22996	    q
22997	  }
22998	  s/.*/./; q'`/stamp-h$_am_stamp_count
22999 ;;
23000
23001  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23002echo "$as_me: executing $ac_file commands" >&6;}
23003 ;;
23004  esac
23005
23006
23007  case $ac_file$ac_mode in
23008    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23009  # Strip MF so we end up with the name of the file.
23010  mf=`echo "$mf" | sed -e 's/:.*$//'`
23011  # Check whether this is an Automake generated Makefile or not.
23012  # We used to match only the files named `Makefile.in', but
23013  # some people rename them; so instead we look at the file content.
23014  # Grep'ing the first line is not enough: some people post-process
23015  # each Makefile.in and add a new line on top of each file to say so.
23016  # So let's grep whole file.
23017  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23018    dirpart=`$as_dirname -- "$mf" ||
23019$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23020	 X"$mf" : 'X\(//\)[^/]' \| \
23021	 X"$mf" : 'X\(//\)$' \| \
23022	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23023echo X"$mf" |
23024    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23025	    s//\1/
23026	    q
23027	  }
23028	  /^X\(\/\/\)[^/].*/{
23029	    s//\1/
23030	    q
23031	  }
23032	  /^X\(\/\/\)$/{
23033	    s//\1/
23034	    q
23035	  }
23036	  /^X\(\/\).*/{
23037	    s//\1/
23038	    q
23039	  }
23040	  s/.*/./; q'`
23041  else
23042    continue
23043  fi
23044  # Extract the definition of DEPDIR, am__include, and am__quote
23045  # from the Makefile without running `make'.
23046  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23047  test -z "$DEPDIR" && continue
23048  am__include=`sed -n 's/^am__include = //p' < "$mf"`
23049  test -z "am__include" && continue
23050  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23051  # When using ansi2knr, U may be empty or an underscore; expand it
23052  U=`sed -n 's/^U = //p' < "$mf"`
23053  # Find all dependency output files, they are included files with
23054  # $(DEPDIR) in their names.  We invoke sed twice because it is the
23055  # simplest approach to changing $(DEPDIR) to its actual value in the
23056  # expansion.
23057  for file in `sed -n "
23058    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23059       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23060    # Make sure the directory exists.
23061    test -f "$dirpart/$file" && continue
23062    fdir=`$as_dirname -- "$file" ||
23063$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23064	 X"$file" : 'X\(//\)[^/]' \| \
23065	 X"$file" : 'X\(//\)$' \| \
23066	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23067echo X"$file" |
23068    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23069	    s//\1/
23070	    q
23071	  }
23072	  /^X\(\/\/\)[^/].*/{
23073	    s//\1/
23074	    q
23075	  }
23076	  /^X\(\/\/\)$/{
23077	    s//\1/
23078	    q
23079	  }
23080	  /^X\(\/\).*/{
23081	    s//\1/
23082	    q
23083	  }
23084	  s/.*/./; q'`
23085    { as_dir=$dirpart/$fdir
23086  case $as_dir in #(
23087  -*) as_dir=./$as_dir;;
23088  esac
23089  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23090    as_dirs=
23091    while :; do
23092      case $as_dir in #(
23093      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23094      *) as_qdir=$as_dir;;
23095      esac
23096      as_dirs="'$as_qdir' $as_dirs"
23097      as_dir=`$as_dirname -- "$as_dir" ||
23098$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23099	 X"$as_dir" : 'X\(//\)[^/]' \| \
23100	 X"$as_dir" : 'X\(//\)$' \| \
23101	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23102echo X"$as_dir" |
23103    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23104	    s//\1/
23105	    q
23106	  }
23107	  /^X\(\/\/\)[^/].*/{
23108	    s//\1/
23109	    q
23110	  }
23111	  /^X\(\/\/\)$/{
23112	    s//\1/
23113	    q
23114	  }
23115	  /^X\(\/\).*/{
23116	    s//\1/
23117	    q
23118	  }
23119	  s/.*/./; q'`
23120      test -d "$as_dir" && break
23121    done
23122    test -z "$as_dirs" || eval "mkdir $as_dirs"
23123  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23124echo "$as_me: error: cannot create directory $as_dir" >&2;}
23125   { (exit 1); exit 1; }; }; }
23126    # echo "creating $dirpart/$file"
23127    echo '# dummy' > "$dirpart/$file"
23128  done
23129done
23130 ;;
23131
23132  esac
23133done # for ac_tag
23134
23135
23136{ (exit 0); exit 0; }
23137_ACEOF
23138chmod +x $CONFIG_STATUS
23139ac_clean_files=$ac_clean_files_save
23140
23141
23142# configure is writing to config.log, and then calls config.status.
23143# config.status does its own redirection, appending to config.log.
23144# Unfortunately, on DOS this fails, as config.log is still kept open
23145# by configure, so config.status won't be able to write to it; its
23146# output is simply discarded.  So we exec the FD to /dev/null,
23147# effectively closing config.log, so it can be properly (re)opened and
23148# appended to by config.status.  When coming back to configure, we
23149# need to make the FD available again.
23150if test "$no_create" != yes; then
23151  ac_cs_success=:
23152  ac_config_status_args=
23153  test "$silent" = yes &&
23154    ac_config_status_args="$ac_config_status_args --quiet"
23155  exec 5>/dev/null
23156  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23157  exec 5>>config.log
23158  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23159  # would make configure fail if this is the last instruction.
23160  $ac_cs_success || { (exit 1); exit 1; }
23161fi
23162
23163