1#! /bin/sh
2# From configure.ac Id: configure.ac 411 2007-12-21 11:44:14Z des .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.61 for OpenPAM 20071221.
5#
6# Report bugs to <des@des.no>.
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## --------------------- ##
13## M4sh Initialization.  ##
14## --------------------- ##
15
16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19  emulate sh
20  NULLCMD=:
21  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22  # is contrary to our usage.  Disable this feature.
23  alias -g '${1+"$@"}'='"$@"'
24  setopt NO_GLOB_SUBST
25else
26  case `(set -o) 2>/dev/null` in
27  *posix*) set -o posix ;;
28esac
29
30fi
31
32
33
34
35# PATH needs CR
36# Avoid depending upon Character Ranges.
37as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40as_cr_digits='0123456789'
41as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43# The user is always right.
44if test "${PATH_SEPARATOR+set}" != set; then
45  echo "#! /bin/sh" >conf$$.sh
46  echo  "exit 0"   >>conf$$.sh
47  chmod +x conf$$.sh
48  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49    PATH_SEPARATOR=';'
50  else
51    PATH_SEPARATOR=:
52  fi
53  rm -f conf$$.sh
54fi
55
56# Support unset when possible.
57if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58  as_unset=unset
59else
60  as_unset=false
61fi
62
63
64# IFS
65# We need space, tab and new line, in precisely that order.  Quoting is
66# there to prevent editors from complaining about space-tab.
67# (If _AS_PATH_WALK were called with IFS unset, it would disable word
68# splitting by setting IFS to empty value.)
69as_nl='
70'
71IFS=" ""	$as_nl"
72
73# Find who we are.  Look in the path if we contain no directory separator.
74case $0 in
75  *[\\/]* ) as_myself=$0 ;;
76  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77for as_dir in $PATH
78do
79  IFS=$as_save_IFS
80  test -z "$as_dir" && as_dir=.
81  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82done
83IFS=$as_save_IFS
84
85     ;;
86esac
87# We did not find ourselves, most probably we were run as `sh COMMAND'
88# in which case we are not to be found in the path.
89if test "x$as_myself" = x; then
90  as_myself=$0
91fi
92if test ! -f "$as_myself"; then
93  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94  { (exit 1); exit 1; }
95fi
96
97# Work around bugs in pre-3.0 UWIN ksh.
98for as_var in ENV MAIL MAILPATH
99do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100done
101PS1='$ '
102PS2='> '
103PS4='+ '
104
105# NLS nuisances.
106for as_var in \
107  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109  LC_TELEPHONE LC_TIME
110do
111  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112    eval $as_var=C; export $as_var
113  else
114    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115  fi
116done
117
118# Required to use basename.
119if expr a : '\(a\)' >/dev/null 2>&1 &&
120   test "X`expr 00001 : '.*\(...\)'`" = X001; then
121  as_expr=expr
122else
123  as_expr=false
124fi
125
126if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127  as_basename=basename
128else
129  as_basename=false
130fi
131
132
133# Name of the executable.
134as_me=`$as_basename -- "$0" ||
135$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136	 X"$0" : 'X\(//\)$' \| \
137	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138echo X/"$0" |
139    sed '/^.*\/\([^/][^/]*\)\/*$/{
140	    s//\1/
141	    q
142	  }
143	  /^X\/\(\/\/\)$/{
144	    s//\1/
145	    q
146	  }
147	  /^X\/\(\/\).*/{
148	    s//\1/
149	    q
150	  }
151	  s/.*/./; q'`
152
153# CDPATH.
154$as_unset CDPATH
155
156
157if test "x$CONFIG_SHELL" = x; then
158  if (eval ":") 2>/dev/null; then
159  as_have_required=yes
160else
161  as_have_required=no
162fi
163
164  if test $as_have_required = yes && 	 (eval ":
165(as_func_return () {
166  (exit \$1)
167}
168as_func_success () {
169  as_func_return 0
170}
171as_func_failure () {
172  as_func_return 1
173}
174as_func_ret_success () {
175  return 0
176}
177as_func_ret_failure () {
178  return 1
179}
180
181exitcode=0
182if as_func_success; then
183  :
184else
185  exitcode=1
186  echo as_func_success failed.
187fi
188
189if as_func_failure; then
190  exitcode=1
191  echo as_func_failure succeeded.
192fi
193
194if as_func_ret_success; then
195  :
196else
197  exitcode=1
198  echo as_func_ret_success failed.
199fi
200
201if as_func_ret_failure; then
202  exitcode=1
203  echo as_func_ret_failure succeeded.
204fi
205
206if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207  :
208else
209  exitcode=1
210  echo positional parameters were not saved.
211fi
212
213test \$exitcode = 0) || { (exit 1); exit 1; }
214
215(
216  as_lineno_1=\$LINENO
217  as_lineno_2=\$LINENO
218  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220") 2> /dev/null; then
221  :
222else
223  as_candidate_shells=
224    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226do
227  IFS=$as_save_IFS
228  test -z "$as_dir" && as_dir=.
229  case $as_dir in
230	 /*)
231	   for as_base in sh bash ksh sh5; do
232	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233	   done;;
234       esac
235done
236IFS=$as_save_IFS
237
238
239      for as_shell in $as_candidate_shells $SHELL; do
240	 # Try only shells that exist, to save several forks.
241	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242		{ ("$as_shell") 2> /dev/null <<\_ASEOF
243if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244  emulate sh
245  NULLCMD=:
246  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247  # is contrary to our usage.  Disable this feature.
248  alias -g '${1+"$@"}'='"$@"'
249  setopt NO_GLOB_SUBST
250else
251  case `(set -o) 2>/dev/null` in
252  *posix*) set -o posix ;;
253esac
254
255fi
256
257
258:
259_ASEOF
260}; then
261  CONFIG_SHELL=$as_shell
262	       as_have_required=yes
263	       if { "$as_shell" 2> /dev/null <<\_ASEOF
264if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265  emulate sh
266  NULLCMD=:
267  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268  # is contrary to our usage.  Disable this feature.
269  alias -g '${1+"$@"}'='"$@"'
270  setopt NO_GLOB_SUBST
271else
272  case `(set -o) 2>/dev/null` in
273  *posix*) set -o posix ;;
274esac
275
276fi
277
278
279:
280(as_func_return () {
281  (exit $1)
282}
283as_func_success () {
284  as_func_return 0
285}
286as_func_failure () {
287  as_func_return 1
288}
289as_func_ret_success () {
290  return 0
291}
292as_func_ret_failure () {
293  return 1
294}
295
296exitcode=0
297if as_func_success; then
298  :
299else
300  exitcode=1
301  echo as_func_success failed.
302fi
303
304if as_func_failure; then
305  exitcode=1
306  echo as_func_failure succeeded.
307fi
308
309if as_func_ret_success; then
310  :
311else
312  exitcode=1
313  echo as_func_ret_success failed.
314fi
315
316if as_func_ret_failure; then
317  exitcode=1
318  echo as_func_ret_failure succeeded.
319fi
320
321if ( set x; as_func_ret_success y && test x = "$1" ); then
322  :
323else
324  exitcode=1
325  echo positional parameters were not saved.
326fi
327
328test $exitcode = 0) || { (exit 1); exit 1; }
329
330(
331  as_lineno_1=$LINENO
332  as_lineno_2=$LINENO
333  test "x$as_lineno_1" != "x$as_lineno_2" &&
334  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336_ASEOF
337}; then
338  break
339fi
340
341fi
342
343      done
344
345      if test "x$CONFIG_SHELL" != x; then
346  for as_var in BASH_ENV ENV
347        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348        done
349        export CONFIG_SHELL
350        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351fi
352
353
354    if test $as_have_required = no; then
355  echo This script requires a shell more modern than all the
356      echo shells that I found on your system.  Please install a
357      echo modern shell, or manually run the script under such a
358      echo shell if you do have one.
359      { (exit 1); exit 1; }
360fi
361
362
363fi
364
365fi
366
367
368
369(eval "as_func_return () {
370  (exit \$1)
371}
372as_func_success () {
373  as_func_return 0
374}
375as_func_failure () {
376  as_func_return 1
377}
378as_func_ret_success () {
379  return 0
380}
381as_func_ret_failure () {
382  return 1
383}
384
385exitcode=0
386if as_func_success; then
387  :
388else
389  exitcode=1
390  echo as_func_success failed.
391fi
392
393if as_func_failure; then
394  exitcode=1
395  echo as_func_failure succeeded.
396fi
397
398if as_func_ret_success; then
399  :
400else
401  exitcode=1
402  echo as_func_ret_success failed.
403fi
404
405if as_func_ret_failure; then
406  exitcode=1
407  echo as_func_ret_failure succeeded.
408fi
409
410if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411  :
412else
413  exitcode=1
414  echo positional parameters were not saved.
415fi
416
417test \$exitcode = 0") || {
418  echo No shell found that supports shell functions.
419  echo Please tell autoconf@gnu.org about your system,
420  echo including any error possibly output before this
421  echo message
422}
423
424
425
426  as_lineno_1=$LINENO
427  as_lineno_2=$LINENO
428  test "x$as_lineno_1" != "x$as_lineno_2" &&
429  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432  # uniformly replaced by the line number.  The first 'sed' inserts a
433  # line-number line after each line using $LINENO; the second 'sed'
434  # does the real work.  The second script uses 'N' to pair each
435  # line-number line with the line containing $LINENO, and appends
436  # trailing '-' during substitution so that $LINENO is not a special
437  # case at line end.
438  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439  # scripts with optimization help from Paolo Bonzini.  Blame Lee
440  # E. McMahon (1931-1989) for sed's syntax.  :-)
441  sed -n '
442    p
443    /[$]LINENO/=
444  ' <$as_myself |
445    sed '
446      s/[$]LINENO.*/&-/
447      t lineno
448      b
449      :lineno
450      N
451      :loop
452      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453      t loop
454      s/-\n.*//
455    ' >$as_me.lineno &&
456  chmod +x "$as_me.lineno" ||
457    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458   { (exit 1); exit 1; }; }
459
460  # Don't try to exec as it changes $[0], causing all sort of problems
461  # (the dirname of $[0] is not the place where we might find the
462  # original and so on.  Autoconf is especially sensitive to this).
463  . "./$as_me.lineno"
464  # Exit status is that of the last command.
465  exit
466}
467
468
469if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470  as_dirname=dirname
471else
472  as_dirname=false
473fi
474
475ECHO_C= ECHO_N= ECHO_T=
476case `echo -n x` in
477-n*)
478  case `echo 'x\c'` in
479  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
480  *)   ECHO_C='\c';;
481  esac;;
482*)
483  ECHO_N='-n';;
484esac
485
486if expr a : '\(a\)' >/dev/null 2>&1 &&
487   test "X`expr 00001 : '.*\(...\)'`" = X001; then
488  as_expr=expr
489else
490  as_expr=false
491fi
492
493rm -f conf$$ conf$$.exe conf$$.file
494if test -d conf$$.dir; then
495  rm -f conf$$.dir/conf$$.file
496else
497  rm -f conf$$.dir
498  mkdir conf$$.dir
499fi
500echo >conf$$.file
501if ln -s conf$$.file conf$$ 2>/dev/null; then
502  as_ln_s='ln -s'
503  # ... but there are two gotchas:
504  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506  # In both cases, we have to default to `cp -p'.
507  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508    as_ln_s='cp -p'
509elif ln conf$$.file conf$$ 2>/dev/null; then
510  as_ln_s=ln
511else
512  as_ln_s='cp -p'
513fi
514rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515rmdir conf$$.dir 2>/dev/null
516
517if mkdir -p . 2>/dev/null; then
518  as_mkdir_p=:
519else
520  test -d ./-p && rmdir ./-p
521  as_mkdir_p=false
522fi
523
524if test -x / >/dev/null 2>&1; then
525  as_test_x='test -x'
526else
527  if ls -dL / >/dev/null 2>&1; then
528    as_ls_L_option=L
529  else
530    as_ls_L_option=
531  fi
532  as_test_x='
533    eval sh -c '\''
534      if test -d "$1"; then
535        test -d "$1/.";
536      else
537	case $1 in
538        -*)set "./$1";;
539	esac;
540	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541	???[sx]*):;;*)false;;esac;fi
542    '\'' sh
543  '
544fi
545as_executable_p=$as_test_x
546
547# Sed expression to map a string onto a valid CPP name.
548as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550# Sed expression to map a string onto a valid variable name.
551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555
556# Check that we are running under the correct shell.
557SHELL=${CONFIG_SHELL-/bin/sh}
558
559case X$ECHO in
560X*--fallback-echo)
561  # Remove one level of quotation (which was required for Make).
562  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
563  ;;
564esac
565
566echo=${ECHO-echo}
567if test "X$1" = X--no-reexec; then
568  # Discard the --no-reexec flag, and continue.
569  shift
570elif test "X$1" = X--fallback-echo; then
571  # Avoid inline document here, it may be left over
572  :
573elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574  # Yippee, $echo works!
575  :
576else
577  # Restart under the correct shell.
578  exec $SHELL "$0" --no-reexec ${1+"$@"}
579fi
580
581if test "X$1" = X--fallback-echo; then
582  # used as fallback echo
583  shift
584  cat <<EOF
585$*
586EOF
587  exit 0
588fi
589
590# The HP-UX ksh and POSIX shell print the target directory to stdout
591# if CDPATH is set.
592(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
594if test -z "$ECHO"; then
595if test "X${echo_test_string+set}" != Xset; then
596# find a string as large as possible, as long as the shell can cope with it
597  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600       echo_test_string=`eval $cmd` &&
601       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
602    then
603      break
604    fi
605  done
606fi
607
608if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610   test "X$echo_testing_string" = "X$echo_test_string"; then
611  :
612else
613  # The Solaris, AIX, and Digital Unix default echo programs unquote
614  # backslashes.  This makes it impossible to quote backslashes using
615  #   echo "$something" | sed 's/\\/\\\\/g'
616  #
617  # So, first we look for a working echo in the user's PATH.
618
619  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620  for dir in $PATH /usr/ucb; do
621    IFS="$lt_save_ifs"
622    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625       test "X$echo_testing_string" = "X$echo_test_string"; then
626      echo="$dir/echo"
627      break
628    fi
629  done
630  IFS="$lt_save_ifs"
631
632  if test "X$echo" = Xecho; then
633    # We didn't find a better echo, so look for alternatives.
634    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636       test "X$echo_testing_string" = "X$echo_test_string"; then
637      # This shell has a builtin print -r that does the trick.
638      echo='print -r'
639    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640	 test "X$CONFIG_SHELL" != X/bin/ksh; then
641      # If we have ksh, try running configure again with it.
642      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643      export ORIGINAL_CONFIG_SHELL
644      CONFIG_SHELL=/bin/ksh
645      export CONFIG_SHELL
646      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647    else
648      # Try using printf.
649      echo='printf %s\n'
650      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652	 test "X$echo_testing_string" = "X$echo_test_string"; then
653	# Cool, printf works
654	:
655      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656	   test "X$echo_testing_string" = 'X\t' &&
657	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658	   test "X$echo_testing_string" = "X$echo_test_string"; then
659	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660	export CONFIG_SHELL
661	SHELL="$CONFIG_SHELL"
662	export SHELL
663	echo="$CONFIG_SHELL $0 --fallback-echo"
664      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665	   test "X$echo_testing_string" = 'X\t' &&
666	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667	   test "X$echo_testing_string" = "X$echo_test_string"; then
668	echo="$CONFIG_SHELL $0 --fallback-echo"
669      else
670	# maybe with a smaller string...
671	prev=:
672
673	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
675	  then
676	    break
677	  fi
678	  prev="$cmd"
679	done
680
681	if test "$prev" != 'sed 50q "$0"'; then
682	  echo_test_string=`eval $prev`
683	  export echo_test_string
684	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685	else
686	  # Oops.  We lost completely, so just stick with echo.
687	  echo=echo
688	fi
689      fi
690    fi
691  fi
692fi
693fi
694
695# Copy echo and quote the copy suitably for passing to libtool from
696# the Makefile, instead of quoting the original, which is used later.
697ECHO=$echo
698if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
700fi
701
702
703
704
705tagnames=${tagnames+${tagnames},}CXX
706
707tagnames=${tagnames+${tagnames},}F77
708
709exec 7<&0 </dev/null 6>&1
710
711# Name of the host.
712# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
713# so uname gets run too.
714ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
715
716#
717# Initializations.
718#
719ac_default_prefix=/usr/local
720ac_clean_files=
721ac_config_libobj_dir=.
722LIBOBJS=
723cross_compiling=no
724subdirs=
725MFLAGS=
726MAKEFLAGS=
727SHELL=${CONFIG_SHELL-/bin/sh}
728
729# Identity of this package.
730PACKAGE_NAME='OpenPAM'
731PACKAGE_TARNAME='openpam'
732PACKAGE_VERSION='20071221'
733PACKAGE_STRING='OpenPAM 20071221'
734PACKAGE_BUGREPORT='des@des.no'
735
736ac_unique_file="lib/pam_start.c"
737# Factoring default headers for most tests.
738ac_includes_default="\
739#include <stdio.h>
740#ifdef HAVE_SYS_TYPES_H
741# include <sys/types.h>
742#endif
743#ifdef HAVE_SYS_STAT_H
744# include <sys/stat.h>
745#endif
746#ifdef STDC_HEADERS
747# include <stdlib.h>
748# include <stddef.h>
749#else
750# ifdef HAVE_STDLIB_H
751#  include <stdlib.h>
752# endif
753#endif
754#ifdef HAVE_STRING_H
755# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756#  include <memory.h>
757# endif
758# include <string.h>
759#endif
760#ifdef HAVE_STRINGS_H
761# include <strings.h>
762#endif
763#ifdef HAVE_INTTYPES_H
764# include <inttypes.h>
765#endif
766#ifdef HAVE_STDINT_H
767# include <stdint.h>
768#endif
769#ifdef HAVE_UNISTD_H
770# include <unistd.h>
771#endif"
772
773ac_subst_vars='SHELL
774PATH_SEPARATOR
775PACKAGE_NAME
776PACKAGE_TARNAME
777PACKAGE_VERSION
778PACKAGE_STRING
779PACKAGE_BUGREPORT
780exec_prefix
781prefix
782program_transform_name
783bindir
784sbindir
785libexecdir
786datarootdir
787datadir
788sysconfdir
789sharedstatedir
790localstatedir
791includedir
792oldincludedir
793docdir
794infodir
795htmldir
796dvidir
797pdfdir
798psdir
799libdir
800localedir
801mandir
802DEFS
803ECHO_C
804ECHO_N
805ECHO_T
806LIBS
807build_alias
808host_alias
809target_alias
810build
811build_cpu
812build_vendor
813build_os
814host
815host_cpu
816host_vendor
817host_os
818target
819target_cpu
820target_vendor
821target_os
822CC
823CFLAGS
824LDFLAGS
825CPPFLAGS
826ac_ct_CC
827EXEEXT
828OBJEXT
829SED
830GREP
831EGREP
832LN_S
833ECHO
834AR
835RANLIB
836STRIP
837CPP
838CXX
839CXXFLAGS
840ac_ct_CXX
841CXXCPP
842F77
843FFLAGS
844ac_ct_F77
845LIBTOOL
846INSTALL_PROGRAM
847INSTALL_SCRIPT
848INSTALL_DATA
849CYGPATH_W
850PACKAGE
851VERSION
852ACLOCAL
853AUTOCONF
854AUTOMAKE
855AUTOHEADER
856MAKEINFO
857install_sh
858INSTALL_STRIP_PROGRAM
859mkdir_p
860AWK
861SET_MAKE
862am__leading_dot
863AMTAR
864am__tar
865am__untar
866DEPDIR
867am__include
868am__quote
869AMDEP_TRUE
870AMDEP_FALSE
871AMDEPBACKSLASH
872CCDEPMODE
873am__fastdepCC_TRUE
874am__fastdepCC_FALSE
875CXXDEPMODE
876am__fastdepCXX_TRUE
877am__fastdepCXX_FALSE
878LIB_MAJ
879OPENPAM_MODULES_DIR
880WITH_DOC_TRUE
881WITH_DOC_FALSE
882WITH_PAM_UNIX_TRUE
883WITH_PAM_UNIX_FALSE
884WITH_SU_TRUE
885WITH_SU_FALSE
886DL_LIBS
887CRYPT_LIBS
888LIBOBJS
889LTLIBOBJS'
890ac_subst_files=''
891      ac_precious_vars='build_alias
892host_alias
893target_alias
894CC
895CFLAGS
896LDFLAGS
897LIBS
898CPPFLAGS
899CPP
900CXX
901CXXFLAGS
902CCC
903CXXCPP
904F77
905FFLAGS'
906
907
908# Initialize some variables set by options.
909ac_init_help=
910ac_init_version=false
911# The variables have the same names as the options, with
912# dashes changed to underlines.
913cache_file=/dev/null
914exec_prefix=NONE
915no_create=
916no_recursion=
917prefix=NONE
918program_prefix=NONE
919program_suffix=NONE
920program_transform_name=s,x,x,
921silent=
922site=
923srcdir=
924verbose=
925x_includes=NONE
926x_libraries=NONE
927
928# Installation directory options.
929# These are left unexpanded so users can "make install exec_prefix=/foo"
930# and all the variables that are supposed to be based on exec_prefix
931# by default will actually change.
932# Use braces instead of parens because sh, perl, etc. also accept them.
933# (The list follows the same order as the GNU Coding Standards.)
934bindir='${exec_prefix}/bin'
935sbindir='${exec_prefix}/sbin'
936libexecdir='${exec_prefix}/libexec'
937datarootdir='${prefix}/share'
938datadir='${datarootdir}'
939sysconfdir='${prefix}/etc'
940sharedstatedir='${prefix}/com'
941localstatedir='${prefix}/var'
942includedir='${prefix}/include'
943oldincludedir='/usr/include'
944docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
945infodir='${datarootdir}/info'
946htmldir='${docdir}'
947dvidir='${docdir}'
948pdfdir='${docdir}'
949psdir='${docdir}'
950libdir='${exec_prefix}/lib'
951localedir='${datarootdir}/locale'
952mandir='${datarootdir}/man'
953
954ac_prev=
955ac_dashdash=
956for ac_option
957do
958  # If the previous option needs an argument, assign it.
959  if test -n "$ac_prev"; then
960    eval $ac_prev=\$ac_option
961    ac_prev=
962    continue
963  fi
964
965  case $ac_option in
966  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
967  *)	ac_optarg=yes ;;
968  esac
969
970  # Accept the important Cygnus configure options, so we can diagnose typos.
971
972  case $ac_dashdash$ac_option in
973  --)
974    ac_dashdash=yes ;;
975
976  -bindir | --bindir | --bindi | --bind | --bin | --bi)
977    ac_prev=bindir ;;
978  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979    bindir=$ac_optarg ;;
980
981  -build | --build | --buil | --bui | --bu)
982    ac_prev=build_alias ;;
983  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
984    build_alias=$ac_optarg ;;
985
986  -cache-file | --cache-file | --cache-fil | --cache-fi \
987  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988    ac_prev=cache_file ;;
989  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
991    cache_file=$ac_optarg ;;
992
993  --config-cache | -C)
994    cache_file=config.cache ;;
995
996  -datadir | --datadir | --datadi | --datad)
997    ac_prev=datadir ;;
998  -datadir=* | --datadir=* | --datadi=* | --datad=*)
999    datadir=$ac_optarg ;;
1000
1001  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002  | --dataroo | --dataro | --datar)
1003    ac_prev=datarootdir ;;
1004  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006    datarootdir=$ac_optarg ;;
1007
1008  -disable-* | --disable-*)
1009    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1010    # Reject names that are not valid shell variable names.
1011    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1012      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1013   { (exit 1); exit 1; }; }
1014    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1015    eval enable_$ac_feature=no ;;
1016
1017  -docdir | --docdir | --docdi | --doc | --do)
1018    ac_prev=docdir ;;
1019  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1020    docdir=$ac_optarg ;;
1021
1022  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1023    ac_prev=dvidir ;;
1024  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1025    dvidir=$ac_optarg ;;
1026
1027  -enable-* | --enable-*)
1028    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1029    # Reject names that are not valid shell variable names.
1030    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1031      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1032   { (exit 1); exit 1; }; }
1033    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1034    eval enable_$ac_feature=\$ac_optarg ;;
1035
1036  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1037  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1038  | --exec | --exe | --ex)
1039    ac_prev=exec_prefix ;;
1040  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1041  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1042  | --exec=* | --exe=* | --ex=*)
1043    exec_prefix=$ac_optarg ;;
1044
1045  -gas | --gas | --ga | --g)
1046    # Obsolete; use --with-gas.
1047    with_gas=yes ;;
1048
1049  -help | --help | --hel | --he | -h)
1050    ac_init_help=long ;;
1051  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1052    ac_init_help=recursive ;;
1053  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1054    ac_init_help=short ;;
1055
1056  -host | --host | --hos | --ho)
1057    ac_prev=host_alias ;;
1058  -host=* | --host=* | --hos=* | --ho=*)
1059    host_alias=$ac_optarg ;;
1060
1061  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1062    ac_prev=htmldir ;;
1063  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1064  | --ht=*)
1065    htmldir=$ac_optarg ;;
1066
1067  -includedir | --includedir | --includedi | --included | --include \
1068  | --includ | --inclu | --incl | --inc)
1069    ac_prev=includedir ;;
1070  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1071  | --includ=* | --inclu=* | --incl=* | --inc=*)
1072    includedir=$ac_optarg ;;
1073
1074  -infodir | --infodir | --infodi | --infod | --info | --inf)
1075    ac_prev=infodir ;;
1076  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1077    infodir=$ac_optarg ;;
1078
1079  -libdir | --libdir | --libdi | --libd)
1080    ac_prev=libdir ;;
1081  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1082    libdir=$ac_optarg ;;
1083
1084  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1085  | --libexe | --libex | --libe)
1086    ac_prev=libexecdir ;;
1087  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1088  | --libexe=* | --libex=* | --libe=*)
1089    libexecdir=$ac_optarg ;;
1090
1091  -localedir | --localedir | --localedi | --localed | --locale)
1092    ac_prev=localedir ;;
1093  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1094    localedir=$ac_optarg ;;
1095
1096  -localstatedir | --localstatedir | --localstatedi | --localstated \
1097  | --localstate | --localstat | --localsta | --localst | --locals)
1098    ac_prev=localstatedir ;;
1099  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1100  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1101    localstatedir=$ac_optarg ;;
1102
1103  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1104    ac_prev=mandir ;;
1105  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1106    mandir=$ac_optarg ;;
1107
1108  -nfp | --nfp | --nf)
1109    # Obsolete; use --without-fp.
1110    with_fp=no ;;
1111
1112  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1113  | --no-cr | --no-c | -n)
1114    no_create=yes ;;
1115
1116  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1117  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1118    no_recursion=yes ;;
1119
1120  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1121  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1122  | --oldin | --oldi | --old | --ol | --o)
1123    ac_prev=oldincludedir ;;
1124  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1125  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1126  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1127    oldincludedir=$ac_optarg ;;
1128
1129  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1130    ac_prev=prefix ;;
1131  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1132    prefix=$ac_optarg ;;
1133
1134  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1135  | --program-pre | --program-pr | --program-p)
1136    ac_prev=program_prefix ;;
1137  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1138  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1139    program_prefix=$ac_optarg ;;
1140
1141  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1142  | --program-suf | --program-su | --program-s)
1143    ac_prev=program_suffix ;;
1144  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1145  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1146    program_suffix=$ac_optarg ;;
1147
1148  -program-transform-name | --program-transform-name \
1149  | --program-transform-nam | --program-transform-na \
1150  | --program-transform-n | --program-transform- \
1151  | --program-transform | --program-transfor \
1152  | --program-transfo | --program-transf \
1153  | --program-trans | --program-tran \
1154  | --progr-tra | --program-tr | --program-t)
1155    ac_prev=program_transform_name ;;
1156  -program-transform-name=* | --program-transform-name=* \
1157  | --program-transform-nam=* | --program-transform-na=* \
1158  | --program-transform-n=* | --program-transform-=* \
1159  | --program-transform=* | --program-transfor=* \
1160  | --program-transfo=* | --program-transf=* \
1161  | --program-trans=* | --program-tran=* \
1162  | --progr-tra=* | --program-tr=* | --program-t=*)
1163    program_transform_name=$ac_optarg ;;
1164
1165  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1166    ac_prev=pdfdir ;;
1167  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1168    pdfdir=$ac_optarg ;;
1169
1170  -psdir | --psdir | --psdi | --psd | --ps)
1171    ac_prev=psdir ;;
1172  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1173    psdir=$ac_optarg ;;
1174
1175  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1176  | -silent | --silent | --silen | --sile | --sil)
1177    silent=yes ;;
1178
1179  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1180    ac_prev=sbindir ;;
1181  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1182  | --sbi=* | --sb=*)
1183    sbindir=$ac_optarg ;;
1184
1185  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1186  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1187  | --sharedst | --shareds | --shared | --share | --shar \
1188  | --sha | --sh)
1189    ac_prev=sharedstatedir ;;
1190  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1191  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1192  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1193  | --sha=* | --sh=*)
1194    sharedstatedir=$ac_optarg ;;
1195
1196  -site | --site | --sit)
1197    ac_prev=site ;;
1198  -site=* | --site=* | --sit=*)
1199    site=$ac_optarg ;;
1200
1201  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1202    ac_prev=srcdir ;;
1203  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1204    srcdir=$ac_optarg ;;
1205
1206  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1207  | --syscon | --sysco | --sysc | --sys | --sy)
1208    ac_prev=sysconfdir ;;
1209  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1210  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1211    sysconfdir=$ac_optarg ;;
1212
1213  -target | --target | --targe | --targ | --tar | --ta | --t)
1214    ac_prev=target_alias ;;
1215  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1216    target_alias=$ac_optarg ;;
1217
1218  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1219    verbose=yes ;;
1220
1221  -version | --version | --versio | --versi | --vers | -V)
1222    ac_init_version=: ;;
1223
1224  -with-* | --with-*)
1225    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1226    # Reject names that are not valid shell variable names.
1227    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228      { echo "$as_me: error: invalid package name: $ac_package" >&2
1229   { (exit 1); exit 1; }; }
1230    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1231    eval with_$ac_package=\$ac_optarg ;;
1232
1233  -without-* | --without-*)
1234    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1235    # Reject names that are not valid shell variable names.
1236    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237      { echo "$as_me: error: invalid package name: $ac_package" >&2
1238   { (exit 1); exit 1; }; }
1239    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1240    eval with_$ac_package=no ;;
1241
1242  --x)
1243    # Obsolete; use --with-x.
1244    with_x=yes ;;
1245
1246  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1247  | --x-incl | --x-inc | --x-in | --x-i)
1248    ac_prev=x_includes ;;
1249  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1250  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1251    x_includes=$ac_optarg ;;
1252
1253  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1254  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1255    ac_prev=x_libraries ;;
1256  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1257  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1258    x_libraries=$ac_optarg ;;
1259
1260  -*) { echo "$as_me: error: unrecognized option: $ac_option
1261Try \`$0 --help' for more information." >&2
1262   { (exit 1); exit 1; }; }
1263    ;;
1264
1265  *=*)
1266    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267    # Reject names that are not valid shell variable names.
1268    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1269      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1270   { (exit 1); exit 1; }; }
1271    eval $ac_envvar=\$ac_optarg
1272    export $ac_envvar ;;
1273
1274  *)
1275    # FIXME: should be removed in autoconf 3.0.
1276    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1277    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1278      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1279    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1280    ;;
1281
1282  esac
1283done
1284
1285if test -n "$ac_prev"; then
1286  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1287  { echo "$as_me: error: missing argument to $ac_option" >&2
1288   { (exit 1); exit 1; }; }
1289fi
1290
1291# Be sure to have absolute directory names.
1292for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293		datadir sysconfdir sharedstatedir localstatedir includedir \
1294		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295		libdir localedir mandir
1296do
1297  eval ac_val=\$$ac_var
1298  case $ac_val in
1299    [\\/$]* | ?:[\\/]* )  continue;;
1300    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1301  esac
1302  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1303   { (exit 1); exit 1; }; }
1304done
1305
1306# There might be people who depend on the old broken behavior: `$host'
1307# used to hold the argument of --host etc.
1308# FIXME: To remove some day.
1309build=$build_alias
1310host=$host_alias
1311target=$target_alias
1312
1313# FIXME: To remove some day.
1314if test "x$host_alias" != x; then
1315  if test "x$build_alias" = x; then
1316    cross_compiling=maybe
1317    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1318    If a cross compiler is detected then cross compile mode will be used." >&2
1319  elif test "x$build_alias" != "x$host_alias"; then
1320    cross_compiling=yes
1321  fi
1322fi
1323
1324ac_tool_prefix=
1325test -n "$host_alias" && ac_tool_prefix=$host_alias-
1326
1327test "$silent" = yes && exec 6>/dev/null
1328
1329
1330ac_pwd=`pwd` && test -n "$ac_pwd" &&
1331ac_ls_di=`ls -di .` &&
1332ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1333  { echo "$as_me: error: Working directory cannot be determined" >&2
1334   { (exit 1); exit 1; }; }
1335test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1336  { echo "$as_me: error: pwd does not report name of working directory" >&2
1337   { (exit 1); exit 1; }; }
1338
1339
1340# Find the source files, if location was not specified.
1341if test -z "$srcdir"; then
1342  ac_srcdir_defaulted=yes
1343  # Try the directory containing this script, then the parent directory.
1344  ac_confdir=`$as_dirname -- "$0" ||
1345$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1346	 X"$0" : 'X\(//\)[^/]' \| \
1347	 X"$0" : 'X\(//\)$' \| \
1348	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1349echo X"$0" |
1350    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1351	    s//\1/
1352	    q
1353	  }
1354	  /^X\(\/\/\)[^/].*/{
1355	    s//\1/
1356	    q
1357	  }
1358	  /^X\(\/\/\)$/{
1359	    s//\1/
1360	    q
1361	  }
1362	  /^X\(\/\).*/{
1363	    s//\1/
1364	    q
1365	  }
1366	  s/.*/./; q'`
1367  srcdir=$ac_confdir
1368  if test ! -r "$srcdir/$ac_unique_file"; then
1369    srcdir=..
1370  fi
1371else
1372  ac_srcdir_defaulted=no
1373fi
1374if test ! -r "$srcdir/$ac_unique_file"; then
1375  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1376  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1377   { (exit 1); exit 1; }; }
1378fi
1379ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1380ac_abs_confdir=`(
1381	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1382   { (exit 1); exit 1; }; }
1383	pwd)`
1384# When building in place, set srcdir=.
1385if test "$ac_abs_confdir" = "$ac_pwd"; then
1386  srcdir=.
1387fi
1388# Remove unnecessary trailing slashes from srcdir.
1389# Double slashes in file names in object file debugging info
1390# mess up M-x gdb in Emacs.
1391case $srcdir in
1392*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1393esac
1394for ac_var in $ac_precious_vars; do
1395  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1396  eval ac_env_${ac_var}_value=\$${ac_var}
1397  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1398  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1399done
1400
1401#
1402# Report the --help message.
1403#
1404if test "$ac_init_help" = "long"; then
1405  # Omit some internal or obsolete options to make the list less imposing.
1406  # This message is too long to be a string in the A/UX 3.1 sh.
1407  cat <<_ACEOF
1408\`configure' configures OpenPAM 20071221 to adapt to many kinds of systems.
1409
1410Usage: $0 [OPTION]... [VAR=VALUE]...
1411
1412To assign environment variables (e.g., CC, CFLAGS...), specify them as
1413VAR=VALUE.  See below for descriptions of some of the useful variables.
1414
1415Defaults for the options are specified in brackets.
1416
1417Configuration:
1418  -h, --help              display this help and exit
1419      --help=short        display options specific to this package
1420      --help=recursive    display the short help of all the included packages
1421  -V, --version           display version information and exit
1422  -q, --quiet, --silent   do not print \`checking...' messages
1423      --cache-file=FILE   cache test results in FILE [disabled]
1424  -C, --config-cache      alias for \`--cache-file=config.cache'
1425  -n, --no-create         do not create output files
1426      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1427
1428Installation directories:
1429  --prefix=PREFIX         install architecture-independent files in PREFIX
1430			  [$ac_default_prefix]
1431  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1432			  [PREFIX]
1433
1434By default, \`make install' will install all the files in
1435\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1436an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1437for instance \`--prefix=\$HOME'.
1438
1439For better control, use the options below.
1440
1441Fine tuning of the installation directories:
1442  --bindir=DIR           user executables [EPREFIX/bin]
1443  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1444  --libexecdir=DIR       program executables [EPREFIX/libexec]
1445  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1446  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1447  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1448  --libdir=DIR           object code libraries [EPREFIX/lib]
1449  --includedir=DIR       C header files [PREFIX/include]
1450  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1451  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1452  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1453  --infodir=DIR          info documentation [DATAROOTDIR/info]
1454  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1455  --mandir=DIR           man documentation [DATAROOTDIR/man]
1456  --docdir=DIR           documentation root [DATAROOTDIR/doc/openpam]
1457  --htmldir=DIR          html documentation [DOCDIR]
1458  --dvidir=DIR           dvi documentation [DOCDIR]
1459  --pdfdir=DIR           pdf documentation [DOCDIR]
1460  --psdir=DIR            ps documentation [DOCDIR]
1461_ACEOF
1462
1463  cat <<\_ACEOF
1464
1465Program names:
1466  --program-prefix=PREFIX            prepend PREFIX to installed program names
1467  --program-suffix=SUFFIX            append SUFFIX to installed program names
1468  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1469
1470System types:
1471  --build=BUILD     configure for building on BUILD [guessed]
1472  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1473  --target=TARGET   configure for building compilers for TARGET [HOST]
1474_ACEOF
1475fi
1476
1477if test -n "$ac_init_help"; then
1478  case $ac_init_help in
1479     short | recursive ) echo "Configuration of OpenPAM 20071221:";;
1480   esac
1481  cat <<\_ACEOF
1482
1483Optional Features:
1484  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1485  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1486  --enable-static[=PKGS]  build static libraries [default=no]
1487  --enable-shared[=PKGS]  build shared libraries [default=yes]
1488  --enable-fast-install[=PKGS]
1489                          optimize for fast installation [default=yes]
1490  --disable-libtool-lock  avoid locking (might break parallel builds)
1491  --disable-dependency-tracking  speeds up one-time build
1492  --enable-dependency-tracking   do not reject slow dependency extractors
1493  --enable-debug          turn debugging on by default
1494  --disable-unversioned-modules
1495                          support loading of unversioned modules
1496  --enable-developer-warnings
1497                          enable strict warnings (default is NO)
1498  --enable-debugging-symbols
1499                          enable debugging symbols (default is NO)
1500  --enable-werror         use -Werror (default is NO)
1501
1502Optional Packages:
1503  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1504  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1505  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1506  --with-pic              try to use only PIC/non-PIC objects [default=use
1507                          both]
1508  --with-tags[=TAGS]      include additional configurations [automatic]
1509  --with-modules-dir=DIR  OpenPAM modules directory
1510  --with-doc              build documentation
1511  --with-pam-unix         compile example version of pam_unix.so
1512  --with-su               compile example version of su(1)
1513
1514Some influential environment variables:
1515  CC          C compiler command
1516  CFLAGS      C compiler flags
1517  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1518              nonstandard directory <lib dir>
1519  LIBS        libraries to pass to the linker, e.g. -l<library>
1520  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1521              you have headers in a nonstandard directory <include dir>
1522  CPP         C preprocessor
1523  CXX         C++ compiler command
1524  CXXFLAGS    C++ compiler flags
1525  CXXCPP      C++ preprocessor
1526  F77         Fortran 77 compiler command
1527  FFLAGS      Fortran 77 compiler flags
1528
1529Use these variables to override the choices made by `configure' or to help
1530it to find libraries and programs with nonstandard names/locations.
1531
1532Report bugs to <des@des.no>.
1533_ACEOF
1534ac_status=$?
1535fi
1536
1537if test "$ac_init_help" = "recursive"; then
1538  # If there are subdirs, report their specific --help.
1539  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1540    test -d "$ac_dir" || continue
1541    ac_builddir=.
1542
1543case "$ac_dir" in
1544.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545*)
1546  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1547  # A ".." for each directory in $ac_dir_suffix.
1548  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1549  case $ac_top_builddir_sub in
1550  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1552  esac ;;
1553esac
1554ac_abs_top_builddir=$ac_pwd
1555ac_abs_builddir=$ac_pwd$ac_dir_suffix
1556# for backward compatibility:
1557ac_top_builddir=$ac_top_build_prefix
1558
1559case $srcdir in
1560  .)  # We are building in place.
1561    ac_srcdir=.
1562    ac_top_srcdir=$ac_top_builddir_sub
1563    ac_abs_top_srcdir=$ac_pwd ;;
1564  [\\/]* | ?:[\\/]* )  # Absolute name.
1565    ac_srcdir=$srcdir$ac_dir_suffix;
1566    ac_top_srcdir=$srcdir
1567    ac_abs_top_srcdir=$srcdir ;;
1568  *) # Relative name.
1569    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1570    ac_top_srcdir=$ac_top_build_prefix$srcdir
1571    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1572esac
1573ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1574
1575    cd "$ac_dir" || { ac_status=$?; continue; }
1576    # Check for guested configure.
1577    if test -f "$ac_srcdir/configure.gnu"; then
1578      echo &&
1579      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1580    elif test -f "$ac_srcdir/configure"; then
1581      echo &&
1582      $SHELL "$ac_srcdir/configure" --help=recursive
1583    else
1584      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1585    fi || ac_status=$?
1586    cd "$ac_pwd" || { ac_status=$?; break; }
1587  done
1588fi
1589
1590test -n "$ac_init_help" && exit $ac_status
1591if $ac_init_version; then
1592  cat <<\_ACEOF
1593OpenPAM configure 20071221
1594generated by GNU Autoconf 2.61
1595
1596Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15972002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1598This configure script is free software; the Free Software Foundation
1599gives unlimited permission to copy, distribute and modify it.
1600_ACEOF
1601  exit
1602fi
1603cat >config.log <<_ACEOF
1604This file contains any messages produced by compilers while
1605running configure, to aid debugging if configure makes a mistake.
1606
1607It was created by OpenPAM $as_me 20071221, which was
1608generated by GNU Autoconf 2.61.  Invocation command line was
1609
1610  $ $0 $@
1611
1612_ACEOF
1613exec 5>>config.log
1614{
1615cat <<_ASUNAME
1616## --------- ##
1617## Platform. ##
1618## --------- ##
1619
1620hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1621uname -m = `(uname -m) 2>/dev/null || echo unknown`
1622uname -r = `(uname -r) 2>/dev/null || echo unknown`
1623uname -s = `(uname -s) 2>/dev/null || echo unknown`
1624uname -v = `(uname -v) 2>/dev/null || echo unknown`
1625
1626/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1627/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1628
1629/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1630/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1631/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1632/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1633/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1634/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1635/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1636
1637_ASUNAME
1638
1639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640for as_dir in $PATH
1641do
1642  IFS=$as_save_IFS
1643  test -z "$as_dir" && as_dir=.
1644  echo "PATH: $as_dir"
1645done
1646IFS=$as_save_IFS
1647
1648} >&5
1649
1650cat >&5 <<_ACEOF
1651
1652
1653## ----------- ##
1654## Core tests. ##
1655## ----------- ##
1656
1657_ACEOF
1658
1659
1660# Keep a trace of the command line.
1661# Strip out --no-create and --no-recursion so they do not pile up.
1662# Strip out --silent because we don't want to record it for future runs.
1663# Also quote any args containing shell meta-characters.
1664# Make two passes to allow for proper duplicate-argument suppression.
1665ac_configure_args=
1666ac_configure_args0=
1667ac_configure_args1=
1668ac_must_keep_next=false
1669for ac_pass in 1 2
1670do
1671  for ac_arg
1672  do
1673    case $ac_arg in
1674    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1675    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1676    | -silent | --silent | --silen | --sile | --sil)
1677      continue ;;
1678    *\'*)
1679      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1680    esac
1681    case $ac_pass in
1682    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1683    2)
1684      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1685      if test $ac_must_keep_next = true; then
1686	ac_must_keep_next=false # Got value, back to normal.
1687      else
1688	case $ac_arg in
1689	  *=* | --config-cache | -C | -disable-* | --disable-* \
1690	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1691	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1692	  | -with-* | --with-* | -without-* | --without-* | --x)
1693	    case "$ac_configure_args0 " in
1694	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1695	    esac
1696	    ;;
1697	  -* ) ac_must_keep_next=true ;;
1698	esac
1699      fi
1700      ac_configure_args="$ac_configure_args '$ac_arg'"
1701      ;;
1702    esac
1703  done
1704done
1705$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1706$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1707
1708# When interrupted or exit'd, cleanup temporary files, and complete
1709# config.log.  We remove comments because anyway the quotes in there
1710# would cause problems or look ugly.
1711# WARNING: Use '\'' to represent an apostrophe within the trap.
1712# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1713trap 'exit_status=$?
1714  # Save into config.log some information that might help in debugging.
1715  {
1716    echo
1717
1718    cat <<\_ASBOX
1719## ---------------- ##
1720## Cache variables. ##
1721## ---------------- ##
1722_ASBOX
1723    echo
1724    # The following way of writing the cache mishandles newlines in values,
1725(
1726  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1727    eval ac_val=\$$ac_var
1728    case $ac_val in #(
1729    *${as_nl}*)
1730      case $ac_var in #(
1731      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1732echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1733      esac
1734      case $ac_var in #(
1735      _ | IFS | as_nl) ;; #(
1736      *) $as_unset $ac_var ;;
1737      esac ;;
1738    esac
1739  done
1740  (set) 2>&1 |
1741    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1742    *${as_nl}ac_space=\ *)
1743      sed -n \
1744	"s/'\''/'\''\\\\'\'''\''/g;
1745	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1746      ;; #(
1747    *)
1748      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1749      ;;
1750    esac |
1751    sort
1752)
1753    echo
1754
1755    cat <<\_ASBOX
1756## ----------------- ##
1757## Output variables. ##
1758## ----------------- ##
1759_ASBOX
1760    echo
1761    for ac_var in $ac_subst_vars
1762    do
1763      eval ac_val=\$$ac_var
1764      case $ac_val in
1765      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1766      esac
1767      echo "$ac_var='\''$ac_val'\''"
1768    done | sort
1769    echo
1770
1771    if test -n "$ac_subst_files"; then
1772      cat <<\_ASBOX
1773## ------------------- ##
1774## File substitutions. ##
1775## ------------------- ##
1776_ASBOX
1777      echo
1778      for ac_var in $ac_subst_files
1779      do
1780	eval ac_val=\$$ac_var
1781	case $ac_val in
1782	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1783	esac
1784	echo "$ac_var='\''$ac_val'\''"
1785      done | sort
1786      echo
1787    fi
1788
1789    if test -s confdefs.h; then
1790      cat <<\_ASBOX
1791## ----------- ##
1792## confdefs.h. ##
1793## ----------- ##
1794_ASBOX
1795      echo
1796      cat confdefs.h
1797      echo
1798    fi
1799    test "$ac_signal" != 0 &&
1800      echo "$as_me: caught signal $ac_signal"
1801    echo "$as_me: exit $exit_status"
1802  } >&5
1803  rm -f core *.core core.conftest.* &&
1804    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1805    exit $exit_status
1806' 0
1807for ac_signal in 1 2 13 15; do
1808  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1809done
1810ac_signal=0
1811
1812# confdefs.h avoids OS command line length limits that DEFS can exceed.
1813rm -f -r conftest* confdefs.h
1814
1815# Predefined preprocessor variables.
1816
1817cat >>confdefs.h <<_ACEOF
1818#define PACKAGE_NAME "$PACKAGE_NAME"
1819_ACEOF
1820
1821
1822cat >>confdefs.h <<_ACEOF
1823#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1824_ACEOF
1825
1826
1827cat >>confdefs.h <<_ACEOF
1828#define PACKAGE_VERSION "$PACKAGE_VERSION"
1829_ACEOF
1830
1831
1832cat >>confdefs.h <<_ACEOF
1833#define PACKAGE_STRING "$PACKAGE_STRING"
1834_ACEOF
1835
1836
1837cat >>confdefs.h <<_ACEOF
1838#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1839_ACEOF
1840
1841
1842# Let the site file select an alternate cache file if it wants to.
1843# Prefer explicitly selected file to automatically selected ones.
1844if test -n "$CONFIG_SITE"; then
1845  set x "$CONFIG_SITE"
1846elif test "x$prefix" != xNONE; then
1847  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1848else
1849  set x "$ac_default_prefix/share/config.site" \
1850	"$ac_default_prefix/etc/config.site"
1851fi
1852shift
1853for ac_site_file
1854do
1855  if test -r "$ac_site_file"; then
1856    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1857echo "$as_me: loading site script $ac_site_file" >&6;}
1858    sed 's/^/| /' "$ac_site_file" >&5
1859    . "$ac_site_file"
1860  fi
1861done
1862
1863if test -r "$cache_file"; then
1864  # Some versions of bash will fail to source /dev/null (special
1865  # files actually), so we avoid doing that.
1866  if test -f "$cache_file"; then
1867    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1868echo "$as_me: loading cache $cache_file" >&6;}
1869    case $cache_file in
1870      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1871      *)                      . "./$cache_file";;
1872    esac
1873  fi
1874else
1875  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1876echo "$as_me: creating cache $cache_file" >&6;}
1877  >$cache_file
1878fi
1879
1880# Check that the precious variables saved in the cache have kept the same
1881# value.
1882ac_cache_corrupted=false
1883for ac_var in $ac_precious_vars; do
1884  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1885  eval ac_new_set=\$ac_env_${ac_var}_set
1886  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1887  eval ac_new_val=\$ac_env_${ac_var}_value
1888  case $ac_old_set,$ac_new_set in
1889    set,)
1890      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1891echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1892      ac_cache_corrupted=: ;;
1893    ,set)
1894      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1895echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1896      ac_cache_corrupted=: ;;
1897    ,);;
1898    *)
1899      if test "x$ac_old_val" != "x$ac_new_val"; then
1900	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1901echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1902	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1903echo "$as_me:   former value:  $ac_old_val" >&2;}
1904	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1905echo "$as_me:   current value: $ac_new_val" >&2;}
1906	ac_cache_corrupted=:
1907      fi;;
1908  esac
1909  # Pass precious variables to config.status.
1910  if test "$ac_new_set" = set; then
1911    case $ac_new_val in
1912    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1913    *) ac_arg=$ac_var=$ac_new_val ;;
1914    esac
1915    case " $ac_configure_args " in
1916      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1917      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1918    esac
1919  fi
1920done
1921if $ac_cache_corrupted; then
1922  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1923echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1924  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1925echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1926   { (exit 1); exit 1; }; }
1927fi
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953ac_ext=c
1954ac_cpp='$CPP $CPPFLAGS'
1955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1957ac_compiler_gnu=$ac_cv_c_compiler_gnu
1958
1959
1960
1961ac_config_headers="$ac_config_headers config.h"
1962
1963
1964ac_aux_dir=
1965for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1966  if test -f "$ac_dir/install-sh"; then
1967    ac_aux_dir=$ac_dir
1968    ac_install_sh="$ac_aux_dir/install-sh -c"
1969    break
1970  elif test -f "$ac_dir/install.sh"; then
1971    ac_aux_dir=$ac_dir
1972    ac_install_sh="$ac_aux_dir/install.sh -c"
1973    break
1974  elif test -f "$ac_dir/shtool"; then
1975    ac_aux_dir=$ac_dir
1976    ac_install_sh="$ac_aux_dir/shtool install -c"
1977    break
1978  fi
1979done
1980if test -z "$ac_aux_dir"; then
1981  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1982echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1983   { (exit 1); exit 1; }; }
1984fi
1985
1986# These three variables are undocumented and unsupported,
1987# and are intended to be withdrawn in a future Autoconf release.
1988# They can cause serious problems if a builder's source tree is in a directory
1989# whose full name contains unusual characters.
1990ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1991ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1992ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1993
1994
1995# Make sure we can run config.sub.
1996$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1997  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1998echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1999   { (exit 1); exit 1; }; }
2000
2001{ echo "$as_me:$LINENO: checking build system type" >&5
2002echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2003if test "${ac_cv_build+set}" = set; then
2004  echo $ECHO_N "(cached) $ECHO_C" >&6
2005else
2006  ac_build_alias=$build_alias
2007test "x$ac_build_alias" = x &&
2008  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2009test "x$ac_build_alias" = x &&
2010  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2011echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2012   { (exit 1); exit 1; }; }
2013ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2014  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2015echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2016   { (exit 1); exit 1; }; }
2017
2018fi
2019{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2020echo "${ECHO_T}$ac_cv_build" >&6; }
2021case $ac_cv_build in
2022*-*-*) ;;
2023*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2024echo "$as_me: error: invalid value of canonical build" >&2;}
2025   { (exit 1); exit 1; }; };;
2026esac
2027build=$ac_cv_build
2028ac_save_IFS=$IFS; IFS='-'
2029set x $ac_cv_build
2030shift
2031build_cpu=$1
2032build_vendor=$2
2033shift; shift
2034# Remember, the first character of IFS is used to create $*,
2035# except with old shells:
2036build_os=$*
2037IFS=$ac_save_IFS
2038case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2039
2040
2041{ echo "$as_me:$LINENO: checking host system type" >&5
2042echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2043if test "${ac_cv_host+set}" = set; then
2044  echo $ECHO_N "(cached) $ECHO_C" >&6
2045else
2046  if test "x$host_alias" = x; then
2047  ac_cv_host=$ac_cv_build
2048else
2049  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2050    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2051echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2052   { (exit 1); exit 1; }; }
2053fi
2054
2055fi
2056{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2057echo "${ECHO_T}$ac_cv_host" >&6; }
2058case $ac_cv_host in
2059*-*-*) ;;
2060*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2061echo "$as_me: error: invalid value of canonical host" >&2;}
2062   { (exit 1); exit 1; }; };;
2063esac
2064host=$ac_cv_host
2065ac_save_IFS=$IFS; IFS='-'
2066set x $ac_cv_host
2067shift
2068host_cpu=$1
2069host_vendor=$2
2070shift; shift
2071# Remember, the first character of IFS is used to create $*,
2072# except with old shells:
2073host_os=$*
2074IFS=$ac_save_IFS
2075case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2076
2077
2078{ echo "$as_me:$LINENO: checking target system type" >&5
2079echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2080if test "${ac_cv_target+set}" = set; then
2081  echo $ECHO_N "(cached) $ECHO_C" >&6
2082else
2083  if test "x$target_alias" = x; then
2084  ac_cv_target=$ac_cv_host
2085else
2086  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2087    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2088echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2089   { (exit 1); exit 1; }; }
2090fi
2091
2092fi
2093{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2094echo "${ECHO_T}$ac_cv_target" >&6; }
2095case $ac_cv_target in
2096*-*-*) ;;
2097*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2098echo "$as_me: error: invalid value of canonical target" >&2;}
2099   { (exit 1); exit 1; }; };;
2100esac
2101target=$ac_cv_target
2102ac_save_IFS=$IFS; IFS='-'
2103set x $ac_cv_target
2104shift
2105target_cpu=$1
2106target_vendor=$2
2107shift; shift
2108# Remember, the first character of IFS is used to create $*,
2109# except with old shells:
2110target_os=$*
2111IFS=$ac_save_IFS
2112case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2113
2114
2115# The aliases save the names the user supplied, while $host etc.
2116# will get canonicalized.
2117test -n "$target_alias" &&
2118  test "$program_prefix$program_suffix$program_transform_name" = \
2119    NONENONEs,x,x, &&
2120  program_prefix=${target_alias}-
2121ac_ext=c
2122ac_cpp='$CPP $CPPFLAGS'
2123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2125ac_compiler_gnu=$ac_cv_c_compiler_gnu
2126
2127ac_ext=c
2128ac_cpp='$CPP $CPPFLAGS'
2129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2131ac_compiler_gnu=$ac_cv_c_compiler_gnu
2132if test -n "$ac_tool_prefix"; then
2133  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2134set dummy ${ac_tool_prefix}gcc; ac_word=$2
2135{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2137if test "${ac_cv_prog_CC+set}" = set; then
2138  echo $ECHO_N "(cached) $ECHO_C" >&6
2139else
2140  if test -n "$CC"; then
2141  ac_cv_prog_CC="$CC" # Let the user override the test.
2142else
2143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144for as_dir in $PATH
2145do
2146  IFS=$as_save_IFS
2147  test -z "$as_dir" && as_dir=.
2148  for ac_exec_ext in '' $ac_executable_extensions; do
2149  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2150    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2151    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2152    break 2
2153  fi
2154done
2155done
2156IFS=$as_save_IFS
2157
2158fi
2159fi
2160CC=$ac_cv_prog_CC
2161if test -n "$CC"; then
2162  { echo "$as_me:$LINENO: result: $CC" >&5
2163echo "${ECHO_T}$CC" >&6; }
2164else
2165  { echo "$as_me:$LINENO: result: no" >&5
2166echo "${ECHO_T}no" >&6; }
2167fi
2168
2169
2170fi
2171if test -z "$ac_cv_prog_CC"; then
2172  ac_ct_CC=$CC
2173  # Extract the first word of "gcc", so it can be a program name with args.
2174set dummy gcc; ac_word=$2
2175{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2177if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2178  echo $ECHO_N "(cached) $ECHO_C" >&6
2179else
2180  if test -n "$ac_ct_CC"; then
2181  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2182else
2183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184for as_dir in $PATH
2185do
2186  IFS=$as_save_IFS
2187  test -z "$as_dir" && as_dir=.
2188  for ac_exec_ext in '' $ac_executable_extensions; do
2189  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2190    ac_cv_prog_ac_ct_CC="gcc"
2191    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2192    break 2
2193  fi
2194done
2195done
2196IFS=$as_save_IFS
2197
2198fi
2199fi
2200ac_ct_CC=$ac_cv_prog_ac_ct_CC
2201if test -n "$ac_ct_CC"; then
2202  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2203echo "${ECHO_T}$ac_ct_CC" >&6; }
2204else
2205  { echo "$as_me:$LINENO: result: no" >&5
2206echo "${ECHO_T}no" >&6; }
2207fi
2208
2209  if test "x$ac_ct_CC" = x; then
2210    CC=""
2211  else
2212    case $cross_compiling:$ac_tool_warned in
2213yes:)
2214{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2215whose name does not start with the host triplet.  If you think this
2216configuration is useful to you, please write to autoconf@gnu.org." >&5
2217echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2218whose name does not start with the host triplet.  If you think this
2219configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2220ac_tool_warned=yes ;;
2221esac
2222    CC=$ac_ct_CC
2223  fi
2224else
2225  CC="$ac_cv_prog_CC"
2226fi
2227
2228if test -z "$CC"; then
2229          if test -n "$ac_tool_prefix"; then
2230    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2231set dummy ${ac_tool_prefix}cc; ac_word=$2
2232{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2234if test "${ac_cv_prog_CC+set}" = set; then
2235  echo $ECHO_N "(cached) $ECHO_C" >&6
2236else
2237  if test -n "$CC"; then
2238  ac_cv_prog_CC="$CC" # Let the user override the test.
2239else
2240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241for as_dir in $PATH
2242do
2243  IFS=$as_save_IFS
2244  test -z "$as_dir" && as_dir=.
2245  for ac_exec_ext in '' $ac_executable_extensions; do
2246  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2247    ac_cv_prog_CC="${ac_tool_prefix}cc"
2248    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2249    break 2
2250  fi
2251done
2252done
2253IFS=$as_save_IFS
2254
2255fi
2256fi
2257CC=$ac_cv_prog_CC
2258if test -n "$CC"; then
2259  { echo "$as_me:$LINENO: result: $CC" >&5
2260echo "${ECHO_T}$CC" >&6; }
2261else
2262  { echo "$as_me:$LINENO: result: no" >&5
2263echo "${ECHO_T}no" >&6; }
2264fi
2265
2266
2267  fi
2268fi
2269if test -z "$CC"; then
2270  # Extract the first word of "cc", so it can be a program name with args.
2271set dummy cc; ac_word=$2
2272{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2274if test "${ac_cv_prog_CC+set}" = set; then
2275  echo $ECHO_N "(cached) $ECHO_C" >&6
2276else
2277  if test -n "$CC"; then
2278  ac_cv_prog_CC="$CC" # Let the user override the test.
2279else
2280  ac_prog_rejected=no
2281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282for as_dir in $PATH
2283do
2284  IFS=$as_save_IFS
2285  test -z "$as_dir" && as_dir=.
2286  for ac_exec_ext in '' $ac_executable_extensions; do
2287  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2288    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2289       ac_prog_rejected=yes
2290       continue
2291     fi
2292    ac_cv_prog_CC="cc"
2293    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294    break 2
2295  fi
2296done
2297done
2298IFS=$as_save_IFS
2299
2300if test $ac_prog_rejected = yes; then
2301  # We found a bogon in the path, so make sure we never use it.
2302  set dummy $ac_cv_prog_CC
2303  shift
2304  if test $# != 0; then
2305    # We chose a different compiler from the bogus one.
2306    # However, it has the same basename, so the bogon will be chosen
2307    # first if we set CC to just the basename; use the full file name.
2308    shift
2309    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2310  fi
2311fi
2312fi
2313fi
2314CC=$ac_cv_prog_CC
2315if test -n "$CC"; then
2316  { echo "$as_me:$LINENO: result: $CC" >&5
2317echo "${ECHO_T}$CC" >&6; }
2318else
2319  { echo "$as_me:$LINENO: result: no" >&5
2320echo "${ECHO_T}no" >&6; }
2321fi
2322
2323
2324fi
2325if test -z "$CC"; then
2326  if test -n "$ac_tool_prefix"; then
2327  for ac_prog in cl.exe
2328  do
2329    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2330set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2331{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2333if test "${ac_cv_prog_CC+set}" = set; then
2334  echo $ECHO_N "(cached) $ECHO_C" >&6
2335else
2336  if test -n "$CC"; then
2337  ac_cv_prog_CC="$CC" # Let the user override the test.
2338else
2339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340for as_dir in $PATH
2341do
2342  IFS=$as_save_IFS
2343  test -z "$as_dir" && as_dir=.
2344  for ac_exec_ext in '' $ac_executable_extensions; do
2345  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2346    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2347    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348    break 2
2349  fi
2350done
2351done
2352IFS=$as_save_IFS
2353
2354fi
2355fi
2356CC=$ac_cv_prog_CC
2357if test -n "$CC"; then
2358  { echo "$as_me:$LINENO: result: $CC" >&5
2359echo "${ECHO_T}$CC" >&6; }
2360else
2361  { echo "$as_me:$LINENO: result: no" >&5
2362echo "${ECHO_T}no" >&6; }
2363fi
2364
2365
2366    test -n "$CC" && break
2367  done
2368fi
2369if test -z "$CC"; then
2370  ac_ct_CC=$CC
2371  for ac_prog in cl.exe
2372do
2373  # Extract the first word of "$ac_prog", so it can be a program name with args.
2374set dummy $ac_prog; ac_word=$2
2375{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2377if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2378  echo $ECHO_N "(cached) $ECHO_C" >&6
2379else
2380  if test -n "$ac_ct_CC"; then
2381  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2382else
2383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384for as_dir in $PATH
2385do
2386  IFS=$as_save_IFS
2387  test -z "$as_dir" && as_dir=.
2388  for ac_exec_ext in '' $ac_executable_extensions; do
2389  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2390    ac_cv_prog_ac_ct_CC="$ac_prog"
2391    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2392    break 2
2393  fi
2394done
2395done
2396IFS=$as_save_IFS
2397
2398fi
2399fi
2400ac_ct_CC=$ac_cv_prog_ac_ct_CC
2401if test -n "$ac_ct_CC"; then
2402  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2403echo "${ECHO_T}$ac_ct_CC" >&6; }
2404else
2405  { echo "$as_me:$LINENO: result: no" >&5
2406echo "${ECHO_T}no" >&6; }
2407fi
2408
2409
2410  test -n "$ac_ct_CC" && break
2411done
2412
2413  if test "x$ac_ct_CC" = x; then
2414    CC=""
2415  else
2416    case $cross_compiling:$ac_tool_warned in
2417yes:)
2418{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2419whose name does not start with the host triplet.  If you think this
2420configuration is useful to you, please write to autoconf@gnu.org." >&5
2421echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2422whose name does not start with the host triplet.  If you think this
2423configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2424ac_tool_warned=yes ;;
2425esac
2426    CC=$ac_ct_CC
2427  fi
2428fi
2429
2430fi
2431
2432
2433test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2434See \`config.log' for more details." >&5
2435echo "$as_me: error: no acceptable C compiler found in \$PATH
2436See \`config.log' for more details." >&2;}
2437   { (exit 1); exit 1; }; }
2438
2439# Provide some information about the compiler.
2440echo "$as_me:$LINENO: checking for C compiler version" >&5
2441ac_compiler=`set X $ac_compile; echo $2`
2442{ (ac_try="$ac_compiler --version >&5"
2443case "(($ac_try" in
2444  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2445  *) ac_try_echo=$ac_try;;
2446esac
2447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2448  (eval "$ac_compiler --version >&5") 2>&5
2449  ac_status=$?
2450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451  (exit $ac_status); }
2452{ (ac_try="$ac_compiler -v >&5"
2453case "(($ac_try" in
2454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455  *) ac_try_echo=$ac_try;;
2456esac
2457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2458  (eval "$ac_compiler -v >&5") 2>&5
2459  ac_status=$?
2460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461  (exit $ac_status); }
2462{ (ac_try="$ac_compiler -V >&5"
2463case "(($ac_try" in
2464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465  *) ac_try_echo=$ac_try;;
2466esac
2467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468  (eval "$ac_compiler -V >&5") 2>&5
2469  ac_status=$?
2470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471  (exit $ac_status); }
2472
2473cat >conftest.$ac_ext <<_ACEOF
2474/* confdefs.h.  */
2475_ACEOF
2476cat confdefs.h >>conftest.$ac_ext
2477cat >>conftest.$ac_ext <<_ACEOF
2478/* end confdefs.h.  */
2479
2480int
2481main ()
2482{
2483
2484  ;
2485  return 0;
2486}
2487_ACEOF
2488ac_clean_files_save=$ac_clean_files
2489ac_clean_files="$ac_clean_files a.out a.exe b.out"
2490# Try to create an executable without -o first, disregard a.out.
2491# It will help us diagnose broken compilers, and finding out an intuition
2492# of exeext.
2493{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2494echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2495ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2496#
2497# List of possible output files, starting from the most likely.
2498# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2499# only as a last resort.  b.out is created by i960 compilers.
2500ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2501#
2502# The IRIX 6 linker writes into existing files which may not be
2503# executable, retaining their permissions.  Remove them first so a
2504# subsequent execution test works.
2505ac_rmfiles=
2506for ac_file in $ac_files
2507do
2508  case $ac_file in
2509    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2510    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2511  esac
2512done
2513rm -f $ac_rmfiles
2514
2515if { (ac_try="$ac_link_default"
2516case "(($ac_try" in
2517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2518  *) ac_try_echo=$ac_try;;
2519esac
2520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2521  (eval "$ac_link_default") 2>&5
2522  ac_status=$?
2523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524  (exit $ac_status); }; then
2525  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2526# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2527# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2528# so that the user can short-circuit this test for compilers unknown to
2529# Autoconf.
2530for ac_file in $ac_files ''
2531do
2532  test -f "$ac_file" || continue
2533  case $ac_file in
2534    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2535	;;
2536    [ab].out )
2537	# We found the default executable, but exeext='' is most
2538	# certainly right.
2539	break;;
2540    *.* )
2541        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2542	then :; else
2543	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2544	fi
2545	# We set ac_cv_exeext here because the later test for it is not
2546	# safe: cross compilers may not add the suffix if given an `-o'
2547	# argument, so we may need to know it at that point already.
2548	# Even if this section looks crufty: it has the advantage of
2549	# actually working.
2550	break;;
2551    * )
2552	break;;
2553  esac
2554done
2555test "$ac_cv_exeext" = no && ac_cv_exeext=
2556
2557else
2558  ac_file=''
2559fi
2560
2561{ echo "$as_me:$LINENO: result: $ac_file" >&5
2562echo "${ECHO_T}$ac_file" >&6; }
2563if test -z "$ac_file"; then
2564  echo "$as_me: failed program was:" >&5
2565sed 's/^/| /' conftest.$ac_ext >&5
2566
2567{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2568See \`config.log' for more details." >&5
2569echo "$as_me: error: C compiler cannot create executables
2570See \`config.log' for more details." >&2;}
2571   { (exit 77); exit 77; }; }
2572fi
2573
2574ac_exeext=$ac_cv_exeext
2575
2576# Check that the compiler produces executables we can run.  If not, either
2577# the compiler is broken, or we cross compile.
2578{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2579echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2580# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2581# If not cross compiling, check that we can run a simple program.
2582if test "$cross_compiling" != yes; then
2583  if { ac_try='./$ac_file'
2584  { (case "(($ac_try" in
2585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586  *) ac_try_echo=$ac_try;;
2587esac
2588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2589  (eval "$ac_try") 2>&5
2590  ac_status=$?
2591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592  (exit $ac_status); }; }; then
2593    cross_compiling=no
2594  else
2595    if test "$cross_compiling" = maybe; then
2596	cross_compiling=yes
2597    else
2598	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2599If you meant to cross compile, use \`--host'.
2600See \`config.log' for more details." >&5
2601echo "$as_me: error: cannot run C compiled programs.
2602If you meant to cross compile, use \`--host'.
2603See \`config.log' for more details." >&2;}
2604   { (exit 1); exit 1; }; }
2605    fi
2606  fi
2607fi
2608{ echo "$as_me:$LINENO: result: yes" >&5
2609echo "${ECHO_T}yes" >&6; }
2610
2611rm -f a.out a.exe conftest$ac_cv_exeext b.out
2612ac_clean_files=$ac_clean_files_save
2613# Check that the compiler produces executables we can run.  If not, either
2614# the compiler is broken, or we cross compile.
2615{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2616echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2617{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2618echo "${ECHO_T}$cross_compiling" >&6; }
2619
2620{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2621echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2622if { (ac_try="$ac_link"
2623case "(($ac_try" in
2624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625  *) ac_try_echo=$ac_try;;
2626esac
2627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2628  (eval "$ac_link") 2>&5
2629  ac_status=$?
2630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631  (exit $ac_status); }; then
2632  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2633# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2634# work properly (i.e., refer to `conftest.exe'), while it won't with
2635# `rm'.
2636for ac_file in conftest.exe conftest conftest.*; do
2637  test -f "$ac_file" || continue
2638  case $ac_file in
2639    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2640    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2641	  break;;
2642    * ) break;;
2643  esac
2644done
2645else
2646  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2647See \`config.log' for more details." >&5
2648echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2649See \`config.log' for more details." >&2;}
2650   { (exit 1); exit 1; }; }
2651fi
2652
2653rm -f conftest$ac_cv_exeext
2654{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2655echo "${ECHO_T}$ac_cv_exeext" >&6; }
2656
2657rm -f conftest.$ac_ext
2658EXEEXT=$ac_cv_exeext
2659ac_exeext=$EXEEXT
2660{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2661echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2662if test "${ac_cv_objext+set}" = set; then
2663  echo $ECHO_N "(cached) $ECHO_C" >&6
2664else
2665  cat >conftest.$ac_ext <<_ACEOF
2666/* confdefs.h.  */
2667_ACEOF
2668cat confdefs.h >>conftest.$ac_ext
2669cat >>conftest.$ac_ext <<_ACEOF
2670/* end confdefs.h.  */
2671
2672int
2673main ()
2674{
2675
2676  ;
2677  return 0;
2678}
2679_ACEOF
2680rm -f conftest.o conftest.obj
2681if { (ac_try="$ac_compile"
2682case "(($ac_try" in
2683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684  *) ac_try_echo=$ac_try;;
2685esac
2686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2687  (eval "$ac_compile") 2>&5
2688  ac_status=$?
2689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690  (exit $ac_status); }; then
2691  for ac_file in conftest.o conftest.obj conftest.*; do
2692  test -f "$ac_file" || continue;
2693  case $ac_file in
2694    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2695    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2696       break;;
2697  esac
2698done
2699else
2700  echo "$as_me: failed program was:" >&5
2701sed 's/^/| /' conftest.$ac_ext >&5
2702
2703{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2704See \`config.log' for more details." >&5
2705echo "$as_me: error: cannot compute suffix of object files: cannot compile
2706See \`config.log' for more details." >&2;}
2707   { (exit 1); exit 1; }; }
2708fi
2709
2710rm -f conftest.$ac_cv_objext conftest.$ac_ext
2711fi
2712{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2713echo "${ECHO_T}$ac_cv_objext" >&6; }
2714OBJEXT=$ac_cv_objext
2715ac_objext=$OBJEXT
2716{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2717echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2718if test "${ac_cv_c_compiler_gnu+set}" = set; then
2719  echo $ECHO_N "(cached) $ECHO_C" >&6
2720else
2721  cat >conftest.$ac_ext <<_ACEOF
2722/* confdefs.h.  */
2723_ACEOF
2724cat confdefs.h >>conftest.$ac_ext
2725cat >>conftest.$ac_ext <<_ACEOF
2726/* end confdefs.h.  */
2727
2728int
2729main ()
2730{
2731#ifndef __GNUC__
2732       choke me
2733#endif
2734
2735  ;
2736  return 0;
2737}
2738_ACEOF
2739rm -f conftest.$ac_objext
2740if { (ac_try="$ac_compile"
2741case "(($ac_try" in
2742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743  *) ac_try_echo=$ac_try;;
2744esac
2745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746  (eval "$ac_compile") 2>conftest.er1
2747  ac_status=$?
2748  grep -v '^ *+' conftest.er1 >conftest.err
2749  rm -f conftest.er1
2750  cat conftest.err >&5
2751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752  (exit $ac_status); } && {
2753	 test -z "$ac_c_werror_flag" ||
2754	 test ! -s conftest.err
2755       } && test -s conftest.$ac_objext; then
2756  ac_compiler_gnu=yes
2757else
2758  echo "$as_me: failed program was:" >&5
2759sed 's/^/| /' conftest.$ac_ext >&5
2760
2761	ac_compiler_gnu=no
2762fi
2763
2764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2765ac_cv_c_compiler_gnu=$ac_compiler_gnu
2766
2767fi
2768{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2769echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2770GCC=`test $ac_compiler_gnu = yes && echo yes`
2771ac_test_CFLAGS=${CFLAGS+set}
2772ac_save_CFLAGS=$CFLAGS
2773{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2774echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2775if test "${ac_cv_prog_cc_g+set}" = set; then
2776  echo $ECHO_N "(cached) $ECHO_C" >&6
2777else
2778  ac_save_c_werror_flag=$ac_c_werror_flag
2779   ac_c_werror_flag=yes
2780   ac_cv_prog_cc_g=no
2781   CFLAGS="-g"
2782   cat >conftest.$ac_ext <<_ACEOF
2783/* confdefs.h.  */
2784_ACEOF
2785cat confdefs.h >>conftest.$ac_ext
2786cat >>conftest.$ac_ext <<_ACEOF
2787/* end confdefs.h.  */
2788
2789int
2790main ()
2791{
2792
2793  ;
2794  return 0;
2795}
2796_ACEOF
2797rm -f conftest.$ac_objext
2798if { (ac_try="$ac_compile"
2799case "(($ac_try" in
2800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801  *) ac_try_echo=$ac_try;;
2802esac
2803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2804  (eval "$ac_compile") 2>conftest.er1
2805  ac_status=$?
2806  grep -v '^ *+' conftest.er1 >conftest.err
2807  rm -f conftest.er1
2808  cat conftest.err >&5
2809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810  (exit $ac_status); } && {
2811	 test -z "$ac_c_werror_flag" ||
2812	 test ! -s conftest.err
2813       } && test -s conftest.$ac_objext; then
2814  ac_cv_prog_cc_g=yes
2815else
2816  echo "$as_me: failed program was:" >&5
2817sed 's/^/| /' conftest.$ac_ext >&5
2818
2819	CFLAGS=""
2820      cat >conftest.$ac_ext <<_ACEOF
2821/* confdefs.h.  */
2822_ACEOF
2823cat confdefs.h >>conftest.$ac_ext
2824cat >>conftest.$ac_ext <<_ACEOF
2825/* end confdefs.h.  */
2826
2827int
2828main ()
2829{
2830
2831  ;
2832  return 0;
2833}
2834_ACEOF
2835rm -f conftest.$ac_objext
2836if { (ac_try="$ac_compile"
2837case "(($ac_try" in
2838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839  *) ac_try_echo=$ac_try;;
2840esac
2841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2842  (eval "$ac_compile") 2>conftest.er1
2843  ac_status=$?
2844  grep -v '^ *+' conftest.er1 >conftest.err
2845  rm -f conftest.er1
2846  cat conftest.err >&5
2847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848  (exit $ac_status); } && {
2849	 test -z "$ac_c_werror_flag" ||
2850	 test ! -s conftest.err
2851       } && test -s conftest.$ac_objext; then
2852  :
2853else
2854  echo "$as_me: failed program was:" >&5
2855sed 's/^/| /' conftest.$ac_ext >&5
2856
2857	ac_c_werror_flag=$ac_save_c_werror_flag
2858	 CFLAGS="-g"
2859	 cat >conftest.$ac_ext <<_ACEOF
2860/* confdefs.h.  */
2861_ACEOF
2862cat confdefs.h >>conftest.$ac_ext
2863cat >>conftest.$ac_ext <<_ACEOF
2864/* end confdefs.h.  */
2865
2866int
2867main ()
2868{
2869
2870  ;
2871  return 0;
2872}
2873_ACEOF
2874rm -f conftest.$ac_objext
2875if { (ac_try="$ac_compile"
2876case "(($ac_try" in
2877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878  *) ac_try_echo=$ac_try;;
2879esac
2880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2881  (eval "$ac_compile") 2>conftest.er1
2882  ac_status=$?
2883  grep -v '^ *+' conftest.er1 >conftest.err
2884  rm -f conftest.er1
2885  cat conftest.err >&5
2886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887  (exit $ac_status); } && {
2888	 test -z "$ac_c_werror_flag" ||
2889	 test ! -s conftest.err
2890       } && test -s conftest.$ac_objext; then
2891  ac_cv_prog_cc_g=yes
2892else
2893  echo "$as_me: failed program was:" >&5
2894sed 's/^/| /' conftest.$ac_ext >&5
2895
2896
2897fi
2898
2899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2900fi
2901
2902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2903fi
2904
2905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2906   ac_c_werror_flag=$ac_save_c_werror_flag
2907fi
2908{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2909echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2910if test "$ac_test_CFLAGS" = set; then
2911  CFLAGS=$ac_save_CFLAGS
2912elif test $ac_cv_prog_cc_g = yes; then
2913  if test "$GCC" = yes; then
2914    CFLAGS="-g -O2"
2915  else
2916    CFLAGS="-g"
2917  fi
2918else
2919  if test "$GCC" = yes; then
2920    CFLAGS="-O2"
2921  else
2922    CFLAGS=
2923  fi
2924fi
2925{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2926echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2927if test "${ac_cv_prog_cc_c89+set}" = set; then
2928  echo $ECHO_N "(cached) $ECHO_C" >&6
2929else
2930  ac_cv_prog_cc_c89=no
2931ac_save_CC=$CC
2932cat >conftest.$ac_ext <<_ACEOF
2933/* confdefs.h.  */
2934_ACEOF
2935cat confdefs.h >>conftest.$ac_ext
2936cat >>conftest.$ac_ext <<_ACEOF
2937/* end confdefs.h.  */
2938#include <stdarg.h>
2939#include <stdio.h>
2940#include <sys/types.h>
2941#include <sys/stat.h>
2942/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2943struct buf { int x; };
2944FILE * (*rcsopen) (struct buf *, struct stat *, int);
2945static char *e (p, i)
2946     char **p;
2947     int i;
2948{
2949  return p[i];
2950}
2951static char *f (char * (*g) (char **, int), char **p, ...)
2952{
2953  char *s;
2954  va_list v;
2955  va_start (v,p);
2956  s = g (p, va_arg (v,int));
2957  va_end (v);
2958  return s;
2959}
2960
2961/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2962   function prototypes and stuff, but not '\xHH' hex character constants.
2963   These don't provoke an error unfortunately, instead are silently treated
2964   as 'x'.  The following induces an error, until -std is added to get
2965   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2966   array size at least.  It's necessary to write '\x00'==0 to get something
2967   that's true only with -std.  */
2968int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2969
2970/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2971   inside strings and character constants.  */
2972#define FOO(x) 'x'
2973int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2974
2975int test (int i, double x);
2976struct s1 {int (*f) (int a);};
2977struct s2 {int (*f) (double a);};
2978int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2979int argc;
2980char **argv;
2981int
2982main ()
2983{
2984return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2985  ;
2986  return 0;
2987}
2988_ACEOF
2989for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2990	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2991do
2992  CC="$ac_save_CC $ac_arg"
2993  rm -f conftest.$ac_objext
2994if { (ac_try="$ac_compile"
2995case "(($ac_try" in
2996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997  *) ac_try_echo=$ac_try;;
2998esac
2999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000  (eval "$ac_compile") 2>conftest.er1
3001  ac_status=$?
3002  grep -v '^ *+' conftest.er1 >conftest.err
3003  rm -f conftest.er1
3004  cat conftest.err >&5
3005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006  (exit $ac_status); } && {
3007	 test -z "$ac_c_werror_flag" ||
3008	 test ! -s conftest.err
3009       } && test -s conftest.$ac_objext; then
3010  ac_cv_prog_cc_c89=$ac_arg
3011else
3012  echo "$as_me: failed program was:" >&5
3013sed 's/^/| /' conftest.$ac_ext >&5
3014
3015
3016fi
3017
3018rm -f core conftest.err conftest.$ac_objext
3019  test "x$ac_cv_prog_cc_c89" != "xno" && break
3020done
3021rm -f conftest.$ac_ext
3022CC=$ac_save_CC
3023
3024fi
3025# AC_CACHE_VAL
3026case "x$ac_cv_prog_cc_c89" in
3027  x)
3028    { echo "$as_me:$LINENO: result: none needed" >&5
3029echo "${ECHO_T}none needed" >&6; } ;;
3030  xno)
3031    { echo "$as_me:$LINENO: result: unsupported" >&5
3032echo "${ECHO_T}unsupported" >&6; } ;;
3033  *)
3034    CC="$CC $ac_cv_prog_cc_c89"
3035    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3036echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3037esac
3038
3039
3040ac_ext=c
3041ac_cpp='$CPP $CPPFLAGS'
3042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3044ac_compiler_gnu=$ac_cv_c_compiler_gnu
3045
3046
3047{ echo "$as_me:$LINENO: checking for working volatile" >&5
3048echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
3049if test "${ac_cv_c_volatile+set}" = set; then
3050  echo $ECHO_N "(cached) $ECHO_C" >&6
3051else
3052  cat >conftest.$ac_ext <<_ACEOF
3053/* confdefs.h.  */
3054_ACEOF
3055cat confdefs.h >>conftest.$ac_ext
3056cat >>conftest.$ac_ext <<_ACEOF
3057/* end confdefs.h.  */
3058
3059int
3060main ()
3061{
3062
3063volatile int x;
3064int * volatile y = (int *) 0;
3065return !x && !y;
3066  ;
3067  return 0;
3068}
3069_ACEOF
3070rm -f conftest.$ac_objext
3071if { (ac_try="$ac_compile"
3072case "(($ac_try" in
3073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074  *) ac_try_echo=$ac_try;;
3075esac
3076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077  (eval "$ac_compile") 2>conftest.er1
3078  ac_status=$?
3079  grep -v '^ *+' conftest.er1 >conftest.err
3080  rm -f conftest.er1
3081  cat conftest.err >&5
3082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083  (exit $ac_status); } && {
3084	 test -z "$ac_c_werror_flag" ||
3085	 test ! -s conftest.err
3086       } && test -s conftest.$ac_objext; then
3087  ac_cv_c_volatile=yes
3088else
3089  echo "$as_me: failed program was:" >&5
3090sed 's/^/| /' conftest.$ac_ext >&5
3091
3092	ac_cv_c_volatile=no
3093fi
3094
3095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3096fi
3097{ echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
3098echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
3099if test $ac_cv_c_volatile = no; then
3100
3101cat >>confdefs.h <<\_ACEOF
3102#define volatile
3103_ACEOF
3104
3105fi
3106
3107# Check whether --enable-static was given.
3108if test "${enable_static+set}" = set; then
3109  enableval=$enable_static; p=${PACKAGE-default}
3110    case $enableval in
3111    yes) enable_static=yes ;;
3112    no) enable_static=no ;;
3113    *)
3114     enable_static=no
3115      # Look at the argument we got.  We use all the common list separators.
3116      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3117      for pkg in $enableval; do
3118	IFS="$lt_save_ifs"
3119	if test "X$pkg" = "X$p"; then
3120	  enable_static=yes
3121	fi
3122      done
3123      IFS="$lt_save_ifs"
3124      ;;
3125    esac
3126else
3127  enable_static=no
3128fi
3129
3130
3131
3132# Check whether --enable-shared was given.
3133if test "${enable_shared+set}" = set; then
3134  enableval=$enable_shared; p=${PACKAGE-default}
3135    case $enableval in
3136    yes) enable_shared=yes ;;
3137    no) enable_shared=no ;;
3138    *)
3139      enable_shared=no
3140      # Look at the argument we got.  We use all the common list separators.
3141      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3142      for pkg in $enableval; do
3143	IFS="$lt_save_ifs"
3144	if test "X$pkg" = "X$p"; then
3145	  enable_shared=yes
3146	fi
3147      done
3148      IFS="$lt_save_ifs"
3149      ;;
3150    esac
3151else
3152  enable_shared=yes
3153fi
3154
3155
3156# Check whether --enable-fast-install was given.
3157if test "${enable_fast_install+set}" = set; then
3158  enableval=$enable_fast_install; p=${PACKAGE-default}
3159    case $enableval in
3160    yes) enable_fast_install=yes ;;
3161    no) enable_fast_install=no ;;
3162    *)
3163      enable_fast_install=no
3164      # Look at the argument we got.  We use all the common list separators.
3165      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3166      for pkg in $enableval; do
3167	IFS="$lt_save_ifs"
3168	if test "X$pkg" = "X$p"; then
3169	  enable_fast_install=yes
3170	fi
3171      done
3172      IFS="$lt_save_ifs"
3173      ;;
3174    esac
3175else
3176  enable_fast_install=yes
3177fi
3178
3179
3180{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3181echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3182if test "${lt_cv_path_SED+set}" = set; then
3183  echo $ECHO_N "(cached) $ECHO_C" >&6
3184else
3185  # Loop through the user's path and test for sed and gsed.
3186# Then use that list of sed's as ones to test for truncation.
3187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188for as_dir in $PATH
3189do
3190  IFS=$as_save_IFS
3191  test -z "$as_dir" && as_dir=.
3192  for lt_ac_prog in sed gsed; do
3193    for ac_exec_ext in '' $ac_executable_extensions; do
3194      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3195        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3196      fi
3197    done
3198  done
3199done
3200IFS=$as_save_IFS
3201lt_ac_max=0
3202lt_ac_count=0
3203# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3204# along with /bin/sed that truncates output.
3205for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3206  test ! -f $lt_ac_sed && continue
3207  cat /dev/null > conftest.in
3208  lt_ac_count=0
3209  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3210  # Check for GNU sed and select it if it is found.
3211  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3212    lt_cv_path_SED=$lt_ac_sed
3213    break
3214  fi
3215  while true; do
3216    cat conftest.in conftest.in >conftest.tmp
3217    mv conftest.tmp conftest.in
3218    cp conftest.in conftest.nl
3219    echo >>conftest.nl
3220    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3221    cmp -s conftest.out conftest.nl || break
3222    # 10000 chars as input seems more than enough
3223    test $lt_ac_count -gt 10 && break
3224    lt_ac_count=`expr $lt_ac_count + 1`
3225    if test $lt_ac_count -gt $lt_ac_max; then
3226      lt_ac_max=$lt_ac_count
3227      lt_cv_path_SED=$lt_ac_sed
3228    fi
3229  done
3230done
3231
3232fi
3233
3234SED=$lt_cv_path_SED
3235
3236{ echo "$as_me:$LINENO: result: $SED" >&5
3237echo "${ECHO_T}$SED" >&6; }
3238
3239{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3240echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3241if test "${ac_cv_path_GREP+set}" = set; then
3242  echo $ECHO_N "(cached) $ECHO_C" >&6
3243else
3244  # Extract the first word of "grep ggrep" to use in msg output
3245if test -z "$GREP"; then
3246set dummy grep ggrep; ac_prog_name=$2
3247if test "${ac_cv_path_GREP+set}" = set; then
3248  echo $ECHO_N "(cached) $ECHO_C" >&6
3249else
3250  ac_path_GREP_found=false
3251# Loop through the user's path and test for each of PROGNAME-LIST
3252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3254do
3255  IFS=$as_save_IFS
3256  test -z "$as_dir" && as_dir=.
3257  for ac_prog in grep ggrep; do
3258  for ac_exec_ext in '' $ac_executable_extensions; do
3259    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3260    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3261    # Check for GNU ac_path_GREP and select it if it is found.
3262  # Check for GNU $ac_path_GREP
3263case `"$ac_path_GREP" --version 2>&1` in
3264*GNU*)
3265  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3266*)
3267  ac_count=0
3268  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3269  while :
3270  do
3271    cat "conftest.in" "conftest.in" >"conftest.tmp"
3272    mv "conftest.tmp" "conftest.in"
3273    cp "conftest.in" "conftest.nl"
3274    echo 'GREP' >> "conftest.nl"
3275    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3276    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3277    ac_count=`expr $ac_count + 1`
3278    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3279      # Best one so far, save it but keep looking for a better one
3280      ac_cv_path_GREP="$ac_path_GREP"
3281      ac_path_GREP_max=$ac_count
3282    fi
3283    # 10*(2^10) chars as input seems more than enough
3284    test $ac_count -gt 10 && break
3285  done
3286  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3287esac
3288
3289
3290    $ac_path_GREP_found && break 3
3291  done
3292done
3293
3294done
3295IFS=$as_save_IFS
3296
3297
3298fi
3299
3300GREP="$ac_cv_path_GREP"
3301if test -z "$GREP"; then
3302  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3303echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3304   { (exit 1); exit 1; }; }
3305fi
3306
3307else
3308  ac_cv_path_GREP=$GREP
3309fi
3310
3311
3312fi
3313{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3314echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3315 GREP="$ac_cv_path_GREP"
3316
3317
3318{ echo "$as_me:$LINENO: checking for egrep" >&5
3319echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3320if test "${ac_cv_path_EGREP+set}" = set; then
3321  echo $ECHO_N "(cached) $ECHO_C" >&6
3322else
3323  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3324   then ac_cv_path_EGREP="$GREP -E"
3325   else
3326     # Extract the first word of "egrep" to use in msg output
3327if test -z "$EGREP"; then
3328set dummy egrep; ac_prog_name=$2
3329if test "${ac_cv_path_EGREP+set}" = set; then
3330  echo $ECHO_N "(cached) $ECHO_C" >&6
3331else
3332  ac_path_EGREP_found=false
3333# Loop through the user's path and test for each of PROGNAME-LIST
3334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3336do
3337  IFS=$as_save_IFS
3338  test -z "$as_dir" && as_dir=.
3339  for ac_prog in egrep; do
3340  for ac_exec_ext in '' $ac_executable_extensions; do
3341    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3342    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3343    # Check for GNU ac_path_EGREP and select it if it is found.
3344  # Check for GNU $ac_path_EGREP
3345case `"$ac_path_EGREP" --version 2>&1` in
3346*GNU*)
3347  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3348*)
3349  ac_count=0
3350  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3351  while :
3352  do
3353    cat "conftest.in" "conftest.in" >"conftest.tmp"
3354    mv "conftest.tmp" "conftest.in"
3355    cp "conftest.in" "conftest.nl"
3356    echo 'EGREP' >> "conftest.nl"
3357    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3358    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3359    ac_count=`expr $ac_count + 1`
3360    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3361      # Best one so far, save it but keep looking for a better one
3362      ac_cv_path_EGREP="$ac_path_EGREP"
3363      ac_path_EGREP_max=$ac_count
3364    fi
3365    # 10*(2^10) chars as input seems more than enough
3366    test $ac_count -gt 10 && break
3367  done
3368  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3369esac
3370
3371
3372    $ac_path_EGREP_found && break 3
3373  done
3374done
3375
3376done
3377IFS=$as_save_IFS
3378
3379
3380fi
3381
3382EGREP="$ac_cv_path_EGREP"
3383if test -z "$EGREP"; then
3384  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3385echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3386   { (exit 1); exit 1; }; }
3387fi
3388
3389else
3390  ac_cv_path_EGREP=$EGREP
3391fi
3392
3393
3394   fi
3395fi
3396{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3397echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3398 EGREP="$ac_cv_path_EGREP"
3399
3400
3401
3402# Check whether --with-gnu-ld was given.
3403if test "${with_gnu_ld+set}" = set; then
3404  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3405else
3406  with_gnu_ld=no
3407fi
3408
3409ac_prog=ld
3410if test "$GCC" = yes; then
3411  # Check if gcc -print-prog-name=ld gives a path.
3412  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3413echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3414  case $host in
3415  *-*-mingw*)
3416    # gcc leaves a trailing carriage return which upsets mingw
3417    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3418  *)
3419    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3420  esac
3421  case $ac_prog in
3422    # Accept absolute paths.
3423    [\\/]* | ?:[\\/]*)
3424      re_direlt='/[^/][^/]*/\.\./'
3425      # Canonicalize the pathname of ld
3426      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3427      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3428	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3429      done
3430      test -z "$LD" && LD="$ac_prog"
3431      ;;
3432  "")
3433    # If it fails, then pretend we aren't using GCC.
3434    ac_prog=ld
3435    ;;
3436  *)
3437    # If it is relative, then search for the first ld in PATH.
3438    with_gnu_ld=unknown
3439    ;;
3440  esac
3441elif test "$with_gnu_ld" = yes; then
3442  { echo "$as_me:$LINENO: checking for GNU ld" >&5
3443echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3444else
3445  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3446echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3447fi
3448if test "${lt_cv_path_LD+set}" = set; then
3449  echo $ECHO_N "(cached) $ECHO_C" >&6
3450else
3451  if test -z "$LD"; then
3452  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3453  for ac_dir in $PATH; do
3454    IFS="$lt_save_ifs"
3455    test -z "$ac_dir" && ac_dir=.
3456    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3457      lt_cv_path_LD="$ac_dir/$ac_prog"
3458      # Check to see if the program is GNU ld.  I'd rather use --version,
3459      # but apparently some variants of GNU ld only accept -v.
3460      # Break only if it was the GNU/non-GNU ld that we prefer.
3461      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3462      *GNU* | *'with BFD'*)
3463	test "$with_gnu_ld" != no && break
3464	;;
3465      *)
3466	test "$with_gnu_ld" != yes && break
3467	;;
3468      esac
3469    fi
3470  done
3471  IFS="$lt_save_ifs"
3472else
3473  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3474fi
3475fi
3476
3477LD="$lt_cv_path_LD"
3478if test -n "$LD"; then
3479  { echo "$as_me:$LINENO: result: $LD" >&5
3480echo "${ECHO_T}$LD" >&6; }
3481else
3482  { echo "$as_me:$LINENO: result: no" >&5
3483echo "${ECHO_T}no" >&6; }
3484fi
3485test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3486echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3487   { (exit 1); exit 1; }; }
3488{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3489echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3490if test "${lt_cv_prog_gnu_ld+set}" = set; then
3491  echo $ECHO_N "(cached) $ECHO_C" >&6
3492else
3493  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3494case `$LD -v 2>&1 </dev/null` in
3495*GNU* | *'with BFD'*)
3496  lt_cv_prog_gnu_ld=yes
3497  ;;
3498*)
3499  lt_cv_prog_gnu_ld=no
3500  ;;
3501esac
3502fi
3503{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3504echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3505with_gnu_ld=$lt_cv_prog_gnu_ld
3506
3507
3508{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3509echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3510if test "${lt_cv_ld_reload_flag+set}" = set; then
3511  echo $ECHO_N "(cached) $ECHO_C" >&6
3512else
3513  lt_cv_ld_reload_flag='-r'
3514fi
3515{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3516echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3517reload_flag=$lt_cv_ld_reload_flag
3518case $reload_flag in
3519"" | " "*) ;;
3520*) reload_flag=" $reload_flag" ;;
3521esac
3522reload_cmds='$LD$reload_flag -o $output$reload_objs'
3523case $host_os in
3524  darwin*)
3525    if test "$GCC" = yes; then
3526      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3527    else
3528      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3529    fi
3530    ;;
3531esac
3532
3533{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3534echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3535if test "${lt_cv_path_NM+set}" = set; then
3536  echo $ECHO_N "(cached) $ECHO_C" >&6
3537else
3538  if test -n "$NM"; then
3539  # Let the user override the test.
3540  lt_cv_path_NM="$NM"
3541else
3542  lt_nm_to_check="${ac_tool_prefix}nm"
3543  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3544    lt_nm_to_check="$lt_nm_to_check nm"
3545  fi
3546  for lt_tmp_nm in $lt_nm_to_check; do
3547    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3548    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3549      IFS="$lt_save_ifs"
3550      test -z "$ac_dir" && ac_dir=.
3551      tmp_nm="$ac_dir/$lt_tmp_nm"
3552      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3553	# Check to see if the nm accepts a BSD-compat flag.
3554	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3555	#   nm: unknown option "B" ignored
3556	# Tru64's nm complains that /dev/null is an invalid object file
3557	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3558	*/dev/null* | *'Invalid file or object type'*)
3559	  lt_cv_path_NM="$tmp_nm -B"
3560	  break
3561	  ;;
3562	*)
3563	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3564	  */dev/null*)
3565	    lt_cv_path_NM="$tmp_nm -p"
3566	    break
3567	    ;;
3568	  *)
3569	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3570	    continue # so that we can try to find one that supports BSD flags
3571	    ;;
3572	  esac
3573	  ;;
3574	esac
3575      fi
3576    done
3577    IFS="$lt_save_ifs"
3578  done
3579  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3580fi
3581fi
3582{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3583echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3584NM="$lt_cv_path_NM"
3585
3586{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3587echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3588LN_S=$as_ln_s
3589if test "$LN_S" = "ln -s"; then
3590  { echo "$as_me:$LINENO: result: yes" >&5
3591echo "${ECHO_T}yes" >&6; }
3592else
3593  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3594echo "${ECHO_T}no, using $LN_S" >&6; }
3595fi
3596
3597{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
3598echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
3599if test "${lt_cv_deplibs_check_method+set}" = set; then
3600  echo $ECHO_N "(cached) $ECHO_C" >&6
3601else
3602  lt_cv_file_magic_cmd='$MAGIC_CMD'
3603lt_cv_file_magic_test_file=
3604lt_cv_deplibs_check_method='unknown'
3605# Need to set the preceding variable on all platforms that support
3606# interlibrary dependencies.
3607# 'none' -- dependencies not supported.
3608# `unknown' -- same as none, but documents that we really don't know.
3609# 'pass_all' -- all dependencies passed with no checks.
3610# 'test_compile' -- check by making test program.
3611# 'file_magic [[regex]]' -- check by looking for files in library path
3612# which responds to the $file_magic_cmd with a given extended regex.
3613# If you have `file' or equivalent on your system and you're not sure
3614# whether `pass_all' will *always* work, you probably want this one.
3615
3616case $host_os in
3617aix4* | aix5*)
3618  lt_cv_deplibs_check_method=pass_all
3619  ;;
3620
3621beos*)
3622  lt_cv_deplibs_check_method=pass_all
3623  ;;
3624
3625bsdi[45]*)
3626  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3627  lt_cv_file_magic_cmd='/usr/bin/file -L'
3628  lt_cv_file_magic_test_file=/shlib/libc.so
3629  ;;
3630
3631cygwin*)
3632  # func_win32_libid is a shell function defined in ltmain.sh
3633  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3634  lt_cv_file_magic_cmd='func_win32_libid'
3635  ;;
3636
3637mingw* | pw32*)
3638  # Base MSYS/MinGW do not provide the 'file' command needed by
3639  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3640  # unless we find 'file', for example because we are cross-compiling.
3641  if ( file / ) >/dev/null 2>&1; then
3642    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3643    lt_cv_file_magic_cmd='func_win32_libid'
3644  else
3645    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3646    lt_cv_file_magic_cmd='$OBJDUMP -f'
3647  fi
3648  ;;
3649
3650darwin* | rhapsody*)
3651  lt_cv_deplibs_check_method=pass_all
3652  ;;
3653
3654freebsd* | dragonfly*)
3655  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3656    case $host_cpu in
3657    i*86 )
3658      # Not sure whether the presence of OpenBSD here was a mistake.
3659      # Let's accept both of them until this is cleared up.
3660      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3661      lt_cv_file_magic_cmd=/usr/bin/file
3662      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3663      ;;
3664    esac
3665  else
3666    lt_cv_deplibs_check_method=pass_all
3667  fi
3668  ;;
3669
3670gnu*)
3671  lt_cv_deplibs_check_method=pass_all
3672  ;;
3673
3674hpux10.20* | hpux11*)
3675  lt_cv_file_magic_cmd=/usr/bin/file
3676  case $host_cpu in
3677  ia64*)
3678    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3679    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3680    ;;
3681  hppa*64*)
3682    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]'
3683    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3684    ;;
3685  *)
3686    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3687    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3688    ;;
3689  esac
3690  ;;
3691
3692interix[3-9]*)
3693  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3694  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3695  ;;
3696
3697irix5* | irix6* | nonstopux*)
3698  case $LD in
3699  *-32|*"-32 ") libmagic=32-bit;;
3700  *-n32|*"-n32 ") libmagic=N32;;
3701  *-64|*"-64 ") libmagic=64-bit;;
3702  *) libmagic=never-match;;
3703  esac
3704  lt_cv_deplibs_check_method=pass_all
3705  ;;
3706
3707# This must be Linux ELF.
3708linux* | k*bsd*-gnu)
3709  lt_cv_deplibs_check_method=pass_all
3710  ;;
3711
3712netbsd*)
3713  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3714    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3715  else
3716    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3717  fi
3718  ;;
3719
3720newos6*)
3721  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3722  lt_cv_file_magic_cmd=/usr/bin/file
3723  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3724  ;;
3725
3726nto-qnx*)
3727  lt_cv_deplibs_check_method=unknown
3728  ;;
3729
3730openbsd*)
3731  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3732    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3733  else
3734    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3735  fi
3736  ;;
3737
3738osf3* | osf4* | osf5*)
3739  lt_cv_deplibs_check_method=pass_all
3740  ;;
3741
3742rdos*)
3743  lt_cv_deplibs_check_method=pass_all
3744  ;;
3745
3746solaris*)
3747  lt_cv_deplibs_check_method=pass_all
3748  ;;
3749
3750sysv4 | sysv4.3*)
3751  case $host_vendor in
3752  motorola)
3753    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]'
3754    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3755    ;;
3756  ncr)
3757    lt_cv_deplibs_check_method=pass_all
3758    ;;
3759  sequent)
3760    lt_cv_file_magic_cmd='/bin/file'
3761    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3762    ;;
3763  sni)
3764    lt_cv_file_magic_cmd='/bin/file'
3765    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3766    lt_cv_file_magic_test_file=/lib/libc.so
3767    ;;
3768  siemens)
3769    lt_cv_deplibs_check_method=pass_all
3770    ;;
3771  pc)
3772    lt_cv_deplibs_check_method=pass_all
3773    ;;
3774  esac
3775  ;;
3776
3777sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3778  lt_cv_deplibs_check_method=pass_all
3779  ;;
3780esac
3781
3782fi
3783{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3784echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
3785file_magic_cmd=$lt_cv_file_magic_cmd
3786deplibs_check_method=$lt_cv_deplibs_check_method
3787test -z "$deplibs_check_method" && deplibs_check_method=unknown
3788
3789
3790
3791
3792# If no C compiler was specified, use CC.
3793LTCC=${LTCC-"$CC"}
3794
3795# If no C compiler flags were specified, use CFLAGS.
3796LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3797
3798# Allow CC to be a program name with arguments.
3799compiler=$CC
3800
3801# Check whether --enable-libtool-lock was given.
3802if test "${enable_libtool_lock+set}" = set; then
3803  enableval=$enable_libtool_lock;
3804fi
3805
3806test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3807
3808# Some flags need to be propagated to the compiler or linker for good
3809# libtool support.
3810case $host in
3811ia64-*-hpux*)
3812  # Find out which ABI we are using.
3813  echo 'int i;' > conftest.$ac_ext
3814  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3815  (eval $ac_compile) 2>&5
3816  ac_status=$?
3817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818  (exit $ac_status); }; then
3819    case `/usr/bin/file conftest.$ac_objext` in
3820    *ELF-32*)
3821      HPUX_IA64_MODE="32"
3822      ;;
3823    *ELF-64*)
3824      HPUX_IA64_MODE="64"
3825      ;;
3826    esac
3827  fi
3828  rm -rf conftest*
3829  ;;
3830*-*-irix6*)
3831  # Find out which ABI we are using.
3832  echo '#line 3832 "configure"' > conftest.$ac_ext
3833  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3834  (eval $ac_compile) 2>&5
3835  ac_status=$?
3836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837  (exit $ac_status); }; then
3838   if test "$lt_cv_prog_gnu_ld" = yes; then
3839    case `/usr/bin/file conftest.$ac_objext` in
3840    *32-bit*)
3841      LD="${LD-ld} -melf32bsmip"
3842      ;;
3843    *N32*)
3844      LD="${LD-ld} -melf32bmipn32"
3845      ;;
3846    *64-bit*)
3847      LD="${LD-ld} -melf64bmip"
3848      ;;
3849    esac
3850   else
3851    case `/usr/bin/file conftest.$ac_objext` in
3852    *32-bit*)
3853      LD="${LD-ld} -32"
3854      ;;
3855    *N32*)
3856      LD="${LD-ld} -n32"
3857      ;;
3858    *64-bit*)
3859      LD="${LD-ld} -64"
3860      ;;
3861    esac
3862   fi
3863  fi
3864  rm -rf conftest*
3865  ;;
3866
3867x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
3868s390*-*linux*|sparc*-*linux*)
3869  # Find out which ABI we are using.
3870  echo 'int i;' > conftest.$ac_ext
3871  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3872  (eval $ac_compile) 2>&5
3873  ac_status=$?
3874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875  (exit $ac_status); }; then
3876    case `/usr/bin/file conftest.o` in
3877    *32-bit*)
3878      case $host in
3879        x86_64-*kfreebsd*-gnu)
3880          LD="${LD-ld} -m elf_i386_fbsd"
3881          ;;
3882        x86_64-*linux*)
3883          LD="${LD-ld} -m elf_i386"
3884          ;;
3885        ppc64-*linux*|powerpc64-*linux*)
3886          LD="${LD-ld} -m elf32ppclinux"
3887          ;;
3888        s390x-*linux*)
3889          LD="${LD-ld} -m elf_s390"
3890          ;;
3891        sparc64-*linux*)
3892          LD="${LD-ld} -m elf32_sparc"
3893          ;;
3894      esac
3895      ;;
3896    *64-bit*)
3897      case $host in
3898        x86_64-*kfreebsd*-gnu)
3899          LD="${LD-ld} -m elf_x86_64_fbsd"
3900          ;;
3901        x86_64-*linux*)
3902          LD="${LD-ld} -m elf_x86_64"
3903          ;;
3904        ppc*-*linux*|powerpc*-*linux*)
3905          LD="${LD-ld} -m elf64ppc"
3906          ;;
3907        s390*-*linux*)
3908          LD="${LD-ld} -m elf64_s390"
3909          ;;
3910        sparc*-*linux*)
3911          LD="${LD-ld} -m elf64_sparc"
3912          ;;
3913      esac
3914      ;;
3915    esac
3916  fi
3917  rm -rf conftest*
3918  ;;
3919
3920*-*-sco3.2v5*)
3921  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3922  SAVE_CFLAGS="$CFLAGS"
3923  CFLAGS="$CFLAGS -belf"
3924  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3925echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
3926if test "${lt_cv_cc_needs_belf+set}" = set; then
3927  echo $ECHO_N "(cached) $ECHO_C" >&6
3928else
3929  ac_ext=c
3930ac_cpp='$CPP $CPPFLAGS'
3931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3933ac_compiler_gnu=$ac_cv_c_compiler_gnu
3934
3935     cat >conftest.$ac_ext <<_ACEOF
3936/* confdefs.h.  */
3937_ACEOF
3938cat confdefs.h >>conftest.$ac_ext
3939cat >>conftest.$ac_ext <<_ACEOF
3940/* end confdefs.h.  */
3941
3942int
3943main ()
3944{
3945
3946  ;
3947  return 0;
3948}
3949_ACEOF
3950rm -f conftest.$ac_objext conftest$ac_exeext
3951if { (ac_try="$ac_link"
3952case "(($ac_try" in
3953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954  *) ac_try_echo=$ac_try;;
3955esac
3956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3957  (eval "$ac_link") 2>conftest.er1
3958  ac_status=$?
3959  grep -v '^ *+' conftest.er1 >conftest.err
3960  rm -f conftest.er1
3961  cat conftest.err >&5
3962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963  (exit $ac_status); } && {
3964	 test -z "$ac_c_werror_flag" ||
3965	 test ! -s conftest.err
3966       } && test -s conftest$ac_exeext &&
3967       $as_test_x conftest$ac_exeext; then
3968  lt_cv_cc_needs_belf=yes
3969else
3970  echo "$as_me: failed program was:" >&5
3971sed 's/^/| /' conftest.$ac_ext >&5
3972
3973	lt_cv_cc_needs_belf=no
3974fi
3975
3976rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3977      conftest$ac_exeext conftest.$ac_ext
3978     ac_ext=c
3979ac_cpp='$CPP $CPPFLAGS'
3980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3982ac_compiler_gnu=$ac_cv_c_compiler_gnu
3983
3984fi
3985{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3986echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
3987  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3988    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3989    CFLAGS="$SAVE_CFLAGS"
3990  fi
3991  ;;
3992sparc*-*solaris*)
3993  # Find out which ABI we are using.
3994  echo 'int i;' > conftest.$ac_ext
3995  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3996  (eval $ac_compile) 2>&5
3997  ac_status=$?
3998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999  (exit $ac_status); }; then
4000    case `/usr/bin/file conftest.o` in
4001    *64-bit*)
4002      case $lt_cv_prog_gnu_ld in
4003      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4004      *)    LD="${LD-ld} -64" ;;
4005      esac
4006      ;;
4007    esac
4008  fi
4009  rm -rf conftest*
4010  ;;
4011
4012
4013esac
4014
4015need_locks="$enable_libtool_lock"
4016
4017
4018ac_ext=c
4019ac_cpp='$CPP $CPPFLAGS'
4020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4024echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4025# On Suns, sometimes $CPP names a directory.
4026if test -n "$CPP" && test -d "$CPP"; then
4027  CPP=
4028fi
4029if test -z "$CPP"; then
4030  if test "${ac_cv_prog_CPP+set}" = set; then
4031  echo $ECHO_N "(cached) $ECHO_C" >&6
4032else
4033      # Double quotes because CPP needs to be expanded
4034    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4035    do
4036      ac_preproc_ok=false
4037for ac_c_preproc_warn_flag in '' yes
4038do
4039  # Use a header file that comes with gcc, so configuring glibc
4040  # with a fresh cross-compiler works.
4041  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4042  # <limits.h> exists even on freestanding compilers.
4043  # On the NeXT, cc -E runs the code through the compiler's parser,
4044  # not just through cpp. "Syntax error" is here to catch this case.
4045  cat >conftest.$ac_ext <<_ACEOF
4046/* confdefs.h.  */
4047_ACEOF
4048cat confdefs.h >>conftest.$ac_ext
4049cat >>conftest.$ac_ext <<_ACEOF
4050/* end confdefs.h.  */
4051#ifdef __STDC__
4052# include <limits.h>
4053#else
4054# include <assert.h>
4055#endif
4056		     Syntax error
4057_ACEOF
4058if { (ac_try="$ac_cpp conftest.$ac_ext"
4059case "(($ac_try" in
4060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061  *) ac_try_echo=$ac_try;;
4062esac
4063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4064  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4065  ac_status=$?
4066  grep -v '^ *+' conftest.er1 >conftest.err
4067  rm -f conftest.er1
4068  cat conftest.err >&5
4069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070  (exit $ac_status); } >/dev/null && {
4071	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4072	 test ! -s conftest.err
4073       }; then
4074  :
4075else
4076  echo "$as_me: failed program was:" >&5
4077sed 's/^/| /' conftest.$ac_ext >&5
4078
4079  # Broken: fails on valid input.
4080continue
4081fi
4082
4083rm -f conftest.err conftest.$ac_ext
4084
4085  # OK, works on sane cases.  Now check whether nonexistent headers
4086  # can be detected and how.
4087  cat >conftest.$ac_ext <<_ACEOF
4088/* confdefs.h.  */
4089_ACEOF
4090cat confdefs.h >>conftest.$ac_ext
4091cat >>conftest.$ac_ext <<_ACEOF
4092/* end confdefs.h.  */
4093#include <ac_nonexistent.h>
4094_ACEOF
4095if { (ac_try="$ac_cpp conftest.$ac_ext"
4096case "(($ac_try" in
4097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098  *) ac_try_echo=$ac_try;;
4099esac
4100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4102  ac_status=$?
4103  grep -v '^ *+' conftest.er1 >conftest.err
4104  rm -f conftest.er1
4105  cat conftest.err >&5
4106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107  (exit $ac_status); } >/dev/null && {
4108	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4109	 test ! -s conftest.err
4110       }; then
4111  # Broken: success on invalid input.
4112continue
4113else
4114  echo "$as_me: failed program was:" >&5
4115sed 's/^/| /' conftest.$ac_ext >&5
4116
4117  # Passes both tests.
4118ac_preproc_ok=:
4119break
4120fi
4121
4122rm -f conftest.err conftest.$ac_ext
4123
4124done
4125# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4126rm -f conftest.err conftest.$ac_ext
4127if $ac_preproc_ok; then
4128  break
4129fi
4130
4131    done
4132    ac_cv_prog_CPP=$CPP
4133
4134fi
4135  CPP=$ac_cv_prog_CPP
4136else
4137  ac_cv_prog_CPP=$CPP
4138fi
4139{ echo "$as_me:$LINENO: result: $CPP" >&5
4140echo "${ECHO_T}$CPP" >&6; }
4141ac_preproc_ok=false
4142for ac_c_preproc_warn_flag in '' yes
4143do
4144  # Use a header file that comes with gcc, so configuring glibc
4145  # with a fresh cross-compiler works.
4146  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4147  # <limits.h> exists even on freestanding compilers.
4148  # On the NeXT, cc -E runs the code through the compiler's parser,
4149  # not just through cpp. "Syntax error" is here to catch this case.
4150  cat >conftest.$ac_ext <<_ACEOF
4151/* confdefs.h.  */
4152_ACEOF
4153cat confdefs.h >>conftest.$ac_ext
4154cat >>conftest.$ac_ext <<_ACEOF
4155/* end confdefs.h.  */
4156#ifdef __STDC__
4157# include <limits.h>
4158#else
4159# include <assert.h>
4160#endif
4161		     Syntax error
4162_ACEOF
4163if { (ac_try="$ac_cpp conftest.$ac_ext"
4164case "(($ac_try" in
4165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166  *) ac_try_echo=$ac_try;;
4167esac
4168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4170  ac_status=$?
4171  grep -v '^ *+' conftest.er1 >conftest.err
4172  rm -f conftest.er1
4173  cat conftest.err >&5
4174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175  (exit $ac_status); } >/dev/null && {
4176	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4177	 test ! -s conftest.err
4178       }; then
4179  :
4180else
4181  echo "$as_me: failed program was:" >&5
4182sed 's/^/| /' conftest.$ac_ext >&5
4183
4184  # Broken: fails on valid input.
4185continue
4186fi
4187
4188rm -f conftest.err conftest.$ac_ext
4189
4190  # OK, works on sane cases.  Now check whether nonexistent headers
4191  # can be detected and how.
4192  cat >conftest.$ac_ext <<_ACEOF
4193/* confdefs.h.  */
4194_ACEOF
4195cat confdefs.h >>conftest.$ac_ext
4196cat >>conftest.$ac_ext <<_ACEOF
4197/* end confdefs.h.  */
4198#include <ac_nonexistent.h>
4199_ACEOF
4200if { (ac_try="$ac_cpp conftest.$ac_ext"
4201case "(($ac_try" in
4202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203  *) ac_try_echo=$ac_try;;
4204esac
4205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4206  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4207  ac_status=$?
4208  grep -v '^ *+' conftest.er1 >conftest.err
4209  rm -f conftest.er1
4210  cat conftest.err >&5
4211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212  (exit $ac_status); } >/dev/null && {
4213	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4214	 test ! -s conftest.err
4215       }; then
4216  # Broken: success on invalid input.
4217continue
4218else
4219  echo "$as_me: failed program was:" >&5
4220sed 's/^/| /' conftest.$ac_ext >&5
4221
4222  # Passes both tests.
4223ac_preproc_ok=:
4224break
4225fi
4226
4227rm -f conftest.err conftest.$ac_ext
4228
4229done
4230# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4231rm -f conftest.err conftest.$ac_ext
4232if $ac_preproc_ok; then
4233  :
4234else
4235  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4236See \`config.log' for more details." >&5
4237echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4238See \`config.log' for more details." >&2;}
4239   { (exit 1); exit 1; }; }
4240fi
4241
4242ac_ext=c
4243ac_cpp='$CPP $CPPFLAGS'
4244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4246ac_compiler_gnu=$ac_cv_c_compiler_gnu
4247
4248
4249{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4250echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4251if test "${ac_cv_header_stdc+set}" = set; then
4252  echo $ECHO_N "(cached) $ECHO_C" >&6
4253else
4254  cat >conftest.$ac_ext <<_ACEOF
4255/* confdefs.h.  */
4256_ACEOF
4257cat confdefs.h >>conftest.$ac_ext
4258cat >>conftest.$ac_ext <<_ACEOF
4259/* end confdefs.h.  */
4260#include <stdlib.h>
4261#include <stdarg.h>
4262#include <string.h>
4263#include <float.h>
4264
4265int
4266main ()
4267{
4268
4269  ;
4270  return 0;
4271}
4272_ACEOF
4273rm -f conftest.$ac_objext
4274if { (ac_try="$ac_compile"
4275case "(($ac_try" in
4276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277  *) ac_try_echo=$ac_try;;
4278esac
4279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280  (eval "$ac_compile") 2>conftest.er1
4281  ac_status=$?
4282  grep -v '^ *+' conftest.er1 >conftest.err
4283  rm -f conftest.er1
4284  cat conftest.err >&5
4285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286  (exit $ac_status); } && {
4287	 test -z "$ac_c_werror_flag" ||
4288	 test ! -s conftest.err
4289       } && test -s conftest.$ac_objext; then
4290  ac_cv_header_stdc=yes
4291else
4292  echo "$as_me: failed program was:" >&5
4293sed 's/^/| /' conftest.$ac_ext >&5
4294
4295	ac_cv_header_stdc=no
4296fi
4297
4298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299
4300if test $ac_cv_header_stdc = yes; then
4301  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4302  cat >conftest.$ac_ext <<_ACEOF
4303/* confdefs.h.  */
4304_ACEOF
4305cat confdefs.h >>conftest.$ac_ext
4306cat >>conftest.$ac_ext <<_ACEOF
4307/* end confdefs.h.  */
4308#include <string.h>
4309
4310_ACEOF
4311if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4312  $EGREP "memchr" >/dev/null 2>&1; then
4313  :
4314else
4315  ac_cv_header_stdc=no
4316fi
4317rm -f conftest*
4318
4319fi
4320
4321if test $ac_cv_header_stdc = yes; then
4322  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4323  cat >conftest.$ac_ext <<_ACEOF
4324/* confdefs.h.  */
4325_ACEOF
4326cat confdefs.h >>conftest.$ac_ext
4327cat >>conftest.$ac_ext <<_ACEOF
4328/* end confdefs.h.  */
4329#include <stdlib.h>
4330
4331_ACEOF
4332if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4333  $EGREP "free" >/dev/null 2>&1; then
4334  :
4335else
4336  ac_cv_header_stdc=no
4337fi
4338rm -f conftest*
4339
4340fi
4341
4342if test $ac_cv_header_stdc = yes; then
4343  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4344  if test "$cross_compiling" = yes; then
4345  :
4346else
4347  cat >conftest.$ac_ext <<_ACEOF
4348/* confdefs.h.  */
4349_ACEOF
4350cat confdefs.h >>conftest.$ac_ext
4351cat >>conftest.$ac_ext <<_ACEOF
4352/* end confdefs.h.  */
4353#include <ctype.h>
4354#include <stdlib.h>
4355#if ((' ' & 0x0FF) == 0x020)
4356# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4357# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4358#else
4359# define ISLOWER(c) \
4360		   (('a' <= (c) && (c) <= 'i') \
4361		     || ('j' <= (c) && (c) <= 'r') \
4362		     || ('s' <= (c) && (c) <= 'z'))
4363# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4364#endif
4365
4366#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4367int
4368main ()
4369{
4370  int i;
4371  for (i = 0; i < 256; i++)
4372    if (XOR (islower (i), ISLOWER (i))
4373	|| toupper (i) != TOUPPER (i))
4374      return 2;
4375  return 0;
4376}
4377_ACEOF
4378rm -f conftest$ac_exeext
4379if { (ac_try="$ac_link"
4380case "(($ac_try" in
4381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382  *) ac_try_echo=$ac_try;;
4383esac
4384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4385  (eval "$ac_link") 2>&5
4386  ac_status=$?
4387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4389  { (case "(($ac_try" in
4390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391  *) ac_try_echo=$ac_try;;
4392esac
4393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4394  (eval "$ac_try") 2>&5
4395  ac_status=$?
4396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397  (exit $ac_status); }; }; then
4398  :
4399else
4400  echo "$as_me: program exited with status $ac_status" >&5
4401echo "$as_me: failed program was:" >&5
4402sed 's/^/| /' conftest.$ac_ext >&5
4403
4404( exit $ac_status )
4405ac_cv_header_stdc=no
4406fi
4407rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4408fi
4409
4410
4411fi
4412fi
4413{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4414echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4415if test $ac_cv_header_stdc = yes; then
4416
4417cat >>confdefs.h <<\_ACEOF
4418#define STDC_HEADERS 1
4419_ACEOF
4420
4421fi
4422
4423# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4434		  inttypes.h stdint.h unistd.h
4435do
4436as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4437{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4438echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4439if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4440  echo $ECHO_N "(cached) $ECHO_C" >&6
4441else
4442  cat >conftest.$ac_ext <<_ACEOF
4443/* confdefs.h.  */
4444_ACEOF
4445cat confdefs.h >>conftest.$ac_ext
4446cat >>conftest.$ac_ext <<_ACEOF
4447/* end confdefs.h.  */
4448$ac_includes_default
4449
4450#include <$ac_header>
4451_ACEOF
4452rm -f conftest.$ac_objext
4453if { (ac_try="$ac_compile"
4454case "(($ac_try" in
4455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456  *) ac_try_echo=$ac_try;;
4457esac
4458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4459  (eval "$ac_compile") 2>conftest.er1
4460  ac_status=$?
4461  grep -v '^ *+' conftest.er1 >conftest.err
4462  rm -f conftest.er1
4463  cat conftest.err >&5
4464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465  (exit $ac_status); } && {
4466	 test -z "$ac_c_werror_flag" ||
4467	 test ! -s conftest.err
4468       } && test -s conftest.$ac_objext; then
4469  eval "$as_ac_Header=yes"
4470else
4471  echo "$as_me: failed program was:" >&5
4472sed 's/^/| /' conftest.$ac_ext >&5
4473
4474	eval "$as_ac_Header=no"
4475fi
4476
4477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4478fi
4479ac_res=`eval echo '${'$as_ac_Header'}'`
4480	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4481echo "${ECHO_T}$ac_res" >&6; }
4482if test `eval echo '${'$as_ac_Header'}'` = yes; then
4483  cat >>confdefs.h <<_ACEOF
4484#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4485_ACEOF
4486
4487fi
4488
4489done
4490
4491
4492
4493for ac_header in dlfcn.h
4494do
4495as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4496if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4497  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4499if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4500  echo $ECHO_N "(cached) $ECHO_C" >&6
4501fi
4502ac_res=`eval echo '${'$as_ac_Header'}'`
4503	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4504echo "${ECHO_T}$ac_res" >&6; }
4505else
4506  # Is the header compilable?
4507{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4508echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4509cat >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$ac_includes_default
4516#include <$ac_header>
4517_ACEOF
4518rm -f conftest.$ac_objext
4519if { (ac_try="$ac_compile"
4520case "(($ac_try" in
4521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522  *) ac_try_echo=$ac_try;;
4523esac
4524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4525  (eval "$ac_compile") 2>conftest.er1
4526  ac_status=$?
4527  grep -v '^ *+' conftest.er1 >conftest.err
4528  rm -f conftest.er1
4529  cat conftest.err >&5
4530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531  (exit $ac_status); } && {
4532	 test -z "$ac_c_werror_flag" ||
4533	 test ! -s conftest.err
4534       } && test -s conftest.$ac_objext; then
4535  ac_header_compiler=yes
4536else
4537  echo "$as_me: failed program was:" >&5
4538sed 's/^/| /' conftest.$ac_ext >&5
4539
4540	ac_header_compiler=no
4541fi
4542
4543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4544{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4545echo "${ECHO_T}$ac_header_compiler" >&6; }
4546
4547# Is the header present?
4548{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4549echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4550cat >conftest.$ac_ext <<_ACEOF
4551/* confdefs.h.  */
4552_ACEOF
4553cat confdefs.h >>conftest.$ac_ext
4554cat >>conftest.$ac_ext <<_ACEOF
4555/* end confdefs.h.  */
4556#include <$ac_header>
4557_ACEOF
4558if { (ac_try="$ac_cpp conftest.$ac_ext"
4559case "(($ac_try" in
4560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4561  *) ac_try_echo=$ac_try;;
4562esac
4563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4564  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4565  ac_status=$?
4566  grep -v '^ *+' conftest.er1 >conftest.err
4567  rm -f conftest.er1
4568  cat conftest.err >&5
4569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570  (exit $ac_status); } >/dev/null && {
4571	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4572	 test ! -s conftest.err
4573       }; then
4574  ac_header_preproc=yes
4575else
4576  echo "$as_me: failed program was:" >&5
4577sed 's/^/| /' conftest.$ac_ext >&5
4578
4579  ac_header_preproc=no
4580fi
4581
4582rm -f conftest.err conftest.$ac_ext
4583{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4584echo "${ECHO_T}$ac_header_preproc" >&6; }
4585
4586# So?  What about this header?
4587case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4588  yes:no: )
4589    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4590echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4591    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4592echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4593    ac_header_preproc=yes
4594    ;;
4595  no:yes:* )
4596    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4597echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4598    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4599echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4600    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4601echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4602    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4603echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4604    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4605echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4606    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4607echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4608    ( cat <<\_ASBOX
4609## ------------------------- ##
4610## Report this to des@des.no ##
4611## ------------------------- ##
4612_ASBOX
4613     ) | sed "s/^/$as_me: WARNING:     /" >&2
4614    ;;
4615esac
4616{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4617echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4618if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4619  echo $ECHO_N "(cached) $ECHO_C" >&6
4620else
4621  eval "$as_ac_Header=\$ac_header_preproc"
4622fi
4623ac_res=`eval echo '${'$as_ac_Header'}'`
4624	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4625echo "${ECHO_T}$ac_res" >&6; }
4626
4627fi
4628if test `eval echo '${'$as_ac_Header'}'` = yes; then
4629  cat >>confdefs.h <<_ACEOF
4630#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4631_ACEOF
4632
4633fi
4634
4635done
4636
4637ac_ext=cpp
4638ac_cpp='$CXXCPP $CPPFLAGS'
4639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4642if test -z "$CXX"; then
4643  if test -n "$CCC"; then
4644    CXX=$CCC
4645  else
4646    if test -n "$ac_tool_prefix"; then
4647  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4648  do
4649    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4650set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4651{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4653if test "${ac_cv_prog_CXX+set}" = set; then
4654  echo $ECHO_N "(cached) $ECHO_C" >&6
4655else
4656  if test -n "$CXX"; then
4657  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4658else
4659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660for as_dir in $PATH
4661do
4662  IFS=$as_save_IFS
4663  test -z "$as_dir" && as_dir=.
4664  for ac_exec_ext in '' $ac_executable_extensions; do
4665  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4666    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4667    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4668    break 2
4669  fi
4670done
4671done
4672IFS=$as_save_IFS
4673
4674fi
4675fi
4676CXX=$ac_cv_prog_CXX
4677if test -n "$CXX"; then
4678  { echo "$as_me:$LINENO: result: $CXX" >&5
4679echo "${ECHO_T}$CXX" >&6; }
4680else
4681  { echo "$as_me:$LINENO: result: no" >&5
4682echo "${ECHO_T}no" >&6; }
4683fi
4684
4685
4686    test -n "$CXX" && break
4687  done
4688fi
4689if test -z "$CXX"; then
4690  ac_ct_CXX=$CXX
4691  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4692do
4693  # Extract the first word of "$ac_prog", so it can be a program name with args.
4694set dummy $ac_prog; ac_word=$2
4695{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4698  echo $ECHO_N "(cached) $ECHO_C" >&6
4699else
4700  if test -n "$ac_ct_CXX"; then
4701  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4702else
4703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704for as_dir in $PATH
4705do
4706  IFS=$as_save_IFS
4707  test -z "$as_dir" && as_dir=.
4708  for ac_exec_ext in '' $ac_executable_extensions; do
4709  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4710    ac_cv_prog_ac_ct_CXX="$ac_prog"
4711    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712    break 2
4713  fi
4714done
4715done
4716IFS=$as_save_IFS
4717
4718fi
4719fi
4720ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4721if test -n "$ac_ct_CXX"; then
4722  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4723echo "${ECHO_T}$ac_ct_CXX" >&6; }
4724else
4725  { echo "$as_me:$LINENO: result: no" >&5
4726echo "${ECHO_T}no" >&6; }
4727fi
4728
4729
4730  test -n "$ac_ct_CXX" && break
4731done
4732
4733  if test "x$ac_ct_CXX" = x; then
4734    CXX="g++"
4735  else
4736    case $cross_compiling:$ac_tool_warned in
4737yes:)
4738{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4739whose name does not start with the host triplet.  If you think this
4740configuration is useful to you, please write to autoconf@gnu.org." >&5
4741echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4742whose name does not start with the host triplet.  If you think this
4743configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4744ac_tool_warned=yes ;;
4745esac
4746    CXX=$ac_ct_CXX
4747  fi
4748fi
4749
4750  fi
4751fi
4752# Provide some information about the compiler.
4753echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4754ac_compiler=`set X $ac_compile; echo $2`
4755{ (ac_try="$ac_compiler --version >&5"
4756case "(($ac_try" in
4757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4758  *) ac_try_echo=$ac_try;;
4759esac
4760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4761  (eval "$ac_compiler --version >&5") 2>&5
4762  ac_status=$?
4763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764  (exit $ac_status); }
4765{ (ac_try="$ac_compiler -v >&5"
4766case "(($ac_try" in
4767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768  *) ac_try_echo=$ac_try;;
4769esac
4770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4771  (eval "$ac_compiler -v >&5") 2>&5
4772  ac_status=$?
4773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774  (exit $ac_status); }
4775{ (ac_try="$ac_compiler -V >&5"
4776case "(($ac_try" in
4777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4778  *) ac_try_echo=$ac_try;;
4779esac
4780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4781  (eval "$ac_compiler -V >&5") 2>&5
4782  ac_status=$?
4783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784  (exit $ac_status); }
4785
4786{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4787echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4788if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4789  echo $ECHO_N "(cached) $ECHO_C" >&6
4790else
4791  cat >conftest.$ac_ext <<_ACEOF
4792/* confdefs.h.  */
4793_ACEOF
4794cat confdefs.h >>conftest.$ac_ext
4795cat >>conftest.$ac_ext <<_ACEOF
4796/* end confdefs.h.  */
4797
4798int
4799main ()
4800{
4801#ifndef __GNUC__
4802       choke me
4803#endif
4804
4805  ;
4806  return 0;
4807}
4808_ACEOF
4809rm -f conftest.$ac_objext
4810if { (ac_try="$ac_compile"
4811case "(($ac_try" in
4812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4813  *) ac_try_echo=$ac_try;;
4814esac
4815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4816  (eval "$ac_compile") 2>conftest.er1
4817  ac_status=$?
4818  grep -v '^ *+' conftest.er1 >conftest.err
4819  rm -f conftest.er1
4820  cat conftest.err >&5
4821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822  (exit $ac_status); } && {
4823	 test -z "$ac_cxx_werror_flag" ||
4824	 test ! -s conftest.err
4825       } && test -s conftest.$ac_objext; then
4826  ac_compiler_gnu=yes
4827else
4828  echo "$as_me: failed program was:" >&5
4829sed 's/^/| /' conftest.$ac_ext >&5
4830
4831	ac_compiler_gnu=no
4832fi
4833
4834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4835ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4836
4837fi
4838{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4839echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4840GXX=`test $ac_compiler_gnu = yes && echo yes`
4841ac_test_CXXFLAGS=${CXXFLAGS+set}
4842ac_save_CXXFLAGS=$CXXFLAGS
4843{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4844echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4845if test "${ac_cv_prog_cxx_g+set}" = set; then
4846  echo $ECHO_N "(cached) $ECHO_C" >&6
4847else
4848  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4849   ac_cxx_werror_flag=yes
4850   ac_cv_prog_cxx_g=no
4851   CXXFLAGS="-g"
4852   cat >conftest.$ac_ext <<_ACEOF
4853/* confdefs.h.  */
4854_ACEOF
4855cat confdefs.h >>conftest.$ac_ext
4856cat >>conftest.$ac_ext <<_ACEOF
4857/* end confdefs.h.  */
4858
4859int
4860main ()
4861{
4862
4863  ;
4864  return 0;
4865}
4866_ACEOF
4867rm -f conftest.$ac_objext
4868if { (ac_try="$ac_compile"
4869case "(($ac_try" in
4870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871  *) ac_try_echo=$ac_try;;
4872esac
4873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4874  (eval "$ac_compile") 2>conftest.er1
4875  ac_status=$?
4876  grep -v '^ *+' conftest.er1 >conftest.err
4877  rm -f conftest.er1
4878  cat conftest.err >&5
4879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880  (exit $ac_status); } && {
4881	 test -z "$ac_cxx_werror_flag" ||
4882	 test ! -s conftest.err
4883       } && test -s conftest.$ac_objext; then
4884  ac_cv_prog_cxx_g=yes
4885else
4886  echo "$as_me: failed program was:" >&5
4887sed 's/^/| /' conftest.$ac_ext >&5
4888
4889	CXXFLAGS=""
4890      cat >conftest.$ac_ext <<_ACEOF
4891/* confdefs.h.  */
4892_ACEOF
4893cat confdefs.h >>conftest.$ac_ext
4894cat >>conftest.$ac_ext <<_ACEOF
4895/* end confdefs.h.  */
4896
4897int
4898main ()
4899{
4900
4901  ;
4902  return 0;
4903}
4904_ACEOF
4905rm -f conftest.$ac_objext
4906if { (ac_try="$ac_compile"
4907case "(($ac_try" in
4908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909  *) ac_try_echo=$ac_try;;
4910esac
4911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4912  (eval "$ac_compile") 2>conftest.er1
4913  ac_status=$?
4914  grep -v '^ *+' conftest.er1 >conftest.err
4915  rm -f conftest.er1
4916  cat conftest.err >&5
4917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918  (exit $ac_status); } && {
4919	 test -z "$ac_cxx_werror_flag" ||
4920	 test ! -s conftest.err
4921       } && test -s conftest.$ac_objext; then
4922  :
4923else
4924  echo "$as_me: failed program was:" >&5
4925sed 's/^/| /' conftest.$ac_ext >&5
4926
4927	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4928	 CXXFLAGS="-g"
4929	 cat >conftest.$ac_ext <<_ACEOF
4930/* confdefs.h.  */
4931_ACEOF
4932cat confdefs.h >>conftest.$ac_ext
4933cat >>conftest.$ac_ext <<_ACEOF
4934/* end confdefs.h.  */
4935
4936int
4937main ()
4938{
4939
4940  ;
4941  return 0;
4942}
4943_ACEOF
4944rm -f conftest.$ac_objext
4945if { (ac_try="$ac_compile"
4946case "(($ac_try" in
4947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948  *) ac_try_echo=$ac_try;;
4949esac
4950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4951  (eval "$ac_compile") 2>conftest.er1
4952  ac_status=$?
4953  grep -v '^ *+' conftest.er1 >conftest.err
4954  rm -f conftest.er1
4955  cat conftest.err >&5
4956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957  (exit $ac_status); } && {
4958	 test -z "$ac_cxx_werror_flag" ||
4959	 test ! -s conftest.err
4960       } && test -s conftest.$ac_objext; then
4961  ac_cv_prog_cxx_g=yes
4962else
4963  echo "$as_me: failed program was:" >&5
4964sed 's/^/| /' conftest.$ac_ext >&5
4965
4966
4967fi
4968
4969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4970fi
4971
4972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973fi
4974
4975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4976   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4977fi
4978{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4979echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4980if test "$ac_test_CXXFLAGS" = set; then
4981  CXXFLAGS=$ac_save_CXXFLAGS
4982elif test $ac_cv_prog_cxx_g = yes; then
4983  if test "$GXX" = yes; then
4984    CXXFLAGS="-g -O2"
4985  else
4986    CXXFLAGS="-g"
4987  fi
4988else
4989  if test "$GXX" = yes; then
4990    CXXFLAGS="-O2"
4991  else
4992    CXXFLAGS=
4993  fi
4994fi
4995ac_ext=cpp
4996ac_cpp='$CXXCPP $CPPFLAGS'
4997ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4998ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4999ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5000
5001
5002
5003if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5004    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5005    (test "X$CXX" != "Xg++"))) ; then
5006  ac_ext=cpp
5007ac_cpp='$CXXCPP $CPPFLAGS'
5008ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5009ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5010ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5011{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5012echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5013if test -z "$CXXCPP"; then
5014  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5015  echo $ECHO_N "(cached) $ECHO_C" >&6
5016else
5017      # Double quotes because CXXCPP needs to be expanded
5018    for CXXCPP in "$CXX -E" "/lib/cpp"
5019    do
5020      ac_preproc_ok=false
5021for ac_cxx_preproc_warn_flag in '' yes
5022do
5023  # Use a header file that comes with gcc, so configuring glibc
5024  # with a fresh cross-compiler works.
5025  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5026  # <limits.h> exists even on freestanding compilers.
5027  # On the NeXT, cc -E runs the code through the compiler's parser,
5028  # not just through cpp. "Syntax error" is here to catch this case.
5029  cat >conftest.$ac_ext <<_ACEOF
5030/* confdefs.h.  */
5031_ACEOF
5032cat confdefs.h >>conftest.$ac_ext
5033cat >>conftest.$ac_ext <<_ACEOF
5034/* end confdefs.h.  */
5035#ifdef __STDC__
5036# include <limits.h>
5037#else
5038# include <assert.h>
5039#endif
5040		     Syntax error
5041_ACEOF
5042if { (ac_try="$ac_cpp conftest.$ac_ext"
5043case "(($ac_try" in
5044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045  *) ac_try_echo=$ac_try;;
5046esac
5047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5048  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5049  ac_status=$?
5050  grep -v '^ *+' conftest.er1 >conftest.err
5051  rm -f conftest.er1
5052  cat conftest.err >&5
5053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054  (exit $ac_status); } >/dev/null && {
5055	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5056	 test ! -s conftest.err
5057       }; then
5058  :
5059else
5060  echo "$as_me: failed program was:" >&5
5061sed 's/^/| /' conftest.$ac_ext >&5
5062
5063  # Broken: fails on valid input.
5064continue
5065fi
5066
5067rm -f conftest.err conftest.$ac_ext
5068
5069  # OK, works on sane cases.  Now check whether nonexistent headers
5070  # can be detected and how.
5071  cat >conftest.$ac_ext <<_ACEOF
5072/* confdefs.h.  */
5073_ACEOF
5074cat confdefs.h >>conftest.$ac_ext
5075cat >>conftest.$ac_ext <<_ACEOF
5076/* end confdefs.h.  */
5077#include <ac_nonexistent.h>
5078_ACEOF
5079if { (ac_try="$ac_cpp conftest.$ac_ext"
5080case "(($ac_try" in
5081  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5082  *) ac_try_echo=$ac_try;;
5083esac
5084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5085  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5086  ac_status=$?
5087  grep -v '^ *+' conftest.er1 >conftest.err
5088  rm -f conftest.er1
5089  cat conftest.err >&5
5090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091  (exit $ac_status); } >/dev/null && {
5092	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5093	 test ! -s conftest.err
5094       }; then
5095  # Broken: success on invalid input.
5096continue
5097else
5098  echo "$as_me: failed program was:" >&5
5099sed 's/^/| /' conftest.$ac_ext >&5
5100
5101  # Passes both tests.
5102ac_preproc_ok=:
5103break
5104fi
5105
5106rm -f conftest.err conftest.$ac_ext
5107
5108done
5109# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5110rm -f conftest.err conftest.$ac_ext
5111if $ac_preproc_ok; then
5112  break
5113fi
5114
5115    done
5116    ac_cv_prog_CXXCPP=$CXXCPP
5117
5118fi
5119  CXXCPP=$ac_cv_prog_CXXCPP
5120else
5121  ac_cv_prog_CXXCPP=$CXXCPP
5122fi
5123{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5124echo "${ECHO_T}$CXXCPP" >&6; }
5125ac_preproc_ok=false
5126for ac_cxx_preproc_warn_flag in '' yes
5127do
5128  # Use a header file that comes with gcc, so configuring glibc
5129  # with a fresh cross-compiler works.
5130  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5131  # <limits.h> exists even on freestanding compilers.
5132  # On the NeXT, cc -E runs the code through the compiler's parser,
5133  # not just through cpp. "Syntax error" is here to catch this case.
5134  cat >conftest.$ac_ext <<_ACEOF
5135/* confdefs.h.  */
5136_ACEOF
5137cat confdefs.h >>conftest.$ac_ext
5138cat >>conftest.$ac_ext <<_ACEOF
5139/* end confdefs.h.  */
5140#ifdef __STDC__
5141# include <limits.h>
5142#else
5143# include <assert.h>
5144#endif
5145		     Syntax error
5146_ACEOF
5147if { (ac_try="$ac_cpp conftest.$ac_ext"
5148case "(($ac_try" in
5149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150  *) ac_try_echo=$ac_try;;
5151esac
5152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5154  ac_status=$?
5155  grep -v '^ *+' conftest.er1 >conftest.err
5156  rm -f conftest.er1
5157  cat conftest.err >&5
5158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159  (exit $ac_status); } >/dev/null && {
5160	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5161	 test ! -s conftest.err
5162       }; then
5163  :
5164else
5165  echo "$as_me: failed program was:" >&5
5166sed 's/^/| /' conftest.$ac_ext >&5
5167
5168  # Broken: fails on valid input.
5169continue
5170fi
5171
5172rm -f conftest.err conftest.$ac_ext
5173
5174  # OK, works on sane cases.  Now check whether nonexistent headers
5175  # can be detected and how.
5176  cat >conftest.$ac_ext <<_ACEOF
5177/* confdefs.h.  */
5178_ACEOF
5179cat confdefs.h >>conftest.$ac_ext
5180cat >>conftest.$ac_ext <<_ACEOF
5181/* end confdefs.h.  */
5182#include <ac_nonexistent.h>
5183_ACEOF
5184if { (ac_try="$ac_cpp conftest.$ac_ext"
5185case "(($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_cpp conftest.$ac_ext") 2>conftest.er1
5191  ac_status=$?
5192  grep -v '^ *+' conftest.er1 >conftest.err
5193  rm -f conftest.er1
5194  cat conftest.err >&5
5195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196  (exit $ac_status); } >/dev/null && {
5197	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5198	 test ! -s conftest.err
5199       }; then
5200  # Broken: success on invalid input.
5201continue
5202else
5203  echo "$as_me: failed program was:" >&5
5204sed 's/^/| /' conftest.$ac_ext >&5
5205
5206  # Passes both tests.
5207ac_preproc_ok=:
5208break
5209fi
5210
5211rm -f conftest.err conftest.$ac_ext
5212
5213done
5214# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5215rm -f conftest.err conftest.$ac_ext
5216if $ac_preproc_ok; then
5217  :
5218else
5219  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5220See \`config.log' for more details." >&5
5221echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5222See \`config.log' for more details." >&2;}
5223   { (exit 1); exit 1; }; }
5224fi
5225
5226ac_ext=cpp
5227ac_cpp='$CXXCPP $CPPFLAGS'
5228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5231
5232fi
5233
5234
5235ac_ext=f
5236ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5237ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5238ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5239if test -n "$ac_tool_prefix"; then
5240  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5241  do
5242    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5243set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5244{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5246if test "${ac_cv_prog_F77+set}" = set; then
5247  echo $ECHO_N "(cached) $ECHO_C" >&6
5248else
5249  if test -n "$F77"; then
5250  ac_cv_prog_F77="$F77" # Let the user override the test.
5251else
5252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253for as_dir in $PATH
5254do
5255  IFS=$as_save_IFS
5256  test -z "$as_dir" && as_dir=.
5257  for ac_exec_ext in '' $ac_executable_extensions; do
5258  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5259    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5260    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261    break 2
5262  fi
5263done
5264done
5265IFS=$as_save_IFS
5266
5267fi
5268fi
5269F77=$ac_cv_prog_F77
5270if test -n "$F77"; then
5271  { echo "$as_me:$LINENO: result: $F77" >&5
5272echo "${ECHO_T}$F77" >&6; }
5273else
5274  { echo "$as_me:$LINENO: result: no" >&5
5275echo "${ECHO_T}no" >&6; }
5276fi
5277
5278
5279    test -n "$F77" && break
5280  done
5281fi
5282if test -z "$F77"; then
5283  ac_ct_F77=$F77
5284  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5285do
5286  # Extract the first word of "$ac_prog", so it can be a program name with args.
5287set dummy $ac_prog; ac_word=$2
5288{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5290if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5291  echo $ECHO_N "(cached) $ECHO_C" >&6
5292else
5293  if test -n "$ac_ct_F77"; then
5294  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5295else
5296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297for as_dir in $PATH
5298do
5299  IFS=$as_save_IFS
5300  test -z "$as_dir" && as_dir=.
5301  for ac_exec_ext in '' $ac_executable_extensions; do
5302  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5303    ac_cv_prog_ac_ct_F77="$ac_prog"
5304    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5305    break 2
5306  fi
5307done
5308done
5309IFS=$as_save_IFS
5310
5311fi
5312fi
5313ac_ct_F77=$ac_cv_prog_ac_ct_F77
5314if test -n "$ac_ct_F77"; then
5315  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5316echo "${ECHO_T}$ac_ct_F77" >&6; }
5317else
5318  { echo "$as_me:$LINENO: result: no" >&5
5319echo "${ECHO_T}no" >&6; }
5320fi
5321
5322
5323  test -n "$ac_ct_F77" && break
5324done
5325
5326  if test "x$ac_ct_F77" = x; then
5327    F77=""
5328  else
5329    case $cross_compiling:$ac_tool_warned in
5330yes:)
5331{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5332whose name does not start with the host triplet.  If you think this
5333configuration is useful to you, please write to autoconf@gnu.org." >&5
5334echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5335whose name does not start with the host triplet.  If you think this
5336configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5337ac_tool_warned=yes ;;
5338esac
5339    F77=$ac_ct_F77
5340  fi
5341fi
5342
5343
5344# Provide some information about the compiler.
5345echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5346ac_compiler=`set X $ac_compile; echo $2`
5347{ (ac_try="$ac_compiler --version >&5"
5348case "(($ac_try" in
5349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350  *) ac_try_echo=$ac_try;;
5351esac
5352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353  (eval "$ac_compiler --version >&5") 2>&5
5354  ac_status=$?
5355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356  (exit $ac_status); }
5357{ (ac_try="$ac_compiler -v >&5"
5358case "(($ac_try" in
5359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360  *) ac_try_echo=$ac_try;;
5361esac
5362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5363  (eval "$ac_compiler -v >&5") 2>&5
5364  ac_status=$?
5365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366  (exit $ac_status); }
5367{ (ac_try="$ac_compiler -V >&5"
5368case "(($ac_try" in
5369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5370  *) ac_try_echo=$ac_try;;
5371esac
5372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5373  (eval "$ac_compiler -V >&5") 2>&5
5374  ac_status=$?
5375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376  (exit $ac_status); }
5377rm -f a.out
5378
5379# If we don't use `.F' as extension, the preprocessor is not run on the
5380# input file.  (Note that this only needs to work for GNU compilers.)
5381ac_save_ext=$ac_ext
5382ac_ext=F
5383{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5384echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5385if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5386  echo $ECHO_N "(cached) $ECHO_C" >&6
5387else
5388  cat >conftest.$ac_ext <<_ACEOF
5389      program main
5390#ifndef __GNUC__
5391       choke me
5392#endif
5393
5394      end
5395_ACEOF
5396rm -f conftest.$ac_objext
5397if { (ac_try="$ac_compile"
5398case "(($ac_try" in
5399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400  *) ac_try_echo=$ac_try;;
5401esac
5402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5403  (eval "$ac_compile") 2>conftest.er1
5404  ac_status=$?
5405  grep -v '^ *+' conftest.er1 >conftest.err
5406  rm -f conftest.er1
5407  cat conftest.err >&5
5408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409  (exit $ac_status); } && {
5410	 test -z "$ac_f77_werror_flag" ||
5411	 test ! -s conftest.err
5412       } && test -s conftest.$ac_objext; then
5413  ac_compiler_gnu=yes
5414else
5415  echo "$as_me: failed program was:" >&5
5416sed 's/^/| /' conftest.$ac_ext >&5
5417
5418	ac_compiler_gnu=no
5419fi
5420
5421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5423
5424fi
5425{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5426echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5427ac_ext=$ac_save_ext
5428ac_test_FFLAGS=${FFLAGS+set}
5429ac_save_FFLAGS=$FFLAGS
5430FFLAGS=
5431{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5432echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5433if test "${ac_cv_prog_f77_g+set}" = set; then
5434  echo $ECHO_N "(cached) $ECHO_C" >&6
5435else
5436  FFLAGS=-g
5437cat >conftest.$ac_ext <<_ACEOF
5438      program main
5439
5440      end
5441_ACEOF
5442rm -f conftest.$ac_objext
5443if { (ac_try="$ac_compile"
5444case "(($ac_try" in
5445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446  *) ac_try_echo=$ac_try;;
5447esac
5448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449  (eval "$ac_compile") 2>conftest.er1
5450  ac_status=$?
5451  grep -v '^ *+' conftest.er1 >conftest.err
5452  rm -f conftest.er1
5453  cat conftest.err >&5
5454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455  (exit $ac_status); } && {
5456	 test -z "$ac_f77_werror_flag" ||
5457	 test ! -s conftest.err
5458       } && test -s conftest.$ac_objext; then
5459  ac_cv_prog_f77_g=yes
5460else
5461  echo "$as_me: failed program was:" >&5
5462sed 's/^/| /' conftest.$ac_ext >&5
5463
5464	ac_cv_prog_f77_g=no
5465fi
5466
5467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5468
5469fi
5470{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5471echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5472if test "$ac_test_FFLAGS" = set; then
5473  FFLAGS=$ac_save_FFLAGS
5474elif test $ac_cv_prog_f77_g = yes; then
5475  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5476    FFLAGS="-g -O2"
5477  else
5478    FFLAGS="-g"
5479  fi
5480else
5481  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5482    FFLAGS="-O2"
5483  else
5484    FFLAGS=
5485  fi
5486fi
5487
5488G77=`test $ac_compiler_gnu = yes && echo yes`
5489ac_ext=c
5490ac_cpp='$CPP $CPPFLAGS'
5491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5493ac_compiler_gnu=$ac_cv_c_compiler_gnu
5494
5495
5496
5497# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5498
5499# find the maximum length of command line arguments
5500{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5501echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5502if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5503  echo $ECHO_N "(cached) $ECHO_C" >&6
5504else
5505    i=0
5506  teststring="ABCD"
5507
5508  case $build_os in
5509  msdosdjgpp*)
5510    # On DJGPP, this test can blow up pretty badly due to problems in libc
5511    # (any single argument exceeding 2000 bytes causes a buffer overrun
5512    # during glob expansion).  Even if it were fixed, the result of this
5513    # check would be larger than it should be.
5514    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5515    ;;
5516
5517  gnu*)
5518    # Under GNU Hurd, this test is not required because there is
5519    # no limit to the length of command line arguments.
5520    # Libtool will interpret -1 as no limit whatsoever
5521    lt_cv_sys_max_cmd_len=-1;
5522    ;;
5523
5524  cygwin* | mingw*)
5525    # On Win9x/ME, this test blows up -- it succeeds, but takes
5526    # about 5 minutes as the teststring grows exponentially.
5527    # Worse, since 9x/ME are not pre-emptively multitasking,
5528    # you end up with a "frozen" computer, even though with patience
5529    # the test eventually succeeds (with a max line length of 256k).
5530    # Instead, let's just punt: use the minimum linelength reported by
5531    # all of the supported platforms: 8192 (on NT/2K/XP).
5532    lt_cv_sys_max_cmd_len=8192;
5533    ;;
5534
5535  amigaos*)
5536    # On AmigaOS with pdksh, this test takes hours, literally.
5537    # So we just punt and use a minimum line length of 8192.
5538    lt_cv_sys_max_cmd_len=8192;
5539    ;;
5540
5541  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5542    # This has been around since 386BSD, at least.  Likely further.
5543    if test -x /sbin/sysctl; then
5544      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5545    elif test -x /usr/sbin/sysctl; then
5546      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5547    else
5548      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5549    fi
5550    # And add a safety zone
5551    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5552    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5553    ;;
5554
5555  interix*)
5556    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5557    lt_cv_sys_max_cmd_len=196608
5558    ;;
5559
5560  osf*)
5561    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5562    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5563    # nice to cause kernel panics so lets avoid the loop below.
5564    # First set a reasonable default.
5565    lt_cv_sys_max_cmd_len=16384
5566    #
5567    if test -x /sbin/sysconfig; then
5568      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5569        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5570      esac
5571    fi
5572    ;;
5573  sco3.2v5*)
5574    lt_cv_sys_max_cmd_len=102400
5575    ;;
5576  sysv5* | sco5v6* | sysv4.2uw2*)
5577    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5578    if test -n "$kargmax"; then
5579      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
5580    else
5581      lt_cv_sys_max_cmd_len=32768
5582    fi
5583    ;;
5584  *)
5585    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5586    if test -n "$lt_cv_sys_max_cmd_len"; then
5587      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5588      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5589    else
5590      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5591      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5592	       = "XX$teststring") >/dev/null 2>&1 &&
5593	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
5594	      lt_cv_sys_max_cmd_len=$new_result &&
5595	      test $i != 17 # 1/2 MB should be enough
5596      do
5597        i=`expr $i + 1`
5598        teststring=$teststring$teststring
5599      done
5600      teststring=
5601      # Add a significant safety factor because C++ compilers can tack on massive
5602      # amounts of additional arguments before passing them to the linker.
5603      # It appears as though 1/2 is a usable value.
5604      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5605    fi
5606    ;;
5607  esac
5608
5609fi
5610
5611if test -n $lt_cv_sys_max_cmd_len ; then
5612  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5613echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5614else
5615  { echo "$as_me:$LINENO: result: none" >&5
5616echo "${ECHO_T}none" >&6; }
5617fi
5618
5619
5620
5621
5622
5623# Check for command to grab the raw symbol name followed by C symbol from nm.
5624{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5625echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5626if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5627  echo $ECHO_N "(cached) $ECHO_C" >&6
5628else
5629
5630# These are sane defaults that work on at least a few old systems.
5631# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5632
5633# Character class describing NM global symbol codes.
5634symcode='[BCDEGRST]'
5635
5636# Regexp to match symbols that can be accessed directly from C.
5637sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5638
5639# Transform an extracted symbol line into a proper C declaration
5640lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5641
5642# Transform an extracted symbol line into symbol name and symbol address
5643lt_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'"
5644
5645# Define system-specific variables.
5646case $host_os in
5647aix*)
5648  symcode='[BCDT]'
5649  ;;
5650cygwin* | mingw* | pw32*)
5651  symcode='[ABCDGISTW]'
5652  ;;
5653hpux*) # Its linker distinguishes data from code symbols
5654  if test "$host_cpu" = ia64; then
5655    symcode='[ABCDEGRST]'
5656  fi
5657  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5658  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'"
5659  ;;
5660linux* | k*bsd*-gnu)
5661  if test "$host_cpu" = ia64; then
5662    symcode='[ABCDGIRSTW]'
5663    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5664    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'"
5665  fi
5666  ;;
5667irix* | nonstopux*)
5668  symcode='[BCDEGRST]'
5669  ;;
5670osf*)
5671  symcode='[BCDEGQRST]'
5672  ;;
5673solaris*)
5674  symcode='[BDRT]'
5675  ;;
5676sco3.2v5*)
5677  symcode='[DT]'
5678  ;;
5679sysv4.2uw2*)
5680  symcode='[DT]'
5681  ;;
5682sysv5* | sco5v6* | unixware* | OpenUNIX*)
5683  symcode='[ABDT]'
5684  ;;
5685sysv4)
5686  symcode='[DFNSTU]'
5687  ;;
5688esac
5689
5690# Handle CRLF in mingw tool chain
5691opt_cr=
5692case $build_os in
5693mingw*)
5694  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5695  ;;
5696esac
5697
5698# If we're using GNU nm, then use its standard symbol codes.
5699case `$NM -V 2>&1` in
5700*GNU* | *'with BFD'*)
5701  symcode='[ABCDGIRSTW]' ;;
5702esac
5703
5704# Try without a prefix undercore, then with it.
5705for ac_symprfx in "" "_"; do
5706
5707  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5708  symxfrm="\\1 $ac_symprfx\\2 \\2"
5709
5710  # Write the raw and C identifiers.
5711  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5712
5713  # Check to see that the pipe works correctly.
5714  pipe_works=no
5715
5716  rm -f conftest*
5717  cat > conftest.$ac_ext <<EOF
5718#ifdef __cplusplus
5719extern "C" {
5720#endif
5721char nm_test_var;
5722void nm_test_func(){}
5723#ifdef __cplusplus
5724}
5725#endif
5726int main(){nm_test_var='a';nm_test_func();return(0);}
5727EOF
5728
5729  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5730  (eval $ac_compile) 2>&5
5731  ac_status=$?
5732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733  (exit $ac_status); }; then
5734    # Now try to grab the symbols.
5735    nlist=conftest.nm
5736    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5737  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5738  ac_status=$?
5739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740  (exit $ac_status); } && test -s "$nlist"; then
5741      # Try sorting and uniquifying the output.
5742      if sort "$nlist" | uniq > "$nlist"T; then
5743	mv -f "$nlist"T "$nlist"
5744      else
5745	rm -f "$nlist"T
5746      fi
5747
5748      # Make sure that we snagged all the symbols we need.
5749      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5750	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5751	  cat <<EOF > conftest.$ac_ext
5752#ifdef __cplusplus
5753extern "C" {
5754#endif
5755
5756EOF
5757	  # Now generate the symbol file.
5758	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5759
5760	  cat <<EOF >> conftest.$ac_ext
5761#if defined (__STDC__) && __STDC__
5762# define lt_ptr_t void *
5763#else
5764# define lt_ptr_t char *
5765# define const
5766#endif
5767
5768/* The mapping between symbol names and symbols. */
5769const struct {
5770  const char *name;
5771  lt_ptr_t address;
5772}
5773lt_preloaded_symbols[] =
5774{
5775EOF
5776	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5777	  cat <<\EOF >> conftest.$ac_ext
5778  {0, (lt_ptr_t) 0}
5779};
5780
5781#ifdef __cplusplus
5782}
5783#endif
5784EOF
5785	  # Now try linking the two files.
5786	  mv conftest.$ac_objext conftstm.$ac_objext
5787	  lt_save_LIBS="$LIBS"
5788	  lt_save_CFLAGS="$CFLAGS"
5789	  LIBS="conftstm.$ac_objext"
5790	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5791	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5792  (eval $ac_link) 2>&5
5793  ac_status=$?
5794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5796	    pipe_works=yes
5797	  fi
5798	  LIBS="$lt_save_LIBS"
5799	  CFLAGS="$lt_save_CFLAGS"
5800	else
5801	  echo "cannot find nm_test_func in $nlist" >&5
5802	fi
5803      else
5804	echo "cannot find nm_test_var in $nlist" >&5
5805      fi
5806    else
5807      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5808    fi
5809  else
5810    echo "$progname: failed program was:" >&5
5811    cat conftest.$ac_ext >&5
5812  fi
5813  rm -f conftest* conftst*
5814
5815  # Do not use the global_symbol_pipe unless it works.
5816  if test "$pipe_works" = yes; then
5817    break
5818  else
5819    lt_cv_sys_global_symbol_pipe=
5820  fi
5821done
5822
5823fi
5824
5825if test -z "$lt_cv_sys_global_symbol_pipe"; then
5826  lt_cv_sys_global_symbol_to_cdecl=
5827fi
5828if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5829  { echo "$as_me:$LINENO: result: failed" >&5
5830echo "${ECHO_T}failed" >&6; }
5831else
5832  { echo "$as_me:$LINENO: result: ok" >&5
5833echo "${ECHO_T}ok" >&6; }
5834fi
5835
5836{ echo "$as_me:$LINENO: checking for objdir" >&5
5837echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5838if test "${lt_cv_objdir+set}" = set; then
5839  echo $ECHO_N "(cached) $ECHO_C" >&6
5840else
5841  rm -f .libs 2>/dev/null
5842mkdir .libs 2>/dev/null
5843if test -d .libs; then
5844  lt_cv_objdir=.libs
5845else
5846  # MS-DOS does not allow filenames that begin with a dot.
5847  lt_cv_objdir=_libs
5848fi
5849rmdir .libs 2>/dev/null
5850fi
5851{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5852echo "${ECHO_T}$lt_cv_objdir" >&6; }
5853objdir=$lt_cv_objdir
5854
5855
5856
5857
5858
5859case $host_os in
5860aix3*)
5861  # AIX sometimes has problems with the GCC collect2 program.  For some
5862  # reason, if we set the COLLECT_NAMES environment variable, the problems
5863  # vanish in a puff of smoke.
5864  if test "X${COLLECT_NAMES+set}" != Xset; then
5865    COLLECT_NAMES=
5866    export COLLECT_NAMES
5867  fi
5868  ;;
5869esac
5870
5871# Sed substitution that helps us do robust quoting.  It backslashifies
5872# metacharacters that are still active within double-quoted strings.
5873Xsed='sed -e 1s/^X//'
5874sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5875
5876# Same as above, but do not quote variable references.
5877double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5878
5879# Sed substitution to delay expansion of an escaped shell variable in a
5880# double_quote_subst'ed string.
5881delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5882
5883# Sed substitution to avoid accidental globbing in evaled expressions
5884no_glob_subst='s/\*/\\\*/g'
5885
5886# Constants:
5887rm="rm -f"
5888
5889# Global variables:
5890default_ofile=libtool
5891can_build_shared=yes
5892
5893# All known linkers require a `.a' archive for static linking (except MSVC,
5894# which needs '.lib').
5895libext=a
5896ltmain="$ac_aux_dir/ltmain.sh"
5897ofile="$default_ofile"
5898with_gnu_ld="$lt_cv_prog_gnu_ld"
5899
5900if test -n "$ac_tool_prefix"; then
5901  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5902set dummy ${ac_tool_prefix}ar; ac_word=$2
5903{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5905if test "${ac_cv_prog_AR+set}" = set; then
5906  echo $ECHO_N "(cached) $ECHO_C" >&6
5907else
5908  if test -n "$AR"; then
5909  ac_cv_prog_AR="$AR" # Let the user override the test.
5910else
5911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912for as_dir in $PATH
5913do
5914  IFS=$as_save_IFS
5915  test -z "$as_dir" && as_dir=.
5916  for ac_exec_ext in '' $ac_executable_extensions; do
5917  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5918    ac_cv_prog_AR="${ac_tool_prefix}ar"
5919    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5920    break 2
5921  fi
5922done
5923done
5924IFS=$as_save_IFS
5925
5926fi
5927fi
5928AR=$ac_cv_prog_AR
5929if test -n "$AR"; then
5930  { echo "$as_me:$LINENO: result: $AR" >&5
5931echo "${ECHO_T}$AR" >&6; }
5932else
5933  { echo "$as_me:$LINENO: result: no" >&5
5934echo "${ECHO_T}no" >&6; }
5935fi
5936
5937
5938fi
5939if test -z "$ac_cv_prog_AR"; then
5940  ac_ct_AR=$AR
5941  # Extract the first word of "ar", so it can be a program name with args.
5942set dummy ar; ac_word=$2
5943{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5945if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5946  echo $ECHO_N "(cached) $ECHO_C" >&6
5947else
5948  if test -n "$ac_ct_AR"; then
5949  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5950else
5951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952for as_dir in $PATH
5953do
5954  IFS=$as_save_IFS
5955  test -z "$as_dir" && as_dir=.
5956  for ac_exec_ext in '' $ac_executable_extensions; do
5957  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5958    ac_cv_prog_ac_ct_AR="ar"
5959    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5960    break 2
5961  fi
5962done
5963done
5964IFS=$as_save_IFS
5965
5966fi
5967fi
5968ac_ct_AR=$ac_cv_prog_ac_ct_AR
5969if test -n "$ac_ct_AR"; then
5970  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5971echo "${ECHO_T}$ac_ct_AR" >&6; }
5972else
5973  { echo "$as_me:$LINENO: result: no" >&5
5974echo "${ECHO_T}no" >&6; }
5975fi
5976
5977  if test "x$ac_ct_AR" = x; then
5978    AR="false"
5979  else
5980    case $cross_compiling:$ac_tool_warned in
5981yes:)
5982{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5983whose name does not start with the host triplet.  If you think this
5984configuration is useful to you, please write to autoconf@gnu.org." >&5
5985echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5986whose name does not start with the host triplet.  If you think this
5987configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5988ac_tool_warned=yes ;;
5989esac
5990    AR=$ac_ct_AR
5991  fi
5992else
5993  AR="$ac_cv_prog_AR"
5994fi
5995
5996if test -n "$ac_tool_prefix"; then
5997  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5998set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5999{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6001if test "${ac_cv_prog_RANLIB+set}" = set; then
6002  echo $ECHO_N "(cached) $ECHO_C" >&6
6003else
6004  if test -n "$RANLIB"; then
6005  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6006else
6007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008for as_dir in $PATH
6009do
6010  IFS=$as_save_IFS
6011  test -z "$as_dir" && as_dir=.
6012  for ac_exec_ext in '' $ac_executable_extensions; do
6013  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6014    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6015    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6016    break 2
6017  fi
6018done
6019done
6020IFS=$as_save_IFS
6021
6022fi
6023fi
6024RANLIB=$ac_cv_prog_RANLIB
6025if test -n "$RANLIB"; then
6026  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6027echo "${ECHO_T}$RANLIB" >&6; }
6028else
6029  { echo "$as_me:$LINENO: result: no" >&5
6030echo "${ECHO_T}no" >&6; }
6031fi
6032
6033
6034fi
6035if test -z "$ac_cv_prog_RANLIB"; then
6036  ac_ct_RANLIB=$RANLIB
6037  # Extract the first word of "ranlib", so it can be a program name with args.
6038set dummy ranlib; ac_word=$2
6039{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6041if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6042  echo $ECHO_N "(cached) $ECHO_C" >&6
6043else
6044  if test -n "$ac_ct_RANLIB"; then
6045  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6046else
6047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048for as_dir in $PATH
6049do
6050  IFS=$as_save_IFS
6051  test -z "$as_dir" && as_dir=.
6052  for ac_exec_ext in '' $ac_executable_extensions; do
6053  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6054    ac_cv_prog_ac_ct_RANLIB="ranlib"
6055    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6056    break 2
6057  fi
6058done
6059done
6060IFS=$as_save_IFS
6061
6062fi
6063fi
6064ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6065if test -n "$ac_ct_RANLIB"; then
6066  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6067echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6068else
6069  { echo "$as_me:$LINENO: result: no" >&5
6070echo "${ECHO_T}no" >&6; }
6071fi
6072
6073  if test "x$ac_ct_RANLIB" = x; then
6074    RANLIB=":"
6075  else
6076    case $cross_compiling:$ac_tool_warned in
6077yes:)
6078{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6079whose name does not start with the host triplet.  If you think this
6080configuration is useful to you, please write to autoconf@gnu.org." >&5
6081echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6082whose name does not start with the host triplet.  If you think this
6083configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6084ac_tool_warned=yes ;;
6085esac
6086    RANLIB=$ac_ct_RANLIB
6087  fi
6088else
6089  RANLIB="$ac_cv_prog_RANLIB"
6090fi
6091
6092if test -n "$ac_tool_prefix"; then
6093  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6094set dummy ${ac_tool_prefix}strip; ac_word=$2
6095{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6097if test "${ac_cv_prog_STRIP+set}" = set; then
6098  echo $ECHO_N "(cached) $ECHO_C" >&6
6099else
6100  if test -n "$STRIP"; then
6101  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6102else
6103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104for as_dir in $PATH
6105do
6106  IFS=$as_save_IFS
6107  test -z "$as_dir" && as_dir=.
6108  for ac_exec_ext in '' $ac_executable_extensions; do
6109  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6110    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6111    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112    break 2
6113  fi
6114done
6115done
6116IFS=$as_save_IFS
6117
6118fi
6119fi
6120STRIP=$ac_cv_prog_STRIP
6121if test -n "$STRIP"; then
6122  { echo "$as_me:$LINENO: result: $STRIP" >&5
6123echo "${ECHO_T}$STRIP" >&6; }
6124else
6125  { echo "$as_me:$LINENO: result: no" >&5
6126echo "${ECHO_T}no" >&6; }
6127fi
6128
6129
6130fi
6131if test -z "$ac_cv_prog_STRIP"; then
6132  ac_ct_STRIP=$STRIP
6133  # Extract the first word of "strip", so it can be a program name with args.
6134set dummy strip; ac_word=$2
6135{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6137if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6138  echo $ECHO_N "(cached) $ECHO_C" >&6
6139else
6140  if test -n "$ac_ct_STRIP"; then
6141  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6142else
6143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144for as_dir in $PATH
6145do
6146  IFS=$as_save_IFS
6147  test -z "$as_dir" && as_dir=.
6148  for ac_exec_ext in '' $ac_executable_extensions; do
6149  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6150    ac_cv_prog_ac_ct_STRIP="strip"
6151    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6152    break 2
6153  fi
6154done
6155done
6156IFS=$as_save_IFS
6157
6158fi
6159fi
6160ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6161if test -n "$ac_ct_STRIP"; then
6162  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6163echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6164else
6165  { echo "$as_me:$LINENO: result: no" >&5
6166echo "${ECHO_T}no" >&6; }
6167fi
6168
6169  if test "x$ac_ct_STRIP" = x; then
6170    STRIP=":"
6171  else
6172    case $cross_compiling:$ac_tool_warned in
6173yes:)
6174{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6175whose name does not start with the host triplet.  If you think this
6176configuration is useful to you, please write to autoconf@gnu.org." >&5
6177echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6178whose name does not start with the host triplet.  If you think this
6179configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6180ac_tool_warned=yes ;;
6181esac
6182    STRIP=$ac_ct_STRIP
6183  fi
6184else
6185  STRIP="$ac_cv_prog_STRIP"
6186fi
6187
6188
6189old_CC="$CC"
6190old_CFLAGS="$CFLAGS"
6191
6192# Set sane defaults for various variables
6193test -z "$AR" && AR=ar
6194test -z "$AR_FLAGS" && AR_FLAGS=cru
6195test -z "$AS" && AS=as
6196test -z "$CC" && CC=cc
6197test -z "$LTCC" && LTCC=$CC
6198test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6199test -z "$DLLTOOL" && DLLTOOL=dlltool
6200test -z "$LD" && LD=ld
6201test -z "$LN_S" && LN_S="ln -s"
6202test -z "$MAGIC_CMD" && MAGIC_CMD=file
6203test -z "$NM" && NM=nm
6204test -z "$SED" && SED=sed
6205test -z "$OBJDUMP" && OBJDUMP=objdump
6206test -z "$RANLIB" && RANLIB=:
6207test -z "$STRIP" && STRIP=:
6208test -z "$ac_objext" && ac_objext=o
6209
6210# Determine commands to create old-style static archives.
6211old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6212old_postinstall_cmds='chmod 644 $oldlib'
6213old_postuninstall_cmds=
6214
6215if test -n "$RANLIB"; then
6216  case $host_os in
6217  openbsd*)
6218    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6219    ;;
6220  *)
6221    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6222    ;;
6223  esac
6224  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6225fi
6226
6227for cc_temp in $compiler""; do
6228  case $cc_temp in
6229    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6230    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6231    \-*) ;;
6232    *) break;;
6233  esac
6234done
6235cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6236
6237
6238# Only perform the check for file, if the check method requires it
6239case $deplibs_check_method in
6240file_magic*)
6241  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6242    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6243echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6244if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6245  echo $ECHO_N "(cached) $ECHO_C" >&6
6246else
6247  case $MAGIC_CMD in
6248[\\/*] |  ?:[\\/]*)
6249  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6250  ;;
6251*)
6252  lt_save_MAGIC_CMD="$MAGIC_CMD"
6253  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6254  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6255  for ac_dir in $ac_dummy; do
6256    IFS="$lt_save_ifs"
6257    test -z "$ac_dir" && ac_dir=.
6258    if test -f $ac_dir/${ac_tool_prefix}file; then
6259      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6260      if test -n "$file_magic_test_file"; then
6261	case $deplibs_check_method in
6262	"file_magic "*)
6263	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6264	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6265	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6266	    $EGREP "$file_magic_regex" > /dev/null; then
6267	    :
6268	  else
6269	    cat <<EOF 1>&2
6270
6271*** Warning: the command libtool uses to detect shared libraries,
6272*** $file_magic_cmd, produces output that libtool cannot recognize.
6273*** The result is that libtool may fail to recognize shared libraries
6274*** as such.  This will affect the creation of libtool libraries that
6275*** depend on shared libraries, but programs linked with such libtool
6276*** libraries will work regardless of this problem.  Nevertheless, you
6277*** may want to report the problem to your system manager and/or to
6278*** bug-libtool@gnu.org
6279
6280EOF
6281	  fi ;;
6282	esac
6283      fi
6284      break
6285    fi
6286  done
6287  IFS="$lt_save_ifs"
6288  MAGIC_CMD="$lt_save_MAGIC_CMD"
6289  ;;
6290esac
6291fi
6292
6293MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6294if test -n "$MAGIC_CMD"; then
6295  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6296echo "${ECHO_T}$MAGIC_CMD" >&6; }
6297else
6298  { echo "$as_me:$LINENO: result: no" >&5
6299echo "${ECHO_T}no" >&6; }
6300fi
6301
6302if test -z "$lt_cv_path_MAGIC_CMD"; then
6303  if test -n "$ac_tool_prefix"; then
6304    { echo "$as_me:$LINENO: checking for file" >&5
6305echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6306if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6307  echo $ECHO_N "(cached) $ECHO_C" >&6
6308else
6309  case $MAGIC_CMD in
6310[\\/*] |  ?:[\\/]*)
6311  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6312  ;;
6313*)
6314  lt_save_MAGIC_CMD="$MAGIC_CMD"
6315  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6316  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6317  for ac_dir in $ac_dummy; do
6318    IFS="$lt_save_ifs"
6319    test -z "$ac_dir" && ac_dir=.
6320    if test -f $ac_dir/file; then
6321      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6322      if test -n "$file_magic_test_file"; then
6323	case $deplibs_check_method in
6324	"file_magic "*)
6325	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6326	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6327	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6328	    $EGREP "$file_magic_regex" > /dev/null; then
6329	    :
6330	  else
6331	    cat <<EOF 1>&2
6332
6333*** Warning: the command libtool uses to detect shared libraries,
6334*** $file_magic_cmd, produces output that libtool cannot recognize.
6335*** The result is that libtool may fail to recognize shared libraries
6336*** as such.  This will affect the creation of libtool libraries that
6337*** depend on shared libraries, but programs linked with such libtool
6338*** libraries will work regardless of this problem.  Nevertheless, you
6339*** may want to report the problem to your system manager and/or to
6340*** bug-libtool@gnu.org
6341
6342EOF
6343	  fi ;;
6344	esac
6345      fi
6346      break
6347    fi
6348  done
6349  IFS="$lt_save_ifs"
6350  MAGIC_CMD="$lt_save_MAGIC_CMD"
6351  ;;
6352esac
6353fi
6354
6355MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6356if test -n "$MAGIC_CMD"; then
6357  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6358echo "${ECHO_T}$MAGIC_CMD" >&6; }
6359else
6360  { echo "$as_me:$LINENO: result: no" >&5
6361echo "${ECHO_T}no" >&6; }
6362fi
6363
6364  else
6365    MAGIC_CMD=:
6366  fi
6367fi
6368
6369  fi
6370  ;;
6371esac
6372
6373enable_dlopen=no
6374enable_win32_dll=no
6375
6376# Check whether --enable-libtool-lock was given.
6377if test "${enable_libtool_lock+set}" = set; then
6378  enableval=$enable_libtool_lock;
6379fi
6380
6381test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6382
6383
6384# Check whether --with-pic was given.
6385if test "${with_pic+set}" = set; then
6386  withval=$with_pic; pic_mode="$withval"
6387else
6388  pic_mode=default
6389fi
6390
6391test -z "$pic_mode" && pic_mode=default
6392
6393# Use C for the default configuration in the libtool script
6394tagname=
6395lt_save_CC="$CC"
6396ac_ext=c
6397ac_cpp='$CPP $CPPFLAGS'
6398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6400ac_compiler_gnu=$ac_cv_c_compiler_gnu
6401
6402
6403# Source file extension for C test sources.
6404ac_ext=c
6405
6406# Object file extension for compiled C test sources.
6407objext=o
6408objext=$objext
6409
6410# Code to be used in simple compile tests
6411lt_simple_compile_test_code="int some_variable = 0;"
6412
6413# Code to be used in simple link tests
6414lt_simple_link_test_code='int main(){return(0);}'
6415
6416
6417# If no C compiler was specified, use CC.
6418LTCC=${LTCC-"$CC"}
6419
6420# If no C compiler flags were specified, use CFLAGS.
6421LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6422
6423# Allow CC to be a program name with arguments.
6424compiler=$CC
6425
6426
6427# save warnings/boilerplate of simple test code
6428ac_outfile=conftest.$ac_objext
6429echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6430eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6431_lt_compiler_boilerplate=`cat conftest.err`
6432$rm conftest*
6433
6434ac_outfile=conftest.$ac_objext
6435echo "$lt_simple_link_test_code" >conftest.$ac_ext
6436eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6437_lt_linker_boilerplate=`cat conftest.err`
6438$rm conftest*
6439
6440
6441
6442lt_prog_compiler_no_builtin_flag=
6443
6444if test "$GCC" = yes; then
6445  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6446
6447
6448{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6449echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6450if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6451  echo $ECHO_N "(cached) $ECHO_C" >&6
6452else
6453  lt_cv_prog_compiler_rtti_exceptions=no
6454  ac_outfile=conftest.$ac_objext
6455   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6456   lt_compiler_flag="-fno-rtti -fno-exceptions"
6457   # Insert the option either (1) after the last *FLAGS variable, or
6458   # (2) before a word containing "conftest.", or (3) at the end.
6459   # Note that $ac_compile itself does not contain backslashes and begins
6460   # with a dollar sign (not a hyphen), so the echo should work correctly.
6461   # The option is referenced via a variable to avoid confusing sed.
6462   lt_compile=`echo "$ac_compile" | $SED \
6463   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6464   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6465   -e 's:$: $lt_compiler_flag:'`
6466   (eval echo "\"\$as_me:6466: $lt_compile\"" >&5)
6467   (eval "$lt_compile" 2>conftest.err)
6468   ac_status=$?
6469   cat conftest.err >&5
6470   echo "$as_me:6470: \$? = $ac_status" >&5
6471   if (exit $ac_status) && test -s "$ac_outfile"; then
6472     # The compiler can only warn and ignore the option if not recognized
6473     # So say no if there are warnings other than the usual output.
6474     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6475     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6476     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6477       lt_cv_prog_compiler_rtti_exceptions=yes
6478     fi
6479   fi
6480   $rm conftest*
6481
6482fi
6483{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6484echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6485
6486if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6487    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6488else
6489    :
6490fi
6491
6492fi
6493
6494lt_prog_compiler_wl=
6495lt_prog_compiler_pic=
6496lt_prog_compiler_static=
6497
6498{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6499echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6500
6501  if test "$GCC" = yes; then
6502    lt_prog_compiler_wl='-Wl,'
6503    lt_prog_compiler_static='-static'
6504
6505    case $host_os in
6506      aix*)
6507      # All AIX code is PIC.
6508      if test "$host_cpu" = ia64; then
6509	# AIX 5 now supports IA64 processor
6510	lt_prog_compiler_static='-Bstatic'
6511      fi
6512      ;;
6513
6514    amigaos*)
6515      # FIXME: we need at least 68020 code to build shared libraries, but
6516      # adding the `-m68020' flag to GCC prevents building anything better,
6517      # like `-m68040'.
6518      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6519      ;;
6520
6521    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6522      # PIC is the default for these OSes.
6523      ;;
6524
6525    mingw* | cygwin* | pw32* | os2*)
6526      # This hack is so that the source file can tell whether it is being
6527      # built for inclusion in a dll (and should export symbols for example).
6528      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6529      # (--disable-auto-import) libraries
6530      lt_prog_compiler_pic='-DDLL_EXPORT'
6531      ;;
6532
6533    darwin* | rhapsody*)
6534      # PIC is the default on this platform
6535      # Common symbols not allowed in MH_DYLIB files
6536      lt_prog_compiler_pic='-fno-common'
6537      ;;
6538
6539    interix[3-9]*)
6540      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6541      # Instead, we relocate shared libraries at runtime.
6542      ;;
6543
6544    msdosdjgpp*)
6545      # Just because we use GCC doesn't mean we suddenly get shared libraries
6546      # on systems that don't support them.
6547      lt_prog_compiler_can_build_shared=no
6548      enable_shared=no
6549      ;;
6550
6551    sysv4*MP*)
6552      if test -d /usr/nec; then
6553	lt_prog_compiler_pic=-Kconform_pic
6554      fi
6555      ;;
6556
6557    hpux*)
6558      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6559      # not for PA HP-UX.
6560      case $host_cpu in
6561      hppa*64*|ia64*)
6562	# +Z the default
6563	;;
6564      *)
6565	lt_prog_compiler_pic='-fPIC'
6566	;;
6567      esac
6568      ;;
6569
6570    *)
6571      lt_prog_compiler_pic='-fPIC'
6572      ;;
6573    esac
6574  else
6575    # PORTME Check for flag to pass linker flags through the system compiler.
6576    case $host_os in
6577    aix*)
6578      lt_prog_compiler_wl='-Wl,'
6579      if test "$host_cpu" = ia64; then
6580	# AIX 5 now supports IA64 processor
6581	lt_prog_compiler_static='-Bstatic'
6582      else
6583	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6584      fi
6585      ;;
6586      darwin*)
6587        # PIC is the default on this platform
6588        # Common symbols not allowed in MH_DYLIB files
6589       case $cc_basename in
6590         xlc*)
6591         lt_prog_compiler_pic='-qnocommon'
6592         lt_prog_compiler_wl='-Wl,'
6593         ;;
6594       esac
6595       ;;
6596
6597    mingw* | cygwin* | pw32* | os2*)
6598      # This hack is so that the source file can tell whether it is being
6599      # built for inclusion in a dll (and should export symbols for example).
6600      lt_prog_compiler_pic='-DDLL_EXPORT'
6601      ;;
6602
6603    hpux9* | hpux10* | hpux11*)
6604      lt_prog_compiler_wl='-Wl,'
6605      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6606      # not for PA HP-UX.
6607      case $host_cpu in
6608      hppa*64*|ia64*)
6609	# +Z the default
6610	;;
6611      *)
6612	lt_prog_compiler_pic='+Z'
6613	;;
6614      esac
6615      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6616      lt_prog_compiler_static='${wl}-a ${wl}archive'
6617      ;;
6618
6619    irix5* | irix6* | nonstopux*)
6620      lt_prog_compiler_wl='-Wl,'
6621      # PIC (with -KPIC) is the default.
6622      lt_prog_compiler_static='-non_shared'
6623      ;;
6624
6625    newsos6)
6626      lt_prog_compiler_pic='-KPIC'
6627      lt_prog_compiler_static='-Bstatic'
6628      ;;
6629
6630    linux* | k*bsd*-gnu)
6631      case $cc_basename in
6632      icc* | ecc*)
6633	lt_prog_compiler_wl='-Wl,'
6634	lt_prog_compiler_pic='-KPIC'
6635	lt_prog_compiler_static='-static'
6636        ;;
6637      pgcc* | pgf77* | pgf90* | pgf95*)
6638        # Portland Group compilers (*not* the Pentium gcc compiler,
6639	# which looks to be a dead project)
6640	lt_prog_compiler_wl='-Wl,'
6641	lt_prog_compiler_pic='-fpic'
6642	lt_prog_compiler_static='-Bstatic'
6643        ;;
6644      ccc*)
6645        lt_prog_compiler_wl='-Wl,'
6646        # All Alpha code is PIC.
6647        lt_prog_compiler_static='-non_shared'
6648        ;;
6649      *)
6650        case `$CC -V 2>&1 | sed 5q` in
6651	*Sun\ C*)
6652	  # Sun C 5.9
6653	  lt_prog_compiler_pic='-KPIC'
6654	  lt_prog_compiler_static='-Bstatic'
6655	  lt_prog_compiler_wl='-Wl,'
6656	  ;;
6657	*Sun\ F*)
6658	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
6659	  lt_prog_compiler_pic='-KPIC'
6660	  lt_prog_compiler_static='-Bstatic'
6661	  lt_prog_compiler_wl=''
6662	  ;;
6663	esac
6664	;;
6665      esac
6666      ;;
6667
6668    osf3* | osf4* | osf5*)
6669      lt_prog_compiler_wl='-Wl,'
6670      # All OSF/1 code is PIC.
6671      lt_prog_compiler_static='-non_shared'
6672      ;;
6673
6674    rdos*)
6675      lt_prog_compiler_static='-non_shared'
6676      ;;
6677
6678    solaris*)
6679      lt_prog_compiler_pic='-KPIC'
6680      lt_prog_compiler_static='-Bstatic'
6681      case $cc_basename in
6682      f77* | f90* | f95*)
6683	lt_prog_compiler_wl='-Qoption ld ';;
6684      *)
6685	lt_prog_compiler_wl='-Wl,';;
6686      esac
6687      ;;
6688
6689    sunos4*)
6690      lt_prog_compiler_wl='-Qoption ld '
6691      lt_prog_compiler_pic='-PIC'
6692      lt_prog_compiler_static='-Bstatic'
6693      ;;
6694
6695    sysv4 | sysv4.2uw2* | sysv4.3*)
6696      lt_prog_compiler_wl='-Wl,'
6697      lt_prog_compiler_pic='-KPIC'
6698      lt_prog_compiler_static='-Bstatic'
6699      ;;
6700
6701    sysv4*MP*)
6702      if test -d /usr/nec ;then
6703	lt_prog_compiler_pic='-Kconform_pic'
6704	lt_prog_compiler_static='-Bstatic'
6705      fi
6706      ;;
6707
6708    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6709      lt_prog_compiler_wl='-Wl,'
6710      lt_prog_compiler_pic='-KPIC'
6711      lt_prog_compiler_static='-Bstatic'
6712      ;;
6713
6714    unicos*)
6715      lt_prog_compiler_wl='-Wl,'
6716      lt_prog_compiler_can_build_shared=no
6717      ;;
6718
6719    uts4*)
6720      lt_prog_compiler_pic='-pic'
6721      lt_prog_compiler_static='-Bstatic'
6722      ;;
6723
6724    *)
6725      lt_prog_compiler_can_build_shared=no
6726      ;;
6727    esac
6728  fi
6729
6730{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6731echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6732
6733#
6734# Check to make sure the PIC flag actually works.
6735#
6736if test -n "$lt_prog_compiler_pic"; then
6737
6738{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6739echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6740if test "${lt_prog_compiler_pic_works+set}" = set; then
6741  echo $ECHO_N "(cached) $ECHO_C" >&6
6742else
6743  lt_prog_compiler_pic_works=no
6744  ac_outfile=conftest.$ac_objext
6745   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6746   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6747   # Insert the option either (1) after the last *FLAGS variable, or
6748   # (2) before a word containing "conftest.", or (3) at the end.
6749   # Note that $ac_compile itself does not contain backslashes and begins
6750   # with a dollar sign (not a hyphen), so the echo should work correctly.
6751   # The option is referenced via a variable to avoid confusing sed.
6752   lt_compile=`echo "$ac_compile" | $SED \
6753   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6754   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6755   -e 's:$: $lt_compiler_flag:'`
6756   (eval echo "\"\$as_me:6756: $lt_compile\"" >&5)
6757   (eval "$lt_compile" 2>conftest.err)
6758   ac_status=$?
6759   cat conftest.err >&5
6760   echo "$as_me:6760: \$? = $ac_status" >&5
6761   if (exit $ac_status) && test -s "$ac_outfile"; then
6762     # The compiler can only warn and ignore the option if not recognized
6763     # So say no if there are warnings other than the usual output.
6764     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6765     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6766     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6767       lt_prog_compiler_pic_works=yes
6768     fi
6769   fi
6770   $rm conftest*
6771
6772fi
6773{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6774echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6775
6776if test x"$lt_prog_compiler_pic_works" = xyes; then
6777    case $lt_prog_compiler_pic in
6778     "" | " "*) ;;
6779     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6780     esac
6781else
6782    lt_prog_compiler_pic=
6783     lt_prog_compiler_can_build_shared=no
6784fi
6785
6786fi
6787case $host_os in
6788  # For platforms which do not support PIC, -DPIC is meaningless:
6789  *djgpp*)
6790    lt_prog_compiler_pic=
6791    ;;
6792  *)
6793    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6794    ;;
6795esac
6796
6797#
6798# Check to make sure the static flag actually works.
6799#
6800wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6801{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6802echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
6803if test "${lt_prog_compiler_static_works+set}" = set; then
6804  echo $ECHO_N "(cached) $ECHO_C" >&6
6805else
6806  lt_prog_compiler_static_works=no
6807   save_LDFLAGS="$LDFLAGS"
6808   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6809   echo "$lt_simple_link_test_code" > conftest.$ac_ext
6810   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6811     # The linker can only warn and ignore the option if not recognized
6812     # So say no if there are warnings
6813     if test -s conftest.err; then
6814       # Append any errors to the config.log.
6815       cat conftest.err 1>&5
6816       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6817       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6818       if diff conftest.exp conftest.er2 >/dev/null; then
6819         lt_prog_compiler_static_works=yes
6820       fi
6821     else
6822       lt_prog_compiler_static_works=yes
6823     fi
6824   fi
6825   $rm conftest*
6826   LDFLAGS="$save_LDFLAGS"
6827
6828fi
6829{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6830echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6831
6832if test x"$lt_prog_compiler_static_works" = xyes; then
6833    :
6834else
6835    lt_prog_compiler_static=
6836fi
6837
6838
6839{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6840echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6841if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6842  echo $ECHO_N "(cached) $ECHO_C" >&6
6843else
6844  lt_cv_prog_compiler_c_o=no
6845   $rm -r conftest 2>/dev/null
6846   mkdir conftest
6847   cd conftest
6848   mkdir out
6849   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6850
6851   lt_compiler_flag="-o out/conftest2.$ac_objext"
6852   # Insert the option either (1) after the last *FLAGS variable, or
6853   # (2) before a word containing "conftest.", or (3) at the end.
6854   # Note that $ac_compile itself does not contain backslashes and begins
6855   # with a dollar sign (not a hyphen), so the echo should work correctly.
6856   lt_compile=`echo "$ac_compile" | $SED \
6857   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6858   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6859   -e 's:$: $lt_compiler_flag:'`
6860   (eval echo "\"\$as_me:6860: $lt_compile\"" >&5)
6861   (eval "$lt_compile" 2>out/conftest.err)
6862   ac_status=$?
6863   cat out/conftest.err >&5
6864   echo "$as_me:6864: \$? = $ac_status" >&5
6865   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6866   then
6867     # The compiler can only warn and ignore the option if not recognized
6868     # So say no if there are warnings
6869     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6870     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6871     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6872       lt_cv_prog_compiler_c_o=yes
6873     fi
6874   fi
6875   chmod u+w . 2>&5
6876   $rm conftest*
6877   # SGI C++ compiler will create directory out/ii_files/ for
6878   # template instantiation
6879   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6880   $rm out/* && rmdir out
6881   cd ..
6882   rmdir conftest
6883   $rm conftest*
6884
6885fi
6886{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6887echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
6888
6889
6890hard_links="nottested"
6891if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6892  # do not overwrite the value of need_locks provided by the user
6893  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6894echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6895  hard_links=yes
6896  $rm conftest*
6897  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6898  touch conftest.a
6899  ln conftest.a conftest.b 2>&5 || hard_links=no
6900  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6901  { echo "$as_me:$LINENO: result: $hard_links" >&5
6902echo "${ECHO_T}$hard_links" >&6; }
6903  if test "$hard_links" = no; then
6904    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6905echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6906    need_locks=warn
6907  fi
6908else
6909  need_locks=no
6910fi
6911
6912{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6913echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6914
6915  runpath_var=
6916  allow_undefined_flag=
6917  enable_shared_with_static_runtimes=no
6918  archive_cmds=
6919  archive_expsym_cmds=
6920  old_archive_From_new_cmds=
6921  old_archive_from_expsyms_cmds=
6922  export_dynamic_flag_spec=
6923  whole_archive_flag_spec=
6924  thread_safe_flag_spec=
6925  hardcode_libdir_flag_spec=
6926  hardcode_libdir_flag_spec_ld=
6927  hardcode_libdir_separator=
6928  hardcode_direct=no
6929  hardcode_minus_L=no
6930  hardcode_shlibpath_var=unsupported
6931  link_all_deplibs=unknown
6932  hardcode_automatic=no
6933  module_cmds=
6934  module_expsym_cmds=
6935  always_export_symbols=no
6936  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6937  # include_expsyms should be a list of space-separated symbols to be *always*
6938  # included in the symbol list
6939  include_expsyms=
6940  # exclude_expsyms can be an extended regexp of symbols to exclude
6941  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6942  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6943  # as well as any symbol that contains `d'.
6944  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6945  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6946  # platforms (ab)use it in PIC code, but their linkers get confused if
6947  # the symbol is explicitly referenced.  Since portable code cannot
6948  # rely on this symbol name, it's probably fine to never include it in
6949  # preloaded symbol tables.
6950  extract_expsyms_cmds=
6951  # Just being paranoid about ensuring that cc_basename is set.
6952  for cc_temp in $compiler""; do
6953  case $cc_temp in
6954    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6955    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6956    \-*) ;;
6957    *) break;;
6958  esac
6959done
6960cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6961
6962  case $host_os in
6963  cygwin* | mingw* | pw32*)
6964    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6965    # When not using gcc, we currently assume that we are using
6966    # Microsoft Visual C++.
6967    if test "$GCC" != yes; then
6968      with_gnu_ld=no
6969    fi
6970    ;;
6971  interix*)
6972    # we just hope/assume this is gcc and not c89 (= MSVC++)
6973    with_gnu_ld=yes
6974    ;;
6975  openbsd*)
6976    with_gnu_ld=no
6977    ;;
6978  esac
6979
6980  ld_shlibs=yes
6981  if test "$with_gnu_ld" = yes; then
6982    # If archive_cmds runs LD, not CC, wlarc should be empty
6983    wlarc='${wl}'
6984
6985    # Set some defaults for GNU ld with shared library support. These
6986    # are reset later if shared libraries are not supported. Putting them
6987    # here allows them to be overridden if necessary.
6988    runpath_var=LD_RUN_PATH
6989    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6990    export_dynamic_flag_spec='${wl}--export-dynamic'
6991    # ancient GNU ld didn't support --whole-archive et. al.
6992    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6993	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6994      else
6995  	whole_archive_flag_spec=
6996    fi
6997    supports_anon_versioning=no
6998    case `$LD -v 2>/dev/null` in
6999      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7000      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7001      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7002      *\ 2.11.*) ;; # other 2.11 versions
7003      *) supports_anon_versioning=yes ;;
7004    esac
7005
7006    # See if GNU ld supports shared libraries.
7007    case $host_os in
7008    aix3* | aix4* | aix5*)
7009      # On AIX/PPC, the GNU linker is very broken
7010      if test "$host_cpu" != ia64; then
7011	ld_shlibs=no
7012	cat <<EOF 1>&2
7013
7014*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7015*** to be unable to reliably create shared libraries on AIX.
7016*** Therefore, libtool is disabling shared libraries support.  If you
7017*** really care for shared libraries, you may want to modify your PATH
7018*** so that a non-GNU linker is found, and then restart.
7019
7020EOF
7021      fi
7022      ;;
7023
7024    amigaos*)
7025      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)'
7026      hardcode_libdir_flag_spec='-L$libdir'
7027      hardcode_minus_L=yes
7028
7029      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7030      # that the semantics of dynamic libraries on AmigaOS, at least up
7031      # to version 4, is to share data among multiple programs linked
7032      # with the same dynamic library.  Since this doesn't match the
7033      # behavior of shared libraries on other platforms, we can't use
7034      # them.
7035      ld_shlibs=no
7036      ;;
7037
7038    beos*)
7039      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7040	allow_undefined_flag=unsupported
7041	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7042	# support --undefined.  This deserves some investigation.  FIXME
7043	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7044      else
7045	ld_shlibs=no
7046      fi
7047      ;;
7048
7049    cygwin* | mingw* | pw32*)
7050      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7051      # as there is no search path for DLLs.
7052      hardcode_libdir_flag_spec='-L$libdir'
7053      allow_undefined_flag=unsupported
7054      always_export_symbols=no
7055      enable_shared_with_static_runtimes=yes
7056      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7057
7058      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7059        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7060	# If the export-symbols file already is a .def file (1st line
7061	# is EXPORTS), use it as is; otherwise, prepend...
7062	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7063	  cp $export_symbols $output_objdir/$soname.def;
7064	else
7065	  echo EXPORTS > $output_objdir/$soname.def;
7066	  cat $export_symbols >> $output_objdir/$soname.def;
7067	fi~
7068	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7069      else
7070	ld_shlibs=no
7071      fi
7072      ;;
7073
7074    interix[3-9]*)
7075      hardcode_direct=no
7076      hardcode_shlibpath_var=no
7077      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7078      export_dynamic_flag_spec='${wl}-E'
7079      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7080      # Instead, shared libraries are loaded at an image base (0x10000000 by
7081      # default) and relocated if they conflict, which is a slow very memory
7082      # consuming and fragmenting process.  To avoid this, we pick a random,
7083      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7084      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7085      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7086      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'
7087      ;;
7088
7089    gnu* | linux* | k*bsd*-gnu)
7090      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7091	tmp_addflag=
7092	case $cc_basename,$host_cpu in
7093	pgcc*)				# Portland Group C compiler
7094	  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'
7095	  tmp_addflag=' $pic_flag'
7096	  ;;
7097	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7098	  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'
7099	  tmp_addflag=' $pic_flag -Mnomain' ;;
7100	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7101	  tmp_addflag=' -i_dynamic' ;;
7102	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7103	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7104	ifc* | ifort*)			# Intel Fortran compiler
7105	  tmp_addflag=' -nofor_main' ;;
7106	esac
7107	case `$CC -V 2>&1 | sed 5q` in
7108	*Sun\ C*)			# Sun C 5.9
7109	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7110	  tmp_sharedflag='-G' ;;
7111	*Sun\ F*)			# Sun Fortran 8.3
7112	  tmp_sharedflag='-G' ;;
7113	*)
7114	  tmp_sharedflag='-shared' ;;
7115	esac
7116	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7117
7118	if test $supports_anon_versioning = yes; then
7119	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7120  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7121  $echo "local: *; };" >> $output_objdir/$libname.ver~
7122	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7123	fi
7124      else
7125	ld_shlibs=no
7126      fi
7127      ;;
7128
7129    netbsd*)
7130      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7131	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7132	wlarc=
7133      else
7134	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7135	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7136      fi
7137      ;;
7138
7139    solaris*)
7140      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7141	ld_shlibs=no
7142	cat <<EOF 1>&2
7143
7144*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7145*** create shared libraries on Solaris systems.  Therefore, libtool
7146*** is disabling shared libraries support.  We urge you to upgrade GNU
7147*** binutils to release 2.9.1 or newer.  Another option is to modify
7148*** your PATH or compiler configuration so that the native linker is
7149*** used, and then restart.
7150
7151EOF
7152      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7153	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7154	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7155      else
7156	ld_shlibs=no
7157      fi
7158      ;;
7159
7160    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7161      case `$LD -v 2>&1` in
7162        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7163	ld_shlibs=no
7164	cat <<_LT_EOF 1>&2
7165
7166*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7167*** reliably create shared libraries on SCO systems.  Therefore, libtool
7168*** is disabling shared libraries support.  We urge you to upgrade GNU
7169*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7170*** your PATH or compiler configuration so that the native linker is
7171*** used, and then restart.
7172
7173_LT_EOF
7174	;;
7175	*)
7176	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7177	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7178	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7179	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7180	  else
7181	    ld_shlibs=no
7182	  fi
7183	;;
7184      esac
7185      ;;
7186
7187    sunos4*)
7188      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7189      wlarc=
7190      hardcode_direct=yes
7191      hardcode_shlibpath_var=no
7192      ;;
7193
7194    *)
7195      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7196	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7197	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7198      else
7199	ld_shlibs=no
7200      fi
7201      ;;
7202    esac
7203
7204    if test "$ld_shlibs" = no; then
7205      runpath_var=
7206      hardcode_libdir_flag_spec=
7207      export_dynamic_flag_spec=
7208      whole_archive_flag_spec=
7209    fi
7210  else
7211    # PORTME fill in a description of your system's linker (not GNU ld)
7212    case $host_os in
7213    aix3*)
7214      allow_undefined_flag=unsupported
7215      always_export_symbols=yes
7216      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'
7217      # Note: this linker hardcodes the directories in LIBPATH if there
7218      # are no directories specified by -L.
7219      hardcode_minus_L=yes
7220      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7221	# Neither direct hardcoding nor static linking is supported with a
7222	# broken collect2.
7223	hardcode_direct=unsupported
7224      fi
7225      ;;
7226
7227    aix4* | aix5*)
7228      if test "$host_cpu" = ia64; then
7229	# On IA64, the linker does run time linking by default, so we don't
7230	# have to do anything special.
7231	aix_use_runtimelinking=no
7232	exp_sym_flag='-Bexport'
7233	no_entry_flag=""
7234      else
7235	# If we're using GNU nm, then we don't want the "-C" option.
7236	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7237	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7238	  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'
7239	else
7240	  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'
7241	fi
7242	aix_use_runtimelinking=no
7243
7244	# Test if we are trying to use run time linking or normal
7245	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7246	# need to do runtime linking.
7247	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7248	  for ld_flag in $LDFLAGS; do
7249  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7250  	    aix_use_runtimelinking=yes
7251  	    break
7252  	  fi
7253	  done
7254	  ;;
7255	esac
7256
7257	exp_sym_flag='-bexport'
7258	no_entry_flag='-bnoentry'
7259      fi
7260
7261      # When large executables or shared objects are built, AIX ld can
7262      # have problems creating the table of contents.  If linking a library
7263      # or program results in "error TOC overflow" add -mminimal-toc to
7264      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7265      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7266
7267      archive_cmds=''
7268      hardcode_direct=yes
7269      hardcode_libdir_separator=':'
7270      link_all_deplibs=yes
7271
7272      if test "$GCC" = yes; then
7273	case $host_os in aix4.[012]|aix4.[012].*)
7274	# We only want to do this on AIX 4.2 and lower, the check
7275	# below for broken collect2 doesn't work under 4.3+
7276	  collect2name=`${CC} -print-prog-name=collect2`
7277	  if test -f "$collect2name" && \
7278  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7279	  then
7280  	  # We have reworked collect2
7281  	  :
7282	  else
7283  	  # We have old collect2
7284  	  hardcode_direct=unsupported
7285  	  # It fails to find uninstalled libraries when the uninstalled
7286  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7287  	  # to unsupported forces relinking
7288  	  hardcode_minus_L=yes
7289  	  hardcode_libdir_flag_spec='-L$libdir'
7290  	  hardcode_libdir_separator=
7291	  fi
7292	  ;;
7293	esac
7294	shared_flag='-shared'
7295	if test "$aix_use_runtimelinking" = yes; then
7296	  shared_flag="$shared_flag "'${wl}-G'
7297	fi
7298      else
7299	# not using gcc
7300	if test "$host_cpu" = ia64; then
7301  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7302  	# chokes on -Wl,-G. The following line is correct:
7303	  shared_flag='-G'
7304	else
7305	  if test "$aix_use_runtimelinking" = yes; then
7306	    shared_flag='${wl}-G'
7307	  else
7308	    shared_flag='${wl}-bM:SRE'
7309	  fi
7310	fi
7311      fi
7312
7313      # It seems that -bexpall does not export symbols beginning with
7314      # underscore (_), so it is better to generate a list of symbols to export.
7315      always_export_symbols=yes
7316      if test "$aix_use_runtimelinking" = yes; then
7317	# Warning - without using the other runtime loading flags (-brtl),
7318	# -berok will link without error, but may produce a broken library.
7319	allow_undefined_flag='-berok'
7320       # Determine the default libpath from the value encoded in an empty executable.
7321       cat >conftest.$ac_ext <<_ACEOF
7322/* confdefs.h.  */
7323_ACEOF
7324cat confdefs.h >>conftest.$ac_ext
7325cat >>conftest.$ac_ext <<_ACEOF
7326/* end confdefs.h.  */
7327
7328int
7329main ()
7330{
7331
7332  ;
7333  return 0;
7334}
7335_ACEOF
7336rm -f conftest.$ac_objext conftest$ac_exeext
7337if { (ac_try="$ac_link"
7338case "(($ac_try" in
7339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7340  *) ac_try_echo=$ac_try;;
7341esac
7342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7343  (eval "$ac_link") 2>conftest.er1
7344  ac_status=$?
7345  grep -v '^ *+' conftest.er1 >conftest.err
7346  rm -f conftest.er1
7347  cat conftest.err >&5
7348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349  (exit $ac_status); } && {
7350	 test -z "$ac_c_werror_flag" ||
7351	 test ! -s conftest.err
7352       } && test -s conftest$ac_exeext &&
7353       $as_test_x conftest$ac_exeext; then
7354
7355lt_aix_libpath_sed='
7356    /Import File Strings/,/^$/ {
7357	/^0/ {
7358	    s/^0  *\(.*\)$/\1/
7359	    p
7360	}
7361    }'
7362aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7363# Check for a 64-bit object if we didn't find anything.
7364if test -z "$aix_libpath"; then
7365  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7366fi
7367else
7368  echo "$as_me: failed program was:" >&5
7369sed 's/^/| /' conftest.$ac_ext >&5
7370
7371
7372fi
7373
7374rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7375      conftest$ac_exeext conftest.$ac_ext
7376if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7377
7378       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7379	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"
7380       else
7381	if test "$host_cpu" = ia64; then
7382	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7383	  allow_undefined_flag="-z nodefs"
7384	  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"
7385	else
7386	 # Determine the default libpath from the value encoded in an empty executable.
7387	 cat >conftest.$ac_ext <<_ACEOF
7388/* confdefs.h.  */
7389_ACEOF
7390cat confdefs.h >>conftest.$ac_ext
7391cat >>conftest.$ac_ext <<_ACEOF
7392/* end confdefs.h.  */
7393
7394int
7395main ()
7396{
7397
7398  ;
7399  return 0;
7400}
7401_ACEOF
7402rm -f conftest.$ac_objext conftest$ac_exeext
7403if { (ac_try="$ac_link"
7404case "(($ac_try" in
7405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7406  *) ac_try_echo=$ac_try;;
7407esac
7408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7409  (eval "$ac_link") 2>conftest.er1
7410  ac_status=$?
7411  grep -v '^ *+' conftest.er1 >conftest.err
7412  rm -f conftest.er1
7413  cat conftest.err >&5
7414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415  (exit $ac_status); } && {
7416	 test -z "$ac_c_werror_flag" ||
7417	 test ! -s conftest.err
7418       } && test -s conftest$ac_exeext &&
7419       $as_test_x conftest$ac_exeext; then
7420
7421lt_aix_libpath_sed='
7422    /Import File Strings/,/^$/ {
7423	/^0/ {
7424	    s/^0  *\(.*\)$/\1/
7425	    p
7426	}
7427    }'
7428aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7429# Check for a 64-bit object if we didn't find anything.
7430if test -z "$aix_libpath"; then
7431  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7432fi
7433else
7434  echo "$as_me: failed program was:" >&5
7435sed 's/^/| /' conftest.$ac_ext >&5
7436
7437
7438fi
7439
7440rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7441      conftest$ac_exeext conftest.$ac_ext
7442if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7443
7444	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7445	  # Warning - without using the other run time loading flags,
7446	  # -berok will link without error, but may produce a broken library.
7447	  no_undefined_flag=' ${wl}-bernotok'
7448	  allow_undefined_flag=' ${wl}-berok'
7449	  # Exported symbols can be pulled into shared objects from archives
7450	  whole_archive_flag_spec='$convenience'
7451	  archive_cmds_need_lc=yes
7452	  # This is similar to how AIX traditionally builds its shared libraries.
7453	  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'
7454	fi
7455      fi
7456      ;;
7457
7458    amigaos*)
7459      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)'
7460      hardcode_libdir_flag_spec='-L$libdir'
7461      hardcode_minus_L=yes
7462      # see comment about different semantics on the GNU ld section
7463      ld_shlibs=no
7464      ;;
7465
7466    bsdi[45]*)
7467      export_dynamic_flag_spec=-rdynamic
7468      ;;
7469
7470    cygwin* | mingw* | pw32*)
7471      # When not using gcc, we currently assume that we are using
7472      # Microsoft Visual C++.
7473      # hardcode_libdir_flag_spec is actually meaningless, as there is
7474      # no search path for DLLs.
7475      hardcode_libdir_flag_spec=' '
7476      allow_undefined_flag=unsupported
7477      # Tell ltmain to make .lib files, not .a files.
7478      libext=lib
7479      # Tell ltmain to make .dll files, not .so files.
7480      shrext_cmds=".dll"
7481      # FIXME: Setting linknames here is a bad hack.
7482      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7483      # The linker will automatically build a .lib file if we build a DLL.
7484      old_archive_From_new_cmds='true'
7485      # FIXME: Should let the user specify the lib program.
7486      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7487      fix_srcfile_path='`cygpath -w "$srcfile"`'
7488      enable_shared_with_static_runtimes=yes
7489      ;;
7490
7491    darwin* | rhapsody*)
7492      case $host_os in
7493        rhapsody* | darwin1.[012])
7494         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7495         ;;
7496       *) # Darwin 1.3 on
7497         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7498           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7499         else
7500           case ${MACOSX_DEPLOYMENT_TARGET} in
7501             10.[012])
7502               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7503               ;;
7504             10.*)
7505               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7506               ;;
7507           esac
7508         fi
7509         ;;
7510      esac
7511      archive_cmds_need_lc=no
7512      hardcode_direct=no
7513      hardcode_automatic=yes
7514      hardcode_shlibpath_var=unsupported
7515      whole_archive_flag_spec=''
7516      link_all_deplibs=yes
7517    if test "$GCC" = yes ; then
7518    	output_verbose_link_cmd='echo'
7519        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7520      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7521      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7522      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}'
7523      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}'
7524    else
7525      case $cc_basename in
7526        xlc*)
7527         output_verbose_link_cmd='echo'
7528         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
7529         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7530          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7531         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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7532          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}'
7533          ;;
7534       *)
7535         ld_shlibs=no
7536          ;;
7537      esac
7538    fi
7539      ;;
7540
7541    dgux*)
7542      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7543      hardcode_libdir_flag_spec='-L$libdir'
7544      hardcode_shlibpath_var=no
7545      ;;
7546
7547    freebsd1*)
7548      ld_shlibs=no
7549      ;;
7550
7551    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7552    # support.  Future versions do this automatically, but an explicit c++rt0.o
7553    # does not break anything, and helps significantly (at the cost of a little
7554    # extra space).
7555    freebsd2.2*)
7556      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7557      hardcode_libdir_flag_spec='-R$libdir'
7558      hardcode_direct=yes
7559      hardcode_shlibpath_var=no
7560      ;;
7561
7562    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7563    freebsd2*)
7564      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7565      hardcode_direct=yes
7566      hardcode_minus_L=yes
7567      hardcode_shlibpath_var=no
7568      ;;
7569
7570    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7571    freebsd* | dragonfly*)
7572      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7573      hardcode_libdir_flag_spec='-R$libdir'
7574      hardcode_direct=yes
7575      hardcode_shlibpath_var=no
7576      ;;
7577
7578    hpux9*)
7579      if test "$GCC" = yes; then
7580	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'
7581      else
7582	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'
7583      fi
7584      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7585      hardcode_libdir_separator=:
7586      hardcode_direct=yes
7587
7588      # hardcode_minus_L: Not really in the search PATH,
7589      # but as the default location of the library.
7590      hardcode_minus_L=yes
7591      export_dynamic_flag_spec='${wl}-E'
7592      ;;
7593
7594    hpux10*)
7595      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7596	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7597      else
7598	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7599      fi
7600      if test "$with_gnu_ld" = no; then
7601	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7602	hardcode_libdir_separator=:
7603
7604	hardcode_direct=yes
7605	export_dynamic_flag_spec='${wl}-E'
7606
7607	# hardcode_minus_L: Not really in the search PATH,
7608	# but as the default location of the library.
7609	hardcode_minus_L=yes
7610      fi
7611      ;;
7612
7613    hpux11*)
7614      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7615	case $host_cpu in
7616	hppa*64*)
7617	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7618	  ;;
7619	ia64*)
7620	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7621	  ;;
7622	*)
7623	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7624	  ;;
7625	esac
7626      else
7627	case $host_cpu in
7628	hppa*64*)
7629	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7630	  ;;
7631	ia64*)
7632	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7633	  ;;
7634	*)
7635	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7636	  ;;
7637	esac
7638      fi
7639      if test "$with_gnu_ld" = no; then
7640	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7641	hardcode_libdir_separator=:
7642
7643	case $host_cpu in
7644	hppa*64*|ia64*)
7645	  hardcode_libdir_flag_spec_ld='+b $libdir'
7646	  hardcode_direct=no
7647	  hardcode_shlibpath_var=no
7648	  ;;
7649	*)
7650	  hardcode_direct=yes
7651	  export_dynamic_flag_spec='${wl}-E'
7652
7653	  # hardcode_minus_L: Not really in the search PATH,
7654	  # but as the default location of the library.
7655	  hardcode_minus_L=yes
7656	  ;;
7657	esac
7658      fi
7659      ;;
7660
7661    irix5* | irix6* | nonstopux*)
7662      if test "$GCC" = yes; then
7663	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'
7664      else
7665	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'
7666	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7667      fi
7668      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7669      hardcode_libdir_separator=:
7670      link_all_deplibs=yes
7671      ;;
7672
7673    netbsd*)
7674      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7675	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7676      else
7677	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7678      fi
7679      hardcode_libdir_flag_spec='-R$libdir'
7680      hardcode_direct=yes
7681      hardcode_shlibpath_var=no
7682      ;;
7683
7684    newsos6)
7685      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7686      hardcode_direct=yes
7687      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7688      hardcode_libdir_separator=:
7689      hardcode_shlibpath_var=no
7690      ;;
7691
7692    openbsd*)
7693      if test -f /usr/libexec/ld.so; then
7694	hardcode_direct=yes
7695	hardcode_shlibpath_var=no
7696	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7697	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7698	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7699	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7700	  export_dynamic_flag_spec='${wl}-E'
7701	else
7702	  case $host_os in
7703	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7704	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7705	     hardcode_libdir_flag_spec='-R$libdir'
7706	     ;;
7707	   *)
7708	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7709	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7710	     ;;
7711	  esac
7712        fi
7713      else
7714	ld_shlibs=no
7715      fi
7716      ;;
7717
7718    os2*)
7719      hardcode_libdir_flag_spec='-L$libdir'
7720      hardcode_minus_L=yes
7721      allow_undefined_flag=unsupported
7722      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'
7723      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7724      ;;
7725
7726    osf3*)
7727      if test "$GCC" = yes; then
7728	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7729	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'
7730      else
7731	allow_undefined_flag=' -expect_unresolved \*'
7732	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'
7733      fi
7734      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7735      hardcode_libdir_separator=:
7736      ;;
7737
7738    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7739      if test "$GCC" = yes; then
7740	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7741	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'
7742	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7743      else
7744	allow_undefined_flag=' -expect_unresolved \*'
7745	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'
7746	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7747	$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'
7748
7749	# Both c and cxx compiler support -rpath directly
7750	hardcode_libdir_flag_spec='-rpath $libdir'
7751      fi
7752      hardcode_libdir_separator=:
7753      ;;
7754
7755    solaris*)
7756      no_undefined_flag=' -z text'
7757      if test "$GCC" = yes; then
7758	wlarc='${wl}'
7759	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7760	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7761	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7762      else
7763	wlarc=''
7764	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7765	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7766  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7767      fi
7768      hardcode_libdir_flag_spec='-R$libdir'
7769      hardcode_shlibpath_var=no
7770      case $host_os in
7771      solaris2.[0-5] | solaris2.[0-5].*) ;;
7772      *)
7773	# The compiler driver will combine and reorder linker options,
7774	# but understands `-z linker_flag'.  GCC discards it without `$wl',
7775	# but is careful enough not to reorder.
7776 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7777	if test "$GCC" = yes; then
7778	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7779	else
7780	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7781	fi
7782	;;
7783      esac
7784      link_all_deplibs=yes
7785      ;;
7786
7787    sunos4*)
7788      if test "x$host_vendor" = xsequent; then
7789	# Use $CC to link under sequent, because it throws in some extra .o
7790	# files that make .init and .fini sections work.
7791	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7792      else
7793	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7794      fi
7795      hardcode_libdir_flag_spec='-L$libdir'
7796      hardcode_direct=yes
7797      hardcode_minus_L=yes
7798      hardcode_shlibpath_var=no
7799      ;;
7800
7801    sysv4)
7802      case $host_vendor in
7803	sni)
7804	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7805	  hardcode_direct=yes # is this really true???
7806	;;
7807	siemens)
7808	  ## LD is ld it makes a PLAMLIB
7809	  ## CC just makes a GrossModule.
7810	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7811	  reload_cmds='$CC -r -o $output$reload_objs'
7812	  hardcode_direct=no
7813        ;;
7814	motorola)
7815	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7816	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7817	;;
7818      esac
7819      runpath_var='LD_RUN_PATH'
7820      hardcode_shlibpath_var=no
7821      ;;
7822
7823    sysv4.3*)
7824      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7825      hardcode_shlibpath_var=no
7826      export_dynamic_flag_spec='-Bexport'
7827      ;;
7828
7829    sysv4*MP*)
7830      if test -d /usr/nec; then
7831	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7832	hardcode_shlibpath_var=no
7833	runpath_var=LD_RUN_PATH
7834	hardcode_runpath_var=yes
7835	ld_shlibs=yes
7836      fi
7837      ;;
7838
7839    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7840      no_undefined_flag='${wl}-z,text'
7841      archive_cmds_need_lc=no
7842      hardcode_shlibpath_var=no
7843      runpath_var='LD_RUN_PATH'
7844
7845      if test "$GCC" = yes; then
7846	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7847	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7848      else
7849	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7850	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7851      fi
7852      ;;
7853
7854    sysv5* | sco3.2v5* | sco5v6*)
7855      # Note: We can NOT use -z defs as we might desire, because we do not
7856      # link with -lc, and that would cause any symbols used from libc to
7857      # always be unresolved, which means just about no library would
7858      # ever link correctly.  If we're not using GNU ld we use -z text
7859      # though, which does catch some bad symbols but isn't as heavy-handed
7860      # as -z defs.
7861      no_undefined_flag='${wl}-z,text'
7862      allow_undefined_flag='${wl}-z,nodefs'
7863      archive_cmds_need_lc=no
7864      hardcode_shlibpath_var=no
7865      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7866      hardcode_libdir_separator=':'
7867      link_all_deplibs=yes
7868      export_dynamic_flag_spec='${wl}-Bexport'
7869      runpath_var='LD_RUN_PATH'
7870
7871      if test "$GCC" = yes; then
7872	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7873	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7874      else
7875	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7876	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7877      fi
7878      ;;
7879
7880    uts4*)
7881      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7882      hardcode_libdir_flag_spec='-L$libdir'
7883      hardcode_shlibpath_var=no
7884      ;;
7885
7886    *)
7887      ld_shlibs=no
7888      ;;
7889    esac
7890  fi
7891
7892{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7893echo "${ECHO_T}$ld_shlibs" >&6; }
7894test "$ld_shlibs" = no && can_build_shared=no
7895
7896#
7897# Do we need to explicitly link libc?
7898#
7899case "x$archive_cmds_need_lc" in
7900x|xyes)
7901  # Assume -lc should be added
7902  archive_cmds_need_lc=yes
7903
7904  if test "$enable_shared" = yes && test "$GCC" = yes; then
7905    case $archive_cmds in
7906    *'~'*)
7907      # FIXME: we may have to deal with multi-command sequences.
7908      ;;
7909    '$CC '*)
7910      # Test whether the compiler implicitly links with -lc since on some
7911      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7912      # to ld, don't add -lc before -lgcc.
7913      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7914echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7915      $rm conftest*
7916      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7917
7918      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7919  (eval $ac_compile) 2>&5
7920  ac_status=$?
7921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922  (exit $ac_status); } 2>conftest.err; then
7923        soname=conftest
7924        lib=conftest
7925        libobjs=conftest.$ac_objext
7926        deplibs=
7927        wl=$lt_prog_compiler_wl
7928	pic_flag=$lt_prog_compiler_pic
7929        compiler_flags=-v
7930        linker_flags=-v
7931        verstring=
7932        output_objdir=.
7933        libname=conftest
7934        lt_save_allow_undefined_flag=$allow_undefined_flag
7935        allow_undefined_flag=
7936        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7937  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7938  ac_status=$?
7939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940  (exit $ac_status); }
7941        then
7942	  archive_cmds_need_lc=no
7943        else
7944	  archive_cmds_need_lc=yes
7945        fi
7946        allow_undefined_flag=$lt_save_allow_undefined_flag
7947      else
7948        cat conftest.err 1>&5
7949      fi
7950      $rm conftest*
7951      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7952echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7953      ;;
7954    esac
7955  fi
7956  ;;
7957esac
7958
7959{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7960echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7961library_names_spec=
7962libname_spec='lib$name'
7963soname_spec=
7964shrext_cmds=".so"
7965postinstall_cmds=
7966postuninstall_cmds=
7967finish_cmds=
7968finish_eval=
7969shlibpath_var=
7970shlibpath_overrides_runpath=unknown
7971version_type=none
7972dynamic_linker="$host_os ld.so"
7973sys_lib_dlsearch_path_spec="/lib /usr/lib"
7974
7975if test "$GCC" = yes; then
7976  case $host_os in
7977    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7978    *) lt_awk_arg="/^libraries:/" ;;
7979  esac
7980  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7981  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
7982    # if the path contains ";" then we assume it to be the separator
7983    # otherwise default to the standard path separator (i.e. ":") - it is
7984    # assumed that no part of a normal pathname contains ";" but that should
7985    # okay in the real world where ";" in dirpaths is itself problematic.
7986    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7987  else
7988    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7989  fi
7990  # Ok, now we have the path, separated by spaces, we can step through it
7991  # and add multilib dir if necessary.
7992  lt_tmp_lt_search_path_spec=
7993  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7994  for lt_sys_path in $lt_search_path_spec; do
7995    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7996      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7997    else
7998      test -d "$lt_sys_path" && \
7999	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8000    fi
8001  done
8002  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8003BEGIN {RS=" "; FS="/|\n";} {
8004  lt_foo="";
8005  lt_count=0;
8006  for (lt_i = NF; lt_i > 0; lt_i--) {
8007    if ($lt_i != "" && $lt_i != ".") {
8008      if ($lt_i == "..") {
8009        lt_count++;
8010      } else {
8011        if (lt_count == 0) {
8012          lt_foo="/" $lt_i lt_foo;
8013        } else {
8014          lt_count--;
8015        }
8016      }
8017    }
8018  }
8019  if (lt_foo != "") { lt_freq[lt_foo]++; }
8020  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8021}'`
8022  sys_lib_search_path_spec=`echo $lt_search_path_spec`
8023else
8024  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8025fi
8026need_lib_prefix=unknown
8027hardcode_into_libs=no
8028
8029# when you set need_version to no, make sure it does not cause -set_version
8030# flags to be left without arguments
8031need_version=unknown
8032
8033case $host_os in
8034aix3*)
8035  version_type=linux
8036  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8037  shlibpath_var=LIBPATH
8038
8039  # AIX 3 has no versioning support, so we append a major version to the name.
8040  soname_spec='${libname}${release}${shared_ext}$major'
8041  ;;
8042
8043aix4* | aix5*)
8044  version_type=linux
8045  need_lib_prefix=no
8046  need_version=no
8047  hardcode_into_libs=yes
8048  if test "$host_cpu" = ia64; then
8049    # AIX 5 supports IA64
8050    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8051    shlibpath_var=LD_LIBRARY_PATH
8052  else
8053    # With GCC up to 2.95.x, collect2 would create an import file
8054    # for dependence libraries.  The import file would start with
8055    # the line `#! .'.  This would cause the generated library to
8056    # depend on `.', always an invalid library.  This was fixed in
8057    # development snapshots of GCC prior to 3.0.
8058    case $host_os in
8059      aix4 | aix4.[01] | aix4.[01].*)
8060      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8061	   echo ' yes '
8062	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8063	:
8064      else
8065	can_build_shared=no
8066      fi
8067      ;;
8068    esac
8069    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8070    # soname into executable. Probably we can add versioning support to
8071    # collect2, so additional links can be useful in future.
8072    if test "$aix_use_runtimelinking" = yes; then
8073      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8074      # instead of lib<name>.a to let people know that these are not
8075      # typical AIX shared libraries.
8076      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8077    else
8078      # We preserve .a as extension for shared libraries through AIX4.2
8079      # and later when we are not doing run time linking.
8080      library_names_spec='${libname}${release}.a $libname.a'
8081      soname_spec='${libname}${release}${shared_ext}$major'
8082    fi
8083    shlibpath_var=LIBPATH
8084  fi
8085  ;;
8086
8087amigaos*)
8088  library_names_spec='$libname.ixlibrary $libname.a'
8089  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8090  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'
8091  ;;
8092
8093beos*)
8094  library_names_spec='${libname}${shared_ext}'
8095  dynamic_linker="$host_os ld.so"
8096  shlibpath_var=LIBRARY_PATH
8097  ;;
8098
8099bsdi[45]*)
8100  version_type=linux
8101  need_version=no
8102  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8103  soname_spec='${libname}${release}${shared_ext}$major'
8104  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8105  shlibpath_var=LD_LIBRARY_PATH
8106  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8107  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8108  # the default ld.so.conf also contains /usr/contrib/lib and
8109  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8110  # libtool to hard-code these into programs
8111  ;;
8112
8113cygwin* | mingw* | pw32*)
8114  version_type=windows
8115  shrext_cmds=".dll"
8116  need_version=no
8117  need_lib_prefix=no
8118
8119  case $GCC,$host_os in
8120  yes,cygwin* | yes,mingw* | yes,pw32*)
8121    library_names_spec='$libname.dll.a'
8122    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8123    postinstall_cmds='base_file=`basename \${file}`~
8124      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8125      dldir=$destdir/`dirname \$dlpath`~
8126      test -d \$dldir || mkdir -p \$dldir~
8127      $install_prog $dir/$dlname \$dldir/$dlname~
8128      chmod a+x \$dldir/$dlname'
8129    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8130      dlpath=$dir/\$dldll~
8131       $rm \$dlpath'
8132    shlibpath_overrides_runpath=yes
8133
8134    case $host_os in
8135    cygwin*)
8136      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8137      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8138      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8139      ;;
8140    mingw*)
8141      # MinGW DLLs use traditional 'lib' prefix
8142      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8143      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8144      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8145        # It is most probably a Windows format PATH printed by
8146        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8147        # path with ; separators, and with drive letters. We can handle the
8148        # drive letters (cygwin fileutils understands them), so leave them,
8149        # especially as we might pass files found there to a mingw objdump,
8150        # which wouldn't understand a cygwinified path. Ahh.
8151        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8152      else
8153        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8154      fi
8155      ;;
8156    pw32*)
8157      # pw32 DLLs use 'pw' prefix rather than 'lib'
8158      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8159      ;;
8160    esac
8161    ;;
8162
8163  *)
8164    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8165    ;;
8166  esac
8167  dynamic_linker='Win32 ld.exe'
8168  # FIXME: first we should search . and the directory the executable is in
8169  shlibpath_var=PATH
8170  ;;
8171
8172darwin* | rhapsody*)
8173  dynamic_linker="$host_os dyld"
8174  version_type=darwin
8175  need_lib_prefix=no
8176  need_version=no
8177  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8178  soname_spec='${libname}${release}${major}$shared_ext'
8179  shlibpath_overrides_runpath=yes
8180  shlibpath_var=DYLD_LIBRARY_PATH
8181  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8182
8183  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8184  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8185  ;;
8186
8187dgux*)
8188  version_type=linux
8189  need_lib_prefix=no
8190  need_version=no
8191  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8192  soname_spec='${libname}${release}${shared_ext}$major'
8193  shlibpath_var=LD_LIBRARY_PATH
8194  ;;
8195
8196freebsd1*)
8197  dynamic_linker=no
8198  ;;
8199
8200freebsd* | dragonfly*)
8201  # DragonFly does not have aout.  When/if they implement a new
8202  # versioning mechanism, adjust this.
8203  if test -x /usr/bin/objformat; then
8204    objformat=`/usr/bin/objformat`
8205  else
8206    case $host_os in
8207    freebsd[123]*) objformat=aout ;;
8208    *) objformat=elf ;;
8209    esac
8210  fi
8211  version_type=freebsd-$objformat
8212  case $version_type in
8213    freebsd-elf*)
8214      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8215      need_version=no
8216      need_lib_prefix=no
8217      ;;
8218    freebsd-*)
8219      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8220      need_version=yes
8221      ;;
8222  esac
8223  shlibpath_var=LD_LIBRARY_PATH
8224  case $host_os in
8225  freebsd2*)
8226    shlibpath_overrides_runpath=yes
8227    ;;
8228  freebsd3.[01]* | freebsdelf3.[01]*)
8229    shlibpath_overrides_runpath=yes
8230    hardcode_into_libs=yes
8231    ;;
8232  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8233  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8234    shlibpath_overrides_runpath=no
8235    hardcode_into_libs=yes
8236    ;;
8237  *) # from 4.6 on, and DragonFly
8238    shlibpath_overrides_runpath=yes
8239    hardcode_into_libs=yes
8240    ;;
8241  esac
8242  ;;
8243
8244gnu*)
8245  version_type=linux
8246  need_lib_prefix=no
8247  need_version=no
8248  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8249  soname_spec='${libname}${release}${shared_ext}$major'
8250  shlibpath_var=LD_LIBRARY_PATH
8251  hardcode_into_libs=yes
8252  ;;
8253
8254hpux9* | hpux10* | hpux11*)
8255  # Give a soname corresponding to the major version so that dld.sl refuses to
8256  # link against other versions.
8257  version_type=sunos
8258  need_lib_prefix=no
8259  need_version=no
8260  case $host_cpu in
8261  ia64*)
8262    shrext_cmds='.so'
8263    hardcode_into_libs=yes
8264    dynamic_linker="$host_os dld.so"
8265    shlibpath_var=LD_LIBRARY_PATH
8266    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8267    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8268    soname_spec='${libname}${release}${shared_ext}$major'
8269    if test "X$HPUX_IA64_MODE" = X32; then
8270      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8271    else
8272      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8273    fi
8274    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8275    ;;
8276   hppa*64*)
8277     shrext_cmds='.sl'
8278     hardcode_into_libs=yes
8279     dynamic_linker="$host_os dld.sl"
8280     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8281     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8282     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8283     soname_spec='${libname}${release}${shared_ext}$major'
8284     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8285     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8286     ;;
8287   *)
8288    shrext_cmds='.sl'
8289    dynamic_linker="$host_os dld.sl"
8290    shlibpath_var=SHLIB_PATH
8291    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8292    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8293    soname_spec='${libname}${release}${shared_ext}$major'
8294    ;;
8295  esac
8296  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8297  postinstall_cmds='chmod 555 $lib'
8298  ;;
8299
8300interix[3-9]*)
8301  version_type=linux
8302  need_lib_prefix=no
8303  need_version=no
8304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8305  soname_spec='${libname}${release}${shared_ext}$major'
8306  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8307  shlibpath_var=LD_LIBRARY_PATH
8308  shlibpath_overrides_runpath=no
8309  hardcode_into_libs=yes
8310  ;;
8311
8312irix5* | irix6* | nonstopux*)
8313  case $host_os in
8314    nonstopux*) version_type=nonstopux ;;
8315    *)
8316	if test "$lt_cv_prog_gnu_ld" = yes; then
8317		version_type=linux
8318	else
8319		version_type=irix
8320	fi ;;
8321  esac
8322  need_lib_prefix=no
8323  need_version=no
8324  soname_spec='${libname}${release}${shared_ext}$major'
8325  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8326  case $host_os in
8327  irix5* | nonstopux*)
8328    libsuff= shlibsuff=
8329    ;;
8330  *)
8331    case $LD in # libtool.m4 will add one of these switches to LD
8332    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8333      libsuff= shlibsuff= libmagic=32-bit;;
8334    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8335      libsuff=32 shlibsuff=N32 libmagic=N32;;
8336    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8337      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8338    *) libsuff= shlibsuff= libmagic=never-match;;
8339    esac
8340    ;;
8341  esac
8342  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8343  shlibpath_overrides_runpath=no
8344  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8345  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8346  hardcode_into_libs=yes
8347  ;;
8348
8349# No shared lib support for Linux oldld, aout, or coff.
8350linux*oldld* | linux*aout* | linux*coff*)
8351  dynamic_linker=no
8352  ;;
8353
8354# This must be Linux ELF.
8355linux* | k*bsd*-gnu)
8356  version_type=linux
8357  need_lib_prefix=no
8358  need_version=no
8359  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8360  soname_spec='${libname}${release}${shared_ext}$major'
8361  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8362  shlibpath_var=LD_LIBRARY_PATH
8363  shlibpath_overrides_runpath=no
8364  # This implies no fast_install, which is unacceptable.
8365  # Some rework will be needed to allow for fast_install
8366  # before this can be enabled.
8367  hardcode_into_libs=yes
8368
8369  # Append ld.so.conf contents to the search path
8370  if test -f /etc/ld.so.conf; then
8371    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8372    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8373  fi
8374
8375  # We used to test for /lib/ld.so.1 and disable shared libraries on
8376  # powerpc, because MkLinux only supported shared libraries with the
8377  # GNU dynamic linker.  Since this was broken with cross compilers,
8378  # most powerpc-linux boxes support dynamic linking these days and
8379  # people can always --disable-shared, the test was removed, and we
8380  # assume the GNU/Linux dynamic linker is in use.
8381  dynamic_linker='GNU/Linux ld.so'
8382  ;;
8383
8384netbsd*)
8385  version_type=sunos
8386  need_lib_prefix=no
8387  need_version=no
8388  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8389    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8390    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8391    dynamic_linker='NetBSD (a.out) ld.so'
8392  else
8393    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8394    soname_spec='${libname}${release}${shared_ext}$major'
8395    dynamic_linker='NetBSD ld.elf_so'
8396  fi
8397  shlibpath_var=LD_LIBRARY_PATH
8398  shlibpath_overrides_runpath=yes
8399  hardcode_into_libs=yes
8400  ;;
8401
8402newsos6)
8403  version_type=linux
8404  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8405  shlibpath_var=LD_LIBRARY_PATH
8406  shlibpath_overrides_runpath=yes
8407  ;;
8408
8409nto-qnx*)
8410  version_type=linux
8411  need_lib_prefix=no
8412  need_version=no
8413  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8414  soname_spec='${libname}${release}${shared_ext}$major'
8415  shlibpath_var=LD_LIBRARY_PATH
8416  shlibpath_overrides_runpath=yes
8417  ;;
8418
8419openbsd*)
8420  version_type=sunos
8421  sys_lib_dlsearch_path_spec="/usr/lib"
8422  need_lib_prefix=no
8423  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8424  case $host_os in
8425    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8426    *)                         need_version=no  ;;
8427  esac
8428  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8429  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8430  shlibpath_var=LD_LIBRARY_PATH
8431  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8432    case $host_os in
8433      openbsd2.[89] | openbsd2.[89].*)
8434	shlibpath_overrides_runpath=no
8435	;;
8436      *)
8437	shlibpath_overrides_runpath=yes
8438	;;
8439      esac
8440  else
8441    shlibpath_overrides_runpath=yes
8442  fi
8443  ;;
8444
8445os2*)
8446  libname_spec='$name'
8447  shrext_cmds=".dll"
8448  need_lib_prefix=no
8449  library_names_spec='$libname${shared_ext} $libname.a'
8450  dynamic_linker='OS/2 ld.exe'
8451  shlibpath_var=LIBPATH
8452  ;;
8453
8454osf3* | osf4* | osf5*)
8455  version_type=osf
8456  need_lib_prefix=no
8457  need_version=no
8458  soname_spec='${libname}${release}${shared_ext}$major'
8459  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8460  shlibpath_var=LD_LIBRARY_PATH
8461  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8462  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8463  ;;
8464
8465rdos*)
8466  dynamic_linker=no
8467  ;;
8468
8469solaris*)
8470  version_type=linux
8471  need_lib_prefix=no
8472  need_version=no
8473  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8474  soname_spec='${libname}${release}${shared_ext}$major'
8475  shlibpath_var=LD_LIBRARY_PATH
8476  shlibpath_overrides_runpath=yes
8477  hardcode_into_libs=yes
8478  # ldd complains unless libraries are executable
8479  postinstall_cmds='chmod +x $lib'
8480  ;;
8481
8482sunos4*)
8483  version_type=sunos
8484  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8485  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8486  shlibpath_var=LD_LIBRARY_PATH
8487  shlibpath_overrides_runpath=yes
8488  if test "$with_gnu_ld" = yes; then
8489    need_lib_prefix=no
8490  fi
8491  need_version=yes
8492  ;;
8493
8494sysv4 | sysv4.3*)
8495  version_type=linux
8496  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8497  soname_spec='${libname}${release}${shared_ext}$major'
8498  shlibpath_var=LD_LIBRARY_PATH
8499  case $host_vendor in
8500    sni)
8501      shlibpath_overrides_runpath=no
8502      need_lib_prefix=no
8503      export_dynamic_flag_spec='${wl}-Blargedynsym'
8504      runpath_var=LD_RUN_PATH
8505      ;;
8506    siemens)
8507      need_lib_prefix=no
8508      ;;
8509    motorola)
8510      need_lib_prefix=no
8511      need_version=no
8512      shlibpath_overrides_runpath=no
8513      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8514      ;;
8515  esac
8516  ;;
8517
8518sysv4*MP*)
8519  if test -d /usr/nec ;then
8520    version_type=linux
8521    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8522    soname_spec='$libname${shared_ext}.$major'
8523    shlibpath_var=LD_LIBRARY_PATH
8524  fi
8525  ;;
8526
8527sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8528  version_type=freebsd-elf
8529  need_lib_prefix=no
8530  need_version=no
8531  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8532  soname_spec='${libname}${release}${shared_ext}$major'
8533  shlibpath_var=LD_LIBRARY_PATH
8534  hardcode_into_libs=yes
8535  if test "$with_gnu_ld" = yes; then
8536    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8537    shlibpath_overrides_runpath=no
8538  else
8539    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8540    shlibpath_overrides_runpath=yes
8541    case $host_os in
8542      sco3.2v5*)
8543        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8544	;;
8545    esac
8546  fi
8547  sys_lib_dlsearch_path_spec='/usr/lib'
8548  ;;
8549
8550uts4*)
8551  version_type=linux
8552  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8553  soname_spec='${libname}${release}${shared_ext}$major'
8554  shlibpath_var=LD_LIBRARY_PATH
8555  ;;
8556
8557*)
8558  dynamic_linker=no
8559  ;;
8560esac
8561{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8562echo "${ECHO_T}$dynamic_linker" >&6; }
8563test "$dynamic_linker" = no && can_build_shared=no
8564
8565variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8566if test "$GCC" = yes; then
8567  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8568fi
8569
8570{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8571echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8572hardcode_action=
8573if test -n "$hardcode_libdir_flag_spec" || \
8574   test -n "$runpath_var" || \
8575   test "X$hardcode_automatic" = "Xyes" ; then
8576
8577  # We can hardcode non-existant directories.
8578  if test "$hardcode_direct" != no &&
8579     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8580     # have to relink, otherwise we might link with an installed library
8581     # when we should be linking with a yet-to-be-installed one
8582     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8583     test "$hardcode_minus_L" != no; then
8584    # Linking always hardcodes the temporary library directory.
8585    hardcode_action=relink
8586  else
8587    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8588    hardcode_action=immediate
8589  fi
8590else
8591  # We cannot hardcode anything, or else we can only hardcode existing
8592  # directories.
8593  hardcode_action=unsupported
8594fi
8595{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
8596echo "${ECHO_T}$hardcode_action" >&6; }
8597
8598if test "$hardcode_action" = relink; then
8599  # Fast installation is not supported
8600  enable_fast_install=no
8601elif test "$shlibpath_overrides_runpath" = yes ||
8602     test "$enable_shared" = no; then
8603  # Fast installation is not necessary
8604  enable_fast_install=needless
8605fi
8606
8607striplib=
8608old_striplib=
8609{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8610echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8611if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8612  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8613  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8614  { echo "$as_me:$LINENO: result: yes" >&5
8615echo "${ECHO_T}yes" >&6; }
8616else
8617# FIXME - insert some real tests, host_os isn't really good enough
8618  case $host_os in
8619   darwin*)
8620       if test -n "$STRIP" ; then
8621         striplib="$STRIP -x"
8622         old_striplib="$STRIP -S"
8623         { echo "$as_me:$LINENO: result: yes" >&5
8624echo "${ECHO_T}yes" >&6; }
8625       else
8626  { echo "$as_me:$LINENO: result: no" >&5
8627echo "${ECHO_T}no" >&6; }
8628fi
8629       ;;
8630   *)
8631  { echo "$as_me:$LINENO: result: no" >&5
8632echo "${ECHO_T}no" >&6; }
8633    ;;
8634  esac
8635fi
8636
8637if test "x$enable_dlopen" != xyes; then
8638  enable_dlopen=unknown
8639  enable_dlopen_self=unknown
8640  enable_dlopen_self_static=unknown
8641else
8642  lt_cv_dlopen=no
8643  lt_cv_dlopen_libs=
8644
8645  case $host_os in
8646  beos*)
8647    lt_cv_dlopen="load_add_on"
8648    lt_cv_dlopen_libs=
8649    lt_cv_dlopen_self=yes
8650    ;;
8651
8652  mingw* | pw32*)
8653    lt_cv_dlopen="LoadLibrary"
8654    lt_cv_dlopen_libs=
8655   ;;
8656
8657  cygwin*)
8658    lt_cv_dlopen="dlopen"
8659    lt_cv_dlopen_libs=
8660   ;;
8661
8662  darwin*)
8663  # if libdl is installed we need to link against it
8664    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8665echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8666if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8667  echo $ECHO_N "(cached) $ECHO_C" >&6
8668else
8669  ac_check_lib_save_LIBS=$LIBS
8670LIBS="-ldl  $LIBS"
8671cat >conftest.$ac_ext <<_ACEOF
8672/* confdefs.h.  */
8673_ACEOF
8674cat confdefs.h >>conftest.$ac_ext
8675cat >>conftest.$ac_ext <<_ACEOF
8676/* end confdefs.h.  */
8677
8678/* Override any GCC internal prototype to avoid an error.
8679   Use char because int might match the return type of a GCC
8680   builtin and then its argument prototype would still apply.  */
8681#ifdef __cplusplus
8682extern "C"
8683#endif
8684char dlopen ();
8685int
8686main ()
8687{
8688return dlopen ();
8689  ;
8690  return 0;
8691}
8692_ACEOF
8693rm -f conftest.$ac_objext conftest$ac_exeext
8694if { (ac_try="$ac_link"
8695case "(($ac_try" in
8696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697  *) ac_try_echo=$ac_try;;
8698esac
8699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700  (eval "$ac_link") 2>conftest.er1
8701  ac_status=$?
8702  grep -v '^ *+' conftest.er1 >conftest.err
8703  rm -f conftest.er1
8704  cat conftest.err >&5
8705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706  (exit $ac_status); } && {
8707	 test -z "$ac_c_werror_flag" ||
8708	 test ! -s conftest.err
8709       } && test -s conftest$ac_exeext &&
8710       $as_test_x conftest$ac_exeext; then
8711  ac_cv_lib_dl_dlopen=yes
8712else
8713  echo "$as_me: failed program was:" >&5
8714sed 's/^/| /' conftest.$ac_ext >&5
8715
8716	ac_cv_lib_dl_dlopen=no
8717fi
8718
8719rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8720      conftest$ac_exeext conftest.$ac_ext
8721LIBS=$ac_check_lib_save_LIBS
8722fi
8723{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8724echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8725if test $ac_cv_lib_dl_dlopen = yes; then
8726  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8727else
8728
8729    lt_cv_dlopen="dyld"
8730    lt_cv_dlopen_libs=
8731    lt_cv_dlopen_self=yes
8732
8733fi
8734
8735   ;;
8736
8737  *)
8738    { echo "$as_me:$LINENO: checking for shl_load" >&5
8739echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8740if test "${ac_cv_func_shl_load+set}" = set; then
8741  echo $ECHO_N "(cached) $ECHO_C" >&6
8742else
8743  cat >conftest.$ac_ext <<_ACEOF
8744/* confdefs.h.  */
8745_ACEOF
8746cat confdefs.h >>conftest.$ac_ext
8747cat >>conftest.$ac_ext <<_ACEOF
8748/* end confdefs.h.  */
8749/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8750   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8751#define shl_load innocuous_shl_load
8752
8753/* System header to define __stub macros and hopefully few prototypes,
8754    which can conflict with char shl_load (); below.
8755    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8756    <limits.h> exists even on freestanding compilers.  */
8757
8758#ifdef __STDC__
8759# include <limits.h>
8760#else
8761# include <assert.h>
8762#endif
8763
8764#undef shl_load
8765
8766/* Override any GCC internal prototype to avoid an error.
8767   Use char because int might match the return type of a GCC
8768   builtin and then its argument prototype would still apply.  */
8769#ifdef __cplusplus
8770extern "C"
8771#endif
8772char shl_load ();
8773/* The GNU C library defines this for functions which it implements
8774    to always fail with ENOSYS.  Some functions are actually named
8775    something starting with __ and the normal name is an alias.  */
8776#if defined __stub_shl_load || defined __stub___shl_load
8777choke me
8778#endif
8779
8780int
8781main ()
8782{
8783return shl_load ();
8784  ;
8785  return 0;
8786}
8787_ACEOF
8788rm -f conftest.$ac_objext conftest$ac_exeext
8789if { (ac_try="$ac_link"
8790case "(($ac_try" in
8791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8792  *) ac_try_echo=$ac_try;;
8793esac
8794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795  (eval "$ac_link") 2>conftest.er1
8796  ac_status=$?
8797  grep -v '^ *+' conftest.er1 >conftest.err
8798  rm -f conftest.er1
8799  cat conftest.err >&5
8800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801  (exit $ac_status); } && {
8802	 test -z "$ac_c_werror_flag" ||
8803	 test ! -s conftest.err
8804       } && test -s conftest$ac_exeext &&
8805       $as_test_x conftest$ac_exeext; then
8806  ac_cv_func_shl_load=yes
8807else
8808  echo "$as_me: failed program was:" >&5
8809sed 's/^/| /' conftest.$ac_ext >&5
8810
8811	ac_cv_func_shl_load=no
8812fi
8813
8814rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8815      conftest$ac_exeext conftest.$ac_ext
8816fi
8817{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8818echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8819if test $ac_cv_func_shl_load = yes; then
8820  lt_cv_dlopen="shl_load"
8821else
8822  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8823echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8824if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8825  echo $ECHO_N "(cached) $ECHO_C" >&6
8826else
8827  ac_check_lib_save_LIBS=$LIBS
8828LIBS="-ldld  $LIBS"
8829cat >conftest.$ac_ext <<_ACEOF
8830/* confdefs.h.  */
8831_ACEOF
8832cat confdefs.h >>conftest.$ac_ext
8833cat >>conftest.$ac_ext <<_ACEOF
8834/* end confdefs.h.  */
8835
8836/* Override any GCC internal prototype to avoid an error.
8837   Use char because int might match the return type of a GCC
8838   builtin and then its argument prototype would still apply.  */
8839#ifdef __cplusplus
8840extern "C"
8841#endif
8842char shl_load ();
8843int
8844main ()
8845{
8846return shl_load ();
8847  ;
8848  return 0;
8849}
8850_ACEOF
8851rm -f conftest.$ac_objext conftest$ac_exeext
8852if { (ac_try="$ac_link"
8853case "(($ac_try" in
8854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8855  *) ac_try_echo=$ac_try;;
8856esac
8857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8858  (eval "$ac_link") 2>conftest.er1
8859  ac_status=$?
8860  grep -v '^ *+' conftest.er1 >conftest.err
8861  rm -f conftest.er1
8862  cat conftest.err >&5
8863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864  (exit $ac_status); } && {
8865	 test -z "$ac_c_werror_flag" ||
8866	 test ! -s conftest.err
8867       } && test -s conftest$ac_exeext &&
8868       $as_test_x conftest$ac_exeext; then
8869  ac_cv_lib_dld_shl_load=yes
8870else
8871  echo "$as_me: failed program was:" >&5
8872sed 's/^/| /' conftest.$ac_ext >&5
8873
8874	ac_cv_lib_dld_shl_load=no
8875fi
8876
8877rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8878      conftest$ac_exeext conftest.$ac_ext
8879LIBS=$ac_check_lib_save_LIBS
8880fi
8881{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8882echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8883if test $ac_cv_lib_dld_shl_load = yes; then
8884  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8885else
8886  { echo "$as_me:$LINENO: checking for dlopen" >&5
8887echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8888if test "${ac_cv_func_dlopen+set}" = set; then
8889  echo $ECHO_N "(cached) $ECHO_C" >&6
8890else
8891  cat >conftest.$ac_ext <<_ACEOF
8892/* confdefs.h.  */
8893_ACEOF
8894cat confdefs.h >>conftest.$ac_ext
8895cat >>conftest.$ac_ext <<_ACEOF
8896/* end confdefs.h.  */
8897/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8898   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8899#define dlopen innocuous_dlopen
8900
8901/* System header to define __stub macros and hopefully few prototypes,
8902    which can conflict with char dlopen (); below.
8903    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8904    <limits.h> exists even on freestanding compilers.  */
8905
8906#ifdef __STDC__
8907# include <limits.h>
8908#else
8909# include <assert.h>
8910#endif
8911
8912#undef dlopen
8913
8914/* Override any GCC internal prototype to avoid an error.
8915   Use char because int might match the return type of a GCC
8916   builtin and then its argument prototype would still apply.  */
8917#ifdef __cplusplus
8918extern "C"
8919#endif
8920char dlopen ();
8921/* The GNU C library defines this for functions which it implements
8922    to always fail with ENOSYS.  Some functions are actually named
8923    something starting with __ and the normal name is an alias.  */
8924#if defined __stub_dlopen || defined __stub___dlopen
8925choke me
8926#endif
8927
8928int
8929main ()
8930{
8931return dlopen ();
8932  ;
8933  return 0;
8934}
8935_ACEOF
8936rm -f conftest.$ac_objext conftest$ac_exeext
8937if { (ac_try="$ac_link"
8938case "(($ac_try" in
8939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940  *) ac_try_echo=$ac_try;;
8941esac
8942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8943  (eval "$ac_link") 2>conftest.er1
8944  ac_status=$?
8945  grep -v '^ *+' conftest.er1 >conftest.err
8946  rm -f conftest.er1
8947  cat conftest.err >&5
8948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949  (exit $ac_status); } && {
8950	 test -z "$ac_c_werror_flag" ||
8951	 test ! -s conftest.err
8952       } && test -s conftest$ac_exeext &&
8953       $as_test_x conftest$ac_exeext; then
8954  ac_cv_func_dlopen=yes
8955else
8956  echo "$as_me: failed program was:" >&5
8957sed 's/^/| /' conftest.$ac_ext >&5
8958
8959	ac_cv_func_dlopen=no
8960fi
8961
8962rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8963      conftest$ac_exeext conftest.$ac_ext
8964fi
8965{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8966echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8967if test $ac_cv_func_dlopen = yes; then
8968  lt_cv_dlopen="dlopen"
8969else
8970  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8971echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8972if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8973  echo $ECHO_N "(cached) $ECHO_C" >&6
8974else
8975  ac_check_lib_save_LIBS=$LIBS
8976LIBS="-ldl  $LIBS"
8977cat >conftest.$ac_ext <<_ACEOF
8978/* confdefs.h.  */
8979_ACEOF
8980cat confdefs.h >>conftest.$ac_ext
8981cat >>conftest.$ac_ext <<_ACEOF
8982/* end confdefs.h.  */
8983
8984/* Override any GCC internal prototype to avoid an error.
8985   Use char because int might match the return type of a GCC
8986   builtin and then its argument prototype would still apply.  */
8987#ifdef __cplusplus
8988extern "C"
8989#endif
8990char dlopen ();
8991int
8992main ()
8993{
8994return dlopen ();
8995  ;
8996  return 0;
8997}
8998_ACEOF
8999rm -f conftest.$ac_objext conftest$ac_exeext
9000if { (ac_try="$ac_link"
9001case "(($ac_try" in
9002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9003  *) ac_try_echo=$ac_try;;
9004esac
9005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9006  (eval "$ac_link") 2>conftest.er1
9007  ac_status=$?
9008  grep -v '^ *+' conftest.er1 >conftest.err
9009  rm -f conftest.er1
9010  cat conftest.err >&5
9011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012  (exit $ac_status); } && {
9013	 test -z "$ac_c_werror_flag" ||
9014	 test ! -s conftest.err
9015       } && test -s conftest$ac_exeext &&
9016       $as_test_x conftest$ac_exeext; then
9017  ac_cv_lib_dl_dlopen=yes
9018else
9019  echo "$as_me: failed program was:" >&5
9020sed 's/^/| /' conftest.$ac_ext >&5
9021
9022	ac_cv_lib_dl_dlopen=no
9023fi
9024
9025rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9026      conftest$ac_exeext conftest.$ac_ext
9027LIBS=$ac_check_lib_save_LIBS
9028fi
9029{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9030echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9031if test $ac_cv_lib_dl_dlopen = yes; then
9032  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9033else
9034  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9035echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9036if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9037  echo $ECHO_N "(cached) $ECHO_C" >&6
9038else
9039  ac_check_lib_save_LIBS=$LIBS
9040LIBS="-lsvld  $LIBS"
9041cat >conftest.$ac_ext <<_ACEOF
9042/* confdefs.h.  */
9043_ACEOF
9044cat confdefs.h >>conftest.$ac_ext
9045cat >>conftest.$ac_ext <<_ACEOF
9046/* end confdefs.h.  */
9047
9048/* Override any GCC internal prototype to avoid an error.
9049   Use char because int might match the return type of a GCC
9050   builtin and then its argument prototype would still apply.  */
9051#ifdef __cplusplus
9052extern "C"
9053#endif
9054char dlopen ();
9055int
9056main ()
9057{
9058return dlopen ();
9059  ;
9060  return 0;
9061}
9062_ACEOF
9063rm -f conftest.$ac_objext conftest$ac_exeext
9064if { (ac_try="$ac_link"
9065case "(($ac_try" in
9066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9067  *) ac_try_echo=$ac_try;;
9068esac
9069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9070  (eval "$ac_link") 2>conftest.er1
9071  ac_status=$?
9072  grep -v '^ *+' conftest.er1 >conftest.err
9073  rm -f conftest.er1
9074  cat conftest.err >&5
9075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076  (exit $ac_status); } && {
9077	 test -z "$ac_c_werror_flag" ||
9078	 test ! -s conftest.err
9079       } && test -s conftest$ac_exeext &&
9080       $as_test_x conftest$ac_exeext; then
9081  ac_cv_lib_svld_dlopen=yes
9082else
9083  echo "$as_me: failed program was:" >&5
9084sed 's/^/| /' conftest.$ac_ext >&5
9085
9086	ac_cv_lib_svld_dlopen=no
9087fi
9088
9089rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9090      conftest$ac_exeext conftest.$ac_ext
9091LIBS=$ac_check_lib_save_LIBS
9092fi
9093{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9094echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9095if test $ac_cv_lib_svld_dlopen = yes; then
9096  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9097else
9098  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9099echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9100if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9101  echo $ECHO_N "(cached) $ECHO_C" >&6
9102else
9103  ac_check_lib_save_LIBS=$LIBS
9104LIBS="-ldld  $LIBS"
9105cat >conftest.$ac_ext <<_ACEOF
9106/* confdefs.h.  */
9107_ACEOF
9108cat confdefs.h >>conftest.$ac_ext
9109cat >>conftest.$ac_ext <<_ACEOF
9110/* end confdefs.h.  */
9111
9112/* Override any GCC internal prototype to avoid an error.
9113   Use char because int might match the return type of a GCC
9114   builtin and then its argument prototype would still apply.  */
9115#ifdef __cplusplus
9116extern "C"
9117#endif
9118char dld_link ();
9119int
9120main ()
9121{
9122return dld_link ();
9123  ;
9124  return 0;
9125}
9126_ACEOF
9127rm -f conftest.$ac_objext conftest$ac_exeext
9128if { (ac_try="$ac_link"
9129case "(($ac_try" in
9130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9131  *) ac_try_echo=$ac_try;;
9132esac
9133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9134  (eval "$ac_link") 2>conftest.er1
9135  ac_status=$?
9136  grep -v '^ *+' conftest.er1 >conftest.err
9137  rm -f conftest.er1
9138  cat conftest.err >&5
9139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140  (exit $ac_status); } && {
9141	 test -z "$ac_c_werror_flag" ||
9142	 test ! -s conftest.err
9143       } && test -s conftest$ac_exeext &&
9144       $as_test_x conftest$ac_exeext; then
9145  ac_cv_lib_dld_dld_link=yes
9146else
9147  echo "$as_me: failed program was:" >&5
9148sed 's/^/| /' conftest.$ac_ext >&5
9149
9150	ac_cv_lib_dld_dld_link=no
9151fi
9152
9153rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9154      conftest$ac_exeext conftest.$ac_ext
9155LIBS=$ac_check_lib_save_LIBS
9156fi
9157{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9158echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9159if test $ac_cv_lib_dld_dld_link = yes; then
9160  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9161fi
9162
9163
9164fi
9165
9166
9167fi
9168
9169
9170fi
9171
9172
9173fi
9174
9175
9176fi
9177
9178    ;;
9179  esac
9180
9181  if test "x$lt_cv_dlopen" != xno; then
9182    enable_dlopen=yes
9183  else
9184    enable_dlopen=no
9185  fi
9186
9187  case $lt_cv_dlopen in
9188  dlopen)
9189    save_CPPFLAGS="$CPPFLAGS"
9190    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9191
9192    save_LDFLAGS="$LDFLAGS"
9193    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9194
9195    save_LIBS="$LIBS"
9196    LIBS="$lt_cv_dlopen_libs $LIBS"
9197
9198    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9199echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9200if test "${lt_cv_dlopen_self+set}" = set; then
9201  echo $ECHO_N "(cached) $ECHO_C" >&6
9202else
9203  	  if test "$cross_compiling" = yes; then :
9204  lt_cv_dlopen_self=cross
9205else
9206  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9207  lt_status=$lt_dlunknown
9208  cat > conftest.$ac_ext <<EOF
9209#line 9209 "configure"
9210#include "confdefs.h"
9211
9212#if HAVE_DLFCN_H
9213#include <dlfcn.h>
9214#endif
9215
9216#include <stdio.h>
9217
9218#ifdef RTLD_GLOBAL
9219#  define LT_DLGLOBAL		RTLD_GLOBAL
9220#else
9221#  ifdef DL_GLOBAL
9222#    define LT_DLGLOBAL		DL_GLOBAL
9223#  else
9224#    define LT_DLGLOBAL		0
9225#  endif
9226#endif
9227
9228/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9229   find out it does not work in some platform. */
9230#ifndef LT_DLLAZY_OR_NOW
9231#  ifdef RTLD_LAZY
9232#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9233#  else
9234#    ifdef DL_LAZY
9235#      define LT_DLLAZY_OR_NOW		DL_LAZY
9236#    else
9237#      ifdef RTLD_NOW
9238#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9239#      else
9240#        ifdef DL_NOW
9241#          define LT_DLLAZY_OR_NOW	DL_NOW
9242#        else
9243#          define LT_DLLAZY_OR_NOW	0
9244#        endif
9245#      endif
9246#    endif
9247#  endif
9248#endif
9249
9250#ifdef __cplusplus
9251extern "C" void exit (int);
9252#endif
9253
9254void fnord() { int i=42;}
9255int main ()
9256{
9257  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9258  int status = $lt_dlunknown;
9259
9260  if (self)
9261    {
9262      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9263      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9264      /* dlclose (self); */
9265    }
9266  else
9267    puts (dlerror ());
9268
9269    exit (status);
9270}
9271EOF
9272  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9273  (eval $ac_link) 2>&5
9274  ac_status=$?
9275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9277    (./conftest; exit; ) >&5 2>/dev/null
9278    lt_status=$?
9279    case x$lt_status in
9280      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9281      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9282      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9283    esac
9284  else :
9285    # compilation failed
9286    lt_cv_dlopen_self=no
9287  fi
9288fi
9289rm -fr conftest*
9290
9291
9292fi
9293{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9294echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9295
9296    if test "x$lt_cv_dlopen_self" = xyes; then
9297      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9298      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9299echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9300if test "${lt_cv_dlopen_self_static+set}" = set; then
9301  echo $ECHO_N "(cached) $ECHO_C" >&6
9302else
9303  	  if test "$cross_compiling" = yes; then :
9304  lt_cv_dlopen_self_static=cross
9305else
9306  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9307  lt_status=$lt_dlunknown
9308  cat > conftest.$ac_ext <<EOF
9309#line 9309 "configure"
9310#include "confdefs.h"
9311
9312#if HAVE_DLFCN_H
9313#include <dlfcn.h>
9314#endif
9315
9316#include <stdio.h>
9317
9318#ifdef RTLD_GLOBAL
9319#  define LT_DLGLOBAL		RTLD_GLOBAL
9320#else
9321#  ifdef DL_GLOBAL
9322#    define LT_DLGLOBAL		DL_GLOBAL
9323#  else
9324#    define LT_DLGLOBAL		0
9325#  endif
9326#endif
9327
9328/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9329   find out it does not work in some platform. */
9330#ifndef LT_DLLAZY_OR_NOW
9331#  ifdef RTLD_LAZY
9332#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9333#  else
9334#    ifdef DL_LAZY
9335#      define LT_DLLAZY_OR_NOW		DL_LAZY
9336#    else
9337#      ifdef RTLD_NOW
9338#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9339#      else
9340#        ifdef DL_NOW
9341#          define LT_DLLAZY_OR_NOW	DL_NOW
9342#        else
9343#          define LT_DLLAZY_OR_NOW	0
9344#        endif
9345#      endif
9346#    endif
9347#  endif
9348#endif
9349
9350#ifdef __cplusplus
9351extern "C" void exit (int);
9352#endif
9353
9354void fnord() { int i=42;}
9355int main ()
9356{
9357  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9358  int status = $lt_dlunknown;
9359
9360  if (self)
9361    {
9362      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9363      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9364      /* dlclose (self); */
9365    }
9366  else
9367    puts (dlerror ());
9368
9369    exit (status);
9370}
9371EOF
9372  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9373  (eval $ac_link) 2>&5
9374  ac_status=$?
9375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9377    (./conftest; exit; ) >&5 2>/dev/null
9378    lt_status=$?
9379    case x$lt_status in
9380      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9381      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9382      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9383    esac
9384  else :
9385    # compilation failed
9386    lt_cv_dlopen_self_static=no
9387  fi
9388fi
9389rm -fr conftest*
9390
9391
9392fi
9393{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9394echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9395    fi
9396
9397    CPPFLAGS="$save_CPPFLAGS"
9398    LDFLAGS="$save_LDFLAGS"
9399    LIBS="$save_LIBS"
9400    ;;
9401  esac
9402
9403  case $lt_cv_dlopen_self in
9404  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9405  *) enable_dlopen_self=unknown ;;
9406  esac
9407
9408  case $lt_cv_dlopen_self_static in
9409  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9410  *) enable_dlopen_self_static=unknown ;;
9411  esac
9412fi
9413
9414
9415# Report which library types will actually be built
9416{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9417echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9418{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
9419echo "${ECHO_T}$can_build_shared" >&6; }
9420
9421{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9422echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9423test "$can_build_shared" = "no" && enable_shared=no
9424
9425# On AIX, shared libraries and static libraries use the same namespace, and
9426# are all built from PIC.
9427case $host_os in
9428aix3*)
9429  test "$enable_shared" = yes && enable_static=no
9430  if test -n "$RANLIB"; then
9431    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9432    postinstall_cmds='$RANLIB $lib'
9433  fi
9434  ;;
9435
9436aix4* | aix5*)
9437  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9438    test "$enable_shared" = yes && enable_static=no
9439  fi
9440    ;;
9441esac
9442{ echo "$as_me:$LINENO: result: $enable_shared" >&5
9443echo "${ECHO_T}$enable_shared" >&6; }
9444
9445{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9446echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9447# Make sure either enable_shared or enable_static is yes.
9448test "$enable_shared" = yes || enable_static=yes
9449{ echo "$as_me:$LINENO: result: $enable_static" >&5
9450echo "${ECHO_T}$enable_static" >&6; }
9451
9452# The else clause should only fire when bootstrapping the
9453# libtool distribution, otherwise you forgot to ship ltmain.sh
9454# with your package, and you will get complaints that there are
9455# no rules to generate ltmain.sh.
9456if test -f "$ltmain"; then
9457  # See if we are running on zsh, and set the options which allow our commands through
9458  # without removal of \ escapes.
9459  if test -n "${ZSH_VERSION+set}" ; then
9460    setopt NO_GLOB_SUBST
9461  fi
9462  # Now quote all the things that may contain metacharacters while being
9463  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9464  # variables and quote the copies for generation of the libtool script.
9465  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9466    SED SHELL STRIP \
9467    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9468    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9469    deplibs_check_method reload_flag reload_cmds need_locks \
9470    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9471    lt_cv_sys_global_symbol_to_c_name_address \
9472    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9473    old_postinstall_cmds old_postuninstall_cmds \
9474    compiler \
9475    CC \
9476    LD \
9477    lt_prog_compiler_wl \
9478    lt_prog_compiler_pic \
9479    lt_prog_compiler_static \
9480    lt_prog_compiler_no_builtin_flag \
9481    export_dynamic_flag_spec \
9482    thread_safe_flag_spec \
9483    whole_archive_flag_spec \
9484    enable_shared_with_static_runtimes \
9485    old_archive_cmds \
9486    old_archive_from_new_cmds \
9487    predep_objects \
9488    postdep_objects \
9489    predeps \
9490    postdeps \
9491    compiler_lib_search_path \
9492    archive_cmds \
9493    archive_expsym_cmds \
9494    postinstall_cmds \
9495    postuninstall_cmds \
9496    old_archive_from_expsyms_cmds \
9497    allow_undefined_flag \
9498    no_undefined_flag \
9499    export_symbols_cmds \
9500    hardcode_libdir_flag_spec \
9501    hardcode_libdir_flag_spec_ld \
9502    hardcode_libdir_separator \
9503    hardcode_automatic \
9504    module_cmds \
9505    module_expsym_cmds \
9506    lt_cv_prog_compiler_c_o \
9507    fix_srcfile_path \
9508    exclude_expsyms \
9509    include_expsyms; do
9510
9511    case $var in
9512    old_archive_cmds | \
9513    old_archive_from_new_cmds | \
9514    archive_cmds | \
9515    archive_expsym_cmds | \
9516    module_cmds | \
9517    module_expsym_cmds | \
9518    old_archive_from_expsyms_cmds | \
9519    export_symbols_cmds | \
9520    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9521    postinstall_cmds | postuninstall_cmds | \
9522    old_postinstall_cmds | old_postuninstall_cmds | \
9523    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9524      # Double-quote double-evaled strings.
9525      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9526      ;;
9527    *)
9528      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9529      ;;
9530    esac
9531  done
9532
9533  case $lt_echo in
9534  *'\$0 --fallback-echo"')
9535    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9536    ;;
9537  esac
9538
9539cfgfile="${ofile}T"
9540  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9541  $rm -f "$cfgfile"
9542  { echo "$as_me:$LINENO: creating $ofile" >&5
9543echo "$as_me: creating $ofile" >&6;}
9544
9545  cat <<__EOF__ >> "$cfgfile"
9546#! $SHELL
9547
9548# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9549# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9550# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9551#
9552# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
9553# Free Software Foundation, Inc.
9554#
9555# This file is part of GNU Libtool:
9556# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9557#
9558# This program is free software; you can redistribute it and/or modify
9559# it under the terms of the GNU General Public License as published by
9560# the Free Software Foundation; either version 2 of the License, or
9561# (at your option) any later version.
9562#
9563# This program is distributed in the hope that it will be useful, but
9564# WITHOUT ANY WARRANTY; without even the implied warranty of
9565# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9566# General Public License for more details.
9567#
9568# You should have received a copy of the GNU General Public License
9569# along with this program; if not, write to the Free Software
9570# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9571#
9572# As a special exception to the GNU General Public License, if you
9573# distribute this file as part of a program that contains a
9574# configuration script generated by Autoconf, you may include it under
9575# the same distribution terms that you use for the rest of that program.
9576
9577# A sed program that does not truncate output.
9578SED=$lt_SED
9579
9580# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9581Xsed="$SED -e 1s/^X//"
9582
9583# The HP-UX ksh and POSIX shell print the target directory to stdout
9584# if CDPATH is set.
9585(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9586
9587# The names of the tagged configurations supported by this script.
9588available_tags=
9589
9590# ### BEGIN LIBTOOL CONFIG
9591
9592# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9593
9594# Shell to use when invoking shell scripts.
9595SHELL=$lt_SHELL
9596
9597# Whether or not to build shared libraries.
9598build_libtool_libs=$enable_shared
9599
9600# Whether or not to build static libraries.
9601build_old_libs=$enable_static
9602
9603# Whether or not to add -lc for building shared libraries.
9604build_libtool_need_lc=$archive_cmds_need_lc
9605
9606# Whether or not to disallow shared libs when runtime libs are static
9607allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9608
9609# Whether or not to optimize for fast installation.
9610fast_install=$enable_fast_install
9611
9612# The host system.
9613host_alias=$host_alias
9614host=$host
9615host_os=$host_os
9616
9617# The build system.
9618build_alias=$build_alias
9619build=$build
9620build_os=$build_os
9621
9622# An echo program that does not interpret backslashes.
9623echo=$lt_echo
9624
9625# The archiver.
9626AR=$lt_AR
9627AR_FLAGS=$lt_AR_FLAGS
9628
9629# A C compiler.
9630LTCC=$lt_LTCC
9631
9632# LTCC compiler flags.
9633LTCFLAGS=$lt_LTCFLAGS
9634
9635# A language-specific compiler.
9636CC=$lt_compiler
9637
9638# Is the compiler the GNU C compiler?
9639with_gcc=$GCC
9640
9641# An ERE matcher.
9642EGREP=$lt_EGREP
9643
9644# The linker used to build libraries.
9645LD=$lt_LD
9646
9647# Whether we need hard or soft links.
9648LN_S=$lt_LN_S
9649
9650# A BSD-compatible nm program.
9651NM=$lt_NM
9652
9653# A symbol stripping program
9654STRIP=$lt_STRIP
9655
9656# Used to examine libraries when file_magic_cmd begins "file"
9657MAGIC_CMD=$MAGIC_CMD
9658
9659# Used on cygwin: DLL creation program.
9660DLLTOOL="$DLLTOOL"
9661
9662# Used on cygwin: object dumper.
9663OBJDUMP="$OBJDUMP"
9664
9665# Used on cygwin: assembler.
9666AS="$AS"
9667
9668# The name of the directory that contains temporary libtool files.
9669objdir=$objdir
9670
9671# How to create reloadable object files.
9672reload_flag=$lt_reload_flag
9673reload_cmds=$lt_reload_cmds
9674
9675# How to pass a linker flag through the compiler.
9676wl=$lt_lt_prog_compiler_wl
9677
9678# Object file suffix (normally "o").
9679objext="$ac_objext"
9680
9681# Old archive suffix (normally "a").
9682libext="$libext"
9683
9684# Shared library suffix (normally ".so").
9685shrext_cmds='$shrext_cmds'
9686
9687# Executable file suffix (normally "").
9688exeext="$exeext"
9689
9690# Additional compiler flags for building library objects.
9691pic_flag=$lt_lt_prog_compiler_pic
9692pic_mode=$pic_mode
9693
9694# What is the maximum length of a command?
9695max_cmd_len=$lt_cv_sys_max_cmd_len
9696
9697# Does compiler simultaneously support -c and -o options?
9698compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9699
9700# Must we lock files when doing compilation?
9701need_locks=$lt_need_locks
9702
9703# Do we need the lib prefix for modules?
9704need_lib_prefix=$need_lib_prefix
9705
9706# Do we need a version for libraries?
9707need_version=$need_version
9708
9709# Whether dlopen is supported.
9710dlopen_support=$enable_dlopen
9711
9712# Whether dlopen of programs is supported.
9713dlopen_self=$enable_dlopen_self
9714
9715# Whether dlopen of statically linked programs is supported.
9716dlopen_self_static=$enable_dlopen_self_static
9717
9718# Compiler flag to prevent dynamic linking.
9719link_static_flag=$lt_lt_prog_compiler_static
9720
9721# Compiler flag to turn off builtin functions.
9722no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9723
9724# Compiler flag to allow reflexive dlopens.
9725export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9726
9727# Compiler flag to generate shared objects directly from archives.
9728whole_archive_flag_spec=$lt_whole_archive_flag_spec
9729
9730# Compiler flag to generate thread-safe objects.
9731thread_safe_flag_spec=$lt_thread_safe_flag_spec
9732
9733# Library versioning type.
9734version_type=$version_type
9735
9736# Format of library name prefix.
9737libname_spec=$lt_libname_spec
9738
9739# List of archive names.  First name is the real one, the rest are links.
9740# The last name is the one that the linker finds with -lNAME.
9741library_names_spec=$lt_library_names_spec
9742
9743# The coded name of the library, if different from the real name.
9744soname_spec=$lt_soname_spec
9745
9746# Commands used to build and install an old-style archive.
9747RANLIB=$lt_RANLIB
9748old_archive_cmds=$lt_old_archive_cmds
9749old_postinstall_cmds=$lt_old_postinstall_cmds
9750old_postuninstall_cmds=$lt_old_postuninstall_cmds
9751
9752# Create an old-style archive from a shared archive.
9753old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9754
9755# Create a temporary old-style archive to link instead of a shared archive.
9756old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9757
9758# Commands used to build and install a shared archive.
9759archive_cmds=$lt_archive_cmds
9760archive_expsym_cmds=$lt_archive_expsym_cmds
9761postinstall_cmds=$lt_postinstall_cmds
9762postuninstall_cmds=$lt_postuninstall_cmds
9763
9764# Commands used to build a loadable module (assumed same as above if empty)
9765module_cmds=$lt_module_cmds
9766module_expsym_cmds=$lt_module_expsym_cmds
9767
9768# Commands to strip libraries.
9769old_striplib=$lt_old_striplib
9770striplib=$lt_striplib
9771
9772# Dependencies to place before the objects being linked to create a
9773# shared library.
9774predep_objects=$lt_predep_objects
9775
9776# Dependencies to place after the objects being linked to create a
9777# shared library.
9778postdep_objects=$lt_postdep_objects
9779
9780# Dependencies to place before the objects being linked to create a
9781# shared library.
9782predeps=$lt_predeps
9783
9784# Dependencies to place after the objects being linked to create a
9785# shared library.
9786postdeps=$lt_postdeps
9787
9788# The library search path used internally by the compiler when linking
9789# a shared library.
9790compiler_lib_search_path=$lt_compiler_lib_search_path
9791
9792# Method to check whether dependent libraries are shared objects.
9793deplibs_check_method=$lt_deplibs_check_method
9794
9795# Command to use when deplibs_check_method == file_magic.
9796file_magic_cmd=$lt_file_magic_cmd
9797
9798# Flag that allows shared libraries with undefined symbols to be built.
9799allow_undefined_flag=$lt_allow_undefined_flag
9800
9801# Flag that forces no undefined symbols.
9802no_undefined_flag=$lt_no_undefined_flag
9803
9804# Commands used to finish a libtool library installation in a directory.
9805finish_cmds=$lt_finish_cmds
9806
9807# Same as above, but a single script fragment to be evaled but not shown.
9808finish_eval=$lt_finish_eval
9809
9810# Take the output of nm and produce a listing of raw symbols and C names.
9811global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9812
9813# Transform the output of nm in a proper C declaration
9814global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9815
9816# Transform the output of nm in a C name address pair
9817global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9818
9819# This is the shared library runtime path variable.
9820runpath_var=$runpath_var
9821
9822# This is the shared library path variable.
9823shlibpath_var=$shlibpath_var
9824
9825# Is shlibpath searched before the hard-coded library search path?
9826shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9827
9828# How to hardcode a shared library path into an executable.
9829hardcode_action=$hardcode_action
9830
9831# Whether we should hardcode library paths into libraries.
9832hardcode_into_libs=$hardcode_into_libs
9833
9834# Flag to hardcode \$libdir into a binary during linking.
9835# This must work even if \$libdir does not exist.
9836hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9837
9838# If ld is used when linking, flag to hardcode \$libdir into
9839# a binary during linking. This must work even if \$libdir does
9840# not exist.
9841hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9842
9843# Whether we need a single -rpath flag with a separated argument.
9844hardcode_libdir_separator=$lt_hardcode_libdir_separator
9845
9846# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9847# resulting binary.
9848hardcode_direct=$hardcode_direct
9849
9850# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9851# resulting binary.
9852hardcode_minus_L=$hardcode_minus_L
9853
9854# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9855# the resulting binary.
9856hardcode_shlibpath_var=$hardcode_shlibpath_var
9857
9858# Set to yes if building a shared library automatically hardcodes DIR into the library
9859# and all subsequent libraries and executables linked against it.
9860hardcode_automatic=$hardcode_automatic
9861
9862# Variables whose values should be saved in libtool wrapper scripts and
9863# restored at relink time.
9864variables_saved_for_relink="$variables_saved_for_relink"
9865
9866# Whether libtool must link a program against all its dependency libraries.
9867link_all_deplibs=$link_all_deplibs
9868
9869# Compile-time system search path for libraries
9870sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9871
9872# Run-time system search path for libraries
9873sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9874
9875# Fix the shell variable \$srcfile for the compiler.
9876fix_srcfile_path=$lt_fix_srcfile_path
9877
9878# Set to yes if exported symbols are required.
9879always_export_symbols=$always_export_symbols
9880
9881# The commands to list exported symbols.
9882export_symbols_cmds=$lt_export_symbols_cmds
9883
9884# The commands to extract the exported symbol list from a shared archive.
9885extract_expsyms_cmds=$lt_extract_expsyms_cmds
9886
9887# Symbols that should not be listed in the preloaded symbols.
9888exclude_expsyms=$lt_exclude_expsyms
9889
9890# Symbols that must always be exported.
9891include_expsyms=$lt_include_expsyms
9892
9893# ### END LIBTOOL CONFIG
9894
9895__EOF__
9896
9897
9898  case $host_os in
9899  aix3*)
9900    cat <<\EOF >> "$cfgfile"
9901
9902# AIX sometimes has problems with the GCC collect2 program.  For some
9903# reason, if we set the COLLECT_NAMES environment variable, the problems
9904# vanish in a puff of smoke.
9905if test "X${COLLECT_NAMES+set}" != Xset; then
9906  COLLECT_NAMES=
9907  export COLLECT_NAMES
9908fi
9909EOF
9910    ;;
9911  esac
9912
9913  # We use sed instead of cat because bash on DJGPP gets confused if
9914  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9915  # text mode, it properly converts lines to CR/LF.  This bash problem
9916  # is reportedly fixed, but why not run on old versions too?
9917  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9918
9919  mv -f "$cfgfile" "$ofile" || \
9920    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9921  chmod +x "$ofile"
9922
9923else
9924  # If there is no Makefile yet, we rely on a make rule to execute
9925  # `config.status --recheck' to rerun these tests and create the
9926  # libtool script then.
9927  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9928  if test -f "$ltmain_in"; then
9929    test -f Makefile && make "$ltmain"
9930  fi
9931fi
9932
9933
9934ac_ext=c
9935ac_cpp='$CPP $CPPFLAGS'
9936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9938ac_compiler_gnu=$ac_cv_c_compiler_gnu
9939
9940CC="$lt_save_CC"
9941
9942
9943# Check whether --with-tags was given.
9944if test "${with_tags+set}" = set; then
9945  withval=$with_tags; tagnames="$withval"
9946fi
9947
9948
9949if test -f "$ltmain" && test -n "$tagnames"; then
9950  if test ! -f "${ofile}"; then
9951    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9952echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9953  fi
9954
9955  if test -z "$LTCC"; then
9956    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9957    if test -z "$LTCC"; then
9958      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9959echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9960    else
9961      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9962echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9963    fi
9964  fi
9965  if test -z "$LTCFLAGS"; then
9966    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9967  fi
9968
9969  # Extract list of available tagged configurations in $ofile.
9970  # Note that this assumes the entire list is on one line.
9971  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9972
9973  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9974  for tagname in $tagnames; do
9975    IFS="$lt_save_ifs"
9976    # Check whether tagname contains only valid characters
9977    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9978    "") ;;
9979    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9980echo "$as_me: error: invalid tag name: $tagname" >&2;}
9981   { (exit 1); exit 1; }; }
9982	;;
9983    esac
9984
9985    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9986    then
9987      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9988echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9989   { (exit 1); exit 1; }; }
9990    fi
9991
9992    # Update the list of available tags.
9993    if test -n "$tagname"; then
9994      echo appending configuration tag \"$tagname\" to $ofile
9995
9996      case $tagname in
9997      CXX)
9998	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9999	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10000	    (test "X$CXX" != "Xg++"))) ; then
10001	  ac_ext=cpp
10002ac_cpp='$CXXCPP $CPPFLAGS'
10003ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10004ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10005ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10006
10007
10008
10009
10010archive_cmds_need_lc_CXX=no
10011allow_undefined_flag_CXX=
10012always_export_symbols_CXX=no
10013archive_expsym_cmds_CXX=
10014export_dynamic_flag_spec_CXX=
10015hardcode_direct_CXX=no
10016hardcode_libdir_flag_spec_CXX=
10017hardcode_libdir_flag_spec_ld_CXX=
10018hardcode_libdir_separator_CXX=
10019hardcode_minus_L_CXX=no
10020hardcode_shlibpath_var_CXX=unsupported
10021hardcode_automatic_CXX=no
10022module_cmds_CXX=
10023module_expsym_cmds_CXX=
10024link_all_deplibs_CXX=unknown
10025old_archive_cmds_CXX=$old_archive_cmds
10026no_undefined_flag_CXX=
10027whole_archive_flag_spec_CXX=
10028enable_shared_with_static_runtimes_CXX=no
10029
10030# Dependencies to place before and after the object being linked:
10031predep_objects_CXX=
10032postdep_objects_CXX=
10033predeps_CXX=
10034postdeps_CXX=
10035compiler_lib_search_path_CXX=
10036
10037# Source file extension for C++ test sources.
10038ac_ext=cpp
10039
10040# Object file extension for compiled C++ test sources.
10041objext=o
10042objext_CXX=$objext
10043
10044# Code to be used in simple compile tests
10045lt_simple_compile_test_code="int some_variable = 0;"
10046
10047# Code to be used in simple link tests
10048lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10049
10050# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10051
10052# If no C compiler was specified, use CC.
10053LTCC=${LTCC-"$CC"}
10054
10055# If no C compiler flags were specified, use CFLAGS.
10056LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10057
10058# Allow CC to be a program name with arguments.
10059compiler=$CC
10060
10061
10062# save warnings/boilerplate of simple test code
10063ac_outfile=conftest.$ac_objext
10064echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10065eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10066_lt_compiler_boilerplate=`cat conftest.err`
10067$rm conftest*
10068
10069ac_outfile=conftest.$ac_objext
10070echo "$lt_simple_link_test_code" >conftest.$ac_ext
10071eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10072_lt_linker_boilerplate=`cat conftest.err`
10073$rm conftest*
10074
10075
10076# Allow CC to be a program name with arguments.
10077lt_save_CC=$CC
10078lt_save_LD=$LD
10079lt_save_GCC=$GCC
10080GCC=$GXX
10081lt_save_with_gnu_ld=$with_gnu_ld
10082lt_save_path_LD=$lt_cv_path_LD
10083if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10084  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10085else
10086  $as_unset lt_cv_prog_gnu_ld
10087fi
10088if test -n "${lt_cv_path_LDCXX+set}"; then
10089  lt_cv_path_LD=$lt_cv_path_LDCXX
10090else
10091  $as_unset lt_cv_path_LD
10092fi
10093test -z "${LDCXX+set}" || LD=$LDCXX
10094CC=${CXX-"c++"}
10095compiler=$CC
10096compiler_CXX=$CC
10097for cc_temp in $compiler""; do
10098  case $cc_temp in
10099    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10100    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10101    \-*) ;;
10102    *) break;;
10103  esac
10104done
10105cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10106
10107
10108# We don't want -fno-exception wen compiling C++ code, so set the
10109# no_builtin_flag separately
10110if test "$GXX" = yes; then
10111  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10112else
10113  lt_prog_compiler_no_builtin_flag_CXX=
10114fi
10115
10116if test "$GXX" = yes; then
10117  # Set up default GNU C++ configuration
10118
10119
10120# Check whether --with-gnu-ld was given.
10121if test "${with_gnu_ld+set}" = set; then
10122  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10123else
10124  with_gnu_ld=no
10125fi
10126
10127ac_prog=ld
10128if test "$GCC" = yes; then
10129  # Check if gcc -print-prog-name=ld gives a path.
10130  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10131echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10132  case $host in
10133  *-*-mingw*)
10134    # gcc leaves a trailing carriage return which upsets mingw
10135    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10136  *)
10137    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10138  esac
10139  case $ac_prog in
10140    # Accept absolute paths.
10141    [\\/]* | ?:[\\/]*)
10142      re_direlt='/[^/][^/]*/\.\./'
10143      # Canonicalize the pathname of ld
10144      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10145      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10146	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10147      done
10148      test -z "$LD" && LD="$ac_prog"
10149      ;;
10150  "")
10151    # If it fails, then pretend we aren't using GCC.
10152    ac_prog=ld
10153    ;;
10154  *)
10155    # If it is relative, then search for the first ld in PATH.
10156    with_gnu_ld=unknown
10157    ;;
10158  esac
10159elif test "$with_gnu_ld" = yes; then
10160  { echo "$as_me:$LINENO: checking for GNU ld" >&5
10161echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10162else
10163  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10164echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10165fi
10166if test "${lt_cv_path_LD+set}" = set; then
10167  echo $ECHO_N "(cached) $ECHO_C" >&6
10168else
10169  if test -z "$LD"; then
10170  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10171  for ac_dir in $PATH; do
10172    IFS="$lt_save_ifs"
10173    test -z "$ac_dir" && ac_dir=.
10174    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10175      lt_cv_path_LD="$ac_dir/$ac_prog"
10176      # Check to see if the program is GNU ld.  I'd rather use --version,
10177      # but apparently some variants of GNU ld only accept -v.
10178      # Break only if it was the GNU/non-GNU ld that we prefer.
10179      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10180      *GNU* | *'with BFD'*)
10181	test "$with_gnu_ld" != no && break
10182	;;
10183      *)
10184	test "$with_gnu_ld" != yes && break
10185	;;
10186      esac
10187    fi
10188  done
10189  IFS="$lt_save_ifs"
10190else
10191  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10192fi
10193fi
10194
10195LD="$lt_cv_path_LD"
10196if test -n "$LD"; then
10197  { echo "$as_me:$LINENO: result: $LD" >&5
10198echo "${ECHO_T}$LD" >&6; }
10199else
10200  { echo "$as_me:$LINENO: result: no" >&5
10201echo "${ECHO_T}no" >&6; }
10202fi
10203test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10204echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10205   { (exit 1); exit 1; }; }
10206{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10207echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10208if test "${lt_cv_prog_gnu_ld+set}" = set; then
10209  echo $ECHO_N "(cached) $ECHO_C" >&6
10210else
10211  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10212case `$LD -v 2>&1 </dev/null` in
10213*GNU* | *'with BFD'*)
10214  lt_cv_prog_gnu_ld=yes
10215  ;;
10216*)
10217  lt_cv_prog_gnu_ld=no
10218  ;;
10219esac
10220fi
10221{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10222echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10223with_gnu_ld=$lt_cv_prog_gnu_ld
10224
10225
10226
10227  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10228  # archiving commands below assume that GNU ld is being used.
10229  if test "$with_gnu_ld" = yes; then
10230    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10231    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'
10232
10233    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10234    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10235
10236    # If archive_cmds runs LD, not CC, wlarc should be empty
10237    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10238    #     investigate it a little bit more. (MM)
10239    wlarc='${wl}'
10240
10241    # ancient GNU ld didn't support --whole-archive et. al.
10242    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10243	grep 'no-whole-archive' > /dev/null; then
10244      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10245    else
10246      whole_archive_flag_spec_CXX=
10247    fi
10248  else
10249    with_gnu_ld=no
10250    wlarc=
10251
10252    # A generic and very simple default shared library creation
10253    # command for GNU C++ for the case where it uses the native
10254    # linker, instead of GNU ld.  If possible, this setting should
10255    # overridden to take advantage of the native linker features on
10256    # the platform it is being used on.
10257    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10258  fi
10259
10260  # Commands to make compiler produce verbose output that lists
10261  # what "hidden" libraries, object files and flags are used when
10262  # linking a shared library.
10263  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10264
10265else
10266  GXX=no
10267  with_gnu_ld=no
10268  wlarc=
10269fi
10270
10271# PORTME: fill in a description of your system's C++ link characteristics
10272{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10273echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10274ld_shlibs_CXX=yes
10275case $host_os in
10276  aix3*)
10277    # FIXME: insert proper C++ library support
10278    ld_shlibs_CXX=no
10279    ;;
10280  aix4* | aix5*)
10281    if test "$host_cpu" = ia64; then
10282      # On IA64, the linker does run time linking by default, so we don't
10283      # have to do anything special.
10284      aix_use_runtimelinking=no
10285      exp_sym_flag='-Bexport'
10286      no_entry_flag=""
10287    else
10288      aix_use_runtimelinking=no
10289
10290      # Test if we are trying to use run time linking or normal
10291      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10292      # need to do runtime linking.
10293      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10294	for ld_flag in $LDFLAGS; do
10295	  case $ld_flag in
10296	  *-brtl*)
10297	    aix_use_runtimelinking=yes
10298	    break
10299	    ;;
10300	  esac
10301	done
10302	;;
10303      esac
10304
10305      exp_sym_flag='-bexport'
10306      no_entry_flag='-bnoentry'
10307    fi
10308
10309    # When large executables or shared objects are built, AIX ld can
10310    # have problems creating the table of contents.  If linking a library
10311    # or program results in "error TOC overflow" add -mminimal-toc to
10312    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10313    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10314
10315    archive_cmds_CXX=''
10316    hardcode_direct_CXX=yes
10317    hardcode_libdir_separator_CXX=':'
10318    link_all_deplibs_CXX=yes
10319
10320    if test "$GXX" = yes; then
10321      case $host_os in aix4.[012]|aix4.[012].*)
10322      # We only want to do this on AIX 4.2 and lower, the check
10323      # below for broken collect2 doesn't work under 4.3+
10324	collect2name=`${CC} -print-prog-name=collect2`
10325	if test -f "$collect2name" && \
10326	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10327	then
10328	  # We have reworked collect2
10329	  :
10330	else
10331	  # We have old collect2
10332	  hardcode_direct_CXX=unsupported
10333	  # It fails to find uninstalled libraries when the uninstalled
10334	  # path is not listed in the libpath.  Setting hardcode_minus_L
10335	  # to unsupported forces relinking
10336	  hardcode_minus_L_CXX=yes
10337	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10338	  hardcode_libdir_separator_CXX=
10339	fi
10340	;;
10341      esac
10342      shared_flag='-shared'
10343      if test "$aix_use_runtimelinking" = yes; then
10344	shared_flag="$shared_flag "'${wl}-G'
10345      fi
10346    else
10347      # not using gcc
10348      if test "$host_cpu" = ia64; then
10349	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10350	# chokes on -Wl,-G. The following line is correct:
10351	shared_flag='-G'
10352      else
10353	if test "$aix_use_runtimelinking" = yes; then
10354	  shared_flag='${wl}-G'
10355	else
10356	  shared_flag='${wl}-bM:SRE'
10357	fi
10358      fi
10359    fi
10360
10361    # It seems that -bexpall does not export symbols beginning with
10362    # underscore (_), so it is better to generate a list of symbols to export.
10363    always_export_symbols_CXX=yes
10364    if test "$aix_use_runtimelinking" = yes; then
10365      # Warning - without using the other runtime loading flags (-brtl),
10366      # -berok will link without error, but may produce a broken library.
10367      allow_undefined_flag_CXX='-berok'
10368      # Determine the default libpath from the value encoded in an empty executable.
10369      cat >conftest.$ac_ext <<_ACEOF
10370/* confdefs.h.  */
10371_ACEOF
10372cat confdefs.h >>conftest.$ac_ext
10373cat >>conftest.$ac_ext <<_ACEOF
10374/* end confdefs.h.  */
10375
10376int
10377main ()
10378{
10379
10380  ;
10381  return 0;
10382}
10383_ACEOF
10384rm -f conftest.$ac_objext conftest$ac_exeext
10385if { (ac_try="$ac_link"
10386case "(($ac_try" in
10387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388  *) ac_try_echo=$ac_try;;
10389esac
10390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391  (eval "$ac_link") 2>conftest.er1
10392  ac_status=$?
10393  grep -v '^ *+' conftest.er1 >conftest.err
10394  rm -f conftest.er1
10395  cat conftest.err >&5
10396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397  (exit $ac_status); } && {
10398	 test -z "$ac_cxx_werror_flag" ||
10399	 test ! -s conftest.err
10400       } && test -s conftest$ac_exeext &&
10401       $as_test_x conftest$ac_exeext; then
10402
10403lt_aix_libpath_sed='
10404    /Import File Strings/,/^$/ {
10405	/^0/ {
10406	    s/^0  *\(.*\)$/\1/
10407	    p
10408	}
10409    }'
10410aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10411# Check for a 64-bit object if we didn't find anything.
10412if test -z "$aix_libpath"; then
10413  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10414fi
10415else
10416  echo "$as_me: failed program was:" >&5
10417sed 's/^/| /' conftest.$ac_ext >&5
10418
10419
10420fi
10421
10422rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10423      conftest$ac_exeext conftest.$ac_ext
10424if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10425
10426      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10427
10428      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"
10429     else
10430      if test "$host_cpu" = ia64; then
10431	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10432	allow_undefined_flag_CXX="-z nodefs"
10433	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"
10434      else
10435	# Determine the default libpath from the value encoded in an empty executable.
10436	cat >conftest.$ac_ext <<_ACEOF
10437/* confdefs.h.  */
10438_ACEOF
10439cat confdefs.h >>conftest.$ac_ext
10440cat >>conftest.$ac_ext <<_ACEOF
10441/* end confdefs.h.  */
10442
10443int
10444main ()
10445{
10446
10447  ;
10448  return 0;
10449}
10450_ACEOF
10451rm -f conftest.$ac_objext conftest$ac_exeext
10452if { (ac_try="$ac_link"
10453case "(($ac_try" in
10454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455  *) ac_try_echo=$ac_try;;
10456esac
10457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458  (eval "$ac_link") 2>conftest.er1
10459  ac_status=$?
10460  grep -v '^ *+' conftest.er1 >conftest.err
10461  rm -f conftest.er1
10462  cat conftest.err >&5
10463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464  (exit $ac_status); } && {
10465	 test -z "$ac_cxx_werror_flag" ||
10466	 test ! -s conftest.err
10467       } && test -s conftest$ac_exeext &&
10468       $as_test_x conftest$ac_exeext; then
10469
10470lt_aix_libpath_sed='
10471    /Import File Strings/,/^$/ {
10472	/^0/ {
10473	    s/^0  *\(.*\)$/\1/
10474	    p
10475	}
10476    }'
10477aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10478# Check for a 64-bit object if we didn't find anything.
10479if test -z "$aix_libpath"; then
10480  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10481fi
10482else
10483  echo "$as_me: failed program was:" >&5
10484sed 's/^/| /' conftest.$ac_ext >&5
10485
10486
10487fi
10488
10489rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10490      conftest$ac_exeext conftest.$ac_ext
10491if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10492
10493	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10494	# Warning - without using the other run time loading flags,
10495	# -berok will link without error, but may produce a broken library.
10496	no_undefined_flag_CXX=' ${wl}-bernotok'
10497	allow_undefined_flag_CXX=' ${wl}-berok'
10498	# Exported symbols can be pulled into shared objects from archives
10499	whole_archive_flag_spec_CXX='$convenience'
10500	archive_cmds_need_lc_CXX=yes
10501	# This is similar to how AIX traditionally builds its shared libraries.
10502	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'
10503      fi
10504    fi
10505    ;;
10506
10507  beos*)
10508    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10509      allow_undefined_flag_CXX=unsupported
10510      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10511      # support --undefined.  This deserves some investigation.  FIXME
10512      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10513    else
10514      ld_shlibs_CXX=no
10515    fi
10516    ;;
10517
10518  chorus*)
10519    case $cc_basename in
10520      *)
10521	# FIXME: insert proper C++ library support
10522	ld_shlibs_CXX=no
10523	;;
10524    esac
10525    ;;
10526
10527  cygwin* | mingw* | pw32*)
10528    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10529    # as there is no search path for DLLs.
10530    hardcode_libdir_flag_spec_CXX='-L$libdir'
10531    allow_undefined_flag_CXX=unsupported
10532    always_export_symbols_CXX=no
10533    enable_shared_with_static_runtimes_CXX=yes
10534
10535    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10536      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'
10537      # If the export-symbols file already is a .def file (1st line
10538      # is EXPORTS), use it as is; otherwise, prepend...
10539      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10540	cp $export_symbols $output_objdir/$soname.def;
10541      else
10542	echo EXPORTS > $output_objdir/$soname.def;
10543	cat $export_symbols >> $output_objdir/$soname.def;
10544      fi~
10545      $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'
10546    else
10547      ld_shlibs_CXX=no
10548    fi
10549  ;;
10550      darwin* | rhapsody*)
10551        case $host_os in
10552        rhapsody* | darwin1.[012])
10553         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10554         ;;
10555       *) # Darwin 1.3 on
10556         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10557           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10558         else
10559           case ${MACOSX_DEPLOYMENT_TARGET} in
10560             10.[012])
10561               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10562               ;;
10563             10.*)
10564               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10565               ;;
10566           esac
10567         fi
10568         ;;
10569        esac
10570      archive_cmds_need_lc_CXX=no
10571      hardcode_direct_CXX=no
10572      hardcode_automatic_CXX=yes
10573      hardcode_shlibpath_var_CXX=unsupported
10574      whole_archive_flag_spec_CXX=''
10575      link_all_deplibs_CXX=yes
10576
10577    if test "$GXX" = yes ; then
10578      lt_int_apple_cc_single_mod=no
10579      output_verbose_link_cmd='echo'
10580      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10581       lt_int_apple_cc_single_mod=yes
10582      fi
10583      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10584       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10585      else
10586          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'
10587        fi
10588        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10589        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10590          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10591            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}'
10592          else
10593            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}'
10594          fi
10595            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}'
10596      else
10597      case $cc_basename in
10598        xlc*)
10599         output_verbose_link_cmd='echo'
10600          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
10601          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10602          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10603          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10604          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}'
10605          ;;
10606       *)
10607         ld_shlibs_CXX=no
10608          ;;
10609      esac
10610      fi
10611        ;;
10612
10613  dgux*)
10614    case $cc_basename in
10615      ec++*)
10616	# FIXME: insert proper C++ library support
10617	ld_shlibs_CXX=no
10618	;;
10619      ghcx*)
10620	# Green Hills C++ Compiler
10621	# FIXME: insert proper C++ library support
10622	ld_shlibs_CXX=no
10623	;;
10624      *)
10625	# FIXME: insert proper C++ library support
10626	ld_shlibs_CXX=no
10627	;;
10628    esac
10629    ;;
10630  freebsd[12]*)
10631    # C++ shared libraries reported to be fairly broken before switch to ELF
10632    ld_shlibs_CXX=no
10633    ;;
10634  freebsd-elf*)
10635    archive_cmds_need_lc_CXX=no
10636    ;;
10637  freebsd* | dragonfly*)
10638    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10639    # conventions
10640    ld_shlibs_CXX=yes
10641    ;;
10642  gnu*)
10643    ;;
10644  hpux9*)
10645    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10646    hardcode_libdir_separator_CXX=:
10647    export_dynamic_flag_spec_CXX='${wl}-E'
10648    hardcode_direct_CXX=yes
10649    hardcode_minus_L_CXX=yes # Not in the search PATH,
10650				# but as the default
10651				# location of the library.
10652
10653    case $cc_basename in
10654    CC*)
10655      # FIXME: insert proper C++ library support
10656      ld_shlibs_CXX=no
10657      ;;
10658    aCC*)
10659      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'
10660      # Commands to make compiler produce verbose output that lists
10661      # what "hidden" libraries, object files and flags are used when
10662      # linking a shared library.
10663      #
10664      # There doesn't appear to be a way to prevent this compiler from
10665      # explicitly linking system object files so we need to strip them
10666      # from the output so that they don't get included in the library
10667      # dependencies.
10668      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'
10669      ;;
10670    *)
10671      if test "$GXX" = yes; then
10672        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'
10673      else
10674        # FIXME: insert proper C++ library support
10675        ld_shlibs_CXX=no
10676      fi
10677      ;;
10678    esac
10679    ;;
10680  hpux10*|hpux11*)
10681    if test $with_gnu_ld = no; then
10682      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10683      hardcode_libdir_separator_CXX=:
10684
10685      case $host_cpu in
10686      hppa*64*|ia64*) ;;
10687      *)
10688	export_dynamic_flag_spec_CXX='${wl}-E'
10689        ;;
10690      esac
10691    fi
10692    case $host_cpu in
10693    hppa*64*|ia64*)
10694      hardcode_direct_CXX=no
10695      hardcode_shlibpath_var_CXX=no
10696      ;;
10697    *)
10698      hardcode_direct_CXX=yes
10699      hardcode_minus_L_CXX=yes # Not in the search PATH,
10700					      # but as the default
10701					      # location of the library.
10702      ;;
10703    esac
10704
10705    case $cc_basename in
10706      CC*)
10707	# FIXME: insert proper C++ library support
10708	ld_shlibs_CXX=no
10709	;;
10710      aCC*)
10711	case $host_cpu in
10712	hppa*64*)
10713	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10714	  ;;
10715	ia64*)
10716	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10717	  ;;
10718	*)
10719	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10720	  ;;
10721	esac
10722	# Commands to make compiler produce verbose output that lists
10723	# what "hidden" libraries, object files and flags are used when
10724	# linking a shared library.
10725	#
10726	# There doesn't appear to be a way to prevent this compiler from
10727	# explicitly linking system object files so we need to strip them
10728	# from the output so that they don't get included in the library
10729	# dependencies.
10730	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'
10731	;;
10732      *)
10733	if test "$GXX" = yes; then
10734	  if test $with_gnu_ld = no; then
10735	    case $host_cpu in
10736	    hppa*64*)
10737	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10738	      ;;
10739	    ia64*)
10740	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10741	      ;;
10742	    *)
10743	      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'
10744	      ;;
10745	    esac
10746	  fi
10747	else
10748	  # FIXME: insert proper C++ library support
10749	  ld_shlibs_CXX=no
10750	fi
10751	;;
10752    esac
10753    ;;
10754  interix[3-9]*)
10755    hardcode_direct_CXX=no
10756    hardcode_shlibpath_var_CXX=no
10757    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10758    export_dynamic_flag_spec_CXX='${wl}-E'
10759    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10760    # Instead, shared libraries are loaded at an image base (0x10000000 by
10761    # default) and relocated if they conflict, which is a slow very memory
10762    # consuming and fragmenting process.  To avoid this, we pick a random,
10763    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10764    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10765    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'
10766    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'
10767    ;;
10768  irix5* | irix6*)
10769    case $cc_basename in
10770      CC*)
10771	# SGI C++
10772	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'
10773
10774	# Archives containing C++ object files must be created using
10775	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10776	# necessary to make sure instantiated templates are included
10777	# in the archive.
10778	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10779	;;
10780      *)
10781	if test "$GXX" = yes; then
10782	  if test "$with_gnu_ld" = no; then
10783	    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'
10784	  else
10785	    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'
10786	  fi
10787	fi
10788	link_all_deplibs_CXX=yes
10789	;;
10790    esac
10791    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10792    hardcode_libdir_separator_CXX=:
10793    ;;
10794  linux* | k*bsd*-gnu)
10795    case $cc_basename in
10796      KCC*)
10797	# Kuck and Associates, Inc. (KAI) C++ Compiler
10798
10799	# KCC will only create a shared library if the output file
10800	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10801	# to its proper name (with version) after linking.
10802	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'
10803	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'
10804	# Commands to make compiler produce verbose output that lists
10805	# what "hidden" libraries, object files and flags are used when
10806	# linking a shared library.
10807	#
10808	# There doesn't appear to be a way to prevent this compiler from
10809	# explicitly linking system object files so we need to strip them
10810	# from the output so that they don't get included in the library
10811	# dependencies.
10812	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'
10813
10814	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10815	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10816
10817	# Archives containing C++ object files must be created using
10818	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10819	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10820	;;
10821      icpc*)
10822	# Intel C++
10823	with_gnu_ld=yes
10824	# version 8.0 and above of icpc choke on multiply defined symbols
10825	# if we add $predep_objects and $postdep_objects, however 7.1 and
10826	# earlier do not add the objects themselves.
10827	case `$CC -V 2>&1` in
10828	*"Version 7."*)
10829  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10830  	  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'
10831	  ;;
10832	*)  # Version 8.0 or newer
10833	  tmp_idyn=
10834	  case $host_cpu in
10835	    ia64*) tmp_idyn=' -i_dynamic';;
10836	  esac
10837  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10838	  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'
10839	  ;;
10840	esac
10841	archive_cmds_need_lc_CXX=no
10842	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10843	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10844	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10845	;;
10846      pgCC*)
10847        # Portland Group C++ compiler
10848	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10849  	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'
10850
10851	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10852	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10853	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'
10854        ;;
10855      cxx*)
10856	# Compaq C++
10857	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10858	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'
10859
10860	runpath_var=LD_RUN_PATH
10861	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10862	hardcode_libdir_separator_CXX=:
10863
10864	# Commands to make compiler produce verbose output that lists
10865	# what "hidden" libraries, object files and flags are used when
10866	# linking a shared library.
10867	#
10868	# There doesn't appear to be a way to prevent this compiler from
10869	# explicitly linking system object files so we need to strip them
10870	# from the output so that they don't get included in the library
10871	# dependencies.
10872	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'
10873	;;
10874      *)
10875	case `$CC -V 2>&1 | sed 5q` in
10876	*Sun\ C*)
10877	  # Sun C++ 5.9
10878	  no_undefined_flag_CXX=' -zdefs'
10879	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10880	  archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
10881	  hardcode_libdir_flag_spec_CXX='-R$libdir'
10882	  whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10883
10884	  # Not sure whether something based on
10885	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
10886	  # would be better.
10887	  output_verbose_link_cmd='echo'
10888
10889	  # Archives containing C++ object files must be created using
10890	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10891	  # necessary to make sure instantiated templates are included
10892	  # in the archive.
10893	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10894	  ;;
10895	esac
10896	;;
10897    esac
10898    ;;
10899  lynxos*)
10900    # FIXME: insert proper C++ library support
10901    ld_shlibs_CXX=no
10902    ;;
10903  m88k*)
10904    # FIXME: insert proper C++ library support
10905    ld_shlibs_CXX=no
10906    ;;
10907  mvs*)
10908    case $cc_basename in
10909      cxx*)
10910	# FIXME: insert proper C++ library support
10911	ld_shlibs_CXX=no
10912	;;
10913      *)
10914	# FIXME: insert proper C++ library support
10915	ld_shlibs_CXX=no
10916	;;
10917    esac
10918    ;;
10919  netbsd*)
10920    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10921      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10922      wlarc=
10923      hardcode_libdir_flag_spec_CXX='-R$libdir'
10924      hardcode_direct_CXX=yes
10925      hardcode_shlibpath_var_CXX=no
10926    fi
10927    # Workaround some broken pre-1.5 toolchains
10928    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10929    ;;
10930  openbsd2*)
10931    # C++ shared libraries are fairly broken
10932    ld_shlibs_CXX=no
10933    ;;
10934  openbsd*)
10935    if test -f /usr/libexec/ld.so; then
10936      hardcode_direct_CXX=yes
10937      hardcode_shlibpath_var_CXX=no
10938      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10939      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10940      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10941	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10942	export_dynamic_flag_spec_CXX='${wl}-E'
10943	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10944      fi
10945      output_verbose_link_cmd='echo'
10946    else
10947      ld_shlibs_CXX=no
10948    fi
10949    ;;
10950  osf3*)
10951    case $cc_basename in
10952      KCC*)
10953	# Kuck and Associates, Inc. (KAI) C++ Compiler
10954
10955	# KCC will only create a shared library if the output file
10956	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10957	# to its proper name (with version) after linking.
10958	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'
10959
10960	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10961	hardcode_libdir_separator_CXX=:
10962
10963	# Archives containing C++ object files must be created using
10964	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10965	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10966
10967	;;
10968      RCC*)
10969	# Rational C++ 2.4.1
10970	# FIXME: insert proper C++ library support
10971	ld_shlibs_CXX=no
10972	;;
10973      cxx*)
10974	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10975	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'
10976
10977	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10978	hardcode_libdir_separator_CXX=:
10979
10980	# Commands to make compiler produce verbose output that lists
10981	# what "hidden" libraries, object files and flags are used when
10982	# linking a shared library.
10983	#
10984	# There doesn't appear to be a way to prevent this compiler from
10985	# explicitly linking system object files so we need to strip them
10986	# from the output so that they don't get included in the library
10987	# dependencies.
10988	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'
10989	;;
10990      *)
10991	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10992	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10993	  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'
10994
10995	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10996	  hardcode_libdir_separator_CXX=:
10997
10998	  # Commands to make compiler produce verbose output that lists
10999	  # what "hidden" libraries, object files and flags are used when
11000	  # linking a shared library.
11001	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11002
11003	else
11004	  # FIXME: insert proper C++ library support
11005	  ld_shlibs_CXX=no
11006	fi
11007	;;
11008    esac
11009    ;;
11010  osf4* | osf5*)
11011    case $cc_basename in
11012      KCC*)
11013	# Kuck and Associates, Inc. (KAI) C++ Compiler
11014
11015	# KCC will only create a shared library if the output file
11016	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11017	# to its proper name (with version) after linking.
11018	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'
11019
11020	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11021	hardcode_libdir_separator_CXX=:
11022
11023	# Archives containing C++ object files must be created using
11024	# the KAI C++ compiler.
11025	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11026	;;
11027      RCC*)
11028	# Rational C++ 2.4.1
11029	# FIXME: insert proper C++ library support
11030	ld_shlibs_CXX=no
11031	;;
11032      cxx*)
11033	allow_undefined_flag_CXX=' -expect_unresolved \*'
11034	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'
11035	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11036	  echo "-hidden">> $lib.exp~
11037	  $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~
11038	  $rm $lib.exp'
11039
11040	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11041	hardcode_libdir_separator_CXX=:
11042
11043	# Commands to make compiler produce verbose output that lists
11044	# what "hidden" libraries, object files and flags are used when
11045	# linking a shared library.
11046	#
11047	# There doesn't appear to be a way to prevent this compiler from
11048	# explicitly linking system object files so we need to strip them
11049	# from the output so that they don't get included in the library
11050	# dependencies.
11051	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'
11052	;;
11053      *)
11054	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11055	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11056	 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'
11057
11058	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11059	  hardcode_libdir_separator_CXX=:
11060
11061	  # Commands to make compiler produce verbose output that lists
11062	  # what "hidden" libraries, object files and flags are used when
11063	  # linking a shared library.
11064	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11065
11066	else
11067	  # FIXME: insert proper C++ library support
11068	  ld_shlibs_CXX=no
11069	fi
11070	;;
11071    esac
11072    ;;
11073  psos*)
11074    # FIXME: insert proper C++ library support
11075    ld_shlibs_CXX=no
11076    ;;
11077  sunos4*)
11078    case $cc_basename in
11079      CC*)
11080	# Sun C++ 4.x
11081	# FIXME: insert proper C++ library support
11082	ld_shlibs_CXX=no
11083	;;
11084      lcc*)
11085	# Lucid
11086	# FIXME: insert proper C++ library support
11087	ld_shlibs_CXX=no
11088	;;
11089      *)
11090	# FIXME: insert proper C++ library support
11091	ld_shlibs_CXX=no
11092	;;
11093    esac
11094    ;;
11095  solaris*)
11096    case $cc_basename in
11097      CC*)
11098	# Sun C++ 4.2, 5.x and Centerline C++
11099        archive_cmds_need_lc_CXX=yes
11100	no_undefined_flag_CXX=' -zdefs'
11101	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11102	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11103	$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'
11104
11105	hardcode_libdir_flag_spec_CXX='-R$libdir'
11106	hardcode_shlibpath_var_CXX=no
11107	case $host_os in
11108	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11109	  *)
11110	    # The compiler driver will combine and reorder linker options,
11111	    # but understands `-z linker_flag'.
11112	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11113	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11114	    ;;
11115	esac
11116	link_all_deplibs_CXX=yes
11117
11118	output_verbose_link_cmd='echo'
11119
11120	# Archives containing C++ object files must be created using
11121	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11122	# necessary to make sure instantiated templates are included
11123	# in the archive.
11124	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11125	;;
11126      gcx*)
11127	# Green Hills C++ Compiler
11128	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11129
11130	# The C++ compiler must be used to create the archive.
11131	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11132	;;
11133      *)
11134	# GNU C++ compiler with Solaris linker
11135	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11136	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11137	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11138	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11139	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11140		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11141
11142	    # Commands to make compiler produce verbose output that lists
11143	    # what "hidden" libraries, object files and flags are used when
11144	    # linking a shared library.
11145	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11146	  else
11147	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11148	    # platform.
11149	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11150	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11151		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11152
11153	    # Commands to make compiler produce verbose output that lists
11154	    # what "hidden" libraries, object files and flags are used when
11155	    # linking a shared library.
11156	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11157	  fi
11158
11159	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11160	  case $host_os in
11161	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11162	  *)
11163	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11164	    ;;
11165	  esac
11166	fi
11167	;;
11168    esac
11169    ;;
11170  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11171    no_undefined_flag_CXX='${wl}-z,text'
11172    archive_cmds_need_lc_CXX=no
11173    hardcode_shlibpath_var_CXX=no
11174    runpath_var='LD_RUN_PATH'
11175
11176    case $cc_basename in
11177      CC*)
11178	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11179	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11180	;;
11181      *)
11182	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11183	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11184	;;
11185    esac
11186    ;;
11187  sysv5* | sco3.2v5* | sco5v6*)
11188    # Note: We can NOT use -z defs as we might desire, because we do not
11189    # link with -lc, and that would cause any symbols used from libc to
11190    # always be unresolved, which means just about no library would
11191    # ever link correctly.  If we're not using GNU ld we use -z text
11192    # though, which does catch some bad symbols but isn't as heavy-handed
11193    # as -z defs.
11194    # For security reasons, it is highly recommended that you always
11195    # use absolute paths for naming shared libraries, and exclude the
11196    # DT_RUNPATH tag from executables and libraries.  But doing so
11197    # requires that you compile everything twice, which is a pain.
11198    # So that behaviour is only enabled if SCOABSPATH is set to a
11199    # non-empty value in the environment.  Most likely only useful for
11200    # creating official distributions of packages.
11201    # This is a hack until libtool officially supports absolute path
11202    # names for shared libraries.
11203    no_undefined_flag_CXX='${wl}-z,text'
11204    allow_undefined_flag_CXX='${wl}-z,nodefs'
11205    archive_cmds_need_lc_CXX=no
11206    hardcode_shlibpath_var_CXX=no
11207    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11208    hardcode_libdir_separator_CXX=':'
11209    link_all_deplibs_CXX=yes
11210    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11211    runpath_var='LD_RUN_PATH'
11212
11213    case $cc_basename in
11214      CC*)
11215	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11216	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11217	;;
11218      *)
11219	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11220	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11221	;;
11222    esac
11223    ;;
11224  tandem*)
11225    case $cc_basename in
11226      NCC*)
11227	# NonStop-UX NCC 3.20
11228	# FIXME: insert proper C++ library support
11229	ld_shlibs_CXX=no
11230	;;
11231      *)
11232	# FIXME: insert proper C++ library support
11233	ld_shlibs_CXX=no
11234	;;
11235    esac
11236    ;;
11237  vxworks*)
11238    # FIXME: insert proper C++ library support
11239    ld_shlibs_CXX=no
11240    ;;
11241  *)
11242    # FIXME: insert proper C++ library support
11243    ld_shlibs_CXX=no
11244    ;;
11245esac
11246{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11247echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11248test "$ld_shlibs_CXX" = no && can_build_shared=no
11249
11250GCC_CXX="$GXX"
11251LD_CXX="$LD"
11252
11253
11254cat > conftest.$ac_ext <<EOF
11255class Foo
11256{
11257public:
11258  Foo (void) { a = 0; }
11259private:
11260  int a;
11261};
11262EOF
11263
11264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11265  (eval $ac_compile) 2>&5
11266  ac_status=$?
11267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268  (exit $ac_status); }; then
11269  # Parse the compiler output and extract the necessary
11270  # objects, libraries and library flags.
11271
11272  # Sentinel used to keep track of whether or not we are before
11273  # the conftest object file.
11274  pre_test_object_deps_done=no
11275
11276  # The `*' in the case matches for architectures that use `case' in
11277  # $output_verbose_cmd can trigger glob expansion during the loop
11278  # eval without this substitution.
11279  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11280
11281  for p in `eval $output_verbose_link_cmd`; do
11282    case $p in
11283
11284    -L* | -R* | -l*)
11285       # Some compilers place space between "-{L,R}" and the path.
11286       # Remove the space.
11287       if test $p = "-L" \
11288	  || test $p = "-R"; then
11289	 prev=$p
11290	 continue
11291       else
11292	 prev=
11293       fi
11294
11295       if test "$pre_test_object_deps_done" = no; then
11296	 case $p in
11297	 -L* | -R*)
11298	   # Internal compiler library paths should come after those
11299	   # provided the user.  The postdeps already come after the
11300	   # user supplied libs so there is no need to process them.
11301	   if test -z "$compiler_lib_search_path_CXX"; then
11302	     compiler_lib_search_path_CXX="${prev}${p}"
11303	   else
11304	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11305	   fi
11306	   ;;
11307	 # The "-l" case would never come before the object being
11308	 # linked, so don't bother handling this case.
11309	 esac
11310       else
11311	 if test -z "$postdeps_CXX"; then
11312	   postdeps_CXX="${prev}${p}"
11313	 else
11314	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11315	 fi
11316       fi
11317       ;;
11318
11319    *.$objext)
11320       # This assumes that the test object file only shows up
11321       # once in the compiler output.
11322       if test "$p" = "conftest.$objext"; then
11323	 pre_test_object_deps_done=yes
11324	 continue
11325       fi
11326
11327       if test "$pre_test_object_deps_done" = no; then
11328	 if test -z "$predep_objects_CXX"; then
11329	   predep_objects_CXX="$p"
11330	 else
11331	   predep_objects_CXX="$predep_objects_CXX $p"
11332	 fi
11333       else
11334	 if test -z "$postdep_objects_CXX"; then
11335	   postdep_objects_CXX="$p"
11336	 else
11337	   postdep_objects_CXX="$postdep_objects_CXX $p"
11338	 fi
11339       fi
11340       ;;
11341
11342    *) ;; # Ignore the rest.
11343
11344    esac
11345  done
11346
11347  # Clean up.
11348  rm -f a.out a.exe
11349else
11350  echo "libtool.m4: error: problem compiling CXX test program"
11351fi
11352
11353$rm -f confest.$objext
11354
11355# PORTME: override above test on systems where it is broken
11356case $host_os in
11357interix[3-9]*)
11358  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11359  # hack all around it, let's just trust "g++" to DTRT.
11360  predep_objects_CXX=
11361  postdep_objects_CXX=
11362  postdeps_CXX=
11363  ;;
11364
11365linux*)
11366  case `$CC -V 2>&1 | sed 5q` in
11367  *Sun\ C*)
11368    # Sun C++ 5.9
11369    #
11370    # The more standards-conforming stlport4 library is
11371    # incompatible with the Cstd library. Avoid specifying
11372    # it if it's in CXXFLAGS. Ignore libCrun as
11373    # -library=stlport4 depends on it.
11374    case " $CXX $CXXFLAGS " in
11375    *" -library=stlport4 "*)
11376      solaris_use_stlport4=yes
11377      ;;
11378    esac
11379    if test "$solaris_use_stlport4" != yes; then
11380      postdeps_CXX='-library=Cstd -library=Crun'
11381    fi
11382    ;;
11383  esac
11384  ;;
11385
11386solaris*)
11387  case $cc_basename in
11388  CC*)
11389    # The more standards-conforming stlport4 library is
11390    # incompatible with the Cstd library. Avoid specifying
11391    # it if it's in CXXFLAGS. Ignore libCrun as
11392    # -library=stlport4 depends on it.
11393    case " $CXX $CXXFLAGS " in
11394    *" -library=stlport4 "*)
11395      solaris_use_stlport4=yes
11396      ;;
11397    esac
11398
11399    # Adding this requires a known-good setup of shared libraries for
11400    # Sun compiler versions before 5.6, else PIC objects from an old
11401    # archive will be linked into the output, leading to subtle bugs.
11402    if test "$solaris_use_stlport4" != yes; then
11403      postdeps_CXX='-library=Cstd -library=Crun'
11404    fi
11405    ;;
11406  esac
11407  ;;
11408esac
11409
11410
11411case " $postdeps_CXX " in
11412*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11413esac
11414
11415lt_prog_compiler_wl_CXX=
11416lt_prog_compiler_pic_CXX=
11417lt_prog_compiler_static_CXX=
11418
11419{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11420echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11421
11422  # C++ specific cases for pic, static, wl, etc.
11423  if test "$GXX" = yes; then
11424    lt_prog_compiler_wl_CXX='-Wl,'
11425    lt_prog_compiler_static_CXX='-static'
11426
11427    case $host_os in
11428    aix*)
11429      # All AIX code is PIC.
11430      if test "$host_cpu" = ia64; then
11431	# AIX 5 now supports IA64 processor
11432	lt_prog_compiler_static_CXX='-Bstatic'
11433      fi
11434      ;;
11435    amigaos*)
11436      # FIXME: we need at least 68020 code to build shared libraries, but
11437      # adding the `-m68020' flag to GCC prevents building anything better,
11438      # like `-m68040'.
11439      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11440      ;;
11441    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11442      # PIC is the default for these OSes.
11443      ;;
11444    mingw* | cygwin* | os2* | pw32*)
11445      # This hack is so that the source file can tell whether it is being
11446      # built for inclusion in a dll (and should export symbols for example).
11447      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11448      # (--disable-auto-import) libraries
11449      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11450      ;;
11451    darwin* | rhapsody*)
11452      # PIC is the default on this platform
11453      # Common symbols not allowed in MH_DYLIB files
11454      lt_prog_compiler_pic_CXX='-fno-common'
11455      ;;
11456    *djgpp*)
11457      # DJGPP does not support shared libraries at all
11458      lt_prog_compiler_pic_CXX=
11459      ;;
11460    interix[3-9]*)
11461      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11462      # Instead, we relocate shared libraries at runtime.
11463      ;;
11464    sysv4*MP*)
11465      if test -d /usr/nec; then
11466	lt_prog_compiler_pic_CXX=-Kconform_pic
11467      fi
11468      ;;
11469    hpux*)
11470      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11471      # not for PA HP-UX.
11472      case $host_cpu in
11473      hppa*64*|ia64*)
11474	;;
11475      *)
11476	lt_prog_compiler_pic_CXX='-fPIC'
11477	;;
11478      esac
11479      ;;
11480    *)
11481      lt_prog_compiler_pic_CXX='-fPIC'
11482      ;;
11483    esac
11484  else
11485    case $host_os in
11486      aix4* | aix5*)
11487	# All AIX code is PIC.
11488	if test "$host_cpu" = ia64; then
11489	  # AIX 5 now supports IA64 processor
11490	  lt_prog_compiler_static_CXX='-Bstatic'
11491	else
11492	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11493	fi
11494	;;
11495      chorus*)
11496	case $cc_basename in
11497	cxch68*)
11498	  # Green Hills C++ Compiler
11499	  # _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"
11500	  ;;
11501	esac
11502	;;
11503       darwin*)
11504         # PIC is the default on this platform
11505         # Common symbols not allowed in MH_DYLIB files
11506         case $cc_basename in
11507           xlc*)
11508           lt_prog_compiler_pic_CXX='-qnocommon'
11509           lt_prog_compiler_wl_CXX='-Wl,'
11510           ;;
11511         esac
11512       ;;
11513      dgux*)
11514	case $cc_basename in
11515	  ec++*)
11516	    lt_prog_compiler_pic_CXX='-KPIC'
11517	    ;;
11518	  ghcx*)
11519	    # Green Hills C++ Compiler
11520	    lt_prog_compiler_pic_CXX='-pic'
11521	    ;;
11522	  *)
11523	    ;;
11524	esac
11525	;;
11526      freebsd* | dragonfly*)
11527	# FreeBSD uses GNU C++
11528	;;
11529      hpux9* | hpux10* | hpux11*)
11530	case $cc_basename in
11531	  CC*)
11532	    lt_prog_compiler_wl_CXX='-Wl,'
11533	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11534	    if test "$host_cpu" != ia64; then
11535	      lt_prog_compiler_pic_CXX='+Z'
11536	    fi
11537	    ;;
11538	  aCC*)
11539	    lt_prog_compiler_wl_CXX='-Wl,'
11540	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11541	    case $host_cpu in
11542	    hppa*64*|ia64*)
11543	      # +Z the default
11544	      ;;
11545	    *)
11546	      lt_prog_compiler_pic_CXX='+Z'
11547	      ;;
11548	    esac
11549	    ;;
11550	  *)
11551	    ;;
11552	esac
11553	;;
11554      interix*)
11555	# This is c89, which is MS Visual C++ (no shared libs)
11556	# Anyone wants to do a port?
11557	;;
11558      irix5* | irix6* | nonstopux*)
11559	case $cc_basename in
11560	  CC*)
11561	    lt_prog_compiler_wl_CXX='-Wl,'
11562	    lt_prog_compiler_static_CXX='-non_shared'
11563	    # CC pic flag -KPIC is the default.
11564	    ;;
11565	  *)
11566	    ;;
11567	esac
11568	;;
11569      linux* | k*bsd*-gnu)
11570	case $cc_basename in
11571	  KCC*)
11572	    # KAI C++ Compiler
11573	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11574	    lt_prog_compiler_pic_CXX='-fPIC'
11575	    ;;
11576	  icpc* | ecpc*)
11577	    # Intel C++
11578	    lt_prog_compiler_wl_CXX='-Wl,'
11579	    lt_prog_compiler_pic_CXX='-KPIC'
11580	    lt_prog_compiler_static_CXX='-static'
11581	    ;;
11582	  pgCC*)
11583	    # Portland Group C++ compiler.
11584	    lt_prog_compiler_wl_CXX='-Wl,'
11585	    lt_prog_compiler_pic_CXX='-fpic'
11586	    lt_prog_compiler_static_CXX='-Bstatic'
11587	    ;;
11588	  cxx*)
11589	    # Compaq C++
11590	    # Make sure the PIC flag is empty.  It appears that all Alpha
11591	    # Linux and Compaq Tru64 Unix objects are PIC.
11592	    lt_prog_compiler_pic_CXX=
11593	    lt_prog_compiler_static_CXX='-non_shared'
11594	    ;;
11595	  *)
11596	    case `$CC -V 2>&1 | sed 5q` in
11597	    *Sun\ C*)
11598	      # Sun C++ 5.9
11599	      lt_prog_compiler_pic_CXX='-KPIC'
11600	      lt_prog_compiler_static_CXX='-Bstatic'
11601	      lt_prog_compiler_wl_CXX='-Qoption ld '
11602	      ;;
11603	    esac
11604	    ;;
11605	esac
11606	;;
11607      lynxos*)
11608	;;
11609      m88k*)
11610	;;
11611      mvs*)
11612	case $cc_basename in
11613	  cxx*)
11614	    lt_prog_compiler_pic_CXX='-W c,exportall'
11615	    ;;
11616	  *)
11617	    ;;
11618	esac
11619	;;
11620      netbsd*)
11621	;;
11622      osf3* | osf4* | osf5*)
11623	case $cc_basename in
11624	  KCC*)
11625	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11626	    ;;
11627	  RCC*)
11628	    # Rational C++ 2.4.1
11629	    lt_prog_compiler_pic_CXX='-pic'
11630	    ;;
11631	  cxx*)
11632	    # Digital/Compaq C++
11633	    lt_prog_compiler_wl_CXX='-Wl,'
11634	    # Make sure the PIC flag is empty.  It appears that all Alpha
11635	    # Linux and Compaq Tru64 Unix objects are PIC.
11636	    lt_prog_compiler_pic_CXX=
11637	    lt_prog_compiler_static_CXX='-non_shared'
11638	    ;;
11639	  *)
11640	    ;;
11641	esac
11642	;;
11643      psos*)
11644	;;
11645      solaris*)
11646	case $cc_basename in
11647	  CC*)
11648	    # Sun C++ 4.2, 5.x and Centerline C++
11649	    lt_prog_compiler_pic_CXX='-KPIC'
11650	    lt_prog_compiler_static_CXX='-Bstatic'
11651	    lt_prog_compiler_wl_CXX='-Qoption ld '
11652	    ;;
11653	  gcx*)
11654	    # Green Hills C++ Compiler
11655	    lt_prog_compiler_pic_CXX='-PIC'
11656	    ;;
11657	  *)
11658	    ;;
11659	esac
11660	;;
11661      sunos4*)
11662	case $cc_basename in
11663	  CC*)
11664	    # Sun C++ 4.x
11665	    lt_prog_compiler_pic_CXX='-pic'
11666	    lt_prog_compiler_static_CXX='-Bstatic'
11667	    ;;
11668	  lcc*)
11669	    # Lucid
11670	    lt_prog_compiler_pic_CXX='-pic'
11671	    ;;
11672	  *)
11673	    ;;
11674	esac
11675	;;
11676      tandem*)
11677	case $cc_basename in
11678	  NCC*)
11679	    # NonStop-UX NCC 3.20
11680	    lt_prog_compiler_pic_CXX='-KPIC'
11681	    ;;
11682	  *)
11683	    ;;
11684	esac
11685	;;
11686      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11687	case $cc_basename in
11688	  CC*)
11689	    lt_prog_compiler_wl_CXX='-Wl,'
11690	    lt_prog_compiler_pic_CXX='-KPIC'
11691	    lt_prog_compiler_static_CXX='-Bstatic'
11692	    ;;
11693	esac
11694	;;
11695      vxworks*)
11696	;;
11697      *)
11698	lt_prog_compiler_can_build_shared_CXX=no
11699	;;
11700    esac
11701  fi
11702
11703{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11704echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11705
11706#
11707# Check to make sure the PIC flag actually works.
11708#
11709if test -n "$lt_prog_compiler_pic_CXX"; then
11710
11711{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11712echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11713if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11714  echo $ECHO_N "(cached) $ECHO_C" >&6
11715else
11716  lt_prog_compiler_pic_works_CXX=no
11717  ac_outfile=conftest.$ac_objext
11718   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11719   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11720   # Insert the option either (1) after the last *FLAGS variable, or
11721   # (2) before a word containing "conftest.", or (3) at the end.
11722   # Note that $ac_compile itself does not contain backslashes and begins
11723   # with a dollar sign (not a hyphen), so the echo should work correctly.
11724   # The option is referenced via a variable to avoid confusing sed.
11725   lt_compile=`echo "$ac_compile" | $SED \
11726   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11727   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11728   -e 's:$: $lt_compiler_flag:'`
11729   (eval echo "\"\$as_me:11729: $lt_compile\"" >&5)
11730   (eval "$lt_compile" 2>conftest.err)
11731   ac_status=$?
11732   cat conftest.err >&5
11733   echo "$as_me:11733: \$? = $ac_status" >&5
11734   if (exit $ac_status) && test -s "$ac_outfile"; then
11735     # The compiler can only warn and ignore the option if not recognized
11736     # So say no if there are warnings other than the usual output.
11737     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11738     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11739     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11740       lt_prog_compiler_pic_works_CXX=yes
11741     fi
11742   fi
11743   $rm conftest*
11744
11745fi
11746{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11747echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11748
11749if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11750    case $lt_prog_compiler_pic_CXX in
11751     "" | " "*) ;;
11752     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11753     esac
11754else
11755    lt_prog_compiler_pic_CXX=
11756     lt_prog_compiler_can_build_shared_CXX=no
11757fi
11758
11759fi
11760case $host_os in
11761  # For platforms which do not support PIC, -DPIC is meaningless:
11762  *djgpp*)
11763    lt_prog_compiler_pic_CXX=
11764    ;;
11765  *)
11766    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11767    ;;
11768esac
11769
11770#
11771# Check to make sure the static flag actually works.
11772#
11773wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11774{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11775echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
11776if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11777  echo $ECHO_N "(cached) $ECHO_C" >&6
11778else
11779  lt_prog_compiler_static_works_CXX=no
11780   save_LDFLAGS="$LDFLAGS"
11781   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11782   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11783   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11784     # The linker can only warn and ignore the option if not recognized
11785     # So say no if there are warnings
11786     if test -s conftest.err; then
11787       # Append any errors to the config.log.
11788       cat conftest.err 1>&5
11789       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11790       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11791       if diff conftest.exp conftest.er2 >/dev/null; then
11792         lt_prog_compiler_static_works_CXX=yes
11793       fi
11794     else
11795       lt_prog_compiler_static_works_CXX=yes
11796     fi
11797   fi
11798   $rm conftest*
11799   LDFLAGS="$save_LDFLAGS"
11800
11801fi
11802{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11803echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
11804
11805if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11806    :
11807else
11808    lt_prog_compiler_static_CXX=
11809fi
11810
11811
11812{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11813echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11814if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11815  echo $ECHO_N "(cached) $ECHO_C" >&6
11816else
11817  lt_cv_prog_compiler_c_o_CXX=no
11818   $rm -r conftest 2>/dev/null
11819   mkdir conftest
11820   cd conftest
11821   mkdir out
11822   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11823
11824   lt_compiler_flag="-o out/conftest2.$ac_objext"
11825   # Insert the option either (1) after the last *FLAGS variable, or
11826   # (2) before a word containing "conftest.", or (3) at the end.
11827   # Note that $ac_compile itself does not contain backslashes and begins
11828   # with a dollar sign (not a hyphen), so the echo should work correctly.
11829   lt_compile=`echo "$ac_compile" | $SED \
11830   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11831   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11832   -e 's:$: $lt_compiler_flag:'`
11833   (eval echo "\"\$as_me:11833: $lt_compile\"" >&5)
11834   (eval "$lt_compile" 2>out/conftest.err)
11835   ac_status=$?
11836   cat out/conftest.err >&5
11837   echo "$as_me:11837: \$? = $ac_status" >&5
11838   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11839   then
11840     # The compiler can only warn and ignore the option if not recognized
11841     # So say no if there are warnings
11842     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11843     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11844     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11845       lt_cv_prog_compiler_c_o_CXX=yes
11846     fi
11847   fi
11848   chmod u+w . 2>&5
11849   $rm conftest*
11850   # SGI C++ compiler will create directory out/ii_files/ for
11851   # template instantiation
11852   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11853   $rm out/* && rmdir out
11854   cd ..
11855   rmdir conftest
11856   $rm conftest*
11857
11858fi
11859{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11860echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11861
11862
11863hard_links="nottested"
11864if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11865  # do not overwrite the value of need_locks provided by the user
11866  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11867echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11868  hard_links=yes
11869  $rm conftest*
11870  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11871  touch conftest.a
11872  ln conftest.a conftest.b 2>&5 || hard_links=no
11873  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11874  { echo "$as_me:$LINENO: result: $hard_links" >&5
11875echo "${ECHO_T}$hard_links" >&6; }
11876  if test "$hard_links" = no; then
11877    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11878echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11879    need_locks=warn
11880  fi
11881else
11882  need_locks=no
11883fi
11884
11885{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11886echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11887
11888  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11889  case $host_os in
11890  aix4* | aix5*)
11891    # If we're using GNU nm, then we don't want the "-C" option.
11892    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11893    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11894      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'
11895    else
11896      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'
11897    fi
11898    ;;
11899  pw32*)
11900    export_symbols_cmds_CXX="$ltdll_cmds"
11901  ;;
11902  cygwin* | mingw*)
11903    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'
11904  ;;
11905  *)
11906    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11907  ;;
11908  esac
11909
11910{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11911echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11912test "$ld_shlibs_CXX" = no && can_build_shared=no
11913
11914#
11915# Do we need to explicitly link libc?
11916#
11917case "x$archive_cmds_need_lc_CXX" in
11918x|xyes)
11919  # Assume -lc should be added
11920  archive_cmds_need_lc_CXX=yes
11921
11922  if test "$enable_shared" = yes && test "$GCC" = yes; then
11923    case $archive_cmds_CXX in
11924    *'~'*)
11925      # FIXME: we may have to deal with multi-command sequences.
11926      ;;
11927    '$CC '*)
11928      # Test whether the compiler implicitly links with -lc since on some
11929      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11930      # to ld, don't add -lc before -lgcc.
11931      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11932echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11933      $rm conftest*
11934      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11935
11936      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11937  (eval $ac_compile) 2>&5
11938  ac_status=$?
11939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940  (exit $ac_status); } 2>conftest.err; then
11941        soname=conftest
11942        lib=conftest
11943        libobjs=conftest.$ac_objext
11944        deplibs=
11945        wl=$lt_prog_compiler_wl_CXX
11946	pic_flag=$lt_prog_compiler_pic_CXX
11947        compiler_flags=-v
11948        linker_flags=-v
11949        verstring=
11950        output_objdir=.
11951        libname=conftest
11952        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11953        allow_undefined_flag_CXX=
11954        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11955  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11956  ac_status=$?
11957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958  (exit $ac_status); }
11959        then
11960	  archive_cmds_need_lc_CXX=no
11961        else
11962	  archive_cmds_need_lc_CXX=yes
11963        fi
11964        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11965      else
11966        cat conftest.err 1>&5
11967      fi
11968      $rm conftest*
11969      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11970echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11971      ;;
11972    esac
11973  fi
11974  ;;
11975esac
11976
11977{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11978echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11979library_names_spec=
11980libname_spec='lib$name'
11981soname_spec=
11982shrext_cmds=".so"
11983postinstall_cmds=
11984postuninstall_cmds=
11985finish_cmds=
11986finish_eval=
11987shlibpath_var=
11988shlibpath_overrides_runpath=unknown
11989version_type=none
11990dynamic_linker="$host_os ld.so"
11991sys_lib_dlsearch_path_spec="/lib /usr/lib"
11992
11993need_lib_prefix=unknown
11994hardcode_into_libs=no
11995
11996# when you set need_version to no, make sure it does not cause -set_version
11997# flags to be left without arguments
11998need_version=unknown
11999
12000case $host_os in
12001aix3*)
12002  version_type=linux
12003  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12004  shlibpath_var=LIBPATH
12005
12006  # AIX 3 has no versioning support, so we append a major version to the name.
12007  soname_spec='${libname}${release}${shared_ext}$major'
12008  ;;
12009
12010aix4* | aix5*)
12011  version_type=linux
12012  need_lib_prefix=no
12013  need_version=no
12014  hardcode_into_libs=yes
12015  if test "$host_cpu" = ia64; then
12016    # AIX 5 supports IA64
12017    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12018    shlibpath_var=LD_LIBRARY_PATH
12019  else
12020    # With GCC up to 2.95.x, collect2 would create an import file
12021    # for dependence libraries.  The import file would start with
12022    # the line `#! .'.  This would cause the generated library to
12023    # depend on `.', always an invalid library.  This was fixed in
12024    # development snapshots of GCC prior to 3.0.
12025    case $host_os in
12026      aix4 | aix4.[01] | aix4.[01].*)
12027      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12028	   echo ' yes '
12029	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12030	:
12031      else
12032	can_build_shared=no
12033      fi
12034      ;;
12035    esac
12036    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12037    # soname into executable. Probably we can add versioning support to
12038    # collect2, so additional links can be useful in future.
12039    if test "$aix_use_runtimelinking" = yes; then
12040      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12041      # instead of lib<name>.a to let people know that these are not
12042      # typical AIX shared libraries.
12043      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12044    else
12045      # We preserve .a as extension for shared libraries through AIX4.2
12046      # and later when we are not doing run time linking.
12047      library_names_spec='${libname}${release}.a $libname.a'
12048      soname_spec='${libname}${release}${shared_ext}$major'
12049    fi
12050    shlibpath_var=LIBPATH
12051  fi
12052  ;;
12053
12054amigaos*)
12055  library_names_spec='$libname.ixlibrary $libname.a'
12056  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12057  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'
12058  ;;
12059
12060beos*)
12061  library_names_spec='${libname}${shared_ext}'
12062  dynamic_linker="$host_os ld.so"
12063  shlibpath_var=LIBRARY_PATH
12064  ;;
12065
12066bsdi[45]*)
12067  version_type=linux
12068  need_version=no
12069  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12070  soname_spec='${libname}${release}${shared_ext}$major'
12071  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12072  shlibpath_var=LD_LIBRARY_PATH
12073  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12074  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12075  # the default ld.so.conf also contains /usr/contrib/lib and
12076  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12077  # libtool to hard-code these into programs
12078  ;;
12079
12080cygwin* | mingw* | pw32*)
12081  version_type=windows
12082  shrext_cmds=".dll"
12083  need_version=no
12084  need_lib_prefix=no
12085
12086  case $GCC,$host_os in
12087  yes,cygwin* | yes,mingw* | yes,pw32*)
12088    library_names_spec='$libname.dll.a'
12089    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12090    postinstall_cmds='base_file=`basename \${file}`~
12091      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12092      dldir=$destdir/`dirname \$dlpath`~
12093      test -d \$dldir || mkdir -p \$dldir~
12094      $install_prog $dir/$dlname \$dldir/$dlname~
12095      chmod a+x \$dldir/$dlname'
12096    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12097      dlpath=$dir/\$dldll~
12098       $rm \$dlpath'
12099    shlibpath_overrides_runpath=yes
12100
12101    case $host_os in
12102    cygwin*)
12103      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12104      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12105      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12106      ;;
12107    mingw*)
12108      # MinGW DLLs use traditional 'lib' prefix
12109      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12110      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12111      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12112        # It is most probably a Windows format PATH printed by
12113        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12114        # path with ; separators, and with drive letters. We can handle the
12115        # drive letters (cygwin fileutils understands them), so leave them,
12116        # especially as we might pass files found there to a mingw objdump,
12117        # which wouldn't understand a cygwinified path. Ahh.
12118        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12119      else
12120        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12121      fi
12122      ;;
12123    pw32*)
12124      # pw32 DLLs use 'pw' prefix rather than 'lib'
12125      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12126      ;;
12127    esac
12128    ;;
12129
12130  *)
12131    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12132    ;;
12133  esac
12134  dynamic_linker='Win32 ld.exe'
12135  # FIXME: first we should search . and the directory the executable is in
12136  shlibpath_var=PATH
12137  ;;
12138
12139darwin* | rhapsody*)
12140  dynamic_linker="$host_os dyld"
12141  version_type=darwin
12142  need_lib_prefix=no
12143  need_version=no
12144  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12145  soname_spec='${libname}${release}${major}$shared_ext'
12146  shlibpath_overrides_runpath=yes
12147  shlibpath_var=DYLD_LIBRARY_PATH
12148  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12149
12150  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12151  ;;
12152
12153dgux*)
12154  version_type=linux
12155  need_lib_prefix=no
12156  need_version=no
12157  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12158  soname_spec='${libname}${release}${shared_ext}$major'
12159  shlibpath_var=LD_LIBRARY_PATH
12160  ;;
12161
12162freebsd1*)
12163  dynamic_linker=no
12164  ;;
12165
12166freebsd* | dragonfly*)
12167  # DragonFly does not have aout.  When/if they implement a new
12168  # versioning mechanism, adjust this.
12169  if test -x /usr/bin/objformat; then
12170    objformat=`/usr/bin/objformat`
12171  else
12172    case $host_os in
12173    freebsd[123]*) objformat=aout ;;
12174    *) objformat=elf ;;
12175    esac
12176  fi
12177  version_type=freebsd-$objformat
12178  case $version_type in
12179    freebsd-elf*)
12180      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12181      need_version=no
12182      need_lib_prefix=no
12183      ;;
12184    freebsd-*)
12185      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12186      need_version=yes
12187      ;;
12188  esac
12189  shlibpath_var=LD_LIBRARY_PATH
12190  case $host_os in
12191  freebsd2*)
12192    shlibpath_overrides_runpath=yes
12193    ;;
12194  freebsd3.[01]* | freebsdelf3.[01]*)
12195    shlibpath_overrides_runpath=yes
12196    hardcode_into_libs=yes
12197    ;;
12198  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12199  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12200    shlibpath_overrides_runpath=no
12201    hardcode_into_libs=yes
12202    ;;
12203  *) # from 4.6 on, and DragonFly
12204    shlibpath_overrides_runpath=yes
12205    hardcode_into_libs=yes
12206    ;;
12207  esac
12208  ;;
12209
12210gnu*)
12211  version_type=linux
12212  need_lib_prefix=no
12213  need_version=no
12214  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12215  soname_spec='${libname}${release}${shared_ext}$major'
12216  shlibpath_var=LD_LIBRARY_PATH
12217  hardcode_into_libs=yes
12218  ;;
12219
12220hpux9* | hpux10* | hpux11*)
12221  # Give a soname corresponding to the major version so that dld.sl refuses to
12222  # link against other versions.
12223  version_type=sunos
12224  need_lib_prefix=no
12225  need_version=no
12226  case $host_cpu in
12227  ia64*)
12228    shrext_cmds='.so'
12229    hardcode_into_libs=yes
12230    dynamic_linker="$host_os dld.so"
12231    shlibpath_var=LD_LIBRARY_PATH
12232    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12233    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12234    soname_spec='${libname}${release}${shared_ext}$major'
12235    if test "X$HPUX_IA64_MODE" = X32; then
12236      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12237    else
12238      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12239    fi
12240    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12241    ;;
12242   hppa*64*)
12243     shrext_cmds='.sl'
12244     hardcode_into_libs=yes
12245     dynamic_linker="$host_os dld.sl"
12246     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12247     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12248     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12249     soname_spec='${libname}${release}${shared_ext}$major'
12250     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12251     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12252     ;;
12253   *)
12254    shrext_cmds='.sl'
12255    dynamic_linker="$host_os dld.sl"
12256    shlibpath_var=SHLIB_PATH
12257    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12258    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12259    soname_spec='${libname}${release}${shared_ext}$major'
12260    ;;
12261  esac
12262  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12263  postinstall_cmds='chmod 555 $lib'
12264  ;;
12265
12266interix[3-9]*)
12267  version_type=linux
12268  need_lib_prefix=no
12269  need_version=no
12270  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12271  soname_spec='${libname}${release}${shared_ext}$major'
12272  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12273  shlibpath_var=LD_LIBRARY_PATH
12274  shlibpath_overrides_runpath=no
12275  hardcode_into_libs=yes
12276  ;;
12277
12278irix5* | irix6* | nonstopux*)
12279  case $host_os in
12280    nonstopux*) version_type=nonstopux ;;
12281    *)
12282	if test "$lt_cv_prog_gnu_ld" = yes; then
12283		version_type=linux
12284	else
12285		version_type=irix
12286	fi ;;
12287  esac
12288  need_lib_prefix=no
12289  need_version=no
12290  soname_spec='${libname}${release}${shared_ext}$major'
12291  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12292  case $host_os in
12293  irix5* | nonstopux*)
12294    libsuff= shlibsuff=
12295    ;;
12296  *)
12297    case $LD in # libtool.m4 will add one of these switches to LD
12298    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12299      libsuff= shlibsuff= libmagic=32-bit;;
12300    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12301      libsuff=32 shlibsuff=N32 libmagic=N32;;
12302    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12303      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12304    *) libsuff= shlibsuff= libmagic=never-match;;
12305    esac
12306    ;;
12307  esac
12308  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12309  shlibpath_overrides_runpath=no
12310  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12311  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12312  hardcode_into_libs=yes
12313  ;;
12314
12315# No shared lib support for Linux oldld, aout, or coff.
12316linux*oldld* | linux*aout* | linux*coff*)
12317  dynamic_linker=no
12318  ;;
12319
12320# This must be Linux ELF.
12321linux* | k*bsd*-gnu)
12322  version_type=linux
12323  need_lib_prefix=no
12324  need_version=no
12325  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12326  soname_spec='${libname}${release}${shared_ext}$major'
12327  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12328  shlibpath_var=LD_LIBRARY_PATH
12329  shlibpath_overrides_runpath=no
12330  # This implies no fast_install, which is unacceptable.
12331  # Some rework will be needed to allow for fast_install
12332  # before this can be enabled.
12333  hardcode_into_libs=yes
12334
12335  # Append ld.so.conf contents to the search path
12336  if test -f /etc/ld.so.conf; then
12337    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12338    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12339  fi
12340
12341  # We used to test for /lib/ld.so.1 and disable shared libraries on
12342  # powerpc, because MkLinux only supported shared libraries with the
12343  # GNU dynamic linker.  Since this was broken with cross compilers,
12344  # most powerpc-linux boxes support dynamic linking these days and
12345  # people can always --disable-shared, the test was removed, and we
12346  # assume the GNU/Linux dynamic linker is in use.
12347  dynamic_linker='GNU/Linux ld.so'
12348  ;;
12349
12350netbsd*)
12351  version_type=sunos
12352  need_lib_prefix=no
12353  need_version=no
12354  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12355    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12356    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12357    dynamic_linker='NetBSD (a.out) ld.so'
12358  else
12359    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12360    soname_spec='${libname}${release}${shared_ext}$major'
12361    dynamic_linker='NetBSD ld.elf_so'
12362  fi
12363  shlibpath_var=LD_LIBRARY_PATH
12364  shlibpath_overrides_runpath=yes
12365  hardcode_into_libs=yes
12366  ;;
12367
12368newsos6)
12369  version_type=linux
12370  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12371  shlibpath_var=LD_LIBRARY_PATH
12372  shlibpath_overrides_runpath=yes
12373  ;;
12374
12375nto-qnx*)
12376  version_type=linux
12377  need_lib_prefix=no
12378  need_version=no
12379  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12380  soname_spec='${libname}${release}${shared_ext}$major'
12381  shlibpath_var=LD_LIBRARY_PATH
12382  shlibpath_overrides_runpath=yes
12383  ;;
12384
12385openbsd*)
12386  version_type=sunos
12387  sys_lib_dlsearch_path_spec="/usr/lib"
12388  need_lib_prefix=no
12389  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12390  case $host_os in
12391    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12392    *)                         need_version=no  ;;
12393  esac
12394  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12395  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12396  shlibpath_var=LD_LIBRARY_PATH
12397  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12398    case $host_os in
12399      openbsd2.[89] | openbsd2.[89].*)
12400	shlibpath_overrides_runpath=no
12401	;;
12402      *)
12403	shlibpath_overrides_runpath=yes
12404	;;
12405      esac
12406  else
12407    shlibpath_overrides_runpath=yes
12408  fi
12409  ;;
12410
12411os2*)
12412  libname_spec='$name'
12413  shrext_cmds=".dll"
12414  need_lib_prefix=no
12415  library_names_spec='$libname${shared_ext} $libname.a'
12416  dynamic_linker='OS/2 ld.exe'
12417  shlibpath_var=LIBPATH
12418  ;;
12419
12420osf3* | osf4* | osf5*)
12421  version_type=osf
12422  need_lib_prefix=no
12423  need_version=no
12424  soname_spec='${libname}${release}${shared_ext}$major'
12425  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12426  shlibpath_var=LD_LIBRARY_PATH
12427  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12428  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12429  ;;
12430
12431rdos*)
12432  dynamic_linker=no
12433  ;;
12434
12435solaris*)
12436  version_type=linux
12437  need_lib_prefix=no
12438  need_version=no
12439  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12440  soname_spec='${libname}${release}${shared_ext}$major'
12441  shlibpath_var=LD_LIBRARY_PATH
12442  shlibpath_overrides_runpath=yes
12443  hardcode_into_libs=yes
12444  # ldd complains unless libraries are executable
12445  postinstall_cmds='chmod +x $lib'
12446  ;;
12447
12448sunos4*)
12449  version_type=sunos
12450  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12451  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12452  shlibpath_var=LD_LIBRARY_PATH
12453  shlibpath_overrides_runpath=yes
12454  if test "$with_gnu_ld" = yes; then
12455    need_lib_prefix=no
12456  fi
12457  need_version=yes
12458  ;;
12459
12460sysv4 | sysv4.3*)
12461  version_type=linux
12462  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12463  soname_spec='${libname}${release}${shared_ext}$major'
12464  shlibpath_var=LD_LIBRARY_PATH
12465  case $host_vendor in
12466    sni)
12467      shlibpath_overrides_runpath=no
12468      need_lib_prefix=no
12469      export_dynamic_flag_spec='${wl}-Blargedynsym'
12470      runpath_var=LD_RUN_PATH
12471      ;;
12472    siemens)
12473      need_lib_prefix=no
12474      ;;
12475    motorola)
12476      need_lib_prefix=no
12477      need_version=no
12478      shlibpath_overrides_runpath=no
12479      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12480      ;;
12481  esac
12482  ;;
12483
12484sysv4*MP*)
12485  if test -d /usr/nec ;then
12486    version_type=linux
12487    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12488    soname_spec='$libname${shared_ext}.$major'
12489    shlibpath_var=LD_LIBRARY_PATH
12490  fi
12491  ;;
12492
12493sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12494  version_type=freebsd-elf
12495  need_lib_prefix=no
12496  need_version=no
12497  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12498  soname_spec='${libname}${release}${shared_ext}$major'
12499  shlibpath_var=LD_LIBRARY_PATH
12500  hardcode_into_libs=yes
12501  if test "$with_gnu_ld" = yes; then
12502    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12503    shlibpath_overrides_runpath=no
12504  else
12505    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12506    shlibpath_overrides_runpath=yes
12507    case $host_os in
12508      sco3.2v5*)
12509        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12510	;;
12511    esac
12512  fi
12513  sys_lib_dlsearch_path_spec='/usr/lib'
12514  ;;
12515
12516uts4*)
12517  version_type=linux
12518  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12519  soname_spec='${libname}${release}${shared_ext}$major'
12520  shlibpath_var=LD_LIBRARY_PATH
12521  ;;
12522
12523*)
12524  dynamic_linker=no
12525  ;;
12526esac
12527{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12528echo "${ECHO_T}$dynamic_linker" >&6; }
12529test "$dynamic_linker" = no && can_build_shared=no
12530
12531variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12532if test "$GCC" = yes; then
12533  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12534fi
12535
12536{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12537echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12538hardcode_action_CXX=
12539if test -n "$hardcode_libdir_flag_spec_CXX" || \
12540   test -n "$runpath_var_CXX" || \
12541   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12542
12543  # We can hardcode non-existant directories.
12544  if test "$hardcode_direct_CXX" != no &&
12545     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12546     # have to relink, otherwise we might link with an installed library
12547     # when we should be linking with a yet-to-be-installed one
12548     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12549     test "$hardcode_minus_L_CXX" != no; then
12550    # Linking always hardcodes the temporary library directory.
12551    hardcode_action_CXX=relink
12552  else
12553    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12554    hardcode_action_CXX=immediate
12555  fi
12556else
12557  # We cannot hardcode anything, or else we can only hardcode existing
12558  # directories.
12559  hardcode_action_CXX=unsupported
12560fi
12561{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12562echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12563
12564if test "$hardcode_action_CXX" = relink; then
12565  # Fast installation is not supported
12566  enable_fast_install=no
12567elif test "$shlibpath_overrides_runpath" = yes ||
12568     test "$enable_shared" = no; then
12569  # Fast installation is not necessary
12570  enable_fast_install=needless
12571fi
12572
12573
12574# The else clause should only fire when bootstrapping the
12575# libtool distribution, otherwise you forgot to ship ltmain.sh
12576# with your package, and you will get complaints that there are
12577# no rules to generate ltmain.sh.
12578if test -f "$ltmain"; then
12579  # See if we are running on zsh, and set the options which allow our commands through
12580  # without removal of \ escapes.
12581  if test -n "${ZSH_VERSION+set}" ; then
12582    setopt NO_GLOB_SUBST
12583  fi
12584  # Now quote all the things that may contain metacharacters while being
12585  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12586  # variables and quote the copies for generation of the libtool script.
12587  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12588    SED SHELL STRIP \
12589    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12590    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12591    deplibs_check_method reload_flag reload_cmds need_locks \
12592    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12593    lt_cv_sys_global_symbol_to_c_name_address \
12594    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12595    old_postinstall_cmds old_postuninstall_cmds \
12596    compiler_CXX \
12597    CC_CXX \
12598    LD_CXX \
12599    lt_prog_compiler_wl_CXX \
12600    lt_prog_compiler_pic_CXX \
12601    lt_prog_compiler_static_CXX \
12602    lt_prog_compiler_no_builtin_flag_CXX \
12603    export_dynamic_flag_spec_CXX \
12604    thread_safe_flag_spec_CXX \
12605    whole_archive_flag_spec_CXX \
12606    enable_shared_with_static_runtimes_CXX \
12607    old_archive_cmds_CXX \
12608    old_archive_from_new_cmds_CXX \
12609    predep_objects_CXX \
12610    postdep_objects_CXX \
12611    predeps_CXX \
12612    postdeps_CXX \
12613    compiler_lib_search_path_CXX \
12614    archive_cmds_CXX \
12615    archive_expsym_cmds_CXX \
12616    postinstall_cmds_CXX \
12617    postuninstall_cmds_CXX \
12618    old_archive_from_expsyms_cmds_CXX \
12619    allow_undefined_flag_CXX \
12620    no_undefined_flag_CXX \
12621    export_symbols_cmds_CXX \
12622    hardcode_libdir_flag_spec_CXX \
12623    hardcode_libdir_flag_spec_ld_CXX \
12624    hardcode_libdir_separator_CXX \
12625    hardcode_automatic_CXX \
12626    module_cmds_CXX \
12627    module_expsym_cmds_CXX \
12628    lt_cv_prog_compiler_c_o_CXX \
12629    fix_srcfile_path_CXX \
12630    exclude_expsyms_CXX \
12631    include_expsyms_CXX; do
12632
12633    case $var in
12634    old_archive_cmds_CXX | \
12635    old_archive_from_new_cmds_CXX | \
12636    archive_cmds_CXX | \
12637    archive_expsym_cmds_CXX | \
12638    module_cmds_CXX | \
12639    module_expsym_cmds_CXX | \
12640    old_archive_from_expsyms_cmds_CXX | \
12641    export_symbols_cmds_CXX | \
12642    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12643    postinstall_cmds | postuninstall_cmds | \
12644    old_postinstall_cmds | old_postuninstall_cmds | \
12645    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12646      # Double-quote double-evaled strings.
12647      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12648      ;;
12649    *)
12650      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12651      ;;
12652    esac
12653  done
12654
12655  case $lt_echo in
12656  *'\$0 --fallback-echo"')
12657    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12658    ;;
12659  esac
12660
12661cfgfile="$ofile"
12662
12663  cat <<__EOF__ >> "$cfgfile"
12664# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12665
12666# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12667
12668# Shell to use when invoking shell scripts.
12669SHELL=$lt_SHELL
12670
12671# Whether or not to build shared libraries.
12672build_libtool_libs=$enable_shared
12673
12674# Whether or not to build static libraries.
12675build_old_libs=$enable_static
12676
12677# Whether or not to add -lc for building shared libraries.
12678build_libtool_need_lc=$archive_cmds_need_lc_CXX
12679
12680# Whether or not to disallow shared libs when runtime libs are static
12681allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12682
12683# Whether or not to optimize for fast installation.
12684fast_install=$enable_fast_install
12685
12686# The host system.
12687host_alias=$host_alias
12688host=$host
12689host_os=$host_os
12690
12691# The build system.
12692build_alias=$build_alias
12693build=$build
12694build_os=$build_os
12695
12696# An echo program that does not interpret backslashes.
12697echo=$lt_echo
12698
12699# The archiver.
12700AR=$lt_AR
12701AR_FLAGS=$lt_AR_FLAGS
12702
12703# A C compiler.
12704LTCC=$lt_LTCC
12705
12706# LTCC compiler flags.
12707LTCFLAGS=$lt_LTCFLAGS
12708
12709# A language-specific compiler.
12710CC=$lt_compiler_CXX
12711
12712# Is the compiler the GNU C compiler?
12713with_gcc=$GCC_CXX
12714
12715# An ERE matcher.
12716EGREP=$lt_EGREP
12717
12718# The linker used to build libraries.
12719LD=$lt_LD_CXX
12720
12721# Whether we need hard or soft links.
12722LN_S=$lt_LN_S
12723
12724# A BSD-compatible nm program.
12725NM=$lt_NM
12726
12727# A symbol stripping program
12728STRIP=$lt_STRIP
12729
12730# Used to examine libraries when file_magic_cmd begins "file"
12731MAGIC_CMD=$MAGIC_CMD
12732
12733# Used on cygwin: DLL creation program.
12734DLLTOOL="$DLLTOOL"
12735
12736# Used on cygwin: object dumper.
12737OBJDUMP="$OBJDUMP"
12738
12739# Used on cygwin: assembler.
12740AS="$AS"
12741
12742# The name of the directory that contains temporary libtool files.
12743objdir=$objdir
12744
12745# How to create reloadable object files.
12746reload_flag=$lt_reload_flag
12747reload_cmds=$lt_reload_cmds
12748
12749# How to pass a linker flag through the compiler.
12750wl=$lt_lt_prog_compiler_wl_CXX
12751
12752# Object file suffix (normally "o").
12753objext="$ac_objext"
12754
12755# Old archive suffix (normally "a").
12756libext="$libext"
12757
12758# Shared library suffix (normally ".so").
12759shrext_cmds='$shrext_cmds'
12760
12761# Executable file suffix (normally "").
12762exeext="$exeext"
12763
12764# Additional compiler flags for building library objects.
12765pic_flag=$lt_lt_prog_compiler_pic_CXX
12766pic_mode=$pic_mode
12767
12768# What is the maximum length of a command?
12769max_cmd_len=$lt_cv_sys_max_cmd_len
12770
12771# Does compiler simultaneously support -c and -o options?
12772compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12773
12774# Must we lock files when doing compilation?
12775need_locks=$lt_need_locks
12776
12777# Do we need the lib prefix for modules?
12778need_lib_prefix=$need_lib_prefix
12779
12780# Do we need a version for libraries?
12781need_version=$need_version
12782
12783# Whether dlopen is supported.
12784dlopen_support=$enable_dlopen
12785
12786# Whether dlopen of programs is supported.
12787dlopen_self=$enable_dlopen_self
12788
12789# Whether dlopen of statically linked programs is supported.
12790dlopen_self_static=$enable_dlopen_self_static
12791
12792# Compiler flag to prevent dynamic linking.
12793link_static_flag=$lt_lt_prog_compiler_static_CXX
12794
12795# Compiler flag to turn off builtin functions.
12796no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12797
12798# Compiler flag to allow reflexive dlopens.
12799export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12800
12801# Compiler flag to generate shared objects directly from archives.
12802whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12803
12804# Compiler flag to generate thread-safe objects.
12805thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12806
12807# Library versioning type.
12808version_type=$version_type
12809
12810# Format of library name prefix.
12811libname_spec=$lt_libname_spec
12812
12813# List of archive names.  First name is the real one, the rest are links.
12814# The last name is the one that the linker finds with -lNAME.
12815library_names_spec=$lt_library_names_spec
12816
12817# The coded name of the library, if different from the real name.
12818soname_spec=$lt_soname_spec
12819
12820# Commands used to build and install an old-style archive.
12821RANLIB=$lt_RANLIB
12822old_archive_cmds=$lt_old_archive_cmds_CXX
12823old_postinstall_cmds=$lt_old_postinstall_cmds
12824old_postuninstall_cmds=$lt_old_postuninstall_cmds
12825
12826# Create an old-style archive from a shared archive.
12827old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12828
12829# Create a temporary old-style archive to link instead of a shared archive.
12830old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12831
12832# Commands used to build and install a shared archive.
12833archive_cmds=$lt_archive_cmds_CXX
12834archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12835postinstall_cmds=$lt_postinstall_cmds
12836postuninstall_cmds=$lt_postuninstall_cmds
12837
12838# Commands used to build a loadable module (assumed same as above if empty)
12839module_cmds=$lt_module_cmds_CXX
12840module_expsym_cmds=$lt_module_expsym_cmds_CXX
12841
12842# Commands to strip libraries.
12843old_striplib=$lt_old_striplib
12844striplib=$lt_striplib
12845
12846# Dependencies to place before the objects being linked to create a
12847# shared library.
12848predep_objects=$lt_predep_objects_CXX
12849
12850# Dependencies to place after the objects being linked to create a
12851# shared library.
12852postdep_objects=$lt_postdep_objects_CXX
12853
12854# Dependencies to place before the objects being linked to create a
12855# shared library.
12856predeps=$lt_predeps_CXX
12857
12858# Dependencies to place after the objects being linked to create a
12859# shared library.
12860postdeps=$lt_postdeps_CXX
12861
12862# The library search path used internally by the compiler when linking
12863# a shared library.
12864compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12865
12866# Method to check whether dependent libraries are shared objects.
12867deplibs_check_method=$lt_deplibs_check_method
12868
12869# Command to use when deplibs_check_method == file_magic.
12870file_magic_cmd=$lt_file_magic_cmd
12871
12872# Flag that allows shared libraries with undefined symbols to be built.
12873allow_undefined_flag=$lt_allow_undefined_flag_CXX
12874
12875# Flag that forces no undefined symbols.
12876no_undefined_flag=$lt_no_undefined_flag_CXX
12877
12878# Commands used to finish a libtool library installation in a directory.
12879finish_cmds=$lt_finish_cmds
12880
12881# Same as above, but a single script fragment to be evaled but not shown.
12882finish_eval=$lt_finish_eval
12883
12884# Take the output of nm and produce a listing of raw symbols and C names.
12885global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12886
12887# Transform the output of nm in a proper C declaration
12888global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12889
12890# Transform the output of nm in a C name address pair
12891global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12892
12893# This is the shared library runtime path variable.
12894runpath_var=$runpath_var
12895
12896# This is the shared library path variable.
12897shlibpath_var=$shlibpath_var
12898
12899# Is shlibpath searched before the hard-coded library search path?
12900shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12901
12902# How to hardcode a shared library path into an executable.
12903hardcode_action=$hardcode_action_CXX
12904
12905# Whether we should hardcode library paths into libraries.
12906hardcode_into_libs=$hardcode_into_libs
12907
12908# Flag to hardcode \$libdir into a binary during linking.
12909# This must work even if \$libdir does not exist.
12910hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12911
12912# If ld is used when linking, flag to hardcode \$libdir into
12913# a binary during linking. This must work even if \$libdir does
12914# not exist.
12915hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12916
12917# Whether we need a single -rpath flag with a separated argument.
12918hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12919
12920# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12921# resulting binary.
12922hardcode_direct=$hardcode_direct_CXX
12923
12924# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12925# resulting binary.
12926hardcode_minus_L=$hardcode_minus_L_CXX
12927
12928# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12929# the resulting binary.
12930hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12931
12932# Set to yes if building a shared library automatically hardcodes DIR into the library
12933# and all subsequent libraries and executables linked against it.
12934hardcode_automatic=$hardcode_automatic_CXX
12935
12936# Variables whose values should be saved in libtool wrapper scripts and
12937# restored at relink time.
12938variables_saved_for_relink="$variables_saved_for_relink"
12939
12940# Whether libtool must link a program against all its dependency libraries.
12941link_all_deplibs=$link_all_deplibs_CXX
12942
12943# Compile-time system search path for libraries
12944sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12945
12946# Run-time system search path for libraries
12947sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12948
12949# Fix the shell variable \$srcfile for the compiler.
12950fix_srcfile_path=$lt_fix_srcfile_path
12951
12952# Set to yes if exported symbols are required.
12953always_export_symbols=$always_export_symbols_CXX
12954
12955# The commands to list exported symbols.
12956export_symbols_cmds=$lt_export_symbols_cmds_CXX
12957
12958# The commands to extract the exported symbol list from a shared archive.
12959extract_expsyms_cmds=$lt_extract_expsyms_cmds
12960
12961# Symbols that should not be listed in the preloaded symbols.
12962exclude_expsyms=$lt_exclude_expsyms_CXX
12963
12964# Symbols that must always be exported.
12965include_expsyms=$lt_include_expsyms_CXX
12966
12967# ### END LIBTOOL TAG CONFIG: $tagname
12968
12969__EOF__
12970
12971
12972else
12973  # If there is no Makefile yet, we rely on a make rule to execute
12974  # `config.status --recheck' to rerun these tests and create the
12975  # libtool script then.
12976  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12977  if test -f "$ltmain_in"; then
12978    test -f Makefile && make "$ltmain"
12979  fi
12980fi
12981
12982
12983ac_ext=c
12984ac_cpp='$CPP $CPPFLAGS'
12985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12987ac_compiler_gnu=$ac_cv_c_compiler_gnu
12988
12989CC=$lt_save_CC
12990LDCXX=$LD
12991LD=$lt_save_LD
12992GCC=$lt_save_GCC
12993with_gnu_ldcxx=$with_gnu_ld
12994with_gnu_ld=$lt_save_with_gnu_ld
12995lt_cv_path_LDCXX=$lt_cv_path_LD
12996lt_cv_path_LD=$lt_save_path_LD
12997lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12998lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12999
13000	else
13001	  tagname=""
13002	fi
13003	;;
13004
13005      F77)
13006	if test -n "$F77" && test "X$F77" != "Xno"; then
13007
13008ac_ext=f
13009ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13010ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13011ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13012
13013
13014archive_cmds_need_lc_F77=no
13015allow_undefined_flag_F77=
13016always_export_symbols_F77=no
13017archive_expsym_cmds_F77=
13018export_dynamic_flag_spec_F77=
13019hardcode_direct_F77=no
13020hardcode_libdir_flag_spec_F77=
13021hardcode_libdir_flag_spec_ld_F77=
13022hardcode_libdir_separator_F77=
13023hardcode_minus_L_F77=no
13024hardcode_automatic_F77=no
13025module_cmds_F77=
13026module_expsym_cmds_F77=
13027link_all_deplibs_F77=unknown
13028old_archive_cmds_F77=$old_archive_cmds
13029no_undefined_flag_F77=
13030whole_archive_flag_spec_F77=
13031enable_shared_with_static_runtimes_F77=no
13032
13033# Source file extension for f77 test sources.
13034ac_ext=f
13035
13036# Object file extension for compiled f77 test sources.
13037objext=o
13038objext_F77=$objext
13039
13040# Code to be used in simple compile tests
13041lt_simple_compile_test_code="\
13042      subroutine t
13043      return
13044      end
13045"
13046
13047# Code to be used in simple link tests
13048lt_simple_link_test_code="\
13049      program t
13050      end
13051"
13052
13053# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13054
13055# If no C compiler was specified, use CC.
13056LTCC=${LTCC-"$CC"}
13057
13058# If no C compiler flags were specified, use CFLAGS.
13059LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13060
13061# Allow CC to be a program name with arguments.
13062compiler=$CC
13063
13064
13065# save warnings/boilerplate of simple test code
13066ac_outfile=conftest.$ac_objext
13067echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13068eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13069_lt_compiler_boilerplate=`cat conftest.err`
13070$rm conftest*
13071
13072ac_outfile=conftest.$ac_objext
13073echo "$lt_simple_link_test_code" >conftest.$ac_ext
13074eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13075_lt_linker_boilerplate=`cat conftest.err`
13076$rm conftest*
13077
13078
13079# Allow CC to be a program name with arguments.
13080lt_save_CC="$CC"
13081CC=${F77-"f77"}
13082compiler=$CC
13083compiler_F77=$CC
13084for cc_temp in $compiler""; do
13085  case $cc_temp in
13086    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13087    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13088    \-*) ;;
13089    *) break;;
13090  esac
13091done
13092cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13093
13094
13095{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13096echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13097{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13098echo "${ECHO_T}$can_build_shared" >&6; }
13099
13100{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13101echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13102test "$can_build_shared" = "no" && enable_shared=no
13103
13104# On AIX, shared libraries and static libraries use the same namespace, and
13105# are all built from PIC.
13106case $host_os in
13107aix3*)
13108  test "$enable_shared" = yes && enable_static=no
13109  if test -n "$RANLIB"; then
13110    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13111    postinstall_cmds='$RANLIB $lib'
13112  fi
13113  ;;
13114aix4* | aix5*)
13115  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13116    test "$enable_shared" = yes && enable_static=no
13117  fi
13118  ;;
13119esac
13120{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13121echo "${ECHO_T}$enable_shared" >&6; }
13122
13123{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13124echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13125# Make sure either enable_shared or enable_static is yes.
13126test "$enable_shared" = yes || enable_static=yes
13127{ echo "$as_me:$LINENO: result: $enable_static" >&5
13128echo "${ECHO_T}$enable_static" >&6; }
13129
13130GCC_F77="$G77"
13131LD_F77="$LD"
13132
13133lt_prog_compiler_wl_F77=
13134lt_prog_compiler_pic_F77=
13135lt_prog_compiler_static_F77=
13136
13137{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13138echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13139
13140  if test "$GCC" = yes; then
13141    lt_prog_compiler_wl_F77='-Wl,'
13142    lt_prog_compiler_static_F77='-static'
13143
13144    case $host_os in
13145      aix*)
13146      # All AIX code is PIC.
13147      if test "$host_cpu" = ia64; then
13148	# AIX 5 now supports IA64 processor
13149	lt_prog_compiler_static_F77='-Bstatic'
13150      fi
13151      ;;
13152
13153    amigaos*)
13154      # FIXME: we need at least 68020 code to build shared libraries, but
13155      # adding the `-m68020' flag to GCC prevents building anything better,
13156      # like `-m68040'.
13157      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13158      ;;
13159
13160    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13161      # PIC is the default for these OSes.
13162      ;;
13163
13164    mingw* | cygwin* | pw32* | os2*)
13165      # This hack is so that the source file can tell whether it is being
13166      # built for inclusion in a dll (and should export symbols for example).
13167      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13168      # (--disable-auto-import) libraries
13169      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13170      ;;
13171
13172    darwin* | rhapsody*)
13173      # PIC is the default on this platform
13174      # Common symbols not allowed in MH_DYLIB files
13175      lt_prog_compiler_pic_F77='-fno-common'
13176      ;;
13177
13178    interix[3-9]*)
13179      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13180      # Instead, we relocate shared libraries at runtime.
13181      ;;
13182
13183    msdosdjgpp*)
13184      # Just because we use GCC doesn't mean we suddenly get shared libraries
13185      # on systems that don't support them.
13186      lt_prog_compiler_can_build_shared_F77=no
13187      enable_shared=no
13188      ;;
13189
13190    sysv4*MP*)
13191      if test -d /usr/nec; then
13192	lt_prog_compiler_pic_F77=-Kconform_pic
13193      fi
13194      ;;
13195
13196    hpux*)
13197      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13198      # not for PA HP-UX.
13199      case $host_cpu in
13200      hppa*64*|ia64*)
13201	# +Z the default
13202	;;
13203      *)
13204	lt_prog_compiler_pic_F77='-fPIC'
13205	;;
13206      esac
13207      ;;
13208
13209    *)
13210      lt_prog_compiler_pic_F77='-fPIC'
13211      ;;
13212    esac
13213  else
13214    # PORTME Check for flag to pass linker flags through the system compiler.
13215    case $host_os in
13216    aix*)
13217      lt_prog_compiler_wl_F77='-Wl,'
13218      if test "$host_cpu" = ia64; then
13219	# AIX 5 now supports IA64 processor
13220	lt_prog_compiler_static_F77='-Bstatic'
13221      else
13222	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13223      fi
13224      ;;
13225      darwin*)
13226        # PIC is the default on this platform
13227        # Common symbols not allowed in MH_DYLIB files
13228       case $cc_basename in
13229         xlc*)
13230         lt_prog_compiler_pic_F77='-qnocommon'
13231         lt_prog_compiler_wl_F77='-Wl,'
13232         ;;
13233       esac
13234       ;;
13235
13236    mingw* | cygwin* | pw32* | os2*)
13237      # This hack is so that the source file can tell whether it is being
13238      # built for inclusion in a dll (and should export symbols for example).
13239      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13240      ;;
13241
13242    hpux9* | hpux10* | hpux11*)
13243      lt_prog_compiler_wl_F77='-Wl,'
13244      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13245      # not for PA HP-UX.
13246      case $host_cpu in
13247      hppa*64*|ia64*)
13248	# +Z the default
13249	;;
13250      *)
13251	lt_prog_compiler_pic_F77='+Z'
13252	;;
13253      esac
13254      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13255      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13256      ;;
13257
13258    irix5* | irix6* | nonstopux*)
13259      lt_prog_compiler_wl_F77='-Wl,'
13260      # PIC (with -KPIC) is the default.
13261      lt_prog_compiler_static_F77='-non_shared'
13262      ;;
13263
13264    newsos6)
13265      lt_prog_compiler_pic_F77='-KPIC'
13266      lt_prog_compiler_static_F77='-Bstatic'
13267      ;;
13268
13269    linux* | k*bsd*-gnu)
13270      case $cc_basename in
13271      icc* | ecc*)
13272	lt_prog_compiler_wl_F77='-Wl,'
13273	lt_prog_compiler_pic_F77='-KPIC'
13274	lt_prog_compiler_static_F77='-static'
13275        ;;
13276      pgcc* | pgf77* | pgf90* | pgf95*)
13277        # Portland Group compilers (*not* the Pentium gcc compiler,
13278	# which looks to be a dead project)
13279	lt_prog_compiler_wl_F77='-Wl,'
13280	lt_prog_compiler_pic_F77='-fpic'
13281	lt_prog_compiler_static_F77='-Bstatic'
13282        ;;
13283      ccc*)
13284        lt_prog_compiler_wl_F77='-Wl,'
13285        # All Alpha code is PIC.
13286        lt_prog_compiler_static_F77='-non_shared'
13287        ;;
13288      *)
13289        case `$CC -V 2>&1 | sed 5q` in
13290	*Sun\ C*)
13291	  # Sun C 5.9
13292	  lt_prog_compiler_pic_F77='-KPIC'
13293	  lt_prog_compiler_static_F77='-Bstatic'
13294	  lt_prog_compiler_wl_F77='-Wl,'
13295	  ;;
13296	*Sun\ F*)
13297	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
13298	  lt_prog_compiler_pic_F77='-KPIC'
13299	  lt_prog_compiler_static_F77='-Bstatic'
13300	  lt_prog_compiler_wl_F77=''
13301	  ;;
13302	esac
13303	;;
13304      esac
13305      ;;
13306
13307    osf3* | osf4* | osf5*)
13308      lt_prog_compiler_wl_F77='-Wl,'
13309      # All OSF/1 code is PIC.
13310      lt_prog_compiler_static_F77='-non_shared'
13311      ;;
13312
13313    rdos*)
13314      lt_prog_compiler_static_F77='-non_shared'
13315      ;;
13316
13317    solaris*)
13318      lt_prog_compiler_pic_F77='-KPIC'
13319      lt_prog_compiler_static_F77='-Bstatic'
13320      case $cc_basename in
13321      f77* | f90* | f95*)
13322	lt_prog_compiler_wl_F77='-Qoption ld ';;
13323      *)
13324	lt_prog_compiler_wl_F77='-Wl,';;
13325      esac
13326      ;;
13327
13328    sunos4*)
13329      lt_prog_compiler_wl_F77='-Qoption ld '
13330      lt_prog_compiler_pic_F77='-PIC'
13331      lt_prog_compiler_static_F77='-Bstatic'
13332      ;;
13333
13334    sysv4 | sysv4.2uw2* | sysv4.3*)
13335      lt_prog_compiler_wl_F77='-Wl,'
13336      lt_prog_compiler_pic_F77='-KPIC'
13337      lt_prog_compiler_static_F77='-Bstatic'
13338      ;;
13339
13340    sysv4*MP*)
13341      if test -d /usr/nec ;then
13342	lt_prog_compiler_pic_F77='-Kconform_pic'
13343	lt_prog_compiler_static_F77='-Bstatic'
13344      fi
13345      ;;
13346
13347    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13348      lt_prog_compiler_wl_F77='-Wl,'
13349      lt_prog_compiler_pic_F77='-KPIC'
13350      lt_prog_compiler_static_F77='-Bstatic'
13351      ;;
13352
13353    unicos*)
13354      lt_prog_compiler_wl_F77='-Wl,'
13355      lt_prog_compiler_can_build_shared_F77=no
13356      ;;
13357
13358    uts4*)
13359      lt_prog_compiler_pic_F77='-pic'
13360      lt_prog_compiler_static_F77='-Bstatic'
13361      ;;
13362
13363    *)
13364      lt_prog_compiler_can_build_shared_F77=no
13365      ;;
13366    esac
13367  fi
13368
13369{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13370echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13371
13372#
13373# Check to make sure the PIC flag actually works.
13374#
13375if test -n "$lt_prog_compiler_pic_F77"; then
13376
13377{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13378echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13379if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13380  echo $ECHO_N "(cached) $ECHO_C" >&6
13381else
13382  lt_prog_compiler_pic_works_F77=no
13383  ac_outfile=conftest.$ac_objext
13384   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13385   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13386   # Insert the option either (1) after the last *FLAGS variable, or
13387   # (2) before a word containing "conftest.", or (3) at the end.
13388   # Note that $ac_compile itself does not contain backslashes and begins
13389   # with a dollar sign (not a hyphen), so the echo should work correctly.
13390   # The option is referenced via a variable to avoid confusing sed.
13391   lt_compile=`echo "$ac_compile" | $SED \
13392   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13393   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13394   -e 's:$: $lt_compiler_flag:'`
13395   (eval echo "\"\$as_me:13395: $lt_compile\"" >&5)
13396   (eval "$lt_compile" 2>conftest.err)
13397   ac_status=$?
13398   cat conftest.err >&5
13399   echo "$as_me:13399: \$? = $ac_status" >&5
13400   if (exit $ac_status) && test -s "$ac_outfile"; then
13401     # The compiler can only warn and ignore the option if not recognized
13402     # So say no if there are warnings other than the usual output.
13403     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13404     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13405     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13406       lt_prog_compiler_pic_works_F77=yes
13407     fi
13408   fi
13409   $rm conftest*
13410
13411fi
13412{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13413echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13414
13415if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13416    case $lt_prog_compiler_pic_F77 in
13417     "" | " "*) ;;
13418     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13419     esac
13420else
13421    lt_prog_compiler_pic_F77=
13422     lt_prog_compiler_can_build_shared_F77=no
13423fi
13424
13425fi
13426case $host_os in
13427  # For platforms which do not support PIC, -DPIC is meaningless:
13428  *djgpp*)
13429    lt_prog_compiler_pic_F77=
13430    ;;
13431  *)
13432    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13433    ;;
13434esac
13435
13436#
13437# Check to make sure the static flag actually works.
13438#
13439wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13440{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13441echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13442if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13443  echo $ECHO_N "(cached) $ECHO_C" >&6
13444else
13445  lt_prog_compiler_static_works_F77=no
13446   save_LDFLAGS="$LDFLAGS"
13447   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13448   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13449   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13450     # The linker can only warn and ignore the option if not recognized
13451     # So say no if there are warnings
13452     if test -s conftest.err; then
13453       # Append any errors to the config.log.
13454       cat conftest.err 1>&5
13455       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13456       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13457       if diff conftest.exp conftest.er2 >/dev/null; then
13458         lt_prog_compiler_static_works_F77=yes
13459       fi
13460     else
13461       lt_prog_compiler_static_works_F77=yes
13462     fi
13463   fi
13464   $rm conftest*
13465   LDFLAGS="$save_LDFLAGS"
13466
13467fi
13468{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13469echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13470
13471if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13472    :
13473else
13474    lt_prog_compiler_static_F77=
13475fi
13476
13477
13478{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13479echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13480if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13481  echo $ECHO_N "(cached) $ECHO_C" >&6
13482else
13483  lt_cv_prog_compiler_c_o_F77=no
13484   $rm -r conftest 2>/dev/null
13485   mkdir conftest
13486   cd conftest
13487   mkdir out
13488   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13489
13490   lt_compiler_flag="-o out/conftest2.$ac_objext"
13491   # Insert the option either (1) after the last *FLAGS variable, or
13492   # (2) before a word containing "conftest.", or (3) at the end.
13493   # Note that $ac_compile itself does not contain backslashes and begins
13494   # with a dollar sign (not a hyphen), so the echo should work correctly.
13495   lt_compile=`echo "$ac_compile" | $SED \
13496   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13497   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13498   -e 's:$: $lt_compiler_flag:'`
13499   (eval echo "\"\$as_me:13499: $lt_compile\"" >&5)
13500   (eval "$lt_compile" 2>out/conftest.err)
13501   ac_status=$?
13502   cat out/conftest.err >&5
13503   echo "$as_me:13503: \$? = $ac_status" >&5
13504   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13505   then
13506     # The compiler can only warn and ignore the option if not recognized
13507     # So say no if there are warnings
13508     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13509     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13510     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13511       lt_cv_prog_compiler_c_o_F77=yes
13512     fi
13513   fi
13514   chmod u+w . 2>&5
13515   $rm conftest*
13516   # SGI C++ compiler will create directory out/ii_files/ for
13517   # template instantiation
13518   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13519   $rm out/* && rmdir out
13520   cd ..
13521   rmdir conftest
13522   $rm conftest*
13523
13524fi
13525{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13526echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13527
13528
13529hard_links="nottested"
13530if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13531  # do not overwrite the value of need_locks provided by the user
13532  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13533echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13534  hard_links=yes
13535  $rm conftest*
13536  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13537  touch conftest.a
13538  ln conftest.a conftest.b 2>&5 || hard_links=no
13539  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13540  { echo "$as_me:$LINENO: result: $hard_links" >&5
13541echo "${ECHO_T}$hard_links" >&6; }
13542  if test "$hard_links" = no; then
13543    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13544echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13545    need_locks=warn
13546  fi
13547else
13548  need_locks=no
13549fi
13550
13551{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13552echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13553
13554  runpath_var=
13555  allow_undefined_flag_F77=
13556  enable_shared_with_static_runtimes_F77=no
13557  archive_cmds_F77=
13558  archive_expsym_cmds_F77=
13559  old_archive_From_new_cmds_F77=
13560  old_archive_from_expsyms_cmds_F77=
13561  export_dynamic_flag_spec_F77=
13562  whole_archive_flag_spec_F77=
13563  thread_safe_flag_spec_F77=
13564  hardcode_libdir_flag_spec_F77=
13565  hardcode_libdir_flag_spec_ld_F77=
13566  hardcode_libdir_separator_F77=
13567  hardcode_direct_F77=no
13568  hardcode_minus_L_F77=no
13569  hardcode_shlibpath_var_F77=unsupported
13570  link_all_deplibs_F77=unknown
13571  hardcode_automatic_F77=no
13572  module_cmds_F77=
13573  module_expsym_cmds_F77=
13574  always_export_symbols_F77=no
13575  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13576  # include_expsyms should be a list of space-separated symbols to be *always*
13577  # included in the symbol list
13578  include_expsyms_F77=
13579  # exclude_expsyms can be an extended regexp of symbols to exclude
13580  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13581  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13582  # as well as any symbol that contains `d'.
13583  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13584  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13585  # platforms (ab)use it in PIC code, but their linkers get confused if
13586  # the symbol is explicitly referenced.  Since portable code cannot
13587  # rely on this symbol name, it's probably fine to never include it in
13588  # preloaded symbol tables.
13589  extract_expsyms_cmds=
13590  # Just being paranoid about ensuring that cc_basename is set.
13591  for cc_temp in $compiler""; do
13592  case $cc_temp in
13593    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13594    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13595    \-*) ;;
13596    *) break;;
13597  esac
13598done
13599cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13600
13601  case $host_os in
13602  cygwin* | mingw* | pw32*)
13603    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13604    # When not using gcc, we currently assume that we are using
13605    # Microsoft Visual C++.
13606    if test "$GCC" != yes; then
13607      with_gnu_ld=no
13608    fi
13609    ;;
13610  interix*)
13611    # we just hope/assume this is gcc and not c89 (= MSVC++)
13612    with_gnu_ld=yes
13613    ;;
13614  openbsd*)
13615    with_gnu_ld=no
13616    ;;
13617  esac
13618
13619  ld_shlibs_F77=yes
13620  if test "$with_gnu_ld" = yes; then
13621    # If archive_cmds runs LD, not CC, wlarc should be empty
13622    wlarc='${wl}'
13623
13624    # Set some defaults for GNU ld with shared library support. These
13625    # are reset later if shared libraries are not supported. Putting them
13626    # here allows them to be overridden if necessary.
13627    runpath_var=LD_RUN_PATH
13628    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13629    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13630    # ancient GNU ld didn't support --whole-archive et. al.
13631    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13632	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13633      else
13634  	whole_archive_flag_spec_F77=
13635    fi
13636    supports_anon_versioning=no
13637    case `$LD -v 2>/dev/null` in
13638      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13639      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13640      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13641      *\ 2.11.*) ;; # other 2.11 versions
13642      *) supports_anon_versioning=yes ;;
13643    esac
13644
13645    # See if GNU ld supports shared libraries.
13646    case $host_os in
13647    aix3* | aix4* | aix5*)
13648      # On AIX/PPC, the GNU linker is very broken
13649      if test "$host_cpu" != ia64; then
13650	ld_shlibs_F77=no
13651	cat <<EOF 1>&2
13652
13653*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13654*** to be unable to reliably create shared libraries on AIX.
13655*** Therefore, libtool is disabling shared libraries support.  If you
13656*** really care for shared libraries, you may want to modify your PATH
13657*** so that a non-GNU linker is found, and then restart.
13658
13659EOF
13660      fi
13661      ;;
13662
13663    amigaos*)
13664      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)'
13665      hardcode_libdir_flag_spec_F77='-L$libdir'
13666      hardcode_minus_L_F77=yes
13667
13668      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13669      # that the semantics of dynamic libraries on AmigaOS, at least up
13670      # to version 4, is to share data among multiple programs linked
13671      # with the same dynamic library.  Since this doesn't match the
13672      # behavior of shared libraries on other platforms, we can't use
13673      # them.
13674      ld_shlibs_F77=no
13675      ;;
13676
13677    beos*)
13678      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13679	allow_undefined_flag_F77=unsupported
13680	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13681	# support --undefined.  This deserves some investigation.  FIXME
13682	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13683      else
13684	ld_shlibs_F77=no
13685      fi
13686      ;;
13687
13688    cygwin* | mingw* | pw32*)
13689      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13690      # as there is no search path for DLLs.
13691      hardcode_libdir_flag_spec_F77='-L$libdir'
13692      allow_undefined_flag_F77=unsupported
13693      always_export_symbols_F77=no
13694      enable_shared_with_static_runtimes_F77=yes
13695      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13696
13697      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13698        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13699	# If the export-symbols file already is a .def file (1st line
13700	# is EXPORTS), use it as is; otherwise, prepend...
13701	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13702	  cp $export_symbols $output_objdir/$soname.def;
13703	else
13704	  echo EXPORTS > $output_objdir/$soname.def;
13705	  cat $export_symbols >> $output_objdir/$soname.def;
13706	fi~
13707	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13708      else
13709	ld_shlibs_F77=no
13710      fi
13711      ;;
13712
13713    interix[3-9]*)
13714      hardcode_direct_F77=no
13715      hardcode_shlibpath_var_F77=no
13716      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13717      export_dynamic_flag_spec_F77='${wl}-E'
13718      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13719      # Instead, shared libraries are loaded at an image base (0x10000000 by
13720      # default) and relocated if they conflict, which is a slow very memory
13721      # consuming and fragmenting process.  To avoid this, we pick a random,
13722      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13723      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13724      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'
13725      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'
13726      ;;
13727
13728    gnu* | linux* | k*bsd*-gnu)
13729      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13730	tmp_addflag=
13731	case $cc_basename,$host_cpu in
13732	pgcc*)				# Portland Group C compiler
13733	  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'
13734	  tmp_addflag=' $pic_flag'
13735	  ;;
13736	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
13737	  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'
13738	  tmp_addflag=' $pic_flag -Mnomain' ;;
13739	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
13740	  tmp_addflag=' -i_dynamic' ;;
13741	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13742	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13743	ifc* | ifort*)			# Intel Fortran compiler
13744	  tmp_addflag=' -nofor_main' ;;
13745	esac
13746	case `$CC -V 2>&1 | sed 5q` in
13747	*Sun\ C*)			# Sun C 5.9
13748	  whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13749	  tmp_sharedflag='-G' ;;
13750	*Sun\ F*)			# Sun Fortran 8.3
13751	  tmp_sharedflag='-G' ;;
13752	*)
13753	  tmp_sharedflag='-shared' ;;
13754	esac
13755	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13756
13757	if test $supports_anon_versioning = yes; then
13758	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13759  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13760  $echo "local: *; };" >> $output_objdir/$libname.ver~
13761	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13762	fi
13763      else
13764	ld_shlibs_F77=no
13765      fi
13766      ;;
13767
13768    netbsd*)
13769      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13770	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13771	wlarc=
13772      else
13773	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13774	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13775      fi
13776      ;;
13777
13778    solaris*)
13779      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13780	ld_shlibs_F77=no
13781	cat <<EOF 1>&2
13782
13783*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13784*** create shared libraries on Solaris systems.  Therefore, libtool
13785*** is disabling shared libraries support.  We urge you to upgrade GNU
13786*** binutils to release 2.9.1 or newer.  Another option is to modify
13787*** your PATH or compiler configuration so that the native linker is
13788*** used, and then restart.
13789
13790EOF
13791      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13792	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13793	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13794      else
13795	ld_shlibs_F77=no
13796      fi
13797      ;;
13798
13799    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13800      case `$LD -v 2>&1` in
13801        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13802	ld_shlibs_F77=no
13803	cat <<_LT_EOF 1>&2
13804
13805*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13806*** reliably create shared libraries on SCO systems.  Therefore, libtool
13807*** is disabling shared libraries support.  We urge you to upgrade GNU
13808*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13809*** your PATH or compiler configuration so that the native linker is
13810*** used, and then restart.
13811
13812_LT_EOF
13813	;;
13814	*)
13815	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13816	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13817	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13818	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13819	  else
13820	    ld_shlibs_F77=no
13821	  fi
13822	;;
13823      esac
13824      ;;
13825
13826    sunos4*)
13827      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13828      wlarc=
13829      hardcode_direct_F77=yes
13830      hardcode_shlibpath_var_F77=no
13831      ;;
13832
13833    *)
13834      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13835	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13836	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13837      else
13838	ld_shlibs_F77=no
13839      fi
13840      ;;
13841    esac
13842
13843    if test "$ld_shlibs_F77" = no; then
13844      runpath_var=
13845      hardcode_libdir_flag_spec_F77=
13846      export_dynamic_flag_spec_F77=
13847      whole_archive_flag_spec_F77=
13848    fi
13849  else
13850    # PORTME fill in a description of your system's linker (not GNU ld)
13851    case $host_os in
13852    aix3*)
13853      allow_undefined_flag_F77=unsupported
13854      always_export_symbols_F77=yes
13855      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'
13856      # Note: this linker hardcodes the directories in LIBPATH if there
13857      # are no directories specified by -L.
13858      hardcode_minus_L_F77=yes
13859      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13860	# Neither direct hardcoding nor static linking is supported with a
13861	# broken collect2.
13862	hardcode_direct_F77=unsupported
13863      fi
13864      ;;
13865
13866    aix4* | aix5*)
13867      if test "$host_cpu" = ia64; then
13868	# On IA64, the linker does run time linking by default, so we don't
13869	# have to do anything special.
13870	aix_use_runtimelinking=no
13871	exp_sym_flag='-Bexport'
13872	no_entry_flag=""
13873      else
13874	# If we're using GNU nm, then we don't want the "-C" option.
13875	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13876	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13877	  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'
13878	else
13879	  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'
13880	fi
13881	aix_use_runtimelinking=no
13882
13883	# Test if we are trying to use run time linking or normal
13884	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13885	# need to do runtime linking.
13886	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13887	  for ld_flag in $LDFLAGS; do
13888  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13889  	    aix_use_runtimelinking=yes
13890  	    break
13891  	  fi
13892	  done
13893	  ;;
13894	esac
13895
13896	exp_sym_flag='-bexport'
13897	no_entry_flag='-bnoentry'
13898      fi
13899
13900      # When large executables or shared objects are built, AIX ld can
13901      # have problems creating the table of contents.  If linking a library
13902      # or program results in "error TOC overflow" add -mminimal-toc to
13903      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13904      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13905
13906      archive_cmds_F77=''
13907      hardcode_direct_F77=yes
13908      hardcode_libdir_separator_F77=':'
13909      link_all_deplibs_F77=yes
13910
13911      if test "$GCC" = yes; then
13912	case $host_os in aix4.[012]|aix4.[012].*)
13913	# We only want to do this on AIX 4.2 and lower, the check
13914	# below for broken collect2 doesn't work under 4.3+
13915	  collect2name=`${CC} -print-prog-name=collect2`
13916	  if test -f "$collect2name" && \
13917  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13918	  then
13919  	  # We have reworked collect2
13920  	  :
13921	  else
13922  	  # We have old collect2
13923  	  hardcode_direct_F77=unsupported
13924  	  # It fails to find uninstalled libraries when the uninstalled
13925  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13926  	  # to unsupported forces relinking
13927  	  hardcode_minus_L_F77=yes
13928  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13929  	  hardcode_libdir_separator_F77=
13930	  fi
13931	  ;;
13932	esac
13933	shared_flag='-shared'
13934	if test "$aix_use_runtimelinking" = yes; then
13935	  shared_flag="$shared_flag "'${wl}-G'
13936	fi
13937      else
13938	# not using gcc
13939	if test "$host_cpu" = ia64; then
13940  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13941  	# chokes on -Wl,-G. The following line is correct:
13942	  shared_flag='-G'
13943	else
13944	  if test "$aix_use_runtimelinking" = yes; then
13945	    shared_flag='${wl}-G'
13946	  else
13947	    shared_flag='${wl}-bM:SRE'
13948	  fi
13949	fi
13950      fi
13951
13952      # It seems that -bexpall does not export symbols beginning with
13953      # underscore (_), so it is better to generate a list of symbols to export.
13954      always_export_symbols_F77=yes
13955      if test "$aix_use_runtimelinking" = yes; then
13956	# Warning - without using the other runtime loading flags (-brtl),
13957	# -berok will link without error, but may produce a broken library.
13958	allow_undefined_flag_F77='-berok'
13959       # Determine the default libpath from the value encoded in an empty executable.
13960       cat >conftest.$ac_ext <<_ACEOF
13961      program main
13962
13963      end
13964_ACEOF
13965rm -f conftest.$ac_objext conftest$ac_exeext
13966if { (ac_try="$ac_link"
13967case "(($ac_try" in
13968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13969  *) ac_try_echo=$ac_try;;
13970esac
13971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13972  (eval "$ac_link") 2>conftest.er1
13973  ac_status=$?
13974  grep -v '^ *+' conftest.er1 >conftest.err
13975  rm -f conftest.er1
13976  cat conftest.err >&5
13977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978  (exit $ac_status); } && {
13979	 test -z "$ac_f77_werror_flag" ||
13980	 test ! -s conftest.err
13981       } && test -s conftest$ac_exeext &&
13982       $as_test_x conftest$ac_exeext; then
13983
13984lt_aix_libpath_sed='
13985    /Import File Strings/,/^$/ {
13986	/^0/ {
13987	    s/^0  *\(.*\)$/\1/
13988	    p
13989	}
13990    }'
13991aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13992# Check for a 64-bit object if we didn't find anything.
13993if test -z "$aix_libpath"; then
13994  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13995fi
13996else
13997  echo "$as_me: failed program was:" >&5
13998sed 's/^/| /' conftest.$ac_ext >&5
13999
14000
14001fi
14002
14003rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14004      conftest$ac_exeext conftest.$ac_ext
14005if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14006
14007       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14008	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"
14009       else
14010	if test "$host_cpu" = ia64; then
14011	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14012	  allow_undefined_flag_F77="-z nodefs"
14013	  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"
14014	else
14015	 # Determine the default libpath from the value encoded in an empty executable.
14016	 cat >conftest.$ac_ext <<_ACEOF
14017      program main
14018
14019      end
14020_ACEOF
14021rm -f conftest.$ac_objext conftest$ac_exeext
14022if { (ac_try="$ac_link"
14023case "(($ac_try" in
14024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14025  *) ac_try_echo=$ac_try;;
14026esac
14027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14028  (eval "$ac_link") 2>conftest.er1
14029  ac_status=$?
14030  grep -v '^ *+' conftest.er1 >conftest.err
14031  rm -f conftest.er1
14032  cat conftest.err >&5
14033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034  (exit $ac_status); } && {
14035	 test -z "$ac_f77_werror_flag" ||
14036	 test ! -s conftest.err
14037       } && test -s conftest$ac_exeext &&
14038       $as_test_x conftest$ac_exeext; then
14039
14040lt_aix_libpath_sed='
14041    /Import File Strings/,/^$/ {
14042	/^0/ {
14043	    s/^0  *\(.*\)$/\1/
14044	    p
14045	}
14046    }'
14047aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14048# Check for a 64-bit object if we didn't find anything.
14049if test -z "$aix_libpath"; then
14050  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14051fi
14052else
14053  echo "$as_me: failed program was:" >&5
14054sed 's/^/| /' conftest.$ac_ext >&5
14055
14056
14057fi
14058
14059rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14060      conftest$ac_exeext conftest.$ac_ext
14061if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14062
14063	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14064	  # Warning - without using the other run time loading flags,
14065	  # -berok will link without error, but may produce a broken library.
14066	  no_undefined_flag_F77=' ${wl}-bernotok'
14067	  allow_undefined_flag_F77=' ${wl}-berok'
14068	  # Exported symbols can be pulled into shared objects from archives
14069	  whole_archive_flag_spec_F77='$convenience'
14070	  archive_cmds_need_lc_F77=yes
14071	  # This is similar to how AIX traditionally builds its shared libraries.
14072	  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'
14073	fi
14074      fi
14075      ;;
14076
14077    amigaos*)
14078      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)'
14079      hardcode_libdir_flag_spec_F77='-L$libdir'
14080      hardcode_minus_L_F77=yes
14081      # see comment about different semantics on the GNU ld section
14082      ld_shlibs_F77=no
14083      ;;
14084
14085    bsdi[45]*)
14086      export_dynamic_flag_spec_F77=-rdynamic
14087      ;;
14088
14089    cygwin* | mingw* | pw32*)
14090      # When not using gcc, we currently assume that we are using
14091      # Microsoft Visual C++.
14092      # hardcode_libdir_flag_spec is actually meaningless, as there is
14093      # no search path for DLLs.
14094      hardcode_libdir_flag_spec_F77=' '
14095      allow_undefined_flag_F77=unsupported
14096      # Tell ltmain to make .lib files, not .a files.
14097      libext=lib
14098      # Tell ltmain to make .dll files, not .so files.
14099      shrext_cmds=".dll"
14100      # FIXME: Setting linknames here is a bad hack.
14101      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14102      # The linker will automatically build a .lib file if we build a DLL.
14103      old_archive_From_new_cmds_F77='true'
14104      # FIXME: Should let the user specify the lib program.
14105      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14106      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14107      enable_shared_with_static_runtimes_F77=yes
14108      ;;
14109
14110    darwin* | rhapsody*)
14111      case $host_os in
14112        rhapsody* | darwin1.[012])
14113         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14114         ;;
14115       *) # Darwin 1.3 on
14116         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14117           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14118         else
14119           case ${MACOSX_DEPLOYMENT_TARGET} in
14120             10.[012])
14121               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14122               ;;
14123             10.*)
14124               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14125               ;;
14126           esac
14127         fi
14128         ;;
14129      esac
14130      archive_cmds_need_lc_F77=no
14131      hardcode_direct_F77=no
14132      hardcode_automatic_F77=yes
14133      hardcode_shlibpath_var_F77=unsupported
14134      whole_archive_flag_spec_F77=''
14135      link_all_deplibs_F77=yes
14136    if test "$GCC" = yes ; then
14137    	output_verbose_link_cmd='echo'
14138        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14139      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14140      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14141      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}'
14142      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}'
14143    else
14144      case $cc_basename in
14145        xlc*)
14146         output_verbose_link_cmd='echo'
14147         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14148         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14149          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14150         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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14151          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}'
14152          ;;
14153       *)
14154         ld_shlibs_F77=no
14155          ;;
14156      esac
14157    fi
14158      ;;
14159
14160    dgux*)
14161      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14162      hardcode_libdir_flag_spec_F77='-L$libdir'
14163      hardcode_shlibpath_var_F77=no
14164      ;;
14165
14166    freebsd1*)
14167      ld_shlibs_F77=no
14168      ;;
14169
14170    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14171    # support.  Future versions do this automatically, but an explicit c++rt0.o
14172    # does not break anything, and helps significantly (at the cost of a little
14173    # extra space).
14174    freebsd2.2*)
14175      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14176      hardcode_libdir_flag_spec_F77='-R$libdir'
14177      hardcode_direct_F77=yes
14178      hardcode_shlibpath_var_F77=no
14179      ;;
14180
14181    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14182    freebsd2*)
14183      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14184      hardcode_direct_F77=yes
14185      hardcode_minus_L_F77=yes
14186      hardcode_shlibpath_var_F77=no
14187      ;;
14188
14189    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14190    freebsd* | dragonfly*)
14191      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14192      hardcode_libdir_flag_spec_F77='-R$libdir'
14193      hardcode_direct_F77=yes
14194      hardcode_shlibpath_var_F77=no
14195      ;;
14196
14197    hpux9*)
14198      if test "$GCC" = yes; then
14199	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'
14200      else
14201	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'
14202      fi
14203      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14204      hardcode_libdir_separator_F77=:
14205      hardcode_direct_F77=yes
14206
14207      # hardcode_minus_L: Not really in the search PATH,
14208      # but as the default location of the library.
14209      hardcode_minus_L_F77=yes
14210      export_dynamic_flag_spec_F77='${wl}-E'
14211      ;;
14212
14213    hpux10*)
14214      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14215	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14216      else
14217	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14218      fi
14219      if test "$with_gnu_ld" = no; then
14220	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14221	hardcode_libdir_separator_F77=:
14222
14223	hardcode_direct_F77=yes
14224	export_dynamic_flag_spec_F77='${wl}-E'
14225
14226	# hardcode_minus_L: Not really in the search PATH,
14227	# but as the default location of the library.
14228	hardcode_minus_L_F77=yes
14229      fi
14230      ;;
14231
14232    hpux11*)
14233      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14234	case $host_cpu in
14235	hppa*64*)
14236	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14237	  ;;
14238	ia64*)
14239	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14240	  ;;
14241	*)
14242	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14243	  ;;
14244	esac
14245      else
14246	case $host_cpu in
14247	hppa*64*)
14248	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14249	  ;;
14250	ia64*)
14251	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14252	  ;;
14253	*)
14254	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14255	  ;;
14256	esac
14257      fi
14258      if test "$with_gnu_ld" = no; then
14259	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14260	hardcode_libdir_separator_F77=:
14261
14262	case $host_cpu in
14263	hppa*64*|ia64*)
14264	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14265	  hardcode_direct_F77=no
14266	  hardcode_shlibpath_var_F77=no
14267	  ;;
14268	*)
14269	  hardcode_direct_F77=yes
14270	  export_dynamic_flag_spec_F77='${wl}-E'
14271
14272	  # hardcode_minus_L: Not really in the search PATH,
14273	  # but as the default location of the library.
14274	  hardcode_minus_L_F77=yes
14275	  ;;
14276	esac
14277      fi
14278      ;;
14279
14280    irix5* | irix6* | nonstopux*)
14281      if test "$GCC" = yes; then
14282	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'
14283      else
14284	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'
14285	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14286      fi
14287      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14288      hardcode_libdir_separator_F77=:
14289      link_all_deplibs_F77=yes
14290      ;;
14291
14292    netbsd*)
14293      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14294	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14295      else
14296	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14297      fi
14298      hardcode_libdir_flag_spec_F77='-R$libdir'
14299      hardcode_direct_F77=yes
14300      hardcode_shlibpath_var_F77=no
14301      ;;
14302
14303    newsos6)
14304      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14305      hardcode_direct_F77=yes
14306      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14307      hardcode_libdir_separator_F77=:
14308      hardcode_shlibpath_var_F77=no
14309      ;;
14310
14311    openbsd*)
14312      if test -f /usr/libexec/ld.so; then
14313	hardcode_direct_F77=yes
14314	hardcode_shlibpath_var_F77=no
14315	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14316	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14317	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14318	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14319	  export_dynamic_flag_spec_F77='${wl}-E'
14320	else
14321	  case $host_os in
14322	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14323	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14324	     hardcode_libdir_flag_spec_F77='-R$libdir'
14325	     ;;
14326	   *)
14327	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14328	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14329	     ;;
14330	  esac
14331        fi
14332      else
14333	ld_shlibs_F77=no
14334      fi
14335      ;;
14336
14337    os2*)
14338      hardcode_libdir_flag_spec_F77='-L$libdir'
14339      hardcode_minus_L_F77=yes
14340      allow_undefined_flag_F77=unsupported
14341      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'
14342      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14343      ;;
14344
14345    osf3*)
14346      if test "$GCC" = yes; then
14347	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14348	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'
14349      else
14350	allow_undefined_flag_F77=' -expect_unresolved \*'
14351	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'
14352      fi
14353      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14354      hardcode_libdir_separator_F77=:
14355      ;;
14356
14357    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14358      if test "$GCC" = yes; then
14359	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14360	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'
14361	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14362      else
14363	allow_undefined_flag_F77=' -expect_unresolved \*'
14364	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'
14365	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~
14366	$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'
14367
14368	# Both c and cxx compiler support -rpath directly
14369	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14370      fi
14371      hardcode_libdir_separator_F77=:
14372      ;;
14373
14374    solaris*)
14375      no_undefined_flag_F77=' -z text'
14376      if test "$GCC" = yes; then
14377	wlarc='${wl}'
14378	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14379	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14380	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14381      else
14382	wlarc=''
14383	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14384	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14385  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14386      fi
14387      hardcode_libdir_flag_spec_F77='-R$libdir'
14388      hardcode_shlibpath_var_F77=no
14389      case $host_os in
14390      solaris2.[0-5] | solaris2.[0-5].*) ;;
14391      *)
14392	# The compiler driver will combine and reorder linker options,
14393	# but understands `-z linker_flag'.  GCC discards it without `$wl',
14394	# but is careful enough not to reorder.
14395 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14396	if test "$GCC" = yes; then
14397	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14398	else
14399	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14400	fi
14401	;;
14402      esac
14403      link_all_deplibs_F77=yes
14404      ;;
14405
14406    sunos4*)
14407      if test "x$host_vendor" = xsequent; then
14408	# Use $CC to link under sequent, because it throws in some extra .o
14409	# files that make .init and .fini sections work.
14410	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14411      else
14412	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14413      fi
14414      hardcode_libdir_flag_spec_F77='-L$libdir'
14415      hardcode_direct_F77=yes
14416      hardcode_minus_L_F77=yes
14417      hardcode_shlibpath_var_F77=no
14418      ;;
14419
14420    sysv4)
14421      case $host_vendor in
14422	sni)
14423	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14424	  hardcode_direct_F77=yes # is this really true???
14425	;;
14426	siemens)
14427	  ## LD is ld it makes a PLAMLIB
14428	  ## CC just makes a GrossModule.
14429	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14430	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14431	  hardcode_direct_F77=no
14432        ;;
14433	motorola)
14434	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14435	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14436	;;
14437      esac
14438      runpath_var='LD_RUN_PATH'
14439      hardcode_shlibpath_var_F77=no
14440      ;;
14441
14442    sysv4.3*)
14443      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14444      hardcode_shlibpath_var_F77=no
14445      export_dynamic_flag_spec_F77='-Bexport'
14446      ;;
14447
14448    sysv4*MP*)
14449      if test -d /usr/nec; then
14450	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14451	hardcode_shlibpath_var_F77=no
14452	runpath_var=LD_RUN_PATH
14453	hardcode_runpath_var=yes
14454	ld_shlibs_F77=yes
14455      fi
14456      ;;
14457
14458    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14459      no_undefined_flag_F77='${wl}-z,text'
14460      archive_cmds_need_lc_F77=no
14461      hardcode_shlibpath_var_F77=no
14462      runpath_var='LD_RUN_PATH'
14463
14464      if test "$GCC" = yes; then
14465	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14466	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14467      else
14468	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14469	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14470      fi
14471      ;;
14472
14473    sysv5* | sco3.2v5* | sco5v6*)
14474      # Note: We can NOT use -z defs as we might desire, because we do not
14475      # link with -lc, and that would cause any symbols used from libc to
14476      # always be unresolved, which means just about no library would
14477      # ever link correctly.  If we're not using GNU ld we use -z text
14478      # though, which does catch some bad symbols but isn't as heavy-handed
14479      # as -z defs.
14480      no_undefined_flag_F77='${wl}-z,text'
14481      allow_undefined_flag_F77='${wl}-z,nodefs'
14482      archive_cmds_need_lc_F77=no
14483      hardcode_shlibpath_var_F77=no
14484      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14485      hardcode_libdir_separator_F77=':'
14486      link_all_deplibs_F77=yes
14487      export_dynamic_flag_spec_F77='${wl}-Bexport'
14488      runpath_var='LD_RUN_PATH'
14489
14490      if test "$GCC" = yes; then
14491	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14492	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14493      else
14494	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14495	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14496      fi
14497      ;;
14498
14499    uts4*)
14500      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14501      hardcode_libdir_flag_spec_F77='-L$libdir'
14502      hardcode_shlibpath_var_F77=no
14503      ;;
14504
14505    *)
14506      ld_shlibs_F77=no
14507      ;;
14508    esac
14509  fi
14510
14511{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14512echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14513test "$ld_shlibs_F77" = no && can_build_shared=no
14514
14515#
14516# Do we need to explicitly link libc?
14517#
14518case "x$archive_cmds_need_lc_F77" in
14519x|xyes)
14520  # Assume -lc should be added
14521  archive_cmds_need_lc_F77=yes
14522
14523  if test "$enable_shared" = yes && test "$GCC" = yes; then
14524    case $archive_cmds_F77 in
14525    *'~'*)
14526      # FIXME: we may have to deal with multi-command sequences.
14527      ;;
14528    '$CC '*)
14529      # Test whether the compiler implicitly links with -lc since on some
14530      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14531      # to ld, don't add -lc before -lgcc.
14532      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14533echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14534      $rm conftest*
14535      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14536
14537      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14538  (eval $ac_compile) 2>&5
14539  ac_status=$?
14540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541  (exit $ac_status); } 2>conftest.err; then
14542        soname=conftest
14543        lib=conftest
14544        libobjs=conftest.$ac_objext
14545        deplibs=
14546        wl=$lt_prog_compiler_wl_F77
14547	pic_flag=$lt_prog_compiler_pic_F77
14548        compiler_flags=-v
14549        linker_flags=-v
14550        verstring=
14551        output_objdir=.
14552        libname=conftest
14553        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14554        allow_undefined_flag_F77=
14555        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14556  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14557  ac_status=$?
14558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559  (exit $ac_status); }
14560        then
14561	  archive_cmds_need_lc_F77=no
14562        else
14563	  archive_cmds_need_lc_F77=yes
14564        fi
14565        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14566      else
14567        cat conftest.err 1>&5
14568      fi
14569      $rm conftest*
14570      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14571echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14572      ;;
14573    esac
14574  fi
14575  ;;
14576esac
14577
14578{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14579echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14580library_names_spec=
14581libname_spec='lib$name'
14582soname_spec=
14583shrext_cmds=".so"
14584postinstall_cmds=
14585postuninstall_cmds=
14586finish_cmds=
14587finish_eval=
14588shlibpath_var=
14589shlibpath_overrides_runpath=unknown
14590version_type=none
14591dynamic_linker="$host_os ld.so"
14592sys_lib_dlsearch_path_spec="/lib /usr/lib"
14593
14594need_lib_prefix=unknown
14595hardcode_into_libs=no
14596
14597# when you set need_version to no, make sure it does not cause -set_version
14598# flags to be left without arguments
14599need_version=unknown
14600
14601case $host_os in
14602aix3*)
14603  version_type=linux
14604  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14605  shlibpath_var=LIBPATH
14606
14607  # AIX 3 has no versioning support, so we append a major version to the name.
14608  soname_spec='${libname}${release}${shared_ext}$major'
14609  ;;
14610
14611aix4* | aix5*)
14612  version_type=linux
14613  need_lib_prefix=no
14614  need_version=no
14615  hardcode_into_libs=yes
14616  if test "$host_cpu" = ia64; then
14617    # AIX 5 supports IA64
14618    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14619    shlibpath_var=LD_LIBRARY_PATH
14620  else
14621    # With GCC up to 2.95.x, collect2 would create an import file
14622    # for dependence libraries.  The import file would start with
14623    # the line `#! .'.  This would cause the generated library to
14624    # depend on `.', always an invalid library.  This was fixed in
14625    # development snapshots of GCC prior to 3.0.
14626    case $host_os in
14627      aix4 | aix4.[01] | aix4.[01].*)
14628      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14629	   echo ' yes '
14630	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14631	:
14632      else
14633	can_build_shared=no
14634      fi
14635      ;;
14636    esac
14637    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14638    # soname into executable. Probably we can add versioning support to
14639    # collect2, so additional links can be useful in future.
14640    if test "$aix_use_runtimelinking" = yes; then
14641      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14642      # instead of lib<name>.a to let people know that these are not
14643      # typical AIX shared libraries.
14644      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14645    else
14646      # We preserve .a as extension for shared libraries through AIX4.2
14647      # and later when we are not doing run time linking.
14648      library_names_spec='${libname}${release}.a $libname.a'
14649      soname_spec='${libname}${release}${shared_ext}$major'
14650    fi
14651    shlibpath_var=LIBPATH
14652  fi
14653  ;;
14654
14655amigaos*)
14656  library_names_spec='$libname.ixlibrary $libname.a'
14657  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14658  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'
14659  ;;
14660
14661beos*)
14662  library_names_spec='${libname}${shared_ext}'
14663  dynamic_linker="$host_os ld.so"
14664  shlibpath_var=LIBRARY_PATH
14665  ;;
14666
14667bsdi[45]*)
14668  version_type=linux
14669  need_version=no
14670  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14671  soname_spec='${libname}${release}${shared_ext}$major'
14672  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14673  shlibpath_var=LD_LIBRARY_PATH
14674  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14675  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14676  # the default ld.so.conf also contains /usr/contrib/lib and
14677  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14678  # libtool to hard-code these into programs
14679  ;;
14680
14681cygwin* | mingw* | pw32*)
14682  version_type=windows
14683  shrext_cmds=".dll"
14684  need_version=no
14685  need_lib_prefix=no
14686
14687  case $GCC,$host_os in
14688  yes,cygwin* | yes,mingw* | yes,pw32*)
14689    library_names_spec='$libname.dll.a'
14690    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14691    postinstall_cmds='base_file=`basename \${file}`~
14692      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14693      dldir=$destdir/`dirname \$dlpath`~
14694      test -d \$dldir || mkdir -p \$dldir~
14695      $install_prog $dir/$dlname \$dldir/$dlname~
14696      chmod a+x \$dldir/$dlname'
14697    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14698      dlpath=$dir/\$dldll~
14699       $rm \$dlpath'
14700    shlibpath_overrides_runpath=yes
14701
14702    case $host_os in
14703    cygwin*)
14704      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14705      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14706      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14707      ;;
14708    mingw*)
14709      # MinGW DLLs use traditional 'lib' prefix
14710      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14711      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14712      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14713        # It is most probably a Windows format PATH printed by
14714        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14715        # path with ; separators, and with drive letters. We can handle the
14716        # drive letters (cygwin fileutils understands them), so leave them,
14717        # especially as we might pass files found there to a mingw objdump,
14718        # which wouldn't understand a cygwinified path. Ahh.
14719        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14720      else
14721        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14722      fi
14723      ;;
14724    pw32*)
14725      # pw32 DLLs use 'pw' prefix rather than 'lib'
14726      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14727      ;;
14728    esac
14729    ;;
14730
14731  *)
14732    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14733    ;;
14734  esac
14735  dynamic_linker='Win32 ld.exe'
14736  # FIXME: first we should search . and the directory the executable is in
14737  shlibpath_var=PATH
14738  ;;
14739
14740darwin* | rhapsody*)
14741  dynamic_linker="$host_os dyld"
14742  version_type=darwin
14743  need_lib_prefix=no
14744  need_version=no
14745  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14746  soname_spec='${libname}${release}${major}$shared_ext'
14747  shlibpath_overrides_runpath=yes
14748  shlibpath_var=DYLD_LIBRARY_PATH
14749  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14750
14751  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14752  ;;
14753
14754dgux*)
14755  version_type=linux
14756  need_lib_prefix=no
14757  need_version=no
14758  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14759  soname_spec='${libname}${release}${shared_ext}$major'
14760  shlibpath_var=LD_LIBRARY_PATH
14761  ;;
14762
14763freebsd1*)
14764  dynamic_linker=no
14765  ;;
14766
14767freebsd* | dragonfly*)
14768  # DragonFly does not have aout.  When/if they implement a new
14769  # versioning mechanism, adjust this.
14770  if test -x /usr/bin/objformat; then
14771    objformat=`/usr/bin/objformat`
14772  else
14773    case $host_os in
14774    freebsd[123]*) objformat=aout ;;
14775    *) objformat=elf ;;
14776    esac
14777  fi
14778  version_type=freebsd-$objformat
14779  case $version_type in
14780    freebsd-elf*)
14781      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14782      need_version=no
14783      need_lib_prefix=no
14784      ;;
14785    freebsd-*)
14786      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14787      need_version=yes
14788      ;;
14789  esac
14790  shlibpath_var=LD_LIBRARY_PATH
14791  case $host_os in
14792  freebsd2*)
14793    shlibpath_overrides_runpath=yes
14794    ;;
14795  freebsd3.[01]* | freebsdelf3.[01]*)
14796    shlibpath_overrides_runpath=yes
14797    hardcode_into_libs=yes
14798    ;;
14799  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14800  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14801    shlibpath_overrides_runpath=no
14802    hardcode_into_libs=yes
14803    ;;
14804  *) # from 4.6 on, and DragonFly
14805    shlibpath_overrides_runpath=yes
14806    hardcode_into_libs=yes
14807    ;;
14808  esac
14809  ;;
14810
14811gnu*)
14812  version_type=linux
14813  need_lib_prefix=no
14814  need_version=no
14815  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14816  soname_spec='${libname}${release}${shared_ext}$major'
14817  shlibpath_var=LD_LIBRARY_PATH
14818  hardcode_into_libs=yes
14819  ;;
14820
14821hpux9* | hpux10* | hpux11*)
14822  # Give a soname corresponding to the major version so that dld.sl refuses to
14823  # link against other versions.
14824  version_type=sunos
14825  need_lib_prefix=no
14826  need_version=no
14827  case $host_cpu in
14828  ia64*)
14829    shrext_cmds='.so'
14830    hardcode_into_libs=yes
14831    dynamic_linker="$host_os dld.so"
14832    shlibpath_var=LD_LIBRARY_PATH
14833    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14834    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14835    soname_spec='${libname}${release}${shared_ext}$major'
14836    if test "X$HPUX_IA64_MODE" = X32; then
14837      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14838    else
14839      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14840    fi
14841    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14842    ;;
14843   hppa*64*)
14844     shrext_cmds='.sl'
14845     hardcode_into_libs=yes
14846     dynamic_linker="$host_os dld.sl"
14847     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14848     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14849     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14850     soname_spec='${libname}${release}${shared_ext}$major'
14851     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14852     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14853     ;;
14854   *)
14855    shrext_cmds='.sl'
14856    dynamic_linker="$host_os dld.sl"
14857    shlibpath_var=SHLIB_PATH
14858    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14859    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14860    soname_spec='${libname}${release}${shared_ext}$major'
14861    ;;
14862  esac
14863  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14864  postinstall_cmds='chmod 555 $lib'
14865  ;;
14866
14867interix[3-9]*)
14868  version_type=linux
14869  need_lib_prefix=no
14870  need_version=no
14871  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14872  soname_spec='${libname}${release}${shared_ext}$major'
14873  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14874  shlibpath_var=LD_LIBRARY_PATH
14875  shlibpath_overrides_runpath=no
14876  hardcode_into_libs=yes
14877  ;;
14878
14879irix5* | irix6* | nonstopux*)
14880  case $host_os in
14881    nonstopux*) version_type=nonstopux ;;
14882    *)
14883	if test "$lt_cv_prog_gnu_ld" = yes; then
14884		version_type=linux
14885	else
14886		version_type=irix
14887	fi ;;
14888  esac
14889  need_lib_prefix=no
14890  need_version=no
14891  soname_spec='${libname}${release}${shared_ext}$major'
14892  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14893  case $host_os in
14894  irix5* | nonstopux*)
14895    libsuff= shlibsuff=
14896    ;;
14897  *)
14898    case $LD in # libtool.m4 will add one of these switches to LD
14899    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14900      libsuff= shlibsuff= libmagic=32-bit;;
14901    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14902      libsuff=32 shlibsuff=N32 libmagic=N32;;
14903    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14904      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14905    *) libsuff= shlibsuff= libmagic=never-match;;
14906    esac
14907    ;;
14908  esac
14909  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14910  shlibpath_overrides_runpath=no
14911  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14912  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14913  hardcode_into_libs=yes
14914  ;;
14915
14916# No shared lib support for Linux oldld, aout, or coff.
14917linux*oldld* | linux*aout* | linux*coff*)
14918  dynamic_linker=no
14919  ;;
14920
14921# This must be Linux ELF.
14922linux* | k*bsd*-gnu)
14923  version_type=linux
14924  need_lib_prefix=no
14925  need_version=no
14926  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14927  soname_spec='${libname}${release}${shared_ext}$major'
14928  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14929  shlibpath_var=LD_LIBRARY_PATH
14930  shlibpath_overrides_runpath=no
14931  # This implies no fast_install, which is unacceptable.
14932  # Some rework will be needed to allow for fast_install
14933  # before this can be enabled.
14934  hardcode_into_libs=yes
14935
14936  # Append ld.so.conf contents to the search path
14937  if test -f /etc/ld.so.conf; then
14938    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14939    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14940  fi
14941
14942  # We used to test for /lib/ld.so.1 and disable shared libraries on
14943  # powerpc, because MkLinux only supported shared libraries with the
14944  # GNU dynamic linker.  Since this was broken with cross compilers,
14945  # most powerpc-linux boxes support dynamic linking these days and
14946  # people can always --disable-shared, the test was removed, and we
14947  # assume the GNU/Linux dynamic linker is in use.
14948  dynamic_linker='GNU/Linux ld.so'
14949  ;;
14950
14951netbsd*)
14952  version_type=sunos
14953  need_lib_prefix=no
14954  need_version=no
14955  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14956    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14957    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14958    dynamic_linker='NetBSD (a.out) ld.so'
14959  else
14960    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14961    soname_spec='${libname}${release}${shared_ext}$major'
14962    dynamic_linker='NetBSD ld.elf_so'
14963  fi
14964  shlibpath_var=LD_LIBRARY_PATH
14965  shlibpath_overrides_runpath=yes
14966  hardcode_into_libs=yes
14967  ;;
14968
14969newsos6)
14970  version_type=linux
14971  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14972  shlibpath_var=LD_LIBRARY_PATH
14973  shlibpath_overrides_runpath=yes
14974  ;;
14975
14976nto-qnx*)
14977  version_type=linux
14978  need_lib_prefix=no
14979  need_version=no
14980  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14981  soname_spec='${libname}${release}${shared_ext}$major'
14982  shlibpath_var=LD_LIBRARY_PATH
14983  shlibpath_overrides_runpath=yes
14984  ;;
14985
14986openbsd*)
14987  version_type=sunos
14988  sys_lib_dlsearch_path_spec="/usr/lib"
14989  need_lib_prefix=no
14990  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14991  case $host_os in
14992    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14993    *)                         need_version=no  ;;
14994  esac
14995  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14996  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14997  shlibpath_var=LD_LIBRARY_PATH
14998  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14999    case $host_os in
15000      openbsd2.[89] | openbsd2.[89].*)
15001	shlibpath_overrides_runpath=no
15002	;;
15003      *)
15004	shlibpath_overrides_runpath=yes
15005	;;
15006      esac
15007  else
15008    shlibpath_overrides_runpath=yes
15009  fi
15010  ;;
15011
15012os2*)
15013  libname_spec='$name'
15014  shrext_cmds=".dll"
15015  need_lib_prefix=no
15016  library_names_spec='$libname${shared_ext} $libname.a'
15017  dynamic_linker='OS/2 ld.exe'
15018  shlibpath_var=LIBPATH
15019  ;;
15020
15021osf3* | osf4* | osf5*)
15022  version_type=osf
15023  need_lib_prefix=no
15024  need_version=no
15025  soname_spec='${libname}${release}${shared_ext}$major'
15026  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15027  shlibpath_var=LD_LIBRARY_PATH
15028  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15029  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15030  ;;
15031
15032rdos*)
15033  dynamic_linker=no
15034  ;;
15035
15036solaris*)
15037  version_type=linux
15038  need_lib_prefix=no
15039  need_version=no
15040  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15041  soname_spec='${libname}${release}${shared_ext}$major'
15042  shlibpath_var=LD_LIBRARY_PATH
15043  shlibpath_overrides_runpath=yes
15044  hardcode_into_libs=yes
15045  # ldd complains unless libraries are executable
15046  postinstall_cmds='chmod +x $lib'
15047  ;;
15048
15049sunos4*)
15050  version_type=sunos
15051  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15052  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15053  shlibpath_var=LD_LIBRARY_PATH
15054  shlibpath_overrides_runpath=yes
15055  if test "$with_gnu_ld" = yes; then
15056    need_lib_prefix=no
15057  fi
15058  need_version=yes
15059  ;;
15060
15061sysv4 | sysv4.3*)
15062  version_type=linux
15063  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15064  soname_spec='${libname}${release}${shared_ext}$major'
15065  shlibpath_var=LD_LIBRARY_PATH
15066  case $host_vendor in
15067    sni)
15068      shlibpath_overrides_runpath=no
15069      need_lib_prefix=no
15070      export_dynamic_flag_spec='${wl}-Blargedynsym'
15071      runpath_var=LD_RUN_PATH
15072      ;;
15073    siemens)
15074      need_lib_prefix=no
15075      ;;
15076    motorola)
15077      need_lib_prefix=no
15078      need_version=no
15079      shlibpath_overrides_runpath=no
15080      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15081      ;;
15082  esac
15083  ;;
15084
15085sysv4*MP*)
15086  if test -d /usr/nec ;then
15087    version_type=linux
15088    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15089    soname_spec='$libname${shared_ext}.$major'
15090    shlibpath_var=LD_LIBRARY_PATH
15091  fi
15092  ;;
15093
15094sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15095  version_type=freebsd-elf
15096  need_lib_prefix=no
15097  need_version=no
15098  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15099  soname_spec='${libname}${release}${shared_ext}$major'
15100  shlibpath_var=LD_LIBRARY_PATH
15101  hardcode_into_libs=yes
15102  if test "$with_gnu_ld" = yes; then
15103    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15104    shlibpath_overrides_runpath=no
15105  else
15106    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15107    shlibpath_overrides_runpath=yes
15108    case $host_os in
15109      sco3.2v5*)
15110        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15111	;;
15112    esac
15113  fi
15114  sys_lib_dlsearch_path_spec='/usr/lib'
15115  ;;
15116
15117uts4*)
15118  version_type=linux
15119  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15120  soname_spec='${libname}${release}${shared_ext}$major'
15121  shlibpath_var=LD_LIBRARY_PATH
15122  ;;
15123
15124*)
15125  dynamic_linker=no
15126  ;;
15127esac
15128{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15129echo "${ECHO_T}$dynamic_linker" >&6; }
15130test "$dynamic_linker" = no && can_build_shared=no
15131
15132variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15133if test "$GCC" = yes; then
15134  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15135fi
15136
15137{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15138echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15139hardcode_action_F77=
15140if test -n "$hardcode_libdir_flag_spec_F77" || \
15141   test -n "$runpath_var_F77" || \
15142   test "X$hardcode_automatic_F77" = "Xyes" ; then
15143
15144  # We can hardcode non-existant directories.
15145  if test "$hardcode_direct_F77" != no &&
15146     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15147     # have to relink, otherwise we might link with an installed library
15148     # when we should be linking with a yet-to-be-installed one
15149     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15150     test "$hardcode_minus_L_F77" != no; then
15151    # Linking always hardcodes the temporary library directory.
15152    hardcode_action_F77=relink
15153  else
15154    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15155    hardcode_action_F77=immediate
15156  fi
15157else
15158  # We cannot hardcode anything, or else we can only hardcode existing
15159  # directories.
15160  hardcode_action_F77=unsupported
15161fi
15162{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15163echo "${ECHO_T}$hardcode_action_F77" >&6; }
15164
15165if test "$hardcode_action_F77" = relink; then
15166  # Fast installation is not supported
15167  enable_fast_install=no
15168elif test "$shlibpath_overrides_runpath" = yes ||
15169     test "$enable_shared" = no; then
15170  # Fast installation is not necessary
15171  enable_fast_install=needless
15172fi
15173
15174
15175# The else clause should only fire when bootstrapping the
15176# libtool distribution, otherwise you forgot to ship ltmain.sh
15177# with your package, and you will get complaints that there are
15178# no rules to generate ltmain.sh.
15179if test -f "$ltmain"; then
15180  # See if we are running on zsh, and set the options which allow our commands through
15181  # without removal of \ escapes.
15182  if test -n "${ZSH_VERSION+set}" ; then
15183    setopt NO_GLOB_SUBST
15184  fi
15185  # Now quote all the things that may contain metacharacters while being
15186  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15187  # variables and quote the copies for generation of the libtool script.
15188  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15189    SED SHELL STRIP \
15190    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15191    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15192    deplibs_check_method reload_flag reload_cmds need_locks \
15193    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15194    lt_cv_sys_global_symbol_to_c_name_address \
15195    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15196    old_postinstall_cmds old_postuninstall_cmds \
15197    compiler_F77 \
15198    CC_F77 \
15199    LD_F77 \
15200    lt_prog_compiler_wl_F77 \
15201    lt_prog_compiler_pic_F77 \
15202    lt_prog_compiler_static_F77 \
15203    lt_prog_compiler_no_builtin_flag_F77 \
15204    export_dynamic_flag_spec_F77 \
15205    thread_safe_flag_spec_F77 \
15206    whole_archive_flag_spec_F77 \
15207    enable_shared_with_static_runtimes_F77 \
15208    old_archive_cmds_F77 \
15209    old_archive_from_new_cmds_F77 \
15210    predep_objects_F77 \
15211    postdep_objects_F77 \
15212    predeps_F77 \
15213    postdeps_F77 \
15214    compiler_lib_search_path_F77 \
15215    archive_cmds_F77 \
15216    archive_expsym_cmds_F77 \
15217    postinstall_cmds_F77 \
15218    postuninstall_cmds_F77 \
15219    old_archive_from_expsyms_cmds_F77 \
15220    allow_undefined_flag_F77 \
15221    no_undefined_flag_F77 \
15222    export_symbols_cmds_F77 \
15223    hardcode_libdir_flag_spec_F77 \
15224    hardcode_libdir_flag_spec_ld_F77 \
15225    hardcode_libdir_separator_F77 \
15226    hardcode_automatic_F77 \
15227    module_cmds_F77 \
15228    module_expsym_cmds_F77 \
15229    lt_cv_prog_compiler_c_o_F77 \
15230    fix_srcfile_path_F77 \
15231    exclude_expsyms_F77 \
15232    include_expsyms_F77; do
15233
15234    case $var in
15235    old_archive_cmds_F77 | \
15236    old_archive_from_new_cmds_F77 | \
15237    archive_cmds_F77 | \
15238    archive_expsym_cmds_F77 | \
15239    module_cmds_F77 | \
15240    module_expsym_cmds_F77 | \
15241    old_archive_from_expsyms_cmds_F77 | \
15242    export_symbols_cmds_F77 | \
15243    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15244    postinstall_cmds | postuninstall_cmds | \
15245    old_postinstall_cmds | old_postuninstall_cmds | \
15246    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15247      # Double-quote double-evaled strings.
15248      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15249      ;;
15250    *)
15251      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15252      ;;
15253    esac
15254  done
15255
15256  case $lt_echo in
15257  *'\$0 --fallback-echo"')
15258    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15259    ;;
15260  esac
15261
15262cfgfile="$ofile"
15263
15264  cat <<__EOF__ >> "$cfgfile"
15265# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15266
15267# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15268
15269# Shell to use when invoking shell scripts.
15270SHELL=$lt_SHELL
15271
15272# Whether or not to build shared libraries.
15273build_libtool_libs=$enable_shared
15274
15275# Whether or not to build static libraries.
15276build_old_libs=$enable_static
15277
15278# Whether or not to add -lc for building shared libraries.
15279build_libtool_need_lc=$archive_cmds_need_lc_F77
15280
15281# Whether or not to disallow shared libs when runtime libs are static
15282allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15283
15284# Whether or not to optimize for fast installation.
15285fast_install=$enable_fast_install
15286
15287# The host system.
15288host_alias=$host_alias
15289host=$host
15290host_os=$host_os
15291
15292# The build system.
15293build_alias=$build_alias
15294build=$build
15295build_os=$build_os
15296
15297# An echo program that does not interpret backslashes.
15298echo=$lt_echo
15299
15300# The archiver.
15301AR=$lt_AR
15302AR_FLAGS=$lt_AR_FLAGS
15303
15304# A C compiler.
15305LTCC=$lt_LTCC
15306
15307# LTCC compiler flags.
15308LTCFLAGS=$lt_LTCFLAGS
15309
15310# A language-specific compiler.
15311CC=$lt_compiler_F77
15312
15313# Is the compiler the GNU C compiler?
15314with_gcc=$GCC_F77
15315
15316# An ERE matcher.
15317EGREP=$lt_EGREP
15318
15319# The linker used to build libraries.
15320LD=$lt_LD_F77
15321
15322# Whether we need hard or soft links.
15323LN_S=$lt_LN_S
15324
15325# A BSD-compatible nm program.
15326NM=$lt_NM
15327
15328# A symbol stripping program
15329STRIP=$lt_STRIP
15330
15331# Used to examine libraries when file_magic_cmd begins "file"
15332MAGIC_CMD=$MAGIC_CMD
15333
15334# Used on cygwin: DLL creation program.
15335DLLTOOL="$DLLTOOL"
15336
15337# Used on cygwin: object dumper.
15338OBJDUMP="$OBJDUMP"
15339
15340# Used on cygwin: assembler.
15341AS="$AS"
15342
15343# The name of the directory that contains temporary libtool files.
15344objdir=$objdir
15345
15346# How to create reloadable object files.
15347reload_flag=$lt_reload_flag
15348reload_cmds=$lt_reload_cmds
15349
15350# How to pass a linker flag through the compiler.
15351wl=$lt_lt_prog_compiler_wl_F77
15352
15353# Object file suffix (normally "o").
15354objext="$ac_objext"
15355
15356# Old archive suffix (normally "a").
15357libext="$libext"
15358
15359# Shared library suffix (normally ".so").
15360shrext_cmds='$shrext_cmds'
15361
15362# Executable file suffix (normally "").
15363exeext="$exeext"
15364
15365# Additional compiler flags for building library objects.
15366pic_flag=$lt_lt_prog_compiler_pic_F77
15367pic_mode=$pic_mode
15368
15369# What is the maximum length of a command?
15370max_cmd_len=$lt_cv_sys_max_cmd_len
15371
15372# Does compiler simultaneously support -c and -o options?
15373compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15374
15375# Must we lock files when doing compilation?
15376need_locks=$lt_need_locks
15377
15378# Do we need the lib prefix for modules?
15379need_lib_prefix=$need_lib_prefix
15380
15381# Do we need a version for libraries?
15382need_version=$need_version
15383
15384# Whether dlopen is supported.
15385dlopen_support=$enable_dlopen
15386
15387# Whether dlopen of programs is supported.
15388dlopen_self=$enable_dlopen_self
15389
15390# Whether dlopen of statically linked programs is supported.
15391dlopen_self_static=$enable_dlopen_self_static
15392
15393# Compiler flag to prevent dynamic linking.
15394link_static_flag=$lt_lt_prog_compiler_static_F77
15395
15396# Compiler flag to turn off builtin functions.
15397no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15398
15399# Compiler flag to allow reflexive dlopens.
15400export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15401
15402# Compiler flag to generate shared objects directly from archives.
15403whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15404
15405# Compiler flag to generate thread-safe objects.
15406thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15407
15408# Library versioning type.
15409version_type=$version_type
15410
15411# Format of library name prefix.
15412libname_spec=$lt_libname_spec
15413
15414# List of archive names.  First name is the real one, the rest are links.
15415# The last name is the one that the linker finds with -lNAME.
15416library_names_spec=$lt_library_names_spec
15417
15418# The coded name of the library, if different from the real name.
15419soname_spec=$lt_soname_spec
15420
15421# Commands used to build and install an old-style archive.
15422RANLIB=$lt_RANLIB
15423old_archive_cmds=$lt_old_archive_cmds_F77
15424old_postinstall_cmds=$lt_old_postinstall_cmds
15425old_postuninstall_cmds=$lt_old_postuninstall_cmds
15426
15427# Create an old-style archive from a shared archive.
15428old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15429
15430# Create a temporary old-style archive to link instead of a shared archive.
15431old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15432
15433# Commands used to build and install a shared archive.
15434archive_cmds=$lt_archive_cmds_F77
15435archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15436postinstall_cmds=$lt_postinstall_cmds
15437postuninstall_cmds=$lt_postuninstall_cmds
15438
15439# Commands used to build a loadable module (assumed same as above if empty)
15440module_cmds=$lt_module_cmds_F77
15441module_expsym_cmds=$lt_module_expsym_cmds_F77
15442
15443# Commands to strip libraries.
15444old_striplib=$lt_old_striplib
15445striplib=$lt_striplib
15446
15447# Dependencies to place before the objects being linked to create a
15448# shared library.
15449predep_objects=$lt_predep_objects_F77
15450
15451# Dependencies to place after the objects being linked to create a
15452# shared library.
15453postdep_objects=$lt_postdep_objects_F77
15454
15455# Dependencies to place before the objects being linked to create a
15456# shared library.
15457predeps=$lt_predeps_F77
15458
15459# Dependencies to place after the objects being linked to create a
15460# shared library.
15461postdeps=$lt_postdeps_F77
15462
15463# The library search path used internally by the compiler when linking
15464# a shared library.
15465compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15466
15467# Method to check whether dependent libraries are shared objects.
15468deplibs_check_method=$lt_deplibs_check_method
15469
15470# Command to use when deplibs_check_method == file_magic.
15471file_magic_cmd=$lt_file_magic_cmd
15472
15473# Flag that allows shared libraries with undefined symbols to be built.
15474allow_undefined_flag=$lt_allow_undefined_flag_F77
15475
15476# Flag that forces no undefined symbols.
15477no_undefined_flag=$lt_no_undefined_flag_F77
15478
15479# Commands used to finish a libtool library installation in a directory.
15480finish_cmds=$lt_finish_cmds
15481
15482# Same as above, but a single script fragment to be evaled but not shown.
15483finish_eval=$lt_finish_eval
15484
15485# Take the output of nm and produce a listing of raw symbols and C names.
15486global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15487
15488# Transform the output of nm in a proper C declaration
15489global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15490
15491# Transform the output of nm in a C name address pair
15492global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15493
15494# This is the shared library runtime path variable.
15495runpath_var=$runpath_var
15496
15497# This is the shared library path variable.
15498shlibpath_var=$shlibpath_var
15499
15500# Is shlibpath searched before the hard-coded library search path?
15501shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15502
15503# How to hardcode a shared library path into an executable.
15504hardcode_action=$hardcode_action_F77
15505
15506# Whether we should hardcode library paths into libraries.
15507hardcode_into_libs=$hardcode_into_libs
15508
15509# Flag to hardcode \$libdir into a binary during linking.
15510# This must work even if \$libdir does not exist.
15511hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15512
15513# If ld is used when linking, flag to hardcode \$libdir into
15514# a binary during linking. This must work even if \$libdir does
15515# not exist.
15516hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15517
15518# Whether we need a single -rpath flag with a separated argument.
15519hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15520
15521# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15522# resulting binary.
15523hardcode_direct=$hardcode_direct_F77
15524
15525# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15526# resulting binary.
15527hardcode_minus_L=$hardcode_minus_L_F77
15528
15529# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15530# the resulting binary.
15531hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15532
15533# Set to yes if building a shared library automatically hardcodes DIR into the library
15534# and all subsequent libraries and executables linked against it.
15535hardcode_automatic=$hardcode_automatic_F77
15536
15537# Variables whose values should be saved in libtool wrapper scripts and
15538# restored at relink time.
15539variables_saved_for_relink="$variables_saved_for_relink"
15540
15541# Whether libtool must link a program against all its dependency libraries.
15542link_all_deplibs=$link_all_deplibs_F77
15543
15544# Compile-time system search path for libraries
15545sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15546
15547# Run-time system search path for libraries
15548sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15549
15550# Fix the shell variable \$srcfile for the compiler.
15551fix_srcfile_path=$lt_fix_srcfile_path
15552
15553# Set to yes if exported symbols are required.
15554always_export_symbols=$always_export_symbols_F77
15555
15556# The commands to list exported symbols.
15557export_symbols_cmds=$lt_export_symbols_cmds_F77
15558
15559# The commands to extract the exported symbol list from a shared archive.
15560extract_expsyms_cmds=$lt_extract_expsyms_cmds
15561
15562# Symbols that should not be listed in the preloaded symbols.
15563exclude_expsyms=$lt_exclude_expsyms_F77
15564
15565# Symbols that must always be exported.
15566include_expsyms=$lt_include_expsyms_F77
15567
15568# ### END LIBTOOL TAG CONFIG: $tagname
15569
15570__EOF__
15571
15572
15573else
15574  # If there is no Makefile yet, we rely on a make rule to execute
15575  # `config.status --recheck' to rerun these tests and create the
15576  # libtool script then.
15577  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15578  if test -f "$ltmain_in"; then
15579    test -f Makefile && make "$ltmain"
15580  fi
15581fi
15582
15583
15584ac_ext=c
15585ac_cpp='$CPP $CPPFLAGS'
15586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15588ac_compiler_gnu=$ac_cv_c_compiler_gnu
15589
15590CC="$lt_save_CC"
15591
15592	else
15593	  tagname=""
15594	fi
15595	;;
15596
15597      GCJ)
15598	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15599
15600
15601# Source file extension for Java test sources.
15602ac_ext=java
15603
15604# Object file extension for compiled Java test sources.
15605objext=o
15606objext_GCJ=$objext
15607
15608# Code to be used in simple compile tests
15609lt_simple_compile_test_code="class foo {}"
15610
15611# Code to be used in simple link tests
15612lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
15613
15614# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15615
15616# If no C compiler was specified, use CC.
15617LTCC=${LTCC-"$CC"}
15618
15619# If no C compiler flags were specified, use CFLAGS.
15620LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15621
15622# Allow CC to be a program name with arguments.
15623compiler=$CC
15624
15625
15626# save warnings/boilerplate of simple test code
15627ac_outfile=conftest.$ac_objext
15628echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15629eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15630_lt_compiler_boilerplate=`cat conftest.err`
15631$rm conftest*
15632
15633ac_outfile=conftest.$ac_objext
15634echo "$lt_simple_link_test_code" >conftest.$ac_ext
15635eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15636_lt_linker_boilerplate=`cat conftest.err`
15637$rm conftest*
15638
15639
15640# Allow CC to be a program name with arguments.
15641lt_save_CC="$CC"
15642CC=${GCJ-"gcj"}
15643compiler=$CC
15644compiler_GCJ=$CC
15645for cc_temp in $compiler""; do
15646  case $cc_temp in
15647    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15648    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15649    \-*) ;;
15650    *) break;;
15651  esac
15652done
15653cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15654
15655
15656# GCJ did not exist at the time GCC didn't implicitly link libc in.
15657archive_cmds_need_lc_GCJ=no
15658
15659old_archive_cmds_GCJ=$old_archive_cmds
15660
15661
15662lt_prog_compiler_no_builtin_flag_GCJ=
15663
15664if test "$GCC" = yes; then
15665  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15666
15667
15668{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15669echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15670if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15671  echo $ECHO_N "(cached) $ECHO_C" >&6
15672else
15673  lt_cv_prog_compiler_rtti_exceptions=no
15674  ac_outfile=conftest.$ac_objext
15675   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15676   lt_compiler_flag="-fno-rtti -fno-exceptions"
15677   # Insert the option either (1) after the last *FLAGS variable, or
15678   # (2) before a word containing "conftest.", or (3) at the end.
15679   # Note that $ac_compile itself does not contain backslashes and begins
15680   # with a dollar sign (not a hyphen), so the echo should work correctly.
15681   # The option is referenced via a variable to avoid confusing sed.
15682   lt_compile=`echo "$ac_compile" | $SED \
15683   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15684   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15685   -e 's:$: $lt_compiler_flag:'`
15686   (eval echo "\"\$as_me:15686: $lt_compile\"" >&5)
15687   (eval "$lt_compile" 2>conftest.err)
15688   ac_status=$?
15689   cat conftest.err >&5
15690   echo "$as_me:15690: \$? = $ac_status" >&5
15691   if (exit $ac_status) && test -s "$ac_outfile"; then
15692     # The compiler can only warn and ignore the option if not recognized
15693     # So say no if there are warnings other than the usual output.
15694     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15695     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15696     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15697       lt_cv_prog_compiler_rtti_exceptions=yes
15698     fi
15699   fi
15700   $rm conftest*
15701
15702fi
15703{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15704echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15705
15706if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15707    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15708else
15709    :
15710fi
15711
15712fi
15713
15714lt_prog_compiler_wl_GCJ=
15715lt_prog_compiler_pic_GCJ=
15716lt_prog_compiler_static_GCJ=
15717
15718{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15719echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15720
15721  if test "$GCC" = yes; then
15722    lt_prog_compiler_wl_GCJ='-Wl,'
15723    lt_prog_compiler_static_GCJ='-static'
15724
15725    case $host_os in
15726      aix*)
15727      # All AIX code is PIC.
15728      if test "$host_cpu" = ia64; then
15729	# AIX 5 now supports IA64 processor
15730	lt_prog_compiler_static_GCJ='-Bstatic'
15731      fi
15732      ;;
15733
15734    amigaos*)
15735      # FIXME: we need at least 68020 code to build shared libraries, but
15736      # adding the `-m68020' flag to GCC prevents building anything better,
15737      # like `-m68040'.
15738      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15739      ;;
15740
15741    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15742      # PIC is the default for these OSes.
15743      ;;
15744
15745    mingw* | cygwin* | pw32* | os2*)
15746      # This hack is so that the source file can tell whether it is being
15747      # built for inclusion in a dll (and should export symbols for example).
15748      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15749      # (--disable-auto-import) libraries
15750      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15751      ;;
15752
15753    darwin* | rhapsody*)
15754      # PIC is the default on this platform
15755      # Common symbols not allowed in MH_DYLIB files
15756      lt_prog_compiler_pic_GCJ='-fno-common'
15757      ;;
15758
15759    interix[3-9]*)
15760      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15761      # Instead, we relocate shared libraries at runtime.
15762      ;;
15763
15764    msdosdjgpp*)
15765      # Just because we use GCC doesn't mean we suddenly get shared libraries
15766      # on systems that don't support them.
15767      lt_prog_compiler_can_build_shared_GCJ=no
15768      enable_shared=no
15769      ;;
15770
15771    sysv4*MP*)
15772      if test -d /usr/nec; then
15773	lt_prog_compiler_pic_GCJ=-Kconform_pic
15774      fi
15775      ;;
15776
15777    hpux*)
15778      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15779      # not for PA HP-UX.
15780      case $host_cpu in
15781      hppa*64*|ia64*)
15782	# +Z the default
15783	;;
15784      *)
15785	lt_prog_compiler_pic_GCJ='-fPIC'
15786	;;
15787      esac
15788      ;;
15789
15790    *)
15791      lt_prog_compiler_pic_GCJ='-fPIC'
15792      ;;
15793    esac
15794  else
15795    # PORTME Check for flag to pass linker flags through the system compiler.
15796    case $host_os in
15797    aix*)
15798      lt_prog_compiler_wl_GCJ='-Wl,'
15799      if test "$host_cpu" = ia64; then
15800	# AIX 5 now supports IA64 processor
15801	lt_prog_compiler_static_GCJ='-Bstatic'
15802      else
15803	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15804      fi
15805      ;;
15806      darwin*)
15807        # PIC is the default on this platform
15808        # Common symbols not allowed in MH_DYLIB files
15809       case $cc_basename in
15810         xlc*)
15811         lt_prog_compiler_pic_GCJ='-qnocommon'
15812         lt_prog_compiler_wl_GCJ='-Wl,'
15813         ;;
15814       esac
15815       ;;
15816
15817    mingw* | cygwin* | pw32* | os2*)
15818      # This hack is so that the source file can tell whether it is being
15819      # built for inclusion in a dll (and should export symbols for example).
15820      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15821      ;;
15822
15823    hpux9* | hpux10* | hpux11*)
15824      lt_prog_compiler_wl_GCJ='-Wl,'
15825      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15826      # not for PA HP-UX.
15827      case $host_cpu in
15828      hppa*64*|ia64*)
15829	# +Z the default
15830	;;
15831      *)
15832	lt_prog_compiler_pic_GCJ='+Z'
15833	;;
15834      esac
15835      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15836      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15837      ;;
15838
15839    irix5* | irix6* | nonstopux*)
15840      lt_prog_compiler_wl_GCJ='-Wl,'
15841      # PIC (with -KPIC) is the default.
15842      lt_prog_compiler_static_GCJ='-non_shared'
15843      ;;
15844
15845    newsos6)
15846      lt_prog_compiler_pic_GCJ='-KPIC'
15847      lt_prog_compiler_static_GCJ='-Bstatic'
15848      ;;
15849
15850    linux* | k*bsd*-gnu)
15851      case $cc_basename in
15852      icc* | ecc*)
15853	lt_prog_compiler_wl_GCJ='-Wl,'
15854	lt_prog_compiler_pic_GCJ='-KPIC'
15855	lt_prog_compiler_static_GCJ='-static'
15856        ;;
15857      pgcc* | pgf77* | pgf90* | pgf95*)
15858        # Portland Group compilers (*not* the Pentium gcc compiler,
15859	# which looks to be a dead project)
15860	lt_prog_compiler_wl_GCJ='-Wl,'
15861	lt_prog_compiler_pic_GCJ='-fpic'
15862	lt_prog_compiler_static_GCJ='-Bstatic'
15863        ;;
15864      ccc*)
15865        lt_prog_compiler_wl_GCJ='-Wl,'
15866        # All Alpha code is PIC.
15867        lt_prog_compiler_static_GCJ='-non_shared'
15868        ;;
15869      *)
15870        case `$CC -V 2>&1 | sed 5q` in
15871	*Sun\ C*)
15872	  # Sun C 5.9
15873	  lt_prog_compiler_pic_GCJ='-KPIC'
15874	  lt_prog_compiler_static_GCJ='-Bstatic'
15875	  lt_prog_compiler_wl_GCJ='-Wl,'
15876	  ;;
15877	*Sun\ F*)
15878	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
15879	  lt_prog_compiler_pic_GCJ='-KPIC'
15880	  lt_prog_compiler_static_GCJ='-Bstatic'
15881	  lt_prog_compiler_wl_GCJ=''
15882	  ;;
15883	esac
15884	;;
15885      esac
15886      ;;
15887
15888    osf3* | osf4* | osf5*)
15889      lt_prog_compiler_wl_GCJ='-Wl,'
15890      # All OSF/1 code is PIC.
15891      lt_prog_compiler_static_GCJ='-non_shared'
15892      ;;
15893
15894    rdos*)
15895      lt_prog_compiler_static_GCJ='-non_shared'
15896      ;;
15897
15898    solaris*)
15899      lt_prog_compiler_pic_GCJ='-KPIC'
15900      lt_prog_compiler_static_GCJ='-Bstatic'
15901      case $cc_basename in
15902      f77* | f90* | f95*)
15903	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15904      *)
15905	lt_prog_compiler_wl_GCJ='-Wl,';;
15906      esac
15907      ;;
15908
15909    sunos4*)
15910      lt_prog_compiler_wl_GCJ='-Qoption ld '
15911      lt_prog_compiler_pic_GCJ='-PIC'
15912      lt_prog_compiler_static_GCJ='-Bstatic'
15913      ;;
15914
15915    sysv4 | sysv4.2uw2* | sysv4.3*)
15916      lt_prog_compiler_wl_GCJ='-Wl,'
15917      lt_prog_compiler_pic_GCJ='-KPIC'
15918      lt_prog_compiler_static_GCJ='-Bstatic'
15919      ;;
15920
15921    sysv4*MP*)
15922      if test -d /usr/nec ;then
15923	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15924	lt_prog_compiler_static_GCJ='-Bstatic'
15925      fi
15926      ;;
15927
15928    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15929      lt_prog_compiler_wl_GCJ='-Wl,'
15930      lt_prog_compiler_pic_GCJ='-KPIC'
15931      lt_prog_compiler_static_GCJ='-Bstatic'
15932      ;;
15933
15934    unicos*)
15935      lt_prog_compiler_wl_GCJ='-Wl,'
15936      lt_prog_compiler_can_build_shared_GCJ=no
15937      ;;
15938
15939    uts4*)
15940      lt_prog_compiler_pic_GCJ='-pic'
15941      lt_prog_compiler_static_GCJ='-Bstatic'
15942      ;;
15943
15944    *)
15945      lt_prog_compiler_can_build_shared_GCJ=no
15946      ;;
15947    esac
15948  fi
15949
15950{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15951echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
15952
15953#
15954# Check to make sure the PIC flag actually works.
15955#
15956if test -n "$lt_prog_compiler_pic_GCJ"; then
15957
15958{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15959echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
15960if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15961  echo $ECHO_N "(cached) $ECHO_C" >&6
15962else
15963  lt_prog_compiler_pic_works_GCJ=no
15964  ac_outfile=conftest.$ac_objext
15965   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15966   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15967   # Insert the option either (1) after the last *FLAGS variable, or
15968   # (2) before a word containing "conftest.", or (3) at the end.
15969   # Note that $ac_compile itself does not contain backslashes and begins
15970   # with a dollar sign (not a hyphen), so the echo should work correctly.
15971   # The option is referenced via a variable to avoid confusing sed.
15972   lt_compile=`echo "$ac_compile" | $SED \
15973   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15974   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15975   -e 's:$: $lt_compiler_flag:'`
15976   (eval echo "\"\$as_me:15976: $lt_compile\"" >&5)
15977   (eval "$lt_compile" 2>conftest.err)
15978   ac_status=$?
15979   cat conftest.err >&5
15980   echo "$as_me:15980: \$? = $ac_status" >&5
15981   if (exit $ac_status) && test -s "$ac_outfile"; then
15982     # The compiler can only warn and ignore the option if not recognized
15983     # So say no if there are warnings other than the usual output.
15984     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15985     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15986     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15987       lt_prog_compiler_pic_works_GCJ=yes
15988     fi
15989   fi
15990   $rm conftest*
15991
15992fi
15993{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15994echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
15995
15996if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15997    case $lt_prog_compiler_pic_GCJ in
15998     "" | " "*) ;;
15999     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16000     esac
16001else
16002    lt_prog_compiler_pic_GCJ=
16003     lt_prog_compiler_can_build_shared_GCJ=no
16004fi
16005
16006fi
16007case $host_os in
16008  # For platforms which do not support PIC, -DPIC is meaningless:
16009  *djgpp*)
16010    lt_prog_compiler_pic_GCJ=
16011    ;;
16012  *)
16013    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16014    ;;
16015esac
16016
16017#
16018# Check to make sure the static flag actually works.
16019#
16020wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16021{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16022echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16023if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16024  echo $ECHO_N "(cached) $ECHO_C" >&6
16025else
16026  lt_prog_compiler_static_works_GCJ=no
16027   save_LDFLAGS="$LDFLAGS"
16028   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16029   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16030   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16031     # The linker can only warn and ignore the option if not recognized
16032     # So say no if there are warnings
16033     if test -s conftest.err; then
16034       # Append any errors to the config.log.
16035       cat conftest.err 1>&5
16036       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16037       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16038       if diff conftest.exp conftest.er2 >/dev/null; then
16039         lt_prog_compiler_static_works_GCJ=yes
16040       fi
16041     else
16042       lt_prog_compiler_static_works_GCJ=yes
16043     fi
16044   fi
16045   $rm conftest*
16046   LDFLAGS="$save_LDFLAGS"
16047
16048fi
16049{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16050echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16051
16052if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16053    :
16054else
16055    lt_prog_compiler_static_GCJ=
16056fi
16057
16058
16059{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16060echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16061if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16062  echo $ECHO_N "(cached) $ECHO_C" >&6
16063else
16064  lt_cv_prog_compiler_c_o_GCJ=no
16065   $rm -r conftest 2>/dev/null
16066   mkdir conftest
16067   cd conftest
16068   mkdir out
16069   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16070
16071   lt_compiler_flag="-o out/conftest2.$ac_objext"
16072   # Insert the option either (1) after the last *FLAGS variable, or
16073   # (2) before a word containing "conftest.", or (3) at the end.
16074   # Note that $ac_compile itself does not contain backslashes and begins
16075   # with a dollar sign (not a hyphen), so the echo should work correctly.
16076   lt_compile=`echo "$ac_compile" | $SED \
16077   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16078   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16079   -e 's:$: $lt_compiler_flag:'`
16080   (eval echo "\"\$as_me:16080: $lt_compile\"" >&5)
16081   (eval "$lt_compile" 2>out/conftest.err)
16082   ac_status=$?
16083   cat out/conftest.err >&5
16084   echo "$as_me:16084: \$? = $ac_status" >&5
16085   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16086   then
16087     # The compiler can only warn and ignore the option if not recognized
16088     # So say no if there are warnings
16089     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16090     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16091     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16092       lt_cv_prog_compiler_c_o_GCJ=yes
16093     fi
16094   fi
16095   chmod u+w . 2>&5
16096   $rm conftest*
16097   # SGI C++ compiler will create directory out/ii_files/ for
16098   # template instantiation
16099   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16100   $rm out/* && rmdir out
16101   cd ..
16102   rmdir conftest
16103   $rm conftest*
16104
16105fi
16106{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16107echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16108
16109
16110hard_links="nottested"
16111if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16112  # do not overwrite the value of need_locks provided by the user
16113  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16114echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16115  hard_links=yes
16116  $rm conftest*
16117  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16118  touch conftest.a
16119  ln conftest.a conftest.b 2>&5 || hard_links=no
16120  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16121  { echo "$as_me:$LINENO: result: $hard_links" >&5
16122echo "${ECHO_T}$hard_links" >&6; }
16123  if test "$hard_links" = no; then
16124    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16125echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16126    need_locks=warn
16127  fi
16128else
16129  need_locks=no
16130fi
16131
16132{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16133echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16134
16135  runpath_var=
16136  allow_undefined_flag_GCJ=
16137  enable_shared_with_static_runtimes_GCJ=no
16138  archive_cmds_GCJ=
16139  archive_expsym_cmds_GCJ=
16140  old_archive_From_new_cmds_GCJ=
16141  old_archive_from_expsyms_cmds_GCJ=
16142  export_dynamic_flag_spec_GCJ=
16143  whole_archive_flag_spec_GCJ=
16144  thread_safe_flag_spec_GCJ=
16145  hardcode_libdir_flag_spec_GCJ=
16146  hardcode_libdir_flag_spec_ld_GCJ=
16147  hardcode_libdir_separator_GCJ=
16148  hardcode_direct_GCJ=no
16149  hardcode_minus_L_GCJ=no
16150  hardcode_shlibpath_var_GCJ=unsupported
16151  link_all_deplibs_GCJ=unknown
16152  hardcode_automatic_GCJ=no
16153  module_cmds_GCJ=
16154  module_expsym_cmds_GCJ=
16155  always_export_symbols_GCJ=no
16156  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16157  # include_expsyms should be a list of space-separated symbols to be *always*
16158  # included in the symbol list
16159  include_expsyms_GCJ=
16160  # exclude_expsyms can be an extended regexp of symbols to exclude
16161  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16162  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16163  # as well as any symbol that contains `d'.
16164  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16165  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16166  # platforms (ab)use it in PIC code, but their linkers get confused if
16167  # the symbol is explicitly referenced.  Since portable code cannot
16168  # rely on this symbol name, it's probably fine to never include it in
16169  # preloaded symbol tables.
16170  extract_expsyms_cmds=
16171  # Just being paranoid about ensuring that cc_basename is set.
16172  for cc_temp in $compiler""; do
16173  case $cc_temp in
16174    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16175    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16176    \-*) ;;
16177    *) break;;
16178  esac
16179done
16180cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16181
16182  case $host_os in
16183  cygwin* | mingw* | pw32*)
16184    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16185    # When not using gcc, we currently assume that we are using
16186    # Microsoft Visual C++.
16187    if test "$GCC" != yes; then
16188      with_gnu_ld=no
16189    fi
16190    ;;
16191  interix*)
16192    # we just hope/assume this is gcc and not c89 (= MSVC++)
16193    with_gnu_ld=yes
16194    ;;
16195  openbsd*)
16196    with_gnu_ld=no
16197    ;;
16198  esac
16199
16200  ld_shlibs_GCJ=yes
16201  if test "$with_gnu_ld" = yes; then
16202    # If archive_cmds runs LD, not CC, wlarc should be empty
16203    wlarc='${wl}'
16204
16205    # Set some defaults for GNU ld with shared library support. These
16206    # are reset later if shared libraries are not supported. Putting them
16207    # here allows them to be overridden if necessary.
16208    runpath_var=LD_RUN_PATH
16209    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16210    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16211    # ancient GNU ld didn't support --whole-archive et. al.
16212    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16213	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16214      else
16215  	whole_archive_flag_spec_GCJ=
16216    fi
16217    supports_anon_versioning=no
16218    case `$LD -v 2>/dev/null` in
16219      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16220      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16221      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16222      *\ 2.11.*) ;; # other 2.11 versions
16223      *) supports_anon_versioning=yes ;;
16224    esac
16225
16226    # See if GNU ld supports shared libraries.
16227    case $host_os in
16228    aix3* | aix4* | aix5*)
16229      # On AIX/PPC, the GNU linker is very broken
16230      if test "$host_cpu" != ia64; then
16231	ld_shlibs_GCJ=no
16232	cat <<EOF 1>&2
16233
16234*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16235*** to be unable to reliably create shared libraries on AIX.
16236*** Therefore, libtool is disabling shared libraries support.  If you
16237*** really care for shared libraries, you may want to modify your PATH
16238*** so that a non-GNU linker is found, and then restart.
16239
16240EOF
16241      fi
16242      ;;
16243
16244    amigaos*)
16245      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)'
16246      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16247      hardcode_minus_L_GCJ=yes
16248
16249      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16250      # that the semantics of dynamic libraries on AmigaOS, at least up
16251      # to version 4, is to share data among multiple programs linked
16252      # with the same dynamic library.  Since this doesn't match the
16253      # behavior of shared libraries on other platforms, we can't use
16254      # them.
16255      ld_shlibs_GCJ=no
16256      ;;
16257
16258    beos*)
16259      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16260	allow_undefined_flag_GCJ=unsupported
16261	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16262	# support --undefined.  This deserves some investigation.  FIXME
16263	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16264      else
16265	ld_shlibs_GCJ=no
16266      fi
16267      ;;
16268
16269    cygwin* | mingw* | pw32*)
16270      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16271      # as there is no search path for DLLs.
16272      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16273      allow_undefined_flag_GCJ=unsupported
16274      always_export_symbols_GCJ=no
16275      enable_shared_with_static_runtimes_GCJ=yes
16276      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16277
16278      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16279        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16280	# If the export-symbols file already is a .def file (1st line
16281	# is EXPORTS), use it as is; otherwise, prepend...
16282	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16283	  cp $export_symbols $output_objdir/$soname.def;
16284	else
16285	  echo EXPORTS > $output_objdir/$soname.def;
16286	  cat $export_symbols >> $output_objdir/$soname.def;
16287	fi~
16288	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16289      else
16290	ld_shlibs_GCJ=no
16291      fi
16292      ;;
16293
16294    interix[3-9]*)
16295      hardcode_direct_GCJ=no
16296      hardcode_shlibpath_var_GCJ=no
16297      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16298      export_dynamic_flag_spec_GCJ='${wl}-E'
16299      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16300      # Instead, shared libraries are loaded at an image base (0x10000000 by
16301      # default) and relocated if they conflict, which is a slow very memory
16302      # consuming and fragmenting process.  To avoid this, we pick a random,
16303      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16304      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16305      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'
16306      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'
16307      ;;
16308
16309    gnu* | linux* | k*bsd*-gnu)
16310      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16311	tmp_addflag=
16312	case $cc_basename,$host_cpu in
16313	pgcc*)				# Portland Group C compiler
16314	  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'
16315	  tmp_addflag=' $pic_flag'
16316	  ;;
16317	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16318	  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'
16319	  tmp_addflag=' $pic_flag -Mnomain' ;;
16320	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16321	  tmp_addflag=' -i_dynamic' ;;
16322	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16323	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16324	ifc* | ifort*)			# Intel Fortran compiler
16325	  tmp_addflag=' -nofor_main' ;;
16326	esac
16327	case `$CC -V 2>&1 | sed 5q` in
16328	*Sun\ C*)			# Sun C 5.9
16329	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16330	  tmp_sharedflag='-G' ;;
16331	*Sun\ F*)			# Sun Fortran 8.3
16332	  tmp_sharedflag='-G' ;;
16333	*)
16334	  tmp_sharedflag='-shared' ;;
16335	esac
16336	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16337
16338	if test $supports_anon_versioning = yes; then
16339	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16340  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16341  $echo "local: *; };" >> $output_objdir/$libname.ver~
16342	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16343	fi
16344      else
16345	ld_shlibs_GCJ=no
16346      fi
16347      ;;
16348
16349    netbsd*)
16350      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16351	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16352	wlarc=
16353      else
16354	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16355	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16356      fi
16357      ;;
16358
16359    solaris*)
16360      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16361	ld_shlibs_GCJ=no
16362	cat <<EOF 1>&2
16363
16364*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16365*** create shared libraries on Solaris systems.  Therefore, libtool
16366*** is disabling shared libraries support.  We urge you to upgrade GNU
16367*** binutils to release 2.9.1 or newer.  Another option is to modify
16368*** your PATH or compiler configuration so that the native linker is
16369*** used, and then restart.
16370
16371EOF
16372      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16373	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16374	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16375      else
16376	ld_shlibs_GCJ=no
16377      fi
16378      ;;
16379
16380    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16381      case `$LD -v 2>&1` in
16382        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16383	ld_shlibs_GCJ=no
16384	cat <<_LT_EOF 1>&2
16385
16386*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16387*** reliably create shared libraries on SCO systems.  Therefore, libtool
16388*** is disabling shared libraries support.  We urge you to upgrade GNU
16389*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16390*** your PATH or compiler configuration so that the native linker is
16391*** used, and then restart.
16392
16393_LT_EOF
16394	;;
16395	*)
16396	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16397	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16398	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16399	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16400	  else
16401	    ld_shlibs_GCJ=no
16402	  fi
16403	;;
16404      esac
16405      ;;
16406
16407    sunos4*)
16408      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16409      wlarc=
16410      hardcode_direct_GCJ=yes
16411      hardcode_shlibpath_var_GCJ=no
16412      ;;
16413
16414    *)
16415      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16416	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16417	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16418      else
16419	ld_shlibs_GCJ=no
16420      fi
16421      ;;
16422    esac
16423
16424    if test "$ld_shlibs_GCJ" = no; then
16425      runpath_var=
16426      hardcode_libdir_flag_spec_GCJ=
16427      export_dynamic_flag_spec_GCJ=
16428      whole_archive_flag_spec_GCJ=
16429    fi
16430  else
16431    # PORTME fill in a description of your system's linker (not GNU ld)
16432    case $host_os in
16433    aix3*)
16434      allow_undefined_flag_GCJ=unsupported
16435      always_export_symbols_GCJ=yes
16436      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'
16437      # Note: this linker hardcodes the directories in LIBPATH if there
16438      # are no directories specified by -L.
16439      hardcode_minus_L_GCJ=yes
16440      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16441	# Neither direct hardcoding nor static linking is supported with a
16442	# broken collect2.
16443	hardcode_direct_GCJ=unsupported
16444      fi
16445      ;;
16446
16447    aix4* | aix5*)
16448      if test "$host_cpu" = ia64; then
16449	# On IA64, the linker does run time linking by default, so we don't
16450	# have to do anything special.
16451	aix_use_runtimelinking=no
16452	exp_sym_flag='-Bexport'
16453	no_entry_flag=""
16454      else
16455	# If we're using GNU nm, then we don't want the "-C" option.
16456	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16457	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16458	  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'
16459	else
16460	  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'
16461	fi
16462	aix_use_runtimelinking=no
16463
16464	# Test if we are trying to use run time linking or normal
16465	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16466	# need to do runtime linking.
16467	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16468	  for ld_flag in $LDFLAGS; do
16469  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16470  	    aix_use_runtimelinking=yes
16471  	    break
16472  	  fi
16473	  done
16474	  ;;
16475	esac
16476
16477	exp_sym_flag='-bexport'
16478	no_entry_flag='-bnoentry'
16479      fi
16480
16481      # When large executables or shared objects are built, AIX ld can
16482      # have problems creating the table of contents.  If linking a library
16483      # or program results in "error TOC overflow" add -mminimal-toc to
16484      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16485      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16486
16487      archive_cmds_GCJ=''
16488      hardcode_direct_GCJ=yes
16489      hardcode_libdir_separator_GCJ=':'
16490      link_all_deplibs_GCJ=yes
16491
16492      if test "$GCC" = yes; then
16493	case $host_os in aix4.[012]|aix4.[012].*)
16494	# We only want to do this on AIX 4.2 and lower, the check
16495	# below for broken collect2 doesn't work under 4.3+
16496	  collect2name=`${CC} -print-prog-name=collect2`
16497	  if test -f "$collect2name" && \
16498  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16499	  then
16500  	  # We have reworked collect2
16501  	  :
16502	  else
16503  	  # We have old collect2
16504  	  hardcode_direct_GCJ=unsupported
16505  	  # It fails to find uninstalled libraries when the uninstalled
16506  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16507  	  # to unsupported forces relinking
16508  	  hardcode_minus_L_GCJ=yes
16509  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16510  	  hardcode_libdir_separator_GCJ=
16511	  fi
16512	  ;;
16513	esac
16514	shared_flag='-shared'
16515	if test "$aix_use_runtimelinking" = yes; then
16516	  shared_flag="$shared_flag "'${wl}-G'
16517	fi
16518      else
16519	# not using gcc
16520	if test "$host_cpu" = ia64; then
16521  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16522  	# chokes on -Wl,-G. The following line is correct:
16523	  shared_flag='-G'
16524	else
16525	  if test "$aix_use_runtimelinking" = yes; then
16526	    shared_flag='${wl}-G'
16527	  else
16528	    shared_flag='${wl}-bM:SRE'
16529	  fi
16530	fi
16531      fi
16532
16533      # It seems that -bexpall does not export symbols beginning with
16534      # underscore (_), so it is better to generate a list of symbols to export.
16535      always_export_symbols_GCJ=yes
16536      if test "$aix_use_runtimelinking" = yes; then
16537	# Warning - without using the other runtime loading flags (-brtl),
16538	# -berok will link without error, but may produce a broken library.
16539	allow_undefined_flag_GCJ='-berok'
16540       # Determine the default libpath from the value encoded in an empty executable.
16541       cat >conftest.$ac_ext <<_ACEOF
16542/* confdefs.h.  */
16543_ACEOF
16544cat confdefs.h >>conftest.$ac_ext
16545cat >>conftest.$ac_ext <<_ACEOF
16546/* end confdefs.h.  */
16547
16548int
16549main ()
16550{
16551
16552  ;
16553  return 0;
16554}
16555_ACEOF
16556rm -f conftest.$ac_objext conftest$ac_exeext
16557if { (ac_try="$ac_link"
16558case "(($ac_try" in
16559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16560  *) ac_try_echo=$ac_try;;
16561esac
16562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16563  (eval "$ac_link") 2>conftest.er1
16564  ac_status=$?
16565  grep -v '^ *+' conftest.er1 >conftest.err
16566  rm -f conftest.er1
16567  cat conftest.err >&5
16568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569  (exit $ac_status); } && {
16570	 test -z "$ac_c_werror_flag" ||
16571	 test ! -s conftest.err
16572       } && test -s conftest$ac_exeext &&
16573       $as_test_x conftest$ac_exeext; then
16574
16575lt_aix_libpath_sed='
16576    /Import File Strings/,/^$/ {
16577	/^0/ {
16578	    s/^0  *\(.*\)$/\1/
16579	    p
16580	}
16581    }'
16582aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16583# Check for a 64-bit object if we didn't find anything.
16584if test -z "$aix_libpath"; then
16585  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16586fi
16587else
16588  echo "$as_me: failed program was:" >&5
16589sed 's/^/| /' conftest.$ac_ext >&5
16590
16591
16592fi
16593
16594rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16595      conftest$ac_exeext conftest.$ac_ext
16596if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16597
16598       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16599	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"
16600       else
16601	if test "$host_cpu" = ia64; then
16602	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16603	  allow_undefined_flag_GCJ="-z nodefs"
16604	  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"
16605	else
16606	 # Determine the default libpath from the value encoded in an empty executable.
16607	 cat >conftest.$ac_ext <<_ACEOF
16608/* confdefs.h.  */
16609_ACEOF
16610cat confdefs.h >>conftest.$ac_ext
16611cat >>conftest.$ac_ext <<_ACEOF
16612/* end confdefs.h.  */
16613
16614int
16615main ()
16616{
16617
16618  ;
16619  return 0;
16620}
16621_ACEOF
16622rm -f conftest.$ac_objext conftest$ac_exeext
16623if { (ac_try="$ac_link"
16624case "(($ac_try" in
16625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16626  *) ac_try_echo=$ac_try;;
16627esac
16628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16629  (eval "$ac_link") 2>conftest.er1
16630  ac_status=$?
16631  grep -v '^ *+' conftest.er1 >conftest.err
16632  rm -f conftest.er1
16633  cat conftest.err >&5
16634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635  (exit $ac_status); } && {
16636	 test -z "$ac_c_werror_flag" ||
16637	 test ! -s conftest.err
16638       } && test -s conftest$ac_exeext &&
16639       $as_test_x conftest$ac_exeext; then
16640
16641lt_aix_libpath_sed='
16642    /Import File Strings/,/^$/ {
16643	/^0/ {
16644	    s/^0  *\(.*\)$/\1/
16645	    p
16646	}
16647    }'
16648aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16649# Check for a 64-bit object if we didn't find anything.
16650if test -z "$aix_libpath"; then
16651  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16652fi
16653else
16654  echo "$as_me: failed program was:" >&5
16655sed 's/^/| /' conftest.$ac_ext >&5
16656
16657
16658fi
16659
16660rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16661      conftest$ac_exeext conftest.$ac_ext
16662if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16663
16664	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16665	  # Warning - without using the other run time loading flags,
16666	  # -berok will link without error, but may produce a broken library.
16667	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16668	  allow_undefined_flag_GCJ=' ${wl}-berok'
16669	  # Exported symbols can be pulled into shared objects from archives
16670	  whole_archive_flag_spec_GCJ='$convenience'
16671	  archive_cmds_need_lc_GCJ=yes
16672	  # This is similar to how AIX traditionally builds its shared libraries.
16673	  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'
16674	fi
16675      fi
16676      ;;
16677
16678    amigaos*)
16679      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)'
16680      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16681      hardcode_minus_L_GCJ=yes
16682      # see comment about different semantics on the GNU ld section
16683      ld_shlibs_GCJ=no
16684      ;;
16685
16686    bsdi[45]*)
16687      export_dynamic_flag_spec_GCJ=-rdynamic
16688      ;;
16689
16690    cygwin* | mingw* | pw32*)
16691      # When not using gcc, we currently assume that we are using
16692      # Microsoft Visual C++.
16693      # hardcode_libdir_flag_spec is actually meaningless, as there is
16694      # no search path for DLLs.
16695      hardcode_libdir_flag_spec_GCJ=' '
16696      allow_undefined_flag_GCJ=unsupported
16697      # Tell ltmain to make .lib files, not .a files.
16698      libext=lib
16699      # Tell ltmain to make .dll files, not .so files.
16700      shrext_cmds=".dll"
16701      # FIXME: Setting linknames here is a bad hack.
16702      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16703      # The linker will automatically build a .lib file if we build a DLL.
16704      old_archive_From_new_cmds_GCJ='true'
16705      # FIXME: Should let the user specify the lib program.
16706      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
16707      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16708      enable_shared_with_static_runtimes_GCJ=yes
16709      ;;
16710
16711    darwin* | rhapsody*)
16712      case $host_os in
16713        rhapsody* | darwin1.[012])
16714         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16715         ;;
16716       *) # Darwin 1.3 on
16717         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16718           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16719         else
16720           case ${MACOSX_DEPLOYMENT_TARGET} in
16721             10.[012])
16722               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16723               ;;
16724             10.*)
16725               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16726               ;;
16727           esac
16728         fi
16729         ;;
16730      esac
16731      archive_cmds_need_lc_GCJ=no
16732      hardcode_direct_GCJ=no
16733      hardcode_automatic_GCJ=yes
16734      hardcode_shlibpath_var_GCJ=unsupported
16735      whole_archive_flag_spec_GCJ=''
16736      link_all_deplibs_GCJ=yes
16737    if test "$GCC" = yes ; then
16738    	output_verbose_link_cmd='echo'
16739        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16740      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16741      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16742      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}'
16743      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}'
16744    else
16745      case $cc_basename in
16746        xlc*)
16747         output_verbose_link_cmd='echo'
16748         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16749         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16750          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16751         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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16752          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}'
16753          ;;
16754       *)
16755         ld_shlibs_GCJ=no
16756          ;;
16757      esac
16758    fi
16759      ;;
16760
16761    dgux*)
16762      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16763      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16764      hardcode_shlibpath_var_GCJ=no
16765      ;;
16766
16767    freebsd1*)
16768      ld_shlibs_GCJ=no
16769      ;;
16770
16771    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16772    # support.  Future versions do this automatically, but an explicit c++rt0.o
16773    # does not break anything, and helps significantly (at the cost of a little
16774    # extra space).
16775    freebsd2.2*)
16776      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16777      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16778      hardcode_direct_GCJ=yes
16779      hardcode_shlibpath_var_GCJ=no
16780      ;;
16781
16782    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16783    freebsd2*)
16784      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16785      hardcode_direct_GCJ=yes
16786      hardcode_minus_L_GCJ=yes
16787      hardcode_shlibpath_var_GCJ=no
16788      ;;
16789
16790    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16791    freebsd* | dragonfly*)
16792      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16793      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16794      hardcode_direct_GCJ=yes
16795      hardcode_shlibpath_var_GCJ=no
16796      ;;
16797
16798    hpux9*)
16799      if test "$GCC" = yes; then
16800	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'
16801      else
16802	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'
16803      fi
16804      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16805      hardcode_libdir_separator_GCJ=:
16806      hardcode_direct_GCJ=yes
16807
16808      # hardcode_minus_L: Not really in the search PATH,
16809      # but as the default location of the library.
16810      hardcode_minus_L_GCJ=yes
16811      export_dynamic_flag_spec_GCJ='${wl}-E'
16812      ;;
16813
16814    hpux10*)
16815      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16816	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16817      else
16818	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16819      fi
16820      if test "$with_gnu_ld" = no; then
16821	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16822	hardcode_libdir_separator_GCJ=:
16823
16824	hardcode_direct_GCJ=yes
16825	export_dynamic_flag_spec_GCJ='${wl}-E'
16826
16827	# hardcode_minus_L: Not really in the search PATH,
16828	# but as the default location of the library.
16829	hardcode_minus_L_GCJ=yes
16830      fi
16831      ;;
16832
16833    hpux11*)
16834      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16835	case $host_cpu in
16836	hppa*64*)
16837	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16838	  ;;
16839	ia64*)
16840	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16841	  ;;
16842	*)
16843	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16844	  ;;
16845	esac
16846      else
16847	case $host_cpu in
16848	hppa*64*)
16849	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16850	  ;;
16851	ia64*)
16852	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16853	  ;;
16854	*)
16855	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16856	  ;;
16857	esac
16858      fi
16859      if test "$with_gnu_ld" = no; then
16860	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16861	hardcode_libdir_separator_GCJ=:
16862
16863	case $host_cpu in
16864	hppa*64*|ia64*)
16865	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16866	  hardcode_direct_GCJ=no
16867	  hardcode_shlibpath_var_GCJ=no
16868	  ;;
16869	*)
16870	  hardcode_direct_GCJ=yes
16871	  export_dynamic_flag_spec_GCJ='${wl}-E'
16872
16873	  # hardcode_minus_L: Not really in the search PATH,
16874	  # but as the default location of the library.
16875	  hardcode_minus_L_GCJ=yes
16876	  ;;
16877	esac
16878      fi
16879      ;;
16880
16881    irix5* | irix6* | nonstopux*)
16882      if test "$GCC" = yes; then
16883	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'
16884      else
16885	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'
16886	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16887      fi
16888      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16889      hardcode_libdir_separator_GCJ=:
16890      link_all_deplibs_GCJ=yes
16891      ;;
16892
16893    netbsd*)
16894      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16895	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16896      else
16897	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16898      fi
16899      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16900      hardcode_direct_GCJ=yes
16901      hardcode_shlibpath_var_GCJ=no
16902      ;;
16903
16904    newsos6)
16905      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16906      hardcode_direct_GCJ=yes
16907      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16908      hardcode_libdir_separator_GCJ=:
16909      hardcode_shlibpath_var_GCJ=no
16910      ;;
16911
16912    openbsd*)
16913      if test -f /usr/libexec/ld.so; then
16914	hardcode_direct_GCJ=yes
16915	hardcode_shlibpath_var_GCJ=no
16916	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16917	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16918	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16919	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16920	  export_dynamic_flag_spec_GCJ='${wl}-E'
16921	else
16922	  case $host_os in
16923	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16924	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16925	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
16926	     ;;
16927	   *)
16928	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16929	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16930	     ;;
16931	  esac
16932        fi
16933      else
16934	ld_shlibs_GCJ=no
16935      fi
16936      ;;
16937
16938    os2*)
16939      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16940      hardcode_minus_L_GCJ=yes
16941      allow_undefined_flag_GCJ=unsupported
16942      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'
16943      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16944      ;;
16945
16946    osf3*)
16947      if test "$GCC" = yes; then
16948	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16949	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'
16950      else
16951	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16952	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'
16953      fi
16954      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16955      hardcode_libdir_separator_GCJ=:
16956      ;;
16957
16958    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16959      if test "$GCC" = yes; then
16960	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16961	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'
16962	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16963      else
16964	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16965	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'
16966	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~
16967	$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'
16968
16969	# Both c and cxx compiler support -rpath directly
16970	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16971      fi
16972      hardcode_libdir_separator_GCJ=:
16973      ;;
16974
16975    solaris*)
16976      no_undefined_flag_GCJ=' -z text'
16977      if test "$GCC" = yes; then
16978	wlarc='${wl}'
16979	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16980	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16981	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16982      else
16983	wlarc=''
16984	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16985	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16986  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16987      fi
16988      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16989      hardcode_shlibpath_var_GCJ=no
16990      case $host_os in
16991      solaris2.[0-5] | solaris2.[0-5].*) ;;
16992      *)
16993	# The compiler driver will combine and reorder linker options,
16994	# but understands `-z linker_flag'.  GCC discards it without `$wl',
16995	# but is careful enough not to reorder.
16996 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16997	if test "$GCC" = yes; then
16998	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16999	else
17000	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17001	fi
17002	;;
17003      esac
17004      link_all_deplibs_GCJ=yes
17005      ;;
17006
17007    sunos4*)
17008      if test "x$host_vendor" = xsequent; then
17009	# Use $CC to link under sequent, because it throws in some extra .o
17010	# files that make .init and .fini sections work.
17011	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17012      else
17013	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17014      fi
17015      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17016      hardcode_direct_GCJ=yes
17017      hardcode_minus_L_GCJ=yes
17018      hardcode_shlibpath_var_GCJ=no
17019      ;;
17020
17021    sysv4)
17022      case $host_vendor in
17023	sni)
17024	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17025	  hardcode_direct_GCJ=yes # is this really true???
17026	;;
17027	siemens)
17028	  ## LD is ld it makes a PLAMLIB
17029	  ## CC just makes a GrossModule.
17030	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17031	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17032	  hardcode_direct_GCJ=no
17033        ;;
17034	motorola)
17035	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17036	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17037	;;
17038      esac
17039      runpath_var='LD_RUN_PATH'
17040      hardcode_shlibpath_var_GCJ=no
17041      ;;
17042
17043    sysv4.3*)
17044      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17045      hardcode_shlibpath_var_GCJ=no
17046      export_dynamic_flag_spec_GCJ='-Bexport'
17047      ;;
17048
17049    sysv4*MP*)
17050      if test -d /usr/nec; then
17051	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17052	hardcode_shlibpath_var_GCJ=no
17053	runpath_var=LD_RUN_PATH
17054	hardcode_runpath_var=yes
17055	ld_shlibs_GCJ=yes
17056      fi
17057      ;;
17058
17059    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17060      no_undefined_flag_GCJ='${wl}-z,text'
17061      archive_cmds_need_lc_GCJ=no
17062      hardcode_shlibpath_var_GCJ=no
17063      runpath_var='LD_RUN_PATH'
17064
17065      if test "$GCC" = yes; then
17066	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17067	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17068      else
17069	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17070	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17071      fi
17072      ;;
17073
17074    sysv5* | sco3.2v5* | sco5v6*)
17075      # Note: We can NOT use -z defs as we might desire, because we do not
17076      # link with -lc, and that would cause any symbols used from libc to
17077      # always be unresolved, which means just about no library would
17078      # ever link correctly.  If we're not using GNU ld we use -z text
17079      # though, which does catch some bad symbols but isn't as heavy-handed
17080      # as -z defs.
17081      no_undefined_flag_GCJ='${wl}-z,text'
17082      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17083      archive_cmds_need_lc_GCJ=no
17084      hardcode_shlibpath_var_GCJ=no
17085      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17086      hardcode_libdir_separator_GCJ=':'
17087      link_all_deplibs_GCJ=yes
17088      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17089      runpath_var='LD_RUN_PATH'
17090
17091      if test "$GCC" = yes; then
17092	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17093	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17094      else
17095	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17096	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17097      fi
17098      ;;
17099
17100    uts4*)
17101      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17102      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17103      hardcode_shlibpath_var_GCJ=no
17104      ;;
17105
17106    *)
17107      ld_shlibs_GCJ=no
17108      ;;
17109    esac
17110  fi
17111
17112{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17113echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17114test "$ld_shlibs_GCJ" = no && can_build_shared=no
17115
17116#
17117# Do we need to explicitly link libc?
17118#
17119case "x$archive_cmds_need_lc_GCJ" in
17120x|xyes)
17121  # Assume -lc should be added
17122  archive_cmds_need_lc_GCJ=yes
17123
17124  if test "$enable_shared" = yes && test "$GCC" = yes; then
17125    case $archive_cmds_GCJ in
17126    *'~'*)
17127      # FIXME: we may have to deal with multi-command sequences.
17128      ;;
17129    '$CC '*)
17130      # Test whether the compiler implicitly links with -lc since on some
17131      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17132      # to ld, don't add -lc before -lgcc.
17133      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17134echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17135      $rm conftest*
17136      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17137
17138      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17139  (eval $ac_compile) 2>&5
17140  ac_status=$?
17141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142  (exit $ac_status); } 2>conftest.err; then
17143        soname=conftest
17144        lib=conftest
17145        libobjs=conftest.$ac_objext
17146        deplibs=
17147        wl=$lt_prog_compiler_wl_GCJ
17148	pic_flag=$lt_prog_compiler_pic_GCJ
17149        compiler_flags=-v
17150        linker_flags=-v
17151        verstring=
17152        output_objdir=.
17153        libname=conftest
17154        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17155        allow_undefined_flag_GCJ=
17156        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17157  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17158  ac_status=$?
17159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160  (exit $ac_status); }
17161        then
17162	  archive_cmds_need_lc_GCJ=no
17163        else
17164	  archive_cmds_need_lc_GCJ=yes
17165        fi
17166        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17167      else
17168        cat conftest.err 1>&5
17169      fi
17170      $rm conftest*
17171      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17172echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17173      ;;
17174    esac
17175  fi
17176  ;;
17177esac
17178
17179{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17180echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17181library_names_spec=
17182libname_spec='lib$name'
17183soname_spec=
17184shrext_cmds=".so"
17185postinstall_cmds=
17186postuninstall_cmds=
17187finish_cmds=
17188finish_eval=
17189shlibpath_var=
17190shlibpath_overrides_runpath=unknown
17191version_type=none
17192dynamic_linker="$host_os ld.so"
17193sys_lib_dlsearch_path_spec="/lib /usr/lib"
17194
17195need_lib_prefix=unknown
17196hardcode_into_libs=no
17197
17198# when you set need_version to no, make sure it does not cause -set_version
17199# flags to be left without arguments
17200need_version=unknown
17201
17202case $host_os in
17203aix3*)
17204  version_type=linux
17205  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17206  shlibpath_var=LIBPATH
17207
17208  # AIX 3 has no versioning support, so we append a major version to the name.
17209  soname_spec='${libname}${release}${shared_ext}$major'
17210  ;;
17211
17212aix4* | aix5*)
17213  version_type=linux
17214  need_lib_prefix=no
17215  need_version=no
17216  hardcode_into_libs=yes
17217  if test "$host_cpu" = ia64; then
17218    # AIX 5 supports IA64
17219    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17220    shlibpath_var=LD_LIBRARY_PATH
17221  else
17222    # With GCC up to 2.95.x, collect2 would create an import file
17223    # for dependence libraries.  The import file would start with
17224    # the line `#! .'.  This would cause the generated library to
17225    # depend on `.', always an invalid library.  This was fixed in
17226    # development snapshots of GCC prior to 3.0.
17227    case $host_os in
17228      aix4 | aix4.[01] | aix4.[01].*)
17229      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17230	   echo ' yes '
17231	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17232	:
17233      else
17234	can_build_shared=no
17235      fi
17236      ;;
17237    esac
17238    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17239    # soname into executable. Probably we can add versioning support to
17240    # collect2, so additional links can be useful in future.
17241    if test "$aix_use_runtimelinking" = yes; then
17242      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17243      # instead of lib<name>.a to let people know that these are not
17244      # typical AIX shared libraries.
17245      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17246    else
17247      # We preserve .a as extension for shared libraries through AIX4.2
17248      # and later when we are not doing run time linking.
17249      library_names_spec='${libname}${release}.a $libname.a'
17250      soname_spec='${libname}${release}${shared_ext}$major'
17251    fi
17252    shlibpath_var=LIBPATH
17253  fi
17254  ;;
17255
17256amigaos*)
17257  library_names_spec='$libname.ixlibrary $libname.a'
17258  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17259  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'
17260  ;;
17261
17262beos*)
17263  library_names_spec='${libname}${shared_ext}'
17264  dynamic_linker="$host_os ld.so"
17265  shlibpath_var=LIBRARY_PATH
17266  ;;
17267
17268bsdi[45]*)
17269  version_type=linux
17270  need_version=no
17271  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17272  soname_spec='${libname}${release}${shared_ext}$major'
17273  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17274  shlibpath_var=LD_LIBRARY_PATH
17275  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17276  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17277  # the default ld.so.conf also contains /usr/contrib/lib and
17278  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17279  # libtool to hard-code these into programs
17280  ;;
17281
17282cygwin* | mingw* | pw32*)
17283  version_type=windows
17284  shrext_cmds=".dll"
17285  need_version=no
17286  need_lib_prefix=no
17287
17288  case $GCC,$host_os in
17289  yes,cygwin* | yes,mingw* | yes,pw32*)
17290    library_names_spec='$libname.dll.a'
17291    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17292    postinstall_cmds='base_file=`basename \${file}`~
17293      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17294      dldir=$destdir/`dirname \$dlpath`~
17295      test -d \$dldir || mkdir -p \$dldir~
17296      $install_prog $dir/$dlname \$dldir/$dlname~
17297      chmod a+x \$dldir/$dlname'
17298    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17299      dlpath=$dir/\$dldll~
17300       $rm \$dlpath'
17301    shlibpath_overrides_runpath=yes
17302
17303    case $host_os in
17304    cygwin*)
17305      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17306      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17307      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17308      ;;
17309    mingw*)
17310      # MinGW DLLs use traditional 'lib' prefix
17311      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17312      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17313      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17314        # It is most probably a Windows format PATH printed by
17315        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17316        # path with ; separators, and with drive letters. We can handle the
17317        # drive letters (cygwin fileutils understands them), so leave them,
17318        # especially as we might pass files found there to a mingw objdump,
17319        # which wouldn't understand a cygwinified path. Ahh.
17320        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17321      else
17322        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17323      fi
17324      ;;
17325    pw32*)
17326      # pw32 DLLs use 'pw' prefix rather than 'lib'
17327      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17328      ;;
17329    esac
17330    ;;
17331
17332  *)
17333    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17334    ;;
17335  esac
17336  dynamic_linker='Win32 ld.exe'
17337  # FIXME: first we should search . and the directory the executable is in
17338  shlibpath_var=PATH
17339  ;;
17340
17341darwin* | rhapsody*)
17342  dynamic_linker="$host_os dyld"
17343  version_type=darwin
17344  need_lib_prefix=no
17345  need_version=no
17346  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17347  soname_spec='${libname}${release}${major}$shared_ext'
17348  shlibpath_overrides_runpath=yes
17349  shlibpath_var=DYLD_LIBRARY_PATH
17350  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17351
17352  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17353  ;;
17354
17355dgux*)
17356  version_type=linux
17357  need_lib_prefix=no
17358  need_version=no
17359  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17360  soname_spec='${libname}${release}${shared_ext}$major'
17361  shlibpath_var=LD_LIBRARY_PATH
17362  ;;
17363
17364freebsd1*)
17365  dynamic_linker=no
17366  ;;
17367
17368freebsd* | dragonfly*)
17369  # DragonFly does not have aout.  When/if they implement a new
17370  # versioning mechanism, adjust this.
17371  if test -x /usr/bin/objformat; then
17372    objformat=`/usr/bin/objformat`
17373  else
17374    case $host_os in
17375    freebsd[123]*) objformat=aout ;;
17376    *) objformat=elf ;;
17377    esac
17378  fi
17379  version_type=freebsd-$objformat
17380  case $version_type in
17381    freebsd-elf*)
17382      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17383      need_version=no
17384      need_lib_prefix=no
17385      ;;
17386    freebsd-*)
17387      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17388      need_version=yes
17389      ;;
17390  esac
17391  shlibpath_var=LD_LIBRARY_PATH
17392  case $host_os in
17393  freebsd2*)
17394    shlibpath_overrides_runpath=yes
17395    ;;
17396  freebsd3.[01]* | freebsdelf3.[01]*)
17397    shlibpath_overrides_runpath=yes
17398    hardcode_into_libs=yes
17399    ;;
17400  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17401  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17402    shlibpath_overrides_runpath=no
17403    hardcode_into_libs=yes
17404    ;;
17405  *) # from 4.6 on, and DragonFly
17406    shlibpath_overrides_runpath=yes
17407    hardcode_into_libs=yes
17408    ;;
17409  esac
17410  ;;
17411
17412gnu*)
17413  version_type=linux
17414  need_lib_prefix=no
17415  need_version=no
17416  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17417  soname_spec='${libname}${release}${shared_ext}$major'
17418  shlibpath_var=LD_LIBRARY_PATH
17419  hardcode_into_libs=yes
17420  ;;
17421
17422hpux9* | hpux10* | hpux11*)
17423  # Give a soname corresponding to the major version so that dld.sl refuses to
17424  # link against other versions.
17425  version_type=sunos
17426  need_lib_prefix=no
17427  need_version=no
17428  case $host_cpu in
17429  ia64*)
17430    shrext_cmds='.so'
17431    hardcode_into_libs=yes
17432    dynamic_linker="$host_os dld.so"
17433    shlibpath_var=LD_LIBRARY_PATH
17434    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17435    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17436    soname_spec='${libname}${release}${shared_ext}$major'
17437    if test "X$HPUX_IA64_MODE" = X32; then
17438      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17439    else
17440      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17441    fi
17442    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17443    ;;
17444   hppa*64*)
17445     shrext_cmds='.sl'
17446     hardcode_into_libs=yes
17447     dynamic_linker="$host_os dld.sl"
17448     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17449     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17450     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17451     soname_spec='${libname}${release}${shared_ext}$major'
17452     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17453     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17454     ;;
17455   *)
17456    shrext_cmds='.sl'
17457    dynamic_linker="$host_os dld.sl"
17458    shlibpath_var=SHLIB_PATH
17459    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17460    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17461    soname_spec='${libname}${release}${shared_ext}$major'
17462    ;;
17463  esac
17464  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17465  postinstall_cmds='chmod 555 $lib'
17466  ;;
17467
17468interix[3-9]*)
17469  version_type=linux
17470  need_lib_prefix=no
17471  need_version=no
17472  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17473  soname_spec='${libname}${release}${shared_ext}$major'
17474  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17475  shlibpath_var=LD_LIBRARY_PATH
17476  shlibpath_overrides_runpath=no
17477  hardcode_into_libs=yes
17478  ;;
17479
17480irix5* | irix6* | nonstopux*)
17481  case $host_os in
17482    nonstopux*) version_type=nonstopux ;;
17483    *)
17484	if test "$lt_cv_prog_gnu_ld" = yes; then
17485		version_type=linux
17486	else
17487		version_type=irix
17488	fi ;;
17489  esac
17490  need_lib_prefix=no
17491  need_version=no
17492  soname_spec='${libname}${release}${shared_ext}$major'
17493  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17494  case $host_os in
17495  irix5* | nonstopux*)
17496    libsuff= shlibsuff=
17497    ;;
17498  *)
17499    case $LD in # libtool.m4 will add one of these switches to LD
17500    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17501      libsuff= shlibsuff= libmagic=32-bit;;
17502    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17503      libsuff=32 shlibsuff=N32 libmagic=N32;;
17504    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17505      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17506    *) libsuff= shlibsuff= libmagic=never-match;;
17507    esac
17508    ;;
17509  esac
17510  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17511  shlibpath_overrides_runpath=no
17512  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17513  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17514  hardcode_into_libs=yes
17515  ;;
17516
17517# No shared lib support for Linux oldld, aout, or coff.
17518linux*oldld* | linux*aout* | linux*coff*)
17519  dynamic_linker=no
17520  ;;
17521
17522# This must be Linux ELF.
17523linux* | k*bsd*-gnu)
17524  version_type=linux
17525  need_lib_prefix=no
17526  need_version=no
17527  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17528  soname_spec='${libname}${release}${shared_ext}$major'
17529  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17530  shlibpath_var=LD_LIBRARY_PATH
17531  shlibpath_overrides_runpath=no
17532  # This implies no fast_install, which is unacceptable.
17533  # Some rework will be needed to allow for fast_install
17534  # before this can be enabled.
17535  hardcode_into_libs=yes
17536
17537  # Append ld.so.conf contents to the search path
17538  if test -f /etc/ld.so.conf; then
17539    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17540    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17541  fi
17542
17543  # We used to test for /lib/ld.so.1 and disable shared libraries on
17544  # powerpc, because MkLinux only supported shared libraries with the
17545  # GNU dynamic linker.  Since this was broken with cross compilers,
17546  # most powerpc-linux boxes support dynamic linking these days and
17547  # people can always --disable-shared, the test was removed, and we
17548  # assume the GNU/Linux dynamic linker is in use.
17549  dynamic_linker='GNU/Linux ld.so'
17550  ;;
17551
17552netbsd*)
17553  version_type=sunos
17554  need_lib_prefix=no
17555  need_version=no
17556  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17557    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17558    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17559    dynamic_linker='NetBSD (a.out) ld.so'
17560  else
17561    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17562    soname_spec='${libname}${release}${shared_ext}$major'
17563    dynamic_linker='NetBSD ld.elf_so'
17564  fi
17565  shlibpath_var=LD_LIBRARY_PATH
17566  shlibpath_overrides_runpath=yes
17567  hardcode_into_libs=yes
17568  ;;
17569
17570newsos6)
17571  version_type=linux
17572  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17573  shlibpath_var=LD_LIBRARY_PATH
17574  shlibpath_overrides_runpath=yes
17575  ;;
17576
17577nto-qnx*)
17578  version_type=linux
17579  need_lib_prefix=no
17580  need_version=no
17581  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17582  soname_spec='${libname}${release}${shared_ext}$major'
17583  shlibpath_var=LD_LIBRARY_PATH
17584  shlibpath_overrides_runpath=yes
17585  ;;
17586
17587openbsd*)
17588  version_type=sunos
17589  sys_lib_dlsearch_path_spec="/usr/lib"
17590  need_lib_prefix=no
17591  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17592  case $host_os in
17593    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17594    *)                         need_version=no  ;;
17595  esac
17596  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17597  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17598  shlibpath_var=LD_LIBRARY_PATH
17599  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17600    case $host_os in
17601      openbsd2.[89] | openbsd2.[89].*)
17602	shlibpath_overrides_runpath=no
17603	;;
17604      *)
17605	shlibpath_overrides_runpath=yes
17606	;;
17607      esac
17608  else
17609    shlibpath_overrides_runpath=yes
17610  fi
17611  ;;
17612
17613os2*)
17614  libname_spec='$name'
17615  shrext_cmds=".dll"
17616  need_lib_prefix=no
17617  library_names_spec='$libname${shared_ext} $libname.a'
17618  dynamic_linker='OS/2 ld.exe'
17619  shlibpath_var=LIBPATH
17620  ;;
17621
17622osf3* | osf4* | osf5*)
17623  version_type=osf
17624  need_lib_prefix=no
17625  need_version=no
17626  soname_spec='${libname}${release}${shared_ext}$major'
17627  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17628  shlibpath_var=LD_LIBRARY_PATH
17629  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17630  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17631  ;;
17632
17633rdos*)
17634  dynamic_linker=no
17635  ;;
17636
17637solaris*)
17638  version_type=linux
17639  need_lib_prefix=no
17640  need_version=no
17641  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17642  soname_spec='${libname}${release}${shared_ext}$major'
17643  shlibpath_var=LD_LIBRARY_PATH
17644  shlibpath_overrides_runpath=yes
17645  hardcode_into_libs=yes
17646  # ldd complains unless libraries are executable
17647  postinstall_cmds='chmod +x $lib'
17648  ;;
17649
17650sunos4*)
17651  version_type=sunos
17652  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17653  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17654  shlibpath_var=LD_LIBRARY_PATH
17655  shlibpath_overrides_runpath=yes
17656  if test "$with_gnu_ld" = yes; then
17657    need_lib_prefix=no
17658  fi
17659  need_version=yes
17660  ;;
17661
17662sysv4 | sysv4.3*)
17663  version_type=linux
17664  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17665  soname_spec='${libname}${release}${shared_ext}$major'
17666  shlibpath_var=LD_LIBRARY_PATH
17667  case $host_vendor in
17668    sni)
17669      shlibpath_overrides_runpath=no
17670      need_lib_prefix=no
17671      export_dynamic_flag_spec='${wl}-Blargedynsym'
17672      runpath_var=LD_RUN_PATH
17673      ;;
17674    siemens)
17675      need_lib_prefix=no
17676      ;;
17677    motorola)
17678      need_lib_prefix=no
17679      need_version=no
17680      shlibpath_overrides_runpath=no
17681      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17682      ;;
17683  esac
17684  ;;
17685
17686sysv4*MP*)
17687  if test -d /usr/nec ;then
17688    version_type=linux
17689    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17690    soname_spec='$libname${shared_ext}.$major'
17691    shlibpath_var=LD_LIBRARY_PATH
17692  fi
17693  ;;
17694
17695sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17696  version_type=freebsd-elf
17697  need_lib_prefix=no
17698  need_version=no
17699  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17700  soname_spec='${libname}${release}${shared_ext}$major'
17701  shlibpath_var=LD_LIBRARY_PATH
17702  hardcode_into_libs=yes
17703  if test "$with_gnu_ld" = yes; then
17704    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17705    shlibpath_overrides_runpath=no
17706  else
17707    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17708    shlibpath_overrides_runpath=yes
17709    case $host_os in
17710      sco3.2v5*)
17711        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17712	;;
17713    esac
17714  fi
17715  sys_lib_dlsearch_path_spec='/usr/lib'
17716  ;;
17717
17718uts4*)
17719  version_type=linux
17720  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17721  soname_spec='${libname}${release}${shared_ext}$major'
17722  shlibpath_var=LD_LIBRARY_PATH
17723  ;;
17724
17725*)
17726  dynamic_linker=no
17727  ;;
17728esac
17729{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17730echo "${ECHO_T}$dynamic_linker" >&6; }
17731test "$dynamic_linker" = no && can_build_shared=no
17732
17733variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17734if test "$GCC" = yes; then
17735  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17736fi
17737
17738{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17739echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17740hardcode_action_GCJ=
17741if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17742   test -n "$runpath_var_GCJ" || \
17743   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17744
17745  # We can hardcode non-existant directories.
17746  if test "$hardcode_direct_GCJ" != no &&
17747     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17748     # have to relink, otherwise we might link with an installed library
17749     # when we should be linking with a yet-to-be-installed one
17750     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17751     test "$hardcode_minus_L_GCJ" != no; then
17752    # Linking always hardcodes the temporary library directory.
17753    hardcode_action_GCJ=relink
17754  else
17755    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17756    hardcode_action_GCJ=immediate
17757  fi
17758else
17759  # We cannot hardcode anything, or else we can only hardcode existing
17760  # directories.
17761  hardcode_action_GCJ=unsupported
17762fi
17763{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17764echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17765
17766if test "$hardcode_action_GCJ" = relink; then
17767  # Fast installation is not supported
17768  enable_fast_install=no
17769elif test "$shlibpath_overrides_runpath" = yes ||
17770     test "$enable_shared" = no; then
17771  # Fast installation is not necessary
17772  enable_fast_install=needless
17773fi
17774
17775
17776# The else clause should only fire when bootstrapping the
17777# libtool distribution, otherwise you forgot to ship ltmain.sh
17778# with your package, and you will get complaints that there are
17779# no rules to generate ltmain.sh.
17780if test -f "$ltmain"; then
17781  # See if we are running on zsh, and set the options which allow our commands through
17782  # without removal of \ escapes.
17783  if test -n "${ZSH_VERSION+set}" ; then
17784    setopt NO_GLOB_SUBST
17785  fi
17786  # Now quote all the things that may contain metacharacters while being
17787  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17788  # variables and quote the copies for generation of the libtool script.
17789  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17790    SED SHELL STRIP \
17791    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17792    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17793    deplibs_check_method reload_flag reload_cmds need_locks \
17794    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17795    lt_cv_sys_global_symbol_to_c_name_address \
17796    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17797    old_postinstall_cmds old_postuninstall_cmds \
17798    compiler_GCJ \
17799    CC_GCJ \
17800    LD_GCJ \
17801    lt_prog_compiler_wl_GCJ \
17802    lt_prog_compiler_pic_GCJ \
17803    lt_prog_compiler_static_GCJ \
17804    lt_prog_compiler_no_builtin_flag_GCJ \
17805    export_dynamic_flag_spec_GCJ \
17806    thread_safe_flag_spec_GCJ \
17807    whole_archive_flag_spec_GCJ \
17808    enable_shared_with_static_runtimes_GCJ \
17809    old_archive_cmds_GCJ \
17810    old_archive_from_new_cmds_GCJ \
17811    predep_objects_GCJ \
17812    postdep_objects_GCJ \
17813    predeps_GCJ \
17814    postdeps_GCJ \
17815    compiler_lib_search_path_GCJ \
17816    archive_cmds_GCJ \
17817    archive_expsym_cmds_GCJ \
17818    postinstall_cmds_GCJ \
17819    postuninstall_cmds_GCJ \
17820    old_archive_from_expsyms_cmds_GCJ \
17821    allow_undefined_flag_GCJ \
17822    no_undefined_flag_GCJ \
17823    export_symbols_cmds_GCJ \
17824    hardcode_libdir_flag_spec_GCJ \
17825    hardcode_libdir_flag_spec_ld_GCJ \
17826    hardcode_libdir_separator_GCJ \
17827    hardcode_automatic_GCJ \
17828    module_cmds_GCJ \
17829    module_expsym_cmds_GCJ \
17830    lt_cv_prog_compiler_c_o_GCJ \
17831    fix_srcfile_path_GCJ \
17832    exclude_expsyms_GCJ \
17833    include_expsyms_GCJ; do
17834
17835    case $var in
17836    old_archive_cmds_GCJ | \
17837    old_archive_from_new_cmds_GCJ | \
17838    archive_cmds_GCJ | \
17839    archive_expsym_cmds_GCJ | \
17840    module_cmds_GCJ | \
17841    module_expsym_cmds_GCJ | \
17842    old_archive_from_expsyms_cmds_GCJ | \
17843    export_symbols_cmds_GCJ | \
17844    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17845    postinstall_cmds | postuninstall_cmds | \
17846    old_postinstall_cmds | old_postuninstall_cmds | \
17847    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17848      # Double-quote double-evaled strings.
17849      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17850      ;;
17851    *)
17852      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17853      ;;
17854    esac
17855  done
17856
17857  case $lt_echo in
17858  *'\$0 --fallback-echo"')
17859    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17860    ;;
17861  esac
17862
17863cfgfile="$ofile"
17864
17865  cat <<__EOF__ >> "$cfgfile"
17866# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17867
17868# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17869
17870# Shell to use when invoking shell scripts.
17871SHELL=$lt_SHELL
17872
17873# Whether or not to build shared libraries.
17874build_libtool_libs=$enable_shared
17875
17876# Whether or not to build static libraries.
17877build_old_libs=$enable_static
17878
17879# Whether or not to add -lc for building shared libraries.
17880build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17881
17882# Whether or not to disallow shared libs when runtime libs are static
17883allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17884
17885# Whether or not to optimize for fast installation.
17886fast_install=$enable_fast_install
17887
17888# The host system.
17889host_alias=$host_alias
17890host=$host
17891host_os=$host_os
17892
17893# The build system.
17894build_alias=$build_alias
17895build=$build
17896build_os=$build_os
17897
17898# An echo program that does not interpret backslashes.
17899echo=$lt_echo
17900
17901# The archiver.
17902AR=$lt_AR
17903AR_FLAGS=$lt_AR_FLAGS
17904
17905# A C compiler.
17906LTCC=$lt_LTCC
17907
17908# LTCC compiler flags.
17909LTCFLAGS=$lt_LTCFLAGS
17910
17911# A language-specific compiler.
17912CC=$lt_compiler_GCJ
17913
17914# Is the compiler the GNU C compiler?
17915with_gcc=$GCC_GCJ
17916
17917# An ERE matcher.
17918EGREP=$lt_EGREP
17919
17920# The linker used to build libraries.
17921LD=$lt_LD_GCJ
17922
17923# Whether we need hard or soft links.
17924LN_S=$lt_LN_S
17925
17926# A BSD-compatible nm program.
17927NM=$lt_NM
17928
17929# A symbol stripping program
17930STRIP=$lt_STRIP
17931
17932# Used to examine libraries when file_magic_cmd begins "file"
17933MAGIC_CMD=$MAGIC_CMD
17934
17935# Used on cygwin: DLL creation program.
17936DLLTOOL="$DLLTOOL"
17937
17938# Used on cygwin: object dumper.
17939OBJDUMP="$OBJDUMP"
17940
17941# Used on cygwin: assembler.
17942AS="$AS"
17943
17944# The name of the directory that contains temporary libtool files.
17945objdir=$objdir
17946
17947# How to create reloadable object files.
17948reload_flag=$lt_reload_flag
17949reload_cmds=$lt_reload_cmds
17950
17951# How to pass a linker flag through the compiler.
17952wl=$lt_lt_prog_compiler_wl_GCJ
17953
17954# Object file suffix (normally "o").
17955objext="$ac_objext"
17956
17957# Old archive suffix (normally "a").
17958libext="$libext"
17959
17960# Shared library suffix (normally ".so").
17961shrext_cmds='$shrext_cmds'
17962
17963# Executable file suffix (normally "").
17964exeext="$exeext"
17965
17966# Additional compiler flags for building library objects.
17967pic_flag=$lt_lt_prog_compiler_pic_GCJ
17968pic_mode=$pic_mode
17969
17970# What is the maximum length of a command?
17971max_cmd_len=$lt_cv_sys_max_cmd_len
17972
17973# Does compiler simultaneously support -c and -o options?
17974compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17975
17976# Must we lock files when doing compilation?
17977need_locks=$lt_need_locks
17978
17979# Do we need the lib prefix for modules?
17980need_lib_prefix=$need_lib_prefix
17981
17982# Do we need a version for libraries?
17983need_version=$need_version
17984
17985# Whether dlopen is supported.
17986dlopen_support=$enable_dlopen
17987
17988# Whether dlopen of programs is supported.
17989dlopen_self=$enable_dlopen_self
17990
17991# Whether dlopen of statically linked programs is supported.
17992dlopen_self_static=$enable_dlopen_self_static
17993
17994# Compiler flag to prevent dynamic linking.
17995link_static_flag=$lt_lt_prog_compiler_static_GCJ
17996
17997# Compiler flag to turn off builtin functions.
17998no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17999
18000# Compiler flag to allow reflexive dlopens.
18001export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18002
18003# Compiler flag to generate shared objects directly from archives.
18004whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18005
18006# Compiler flag to generate thread-safe objects.
18007thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18008
18009# Library versioning type.
18010version_type=$version_type
18011
18012# Format of library name prefix.
18013libname_spec=$lt_libname_spec
18014
18015# List of archive names.  First name is the real one, the rest are links.
18016# The last name is the one that the linker finds with -lNAME.
18017library_names_spec=$lt_library_names_spec
18018
18019# The coded name of the library, if different from the real name.
18020soname_spec=$lt_soname_spec
18021
18022# Commands used to build and install an old-style archive.
18023RANLIB=$lt_RANLIB
18024old_archive_cmds=$lt_old_archive_cmds_GCJ
18025old_postinstall_cmds=$lt_old_postinstall_cmds
18026old_postuninstall_cmds=$lt_old_postuninstall_cmds
18027
18028# Create an old-style archive from a shared archive.
18029old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18030
18031# Create a temporary old-style archive to link instead of a shared archive.
18032old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18033
18034# Commands used to build and install a shared archive.
18035archive_cmds=$lt_archive_cmds_GCJ
18036archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18037postinstall_cmds=$lt_postinstall_cmds
18038postuninstall_cmds=$lt_postuninstall_cmds
18039
18040# Commands used to build a loadable module (assumed same as above if empty)
18041module_cmds=$lt_module_cmds_GCJ
18042module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18043
18044# Commands to strip libraries.
18045old_striplib=$lt_old_striplib
18046striplib=$lt_striplib
18047
18048# Dependencies to place before the objects being linked to create a
18049# shared library.
18050predep_objects=$lt_predep_objects_GCJ
18051
18052# Dependencies to place after the objects being linked to create a
18053# shared library.
18054postdep_objects=$lt_postdep_objects_GCJ
18055
18056# Dependencies to place before the objects being linked to create a
18057# shared library.
18058predeps=$lt_predeps_GCJ
18059
18060# Dependencies to place after the objects being linked to create a
18061# shared library.
18062postdeps=$lt_postdeps_GCJ
18063
18064# The library search path used internally by the compiler when linking
18065# a shared library.
18066compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18067
18068# Method to check whether dependent libraries are shared objects.
18069deplibs_check_method=$lt_deplibs_check_method
18070
18071# Command to use when deplibs_check_method == file_magic.
18072file_magic_cmd=$lt_file_magic_cmd
18073
18074# Flag that allows shared libraries with undefined symbols to be built.
18075allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18076
18077# Flag that forces no undefined symbols.
18078no_undefined_flag=$lt_no_undefined_flag_GCJ
18079
18080# Commands used to finish a libtool library installation in a directory.
18081finish_cmds=$lt_finish_cmds
18082
18083# Same as above, but a single script fragment to be evaled but not shown.
18084finish_eval=$lt_finish_eval
18085
18086# Take the output of nm and produce a listing of raw symbols and C names.
18087global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18088
18089# Transform the output of nm in a proper C declaration
18090global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18091
18092# Transform the output of nm in a C name address pair
18093global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18094
18095# This is the shared library runtime path variable.
18096runpath_var=$runpath_var
18097
18098# This is the shared library path variable.
18099shlibpath_var=$shlibpath_var
18100
18101# Is shlibpath searched before the hard-coded library search path?
18102shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18103
18104# How to hardcode a shared library path into an executable.
18105hardcode_action=$hardcode_action_GCJ
18106
18107# Whether we should hardcode library paths into libraries.
18108hardcode_into_libs=$hardcode_into_libs
18109
18110# Flag to hardcode \$libdir into a binary during linking.
18111# This must work even if \$libdir does not exist.
18112hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18113
18114# If ld is used when linking, flag to hardcode \$libdir into
18115# a binary during linking. This must work even if \$libdir does
18116# not exist.
18117hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18118
18119# Whether we need a single -rpath flag with a separated argument.
18120hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18121
18122# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18123# resulting binary.
18124hardcode_direct=$hardcode_direct_GCJ
18125
18126# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18127# resulting binary.
18128hardcode_minus_L=$hardcode_minus_L_GCJ
18129
18130# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18131# the resulting binary.
18132hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18133
18134# Set to yes if building a shared library automatically hardcodes DIR into the library
18135# and all subsequent libraries and executables linked against it.
18136hardcode_automatic=$hardcode_automatic_GCJ
18137
18138# Variables whose values should be saved in libtool wrapper scripts and
18139# restored at relink time.
18140variables_saved_for_relink="$variables_saved_for_relink"
18141
18142# Whether libtool must link a program against all its dependency libraries.
18143link_all_deplibs=$link_all_deplibs_GCJ
18144
18145# Compile-time system search path for libraries
18146sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18147
18148# Run-time system search path for libraries
18149sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18150
18151# Fix the shell variable \$srcfile for the compiler.
18152fix_srcfile_path=$lt_fix_srcfile_path
18153
18154# Set to yes if exported symbols are required.
18155always_export_symbols=$always_export_symbols_GCJ
18156
18157# The commands to list exported symbols.
18158export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18159
18160# The commands to extract the exported symbol list from a shared archive.
18161extract_expsyms_cmds=$lt_extract_expsyms_cmds
18162
18163# Symbols that should not be listed in the preloaded symbols.
18164exclude_expsyms=$lt_exclude_expsyms_GCJ
18165
18166# Symbols that must always be exported.
18167include_expsyms=$lt_include_expsyms_GCJ
18168
18169# ### END LIBTOOL TAG CONFIG: $tagname
18170
18171__EOF__
18172
18173
18174else
18175  # If there is no Makefile yet, we rely on a make rule to execute
18176  # `config.status --recheck' to rerun these tests and create the
18177  # libtool script then.
18178  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18179  if test -f "$ltmain_in"; then
18180    test -f Makefile && make "$ltmain"
18181  fi
18182fi
18183
18184
18185ac_ext=c
18186ac_cpp='$CPP $CPPFLAGS'
18187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18189ac_compiler_gnu=$ac_cv_c_compiler_gnu
18190
18191CC="$lt_save_CC"
18192
18193	else
18194	  tagname=""
18195	fi
18196	;;
18197
18198      RC)
18199
18200
18201# Source file extension for RC test sources.
18202ac_ext=rc
18203
18204# Object file extension for compiled RC test sources.
18205objext=o
18206objext_RC=$objext
18207
18208# Code to be used in simple compile tests
18209lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18210
18211# Code to be used in simple link tests
18212lt_simple_link_test_code="$lt_simple_compile_test_code"
18213
18214# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18215
18216# If no C compiler was specified, use CC.
18217LTCC=${LTCC-"$CC"}
18218
18219# If no C compiler flags were specified, use CFLAGS.
18220LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18221
18222# Allow CC to be a program name with arguments.
18223compiler=$CC
18224
18225
18226# save warnings/boilerplate of simple test code
18227ac_outfile=conftest.$ac_objext
18228echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18229eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18230_lt_compiler_boilerplate=`cat conftest.err`
18231$rm conftest*
18232
18233ac_outfile=conftest.$ac_objext
18234echo "$lt_simple_link_test_code" >conftest.$ac_ext
18235eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18236_lt_linker_boilerplate=`cat conftest.err`
18237$rm conftest*
18238
18239
18240# Allow CC to be a program name with arguments.
18241lt_save_CC="$CC"
18242CC=${RC-"windres"}
18243compiler=$CC
18244compiler_RC=$CC
18245for cc_temp in $compiler""; do
18246  case $cc_temp in
18247    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18248    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18249    \-*) ;;
18250    *) break;;
18251  esac
18252done
18253cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18254
18255lt_cv_prog_compiler_c_o_RC=yes
18256
18257# The else clause should only fire when bootstrapping the
18258# libtool distribution, otherwise you forgot to ship ltmain.sh
18259# with your package, and you will get complaints that there are
18260# no rules to generate ltmain.sh.
18261if test -f "$ltmain"; then
18262  # See if we are running on zsh, and set the options which allow our commands through
18263  # without removal of \ escapes.
18264  if test -n "${ZSH_VERSION+set}" ; then
18265    setopt NO_GLOB_SUBST
18266  fi
18267  # Now quote all the things that may contain metacharacters while being
18268  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18269  # variables and quote the copies for generation of the libtool script.
18270  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18271    SED SHELL STRIP \
18272    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18273    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18274    deplibs_check_method reload_flag reload_cmds need_locks \
18275    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18276    lt_cv_sys_global_symbol_to_c_name_address \
18277    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18278    old_postinstall_cmds old_postuninstall_cmds \
18279    compiler_RC \
18280    CC_RC \
18281    LD_RC \
18282    lt_prog_compiler_wl_RC \
18283    lt_prog_compiler_pic_RC \
18284    lt_prog_compiler_static_RC \
18285    lt_prog_compiler_no_builtin_flag_RC \
18286    export_dynamic_flag_spec_RC \
18287    thread_safe_flag_spec_RC \
18288    whole_archive_flag_spec_RC \
18289    enable_shared_with_static_runtimes_RC \
18290    old_archive_cmds_RC \
18291    old_archive_from_new_cmds_RC \
18292    predep_objects_RC \
18293    postdep_objects_RC \
18294    predeps_RC \
18295    postdeps_RC \
18296    compiler_lib_search_path_RC \
18297    archive_cmds_RC \
18298    archive_expsym_cmds_RC \
18299    postinstall_cmds_RC \
18300    postuninstall_cmds_RC \
18301    old_archive_from_expsyms_cmds_RC \
18302    allow_undefined_flag_RC \
18303    no_undefined_flag_RC \
18304    export_symbols_cmds_RC \
18305    hardcode_libdir_flag_spec_RC \
18306    hardcode_libdir_flag_spec_ld_RC \
18307    hardcode_libdir_separator_RC \
18308    hardcode_automatic_RC \
18309    module_cmds_RC \
18310    module_expsym_cmds_RC \
18311    lt_cv_prog_compiler_c_o_RC \
18312    fix_srcfile_path_RC \
18313    exclude_expsyms_RC \
18314    include_expsyms_RC; do
18315
18316    case $var in
18317    old_archive_cmds_RC | \
18318    old_archive_from_new_cmds_RC | \
18319    archive_cmds_RC | \
18320    archive_expsym_cmds_RC | \
18321    module_cmds_RC | \
18322    module_expsym_cmds_RC | \
18323    old_archive_from_expsyms_cmds_RC | \
18324    export_symbols_cmds_RC | \
18325    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18326    postinstall_cmds | postuninstall_cmds | \
18327    old_postinstall_cmds | old_postuninstall_cmds | \
18328    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18329      # Double-quote double-evaled strings.
18330      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18331      ;;
18332    *)
18333      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18334      ;;
18335    esac
18336  done
18337
18338  case $lt_echo in
18339  *'\$0 --fallback-echo"')
18340    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18341    ;;
18342  esac
18343
18344cfgfile="$ofile"
18345
18346  cat <<__EOF__ >> "$cfgfile"
18347# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18348
18349# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18350
18351# Shell to use when invoking shell scripts.
18352SHELL=$lt_SHELL
18353
18354# Whether or not to build shared libraries.
18355build_libtool_libs=$enable_shared
18356
18357# Whether or not to build static libraries.
18358build_old_libs=$enable_static
18359
18360# Whether or not to add -lc for building shared libraries.
18361build_libtool_need_lc=$archive_cmds_need_lc_RC
18362
18363# Whether or not to disallow shared libs when runtime libs are static
18364allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18365
18366# Whether or not to optimize for fast installation.
18367fast_install=$enable_fast_install
18368
18369# The host system.
18370host_alias=$host_alias
18371host=$host
18372host_os=$host_os
18373
18374# The build system.
18375build_alias=$build_alias
18376build=$build
18377build_os=$build_os
18378
18379# An echo program that does not interpret backslashes.
18380echo=$lt_echo
18381
18382# The archiver.
18383AR=$lt_AR
18384AR_FLAGS=$lt_AR_FLAGS
18385
18386# A C compiler.
18387LTCC=$lt_LTCC
18388
18389# LTCC compiler flags.
18390LTCFLAGS=$lt_LTCFLAGS
18391
18392# A language-specific compiler.
18393CC=$lt_compiler_RC
18394
18395# Is the compiler the GNU C compiler?
18396with_gcc=$GCC_RC
18397
18398# An ERE matcher.
18399EGREP=$lt_EGREP
18400
18401# The linker used to build libraries.
18402LD=$lt_LD_RC
18403
18404# Whether we need hard or soft links.
18405LN_S=$lt_LN_S
18406
18407# A BSD-compatible nm program.
18408NM=$lt_NM
18409
18410# A symbol stripping program
18411STRIP=$lt_STRIP
18412
18413# Used to examine libraries when file_magic_cmd begins "file"
18414MAGIC_CMD=$MAGIC_CMD
18415
18416# Used on cygwin: DLL creation program.
18417DLLTOOL="$DLLTOOL"
18418
18419# Used on cygwin: object dumper.
18420OBJDUMP="$OBJDUMP"
18421
18422# Used on cygwin: assembler.
18423AS="$AS"
18424
18425# The name of the directory that contains temporary libtool files.
18426objdir=$objdir
18427
18428# How to create reloadable object files.
18429reload_flag=$lt_reload_flag
18430reload_cmds=$lt_reload_cmds
18431
18432# How to pass a linker flag through the compiler.
18433wl=$lt_lt_prog_compiler_wl_RC
18434
18435# Object file suffix (normally "o").
18436objext="$ac_objext"
18437
18438# Old archive suffix (normally "a").
18439libext="$libext"
18440
18441# Shared library suffix (normally ".so").
18442shrext_cmds='$shrext_cmds'
18443
18444# Executable file suffix (normally "").
18445exeext="$exeext"
18446
18447# Additional compiler flags for building library objects.
18448pic_flag=$lt_lt_prog_compiler_pic_RC
18449pic_mode=$pic_mode
18450
18451# What is the maximum length of a command?
18452max_cmd_len=$lt_cv_sys_max_cmd_len
18453
18454# Does compiler simultaneously support -c and -o options?
18455compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18456
18457# Must we lock files when doing compilation?
18458need_locks=$lt_need_locks
18459
18460# Do we need the lib prefix for modules?
18461need_lib_prefix=$need_lib_prefix
18462
18463# Do we need a version for libraries?
18464need_version=$need_version
18465
18466# Whether dlopen is supported.
18467dlopen_support=$enable_dlopen
18468
18469# Whether dlopen of programs is supported.
18470dlopen_self=$enable_dlopen_self
18471
18472# Whether dlopen of statically linked programs is supported.
18473dlopen_self_static=$enable_dlopen_self_static
18474
18475# Compiler flag to prevent dynamic linking.
18476link_static_flag=$lt_lt_prog_compiler_static_RC
18477
18478# Compiler flag to turn off builtin functions.
18479no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18480
18481# Compiler flag to allow reflexive dlopens.
18482export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18483
18484# Compiler flag to generate shared objects directly from archives.
18485whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18486
18487# Compiler flag to generate thread-safe objects.
18488thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18489
18490# Library versioning type.
18491version_type=$version_type
18492
18493# Format of library name prefix.
18494libname_spec=$lt_libname_spec
18495
18496# List of archive names.  First name is the real one, the rest are links.
18497# The last name is the one that the linker finds with -lNAME.
18498library_names_spec=$lt_library_names_spec
18499
18500# The coded name of the library, if different from the real name.
18501soname_spec=$lt_soname_spec
18502
18503# Commands used to build and install an old-style archive.
18504RANLIB=$lt_RANLIB
18505old_archive_cmds=$lt_old_archive_cmds_RC
18506old_postinstall_cmds=$lt_old_postinstall_cmds
18507old_postuninstall_cmds=$lt_old_postuninstall_cmds
18508
18509# Create an old-style archive from a shared archive.
18510old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18511
18512# Create a temporary old-style archive to link instead of a shared archive.
18513old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18514
18515# Commands used to build and install a shared archive.
18516archive_cmds=$lt_archive_cmds_RC
18517archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18518postinstall_cmds=$lt_postinstall_cmds
18519postuninstall_cmds=$lt_postuninstall_cmds
18520
18521# Commands used to build a loadable module (assumed same as above if empty)
18522module_cmds=$lt_module_cmds_RC
18523module_expsym_cmds=$lt_module_expsym_cmds_RC
18524
18525# Commands to strip libraries.
18526old_striplib=$lt_old_striplib
18527striplib=$lt_striplib
18528
18529# Dependencies to place before the objects being linked to create a
18530# shared library.
18531predep_objects=$lt_predep_objects_RC
18532
18533# Dependencies to place after the objects being linked to create a
18534# shared library.
18535postdep_objects=$lt_postdep_objects_RC
18536
18537# Dependencies to place before the objects being linked to create a
18538# shared library.
18539predeps=$lt_predeps_RC
18540
18541# Dependencies to place after the objects being linked to create a
18542# shared library.
18543postdeps=$lt_postdeps_RC
18544
18545# The library search path used internally by the compiler when linking
18546# a shared library.
18547compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18548
18549# Method to check whether dependent libraries are shared objects.
18550deplibs_check_method=$lt_deplibs_check_method
18551
18552# Command to use when deplibs_check_method == file_magic.
18553file_magic_cmd=$lt_file_magic_cmd
18554
18555# Flag that allows shared libraries with undefined symbols to be built.
18556allow_undefined_flag=$lt_allow_undefined_flag_RC
18557
18558# Flag that forces no undefined symbols.
18559no_undefined_flag=$lt_no_undefined_flag_RC
18560
18561# Commands used to finish a libtool library installation in a directory.
18562finish_cmds=$lt_finish_cmds
18563
18564# Same as above, but a single script fragment to be evaled but not shown.
18565finish_eval=$lt_finish_eval
18566
18567# Take the output of nm and produce a listing of raw symbols and C names.
18568global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18569
18570# Transform the output of nm in a proper C declaration
18571global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18572
18573# Transform the output of nm in a C name address pair
18574global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18575
18576# This is the shared library runtime path variable.
18577runpath_var=$runpath_var
18578
18579# This is the shared library path variable.
18580shlibpath_var=$shlibpath_var
18581
18582# Is shlibpath searched before the hard-coded library search path?
18583shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18584
18585# How to hardcode a shared library path into an executable.
18586hardcode_action=$hardcode_action_RC
18587
18588# Whether we should hardcode library paths into libraries.
18589hardcode_into_libs=$hardcode_into_libs
18590
18591# Flag to hardcode \$libdir into a binary during linking.
18592# This must work even if \$libdir does not exist.
18593hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18594
18595# If ld is used when linking, flag to hardcode \$libdir into
18596# a binary during linking. This must work even if \$libdir does
18597# not exist.
18598hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18599
18600# Whether we need a single -rpath flag with a separated argument.
18601hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18602
18603# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18604# resulting binary.
18605hardcode_direct=$hardcode_direct_RC
18606
18607# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18608# resulting binary.
18609hardcode_minus_L=$hardcode_minus_L_RC
18610
18611# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18612# the resulting binary.
18613hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18614
18615# Set to yes if building a shared library automatically hardcodes DIR into the library
18616# and all subsequent libraries and executables linked against it.
18617hardcode_automatic=$hardcode_automatic_RC
18618
18619# Variables whose values should be saved in libtool wrapper scripts and
18620# restored at relink time.
18621variables_saved_for_relink="$variables_saved_for_relink"
18622
18623# Whether libtool must link a program against all its dependency libraries.
18624link_all_deplibs=$link_all_deplibs_RC
18625
18626# Compile-time system search path for libraries
18627sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18628
18629# Run-time system search path for libraries
18630sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18631
18632# Fix the shell variable \$srcfile for the compiler.
18633fix_srcfile_path=$lt_fix_srcfile_path
18634
18635# Set to yes if exported symbols are required.
18636always_export_symbols=$always_export_symbols_RC
18637
18638# The commands to list exported symbols.
18639export_symbols_cmds=$lt_export_symbols_cmds_RC
18640
18641# The commands to extract the exported symbol list from a shared archive.
18642extract_expsyms_cmds=$lt_extract_expsyms_cmds
18643
18644# Symbols that should not be listed in the preloaded symbols.
18645exclude_expsyms=$lt_exclude_expsyms_RC
18646
18647# Symbols that must always be exported.
18648include_expsyms=$lt_include_expsyms_RC
18649
18650# ### END LIBTOOL TAG CONFIG: $tagname
18651
18652__EOF__
18653
18654
18655else
18656  # If there is no Makefile yet, we rely on a make rule to execute
18657  # `config.status --recheck' to rerun these tests and create the
18658  # libtool script then.
18659  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18660  if test -f "$ltmain_in"; then
18661    test -f Makefile && make "$ltmain"
18662  fi
18663fi
18664
18665
18666ac_ext=c
18667ac_cpp='$CPP $CPPFLAGS'
18668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18670ac_compiler_gnu=$ac_cv_c_compiler_gnu
18671
18672CC="$lt_save_CC"
18673
18674	;;
18675
18676      *)
18677	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18678echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18679   { (exit 1); exit 1; }; }
18680	;;
18681      esac
18682
18683      # Append the new tag name to the list of available tags.
18684      if test -n "$tagname" ; then
18685      available_tags="$available_tags $tagname"
18686    fi
18687    fi
18688  done
18689  IFS="$lt_save_ifs"
18690
18691  # Now substitute the updated list of available tags.
18692  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18693    mv "${ofile}T" "$ofile"
18694    chmod +x "$ofile"
18695  else
18696    rm -f "${ofile}T"
18697    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18698echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18699   { (exit 1); exit 1; }; }
18700  fi
18701fi
18702
18703
18704
18705# This can be used to rebuild libtool when needed
18706LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18707
18708# Always use our own libtool.
18709LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18710
18711# Prevent multiple expansion
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732am__api_version="1.9"
18733# Find a good install program.  We prefer a C program (faster),
18734# so one script is as good as another.  But avoid the broken or
18735# incompatible versions:
18736# SysV /etc/install, /usr/sbin/install
18737# SunOS /usr/etc/install
18738# IRIX /sbin/install
18739# AIX /bin/install
18740# AmigaOS /C/install, which installs bootblocks on floppy discs
18741# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18742# AFS /usr/afsws/bin/install, which mishandles nonexistent args
18743# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18744# OS/2's system install, which has a completely different semantic
18745# ./install, which can be erroneously created by make from ./install.sh.
18746{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18747echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
18748if test -z "$INSTALL"; then
18749if test "${ac_cv_path_install+set}" = set; then
18750  echo $ECHO_N "(cached) $ECHO_C" >&6
18751else
18752  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18753for as_dir in $PATH
18754do
18755  IFS=$as_save_IFS
18756  test -z "$as_dir" && as_dir=.
18757  # Account for people who put trailing slashes in PATH elements.
18758case $as_dir/ in
18759  ./ | .// | /cC/* | \
18760  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18761  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
18762  /usr/ucb/* ) ;;
18763  *)
18764    # OSF1 and SCO ODT 3.0 have their own names for install.
18765    # Don't use installbsd from OSF since it installs stuff as root
18766    # by default.
18767    for ac_prog in ginstall scoinst install; do
18768      for ac_exec_ext in '' $ac_executable_extensions; do
18769	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
18770	  if test $ac_prog = install &&
18771	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18772	    # AIX install.  It has an incompatible calling convention.
18773	    :
18774	  elif test $ac_prog = install &&
18775	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18776	    # program-specific install script used by HP pwplus--don't use.
18777	    :
18778	  else
18779	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18780	    break 3
18781	  fi
18782	fi
18783      done
18784    done
18785    ;;
18786esac
18787done
18788IFS=$as_save_IFS
18789
18790
18791fi
18792  if test "${ac_cv_path_install+set}" = set; then
18793    INSTALL=$ac_cv_path_install
18794  else
18795    # As a last resort, use the slow shell script.  Don't cache a
18796    # value for INSTALL within a source directory, because that will
18797    # break other packages using the cache if that directory is
18798    # removed, or if the value is a relative name.
18799    INSTALL=$ac_install_sh
18800  fi
18801fi
18802{ echo "$as_me:$LINENO: result: $INSTALL" >&5
18803echo "${ECHO_T}$INSTALL" >&6; }
18804
18805# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18806# It thinks the first close brace ends the variable substitution.
18807test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18808
18809test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18810
18811test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18812
18813{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
18814echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
18815# Just in case
18816sleep 1
18817echo timestamp > conftest.file
18818# Do `set' in a subshell so we don't clobber the current shell's
18819# arguments.  Must try -L first in case configure is actually a
18820# symlink; some systems play weird games with the mod time of symlinks
18821# (eg FreeBSD returns the mod time of the symlink's containing
18822# directory).
18823if (
18824   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
18825   if test "$*" = "X"; then
18826      # -L didn't work.
18827      set X `ls -t $srcdir/configure conftest.file`
18828   fi
18829   rm -f conftest.file
18830   if test "$*" != "X $srcdir/configure conftest.file" \
18831      && test "$*" != "X conftest.file $srcdir/configure"; then
18832
18833      # If neither matched, then we have a broken ls.  This can happen
18834      # if, for instance, CONFIG_SHELL is bash and it inherits a
18835      # broken ls alias from the environment.  This has actually
18836      # happened.  Such a system could not be considered "sane".
18837      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
18838alias in your environment" >&5
18839echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
18840alias in your environment" >&2;}
18841   { (exit 1); exit 1; }; }
18842   fi
18843
18844   test "$2" = conftest.file
18845   )
18846then
18847   # Ok.
18848   :
18849else
18850   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
18851Check your system clock" >&5
18852echo "$as_me: error: newly created file is older than distributed files!
18853Check your system clock" >&2;}
18854   { (exit 1); exit 1; }; }
18855fi
18856{ echo "$as_me:$LINENO: result: yes" >&5
18857echo "${ECHO_T}yes" >&6; }
18858test "$program_prefix" != NONE &&
18859  program_transform_name="s&^&$program_prefix&;$program_transform_name"
18860# Use a double $ so make ignores it.
18861test "$program_suffix" != NONE &&
18862  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
18863# Double any \ or $.  echo might interpret backslashes.
18864# By default was `s,x,x', remove it if useless.
18865cat <<\_ACEOF >conftest.sed
18866s/[\\$]/&&/g;s/;s,x,x,$//
18867_ACEOF
18868program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
18869rm -f conftest.sed
18870
18871# expand $ac_aux_dir to an absolute path
18872am_aux_dir=`cd $ac_aux_dir && pwd`
18873
18874test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
18875# Use eval to expand $SHELL
18876if eval "$MISSING --run true"; then
18877  am_missing_run="$MISSING --run "
18878else
18879  am_missing_run=
18880  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
18881echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
18882fi
18883
18884if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
18885  # We used to keeping the `.' as first argument, in order to
18886  # allow $(mkdir_p) to be used without argument.  As in
18887  #   $(mkdir_p) $(somedir)
18888  # where $(somedir) is conditionally defined.  However this is wrong
18889  # for two reasons:
18890  #  1. if the package is installed by a user who cannot write `.'
18891  #     make install will fail,
18892  #  2. the above comment should most certainly read
18893  #     $(mkdir_p) $(DESTDIR)$(somedir)
18894  #     so it does not work when $(somedir) is undefined and
18895  #     $(DESTDIR) is not.
18896  #  To support the latter case, we have to write
18897  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
18898  #  so the `.' trick is pointless.
18899  mkdir_p='mkdir -p --'
18900else
18901  # On NextStep and OpenStep, the `mkdir' command does not
18902  # recognize any option.  It will interpret all options as
18903  # directories to create, and then abort because `.' already
18904  # exists.
18905  for d in ./-p ./--version;
18906  do
18907    test -d $d && rmdir $d
18908  done
18909  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
18910  if test -f "$ac_aux_dir/mkinstalldirs"; then
18911    mkdir_p='$(mkinstalldirs)'
18912  else
18913    mkdir_p='$(install_sh) -d'
18914  fi
18915fi
18916
18917for ac_prog in gawk mawk nawk awk
18918do
18919  # Extract the first word of "$ac_prog", so it can be a program name with args.
18920set dummy $ac_prog; ac_word=$2
18921{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18923if test "${ac_cv_prog_AWK+set}" = set; then
18924  echo $ECHO_N "(cached) $ECHO_C" >&6
18925else
18926  if test -n "$AWK"; then
18927  ac_cv_prog_AWK="$AWK" # Let the user override the test.
18928else
18929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18930for as_dir in $PATH
18931do
18932  IFS=$as_save_IFS
18933  test -z "$as_dir" && as_dir=.
18934  for ac_exec_ext in '' $ac_executable_extensions; do
18935  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18936    ac_cv_prog_AWK="$ac_prog"
18937    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18938    break 2
18939  fi
18940done
18941done
18942IFS=$as_save_IFS
18943
18944fi
18945fi
18946AWK=$ac_cv_prog_AWK
18947if test -n "$AWK"; then
18948  { echo "$as_me:$LINENO: result: $AWK" >&5
18949echo "${ECHO_T}$AWK" >&6; }
18950else
18951  { echo "$as_me:$LINENO: result: no" >&5
18952echo "${ECHO_T}no" >&6; }
18953fi
18954
18955
18956  test -n "$AWK" && break
18957done
18958
18959{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18960echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
18961set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
18962if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
18963  echo $ECHO_N "(cached) $ECHO_C" >&6
18964else
18965  cat >conftest.make <<\_ACEOF
18966SHELL = /bin/sh
18967all:
18968	@echo '@@@%%%=$(MAKE)=@@@%%%'
18969_ACEOF
18970# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18971case `${MAKE-make} -f conftest.make 2>/dev/null` in
18972  *@@@%%%=?*=@@@%%%*)
18973    eval ac_cv_prog_make_${ac_make}_set=yes;;
18974  *)
18975    eval ac_cv_prog_make_${ac_make}_set=no;;
18976esac
18977rm -f conftest.make
18978fi
18979if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
18980  { echo "$as_me:$LINENO: result: yes" >&5
18981echo "${ECHO_T}yes" >&6; }
18982  SET_MAKE=
18983else
18984  { echo "$as_me:$LINENO: result: no" >&5
18985echo "${ECHO_T}no" >&6; }
18986  SET_MAKE="MAKE=${MAKE-make}"
18987fi
18988
18989rm -rf .tst 2>/dev/null
18990mkdir .tst 2>/dev/null
18991if test -d .tst; then
18992  am__leading_dot=.
18993else
18994  am__leading_dot=_
18995fi
18996rmdir .tst 2>/dev/null
18997
18998DEPDIR="${am__leading_dot}deps"
18999
19000ac_config_commands="$ac_config_commands depfiles"
19001
19002
19003am_make=${MAKE-make}
19004cat > confinc << 'END'
19005am__doit:
19006	@echo done
19007.PHONY: am__doit
19008END
19009# If we don't find an include directive, just comment out the code.
19010{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
19011echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
19012am__include="#"
19013am__quote=
19014_am_result=none
19015# First try GNU make style include.
19016echo "include confinc" > confmf
19017# We grep out `Entering directory' and `Leaving directory'
19018# messages which can occur if `w' ends up in MAKEFLAGS.
19019# In particular we don't look at `^make:' because GNU make might
19020# be invoked under some other name (usually "gmake"), in which
19021# case it prints its new name instead of `make'.
19022if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
19023   am__include=include
19024   am__quote=
19025   _am_result=GNU
19026fi
19027# Now try BSD make style include.
19028if test "$am__include" = "#"; then
19029   echo '.include "confinc"' > confmf
19030   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
19031      am__include=.include
19032      am__quote="\""
19033      _am_result=BSD
19034   fi
19035fi
19036
19037
19038{ echo "$as_me:$LINENO: result: $_am_result" >&5
19039echo "${ECHO_T}$_am_result" >&6; }
19040rm -f confinc confmf
19041
19042# Check whether --enable-dependency-tracking was given.
19043if test "${enable_dependency_tracking+set}" = set; then
19044  enableval=$enable_dependency_tracking;
19045fi
19046
19047if test "x$enable_dependency_tracking" != xno; then
19048  am_depcomp="$ac_aux_dir/depcomp"
19049  AMDEPBACKSLASH='\'
19050fi
19051
19052
19053if test "x$enable_dependency_tracking" != xno; then
19054  AMDEP_TRUE=
19055  AMDEP_FALSE='#'
19056else
19057  AMDEP_TRUE='#'
19058  AMDEP_FALSE=
19059fi
19060
19061
19062
19063# test to see if srcdir already configured
19064if test "`cd $srcdir && pwd`" != "`pwd`" &&
19065   test -f $srcdir/config.status; then
19066  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
19067echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
19068   { (exit 1); exit 1; }; }
19069fi
19070
19071# test whether we have cygpath
19072if test -z "$CYGPATH_W"; then
19073  if (cygpath --version) >/dev/null 2>/dev/null; then
19074    CYGPATH_W='cygpath -w'
19075  else
19076    CYGPATH_W=echo
19077  fi
19078fi
19079
19080
19081# Define the identity of the package.
19082 PACKAGE='openpam'
19083 VERSION='20071221'
19084
19085
19086cat >>confdefs.h <<_ACEOF
19087#define PACKAGE "$PACKAGE"
19088_ACEOF
19089
19090
19091cat >>confdefs.h <<_ACEOF
19092#define VERSION "$VERSION"
19093_ACEOF
19094
19095# Some tools Automake needs.
19096
19097ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
19098
19099
19100AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19101
19102
19103AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
19104
19105
19106AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19107
19108
19109MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
19110
19111install_sh=${install_sh-"$am_aux_dir/install-sh"}
19112
19113# Installed binaries are usually stripped using `strip' when the user
19114# run `make install-strip'.  However `strip' might not be the right
19115# tool to use in cross-compilation environments, therefore Automake
19116# will honor the `STRIP' environment variable to overrule this program.
19117if test "$cross_compiling" != no; then
19118  if test -n "$ac_tool_prefix"; then
19119  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19120set dummy ${ac_tool_prefix}strip; ac_word=$2
19121{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19123if test "${ac_cv_prog_STRIP+set}" = set; then
19124  echo $ECHO_N "(cached) $ECHO_C" >&6
19125else
19126  if test -n "$STRIP"; then
19127  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
19128else
19129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19130for as_dir in $PATH
19131do
19132  IFS=$as_save_IFS
19133  test -z "$as_dir" && as_dir=.
19134  for ac_exec_ext in '' $ac_executable_extensions; do
19135  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19136    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
19137    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19138    break 2
19139  fi
19140done
19141done
19142IFS=$as_save_IFS
19143
19144fi
19145fi
19146STRIP=$ac_cv_prog_STRIP
19147if test -n "$STRIP"; then
19148  { echo "$as_me:$LINENO: result: $STRIP" >&5
19149echo "${ECHO_T}$STRIP" >&6; }
19150else
19151  { echo "$as_me:$LINENO: result: no" >&5
19152echo "${ECHO_T}no" >&6; }
19153fi
19154
19155
19156fi
19157if test -z "$ac_cv_prog_STRIP"; then
19158  ac_ct_STRIP=$STRIP
19159  # Extract the first word of "strip", so it can be a program name with args.
19160set dummy strip; ac_word=$2
19161{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19163if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
19164  echo $ECHO_N "(cached) $ECHO_C" >&6
19165else
19166  if test -n "$ac_ct_STRIP"; then
19167  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19168else
19169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19170for as_dir in $PATH
19171do
19172  IFS=$as_save_IFS
19173  test -z "$as_dir" && as_dir=.
19174  for ac_exec_ext in '' $ac_executable_extensions; do
19175  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19176    ac_cv_prog_ac_ct_STRIP="strip"
19177    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19178    break 2
19179  fi
19180done
19181done
19182IFS=$as_save_IFS
19183
19184fi
19185fi
19186ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19187if test -n "$ac_ct_STRIP"; then
19188  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
19189echo "${ECHO_T}$ac_ct_STRIP" >&6; }
19190else
19191  { echo "$as_me:$LINENO: result: no" >&5
19192echo "${ECHO_T}no" >&6; }
19193fi
19194
19195  if test "x$ac_ct_STRIP" = x; then
19196    STRIP=":"
19197  else
19198    case $cross_compiling:$ac_tool_warned in
19199yes:)
19200{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19201whose name does not start with the host triplet.  If you think this
19202configuration is useful to you, please write to autoconf@gnu.org." >&5
19203echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19204whose name does not start with the host triplet.  If you think this
19205configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19206ac_tool_warned=yes ;;
19207esac
19208    STRIP=$ac_ct_STRIP
19209  fi
19210else
19211  STRIP="$ac_cv_prog_STRIP"
19212fi
19213
19214fi
19215INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
19216
19217# We need awk for the "check" target.  The system "awk" is bad on
19218# some platforms.
19219# Always define AMTAR for backward compatibility.
19220
19221AMTAR=${AMTAR-"${am_missing_run}tar"}
19222
19223am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
19224
19225
19226
19227
19228depcc="$CC"   am_compiler_list=
19229
19230{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19231echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19232if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19233  echo $ECHO_N "(cached) $ECHO_C" >&6
19234else
19235  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19236  # We make a subdir and do the tests there.  Otherwise we can end up
19237  # making bogus files that we don't know about and never remove.  For
19238  # instance it was reported that on HP-UX the gcc test will end up
19239  # making a dummy file named `D' -- because `-MD' means `put the output
19240  # in D'.
19241  mkdir conftest.dir
19242  # Copy depcomp to subdir because otherwise we won't find it if we're
19243  # using a relative directory.
19244  cp "$am_depcomp" conftest.dir
19245  cd conftest.dir
19246  # We will build objects and dependencies in a subdirectory because
19247  # it helps to detect inapplicable dependency modes.  For instance
19248  # both Tru64's cc and ICC support -MD to output dependencies as a
19249  # side effect of compilation, but ICC will put the dependencies in
19250  # the current directory while Tru64 will put them in the object
19251  # directory.
19252  mkdir sub
19253
19254  am_cv_CC_dependencies_compiler_type=none
19255  if test "$am_compiler_list" = ""; then
19256     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19257  fi
19258  for depmode in $am_compiler_list; do
19259    # Setup a source with many dependencies, because some compilers
19260    # like to wrap large dependency lists on column 80 (with \), and
19261    # we should not choose a depcomp mode which is confused by this.
19262    #
19263    # We need to recreate these files for each test, as the compiler may
19264    # overwrite some of them when testing with obscure command lines.
19265    # This happens at least with the AIX C compiler.
19266    : > sub/conftest.c
19267    for i in 1 2 3 4 5 6; do
19268      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19269      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19270      # Solaris 8's {/usr,}/bin/sh.
19271      touch sub/conftst$i.h
19272    done
19273    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19274
19275    case $depmode in
19276    nosideeffect)
19277      # after this tag, mechanisms are not by side-effect, so they'll
19278      # only be used when explicitly requested
19279      if test "x$enable_dependency_tracking" = xyes; then
19280	continue
19281      else
19282	break
19283      fi
19284      ;;
19285    none) break ;;
19286    esac
19287    # We check with `-c' and `-o' for the sake of the "dashmstdout"
19288    # mode.  It turns out that the SunPro C++ compiler does not properly
19289    # handle `-M -o', and we need to detect this.
19290    if depmode=$depmode \
19291       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19292       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19293       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19294         >/dev/null 2>conftest.err &&
19295       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19296       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19297       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19298      # icc doesn't choke on unknown options, it will just issue warnings
19299      # or remarks (even with -Werror).  So we grep stderr for any message
19300      # that says an option was ignored or not supported.
19301      # When given -MP, icc 7.0 and 7.1 complain thusly:
19302      #   icc: Command line warning: ignoring option '-M'; no argument required
19303      # The diagnosis changed in icc 8.0:
19304      #   icc: Command line remark: option '-MP' not supported
19305      if (grep 'ignoring option' conftest.err ||
19306          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19307        am_cv_CC_dependencies_compiler_type=$depmode
19308        break
19309      fi
19310    fi
19311  done
19312
19313  cd ..
19314  rm -rf conftest.dir
19315else
19316  am_cv_CC_dependencies_compiler_type=none
19317fi
19318
19319fi
19320{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19321echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
19322CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19323
19324
19325
19326if
19327  test "x$enable_dependency_tracking" != xno \
19328  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19329  am__fastdepCC_TRUE=
19330  am__fastdepCC_FALSE='#'
19331else
19332  am__fastdepCC_TRUE='#'
19333  am__fastdepCC_FALSE=
19334fi
19335
19336
19337depcc="$CXX"  am_compiler_list=
19338
19339{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19340echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19341if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
19342  echo $ECHO_N "(cached) $ECHO_C" >&6
19343else
19344  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19345  # We make a subdir and do the tests there.  Otherwise we can end up
19346  # making bogus files that we don't know about and never remove.  For
19347  # instance it was reported that on HP-UX the gcc test will end up
19348  # making a dummy file named `D' -- because `-MD' means `put the output
19349  # in D'.
19350  mkdir conftest.dir
19351  # Copy depcomp to subdir because otherwise we won't find it if we're
19352  # using a relative directory.
19353  cp "$am_depcomp" conftest.dir
19354  cd conftest.dir
19355  # We will build objects and dependencies in a subdirectory because
19356  # it helps to detect inapplicable dependency modes.  For instance
19357  # both Tru64's cc and ICC support -MD to output dependencies as a
19358  # side effect of compilation, but ICC will put the dependencies in
19359  # the current directory while Tru64 will put them in the object
19360  # directory.
19361  mkdir sub
19362
19363  am_cv_CXX_dependencies_compiler_type=none
19364  if test "$am_compiler_list" = ""; then
19365     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19366  fi
19367  for depmode in $am_compiler_list; do
19368    # Setup a source with many dependencies, because some compilers
19369    # like to wrap large dependency lists on column 80 (with \), and
19370    # we should not choose a depcomp mode which is confused by this.
19371    #
19372    # We need to recreate these files for each test, as the compiler may
19373    # overwrite some of them when testing with obscure command lines.
19374    # This happens at least with the AIX C compiler.
19375    : > sub/conftest.c
19376    for i in 1 2 3 4 5 6; do
19377      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19378      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19379      # Solaris 8's {/usr,}/bin/sh.
19380      touch sub/conftst$i.h
19381    done
19382    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19383
19384    case $depmode in
19385    nosideeffect)
19386      # after this tag, mechanisms are not by side-effect, so they'll
19387      # only be used when explicitly requested
19388      if test "x$enable_dependency_tracking" = xyes; then
19389	continue
19390      else
19391	break
19392      fi
19393      ;;
19394    none) break ;;
19395    esac
19396    # We check with `-c' and `-o' for the sake of the "dashmstdout"
19397    # mode.  It turns out that the SunPro C++ compiler does not properly
19398    # handle `-M -o', and we need to detect this.
19399    if depmode=$depmode \
19400       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19401       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19402       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19403         >/dev/null 2>conftest.err &&
19404       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19405       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19406       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19407      # icc doesn't choke on unknown options, it will just issue warnings
19408      # or remarks (even with -Werror).  So we grep stderr for any message
19409      # that says an option was ignored or not supported.
19410      # When given -MP, icc 7.0 and 7.1 complain thusly:
19411      #   icc: Command line warning: ignoring option '-M'; no argument required
19412      # The diagnosis changed in icc 8.0:
19413      #   icc: Command line remark: option '-MP' not supported
19414      if (grep 'ignoring option' conftest.err ||
19415          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19416        am_cv_CXX_dependencies_compiler_type=$depmode
19417        break
19418      fi
19419    fi
19420  done
19421
19422  cd ..
19423  rm -rf conftest.dir
19424else
19425  am_cv_CXX_dependencies_compiler_type=none
19426fi
19427
19428fi
19429{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
19430echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
19431CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
19432
19433
19434
19435if
19436  test "x$enable_dependency_tracking" != xno \
19437  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
19438  am__fastdepCXX_TRUE=
19439  am__fastdepCXX_FALSE='#'
19440else
19441  am__fastdepCXX_TRUE='#'
19442  am__fastdepCXX_FALSE=
19443fi
19444
19445
19446
19447
19448LIB_MAJ=2
19449
19450
19451cat >>confdefs.h <<_ACEOF
19452#define LIB_MAJ $LIB_MAJ
19453_ACEOF
19454
19455
19456# Check whether --enable-debug was given.
19457if test "${enable_debug+set}" = set; then
19458  enableval=$enable_debug;
19459cat >>confdefs.h <<\_ACEOF
19460#define OPENPAM_DEBUG 1
19461_ACEOF
19462
19463fi
19464
19465
19466{ echo "$as_me:$LINENO: checking whether loading unversioned modules support is enabled" >&5
19467echo $ECHO_N "checking whether loading unversioned modules support is enabled... $ECHO_C" >&6; }
19468# Check whether --enable-unversioned-modules was given.
19469if test "${enable_unversioned_modules+set}" = set; then
19470  enableval=$enable_unversioned_modules; if test "$enableval" = "no"; then
19471
19472cat >>confdefs.h <<\_ACEOF
19473#define DISABLE_UNVERSIONED_MODULES 1
19474_ACEOF
19475
19476	fi
19477	{ echo "$as_me:$LINENO: result: no" >&5
19478echo "${ECHO_T}no" >&6; }
19479else
19480  { echo "$as_me:$LINENO: result: yes" >&5
19481echo "${ECHO_T}yes" >&6; }
19482fi
19483
19484
19485{ echo "$as_me:$LINENO: checking for modules directory support" >&5
19486echo $ECHO_N "checking for modules directory support... $ECHO_C" >&6; }
19487
19488# Check whether --with-modules-dir was given.
19489if test "${with_modules_dir+set}" = set; then
19490  withval=$with_modules_dir; if test "$withval" != "no"; then
19491		OPENPAM_MODULES_DIR="$withval"
19492
19493cat >>confdefs.h <<_ACEOF
19494#define OPENPAM_MODULES_DIR "$OPENPAM_MODULES_DIR"
19495_ACEOF
19496
19497		{ echo "$as_me:$LINENO: result: $OPENPAM_MODULES_DIR" >&5
19498echo "${ECHO_T}$OPENPAM_MODULES_DIR" >&6; }
19499	else
19500		OPENPAM_MODULES_DIR="$libdir"
19501		{ echo "$as_me:$LINENO: result: no" >&5
19502echo "${ECHO_T}no" >&6; }
19503	fi
19504else
19505  OPENPAM_MODULES_DIR="$libdir"
19506	{ echo "$as_me:$LINENO: result: no" >&5
19507echo "${ECHO_T}no" >&6; }
19508fi
19509
19510
19511
19512{ echo "$as_me:$LINENO: checking whether to build the documentation" >&5
19513echo $ECHO_N "checking whether to build the documentation... $ECHO_C" >&6; }
19514
19515# Check whether --with-doc was given.
19516if test "${with_doc+set}" = set; then
19517  withval=$with_doc;
19518else
19519  with_doc=yes
19520fi
19521
19522{ echo "$as_me:$LINENO: result: $with_doc" >&5
19523echo "${ECHO_T}$with_doc" >&6; }
19524
19525{ echo "$as_me:$LINENO: checking whether to build example version of pam_unix.so" >&5
19526echo $ECHO_N "checking whether to build example version of pam_unix.so... $ECHO_C" >&6; }
19527
19528# Check whether --with-pam-unix was given.
19529if test "${with_pam_unix+set}" = set; then
19530  withval=$with_pam_unix;
19531else
19532  with_pam_unix=no
19533fi
19534
19535{ echo "$as_me:$LINENO: result: $with_pam_unix" >&5
19536echo "${ECHO_T}$with_pam_unix" >&6; }
19537
19538{ echo "$as_me:$LINENO: checking whether to build example version of su(1)" >&5
19539echo $ECHO_N "checking whether to build example version of su(1)... $ECHO_C" >&6; }
19540
19541# Check whether --with-su was given.
19542if test "${with_su+set}" = set; then
19543  withval=$with_su;
19544else
19545  with_su=no
19546fi
19547
19548{ echo "$as_me:$LINENO: result: $with_su" >&5
19549echo "${ECHO_T}$with_su" >&6; }
19550
19551
19552
19553if test "x$with_doc" = "xyes"; then
19554  WITH_DOC_TRUE=
19555  WITH_DOC_FALSE='#'
19556else
19557  WITH_DOC_TRUE='#'
19558  WITH_DOC_FALSE=
19559fi
19560
19561
19562
19563if test "x$with_pam_unix" = "xyes"; then
19564  WITH_PAM_UNIX_TRUE=
19565  WITH_PAM_UNIX_FALSE='#'
19566else
19567  WITH_PAM_UNIX_TRUE='#'
19568  WITH_PAM_UNIX_FALSE=
19569fi
19570
19571
19572
19573if test "x$with_su" = "xyes"; then
19574  WITH_SU_TRUE=
19575  WITH_SU_FALSE='#'
19576else
19577  WITH_SU_TRUE='#'
19578  WITH_SU_FALSE=
19579fi
19580
19581
19582# Find a good install program.  We prefer a C program (faster),
19583# so one script is as good as another.  But avoid the broken or
19584# incompatible versions:
19585# SysV /etc/install, /usr/sbin/install
19586# SunOS /usr/etc/install
19587# IRIX /sbin/install
19588# AIX /bin/install
19589# AmigaOS /C/install, which installs bootblocks on floppy discs
19590# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19591# AFS /usr/afsws/bin/install, which mishandles nonexistent args
19592# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19593# OS/2's system install, which has a completely different semantic
19594# ./install, which can be erroneously created by make from ./install.sh.
19595{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19596echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
19597if test -z "$INSTALL"; then
19598if test "${ac_cv_path_install+set}" = set; then
19599  echo $ECHO_N "(cached) $ECHO_C" >&6
19600else
19601  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19602for as_dir in $PATH
19603do
19604  IFS=$as_save_IFS
19605  test -z "$as_dir" && as_dir=.
19606  # Account for people who put trailing slashes in PATH elements.
19607case $as_dir/ in
19608  ./ | .// | /cC/* | \
19609  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19610  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19611  /usr/ucb/* ) ;;
19612  *)
19613    # OSF1 and SCO ODT 3.0 have their own names for install.
19614    # Don't use installbsd from OSF since it installs stuff as root
19615    # by default.
19616    for ac_prog in ginstall scoinst install; do
19617      for ac_exec_ext in '' $ac_executable_extensions; do
19618	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19619	  if test $ac_prog = install &&
19620	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19621	    # AIX install.  It has an incompatible calling convention.
19622	    :
19623	  elif test $ac_prog = install &&
19624	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19625	    # program-specific install script used by HP pwplus--don't use.
19626	    :
19627	  else
19628	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19629	    break 3
19630	  fi
19631	fi
19632      done
19633    done
19634    ;;
19635esac
19636done
19637IFS=$as_save_IFS
19638
19639
19640fi
19641  if test "${ac_cv_path_install+set}" = set; then
19642    INSTALL=$ac_cv_path_install
19643  else
19644    # As a last resort, use the slow shell script.  Don't cache a
19645    # value for INSTALL within a source directory, because that will
19646    # break other packages using the cache if that directory is
19647    # removed, or if the value is a relative name.
19648    INSTALL=$ac_install_sh
19649  fi
19650fi
19651{ echo "$as_me:$LINENO: result: $INSTALL" >&5
19652echo "${ECHO_T}$INSTALL" >&6; }
19653
19654# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19655# It thinks the first close brace ends the variable substitution.
19656test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19657
19658test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19659
19660test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19661
19662
19663
19664for ac_header in crypt.h
19665do
19666as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19668  { echo "$as_me:$LINENO: checking for $ac_header" >&5
19669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19671  echo $ECHO_N "(cached) $ECHO_C" >&6
19672fi
19673ac_res=`eval echo '${'$as_ac_Header'}'`
19674	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19675echo "${ECHO_T}$ac_res" >&6; }
19676else
19677  # Is the header compilable?
19678{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19679echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19680cat >conftest.$ac_ext <<_ACEOF
19681/* confdefs.h.  */
19682_ACEOF
19683cat confdefs.h >>conftest.$ac_ext
19684cat >>conftest.$ac_ext <<_ACEOF
19685/* end confdefs.h.  */
19686$ac_includes_default
19687#include <$ac_header>
19688_ACEOF
19689rm -f conftest.$ac_objext
19690if { (ac_try="$ac_compile"
19691case "(($ac_try" in
19692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19693  *) ac_try_echo=$ac_try;;
19694esac
19695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19696  (eval "$ac_compile") 2>conftest.er1
19697  ac_status=$?
19698  grep -v '^ *+' conftest.er1 >conftest.err
19699  rm -f conftest.er1
19700  cat conftest.err >&5
19701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702  (exit $ac_status); } && {
19703	 test -z "$ac_c_werror_flag" ||
19704	 test ! -s conftest.err
19705       } && test -s conftest.$ac_objext; then
19706  ac_header_compiler=yes
19707else
19708  echo "$as_me: failed program was:" >&5
19709sed 's/^/| /' conftest.$ac_ext >&5
19710
19711	ac_header_compiler=no
19712fi
19713
19714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19715{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19716echo "${ECHO_T}$ac_header_compiler" >&6; }
19717
19718# Is the header present?
19719{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19720echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19721cat >conftest.$ac_ext <<_ACEOF
19722/* confdefs.h.  */
19723_ACEOF
19724cat confdefs.h >>conftest.$ac_ext
19725cat >>conftest.$ac_ext <<_ACEOF
19726/* end confdefs.h.  */
19727#include <$ac_header>
19728_ACEOF
19729if { (ac_try="$ac_cpp conftest.$ac_ext"
19730case "(($ac_try" in
19731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19732  *) ac_try_echo=$ac_try;;
19733esac
19734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19735  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19736  ac_status=$?
19737  grep -v '^ *+' conftest.er1 >conftest.err
19738  rm -f conftest.er1
19739  cat conftest.err >&5
19740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741  (exit $ac_status); } >/dev/null && {
19742	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19743	 test ! -s conftest.err
19744       }; then
19745  ac_header_preproc=yes
19746else
19747  echo "$as_me: failed program was:" >&5
19748sed 's/^/| /' conftest.$ac_ext >&5
19749
19750  ac_header_preproc=no
19751fi
19752
19753rm -f conftest.err conftest.$ac_ext
19754{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19755echo "${ECHO_T}$ac_header_preproc" >&6; }
19756
19757# So?  What about this header?
19758case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19759  yes:no: )
19760    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19761echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19762    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19763echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19764    ac_header_preproc=yes
19765    ;;
19766  no:yes:* )
19767    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19768echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19769    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19770echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19771    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19772echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19773    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19774echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19775    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19776echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19777    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19778echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19779    ( cat <<\_ASBOX
19780## ------------------------- ##
19781## Report this to des@des.no ##
19782## ------------------------- ##
19783_ASBOX
19784     ) | sed "s/^/$as_me: WARNING:     /" >&2
19785    ;;
19786esac
19787{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19789if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19790  echo $ECHO_N "(cached) $ECHO_C" >&6
19791else
19792  eval "$as_ac_Header=\$ac_header_preproc"
19793fi
19794ac_res=`eval echo '${'$as_ac_Header'}'`
19795	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19796echo "${ECHO_T}$ac_res" >&6; }
19797
19798fi
19799if test `eval echo '${'$as_ac_Header'}'` = yes; then
19800  cat >>confdefs.h <<_ACEOF
19801#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19802_ACEOF
19803
19804fi
19805
19806done
19807
19808
19809
19810for ac_func in fpurge
19811do
19812as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19813{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19814echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19815if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19816  echo $ECHO_N "(cached) $ECHO_C" >&6
19817else
19818  cat >conftest.$ac_ext <<_ACEOF
19819/* confdefs.h.  */
19820_ACEOF
19821cat confdefs.h >>conftest.$ac_ext
19822cat >>conftest.$ac_ext <<_ACEOF
19823/* end confdefs.h.  */
19824/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19825   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19826#define $ac_func innocuous_$ac_func
19827
19828/* System header to define __stub macros and hopefully few prototypes,
19829    which can conflict with char $ac_func (); below.
19830    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19831    <limits.h> exists even on freestanding compilers.  */
19832
19833#ifdef __STDC__
19834# include <limits.h>
19835#else
19836# include <assert.h>
19837#endif
19838
19839#undef $ac_func
19840
19841/* Override any GCC internal prototype to avoid an error.
19842   Use char because int might match the return type of a GCC
19843   builtin and then its argument prototype would still apply.  */
19844#ifdef __cplusplus
19845extern "C"
19846#endif
19847char $ac_func ();
19848/* The GNU C library defines this for functions which it implements
19849    to always fail with ENOSYS.  Some functions are actually named
19850    something starting with __ and the normal name is an alias.  */
19851#if defined __stub_$ac_func || defined __stub___$ac_func
19852choke me
19853#endif
19854
19855int
19856main ()
19857{
19858return $ac_func ();
19859  ;
19860  return 0;
19861}
19862_ACEOF
19863rm -f conftest.$ac_objext conftest$ac_exeext
19864if { (ac_try="$ac_link"
19865case "(($ac_try" in
19866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19867  *) ac_try_echo=$ac_try;;
19868esac
19869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19870  (eval "$ac_link") 2>conftest.er1
19871  ac_status=$?
19872  grep -v '^ *+' conftest.er1 >conftest.err
19873  rm -f conftest.er1
19874  cat conftest.err >&5
19875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876  (exit $ac_status); } && {
19877	 test -z "$ac_c_werror_flag" ||
19878	 test ! -s conftest.err
19879       } && test -s conftest$ac_exeext &&
19880       $as_test_x conftest$ac_exeext; then
19881  eval "$as_ac_var=yes"
19882else
19883  echo "$as_me: failed program was:" >&5
19884sed 's/^/| /' conftest.$ac_ext >&5
19885
19886	eval "$as_ac_var=no"
19887fi
19888
19889rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19890      conftest$ac_exeext conftest.$ac_ext
19891fi
19892ac_res=`eval echo '${'$as_ac_var'}'`
19893	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19894echo "${ECHO_T}$ac_res" >&6; }
19895if test `eval echo '${'$as_ac_var'}'` = yes; then
19896  cat >>confdefs.h <<_ACEOF
19897#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19898_ACEOF
19899
19900fi
19901done
19902
19903
19904DL_LIBS=
19905{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19906echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
19907if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19908  echo $ECHO_N "(cached) $ECHO_C" >&6
19909else
19910  ac_check_lib_save_LIBS=$LIBS
19911LIBS="-ldl  $LIBS"
19912cat >conftest.$ac_ext <<_ACEOF
19913/* confdefs.h.  */
19914_ACEOF
19915cat confdefs.h >>conftest.$ac_ext
19916cat >>conftest.$ac_ext <<_ACEOF
19917/* end confdefs.h.  */
19918
19919/* Override any GCC internal prototype to avoid an error.
19920   Use char because int might match the return type of a GCC
19921   builtin and then its argument prototype would still apply.  */
19922#ifdef __cplusplus
19923extern "C"
19924#endif
19925char dlopen ();
19926int
19927main ()
19928{
19929return dlopen ();
19930  ;
19931  return 0;
19932}
19933_ACEOF
19934rm -f conftest.$ac_objext conftest$ac_exeext
19935if { (ac_try="$ac_link"
19936case "(($ac_try" in
19937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19938  *) ac_try_echo=$ac_try;;
19939esac
19940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19941  (eval "$ac_link") 2>conftest.er1
19942  ac_status=$?
19943  grep -v '^ *+' conftest.er1 >conftest.err
19944  rm -f conftest.er1
19945  cat conftest.err >&5
19946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947  (exit $ac_status); } && {
19948	 test -z "$ac_c_werror_flag" ||
19949	 test ! -s conftest.err
19950       } && test -s conftest$ac_exeext &&
19951       $as_test_x conftest$ac_exeext; then
19952  ac_cv_lib_dl_dlopen=yes
19953else
19954  echo "$as_me: failed program was:" >&5
19955sed 's/^/| /' conftest.$ac_ext >&5
19956
19957	ac_cv_lib_dl_dlopen=no
19958fi
19959
19960rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19961      conftest$ac_exeext conftest.$ac_ext
19962LIBS=$ac_check_lib_save_LIBS
19963fi
19964{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19965echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
19966if test $ac_cv_lib_dl_dlopen = yes; then
19967  DL_LIBS=-ldl
19968fi
19969
19970
19971
19972CRYPT_LIBS=
19973{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
19974echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
19975if test "${ac_cv_lib_crypt_crypt+set}" = set; then
19976  echo $ECHO_N "(cached) $ECHO_C" >&6
19977else
19978  ac_check_lib_save_LIBS=$LIBS
19979LIBS="-lcrypt  $LIBS"
19980cat >conftest.$ac_ext <<_ACEOF
19981/* confdefs.h.  */
19982_ACEOF
19983cat confdefs.h >>conftest.$ac_ext
19984cat >>conftest.$ac_ext <<_ACEOF
19985/* end confdefs.h.  */
19986
19987/* Override any GCC internal prototype to avoid an error.
19988   Use char because int might match the return type of a GCC
19989   builtin and then its argument prototype would still apply.  */
19990#ifdef __cplusplus
19991extern "C"
19992#endif
19993char crypt ();
19994int
19995main ()
19996{
19997return crypt ();
19998  ;
19999  return 0;
20000}
20001_ACEOF
20002rm -f conftest.$ac_objext conftest$ac_exeext
20003if { (ac_try="$ac_link"
20004case "(($ac_try" in
20005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20006  *) ac_try_echo=$ac_try;;
20007esac
20008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20009  (eval "$ac_link") 2>conftest.er1
20010  ac_status=$?
20011  grep -v '^ *+' conftest.er1 >conftest.err
20012  rm -f conftest.er1
20013  cat conftest.err >&5
20014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015  (exit $ac_status); } && {
20016	 test -z "$ac_c_werror_flag" ||
20017	 test ! -s conftest.err
20018       } && test -s conftest$ac_exeext &&
20019       $as_test_x conftest$ac_exeext; then
20020  ac_cv_lib_crypt_crypt=yes
20021else
20022  echo "$as_me: failed program was:" >&5
20023sed 's/^/| /' conftest.$ac_ext >&5
20024
20025	ac_cv_lib_crypt_crypt=no
20026fi
20027
20028rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20029      conftest$ac_exeext conftest.$ac_ext
20030LIBS=$ac_check_lib_save_LIBS
20031fi
20032{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
20033echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
20034if test $ac_cv_lib_crypt_crypt = yes; then
20035  CRYPT_LIBS=-lcrypt
20036fi
20037
20038
20039
20040CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
20041
20042# This corresponds to FreeBSD's WARNS level 6
20043DEVELOPER_CFLAGS="-Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wformat"
20044
20045# Check whether --enable-developer-warnings was given.
20046if test "${enable_developer_warnings+set}" = set; then
20047  enableval=$enable_developer_warnings; CFLAGS="${CFLAGS} ${DEVELOPER_CFLAGS}"
20048fi
20049
20050# Check whether --enable-debugging-symbols was given.
20051if test "${enable_debugging_symbols+set}" = set; then
20052  enableval=$enable_debugging_symbols; CFLAGS="${CFLAGS} -O0 -g -fno-inline"
20053fi
20054
20055# Check whether --enable-werror was given.
20056if test "${enable_werror+set}" = set; then
20057  enableval=$enable_werror; CFLAGS="${CFLAGS} -Werror"
20058fi
20059
20060
20061ac_config_files="$ac_config_files bin/Makefile bin/su/Makefile include/Makefile include/security/Makefile lib/Makefile modules/Makefile modules/pam_unix/Makefile modules/pam_deny/Makefile modules/pam_permit/Makefile doc/Makefile doc/man/Makefile Makefile"
20062
20063cat >confcache <<\_ACEOF
20064# This file is a shell script that caches the results of configure
20065# tests run on this system so they can be shared between configure
20066# scripts and configure runs, see configure's option --config-cache.
20067# It is not useful on other systems.  If it contains results you don't
20068# want to keep, you may remove or edit it.
20069#
20070# config.status only pays attention to the cache file if you give it
20071# the --recheck option to rerun configure.
20072#
20073# `ac_cv_env_foo' variables (set or unset) will be overridden when
20074# loading this file, other *unset* `ac_cv_foo' will be assigned the
20075# following values.
20076
20077_ACEOF
20078
20079# The following way of writing the cache mishandles newlines in values,
20080# but we know of no workaround that is simple, portable, and efficient.
20081# So, we kill variables containing newlines.
20082# Ultrix sh set writes to stderr and can't be redirected directly,
20083# and sets the high bit in the cache file unless we assign to the vars.
20084(
20085  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20086    eval ac_val=\$$ac_var
20087    case $ac_val in #(
20088    *${as_nl}*)
20089      case $ac_var in #(
20090      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20091echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20092      esac
20093      case $ac_var in #(
20094      _ | IFS | as_nl) ;; #(
20095      *) $as_unset $ac_var ;;
20096      esac ;;
20097    esac
20098  done
20099
20100  (set) 2>&1 |
20101    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20102    *${as_nl}ac_space=\ *)
20103      # `set' does not quote correctly, so add quotes (double-quote
20104      # substitution turns \\\\ into \\, and sed turns \\ into \).
20105      sed -n \
20106	"s/'/'\\\\''/g;
20107	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20108      ;; #(
20109    *)
20110      # `set' quotes correctly as required by POSIX, so do not add quotes.
20111      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20112      ;;
20113    esac |
20114    sort
20115) |
20116  sed '
20117     /^ac_cv_env_/b end
20118     t clear
20119     :clear
20120     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20121     t end
20122     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20123     :end' >>confcache
20124if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20125  if test -w "$cache_file"; then
20126    test "x$cache_file" != "x/dev/null" &&
20127      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20128echo "$as_me: updating cache $cache_file" >&6;}
20129    cat confcache >$cache_file
20130  else
20131    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20132echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20133  fi
20134fi
20135rm -f confcache
20136
20137test "x$prefix" = xNONE && prefix=$ac_default_prefix
20138# Let make expand exec_prefix.
20139test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20140
20141DEFS=-DHAVE_CONFIG_H
20142
20143ac_libobjs=
20144ac_ltlibobjs=
20145for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20146  # 1. Remove the extension, and $U if already installed.
20147  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20148  ac_i=`echo "$ac_i" | sed "$ac_script"`
20149  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20150  #    will be set to the directory where LIBOBJS objects are built.
20151  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20152  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20153done
20154LIBOBJS=$ac_libobjs
20155
20156LTLIBOBJS=$ac_ltlibobjs
20157
20158
20159if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20160  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20161Usually this means the macro was only invoked conditionally." >&5
20162echo "$as_me: error: conditional \"AMDEP\" was never defined.
20163Usually this means the macro was only invoked conditionally." >&2;}
20164   { (exit 1); exit 1; }; }
20165fi
20166if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20167  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20168Usually this means the macro was only invoked conditionally." >&5
20169echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20170Usually this means the macro was only invoked conditionally." >&2;}
20171   { (exit 1); exit 1; }; }
20172fi
20173if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20174  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20175Usually this means the macro was only invoked conditionally." >&5
20176echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20177Usually this means the macro was only invoked conditionally." >&2;}
20178   { (exit 1); exit 1; }; }
20179fi
20180if test -z "${WITH_DOC_TRUE}" && test -z "${WITH_DOC_FALSE}"; then
20181  { { echo "$as_me:$LINENO: error: conditional \"WITH_DOC\" was never defined.
20182Usually this means the macro was only invoked conditionally." >&5
20183echo "$as_me: error: conditional \"WITH_DOC\" was never defined.
20184Usually this means the macro was only invoked conditionally." >&2;}
20185   { (exit 1); exit 1; }; }
20186fi
20187if test -z "${WITH_PAM_UNIX_TRUE}" && test -z "${WITH_PAM_UNIX_FALSE}"; then
20188  { { echo "$as_me:$LINENO: error: conditional \"WITH_PAM_UNIX\" was never defined.
20189Usually this means the macro was only invoked conditionally." >&5
20190echo "$as_me: error: conditional \"WITH_PAM_UNIX\" was never defined.
20191Usually this means the macro was only invoked conditionally." >&2;}
20192   { (exit 1); exit 1; }; }
20193fi
20194if test -z "${WITH_SU_TRUE}" && test -z "${WITH_SU_FALSE}"; then
20195  { { echo "$as_me:$LINENO: error: conditional \"WITH_SU\" was never defined.
20196Usually this means the macro was only invoked conditionally." >&5
20197echo "$as_me: error: conditional \"WITH_SU\" was never defined.
20198Usually this means the macro was only invoked conditionally." >&2;}
20199   { (exit 1); exit 1; }; }
20200fi
20201
20202: ${CONFIG_STATUS=./config.status}
20203ac_clean_files_save=$ac_clean_files
20204ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20205{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20206echo "$as_me: creating $CONFIG_STATUS" >&6;}
20207cat >$CONFIG_STATUS <<_ACEOF
20208#! $SHELL
20209# Generated by $as_me.
20210# Run this file to recreate the current configuration.
20211# Compiler output produced by configure, useful for debugging
20212# configure, is in config.log if it exists.
20213
20214debug=false
20215ac_cs_recheck=false
20216ac_cs_silent=false
20217SHELL=\${CONFIG_SHELL-$SHELL}
20218_ACEOF
20219
20220cat >>$CONFIG_STATUS <<\_ACEOF
20221## --------------------- ##
20222## M4sh Initialization.  ##
20223## --------------------- ##
20224
20225# Be more Bourne compatible
20226DUALCASE=1; export DUALCASE # for MKS sh
20227if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20228  emulate sh
20229  NULLCMD=:
20230  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20231  # is contrary to our usage.  Disable this feature.
20232  alias -g '${1+"$@"}'='"$@"'
20233  setopt NO_GLOB_SUBST
20234else
20235  case `(set -o) 2>/dev/null` in
20236  *posix*) set -o posix ;;
20237esac
20238
20239fi
20240
20241
20242
20243
20244# PATH needs CR
20245# Avoid depending upon Character Ranges.
20246as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20247as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20248as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20249as_cr_digits='0123456789'
20250as_cr_alnum=$as_cr_Letters$as_cr_digits
20251
20252# The user is always right.
20253if test "${PATH_SEPARATOR+set}" != set; then
20254  echo "#! /bin/sh" >conf$$.sh
20255  echo  "exit 0"   >>conf$$.sh
20256  chmod +x conf$$.sh
20257  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20258    PATH_SEPARATOR=';'
20259  else
20260    PATH_SEPARATOR=:
20261  fi
20262  rm -f conf$$.sh
20263fi
20264
20265# Support unset when possible.
20266if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20267  as_unset=unset
20268else
20269  as_unset=false
20270fi
20271
20272
20273# IFS
20274# We need space, tab and new line, in precisely that order.  Quoting is
20275# there to prevent editors from complaining about space-tab.
20276# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20277# splitting by setting IFS to empty value.)
20278as_nl='
20279'
20280IFS=" ""	$as_nl"
20281
20282# Find who we are.  Look in the path if we contain no directory separator.
20283case $0 in
20284  *[\\/]* ) as_myself=$0 ;;
20285  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20286for as_dir in $PATH
20287do
20288  IFS=$as_save_IFS
20289  test -z "$as_dir" && as_dir=.
20290  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20291done
20292IFS=$as_save_IFS
20293
20294     ;;
20295esac
20296# We did not find ourselves, most probably we were run as `sh COMMAND'
20297# in which case we are not to be found in the path.
20298if test "x$as_myself" = x; then
20299  as_myself=$0
20300fi
20301if test ! -f "$as_myself"; then
20302  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20303  { (exit 1); exit 1; }
20304fi
20305
20306# Work around bugs in pre-3.0 UWIN ksh.
20307for as_var in ENV MAIL MAILPATH
20308do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20309done
20310PS1='$ '
20311PS2='> '
20312PS4='+ '
20313
20314# NLS nuisances.
20315for as_var in \
20316  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20317  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20318  LC_TELEPHONE LC_TIME
20319do
20320  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20321    eval $as_var=C; export $as_var
20322  else
20323    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20324  fi
20325done
20326
20327# Required to use basename.
20328if expr a : '\(a\)' >/dev/null 2>&1 &&
20329   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20330  as_expr=expr
20331else
20332  as_expr=false
20333fi
20334
20335if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20336  as_basename=basename
20337else
20338  as_basename=false
20339fi
20340
20341
20342# Name of the executable.
20343as_me=`$as_basename -- "$0" ||
20344$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20345	 X"$0" : 'X\(//\)$' \| \
20346	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20347echo X/"$0" |
20348    sed '/^.*\/\([^/][^/]*\)\/*$/{
20349	    s//\1/
20350	    q
20351	  }
20352	  /^X\/\(\/\/\)$/{
20353	    s//\1/
20354	    q
20355	  }
20356	  /^X\/\(\/\).*/{
20357	    s//\1/
20358	    q
20359	  }
20360	  s/.*/./; q'`
20361
20362# CDPATH.
20363$as_unset CDPATH
20364
20365
20366
20367  as_lineno_1=$LINENO
20368  as_lineno_2=$LINENO
20369  test "x$as_lineno_1" != "x$as_lineno_2" &&
20370  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20371
20372  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20373  # uniformly replaced by the line number.  The first 'sed' inserts a
20374  # line-number line after each line using $LINENO; the second 'sed'
20375  # does the real work.  The second script uses 'N' to pair each
20376  # line-number line with the line containing $LINENO, and appends
20377  # trailing '-' during substitution so that $LINENO is not a special
20378  # case at line end.
20379  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20380  # scripts with optimization help from Paolo Bonzini.  Blame Lee
20381  # E. McMahon (1931-1989) for sed's syntax.  :-)
20382  sed -n '
20383    p
20384    /[$]LINENO/=
20385  ' <$as_myself |
20386    sed '
20387      s/[$]LINENO.*/&-/
20388      t lineno
20389      b
20390      :lineno
20391      N
20392      :loop
20393      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20394      t loop
20395      s/-\n.*//
20396    ' >$as_me.lineno &&
20397  chmod +x "$as_me.lineno" ||
20398    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20399   { (exit 1); exit 1; }; }
20400
20401  # Don't try to exec as it changes $[0], causing all sort of problems
20402  # (the dirname of $[0] is not the place where we might find the
20403  # original and so on.  Autoconf is especially sensitive to this).
20404  . "./$as_me.lineno"
20405  # Exit status is that of the last command.
20406  exit
20407}
20408
20409
20410if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20411  as_dirname=dirname
20412else
20413  as_dirname=false
20414fi
20415
20416ECHO_C= ECHO_N= ECHO_T=
20417case `echo -n x` in
20418-n*)
20419  case `echo 'x\c'` in
20420  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20421  *)   ECHO_C='\c';;
20422  esac;;
20423*)
20424  ECHO_N='-n';;
20425esac
20426
20427if expr a : '\(a\)' >/dev/null 2>&1 &&
20428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20429  as_expr=expr
20430else
20431  as_expr=false
20432fi
20433
20434rm -f conf$$ conf$$.exe conf$$.file
20435if test -d conf$$.dir; then
20436  rm -f conf$$.dir/conf$$.file
20437else
20438  rm -f conf$$.dir
20439  mkdir conf$$.dir
20440fi
20441echo >conf$$.file
20442if ln -s conf$$.file conf$$ 2>/dev/null; then
20443  as_ln_s='ln -s'
20444  # ... but there are two gotchas:
20445  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20446  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20447  # In both cases, we have to default to `cp -p'.
20448  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20449    as_ln_s='cp -p'
20450elif ln conf$$.file conf$$ 2>/dev/null; then
20451  as_ln_s=ln
20452else
20453  as_ln_s='cp -p'
20454fi
20455rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20456rmdir conf$$.dir 2>/dev/null
20457
20458if mkdir -p . 2>/dev/null; then
20459  as_mkdir_p=:
20460else
20461  test -d ./-p && rmdir ./-p
20462  as_mkdir_p=false
20463fi
20464
20465if test -x / >/dev/null 2>&1; then
20466  as_test_x='test -x'
20467else
20468  if ls -dL / >/dev/null 2>&1; then
20469    as_ls_L_option=L
20470  else
20471    as_ls_L_option=
20472  fi
20473  as_test_x='
20474    eval sh -c '\''
20475      if test -d "$1"; then
20476        test -d "$1/.";
20477      else
20478	case $1 in
20479        -*)set "./$1";;
20480	esac;
20481	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20482	???[sx]*):;;*)false;;esac;fi
20483    '\'' sh
20484  '
20485fi
20486as_executable_p=$as_test_x
20487
20488# Sed expression to map a string onto a valid CPP name.
20489as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20490
20491# Sed expression to map a string onto a valid variable name.
20492as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20493
20494
20495exec 6>&1
20496
20497# Save the log message, to keep $[0] and so on meaningful, and to
20498# report actual input values of CONFIG_FILES etc. instead of their
20499# values after options handling.
20500ac_log="
20501This file was extended by OpenPAM $as_me 20071221, which was
20502generated by GNU Autoconf 2.61.  Invocation command line was
20503
20504  CONFIG_FILES    = $CONFIG_FILES
20505  CONFIG_HEADERS  = $CONFIG_HEADERS
20506  CONFIG_LINKS    = $CONFIG_LINKS
20507  CONFIG_COMMANDS = $CONFIG_COMMANDS
20508  $ $0 $@
20509
20510on `(hostname || uname -n) 2>/dev/null | sed 1q`
20511"
20512
20513_ACEOF
20514
20515cat >>$CONFIG_STATUS <<_ACEOF
20516# Files that config.status was made for.
20517config_files="$ac_config_files"
20518config_headers="$ac_config_headers"
20519config_commands="$ac_config_commands"
20520
20521_ACEOF
20522
20523cat >>$CONFIG_STATUS <<\_ACEOF
20524ac_cs_usage="\
20525\`$as_me' instantiates files from templates according to the
20526current configuration.
20527
20528Usage: $0 [OPTIONS] [FILE]...
20529
20530  -h, --help       print this help, then exit
20531  -V, --version    print version number and configuration settings, then exit
20532  -q, --quiet      do not print progress messages
20533  -d, --debug      don't remove temporary files
20534      --recheck    update $as_me by reconfiguring in the same conditions
20535  --file=FILE[:TEMPLATE]
20536		   instantiate the configuration file FILE
20537  --header=FILE[:TEMPLATE]
20538		   instantiate the configuration header FILE
20539
20540Configuration files:
20541$config_files
20542
20543Configuration headers:
20544$config_headers
20545
20546Configuration commands:
20547$config_commands
20548
20549Report bugs to <bug-autoconf@gnu.org>."
20550
20551_ACEOF
20552cat >>$CONFIG_STATUS <<_ACEOF
20553ac_cs_version="\\
20554OpenPAM config.status 20071221
20555configured by $0, generated by GNU Autoconf 2.61,
20556  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20557
20558Copyright (C) 2006 Free Software Foundation, Inc.
20559This config.status script is free software; the Free Software Foundation
20560gives unlimited permission to copy, distribute and modify it."
20561
20562ac_pwd='$ac_pwd'
20563srcdir='$srcdir'
20564INSTALL='$INSTALL'
20565_ACEOF
20566
20567cat >>$CONFIG_STATUS <<\_ACEOF
20568# If no file are specified by the user, then we need to provide default
20569# value.  By we need to know if files were specified by the user.
20570ac_need_defaults=:
20571while test $# != 0
20572do
20573  case $1 in
20574  --*=*)
20575    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20576    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20577    ac_shift=:
20578    ;;
20579  *)
20580    ac_option=$1
20581    ac_optarg=$2
20582    ac_shift=shift
20583    ;;
20584  esac
20585
20586  case $ac_option in
20587  # Handling of the options.
20588  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20589    ac_cs_recheck=: ;;
20590  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20591    echo "$ac_cs_version"; exit ;;
20592  --debug | --debu | --deb | --de | --d | -d )
20593    debug=: ;;
20594  --file | --fil | --fi | --f )
20595    $ac_shift
20596    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20597    ac_need_defaults=false;;
20598  --header | --heade | --head | --hea )
20599    $ac_shift
20600    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20601    ac_need_defaults=false;;
20602  --he | --h)
20603    # Conflict between --help and --header
20604    { echo "$as_me: error: ambiguous option: $1
20605Try \`$0 --help' for more information." >&2
20606   { (exit 1); exit 1; }; };;
20607  --help | --hel | -h )
20608    echo "$ac_cs_usage"; exit ;;
20609  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20610  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20611    ac_cs_silent=: ;;
20612
20613  # This is an error.
20614  -*) { echo "$as_me: error: unrecognized option: $1
20615Try \`$0 --help' for more information." >&2
20616   { (exit 1); exit 1; }; } ;;
20617
20618  *) ac_config_targets="$ac_config_targets $1"
20619     ac_need_defaults=false ;;
20620
20621  esac
20622  shift
20623done
20624
20625ac_configure_extra_args=
20626
20627if $ac_cs_silent; then
20628  exec 6>/dev/null
20629  ac_configure_extra_args="$ac_configure_extra_args --silent"
20630fi
20631
20632_ACEOF
20633cat >>$CONFIG_STATUS <<_ACEOF
20634if \$ac_cs_recheck; then
20635  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20636  CONFIG_SHELL=$SHELL
20637  export CONFIG_SHELL
20638  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20639fi
20640
20641_ACEOF
20642cat >>$CONFIG_STATUS <<\_ACEOF
20643exec 5>>config.log
20644{
20645  echo
20646  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20647## Running $as_me. ##
20648_ASBOX
20649  echo "$ac_log"
20650} >&5
20651
20652_ACEOF
20653cat >>$CONFIG_STATUS <<_ACEOF
20654#
20655# INIT-COMMANDS
20656#
20657AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20658
20659_ACEOF
20660
20661cat >>$CONFIG_STATUS <<\_ACEOF
20662
20663# Handling of arguments.
20664for ac_config_target in $ac_config_targets
20665do
20666  case $ac_config_target in
20667    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20668    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20669    "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
20670    "bin/su/Makefile") CONFIG_FILES="$CONFIG_FILES bin/su/Makefile" ;;
20671    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20672    "include/security/Makefile") CONFIG_FILES="$CONFIG_FILES include/security/Makefile" ;;
20673    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20674    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
20675    "modules/pam_unix/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_unix/Makefile" ;;
20676    "modules/pam_deny/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_deny/Makefile" ;;
20677    "modules/pam_permit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_permit/Makefile" ;;
20678    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20679    "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
20680    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20681
20682  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20683echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20684   { (exit 1); exit 1; }; };;
20685  esac
20686done
20687
20688
20689# If the user did not use the arguments to specify the items to instantiate,
20690# then the envvar interface is used.  Set only those that are not.
20691# We use the long form for the default assignment because of an extremely
20692# bizarre bug on SunOS 4.1.3.
20693if $ac_need_defaults; then
20694  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20695  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20696  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20697fi
20698
20699# Have a temporary directory for convenience.  Make it in the build tree
20700# simply because there is no reason against having it here, and in addition,
20701# creating and moving files from /tmp can sometimes cause problems.
20702# Hook for its removal unless debugging.
20703# Note that there is a small window in which the directory will not be cleaned:
20704# after its creation but before its name has been assigned to `$tmp'.
20705$debug ||
20706{
20707  tmp=
20708  trap 'exit_status=$?
20709  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20710' 0
20711  trap '{ (exit 1); exit 1; }' 1 2 13 15
20712}
20713# Create a (secure) tmp directory for tmp files.
20714
20715{
20716  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20717  test -n "$tmp" && test -d "$tmp"
20718}  ||
20719{
20720  tmp=./conf$$-$RANDOM
20721  (umask 077 && mkdir "$tmp")
20722} ||
20723{
20724   echo "$me: cannot create a temporary directory in ." >&2
20725   { (exit 1); exit 1; }
20726}
20727
20728#
20729# Set up the sed scripts for CONFIG_FILES section.
20730#
20731
20732# No need to generate the scripts if there are no CONFIG_FILES.
20733# This happens for instance when ./config.status config.h
20734if test -n "$CONFIG_FILES"; then
20735
20736_ACEOF
20737
20738
20739
20740ac_delim='%!_!# '
20741for ac_last_try in false false false false false :; do
20742  cat >conf$$subs.sed <<_ACEOF
20743SHELL!$SHELL$ac_delim
20744PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20745PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20746PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20747PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20748PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20749PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20750exec_prefix!$exec_prefix$ac_delim
20751prefix!$prefix$ac_delim
20752program_transform_name!$program_transform_name$ac_delim
20753bindir!$bindir$ac_delim
20754sbindir!$sbindir$ac_delim
20755libexecdir!$libexecdir$ac_delim
20756datarootdir!$datarootdir$ac_delim
20757datadir!$datadir$ac_delim
20758sysconfdir!$sysconfdir$ac_delim
20759sharedstatedir!$sharedstatedir$ac_delim
20760localstatedir!$localstatedir$ac_delim
20761includedir!$includedir$ac_delim
20762oldincludedir!$oldincludedir$ac_delim
20763docdir!$docdir$ac_delim
20764infodir!$infodir$ac_delim
20765htmldir!$htmldir$ac_delim
20766dvidir!$dvidir$ac_delim
20767pdfdir!$pdfdir$ac_delim
20768psdir!$psdir$ac_delim
20769libdir!$libdir$ac_delim
20770localedir!$localedir$ac_delim
20771mandir!$mandir$ac_delim
20772DEFS!$DEFS$ac_delim
20773ECHO_C!$ECHO_C$ac_delim
20774ECHO_N!$ECHO_N$ac_delim
20775ECHO_T!$ECHO_T$ac_delim
20776LIBS!$LIBS$ac_delim
20777build_alias!$build_alias$ac_delim
20778host_alias!$host_alias$ac_delim
20779target_alias!$target_alias$ac_delim
20780build!$build$ac_delim
20781build_cpu!$build_cpu$ac_delim
20782build_vendor!$build_vendor$ac_delim
20783build_os!$build_os$ac_delim
20784host!$host$ac_delim
20785host_cpu!$host_cpu$ac_delim
20786host_vendor!$host_vendor$ac_delim
20787host_os!$host_os$ac_delim
20788target!$target$ac_delim
20789target_cpu!$target_cpu$ac_delim
20790target_vendor!$target_vendor$ac_delim
20791target_os!$target_os$ac_delim
20792CC!$CC$ac_delim
20793CFLAGS!$CFLAGS$ac_delim
20794LDFLAGS!$LDFLAGS$ac_delim
20795CPPFLAGS!$CPPFLAGS$ac_delim
20796ac_ct_CC!$ac_ct_CC$ac_delim
20797EXEEXT!$EXEEXT$ac_delim
20798OBJEXT!$OBJEXT$ac_delim
20799SED!$SED$ac_delim
20800GREP!$GREP$ac_delim
20801EGREP!$EGREP$ac_delim
20802LN_S!$LN_S$ac_delim
20803ECHO!$ECHO$ac_delim
20804AR!$AR$ac_delim
20805RANLIB!$RANLIB$ac_delim
20806STRIP!$STRIP$ac_delim
20807CPP!$CPP$ac_delim
20808CXX!$CXX$ac_delim
20809CXXFLAGS!$CXXFLAGS$ac_delim
20810ac_ct_CXX!$ac_ct_CXX$ac_delim
20811CXXCPP!$CXXCPP$ac_delim
20812F77!$F77$ac_delim
20813FFLAGS!$FFLAGS$ac_delim
20814ac_ct_F77!$ac_ct_F77$ac_delim
20815LIBTOOL!$LIBTOOL$ac_delim
20816INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20817INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20818INSTALL_DATA!$INSTALL_DATA$ac_delim
20819CYGPATH_W!$CYGPATH_W$ac_delim
20820PACKAGE!$PACKAGE$ac_delim
20821VERSION!$VERSION$ac_delim
20822ACLOCAL!$ACLOCAL$ac_delim
20823AUTOCONF!$AUTOCONF$ac_delim
20824AUTOMAKE!$AUTOMAKE$ac_delim
20825AUTOHEADER!$AUTOHEADER$ac_delim
20826MAKEINFO!$MAKEINFO$ac_delim
20827install_sh!$install_sh$ac_delim
20828INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20829mkdir_p!$mkdir_p$ac_delim
20830AWK!$AWK$ac_delim
20831SET_MAKE!$SET_MAKE$ac_delim
20832am__leading_dot!$am__leading_dot$ac_delim
20833AMTAR!$AMTAR$ac_delim
20834am__tar!$am__tar$ac_delim
20835am__untar!$am__untar$ac_delim
20836DEPDIR!$DEPDIR$ac_delim
20837am__include!$am__include$ac_delim
20838am__quote!$am__quote$ac_delim
20839AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20840_ACEOF
20841
20842  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20843    break
20844  elif $ac_last_try; then
20845    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20846echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20847   { (exit 1); exit 1; }; }
20848  else
20849    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20850  fi
20851done
20852
20853ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20854if test -n "$ac_eof"; then
20855  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20856  ac_eof=`expr $ac_eof + 1`
20857fi
20858
20859cat >>$CONFIG_STATUS <<_ACEOF
20860cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20861/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20862_ACEOF
20863sed '
20864s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20865s/^/s,@/; s/!/@,|#_!!_#|/
20866:n
20867t n
20868s/'"$ac_delim"'$/,g/; t
20869s/$/\\/; p
20870N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20871' >>$CONFIG_STATUS <conf$$subs.sed
20872rm -f conf$$subs.sed
20873cat >>$CONFIG_STATUS <<_ACEOF
20874CEOF$ac_eof
20875_ACEOF
20876
20877
20878ac_delim='%!_!# '
20879for ac_last_try in false false false false false :; do
20880  cat >conf$$subs.sed <<_ACEOF
20881AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20882AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20883CCDEPMODE!$CCDEPMODE$ac_delim
20884am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20885am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20886CXXDEPMODE!$CXXDEPMODE$ac_delim
20887am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20888am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20889LIB_MAJ!$LIB_MAJ$ac_delim
20890OPENPAM_MODULES_DIR!$OPENPAM_MODULES_DIR$ac_delim
20891WITH_DOC_TRUE!$WITH_DOC_TRUE$ac_delim
20892WITH_DOC_FALSE!$WITH_DOC_FALSE$ac_delim
20893WITH_PAM_UNIX_TRUE!$WITH_PAM_UNIX_TRUE$ac_delim
20894WITH_PAM_UNIX_FALSE!$WITH_PAM_UNIX_FALSE$ac_delim
20895WITH_SU_TRUE!$WITH_SU_TRUE$ac_delim
20896WITH_SU_FALSE!$WITH_SU_FALSE$ac_delim
20897DL_LIBS!$DL_LIBS$ac_delim
20898CRYPT_LIBS!$CRYPT_LIBS$ac_delim
20899LIBOBJS!$LIBOBJS$ac_delim
20900LTLIBOBJS!$LTLIBOBJS$ac_delim
20901_ACEOF
20902
20903  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 20; then
20904    break
20905  elif $ac_last_try; then
20906    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20907echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20908   { (exit 1); exit 1; }; }
20909  else
20910    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20911  fi
20912done
20913
20914ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20915if test -n "$ac_eof"; then
20916  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20917  ac_eof=`expr $ac_eof + 1`
20918fi
20919
20920cat >>$CONFIG_STATUS <<_ACEOF
20921cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20922/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20923_ACEOF
20924sed '
20925s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20926s/^/s,@/; s/!/@,|#_!!_#|/
20927:n
20928t n
20929s/'"$ac_delim"'$/,g/; t
20930s/$/\\/; p
20931N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20932' >>$CONFIG_STATUS <conf$$subs.sed
20933rm -f conf$$subs.sed
20934cat >>$CONFIG_STATUS <<_ACEOF
20935:end
20936s/|#_!!_#|//g
20937CEOF$ac_eof
20938_ACEOF
20939
20940
20941# VPATH may cause trouble with some makes, so we remove $(srcdir),
20942# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20943# trailing colons and then remove the whole line if VPATH becomes empty
20944# (actually we leave an empty line to preserve line numbers).
20945if test "x$srcdir" = x.; then
20946  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
20947s/:*\$(srcdir):*/:/
20948s/:*\${srcdir}:*/:/
20949s/:*@srcdir@:*/:/
20950s/^\([^=]*=[	 ]*\):*/\1/
20951s/:*$//
20952s/^[^=]*=[	 ]*$//
20953}'
20954fi
20955
20956cat >>$CONFIG_STATUS <<\_ACEOF
20957fi # test -n "$CONFIG_FILES"
20958
20959
20960for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
20961do
20962  case $ac_tag in
20963  :[FHLC]) ac_mode=$ac_tag; continue;;
20964  esac
20965  case $ac_mode$ac_tag in
20966  :[FHL]*:*);;
20967  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20968echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20969   { (exit 1); exit 1; }; };;
20970  :[FH]-) ac_tag=-:-;;
20971  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20972  esac
20973  ac_save_IFS=$IFS
20974  IFS=:
20975  set x $ac_tag
20976  IFS=$ac_save_IFS
20977  shift
20978  ac_file=$1
20979  shift
20980
20981  case $ac_mode in
20982  :L) ac_source=$1;;
20983  :[FH])
20984    ac_file_inputs=
20985    for ac_f
20986    do
20987      case $ac_f in
20988      -) ac_f="$tmp/stdin";;
20989      *) # Look for the file first in the build tree, then in the source tree
20990	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20991	 # because $ac_f cannot contain `:'.
20992	 test -f "$ac_f" ||
20993	   case $ac_f in
20994	   [\\/$]*) false;;
20995	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20996	   esac ||
20997	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20998echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20999   { (exit 1); exit 1; }; };;
21000      esac
21001      ac_file_inputs="$ac_file_inputs $ac_f"
21002    done
21003
21004    # Let's still pretend it is `configure' which instantiates (i.e., don't
21005    # use $as_me), people would be surprised to read:
21006    #    /* config.h.  Generated by config.status.  */
21007    configure_input="Generated from "`IFS=:
21008	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21009    if test x"$ac_file" != x-; then
21010      configure_input="$ac_file.  $configure_input"
21011      { echo "$as_me:$LINENO: creating $ac_file" >&5
21012echo "$as_me: creating $ac_file" >&6;}
21013    fi
21014
21015    case $ac_tag in
21016    *:-:* | *:-) cat >"$tmp/stdin";;
21017    esac
21018    ;;
21019  esac
21020
21021  ac_dir=`$as_dirname -- "$ac_file" ||
21022$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21023	 X"$ac_file" : 'X\(//\)[^/]' \| \
21024	 X"$ac_file" : 'X\(//\)$' \| \
21025	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21026echo X"$ac_file" |
21027    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21028	    s//\1/
21029	    q
21030	  }
21031	  /^X\(\/\/\)[^/].*/{
21032	    s//\1/
21033	    q
21034	  }
21035	  /^X\(\/\/\)$/{
21036	    s//\1/
21037	    q
21038	  }
21039	  /^X\(\/\).*/{
21040	    s//\1/
21041	    q
21042	  }
21043	  s/.*/./; q'`
21044  { as_dir="$ac_dir"
21045  case $as_dir in #(
21046  -*) as_dir=./$as_dir;;
21047  esac
21048  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21049    as_dirs=
21050    while :; do
21051      case $as_dir in #(
21052      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21053      *) as_qdir=$as_dir;;
21054      esac
21055      as_dirs="'$as_qdir' $as_dirs"
21056      as_dir=`$as_dirname -- "$as_dir" ||
21057$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21058	 X"$as_dir" : 'X\(//\)[^/]' \| \
21059	 X"$as_dir" : 'X\(//\)$' \| \
21060	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21061echo X"$as_dir" |
21062    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21063	    s//\1/
21064	    q
21065	  }
21066	  /^X\(\/\/\)[^/].*/{
21067	    s//\1/
21068	    q
21069	  }
21070	  /^X\(\/\/\)$/{
21071	    s//\1/
21072	    q
21073	  }
21074	  /^X\(\/\).*/{
21075	    s//\1/
21076	    q
21077	  }
21078	  s/.*/./; q'`
21079      test -d "$as_dir" && break
21080    done
21081    test -z "$as_dirs" || eval "mkdir $as_dirs"
21082  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21083echo "$as_me: error: cannot create directory $as_dir" >&2;}
21084   { (exit 1); exit 1; }; }; }
21085  ac_builddir=.
21086
21087case "$ac_dir" in
21088.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21089*)
21090  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21091  # A ".." for each directory in $ac_dir_suffix.
21092  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21093  case $ac_top_builddir_sub in
21094  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21095  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21096  esac ;;
21097esac
21098ac_abs_top_builddir=$ac_pwd
21099ac_abs_builddir=$ac_pwd$ac_dir_suffix
21100# for backward compatibility:
21101ac_top_builddir=$ac_top_build_prefix
21102
21103case $srcdir in
21104  .)  # We are building in place.
21105    ac_srcdir=.
21106    ac_top_srcdir=$ac_top_builddir_sub
21107    ac_abs_top_srcdir=$ac_pwd ;;
21108  [\\/]* | ?:[\\/]* )  # Absolute name.
21109    ac_srcdir=$srcdir$ac_dir_suffix;
21110    ac_top_srcdir=$srcdir
21111    ac_abs_top_srcdir=$srcdir ;;
21112  *) # Relative name.
21113    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21114    ac_top_srcdir=$ac_top_build_prefix$srcdir
21115    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21116esac
21117ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21118
21119
21120  case $ac_mode in
21121  :F)
21122  #
21123  # CONFIG_FILE
21124  #
21125
21126  case $INSTALL in
21127  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21128  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21129  esac
21130_ACEOF
21131
21132cat >>$CONFIG_STATUS <<\_ACEOF
21133# If the template does not know about datarootdir, expand it.
21134# FIXME: This hack should be removed a few years after 2.60.
21135ac_datarootdir_hack=; ac_datarootdir_seen=
21136
21137case `sed -n '/datarootdir/ {
21138  p
21139  q
21140}
21141/@datadir@/p
21142/@docdir@/p
21143/@infodir@/p
21144/@localedir@/p
21145/@mandir@/p
21146' $ac_file_inputs` in
21147*datarootdir*) ac_datarootdir_seen=yes;;
21148*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21149  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21150echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21151_ACEOF
21152cat >>$CONFIG_STATUS <<_ACEOF
21153  ac_datarootdir_hack='
21154  s&@datadir@&$datadir&g
21155  s&@docdir@&$docdir&g
21156  s&@infodir@&$infodir&g
21157  s&@localedir@&$localedir&g
21158  s&@mandir@&$mandir&g
21159    s&\\\${datarootdir}&$datarootdir&g' ;;
21160esac
21161_ACEOF
21162
21163# Neutralize VPATH when `$srcdir' = `.'.
21164# Shell code in configure.ac might set extrasub.
21165# FIXME: do we really want to maintain this feature?
21166cat >>$CONFIG_STATUS <<_ACEOF
21167  sed "$ac_vpsub
21168$extrasub
21169_ACEOF
21170cat >>$CONFIG_STATUS <<\_ACEOF
21171:t
21172/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21173s&@configure_input@&$configure_input&;t t
21174s&@top_builddir@&$ac_top_builddir_sub&;t t
21175s&@srcdir@&$ac_srcdir&;t t
21176s&@abs_srcdir@&$ac_abs_srcdir&;t t
21177s&@top_srcdir@&$ac_top_srcdir&;t t
21178s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21179s&@builddir@&$ac_builddir&;t t
21180s&@abs_builddir@&$ac_abs_builddir&;t t
21181s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21182s&@INSTALL@&$ac_INSTALL&;t t
21183$ac_datarootdir_hack
21184" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21185
21186test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21187  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21188  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21189  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21190which seems to be undefined.  Please make sure it is defined." >&5
21191echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21192which seems to be undefined.  Please make sure it is defined." >&2;}
21193
21194  rm -f "$tmp/stdin"
21195  case $ac_file in
21196  -) cat "$tmp/out"; rm -f "$tmp/out";;
21197  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21198  esac
21199 ;;
21200  :H)
21201  #
21202  # CONFIG_HEADER
21203  #
21204_ACEOF
21205
21206# Transform confdefs.h into a sed script `conftest.defines', that
21207# substitutes the proper values into config.h.in to produce config.h.
21208rm -f conftest.defines conftest.tail
21209# First, append a space to every undef/define line, to ease matching.
21210echo 's/$/ /' >conftest.defines
21211# Then, protect against being on the right side of a sed subst, or in
21212# an unquoted here document, in config.status.  If some macros were
21213# called several times there might be several #defines for the same
21214# symbol, which is useless.  But do not sort them, since the last
21215# AC_DEFINE must be honored.
21216ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21217# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21218# NAME is the cpp macro being defined, VALUE is the value it is being given.
21219# PARAMS is the parameter list in the macro definition--in most cases, it's
21220# just an empty string.
21221ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
21222ac_dB='\\)[	 (].*,\\1define\\2'
21223ac_dC=' '
21224ac_dD=' ,'
21225
21226uniq confdefs.h |
21227  sed -n '
21228	t rset
21229	:rset
21230	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
21231	t ok
21232	d
21233	:ok
21234	s/[\\&,]/\\&/g
21235	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21236	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21237  ' >>conftest.defines
21238
21239# Remove the space that was appended to ease matching.
21240# Then replace #undef with comments.  This is necessary, for
21241# example, in the case of _POSIX_SOURCE, which is predefined and required
21242# on some systems where configure will not decide to define it.
21243# (The regexp can be short, since the line contains either #define or #undef.)
21244echo 's/ $//
21245s,^[	 #]*u.*,/* & */,' >>conftest.defines
21246
21247# Break up conftest.defines:
21248ac_max_sed_lines=50
21249
21250# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21251# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21252# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21253# et cetera.
21254ac_in='$ac_file_inputs'
21255ac_out='"$tmp/out1"'
21256ac_nxt='"$tmp/out2"'
21257
21258while :
21259do
21260  # Write a here document:
21261    cat >>$CONFIG_STATUS <<_ACEOF
21262    # First, check the format of the line:
21263    cat >"\$tmp/defines.sed" <<\\CEOF
21264/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
21265/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
21266b
21267:def
21268_ACEOF
21269  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21270  echo 'CEOF
21271    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21272  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21273  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21274  grep . conftest.tail >/dev/null || break
21275  rm -f conftest.defines
21276  mv conftest.tail conftest.defines
21277done
21278rm -f conftest.defines conftest.tail
21279
21280echo "ac_result=$ac_in" >>$CONFIG_STATUS
21281cat >>$CONFIG_STATUS <<\_ACEOF
21282  if test x"$ac_file" != x-; then
21283    echo "/* $configure_input  */" >"$tmp/config.h"
21284    cat "$ac_result" >>"$tmp/config.h"
21285    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21286      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21287echo "$as_me: $ac_file is unchanged" >&6;}
21288    else
21289      rm -f $ac_file
21290      mv "$tmp/config.h" $ac_file
21291    fi
21292  else
21293    echo "/* $configure_input  */"
21294    cat "$ac_result"
21295  fi
21296  rm -f "$tmp/out12"
21297# Compute $ac_file's index in $config_headers.
21298_am_stamp_count=1
21299for _am_header in $config_headers :; do
21300  case $_am_header in
21301    $ac_file | $ac_file:* )
21302      break ;;
21303    * )
21304      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21305  esac
21306done
21307echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21308$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21309	 X$ac_file : 'X\(//\)[^/]' \| \
21310	 X$ac_file : 'X\(//\)$' \| \
21311	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21312echo X$ac_file |
21313    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21314	    s//\1/
21315	    q
21316	  }
21317	  /^X\(\/\/\)[^/].*/{
21318	    s//\1/
21319	    q
21320	  }
21321	  /^X\(\/\/\)$/{
21322	    s//\1/
21323	    q
21324	  }
21325	  /^X\(\/\).*/{
21326	    s//\1/
21327	    q
21328	  }
21329	  s/.*/./; q'`/stamp-h$_am_stamp_count
21330 ;;
21331
21332  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21333echo "$as_me: executing $ac_file commands" >&6;}
21334 ;;
21335  esac
21336
21337
21338  case $ac_file$ac_mode in
21339    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21340  # Strip MF so we end up with the name of the file.
21341  mf=`echo "$mf" | sed -e 's/:.*$//'`
21342  # Check whether this is an Automake generated Makefile or not.
21343  # We used to match only the files named `Makefile.in', but
21344  # some people rename them; so instead we look at the file content.
21345  # Grep'ing the first line is not enough: some people post-process
21346  # each Makefile.in and add a new line on top of each file to say so.
21347  # So let's grep whole file.
21348  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21349    dirpart=`$as_dirname -- "$mf" ||
21350$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21351	 X"$mf" : 'X\(//\)[^/]' \| \
21352	 X"$mf" : 'X\(//\)$' \| \
21353	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21354echo X"$mf" |
21355    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21356	    s//\1/
21357	    q
21358	  }
21359	  /^X\(\/\/\)[^/].*/{
21360	    s//\1/
21361	    q
21362	  }
21363	  /^X\(\/\/\)$/{
21364	    s//\1/
21365	    q
21366	  }
21367	  /^X\(\/\).*/{
21368	    s//\1/
21369	    q
21370	  }
21371	  s/.*/./; q'`
21372  else
21373    continue
21374  fi
21375  # Extract the definition of DEPDIR, am__include, and am__quote
21376  # from the Makefile without running `make'.
21377  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21378  test -z "$DEPDIR" && continue
21379  am__include=`sed -n 's/^am__include = //p' < "$mf"`
21380  test -z "am__include" && continue
21381  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21382  # When using ansi2knr, U may be empty or an underscore; expand it
21383  U=`sed -n 's/^U = //p' < "$mf"`
21384  # Find all dependency output files, they are included files with
21385  # $(DEPDIR) in their names.  We invoke sed twice because it is the
21386  # simplest approach to changing $(DEPDIR) to its actual value in the
21387  # expansion.
21388  for file in `sed -n "
21389    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21390       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21391    # Make sure the directory exists.
21392    test -f "$dirpart/$file" && continue
21393    fdir=`$as_dirname -- "$file" ||
21394$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21395	 X"$file" : 'X\(//\)[^/]' \| \
21396	 X"$file" : 'X\(//\)$' \| \
21397	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21398echo X"$file" |
21399    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21400	    s//\1/
21401	    q
21402	  }
21403	  /^X\(\/\/\)[^/].*/{
21404	    s//\1/
21405	    q
21406	  }
21407	  /^X\(\/\/\)$/{
21408	    s//\1/
21409	    q
21410	  }
21411	  /^X\(\/\).*/{
21412	    s//\1/
21413	    q
21414	  }
21415	  s/.*/./; q'`
21416    { as_dir=$dirpart/$fdir
21417  case $as_dir in #(
21418  -*) as_dir=./$as_dir;;
21419  esac
21420  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21421    as_dirs=
21422    while :; do
21423      case $as_dir in #(
21424      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21425      *) as_qdir=$as_dir;;
21426      esac
21427      as_dirs="'$as_qdir' $as_dirs"
21428      as_dir=`$as_dirname -- "$as_dir" ||
21429$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21430	 X"$as_dir" : 'X\(//\)[^/]' \| \
21431	 X"$as_dir" : 'X\(//\)$' \| \
21432	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21433echo X"$as_dir" |
21434    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21435	    s//\1/
21436	    q
21437	  }
21438	  /^X\(\/\/\)[^/].*/{
21439	    s//\1/
21440	    q
21441	  }
21442	  /^X\(\/\/\)$/{
21443	    s//\1/
21444	    q
21445	  }
21446	  /^X\(\/\).*/{
21447	    s//\1/
21448	    q
21449	  }
21450	  s/.*/./; q'`
21451      test -d "$as_dir" && break
21452    done
21453    test -z "$as_dirs" || eval "mkdir $as_dirs"
21454  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21455echo "$as_me: error: cannot create directory $as_dir" >&2;}
21456   { (exit 1); exit 1; }; }; }
21457    # echo "creating $dirpart/$file"
21458    echo '# dummy' > "$dirpart/$file"
21459  done
21460done
21461 ;;
21462
21463  esac
21464done # for ac_tag
21465
21466
21467{ (exit 0); exit 0; }
21468_ACEOF
21469chmod +x $CONFIG_STATUS
21470ac_clean_files=$ac_clean_files_save
21471
21472
21473# configure is writing to config.log, and then calls config.status.
21474# config.status does its own redirection, appending to config.log.
21475# Unfortunately, on DOS this fails, as config.log is still kept open
21476# by configure, so config.status won't be able to write to it; its
21477# output is simply discarded.  So we exec the FD to /dev/null,
21478# effectively closing config.log, so it can be properly (re)opened and
21479# appended to by config.status.  When coming back to configure, we
21480# need to make the FD available again.
21481if test "$no_create" != yes; then
21482  ac_cs_success=:
21483  ac_config_status_args=
21484  test "$silent" = yes &&
21485    ac_config_status_args="$ac_config_status_args --quiet"
21486  exec 5>/dev/null
21487  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21488  exec 5>>config.log
21489  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21490  # would make configure fail if this is the last instruction.
21491  $ac_cs_success || { (exit 1); exit 1; }
21492fi
21493
21494