1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42  echo "#! /bin/sh" >conf$$.sh
43  echo  "exit 0"   >>conf$$.sh
44  chmod +x conf$$.sh
45  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46    PATH_SEPARATOR=';'
47  else
48    PATH_SEPARATOR=:
49  fi
50  rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55  as_unset=unset
56else
57  as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order.  Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" ""	$as_nl"
69
70# Find who we are.  Look in the path if we contain no directory separator.
71case $0 in
72  *[\\/]* ) as_myself=$0 ;;
73  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76  IFS=$as_save_IFS
77  test -z "$as_dir" && as_dir=.
78  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82     ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87  as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91  { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106  LC_TELEPHONE LC_TIME
107do
108  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109    eval $as_var=C; export $as_var
110  else
111    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112  fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118  as_expr=expr
119else
120  as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124  as_basename=basename
125else
126  as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133	 X"$0" : 'X\(//\)$' \| \
134	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136    sed '/^.*\/\([^/][^/]*\)\/*$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\/\)$/{
141	    s//\1/
142	    q
143	  }
144	  /^X\/\(\/\).*/{
145	    s//\1/
146	    q
147	  }
148	  s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155  if (eval ":") 2>/dev/null; then
156  as_have_required=yes
157else
158  as_have_required=no
159fi
160
161  if test $as_have_required = yes && 	 (eval ":
162(as_func_return () {
163  (exit \$1)
164}
165as_func_success () {
166  as_func_return 0
167}
168as_func_failure () {
169  as_func_return 1
170}
171as_func_ret_success () {
172  return 0
173}
174as_func_ret_failure () {
175  return 1
176}
177
178exitcode=0
179if as_func_success; then
180  :
181else
182  exitcode=1
183  echo as_func_success failed.
184fi
185
186if as_func_failure; then
187  exitcode=1
188  echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192  :
193else
194  exitcode=1
195  echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199  exitcode=1
200  echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204  :
205else
206  exitcode=1
207  echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213  as_lineno_1=\$LINENO
214  as_lineno_2=\$LINENO
215  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218  :
219else
220  as_candidate_shells=
221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224  IFS=$as_save_IFS
225  test -z "$as_dir" && as_dir=.
226  case $as_dir in
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230	   done;;
231       esac
232done
233IFS=$as_save_IFS
234
235
236      for as_shell in $as_candidate_shells $SHELL; do
237	 # Try only shells that exist, to save several forks.
238	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239		{ ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241  emulate sh
242  NULLCMD=:
243  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244  # is contrary to our usage.  Disable this feature.
245  alias -g '${1+"$@"}'='"$@"'
246  setopt NO_GLOB_SUBST
247else
248  case `(set -o) 2>/dev/null` in
249  *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258  CONFIG_SHELL=$as_shell
259	       as_have_required=yes
260	       if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278  (exit $1)
279}
280as_func_success () {
281  as_func_return 0
282}
283as_func_failure () {
284  as_func_return 1
285}
286as_func_ret_success () {
287  return 0
288}
289as_func_ret_failure () {
290  return 1
291}
292
293exitcode=0
294if as_func_success; then
295  :
296else
297  exitcode=1
298  echo as_func_success failed.
299fi
300
301if as_func_failure; then
302  exitcode=1
303  echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307  :
308else
309  exitcode=1
310  echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314  exitcode=1
315  echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319  :
320else
321  exitcode=1
322  echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328  as_lineno_1=$LINENO
329  as_lineno_2=$LINENO
330  test "x$as_lineno_1" != "x$as_lineno_2" &&
331  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335  break
336fi
337
338fi
339
340      done
341
342      if test "x$CONFIG_SHELL" != x; then
343  for as_var in BASH_ENV ENV
344        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345        done
346        export CONFIG_SHELL
347        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351    if test $as_have_required = no; then
352  echo This script requires a shell more modern than all the
353      echo shells that I found on your system.  Please install a
354      echo modern shell, or manually run the script under such a
355      echo shell if you do have one.
356      { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367  (exit \$1)
368}
369as_func_success () {
370  as_func_return 0
371}
372as_func_failure () {
373  as_func_return 1
374}
375as_func_ret_success () {
376  return 0
377}
378as_func_ret_failure () {
379  return 1
380}
381
382exitcode=0
383if as_func_success; then
384  :
385else
386  exitcode=1
387  echo as_func_success failed.
388fi
389
390if as_func_failure; then
391  exitcode=1
392  echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396  :
397else
398  exitcode=1
399  echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403  exitcode=1
404  echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408  :
409else
410  exitcode=1
411  echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415  echo No shell found that supports shell functions.
416  echo Please tell autoconf@gnu.org about your system,
417  echo including any error possibly output before this
418  echo message
419}
420
421
422
423  as_lineno_1=$LINENO
424  as_lineno_2=$LINENO
425  test "x$as_lineno_1" != "x$as_lineno_2" &&
426  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429  # uniformly replaced by the line number.  The first 'sed' inserts a
430  # line-number line after each line using $LINENO; the second 'sed'
431  # does the real work.  The second script uses 'N' to pair each
432  # line-number line with the line containing $LINENO, and appends
433  # trailing '-' during substitution so that $LINENO is not a special
434  # case at line end.
435  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436  # scripts with optimization help from Paolo Bonzini.  Blame Lee
437  # E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455   { (exit 1); exit 1; }; }
456
457  # Don't try to exec as it changes $[0], causing all sort of problems
458  # (the dirname of $[0] is not the place where we might find the
459  # original and so on.  Autoconf is especially sensitive to this).
460  . "./$as_me.lineno"
461  # Exit status is that of the last command.
462  exit
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467  as_dirname=dirname
468else
469  as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475  case `echo 'x\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  *)   ECHO_C='\c';;
478  esac;;
479*)
480  ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484   test "X`expr 00001 : '.*\(...\)'`" = X001; then
485  as_expr=expr
486else
487  as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492  rm -f conf$$.dir/conf$$.file
493else
494  rm -f conf$$.dir
495  mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499  as_ln_s='ln -s'
500  # ... but there are two gotchas:
501  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503  # In both cases, we have to default to `cp -p'.
504  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505    as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507  as_ln_s=ln
508else
509  as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515  as_mkdir_p=:
516else
517  test -d ./-p && rmdir ./-p
518  as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522  as_test_x='test -x'
523else
524  if ls -dL / >/dev/null 2>&1; then
525    as_ls_L_option=L
526  else
527    as_ls_L_option=
528  fi
529  as_test_x='
530    eval sh -c '\''
531      if test -d "$1"; then
532        test -d "$1/.";
533      else
534	case $1 in
535        -*)set "./$1";;
536	esac;
537	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538	???[sx]*):;;*)false;;esac;fi
539    '\'' sh
540  '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553# Check that we are running under the correct shell.
554SHELL=${CONFIG_SHELL-/bin/sh}
555
556case X$ECHO in
557X*--fallback-echo)
558  # Remove one level of quotation (which was required for Make).
559  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560  ;;
561esac
562
563echo=${ECHO-echo}
564if test "X$1" = X--no-reexec; then
565  # Discard the --no-reexec flag, and continue.
566  shift
567elif test "X$1" = X--fallback-echo; then
568  # Avoid inline document here, it may be left over
569  :
570elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571  # Yippee, $echo works!
572  :
573else
574  # Restart under the correct shell.
575  exec $SHELL "$0" --no-reexec ${1+"$@"}
576fi
577
578if test "X$1" = X--fallback-echo; then
579  # used as fallback echo
580  shift
581  cat <<EOF
582$*
583EOF
584  exit 0
585fi
586
587# The HP-UX ksh and POSIX shell print the target directory to stdout
588# if CDPATH is set.
589(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591if test -z "$ECHO"; then
592if test "X${echo_test_string+set}" != Xset; then
593# find a string as large as possible, as long as the shell can cope with it
594  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597       echo_test_string=`eval $cmd` &&
598       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599    then
600      break
601    fi
602  done
603fi
604
605if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607   test "X$echo_testing_string" = "X$echo_test_string"; then
608  :
609else
610  # The Solaris, AIX, and Digital Unix default echo programs unquote
611  # backslashes.  This makes it impossible to quote backslashes using
612  #   echo "$something" | sed 's/\\/\\\\/g'
613  #
614  # So, first we look for a working echo in the user's PATH.
615
616  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617  for dir in $PATH /usr/ucb; do
618    IFS="$lt_save_ifs"
619    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622       test "X$echo_testing_string" = "X$echo_test_string"; then
623      echo="$dir/echo"
624      break
625    fi
626  done
627  IFS="$lt_save_ifs"
628
629  if test "X$echo" = Xecho; then
630    # We didn't find a better echo, so look for alternatives.
631    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633       test "X$echo_testing_string" = "X$echo_test_string"; then
634      # This shell has a builtin print -r that does the trick.
635      echo='print -r'
636    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637	 test "X$CONFIG_SHELL" != X/bin/ksh; then
638      # If we have ksh, try running configure again with it.
639      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640      export ORIGINAL_CONFIG_SHELL
641      CONFIG_SHELL=/bin/ksh
642      export CONFIG_SHELL
643      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644    else
645      # Try using printf.
646      echo='printf %s\n'
647      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649	 test "X$echo_testing_string" = "X$echo_test_string"; then
650	# Cool, printf works
651	:
652      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653	   test "X$echo_testing_string" = 'X\t' &&
654	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655	   test "X$echo_testing_string" = "X$echo_test_string"; then
656	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657	export CONFIG_SHELL
658	SHELL="$CONFIG_SHELL"
659	export SHELL
660	echo="$CONFIG_SHELL $0 --fallback-echo"
661      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662	   test "X$echo_testing_string" = 'X\t' &&
663	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664	   test "X$echo_testing_string" = "X$echo_test_string"; then
665	echo="$CONFIG_SHELL $0 --fallback-echo"
666      else
667	# maybe with a smaller string...
668	prev=:
669
670	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672	  then
673	    break
674	  fi
675	  prev="$cmd"
676	done
677
678	if test "$prev" != 'sed 50q "$0"'; then
679	  echo_test_string=`eval $prev`
680	  export echo_test_string
681	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682	else
683	  # Oops.  We lost completely, so just stick with echo.
684	  echo=echo
685	fi
686      fi
687    fi
688  fi
689fi
690fi
691
692# Copy echo and quote the copy suitably for passing to libtool from
693# the Makefile, instead of quoting the original, which is used later.
694ECHO=$echo
695if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697fi
698
699
700
701
702tagnames=${tagnames+${tagnames},}CXX
703
704tagnames=${tagnames+${tagnames},}F77
705
706exec 7<&0 </dev/null 6>&1
707
708# Name of the host.
709# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710# so uname gets run too.
711ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713#
714# Initializations.
715#
716ac_default_prefix=/usr/local
717ac_clean_files=
718ac_config_libobj_dir=.
719LIBOBJS=
720cross_compiling=no
721subdirs=
722MFLAGS=
723MAKEFLAGS=
724SHELL=${CONFIG_SHELL-/bin/sh}
725
726# Identity of this package.
727PACKAGE_NAME=
728PACKAGE_TARNAME=
729PACKAGE_VERSION=
730PACKAGE_STRING=
731PACKAGE_BUGREPORT=
732
733ac_unique_file="tools/smilint.c"
734# Factoring default headers for most tests.
735ac_includes_default="\
736#include <stdio.h>
737#ifdef HAVE_SYS_TYPES_H
738# include <sys/types.h>
739#endif
740#ifdef HAVE_SYS_STAT_H
741# include <sys/stat.h>
742#endif
743#ifdef STDC_HEADERS
744# include <stdlib.h>
745# include <stddef.h>
746#else
747# ifdef HAVE_STDLIB_H
748#  include <stdlib.h>
749# endif
750#endif
751#ifdef HAVE_STRING_H
752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753#  include <memory.h>
754# endif
755# include <string.h>
756#endif
757#ifdef HAVE_STRINGS_H
758# include <strings.h>
759#endif
760#ifdef HAVE_INTTYPES_H
761# include <inttypes.h>
762#endif
763#ifdef HAVE_STDINT_H
764# include <stdint.h>
765#endif
766#ifdef HAVE_UNISTD_H
767# include <unistd.h>
768#endif"
769
770ac_subst_vars='SHELL
771PATH_SEPARATOR
772PACKAGE_NAME
773PACKAGE_TARNAME
774PACKAGE_VERSION
775PACKAGE_STRING
776PACKAGE_BUGREPORT
777exec_prefix
778prefix
779program_transform_name
780bindir
781sbindir
782libexecdir
783datarootdir
784datadir
785sysconfdir
786sharedstatedir
787localstatedir
788includedir
789oldincludedir
790docdir
791infodir
792htmldir
793dvidir
794pdfdir
795psdir
796libdir
797localedir
798mandir
799DEFS
800ECHO_C
801ECHO_N
802ECHO_T
803LIBS
804build_alias
805host_alias
806target_alias
807INSTALL_PROGRAM
808INSTALL_SCRIPT
809INSTALL_DATA
810am__isrc
811CYGPATH_W
812PACKAGE
813VERSION
814ACLOCAL
815AUTOCONF
816AUTOMAKE
817AUTOHEADER
818MAKEINFO
819install_sh
820STRIP
821INSTALL_STRIP_PROGRAM
822mkdir_p
823AWK
824SET_MAKE
825am__leading_dot
826AMTAR
827am__tar
828am__untar
829CC
830CFLAGS
831LDFLAGS
832CPPFLAGS
833ac_ct_CC
834EXEEXT
835OBJEXT
836DEPDIR
837am__include
838am__quote
839AMDEP_TRUE
840AMDEP_FALSE
841AMDEPBACKSLASH
842CCDEPMODE
843am__fastdepCC_TRUE
844am__fastdepCC_FALSE
845CPP
846GREP
847EGREP
848FLEX
849BISON
850BASH
851SH
852WGET
853DIFF
854build
855build_cpu
856build_vendor
857build_os
858host
859host_cpu
860host_vendor
861host_os
862LN_S
863ECHO
864AR
865RANLIB
866CXX
867CXXFLAGS
868ac_ct_CXX
869CXXDEPMODE
870am__fastdepCXX_TRUE
871am__fastdepCXX_FALSE
872CXXCPP
873F77
874FFLAGS
875ac_ct_F77
876LIBTOOL
877LIBTOOL_DEPS
878STATIC
879LIBSMI_MAJOR
880LIBSMI_MINOR
881LIBSMI_PATCHLEVEL
882LIBTOOL_VERSION
883LIBTOOL_REVISION
884LIBTOOL_AGE
885VERSION_STRING
886VERSION_LIBTOOL
887UINT64_TYPE
888INT64_TYPE
889srcdir
890mibdir
891pibdir
892smipath
893LIBOBJS
894LTLIBOBJS'
895ac_subst_files=''
896      ac_precious_vars='build_alias
897host_alias
898target_alias
899CC
900CFLAGS
901LDFLAGS
902LIBS
903CPPFLAGS
904CPP
905CXX
906CXXFLAGS
907CCC
908CXXCPP
909F77
910FFLAGS'
911
912
913# Initialize some variables set by options.
914ac_init_help=
915ac_init_version=false
916# The variables have the same names as the options, with
917# dashes changed to underlines.
918cache_file=/dev/null
919exec_prefix=NONE
920no_create=
921no_recursion=
922prefix=NONE
923program_prefix=NONE
924program_suffix=NONE
925program_transform_name=s,x,x,
926silent=
927site=
928srcdir=
929verbose=
930x_includes=NONE
931x_libraries=NONE
932
933# Installation directory options.
934# These are left unexpanded so users can "make install exec_prefix=/foo"
935# and all the variables that are supposed to be based on exec_prefix
936# by default will actually change.
937# Use braces instead of parens because sh, perl, etc. also accept them.
938# (The list follows the same order as the GNU Coding Standards.)
939bindir='${exec_prefix}/bin'
940sbindir='${exec_prefix}/sbin'
941libexecdir='${exec_prefix}/libexec'
942datarootdir='${prefix}/share'
943datadir='${datarootdir}'
944sysconfdir='${prefix}/etc'
945sharedstatedir='${prefix}/com'
946localstatedir='${prefix}/var'
947includedir='${prefix}/include'
948oldincludedir='/usr/include'
949docdir='${datarootdir}/doc/${PACKAGE}'
950infodir='${datarootdir}/info'
951htmldir='${docdir}'
952dvidir='${docdir}'
953pdfdir='${docdir}'
954psdir='${docdir}'
955libdir='${exec_prefix}/lib'
956localedir='${datarootdir}/locale'
957mandir='${datarootdir}/man'
958
959ac_prev=
960ac_dashdash=
961for ac_option
962do
963  # If the previous option needs an argument, assign it.
964  if test -n "$ac_prev"; then
965    eval $ac_prev=\$ac_option
966    ac_prev=
967    continue
968  fi
969
970  case $ac_option in
971  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
972  *)	ac_optarg=yes ;;
973  esac
974
975  # Accept the important Cygnus configure options, so we can diagnose typos.
976
977  case $ac_dashdash$ac_option in
978  --)
979    ac_dashdash=yes ;;
980
981  -bindir | --bindir | --bindi | --bind | --bin | --bi)
982    ac_prev=bindir ;;
983  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
984    bindir=$ac_optarg ;;
985
986  -build | --build | --buil | --bui | --bu)
987    ac_prev=build_alias ;;
988  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
989    build_alias=$ac_optarg ;;
990
991  -cache-file | --cache-file | --cache-fil | --cache-fi \
992  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
993    ac_prev=cache_file ;;
994  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
995  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
996    cache_file=$ac_optarg ;;
997
998  --config-cache | -C)
999    cache_file=config.cache ;;
1000
1001  -datadir | --datadir | --datadi | --datad)
1002    ac_prev=datadir ;;
1003  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1004    datadir=$ac_optarg ;;
1005
1006  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1007  | --dataroo | --dataro | --datar)
1008    ac_prev=datarootdir ;;
1009  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1010  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1011    datarootdir=$ac_optarg ;;
1012
1013  -disable-* | --disable-*)
1014    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1015    # Reject names that are not valid shell variable names.
1016    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1017      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1018   { (exit 1); exit 1; }; }
1019    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1020    eval enable_$ac_feature=no ;;
1021
1022  -docdir | --docdir | --docdi | --doc | --do)
1023    ac_prev=docdir ;;
1024  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1025    docdir=$ac_optarg ;;
1026
1027  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1028    ac_prev=dvidir ;;
1029  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1030    dvidir=$ac_optarg ;;
1031
1032  -enable-* | --enable-*)
1033    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1034    # Reject names that are not valid shell variable names.
1035    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1036      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1037   { (exit 1); exit 1; }; }
1038    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1039    eval enable_$ac_feature=\$ac_optarg ;;
1040
1041  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1042  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1043  | --exec | --exe | --ex)
1044    ac_prev=exec_prefix ;;
1045  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1046  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1047  | --exec=* | --exe=* | --ex=*)
1048    exec_prefix=$ac_optarg ;;
1049
1050  -gas | --gas | --ga | --g)
1051    # Obsolete; use --with-gas.
1052    with_gas=yes ;;
1053
1054  -help | --help | --hel | --he | -h)
1055    ac_init_help=long ;;
1056  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1057    ac_init_help=recursive ;;
1058  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1059    ac_init_help=short ;;
1060
1061  -host | --host | --hos | --ho)
1062    ac_prev=host_alias ;;
1063  -host=* | --host=* | --hos=* | --ho=*)
1064    host_alias=$ac_optarg ;;
1065
1066  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1067    ac_prev=htmldir ;;
1068  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1069  | --ht=*)
1070    htmldir=$ac_optarg ;;
1071
1072  -includedir | --includedir | --includedi | --included | --include \
1073  | --includ | --inclu | --incl | --inc)
1074    ac_prev=includedir ;;
1075  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1076  | --includ=* | --inclu=* | --incl=* | --inc=*)
1077    includedir=$ac_optarg ;;
1078
1079  -infodir | --infodir | --infodi | --infod | --info | --inf)
1080    ac_prev=infodir ;;
1081  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1082    infodir=$ac_optarg ;;
1083
1084  -libdir | --libdir | --libdi | --libd)
1085    ac_prev=libdir ;;
1086  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1087    libdir=$ac_optarg ;;
1088
1089  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1090  | --libexe | --libex | --libe)
1091    ac_prev=libexecdir ;;
1092  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1093  | --libexe=* | --libex=* | --libe=*)
1094    libexecdir=$ac_optarg ;;
1095
1096  -localedir | --localedir | --localedi | --localed | --locale)
1097    ac_prev=localedir ;;
1098  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1099    localedir=$ac_optarg ;;
1100
1101  -localstatedir | --localstatedir | --localstatedi | --localstated \
1102  | --localstate | --localstat | --localsta | --localst | --locals)
1103    ac_prev=localstatedir ;;
1104  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1105  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1106    localstatedir=$ac_optarg ;;
1107
1108  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1109    ac_prev=mandir ;;
1110  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1111    mandir=$ac_optarg ;;
1112
1113  -nfp | --nfp | --nf)
1114    # Obsolete; use --without-fp.
1115    with_fp=no ;;
1116
1117  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1118  | --no-cr | --no-c | -n)
1119    no_create=yes ;;
1120
1121  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1122  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1123    no_recursion=yes ;;
1124
1125  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1126  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1127  | --oldin | --oldi | --old | --ol | --o)
1128    ac_prev=oldincludedir ;;
1129  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1130  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1131  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1132    oldincludedir=$ac_optarg ;;
1133
1134  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1135    ac_prev=prefix ;;
1136  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1137    prefix=$ac_optarg ;;
1138
1139  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1140  | --program-pre | --program-pr | --program-p)
1141    ac_prev=program_prefix ;;
1142  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1143  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1144    program_prefix=$ac_optarg ;;
1145
1146  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1147  | --program-suf | --program-su | --program-s)
1148    ac_prev=program_suffix ;;
1149  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1150  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1151    program_suffix=$ac_optarg ;;
1152
1153  -program-transform-name | --program-transform-name \
1154  | --program-transform-nam | --program-transform-na \
1155  | --program-transform-n | --program-transform- \
1156  | --program-transform | --program-transfor \
1157  | --program-transfo | --program-transf \
1158  | --program-trans | --program-tran \
1159  | --progr-tra | --program-tr | --program-t)
1160    ac_prev=program_transform_name ;;
1161  -program-transform-name=* | --program-transform-name=* \
1162  | --program-transform-nam=* | --program-transform-na=* \
1163  | --program-transform-n=* | --program-transform-=* \
1164  | --program-transform=* | --program-transfor=* \
1165  | --program-transfo=* | --program-transf=* \
1166  | --program-trans=* | --program-tran=* \
1167  | --progr-tra=* | --program-tr=* | --program-t=*)
1168    program_transform_name=$ac_optarg ;;
1169
1170  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1171    ac_prev=pdfdir ;;
1172  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1173    pdfdir=$ac_optarg ;;
1174
1175  -psdir | --psdir | --psdi | --psd | --ps)
1176    ac_prev=psdir ;;
1177  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1178    psdir=$ac_optarg ;;
1179
1180  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1181  | -silent | --silent | --silen | --sile | --sil)
1182    silent=yes ;;
1183
1184  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1185    ac_prev=sbindir ;;
1186  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1187  | --sbi=* | --sb=*)
1188    sbindir=$ac_optarg ;;
1189
1190  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1191  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1192  | --sharedst | --shareds | --shared | --share | --shar \
1193  | --sha | --sh)
1194    ac_prev=sharedstatedir ;;
1195  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1196  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1197  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1198  | --sha=* | --sh=*)
1199    sharedstatedir=$ac_optarg ;;
1200
1201  -site | --site | --sit)
1202    ac_prev=site ;;
1203  -site=* | --site=* | --sit=*)
1204    site=$ac_optarg ;;
1205
1206  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1207    ac_prev=srcdir ;;
1208  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1209    srcdir=$ac_optarg ;;
1210
1211  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1212  | --syscon | --sysco | --sysc | --sys | --sy)
1213    ac_prev=sysconfdir ;;
1214  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1215  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1216    sysconfdir=$ac_optarg ;;
1217
1218  -target | --target | --targe | --targ | --tar | --ta | --t)
1219    ac_prev=target_alias ;;
1220  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1221    target_alias=$ac_optarg ;;
1222
1223  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1224    verbose=yes ;;
1225
1226  -version | --version | --versio | --versi | --vers | -V)
1227    ac_init_version=: ;;
1228
1229  -with-* | --with-*)
1230    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1231    # Reject names that are not valid shell variable names.
1232    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233      { echo "$as_me: error: invalid package name: $ac_package" >&2
1234   { (exit 1); exit 1; }; }
1235    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1236    eval with_$ac_package=\$ac_optarg ;;
1237
1238  -without-* | --without-*)
1239    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1240    # Reject names that are not valid shell variable names.
1241    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242      { echo "$as_me: error: invalid package name: $ac_package" >&2
1243   { (exit 1); exit 1; }; }
1244    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1245    eval with_$ac_package=no ;;
1246
1247  --x)
1248    # Obsolete; use --with-x.
1249    with_x=yes ;;
1250
1251  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1252  | --x-incl | --x-inc | --x-in | --x-i)
1253    ac_prev=x_includes ;;
1254  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1255  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1256    x_includes=$ac_optarg ;;
1257
1258  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1259  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1260    ac_prev=x_libraries ;;
1261  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1262  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1263    x_libraries=$ac_optarg ;;
1264
1265  -*) { echo "$as_me: error: unrecognized option: $ac_option
1266Try \`$0 --help' for more information." >&2
1267   { (exit 1); exit 1; }; }
1268    ;;
1269
1270  *=*)
1271    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1272    # Reject names that are not valid shell variable names.
1273    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1274      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1275   { (exit 1); exit 1; }; }
1276    eval $ac_envvar=\$ac_optarg
1277    export $ac_envvar ;;
1278
1279  *)
1280    # FIXME: should be removed in autoconf 3.0.
1281    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1282    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1283      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1284    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1285    ;;
1286
1287  esac
1288done
1289
1290if test -n "$ac_prev"; then
1291  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1292  { echo "$as_me: error: missing argument to $ac_option" >&2
1293   { (exit 1); exit 1; }; }
1294fi
1295
1296# Be sure to have absolute directory names.
1297for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298		datadir sysconfdir sharedstatedir localstatedir includedir \
1299		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300		libdir localedir mandir
1301do
1302  eval ac_val=\$$ac_var
1303  case $ac_val in
1304    [\\/$]* | ?:[\\/]* )  continue;;
1305    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1306  esac
1307  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1308   { (exit 1); exit 1; }; }
1309done
1310
1311# There might be people who depend on the old broken behavior: `$host'
1312# used to hold the argument of --host etc.
1313# FIXME: To remove some day.
1314build=$build_alias
1315host=$host_alias
1316target=$target_alias
1317
1318# FIXME: To remove some day.
1319if test "x$host_alias" != x; then
1320  if test "x$build_alias" = x; then
1321    cross_compiling=maybe
1322    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1323    If a cross compiler is detected then cross compile mode will be used." >&2
1324  elif test "x$build_alias" != "x$host_alias"; then
1325    cross_compiling=yes
1326  fi
1327fi
1328
1329ac_tool_prefix=
1330test -n "$host_alias" && ac_tool_prefix=$host_alias-
1331
1332test "$silent" = yes && exec 6>/dev/null
1333
1334
1335ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336ac_ls_di=`ls -di .` &&
1337ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338  { echo "$as_me: error: Working directory cannot be determined" >&2
1339   { (exit 1); exit 1; }; }
1340test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341  { echo "$as_me: error: pwd does not report name of working directory" >&2
1342   { (exit 1); exit 1; }; }
1343
1344
1345# Find the source files, if location was not specified.
1346if test -z "$srcdir"; then
1347  ac_srcdir_defaulted=yes
1348  # Try the directory containing this script, then the parent directory.
1349  ac_confdir=`$as_dirname -- "$0" ||
1350$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351	 X"$0" : 'X\(//\)[^/]' \| \
1352	 X"$0" : 'X\(//\)$' \| \
1353	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1354echo X"$0" |
1355    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356	    s//\1/
1357	    q
1358	  }
1359	  /^X\(\/\/\)[^/].*/{
1360	    s//\1/
1361	    q
1362	  }
1363	  /^X\(\/\/\)$/{
1364	    s//\1/
1365	    q
1366	  }
1367	  /^X\(\/\).*/{
1368	    s//\1/
1369	    q
1370	  }
1371	  s/.*/./; q'`
1372  srcdir=$ac_confdir
1373  if test ! -r "$srcdir/$ac_unique_file"; then
1374    srcdir=..
1375  fi
1376else
1377  ac_srcdir_defaulted=no
1378fi
1379if test ! -r "$srcdir/$ac_unique_file"; then
1380  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1382   { (exit 1); exit 1; }; }
1383fi
1384ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385ac_abs_confdir=`(
1386	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1387   { (exit 1); exit 1; }; }
1388	pwd)`
1389# When building in place, set srcdir=.
1390if test "$ac_abs_confdir" = "$ac_pwd"; then
1391  srcdir=.
1392fi
1393# Remove unnecessary trailing slashes from srcdir.
1394# Double slashes in file names in object file debugging info
1395# mess up M-x gdb in Emacs.
1396case $srcdir in
1397*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398esac
1399for ac_var in $ac_precious_vars; do
1400  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401  eval ac_env_${ac_var}_value=\$${ac_var}
1402  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404done
1405
1406#
1407# Report the --help message.
1408#
1409if test "$ac_init_help" = "long"; then
1410  # Omit some internal or obsolete options to make the list less imposing.
1411  # This message is too long to be a string in the A/UX 3.1 sh.
1412  cat <<_ACEOF
1413\`configure' configures this package to adapt to many kinds of systems.
1414
1415Usage: $0 [OPTION]... [VAR=VALUE]...
1416
1417To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418VAR=VALUE.  See below for descriptions of some of the useful variables.
1419
1420Defaults for the options are specified in brackets.
1421
1422Configuration:
1423  -h, --help              display this help and exit
1424      --help=short        display options specific to this package
1425      --help=recursive    display the short help of all the included packages
1426  -V, --version           display version information and exit
1427  -q, --quiet, --silent   do not print \`checking...' messages
1428      --cache-file=FILE   cache test results in FILE [disabled]
1429  -C, --config-cache      alias for \`--cache-file=config.cache'
1430  -n, --no-create         do not create output files
1431      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1432
1433Installation directories:
1434  --prefix=PREFIX         install architecture-independent files in PREFIX
1435			  [$ac_default_prefix]
1436  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1437			  [PREFIX]
1438
1439By default, \`make install' will install all the files in
1440\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1441an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442for instance \`--prefix=\$HOME'.
1443
1444For better control, use the options below.
1445
1446Fine tuning of the installation directories:
1447  --bindir=DIR           user executables [EPREFIX/bin]
1448  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1449  --libexecdir=DIR       program executables [EPREFIX/libexec]
1450  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1451  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1452  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1453  --libdir=DIR           object code libraries [EPREFIX/lib]
1454  --includedir=DIR       C header files [PREFIX/include]
1455  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1456  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1457  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1458  --infodir=DIR          info documentation [DATAROOTDIR/info]
1459  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1460  --mandir=DIR           man documentation [DATAROOTDIR/man]
1461  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1462  --htmldir=DIR          html documentation [DOCDIR]
1463  --dvidir=DIR           dvi documentation [DOCDIR]
1464  --pdfdir=DIR           pdf documentation [DOCDIR]
1465  --psdir=DIR            ps documentation [DOCDIR]
1466_ACEOF
1467
1468  cat <<\_ACEOF
1469
1470Program names:
1471  --program-prefix=PREFIX            prepend PREFIX to installed program names
1472  --program-suffix=SUFFIX            append SUFFIX to installed program names
1473  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1474
1475System types:
1476  --build=BUILD     configure for building on BUILD [guessed]
1477  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1478_ACEOF
1479fi
1480
1481if test -n "$ac_init_help"; then
1482
1483  cat <<\_ACEOF
1484
1485Optional Features:
1486  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1487  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1488  --disable-dependency-tracking  speeds up one-time build
1489  --enable-dependency-tracking   do not reject slow dependency extractors
1490  --enable-dmalloc        enable dmalloc debugging (www.dmalloc.com)
1491  --disable-smi           disable SMIv1/v2 parser support
1492  --enable-sming          enable SMIng parser support
1493  --enable-shared[=PKGS]  build shared libraries [default=yes]
1494  --enable-static[=PKGS]  build static libraries [default=yes]
1495  --enable-fast-install[=PKGS]
1496                          optimize for fast installation [default=yes]
1497  --disable-libtool-lock  avoid locking (might break parallel builds)
1498
1499Optional Packages:
1500  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1501  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1502  --with-cflags=FLAGS     use FLAGS for CFLAGS
1503  --with-cc=CC            use CC as the C compiler
1504  --with-mibdir=DIR       use DIR to install libsmi MIB modules DATADIR/mibs
1505  --with-pibdir=DIR       use DIR to install libsmi PIB modules DATADIR/pibs
1506  --with-smipath=DIR:DIR  default DIRs to search for MIB/PIB modules MIBDIR...
1507  --with-pathseparator=C  use C as the path separator : on UNIX, ; on WIN32
1508  --with-dirseparator=C   use C as the dir separator / on UNIX, \\ on WIN32
1509  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1510  --with-pic              try to use only PIC/non-PIC objects [default=use
1511                          both]
1512  --with-tags[=TAGS]      include additional configurations [automatic]
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
1532_ACEOF
1533ac_status=$?
1534fi
1535
1536if test "$ac_init_help" = "recursive"; then
1537  # If there are subdirs, report their specific --help.
1538  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1539    test -d "$ac_dir" || continue
1540    ac_builddir=.
1541
1542case "$ac_dir" in
1543.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544*)
1545  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1546  # A ".." for each directory in $ac_dir_suffix.
1547  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1548  case $ac_top_builddir_sub in
1549  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1551  esac ;;
1552esac
1553ac_abs_top_builddir=$ac_pwd
1554ac_abs_builddir=$ac_pwd$ac_dir_suffix
1555# for backward compatibility:
1556ac_top_builddir=$ac_top_build_prefix
1557
1558case $srcdir in
1559  .)  # We are building in place.
1560    ac_srcdir=.
1561    ac_top_srcdir=$ac_top_builddir_sub
1562    ac_abs_top_srcdir=$ac_pwd ;;
1563  [\\/]* | ?:[\\/]* )  # Absolute name.
1564    ac_srcdir=$srcdir$ac_dir_suffix;
1565    ac_top_srcdir=$srcdir
1566    ac_abs_top_srcdir=$srcdir ;;
1567  *) # Relative name.
1568    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1569    ac_top_srcdir=$ac_top_build_prefix$srcdir
1570    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1571esac
1572ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1573
1574    cd "$ac_dir" || { ac_status=$?; continue; }
1575    # Check for guested configure.
1576    if test -f "$ac_srcdir/configure.gnu"; then
1577      echo &&
1578      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1579    elif test -f "$ac_srcdir/configure"; then
1580      echo &&
1581      $SHELL "$ac_srcdir/configure" --help=recursive
1582    else
1583      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1584    fi || ac_status=$?
1585    cd "$ac_pwd" || { ac_status=$?; break; }
1586  done
1587fi
1588
1589test -n "$ac_init_help" && exit $ac_status
1590if $ac_init_version; then
1591  cat <<\_ACEOF
1592configure
1593generated by GNU Autoconf 2.61
1594
1595Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15962002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1597This configure script is free software; the Free Software Foundation
1598gives unlimited permission to copy, distribute and modify it.
1599_ACEOF
1600  exit
1601fi
1602cat >config.log <<_ACEOF
1603This file contains any messages produced by compilers while
1604running configure, to aid debugging if configure makes a mistake.
1605
1606It was created by $as_me, which was
1607generated by GNU Autoconf 2.61.  Invocation command line was
1608
1609  $ $0 $@
1610
1611_ACEOF
1612exec 5>>config.log
1613{
1614cat <<_ASUNAME
1615## --------- ##
1616## Platform. ##
1617## --------- ##
1618
1619hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1620uname -m = `(uname -m) 2>/dev/null || echo unknown`
1621uname -r = `(uname -r) 2>/dev/null || echo unknown`
1622uname -s = `(uname -s) 2>/dev/null || echo unknown`
1623uname -v = `(uname -v) 2>/dev/null || echo unknown`
1624
1625/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1626/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1627
1628/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1629/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1630/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1631/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1632/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1633/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1634/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1635
1636_ASUNAME
1637
1638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639for as_dir in $PATH
1640do
1641  IFS=$as_save_IFS
1642  test -z "$as_dir" && as_dir=.
1643  echo "PATH: $as_dir"
1644done
1645IFS=$as_save_IFS
1646
1647} >&5
1648
1649cat >&5 <<_ACEOF
1650
1651
1652## ----------- ##
1653## Core tests. ##
1654## ----------- ##
1655
1656_ACEOF
1657
1658
1659# Keep a trace of the command line.
1660# Strip out --no-create and --no-recursion so they do not pile up.
1661# Strip out --silent because we don't want to record it for future runs.
1662# Also quote any args containing shell meta-characters.
1663# Make two passes to allow for proper duplicate-argument suppression.
1664ac_configure_args=
1665ac_configure_args0=
1666ac_configure_args1=
1667ac_must_keep_next=false
1668for ac_pass in 1 2
1669do
1670  for ac_arg
1671  do
1672    case $ac_arg in
1673    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1674    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1675    | -silent | --silent | --silen | --sile | --sil)
1676      continue ;;
1677    *\'*)
1678      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1679    esac
1680    case $ac_pass in
1681    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1682    2)
1683      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1684      if test $ac_must_keep_next = true; then
1685	ac_must_keep_next=false # Got value, back to normal.
1686      else
1687	case $ac_arg in
1688	  *=* | --config-cache | -C | -disable-* | --disable-* \
1689	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1690	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1691	  | -with-* | --with-* | -without-* | --without-* | --x)
1692	    case "$ac_configure_args0 " in
1693	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1694	    esac
1695	    ;;
1696	  -* ) ac_must_keep_next=true ;;
1697	esac
1698      fi
1699      ac_configure_args="$ac_configure_args '$ac_arg'"
1700      ;;
1701    esac
1702  done
1703done
1704$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1705$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1706
1707# When interrupted or exit'd, cleanup temporary files, and complete
1708# config.log.  We remove comments because anyway the quotes in there
1709# would cause problems or look ugly.
1710# WARNING: Use '\'' to represent an apostrophe within the trap.
1711# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1712trap 'exit_status=$?
1713  # Save into config.log some information that might help in debugging.
1714  {
1715    echo
1716
1717    cat <<\_ASBOX
1718## ---------------- ##
1719## Cache variables. ##
1720## ---------------- ##
1721_ASBOX
1722    echo
1723    # The following way of writing the cache mishandles newlines in values,
1724(
1725  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1726    eval ac_val=\$$ac_var
1727    case $ac_val in #(
1728    *${as_nl}*)
1729      case $ac_var in #(
1730      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1731echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1732      esac
1733      case $ac_var in #(
1734      _ | IFS | as_nl) ;; #(
1735      *) $as_unset $ac_var ;;
1736      esac ;;
1737    esac
1738  done
1739  (set) 2>&1 |
1740    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1741    *${as_nl}ac_space=\ *)
1742      sed -n \
1743	"s/'\''/'\''\\\\'\'''\''/g;
1744	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1745      ;; #(
1746    *)
1747      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1748      ;;
1749    esac |
1750    sort
1751)
1752    echo
1753
1754    cat <<\_ASBOX
1755## ----------------- ##
1756## Output variables. ##
1757## ----------------- ##
1758_ASBOX
1759    echo
1760    for ac_var in $ac_subst_vars
1761    do
1762      eval ac_val=\$$ac_var
1763      case $ac_val in
1764      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1765      esac
1766      echo "$ac_var='\''$ac_val'\''"
1767    done | sort
1768    echo
1769
1770    if test -n "$ac_subst_files"; then
1771      cat <<\_ASBOX
1772## ------------------- ##
1773## File substitutions. ##
1774## ------------------- ##
1775_ASBOX
1776      echo
1777      for ac_var in $ac_subst_files
1778      do
1779	eval ac_val=\$$ac_var
1780	case $ac_val in
1781	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1782	esac
1783	echo "$ac_var='\''$ac_val'\''"
1784      done | sort
1785      echo
1786    fi
1787
1788    if test -s confdefs.h; then
1789      cat <<\_ASBOX
1790## ----------- ##
1791## confdefs.h. ##
1792## ----------- ##
1793_ASBOX
1794      echo
1795      cat confdefs.h
1796      echo
1797    fi
1798    test "$ac_signal" != 0 &&
1799      echo "$as_me: caught signal $ac_signal"
1800    echo "$as_me: exit $exit_status"
1801  } >&5
1802  rm -f core *.core core.conftest.* &&
1803    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1804    exit $exit_status
1805' 0
1806for ac_signal in 1 2 13 15; do
1807  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1808done
1809ac_signal=0
1810
1811# confdefs.h avoids OS command line length limits that DEFS can exceed.
1812rm -f -r conftest* confdefs.h
1813
1814# Predefined preprocessor variables.
1815
1816cat >>confdefs.h <<_ACEOF
1817#define PACKAGE_NAME "$PACKAGE_NAME"
1818_ACEOF
1819
1820
1821cat >>confdefs.h <<_ACEOF
1822#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1823_ACEOF
1824
1825
1826cat >>confdefs.h <<_ACEOF
1827#define PACKAGE_VERSION "$PACKAGE_VERSION"
1828_ACEOF
1829
1830
1831cat >>confdefs.h <<_ACEOF
1832#define PACKAGE_STRING "$PACKAGE_STRING"
1833_ACEOF
1834
1835
1836cat >>confdefs.h <<_ACEOF
1837#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1838_ACEOF
1839
1840
1841# Let the site file select an alternate cache file if it wants to.
1842# Prefer explicitly selected file to automatically selected ones.
1843if test -n "$CONFIG_SITE"; then
1844  set x "$CONFIG_SITE"
1845elif test "x$prefix" != xNONE; then
1846  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1847else
1848  set x "$ac_default_prefix/share/config.site" \
1849	"$ac_default_prefix/etc/config.site"
1850fi
1851shift
1852for ac_site_file
1853do
1854  if test -r "$ac_site_file"; then
1855    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1856echo "$as_me: loading site script $ac_site_file" >&6;}
1857    sed 's/^/| /' "$ac_site_file" >&5
1858    . "$ac_site_file"
1859  fi
1860done
1861
1862if test -r "$cache_file"; then
1863  # Some versions of bash will fail to source /dev/null (special
1864  # files actually), so we avoid doing that.
1865  if test -f "$cache_file"; then
1866    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1867echo "$as_me: loading cache $cache_file" >&6;}
1868    case $cache_file in
1869      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1870      *)                      . "./$cache_file";;
1871    esac
1872  fi
1873else
1874  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1875echo "$as_me: creating cache $cache_file" >&6;}
1876  >$cache_file
1877fi
1878
1879# Check that the precious variables saved in the cache have kept the same
1880# value.
1881ac_cache_corrupted=false
1882for ac_var in $ac_precious_vars; do
1883  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1884  eval ac_new_set=\$ac_env_${ac_var}_set
1885  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1886  eval ac_new_val=\$ac_env_${ac_var}_value
1887  case $ac_old_set,$ac_new_set in
1888    set,)
1889      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1890echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1891      ac_cache_corrupted=: ;;
1892    ,set)
1893      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1894echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1895      ac_cache_corrupted=: ;;
1896    ,);;
1897    *)
1898      if test "x$ac_old_val" != "x$ac_new_val"; then
1899	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1900echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1901	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1902echo "$as_me:   former value:  $ac_old_val" >&2;}
1903	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1904echo "$as_me:   current value: $ac_new_val" >&2;}
1905	ac_cache_corrupted=:
1906      fi;;
1907  esac
1908  # Pass precious variables to config.status.
1909  if test "$ac_new_set" = set; then
1910    case $ac_new_val in
1911    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1912    *) ac_arg=$ac_var=$ac_new_val ;;
1913    esac
1914    case " $ac_configure_args " in
1915      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1916      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1917    esac
1918  fi
1919done
1920if $ac_cache_corrupted; then
1921  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1922echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1923  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1924echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1925   { (exit 1); exit 1; }; }
1926fi
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944ac_ext=c
1945ac_cpp='$CPP $CPPFLAGS'
1946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1948ac_compiler_gnu=$ac_cv_c_compiler_gnu
1949
1950
1951
1952LIBSMI_MAJOR=0
1953LIBSMI_MINOR=4
1954LIBSMI_PATCHLEVEL=8
1955LIBTOOL_VERSION=2
1956LIBTOOL_REVISION=27
1957LIBTOOL_AGE=0
1958
1959VERSION_STRING="$LIBSMI_MAJOR.$LIBSMI_MINOR.$LIBSMI_PATCHLEVEL"
1960VERSION_LIBTOOL="$LIBTOOL_VERSION:$LIBTOOL_REVISION:$LIBTOOL_AGE"
1961
1962am__api_version='1.10'
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# Find a good install program.  We prefer a C program (faster),
1996# so one script is as good as another.  But avoid the broken or
1997# incompatible versions:
1998# SysV /etc/install, /usr/sbin/install
1999# SunOS /usr/etc/install
2000# IRIX /sbin/install
2001# AIX /bin/install
2002# AmigaOS /C/install, which installs bootblocks on floppy discs
2003# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2004# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2005# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2006# OS/2's system install, which has a completely different semantic
2007# ./install, which can be erroneously created by make from ./install.sh.
2008{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2009echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2010if test -z "$INSTALL"; then
2011if test "${ac_cv_path_install+set}" = set; then
2012  echo $ECHO_N "(cached) $ECHO_C" >&6
2013else
2014  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015for as_dir in $PATH
2016do
2017  IFS=$as_save_IFS
2018  test -z "$as_dir" && as_dir=.
2019  # Account for people who put trailing slashes in PATH elements.
2020case $as_dir/ in
2021  ./ | .// | /cC/* | \
2022  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2023  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2024  /usr/ucb/* ) ;;
2025  *)
2026    # OSF1 and SCO ODT 3.0 have their own names for install.
2027    # Don't use installbsd from OSF since it installs stuff as root
2028    # by default.
2029    for ac_prog in ginstall scoinst install; do
2030      for ac_exec_ext in '' $ac_executable_extensions; do
2031	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2032	  if test $ac_prog = install &&
2033	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2034	    # AIX install.  It has an incompatible calling convention.
2035	    :
2036	  elif test $ac_prog = install &&
2037	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2038	    # program-specific install script used by HP pwplus--don't use.
2039	    :
2040	  else
2041	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2042	    break 3
2043	  fi
2044	fi
2045      done
2046    done
2047    ;;
2048esac
2049done
2050IFS=$as_save_IFS
2051
2052
2053fi
2054  if test "${ac_cv_path_install+set}" = set; then
2055    INSTALL=$ac_cv_path_install
2056  else
2057    # As a last resort, use the slow shell script.  Don't cache a
2058    # value for INSTALL within a source directory, because that will
2059    # break other packages using the cache if that directory is
2060    # removed, or if the value is a relative name.
2061    INSTALL=$ac_install_sh
2062  fi
2063fi
2064{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2065echo "${ECHO_T}$INSTALL" >&6; }
2066
2067# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2068# It thinks the first close brace ends the variable substitution.
2069test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2070
2071test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2072
2073test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2074
2075{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2076echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2077# Just in case
2078sleep 1
2079echo timestamp > conftest.file
2080# Do `set' in a subshell so we don't clobber the current shell's
2081# arguments.  Must try -L first in case configure is actually a
2082# symlink; some systems play weird games with the mod time of symlinks
2083# (eg FreeBSD returns the mod time of the symlink's containing
2084# directory).
2085if (
2086   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2087   if test "$*" = "X"; then
2088      # -L didn't work.
2089      set X `ls -t $srcdir/configure conftest.file`
2090   fi
2091   rm -f conftest.file
2092   if test "$*" != "X $srcdir/configure conftest.file" \
2093      && test "$*" != "X conftest.file $srcdir/configure"; then
2094
2095      # If neither matched, then we have a broken ls.  This can happen
2096      # if, for instance, CONFIG_SHELL is bash and it inherits a
2097      # broken ls alias from the environment.  This has actually
2098      # happened.  Such a system could not be considered "sane".
2099      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2100alias in your environment" >&5
2101echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2102alias in your environment" >&2;}
2103   { (exit 1); exit 1; }; }
2104   fi
2105
2106   test "$2" = conftest.file
2107   )
2108then
2109   # Ok.
2110   :
2111else
2112   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2113Check your system clock" >&5
2114echo "$as_me: error: newly created file is older than distributed files!
2115Check your system clock" >&2;}
2116   { (exit 1); exit 1; }; }
2117fi
2118{ echo "$as_me:$LINENO: result: yes" >&5
2119echo "${ECHO_T}yes" >&6; }
2120test "$program_prefix" != NONE &&
2121  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2122# Use a double $ so make ignores it.
2123test "$program_suffix" != NONE &&
2124  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2125# Double any \ or $.  echo might interpret backslashes.
2126# By default was `s,x,x', remove it if useless.
2127cat <<\_ACEOF >conftest.sed
2128s/[\\$]/&&/g;s/;s,x,x,$//
2129_ACEOF
2130program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2131rm -f conftest.sed
2132
2133# expand $ac_aux_dir to an absolute path
2134am_aux_dir=`cd $ac_aux_dir && pwd`
2135
2136test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2137# Use eval to expand $SHELL
2138if eval "$MISSING --run true"; then
2139  am_missing_run="$MISSING --run "
2140else
2141  am_missing_run=
2142  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2143echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2144fi
2145
2146{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2147echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2148if test -z "$MKDIR_P"; then
2149  if test "${ac_cv_path_mkdir+set}" = set; then
2150  echo $ECHO_N "(cached) $ECHO_C" >&6
2151else
2152  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2154do
2155  IFS=$as_save_IFS
2156  test -z "$as_dir" && as_dir=.
2157  for ac_prog in mkdir gmkdir; do
2158	 for ac_exec_ext in '' $ac_executable_extensions; do
2159	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2160	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2161	     'mkdir (GNU coreutils) '* | \
2162	     'mkdir (coreutils) '* | \
2163	     'mkdir (fileutils) '4.1*)
2164	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2165	       break 3;;
2166	   esac
2167	 done
2168       done
2169done
2170IFS=$as_save_IFS
2171
2172fi
2173
2174  if test "${ac_cv_path_mkdir+set}" = set; then
2175    MKDIR_P="$ac_cv_path_mkdir -p"
2176  else
2177    # As a last resort, use the slow shell script.  Don't cache a
2178    # value for MKDIR_P within a source directory, because that will
2179    # break other packages using the cache if that directory is
2180    # removed, or if the value is a relative name.
2181    test -d ./--version && rmdir ./--version
2182    MKDIR_P="$ac_install_sh -d"
2183  fi
2184fi
2185{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2186echo "${ECHO_T}$MKDIR_P" >&6; }
2187
2188mkdir_p="$MKDIR_P"
2189case $mkdir_p in
2190  [\\/$]* | ?:[\\/]*) ;;
2191  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2192esac
2193
2194for ac_prog in gawk mawk nawk awk
2195do
2196  # Extract the first word of "$ac_prog", so it can be a program name with args.
2197set dummy $ac_prog; ac_word=$2
2198{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2200if test "${ac_cv_prog_AWK+set}" = set; then
2201  echo $ECHO_N "(cached) $ECHO_C" >&6
2202else
2203  if test -n "$AWK"; then
2204  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2205else
2206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2207for as_dir in $PATH
2208do
2209  IFS=$as_save_IFS
2210  test -z "$as_dir" && as_dir=.
2211  for ac_exec_ext in '' $ac_executable_extensions; do
2212  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2213    ac_cv_prog_AWK="$ac_prog"
2214    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2215    break 2
2216  fi
2217done
2218done
2219IFS=$as_save_IFS
2220
2221fi
2222fi
2223AWK=$ac_cv_prog_AWK
2224if test -n "$AWK"; then
2225  { echo "$as_me:$LINENO: result: $AWK" >&5
2226echo "${ECHO_T}$AWK" >&6; }
2227else
2228  { echo "$as_me:$LINENO: result: no" >&5
2229echo "${ECHO_T}no" >&6; }
2230fi
2231
2232
2233  test -n "$AWK" && break
2234done
2235
2236{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2237echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2238set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2239if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2240  echo $ECHO_N "(cached) $ECHO_C" >&6
2241else
2242  cat >conftest.make <<\_ACEOF
2243SHELL = /bin/sh
2244all:
2245	@echo '@@@%%%=$(MAKE)=@@@%%%'
2246_ACEOF
2247# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2248case `${MAKE-make} -f conftest.make 2>/dev/null` in
2249  *@@@%%%=?*=@@@%%%*)
2250    eval ac_cv_prog_make_${ac_make}_set=yes;;
2251  *)
2252    eval ac_cv_prog_make_${ac_make}_set=no;;
2253esac
2254rm -f conftest.make
2255fi
2256if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2257  { echo "$as_me:$LINENO: result: yes" >&5
2258echo "${ECHO_T}yes" >&6; }
2259  SET_MAKE=
2260else
2261  { echo "$as_me:$LINENO: result: no" >&5
2262echo "${ECHO_T}no" >&6; }
2263  SET_MAKE="MAKE=${MAKE-make}"
2264fi
2265
2266rm -rf .tst 2>/dev/null
2267mkdir .tst 2>/dev/null
2268if test -d .tst; then
2269  am__leading_dot=.
2270else
2271  am__leading_dot=_
2272fi
2273rmdir .tst 2>/dev/null
2274
2275if test "`cd $srcdir && pwd`" != "`pwd`"; then
2276  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2277  # is not polluted with repeated "-I."
2278  am__isrc=' -I$(srcdir)'
2279  # test to see if srcdir already configured
2280  if test -f $srcdir/config.status; then
2281    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2282echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2283   { (exit 1); exit 1; }; }
2284  fi
2285fi
2286
2287# test whether we have cygpath
2288if test -z "$CYGPATH_W"; then
2289  if (cygpath --version) >/dev/null 2>/dev/null; then
2290    CYGPATH_W='cygpath -w'
2291  else
2292    CYGPATH_W=echo
2293  fi
2294fi
2295
2296
2297# Define the identity of the package.
2298 PACKAGE=libsmi
2299 VERSION=$VERSION_STRING
2300
2301
2302cat >>confdefs.h <<_ACEOF
2303#define PACKAGE "$PACKAGE"
2304_ACEOF
2305
2306
2307cat >>confdefs.h <<_ACEOF
2308#define VERSION "$VERSION"
2309_ACEOF
2310
2311# Some tools Automake needs.
2312
2313ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2314
2315
2316AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2317
2318
2319AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2320
2321
2322AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2323
2324
2325MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2326
2327install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2328
2329# Installed binaries are usually stripped using `strip' when the user
2330# run `make install-strip'.  However `strip' might not be the right
2331# tool to use in cross-compilation environments, therefore Automake
2332# will honor the `STRIP' environment variable to overrule this program.
2333if test "$cross_compiling" != no; then
2334  if test -n "$ac_tool_prefix"; then
2335  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2336set dummy ${ac_tool_prefix}strip; ac_word=$2
2337{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2339if test "${ac_cv_prog_STRIP+set}" = set; then
2340  echo $ECHO_N "(cached) $ECHO_C" >&6
2341else
2342  if test -n "$STRIP"; then
2343  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2344else
2345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346for as_dir in $PATH
2347do
2348  IFS=$as_save_IFS
2349  test -z "$as_dir" && as_dir=.
2350  for ac_exec_ext in '' $ac_executable_extensions; do
2351  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2352    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2353    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354    break 2
2355  fi
2356done
2357done
2358IFS=$as_save_IFS
2359
2360fi
2361fi
2362STRIP=$ac_cv_prog_STRIP
2363if test -n "$STRIP"; then
2364  { echo "$as_me:$LINENO: result: $STRIP" >&5
2365echo "${ECHO_T}$STRIP" >&6; }
2366else
2367  { echo "$as_me:$LINENO: result: no" >&5
2368echo "${ECHO_T}no" >&6; }
2369fi
2370
2371
2372fi
2373if test -z "$ac_cv_prog_STRIP"; then
2374  ac_ct_STRIP=$STRIP
2375  # Extract the first word of "strip", so it can be a program name with args.
2376set dummy strip; ac_word=$2
2377{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2379if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2380  echo $ECHO_N "(cached) $ECHO_C" >&6
2381else
2382  if test -n "$ac_ct_STRIP"; then
2383  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2384else
2385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386for as_dir in $PATH
2387do
2388  IFS=$as_save_IFS
2389  test -z "$as_dir" && as_dir=.
2390  for ac_exec_ext in '' $ac_executable_extensions; do
2391  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2392    ac_cv_prog_ac_ct_STRIP="strip"
2393    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2394    break 2
2395  fi
2396done
2397done
2398IFS=$as_save_IFS
2399
2400fi
2401fi
2402ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2403if test -n "$ac_ct_STRIP"; then
2404  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2405echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2406else
2407  { echo "$as_me:$LINENO: result: no" >&5
2408echo "${ECHO_T}no" >&6; }
2409fi
2410
2411  if test "x$ac_ct_STRIP" = x; then
2412    STRIP=":"
2413  else
2414    case $cross_compiling:$ac_tool_warned in
2415yes:)
2416{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2417whose name does not start with the host triplet.  If you think this
2418configuration is useful to you, please write to autoconf@gnu.org." >&5
2419echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2420whose name does not start with the host triplet.  If you think this
2421configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2422ac_tool_warned=yes ;;
2423esac
2424    STRIP=$ac_ct_STRIP
2425  fi
2426else
2427  STRIP="$ac_cv_prog_STRIP"
2428fi
2429
2430fi
2431INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2432
2433# We need awk for the "check" target.  The system "awk" is bad on
2434# some platforms.
2435# Always define AMTAR for backward compatibility.
2436
2437AMTAR=${AMTAR-"${am_missing_run}tar"}
2438
2439am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2440
2441
2442
2443
2444
2445ac_config_headers="$ac_config_headers config.h"
2446
2447
2448
2449cat >>confdefs.h <<\_ACEOF
2450#define MAX_LEX_DEPTH 30
2451_ACEOF
2452
2453
2454
2455cat >>confdefs.h <<\_ACEOF
2456#define DEFAULT_ERRORLEVEL 3
2457_ACEOF
2458
2459
2460
2461# Check whether --with-cflags was given.
2462if test "${with_cflags+set}" = set; then
2463  withval=$with_cflags; CFLAGS="$withval"
2464fi
2465
2466
2467ac_ext=c
2468ac_cpp='$CPP $CPPFLAGS'
2469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2471ac_compiler_gnu=$ac_cv_c_compiler_gnu
2472if test -n "$ac_tool_prefix"; then
2473  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2474set dummy ${ac_tool_prefix}gcc; ac_word=$2
2475{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2477if test "${ac_cv_prog_CC+set}" = set; then
2478  echo $ECHO_N "(cached) $ECHO_C" >&6
2479else
2480  if test -n "$CC"; then
2481  ac_cv_prog_CC="$CC" # Let the user override the test.
2482else
2483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484for as_dir in $PATH
2485do
2486  IFS=$as_save_IFS
2487  test -z "$as_dir" && as_dir=.
2488  for ac_exec_ext in '' $ac_executable_extensions; do
2489  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2490    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2491    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2492    break 2
2493  fi
2494done
2495done
2496IFS=$as_save_IFS
2497
2498fi
2499fi
2500CC=$ac_cv_prog_CC
2501if test -n "$CC"; then
2502  { echo "$as_me:$LINENO: result: $CC" >&5
2503echo "${ECHO_T}$CC" >&6; }
2504else
2505  { echo "$as_me:$LINENO: result: no" >&5
2506echo "${ECHO_T}no" >&6; }
2507fi
2508
2509
2510fi
2511if test -z "$ac_cv_prog_CC"; then
2512  ac_ct_CC=$CC
2513  # Extract the first word of "gcc", so it can be a program name with args.
2514set dummy gcc; ac_word=$2
2515{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2517if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2518  echo $ECHO_N "(cached) $ECHO_C" >&6
2519else
2520  if test -n "$ac_ct_CC"; then
2521  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2522else
2523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524for as_dir in $PATH
2525do
2526  IFS=$as_save_IFS
2527  test -z "$as_dir" && as_dir=.
2528  for ac_exec_ext in '' $ac_executable_extensions; do
2529  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2530    ac_cv_prog_ac_ct_CC="gcc"
2531    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2532    break 2
2533  fi
2534done
2535done
2536IFS=$as_save_IFS
2537
2538fi
2539fi
2540ac_ct_CC=$ac_cv_prog_ac_ct_CC
2541if test -n "$ac_ct_CC"; then
2542  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2543echo "${ECHO_T}$ac_ct_CC" >&6; }
2544else
2545  { echo "$as_me:$LINENO: result: no" >&5
2546echo "${ECHO_T}no" >&6; }
2547fi
2548
2549  if test "x$ac_ct_CC" = x; then
2550    CC=""
2551  else
2552    case $cross_compiling:$ac_tool_warned in
2553yes:)
2554{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2555whose name does not start with the host triplet.  If you think this
2556configuration is useful to you, please write to autoconf@gnu.org." >&5
2557echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2558whose name does not start with the host triplet.  If you think this
2559configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2560ac_tool_warned=yes ;;
2561esac
2562    CC=$ac_ct_CC
2563  fi
2564else
2565  CC="$ac_cv_prog_CC"
2566fi
2567
2568if test -z "$CC"; then
2569          if test -n "$ac_tool_prefix"; then
2570    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2571set dummy ${ac_tool_prefix}cc; ac_word=$2
2572{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2574if test "${ac_cv_prog_CC+set}" = set; then
2575  echo $ECHO_N "(cached) $ECHO_C" >&6
2576else
2577  if test -n "$CC"; then
2578  ac_cv_prog_CC="$CC" # Let the user override the test.
2579else
2580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581for as_dir in $PATH
2582do
2583  IFS=$as_save_IFS
2584  test -z "$as_dir" && as_dir=.
2585  for ac_exec_ext in '' $ac_executable_extensions; do
2586  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2587    ac_cv_prog_CC="${ac_tool_prefix}cc"
2588    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2589    break 2
2590  fi
2591done
2592done
2593IFS=$as_save_IFS
2594
2595fi
2596fi
2597CC=$ac_cv_prog_CC
2598if test -n "$CC"; then
2599  { echo "$as_me:$LINENO: result: $CC" >&5
2600echo "${ECHO_T}$CC" >&6; }
2601else
2602  { echo "$as_me:$LINENO: result: no" >&5
2603echo "${ECHO_T}no" >&6; }
2604fi
2605
2606
2607  fi
2608fi
2609if test -z "$CC"; then
2610  # Extract the first word of "cc", so it can be a program name with args.
2611set dummy cc; ac_word=$2
2612{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2614if test "${ac_cv_prog_CC+set}" = set; then
2615  echo $ECHO_N "(cached) $ECHO_C" >&6
2616else
2617  if test -n "$CC"; then
2618  ac_cv_prog_CC="$CC" # Let the user override the test.
2619else
2620  ac_prog_rejected=no
2621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622for as_dir in $PATH
2623do
2624  IFS=$as_save_IFS
2625  test -z "$as_dir" && as_dir=.
2626  for ac_exec_ext in '' $ac_executable_extensions; do
2627  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2628    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2629       ac_prog_rejected=yes
2630       continue
2631     fi
2632    ac_cv_prog_CC="cc"
2633    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2634    break 2
2635  fi
2636done
2637done
2638IFS=$as_save_IFS
2639
2640if test $ac_prog_rejected = yes; then
2641  # We found a bogon in the path, so make sure we never use it.
2642  set dummy $ac_cv_prog_CC
2643  shift
2644  if test $# != 0; then
2645    # We chose a different compiler from the bogus one.
2646    # However, it has the same basename, so the bogon will be chosen
2647    # first if we set CC to just the basename; use the full file name.
2648    shift
2649    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2650  fi
2651fi
2652fi
2653fi
2654CC=$ac_cv_prog_CC
2655if test -n "$CC"; then
2656  { echo "$as_me:$LINENO: result: $CC" >&5
2657echo "${ECHO_T}$CC" >&6; }
2658else
2659  { echo "$as_me:$LINENO: result: no" >&5
2660echo "${ECHO_T}no" >&6; }
2661fi
2662
2663
2664fi
2665if test -z "$CC"; then
2666  if test -n "$ac_tool_prefix"; then
2667  for ac_prog in cl.exe
2668  do
2669    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2670set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2671{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2673if test "${ac_cv_prog_CC+set}" = set; then
2674  echo $ECHO_N "(cached) $ECHO_C" >&6
2675else
2676  if test -n "$CC"; then
2677  ac_cv_prog_CC="$CC" # Let the user override the test.
2678else
2679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680for as_dir in $PATH
2681do
2682  IFS=$as_save_IFS
2683  test -z "$as_dir" && as_dir=.
2684  for ac_exec_ext in '' $ac_executable_extensions; do
2685  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2686    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2687    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2688    break 2
2689  fi
2690done
2691done
2692IFS=$as_save_IFS
2693
2694fi
2695fi
2696CC=$ac_cv_prog_CC
2697if test -n "$CC"; then
2698  { echo "$as_me:$LINENO: result: $CC" >&5
2699echo "${ECHO_T}$CC" >&6; }
2700else
2701  { echo "$as_me:$LINENO: result: no" >&5
2702echo "${ECHO_T}no" >&6; }
2703fi
2704
2705
2706    test -n "$CC" && break
2707  done
2708fi
2709if test -z "$CC"; then
2710  ac_ct_CC=$CC
2711  for ac_prog in cl.exe
2712do
2713  # Extract the first word of "$ac_prog", so it can be a program name with args.
2714set dummy $ac_prog; ac_word=$2
2715{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2717if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2718  echo $ECHO_N "(cached) $ECHO_C" >&6
2719else
2720  if test -n "$ac_ct_CC"; then
2721  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2722else
2723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724for as_dir in $PATH
2725do
2726  IFS=$as_save_IFS
2727  test -z "$as_dir" && as_dir=.
2728  for ac_exec_ext in '' $ac_executable_extensions; do
2729  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2730    ac_cv_prog_ac_ct_CC="$ac_prog"
2731    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2732    break 2
2733  fi
2734done
2735done
2736IFS=$as_save_IFS
2737
2738fi
2739fi
2740ac_ct_CC=$ac_cv_prog_ac_ct_CC
2741if test -n "$ac_ct_CC"; then
2742  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2743echo "${ECHO_T}$ac_ct_CC" >&6; }
2744else
2745  { echo "$as_me:$LINENO: result: no" >&5
2746echo "${ECHO_T}no" >&6; }
2747fi
2748
2749
2750  test -n "$ac_ct_CC" && break
2751done
2752
2753  if test "x$ac_ct_CC" = x; then
2754    CC=""
2755  else
2756    case $cross_compiling:$ac_tool_warned in
2757yes:)
2758{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2759whose name does not start with the host triplet.  If you think this
2760configuration is useful to you, please write to autoconf@gnu.org." >&5
2761echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2762whose name does not start with the host triplet.  If you think this
2763configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2764ac_tool_warned=yes ;;
2765esac
2766    CC=$ac_ct_CC
2767  fi
2768fi
2769
2770fi
2771
2772
2773test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2774See \`config.log' for more details." >&5
2775echo "$as_me: error: no acceptable C compiler found in \$PATH
2776See \`config.log' for more details." >&2;}
2777   { (exit 1); exit 1; }; }
2778
2779# Provide some information about the compiler.
2780echo "$as_me:$LINENO: checking for C compiler version" >&5
2781ac_compiler=`set X $ac_compile; echo $2`
2782{ (ac_try="$ac_compiler --version >&5"
2783case "(($ac_try" in
2784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785  *) ac_try_echo=$ac_try;;
2786esac
2787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2788  (eval "$ac_compiler --version >&5") 2>&5
2789  ac_status=$?
2790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791  (exit $ac_status); }
2792{ (ac_try="$ac_compiler -v >&5"
2793case "(($ac_try" in
2794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795  *) ac_try_echo=$ac_try;;
2796esac
2797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798  (eval "$ac_compiler -v >&5") 2>&5
2799  ac_status=$?
2800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801  (exit $ac_status); }
2802{ (ac_try="$ac_compiler -V >&5"
2803case "(($ac_try" in
2804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805  *) ac_try_echo=$ac_try;;
2806esac
2807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2808  (eval "$ac_compiler -V >&5") 2>&5
2809  ac_status=$?
2810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811  (exit $ac_status); }
2812
2813cat >conftest.$ac_ext <<_ACEOF
2814/* confdefs.h.  */
2815_ACEOF
2816cat confdefs.h >>conftest.$ac_ext
2817cat >>conftest.$ac_ext <<_ACEOF
2818/* end confdefs.h.  */
2819
2820int
2821main ()
2822{
2823
2824  ;
2825  return 0;
2826}
2827_ACEOF
2828ac_clean_files_save=$ac_clean_files
2829ac_clean_files="$ac_clean_files a.out a.exe b.out"
2830# Try to create an executable without -o first, disregard a.out.
2831# It will help us diagnose broken compilers, and finding out an intuition
2832# of exeext.
2833{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2834echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2835ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2836#
2837# List of possible output files, starting from the most likely.
2838# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2839# only as a last resort.  b.out is created by i960 compilers.
2840ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2841#
2842# The IRIX 6 linker writes into existing files which may not be
2843# executable, retaining their permissions.  Remove them first so a
2844# subsequent execution test works.
2845ac_rmfiles=
2846for ac_file in $ac_files
2847do
2848  case $ac_file in
2849    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2850    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2851  esac
2852done
2853rm -f $ac_rmfiles
2854
2855if { (ac_try="$ac_link_default"
2856case "(($ac_try" in
2857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858  *) ac_try_echo=$ac_try;;
2859esac
2860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2861  (eval "$ac_link_default") 2>&5
2862  ac_status=$?
2863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864  (exit $ac_status); }; then
2865  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2866# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2867# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2868# so that the user can short-circuit this test for compilers unknown to
2869# Autoconf.
2870for ac_file in $ac_files ''
2871do
2872  test -f "$ac_file" || continue
2873  case $ac_file in
2874    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2875	;;
2876    [ab].out )
2877	# We found the default executable, but exeext='' is most
2878	# certainly right.
2879	break;;
2880    *.* )
2881        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2882	then :; else
2883	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2884	fi
2885	# We set ac_cv_exeext here because the later test for it is not
2886	# safe: cross compilers may not add the suffix if given an `-o'
2887	# argument, so we may need to know it at that point already.
2888	# Even if this section looks crufty: it has the advantage of
2889	# actually working.
2890	break;;
2891    * )
2892	break;;
2893  esac
2894done
2895test "$ac_cv_exeext" = no && ac_cv_exeext=
2896
2897else
2898  ac_file=''
2899fi
2900
2901{ echo "$as_me:$LINENO: result: $ac_file" >&5
2902echo "${ECHO_T}$ac_file" >&6; }
2903if test -z "$ac_file"; then
2904  echo "$as_me: failed program was:" >&5
2905sed 's/^/| /' conftest.$ac_ext >&5
2906
2907{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2908See \`config.log' for more details." >&5
2909echo "$as_me: error: C compiler cannot create executables
2910See \`config.log' for more details." >&2;}
2911   { (exit 77); exit 77; }; }
2912fi
2913
2914ac_exeext=$ac_cv_exeext
2915
2916# Check that the compiler produces executables we can run.  If not, either
2917# the compiler is broken, or we cross compile.
2918{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2919echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2920# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2921# If not cross compiling, check that we can run a simple program.
2922if test "$cross_compiling" != yes; then
2923  if { ac_try='./$ac_file'
2924  { (case "(($ac_try" in
2925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926  *) ac_try_echo=$ac_try;;
2927esac
2928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2929  (eval "$ac_try") 2>&5
2930  ac_status=$?
2931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932  (exit $ac_status); }; }; then
2933    cross_compiling=no
2934  else
2935    if test "$cross_compiling" = maybe; then
2936	cross_compiling=yes
2937    else
2938	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2939If you meant to cross compile, use \`--host'.
2940See \`config.log' for more details." >&5
2941echo "$as_me: error: cannot run C compiled programs.
2942If you meant to cross compile, use \`--host'.
2943See \`config.log' for more details." >&2;}
2944   { (exit 1); exit 1; }; }
2945    fi
2946  fi
2947fi
2948{ echo "$as_me:$LINENO: result: yes" >&5
2949echo "${ECHO_T}yes" >&6; }
2950
2951rm -f a.out a.exe conftest$ac_cv_exeext b.out
2952ac_clean_files=$ac_clean_files_save
2953# Check that the compiler produces executables we can run.  If not, either
2954# the compiler is broken, or we cross compile.
2955{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2956echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2957{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2958echo "${ECHO_T}$cross_compiling" >&6; }
2959
2960{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2961echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2962if { (ac_try="$ac_link"
2963case "(($ac_try" in
2964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965  *) ac_try_echo=$ac_try;;
2966esac
2967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968  (eval "$ac_link") 2>&5
2969  ac_status=$?
2970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971  (exit $ac_status); }; then
2972  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2973# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2974# work properly (i.e., refer to `conftest.exe'), while it won't with
2975# `rm'.
2976for ac_file in conftest.exe conftest conftest.*; do
2977  test -f "$ac_file" || continue
2978  case $ac_file in
2979    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2980    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2981	  break;;
2982    * ) break;;
2983  esac
2984done
2985else
2986  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2987See \`config.log' for more details." >&5
2988echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2989See \`config.log' for more details." >&2;}
2990   { (exit 1); exit 1; }; }
2991fi
2992
2993rm -f conftest$ac_cv_exeext
2994{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2995echo "${ECHO_T}$ac_cv_exeext" >&6; }
2996
2997rm -f conftest.$ac_ext
2998EXEEXT=$ac_cv_exeext
2999ac_exeext=$EXEEXT
3000{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3001echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3002if test "${ac_cv_objext+set}" = set; then
3003  echo $ECHO_N "(cached) $ECHO_C" >&6
3004else
3005  cat >conftest.$ac_ext <<_ACEOF
3006/* confdefs.h.  */
3007_ACEOF
3008cat confdefs.h >>conftest.$ac_ext
3009cat >>conftest.$ac_ext <<_ACEOF
3010/* end confdefs.h.  */
3011
3012int
3013main ()
3014{
3015
3016  ;
3017  return 0;
3018}
3019_ACEOF
3020rm -f conftest.o conftest.obj
3021if { (ac_try="$ac_compile"
3022case "(($ac_try" in
3023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024  *) ac_try_echo=$ac_try;;
3025esac
3026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027  (eval "$ac_compile") 2>&5
3028  ac_status=$?
3029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030  (exit $ac_status); }; then
3031  for ac_file in conftest.o conftest.obj conftest.*; do
3032  test -f "$ac_file" || continue;
3033  case $ac_file in
3034    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3035    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3036       break;;
3037  esac
3038done
3039else
3040  echo "$as_me: failed program was:" >&5
3041sed 's/^/| /' conftest.$ac_ext >&5
3042
3043{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3044See \`config.log' for more details." >&5
3045echo "$as_me: error: cannot compute suffix of object files: cannot compile
3046See \`config.log' for more details." >&2;}
3047   { (exit 1); exit 1; }; }
3048fi
3049
3050rm -f conftest.$ac_cv_objext conftest.$ac_ext
3051fi
3052{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3053echo "${ECHO_T}$ac_cv_objext" >&6; }
3054OBJEXT=$ac_cv_objext
3055ac_objext=$OBJEXT
3056{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3057echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3058if test "${ac_cv_c_compiler_gnu+set}" = set; then
3059  echo $ECHO_N "(cached) $ECHO_C" >&6
3060else
3061  cat >conftest.$ac_ext <<_ACEOF
3062/* confdefs.h.  */
3063_ACEOF
3064cat confdefs.h >>conftest.$ac_ext
3065cat >>conftest.$ac_ext <<_ACEOF
3066/* end confdefs.h.  */
3067
3068int
3069main ()
3070{
3071#ifndef __GNUC__
3072       choke me
3073#endif
3074
3075  ;
3076  return 0;
3077}
3078_ACEOF
3079rm -f conftest.$ac_objext
3080if { (ac_try="$ac_compile"
3081case "(($ac_try" in
3082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083  *) ac_try_echo=$ac_try;;
3084esac
3085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086  (eval "$ac_compile") 2>conftest.er1
3087  ac_status=$?
3088  grep -v '^ *+' conftest.er1 >conftest.err
3089  rm -f conftest.er1
3090  cat conftest.err >&5
3091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092  (exit $ac_status); } && {
3093	 test -z "$ac_c_werror_flag" ||
3094	 test ! -s conftest.err
3095       } && test -s conftest.$ac_objext; then
3096  ac_compiler_gnu=yes
3097else
3098  echo "$as_me: failed program was:" >&5
3099sed 's/^/| /' conftest.$ac_ext >&5
3100
3101	ac_compiler_gnu=no
3102fi
3103
3104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3105ac_cv_c_compiler_gnu=$ac_compiler_gnu
3106
3107fi
3108{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3109echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3110GCC=`test $ac_compiler_gnu = yes && echo yes`
3111ac_test_CFLAGS=${CFLAGS+set}
3112ac_save_CFLAGS=$CFLAGS
3113{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3114echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3115if test "${ac_cv_prog_cc_g+set}" = set; then
3116  echo $ECHO_N "(cached) $ECHO_C" >&6
3117else
3118  ac_save_c_werror_flag=$ac_c_werror_flag
3119   ac_c_werror_flag=yes
3120   ac_cv_prog_cc_g=no
3121   CFLAGS="-g"
3122   cat >conftest.$ac_ext <<_ACEOF
3123/* confdefs.h.  */
3124_ACEOF
3125cat confdefs.h >>conftest.$ac_ext
3126cat >>conftest.$ac_ext <<_ACEOF
3127/* end confdefs.h.  */
3128
3129int
3130main ()
3131{
3132
3133  ;
3134  return 0;
3135}
3136_ACEOF
3137rm -f conftest.$ac_objext
3138if { (ac_try="$ac_compile"
3139case "(($ac_try" in
3140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141  *) ac_try_echo=$ac_try;;
3142esac
3143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144  (eval "$ac_compile") 2>conftest.er1
3145  ac_status=$?
3146  grep -v '^ *+' conftest.er1 >conftest.err
3147  rm -f conftest.er1
3148  cat conftest.err >&5
3149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150  (exit $ac_status); } && {
3151	 test -z "$ac_c_werror_flag" ||
3152	 test ! -s conftest.err
3153       } && test -s conftest.$ac_objext; then
3154  ac_cv_prog_cc_g=yes
3155else
3156  echo "$as_me: failed program was:" >&5
3157sed 's/^/| /' conftest.$ac_ext >&5
3158
3159	CFLAGS=""
3160      cat >conftest.$ac_ext <<_ACEOF
3161/* confdefs.h.  */
3162_ACEOF
3163cat confdefs.h >>conftest.$ac_ext
3164cat >>conftest.$ac_ext <<_ACEOF
3165/* end confdefs.h.  */
3166
3167int
3168main ()
3169{
3170
3171  ;
3172  return 0;
3173}
3174_ACEOF
3175rm -f conftest.$ac_objext
3176if { (ac_try="$ac_compile"
3177case "(($ac_try" in
3178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179  *) ac_try_echo=$ac_try;;
3180esac
3181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182  (eval "$ac_compile") 2>conftest.er1
3183  ac_status=$?
3184  grep -v '^ *+' conftest.er1 >conftest.err
3185  rm -f conftest.er1
3186  cat conftest.err >&5
3187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188  (exit $ac_status); } && {
3189	 test -z "$ac_c_werror_flag" ||
3190	 test ! -s conftest.err
3191       } && test -s conftest.$ac_objext; then
3192  :
3193else
3194  echo "$as_me: failed program was:" >&5
3195sed 's/^/| /' conftest.$ac_ext >&5
3196
3197	ac_c_werror_flag=$ac_save_c_werror_flag
3198	 CFLAGS="-g"
3199	 cat >conftest.$ac_ext <<_ACEOF
3200/* confdefs.h.  */
3201_ACEOF
3202cat confdefs.h >>conftest.$ac_ext
3203cat >>conftest.$ac_ext <<_ACEOF
3204/* end confdefs.h.  */
3205
3206int
3207main ()
3208{
3209
3210  ;
3211  return 0;
3212}
3213_ACEOF
3214rm -f conftest.$ac_objext
3215if { (ac_try="$ac_compile"
3216case "(($ac_try" in
3217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218  *) ac_try_echo=$ac_try;;
3219esac
3220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221  (eval "$ac_compile") 2>conftest.er1
3222  ac_status=$?
3223  grep -v '^ *+' conftest.er1 >conftest.err
3224  rm -f conftest.er1
3225  cat conftest.err >&5
3226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227  (exit $ac_status); } && {
3228	 test -z "$ac_c_werror_flag" ||
3229	 test ! -s conftest.err
3230       } && test -s conftest.$ac_objext; then
3231  ac_cv_prog_cc_g=yes
3232else
3233  echo "$as_me: failed program was:" >&5
3234sed 's/^/| /' conftest.$ac_ext >&5
3235
3236
3237fi
3238
3239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240fi
3241
3242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243fi
3244
3245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246   ac_c_werror_flag=$ac_save_c_werror_flag
3247fi
3248{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3249echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3250if test "$ac_test_CFLAGS" = set; then
3251  CFLAGS=$ac_save_CFLAGS
3252elif test $ac_cv_prog_cc_g = yes; then
3253  if test "$GCC" = yes; then
3254    CFLAGS="-g -O2"
3255  else
3256    CFLAGS="-g"
3257  fi
3258else
3259  if test "$GCC" = yes; then
3260    CFLAGS="-O2"
3261  else
3262    CFLAGS=
3263  fi
3264fi
3265{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3266echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3267if test "${ac_cv_prog_cc_c89+set}" = set; then
3268  echo $ECHO_N "(cached) $ECHO_C" >&6
3269else
3270  ac_cv_prog_cc_c89=no
3271ac_save_CC=$CC
3272cat >conftest.$ac_ext <<_ACEOF
3273/* confdefs.h.  */
3274_ACEOF
3275cat confdefs.h >>conftest.$ac_ext
3276cat >>conftest.$ac_ext <<_ACEOF
3277/* end confdefs.h.  */
3278#include <stdarg.h>
3279#include <stdio.h>
3280#include <sys/types.h>
3281#include <sys/stat.h>
3282/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3283struct buf { int x; };
3284FILE * (*rcsopen) (struct buf *, struct stat *, int);
3285static char *e (p, i)
3286     char **p;
3287     int i;
3288{
3289  return p[i];
3290}
3291static char *f (char * (*g) (char **, int), char **p, ...)
3292{
3293  char *s;
3294  va_list v;
3295  va_start (v,p);
3296  s = g (p, va_arg (v,int));
3297  va_end (v);
3298  return s;
3299}
3300
3301/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3302   function prototypes and stuff, but not '\xHH' hex character constants.
3303   These don't provoke an error unfortunately, instead are silently treated
3304   as 'x'.  The following induces an error, until -std is added to get
3305   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3306   array size at least.  It's necessary to write '\x00'==0 to get something
3307   that's true only with -std.  */
3308int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3309
3310/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3311   inside strings and character constants.  */
3312#define FOO(x) 'x'
3313int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3314
3315int test (int i, double x);
3316struct s1 {int (*f) (int a);};
3317struct s2 {int (*f) (double a);};
3318int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3319int argc;
3320char **argv;
3321int
3322main ()
3323{
3324return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3325  ;
3326  return 0;
3327}
3328_ACEOF
3329for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3330	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3331do
3332  CC="$ac_save_CC $ac_arg"
3333  rm -f conftest.$ac_objext
3334if { (ac_try="$ac_compile"
3335case "(($ac_try" in
3336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337  *) ac_try_echo=$ac_try;;
3338esac
3339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340  (eval "$ac_compile") 2>conftest.er1
3341  ac_status=$?
3342  grep -v '^ *+' conftest.er1 >conftest.err
3343  rm -f conftest.er1
3344  cat conftest.err >&5
3345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346  (exit $ac_status); } && {
3347	 test -z "$ac_c_werror_flag" ||
3348	 test ! -s conftest.err
3349       } && test -s conftest.$ac_objext; then
3350  ac_cv_prog_cc_c89=$ac_arg
3351else
3352  echo "$as_me: failed program was:" >&5
3353sed 's/^/| /' conftest.$ac_ext >&5
3354
3355
3356fi
3357
3358rm -f core conftest.err conftest.$ac_objext
3359  test "x$ac_cv_prog_cc_c89" != "xno" && break
3360done
3361rm -f conftest.$ac_ext
3362CC=$ac_save_CC
3363
3364fi
3365# AC_CACHE_VAL
3366case "x$ac_cv_prog_cc_c89" in
3367  x)
3368    { echo "$as_me:$LINENO: result: none needed" >&5
3369echo "${ECHO_T}none needed" >&6; } ;;
3370  xno)
3371    { echo "$as_me:$LINENO: result: unsupported" >&5
3372echo "${ECHO_T}unsupported" >&6; } ;;
3373  *)
3374    CC="$CC $ac_cv_prog_cc_c89"
3375    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3376echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3377esac
3378
3379
3380ac_ext=c
3381ac_cpp='$CPP $CPPFLAGS'
3382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384ac_compiler_gnu=$ac_cv_c_compiler_gnu
3385DEPDIR="${am__leading_dot}deps"
3386
3387ac_config_commands="$ac_config_commands depfiles"
3388
3389
3390am_make=${MAKE-make}
3391cat > confinc << 'END'
3392am__doit:
3393	@echo done
3394.PHONY: am__doit
3395END
3396# If we don't find an include directive, just comment out the code.
3397{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3398echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3399am__include="#"
3400am__quote=
3401_am_result=none
3402# First try GNU make style include.
3403echo "include confinc" > confmf
3404# We grep out `Entering directory' and `Leaving directory'
3405# messages which can occur if `w' ends up in MAKEFLAGS.
3406# In particular we don't look at `^make:' because GNU make might
3407# be invoked under some other name (usually "gmake"), in which
3408# case it prints its new name instead of `make'.
3409if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3410   am__include=include
3411   am__quote=
3412   _am_result=GNU
3413fi
3414# Now try BSD make style include.
3415if test "$am__include" = "#"; then
3416   echo '.include "confinc"' > confmf
3417   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3418      am__include=.include
3419      am__quote="\""
3420      _am_result=BSD
3421   fi
3422fi
3423
3424
3425{ echo "$as_me:$LINENO: result: $_am_result" >&5
3426echo "${ECHO_T}$_am_result" >&6; }
3427rm -f confinc confmf
3428
3429# Check whether --enable-dependency-tracking was given.
3430if test "${enable_dependency_tracking+set}" = set; then
3431  enableval=$enable_dependency_tracking;
3432fi
3433
3434if test "x$enable_dependency_tracking" != xno; then
3435  am_depcomp="$ac_aux_dir/depcomp"
3436  AMDEPBACKSLASH='\'
3437fi
3438 if test "x$enable_dependency_tracking" != xno; then
3439  AMDEP_TRUE=
3440  AMDEP_FALSE='#'
3441else
3442  AMDEP_TRUE='#'
3443  AMDEP_FALSE=
3444fi
3445
3446
3447
3448depcc="$CC"   am_compiler_list=
3449
3450{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3451echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3452if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3453  echo $ECHO_N "(cached) $ECHO_C" >&6
3454else
3455  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3456  # We make a subdir and do the tests there.  Otherwise we can end up
3457  # making bogus files that we don't know about and never remove.  For
3458  # instance it was reported that on HP-UX the gcc test will end up
3459  # making a dummy file named `D' -- because `-MD' means `put the output
3460  # in D'.
3461  mkdir conftest.dir
3462  # Copy depcomp to subdir because otherwise we won't find it if we're
3463  # using a relative directory.
3464  cp "$am_depcomp" conftest.dir
3465  cd conftest.dir
3466  # We will build objects and dependencies in a subdirectory because
3467  # it helps to detect inapplicable dependency modes.  For instance
3468  # both Tru64's cc and ICC support -MD to output dependencies as a
3469  # side effect of compilation, but ICC will put the dependencies in
3470  # the current directory while Tru64 will put them in the object
3471  # directory.
3472  mkdir sub
3473
3474  am_cv_CC_dependencies_compiler_type=none
3475  if test "$am_compiler_list" = ""; then
3476     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3477  fi
3478  for depmode in $am_compiler_list; do
3479    # Setup a source with many dependencies, because some compilers
3480    # like to wrap large dependency lists on column 80 (with \), and
3481    # we should not choose a depcomp mode which is confused by this.
3482    #
3483    # We need to recreate these files for each test, as the compiler may
3484    # overwrite some of them when testing with obscure command lines.
3485    # This happens at least with the AIX C compiler.
3486    : > sub/conftest.c
3487    for i in 1 2 3 4 5 6; do
3488      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3489      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3490      # Solaris 8's {/usr,}/bin/sh.
3491      touch sub/conftst$i.h
3492    done
3493    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3494
3495    case $depmode in
3496    nosideeffect)
3497      # after this tag, mechanisms are not by side-effect, so they'll
3498      # only be used when explicitly requested
3499      if test "x$enable_dependency_tracking" = xyes; then
3500	continue
3501      else
3502	break
3503      fi
3504      ;;
3505    none) break ;;
3506    esac
3507    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3508    # mode.  It turns out that the SunPro C++ compiler does not properly
3509    # handle `-M -o', and we need to detect this.
3510    if depmode=$depmode \
3511       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3512       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3513       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3514         >/dev/null 2>conftest.err &&
3515       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3516       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3517       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3518       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3519      # icc doesn't choke on unknown options, it will just issue warnings
3520      # or remarks (even with -Werror).  So we grep stderr for any message
3521      # that says an option was ignored or not supported.
3522      # When given -MP, icc 7.0 and 7.1 complain thusly:
3523      #   icc: Command line warning: ignoring option '-M'; no argument required
3524      # The diagnosis changed in icc 8.0:
3525      #   icc: Command line remark: option '-MP' not supported
3526      if (grep 'ignoring option' conftest.err ||
3527          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3528        am_cv_CC_dependencies_compiler_type=$depmode
3529        break
3530      fi
3531    fi
3532  done
3533
3534  cd ..
3535  rm -rf conftest.dir
3536else
3537  am_cv_CC_dependencies_compiler_type=none
3538fi
3539
3540fi
3541{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3542echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3543CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3544
3545 if
3546  test "x$enable_dependency_tracking" != xno \
3547  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3548  am__fastdepCC_TRUE=
3549  am__fastdepCC_FALSE='#'
3550else
3551  am__fastdepCC_TRUE='#'
3552  am__fastdepCC_FALSE=
3553fi
3554
3555
3556
3557# Check whether --with-cc was given.
3558if test "${with_cc+set}" = set; then
3559  withval=$with_cc; CC="$withval"
3560fi
3561
3562
3563{ echo "$as_me:$LINENO: checking for additional required compiler flags" >&5
3564echo $ECHO_N "checking for additional required compiler flags... $ECHO_C" >&6; }
3565
3566if test "$cross_compiling" = yes; then
3567  ADDCFLAGS=""
3568else
3569  cat >conftest.$ac_ext <<_ACEOF
3570/* confdefs.h.  */
3571_ACEOF
3572cat confdefs.h >>conftest.$ac_ext
3573cat >>conftest.$ac_ext <<_ACEOF
3574/* end confdefs.h.  */
3575#include <stdio.h>
3576  main() {
3577  #ifdef __SUNPRO_C
3578        exit(0);
3579  #else
3580        exit(1);
3581  #endif
3582  }
3583
3584_ACEOF
3585rm -f conftest$ac_exeext
3586if { (ac_try="$ac_link"
3587case "(($ac_try" in
3588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589  *) ac_try_echo=$ac_try;;
3590esac
3591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592  (eval "$ac_link") 2>&5
3593  ac_status=$?
3594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3596  { (case "(($ac_try" in
3597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598  *) ac_try_echo=$ac_try;;
3599esac
3600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601  (eval "$ac_try") 2>&5
3602  ac_status=$?
3603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604  (exit $ac_status); }; }; then
3605  ADDCFLAGS="-DYY_USE_PROTOS"
3606else
3607  echo "$as_me: program exited with status $ac_status" >&5
3608echo "$as_me: failed program was:" >&5
3609sed 's/^/| /' conftest.$ac_ext >&5
3610
3611( exit $ac_status )
3612ADDCFLAGS=""
3613fi
3614rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3615fi
3616
3617
3618echo $ADDCFLAGS
3619CFLAGS="$CFLAGS $ADDCFLAGS"
3620
3621
3622
3623
3624
3625for ac_func in strtoll strtoull strtoq strtouq
3626do
3627as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3628{ echo "$as_me:$LINENO: checking for $ac_func" >&5
3629echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3630if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3631  echo $ECHO_N "(cached) $ECHO_C" >&6
3632else
3633  cat >conftest.$ac_ext <<_ACEOF
3634/* confdefs.h.  */
3635_ACEOF
3636cat confdefs.h >>conftest.$ac_ext
3637cat >>conftest.$ac_ext <<_ACEOF
3638/* end confdefs.h.  */
3639/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3640   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3641#define $ac_func innocuous_$ac_func
3642
3643/* System header to define __stub macros and hopefully few prototypes,
3644    which can conflict with char $ac_func (); below.
3645    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3646    <limits.h> exists even on freestanding compilers.  */
3647
3648#ifdef __STDC__
3649# include <limits.h>
3650#else
3651# include <assert.h>
3652#endif
3653
3654#undef $ac_func
3655
3656/* Override any GCC internal prototype to avoid an error.
3657   Use char because int might match the return type of a GCC
3658   builtin and then its argument prototype would still apply.  */
3659#ifdef __cplusplus
3660extern "C"
3661#endif
3662char $ac_func ();
3663/* The GNU C library defines this for functions which it implements
3664    to always fail with ENOSYS.  Some functions are actually named
3665    something starting with __ and the normal name is an alias.  */
3666#if defined __stub_$ac_func || defined __stub___$ac_func
3667choke me
3668#endif
3669
3670int
3671main ()
3672{
3673return $ac_func ();
3674  ;
3675  return 0;
3676}
3677_ACEOF
3678rm -f conftest.$ac_objext conftest$ac_exeext
3679if { (ac_try="$ac_link"
3680case "(($ac_try" in
3681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682  *) ac_try_echo=$ac_try;;
3683esac
3684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3685  (eval "$ac_link") 2>conftest.er1
3686  ac_status=$?
3687  grep -v '^ *+' conftest.er1 >conftest.err
3688  rm -f conftest.er1
3689  cat conftest.err >&5
3690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691  (exit $ac_status); } && {
3692	 test -z "$ac_c_werror_flag" ||
3693	 test ! -s conftest.err
3694       } && test -s conftest$ac_exeext &&
3695       $as_test_x conftest$ac_exeext; then
3696  eval "$as_ac_var=yes"
3697else
3698  echo "$as_me: failed program was:" >&5
3699sed 's/^/| /' conftest.$ac_ext >&5
3700
3701	eval "$as_ac_var=no"
3702fi
3703
3704rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3705      conftest$ac_exeext conftest.$ac_ext
3706fi
3707ac_res=`eval echo '${'$as_ac_var'}'`
3708	       { echo "$as_me:$LINENO: result: $ac_res" >&5
3709echo "${ECHO_T}$ac_res" >&6; }
3710if test `eval echo '${'$as_ac_var'}'` = yes; then
3711  cat >>confdefs.h <<_ACEOF
3712#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3713_ACEOF
3714
3715fi
3716done
3717
3718
3719
3720for ac_func in timegm
3721do
3722as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3723{ echo "$as_me:$LINENO: checking for $ac_func" >&5
3724echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3725if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3726  echo $ECHO_N "(cached) $ECHO_C" >&6
3727else
3728  cat >conftest.$ac_ext <<_ACEOF
3729/* confdefs.h.  */
3730_ACEOF
3731cat confdefs.h >>conftest.$ac_ext
3732cat >>conftest.$ac_ext <<_ACEOF
3733/* end confdefs.h.  */
3734/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3735   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3736#define $ac_func innocuous_$ac_func
3737
3738/* System header to define __stub macros and hopefully few prototypes,
3739    which can conflict with char $ac_func (); below.
3740    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3741    <limits.h> exists even on freestanding compilers.  */
3742
3743#ifdef __STDC__
3744# include <limits.h>
3745#else
3746# include <assert.h>
3747#endif
3748
3749#undef $ac_func
3750
3751/* Override any GCC internal prototype to avoid an error.
3752   Use char because int might match the return type of a GCC
3753   builtin and then its argument prototype would still apply.  */
3754#ifdef __cplusplus
3755extern "C"
3756#endif
3757char $ac_func ();
3758/* The GNU C library defines this for functions which it implements
3759    to always fail with ENOSYS.  Some functions are actually named
3760    something starting with __ and the normal name is an alias.  */
3761#if defined __stub_$ac_func || defined __stub___$ac_func
3762choke me
3763#endif
3764
3765int
3766main ()
3767{
3768return $ac_func ();
3769  ;
3770  return 0;
3771}
3772_ACEOF
3773rm -f conftest.$ac_objext conftest$ac_exeext
3774if { (ac_try="$ac_link"
3775case "(($ac_try" in
3776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777  *) ac_try_echo=$ac_try;;
3778esac
3779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3780  (eval "$ac_link") 2>conftest.er1
3781  ac_status=$?
3782  grep -v '^ *+' conftest.er1 >conftest.err
3783  rm -f conftest.er1
3784  cat conftest.err >&5
3785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786  (exit $ac_status); } && {
3787	 test -z "$ac_c_werror_flag" ||
3788	 test ! -s conftest.err
3789       } && test -s conftest$ac_exeext &&
3790       $as_test_x conftest$ac_exeext; then
3791  eval "$as_ac_var=yes"
3792else
3793  echo "$as_me: failed program was:" >&5
3794sed 's/^/| /' conftest.$ac_ext >&5
3795
3796	eval "$as_ac_var=no"
3797fi
3798
3799rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3800      conftest$ac_exeext conftest.$ac_ext
3801fi
3802ac_res=`eval echo '${'$as_ac_var'}'`
3803	       { echo "$as_me:$LINENO: result: $ac_res" >&5
3804echo "${ECHO_T}$ac_res" >&6; }
3805if test `eval echo '${'$as_ac_var'}'` = yes; then
3806  cat >>confdefs.h <<_ACEOF
3807#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3808_ACEOF
3809
3810fi
3811done
3812
3813
3814
3815
3816
3817
3818
3819
3820for ac_func in vsnprintf snprintf asprintf asnprintf vasprintf vasnprintf
3821do
3822as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3823{ echo "$as_me:$LINENO: checking for $ac_func" >&5
3824echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3825if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3826  echo $ECHO_N "(cached) $ECHO_C" >&6
3827else
3828  cat >conftest.$ac_ext <<_ACEOF
3829/* confdefs.h.  */
3830_ACEOF
3831cat confdefs.h >>conftest.$ac_ext
3832cat >>conftest.$ac_ext <<_ACEOF
3833/* end confdefs.h.  */
3834/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3835   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3836#define $ac_func innocuous_$ac_func
3837
3838/* System header to define __stub macros and hopefully few prototypes,
3839    which can conflict with char $ac_func (); below.
3840    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3841    <limits.h> exists even on freestanding compilers.  */
3842
3843#ifdef __STDC__
3844# include <limits.h>
3845#else
3846# include <assert.h>
3847#endif
3848
3849#undef $ac_func
3850
3851/* Override any GCC internal prototype to avoid an error.
3852   Use char because int might match the return type of a GCC
3853   builtin and then its argument prototype would still apply.  */
3854#ifdef __cplusplus
3855extern "C"
3856#endif
3857char $ac_func ();
3858/* The GNU C library defines this for functions which it implements
3859    to always fail with ENOSYS.  Some functions are actually named
3860    something starting with __ and the normal name is an alias.  */
3861#if defined __stub_$ac_func || defined __stub___$ac_func
3862choke me
3863#endif
3864
3865int
3866main ()
3867{
3868return $ac_func ();
3869  ;
3870  return 0;
3871}
3872_ACEOF
3873rm -f conftest.$ac_objext conftest$ac_exeext
3874if { (ac_try="$ac_link"
3875case "(($ac_try" in
3876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877  *) ac_try_echo=$ac_try;;
3878esac
3879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3880  (eval "$ac_link") 2>conftest.er1
3881  ac_status=$?
3882  grep -v '^ *+' conftest.er1 >conftest.err
3883  rm -f conftest.er1
3884  cat conftest.err >&5
3885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886  (exit $ac_status); } && {
3887	 test -z "$ac_c_werror_flag" ||
3888	 test ! -s conftest.err
3889       } && test -s conftest$ac_exeext &&
3890       $as_test_x conftest$ac_exeext; then
3891  eval "$as_ac_var=yes"
3892else
3893  echo "$as_me: failed program was:" >&5
3894sed 's/^/| /' conftest.$ac_ext >&5
3895
3896	eval "$as_ac_var=no"
3897fi
3898
3899rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3900      conftest$ac_exeext conftest.$ac_ext
3901fi
3902ac_res=`eval echo '${'$as_ac_var'}'`
3903	       { echo "$as_me:$LINENO: result: $ac_res" >&5
3904echo "${ECHO_T}$ac_res" >&6; }
3905if test `eval echo '${'$as_ac_var'}'` = yes; then
3906  cat >>confdefs.h <<_ACEOF
3907#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3908_ACEOF
3909
3910fi
3911done
3912
3913
3914ac_ext=c
3915ac_cpp='$CPP $CPPFLAGS'
3916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918ac_compiler_gnu=$ac_cv_c_compiler_gnu
3919{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3920echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3921# On Suns, sometimes $CPP names a directory.
3922if test -n "$CPP" && test -d "$CPP"; then
3923  CPP=
3924fi
3925if test -z "$CPP"; then
3926  if test "${ac_cv_prog_CPP+set}" = set; then
3927  echo $ECHO_N "(cached) $ECHO_C" >&6
3928else
3929      # Double quotes because CPP needs to be expanded
3930    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3931    do
3932      ac_preproc_ok=false
3933for ac_c_preproc_warn_flag in '' yes
3934do
3935  # Use a header file that comes with gcc, so configuring glibc
3936  # with a fresh cross-compiler works.
3937  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3938  # <limits.h> exists even on freestanding compilers.
3939  # On the NeXT, cc -E runs the code through the compiler's parser,
3940  # not just through cpp. "Syntax error" is here to catch this case.
3941  cat >conftest.$ac_ext <<_ACEOF
3942/* confdefs.h.  */
3943_ACEOF
3944cat confdefs.h >>conftest.$ac_ext
3945cat >>conftest.$ac_ext <<_ACEOF
3946/* end confdefs.h.  */
3947#ifdef __STDC__
3948# include <limits.h>
3949#else
3950# include <assert.h>
3951#endif
3952		     Syntax error
3953_ACEOF
3954if { (ac_try="$ac_cpp conftest.$ac_ext"
3955case "(($ac_try" in
3956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957  *) ac_try_echo=$ac_try;;
3958esac
3959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3960  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3961  ac_status=$?
3962  grep -v '^ *+' conftest.er1 >conftest.err
3963  rm -f conftest.er1
3964  cat conftest.err >&5
3965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966  (exit $ac_status); } >/dev/null && {
3967	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3968	 test ! -s conftest.err
3969       }; then
3970  :
3971else
3972  echo "$as_me: failed program was:" >&5
3973sed 's/^/| /' conftest.$ac_ext >&5
3974
3975  # Broken: fails on valid input.
3976continue
3977fi
3978
3979rm -f conftest.err conftest.$ac_ext
3980
3981  # OK, works on sane cases.  Now check whether nonexistent headers
3982  # can be detected and how.
3983  cat >conftest.$ac_ext <<_ACEOF
3984/* confdefs.h.  */
3985_ACEOF
3986cat confdefs.h >>conftest.$ac_ext
3987cat >>conftest.$ac_ext <<_ACEOF
3988/* end confdefs.h.  */
3989#include <ac_nonexistent.h>
3990_ACEOF
3991if { (ac_try="$ac_cpp conftest.$ac_ext"
3992case "(($ac_try" in
3993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994  *) ac_try_echo=$ac_try;;
3995esac
3996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3997  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3998  ac_status=$?
3999  grep -v '^ *+' conftest.er1 >conftest.err
4000  rm -f conftest.er1
4001  cat conftest.err >&5
4002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003  (exit $ac_status); } >/dev/null && {
4004	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4005	 test ! -s conftest.err
4006       }; then
4007  # Broken: success on invalid input.
4008continue
4009else
4010  echo "$as_me: failed program was:" >&5
4011sed 's/^/| /' conftest.$ac_ext >&5
4012
4013  # Passes both tests.
4014ac_preproc_ok=:
4015break
4016fi
4017
4018rm -f conftest.err conftest.$ac_ext
4019
4020done
4021# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4022rm -f conftest.err conftest.$ac_ext
4023if $ac_preproc_ok; then
4024  break
4025fi
4026
4027    done
4028    ac_cv_prog_CPP=$CPP
4029
4030fi
4031  CPP=$ac_cv_prog_CPP
4032else
4033  ac_cv_prog_CPP=$CPP
4034fi
4035{ echo "$as_me:$LINENO: result: $CPP" >&5
4036echo "${ECHO_T}$CPP" >&6; }
4037ac_preproc_ok=false
4038for ac_c_preproc_warn_flag in '' yes
4039do
4040  # Use a header file that comes with gcc, so configuring glibc
4041  # with a fresh cross-compiler works.
4042  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4043  # <limits.h> exists even on freestanding compilers.
4044  # On the NeXT, cc -E runs the code through the compiler's parser,
4045  # not just through cpp. "Syntax error" is here to catch this case.
4046  cat >conftest.$ac_ext <<_ACEOF
4047/* confdefs.h.  */
4048_ACEOF
4049cat confdefs.h >>conftest.$ac_ext
4050cat >>conftest.$ac_ext <<_ACEOF
4051/* end confdefs.h.  */
4052#ifdef __STDC__
4053# include <limits.h>
4054#else
4055# include <assert.h>
4056#endif
4057		     Syntax error
4058_ACEOF
4059if { (ac_try="$ac_cpp conftest.$ac_ext"
4060case "(($ac_try" in
4061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062  *) ac_try_echo=$ac_try;;
4063esac
4064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4066  ac_status=$?
4067  grep -v '^ *+' conftest.er1 >conftest.err
4068  rm -f conftest.er1
4069  cat conftest.err >&5
4070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071  (exit $ac_status); } >/dev/null && {
4072	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4073	 test ! -s conftest.err
4074       }; then
4075  :
4076else
4077  echo "$as_me: failed program was:" >&5
4078sed 's/^/| /' conftest.$ac_ext >&5
4079
4080  # Broken: fails on valid input.
4081continue
4082fi
4083
4084rm -f conftest.err conftest.$ac_ext
4085
4086  # OK, works on sane cases.  Now check whether nonexistent headers
4087  # can be detected and how.
4088  cat >conftest.$ac_ext <<_ACEOF
4089/* confdefs.h.  */
4090_ACEOF
4091cat confdefs.h >>conftest.$ac_ext
4092cat >>conftest.$ac_ext <<_ACEOF
4093/* end confdefs.h.  */
4094#include <ac_nonexistent.h>
4095_ACEOF
4096if { (ac_try="$ac_cpp conftest.$ac_ext"
4097case "(($ac_try" in
4098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099  *) ac_try_echo=$ac_try;;
4100esac
4101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4103  ac_status=$?
4104  grep -v '^ *+' conftest.er1 >conftest.err
4105  rm -f conftest.er1
4106  cat conftest.err >&5
4107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108  (exit $ac_status); } >/dev/null && {
4109	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4110	 test ! -s conftest.err
4111       }; then
4112  # Broken: success on invalid input.
4113continue
4114else
4115  echo "$as_me: failed program was:" >&5
4116sed 's/^/| /' conftest.$ac_ext >&5
4117
4118  # Passes both tests.
4119ac_preproc_ok=:
4120break
4121fi
4122
4123rm -f conftest.err conftest.$ac_ext
4124
4125done
4126# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4127rm -f conftest.err conftest.$ac_ext
4128if $ac_preproc_ok; then
4129  :
4130else
4131  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4132See \`config.log' for more details." >&5
4133echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4134See \`config.log' for more details." >&2;}
4135   { (exit 1); exit 1; }; }
4136fi
4137
4138ac_ext=c
4139ac_cpp='$CPP $CPPFLAGS'
4140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4142ac_compiler_gnu=$ac_cv_c_compiler_gnu
4143
4144
4145{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4146echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4147if test "${ac_cv_path_GREP+set}" = set; then
4148  echo $ECHO_N "(cached) $ECHO_C" >&6
4149else
4150  # Extract the first word of "grep ggrep" to use in msg output
4151if test -z "$GREP"; then
4152set dummy grep ggrep; ac_prog_name=$2
4153if test "${ac_cv_path_GREP+set}" = set; then
4154  echo $ECHO_N "(cached) $ECHO_C" >&6
4155else
4156  ac_path_GREP_found=false
4157# Loop through the user's path and test for each of PROGNAME-LIST
4158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4160do
4161  IFS=$as_save_IFS
4162  test -z "$as_dir" && as_dir=.
4163  for ac_prog in grep ggrep; do
4164  for ac_exec_ext in '' $ac_executable_extensions; do
4165    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4166    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4167    # Check for GNU ac_path_GREP and select it if it is found.
4168  # Check for GNU $ac_path_GREP
4169case `"$ac_path_GREP" --version 2>&1` in
4170*GNU*)
4171  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4172*)
4173  ac_count=0
4174  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4175  while :
4176  do
4177    cat "conftest.in" "conftest.in" >"conftest.tmp"
4178    mv "conftest.tmp" "conftest.in"
4179    cp "conftest.in" "conftest.nl"
4180    echo 'GREP' >> "conftest.nl"
4181    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4182    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4183    ac_count=`expr $ac_count + 1`
4184    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4185      # Best one so far, save it but keep looking for a better one
4186      ac_cv_path_GREP="$ac_path_GREP"
4187      ac_path_GREP_max=$ac_count
4188    fi
4189    # 10*(2^10) chars as input seems more than enough
4190    test $ac_count -gt 10 && break
4191  done
4192  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4193esac
4194
4195
4196    $ac_path_GREP_found && break 3
4197  done
4198done
4199
4200done
4201IFS=$as_save_IFS
4202
4203
4204fi
4205
4206GREP="$ac_cv_path_GREP"
4207if test -z "$GREP"; then
4208  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4209echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4210   { (exit 1); exit 1; }; }
4211fi
4212
4213else
4214  ac_cv_path_GREP=$GREP
4215fi
4216
4217
4218fi
4219{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4220echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4221 GREP="$ac_cv_path_GREP"
4222
4223
4224{ echo "$as_me:$LINENO: checking for egrep" >&5
4225echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4226if test "${ac_cv_path_EGREP+set}" = set; then
4227  echo $ECHO_N "(cached) $ECHO_C" >&6
4228else
4229  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4230   then ac_cv_path_EGREP="$GREP -E"
4231   else
4232     # Extract the first word of "egrep" to use in msg output
4233if test -z "$EGREP"; then
4234set dummy egrep; ac_prog_name=$2
4235if test "${ac_cv_path_EGREP+set}" = set; then
4236  echo $ECHO_N "(cached) $ECHO_C" >&6
4237else
4238  ac_path_EGREP_found=false
4239# Loop through the user's path and test for each of PROGNAME-LIST
4240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4242do
4243  IFS=$as_save_IFS
4244  test -z "$as_dir" && as_dir=.
4245  for ac_prog in egrep; do
4246  for ac_exec_ext in '' $ac_executable_extensions; do
4247    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4248    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4249    # Check for GNU ac_path_EGREP and select it if it is found.
4250  # Check for GNU $ac_path_EGREP
4251case `"$ac_path_EGREP" --version 2>&1` in
4252*GNU*)
4253  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4254*)
4255  ac_count=0
4256  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4257  while :
4258  do
4259    cat "conftest.in" "conftest.in" >"conftest.tmp"
4260    mv "conftest.tmp" "conftest.in"
4261    cp "conftest.in" "conftest.nl"
4262    echo 'EGREP' >> "conftest.nl"
4263    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4264    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4265    ac_count=`expr $ac_count + 1`
4266    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4267      # Best one so far, save it but keep looking for a better one
4268      ac_cv_path_EGREP="$ac_path_EGREP"
4269      ac_path_EGREP_max=$ac_count
4270    fi
4271    # 10*(2^10) chars as input seems more than enough
4272    test $ac_count -gt 10 && break
4273  done
4274  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4275esac
4276
4277
4278    $ac_path_EGREP_found && break 3
4279  done
4280done
4281
4282done
4283IFS=$as_save_IFS
4284
4285
4286fi
4287
4288EGREP="$ac_cv_path_EGREP"
4289if test -z "$EGREP"; then
4290  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4291echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4292   { (exit 1); exit 1; }; }
4293fi
4294
4295else
4296  ac_cv_path_EGREP=$EGREP
4297fi
4298
4299
4300   fi
4301fi
4302{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4303echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4304 EGREP="$ac_cv_path_EGREP"
4305
4306
4307{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4308echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4309if test "${ac_cv_header_stdc+set}" = set; then
4310  echo $ECHO_N "(cached) $ECHO_C" >&6
4311else
4312  cat >conftest.$ac_ext <<_ACEOF
4313/* confdefs.h.  */
4314_ACEOF
4315cat confdefs.h >>conftest.$ac_ext
4316cat >>conftest.$ac_ext <<_ACEOF
4317/* end confdefs.h.  */
4318#include <stdlib.h>
4319#include <stdarg.h>
4320#include <string.h>
4321#include <float.h>
4322
4323int
4324main ()
4325{
4326
4327  ;
4328  return 0;
4329}
4330_ACEOF
4331rm -f conftest.$ac_objext
4332if { (ac_try="$ac_compile"
4333case "(($ac_try" in
4334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335  *) ac_try_echo=$ac_try;;
4336esac
4337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4338  (eval "$ac_compile") 2>conftest.er1
4339  ac_status=$?
4340  grep -v '^ *+' conftest.er1 >conftest.err
4341  rm -f conftest.er1
4342  cat conftest.err >&5
4343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344  (exit $ac_status); } && {
4345	 test -z "$ac_c_werror_flag" ||
4346	 test ! -s conftest.err
4347       } && test -s conftest.$ac_objext; then
4348  ac_cv_header_stdc=yes
4349else
4350  echo "$as_me: failed program was:" >&5
4351sed 's/^/| /' conftest.$ac_ext >&5
4352
4353	ac_cv_header_stdc=no
4354fi
4355
4356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4357
4358if test $ac_cv_header_stdc = yes; then
4359  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4360  cat >conftest.$ac_ext <<_ACEOF
4361/* confdefs.h.  */
4362_ACEOF
4363cat confdefs.h >>conftest.$ac_ext
4364cat >>conftest.$ac_ext <<_ACEOF
4365/* end confdefs.h.  */
4366#include <string.h>
4367
4368_ACEOF
4369if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4370  $EGREP "memchr" >/dev/null 2>&1; then
4371  :
4372else
4373  ac_cv_header_stdc=no
4374fi
4375rm -f conftest*
4376
4377fi
4378
4379if test $ac_cv_header_stdc = yes; then
4380  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4381  cat >conftest.$ac_ext <<_ACEOF
4382/* confdefs.h.  */
4383_ACEOF
4384cat confdefs.h >>conftest.$ac_ext
4385cat >>conftest.$ac_ext <<_ACEOF
4386/* end confdefs.h.  */
4387#include <stdlib.h>
4388
4389_ACEOF
4390if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4391  $EGREP "free" >/dev/null 2>&1; then
4392  :
4393else
4394  ac_cv_header_stdc=no
4395fi
4396rm -f conftest*
4397
4398fi
4399
4400if test $ac_cv_header_stdc = yes; then
4401  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4402  if test "$cross_compiling" = yes; then
4403  :
4404else
4405  cat >conftest.$ac_ext <<_ACEOF
4406/* confdefs.h.  */
4407_ACEOF
4408cat confdefs.h >>conftest.$ac_ext
4409cat >>conftest.$ac_ext <<_ACEOF
4410/* end confdefs.h.  */
4411#include <ctype.h>
4412#include <stdlib.h>
4413#if ((' ' & 0x0FF) == 0x020)
4414# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4415# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4416#else
4417# define ISLOWER(c) \
4418		   (('a' <= (c) && (c) <= 'i') \
4419		     || ('j' <= (c) && (c) <= 'r') \
4420		     || ('s' <= (c) && (c) <= 'z'))
4421# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4422#endif
4423
4424#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4425int
4426main ()
4427{
4428  int i;
4429  for (i = 0; i < 256; i++)
4430    if (XOR (islower (i), ISLOWER (i))
4431	|| toupper (i) != TOUPPER (i))
4432      return 2;
4433  return 0;
4434}
4435_ACEOF
4436rm -f conftest$ac_exeext
4437if { (ac_try="$ac_link"
4438case "(($ac_try" in
4439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440  *) ac_try_echo=$ac_try;;
4441esac
4442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4443  (eval "$ac_link") 2>&5
4444  ac_status=$?
4445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4447  { (case "(($ac_try" in
4448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449  *) ac_try_echo=$ac_try;;
4450esac
4451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4452  (eval "$ac_try") 2>&5
4453  ac_status=$?
4454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455  (exit $ac_status); }; }; then
4456  :
4457else
4458  echo "$as_me: program exited with status $ac_status" >&5
4459echo "$as_me: failed program was:" >&5
4460sed 's/^/| /' conftest.$ac_ext >&5
4461
4462( exit $ac_status )
4463ac_cv_header_stdc=no
4464fi
4465rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4466fi
4467
4468
4469fi
4470fi
4471{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4472echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4473if test $ac_cv_header_stdc = yes; then
4474
4475cat >>confdefs.h <<\_ACEOF
4476#define STDC_HEADERS 1
4477_ACEOF
4478
4479fi
4480
4481# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4492		  inttypes.h stdint.h unistd.h
4493do
4494as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4495{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4496echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4497if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4498  echo $ECHO_N "(cached) $ECHO_C" >&6
4499else
4500  cat >conftest.$ac_ext <<_ACEOF
4501/* confdefs.h.  */
4502_ACEOF
4503cat confdefs.h >>conftest.$ac_ext
4504cat >>conftest.$ac_ext <<_ACEOF
4505/* end confdefs.h.  */
4506$ac_includes_default
4507
4508#include <$ac_header>
4509_ACEOF
4510rm -f conftest.$ac_objext
4511if { (ac_try="$ac_compile"
4512case "(($ac_try" in
4513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514  *) ac_try_echo=$ac_try;;
4515esac
4516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4517  (eval "$ac_compile") 2>conftest.er1
4518  ac_status=$?
4519  grep -v '^ *+' conftest.er1 >conftest.err
4520  rm -f conftest.er1
4521  cat conftest.err >&5
4522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523  (exit $ac_status); } && {
4524	 test -z "$ac_c_werror_flag" ||
4525	 test ! -s conftest.err
4526       } && test -s conftest.$ac_objext; then
4527  eval "$as_ac_Header=yes"
4528else
4529  echo "$as_me: failed program was:" >&5
4530sed 's/^/| /' conftest.$ac_ext >&5
4531
4532	eval "$as_ac_Header=no"
4533fi
4534
4535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536fi
4537ac_res=`eval echo '${'$as_ac_Header'}'`
4538	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4539echo "${ECHO_T}$ac_res" >&6; }
4540if test `eval echo '${'$as_ac_Header'}'` = yes; then
4541  cat >>confdefs.h <<_ACEOF
4542#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4543_ACEOF
4544
4545fi
4546
4547done
4548
4549
4550
4551
4552
4553
4554
4555for ac_header in pwd.h unistd.h regex.h stdint.h limits.h
4556do
4557as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4558if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4559  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4560echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4561if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4562  echo $ECHO_N "(cached) $ECHO_C" >&6
4563fi
4564ac_res=`eval echo '${'$as_ac_Header'}'`
4565	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4566echo "${ECHO_T}$ac_res" >&6; }
4567else
4568  # Is the header compilable?
4569{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4570echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4571cat >conftest.$ac_ext <<_ACEOF
4572/* confdefs.h.  */
4573_ACEOF
4574cat confdefs.h >>conftest.$ac_ext
4575cat >>conftest.$ac_ext <<_ACEOF
4576/* end confdefs.h.  */
4577$ac_includes_default
4578#include <$ac_header>
4579_ACEOF
4580rm -f conftest.$ac_objext
4581if { (ac_try="$ac_compile"
4582case "(($ac_try" in
4583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4584  *) ac_try_echo=$ac_try;;
4585esac
4586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4587  (eval "$ac_compile") 2>conftest.er1
4588  ac_status=$?
4589  grep -v '^ *+' conftest.er1 >conftest.err
4590  rm -f conftest.er1
4591  cat conftest.err >&5
4592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593  (exit $ac_status); } && {
4594	 test -z "$ac_c_werror_flag" ||
4595	 test ! -s conftest.err
4596       } && test -s conftest.$ac_objext; then
4597  ac_header_compiler=yes
4598else
4599  echo "$as_me: failed program was:" >&5
4600sed 's/^/| /' conftest.$ac_ext >&5
4601
4602	ac_header_compiler=no
4603fi
4604
4605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4607echo "${ECHO_T}$ac_header_compiler" >&6; }
4608
4609# Is the header present?
4610{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4611echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4612cat >conftest.$ac_ext <<_ACEOF
4613/* confdefs.h.  */
4614_ACEOF
4615cat confdefs.h >>conftest.$ac_ext
4616cat >>conftest.$ac_ext <<_ACEOF
4617/* end confdefs.h.  */
4618#include <$ac_header>
4619_ACEOF
4620if { (ac_try="$ac_cpp conftest.$ac_ext"
4621case "(($ac_try" in
4622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623  *) ac_try_echo=$ac_try;;
4624esac
4625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4626  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4627  ac_status=$?
4628  grep -v '^ *+' conftest.er1 >conftest.err
4629  rm -f conftest.er1
4630  cat conftest.err >&5
4631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632  (exit $ac_status); } >/dev/null && {
4633	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4634	 test ! -s conftest.err
4635       }; then
4636  ac_header_preproc=yes
4637else
4638  echo "$as_me: failed program was:" >&5
4639sed 's/^/| /' conftest.$ac_ext >&5
4640
4641  ac_header_preproc=no
4642fi
4643
4644rm -f conftest.err conftest.$ac_ext
4645{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4646echo "${ECHO_T}$ac_header_preproc" >&6; }
4647
4648# So?  What about this header?
4649case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4650  yes:no: )
4651    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4652echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4653    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4654echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4655    ac_header_preproc=yes
4656    ;;
4657  no:yes:* )
4658    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4659echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4660    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4661echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4662    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4663echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4664    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4665echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4666    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4667echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4668    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4669echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4670
4671    ;;
4672esac
4673{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4675if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4676  echo $ECHO_N "(cached) $ECHO_C" >&6
4677else
4678  eval "$as_ac_Header=\$ac_header_preproc"
4679fi
4680ac_res=`eval echo '${'$as_ac_Header'}'`
4681	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4682echo "${ECHO_T}$ac_res" >&6; }
4683
4684fi
4685if test `eval echo '${'$as_ac_Header'}'` = yes; then
4686  cat >>confdefs.h <<_ACEOF
4687#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4688_ACEOF
4689
4690fi
4691
4692done
4693
4694
4695# In case regex is not in libc
4696{ echo "$as_me:$LINENO: checking for regexec in -lc" >&5
4697echo $ECHO_N "checking for regexec in -lc... $ECHO_C" >&6; }
4698if test "${ac_cv_lib_c_regexec+set}" = set; then
4699  echo $ECHO_N "(cached) $ECHO_C" >&6
4700else
4701  ac_check_lib_save_LIBS=$LIBS
4702LIBS="-lc  $LIBS"
4703cat >conftest.$ac_ext <<_ACEOF
4704/* confdefs.h.  */
4705_ACEOF
4706cat confdefs.h >>conftest.$ac_ext
4707cat >>conftest.$ac_ext <<_ACEOF
4708/* end confdefs.h.  */
4709
4710/* Override any GCC internal prototype to avoid an error.
4711   Use char because int might match the return type of a GCC
4712   builtin and then its argument prototype would still apply.  */
4713#ifdef __cplusplus
4714extern "C"
4715#endif
4716char regexec ();
4717int
4718main ()
4719{
4720return regexec ();
4721  ;
4722  return 0;
4723}
4724_ACEOF
4725rm -f conftest.$ac_objext conftest$ac_exeext
4726if { (ac_try="$ac_link"
4727case "(($ac_try" in
4728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729  *) ac_try_echo=$ac_try;;
4730esac
4731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4732  (eval "$ac_link") 2>conftest.er1
4733  ac_status=$?
4734  grep -v '^ *+' conftest.er1 >conftest.err
4735  rm -f conftest.er1
4736  cat conftest.err >&5
4737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738  (exit $ac_status); } && {
4739	 test -z "$ac_c_werror_flag" ||
4740	 test ! -s conftest.err
4741       } && test -s conftest$ac_exeext &&
4742       $as_test_x conftest$ac_exeext; then
4743  ac_cv_lib_c_regexec=yes
4744else
4745  echo "$as_me: failed program was:" >&5
4746sed 's/^/| /' conftest.$ac_ext >&5
4747
4748	ac_cv_lib_c_regexec=no
4749fi
4750
4751rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4752      conftest$ac_exeext conftest.$ac_ext
4753LIBS=$ac_check_lib_save_LIBS
4754fi
4755{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_regexec" >&5
4756echo "${ECHO_T}$ac_cv_lib_c_regexec" >&6; }
4757if test $ac_cv_lib_c_regexec = yes; then
4758  LDFLAGS="$LDFLAGS"
4759else
4760
4761    { echo "$as_me:$LINENO: checking for regexec in -lrxspencer" >&5
4762echo $ECHO_N "checking for regexec in -lrxspencer... $ECHO_C" >&6; }
4763if test "${ac_cv_lib_rxspencer_regexec+set}" = set; then
4764  echo $ECHO_N "(cached) $ECHO_C" >&6
4765else
4766  ac_check_lib_save_LIBS=$LIBS
4767LIBS="-lrxspencer  $LIBS"
4768cat >conftest.$ac_ext <<_ACEOF
4769/* confdefs.h.  */
4770_ACEOF
4771cat confdefs.h >>conftest.$ac_ext
4772cat >>conftest.$ac_ext <<_ACEOF
4773/* end confdefs.h.  */
4774
4775/* Override any GCC internal prototype to avoid an error.
4776   Use char because int might match the return type of a GCC
4777   builtin and then its argument prototype would still apply.  */
4778#ifdef __cplusplus
4779extern "C"
4780#endif
4781char regexec ();
4782int
4783main ()
4784{
4785return regexec ();
4786  ;
4787  return 0;
4788}
4789_ACEOF
4790rm -f conftest.$ac_objext conftest$ac_exeext
4791if { (ac_try="$ac_link"
4792case "(($ac_try" in
4793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4794  *) ac_try_echo=$ac_try;;
4795esac
4796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4797  (eval "$ac_link") 2>conftest.er1
4798  ac_status=$?
4799  grep -v '^ *+' conftest.er1 >conftest.err
4800  rm -f conftest.er1
4801  cat conftest.err >&5
4802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803  (exit $ac_status); } && {
4804	 test -z "$ac_c_werror_flag" ||
4805	 test ! -s conftest.err
4806       } && test -s conftest$ac_exeext &&
4807       $as_test_x conftest$ac_exeext; then
4808  ac_cv_lib_rxspencer_regexec=yes
4809else
4810  echo "$as_me: failed program was:" >&5
4811sed 's/^/| /' conftest.$ac_ext >&5
4812
4813	ac_cv_lib_rxspencer_regexec=no
4814fi
4815
4816rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4817      conftest$ac_exeext conftest.$ac_ext
4818LIBS=$ac_check_lib_save_LIBS
4819fi
4820{ echo "$as_me:$LINENO: result: $ac_cv_lib_rxspencer_regexec" >&5
4821echo "${ECHO_T}$ac_cv_lib_rxspencer_regexec" >&6; }
4822if test $ac_cv_lib_rxspencer_regexec = yes; then
4823  LDFLAGS="$LDFLAGS -lrxspencer"
4824else
4825
4826        { echo "$as_me:$LINENO: checking for regexec in -lregex" >&5
4827echo $ECHO_N "checking for regexec in -lregex... $ECHO_C" >&6; }
4828if test "${ac_cv_lib_regex_regexec+set}" = set; then
4829  echo $ECHO_N "(cached) $ECHO_C" >&6
4830else
4831  ac_check_lib_save_LIBS=$LIBS
4832LIBS="-lregex  $LIBS"
4833cat >conftest.$ac_ext <<_ACEOF
4834/* confdefs.h.  */
4835_ACEOF
4836cat confdefs.h >>conftest.$ac_ext
4837cat >>conftest.$ac_ext <<_ACEOF
4838/* end confdefs.h.  */
4839
4840/* Override any GCC internal prototype to avoid an error.
4841   Use char because int might match the return type of a GCC
4842   builtin and then its argument prototype would still apply.  */
4843#ifdef __cplusplus
4844extern "C"
4845#endif
4846char regexec ();
4847int
4848main ()
4849{
4850return regexec ();
4851  ;
4852  return 0;
4853}
4854_ACEOF
4855rm -f conftest.$ac_objext conftest$ac_exeext
4856if { (ac_try="$ac_link"
4857case "(($ac_try" in
4858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859  *) ac_try_echo=$ac_try;;
4860esac
4861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4862  (eval "$ac_link") 2>conftest.er1
4863  ac_status=$?
4864  grep -v '^ *+' conftest.er1 >conftest.err
4865  rm -f conftest.er1
4866  cat conftest.err >&5
4867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868  (exit $ac_status); } && {
4869	 test -z "$ac_c_werror_flag" ||
4870	 test ! -s conftest.err
4871       } && test -s conftest$ac_exeext &&
4872       $as_test_x conftest$ac_exeext; then
4873  ac_cv_lib_regex_regexec=yes
4874else
4875  echo "$as_me: failed program was:" >&5
4876sed 's/^/| /' conftest.$ac_ext >&5
4877
4878	ac_cv_lib_regex_regexec=no
4879fi
4880
4881rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4882      conftest$ac_exeext conftest.$ac_ext
4883LIBS=$ac_check_lib_save_LIBS
4884fi
4885{ echo "$as_me:$LINENO: result: $ac_cv_lib_regex_regexec" >&5
4886echo "${ECHO_T}$ac_cv_lib_regex_regexec" >&6; }
4887if test $ac_cv_lib_regex_regexec = yes; then
4888  LDFLAGS="$LDFLAGS -lregex"
4889fi
4890
4891
4892fi
4893
4894
4895fi
4896
4897
4898if test "x$prefix" = "xNONE" ; then
4899  prefix=/usr/local
4900fi
4901
4902
4903# Check whether --with-mibdir was given.
4904if test "${with_mibdir+set}" = set; then
4905  withval=$with_mibdir; mibdir="$withval"
4906else
4907  mibdir="$prefix/share/mibs"
4908fi
4909
4910
4911
4912# Check whether --with-pibdir was given.
4913if test "${with_pibdir+set}" = set; then
4914  withval=$with_pibdir; pibdir="$withval"
4915else
4916  pibdir="$prefix/share/pibs"
4917fi
4918
4919
4920
4921# Check whether --with-smipath was given.
4922if test "${with_smipath+set}" = set; then
4923  withval=$with_smipath; smipath="$withval"
4924else
4925  smipath="$mibdir/ietf:$mibdir/iana:$mibdir/irtf:$mibdir/site:$mibdir/tubs:$pibdir/ietf:$pibdir/site:$pibdir/tubs"
4926fi
4927
4928
4929
4930cat >>confdefs.h <<_ACEOF
4931#define DEFAULT_SMIPATH "$smipath"
4932_ACEOF
4933
4934
4935
4936# Check whether --with-pathseparator was given.
4937if test "${with_pathseparator+set}" = set; then
4938  withval=$with_pathseparator; pathseparator="$withval"
4939else
4940  pathseparator=""
4941fi
4942
4943
4944
4945# Check whether --with-dirseparator was given.
4946if test "${with_dirseparator+set}" = set; then
4947  withval=$with_dirseparator; dirseparator="$withval"
4948else
4949  dirseparator=""
4950fi
4951
4952
4953{ echo "$as_me:$LINENO: checking for path separator character" >&5
4954echo $ECHO_N "checking for path separator character... $ECHO_C" >&6; }
4955if test "$pathseparator" = "" ; then
4956  if test "$cross_compiling" = yes; then
4957  pathseparator=":"
4958else
4959  cat >conftest.$ac_ext <<_ACEOF
4960/* confdefs.h.  */
4961_ACEOF
4962cat confdefs.h >>conftest.$ac_ext
4963cat >>conftest.$ac_ext <<_ACEOF
4964/* end confdefs.h.  */
4965#include <stdio.h>
4966    main() {
4967    #ifdef _WIN32
4968	  exit(0);
4969    #else
4970	  exit(1);
4971    #endif
4972    }
4973
4974_ACEOF
4975rm -f conftest$ac_exeext
4976if { (ac_try="$ac_link"
4977case "(($ac_try" in
4978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979  *) ac_try_echo=$ac_try;;
4980esac
4981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4982  (eval "$ac_link") 2>&5
4983  ac_status=$?
4984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4986  { (case "(($ac_try" in
4987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4988  *) ac_try_echo=$ac_try;;
4989esac
4990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4991  (eval "$ac_try") 2>&5
4992  ac_status=$?
4993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994  (exit $ac_status); }; }; then
4995  pathseparator=";"
4996else
4997  echo "$as_me: program exited with status $ac_status" >&5
4998echo "$as_me: failed program was:" >&5
4999sed 's/^/| /' conftest.$ac_ext >&5
5000
5001( exit $ac_status )
5002pathseparator=":"
5003fi
5004rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5005fi
5006
5007
5008fi
5009echo $pathseparator
5010
5011{ echo "$as_me:$LINENO: checking for dir separator character" >&5
5012echo $ECHO_N "checking for dir separator character... $ECHO_C" >&6; }
5013if test "$dirseparator" = "" ; then
5014  if test "$cross_compiling" = yes; then
5015  dirseparator="/"
5016else
5017  cat >conftest.$ac_ext <<_ACEOF
5018/* confdefs.h.  */
5019_ACEOF
5020cat confdefs.h >>conftest.$ac_ext
5021cat >>conftest.$ac_ext <<_ACEOF
5022/* end confdefs.h.  */
5023#include <stdio.h>
5024    main() {
5025    #ifdef _WIN32
5026	  exit(0);
5027    #else
5028	  exit(1);
5029    #endif
5030    }
5031
5032_ACEOF
5033rm -f conftest$ac_exeext
5034if { (ac_try="$ac_link"
5035case "(($ac_try" in
5036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5037  *) ac_try_echo=$ac_try;;
5038esac
5039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5040  (eval "$ac_link") 2>&5
5041  ac_status=$?
5042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5044  { (case "(($ac_try" in
5045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5046  *) ac_try_echo=$ac_try;;
5047esac
5048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5049  (eval "$ac_try") 2>&5
5050  ac_status=$?
5051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052  (exit $ac_status); }; }; then
5053  dirseparator="\\\\"
5054else
5055  echo "$as_me: program exited with status $ac_status" >&5
5056echo "$as_me: failed program was:" >&5
5057sed 's/^/| /' conftest.$ac_ext >&5
5058
5059( exit $ac_status )
5060dirseparator="/"
5061fi
5062rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5063fi
5064
5065
5066fi
5067echo $dirseparator
5068
5069
5070cat >>confdefs.h <<_ACEOF
5071#define PATH_SEPARATOR '$pathseparator'
5072_ACEOF
5073
5074
5075
5076cat >>confdefs.h <<_ACEOF
5077#define DIR_SEPARATOR '$dirseparator'
5078_ACEOF
5079
5080
5081
5082{ echo "$as_me:$LINENO: checking for 64 bit types" >&5
5083echo $ECHO_N "checking for 64 bit types... $ECHO_C" >&6; }
5084#
5085# Note that int64_min is defined as -9223372036854775807LL and NOT as
5086# -9223372036854775808LL. gcc (version 2.95.4 and others) complains with
5087# "warning: decimal constant is so large that it is unsigned"
5088# if used with the (correct) value -9223372036854775808LL.
5089#
5090if test "$cross_compiling" = yes; then
5091  uint64_type="unsigned long long"; int64_type="long long";
5092    uint64_format="%llu"; int64_format="%lld";
5093    uint64_max="18446744073709551615ULL";
5094    int64_min="-9223372036854775807LL"; int64_max="9223372036854775807LL"
5095
5096else
5097  cat >conftest.$ac_ext <<_ACEOF
5098/* confdefs.h.  */
5099_ACEOF
5100cat confdefs.h >>conftest.$ac_ext
5101cat >>conftest.$ac_ext <<_ACEOF
5102/* end confdefs.h.  */
5103#include <stdio.h>
5104      main() {
5105	  long long ll;
5106	  unsigned long long ull;
5107	  exit(0);
5108      }
5109
5110_ACEOF
5111rm -f conftest$ac_exeext
5112if { (ac_try="$ac_link"
5113case "(($ac_try" in
5114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115  *) ac_try_echo=$ac_try;;
5116esac
5117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5118  (eval "$ac_link") 2>&5
5119  ac_status=$?
5120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5122  { (case "(($ac_try" in
5123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5124  *) ac_try_echo=$ac_try;;
5125esac
5126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5127  (eval "$ac_try") 2>&5
5128  ac_status=$?
5129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130  (exit $ac_status); }; }; then
5131  uint64_type="unsigned long long"; int64_type="long long";
5132    uint64_format="%llu"; int64_format="%lld";
5133    uint64_max="18446744073709551615ULL";
5134    int64_min="-9223372036854775807LL"; int64_max="9223372036854775807LL"
5135
5136else
5137  echo "$as_me: program exited with status $ac_status" >&5
5138echo "$as_me: failed program was:" >&5
5139sed 's/^/| /' conftest.$ac_ext >&5
5140
5141( exit $ac_status )
5142uint64_type="unsigned long"; int64_type="long";
5143    uint64_format="%lu"; int64_format="%ld";
5144    uint64_max="4294967295";
5145    int64_min="-2147483648"; int64_max="2147483647"
5146
5147fi
5148rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5149fi
5150
5151
5152echo $int64_type/$int64_format, etc.
5153
5154UINT64_TYPE=$uint64_type
5155INT64_TYPE=$int64_type
5156
5157cat >>confdefs.h <<_ACEOF
5158#define UINT64_FORMAT "$uint64_format"
5159_ACEOF
5160
5161
5162cat >>confdefs.h <<_ACEOF
5163#define INT64_FORMAT "$int64_format"
5164_ACEOF
5165
5166
5167cat >>confdefs.h <<_ACEOF
5168#define LIBSMI_UINT64_MAX $uint64_max
5169_ACEOF
5170
5171
5172cat >>confdefs.h <<_ACEOF
5173#define LIBSMI_INT64_MIN $int64_min
5174_ACEOF
5175
5176
5177cat >>confdefs.h <<_ACEOF
5178#define LIBSMI_INT64_MAX $int64_max
5179_ACEOF
5180
5181
5182
5183# Check whether --enable-dmalloc was given.
5184if test "${enable_dmalloc+set}" = set; then
5185  enableval=$enable_dmalloc; LIBS="$LIBS -ldmalloc"
5186
5187cat >>confdefs.h <<\_ACEOF
5188#define HAVE_DMALLOC_H 1
5189_ACEOF
5190
5191fi
5192
5193
5194
5195cat >>confdefs.h <<\_ACEOF
5196#define BACKEND_SMI 1
5197_ACEOF
5198
5199# Check whether --enable-smi was given.
5200if test "${enable_smi+set}" = set; then
5201  enableval=$enable_smi;
5202cat >>confdefs.h <<\_ACEOF
5203#define BACKEND_SMI 1
5204_ACEOF
5205
5206fi
5207
5208
5209# Check whether --enable-sming was given.
5210if test "${enable_sming+set}" = set; then
5211  enableval=$enable_sming;
5212cat >>confdefs.h <<\_ACEOF
5213#define BACKEND_SMING 0
5214_ACEOF
5215
5216fi
5217
5218
5219# Extract the first word of ""flex"", so it can be a program name with args.
5220set dummy "flex"; ac_word=$2
5221{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5223if test "${ac_cv_path_FLEX+set}" = set; then
5224  echo $ECHO_N "(cached) $ECHO_C" >&6
5225else
5226  case $FLEX in
5227  [\\/]* | ?:[\\/]*)
5228  ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
5229  ;;
5230  *)
5231  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232for as_dir in $PATH
5233do
5234  IFS=$as_save_IFS
5235  test -z "$as_dir" && as_dir=.
5236  for ac_exec_ext in '' $ac_executable_extensions; do
5237  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5238    ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
5239    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5240    break 2
5241  fi
5242done
5243done
5244IFS=$as_save_IFS
5245
5246  ;;
5247esac
5248fi
5249FLEX=$ac_cv_path_FLEX
5250if test -n "$FLEX"; then
5251  { echo "$as_me:$LINENO: result: $FLEX" >&5
5252echo "${ECHO_T}$FLEX" >&6; }
5253else
5254  { echo "$as_me:$LINENO: result: no" >&5
5255echo "${ECHO_T}no" >&6; }
5256fi
5257
5258
5259if test -z "${FLEX}" ; then
5260  echo "NOTE: We will not be able to build scanner C code from flex sources."
5261fi
5262
5263# Extract the first word of ""bison"", so it can be a program name with args.
5264set dummy "bison"; ac_word=$2
5265{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5267if test "${ac_cv_path_BISON+set}" = set; then
5268  echo $ECHO_N "(cached) $ECHO_C" >&6
5269else
5270  case $BISON in
5271  [\\/]* | ?:[\\/]*)
5272  ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
5273  ;;
5274  *)
5275  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276for as_dir in $PATH
5277do
5278  IFS=$as_save_IFS
5279  test -z "$as_dir" && as_dir=.
5280  for ac_exec_ext in '' $ac_executable_extensions; do
5281  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282    ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
5283    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5284    break 2
5285  fi
5286done
5287done
5288IFS=$as_save_IFS
5289
5290  ;;
5291esac
5292fi
5293BISON=$ac_cv_path_BISON
5294if test -n "$BISON"; then
5295  { echo "$as_me:$LINENO: result: $BISON" >&5
5296echo "${ECHO_T}$BISON" >&6; }
5297else
5298  { echo "$as_me:$LINENO: result: no" >&5
5299echo "${ECHO_T}no" >&6; }
5300fi
5301
5302
5303if test -z "${BISON}" ; then
5304  echo "NOTE: We will not be able to build parser C code from bison sources."
5305fi
5306
5307# Extract the first word of ""bash"", so it can be a program name with args.
5308set dummy "bash"; ac_word=$2
5309{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5311if test "${ac_cv_path_BASH+set}" = set; then
5312  echo $ECHO_N "(cached) $ECHO_C" >&6
5313else
5314  case $BASH in
5315  [\\/]* | ?:[\\/]*)
5316  ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5317  ;;
5318  *)
5319  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320for as_dir in $PATH
5321do
5322  IFS=$as_save_IFS
5323  test -z "$as_dir" && as_dir=.
5324  for ac_exec_ext in '' $ac_executable_extensions; do
5325  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5326    ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5327    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5328    break 2
5329  fi
5330done
5331done
5332IFS=$as_save_IFS
5333
5334  ;;
5335esac
5336fi
5337BASH=$ac_cv_path_BASH
5338if test -n "$BASH"; then
5339  { echo "$as_me:$LINENO: result: $BASH" >&5
5340echo "${ECHO_T}$BASH" >&6; }
5341else
5342  { echo "$as_me:$LINENO: result: no" >&5
5343echo "${ECHO_T}no" >&6; }
5344fi
5345
5346
5347# Extract the first word of ""sh"", so it can be a program name with args.
5348set dummy "sh"; ac_word=$2
5349{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5351if test "${ac_cv_path_SH+set}" = set; then
5352  echo $ECHO_N "(cached) $ECHO_C" >&6
5353else
5354  case $SH in
5355  [\\/]* | ?:[\\/]*)
5356  ac_cv_path_SH="$SH" # Let the user override the test with a path.
5357  ;;
5358  *)
5359  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360for as_dir in $PATH
5361do
5362  IFS=$as_save_IFS
5363  test -z "$as_dir" && as_dir=.
5364  for ac_exec_ext in '' $ac_executable_extensions; do
5365  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5366    ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
5367    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5368    break 2
5369  fi
5370done
5371done
5372IFS=$as_save_IFS
5373
5374  ;;
5375esac
5376fi
5377SH=$ac_cv_path_SH
5378if test -n "$SH"; then
5379  { echo "$as_me:$LINENO: result: $SH" >&5
5380echo "${ECHO_T}$SH" >&6; }
5381else
5382  { echo "$as_me:$LINENO: result: no" >&5
5383echo "${ECHO_T}no" >&6; }
5384fi
5385
5386
5387# Extract the first word of "awk", so it can be a program name with args.
5388set dummy awk; ac_word=$2
5389{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5391if test "${ac_cv_path_AWK+set}" = set; then
5392  echo $ECHO_N "(cached) $ECHO_C" >&6
5393else
5394  case $AWK in
5395  [\\/]* | ?:[\\/]*)
5396  ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5397  ;;
5398  *)
5399  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400for as_dir in $PATH
5401do
5402  IFS=$as_save_IFS
5403  test -z "$as_dir" && as_dir=.
5404  for ac_exec_ext in '' $ac_executable_extensions; do
5405  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5406    ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5407    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5408    break 2
5409  fi
5410done
5411done
5412IFS=$as_save_IFS
5413
5414  ;;
5415esac
5416fi
5417AWK=$ac_cv_path_AWK
5418if test -n "$AWK"; then
5419  { echo "$as_me:$LINENO: result: $AWK" >&5
5420echo "${ECHO_T}$AWK" >&6; }
5421else
5422  { echo "$as_me:$LINENO: result: no" >&5
5423echo "${ECHO_T}no" >&6; }
5424fi
5425
5426
5427# Extract the first word of "wget", so it can be a program name with args.
5428set dummy wget; ac_word=$2
5429{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5431if test "${ac_cv_path_WGET+set}" = set; then
5432  echo $ECHO_N "(cached) $ECHO_C" >&6
5433else
5434  case $WGET in
5435  [\\/]* | ?:[\\/]*)
5436  ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
5437  ;;
5438  *)
5439  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440for as_dir in $PATH
5441do
5442  IFS=$as_save_IFS
5443  test -z "$as_dir" && as_dir=.
5444  for ac_exec_ext in '' $ac_executable_extensions; do
5445  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5446    ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
5447    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5448    break 2
5449  fi
5450done
5451done
5452IFS=$as_save_IFS
5453
5454  ;;
5455esac
5456fi
5457WGET=$ac_cv_path_WGET
5458if test -n "$WGET"; then
5459  { echo "$as_me:$LINENO: result: $WGET" >&5
5460echo "${ECHO_T}$WGET" >&6; }
5461else
5462  { echo "$as_me:$LINENO: result: no" >&5
5463echo "${ECHO_T}no" >&6; }
5464fi
5465
5466
5467
5468for ac_prog in gdiff diff
5469do
5470  # Extract the first word of "$ac_prog", so it can be a program name with args.
5471set dummy $ac_prog; ac_word=$2
5472{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5474if test "${ac_cv_path_DIFF+set}" = set; then
5475  echo $ECHO_N "(cached) $ECHO_C" >&6
5476else
5477  case $DIFF in
5478  [\\/]* | ?:[\\/]*)
5479  ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
5480  ;;
5481  *)
5482  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483for as_dir in $PATH
5484do
5485  IFS=$as_save_IFS
5486  test -z "$as_dir" && as_dir=.
5487  for ac_exec_ext in '' $ac_executable_extensions; do
5488  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5489    ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
5490    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5491    break 2
5492  fi
5493done
5494done
5495IFS=$as_save_IFS
5496
5497  ;;
5498esac
5499fi
5500DIFF=$ac_cv_path_DIFF
5501if test -n "$DIFF"; then
5502  { echo "$as_me:$LINENO: result: $DIFF" >&5
5503echo "${ECHO_T}$DIFF" >&6; }
5504else
5505  { echo "$as_me:$LINENO: result: no" >&5
5506echo "${ECHO_T}no" >&6; }
5507fi
5508
5509
5510  test -n "$DIFF" && break
5511done
5512
5513$DIFF --version >/dev/null 2>&1
5514if test $? -eq 0 ; then
5515	DIFF="$DIFF --ignore-matching-lines='generated by smidump' --ignore-matching-lines='\$Id.*\$' --ignore-matching-lines='@author.*smidump'"
5516fi
5517
5518
5519# Find a good install program.  We prefer a C program (faster),
5520# so one script is as good as another.  But avoid the broken or
5521# incompatible versions:
5522# SysV /etc/install, /usr/sbin/install
5523# SunOS /usr/etc/install
5524# IRIX /sbin/install
5525# AIX /bin/install
5526# AmigaOS /C/install, which installs bootblocks on floppy discs
5527# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5528# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5529# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5530# OS/2's system install, which has a completely different semantic
5531# ./install, which can be erroneously created by make from ./install.sh.
5532{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5533echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5534if test -z "$INSTALL"; then
5535if test "${ac_cv_path_install+set}" = set; then
5536  echo $ECHO_N "(cached) $ECHO_C" >&6
5537else
5538  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539for as_dir in $PATH
5540do
5541  IFS=$as_save_IFS
5542  test -z "$as_dir" && as_dir=.
5543  # Account for people who put trailing slashes in PATH elements.
5544case $as_dir/ in
5545  ./ | .// | /cC/* | \
5546  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5547  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5548  /usr/ucb/* ) ;;
5549  *)
5550    # OSF1 and SCO ODT 3.0 have their own names for install.
5551    # Don't use installbsd from OSF since it installs stuff as root
5552    # by default.
5553    for ac_prog in ginstall scoinst install; do
5554      for ac_exec_ext in '' $ac_executable_extensions; do
5555	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5556	  if test $ac_prog = install &&
5557	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5558	    # AIX install.  It has an incompatible calling convention.
5559	    :
5560	  elif test $ac_prog = install &&
5561	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5562	    # program-specific install script used by HP pwplus--don't use.
5563	    :
5564	  else
5565	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5566	    break 3
5567	  fi
5568	fi
5569      done
5570    done
5571    ;;
5572esac
5573done
5574IFS=$as_save_IFS
5575
5576
5577fi
5578  if test "${ac_cv_path_install+set}" = set; then
5579    INSTALL=$ac_cv_path_install
5580  else
5581    # As a last resort, use the slow shell script.  Don't cache a
5582    # value for INSTALL within a source directory, because that will
5583    # break other packages using the cache if that directory is
5584    # removed, or if the value is a relative name.
5585    INSTALL=$ac_install_sh
5586  fi
5587fi
5588{ echo "$as_me:$LINENO: result: $INSTALL" >&5
5589echo "${ECHO_T}$INSTALL" >&6; }
5590
5591# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5592# It thinks the first close brace ends the variable substitution.
5593test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5594
5595test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5596
5597test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5598
5599{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5600echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5601set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5602if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5603  echo $ECHO_N "(cached) $ECHO_C" >&6
5604else
5605  cat >conftest.make <<\_ACEOF
5606SHELL = /bin/sh
5607all:
5608	@echo '@@@%%%=$(MAKE)=@@@%%%'
5609_ACEOF
5610# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5611case `${MAKE-make} -f conftest.make 2>/dev/null` in
5612  *@@@%%%=?*=@@@%%%*)
5613    eval ac_cv_prog_make_${ac_make}_set=yes;;
5614  *)
5615    eval ac_cv_prog_make_${ac_make}_set=no;;
5616esac
5617rm -f conftest.make
5618fi
5619if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5620  { echo "$as_me:$LINENO: result: yes" >&5
5621echo "${ECHO_T}yes" >&6; }
5622  SET_MAKE=
5623else
5624  { echo "$as_me:$LINENO: result: no" >&5
5625echo "${ECHO_T}no" >&6; }
5626  SET_MAKE="MAKE=${MAKE-make}"
5627fi
5628
5629# Check whether --enable-shared was given.
5630if test "${enable_shared+set}" = set; then
5631  enableval=$enable_shared; p=${PACKAGE-default}
5632    case $enableval in
5633    yes) enable_shared=yes ;;
5634    no) enable_shared=no ;;
5635    *)
5636      enable_shared=no
5637      # Look at the argument we got.  We use all the common list separators.
5638      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5639      for pkg in $enableval; do
5640	IFS="$lt_save_ifs"
5641	if test "X$pkg" = "X$p"; then
5642	  enable_shared=yes
5643	fi
5644      done
5645      IFS="$lt_save_ifs"
5646      ;;
5647    esac
5648else
5649  enable_shared=yes
5650fi
5651
5652
5653# Check whether --enable-static was given.
5654if test "${enable_static+set}" = set; then
5655  enableval=$enable_static; p=${PACKAGE-default}
5656    case $enableval in
5657    yes) enable_static=yes ;;
5658    no) enable_static=no ;;
5659    *)
5660     enable_static=no
5661      # Look at the argument we got.  We use all the common list separators.
5662      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5663      for pkg in $enableval; do
5664	IFS="$lt_save_ifs"
5665	if test "X$pkg" = "X$p"; then
5666	  enable_static=yes
5667	fi
5668      done
5669      IFS="$lt_save_ifs"
5670      ;;
5671    esac
5672else
5673  enable_static=yes
5674fi
5675
5676
5677# Check whether --enable-fast-install was given.
5678if test "${enable_fast_install+set}" = set; then
5679  enableval=$enable_fast_install; p=${PACKAGE-default}
5680    case $enableval in
5681    yes) enable_fast_install=yes ;;
5682    no) enable_fast_install=no ;;
5683    *)
5684      enable_fast_install=no
5685      # Look at the argument we got.  We use all the common list separators.
5686      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5687      for pkg in $enableval; do
5688	IFS="$lt_save_ifs"
5689	if test "X$pkg" = "X$p"; then
5690	  enable_fast_install=yes
5691	fi
5692      done
5693      IFS="$lt_save_ifs"
5694      ;;
5695    esac
5696else
5697  enable_fast_install=yes
5698fi
5699
5700
5701# Make sure we can run config.sub.
5702$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5703  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5704echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5705   { (exit 1); exit 1; }; }
5706
5707{ echo "$as_me:$LINENO: checking build system type" >&5
5708echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5709if test "${ac_cv_build+set}" = set; then
5710  echo $ECHO_N "(cached) $ECHO_C" >&6
5711else
5712  ac_build_alias=$build_alias
5713test "x$ac_build_alias" = x &&
5714  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5715test "x$ac_build_alias" = x &&
5716  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5717echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5718   { (exit 1); exit 1; }; }
5719ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5720  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5721echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5722   { (exit 1); exit 1; }; }
5723
5724fi
5725{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5726echo "${ECHO_T}$ac_cv_build" >&6; }
5727case $ac_cv_build in
5728*-*-*) ;;
5729*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5730echo "$as_me: error: invalid value of canonical build" >&2;}
5731   { (exit 1); exit 1; }; };;
5732esac
5733build=$ac_cv_build
5734ac_save_IFS=$IFS; IFS='-'
5735set x $ac_cv_build
5736shift
5737build_cpu=$1
5738build_vendor=$2
5739shift; shift
5740# Remember, the first character of IFS is used to create $*,
5741# except with old shells:
5742build_os=$*
5743IFS=$ac_save_IFS
5744case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5745
5746
5747{ echo "$as_me:$LINENO: checking host system type" >&5
5748echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5749if test "${ac_cv_host+set}" = set; then
5750  echo $ECHO_N "(cached) $ECHO_C" >&6
5751else
5752  if test "x$host_alias" = x; then
5753  ac_cv_host=$ac_cv_build
5754else
5755  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5756    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5757echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5758   { (exit 1); exit 1; }; }
5759fi
5760
5761fi
5762{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5763echo "${ECHO_T}$ac_cv_host" >&6; }
5764case $ac_cv_host in
5765*-*-*) ;;
5766*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5767echo "$as_me: error: invalid value of canonical host" >&2;}
5768   { (exit 1); exit 1; }; };;
5769esac
5770host=$ac_cv_host
5771ac_save_IFS=$IFS; IFS='-'
5772set x $ac_cv_host
5773shift
5774host_cpu=$1
5775host_vendor=$2
5776shift; shift
5777# Remember, the first character of IFS is used to create $*,
5778# except with old shells:
5779host_os=$*
5780IFS=$ac_save_IFS
5781case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5782
5783
5784{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5785echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5786if test "${lt_cv_path_SED+set}" = set; then
5787  echo $ECHO_N "(cached) $ECHO_C" >&6
5788else
5789  # Loop through the user's path and test for sed and gsed.
5790# Then use that list of sed's as ones to test for truncation.
5791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792for as_dir in $PATH
5793do
5794  IFS=$as_save_IFS
5795  test -z "$as_dir" && as_dir=.
5796  for lt_ac_prog in sed gsed; do
5797    for ac_exec_ext in '' $ac_executable_extensions; do
5798      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5799        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5800      fi
5801    done
5802  done
5803done
5804lt_ac_max=0
5805lt_ac_count=0
5806# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5807# along with /bin/sed that truncates output.
5808for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5809  test ! -f $lt_ac_sed && continue
5810  cat /dev/null > conftest.in
5811  lt_ac_count=0
5812  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5813  # Check for GNU sed and select it if it is found.
5814  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5815    lt_cv_path_SED=$lt_ac_sed
5816    break
5817  fi
5818  while true; do
5819    cat conftest.in conftest.in >conftest.tmp
5820    mv conftest.tmp conftest.in
5821    cp conftest.in conftest.nl
5822    echo >>conftest.nl
5823    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5824    cmp -s conftest.out conftest.nl || break
5825    # 10000 chars as input seems more than enough
5826    test $lt_ac_count -gt 10 && break
5827    lt_ac_count=`expr $lt_ac_count + 1`
5828    if test $lt_ac_count -gt $lt_ac_max; then
5829      lt_ac_max=$lt_ac_count
5830      lt_cv_path_SED=$lt_ac_sed
5831    fi
5832  done
5833done
5834
5835fi
5836
5837SED=$lt_cv_path_SED
5838{ echo "$as_me:$LINENO: result: $SED" >&5
5839echo "${ECHO_T}$SED" >&6; }
5840
5841
5842# Check whether --with-gnu-ld was given.
5843if test "${with_gnu_ld+set}" = set; then
5844  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5845else
5846  with_gnu_ld=no
5847fi
5848
5849ac_prog=ld
5850if test "$GCC" = yes; then
5851  # Check if gcc -print-prog-name=ld gives a path.
5852  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5853echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5854  case $host in
5855  *-*-mingw*)
5856    # gcc leaves a trailing carriage return which upsets mingw
5857    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5858  *)
5859    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5860  esac
5861  case $ac_prog in
5862    # Accept absolute paths.
5863    [\\/]* | ?:[\\/]*)
5864      re_direlt='/[^/][^/]*/\.\./'
5865      # Canonicalize the pathname of ld
5866      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5867      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5868	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5869      done
5870      test -z "$LD" && LD="$ac_prog"
5871      ;;
5872  "")
5873    # If it fails, then pretend we aren't using GCC.
5874    ac_prog=ld
5875    ;;
5876  *)
5877    # If it is relative, then search for the first ld in PATH.
5878    with_gnu_ld=unknown
5879    ;;
5880  esac
5881elif test "$with_gnu_ld" = yes; then
5882  { echo "$as_me:$LINENO: checking for GNU ld" >&5
5883echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5884else
5885  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5886echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5887fi
5888if test "${lt_cv_path_LD+set}" = set; then
5889  echo $ECHO_N "(cached) $ECHO_C" >&6
5890else
5891  if test -z "$LD"; then
5892  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5893  for ac_dir in $PATH; do
5894    IFS="$lt_save_ifs"
5895    test -z "$ac_dir" && ac_dir=.
5896    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5897      lt_cv_path_LD="$ac_dir/$ac_prog"
5898      # Check to see if the program is GNU ld.  I'd rather use --version,
5899      # but apparently some variants of GNU ld only accept -v.
5900      # Break only if it was the GNU/non-GNU ld that we prefer.
5901      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5902      *GNU* | *'with BFD'*)
5903	test "$with_gnu_ld" != no && break
5904	;;
5905      *)
5906	test "$with_gnu_ld" != yes && break
5907	;;
5908      esac
5909    fi
5910  done
5911  IFS="$lt_save_ifs"
5912else
5913  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5914fi
5915fi
5916
5917LD="$lt_cv_path_LD"
5918if test -n "$LD"; then
5919  { echo "$as_me:$LINENO: result: $LD" >&5
5920echo "${ECHO_T}$LD" >&6; }
5921else
5922  { echo "$as_me:$LINENO: result: no" >&5
5923echo "${ECHO_T}no" >&6; }
5924fi
5925test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5926echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5927   { (exit 1); exit 1; }; }
5928{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5929echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5930if test "${lt_cv_prog_gnu_ld+set}" = set; then
5931  echo $ECHO_N "(cached) $ECHO_C" >&6
5932else
5933  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5934case `$LD -v 2>&1 </dev/null` in
5935*GNU* | *'with BFD'*)
5936  lt_cv_prog_gnu_ld=yes
5937  ;;
5938*)
5939  lt_cv_prog_gnu_ld=no
5940  ;;
5941esac
5942fi
5943{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5944echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5945with_gnu_ld=$lt_cv_prog_gnu_ld
5946
5947
5948{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5949echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5950if test "${lt_cv_ld_reload_flag+set}" = set; then
5951  echo $ECHO_N "(cached) $ECHO_C" >&6
5952else
5953  lt_cv_ld_reload_flag='-r'
5954fi
5955{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5956echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5957reload_flag=$lt_cv_ld_reload_flag
5958case $reload_flag in
5959"" | " "*) ;;
5960*) reload_flag=" $reload_flag" ;;
5961esac
5962reload_cmds='$LD$reload_flag -o $output$reload_objs'
5963case $host_os in
5964  darwin*)
5965    if test "$GCC" = yes; then
5966      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5967    else
5968      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5969    fi
5970    ;;
5971esac
5972
5973{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5974echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5975if test "${lt_cv_path_NM+set}" = set; then
5976  echo $ECHO_N "(cached) $ECHO_C" >&6
5977else
5978  if test -n "$NM"; then
5979  # Let the user override the test.
5980  lt_cv_path_NM="$NM"
5981else
5982  lt_nm_to_check="${ac_tool_prefix}nm"
5983  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5984    lt_nm_to_check="$lt_nm_to_check nm"
5985  fi
5986  for lt_tmp_nm in $lt_nm_to_check; do
5987    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5988    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5989      IFS="$lt_save_ifs"
5990      test -z "$ac_dir" && ac_dir=.
5991      tmp_nm="$ac_dir/$lt_tmp_nm"
5992      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5993	# Check to see if the nm accepts a BSD-compat flag.
5994	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5995	#   nm: unknown option "B" ignored
5996	# Tru64's nm complains that /dev/null is an invalid object file
5997	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5998	*/dev/null* | *'Invalid file or object type'*)
5999	  lt_cv_path_NM="$tmp_nm -B"
6000	  break
6001	  ;;
6002	*)
6003	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6004	  */dev/null*)
6005	    lt_cv_path_NM="$tmp_nm -p"
6006	    break
6007	    ;;
6008	  *)
6009	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6010	    continue # so that we can try to find one that supports BSD flags
6011	    ;;
6012	  esac
6013	  ;;
6014	esac
6015      fi
6016    done
6017    IFS="$lt_save_ifs"
6018  done
6019  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6020fi
6021fi
6022{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6023echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6024NM="$lt_cv_path_NM"
6025
6026{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6027echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6028LN_S=$as_ln_s
6029if test "$LN_S" = "ln -s"; then
6030  { echo "$as_me:$LINENO: result: yes" >&5
6031echo "${ECHO_T}yes" >&6; }
6032else
6033  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6034echo "${ECHO_T}no, using $LN_S" >&6; }
6035fi
6036
6037{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6038echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6039if test "${lt_cv_deplibs_check_method+set}" = set; then
6040  echo $ECHO_N "(cached) $ECHO_C" >&6
6041else
6042  lt_cv_file_magic_cmd='$MAGIC_CMD'
6043lt_cv_file_magic_test_file=
6044lt_cv_deplibs_check_method='unknown'
6045# Need to set the preceding variable on all platforms that support
6046# interlibrary dependencies.
6047# 'none' -- dependencies not supported.
6048# `unknown' -- same as none, but documents that we really don't know.
6049# 'pass_all' -- all dependencies passed with no checks.
6050# 'test_compile' -- check by making test program.
6051# 'file_magic [[regex]]' -- check by looking for files in library path
6052# which responds to the $file_magic_cmd with a given extended regex.
6053# If you have `file' or equivalent on your system and you're not sure
6054# whether `pass_all' will *always* work, you probably want this one.
6055
6056case $host_os in
6057aix4* | aix5*)
6058  lt_cv_deplibs_check_method=pass_all
6059  ;;
6060
6061beos*)
6062  lt_cv_deplibs_check_method=pass_all
6063  ;;
6064
6065bsdi[45]*)
6066  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6067  lt_cv_file_magic_cmd='/usr/bin/file -L'
6068  lt_cv_file_magic_test_file=/shlib/libc.so
6069  ;;
6070
6071cygwin*)
6072  # func_win32_libid is a shell function defined in ltmain.sh
6073  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6074  lt_cv_file_magic_cmd='func_win32_libid'
6075  ;;
6076
6077mingw* | pw32*)
6078  # Base MSYS/MinGW do not provide the 'file' command needed by
6079  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6080  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6081  lt_cv_file_magic_cmd='$OBJDUMP -f'
6082  ;;
6083
6084darwin* | rhapsody*)
6085  lt_cv_deplibs_check_method=pass_all
6086  ;;
6087
6088freebsd* | dragonfly*)
6089  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6090    case $host_cpu in
6091    i*86 )
6092      # Not sure whether the presence of OpenBSD here was a mistake.
6093      # Let's accept both of them until this is cleared up.
6094      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6095      lt_cv_file_magic_cmd=/usr/bin/file
6096      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6097      ;;
6098    esac
6099  else
6100    lt_cv_deplibs_check_method=pass_all
6101  fi
6102  ;;
6103
6104gnu*)
6105  lt_cv_deplibs_check_method=pass_all
6106  ;;
6107
6108hpux10.20* | hpux11*)
6109  lt_cv_file_magic_cmd=/usr/bin/file
6110  case $host_cpu in
6111  ia64*)
6112    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6113    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6114    ;;
6115  hppa*64*)
6116    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]'
6117    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6118    ;;
6119  *)
6120    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6121    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6122    ;;
6123  esac
6124  ;;
6125
6126interix3*)
6127  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6128  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6129  ;;
6130
6131irix5* | irix6* | nonstopux*)
6132  case $LD in
6133  *-32|*"-32 ") libmagic=32-bit;;
6134  *-n32|*"-n32 ") libmagic=N32;;
6135  *-64|*"-64 ") libmagic=64-bit;;
6136  *) libmagic=never-match;;
6137  esac
6138  lt_cv_deplibs_check_method=pass_all
6139  ;;
6140
6141# This must be Linux ELF.
6142linux* | k*bsd*-gnu)
6143  lt_cv_deplibs_check_method=pass_all
6144  ;;
6145
6146netbsd* | netbsdelf*-gnu)
6147  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6148    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6149  else
6150    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6151  fi
6152  ;;
6153
6154newos6*)
6155  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6156  lt_cv_file_magic_cmd=/usr/bin/file
6157  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6158  ;;
6159
6160nto-qnx*)
6161  lt_cv_deplibs_check_method=unknown
6162  ;;
6163
6164openbsd*)
6165  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6166    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6167  else
6168    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6169  fi
6170  ;;
6171
6172osf3* | osf4* | osf5*)
6173  lt_cv_deplibs_check_method=pass_all
6174  ;;
6175
6176solaris*)
6177  lt_cv_deplibs_check_method=pass_all
6178  ;;
6179
6180sysv4 | sysv4.3*)
6181  case $host_vendor in
6182  motorola)
6183    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]'
6184    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6185    ;;
6186  ncr)
6187    lt_cv_deplibs_check_method=pass_all
6188    ;;
6189  sequent)
6190    lt_cv_file_magic_cmd='/bin/file'
6191    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6192    ;;
6193  sni)
6194    lt_cv_file_magic_cmd='/bin/file'
6195    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6196    lt_cv_file_magic_test_file=/lib/libc.so
6197    ;;
6198  siemens)
6199    lt_cv_deplibs_check_method=pass_all
6200    ;;
6201  pc)
6202    lt_cv_deplibs_check_method=pass_all
6203    ;;
6204  esac
6205  ;;
6206
6207sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6208  lt_cv_deplibs_check_method=pass_all
6209  ;;
6210esac
6211
6212fi
6213{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6214echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6215file_magic_cmd=$lt_cv_file_magic_cmd
6216deplibs_check_method=$lt_cv_deplibs_check_method
6217test -z "$deplibs_check_method" && deplibs_check_method=unknown
6218
6219
6220
6221# If no C compiler was specified, use CC.
6222LTCC=${LTCC-"$CC"}
6223
6224# If no C compiler flags were specified, use CFLAGS.
6225LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6226
6227# Allow CC to be a program name with arguments.
6228compiler=$CC
6229
6230# Check whether --enable-libtool-lock was given.
6231if test "${enable_libtool_lock+set}" = set; then
6232  enableval=$enable_libtool_lock;
6233fi
6234
6235test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6236
6237# Some flags need to be propagated to the compiler or linker for good
6238# libtool support.
6239case $host in
6240ia64-*-hpux*)
6241  # Find out which ABI we are using.
6242  echo 'int i;' > conftest.$ac_ext
6243  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6244  (eval $ac_compile) 2>&5
6245  ac_status=$?
6246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247  (exit $ac_status); }; then
6248    case `/usr/bin/file conftest.$ac_objext` in
6249    *ELF-32*)
6250      HPUX_IA64_MODE="32"
6251      ;;
6252    *ELF-64*)
6253      HPUX_IA64_MODE="64"
6254      ;;
6255    esac
6256  fi
6257  rm -rf conftest*
6258  ;;
6259*-*-irix6*)
6260  # Find out which ABI we are using.
6261  echo '#line 6261 "configure"' > conftest.$ac_ext
6262  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6263  (eval $ac_compile) 2>&5
6264  ac_status=$?
6265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266  (exit $ac_status); }; then
6267   if test "$lt_cv_prog_gnu_ld" = yes; then
6268    case `/usr/bin/file conftest.$ac_objext` in
6269    *32-bit*)
6270      LD="${LD-ld} -melf32bsmip"
6271      ;;
6272    *N32*)
6273      LD="${LD-ld} -melf32bmipn32"
6274      ;;
6275    *64-bit*)
6276      LD="${LD-ld} -melf64bmip"
6277      ;;
6278    esac
6279   else
6280    case `/usr/bin/file conftest.$ac_objext` in
6281    *32-bit*)
6282      LD="${LD-ld} -32"
6283      ;;
6284    *N32*)
6285      LD="${LD-ld} -n32"
6286      ;;
6287    *64-bit*)
6288      LD="${LD-ld} -64"
6289      ;;
6290    esac
6291   fi
6292  fi
6293  rm -rf conftest*
6294  ;;
6295
6296x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6297  # Find out which ABI we are using.
6298  echo 'int i;' > conftest.$ac_ext
6299  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6300  (eval $ac_compile) 2>&5
6301  ac_status=$?
6302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303  (exit $ac_status); }; then
6304    case `/usr/bin/file conftest.o` in
6305    *32-bit*)
6306      case $host in
6307        x86_64-*linux*)
6308          LD="${LD-ld} -m elf_i386"
6309          ;;
6310        ppc64-*linux*|powerpc64-*linux*)
6311          LD="${LD-ld} -m elf32ppclinux"
6312          ;;
6313        s390x-*linux*)
6314          LD="${LD-ld} -m elf_s390"
6315          ;;
6316        sparc64-*linux*)
6317          LD="${LD-ld} -m elf32_sparc"
6318          ;;
6319      esac
6320      ;;
6321    *64-bit*)
6322      case $host in
6323        x86_64-*linux*)
6324          LD="${LD-ld} -m elf_x86_64"
6325          ;;
6326        ppc*-*linux*|powerpc*-*linux*)
6327          LD="${LD-ld} -m elf64ppc"
6328          ;;
6329        s390*-*linux*)
6330          LD="${LD-ld} -m elf64_s390"
6331          ;;
6332        sparc*-*linux*)
6333          LD="${LD-ld} -m elf64_sparc"
6334          ;;
6335      esac
6336      ;;
6337    esac
6338  fi
6339  rm -rf conftest*
6340  ;;
6341
6342*-*-sco3.2v5*)
6343  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6344  SAVE_CFLAGS="$CFLAGS"
6345  CFLAGS="$CFLAGS -belf"
6346  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6347echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6348if test "${lt_cv_cc_needs_belf+set}" = set; then
6349  echo $ECHO_N "(cached) $ECHO_C" >&6
6350else
6351  ac_ext=c
6352ac_cpp='$CPP $CPPFLAGS'
6353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6355ac_compiler_gnu=$ac_cv_c_compiler_gnu
6356
6357     cat >conftest.$ac_ext <<_ACEOF
6358/* confdefs.h.  */
6359_ACEOF
6360cat confdefs.h >>conftest.$ac_ext
6361cat >>conftest.$ac_ext <<_ACEOF
6362/* end confdefs.h.  */
6363
6364int
6365main ()
6366{
6367
6368  ;
6369  return 0;
6370}
6371_ACEOF
6372rm -f conftest.$ac_objext conftest$ac_exeext
6373if { (ac_try="$ac_link"
6374case "(($ac_try" in
6375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6376  *) ac_try_echo=$ac_try;;
6377esac
6378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6379  (eval "$ac_link") 2>conftest.er1
6380  ac_status=$?
6381  grep -v '^ *+' conftest.er1 >conftest.err
6382  rm -f conftest.er1
6383  cat conftest.err >&5
6384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385  (exit $ac_status); } && {
6386	 test -z "$ac_c_werror_flag" ||
6387	 test ! -s conftest.err
6388       } && test -s conftest$ac_exeext &&
6389       $as_test_x conftest$ac_exeext; then
6390  lt_cv_cc_needs_belf=yes
6391else
6392  echo "$as_me: failed program was:" >&5
6393sed 's/^/| /' conftest.$ac_ext >&5
6394
6395	lt_cv_cc_needs_belf=no
6396fi
6397
6398rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6399      conftest$ac_exeext conftest.$ac_ext
6400     ac_ext=c
6401ac_cpp='$CPP $CPPFLAGS'
6402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6404ac_compiler_gnu=$ac_cv_c_compiler_gnu
6405
6406fi
6407{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6408echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6409  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6410    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6411    CFLAGS="$SAVE_CFLAGS"
6412  fi
6413  ;;
6414sparc*-*solaris*)
6415  # Find out which ABI we are using.
6416  echo 'int i;' > conftest.$ac_ext
6417  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6418  (eval $ac_compile) 2>&5
6419  ac_status=$?
6420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421  (exit $ac_status); }; then
6422    case `/usr/bin/file conftest.o` in
6423    *64-bit*)
6424      case $lt_cv_prog_gnu_ld in
6425      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6426      *)    LD="${LD-ld} -64" ;;
6427      esac
6428      ;;
6429    esac
6430  fi
6431  rm -rf conftest*
6432  ;;
6433
6434
6435esac
6436
6437need_locks="$enable_libtool_lock"
6438
6439
6440
6441for ac_header in dlfcn.h
6442do
6443as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6444if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6445  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6447if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6448  echo $ECHO_N "(cached) $ECHO_C" >&6
6449fi
6450ac_res=`eval echo '${'$as_ac_Header'}'`
6451	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6452echo "${ECHO_T}$ac_res" >&6; }
6453else
6454  # Is the header compilable?
6455{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6456echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6457cat >conftest.$ac_ext <<_ACEOF
6458/* confdefs.h.  */
6459_ACEOF
6460cat confdefs.h >>conftest.$ac_ext
6461cat >>conftest.$ac_ext <<_ACEOF
6462/* end confdefs.h.  */
6463$ac_includes_default
6464#include <$ac_header>
6465_ACEOF
6466rm -f conftest.$ac_objext
6467if { (ac_try="$ac_compile"
6468case "(($ac_try" in
6469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6470  *) ac_try_echo=$ac_try;;
6471esac
6472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6473  (eval "$ac_compile") 2>conftest.er1
6474  ac_status=$?
6475  grep -v '^ *+' conftest.er1 >conftest.err
6476  rm -f conftest.er1
6477  cat conftest.err >&5
6478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479  (exit $ac_status); } && {
6480	 test -z "$ac_c_werror_flag" ||
6481	 test ! -s conftest.err
6482       } && test -s conftest.$ac_objext; then
6483  ac_header_compiler=yes
6484else
6485  echo "$as_me: failed program was:" >&5
6486sed 's/^/| /' conftest.$ac_ext >&5
6487
6488	ac_header_compiler=no
6489fi
6490
6491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6492{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6493echo "${ECHO_T}$ac_header_compiler" >&6; }
6494
6495# Is the header present?
6496{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6497echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6498cat >conftest.$ac_ext <<_ACEOF
6499/* confdefs.h.  */
6500_ACEOF
6501cat confdefs.h >>conftest.$ac_ext
6502cat >>conftest.$ac_ext <<_ACEOF
6503/* end confdefs.h.  */
6504#include <$ac_header>
6505_ACEOF
6506if { (ac_try="$ac_cpp conftest.$ac_ext"
6507case "(($ac_try" in
6508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6509  *) ac_try_echo=$ac_try;;
6510esac
6511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6512  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6513  ac_status=$?
6514  grep -v '^ *+' conftest.er1 >conftest.err
6515  rm -f conftest.er1
6516  cat conftest.err >&5
6517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518  (exit $ac_status); } >/dev/null && {
6519	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6520	 test ! -s conftest.err
6521       }; then
6522  ac_header_preproc=yes
6523else
6524  echo "$as_me: failed program was:" >&5
6525sed 's/^/| /' conftest.$ac_ext >&5
6526
6527  ac_header_preproc=no
6528fi
6529
6530rm -f conftest.err conftest.$ac_ext
6531{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6532echo "${ECHO_T}$ac_header_preproc" >&6; }
6533
6534# So?  What about this header?
6535case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6536  yes:no: )
6537    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6538echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6539    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6540echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6541    ac_header_preproc=yes
6542    ;;
6543  no:yes:* )
6544    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6545echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6546    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6547echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6548    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6549echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6550    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6551echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6552    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6553echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6554    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6555echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6556
6557    ;;
6558esac
6559{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6560echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6561if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6562  echo $ECHO_N "(cached) $ECHO_C" >&6
6563else
6564  eval "$as_ac_Header=\$ac_header_preproc"
6565fi
6566ac_res=`eval echo '${'$as_ac_Header'}'`
6567	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6568echo "${ECHO_T}$ac_res" >&6; }
6569
6570fi
6571if test `eval echo '${'$as_ac_Header'}'` = yes; then
6572  cat >>confdefs.h <<_ACEOF
6573#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6574_ACEOF
6575
6576fi
6577
6578done
6579
6580ac_ext=cpp
6581ac_cpp='$CXXCPP $CPPFLAGS'
6582ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6583ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6584ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6585if test -z "$CXX"; then
6586  if test -n "$CCC"; then
6587    CXX=$CCC
6588  else
6589    if test -n "$ac_tool_prefix"; then
6590  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6591  do
6592    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6593set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6594{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6596if test "${ac_cv_prog_CXX+set}" = set; then
6597  echo $ECHO_N "(cached) $ECHO_C" >&6
6598else
6599  if test -n "$CXX"; then
6600  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6601else
6602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603for as_dir in $PATH
6604do
6605  IFS=$as_save_IFS
6606  test -z "$as_dir" && as_dir=.
6607  for ac_exec_ext in '' $ac_executable_extensions; do
6608  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6609    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6610    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6611    break 2
6612  fi
6613done
6614done
6615IFS=$as_save_IFS
6616
6617fi
6618fi
6619CXX=$ac_cv_prog_CXX
6620if test -n "$CXX"; then
6621  { echo "$as_me:$LINENO: result: $CXX" >&5
6622echo "${ECHO_T}$CXX" >&6; }
6623else
6624  { echo "$as_me:$LINENO: result: no" >&5
6625echo "${ECHO_T}no" >&6; }
6626fi
6627
6628
6629    test -n "$CXX" && break
6630  done
6631fi
6632if test -z "$CXX"; then
6633  ac_ct_CXX=$CXX
6634  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6635do
6636  # Extract the first word of "$ac_prog", so it can be a program name with args.
6637set dummy $ac_prog; ac_word=$2
6638{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6640if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6641  echo $ECHO_N "(cached) $ECHO_C" >&6
6642else
6643  if test -n "$ac_ct_CXX"; then
6644  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6645else
6646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647for as_dir in $PATH
6648do
6649  IFS=$as_save_IFS
6650  test -z "$as_dir" && as_dir=.
6651  for ac_exec_ext in '' $ac_executable_extensions; do
6652  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6653    ac_cv_prog_ac_ct_CXX="$ac_prog"
6654    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6655    break 2
6656  fi
6657done
6658done
6659IFS=$as_save_IFS
6660
6661fi
6662fi
6663ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6664if test -n "$ac_ct_CXX"; then
6665  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6666echo "${ECHO_T}$ac_ct_CXX" >&6; }
6667else
6668  { echo "$as_me:$LINENO: result: no" >&5
6669echo "${ECHO_T}no" >&6; }
6670fi
6671
6672
6673  test -n "$ac_ct_CXX" && break
6674done
6675
6676  if test "x$ac_ct_CXX" = x; then
6677    CXX="g++"
6678  else
6679    case $cross_compiling:$ac_tool_warned in
6680yes:)
6681{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6682whose name does not start with the host triplet.  If you think this
6683configuration is useful to you, please write to autoconf@gnu.org." >&5
6684echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6685whose name does not start with the host triplet.  If you think this
6686configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6687ac_tool_warned=yes ;;
6688esac
6689    CXX=$ac_ct_CXX
6690  fi
6691fi
6692
6693  fi
6694fi
6695# Provide some information about the compiler.
6696echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6697ac_compiler=`set X $ac_compile; echo $2`
6698{ (ac_try="$ac_compiler --version >&5"
6699case "(($ac_try" in
6700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701  *) ac_try_echo=$ac_try;;
6702esac
6703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6704  (eval "$ac_compiler --version >&5") 2>&5
6705  ac_status=$?
6706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707  (exit $ac_status); }
6708{ (ac_try="$ac_compiler -v >&5"
6709case "(($ac_try" in
6710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711  *) ac_try_echo=$ac_try;;
6712esac
6713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714  (eval "$ac_compiler -v >&5") 2>&5
6715  ac_status=$?
6716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717  (exit $ac_status); }
6718{ (ac_try="$ac_compiler -V >&5"
6719case "(($ac_try" in
6720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6721  *) ac_try_echo=$ac_try;;
6722esac
6723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6724  (eval "$ac_compiler -V >&5") 2>&5
6725  ac_status=$?
6726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727  (exit $ac_status); }
6728
6729{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6730echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6731if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6732  echo $ECHO_N "(cached) $ECHO_C" >&6
6733else
6734  cat >conftest.$ac_ext <<_ACEOF
6735/* confdefs.h.  */
6736_ACEOF
6737cat confdefs.h >>conftest.$ac_ext
6738cat >>conftest.$ac_ext <<_ACEOF
6739/* end confdefs.h.  */
6740
6741int
6742main ()
6743{
6744#ifndef __GNUC__
6745       choke me
6746#endif
6747
6748  ;
6749  return 0;
6750}
6751_ACEOF
6752rm -f conftest.$ac_objext
6753if { (ac_try="$ac_compile"
6754case "(($ac_try" in
6755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6756  *) ac_try_echo=$ac_try;;
6757esac
6758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6759  (eval "$ac_compile") 2>conftest.er1
6760  ac_status=$?
6761  grep -v '^ *+' conftest.er1 >conftest.err
6762  rm -f conftest.er1
6763  cat conftest.err >&5
6764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765  (exit $ac_status); } && {
6766	 test -z "$ac_cxx_werror_flag" ||
6767	 test ! -s conftest.err
6768       } && test -s conftest.$ac_objext; then
6769  ac_compiler_gnu=yes
6770else
6771  echo "$as_me: failed program was:" >&5
6772sed 's/^/| /' conftest.$ac_ext >&5
6773
6774	ac_compiler_gnu=no
6775fi
6776
6777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6778ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6779
6780fi
6781{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6782echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6783GXX=`test $ac_compiler_gnu = yes && echo yes`
6784ac_test_CXXFLAGS=${CXXFLAGS+set}
6785ac_save_CXXFLAGS=$CXXFLAGS
6786{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6787echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6788if test "${ac_cv_prog_cxx_g+set}" = set; then
6789  echo $ECHO_N "(cached) $ECHO_C" >&6
6790else
6791  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6792   ac_cxx_werror_flag=yes
6793   ac_cv_prog_cxx_g=no
6794   CXXFLAGS="-g"
6795   cat >conftest.$ac_ext <<_ACEOF
6796/* confdefs.h.  */
6797_ACEOF
6798cat confdefs.h >>conftest.$ac_ext
6799cat >>conftest.$ac_ext <<_ACEOF
6800/* end confdefs.h.  */
6801
6802int
6803main ()
6804{
6805
6806  ;
6807  return 0;
6808}
6809_ACEOF
6810rm -f conftest.$ac_objext
6811if { (ac_try="$ac_compile"
6812case "(($ac_try" in
6813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6814  *) ac_try_echo=$ac_try;;
6815esac
6816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6817  (eval "$ac_compile") 2>conftest.er1
6818  ac_status=$?
6819  grep -v '^ *+' conftest.er1 >conftest.err
6820  rm -f conftest.er1
6821  cat conftest.err >&5
6822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823  (exit $ac_status); } && {
6824	 test -z "$ac_cxx_werror_flag" ||
6825	 test ! -s conftest.err
6826       } && test -s conftest.$ac_objext; then
6827  ac_cv_prog_cxx_g=yes
6828else
6829  echo "$as_me: failed program was:" >&5
6830sed 's/^/| /' conftest.$ac_ext >&5
6831
6832	CXXFLAGS=""
6833      cat >conftest.$ac_ext <<_ACEOF
6834/* confdefs.h.  */
6835_ACEOF
6836cat confdefs.h >>conftest.$ac_ext
6837cat >>conftest.$ac_ext <<_ACEOF
6838/* end confdefs.h.  */
6839
6840int
6841main ()
6842{
6843
6844  ;
6845  return 0;
6846}
6847_ACEOF
6848rm -f conftest.$ac_objext
6849if { (ac_try="$ac_compile"
6850case "(($ac_try" in
6851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6852  *) ac_try_echo=$ac_try;;
6853esac
6854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6855  (eval "$ac_compile") 2>conftest.er1
6856  ac_status=$?
6857  grep -v '^ *+' conftest.er1 >conftest.err
6858  rm -f conftest.er1
6859  cat conftest.err >&5
6860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861  (exit $ac_status); } && {
6862	 test -z "$ac_cxx_werror_flag" ||
6863	 test ! -s conftest.err
6864       } && test -s conftest.$ac_objext; then
6865  :
6866else
6867  echo "$as_me: failed program was:" >&5
6868sed 's/^/| /' conftest.$ac_ext >&5
6869
6870	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6871	 CXXFLAGS="-g"
6872	 cat >conftest.$ac_ext <<_ACEOF
6873/* confdefs.h.  */
6874_ACEOF
6875cat confdefs.h >>conftest.$ac_ext
6876cat >>conftest.$ac_ext <<_ACEOF
6877/* end confdefs.h.  */
6878
6879int
6880main ()
6881{
6882
6883  ;
6884  return 0;
6885}
6886_ACEOF
6887rm -f conftest.$ac_objext
6888if { (ac_try="$ac_compile"
6889case "(($ac_try" in
6890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6891  *) ac_try_echo=$ac_try;;
6892esac
6893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6894  (eval "$ac_compile") 2>conftest.er1
6895  ac_status=$?
6896  grep -v '^ *+' conftest.er1 >conftest.err
6897  rm -f conftest.er1
6898  cat conftest.err >&5
6899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900  (exit $ac_status); } && {
6901	 test -z "$ac_cxx_werror_flag" ||
6902	 test ! -s conftest.err
6903       } && test -s conftest.$ac_objext; then
6904  ac_cv_prog_cxx_g=yes
6905else
6906  echo "$as_me: failed program was:" >&5
6907sed 's/^/| /' conftest.$ac_ext >&5
6908
6909
6910fi
6911
6912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6913fi
6914
6915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6916fi
6917
6918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6919   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6920fi
6921{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6922echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6923if test "$ac_test_CXXFLAGS" = set; then
6924  CXXFLAGS=$ac_save_CXXFLAGS
6925elif test $ac_cv_prog_cxx_g = yes; then
6926  if test "$GXX" = yes; then
6927    CXXFLAGS="-g -O2"
6928  else
6929    CXXFLAGS="-g"
6930  fi
6931else
6932  if test "$GXX" = yes; then
6933    CXXFLAGS="-O2"
6934  else
6935    CXXFLAGS=
6936  fi
6937fi
6938ac_ext=cpp
6939ac_cpp='$CXXCPP $CPPFLAGS'
6940ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6941ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6942ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6943
6944depcc="$CXX"  am_compiler_list=
6945
6946{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6947echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6948if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6949  echo $ECHO_N "(cached) $ECHO_C" >&6
6950else
6951  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6952  # We make a subdir and do the tests there.  Otherwise we can end up
6953  # making bogus files that we don't know about and never remove.  For
6954  # instance it was reported that on HP-UX the gcc test will end up
6955  # making a dummy file named `D' -- because `-MD' means `put the output
6956  # in D'.
6957  mkdir conftest.dir
6958  # Copy depcomp to subdir because otherwise we won't find it if we're
6959  # using a relative directory.
6960  cp "$am_depcomp" conftest.dir
6961  cd conftest.dir
6962  # We will build objects and dependencies in a subdirectory because
6963  # it helps to detect inapplicable dependency modes.  For instance
6964  # both Tru64's cc and ICC support -MD to output dependencies as a
6965  # side effect of compilation, but ICC will put the dependencies in
6966  # the current directory while Tru64 will put them in the object
6967  # directory.
6968  mkdir sub
6969
6970  am_cv_CXX_dependencies_compiler_type=none
6971  if test "$am_compiler_list" = ""; then
6972     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6973  fi
6974  for depmode in $am_compiler_list; do
6975    # Setup a source with many dependencies, because some compilers
6976    # like to wrap large dependency lists on column 80 (with \), and
6977    # we should not choose a depcomp mode which is confused by this.
6978    #
6979    # We need to recreate these files for each test, as the compiler may
6980    # overwrite some of them when testing with obscure command lines.
6981    # This happens at least with the AIX C compiler.
6982    : > sub/conftest.c
6983    for i in 1 2 3 4 5 6; do
6984      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6985      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6986      # Solaris 8's {/usr,}/bin/sh.
6987      touch sub/conftst$i.h
6988    done
6989    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6990
6991    case $depmode in
6992    nosideeffect)
6993      # after this tag, mechanisms are not by side-effect, so they'll
6994      # only be used when explicitly requested
6995      if test "x$enable_dependency_tracking" = xyes; then
6996	continue
6997      else
6998	break
6999      fi
7000      ;;
7001    none) break ;;
7002    esac
7003    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7004    # mode.  It turns out that the SunPro C++ compiler does not properly
7005    # handle `-M -o', and we need to detect this.
7006    if depmode=$depmode \
7007       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7008       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7009       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7010         >/dev/null 2>conftest.err &&
7011       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7012       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7013       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7014       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7015      # icc doesn't choke on unknown options, it will just issue warnings
7016      # or remarks (even with -Werror).  So we grep stderr for any message
7017      # that says an option was ignored or not supported.
7018      # When given -MP, icc 7.0 and 7.1 complain thusly:
7019      #   icc: Command line warning: ignoring option '-M'; no argument required
7020      # The diagnosis changed in icc 8.0:
7021      #   icc: Command line remark: option '-MP' not supported
7022      if (grep 'ignoring option' conftest.err ||
7023          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7024        am_cv_CXX_dependencies_compiler_type=$depmode
7025        break
7026      fi
7027    fi
7028  done
7029
7030  cd ..
7031  rm -rf conftest.dir
7032else
7033  am_cv_CXX_dependencies_compiler_type=none
7034fi
7035
7036fi
7037{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7038echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
7039CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7040
7041 if
7042  test "x$enable_dependency_tracking" != xno \
7043  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7044  am__fastdepCXX_TRUE=
7045  am__fastdepCXX_FALSE='#'
7046else
7047  am__fastdepCXX_TRUE='#'
7048  am__fastdepCXX_FALSE=
7049fi
7050
7051
7052
7053
7054if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7055    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7056    (test "X$CXX" != "Xg++"))) ; then
7057  ac_ext=cpp
7058ac_cpp='$CXXCPP $CPPFLAGS'
7059ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7060ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7061ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7062{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7063echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7064if test -z "$CXXCPP"; then
7065  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7066  echo $ECHO_N "(cached) $ECHO_C" >&6
7067else
7068      # Double quotes because CXXCPP needs to be expanded
7069    for CXXCPP in "$CXX -E" "/lib/cpp"
7070    do
7071      ac_preproc_ok=false
7072for ac_cxx_preproc_warn_flag in '' yes
7073do
7074  # Use a header file that comes with gcc, so configuring glibc
7075  # with a fresh cross-compiler works.
7076  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7077  # <limits.h> exists even on freestanding compilers.
7078  # On the NeXT, cc -E runs the code through the compiler's parser,
7079  # not just through cpp. "Syntax error" is here to catch this case.
7080  cat >conftest.$ac_ext <<_ACEOF
7081/* confdefs.h.  */
7082_ACEOF
7083cat confdefs.h >>conftest.$ac_ext
7084cat >>conftest.$ac_ext <<_ACEOF
7085/* end confdefs.h.  */
7086#ifdef __STDC__
7087# include <limits.h>
7088#else
7089# include <assert.h>
7090#endif
7091		     Syntax error
7092_ACEOF
7093if { (ac_try="$ac_cpp conftest.$ac_ext"
7094case "(($ac_try" in
7095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7096  *) ac_try_echo=$ac_try;;
7097esac
7098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7099  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7100  ac_status=$?
7101  grep -v '^ *+' conftest.er1 >conftest.err
7102  rm -f conftest.er1
7103  cat conftest.err >&5
7104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105  (exit $ac_status); } >/dev/null && {
7106	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7107	 test ! -s conftest.err
7108       }; then
7109  :
7110else
7111  echo "$as_me: failed program was:" >&5
7112sed 's/^/| /' conftest.$ac_ext >&5
7113
7114  # Broken: fails on valid input.
7115continue
7116fi
7117
7118rm -f conftest.err conftest.$ac_ext
7119
7120  # OK, works on sane cases.  Now check whether nonexistent headers
7121  # can be detected and how.
7122  cat >conftest.$ac_ext <<_ACEOF
7123/* confdefs.h.  */
7124_ACEOF
7125cat confdefs.h >>conftest.$ac_ext
7126cat >>conftest.$ac_ext <<_ACEOF
7127/* end confdefs.h.  */
7128#include <ac_nonexistent.h>
7129_ACEOF
7130if { (ac_try="$ac_cpp conftest.$ac_ext"
7131case "(($ac_try" in
7132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7133  *) ac_try_echo=$ac_try;;
7134esac
7135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7136  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7137  ac_status=$?
7138  grep -v '^ *+' conftest.er1 >conftest.err
7139  rm -f conftest.er1
7140  cat conftest.err >&5
7141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142  (exit $ac_status); } >/dev/null && {
7143	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7144	 test ! -s conftest.err
7145       }; then
7146  # Broken: success on invalid input.
7147continue
7148else
7149  echo "$as_me: failed program was:" >&5
7150sed 's/^/| /' conftest.$ac_ext >&5
7151
7152  # Passes both tests.
7153ac_preproc_ok=:
7154break
7155fi
7156
7157rm -f conftest.err conftest.$ac_ext
7158
7159done
7160# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7161rm -f conftest.err conftest.$ac_ext
7162if $ac_preproc_ok; then
7163  break
7164fi
7165
7166    done
7167    ac_cv_prog_CXXCPP=$CXXCPP
7168
7169fi
7170  CXXCPP=$ac_cv_prog_CXXCPP
7171else
7172  ac_cv_prog_CXXCPP=$CXXCPP
7173fi
7174{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
7175echo "${ECHO_T}$CXXCPP" >&6; }
7176ac_preproc_ok=false
7177for ac_cxx_preproc_warn_flag in '' yes
7178do
7179  # Use a header file that comes with gcc, so configuring glibc
7180  # with a fresh cross-compiler works.
7181  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7182  # <limits.h> exists even on freestanding compilers.
7183  # On the NeXT, cc -E runs the code through the compiler's parser,
7184  # not just through cpp. "Syntax error" is here to catch this case.
7185  cat >conftest.$ac_ext <<_ACEOF
7186/* confdefs.h.  */
7187_ACEOF
7188cat confdefs.h >>conftest.$ac_ext
7189cat >>conftest.$ac_ext <<_ACEOF
7190/* end confdefs.h.  */
7191#ifdef __STDC__
7192# include <limits.h>
7193#else
7194# include <assert.h>
7195#endif
7196		     Syntax error
7197_ACEOF
7198if { (ac_try="$ac_cpp conftest.$ac_ext"
7199case "(($ac_try" in
7200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7201  *) ac_try_echo=$ac_try;;
7202esac
7203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7204  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7205  ac_status=$?
7206  grep -v '^ *+' conftest.er1 >conftest.err
7207  rm -f conftest.er1
7208  cat conftest.err >&5
7209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210  (exit $ac_status); } >/dev/null && {
7211	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7212	 test ! -s conftest.err
7213       }; then
7214  :
7215else
7216  echo "$as_me: failed program was:" >&5
7217sed 's/^/| /' conftest.$ac_ext >&5
7218
7219  # Broken: fails on valid input.
7220continue
7221fi
7222
7223rm -f conftest.err conftest.$ac_ext
7224
7225  # OK, works on sane cases.  Now check whether nonexistent headers
7226  # can be detected and how.
7227  cat >conftest.$ac_ext <<_ACEOF
7228/* confdefs.h.  */
7229_ACEOF
7230cat confdefs.h >>conftest.$ac_ext
7231cat >>conftest.$ac_ext <<_ACEOF
7232/* end confdefs.h.  */
7233#include <ac_nonexistent.h>
7234_ACEOF
7235if { (ac_try="$ac_cpp conftest.$ac_ext"
7236case "(($ac_try" in
7237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7238  *) ac_try_echo=$ac_try;;
7239esac
7240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7241  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7242  ac_status=$?
7243  grep -v '^ *+' conftest.er1 >conftest.err
7244  rm -f conftest.er1
7245  cat conftest.err >&5
7246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247  (exit $ac_status); } >/dev/null && {
7248	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7249	 test ! -s conftest.err
7250       }; then
7251  # Broken: success on invalid input.
7252continue
7253else
7254  echo "$as_me: failed program was:" >&5
7255sed 's/^/| /' conftest.$ac_ext >&5
7256
7257  # Passes both tests.
7258ac_preproc_ok=:
7259break
7260fi
7261
7262rm -f conftest.err conftest.$ac_ext
7263
7264done
7265# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7266rm -f conftest.err conftest.$ac_ext
7267if $ac_preproc_ok; then
7268  :
7269else
7270  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7271See \`config.log' for more details." >&5
7272echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7273See \`config.log' for more details." >&2;}
7274   { (exit 1); exit 1; }; }
7275fi
7276
7277ac_ext=cpp
7278ac_cpp='$CXXCPP $CPPFLAGS'
7279ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7280ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7281ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7282
7283fi
7284
7285
7286ac_ext=f
7287ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7288ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7289ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7290if test -n "$ac_tool_prefix"; then
7291  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
7292  do
7293    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7294set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7295{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7297if test "${ac_cv_prog_F77+set}" = set; then
7298  echo $ECHO_N "(cached) $ECHO_C" >&6
7299else
7300  if test -n "$F77"; then
7301  ac_cv_prog_F77="$F77" # Let the user override the test.
7302else
7303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304for as_dir in $PATH
7305do
7306  IFS=$as_save_IFS
7307  test -z "$as_dir" && as_dir=.
7308  for ac_exec_ext in '' $ac_executable_extensions; do
7309  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7310    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7311    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7312    break 2
7313  fi
7314done
7315done
7316IFS=$as_save_IFS
7317
7318fi
7319fi
7320F77=$ac_cv_prog_F77
7321if test -n "$F77"; then
7322  { echo "$as_me:$LINENO: result: $F77" >&5
7323echo "${ECHO_T}$F77" >&6; }
7324else
7325  { echo "$as_me:$LINENO: result: no" >&5
7326echo "${ECHO_T}no" >&6; }
7327fi
7328
7329
7330    test -n "$F77" && break
7331  done
7332fi
7333if test -z "$F77"; then
7334  ac_ct_F77=$F77
7335  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
7336do
7337  # Extract the first word of "$ac_prog", so it can be a program name with args.
7338set dummy $ac_prog; ac_word=$2
7339{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7341if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7342  echo $ECHO_N "(cached) $ECHO_C" >&6
7343else
7344  if test -n "$ac_ct_F77"; then
7345  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7346else
7347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348for as_dir in $PATH
7349do
7350  IFS=$as_save_IFS
7351  test -z "$as_dir" && as_dir=.
7352  for ac_exec_ext in '' $ac_executable_extensions; do
7353  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7354    ac_cv_prog_ac_ct_F77="$ac_prog"
7355    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7356    break 2
7357  fi
7358done
7359done
7360IFS=$as_save_IFS
7361
7362fi
7363fi
7364ac_ct_F77=$ac_cv_prog_ac_ct_F77
7365if test -n "$ac_ct_F77"; then
7366  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7367echo "${ECHO_T}$ac_ct_F77" >&6; }
7368else
7369  { echo "$as_me:$LINENO: result: no" >&5
7370echo "${ECHO_T}no" >&6; }
7371fi
7372
7373
7374  test -n "$ac_ct_F77" && break
7375done
7376
7377  if test "x$ac_ct_F77" = x; then
7378    F77=""
7379  else
7380    case $cross_compiling:$ac_tool_warned in
7381yes:)
7382{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7383whose name does not start with the host triplet.  If you think this
7384configuration is useful to you, please write to autoconf@gnu.org." >&5
7385echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7386whose name does not start with the host triplet.  If you think this
7387configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7388ac_tool_warned=yes ;;
7389esac
7390    F77=$ac_ct_F77
7391  fi
7392fi
7393
7394
7395# Provide some information about the compiler.
7396echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7397ac_compiler=`set X $ac_compile; echo $2`
7398{ (ac_try="$ac_compiler --version >&5"
7399case "(($ac_try" in
7400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7401  *) ac_try_echo=$ac_try;;
7402esac
7403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7404  (eval "$ac_compiler --version >&5") 2>&5
7405  ac_status=$?
7406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407  (exit $ac_status); }
7408{ (ac_try="$ac_compiler -v >&5"
7409case "(($ac_try" in
7410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7411  *) ac_try_echo=$ac_try;;
7412esac
7413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7414  (eval "$ac_compiler -v >&5") 2>&5
7415  ac_status=$?
7416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417  (exit $ac_status); }
7418{ (ac_try="$ac_compiler -V >&5"
7419case "(($ac_try" in
7420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7421  *) ac_try_echo=$ac_try;;
7422esac
7423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7424  (eval "$ac_compiler -V >&5") 2>&5
7425  ac_status=$?
7426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427  (exit $ac_status); }
7428rm -f a.out
7429
7430# If we don't use `.F' as extension, the preprocessor is not run on the
7431# input file.  (Note that this only needs to work for GNU compilers.)
7432ac_save_ext=$ac_ext
7433ac_ext=F
7434{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7435echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7436if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7437  echo $ECHO_N "(cached) $ECHO_C" >&6
7438else
7439  cat >conftest.$ac_ext <<_ACEOF
7440      program main
7441#ifndef __GNUC__
7442       choke me
7443#endif
7444
7445      end
7446_ACEOF
7447rm -f conftest.$ac_objext
7448if { (ac_try="$ac_compile"
7449case "(($ac_try" in
7450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7451  *) ac_try_echo=$ac_try;;
7452esac
7453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7454  (eval "$ac_compile") 2>conftest.er1
7455  ac_status=$?
7456  grep -v '^ *+' conftest.er1 >conftest.err
7457  rm -f conftest.er1
7458  cat conftest.err >&5
7459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460  (exit $ac_status); } && {
7461	 test -z "$ac_f77_werror_flag" ||
7462	 test ! -s conftest.err
7463       } && test -s conftest.$ac_objext; then
7464  ac_compiler_gnu=yes
7465else
7466  echo "$as_me: failed program was:" >&5
7467sed 's/^/| /' conftest.$ac_ext >&5
7468
7469	ac_compiler_gnu=no
7470fi
7471
7472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7473ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7474
7475fi
7476{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7477echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7478ac_ext=$ac_save_ext
7479ac_test_FFLAGS=${FFLAGS+set}
7480ac_save_FFLAGS=$FFLAGS
7481FFLAGS=
7482{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7483echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7484if test "${ac_cv_prog_f77_g+set}" = set; then
7485  echo $ECHO_N "(cached) $ECHO_C" >&6
7486else
7487  FFLAGS=-g
7488cat >conftest.$ac_ext <<_ACEOF
7489      program main
7490
7491      end
7492_ACEOF
7493rm -f conftest.$ac_objext
7494if { (ac_try="$ac_compile"
7495case "(($ac_try" in
7496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7497  *) ac_try_echo=$ac_try;;
7498esac
7499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7500  (eval "$ac_compile") 2>conftest.er1
7501  ac_status=$?
7502  grep -v '^ *+' conftest.er1 >conftest.err
7503  rm -f conftest.er1
7504  cat conftest.err >&5
7505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506  (exit $ac_status); } && {
7507	 test -z "$ac_f77_werror_flag" ||
7508	 test ! -s conftest.err
7509       } && test -s conftest.$ac_objext; then
7510  ac_cv_prog_f77_g=yes
7511else
7512  echo "$as_me: failed program was:" >&5
7513sed 's/^/| /' conftest.$ac_ext >&5
7514
7515	ac_cv_prog_f77_g=no
7516fi
7517
7518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7519
7520fi
7521{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7522echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7523if test "$ac_test_FFLAGS" = set; then
7524  FFLAGS=$ac_save_FFLAGS
7525elif test $ac_cv_prog_f77_g = yes; then
7526  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7527    FFLAGS="-g -O2"
7528  else
7529    FFLAGS="-g"
7530  fi
7531else
7532  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7533    FFLAGS="-O2"
7534  else
7535    FFLAGS=
7536  fi
7537fi
7538
7539G77=`test $ac_compiler_gnu = yes && echo yes`
7540ac_ext=c
7541ac_cpp='$CPP $CPPFLAGS'
7542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7544ac_compiler_gnu=$ac_cv_c_compiler_gnu
7545
7546
7547
7548# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7549
7550# find the maximum length of command line arguments
7551{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7552echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7553if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7554  echo $ECHO_N "(cached) $ECHO_C" >&6
7555else
7556    i=0
7557  teststring="ABCD"
7558
7559  case $build_os in
7560  msdosdjgpp*)
7561    # On DJGPP, this test can blow up pretty badly due to problems in libc
7562    # (any single argument exceeding 2000 bytes causes a buffer overrun
7563    # during glob expansion).  Even if it were fixed, the result of this
7564    # check would be larger than it should be.
7565    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7566    ;;
7567
7568  gnu*)
7569    # Under GNU Hurd, this test is not required because there is
7570    # no limit to the length of command line arguments.
7571    # Libtool will interpret -1 as no limit whatsoever
7572    lt_cv_sys_max_cmd_len=-1;
7573    ;;
7574
7575  cygwin* | mingw*)
7576    # On Win9x/ME, this test blows up -- it succeeds, but takes
7577    # about 5 minutes as the teststring grows exponentially.
7578    # Worse, since 9x/ME are not pre-emptively multitasking,
7579    # you end up with a "frozen" computer, even though with patience
7580    # the test eventually succeeds (with a max line length of 256k).
7581    # Instead, let's just punt: use the minimum linelength reported by
7582    # all of the supported platforms: 8192 (on NT/2K/XP).
7583    lt_cv_sys_max_cmd_len=8192;
7584    ;;
7585
7586  amigaos*)
7587    # On AmigaOS with pdksh, this test takes hours, literally.
7588    # So we just punt and use a minimum line length of 8192.
7589    lt_cv_sys_max_cmd_len=8192;
7590    ;;
7591
7592  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7593    # This has been around since 386BSD, at least.  Likely further.
7594    if test -x /sbin/sysctl; then
7595      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7596    elif test -x /usr/sbin/sysctl; then
7597      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7598    else
7599      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7600    fi
7601    # And add a safety zone
7602    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7603    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7604    ;;
7605
7606  interix*)
7607    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7608    lt_cv_sys_max_cmd_len=196608
7609    ;;
7610
7611  osf*)
7612    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7613    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7614    # nice to cause kernel panics so lets avoid the loop below.
7615    # First set a reasonable default.
7616    lt_cv_sys_max_cmd_len=16384
7617    #
7618    if test -x /sbin/sysconfig; then
7619      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7620        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7621      esac
7622    fi
7623    ;;
7624  sco3.2v5*)
7625    lt_cv_sys_max_cmd_len=102400
7626    ;;
7627  sysv5* | sco5v6* | sysv4.2uw2*)
7628    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7629    if test -n "$kargmax"; then
7630      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
7631    else
7632      lt_cv_sys_max_cmd_len=32768
7633    fi
7634    ;;
7635  *)
7636    # If test is not a shell built-in, we'll probably end up computing a
7637    # maximum length that is only half of the actual maximum length, but
7638    # we can't tell.
7639    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7640    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7641	       = "XX$teststring") >/dev/null 2>&1 &&
7642	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
7643	    lt_cv_sys_max_cmd_len=$new_result &&
7644	    test $i != 17 # 1/2 MB should be enough
7645    do
7646      i=`expr $i + 1`
7647      teststring=$teststring$teststring
7648    done
7649    teststring=
7650    # Add a significant safety factor because C++ compilers can tack on massive
7651    # amounts of additional arguments before passing them to the linker.
7652    # It appears as though 1/2 is a usable value.
7653    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7654    ;;
7655  esac
7656
7657fi
7658
7659if test -n $lt_cv_sys_max_cmd_len ; then
7660  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7661echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7662else
7663  { echo "$as_me:$LINENO: result: none" >&5
7664echo "${ECHO_T}none" >&6; }
7665fi
7666
7667
7668
7669
7670# Check for command to grab the raw symbol name followed by C symbol from nm.
7671{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7672echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7673if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7674  echo $ECHO_N "(cached) $ECHO_C" >&6
7675else
7676
7677# These are sane defaults that work on at least a few old systems.
7678# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7679
7680# Character class describing NM global symbol codes.
7681symcode='[BCDEGRST]'
7682
7683# Regexp to match symbols that can be accessed directly from C.
7684sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7685
7686# Transform an extracted symbol line into a proper C declaration
7687lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7688
7689# Transform an extracted symbol line into symbol name and symbol address
7690lt_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'"
7691
7692# Define system-specific variables.
7693case $host_os in
7694aix*)
7695  symcode='[BCDT]'
7696  ;;
7697cygwin* | mingw* | pw32*)
7698  symcode='[ABCDGISTW]'
7699  ;;
7700hpux*) # Its linker distinguishes data from code symbols
7701  if test "$host_cpu" = ia64; then
7702    symcode='[ABCDEGRST]'
7703  fi
7704  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7705  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'"
7706  ;;
7707linux* | k*bsd*-gnu)
7708  if test "$host_cpu" = ia64; then
7709    symcode='[ABCDGIRSTW]'
7710    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7711    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'"
7712  fi
7713  ;;
7714irix* | nonstopux*)
7715  symcode='[BCDEGRST]'
7716  ;;
7717osf*)
7718  symcode='[BCDEGQRST]'
7719  ;;
7720solaris*)
7721  symcode='[BDRT]'
7722  ;;
7723sco3.2v5*)
7724  symcode='[DT]'
7725  ;;
7726sysv4.2uw2*)
7727  symcode='[DT]'
7728  ;;
7729sysv5* | sco5v6* | unixware* | OpenUNIX*)
7730  symcode='[ABDT]'
7731  ;;
7732sysv4)
7733  symcode='[DFNSTU]'
7734  ;;
7735esac
7736
7737# Handle CRLF in mingw tool chain
7738opt_cr=
7739case $build_os in
7740mingw*)
7741  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7742  ;;
7743esac
7744
7745# If we're using GNU nm, then use its standard symbol codes.
7746case `$NM -V 2>&1` in
7747*GNU* | *'with BFD'*)
7748  symcode='[ABCDGIRSTW]' ;;
7749esac
7750
7751# Try without a prefix undercore, then with it.
7752for ac_symprfx in "" "_"; do
7753
7754  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7755  symxfrm="\\1 $ac_symprfx\\2 \\2"
7756
7757  # Write the raw and C identifiers.
7758  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7759
7760  # Check to see that the pipe works correctly.
7761  pipe_works=no
7762
7763  rm -f conftest*
7764  cat > conftest.$ac_ext <<EOF
7765#ifdef __cplusplus
7766extern "C" {
7767#endif
7768char nm_test_var;
7769void nm_test_func(){}
7770#ifdef __cplusplus
7771}
7772#endif
7773int main(){nm_test_var='a';nm_test_func();return(0);}
7774EOF
7775
7776  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7777  (eval $ac_compile) 2>&5
7778  ac_status=$?
7779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780  (exit $ac_status); }; then
7781    # Now try to grab the symbols.
7782    nlist=conftest.nm
7783    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7784  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7785  ac_status=$?
7786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787  (exit $ac_status); } && test -s "$nlist"; then
7788      # Try sorting and uniquifying the output.
7789      if sort "$nlist" | uniq > "$nlist"T; then
7790	mv -f "$nlist"T "$nlist"
7791      else
7792	rm -f "$nlist"T
7793      fi
7794
7795      # Make sure that we snagged all the symbols we need.
7796      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7797	if grep ' nm_test_func$' "$nlist" >/dev/null; then
7798	  cat <<EOF > conftest.$ac_ext
7799#ifdef __cplusplus
7800extern "C" {
7801#endif
7802
7803EOF
7804	  # Now generate the symbol file.
7805	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7806
7807	  cat <<EOF >> conftest.$ac_ext
7808#if defined (__STDC__) && __STDC__
7809# define lt_ptr_t void *
7810#else
7811# define lt_ptr_t char *
7812# define const
7813#endif
7814
7815/* The mapping between symbol names and symbols. */
7816const struct {
7817  const char *name;
7818  lt_ptr_t address;
7819}
7820lt_preloaded_symbols[] =
7821{
7822EOF
7823	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7824	  cat <<\EOF >> conftest.$ac_ext
7825  {0, (lt_ptr_t) 0}
7826};
7827
7828#ifdef __cplusplus
7829}
7830#endif
7831EOF
7832	  # Now try linking the two files.
7833	  mv conftest.$ac_objext conftstm.$ac_objext
7834	  lt_save_LIBS="$LIBS"
7835	  lt_save_CFLAGS="$CFLAGS"
7836	  LIBS="conftstm.$ac_objext"
7837	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7838	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7839  (eval $ac_link) 2>&5
7840  ac_status=$?
7841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7843	    pipe_works=yes
7844	  fi
7845	  LIBS="$lt_save_LIBS"
7846	  CFLAGS="$lt_save_CFLAGS"
7847	else
7848	  echo "cannot find nm_test_func in $nlist" >&5
7849	fi
7850      else
7851	echo "cannot find nm_test_var in $nlist" >&5
7852      fi
7853    else
7854      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7855    fi
7856  else
7857    echo "$progname: failed program was:" >&5
7858    cat conftest.$ac_ext >&5
7859  fi
7860  rm -f conftest* conftst*
7861
7862  # Do not use the global_symbol_pipe unless it works.
7863  if test "$pipe_works" = yes; then
7864    break
7865  else
7866    lt_cv_sys_global_symbol_pipe=
7867  fi
7868done
7869
7870fi
7871
7872if test -z "$lt_cv_sys_global_symbol_pipe"; then
7873  lt_cv_sys_global_symbol_to_cdecl=
7874fi
7875if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7876  { echo "$as_me:$LINENO: result: failed" >&5
7877echo "${ECHO_T}failed" >&6; }
7878else
7879  { echo "$as_me:$LINENO: result: ok" >&5
7880echo "${ECHO_T}ok" >&6; }
7881fi
7882
7883{ echo "$as_me:$LINENO: checking for objdir" >&5
7884echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7885if test "${lt_cv_objdir+set}" = set; then
7886  echo $ECHO_N "(cached) $ECHO_C" >&6
7887else
7888  rm -f .libs 2>/dev/null
7889mkdir .libs 2>/dev/null
7890if test -d .libs; then
7891  lt_cv_objdir=.libs
7892else
7893  # MS-DOS does not allow filenames that begin with a dot.
7894  lt_cv_objdir=_libs
7895fi
7896rmdir .libs 2>/dev/null
7897fi
7898{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7899echo "${ECHO_T}$lt_cv_objdir" >&6; }
7900objdir=$lt_cv_objdir
7901
7902
7903
7904
7905
7906case $host_os in
7907aix3*)
7908  # AIX sometimes has problems with the GCC collect2 program.  For some
7909  # reason, if we set the COLLECT_NAMES environment variable, the problems
7910  # vanish in a puff of smoke.
7911  if test "X${COLLECT_NAMES+set}" != Xset; then
7912    COLLECT_NAMES=
7913    export COLLECT_NAMES
7914  fi
7915  ;;
7916esac
7917
7918# Sed substitution that helps us do robust quoting.  It backslashifies
7919# metacharacters that are still active within double-quoted strings.
7920Xsed='sed -e 1s/^X//'
7921sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7922
7923# Same as above, but do not quote variable references.
7924double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7925
7926# Sed substitution to delay expansion of an escaped shell variable in a
7927# double_quote_subst'ed string.
7928delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7929
7930# Sed substitution to avoid accidental globbing in evaled expressions
7931no_glob_subst='s/\*/\\\*/g'
7932
7933# Constants:
7934rm="rm -f"
7935
7936# Global variables:
7937default_ofile=libtool
7938can_build_shared=yes
7939
7940# All known linkers require a `.a' archive for static linking (except MSVC,
7941# which needs '.lib').
7942libext=a
7943ltmain="$ac_aux_dir/ltmain.sh"
7944ofile="$default_ofile"
7945with_gnu_ld="$lt_cv_prog_gnu_ld"
7946
7947if test -n "$ac_tool_prefix"; then
7948  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7949set dummy ${ac_tool_prefix}ar; ac_word=$2
7950{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7952if test "${ac_cv_prog_AR+set}" = set; then
7953  echo $ECHO_N "(cached) $ECHO_C" >&6
7954else
7955  if test -n "$AR"; then
7956  ac_cv_prog_AR="$AR" # Let the user override the test.
7957else
7958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959for as_dir in $PATH
7960do
7961  IFS=$as_save_IFS
7962  test -z "$as_dir" && as_dir=.
7963  for ac_exec_ext in '' $ac_executable_extensions; do
7964  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7965    ac_cv_prog_AR="${ac_tool_prefix}ar"
7966    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7967    break 2
7968  fi
7969done
7970done
7971IFS=$as_save_IFS
7972
7973fi
7974fi
7975AR=$ac_cv_prog_AR
7976if test -n "$AR"; then
7977  { echo "$as_me:$LINENO: result: $AR" >&5
7978echo "${ECHO_T}$AR" >&6; }
7979else
7980  { echo "$as_me:$LINENO: result: no" >&5
7981echo "${ECHO_T}no" >&6; }
7982fi
7983
7984
7985fi
7986if test -z "$ac_cv_prog_AR"; then
7987  ac_ct_AR=$AR
7988  # Extract the first word of "ar", so it can be a program name with args.
7989set dummy ar; ac_word=$2
7990{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7992if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7993  echo $ECHO_N "(cached) $ECHO_C" >&6
7994else
7995  if test -n "$ac_ct_AR"; then
7996  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7997else
7998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999for as_dir in $PATH
8000do
8001  IFS=$as_save_IFS
8002  test -z "$as_dir" && as_dir=.
8003  for ac_exec_ext in '' $ac_executable_extensions; do
8004  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8005    ac_cv_prog_ac_ct_AR="ar"
8006    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8007    break 2
8008  fi
8009done
8010done
8011IFS=$as_save_IFS
8012
8013fi
8014fi
8015ac_ct_AR=$ac_cv_prog_ac_ct_AR
8016if test -n "$ac_ct_AR"; then
8017  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8018echo "${ECHO_T}$ac_ct_AR" >&6; }
8019else
8020  { echo "$as_me:$LINENO: result: no" >&5
8021echo "${ECHO_T}no" >&6; }
8022fi
8023
8024  if test "x$ac_ct_AR" = x; then
8025    AR="false"
8026  else
8027    case $cross_compiling:$ac_tool_warned in
8028yes:)
8029{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8030whose name does not start with the host triplet.  If you think this
8031configuration is useful to you, please write to autoconf@gnu.org." >&5
8032echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8033whose name does not start with the host triplet.  If you think this
8034configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8035ac_tool_warned=yes ;;
8036esac
8037    AR=$ac_ct_AR
8038  fi
8039else
8040  AR="$ac_cv_prog_AR"
8041fi
8042
8043if test -n "$ac_tool_prefix"; then
8044  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8045set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8046{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8048if test "${ac_cv_prog_RANLIB+set}" = set; then
8049  echo $ECHO_N "(cached) $ECHO_C" >&6
8050else
8051  if test -n "$RANLIB"; then
8052  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8053else
8054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055for as_dir in $PATH
8056do
8057  IFS=$as_save_IFS
8058  test -z "$as_dir" && as_dir=.
8059  for ac_exec_ext in '' $ac_executable_extensions; do
8060  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8061    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8062    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8063    break 2
8064  fi
8065done
8066done
8067IFS=$as_save_IFS
8068
8069fi
8070fi
8071RANLIB=$ac_cv_prog_RANLIB
8072if test -n "$RANLIB"; then
8073  { echo "$as_me:$LINENO: result: $RANLIB" >&5
8074echo "${ECHO_T}$RANLIB" >&6; }
8075else
8076  { echo "$as_me:$LINENO: result: no" >&5
8077echo "${ECHO_T}no" >&6; }
8078fi
8079
8080
8081fi
8082if test -z "$ac_cv_prog_RANLIB"; then
8083  ac_ct_RANLIB=$RANLIB
8084  # Extract the first word of "ranlib", so it can be a program name with args.
8085set dummy ranlib; ac_word=$2
8086{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8088if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8089  echo $ECHO_N "(cached) $ECHO_C" >&6
8090else
8091  if test -n "$ac_ct_RANLIB"; then
8092  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8093else
8094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095for as_dir in $PATH
8096do
8097  IFS=$as_save_IFS
8098  test -z "$as_dir" && as_dir=.
8099  for ac_exec_ext in '' $ac_executable_extensions; do
8100  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8101    ac_cv_prog_ac_ct_RANLIB="ranlib"
8102    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8103    break 2
8104  fi
8105done
8106done
8107IFS=$as_save_IFS
8108
8109fi
8110fi
8111ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8112if test -n "$ac_ct_RANLIB"; then
8113  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8114echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8115else
8116  { echo "$as_me:$LINENO: result: no" >&5
8117echo "${ECHO_T}no" >&6; }
8118fi
8119
8120  if test "x$ac_ct_RANLIB" = x; then
8121    RANLIB=":"
8122  else
8123    case $cross_compiling:$ac_tool_warned in
8124yes:)
8125{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8126whose name does not start with the host triplet.  If you think this
8127configuration is useful to you, please write to autoconf@gnu.org." >&5
8128echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8129whose name does not start with the host triplet.  If you think this
8130configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8131ac_tool_warned=yes ;;
8132esac
8133    RANLIB=$ac_ct_RANLIB
8134  fi
8135else
8136  RANLIB="$ac_cv_prog_RANLIB"
8137fi
8138
8139if test -n "$ac_tool_prefix"; then
8140  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8141set dummy ${ac_tool_prefix}strip; ac_word=$2
8142{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8144if test "${ac_cv_prog_STRIP+set}" = set; then
8145  echo $ECHO_N "(cached) $ECHO_C" >&6
8146else
8147  if test -n "$STRIP"; then
8148  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8149else
8150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151for as_dir in $PATH
8152do
8153  IFS=$as_save_IFS
8154  test -z "$as_dir" && as_dir=.
8155  for ac_exec_ext in '' $ac_executable_extensions; do
8156  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8157    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8158    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8159    break 2
8160  fi
8161done
8162done
8163IFS=$as_save_IFS
8164
8165fi
8166fi
8167STRIP=$ac_cv_prog_STRIP
8168if test -n "$STRIP"; then
8169  { echo "$as_me:$LINENO: result: $STRIP" >&5
8170echo "${ECHO_T}$STRIP" >&6; }
8171else
8172  { echo "$as_me:$LINENO: result: no" >&5
8173echo "${ECHO_T}no" >&6; }
8174fi
8175
8176
8177fi
8178if test -z "$ac_cv_prog_STRIP"; then
8179  ac_ct_STRIP=$STRIP
8180  # Extract the first word of "strip", so it can be a program name with args.
8181set dummy strip; ac_word=$2
8182{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8184if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8185  echo $ECHO_N "(cached) $ECHO_C" >&6
8186else
8187  if test -n "$ac_ct_STRIP"; then
8188  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8189else
8190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191for as_dir in $PATH
8192do
8193  IFS=$as_save_IFS
8194  test -z "$as_dir" && as_dir=.
8195  for ac_exec_ext in '' $ac_executable_extensions; do
8196  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8197    ac_cv_prog_ac_ct_STRIP="strip"
8198    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8199    break 2
8200  fi
8201done
8202done
8203IFS=$as_save_IFS
8204
8205fi
8206fi
8207ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8208if test -n "$ac_ct_STRIP"; then
8209  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8210echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8211else
8212  { echo "$as_me:$LINENO: result: no" >&5
8213echo "${ECHO_T}no" >&6; }
8214fi
8215
8216  if test "x$ac_ct_STRIP" = x; then
8217    STRIP=":"
8218  else
8219    case $cross_compiling:$ac_tool_warned in
8220yes:)
8221{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8222whose name does not start with the host triplet.  If you think this
8223configuration is useful to you, please write to autoconf@gnu.org." >&5
8224echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8225whose name does not start with the host triplet.  If you think this
8226configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8227ac_tool_warned=yes ;;
8228esac
8229    STRIP=$ac_ct_STRIP
8230  fi
8231else
8232  STRIP="$ac_cv_prog_STRIP"
8233fi
8234
8235
8236old_CC="$CC"
8237old_CFLAGS="$CFLAGS"
8238
8239# Set sane defaults for various variables
8240test -z "$AR" && AR=ar
8241test -z "$AR_FLAGS" && AR_FLAGS=cru
8242test -z "$AS" && AS=as
8243test -z "$CC" && CC=cc
8244test -z "$LTCC" && LTCC=$CC
8245test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8246test -z "$DLLTOOL" && DLLTOOL=dlltool
8247test -z "$LD" && LD=ld
8248test -z "$LN_S" && LN_S="ln -s"
8249test -z "$MAGIC_CMD" && MAGIC_CMD=file
8250test -z "$NM" && NM=nm
8251test -z "$SED" && SED=sed
8252test -z "$OBJDUMP" && OBJDUMP=objdump
8253test -z "$RANLIB" && RANLIB=:
8254test -z "$STRIP" && STRIP=:
8255test -z "$ac_objext" && ac_objext=o
8256
8257# Determine commands to create old-style static archives.
8258old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8259old_postinstall_cmds='chmod 644 $oldlib'
8260old_postuninstall_cmds=
8261
8262if test -n "$RANLIB"; then
8263  case $host_os in
8264  openbsd*)
8265    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8266    ;;
8267  *)
8268    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8269    ;;
8270  esac
8271  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8272fi
8273
8274for cc_temp in $compiler""; do
8275  case $cc_temp in
8276    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8277    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8278    \-*) ;;
8279    *) break;;
8280  esac
8281done
8282cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8283
8284
8285# Only perform the check for file, if the check method requires it
8286case $deplibs_check_method in
8287file_magic*)
8288  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8289    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8290echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8291if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8292  echo $ECHO_N "(cached) $ECHO_C" >&6
8293else
8294  case $MAGIC_CMD in
8295[\\/*] |  ?:[\\/]*)
8296  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8297  ;;
8298*)
8299  lt_save_MAGIC_CMD="$MAGIC_CMD"
8300  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8301  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8302  for ac_dir in $ac_dummy; do
8303    IFS="$lt_save_ifs"
8304    test -z "$ac_dir" && ac_dir=.
8305    if test -f $ac_dir/${ac_tool_prefix}file; then
8306      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8307      if test -n "$file_magic_test_file"; then
8308	case $deplibs_check_method in
8309	"file_magic "*)
8310	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8311	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8312	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8313	    $EGREP "$file_magic_regex" > /dev/null; then
8314	    :
8315	  else
8316	    cat <<EOF 1>&2
8317
8318*** Warning: the command libtool uses to detect shared libraries,
8319*** $file_magic_cmd, produces output that libtool cannot recognize.
8320*** The result is that libtool may fail to recognize shared libraries
8321*** as such.  This will affect the creation of libtool libraries that
8322*** depend on shared libraries, but programs linked with such libtool
8323*** libraries will work regardless of this problem.  Nevertheless, you
8324*** may want to report the problem to your system manager and/or to
8325*** bug-libtool@gnu.org
8326
8327EOF
8328	  fi ;;
8329	esac
8330      fi
8331      break
8332    fi
8333  done
8334  IFS="$lt_save_ifs"
8335  MAGIC_CMD="$lt_save_MAGIC_CMD"
8336  ;;
8337esac
8338fi
8339
8340MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8341if test -n "$MAGIC_CMD"; then
8342  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8343echo "${ECHO_T}$MAGIC_CMD" >&6; }
8344else
8345  { echo "$as_me:$LINENO: result: no" >&5
8346echo "${ECHO_T}no" >&6; }
8347fi
8348
8349if test -z "$lt_cv_path_MAGIC_CMD"; then
8350  if test -n "$ac_tool_prefix"; then
8351    { echo "$as_me:$LINENO: checking for file" >&5
8352echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8353if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8354  echo $ECHO_N "(cached) $ECHO_C" >&6
8355else
8356  case $MAGIC_CMD in
8357[\\/*] |  ?:[\\/]*)
8358  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8359  ;;
8360*)
8361  lt_save_MAGIC_CMD="$MAGIC_CMD"
8362  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8363  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8364  for ac_dir in $ac_dummy; do
8365    IFS="$lt_save_ifs"
8366    test -z "$ac_dir" && ac_dir=.
8367    if test -f $ac_dir/file; then
8368      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8369      if test -n "$file_magic_test_file"; then
8370	case $deplibs_check_method in
8371	"file_magic "*)
8372	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8373	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8374	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8375	    $EGREP "$file_magic_regex" > /dev/null; then
8376	    :
8377	  else
8378	    cat <<EOF 1>&2
8379
8380*** Warning: the command libtool uses to detect shared libraries,
8381*** $file_magic_cmd, produces output that libtool cannot recognize.
8382*** The result is that libtool may fail to recognize shared libraries
8383*** as such.  This will affect the creation of libtool libraries that
8384*** depend on shared libraries, but programs linked with such libtool
8385*** libraries will work regardless of this problem.  Nevertheless, you
8386*** may want to report the problem to your system manager and/or to
8387*** bug-libtool@gnu.org
8388
8389EOF
8390	  fi ;;
8391	esac
8392      fi
8393      break
8394    fi
8395  done
8396  IFS="$lt_save_ifs"
8397  MAGIC_CMD="$lt_save_MAGIC_CMD"
8398  ;;
8399esac
8400fi
8401
8402MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8403if test -n "$MAGIC_CMD"; then
8404  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8405echo "${ECHO_T}$MAGIC_CMD" >&6; }
8406else
8407  { echo "$as_me:$LINENO: result: no" >&5
8408echo "${ECHO_T}no" >&6; }
8409fi
8410
8411  else
8412    MAGIC_CMD=:
8413  fi
8414fi
8415
8416  fi
8417  ;;
8418esac
8419
8420enable_dlopen=no
8421enable_win32_dll=no
8422
8423# Check whether --enable-libtool-lock was given.
8424if test "${enable_libtool_lock+set}" = set; then
8425  enableval=$enable_libtool_lock;
8426fi
8427
8428test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8429
8430
8431# Check whether --with-pic was given.
8432if test "${with_pic+set}" = set; then
8433  withval=$with_pic; pic_mode="$withval"
8434else
8435  pic_mode=default
8436fi
8437
8438test -z "$pic_mode" && pic_mode=default
8439
8440# Use C for the default configuration in the libtool script
8441tagname=
8442lt_save_CC="$CC"
8443ac_ext=c
8444ac_cpp='$CPP $CPPFLAGS'
8445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8447ac_compiler_gnu=$ac_cv_c_compiler_gnu
8448
8449
8450# Source file extension for C test sources.
8451ac_ext=c
8452
8453# Object file extension for compiled C test sources.
8454objext=o
8455objext=$objext
8456
8457# Code to be used in simple compile tests
8458lt_simple_compile_test_code="int some_variable = 0;\n"
8459
8460# Code to be used in simple link tests
8461lt_simple_link_test_code='int main(){return(0);}\n'
8462
8463
8464# If no C compiler was specified, use CC.
8465LTCC=${LTCC-"$CC"}
8466
8467# If no C compiler flags were specified, use CFLAGS.
8468LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8469
8470# Allow CC to be a program name with arguments.
8471compiler=$CC
8472
8473
8474# save warnings/boilerplate of simple test code
8475ac_outfile=conftest.$ac_objext
8476printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8477eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8478_lt_compiler_boilerplate=`cat conftest.err`
8479$rm conftest*
8480
8481ac_outfile=conftest.$ac_objext
8482printf "$lt_simple_link_test_code" >conftest.$ac_ext
8483eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8484_lt_linker_boilerplate=`cat conftest.err`
8485$rm conftest*
8486
8487
8488
8489lt_prog_compiler_no_builtin_flag=
8490
8491if test "$GCC" = yes; then
8492  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8493
8494
8495{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8496echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8497if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8498  echo $ECHO_N "(cached) $ECHO_C" >&6
8499else
8500  lt_cv_prog_compiler_rtti_exceptions=no
8501  ac_outfile=conftest.$ac_objext
8502   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8503   lt_compiler_flag="-fno-rtti -fno-exceptions"
8504   # Insert the option either (1) after the last *FLAGS variable, or
8505   # (2) before a word containing "conftest.", or (3) at the end.
8506   # Note that $ac_compile itself does not contain backslashes and begins
8507   # with a dollar sign (not a hyphen), so the echo should work correctly.
8508   # The option is referenced via a variable to avoid confusing sed.
8509   lt_compile=`echo "$ac_compile" | $SED \
8510   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8511   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8512   -e 's:$: $lt_compiler_flag:'`
8513   (eval echo "\"\$as_me:8513: $lt_compile\"" >&5)
8514   (eval "$lt_compile" 2>conftest.err)
8515   ac_status=$?
8516   cat conftest.err >&5
8517   echo "$as_me:8517: \$? = $ac_status" >&5
8518   if (exit $ac_status) && test -s "$ac_outfile"; then
8519     # The compiler can only warn and ignore the option if not recognized
8520     # So say no if there are warnings other than the usual output.
8521     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8522     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8523     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8524       lt_cv_prog_compiler_rtti_exceptions=yes
8525     fi
8526   fi
8527   $rm conftest*
8528
8529fi
8530{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8531echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8532
8533if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8534    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8535else
8536    :
8537fi
8538
8539fi
8540
8541lt_prog_compiler_wl=
8542lt_prog_compiler_pic=
8543lt_prog_compiler_static=
8544
8545{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8546echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8547
8548  if test "$GCC" = yes; then
8549    lt_prog_compiler_wl='-Wl,'
8550    lt_prog_compiler_static='-static'
8551
8552    case $host_os in
8553      aix*)
8554      # All AIX code is PIC.
8555      if test "$host_cpu" = ia64; then
8556	# AIX 5 now supports IA64 processor
8557	lt_prog_compiler_static='-Bstatic'
8558      fi
8559      ;;
8560
8561    amigaos*)
8562      # FIXME: we need at least 68020 code to build shared libraries, but
8563      # adding the `-m68020' flag to GCC prevents building anything better,
8564      # like `-m68040'.
8565      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8566      ;;
8567
8568    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8569      # PIC is the default for these OSes.
8570      ;;
8571
8572    mingw* | pw32* | os2*)
8573      # This hack is so that the source file can tell whether it is being
8574      # built for inclusion in a dll (and should export symbols for example).
8575      lt_prog_compiler_pic='-DDLL_EXPORT'
8576      ;;
8577
8578    darwin* | rhapsody*)
8579      # PIC is the default on this platform
8580      # Common symbols not allowed in MH_DYLIB files
8581      lt_prog_compiler_pic='-fno-common'
8582      ;;
8583
8584    interix3*)
8585      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8586      # Instead, we relocate shared libraries at runtime.
8587      ;;
8588
8589    msdosdjgpp*)
8590      # Just because we use GCC doesn't mean we suddenly get shared libraries
8591      # on systems that don't support them.
8592      lt_prog_compiler_can_build_shared=no
8593      enable_shared=no
8594      ;;
8595
8596    sysv4*MP*)
8597      if test -d /usr/nec; then
8598	lt_prog_compiler_pic=-Kconform_pic
8599      fi
8600      ;;
8601
8602    hpux*)
8603      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8604      # not for PA HP-UX.
8605      case $host_cpu in
8606      hppa*64*|ia64*)
8607	# +Z the default
8608	;;
8609      *)
8610	lt_prog_compiler_pic='-fPIC'
8611	;;
8612      esac
8613      ;;
8614
8615    *)
8616      lt_prog_compiler_pic='-fPIC'
8617      ;;
8618    esac
8619  else
8620    # PORTME Check for flag to pass linker flags through the system compiler.
8621    case $host_os in
8622    aix*)
8623      lt_prog_compiler_wl='-Wl,'
8624      if test "$host_cpu" = ia64; then
8625	# AIX 5 now supports IA64 processor
8626	lt_prog_compiler_static='-Bstatic'
8627      else
8628	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8629      fi
8630      ;;
8631      darwin*)
8632        # PIC is the default on this platform
8633        # Common symbols not allowed in MH_DYLIB files
8634       case $cc_basename in
8635         xlc*)
8636         lt_prog_compiler_pic='-qnocommon'
8637         lt_prog_compiler_wl='-Wl,'
8638         ;;
8639       esac
8640       ;;
8641
8642    mingw* | pw32* | os2*)
8643      # This hack is so that the source file can tell whether it is being
8644      # built for inclusion in a dll (and should export symbols for example).
8645      lt_prog_compiler_pic='-DDLL_EXPORT'
8646      ;;
8647
8648    hpux9* | hpux10* | hpux11*)
8649      lt_prog_compiler_wl='-Wl,'
8650      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8651      # not for PA HP-UX.
8652      case $host_cpu in
8653      hppa*64*|ia64*)
8654	# +Z the default
8655	;;
8656      *)
8657	lt_prog_compiler_pic='+Z'
8658	;;
8659      esac
8660      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8661      lt_prog_compiler_static='${wl}-a ${wl}archive'
8662      ;;
8663
8664    irix5* | irix6* | nonstopux*)
8665      lt_prog_compiler_wl='-Wl,'
8666      # PIC (with -KPIC) is the default.
8667      lt_prog_compiler_static='-non_shared'
8668      ;;
8669
8670    newsos6)
8671      lt_prog_compiler_pic='-KPIC'
8672      lt_prog_compiler_static='-Bstatic'
8673      ;;
8674
8675    linux* | k*bsd*-gnu)
8676      case $cc_basename in
8677      icc* | ecc*)
8678	lt_prog_compiler_wl='-Wl,'
8679	lt_prog_compiler_pic='-KPIC'
8680	lt_prog_compiler_static='-static'
8681        ;;
8682      pgcc* | pgf77* | pgf90* | pgf95*)
8683        # Portland Group compilers (*not* the Pentium gcc compiler,
8684	# which looks to be a dead project)
8685	lt_prog_compiler_wl='-Wl,'
8686	lt_prog_compiler_pic='-fpic'
8687	lt_prog_compiler_static='-Bstatic'
8688        ;;
8689      ccc*)
8690        lt_prog_compiler_wl='-Wl,'
8691        # All Alpha code is PIC.
8692        lt_prog_compiler_static='-non_shared'
8693        ;;
8694      esac
8695      ;;
8696
8697    osf3* | osf4* | osf5*)
8698      lt_prog_compiler_wl='-Wl,'
8699      # All OSF/1 code is PIC.
8700      lt_prog_compiler_static='-non_shared'
8701      ;;
8702
8703    solaris*)
8704      lt_prog_compiler_pic='-KPIC'
8705      lt_prog_compiler_static='-Bstatic'
8706      case $cc_basename in
8707      f77* | f90* | f95*)
8708	lt_prog_compiler_wl='-Qoption ld ';;
8709      *)
8710	lt_prog_compiler_wl='-Wl,';;
8711      esac
8712      ;;
8713
8714    sunos4*)
8715      lt_prog_compiler_wl='-Qoption ld '
8716      lt_prog_compiler_pic='-PIC'
8717      lt_prog_compiler_static='-Bstatic'
8718      ;;
8719
8720    sysv4 | sysv4.2uw2* | sysv4.3*)
8721      lt_prog_compiler_wl='-Wl,'
8722      lt_prog_compiler_pic='-KPIC'
8723      lt_prog_compiler_static='-Bstatic'
8724      ;;
8725
8726    sysv4*MP*)
8727      if test -d /usr/nec ;then
8728	lt_prog_compiler_pic='-Kconform_pic'
8729	lt_prog_compiler_static='-Bstatic'
8730      fi
8731      ;;
8732
8733    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8734      lt_prog_compiler_wl='-Wl,'
8735      lt_prog_compiler_pic='-KPIC'
8736      lt_prog_compiler_static='-Bstatic'
8737      ;;
8738
8739    unicos*)
8740      lt_prog_compiler_wl='-Wl,'
8741      lt_prog_compiler_can_build_shared=no
8742      ;;
8743
8744    uts4*)
8745      lt_prog_compiler_pic='-pic'
8746      lt_prog_compiler_static='-Bstatic'
8747      ;;
8748
8749    *)
8750      lt_prog_compiler_can_build_shared=no
8751      ;;
8752    esac
8753  fi
8754
8755{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8756echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8757
8758#
8759# Check to make sure the PIC flag actually works.
8760#
8761if test -n "$lt_prog_compiler_pic"; then
8762
8763{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8764echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8765if test "${lt_prog_compiler_pic_works+set}" = set; then
8766  echo $ECHO_N "(cached) $ECHO_C" >&6
8767else
8768  lt_prog_compiler_pic_works=no
8769  ac_outfile=conftest.$ac_objext
8770   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8771   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8772   # Insert the option either (1) after the last *FLAGS variable, or
8773   # (2) before a word containing "conftest.", or (3) at the end.
8774   # Note that $ac_compile itself does not contain backslashes and begins
8775   # with a dollar sign (not a hyphen), so the echo should work correctly.
8776   # The option is referenced via a variable to avoid confusing sed.
8777   lt_compile=`echo "$ac_compile" | $SED \
8778   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8779   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8780   -e 's:$: $lt_compiler_flag:'`
8781   (eval echo "\"\$as_me:8781: $lt_compile\"" >&5)
8782   (eval "$lt_compile" 2>conftest.err)
8783   ac_status=$?
8784   cat conftest.err >&5
8785   echo "$as_me:8785: \$? = $ac_status" >&5
8786   if (exit $ac_status) && test -s "$ac_outfile"; then
8787     # The compiler can only warn and ignore the option if not recognized
8788     # So say no if there are warnings other than the usual output.
8789     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8790     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8791     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8792       lt_prog_compiler_pic_works=yes
8793     fi
8794   fi
8795   $rm conftest*
8796
8797fi
8798{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8799echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8800
8801if test x"$lt_prog_compiler_pic_works" = xyes; then
8802    case $lt_prog_compiler_pic in
8803     "" | " "*) ;;
8804     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8805     esac
8806else
8807    lt_prog_compiler_pic=
8808     lt_prog_compiler_can_build_shared=no
8809fi
8810
8811fi
8812case $host_os in
8813  # For platforms which do not support PIC, -DPIC is meaningless:
8814  *djgpp*)
8815    lt_prog_compiler_pic=
8816    ;;
8817  *)
8818    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8819    ;;
8820esac
8821
8822#
8823# Check to make sure the static flag actually works.
8824#
8825wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8826{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8827echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8828if test "${lt_prog_compiler_static_works+set}" = set; then
8829  echo $ECHO_N "(cached) $ECHO_C" >&6
8830else
8831  lt_prog_compiler_static_works=no
8832   save_LDFLAGS="$LDFLAGS"
8833   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8834   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8835   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8836     # The linker can only warn and ignore the option if not recognized
8837     # So say no if there are warnings
8838     if test -s conftest.err; then
8839       # Append any errors to the config.log.
8840       cat conftest.err 1>&5
8841       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8842       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8843       if diff conftest.exp conftest.er2 >/dev/null; then
8844         lt_prog_compiler_static_works=yes
8845       fi
8846     else
8847       lt_prog_compiler_static_works=yes
8848     fi
8849   fi
8850   $rm conftest*
8851   LDFLAGS="$save_LDFLAGS"
8852
8853fi
8854{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8855echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8856
8857if test x"$lt_prog_compiler_static_works" = xyes; then
8858    :
8859else
8860    lt_prog_compiler_static=
8861fi
8862
8863
8864{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8865echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8866if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8867  echo $ECHO_N "(cached) $ECHO_C" >&6
8868else
8869  lt_cv_prog_compiler_c_o=no
8870   $rm -r conftest 2>/dev/null
8871   mkdir conftest
8872   cd conftest
8873   mkdir out
8874   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8875
8876   lt_compiler_flag="-o out/conftest2.$ac_objext"
8877   # Insert the option either (1) after the last *FLAGS variable, or
8878   # (2) before a word containing "conftest.", or (3) at the end.
8879   # Note that $ac_compile itself does not contain backslashes and begins
8880   # with a dollar sign (not a hyphen), so the echo should work correctly.
8881   lt_compile=`echo "$ac_compile" | $SED \
8882   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8883   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8884   -e 's:$: $lt_compiler_flag:'`
8885   (eval echo "\"\$as_me:8885: $lt_compile\"" >&5)
8886   (eval "$lt_compile" 2>out/conftest.err)
8887   ac_status=$?
8888   cat out/conftest.err >&5
8889   echo "$as_me:8889: \$? = $ac_status" >&5
8890   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8891   then
8892     # The compiler can only warn and ignore the option if not recognized
8893     # So say no if there are warnings
8894     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8895     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8896     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8897       lt_cv_prog_compiler_c_o=yes
8898     fi
8899   fi
8900   chmod u+w . 2>&5
8901   $rm conftest*
8902   # SGI C++ compiler will create directory out/ii_files/ for
8903   # template instantiation
8904   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8905   $rm out/* && rmdir out
8906   cd ..
8907   rmdir conftest
8908   $rm conftest*
8909
8910fi
8911{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8912echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8913
8914
8915hard_links="nottested"
8916if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8917  # do not overwrite the value of need_locks provided by the user
8918  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8919echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8920  hard_links=yes
8921  $rm conftest*
8922  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8923  touch conftest.a
8924  ln conftest.a conftest.b 2>&5 || hard_links=no
8925  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8926  { echo "$as_me:$LINENO: result: $hard_links" >&5
8927echo "${ECHO_T}$hard_links" >&6; }
8928  if test "$hard_links" = no; then
8929    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8930echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8931    need_locks=warn
8932  fi
8933else
8934  need_locks=no
8935fi
8936
8937{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8938echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8939
8940  runpath_var=
8941  allow_undefined_flag=
8942  enable_shared_with_static_runtimes=no
8943  archive_cmds=
8944  archive_expsym_cmds=
8945  old_archive_From_new_cmds=
8946  old_archive_from_expsyms_cmds=
8947  export_dynamic_flag_spec=
8948  whole_archive_flag_spec=
8949  thread_safe_flag_spec=
8950  hardcode_libdir_flag_spec=
8951  hardcode_libdir_flag_spec_ld=
8952  hardcode_libdir_separator=
8953  hardcode_direct=no
8954  hardcode_minus_L=no
8955  hardcode_shlibpath_var=unsupported
8956  link_all_deplibs=unknown
8957  hardcode_automatic=no
8958  module_cmds=
8959  module_expsym_cmds=
8960  always_export_symbols=no
8961  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8962  # include_expsyms should be a list of space-separated symbols to be *always*
8963  # included in the symbol list
8964  include_expsyms=
8965  # exclude_expsyms can be an extended regexp of symbols to exclude
8966  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8967  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8968  # as well as any symbol that contains `d'.
8969  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8970  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8971  # platforms (ab)use it in PIC code, but their linkers get confused if
8972  # the symbol is explicitly referenced.  Since portable code cannot
8973  # rely on this symbol name, it's probably fine to never include it in
8974  # preloaded symbol tables.
8975  extract_expsyms_cmds=
8976  # Just being paranoid about ensuring that cc_basename is set.
8977  for cc_temp in $compiler""; do
8978  case $cc_temp in
8979    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8980    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8981    \-*) ;;
8982    *) break;;
8983  esac
8984done
8985cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8986
8987  case $host_os in
8988  cygwin* | mingw* | pw32*)
8989    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8990    # When not using gcc, we currently assume that we are using
8991    # Microsoft Visual C++.
8992    if test "$GCC" != yes; then
8993      with_gnu_ld=no
8994    fi
8995    ;;
8996  interix*)
8997    # we just hope/assume this is gcc and not c89 (= MSVC++)
8998    with_gnu_ld=yes
8999    ;;
9000  openbsd*)
9001    with_gnu_ld=no
9002    ;;
9003  esac
9004
9005  ld_shlibs=yes
9006  if test "$with_gnu_ld" = yes; then
9007    # If archive_cmds runs LD, not CC, wlarc should be empty
9008    wlarc='${wl}'
9009
9010    # Set some defaults for GNU ld with shared library support. These
9011    # are reset later if shared libraries are not supported. Putting them
9012    # here allows them to be overridden if necessary.
9013    runpath_var=LD_RUN_PATH
9014    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9015    export_dynamic_flag_spec='${wl}--export-dynamic'
9016    # ancient GNU ld didn't support --whole-archive et. al.
9017    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9018	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9019      else
9020  	whole_archive_flag_spec=
9021    fi
9022    supports_anon_versioning=no
9023    case `$LD -v 2>/dev/null` in
9024      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9025      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9026      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9027      *\ 2.11.*) ;; # other 2.11 versions
9028      *) supports_anon_versioning=yes ;;
9029    esac
9030
9031    # See if GNU ld supports shared libraries.
9032    case $host_os in
9033    aix3* | aix4* | aix5*)
9034      # On AIX/PPC, the GNU linker is very broken
9035      if test "$host_cpu" != ia64; then
9036	ld_shlibs=no
9037	cat <<EOF 1>&2
9038
9039*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9040*** to be unable to reliably create shared libraries on AIX.
9041*** Therefore, libtool is disabling shared libraries support.  If you
9042*** really care for shared libraries, you may want to modify your PATH
9043*** so that a non-GNU linker is found, and then restart.
9044
9045EOF
9046      fi
9047      ;;
9048
9049    amigaos*)
9050      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)'
9051      hardcode_libdir_flag_spec='-L$libdir'
9052      hardcode_minus_L=yes
9053
9054      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9055      # that the semantics of dynamic libraries on AmigaOS, at least up
9056      # to version 4, is to share data among multiple programs linked
9057      # with the same dynamic library.  Since this doesn't match the
9058      # behavior of shared libraries on other platforms, we can't use
9059      # them.
9060      ld_shlibs=no
9061      ;;
9062
9063    beos*)
9064      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9065	allow_undefined_flag=unsupported
9066	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9067	# support --undefined.  This deserves some investigation.  FIXME
9068	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9069      else
9070	ld_shlibs=no
9071      fi
9072      ;;
9073
9074    cygwin* | mingw* | pw32*)
9075      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9076      # as there is no search path for DLLs.
9077      hardcode_libdir_flag_spec='-L$libdir'
9078      allow_undefined_flag=unsupported
9079      always_export_symbols=no
9080      enable_shared_with_static_runtimes=yes
9081      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9082
9083      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9084        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9085	# If the export-symbols file already is a .def file (1st line
9086	# is EXPORTS), use it as is; otherwise, prepend...
9087	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9088	  cp $export_symbols $output_objdir/$soname.def;
9089	else
9090	  echo EXPORTS > $output_objdir/$soname.def;
9091	  cat $export_symbols >> $output_objdir/$soname.def;
9092	fi~
9093	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9094      else
9095	ld_shlibs=no
9096      fi
9097      ;;
9098
9099    interix3*)
9100      hardcode_direct=no
9101      hardcode_shlibpath_var=no
9102      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9103      export_dynamic_flag_spec='${wl}-E'
9104      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9105      # Instead, shared libraries are loaded at an image base (0x10000000 by
9106      # default) and relocated if they conflict, which is a slow very memory
9107      # consuming and fragmenting process.  To avoid this, we pick a random,
9108      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9109      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9110      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9111      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'
9112      ;;
9113
9114    linux* | k*bsd*-gnu)
9115      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9116	tmp_addflag=
9117	case $cc_basename,$host_cpu in
9118	pgcc*)				# Portland Group C compiler
9119	  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'
9120	  tmp_addflag=' $pic_flag'
9121	  ;;
9122	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9123	  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'
9124	  tmp_addflag=' $pic_flag -Mnomain' ;;
9125	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
9126	  tmp_addflag=' -i_dynamic' ;;
9127	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9128	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9129	ifc* | ifort*)			# Intel Fortran compiler
9130	  tmp_addflag=' -nofor_main' ;;
9131	esac
9132	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9133
9134	if test $supports_anon_versioning = yes; then
9135	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9136  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9137  $echo "local: *; };" >> $output_objdir/$libname.ver~
9138	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9139	fi
9140	link_all_deplibs=no
9141      else
9142	ld_shlibs=no
9143      fi
9144      ;;
9145
9146    netbsd* | netbsdelf*-gnu)
9147      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9148	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9149	wlarc=
9150      else
9151	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9152	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9153      fi
9154      ;;
9155
9156    solaris*)
9157      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9158	ld_shlibs=no
9159	cat <<EOF 1>&2
9160
9161*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9162*** create shared libraries on Solaris systems.  Therefore, libtool
9163*** is disabling shared libraries support.  We urge you to upgrade GNU
9164*** binutils to release 2.9.1 or newer.  Another option is to modify
9165*** your PATH or compiler configuration so that the native linker is
9166*** used, and then restart.
9167
9168EOF
9169      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9170	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9171	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9172      else
9173	ld_shlibs=no
9174      fi
9175      ;;
9176
9177    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9178      case `$LD -v 2>&1` in
9179        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9180	ld_shlibs=no
9181	cat <<_LT_EOF 1>&2
9182
9183*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9184*** reliably create shared libraries on SCO systems.  Therefore, libtool
9185*** is disabling shared libraries support.  We urge you to upgrade GNU
9186*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9187*** your PATH or compiler configuration so that the native linker is
9188*** used, and then restart.
9189
9190_LT_EOF
9191	;;
9192	*)
9193	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9194	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9195	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9196	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9197	  else
9198	    ld_shlibs=no
9199	  fi
9200	;;
9201      esac
9202      ;;
9203
9204    sunos4*)
9205      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9206      wlarc=
9207      hardcode_direct=yes
9208      hardcode_shlibpath_var=no
9209      ;;
9210
9211    *)
9212      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9213	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9214	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9215      else
9216	ld_shlibs=no
9217      fi
9218      ;;
9219    esac
9220
9221    if test "$ld_shlibs" = no; then
9222      runpath_var=
9223      hardcode_libdir_flag_spec=
9224      export_dynamic_flag_spec=
9225      whole_archive_flag_spec=
9226    fi
9227  else
9228    # PORTME fill in a description of your system's linker (not GNU ld)
9229    case $host_os in
9230    aix3*)
9231      allow_undefined_flag=unsupported
9232      always_export_symbols=yes
9233      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'
9234      # Note: this linker hardcodes the directories in LIBPATH if there
9235      # are no directories specified by -L.
9236      hardcode_minus_L=yes
9237      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9238	# Neither direct hardcoding nor static linking is supported with a
9239	# broken collect2.
9240	hardcode_direct=unsupported
9241      fi
9242      ;;
9243
9244    aix4* | aix5*)
9245      if test "$host_cpu" = ia64; then
9246	# On IA64, the linker does run time linking by default, so we don't
9247	# have to do anything special.
9248	aix_use_runtimelinking=no
9249	exp_sym_flag='-Bexport'
9250	no_entry_flag=""
9251      else
9252	# If we're using GNU nm, then we don't want the "-C" option.
9253	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9254	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9255	  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'
9256	else
9257	  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'
9258	fi
9259	aix_use_runtimelinking=no
9260
9261	# Test if we are trying to use run time linking or normal
9262	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9263	# need to do runtime linking.
9264	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9265	  for ld_flag in $LDFLAGS; do
9266  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9267  	    aix_use_runtimelinking=yes
9268  	    break
9269  	  fi
9270	  done
9271	  ;;
9272	esac
9273
9274	exp_sym_flag='-bexport'
9275	no_entry_flag='-bnoentry'
9276      fi
9277
9278      # When large executables or shared objects are built, AIX ld can
9279      # have problems creating the table of contents.  If linking a library
9280      # or program results in "error TOC overflow" add -mminimal-toc to
9281      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9282      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9283
9284      archive_cmds=''
9285      hardcode_direct=yes
9286      hardcode_libdir_separator=':'
9287      link_all_deplibs=yes
9288
9289      if test "$GCC" = yes; then
9290	case $host_os in aix4.[012]|aix4.[012].*)
9291	# We only want to do this on AIX 4.2 and lower, the check
9292	# below for broken collect2 doesn't work under 4.3+
9293	  collect2name=`${CC} -print-prog-name=collect2`
9294	  if test -f "$collect2name" && \
9295  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9296	  then
9297  	  # We have reworked collect2
9298  	  hardcode_direct=yes
9299	  else
9300  	  # We have old collect2
9301  	  hardcode_direct=unsupported
9302  	  # It fails to find uninstalled libraries when the uninstalled
9303  	  # path is not listed in the libpath.  Setting hardcode_minus_L
9304  	  # to unsupported forces relinking
9305  	  hardcode_minus_L=yes
9306  	  hardcode_libdir_flag_spec='-L$libdir'
9307  	  hardcode_libdir_separator=
9308	  fi
9309	  ;;
9310	esac
9311	shared_flag='-shared'
9312	if test "$aix_use_runtimelinking" = yes; then
9313	  shared_flag="$shared_flag "'${wl}-G'
9314	fi
9315      else
9316	# not using gcc
9317	if test "$host_cpu" = ia64; then
9318  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9319  	# chokes on -Wl,-G. The following line is correct:
9320	  shared_flag='-G'
9321	else
9322	  if test "$aix_use_runtimelinking" = yes; then
9323	    shared_flag='${wl}-G'
9324	  else
9325	    shared_flag='${wl}-bM:SRE'
9326	  fi
9327	fi
9328      fi
9329
9330      # It seems that -bexpall does not export symbols beginning with
9331      # underscore (_), so it is better to generate a list of symbols to export.
9332      always_export_symbols=yes
9333      if test "$aix_use_runtimelinking" = yes; then
9334	# Warning - without using the other runtime loading flags (-brtl),
9335	# -berok will link without error, but may produce a broken library.
9336	allow_undefined_flag='-berok'
9337       # Determine the default libpath from the value encoded in an empty executable.
9338       cat >conftest.$ac_ext <<_ACEOF
9339/* confdefs.h.  */
9340_ACEOF
9341cat confdefs.h >>conftest.$ac_ext
9342cat >>conftest.$ac_ext <<_ACEOF
9343/* end confdefs.h.  */
9344
9345int
9346main ()
9347{
9348
9349  ;
9350  return 0;
9351}
9352_ACEOF
9353rm -f conftest.$ac_objext conftest$ac_exeext
9354if { (ac_try="$ac_link"
9355case "(($ac_try" in
9356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9357  *) ac_try_echo=$ac_try;;
9358esac
9359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9360  (eval "$ac_link") 2>conftest.er1
9361  ac_status=$?
9362  grep -v '^ *+' conftest.er1 >conftest.err
9363  rm -f conftest.er1
9364  cat conftest.err >&5
9365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366  (exit $ac_status); } && {
9367	 test -z "$ac_c_werror_flag" ||
9368	 test ! -s conftest.err
9369       } && test -s conftest$ac_exeext &&
9370       $as_test_x conftest$ac_exeext; then
9371
9372aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9373}'`
9374# Check for a 64-bit object if we didn't find anything.
9375if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9376}'`; fi
9377else
9378  echo "$as_me: failed program was:" >&5
9379sed 's/^/| /' conftest.$ac_ext >&5
9380
9381
9382fi
9383
9384rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9385      conftest$ac_exeext conftest.$ac_ext
9386if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9387
9388       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9389	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"
9390       else
9391	if test "$host_cpu" = ia64; then
9392	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9393	  allow_undefined_flag="-z nodefs"
9394	  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"
9395	else
9396	 # Determine the default libpath from the value encoded in an empty executable.
9397	 cat >conftest.$ac_ext <<_ACEOF
9398/* confdefs.h.  */
9399_ACEOF
9400cat confdefs.h >>conftest.$ac_ext
9401cat >>conftest.$ac_ext <<_ACEOF
9402/* end confdefs.h.  */
9403
9404int
9405main ()
9406{
9407
9408  ;
9409  return 0;
9410}
9411_ACEOF
9412rm -f conftest.$ac_objext conftest$ac_exeext
9413if { (ac_try="$ac_link"
9414case "(($ac_try" in
9415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9416  *) ac_try_echo=$ac_try;;
9417esac
9418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9419  (eval "$ac_link") 2>conftest.er1
9420  ac_status=$?
9421  grep -v '^ *+' conftest.er1 >conftest.err
9422  rm -f conftest.er1
9423  cat conftest.err >&5
9424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425  (exit $ac_status); } && {
9426	 test -z "$ac_c_werror_flag" ||
9427	 test ! -s conftest.err
9428       } && test -s conftest$ac_exeext &&
9429       $as_test_x conftest$ac_exeext; then
9430
9431aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9432}'`
9433# Check for a 64-bit object if we didn't find anything.
9434if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9435}'`; fi
9436else
9437  echo "$as_me: failed program was:" >&5
9438sed 's/^/| /' conftest.$ac_ext >&5
9439
9440
9441fi
9442
9443rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9444      conftest$ac_exeext conftest.$ac_ext
9445if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9446
9447	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9448	  # Warning - without using the other run time loading flags,
9449	  # -berok will link without error, but may produce a broken library.
9450	  no_undefined_flag=' ${wl}-bernotok'
9451	  allow_undefined_flag=' ${wl}-berok'
9452	  # Exported symbols can be pulled into shared objects from archives
9453	  whole_archive_flag_spec='$convenience'
9454	  archive_cmds_need_lc=yes
9455	  # This is similar to how AIX traditionally builds its shared libraries.
9456	  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'
9457	fi
9458      fi
9459      ;;
9460
9461    amigaos*)
9462      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)'
9463      hardcode_libdir_flag_spec='-L$libdir'
9464      hardcode_minus_L=yes
9465      # see comment about different semantics on the GNU ld section
9466      ld_shlibs=no
9467      ;;
9468
9469    bsdi[45]*)
9470      export_dynamic_flag_spec=-rdynamic
9471      ;;
9472
9473    cygwin* | mingw* | pw32*)
9474      # When not using gcc, we currently assume that we are using
9475      # Microsoft Visual C++.
9476      # hardcode_libdir_flag_spec is actually meaningless, as there is
9477      # no search path for DLLs.
9478      hardcode_libdir_flag_spec=' '
9479      allow_undefined_flag=unsupported
9480      # Tell ltmain to make .lib files, not .a files.
9481      libext=lib
9482      # Tell ltmain to make .dll files, not .so files.
9483      shrext_cmds=".dll"
9484      # FIXME: Setting linknames here is a bad hack.
9485      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9486      # The linker will automatically build a .lib file if we build a DLL.
9487      old_archive_From_new_cmds='true'
9488      # FIXME: Should let the user specify the lib program.
9489      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9490      fix_srcfile_path='`cygpath -w "$srcfile"`'
9491      enable_shared_with_static_runtimes=yes
9492      ;;
9493
9494    darwin* | rhapsody*)
9495      case $host_os in
9496        rhapsody* | darwin1.[012])
9497         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9498         ;;
9499       *) # Darwin 1.3 on
9500         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9501           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9502         else
9503           case ${MACOSX_DEPLOYMENT_TARGET} in
9504             10.[012])
9505               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9506               ;;
9507             10.*)
9508               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9509               ;;
9510           esac
9511         fi
9512         ;;
9513      esac
9514      archive_cmds_need_lc=no
9515      hardcode_direct=no
9516      hardcode_automatic=yes
9517      hardcode_shlibpath_var=unsupported
9518      whole_archive_flag_spec=''
9519      link_all_deplibs=yes
9520    if test "$GCC" = yes ; then
9521    	output_verbose_link_cmd='echo'
9522        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9523      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9524      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9525      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}'
9526      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}'
9527    else
9528      case $cc_basename in
9529        xlc*)
9530         output_verbose_link_cmd='echo'
9531         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9532         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9533          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9534         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9535          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}'
9536          ;;
9537       *)
9538         ld_shlibs=no
9539          ;;
9540      esac
9541    fi
9542      ;;
9543
9544    dgux*)
9545      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9546      hardcode_libdir_flag_spec='-L$libdir'
9547      hardcode_shlibpath_var=no
9548      ;;
9549
9550    freebsd1*)
9551      ld_shlibs=no
9552      ;;
9553
9554    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9555    # support.  Future versions do this automatically, but an explicit c++rt0.o
9556    # does not break anything, and helps significantly (at the cost of a little
9557    # extra space).
9558    freebsd2.2*)
9559      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9560      hardcode_libdir_flag_spec='-R$libdir'
9561      hardcode_direct=yes
9562      hardcode_shlibpath_var=no
9563      ;;
9564
9565    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9566    freebsd2*)
9567      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9568      hardcode_direct=yes
9569      hardcode_minus_L=yes
9570      hardcode_shlibpath_var=no
9571      ;;
9572
9573    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9574    freebsd* | dragonfly*)
9575      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9576      hardcode_libdir_flag_spec='-R$libdir'
9577      hardcode_direct=yes
9578      hardcode_shlibpath_var=no
9579      ;;
9580
9581    hpux9*)
9582      if test "$GCC" = yes; then
9583	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'
9584      else
9585	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'
9586      fi
9587      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9588      hardcode_libdir_separator=:
9589      hardcode_direct=yes
9590
9591      # hardcode_minus_L: Not really in the search PATH,
9592      # but as the default location of the library.
9593      hardcode_minus_L=yes
9594      export_dynamic_flag_spec='${wl}-E'
9595      ;;
9596
9597    hpux10*)
9598      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9599	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9600      else
9601	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9602      fi
9603      if test "$with_gnu_ld" = no; then
9604	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9605	hardcode_libdir_separator=:
9606
9607	hardcode_direct=yes
9608	export_dynamic_flag_spec='${wl}-E'
9609
9610	# hardcode_minus_L: Not really in the search PATH,
9611	# but as the default location of the library.
9612	hardcode_minus_L=yes
9613      fi
9614      ;;
9615
9616    hpux11*)
9617      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9618	case $host_cpu in
9619	hppa*64*)
9620	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9621	  ;;
9622	ia64*)
9623	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9624	  ;;
9625	*)
9626	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9627	  ;;
9628	esac
9629      else
9630	case $host_cpu in
9631	hppa*64*)
9632	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9633	  ;;
9634	ia64*)
9635	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9636	  ;;
9637	*)
9638	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9639	  ;;
9640	esac
9641      fi
9642      if test "$with_gnu_ld" = no; then
9643	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9644	hardcode_libdir_separator=:
9645
9646	case $host_cpu in
9647	hppa*64*|ia64*)
9648	  hardcode_libdir_flag_spec_ld='+b $libdir'
9649	  hardcode_direct=no
9650	  hardcode_shlibpath_var=no
9651	  ;;
9652	*)
9653	  hardcode_direct=yes
9654	  export_dynamic_flag_spec='${wl}-E'
9655
9656	  # hardcode_minus_L: Not really in the search PATH,
9657	  # but as the default location of the library.
9658	  hardcode_minus_L=yes
9659	  ;;
9660	esac
9661      fi
9662      ;;
9663
9664    irix5* | irix6* | nonstopux*)
9665      if test "$GCC" = yes; then
9666	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'
9667      else
9668	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'
9669	hardcode_libdir_flag_spec_ld='-rpath $libdir'
9670      fi
9671      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9672      hardcode_libdir_separator=:
9673      link_all_deplibs=yes
9674      ;;
9675
9676    netbsd* | netbsdelf*-gnu)
9677      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9678	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9679      else
9680	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9681      fi
9682      hardcode_libdir_flag_spec='-R$libdir'
9683      hardcode_direct=yes
9684      hardcode_shlibpath_var=no
9685      ;;
9686
9687    newsos6)
9688      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9689      hardcode_direct=yes
9690      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9691      hardcode_libdir_separator=:
9692      hardcode_shlibpath_var=no
9693      ;;
9694
9695    openbsd*)
9696      hardcode_direct=yes
9697      hardcode_shlibpath_var=no
9698      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9699	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9700	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9701	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9702	export_dynamic_flag_spec='${wl}-E'
9703      else
9704       case $host_os in
9705	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9706	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9707	   hardcode_libdir_flag_spec='-R$libdir'
9708	   ;;
9709	 *)
9710	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9711	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9712	   ;;
9713       esac
9714      fi
9715      ;;
9716
9717    os2*)
9718      hardcode_libdir_flag_spec='-L$libdir'
9719      hardcode_minus_L=yes
9720      allow_undefined_flag=unsupported
9721      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'
9722      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9723      ;;
9724
9725    osf3*)
9726      if test "$GCC" = yes; then
9727	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9728	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'
9729      else
9730	allow_undefined_flag=' -expect_unresolved \*'
9731	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'
9732      fi
9733      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9734      hardcode_libdir_separator=:
9735      ;;
9736
9737    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9738      if test "$GCC" = yes; then
9739	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9740	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'
9741	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9742      else
9743	allow_undefined_flag=' -expect_unresolved \*'
9744	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'
9745	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9746	$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'
9747
9748	# Both c and cxx compiler support -rpath directly
9749	hardcode_libdir_flag_spec='-rpath $libdir'
9750      fi
9751      hardcode_libdir_separator=:
9752      ;;
9753
9754    solaris*)
9755      no_undefined_flag=' -z text'
9756      if test "$GCC" = yes; then
9757	wlarc='${wl}'
9758	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9759	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9760	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9761      else
9762	wlarc=''
9763	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9764	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9765  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9766      fi
9767      hardcode_libdir_flag_spec='-R$libdir'
9768      hardcode_shlibpath_var=no
9769      case $host_os in
9770      solaris2.[0-5] | solaris2.[0-5].*) ;;
9771      *)
9772 	# The compiler driver will combine linker options so we
9773 	# cannot just pass the convience library names through
9774 	# without $wl, iff we do not link with $LD.
9775 	# Luckily, gcc supports the same syntax we need for Sun Studio.
9776 	# Supported since Solaris 2.6 (maybe 2.5.1?)
9777 	case $wlarc in
9778 	'')
9779 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9780 	*)
9781 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9782 	esac ;;
9783      esac
9784      link_all_deplibs=yes
9785      ;;
9786
9787    sunos4*)
9788      if test "x$host_vendor" = xsequent; then
9789	# Use $CC to link under sequent, because it throws in some extra .o
9790	# files that make .init and .fini sections work.
9791	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9792      else
9793	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9794      fi
9795      hardcode_libdir_flag_spec='-L$libdir'
9796      hardcode_direct=yes
9797      hardcode_minus_L=yes
9798      hardcode_shlibpath_var=no
9799      ;;
9800
9801    sysv4)
9802      case $host_vendor in
9803	sni)
9804	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9805	  hardcode_direct=yes # is this really true???
9806	;;
9807	siemens)
9808	  ## LD is ld it makes a PLAMLIB
9809	  ## CC just makes a GrossModule.
9810	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9811	  reload_cmds='$CC -r -o $output$reload_objs'
9812	  hardcode_direct=no
9813        ;;
9814	motorola)
9815	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9816	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9817	;;
9818      esac
9819      runpath_var='LD_RUN_PATH'
9820      hardcode_shlibpath_var=no
9821      ;;
9822
9823    sysv4.3*)
9824      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9825      hardcode_shlibpath_var=no
9826      export_dynamic_flag_spec='-Bexport'
9827      ;;
9828
9829    sysv4*MP*)
9830      if test -d /usr/nec; then
9831	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9832	hardcode_shlibpath_var=no
9833	runpath_var=LD_RUN_PATH
9834	hardcode_runpath_var=yes
9835	ld_shlibs=yes
9836      fi
9837      ;;
9838
9839    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9840      no_undefined_flag='${wl}-z,text'
9841      archive_cmds_need_lc=no
9842      hardcode_shlibpath_var=no
9843      runpath_var='LD_RUN_PATH'
9844
9845      if test "$GCC" = yes; then
9846	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9847	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9848      else
9849	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9850	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9851      fi
9852      ;;
9853
9854    sysv5* | sco3.2v5* | sco5v6*)
9855      # Note: We can NOT use -z defs as we might desire, because we do not
9856      # link with -lc, and that would cause any symbols used from libc to
9857      # always be unresolved, which means just about no library would
9858      # ever link correctly.  If we're not using GNU ld we use -z text
9859      # though, which does catch some bad symbols but isn't as heavy-handed
9860      # as -z defs.
9861      no_undefined_flag='${wl}-z,text'
9862      allow_undefined_flag='${wl}-z,nodefs'
9863      archive_cmds_need_lc=no
9864      hardcode_shlibpath_var=no
9865      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9866      hardcode_libdir_separator=':'
9867      link_all_deplibs=yes
9868      export_dynamic_flag_spec='${wl}-Bexport'
9869      runpath_var='LD_RUN_PATH'
9870
9871      if test "$GCC" = yes; then
9872	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9873	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9874      else
9875	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9876	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9877      fi
9878      ;;
9879
9880    uts4*)
9881      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9882      hardcode_libdir_flag_spec='-L$libdir'
9883      hardcode_shlibpath_var=no
9884      ;;
9885
9886    *)
9887      ld_shlibs=no
9888      ;;
9889    esac
9890  fi
9891
9892{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9893echo "${ECHO_T}$ld_shlibs" >&6; }
9894test "$ld_shlibs" = no && can_build_shared=no
9895
9896#
9897# Do we need to explicitly link libc?
9898#
9899case "x$archive_cmds_need_lc" in
9900x|xyes)
9901  # Assume -lc should be added
9902  archive_cmds_need_lc=yes
9903
9904  if test "$enable_shared" = yes && test "$GCC" = yes; then
9905    case $archive_cmds in
9906    *'~'*)
9907      # FIXME: we may have to deal with multi-command sequences.
9908      ;;
9909    '$CC '*)
9910      # Test whether the compiler implicitly links with -lc since on some
9911      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9912      # to ld, don't add -lc before -lgcc.
9913      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9914echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9915      $rm conftest*
9916      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9917
9918      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9919  (eval $ac_compile) 2>&5
9920  ac_status=$?
9921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922  (exit $ac_status); } 2>conftest.err; then
9923        soname=conftest
9924        lib=conftest
9925        libobjs=conftest.$ac_objext
9926        deplibs=
9927        wl=$lt_prog_compiler_wl
9928	pic_flag=$lt_prog_compiler_pic
9929        compiler_flags=-v
9930        linker_flags=-v
9931        verstring=
9932        output_objdir=.
9933        libname=conftest
9934        lt_save_allow_undefined_flag=$allow_undefined_flag
9935        allow_undefined_flag=
9936        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9937  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9938  ac_status=$?
9939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940  (exit $ac_status); }
9941        then
9942	  archive_cmds_need_lc=no
9943        else
9944	  archive_cmds_need_lc=yes
9945        fi
9946        allow_undefined_flag=$lt_save_allow_undefined_flag
9947      else
9948        cat conftest.err 1>&5
9949      fi
9950      $rm conftest*
9951      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9952echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9953      ;;
9954    esac
9955  fi
9956  ;;
9957esac
9958
9959{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9960echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9961library_names_spec=
9962libname_spec='lib$name'
9963soname_spec=
9964shrext_cmds=".so"
9965postinstall_cmds=
9966postuninstall_cmds=
9967finish_cmds=
9968finish_eval=
9969shlibpath_var=
9970shlibpath_overrides_runpath=unknown
9971version_type=none
9972dynamic_linker="$host_os ld.so"
9973sys_lib_dlsearch_path_spec="/lib /usr/lib"
9974if test "$GCC" = yes; then
9975  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9976  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9977    # if the path contains ";" then we assume it to be the separator
9978    # otherwise default to the standard path separator (i.e. ":") - it is
9979    # assumed that no part of a normal pathname contains ";" but that should
9980    # okay in the real world where ";" in dirpaths is itself problematic.
9981    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9982  else
9983    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9984  fi
9985else
9986  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9987fi
9988need_lib_prefix=unknown
9989hardcode_into_libs=no
9990
9991# when you set need_version to no, make sure it does not cause -set_version
9992# flags to be left without arguments
9993need_version=unknown
9994
9995case $host_os in
9996aix3*)
9997  version_type=linux
9998  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9999  shlibpath_var=LIBPATH
10000
10001  # AIX 3 has no versioning support, so we append a major version to the name.
10002  soname_spec='${libname}${release}${shared_ext}$major'
10003  ;;
10004
10005aix4* | aix5*)
10006  version_type=linux
10007  need_lib_prefix=no
10008  need_version=no
10009  hardcode_into_libs=yes
10010  if test "$host_cpu" = ia64; then
10011    # AIX 5 supports IA64
10012    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10013    shlibpath_var=LD_LIBRARY_PATH
10014  else
10015    # With GCC up to 2.95.x, collect2 would create an import file
10016    # for dependence libraries.  The import file would start with
10017    # the line `#! .'.  This would cause the generated library to
10018    # depend on `.', always an invalid library.  This was fixed in
10019    # development snapshots of GCC prior to 3.0.
10020    case $host_os in
10021      aix4 | aix4.[01] | aix4.[01].*)
10022      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10023	   echo ' yes '
10024	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10025	:
10026      else
10027	can_build_shared=no
10028      fi
10029      ;;
10030    esac
10031    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10032    # soname into executable. Probably we can add versioning support to
10033    # collect2, so additional links can be useful in future.
10034    if test "$aix_use_runtimelinking" = yes; then
10035      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10036      # instead of lib<name>.a to let people know that these are not
10037      # typical AIX shared libraries.
10038      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10039    else
10040      # We preserve .a as extension for shared libraries through AIX4.2
10041      # and later when we are not doing run time linking.
10042      library_names_spec='${libname}${release}.a $libname.a'
10043      soname_spec='${libname}${release}${shared_ext}$major'
10044    fi
10045    shlibpath_var=LIBPATH
10046  fi
10047  ;;
10048
10049amigaos*)
10050  library_names_spec='$libname.ixlibrary $libname.a'
10051  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10052  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'
10053  ;;
10054
10055beos*)
10056  library_names_spec='${libname}${shared_ext}'
10057  dynamic_linker="$host_os ld.so"
10058  shlibpath_var=LIBRARY_PATH
10059  ;;
10060
10061bsdi[45]*)
10062  version_type=linux
10063  need_version=no
10064  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10065  soname_spec='${libname}${release}${shared_ext}$major'
10066  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10067  shlibpath_var=LD_LIBRARY_PATH
10068  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10069  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10070  # the default ld.so.conf also contains /usr/contrib/lib and
10071  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10072  # libtool to hard-code these into programs
10073  ;;
10074
10075cygwin* | mingw* | pw32*)
10076  version_type=windows
10077  shrext_cmds=".dll"
10078  need_version=no
10079  need_lib_prefix=no
10080
10081  case $GCC,$host_os in
10082  yes,cygwin* | yes,mingw* | yes,pw32*)
10083    library_names_spec='$libname.dll.a'
10084    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10085    postinstall_cmds='base_file=`basename \${file}`~
10086      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10087      dldir=$destdir/`dirname \$dlpath`~
10088      test -d \$dldir || mkdir -p \$dldir~
10089      $install_prog $dir/$dlname \$dldir/$dlname~
10090      chmod a+x \$dldir/$dlname'
10091    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10092      dlpath=$dir/\$dldll~
10093       $rm \$dlpath'
10094    shlibpath_overrides_runpath=yes
10095
10096    case $host_os in
10097    cygwin*)
10098      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10099      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10100      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10101      ;;
10102    mingw*)
10103      # MinGW DLLs use traditional 'lib' prefix
10104      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10105      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10106      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10107        # It is most probably a Windows format PATH printed by
10108        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10109        # path with ; separators, and with drive letters. We can handle the
10110        # drive letters (cygwin fileutils understands them), so leave them,
10111        # especially as we might pass files found there to a mingw objdump,
10112        # which wouldn't understand a cygwinified path. Ahh.
10113        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10114      else
10115        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10116      fi
10117      ;;
10118    pw32*)
10119      # pw32 DLLs use 'pw' prefix rather than 'lib'
10120      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10121      ;;
10122    esac
10123    ;;
10124
10125  *)
10126    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10127    ;;
10128  esac
10129  dynamic_linker='Win32 ld.exe'
10130  # FIXME: first we should search . and the directory the executable is in
10131  shlibpath_var=PATH
10132  ;;
10133
10134darwin* | rhapsody*)
10135  dynamic_linker="$host_os dyld"
10136  version_type=darwin
10137  need_lib_prefix=no
10138  need_version=no
10139  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10140  soname_spec='${libname}${release}${major}$shared_ext'
10141  shlibpath_overrides_runpath=yes
10142  shlibpath_var=DYLD_LIBRARY_PATH
10143  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10144  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10145  if test "$GCC" = yes; then
10146    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10147  else
10148    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10149  fi
10150  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10151  ;;
10152
10153dgux*)
10154  version_type=linux
10155  need_lib_prefix=no
10156  need_version=no
10157  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10158  soname_spec='${libname}${release}${shared_ext}$major'
10159  shlibpath_var=LD_LIBRARY_PATH
10160  ;;
10161
10162freebsd1*)
10163  dynamic_linker=no
10164  ;;
10165
10166freebsd* | dragonfly*)
10167  # DragonFly does not have aout.  When/if they implement a new
10168  # versioning mechanism, adjust this.
10169  if test -x /usr/bin/objformat; then
10170    objformat=`/usr/bin/objformat`
10171  else
10172    case $host_os in
10173    freebsd[123]*) objformat=aout ;;
10174    *) objformat=elf ;;
10175    esac
10176  fi
10177  version_type=freebsd-$objformat
10178  case $version_type in
10179    freebsd-elf*)
10180      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10181      need_version=no
10182      need_lib_prefix=no
10183      ;;
10184    freebsd-*)
10185      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10186      need_version=yes
10187      ;;
10188  esac
10189  shlibpath_var=LD_LIBRARY_PATH
10190  case $host_os in
10191  freebsd2*)
10192    shlibpath_overrides_runpath=yes
10193    ;;
10194  freebsd3.[01]* | freebsdelf3.[01]*)
10195    shlibpath_overrides_runpath=yes
10196    hardcode_into_libs=yes
10197    ;;
10198  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10199  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10200    shlibpath_overrides_runpath=no
10201    hardcode_into_libs=yes
10202    ;;
10203  freebsd*) # from 4.6 on
10204    shlibpath_overrides_runpath=yes
10205    hardcode_into_libs=yes
10206    ;;
10207  esac
10208  ;;
10209
10210gnu*)
10211  version_type=linux
10212  need_lib_prefix=no
10213  need_version=no
10214  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10215  soname_spec='${libname}${release}${shared_ext}$major'
10216  shlibpath_var=LD_LIBRARY_PATH
10217  hardcode_into_libs=yes
10218  ;;
10219
10220hpux9* | hpux10* | hpux11*)
10221  # Give a soname corresponding to the major version so that dld.sl refuses to
10222  # link against other versions.
10223  version_type=sunos
10224  need_lib_prefix=no
10225  need_version=no
10226  case $host_cpu in
10227  ia64*)
10228    shrext_cmds='.so'
10229    hardcode_into_libs=yes
10230    dynamic_linker="$host_os dld.so"
10231    shlibpath_var=LD_LIBRARY_PATH
10232    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10233    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10234    soname_spec='${libname}${release}${shared_ext}$major'
10235    if test "X$HPUX_IA64_MODE" = X32; then
10236      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10237    else
10238      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10239    fi
10240    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10241    ;;
10242   hppa*64*)
10243     shrext_cmds='.sl'
10244     hardcode_into_libs=yes
10245     dynamic_linker="$host_os dld.sl"
10246     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10247     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10248     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10249     soname_spec='${libname}${release}${shared_ext}$major'
10250     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10251     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10252     ;;
10253   *)
10254    shrext_cmds='.sl'
10255    dynamic_linker="$host_os dld.sl"
10256    shlibpath_var=SHLIB_PATH
10257    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10258    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10259    soname_spec='${libname}${release}${shared_ext}$major'
10260    ;;
10261  esac
10262  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10263  postinstall_cmds='chmod 555 $lib'
10264  ;;
10265
10266interix3*)
10267  version_type=linux
10268  need_lib_prefix=no
10269  need_version=no
10270  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10271  soname_spec='${libname}${release}${shared_ext}$major'
10272  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10273  shlibpath_var=LD_LIBRARY_PATH
10274  shlibpath_overrides_runpath=no
10275  hardcode_into_libs=yes
10276  ;;
10277
10278irix5* | irix6* | nonstopux*)
10279  case $host_os in
10280    nonstopux*) version_type=nonstopux ;;
10281    *)
10282	if test "$lt_cv_prog_gnu_ld" = yes; then
10283		version_type=linux
10284	else
10285		version_type=irix
10286	fi ;;
10287  esac
10288  need_lib_prefix=no
10289  need_version=no
10290  soname_spec='${libname}${release}${shared_ext}$major'
10291  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10292  case $host_os in
10293  irix5* | nonstopux*)
10294    libsuff= shlibsuff=
10295    ;;
10296  *)
10297    case $LD in # libtool.m4 will add one of these switches to LD
10298    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10299      libsuff= shlibsuff= libmagic=32-bit;;
10300    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10301      libsuff=32 shlibsuff=N32 libmagic=N32;;
10302    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10303      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10304    *) libsuff= shlibsuff= libmagic=never-match;;
10305    esac
10306    ;;
10307  esac
10308  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10309  shlibpath_overrides_runpath=no
10310  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10311  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10312  hardcode_into_libs=yes
10313  ;;
10314
10315# No shared lib support for Linux oldld, aout, or coff.
10316linux*oldld* | linux*aout* | linux*coff*)
10317  dynamic_linker=no
10318  ;;
10319
10320# This must be Linux ELF.
10321linux* | k*bsd*-gnu)
10322  version_type=linux
10323  need_lib_prefix=no
10324  need_version=no
10325  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326  soname_spec='${libname}${release}${shared_ext}$major'
10327  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10328  shlibpath_var=LD_LIBRARY_PATH
10329  shlibpath_overrides_runpath=no
10330  # This implies no fast_install, which is unacceptable.
10331  # Some rework will be needed to allow for fast_install
10332  # before this can be enabled.
10333  hardcode_into_libs=yes
10334
10335  # Append ld.so.conf contents to the search path
10336  if test -f /etc/ld.so.conf; then
10337    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10338    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10339  fi
10340
10341  # We used to test for /lib/ld.so.1 and disable shared libraries on
10342  # powerpc, because MkLinux only supported shared libraries with the
10343  # GNU dynamic linker.  Since this was broken with cross compilers,
10344  # most powerpc-linux boxes support dynamic linking these days and
10345  # people can always --disable-shared, the test was removed, and we
10346  # assume the GNU/Linux dynamic linker is in use.
10347  dynamic_linker='GNU/Linux ld.so'
10348  ;;
10349
10350netbsdelf*-gnu)
10351  version_type=linux
10352  need_lib_prefix=no
10353  need_version=no
10354  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10355  soname_spec='${libname}${release}${shared_ext}$major'
10356  shlibpath_var=LD_LIBRARY_PATH
10357  shlibpath_overrides_runpath=no
10358  hardcode_into_libs=yes
10359  dynamic_linker='NetBSD ld.elf_so'
10360  ;;
10361
10362netbsd*)
10363  version_type=sunos
10364  need_lib_prefix=no
10365  need_version=no
10366  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10367    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10368    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10369    dynamic_linker='NetBSD (a.out) ld.so'
10370  else
10371    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10372    soname_spec='${libname}${release}${shared_ext}$major'
10373    dynamic_linker='NetBSD ld.elf_so'
10374  fi
10375  shlibpath_var=LD_LIBRARY_PATH
10376  shlibpath_overrides_runpath=yes
10377  hardcode_into_libs=yes
10378  ;;
10379
10380newsos6)
10381  version_type=linux
10382  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10383  shlibpath_var=LD_LIBRARY_PATH
10384  shlibpath_overrides_runpath=yes
10385  ;;
10386
10387nto-qnx*)
10388  version_type=linux
10389  need_lib_prefix=no
10390  need_version=no
10391  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10392  soname_spec='${libname}${release}${shared_ext}$major'
10393  shlibpath_var=LD_LIBRARY_PATH
10394  shlibpath_overrides_runpath=yes
10395  ;;
10396
10397openbsd*)
10398  version_type=sunos
10399  sys_lib_dlsearch_path_spec="/usr/lib"
10400  need_lib_prefix=no
10401  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10402  case $host_os in
10403    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10404    *)                         need_version=no  ;;
10405  esac
10406  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10407  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10408  shlibpath_var=LD_LIBRARY_PATH
10409  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10410    case $host_os in
10411      openbsd2.[89] | openbsd2.[89].*)
10412	shlibpath_overrides_runpath=no
10413	;;
10414      *)
10415	shlibpath_overrides_runpath=yes
10416	;;
10417      esac
10418  else
10419    shlibpath_overrides_runpath=yes
10420  fi
10421  ;;
10422
10423os2*)
10424  libname_spec='$name'
10425  shrext_cmds=".dll"
10426  need_lib_prefix=no
10427  library_names_spec='$libname${shared_ext} $libname.a'
10428  dynamic_linker='OS/2 ld.exe'
10429  shlibpath_var=LIBPATH
10430  ;;
10431
10432osf3* | osf4* | osf5*)
10433  version_type=osf
10434  need_lib_prefix=no
10435  need_version=no
10436  soname_spec='${libname}${release}${shared_ext}$major'
10437  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10438  shlibpath_var=LD_LIBRARY_PATH
10439  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10440  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10441  ;;
10442
10443solaris*)
10444  version_type=linux
10445  need_lib_prefix=no
10446  need_version=no
10447  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10448  soname_spec='${libname}${release}${shared_ext}$major'
10449  shlibpath_var=LD_LIBRARY_PATH
10450  shlibpath_overrides_runpath=yes
10451  hardcode_into_libs=yes
10452  # ldd complains unless libraries are executable
10453  postinstall_cmds='chmod +x $lib'
10454  ;;
10455
10456sunos4*)
10457  version_type=sunos
10458  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10459  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10460  shlibpath_var=LD_LIBRARY_PATH
10461  shlibpath_overrides_runpath=yes
10462  if test "$with_gnu_ld" = yes; then
10463    need_lib_prefix=no
10464  fi
10465  need_version=yes
10466  ;;
10467
10468sysv4 | sysv4.3*)
10469  version_type=linux
10470  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10471  soname_spec='${libname}${release}${shared_ext}$major'
10472  shlibpath_var=LD_LIBRARY_PATH
10473  case $host_vendor in
10474    sni)
10475      shlibpath_overrides_runpath=no
10476      need_lib_prefix=no
10477      export_dynamic_flag_spec='${wl}-Blargedynsym'
10478      runpath_var=LD_RUN_PATH
10479      ;;
10480    siemens)
10481      need_lib_prefix=no
10482      ;;
10483    motorola)
10484      need_lib_prefix=no
10485      need_version=no
10486      shlibpath_overrides_runpath=no
10487      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10488      ;;
10489  esac
10490  ;;
10491
10492sysv4*MP*)
10493  if test -d /usr/nec ;then
10494    version_type=linux
10495    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10496    soname_spec='$libname${shared_ext}.$major'
10497    shlibpath_var=LD_LIBRARY_PATH
10498  fi
10499  ;;
10500
10501sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10502  version_type=freebsd-elf
10503  need_lib_prefix=no
10504  need_version=no
10505  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10506  soname_spec='${libname}${release}${shared_ext}$major'
10507  shlibpath_var=LD_LIBRARY_PATH
10508  hardcode_into_libs=yes
10509  if test "$with_gnu_ld" = yes; then
10510    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10511    shlibpath_overrides_runpath=no
10512  else
10513    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10514    shlibpath_overrides_runpath=yes
10515    case $host_os in
10516      sco3.2v5*)
10517        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10518	;;
10519    esac
10520  fi
10521  sys_lib_dlsearch_path_spec='/usr/lib'
10522  ;;
10523
10524uts4*)
10525  version_type=linux
10526  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10527  soname_spec='${libname}${release}${shared_ext}$major'
10528  shlibpath_var=LD_LIBRARY_PATH
10529  ;;
10530
10531*)
10532  dynamic_linker=no
10533  ;;
10534esac
10535{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10536echo "${ECHO_T}$dynamic_linker" >&6; }
10537test "$dynamic_linker" = no && can_build_shared=no
10538
10539variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10540if test "$GCC" = yes; then
10541  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10542fi
10543
10544{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10545echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10546hardcode_action=
10547if test -n "$hardcode_libdir_flag_spec" || \
10548   test -n "$runpath_var" || \
10549   test "X$hardcode_automatic" = "Xyes" ; then
10550
10551  # We can hardcode non-existant directories.
10552  if test "$hardcode_direct" != no &&
10553     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10554     # have to relink, otherwise we might link with an installed library
10555     # when we should be linking with a yet-to-be-installed one
10556     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10557     test "$hardcode_minus_L" != no; then
10558    # Linking always hardcodes the temporary library directory.
10559    hardcode_action=relink
10560  else
10561    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10562    hardcode_action=immediate
10563  fi
10564else
10565  # We cannot hardcode anything, or else we can only hardcode existing
10566  # directories.
10567  hardcode_action=unsupported
10568fi
10569{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
10570echo "${ECHO_T}$hardcode_action" >&6; }
10571
10572if test "$hardcode_action" = relink; then
10573  # Fast installation is not supported
10574  enable_fast_install=no
10575elif test "$shlibpath_overrides_runpath" = yes ||
10576     test "$enable_shared" = no; then
10577  # Fast installation is not necessary
10578  enable_fast_install=needless
10579fi
10580
10581striplib=
10582old_striplib=
10583{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10584echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10585if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10586  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10587  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10588  { echo "$as_me:$LINENO: result: yes" >&5
10589echo "${ECHO_T}yes" >&6; }
10590else
10591# FIXME - insert some real tests, host_os isn't really good enough
10592  case $host_os in
10593   darwin*)
10594       if test -n "$STRIP" ; then
10595         striplib="$STRIP -x"
10596         { echo "$as_me:$LINENO: result: yes" >&5
10597echo "${ECHO_T}yes" >&6; }
10598       else
10599  { echo "$as_me:$LINENO: result: no" >&5
10600echo "${ECHO_T}no" >&6; }
10601fi
10602       ;;
10603   *)
10604  { echo "$as_me:$LINENO: result: no" >&5
10605echo "${ECHO_T}no" >&6; }
10606    ;;
10607  esac
10608fi
10609
10610if test "x$enable_dlopen" != xyes; then
10611  enable_dlopen=unknown
10612  enable_dlopen_self=unknown
10613  enable_dlopen_self_static=unknown
10614else
10615  lt_cv_dlopen=no
10616  lt_cv_dlopen_libs=
10617
10618  case $host_os in
10619  beos*)
10620    lt_cv_dlopen="load_add_on"
10621    lt_cv_dlopen_libs=
10622    lt_cv_dlopen_self=yes
10623    ;;
10624
10625  mingw* | pw32*)
10626    lt_cv_dlopen="LoadLibrary"
10627    lt_cv_dlopen_libs=
10628   ;;
10629
10630  cygwin*)
10631    lt_cv_dlopen="dlopen"
10632    lt_cv_dlopen_libs=
10633   ;;
10634
10635  darwin*)
10636  # if libdl is installed we need to link against it
10637    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10638echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10639if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10640  echo $ECHO_N "(cached) $ECHO_C" >&6
10641else
10642  ac_check_lib_save_LIBS=$LIBS
10643LIBS="-ldl  $LIBS"
10644cat >conftest.$ac_ext <<_ACEOF
10645/* confdefs.h.  */
10646_ACEOF
10647cat confdefs.h >>conftest.$ac_ext
10648cat >>conftest.$ac_ext <<_ACEOF
10649/* end confdefs.h.  */
10650
10651/* Override any GCC internal prototype to avoid an error.
10652   Use char because int might match the return type of a GCC
10653   builtin and then its argument prototype would still apply.  */
10654#ifdef __cplusplus
10655extern "C"
10656#endif
10657char dlopen ();
10658int
10659main ()
10660{
10661return dlopen ();
10662  ;
10663  return 0;
10664}
10665_ACEOF
10666rm -f conftest.$ac_objext conftest$ac_exeext
10667if { (ac_try="$ac_link"
10668case "(($ac_try" in
10669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10670  *) ac_try_echo=$ac_try;;
10671esac
10672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10673  (eval "$ac_link") 2>conftest.er1
10674  ac_status=$?
10675  grep -v '^ *+' conftest.er1 >conftest.err
10676  rm -f conftest.er1
10677  cat conftest.err >&5
10678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679  (exit $ac_status); } && {
10680	 test -z "$ac_c_werror_flag" ||
10681	 test ! -s conftest.err
10682       } && test -s conftest$ac_exeext &&
10683       $as_test_x conftest$ac_exeext; then
10684  ac_cv_lib_dl_dlopen=yes
10685else
10686  echo "$as_me: failed program was:" >&5
10687sed 's/^/| /' conftest.$ac_ext >&5
10688
10689	ac_cv_lib_dl_dlopen=no
10690fi
10691
10692rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10693      conftest$ac_exeext conftest.$ac_ext
10694LIBS=$ac_check_lib_save_LIBS
10695fi
10696{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10697echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10698if test $ac_cv_lib_dl_dlopen = yes; then
10699  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10700else
10701
10702    lt_cv_dlopen="dyld"
10703    lt_cv_dlopen_libs=
10704    lt_cv_dlopen_self=yes
10705
10706fi
10707
10708   ;;
10709
10710  *)
10711    { echo "$as_me:$LINENO: checking for shl_load" >&5
10712echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10713if test "${ac_cv_func_shl_load+set}" = set; then
10714  echo $ECHO_N "(cached) $ECHO_C" >&6
10715else
10716  cat >conftest.$ac_ext <<_ACEOF
10717/* confdefs.h.  */
10718_ACEOF
10719cat confdefs.h >>conftest.$ac_ext
10720cat >>conftest.$ac_ext <<_ACEOF
10721/* end confdefs.h.  */
10722/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10723   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10724#define shl_load innocuous_shl_load
10725
10726/* System header to define __stub macros and hopefully few prototypes,
10727    which can conflict with char shl_load (); below.
10728    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10729    <limits.h> exists even on freestanding compilers.  */
10730
10731#ifdef __STDC__
10732# include <limits.h>
10733#else
10734# include <assert.h>
10735#endif
10736
10737#undef shl_load
10738
10739/* Override any GCC internal prototype to avoid an error.
10740   Use char because int might match the return type of a GCC
10741   builtin and then its argument prototype would still apply.  */
10742#ifdef __cplusplus
10743extern "C"
10744#endif
10745char shl_load ();
10746/* The GNU C library defines this for functions which it implements
10747    to always fail with ENOSYS.  Some functions are actually named
10748    something starting with __ and the normal name is an alias.  */
10749#if defined __stub_shl_load || defined __stub___shl_load
10750choke me
10751#endif
10752
10753int
10754main ()
10755{
10756return shl_load ();
10757  ;
10758  return 0;
10759}
10760_ACEOF
10761rm -f conftest.$ac_objext conftest$ac_exeext
10762if { (ac_try="$ac_link"
10763case "(($ac_try" in
10764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765  *) ac_try_echo=$ac_try;;
10766esac
10767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10768  (eval "$ac_link") 2>conftest.er1
10769  ac_status=$?
10770  grep -v '^ *+' conftest.er1 >conftest.err
10771  rm -f conftest.er1
10772  cat conftest.err >&5
10773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774  (exit $ac_status); } && {
10775	 test -z "$ac_c_werror_flag" ||
10776	 test ! -s conftest.err
10777       } && test -s conftest$ac_exeext &&
10778       $as_test_x conftest$ac_exeext; then
10779  ac_cv_func_shl_load=yes
10780else
10781  echo "$as_me: failed program was:" >&5
10782sed 's/^/| /' conftest.$ac_ext >&5
10783
10784	ac_cv_func_shl_load=no
10785fi
10786
10787rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10788      conftest$ac_exeext conftest.$ac_ext
10789fi
10790{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10791echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10792if test $ac_cv_func_shl_load = yes; then
10793  lt_cv_dlopen="shl_load"
10794else
10795  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10796echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10797if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10798  echo $ECHO_N "(cached) $ECHO_C" >&6
10799else
10800  ac_check_lib_save_LIBS=$LIBS
10801LIBS="-ldld  $LIBS"
10802cat >conftest.$ac_ext <<_ACEOF
10803/* confdefs.h.  */
10804_ACEOF
10805cat confdefs.h >>conftest.$ac_ext
10806cat >>conftest.$ac_ext <<_ACEOF
10807/* end confdefs.h.  */
10808
10809/* Override any GCC internal prototype to avoid an error.
10810   Use char because int might match the return type of a GCC
10811   builtin and then its argument prototype would still apply.  */
10812#ifdef __cplusplus
10813extern "C"
10814#endif
10815char shl_load ();
10816int
10817main ()
10818{
10819return shl_load ();
10820  ;
10821  return 0;
10822}
10823_ACEOF
10824rm -f conftest.$ac_objext conftest$ac_exeext
10825if { (ac_try="$ac_link"
10826case "(($ac_try" in
10827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10828  *) ac_try_echo=$ac_try;;
10829esac
10830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10831  (eval "$ac_link") 2>conftest.er1
10832  ac_status=$?
10833  grep -v '^ *+' conftest.er1 >conftest.err
10834  rm -f conftest.er1
10835  cat conftest.err >&5
10836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837  (exit $ac_status); } && {
10838	 test -z "$ac_c_werror_flag" ||
10839	 test ! -s conftest.err
10840       } && test -s conftest$ac_exeext &&
10841       $as_test_x conftest$ac_exeext; then
10842  ac_cv_lib_dld_shl_load=yes
10843else
10844  echo "$as_me: failed program was:" >&5
10845sed 's/^/| /' conftest.$ac_ext >&5
10846
10847	ac_cv_lib_dld_shl_load=no
10848fi
10849
10850rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10851      conftest$ac_exeext conftest.$ac_ext
10852LIBS=$ac_check_lib_save_LIBS
10853fi
10854{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10855echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10856if test $ac_cv_lib_dld_shl_load = yes; then
10857  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10858else
10859  { echo "$as_me:$LINENO: checking for dlopen" >&5
10860echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10861if test "${ac_cv_func_dlopen+set}" = set; then
10862  echo $ECHO_N "(cached) $ECHO_C" >&6
10863else
10864  cat >conftest.$ac_ext <<_ACEOF
10865/* confdefs.h.  */
10866_ACEOF
10867cat confdefs.h >>conftest.$ac_ext
10868cat >>conftest.$ac_ext <<_ACEOF
10869/* end confdefs.h.  */
10870/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10871   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10872#define dlopen innocuous_dlopen
10873
10874/* System header to define __stub macros and hopefully few prototypes,
10875    which can conflict with char dlopen (); below.
10876    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10877    <limits.h> exists even on freestanding compilers.  */
10878
10879#ifdef __STDC__
10880# include <limits.h>
10881#else
10882# include <assert.h>
10883#endif
10884
10885#undef dlopen
10886
10887/* Override any GCC internal prototype to avoid an error.
10888   Use char because int might match the return type of a GCC
10889   builtin and then its argument prototype would still apply.  */
10890#ifdef __cplusplus
10891extern "C"
10892#endif
10893char dlopen ();
10894/* The GNU C library defines this for functions which it implements
10895    to always fail with ENOSYS.  Some functions are actually named
10896    something starting with __ and the normal name is an alias.  */
10897#if defined __stub_dlopen || defined __stub___dlopen
10898choke me
10899#endif
10900
10901int
10902main ()
10903{
10904return dlopen ();
10905  ;
10906  return 0;
10907}
10908_ACEOF
10909rm -f conftest.$ac_objext conftest$ac_exeext
10910if { (ac_try="$ac_link"
10911case "(($ac_try" in
10912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10913  *) ac_try_echo=$ac_try;;
10914esac
10915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10916  (eval "$ac_link") 2>conftest.er1
10917  ac_status=$?
10918  grep -v '^ *+' conftest.er1 >conftest.err
10919  rm -f conftest.er1
10920  cat conftest.err >&5
10921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922  (exit $ac_status); } && {
10923	 test -z "$ac_c_werror_flag" ||
10924	 test ! -s conftest.err
10925       } && test -s conftest$ac_exeext &&
10926       $as_test_x conftest$ac_exeext; then
10927  ac_cv_func_dlopen=yes
10928else
10929  echo "$as_me: failed program was:" >&5
10930sed 's/^/| /' conftest.$ac_ext >&5
10931
10932	ac_cv_func_dlopen=no
10933fi
10934
10935rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10936      conftest$ac_exeext conftest.$ac_ext
10937fi
10938{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10939echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10940if test $ac_cv_func_dlopen = yes; then
10941  lt_cv_dlopen="dlopen"
10942else
10943  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10944echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10945if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10946  echo $ECHO_N "(cached) $ECHO_C" >&6
10947else
10948  ac_check_lib_save_LIBS=$LIBS
10949LIBS="-ldl  $LIBS"
10950cat >conftest.$ac_ext <<_ACEOF
10951/* confdefs.h.  */
10952_ACEOF
10953cat confdefs.h >>conftest.$ac_ext
10954cat >>conftest.$ac_ext <<_ACEOF
10955/* end confdefs.h.  */
10956
10957/* Override any GCC internal prototype to avoid an error.
10958   Use char because int might match the return type of a GCC
10959   builtin and then its argument prototype would still apply.  */
10960#ifdef __cplusplus
10961extern "C"
10962#endif
10963char dlopen ();
10964int
10965main ()
10966{
10967return dlopen ();
10968  ;
10969  return 0;
10970}
10971_ACEOF
10972rm -f conftest.$ac_objext conftest$ac_exeext
10973if { (ac_try="$ac_link"
10974case "(($ac_try" in
10975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10976  *) ac_try_echo=$ac_try;;
10977esac
10978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10979  (eval "$ac_link") 2>conftest.er1
10980  ac_status=$?
10981  grep -v '^ *+' conftest.er1 >conftest.err
10982  rm -f conftest.er1
10983  cat conftest.err >&5
10984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985  (exit $ac_status); } && {
10986	 test -z "$ac_c_werror_flag" ||
10987	 test ! -s conftest.err
10988       } && test -s conftest$ac_exeext &&
10989       $as_test_x conftest$ac_exeext; then
10990  ac_cv_lib_dl_dlopen=yes
10991else
10992  echo "$as_me: failed program was:" >&5
10993sed 's/^/| /' conftest.$ac_ext >&5
10994
10995	ac_cv_lib_dl_dlopen=no
10996fi
10997
10998rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10999      conftest$ac_exeext conftest.$ac_ext
11000LIBS=$ac_check_lib_save_LIBS
11001fi
11002{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11003echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11004if test $ac_cv_lib_dl_dlopen = yes; then
11005  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11006else
11007  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11008echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11009if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11010  echo $ECHO_N "(cached) $ECHO_C" >&6
11011else
11012  ac_check_lib_save_LIBS=$LIBS
11013LIBS="-lsvld  $LIBS"
11014cat >conftest.$ac_ext <<_ACEOF
11015/* confdefs.h.  */
11016_ACEOF
11017cat confdefs.h >>conftest.$ac_ext
11018cat >>conftest.$ac_ext <<_ACEOF
11019/* end confdefs.h.  */
11020
11021/* Override any GCC internal prototype to avoid an error.
11022   Use char because int might match the return type of a GCC
11023   builtin and then its argument prototype would still apply.  */
11024#ifdef __cplusplus
11025extern "C"
11026#endif
11027char dlopen ();
11028int
11029main ()
11030{
11031return dlopen ();
11032  ;
11033  return 0;
11034}
11035_ACEOF
11036rm -f conftest.$ac_objext conftest$ac_exeext
11037if { (ac_try="$ac_link"
11038case "(($ac_try" in
11039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040  *) ac_try_echo=$ac_try;;
11041esac
11042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043  (eval "$ac_link") 2>conftest.er1
11044  ac_status=$?
11045  grep -v '^ *+' conftest.er1 >conftest.err
11046  rm -f conftest.er1
11047  cat conftest.err >&5
11048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049  (exit $ac_status); } && {
11050	 test -z "$ac_c_werror_flag" ||
11051	 test ! -s conftest.err
11052       } && test -s conftest$ac_exeext &&
11053       $as_test_x conftest$ac_exeext; then
11054  ac_cv_lib_svld_dlopen=yes
11055else
11056  echo "$as_me: failed program was:" >&5
11057sed 's/^/| /' conftest.$ac_ext >&5
11058
11059	ac_cv_lib_svld_dlopen=no
11060fi
11061
11062rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11063      conftest$ac_exeext conftest.$ac_ext
11064LIBS=$ac_check_lib_save_LIBS
11065fi
11066{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11067echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11068if test $ac_cv_lib_svld_dlopen = yes; then
11069  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11070else
11071  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11072echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11073if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11074  echo $ECHO_N "(cached) $ECHO_C" >&6
11075else
11076  ac_check_lib_save_LIBS=$LIBS
11077LIBS="-ldld  $LIBS"
11078cat >conftest.$ac_ext <<_ACEOF
11079/* confdefs.h.  */
11080_ACEOF
11081cat confdefs.h >>conftest.$ac_ext
11082cat >>conftest.$ac_ext <<_ACEOF
11083/* end confdefs.h.  */
11084
11085/* Override any GCC internal prototype to avoid an error.
11086   Use char because int might match the return type of a GCC
11087   builtin and then its argument prototype would still apply.  */
11088#ifdef __cplusplus
11089extern "C"
11090#endif
11091char dld_link ();
11092int
11093main ()
11094{
11095return dld_link ();
11096  ;
11097  return 0;
11098}
11099_ACEOF
11100rm -f conftest.$ac_objext conftest$ac_exeext
11101if { (ac_try="$ac_link"
11102case "(($ac_try" in
11103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11104  *) ac_try_echo=$ac_try;;
11105esac
11106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11107  (eval "$ac_link") 2>conftest.er1
11108  ac_status=$?
11109  grep -v '^ *+' conftest.er1 >conftest.err
11110  rm -f conftest.er1
11111  cat conftest.err >&5
11112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113  (exit $ac_status); } && {
11114	 test -z "$ac_c_werror_flag" ||
11115	 test ! -s conftest.err
11116       } && test -s conftest$ac_exeext &&
11117       $as_test_x conftest$ac_exeext; then
11118  ac_cv_lib_dld_dld_link=yes
11119else
11120  echo "$as_me: failed program was:" >&5
11121sed 's/^/| /' conftest.$ac_ext >&5
11122
11123	ac_cv_lib_dld_dld_link=no
11124fi
11125
11126rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11127      conftest$ac_exeext conftest.$ac_ext
11128LIBS=$ac_check_lib_save_LIBS
11129fi
11130{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11131echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11132if test $ac_cv_lib_dld_dld_link = yes; then
11133  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11134fi
11135
11136
11137fi
11138
11139
11140fi
11141
11142
11143fi
11144
11145
11146fi
11147
11148
11149fi
11150
11151    ;;
11152  esac
11153
11154  if test "x$lt_cv_dlopen" != xno; then
11155    enable_dlopen=yes
11156  else
11157    enable_dlopen=no
11158  fi
11159
11160  case $lt_cv_dlopen in
11161  dlopen)
11162    save_CPPFLAGS="$CPPFLAGS"
11163    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11164
11165    save_LDFLAGS="$LDFLAGS"
11166    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11167
11168    save_LIBS="$LIBS"
11169    LIBS="$lt_cv_dlopen_libs $LIBS"
11170
11171    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11172echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11173if test "${lt_cv_dlopen_self+set}" = set; then
11174  echo $ECHO_N "(cached) $ECHO_C" >&6
11175else
11176  	  if test "$cross_compiling" = yes; then :
11177  lt_cv_dlopen_self=cross
11178else
11179  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11180  lt_status=$lt_dlunknown
11181  cat > conftest.$ac_ext <<EOF
11182#line 11182 "configure"
11183#include "confdefs.h"
11184
11185#if HAVE_DLFCN_H
11186#include <dlfcn.h>
11187#endif
11188
11189#include <stdio.h>
11190
11191#ifdef RTLD_GLOBAL
11192#  define LT_DLGLOBAL		RTLD_GLOBAL
11193#else
11194#  ifdef DL_GLOBAL
11195#    define LT_DLGLOBAL		DL_GLOBAL
11196#  else
11197#    define LT_DLGLOBAL		0
11198#  endif
11199#endif
11200
11201/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11202   find out it does not work in some platform. */
11203#ifndef LT_DLLAZY_OR_NOW
11204#  ifdef RTLD_LAZY
11205#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11206#  else
11207#    ifdef DL_LAZY
11208#      define LT_DLLAZY_OR_NOW		DL_LAZY
11209#    else
11210#      ifdef RTLD_NOW
11211#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11212#      else
11213#        ifdef DL_NOW
11214#          define LT_DLLAZY_OR_NOW	DL_NOW
11215#        else
11216#          define LT_DLLAZY_OR_NOW	0
11217#        endif
11218#      endif
11219#    endif
11220#  endif
11221#endif
11222
11223#ifdef __cplusplus
11224extern "C" void exit (int);
11225#endif
11226
11227void fnord() { int i=42;}
11228int main ()
11229{
11230  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11231  int status = $lt_dlunknown;
11232
11233  if (self)
11234    {
11235      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11236      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11237      /* dlclose (self); */
11238    }
11239  else
11240    puts (dlerror ());
11241
11242    exit (status);
11243}
11244EOF
11245  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11246  (eval $ac_link) 2>&5
11247  ac_status=$?
11248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11250    (./conftest; exit; ) >&5 2>/dev/null
11251    lt_status=$?
11252    case x$lt_status in
11253      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11254      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11255      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11256    esac
11257  else :
11258    # compilation failed
11259    lt_cv_dlopen_self=no
11260  fi
11261fi
11262rm -fr conftest*
11263
11264
11265fi
11266{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11267echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11268
11269    if test "x$lt_cv_dlopen_self" = xyes; then
11270      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11271      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11272echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11273if test "${lt_cv_dlopen_self_static+set}" = set; then
11274  echo $ECHO_N "(cached) $ECHO_C" >&6
11275else
11276  	  if test "$cross_compiling" = yes; then :
11277  lt_cv_dlopen_self_static=cross
11278else
11279  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11280  lt_status=$lt_dlunknown
11281  cat > conftest.$ac_ext <<EOF
11282#line 11282 "configure"
11283#include "confdefs.h"
11284
11285#if HAVE_DLFCN_H
11286#include <dlfcn.h>
11287#endif
11288
11289#include <stdio.h>
11290
11291#ifdef RTLD_GLOBAL
11292#  define LT_DLGLOBAL		RTLD_GLOBAL
11293#else
11294#  ifdef DL_GLOBAL
11295#    define LT_DLGLOBAL		DL_GLOBAL
11296#  else
11297#    define LT_DLGLOBAL		0
11298#  endif
11299#endif
11300
11301/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11302   find out it does not work in some platform. */
11303#ifndef LT_DLLAZY_OR_NOW
11304#  ifdef RTLD_LAZY
11305#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11306#  else
11307#    ifdef DL_LAZY
11308#      define LT_DLLAZY_OR_NOW		DL_LAZY
11309#    else
11310#      ifdef RTLD_NOW
11311#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11312#      else
11313#        ifdef DL_NOW
11314#          define LT_DLLAZY_OR_NOW	DL_NOW
11315#        else
11316#          define LT_DLLAZY_OR_NOW	0
11317#        endif
11318#      endif
11319#    endif
11320#  endif
11321#endif
11322
11323#ifdef __cplusplus
11324extern "C" void exit (int);
11325#endif
11326
11327void fnord() { int i=42;}
11328int main ()
11329{
11330  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11331  int status = $lt_dlunknown;
11332
11333  if (self)
11334    {
11335      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11336      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11337      /* dlclose (self); */
11338    }
11339  else
11340    puts (dlerror ());
11341
11342    exit (status);
11343}
11344EOF
11345  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11346  (eval $ac_link) 2>&5
11347  ac_status=$?
11348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11350    (./conftest; exit; ) >&5 2>/dev/null
11351    lt_status=$?
11352    case x$lt_status in
11353      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11354      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11355      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11356    esac
11357  else :
11358    # compilation failed
11359    lt_cv_dlopen_self_static=no
11360  fi
11361fi
11362rm -fr conftest*
11363
11364
11365fi
11366{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11367echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11368    fi
11369
11370    CPPFLAGS="$save_CPPFLAGS"
11371    LDFLAGS="$save_LDFLAGS"
11372    LIBS="$save_LIBS"
11373    ;;
11374  esac
11375
11376  case $lt_cv_dlopen_self in
11377  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11378  *) enable_dlopen_self=unknown ;;
11379  esac
11380
11381  case $lt_cv_dlopen_self_static in
11382  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11383  *) enable_dlopen_self_static=unknown ;;
11384  esac
11385fi
11386
11387
11388# Report which library types will actually be built
11389{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11390echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11391{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
11392echo "${ECHO_T}$can_build_shared" >&6; }
11393
11394{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11395echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11396test "$can_build_shared" = "no" && enable_shared=no
11397
11398# On AIX, shared libraries and static libraries use the same namespace, and
11399# are all built from PIC.
11400case $host_os in
11401aix3*)
11402  test "$enable_shared" = yes && enable_static=no
11403  if test -n "$RANLIB"; then
11404    archive_cmds="$archive_cmds~\$RANLIB \$lib"
11405    postinstall_cmds='$RANLIB $lib'
11406  fi
11407  ;;
11408
11409aix4* | aix5*)
11410  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11411    test "$enable_shared" = yes && enable_static=no
11412  fi
11413    ;;
11414esac
11415{ echo "$as_me:$LINENO: result: $enable_shared" >&5
11416echo "${ECHO_T}$enable_shared" >&6; }
11417
11418{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11419echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11420# Make sure either enable_shared or enable_static is yes.
11421test "$enable_shared" = yes || enable_static=yes
11422{ echo "$as_me:$LINENO: result: $enable_static" >&5
11423echo "${ECHO_T}$enable_static" >&6; }
11424
11425# The else clause should only fire when bootstrapping the
11426# libtool distribution, otherwise you forgot to ship ltmain.sh
11427# with your package, and you will get complaints that there are
11428# no rules to generate ltmain.sh.
11429if test -f "$ltmain"; then
11430  # See if we are running on zsh, and set the options which allow our commands through
11431  # without removal of \ escapes.
11432  if test -n "${ZSH_VERSION+set}" ; then
11433    setopt NO_GLOB_SUBST
11434  fi
11435  # Now quote all the things that may contain metacharacters while being
11436  # careful not to overquote the AC_SUBSTed values.  We take copies of the
11437  # variables and quote the copies for generation of the libtool script.
11438  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11439    SED SHELL STRIP \
11440    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11441    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11442    deplibs_check_method reload_flag reload_cmds need_locks \
11443    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11444    lt_cv_sys_global_symbol_to_c_name_address \
11445    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11446    old_postinstall_cmds old_postuninstall_cmds \
11447    compiler \
11448    CC \
11449    LD \
11450    lt_prog_compiler_wl \
11451    lt_prog_compiler_pic \
11452    lt_prog_compiler_static \
11453    lt_prog_compiler_no_builtin_flag \
11454    export_dynamic_flag_spec \
11455    thread_safe_flag_spec \
11456    whole_archive_flag_spec \
11457    enable_shared_with_static_runtimes \
11458    old_archive_cmds \
11459    old_archive_from_new_cmds \
11460    predep_objects \
11461    postdep_objects \
11462    predeps \
11463    postdeps \
11464    compiler_lib_search_path \
11465    archive_cmds \
11466    archive_expsym_cmds \
11467    postinstall_cmds \
11468    postuninstall_cmds \
11469    old_archive_from_expsyms_cmds \
11470    allow_undefined_flag \
11471    no_undefined_flag \
11472    export_symbols_cmds \
11473    hardcode_libdir_flag_spec \
11474    hardcode_libdir_flag_spec_ld \
11475    hardcode_libdir_separator \
11476    hardcode_automatic \
11477    module_cmds \
11478    module_expsym_cmds \
11479    lt_cv_prog_compiler_c_o \
11480    exclude_expsyms \
11481    include_expsyms; do
11482
11483    case $var in
11484    old_archive_cmds | \
11485    old_archive_from_new_cmds | \
11486    archive_cmds | \
11487    archive_expsym_cmds | \
11488    module_cmds | \
11489    module_expsym_cmds | \
11490    old_archive_from_expsyms_cmds | \
11491    export_symbols_cmds | \
11492    extract_expsyms_cmds | reload_cmds | finish_cmds | \
11493    postinstall_cmds | postuninstall_cmds | \
11494    old_postinstall_cmds | old_postuninstall_cmds | \
11495    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11496      # Double-quote double-evaled strings.
11497      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11498      ;;
11499    *)
11500      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11501      ;;
11502    esac
11503  done
11504
11505  case $lt_echo in
11506  *'\$0 --fallback-echo"')
11507    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11508    ;;
11509  esac
11510
11511cfgfile="${ofile}T"
11512  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11513  $rm -f "$cfgfile"
11514  { echo "$as_me:$LINENO: creating $ofile" >&5
11515echo "$as_me: creating $ofile" >&6;}
11516
11517  cat <<__EOF__ >> "$cfgfile"
11518#! $SHELL
11519
11520# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11521# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11522# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11523#
11524# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11525# Free Software Foundation, Inc.
11526#
11527# This file is part of GNU Libtool:
11528# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11529#
11530# This program is free software; you can redistribute it and/or modify
11531# it under the terms of the GNU General Public License as published by
11532# the Free Software Foundation; either version 2 of the License, or
11533# (at your option) any later version.
11534#
11535# This program is distributed in the hope that it will be useful, but
11536# WITHOUT ANY WARRANTY; without even the implied warranty of
11537# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11538# General Public License for more details.
11539#
11540# You should have received a copy of the GNU General Public License
11541# along with this program; if not, write to the Free Software
11542# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11543#
11544# As a special exception to the GNU General Public License, if you
11545# distribute this file as part of a program that contains a
11546# configuration script generated by Autoconf, you may include it under
11547# the same distribution terms that you use for the rest of that program.
11548
11549# A sed program that does not truncate output.
11550SED=$lt_SED
11551
11552# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11553Xsed="$SED -e 1s/^X//"
11554
11555# The HP-UX ksh and POSIX shell print the target directory to stdout
11556# if CDPATH is set.
11557(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11558
11559# The names of the tagged configurations supported by this script.
11560available_tags=
11561
11562# ### BEGIN LIBTOOL CONFIG
11563
11564# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11565
11566# Shell to use when invoking shell scripts.
11567SHELL=$lt_SHELL
11568
11569# Whether or not to build shared libraries.
11570build_libtool_libs=$enable_shared
11571
11572# Whether or not to build static libraries.
11573build_old_libs=$enable_static
11574
11575# Whether or not to add -lc for building shared libraries.
11576build_libtool_need_lc=$archive_cmds_need_lc
11577
11578# Whether or not to disallow shared libs when runtime libs are static
11579allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11580
11581# Whether or not to optimize for fast installation.
11582fast_install=$enable_fast_install
11583
11584# The host system.
11585host_alias=$host_alias
11586host=$host
11587host_os=$host_os
11588
11589# The build system.
11590build_alias=$build_alias
11591build=$build
11592build_os=$build_os
11593
11594# An echo program that does not interpret backslashes.
11595echo=$lt_echo
11596
11597# The archiver.
11598AR=$lt_AR
11599AR_FLAGS=$lt_AR_FLAGS
11600
11601# A C compiler.
11602LTCC=$lt_LTCC
11603
11604# LTCC compiler flags.
11605LTCFLAGS=$lt_LTCFLAGS
11606
11607# A language-specific compiler.
11608CC=$lt_compiler
11609
11610# Is the compiler the GNU C compiler?
11611with_gcc=$GCC
11612
11613# An ERE matcher.
11614EGREP=$lt_EGREP
11615
11616# The linker used to build libraries.
11617LD=$lt_LD
11618
11619# Whether we need hard or soft links.
11620LN_S=$lt_LN_S
11621
11622# A BSD-compatible nm program.
11623NM=$lt_NM
11624
11625# A symbol stripping program
11626STRIP=$lt_STRIP
11627
11628# Used to examine libraries when file_magic_cmd begins "file"
11629MAGIC_CMD=$MAGIC_CMD
11630
11631# Used on cygwin: DLL creation program.
11632DLLTOOL="$DLLTOOL"
11633
11634# Used on cygwin: object dumper.
11635OBJDUMP="$OBJDUMP"
11636
11637# Used on cygwin: assembler.
11638AS="$AS"
11639
11640# The name of the directory that contains temporary libtool files.
11641objdir=$objdir
11642
11643# How to create reloadable object files.
11644reload_flag=$lt_reload_flag
11645reload_cmds=$lt_reload_cmds
11646
11647# How to pass a linker flag through the compiler.
11648wl=$lt_lt_prog_compiler_wl
11649
11650# Object file suffix (normally "o").
11651objext="$ac_objext"
11652
11653# Old archive suffix (normally "a").
11654libext="$libext"
11655
11656# Shared library suffix (normally ".so").
11657shrext_cmds='$shrext_cmds'
11658
11659# Executable file suffix (normally "").
11660exeext="$exeext"
11661
11662# Additional compiler flags for building library objects.
11663pic_flag=$lt_lt_prog_compiler_pic
11664pic_mode=$pic_mode
11665
11666# What is the maximum length of a command?
11667max_cmd_len=$lt_cv_sys_max_cmd_len
11668
11669# Does compiler simultaneously support -c and -o options?
11670compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11671
11672# Must we lock files when doing compilation?
11673need_locks=$lt_need_locks
11674
11675# Do we need the lib prefix for modules?
11676need_lib_prefix=$need_lib_prefix
11677
11678# Do we need a version for libraries?
11679need_version=$need_version
11680
11681# Whether dlopen is supported.
11682dlopen_support=$enable_dlopen
11683
11684# Whether dlopen of programs is supported.
11685dlopen_self=$enable_dlopen_self
11686
11687# Whether dlopen of statically linked programs is supported.
11688dlopen_self_static=$enable_dlopen_self_static
11689
11690# Compiler flag to prevent dynamic linking.
11691link_static_flag=$lt_lt_prog_compiler_static
11692
11693# Compiler flag to turn off builtin functions.
11694no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11695
11696# Compiler flag to allow reflexive dlopens.
11697export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11698
11699# Compiler flag to generate shared objects directly from archives.
11700whole_archive_flag_spec=$lt_whole_archive_flag_spec
11701
11702# Compiler flag to generate thread-safe objects.
11703thread_safe_flag_spec=$lt_thread_safe_flag_spec
11704
11705# Library versioning type.
11706version_type=$version_type
11707
11708# Format of library name prefix.
11709libname_spec=$lt_libname_spec
11710
11711# List of archive names.  First name is the real one, the rest are links.
11712# The last name is the one that the linker finds with -lNAME.
11713library_names_spec=$lt_library_names_spec
11714
11715# The coded name of the library, if different from the real name.
11716soname_spec=$lt_soname_spec
11717
11718# Commands used to build and install an old-style archive.
11719RANLIB=$lt_RANLIB
11720old_archive_cmds=$lt_old_archive_cmds
11721old_postinstall_cmds=$lt_old_postinstall_cmds
11722old_postuninstall_cmds=$lt_old_postuninstall_cmds
11723
11724# Create an old-style archive from a shared archive.
11725old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11726
11727# Create a temporary old-style archive to link instead of a shared archive.
11728old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11729
11730# Commands used to build and install a shared archive.
11731archive_cmds=$lt_archive_cmds
11732archive_expsym_cmds=$lt_archive_expsym_cmds
11733postinstall_cmds=$lt_postinstall_cmds
11734postuninstall_cmds=$lt_postuninstall_cmds
11735
11736# Commands used to build a loadable module (assumed same as above if empty)
11737module_cmds=$lt_module_cmds
11738module_expsym_cmds=$lt_module_expsym_cmds
11739
11740# Commands to strip libraries.
11741old_striplib=$lt_old_striplib
11742striplib=$lt_striplib
11743
11744# Dependencies to place before the objects being linked to create a
11745# shared library.
11746predep_objects=$lt_predep_objects
11747
11748# Dependencies to place after the objects being linked to create a
11749# shared library.
11750postdep_objects=$lt_postdep_objects
11751
11752# Dependencies to place before the objects being linked to create a
11753# shared library.
11754predeps=$lt_predeps
11755
11756# Dependencies to place after the objects being linked to create a
11757# shared library.
11758postdeps=$lt_postdeps
11759
11760# The library search path used internally by the compiler when linking
11761# a shared library.
11762compiler_lib_search_path=$lt_compiler_lib_search_path
11763
11764# Method to check whether dependent libraries are shared objects.
11765deplibs_check_method=$lt_deplibs_check_method
11766
11767# Command to use when deplibs_check_method == file_magic.
11768file_magic_cmd=$lt_file_magic_cmd
11769
11770# Flag that allows shared libraries with undefined symbols to be built.
11771allow_undefined_flag=$lt_allow_undefined_flag
11772
11773# Flag that forces no undefined symbols.
11774no_undefined_flag=$lt_no_undefined_flag
11775
11776# Commands used to finish a libtool library installation in a directory.
11777finish_cmds=$lt_finish_cmds
11778
11779# Same as above, but a single script fragment to be evaled but not shown.
11780finish_eval=$lt_finish_eval
11781
11782# Take the output of nm and produce a listing of raw symbols and C names.
11783global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11784
11785# Transform the output of nm in a proper C declaration
11786global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11787
11788# Transform the output of nm in a C name address pair
11789global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11790
11791# This is the shared library runtime path variable.
11792runpath_var=$runpath_var
11793
11794# This is the shared library path variable.
11795shlibpath_var=$shlibpath_var
11796
11797# Is shlibpath searched before the hard-coded library search path?
11798shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11799
11800# How to hardcode a shared library path into an executable.
11801hardcode_action=$hardcode_action
11802
11803# Whether we should hardcode library paths into libraries.
11804hardcode_into_libs=$hardcode_into_libs
11805
11806# Flag to hardcode \$libdir into a binary during linking.
11807# This must work even if \$libdir does not exist.
11808hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11809
11810# If ld is used when linking, flag to hardcode \$libdir into
11811# a binary during linking. This must work even if \$libdir does
11812# not exist.
11813hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11814
11815# Whether we need a single -rpath flag with a separated argument.
11816hardcode_libdir_separator=$lt_hardcode_libdir_separator
11817
11818# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11819# resulting binary.
11820hardcode_direct=$hardcode_direct
11821
11822# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11823# resulting binary.
11824hardcode_minus_L=$hardcode_minus_L
11825
11826# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11827# the resulting binary.
11828hardcode_shlibpath_var=$hardcode_shlibpath_var
11829
11830# Set to yes if building a shared library automatically hardcodes DIR into the library
11831# and all subsequent libraries and executables linked against it.
11832hardcode_automatic=$hardcode_automatic
11833
11834# Variables whose values should be saved in libtool wrapper scripts and
11835# restored at relink time.
11836variables_saved_for_relink="$variables_saved_for_relink"
11837
11838# Whether libtool must link a program against all its dependency libraries.
11839link_all_deplibs=$link_all_deplibs
11840
11841# Compile-time system search path for libraries
11842sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11843
11844# Run-time system search path for libraries
11845sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11846
11847# Fix the shell variable \$srcfile for the compiler.
11848fix_srcfile_path="$fix_srcfile_path"
11849
11850# Set to yes if exported symbols are required.
11851always_export_symbols=$always_export_symbols
11852
11853# The commands to list exported symbols.
11854export_symbols_cmds=$lt_export_symbols_cmds
11855
11856# The commands to extract the exported symbol list from a shared archive.
11857extract_expsyms_cmds=$lt_extract_expsyms_cmds
11858
11859# Symbols that should not be listed in the preloaded symbols.
11860exclude_expsyms=$lt_exclude_expsyms
11861
11862# Symbols that must always be exported.
11863include_expsyms=$lt_include_expsyms
11864
11865# ### END LIBTOOL CONFIG
11866
11867__EOF__
11868
11869
11870  case $host_os in
11871  aix3*)
11872    cat <<\EOF >> "$cfgfile"
11873
11874# AIX sometimes has problems with the GCC collect2 program.  For some
11875# reason, if we set the COLLECT_NAMES environment variable, the problems
11876# vanish in a puff of smoke.
11877if test "X${COLLECT_NAMES+set}" != Xset; then
11878  COLLECT_NAMES=
11879  export COLLECT_NAMES
11880fi
11881EOF
11882    ;;
11883  esac
11884
11885  # We use sed instead of cat because bash on DJGPP gets confused if
11886  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11887  # text mode, it properly converts lines to CR/LF.  This bash problem
11888  # is reportedly fixed, but why not run on old versions too?
11889  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11890
11891  mv -f "$cfgfile" "$ofile" || \
11892    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11893  chmod +x "$ofile"
11894
11895else
11896  # If there is no Makefile yet, we rely on a make rule to execute
11897  # `config.status --recheck' to rerun these tests and create the
11898  # libtool script then.
11899  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11900  if test -f "$ltmain_in"; then
11901    test -f Makefile && make "$ltmain"
11902  fi
11903fi
11904
11905
11906ac_ext=c
11907ac_cpp='$CPP $CPPFLAGS'
11908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11910ac_compiler_gnu=$ac_cv_c_compiler_gnu
11911
11912CC="$lt_save_CC"
11913
11914
11915# Check whether --with-tags was given.
11916if test "${with_tags+set}" = set; then
11917  withval=$with_tags; tagnames="$withval"
11918fi
11919
11920
11921if test -f "$ltmain" && test -n "$tagnames"; then
11922  if test ! -f "${ofile}"; then
11923    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11924echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11925  fi
11926
11927  if test -z "$LTCC"; then
11928    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11929    if test -z "$LTCC"; then
11930      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11931echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11932    else
11933      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11934echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11935    fi
11936  fi
11937  if test -z "$LTCFLAGS"; then
11938    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11939  fi
11940
11941  # Extract list of available tagged configurations in $ofile.
11942  # Note that this assumes the entire list is on one line.
11943  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11944
11945  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11946  for tagname in $tagnames; do
11947    IFS="$lt_save_ifs"
11948    # Check whether tagname contains only valid characters
11949    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11950    "") ;;
11951    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11952echo "$as_me: error: invalid tag name: $tagname" >&2;}
11953   { (exit 1); exit 1; }; }
11954	;;
11955    esac
11956
11957    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11958    then
11959      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11960echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11961   { (exit 1); exit 1; }; }
11962    fi
11963
11964    # Update the list of available tags.
11965    if test -n "$tagname"; then
11966      echo appending configuration tag \"$tagname\" to $ofile
11967
11968      case $tagname in
11969      CXX)
11970	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11971	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11972	    (test "X$CXX" != "Xg++"))) ; then
11973	  ac_ext=cpp
11974ac_cpp='$CXXCPP $CPPFLAGS'
11975ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11976ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11977ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11978
11979
11980
11981
11982archive_cmds_need_lc_CXX=no
11983allow_undefined_flag_CXX=
11984always_export_symbols_CXX=no
11985archive_expsym_cmds_CXX=
11986export_dynamic_flag_spec_CXX=
11987hardcode_direct_CXX=no
11988hardcode_libdir_flag_spec_CXX=
11989hardcode_libdir_flag_spec_ld_CXX=
11990hardcode_libdir_separator_CXX=
11991hardcode_minus_L_CXX=no
11992hardcode_shlibpath_var_CXX=unsupported
11993hardcode_automatic_CXX=no
11994module_cmds_CXX=
11995module_expsym_cmds_CXX=
11996link_all_deplibs_CXX=unknown
11997old_archive_cmds_CXX=$old_archive_cmds
11998no_undefined_flag_CXX=
11999whole_archive_flag_spec_CXX=
12000enable_shared_with_static_runtimes_CXX=no
12001
12002# Dependencies to place before and after the object being linked:
12003predep_objects_CXX=
12004postdep_objects_CXX=
12005predeps_CXX=
12006postdeps_CXX=
12007compiler_lib_search_path_CXX=
12008
12009# Source file extension for C++ test sources.
12010ac_ext=cpp
12011
12012# Object file extension for compiled C++ test sources.
12013objext=o
12014objext_CXX=$objext
12015
12016# Code to be used in simple compile tests
12017lt_simple_compile_test_code="int some_variable = 0;\n"
12018
12019# Code to be used in simple link tests
12020lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12021
12022# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12023
12024# If no C compiler was specified, use CC.
12025LTCC=${LTCC-"$CC"}
12026
12027# If no C compiler flags were specified, use CFLAGS.
12028LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12029
12030# Allow CC to be a program name with arguments.
12031compiler=$CC
12032
12033
12034# save warnings/boilerplate of simple test code
12035ac_outfile=conftest.$ac_objext
12036printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12037eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12038_lt_compiler_boilerplate=`cat conftest.err`
12039$rm conftest*
12040
12041ac_outfile=conftest.$ac_objext
12042printf "$lt_simple_link_test_code" >conftest.$ac_ext
12043eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12044_lt_linker_boilerplate=`cat conftest.err`
12045$rm conftest*
12046
12047
12048# Allow CC to be a program name with arguments.
12049lt_save_CC=$CC
12050lt_save_LD=$LD
12051lt_save_GCC=$GCC
12052GCC=$GXX
12053lt_save_with_gnu_ld=$with_gnu_ld
12054lt_save_path_LD=$lt_cv_path_LD
12055if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12056  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12057else
12058  $as_unset lt_cv_prog_gnu_ld
12059fi
12060if test -n "${lt_cv_path_LDCXX+set}"; then
12061  lt_cv_path_LD=$lt_cv_path_LDCXX
12062else
12063  $as_unset lt_cv_path_LD
12064fi
12065test -z "${LDCXX+set}" || LD=$LDCXX
12066CC=${CXX-"c++"}
12067compiler=$CC
12068compiler_CXX=$CC
12069for cc_temp in $compiler""; do
12070  case $cc_temp in
12071    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12072    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12073    \-*) ;;
12074    *) break;;
12075  esac
12076done
12077cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12078
12079
12080# We don't want -fno-exception wen compiling C++ code, so set the
12081# no_builtin_flag separately
12082if test "$GXX" = yes; then
12083  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12084else
12085  lt_prog_compiler_no_builtin_flag_CXX=
12086fi
12087
12088if test "$GXX" = yes; then
12089  # Set up default GNU C++ configuration
12090
12091
12092# Check whether --with-gnu-ld was given.
12093if test "${with_gnu_ld+set}" = set; then
12094  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12095else
12096  with_gnu_ld=no
12097fi
12098
12099ac_prog=ld
12100if test "$GCC" = yes; then
12101  # Check if gcc -print-prog-name=ld gives a path.
12102  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12103echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12104  case $host in
12105  *-*-mingw*)
12106    # gcc leaves a trailing carriage return which upsets mingw
12107    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12108  *)
12109    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12110  esac
12111  case $ac_prog in
12112    # Accept absolute paths.
12113    [\\/]* | ?:[\\/]*)
12114      re_direlt='/[^/][^/]*/\.\./'
12115      # Canonicalize the pathname of ld
12116      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12117      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12118	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12119      done
12120      test -z "$LD" && LD="$ac_prog"
12121      ;;
12122  "")
12123    # If it fails, then pretend we aren't using GCC.
12124    ac_prog=ld
12125    ;;
12126  *)
12127    # If it is relative, then search for the first ld in PATH.
12128    with_gnu_ld=unknown
12129    ;;
12130  esac
12131elif test "$with_gnu_ld" = yes; then
12132  { echo "$as_me:$LINENO: checking for GNU ld" >&5
12133echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12134else
12135  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12136echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12137fi
12138if test "${lt_cv_path_LD+set}" = set; then
12139  echo $ECHO_N "(cached) $ECHO_C" >&6
12140else
12141  if test -z "$LD"; then
12142  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12143  for ac_dir in $PATH; do
12144    IFS="$lt_save_ifs"
12145    test -z "$ac_dir" && ac_dir=.
12146    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12147      lt_cv_path_LD="$ac_dir/$ac_prog"
12148      # Check to see if the program is GNU ld.  I'd rather use --version,
12149      # but apparently some variants of GNU ld only accept -v.
12150      # Break only if it was the GNU/non-GNU ld that we prefer.
12151      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12152      *GNU* | *'with BFD'*)
12153	test "$with_gnu_ld" != no && break
12154	;;
12155      *)
12156	test "$with_gnu_ld" != yes && break
12157	;;
12158      esac
12159    fi
12160  done
12161  IFS="$lt_save_ifs"
12162else
12163  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12164fi
12165fi
12166
12167LD="$lt_cv_path_LD"
12168if test -n "$LD"; then
12169  { echo "$as_me:$LINENO: result: $LD" >&5
12170echo "${ECHO_T}$LD" >&6; }
12171else
12172  { echo "$as_me:$LINENO: result: no" >&5
12173echo "${ECHO_T}no" >&6; }
12174fi
12175test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12176echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12177   { (exit 1); exit 1; }; }
12178{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12179echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12180if test "${lt_cv_prog_gnu_ld+set}" = set; then
12181  echo $ECHO_N "(cached) $ECHO_C" >&6
12182else
12183  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12184case `$LD -v 2>&1 </dev/null` in
12185*GNU* | *'with BFD'*)
12186  lt_cv_prog_gnu_ld=yes
12187  ;;
12188*)
12189  lt_cv_prog_gnu_ld=no
12190  ;;
12191esac
12192fi
12193{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12194echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12195with_gnu_ld=$lt_cv_prog_gnu_ld
12196
12197
12198
12199  # Check if GNU C++ uses GNU ld as the underlying linker, since the
12200  # archiving commands below assume that GNU ld is being used.
12201  if test "$with_gnu_ld" = yes; then
12202    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12203    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'
12204
12205    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12206    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12207
12208    # If archive_cmds runs LD, not CC, wlarc should be empty
12209    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12210    #     investigate it a little bit more. (MM)
12211    wlarc='${wl}'
12212
12213    # ancient GNU ld didn't support --whole-archive et. al.
12214    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12215	grep 'no-whole-archive' > /dev/null; then
12216      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12217    else
12218      whole_archive_flag_spec_CXX=
12219    fi
12220  else
12221    with_gnu_ld=no
12222    wlarc=
12223
12224    # A generic and very simple default shared library creation
12225    # command for GNU C++ for the case where it uses the native
12226    # linker, instead of GNU ld.  If possible, this setting should
12227    # overridden to take advantage of the native linker features on
12228    # the platform it is being used on.
12229    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12230  fi
12231
12232  # Commands to make compiler produce verbose output that lists
12233  # what "hidden" libraries, object files and flags are used when
12234  # linking a shared library.
12235  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12236
12237else
12238  GXX=no
12239  with_gnu_ld=no
12240  wlarc=
12241fi
12242
12243# PORTME: fill in a description of your system's C++ link characteristics
12244{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12245echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12246ld_shlibs_CXX=yes
12247case $host_os in
12248  aix3*)
12249    # FIXME: insert proper C++ library support
12250    ld_shlibs_CXX=no
12251    ;;
12252  aix4* | aix5*)
12253    if test "$host_cpu" = ia64; then
12254      # On IA64, the linker does run time linking by default, so we don't
12255      # have to do anything special.
12256      aix_use_runtimelinking=no
12257      exp_sym_flag='-Bexport'
12258      no_entry_flag=""
12259    else
12260      aix_use_runtimelinking=no
12261
12262      # Test if we are trying to use run time linking or normal
12263      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12264      # need to do runtime linking.
12265      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12266	for ld_flag in $LDFLAGS; do
12267	  case $ld_flag in
12268	  *-brtl*)
12269	    aix_use_runtimelinking=yes
12270	    break
12271	    ;;
12272	  esac
12273	done
12274	;;
12275      esac
12276
12277      exp_sym_flag='-bexport'
12278      no_entry_flag='-bnoentry'
12279    fi
12280
12281    # When large executables or shared objects are built, AIX ld can
12282    # have problems creating the table of contents.  If linking a library
12283    # or program results in "error TOC overflow" add -mminimal-toc to
12284    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12285    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12286
12287    archive_cmds_CXX=''
12288    hardcode_direct_CXX=yes
12289    hardcode_libdir_separator_CXX=':'
12290    link_all_deplibs_CXX=yes
12291
12292    if test "$GXX" = yes; then
12293      case $host_os in aix4.[012]|aix4.[012].*)
12294      # We only want to do this on AIX 4.2 and lower, the check
12295      # below for broken collect2 doesn't work under 4.3+
12296	collect2name=`${CC} -print-prog-name=collect2`
12297	if test -f "$collect2name" && \
12298	   strings "$collect2name" | grep resolve_lib_name >/dev/null
12299	then
12300	  # We have reworked collect2
12301	  hardcode_direct_CXX=yes
12302	else
12303	  # We have old collect2
12304	  hardcode_direct_CXX=unsupported
12305	  # It fails to find uninstalled libraries when the uninstalled
12306	  # path is not listed in the libpath.  Setting hardcode_minus_L
12307	  # to unsupported forces relinking
12308	  hardcode_minus_L_CXX=yes
12309	  hardcode_libdir_flag_spec_CXX='-L$libdir'
12310	  hardcode_libdir_separator_CXX=
12311	fi
12312	;;
12313      esac
12314      shared_flag='-shared'
12315      if test "$aix_use_runtimelinking" = yes; then
12316	shared_flag="$shared_flag "'${wl}-G'
12317      fi
12318    else
12319      # not using gcc
12320      if test "$host_cpu" = ia64; then
12321	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12322	# chokes on -Wl,-G. The following line is correct:
12323	shared_flag='-G'
12324      else
12325	if test "$aix_use_runtimelinking" = yes; then
12326	  shared_flag='${wl}-G'
12327	else
12328	  shared_flag='${wl}-bM:SRE'
12329	fi
12330      fi
12331    fi
12332
12333    # It seems that -bexpall does not export symbols beginning with
12334    # underscore (_), so it is better to generate a list of symbols to export.
12335    always_export_symbols_CXX=yes
12336    if test "$aix_use_runtimelinking" = yes; then
12337      # Warning - without using the other runtime loading flags (-brtl),
12338      # -berok will link without error, but may produce a broken library.
12339      allow_undefined_flag_CXX='-berok'
12340      # Determine the default libpath from the value encoded in an empty executable.
12341      cat >conftest.$ac_ext <<_ACEOF
12342/* confdefs.h.  */
12343_ACEOF
12344cat confdefs.h >>conftest.$ac_ext
12345cat >>conftest.$ac_ext <<_ACEOF
12346/* end confdefs.h.  */
12347
12348int
12349main ()
12350{
12351
12352  ;
12353  return 0;
12354}
12355_ACEOF
12356rm -f conftest.$ac_objext conftest$ac_exeext
12357if { (ac_try="$ac_link"
12358case "(($ac_try" in
12359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12360  *) ac_try_echo=$ac_try;;
12361esac
12362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12363  (eval "$ac_link") 2>conftest.er1
12364  ac_status=$?
12365  grep -v '^ *+' conftest.er1 >conftest.err
12366  rm -f conftest.er1
12367  cat conftest.err >&5
12368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369  (exit $ac_status); } && {
12370	 test -z "$ac_cxx_werror_flag" ||
12371	 test ! -s conftest.err
12372       } && test -s conftest$ac_exeext &&
12373       $as_test_x conftest$ac_exeext; then
12374
12375aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12376}'`
12377# Check for a 64-bit object if we didn't find anything.
12378if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12379}'`; fi
12380else
12381  echo "$as_me: failed program was:" >&5
12382sed 's/^/| /' conftest.$ac_ext >&5
12383
12384
12385fi
12386
12387rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12388      conftest$ac_exeext conftest.$ac_ext
12389if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12390
12391      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12392
12393      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"
12394     else
12395      if test "$host_cpu" = ia64; then
12396	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12397	allow_undefined_flag_CXX="-z nodefs"
12398	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"
12399      else
12400	# Determine the default libpath from the value encoded in an empty executable.
12401	cat >conftest.$ac_ext <<_ACEOF
12402/* confdefs.h.  */
12403_ACEOF
12404cat confdefs.h >>conftest.$ac_ext
12405cat >>conftest.$ac_ext <<_ACEOF
12406/* end confdefs.h.  */
12407
12408int
12409main ()
12410{
12411
12412  ;
12413  return 0;
12414}
12415_ACEOF
12416rm -f conftest.$ac_objext conftest$ac_exeext
12417if { (ac_try="$ac_link"
12418case "(($ac_try" in
12419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420  *) ac_try_echo=$ac_try;;
12421esac
12422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423  (eval "$ac_link") 2>conftest.er1
12424  ac_status=$?
12425  grep -v '^ *+' conftest.er1 >conftest.err
12426  rm -f conftest.er1
12427  cat conftest.err >&5
12428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429  (exit $ac_status); } && {
12430	 test -z "$ac_cxx_werror_flag" ||
12431	 test ! -s conftest.err
12432       } && test -s conftest$ac_exeext &&
12433       $as_test_x conftest$ac_exeext; then
12434
12435aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12436}'`
12437# Check for a 64-bit object if we didn't find anything.
12438if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12439}'`; fi
12440else
12441  echo "$as_me: failed program was:" >&5
12442sed 's/^/| /' conftest.$ac_ext >&5
12443
12444
12445fi
12446
12447rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12448      conftest$ac_exeext conftest.$ac_ext
12449if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12450
12451	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12452	# Warning - without using the other run time loading flags,
12453	# -berok will link without error, but may produce a broken library.
12454	no_undefined_flag_CXX=' ${wl}-bernotok'
12455	allow_undefined_flag_CXX=' ${wl}-berok'
12456	# Exported symbols can be pulled into shared objects from archives
12457	whole_archive_flag_spec_CXX='$convenience'
12458	archive_cmds_need_lc_CXX=yes
12459	# This is similar to how AIX traditionally builds its shared libraries.
12460	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'
12461      fi
12462    fi
12463    ;;
12464
12465  beos*)
12466    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12467      allow_undefined_flag_CXX=unsupported
12468      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12469      # support --undefined.  This deserves some investigation.  FIXME
12470      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12471    else
12472      ld_shlibs_CXX=no
12473    fi
12474    ;;
12475
12476  chorus*)
12477    case $cc_basename in
12478      *)
12479	# FIXME: insert proper C++ library support
12480	ld_shlibs_CXX=no
12481	;;
12482    esac
12483    ;;
12484
12485  cygwin* | mingw* | pw32*)
12486    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12487    # as there is no search path for DLLs.
12488    hardcode_libdir_flag_spec_CXX='-L$libdir'
12489    allow_undefined_flag_CXX=unsupported
12490    always_export_symbols_CXX=no
12491    enable_shared_with_static_runtimes_CXX=yes
12492
12493    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12494      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'
12495      # If the export-symbols file already is a .def file (1st line
12496      # is EXPORTS), use it as is; otherwise, prepend...
12497      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12498	cp $export_symbols $output_objdir/$soname.def;
12499      else
12500	echo EXPORTS > $output_objdir/$soname.def;
12501	cat $export_symbols >> $output_objdir/$soname.def;
12502      fi~
12503      $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'
12504    else
12505      ld_shlibs_CXX=no
12506    fi
12507  ;;
12508      darwin* | rhapsody*)
12509        case $host_os in
12510        rhapsody* | darwin1.[012])
12511         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12512         ;;
12513       *) # Darwin 1.3 on
12514         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12515           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12516         else
12517           case ${MACOSX_DEPLOYMENT_TARGET} in
12518             10.[012])
12519               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12520               ;;
12521             10.*)
12522               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12523               ;;
12524           esac
12525         fi
12526         ;;
12527        esac
12528      archive_cmds_need_lc_CXX=no
12529      hardcode_direct_CXX=no
12530      hardcode_automatic_CXX=yes
12531      hardcode_shlibpath_var_CXX=unsupported
12532      whole_archive_flag_spec_CXX=''
12533      link_all_deplibs_CXX=yes
12534
12535    if test "$GXX" = yes ; then
12536      lt_int_apple_cc_single_mod=no
12537      output_verbose_link_cmd='echo'
12538      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12539       lt_int_apple_cc_single_mod=yes
12540      fi
12541      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12542       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12543      else
12544          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'
12545        fi
12546        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12547        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12548          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12549            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}'
12550          else
12551            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}'
12552          fi
12553            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}'
12554      else
12555      case $cc_basename in
12556        xlc*)
12557         output_verbose_link_cmd='echo'
12558          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12559          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12560          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12561          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12562          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}'
12563          ;;
12564       *)
12565         ld_shlibs_CXX=no
12566          ;;
12567      esac
12568      fi
12569        ;;
12570
12571  dgux*)
12572    case $cc_basename in
12573      ec++*)
12574	# FIXME: insert proper C++ library support
12575	ld_shlibs_CXX=no
12576	;;
12577      ghcx*)
12578	# Green Hills C++ Compiler
12579	# FIXME: insert proper C++ library support
12580	ld_shlibs_CXX=no
12581	;;
12582      *)
12583	# FIXME: insert proper C++ library support
12584	ld_shlibs_CXX=no
12585	;;
12586    esac
12587    ;;
12588  freebsd[12]*)
12589    # C++ shared libraries reported to be fairly broken before switch to ELF
12590    ld_shlibs_CXX=no
12591    ;;
12592  freebsd-elf*)
12593    archive_cmds_need_lc_CXX=no
12594    ;;
12595  freebsd* | dragonfly*)
12596    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12597    # conventions
12598    ld_shlibs_CXX=yes
12599    ;;
12600  gnu*)
12601    ;;
12602  hpux9*)
12603    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12604    hardcode_libdir_separator_CXX=:
12605    export_dynamic_flag_spec_CXX='${wl}-E'
12606    hardcode_direct_CXX=yes
12607    hardcode_minus_L_CXX=yes # Not in the search PATH,
12608				# but as the default
12609				# location of the library.
12610
12611    case $cc_basename in
12612    CC*)
12613      # FIXME: insert proper C++ library support
12614      ld_shlibs_CXX=no
12615      ;;
12616    aCC*)
12617      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'
12618      # Commands to make compiler produce verbose output that lists
12619      # what "hidden" libraries, object files and flags are used when
12620      # linking a shared library.
12621      #
12622      # There doesn't appear to be a way to prevent this compiler from
12623      # explicitly linking system object files so we need to strip them
12624      # from the output so that they don't get included in the library
12625      # dependencies.
12626      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'
12627      ;;
12628    *)
12629      if test "$GXX" = yes; then
12630        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'
12631      else
12632        # FIXME: insert proper C++ library support
12633        ld_shlibs_CXX=no
12634      fi
12635      ;;
12636    esac
12637    ;;
12638  hpux10*|hpux11*)
12639    if test $with_gnu_ld = no; then
12640      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12641      hardcode_libdir_separator_CXX=:
12642
12643      case $host_cpu in
12644      hppa*64*|ia64*)
12645	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12646        ;;
12647      *)
12648	export_dynamic_flag_spec_CXX='${wl}-E'
12649        ;;
12650      esac
12651    fi
12652    case $host_cpu in
12653    hppa*64*|ia64*)
12654      hardcode_direct_CXX=no
12655      hardcode_shlibpath_var_CXX=no
12656      ;;
12657    *)
12658      hardcode_direct_CXX=yes
12659      hardcode_minus_L_CXX=yes # Not in the search PATH,
12660					      # but as the default
12661					      # location of the library.
12662      ;;
12663    esac
12664
12665    case $cc_basename in
12666      CC*)
12667	# FIXME: insert proper C++ library support
12668	ld_shlibs_CXX=no
12669	;;
12670      aCC*)
12671	case $host_cpu in
12672	hppa*64*)
12673	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12674	  ;;
12675	ia64*)
12676	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12677	  ;;
12678	*)
12679	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12680	  ;;
12681	esac
12682	# Commands to make compiler produce verbose output that lists
12683	# what "hidden" libraries, object files and flags are used when
12684	# linking a shared library.
12685	#
12686	# There doesn't appear to be a way to prevent this compiler from
12687	# explicitly linking system object files so we need to strip them
12688	# from the output so that they don't get included in the library
12689	# dependencies.
12690	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'
12691	;;
12692      *)
12693	if test "$GXX" = yes; then
12694	  if test $with_gnu_ld = no; then
12695	    case $host_cpu in
12696	    hppa*64*)
12697	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12698	      ;;
12699	    ia64*)
12700	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12701	      ;;
12702	    *)
12703	      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'
12704	      ;;
12705	    esac
12706	  fi
12707	else
12708	  # FIXME: insert proper C++ library support
12709	  ld_shlibs_CXX=no
12710	fi
12711	;;
12712    esac
12713    ;;
12714  interix3*)
12715    hardcode_direct_CXX=no
12716    hardcode_shlibpath_var_CXX=no
12717    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12718    export_dynamic_flag_spec_CXX='${wl}-E'
12719    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12720    # Instead, shared libraries are loaded at an image base (0x10000000 by
12721    # default) and relocated if they conflict, which is a slow very memory
12722    # consuming and fragmenting process.  To avoid this, we pick a random,
12723    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12724    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12725    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'
12726    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'
12727    ;;
12728  irix5* | irix6*)
12729    case $cc_basename in
12730      CC*)
12731	# SGI C++
12732	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'
12733
12734	# Archives containing C++ object files must be created using
12735	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12736	# necessary to make sure instantiated templates are included
12737	# in the archive.
12738	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12739	;;
12740      *)
12741	if test "$GXX" = yes; then
12742	  if test "$with_gnu_ld" = no; then
12743	    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'
12744	  else
12745	    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'
12746	  fi
12747	fi
12748	link_all_deplibs_CXX=yes
12749	;;
12750    esac
12751    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12752    hardcode_libdir_separator_CXX=:
12753    ;;
12754  linux* | k*bsd*-gnu)
12755    case $cc_basename in
12756      KCC*)
12757	# Kuck and Associates, Inc. (KAI) C++ Compiler
12758
12759	# KCC will only create a shared library if the output file
12760	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12761	# to its proper name (with version) after linking.
12762	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'
12763	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'
12764	# Commands to make compiler produce verbose output that lists
12765	# what "hidden" libraries, object files and flags are used when
12766	# linking a shared library.
12767	#
12768	# There doesn't appear to be a way to prevent this compiler from
12769	# explicitly linking system object files so we need to strip them
12770	# from the output so that they don't get included in the library
12771	# dependencies.
12772	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'
12773
12774	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12775	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12776
12777	# Archives containing C++ object files must be created using
12778	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12779	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12780	;;
12781      icpc*)
12782	# Intel C++
12783	with_gnu_ld=yes
12784	# version 8.0 and above of icpc choke on multiply defined symbols
12785	# if we add $predep_objects and $postdep_objects, however 7.1 and
12786	# earlier do not add the objects themselves.
12787	case `$CC -V 2>&1` in
12788	*"Version 7."*)
12789  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12790  	  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'
12791	  ;;
12792	*)  # Version 8.0 or newer
12793	  tmp_idyn=
12794	  case $host_cpu in
12795	    ia64*) tmp_idyn=' -i_dynamic';;
12796	  esac
12797  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12798	  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'
12799	  ;;
12800	esac
12801	archive_cmds_need_lc_CXX=no
12802	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12803	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12804	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12805	;;
12806      pgCC*)
12807        # Portland Group C++ compiler
12808	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12809  	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'
12810
12811	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12812	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12813	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'
12814        ;;
12815      cxx*)
12816	# Compaq C++
12817	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12818	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'
12819
12820	runpath_var=LD_RUN_PATH
12821	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12822	hardcode_libdir_separator_CXX=:
12823
12824	# Commands to make compiler produce verbose output that lists
12825	# what "hidden" libraries, object files and flags are used when
12826	# linking a shared library.
12827	#
12828	# There doesn't appear to be a way to prevent this compiler from
12829	# explicitly linking system object files so we need to strip them
12830	# from the output so that they don't get included in the library
12831	# dependencies.
12832	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'
12833	;;
12834    esac
12835    ;;
12836  lynxos*)
12837    # FIXME: insert proper C++ library support
12838    ld_shlibs_CXX=no
12839    ;;
12840  m88k*)
12841    # FIXME: insert proper C++ library support
12842    ld_shlibs_CXX=no
12843    ;;
12844  mvs*)
12845    case $cc_basename in
12846      cxx*)
12847	# FIXME: insert proper C++ library support
12848	ld_shlibs_CXX=no
12849	;;
12850      *)
12851	# FIXME: insert proper C++ library support
12852	ld_shlibs_CXX=no
12853	;;
12854    esac
12855    ;;
12856  netbsd* | netbsdelf*-gnu)
12857    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12858      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12859      wlarc=
12860      hardcode_libdir_flag_spec_CXX='-R$libdir'
12861      hardcode_direct_CXX=yes
12862      hardcode_shlibpath_var_CXX=no
12863    fi
12864    # Workaround some broken pre-1.5 toolchains
12865    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12866    ;;
12867  openbsd2*)
12868    # C++ shared libraries are fairly broken
12869    ld_shlibs_CXX=no
12870    ;;
12871  openbsd*)
12872    hardcode_direct_CXX=yes
12873    hardcode_shlibpath_var_CXX=no
12874    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12875    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12876    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12877      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12878      export_dynamic_flag_spec_CXX='${wl}-E'
12879      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12880    fi
12881    output_verbose_link_cmd='echo'
12882    ;;
12883  osf3*)
12884    case $cc_basename in
12885      KCC*)
12886	# Kuck and Associates, Inc. (KAI) C++ Compiler
12887
12888	# KCC will only create a shared library if the output file
12889	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12890	# to its proper name (with version) after linking.
12891	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'
12892
12893	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12894	hardcode_libdir_separator_CXX=:
12895
12896	# Archives containing C++ object files must be created using
12897	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12898	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12899
12900	;;
12901      RCC*)
12902	# Rational C++ 2.4.1
12903	# FIXME: insert proper C++ library support
12904	ld_shlibs_CXX=no
12905	;;
12906      cxx*)
12907	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12908	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'
12909
12910	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12911	hardcode_libdir_separator_CXX=:
12912
12913	# Commands to make compiler produce verbose output that lists
12914	# what "hidden" libraries, object files and flags are used when
12915	# linking a shared library.
12916	#
12917	# There doesn't appear to be a way to prevent this compiler from
12918	# explicitly linking system object files so we need to strip them
12919	# from the output so that they don't get included in the library
12920	# dependencies.
12921	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'
12922	;;
12923      *)
12924	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12925	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12926	  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'
12927
12928	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12929	  hardcode_libdir_separator_CXX=:
12930
12931	  # Commands to make compiler produce verbose output that lists
12932	  # what "hidden" libraries, object files and flags are used when
12933	  # linking a shared library.
12934	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12935
12936	else
12937	  # FIXME: insert proper C++ library support
12938	  ld_shlibs_CXX=no
12939	fi
12940	;;
12941    esac
12942    ;;
12943  osf4* | osf5*)
12944    case $cc_basename in
12945      KCC*)
12946	# Kuck and Associates, Inc. (KAI) C++ Compiler
12947
12948	# KCC will only create a shared library if the output file
12949	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12950	# to its proper name (with version) after linking.
12951	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'
12952
12953	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12954	hardcode_libdir_separator_CXX=:
12955
12956	# Archives containing C++ object files must be created using
12957	# the KAI C++ compiler.
12958	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12959	;;
12960      RCC*)
12961	# Rational C++ 2.4.1
12962	# FIXME: insert proper C++ library support
12963	ld_shlibs_CXX=no
12964	;;
12965      cxx*)
12966	allow_undefined_flag_CXX=' -expect_unresolved \*'
12967	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'
12968	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12969	  echo "-hidden">> $lib.exp~
12970	  $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~
12971	  $rm $lib.exp'
12972
12973	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12974	hardcode_libdir_separator_CXX=:
12975
12976	# Commands to make compiler produce verbose output that lists
12977	# what "hidden" libraries, object files and flags are used when
12978	# linking a shared library.
12979	#
12980	# There doesn't appear to be a way to prevent this compiler from
12981	# explicitly linking system object files so we need to strip them
12982	# from the output so that they don't get included in the library
12983	# dependencies.
12984	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'
12985	;;
12986      *)
12987	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12988	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12989	 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'
12990
12991	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12992	  hardcode_libdir_separator_CXX=:
12993
12994	  # Commands to make compiler produce verbose output that lists
12995	  # what "hidden" libraries, object files and flags are used when
12996	  # linking a shared library.
12997	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12998
12999	else
13000	  # FIXME: insert proper C++ library support
13001	  ld_shlibs_CXX=no
13002	fi
13003	;;
13004    esac
13005    ;;
13006  psos*)
13007    # FIXME: insert proper C++ library support
13008    ld_shlibs_CXX=no
13009    ;;
13010  sunos4*)
13011    case $cc_basename in
13012      CC*)
13013	# Sun C++ 4.x
13014	# FIXME: insert proper C++ library support
13015	ld_shlibs_CXX=no
13016	;;
13017      lcc*)
13018	# Lucid
13019	# FIXME: insert proper C++ library support
13020	ld_shlibs_CXX=no
13021	;;
13022      *)
13023	# FIXME: insert proper C++ library support
13024	ld_shlibs_CXX=no
13025	;;
13026    esac
13027    ;;
13028  solaris*)
13029    case $cc_basename in
13030      CC*)
13031	# Sun C++ 4.2, 5.x and Centerline C++
13032        archive_cmds_need_lc_CXX=yes
13033	no_undefined_flag_CXX=' -zdefs'
13034	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13035	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13036	$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'
13037
13038	hardcode_libdir_flag_spec_CXX='-R$libdir'
13039	hardcode_shlibpath_var_CXX=no
13040	case $host_os in
13041	  solaris2.[0-5] | solaris2.[0-5].*) ;;
13042	  *)
13043	    # The C++ compiler is used as linker so we must use $wl
13044	    # flag to pass the commands to the underlying system
13045	    # linker. We must also pass each convience library through
13046	    # to the system linker between allextract/defaultextract.
13047	    # The C++ compiler will combine linker options so we
13048	    # cannot just pass the convience library names through
13049	    # without $wl.
13050	    # Supported since Solaris 2.6 (maybe 2.5.1?)
13051	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
13052	    ;;
13053	esac
13054	link_all_deplibs_CXX=yes
13055
13056	output_verbose_link_cmd='echo'
13057
13058	# Archives containing C++ object files must be created using
13059	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
13060	# necessary to make sure instantiated templates are included
13061	# in the archive.
13062	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13063	;;
13064      gcx*)
13065	# Green Hills C++ Compiler
13066	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13067
13068	# The C++ compiler must be used to create the archive.
13069	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13070	;;
13071      *)
13072	# GNU C++ compiler with Solaris linker
13073	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13074	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13075	  if $CC --version | grep -v '^2\.7' > /dev/null; then
13076	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13077	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13078		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13079
13080	    # Commands to make compiler produce verbose output that lists
13081	    # what "hidden" libraries, object files and flags are used when
13082	    # linking a shared library.
13083	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13084	  else
13085	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
13086	    # platform.
13087	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13088	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13089		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13090
13091	    # Commands to make compiler produce verbose output that lists
13092	    # what "hidden" libraries, object files and flags are used when
13093	    # linking a shared library.
13094	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13095	  fi
13096
13097	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13098	fi
13099	;;
13100    esac
13101    ;;
13102  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13103    no_undefined_flag_CXX='${wl}-z,text'
13104    archive_cmds_need_lc_CXX=no
13105    hardcode_shlibpath_var_CXX=no
13106    runpath_var='LD_RUN_PATH'
13107
13108    case $cc_basename in
13109      CC*)
13110	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13111	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13112	;;
13113      *)
13114	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13115	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13116	;;
13117    esac
13118    ;;
13119  sysv5* | sco3.2v5* | sco5v6*)
13120    # Note: We can NOT use -z defs as we might desire, because we do not
13121    # link with -lc, and that would cause any symbols used from libc to
13122    # always be unresolved, which means just about no library would
13123    # ever link correctly.  If we're not using GNU ld we use -z text
13124    # though, which does catch some bad symbols but isn't as heavy-handed
13125    # as -z defs.
13126    # For security reasons, it is highly recommended that you always
13127    # use absolute paths for naming shared libraries, and exclude the
13128    # DT_RUNPATH tag from executables and libraries.  But doing so
13129    # requires that you compile everything twice, which is a pain.
13130    # So that behaviour is only enabled if SCOABSPATH is set to a
13131    # non-empty value in the environment.  Most likely only useful for
13132    # creating official distributions of packages.
13133    # This is a hack until libtool officially supports absolute path
13134    # names for shared libraries.
13135    no_undefined_flag_CXX='${wl}-z,text'
13136    allow_undefined_flag_CXX='${wl}-z,nodefs'
13137    archive_cmds_need_lc_CXX=no
13138    hardcode_shlibpath_var_CXX=no
13139    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13140    hardcode_libdir_separator_CXX=':'
13141    link_all_deplibs_CXX=yes
13142    export_dynamic_flag_spec_CXX='${wl}-Bexport'
13143    runpath_var='LD_RUN_PATH'
13144
13145    case $cc_basename in
13146      CC*)
13147	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13148	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13149	;;
13150      *)
13151	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13152	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13153	;;
13154    esac
13155    ;;
13156  tandem*)
13157    case $cc_basename in
13158      NCC*)
13159	# NonStop-UX NCC 3.20
13160	# FIXME: insert proper C++ library support
13161	ld_shlibs_CXX=no
13162	;;
13163      *)
13164	# FIXME: insert proper C++ library support
13165	ld_shlibs_CXX=no
13166	;;
13167    esac
13168    ;;
13169  vxworks*)
13170    # FIXME: insert proper C++ library support
13171    ld_shlibs_CXX=no
13172    ;;
13173  *)
13174    # FIXME: insert proper C++ library support
13175    ld_shlibs_CXX=no
13176    ;;
13177esac
13178{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13179echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13180test "$ld_shlibs_CXX" = no && can_build_shared=no
13181
13182GCC_CXX="$GXX"
13183LD_CXX="$LD"
13184
13185
13186cat > conftest.$ac_ext <<EOF
13187class Foo
13188{
13189public:
13190  Foo (void) { a = 0; }
13191private:
13192  int a;
13193};
13194EOF
13195
13196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13197  (eval $ac_compile) 2>&5
13198  ac_status=$?
13199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200  (exit $ac_status); }; then
13201  # Parse the compiler output and extract the necessary
13202  # objects, libraries and library flags.
13203
13204  # Sentinel used to keep track of whether or not we are before
13205  # the conftest object file.
13206  pre_test_object_deps_done=no
13207
13208  # The `*' in the case matches for architectures that use `case' in
13209  # $output_verbose_cmd can trigger glob expansion during the loop
13210  # eval without this substitution.
13211  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13212
13213  for p in `eval $output_verbose_link_cmd`; do
13214    case $p in
13215
13216    -L* | -R* | -l*)
13217       # Some compilers place space between "-{L,R}" and the path.
13218       # Remove the space.
13219       if test $p = "-L" \
13220	  || test $p = "-R"; then
13221	 prev=$p
13222	 continue
13223       else
13224	 prev=
13225       fi
13226
13227       if test "$pre_test_object_deps_done" = no; then
13228	 case $p in
13229	 -L* | -R*)
13230	   # Internal compiler library paths should come after those
13231	   # provided the user.  The postdeps already come after the
13232	   # user supplied libs so there is no need to process them.
13233	   if test -z "$compiler_lib_search_path_CXX"; then
13234	     compiler_lib_search_path_CXX="${prev}${p}"
13235	   else
13236	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13237	   fi
13238	   ;;
13239	 # The "-l" case would never come before the object being
13240	 # linked, so don't bother handling this case.
13241	 esac
13242       else
13243	 if test -z "$postdeps_CXX"; then
13244	   postdeps_CXX="${prev}${p}"
13245	 else
13246	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13247	 fi
13248       fi
13249       ;;
13250
13251    *.$objext)
13252       # This assumes that the test object file only shows up
13253       # once in the compiler output.
13254       if test "$p" = "conftest.$objext"; then
13255	 pre_test_object_deps_done=yes
13256	 continue
13257       fi
13258
13259       if test "$pre_test_object_deps_done" = no; then
13260	 if test -z "$predep_objects_CXX"; then
13261	   predep_objects_CXX="$p"
13262	 else
13263	   predep_objects_CXX="$predep_objects_CXX $p"
13264	 fi
13265       else
13266	 if test -z "$postdep_objects_CXX"; then
13267	   postdep_objects_CXX="$p"
13268	 else
13269	   postdep_objects_CXX="$postdep_objects_CXX $p"
13270	 fi
13271       fi
13272       ;;
13273
13274    *) ;; # Ignore the rest.
13275
13276    esac
13277  done
13278
13279  # Clean up.
13280  rm -f a.out a.exe
13281else
13282  echo "libtool.m4: error: problem compiling CXX test program"
13283fi
13284
13285$rm -f confest.$objext
13286
13287# PORTME: override above test on systems where it is broken
13288case $host_os in
13289interix3*)
13290  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13291  # hack all around it, let's just trust "g++" to DTRT.
13292  predep_objects_CXX=
13293  postdep_objects_CXX=
13294  postdeps_CXX=
13295  ;;
13296
13297solaris*)
13298  case $cc_basename in
13299  CC*)
13300    # Adding this requires a known-good setup of shared libraries for
13301    # Sun compiler versions before 5.6, else PIC objects from an old
13302    # archive will be linked into the output, leading to subtle bugs.
13303    postdeps_CXX='-lCstd -lCrun'
13304    ;;
13305  esac
13306  ;;
13307esac
13308
13309
13310case " $postdeps_CXX " in
13311*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13312esac
13313
13314lt_prog_compiler_wl_CXX=
13315lt_prog_compiler_pic_CXX=
13316lt_prog_compiler_static_CXX=
13317
13318{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13319echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13320
13321  # C++ specific cases for pic, static, wl, etc.
13322  if test "$GXX" = yes; then
13323    lt_prog_compiler_wl_CXX='-Wl,'
13324    lt_prog_compiler_static_CXX='-static'
13325
13326    case $host_os in
13327    aix*)
13328      # All AIX code is PIC.
13329      if test "$host_cpu" = ia64; then
13330	# AIX 5 now supports IA64 processor
13331	lt_prog_compiler_static_CXX='-Bstatic'
13332      fi
13333      ;;
13334    amigaos*)
13335      # FIXME: we need at least 68020 code to build shared libraries, but
13336      # adding the `-m68020' flag to GCC prevents building anything better,
13337      # like `-m68040'.
13338      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13339      ;;
13340    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13341      # PIC is the default for these OSes.
13342      ;;
13343    mingw* | os2* | pw32*)
13344      # This hack is so that the source file can tell whether it is being
13345      # built for inclusion in a dll (and should export symbols for example).
13346      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13347      ;;
13348    darwin* | rhapsody*)
13349      # PIC is the default on this platform
13350      # Common symbols not allowed in MH_DYLIB files
13351      lt_prog_compiler_pic_CXX='-fno-common'
13352      ;;
13353    *djgpp*)
13354      # DJGPP does not support shared libraries at all
13355      lt_prog_compiler_pic_CXX=
13356      ;;
13357    interix3*)
13358      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13359      # Instead, we relocate shared libraries at runtime.
13360      ;;
13361    sysv4*MP*)
13362      if test -d /usr/nec; then
13363	lt_prog_compiler_pic_CXX=-Kconform_pic
13364      fi
13365      ;;
13366    hpux*)
13367      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13368      # not for PA HP-UX.
13369      case $host_cpu in
13370      hppa*64*|ia64*)
13371	;;
13372      *)
13373	lt_prog_compiler_pic_CXX='-fPIC'
13374	;;
13375      esac
13376      ;;
13377    *)
13378      lt_prog_compiler_pic_CXX='-fPIC'
13379      ;;
13380    esac
13381  else
13382    case $host_os in
13383      aix4* | aix5*)
13384	# All AIX code is PIC.
13385	if test "$host_cpu" = ia64; then
13386	  # AIX 5 now supports IA64 processor
13387	  lt_prog_compiler_static_CXX='-Bstatic'
13388	else
13389	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13390	fi
13391	;;
13392      chorus*)
13393	case $cc_basename in
13394	cxch68*)
13395	  # Green Hills C++ Compiler
13396	  # _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"
13397	  ;;
13398	esac
13399	;;
13400       darwin*)
13401         # PIC is the default on this platform
13402         # Common symbols not allowed in MH_DYLIB files
13403         case $cc_basename in
13404           xlc*)
13405           lt_prog_compiler_pic_CXX='-qnocommon'
13406           lt_prog_compiler_wl_CXX='-Wl,'
13407           ;;
13408         esac
13409       ;;
13410      dgux*)
13411	case $cc_basename in
13412	  ec++*)
13413	    lt_prog_compiler_pic_CXX='-KPIC'
13414	    ;;
13415	  ghcx*)
13416	    # Green Hills C++ Compiler
13417	    lt_prog_compiler_pic_CXX='-pic'
13418	    ;;
13419	  *)
13420	    ;;
13421	esac
13422	;;
13423      freebsd* | dragonfly*)
13424	# FreeBSD uses GNU C++
13425	;;
13426      hpux9* | hpux10* | hpux11*)
13427	case $cc_basename in
13428	  CC*)
13429	    lt_prog_compiler_wl_CXX='-Wl,'
13430	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13431	    if test "$host_cpu" != ia64; then
13432	      lt_prog_compiler_pic_CXX='+Z'
13433	    fi
13434	    ;;
13435	  aCC*)
13436	    lt_prog_compiler_wl_CXX='-Wl,'
13437	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13438	    case $host_cpu in
13439	    hppa*64*|ia64*)
13440	      # +Z the default
13441	      ;;
13442	    *)
13443	      lt_prog_compiler_pic_CXX='+Z'
13444	      ;;
13445	    esac
13446	    ;;
13447	  *)
13448	    ;;
13449	esac
13450	;;
13451      interix*)
13452	# This is c89, which is MS Visual C++ (no shared libs)
13453	# Anyone wants to do a port?
13454	;;
13455      irix5* | irix6* | nonstopux*)
13456	case $cc_basename in
13457	  CC*)
13458	    lt_prog_compiler_wl_CXX='-Wl,'
13459	    lt_prog_compiler_static_CXX='-non_shared'
13460	    # CC pic flag -KPIC is the default.
13461	    ;;
13462	  *)
13463	    ;;
13464	esac
13465	;;
13466      linux* | k*bsd*-gnu)
13467	case $cc_basename in
13468	  KCC*)
13469	    # KAI C++ Compiler
13470	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13471	    lt_prog_compiler_pic_CXX='-fPIC'
13472	    ;;
13473	  icpc* | ecpc*)
13474	    # Intel C++
13475	    lt_prog_compiler_wl_CXX='-Wl,'
13476	    lt_prog_compiler_pic_CXX='-KPIC'
13477	    lt_prog_compiler_static_CXX='-static'
13478	    ;;
13479	  pgCC*)
13480	    # Portland Group C++ compiler.
13481	    lt_prog_compiler_wl_CXX='-Wl,'
13482	    lt_prog_compiler_pic_CXX='-fpic'
13483	    lt_prog_compiler_static_CXX='-Bstatic'
13484	    ;;
13485	  cxx*)
13486	    # Compaq C++
13487	    # Make sure the PIC flag is empty.  It appears that all Alpha
13488	    # Linux and Compaq Tru64 Unix objects are PIC.
13489	    lt_prog_compiler_pic_CXX=
13490	    lt_prog_compiler_static_CXX='-non_shared'
13491	    ;;
13492	  *)
13493	    ;;
13494	esac
13495	;;
13496      lynxos*)
13497	;;
13498      m88k*)
13499	;;
13500      mvs*)
13501	case $cc_basename in
13502	  cxx*)
13503	    lt_prog_compiler_pic_CXX='-W c,exportall'
13504	    ;;
13505	  *)
13506	    ;;
13507	esac
13508	;;
13509      netbsd* | netbsdelf*-gnu)
13510	;;
13511      osf3* | osf4* | osf5*)
13512	case $cc_basename in
13513	  KCC*)
13514	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13515	    ;;
13516	  RCC*)
13517	    # Rational C++ 2.4.1
13518	    lt_prog_compiler_pic_CXX='-pic'
13519	    ;;
13520	  cxx*)
13521	    # Digital/Compaq C++
13522	    lt_prog_compiler_wl_CXX='-Wl,'
13523	    # Make sure the PIC flag is empty.  It appears that all Alpha
13524	    # Linux and Compaq Tru64 Unix objects are PIC.
13525	    lt_prog_compiler_pic_CXX=
13526	    lt_prog_compiler_static_CXX='-non_shared'
13527	    ;;
13528	  *)
13529	    ;;
13530	esac
13531	;;
13532      psos*)
13533	;;
13534      solaris*)
13535	case $cc_basename in
13536	  CC*)
13537	    # Sun C++ 4.2, 5.x and Centerline C++
13538	    lt_prog_compiler_pic_CXX='-KPIC'
13539	    lt_prog_compiler_static_CXX='-Bstatic'
13540	    lt_prog_compiler_wl_CXX='-Qoption ld '
13541	    ;;
13542	  gcx*)
13543	    # Green Hills C++ Compiler
13544	    lt_prog_compiler_pic_CXX='-PIC'
13545	    ;;
13546	  *)
13547	    ;;
13548	esac
13549	;;
13550      sunos4*)
13551	case $cc_basename in
13552	  CC*)
13553	    # Sun C++ 4.x
13554	    lt_prog_compiler_pic_CXX='-pic'
13555	    lt_prog_compiler_static_CXX='-Bstatic'
13556	    ;;
13557	  lcc*)
13558	    # Lucid
13559	    lt_prog_compiler_pic_CXX='-pic'
13560	    ;;
13561	  *)
13562	    ;;
13563	esac
13564	;;
13565      tandem*)
13566	case $cc_basename in
13567	  NCC*)
13568	    # NonStop-UX NCC 3.20
13569	    lt_prog_compiler_pic_CXX='-KPIC'
13570	    ;;
13571	  *)
13572	    ;;
13573	esac
13574	;;
13575      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13576	case $cc_basename in
13577	  CC*)
13578	    lt_prog_compiler_wl_CXX='-Wl,'
13579	    lt_prog_compiler_pic_CXX='-KPIC'
13580	    lt_prog_compiler_static_CXX='-Bstatic'
13581	    ;;
13582	esac
13583	;;
13584      vxworks*)
13585	;;
13586      *)
13587	lt_prog_compiler_can_build_shared_CXX=no
13588	;;
13589    esac
13590  fi
13591
13592{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13593echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13594
13595#
13596# Check to make sure the PIC flag actually works.
13597#
13598if test -n "$lt_prog_compiler_pic_CXX"; then
13599
13600{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13601echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13602if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13603  echo $ECHO_N "(cached) $ECHO_C" >&6
13604else
13605  lt_prog_compiler_pic_works_CXX=no
13606  ac_outfile=conftest.$ac_objext
13607   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13608   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13609   # Insert the option either (1) after the last *FLAGS variable, or
13610   # (2) before a word containing "conftest.", or (3) at the end.
13611   # Note that $ac_compile itself does not contain backslashes and begins
13612   # with a dollar sign (not a hyphen), so the echo should work correctly.
13613   # The option is referenced via a variable to avoid confusing sed.
13614   lt_compile=`echo "$ac_compile" | $SED \
13615   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13616   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13617   -e 's:$: $lt_compiler_flag:'`
13618   (eval echo "\"\$as_me:13618: $lt_compile\"" >&5)
13619   (eval "$lt_compile" 2>conftest.err)
13620   ac_status=$?
13621   cat conftest.err >&5
13622   echo "$as_me:13622: \$? = $ac_status" >&5
13623   if (exit $ac_status) && test -s "$ac_outfile"; then
13624     # The compiler can only warn and ignore the option if not recognized
13625     # So say no if there are warnings other than the usual output.
13626     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13627     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13628     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13629       lt_prog_compiler_pic_works_CXX=yes
13630     fi
13631   fi
13632   $rm conftest*
13633
13634fi
13635{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13636echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13637
13638if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13639    case $lt_prog_compiler_pic_CXX in
13640     "" | " "*) ;;
13641     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13642     esac
13643else
13644    lt_prog_compiler_pic_CXX=
13645     lt_prog_compiler_can_build_shared_CXX=no
13646fi
13647
13648fi
13649case $host_os in
13650  # For platforms which do not support PIC, -DPIC is meaningless:
13651  *djgpp*)
13652    lt_prog_compiler_pic_CXX=
13653    ;;
13654  *)
13655    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13656    ;;
13657esac
13658
13659#
13660# Check to make sure the static flag actually works.
13661#
13662wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13663{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13664echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13665if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13666  echo $ECHO_N "(cached) $ECHO_C" >&6
13667else
13668  lt_prog_compiler_static_works_CXX=no
13669   save_LDFLAGS="$LDFLAGS"
13670   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13671   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13672   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13673     # The linker can only warn and ignore the option if not recognized
13674     # So say no if there are warnings
13675     if test -s conftest.err; then
13676       # Append any errors to the config.log.
13677       cat conftest.err 1>&5
13678       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13679       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13680       if diff conftest.exp conftest.er2 >/dev/null; then
13681         lt_prog_compiler_static_works_CXX=yes
13682       fi
13683     else
13684       lt_prog_compiler_static_works_CXX=yes
13685     fi
13686   fi
13687   $rm conftest*
13688   LDFLAGS="$save_LDFLAGS"
13689
13690fi
13691{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13692echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13693
13694if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13695    :
13696else
13697    lt_prog_compiler_static_CXX=
13698fi
13699
13700
13701{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13702echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13703if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13704  echo $ECHO_N "(cached) $ECHO_C" >&6
13705else
13706  lt_cv_prog_compiler_c_o_CXX=no
13707   $rm -r conftest 2>/dev/null
13708   mkdir conftest
13709   cd conftest
13710   mkdir out
13711   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13712
13713   lt_compiler_flag="-o out/conftest2.$ac_objext"
13714   # Insert the option either (1) after the last *FLAGS variable, or
13715   # (2) before a word containing "conftest.", or (3) at the end.
13716   # Note that $ac_compile itself does not contain backslashes and begins
13717   # with a dollar sign (not a hyphen), so the echo should work correctly.
13718   lt_compile=`echo "$ac_compile" | $SED \
13719   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13720   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13721   -e 's:$: $lt_compiler_flag:'`
13722   (eval echo "\"\$as_me:13722: $lt_compile\"" >&5)
13723   (eval "$lt_compile" 2>out/conftest.err)
13724   ac_status=$?
13725   cat out/conftest.err >&5
13726   echo "$as_me:13726: \$? = $ac_status" >&5
13727   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13728   then
13729     # The compiler can only warn and ignore the option if not recognized
13730     # So say no if there are warnings
13731     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13732     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13733     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13734       lt_cv_prog_compiler_c_o_CXX=yes
13735     fi
13736   fi
13737   chmod u+w . 2>&5
13738   $rm conftest*
13739   # SGI C++ compiler will create directory out/ii_files/ for
13740   # template instantiation
13741   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13742   $rm out/* && rmdir out
13743   cd ..
13744   rmdir conftest
13745   $rm conftest*
13746
13747fi
13748{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13749echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13750
13751
13752hard_links="nottested"
13753if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13754  # do not overwrite the value of need_locks provided by the user
13755  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13756echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13757  hard_links=yes
13758  $rm conftest*
13759  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13760  touch conftest.a
13761  ln conftest.a conftest.b 2>&5 || hard_links=no
13762  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13763  { echo "$as_me:$LINENO: result: $hard_links" >&5
13764echo "${ECHO_T}$hard_links" >&6; }
13765  if test "$hard_links" = no; then
13766    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13767echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13768    need_locks=warn
13769  fi
13770else
13771  need_locks=no
13772fi
13773
13774{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13775echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13776
13777  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13778  case $host_os in
13779  aix4* | aix5*)
13780    # If we're using GNU nm, then we don't want the "-C" option.
13781    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13782    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13783      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'
13784    else
13785      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'
13786    fi
13787    ;;
13788  pw32*)
13789    export_symbols_cmds_CXX="$ltdll_cmds"
13790  ;;
13791  cygwin* | mingw*)
13792    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'
13793  ;;
13794  linux* | k*bsd*-gnu)
13795    link_all_deplibs_CXX=no
13796  ;;
13797  *)
13798    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13799  ;;
13800  esac
13801
13802{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13803echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13804test "$ld_shlibs_CXX" = no && can_build_shared=no
13805
13806#
13807# Do we need to explicitly link libc?
13808#
13809case "x$archive_cmds_need_lc_CXX" in
13810x|xyes)
13811  # Assume -lc should be added
13812  archive_cmds_need_lc_CXX=yes
13813
13814  if test "$enable_shared" = yes && test "$GCC" = yes; then
13815    case $archive_cmds_CXX in
13816    *'~'*)
13817      # FIXME: we may have to deal with multi-command sequences.
13818      ;;
13819    '$CC '*)
13820      # Test whether the compiler implicitly links with -lc since on some
13821      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13822      # to ld, don't add -lc before -lgcc.
13823      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13824echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13825      $rm conftest*
13826      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13827
13828      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13829  (eval $ac_compile) 2>&5
13830  ac_status=$?
13831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832  (exit $ac_status); } 2>conftest.err; then
13833        soname=conftest
13834        lib=conftest
13835        libobjs=conftest.$ac_objext
13836        deplibs=
13837        wl=$lt_prog_compiler_wl_CXX
13838	pic_flag=$lt_prog_compiler_pic_CXX
13839        compiler_flags=-v
13840        linker_flags=-v
13841        verstring=
13842        output_objdir=.
13843        libname=conftest
13844        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13845        allow_undefined_flag_CXX=
13846        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13847  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13848  ac_status=$?
13849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850  (exit $ac_status); }
13851        then
13852	  archive_cmds_need_lc_CXX=no
13853        else
13854	  archive_cmds_need_lc_CXX=yes
13855        fi
13856        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13857      else
13858        cat conftest.err 1>&5
13859      fi
13860      $rm conftest*
13861      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13862echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13863      ;;
13864    esac
13865  fi
13866  ;;
13867esac
13868
13869{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13870echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13871library_names_spec=
13872libname_spec='lib$name'
13873soname_spec=
13874shrext_cmds=".so"
13875postinstall_cmds=
13876postuninstall_cmds=
13877finish_cmds=
13878finish_eval=
13879shlibpath_var=
13880shlibpath_overrides_runpath=unknown
13881version_type=none
13882dynamic_linker="$host_os ld.so"
13883sys_lib_dlsearch_path_spec="/lib /usr/lib"
13884if test "$GCC" = yes; then
13885  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13886  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13887    # if the path contains ";" then we assume it to be the separator
13888    # otherwise default to the standard path separator (i.e. ":") - it is
13889    # assumed that no part of a normal pathname contains ";" but that should
13890    # okay in the real world where ";" in dirpaths is itself problematic.
13891    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13892  else
13893    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13894  fi
13895else
13896  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13897fi
13898need_lib_prefix=unknown
13899hardcode_into_libs=no
13900
13901# when you set need_version to no, make sure it does not cause -set_version
13902# flags to be left without arguments
13903need_version=unknown
13904
13905case $host_os in
13906aix3*)
13907  version_type=linux
13908  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13909  shlibpath_var=LIBPATH
13910
13911  # AIX 3 has no versioning support, so we append a major version to the name.
13912  soname_spec='${libname}${release}${shared_ext}$major'
13913  ;;
13914
13915aix4* | aix5*)
13916  version_type=linux
13917  need_lib_prefix=no
13918  need_version=no
13919  hardcode_into_libs=yes
13920  if test "$host_cpu" = ia64; then
13921    # AIX 5 supports IA64
13922    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13923    shlibpath_var=LD_LIBRARY_PATH
13924  else
13925    # With GCC up to 2.95.x, collect2 would create an import file
13926    # for dependence libraries.  The import file would start with
13927    # the line `#! .'.  This would cause the generated library to
13928    # depend on `.', always an invalid library.  This was fixed in
13929    # development snapshots of GCC prior to 3.0.
13930    case $host_os in
13931      aix4 | aix4.[01] | aix4.[01].*)
13932      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13933	   echo ' yes '
13934	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13935	:
13936      else
13937	can_build_shared=no
13938      fi
13939      ;;
13940    esac
13941    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13942    # soname into executable. Probably we can add versioning support to
13943    # collect2, so additional links can be useful in future.
13944    if test "$aix_use_runtimelinking" = yes; then
13945      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13946      # instead of lib<name>.a to let people know that these are not
13947      # typical AIX shared libraries.
13948      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13949    else
13950      # We preserve .a as extension for shared libraries through AIX4.2
13951      # and later when we are not doing run time linking.
13952      library_names_spec='${libname}${release}.a $libname.a'
13953      soname_spec='${libname}${release}${shared_ext}$major'
13954    fi
13955    shlibpath_var=LIBPATH
13956  fi
13957  ;;
13958
13959amigaos*)
13960  library_names_spec='$libname.ixlibrary $libname.a'
13961  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13962  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'
13963  ;;
13964
13965beos*)
13966  library_names_spec='${libname}${shared_ext}'
13967  dynamic_linker="$host_os ld.so"
13968  shlibpath_var=LIBRARY_PATH
13969  ;;
13970
13971bsdi[45]*)
13972  version_type=linux
13973  need_version=no
13974  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13975  soname_spec='${libname}${release}${shared_ext}$major'
13976  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13977  shlibpath_var=LD_LIBRARY_PATH
13978  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13979  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13980  # the default ld.so.conf also contains /usr/contrib/lib and
13981  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13982  # libtool to hard-code these into programs
13983  ;;
13984
13985cygwin* | mingw* | pw32*)
13986  version_type=windows
13987  shrext_cmds=".dll"
13988  need_version=no
13989  need_lib_prefix=no
13990
13991  case $GCC,$host_os in
13992  yes,cygwin* | yes,mingw* | yes,pw32*)
13993    library_names_spec='$libname.dll.a'
13994    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13995    postinstall_cmds='base_file=`basename \${file}`~
13996      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13997      dldir=$destdir/`dirname \$dlpath`~
13998      test -d \$dldir || mkdir -p \$dldir~
13999      $install_prog $dir/$dlname \$dldir/$dlname~
14000      chmod a+x \$dldir/$dlname'
14001    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14002      dlpath=$dir/\$dldll~
14003       $rm \$dlpath'
14004    shlibpath_overrides_runpath=yes
14005
14006    case $host_os in
14007    cygwin*)
14008      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14009      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14010      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14011      ;;
14012    mingw*)
14013      # MinGW DLLs use traditional 'lib' prefix
14014      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14015      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14016      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14017        # It is most probably a Windows format PATH printed by
14018        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14019        # path with ; separators, and with drive letters. We can handle the
14020        # drive letters (cygwin fileutils understands them), so leave them,
14021        # especially as we might pass files found there to a mingw objdump,
14022        # which wouldn't understand a cygwinified path. Ahh.
14023        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14024      else
14025        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14026      fi
14027      ;;
14028    pw32*)
14029      # pw32 DLLs use 'pw' prefix rather than 'lib'
14030      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14031      ;;
14032    esac
14033    ;;
14034
14035  *)
14036    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14037    ;;
14038  esac
14039  dynamic_linker='Win32 ld.exe'
14040  # FIXME: first we should search . and the directory the executable is in
14041  shlibpath_var=PATH
14042  ;;
14043
14044darwin* | rhapsody*)
14045  dynamic_linker="$host_os dyld"
14046  version_type=darwin
14047  need_lib_prefix=no
14048  need_version=no
14049  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14050  soname_spec='${libname}${release}${major}$shared_ext'
14051  shlibpath_overrides_runpath=yes
14052  shlibpath_var=DYLD_LIBRARY_PATH
14053  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14054  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14055  if test "$GCC" = yes; then
14056    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14057  else
14058    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14059  fi
14060  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14061  ;;
14062
14063dgux*)
14064  version_type=linux
14065  need_lib_prefix=no
14066  need_version=no
14067  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14068  soname_spec='${libname}${release}${shared_ext}$major'
14069  shlibpath_var=LD_LIBRARY_PATH
14070  ;;
14071
14072freebsd1*)
14073  dynamic_linker=no
14074  ;;
14075
14076freebsd* | dragonfly*)
14077  # DragonFly does not have aout.  When/if they implement a new
14078  # versioning mechanism, adjust this.
14079  if test -x /usr/bin/objformat; then
14080    objformat=`/usr/bin/objformat`
14081  else
14082    case $host_os in
14083    freebsd[123]*) objformat=aout ;;
14084    *) objformat=elf ;;
14085    esac
14086  fi
14087  version_type=freebsd-$objformat
14088  case $version_type in
14089    freebsd-elf*)
14090      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14091      need_version=no
14092      need_lib_prefix=no
14093      ;;
14094    freebsd-*)
14095      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14096      need_version=yes
14097      ;;
14098  esac
14099  shlibpath_var=LD_LIBRARY_PATH
14100  case $host_os in
14101  freebsd2*)
14102    shlibpath_overrides_runpath=yes
14103    ;;
14104  freebsd3.[01]* | freebsdelf3.[01]*)
14105    shlibpath_overrides_runpath=yes
14106    hardcode_into_libs=yes
14107    ;;
14108  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14109  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14110    shlibpath_overrides_runpath=no
14111    hardcode_into_libs=yes
14112    ;;
14113  freebsd*) # from 4.6 on
14114    shlibpath_overrides_runpath=yes
14115    hardcode_into_libs=yes
14116    ;;
14117  esac
14118  ;;
14119
14120gnu*)
14121  version_type=linux
14122  need_lib_prefix=no
14123  need_version=no
14124  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14125  soname_spec='${libname}${release}${shared_ext}$major'
14126  shlibpath_var=LD_LIBRARY_PATH
14127  hardcode_into_libs=yes
14128  ;;
14129
14130hpux9* | hpux10* | hpux11*)
14131  # Give a soname corresponding to the major version so that dld.sl refuses to
14132  # link against other versions.
14133  version_type=sunos
14134  need_lib_prefix=no
14135  need_version=no
14136  case $host_cpu in
14137  ia64*)
14138    shrext_cmds='.so'
14139    hardcode_into_libs=yes
14140    dynamic_linker="$host_os dld.so"
14141    shlibpath_var=LD_LIBRARY_PATH
14142    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14143    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14144    soname_spec='${libname}${release}${shared_ext}$major'
14145    if test "X$HPUX_IA64_MODE" = X32; then
14146      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14147    else
14148      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14149    fi
14150    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14151    ;;
14152   hppa*64*)
14153     shrext_cmds='.sl'
14154     hardcode_into_libs=yes
14155     dynamic_linker="$host_os dld.sl"
14156     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14157     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14158     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14159     soname_spec='${libname}${release}${shared_ext}$major'
14160     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14161     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14162     ;;
14163   *)
14164    shrext_cmds='.sl'
14165    dynamic_linker="$host_os dld.sl"
14166    shlibpath_var=SHLIB_PATH
14167    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14168    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14169    soname_spec='${libname}${release}${shared_ext}$major'
14170    ;;
14171  esac
14172  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14173  postinstall_cmds='chmod 555 $lib'
14174  ;;
14175
14176interix3*)
14177  version_type=linux
14178  need_lib_prefix=no
14179  need_version=no
14180  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14181  soname_spec='${libname}${release}${shared_ext}$major'
14182  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14183  shlibpath_var=LD_LIBRARY_PATH
14184  shlibpath_overrides_runpath=no
14185  hardcode_into_libs=yes
14186  ;;
14187
14188irix5* | irix6* | nonstopux*)
14189  case $host_os in
14190    nonstopux*) version_type=nonstopux ;;
14191    *)
14192	if test "$lt_cv_prog_gnu_ld" = yes; then
14193		version_type=linux
14194	else
14195		version_type=irix
14196	fi ;;
14197  esac
14198  need_lib_prefix=no
14199  need_version=no
14200  soname_spec='${libname}${release}${shared_ext}$major'
14201  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14202  case $host_os in
14203  irix5* | nonstopux*)
14204    libsuff= shlibsuff=
14205    ;;
14206  *)
14207    case $LD in # libtool.m4 will add one of these switches to LD
14208    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14209      libsuff= shlibsuff= libmagic=32-bit;;
14210    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14211      libsuff=32 shlibsuff=N32 libmagic=N32;;
14212    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14213      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14214    *) libsuff= shlibsuff= libmagic=never-match;;
14215    esac
14216    ;;
14217  esac
14218  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14219  shlibpath_overrides_runpath=no
14220  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14221  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14222  hardcode_into_libs=yes
14223  ;;
14224
14225# No shared lib support for Linux oldld, aout, or coff.
14226linux*oldld* | linux*aout* | linux*coff*)
14227  dynamic_linker=no
14228  ;;
14229
14230# This must be Linux ELF.
14231linux* | k*bsd*-gnu)
14232  version_type=linux
14233  need_lib_prefix=no
14234  need_version=no
14235  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14236  soname_spec='${libname}${release}${shared_ext}$major'
14237  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14238  shlibpath_var=LD_LIBRARY_PATH
14239  shlibpath_overrides_runpath=no
14240  # This implies no fast_install, which is unacceptable.
14241  # Some rework will be needed to allow for fast_install
14242  # before this can be enabled.
14243  hardcode_into_libs=yes
14244
14245  # Append ld.so.conf contents to the search path
14246  if test -f /etc/ld.so.conf; then
14247    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14248    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14249  fi
14250
14251  # We used to test for /lib/ld.so.1 and disable shared libraries on
14252  # powerpc, because MkLinux only supported shared libraries with the
14253  # GNU dynamic linker.  Since this was broken with cross compilers,
14254  # most powerpc-linux boxes support dynamic linking these days and
14255  # people can always --disable-shared, the test was removed, and we
14256  # assume the GNU/Linux dynamic linker is in use.
14257  dynamic_linker='GNU/Linux ld.so'
14258  ;;
14259
14260netbsdelf*-gnu)
14261  version_type=linux
14262  need_lib_prefix=no
14263  need_version=no
14264  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14265  soname_spec='${libname}${release}${shared_ext}$major'
14266  shlibpath_var=LD_LIBRARY_PATH
14267  shlibpath_overrides_runpath=no
14268  hardcode_into_libs=yes
14269  dynamic_linker='NetBSD ld.elf_so'
14270  ;;
14271
14272netbsd*)
14273  version_type=sunos
14274  need_lib_prefix=no
14275  need_version=no
14276  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14277    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14278    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14279    dynamic_linker='NetBSD (a.out) ld.so'
14280  else
14281    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14282    soname_spec='${libname}${release}${shared_ext}$major'
14283    dynamic_linker='NetBSD ld.elf_so'
14284  fi
14285  shlibpath_var=LD_LIBRARY_PATH
14286  shlibpath_overrides_runpath=yes
14287  hardcode_into_libs=yes
14288  ;;
14289
14290newsos6)
14291  version_type=linux
14292  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14293  shlibpath_var=LD_LIBRARY_PATH
14294  shlibpath_overrides_runpath=yes
14295  ;;
14296
14297nto-qnx*)
14298  version_type=linux
14299  need_lib_prefix=no
14300  need_version=no
14301  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14302  soname_spec='${libname}${release}${shared_ext}$major'
14303  shlibpath_var=LD_LIBRARY_PATH
14304  shlibpath_overrides_runpath=yes
14305  ;;
14306
14307openbsd*)
14308  version_type=sunos
14309  sys_lib_dlsearch_path_spec="/usr/lib"
14310  need_lib_prefix=no
14311  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14312  case $host_os in
14313    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14314    *)                         need_version=no  ;;
14315  esac
14316  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14317  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14318  shlibpath_var=LD_LIBRARY_PATH
14319  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14320    case $host_os in
14321      openbsd2.[89] | openbsd2.[89].*)
14322	shlibpath_overrides_runpath=no
14323	;;
14324      *)
14325	shlibpath_overrides_runpath=yes
14326	;;
14327      esac
14328  else
14329    shlibpath_overrides_runpath=yes
14330  fi
14331  ;;
14332
14333os2*)
14334  libname_spec='$name'
14335  shrext_cmds=".dll"
14336  need_lib_prefix=no
14337  library_names_spec='$libname${shared_ext} $libname.a'
14338  dynamic_linker='OS/2 ld.exe'
14339  shlibpath_var=LIBPATH
14340  ;;
14341
14342osf3* | osf4* | osf5*)
14343  version_type=osf
14344  need_lib_prefix=no
14345  need_version=no
14346  soname_spec='${libname}${release}${shared_ext}$major'
14347  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14348  shlibpath_var=LD_LIBRARY_PATH
14349  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14350  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14351  ;;
14352
14353solaris*)
14354  version_type=linux
14355  need_lib_prefix=no
14356  need_version=no
14357  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14358  soname_spec='${libname}${release}${shared_ext}$major'
14359  shlibpath_var=LD_LIBRARY_PATH
14360  shlibpath_overrides_runpath=yes
14361  hardcode_into_libs=yes
14362  # ldd complains unless libraries are executable
14363  postinstall_cmds='chmod +x $lib'
14364  ;;
14365
14366sunos4*)
14367  version_type=sunos
14368  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14369  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14370  shlibpath_var=LD_LIBRARY_PATH
14371  shlibpath_overrides_runpath=yes
14372  if test "$with_gnu_ld" = yes; then
14373    need_lib_prefix=no
14374  fi
14375  need_version=yes
14376  ;;
14377
14378sysv4 | sysv4.3*)
14379  version_type=linux
14380  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14381  soname_spec='${libname}${release}${shared_ext}$major'
14382  shlibpath_var=LD_LIBRARY_PATH
14383  case $host_vendor in
14384    sni)
14385      shlibpath_overrides_runpath=no
14386      need_lib_prefix=no
14387      export_dynamic_flag_spec='${wl}-Blargedynsym'
14388      runpath_var=LD_RUN_PATH
14389      ;;
14390    siemens)
14391      need_lib_prefix=no
14392      ;;
14393    motorola)
14394      need_lib_prefix=no
14395      need_version=no
14396      shlibpath_overrides_runpath=no
14397      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14398      ;;
14399  esac
14400  ;;
14401
14402sysv4*MP*)
14403  if test -d /usr/nec ;then
14404    version_type=linux
14405    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14406    soname_spec='$libname${shared_ext}.$major'
14407    shlibpath_var=LD_LIBRARY_PATH
14408  fi
14409  ;;
14410
14411sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14412  version_type=freebsd-elf
14413  need_lib_prefix=no
14414  need_version=no
14415  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14416  soname_spec='${libname}${release}${shared_ext}$major'
14417  shlibpath_var=LD_LIBRARY_PATH
14418  hardcode_into_libs=yes
14419  if test "$with_gnu_ld" = yes; then
14420    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14421    shlibpath_overrides_runpath=no
14422  else
14423    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14424    shlibpath_overrides_runpath=yes
14425    case $host_os in
14426      sco3.2v5*)
14427        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14428	;;
14429    esac
14430  fi
14431  sys_lib_dlsearch_path_spec='/usr/lib'
14432  ;;
14433
14434uts4*)
14435  version_type=linux
14436  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14437  soname_spec='${libname}${release}${shared_ext}$major'
14438  shlibpath_var=LD_LIBRARY_PATH
14439  ;;
14440
14441*)
14442  dynamic_linker=no
14443  ;;
14444esac
14445{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14446echo "${ECHO_T}$dynamic_linker" >&6; }
14447test "$dynamic_linker" = no && can_build_shared=no
14448
14449variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14450if test "$GCC" = yes; then
14451  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14452fi
14453
14454{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14455echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14456hardcode_action_CXX=
14457if test -n "$hardcode_libdir_flag_spec_CXX" || \
14458   test -n "$runpath_var_CXX" || \
14459   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14460
14461  # We can hardcode non-existant directories.
14462  if test "$hardcode_direct_CXX" != no &&
14463     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14464     # have to relink, otherwise we might link with an installed library
14465     # when we should be linking with a yet-to-be-installed one
14466     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14467     test "$hardcode_minus_L_CXX" != no; then
14468    # Linking always hardcodes the temporary library directory.
14469    hardcode_action_CXX=relink
14470  else
14471    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14472    hardcode_action_CXX=immediate
14473  fi
14474else
14475  # We cannot hardcode anything, or else we can only hardcode existing
14476  # directories.
14477  hardcode_action_CXX=unsupported
14478fi
14479{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14480echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14481
14482if test "$hardcode_action_CXX" = relink; then
14483  # Fast installation is not supported
14484  enable_fast_install=no
14485elif test "$shlibpath_overrides_runpath" = yes ||
14486     test "$enable_shared" = no; then
14487  # Fast installation is not necessary
14488  enable_fast_install=needless
14489fi
14490
14491
14492# The else clause should only fire when bootstrapping the
14493# libtool distribution, otherwise you forgot to ship ltmain.sh
14494# with your package, and you will get complaints that there are
14495# no rules to generate ltmain.sh.
14496if test -f "$ltmain"; then
14497  # See if we are running on zsh, and set the options which allow our commands through
14498  # without removal of \ escapes.
14499  if test -n "${ZSH_VERSION+set}" ; then
14500    setopt NO_GLOB_SUBST
14501  fi
14502  # Now quote all the things that may contain metacharacters while being
14503  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14504  # variables and quote the copies for generation of the libtool script.
14505  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14506    SED SHELL STRIP \
14507    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14508    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14509    deplibs_check_method reload_flag reload_cmds need_locks \
14510    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14511    lt_cv_sys_global_symbol_to_c_name_address \
14512    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14513    old_postinstall_cmds old_postuninstall_cmds \
14514    compiler_CXX \
14515    CC_CXX \
14516    LD_CXX \
14517    lt_prog_compiler_wl_CXX \
14518    lt_prog_compiler_pic_CXX \
14519    lt_prog_compiler_static_CXX \
14520    lt_prog_compiler_no_builtin_flag_CXX \
14521    export_dynamic_flag_spec_CXX \
14522    thread_safe_flag_spec_CXX \
14523    whole_archive_flag_spec_CXX \
14524    enable_shared_with_static_runtimes_CXX \
14525    old_archive_cmds_CXX \
14526    old_archive_from_new_cmds_CXX \
14527    predep_objects_CXX \
14528    postdep_objects_CXX \
14529    predeps_CXX \
14530    postdeps_CXX \
14531    compiler_lib_search_path_CXX \
14532    archive_cmds_CXX \
14533    archive_expsym_cmds_CXX \
14534    postinstall_cmds_CXX \
14535    postuninstall_cmds_CXX \
14536    old_archive_from_expsyms_cmds_CXX \
14537    allow_undefined_flag_CXX \
14538    no_undefined_flag_CXX \
14539    export_symbols_cmds_CXX \
14540    hardcode_libdir_flag_spec_CXX \
14541    hardcode_libdir_flag_spec_ld_CXX \
14542    hardcode_libdir_separator_CXX \
14543    hardcode_automatic_CXX \
14544    module_cmds_CXX \
14545    module_expsym_cmds_CXX \
14546    lt_cv_prog_compiler_c_o_CXX \
14547    exclude_expsyms_CXX \
14548    include_expsyms_CXX; do
14549
14550    case $var in
14551    old_archive_cmds_CXX | \
14552    old_archive_from_new_cmds_CXX | \
14553    archive_cmds_CXX | \
14554    archive_expsym_cmds_CXX | \
14555    module_cmds_CXX | \
14556    module_expsym_cmds_CXX | \
14557    old_archive_from_expsyms_cmds_CXX | \
14558    export_symbols_cmds_CXX | \
14559    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14560    postinstall_cmds | postuninstall_cmds | \
14561    old_postinstall_cmds | old_postuninstall_cmds | \
14562    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14563      # Double-quote double-evaled strings.
14564      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14565      ;;
14566    *)
14567      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14568      ;;
14569    esac
14570  done
14571
14572  case $lt_echo in
14573  *'\$0 --fallback-echo"')
14574    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14575    ;;
14576  esac
14577
14578cfgfile="$ofile"
14579
14580  cat <<__EOF__ >> "$cfgfile"
14581# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14582
14583# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14584
14585# Shell to use when invoking shell scripts.
14586SHELL=$lt_SHELL
14587
14588# Whether or not to build shared libraries.
14589build_libtool_libs=$enable_shared
14590
14591# Whether or not to build static libraries.
14592build_old_libs=$enable_static
14593
14594# Whether or not to add -lc for building shared libraries.
14595build_libtool_need_lc=$archive_cmds_need_lc_CXX
14596
14597# Whether or not to disallow shared libs when runtime libs are static
14598allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14599
14600# Whether or not to optimize for fast installation.
14601fast_install=$enable_fast_install
14602
14603# The host system.
14604host_alias=$host_alias
14605host=$host
14606host_os=$host_os
14607
14608# The build system.
14609build_alias=$build_alias
14610build=$build
14611build_os=$build_os
14612
14613# An echo program that does not interpret backslashes.
14614echo=$lt_echo
14615
14616# The archiver.
14617AR=$lt_AR
14618AR_FLAGS=$lt_AR_FLAGS
14619
14620# A C compiler.
14621LTCC=$lt_LTCC
14622
14623# LTCC compiler flags.
14624LTCFLAGS=$lt_LTCFLAGS
14625
14626# A language-specific compiler.
14627CC=$lt_compiler_CXX
14628
14629# Is the compiler the GNU C compiler?
14630with_gcc=$GCC_CXX
14631
14632# An ERE matcher.
14633EGREP=$lt_EGREP
14634
14635# The linker used to build libraries.
14636LD=$lt_LD_CXX
14637
14638# Whether we need hard or soft links.
14639LN_S=$lt_LN_S
14640
14641# A BSD-compatible nm program.
14642NM=$lt_NM
14643
14644# A symbol stripping program
14645STRIP=$lt_STRIP
14646
14647# Used to examine libraries when file_magic_cmd begins "file"
14648MAGIC_CMD=$MAGIC_CMD
14649
14650# Used on cygwin: DLL creation program.
14651DLLTOOL="$DLLTOOL"
14652
14653# Used on cygwin: object dumper.
14654OBJDUMP="$OBJDUMP"
14655
14656# Used on cygwin: assembler.
14657AS="$AS"
14658
14659# The name of the directory that contains temporary libtool files.
14660objdir=$objdir
14661
14662# How to create reloadable object files.
14663reload_flag=$lt_reload_flag
14664reload_cmds=$lt_reload_cmds
14665
14666# How to pass a linker flag through the compiler.
14667wl=$lt_lt_prog_compiler_wl_CXX
14668
14669# Object file suffix (normally "o").
14670objext="$ac_objext"
14671
14672# Old archive suffix (normally "a").
14673libext="$libext"
14674
14675# Shared library suffix (normally ".so").
14676shrext_cmds='$shrext_cmds'
14677
14678# Executable file suffix (normally "").
14679exeext="$exeext"
14680
14681# Additional compiler flags for building library objects.
14682pic_flag=$lt_lt_prog_compiler_pic_CXX
14683pic_mode=$pic_mode
14684
14685# What is the maximum length of a command?
14686max_cmd_len=$lt_cv_sys_max_cmd_len
14687
14688# Does compiler simultaneously support -c and -o options?
14689compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14690
14691# Must we lock files when doing compilation?
14692need_locks=$lt_need_locks
14693
14694# Do we need the lib prefix for modules?
14695need_lib_prefix=$need_lib_prefix
14696
14697# Do we need a version for libraries?
14698need_version=$need_version
14699
14700# Whether dlopen is supported.
14701dlopen_support=$enable_dlopen
14702
14703# Whether dlopen of programs is supported.
14704dlopen_self=$enable_dlopen_self
14705
14706# Whether dlopen of statically linked programs is supported.
14707dlopen_self_static=$enable_dlopen_self_static
14708
14709# Compiler flag to prevent dynamic linking.
14710link_static_flag=$lt_lt_prog_compiler_static_CXX
14711
14712# Compiler flag to turn off builtin functions.
14713no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14714
14715# Compiler flag to allow reflexive dlopens.
14716export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14717
14718# Compiler flag to generate shared objects directly from archives.
14719whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14720
14721# Compiler flag to generate thread-safe objects.
14722thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14723
14724# Library versioning type.
14725version_type=$version_type
14726
14727# Format of library name prefix.
14728libname_spec=$lt_libname_spec
14729
14730# List of archive names.  First name is the real one, the rest are links.
14731# The last name is the one that the linker finds with -lNAME.
14732library_names_spec=$lt_library_names_spec
14733
14734# The coded name of the library, if different from the real name.
14735soname_spec=$lt_soname_spec
14736
14737# Commands used to build and install an old-style archive.
14738RANLIB=$lt_RANLIB
14739old_archive_cmds=$lt_old_archive_cmds_CXX
14740old_postinstall_cmds=$lt_old_postinstall_cmds
14741old_postuninstall_cmds=$lt_old_postuninstall_cmds
14742
14743# Create an old-style archive from a shared archive.
14744old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14745
14746# Create a temporary old-style archive to link instead of a shared archive.
14747old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14748
14749# Commands used to build and install a shared archive.
14750archive_cmds=$lt_archive_cmds_CXX
14751archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14752postinstall_cmds=$lt_postinstall_cmds
14753postuninstall_cmds=$lt_postuninstall_cmds
14754
14755# Commands used to build a loadable module (assumed same as above if empty)
14756module_cmds=$lt_module_cmds_CXX
14757module_expsym_cmds=$lt_module_expsym_cmds_CXX
14758
14759# Commands to strip libraries.
14760old_striplib=$lt_old_striplib
14761striplib=$lt_striplib
14762
14763# Dependencies to place before the objects being linked to create a
14764# shared library.
14765predep_objects=$lt_predep_objects_CXX
14766
14767# Dependencies to place after the objects being linked to create a
14768# shared library.
14769postdep_objects=$lt_postdep_objects_CXX
14770
14771# Dependencies to place before the objects being linked to create a
14772# shared library.
14773predeps=$lt_predeps_CXX
14774
14775# Dependencies to place after the objects being linked to create a
14776# shared library.
14777postdeps=$lt_postdeps_CXX
14778
14779# The library search path used internally by the compiler when linking
14780# a shared library.
14781compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14782
14783# Method to check whether dependent libraries are shared objects.
14784deplibs_check_method=$lt_deplibs_check_method
14785
14786# Command to use when deplibs_check_method == file_magic.
14787file_magic_cmd=$lt_file_magic_cmd
14788
14789# Flag that allows shared libraries with undefined symbols to be built.
14790allow_undefined_flag=$lt_allow_undefined_flag_CXX
14791
14792# Flag that forces no undefined symbols.
14793no_undefined_flag=$lt_no_undefined_flag_CXX
14794
14795# Commands used to finish a libtool library installation in a directory.
14796finish_cmds=$lt_finish_cmds
14797
14798# Same as above, but a single script fragment to be evaled but not shown.
14799finish_eval=$lt_finish_eval
14800
14801# Take the output of nm and produce a listing of raw symbols and C names.
14802global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14803
14804# Transform the output of nm in a proper C declaration
14805global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14806
14807# Transform the output of nm in a C name address pair
14808global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14809
14810# This is the shared library runtime path variable.
14811runpath_var=$runpath_var
14812
14813# This is the shared library path variable.
14814shlibpath_var=$shlibpath_var
14815
14816# Is shlibpath searched before the hard-coded library search path?
14817shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14818
14819# How to hardcode a shared library path into an executable.
14820hardcode_action=$hardcode_action_CXX
14821
14822# Whether we should hardcode library paths into libraries.
14823hardcode_into_libs=$hardcode_into_libs
14824
14825# Flag to hardcode \$libdir into a binary during linking.
14826# This must work even if \$libdir does not exist.
14827hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14828
14829# If ld is used when linking, flag to hardcode \$libdir into
14830# a binary during linking. This must work even if \$libdir does
14831# not exist.
14832hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14833
14834# Whether we need a single -rpath flag with a separated argument.
14835hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14836
14837# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14838# resulting binary.
14839hardcode_direct=$hardcode_direct_CXX
14840
14841# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14842# resulting binary.
14843hardcode_minus_L=$hardcode_minus_L_CXX
14844
14845# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14846# the resulting binary.
14847hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14848
14849# Set to yes if building a shared library automatically hardcodes DIR into the library
14850# and all subsequent libraries and executables linked against it.
14851hardcode_automatic=$hardcode_automatic_CXX
14852
14853# Variables whose values should be saved in libtool wrapper scripts and
14854# restored at relink time.
14855variables_saved_for_relink="$variables_saved_for_relink"
14856
14857# Whether libtool must link a program against all its dependency libraries.
14858link_all_deplibs=$link_all_deplibs_CXX
14859
14860# Compile-time system search path for libraries
14861sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14862
14863# Run-time system search path for libraries
14864sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14865
14866# Fix the shell variable \$srcfile for the compiler.
14867fix_srcfile_path="$fix_srcfile_path_CXX"
14868
14869# Set to yes if exported symbols are required.
14870always_export_symbols=$always_export_symbols_CXX
14871
14872# The commands to list exported symbols.
14873export_symbols_cmds=$lt_export_symbols_cmds_CXX
14874
14875# The commands to extract the exported symbol list from a shared archive.
14876extract_expsyms_cmds=$lt_extract_expsyms_cmds
14877
14878# Symbols that should not be listed in the preloaded symbols.
14879exclude_expsyms=$lt_exclude_expsyms_CXX
14880
14881# Symbols that must always be exported.
14882include_expsyms=$lt_include_expsyms_CXX
14883
14884# ### END LIBTOOL TAG CONFIG: $tagname
14885
14886__EOF__
14887
14888
14889else
14890  # If there is no Makefile yet, we rely on a make rule to execute
14891  # `config.status --recheck' to rerun these tests and create the
14892  # libtool script then.
14893  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14894  if test -f "$ltmain_in"; then
14895    test -f Makefile && make "$ltmain"
14896  fi
14897fi
14898
14899
14900ac_ext=c
14901ac_cpp='$CPP $CPPFLAGS'
14902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14904ac_compiler_gnu=$ac_cv_c_compiler_gnu
14905
14906CC=$lt_save_CC
14907LDCXX=$LD
14908LD=$lt_save_LD
14909GCC=$lt_save_GCC
14910with_gnu_ldcxx=$with_gnu_ld
14911with_gnu_ld=$lt_save_with_gnu_ld
14912lt_cv_path_LDCXX=$lt_cv_path_LD
14913lt_cv_path_LD=$lt_save_path_LD
14914lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14915lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14916
14917	else
14918	  tagname=""
14919	fi
14920	;;
14921
14922      F77)
14923	if test -n "$F77" && test "X$F77" != "Xno"; then
14924
14925ac_ext=f
14926ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14927ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14928ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14929
14930
14931archive_cmds_need_lc_F77=no
14932allow_undefined_flag_F77=
14933always_export_symbols_F77=no
14934archive_expsym_cmds_F77=
14935export_dynamic_flag_spec_F77=
14936hardcode_direct_F77=no
14937hardcode_libdir_flag_spec_F77=
14938hardcode_libdir_flag_spec_ld_F77=
14939hardcode_libdir_separator_F77=
14940hardcode_minus_L_F77=no
14941hardcode_automatic_F77=no
14942module_cmds_F77=
14943module_expsym_cmds_F77=
14944link_all_deplibs_F77=unknown
14945old_archive_cmds_F77=$old_archive_cmds
14946no_undefined_flag_F77=
14947whole_archive_flag_spec_F77=
14948enable_shared_with_static_runtimes_F77=no
14949
14950# Source file extension for f77 test sources.
14951ac_ext=f
14952
14953# Object file extension for compiled f77 test sources.
14954objext=o
14955objext_F77=$objext
14956
14957# Code to be used in simple compile tests
14958lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14959
14960# Code to be used in simple link tests
14961lt_simple_link_test_code="      program t\n      end\n"
14962
14963# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14964
14965# If no C compiler was specified, use CC.
14966LTCC=${LTCC-"$CC"}
14967
14968# If no C compiler flags were specified, use CFLAGS.
14969LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14970
14971# Allow CC to be a program name with arguments.
14972compiler=$CC
14973
14974
14975# save warnings/boilerplate of simple test code
14976ac_outfile=conftest.$ac_objext
14977printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14978eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14979_lt_compiler_boilerplate=`cat conftest.err`
14980$rm conftest*
14981
14982ac_outfile=conftest.$ac_objext
14983printf "$lt_simple_link_test_code" >conftest.$ac_ext
14984eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14985_lt_linker_boilerplate=`cat conftest.err`
14986$rm conftest*
14987
14988
14989# Allow CC to be a program name with arguments.
14990lt_save_CC="$CC"
14991CC=${F77-"f77"}
14992compiler=$CC
14993compiler_F77=$CC
14994for cc_temp in $compiler""; do
14995  case $cc_temp in
14996    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14997    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14998    \-*) ;;
14999    *) break;;
15000  esac
15001done
15002cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15003
15004
15005{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15006echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15007{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
15008echo "${ECHO_T}$can_build_shared" >&6; }
15009
15010{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15011echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15012test "$can_build_shared" = "no" && enable_shared=no
15013
15014# On AIX, shared libraries and static libraries use the same namespace, and
15015# are all built from PIC.
15016case $host_os in
15017aix3*)
15018  test "$enable_shared" = yes && enable_static=no
15019  if test -n "$RANLIB"; then
15020    archive_cmds="$archive_cmds~\$RANLIB \$lib"
15021    postinstall_cmds='$RANLIB $lib'
15022  fi
15023  ;;
15024aix4* | aix5*)
15025  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15026    test "$enable_shared" = yes && enable_static=no
15027  fi
15028  ;;
15029esac
15030{ echo "$as_me:$LINENO: result: $enable_shared" >&5
15031echo "${ECHO_T}$enable_shared" >&6; }
15032
15033{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15034echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15035# Make sure either enable_shared or enable_static is yes.
15036test "$enable_shared" = yes || enable_static=yes
15037{ echo "$as_me:$LINENO: result: $enable_static" >&5
15038echo "${ECHO_T}$enable_static" >&6; }
15039
15040GCC_F77="$G77"
15041LD_F77="$LD"
15042
15043lt_prog_compiler_wl_F77=
15044lt_prog_compiler_pic_F77=
15045lt_prog_compiler_static_F77=
15046
15047{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15048echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15049
15050  if test "$GCC" = yes; then
15051    lt_prog_compiler_wl_F77='-Wl,'
15052    lt_prog_compiler_static_F77='-static'
15053
15054    case $host_os in
15055      aix*)
15056      # All AIX code is PIC.
15057      if test "$host_cpu" = ia64; then
15058	# AIX 5 now supports IA64 processor
15059	lt_prog_compiler_static_F77='-Bstatic'
15060      fi
15061      ;;
15062
15063    amigaos*)
15064      # FIXME: we need at least 68020 code to build shared libraries, but
15065      # adding the `-m68020' flag to GCC prevents building anything better,
15066      # like `-m68040'.
15067      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15068      ;;
15069
15070    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15071      # PIC is the default for these OSes.
15072      ;;
15073
15074    mingw* | pw32* | os2*)
15075      # This hack is so that the source file can tell whether it is being
15076      # built for inclusion in a dll (and should export symbols for example).
15077      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15078      ;;
15079
15080    darwin* | rhapsody*)
15081      # PIC is the default on this platform
15082      # Common symbols not allowed in MH_DYLIB files
15083      lt_prog_compiler_pic_F77='-fno-common'
15084      ;;
15085
15086    interix3*)
15087      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15088      # Instead, we relocate shared libraries at runtime.
15089      ;;
15090
15091    msdosdjgpp*)
15092      # Just because we use GCC doesn't mean we suddenly get shared libraries
15093      # on systems that don't support them.
15094      lt_prog_compiler_can_build_shared_F77=no
15095      enable_shared=no
15096      ;;
15097
15098    sysv4*MP*)
15099      if test -d /usr/nec; then
15100	lt_prog_compiler_pic_F77=-Kconform_pic
15101      fi
15102      ;;
15103
15104    hpux*)
15105      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15106      # not for PA HP-UX.
15107      case $host_cpu in
15108      hppa*64*|ia64*)
15109	# +Z the default
15110	;;
15111      *)
15112	lt_prog_compiler_pic_F77='-fPIC'
15113	;;
15114      esac
15115      ;;
15116
15117    *)
15118      lt_prog_compiler_pic_F77='-fPIC'
15119      ;;
15120    esac
15121  else
15122    # PORTME Check for flag to pass linker flags through the system compiler.
15123    case $host_os in
15124    aix*)
15125      lt_prog_compiler_wl_F77='-Wl,'
15126      if test "$host_cpu" = ia64; then
15127	# AIX 5 now supports IA64 processor
15128	lt_prog_compiler_static_F77='-Bstatic'
15129      else
15130	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15131      fi
15132      ;;
15133      darwin*)
15134        # PIC is the default on this platform
15135        # Common symbols not allowed in MH_DYLIB files
15136       case $cc_basename in
15137         xlc*)
15138         lt_prog_compiler_pic_F77='-qnocommon'
15139         lt_prog_compiler_wl_F77='-Wl,'
15140         ;;
15141       esac
15142       ;;
15143
15144    mingw* | pw32* | os2*)
15145      # This hack is so that the source file can tell whether it is being
15146      # built for inclusion in a dll (and should export symbols for example).
15147      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15148      ;;
15149
15150    hpux9* | hpux10* | hpux11*)
15151      lt_prog_compiler_wl_F77='-Wl,'
15152      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15153      # not for PA HP-UX.
15154      case $host_cpu in
15155      hppa*64*|ia64*)
15156	# +Z the default
15157	;;
15158      *)
15159	lt_prog_compiler_pic_F77='+Z'
15160	;;
15161      esac
15162      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15163      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15164      ;;
15165
15166    irix5* | irix6* | nonstopux*)
15167      lt_prog_compiler_wl_F77='-Wl,'
15168      # PIC (with -KPIC) is the default.
15169      lt_prog_compiler_static_F77='-non_shared'
15170      ;;
15171
15172    newsos6)
15173      lt_prog_compiler_pic_F77='-KPIC'
15174      lt_prog_compiler_static_F77='-Bstatic'
15175      ;;
15176
15177    linux* | k*bsd*-gnu)
15178      case $cc_basename in
15179      icc* | ecc*)
15180	lt_prog_compiler_wl_F77='-Wl,'
15181	lt_prog_compiler_pic_F77='-KPIC'
15182	lt_prog_compiler_static_F77='-static'
15183        ;;
15184      pgcc* | pgf77* | pgf90* | pgf95*)
15185        # Portland Group compilers (*not* the Pentium gcc compiler,
15186	# which looks to be a dead project)
15187	lt_prog_compiler_wl_F77='-Wl,'
15188	lt_prog_compiler_pic_F77='-fpic'
15189	lt_prog_compiler_static_F77='-Bstatic'
15190        ;;
15191      ccc*)
15192        lt_prog_compiler_wl_F77='-Wl,'
15193        # All Alpha code is PIC.
15194        lt_prog_compiler_static_F77='-non_shared'
15195        ;;
15196      esac
15197      ;;
15198
15199    osf3* | osf4* | osf5*)
15200      lt_prog_compiler_wl_F77='-Wl,'
15201      # All OSF/1 code is PIC.
15202      lt_prog_compiler_static_F77='-non_shared'
15203      ;;
15204
15205    solaris*)
15206      lt_prog_compiler_pic_F77='-KPIC'
15207      lt_prog_compiler_static_F77='-Bstatic'
15208      case $cc_basename in
15209      f77* | f90* | f95*)
15210	lt_prog_compiler_wl_F77='-Qoption ld ';;
15211      *)
15212	lt_prog_compiler_wl_F77='-Wl,';;
15213      esac
15214      ;;
15215
15216    sunos4*)
15217      lt_prog_compiler_wl_F77='-Qoption ld '
15218      lt_prog_compiler_pic_F77='-PIC'
15219      lt_prog_compiler_static_F77='-Bstatic'
15220      ;;
15221
15222    sysv4 | sysv4.2uw2* | sysv4.3*)
15223      lt_prog_compiler_wl_F77='-Wl,'
15224      lt_prog_compiler_pic_F77='-KPIC'
15225      lt_prog_compiler_static_F77='-Bstatic'
15226      ;;
15227
15228    sysv4*MP*)
15229      if test -d /usr/nec ;then
15230	lt_prog_compiler_pic_F77='-Kconform_pic'
15231	lt_prog_compiler_static_F77='-Bstatic'
15232      fi
15233      ;;
15234
15235    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15236      lt_prog_compiler_wl_F77='-Wl,'
15237      lt_prog_compiler_pic_F77='-KPIC'
15238      lt_prog_compiler_static_F77='-Bstatic'
15239      ;;
15240
15241    unicos*)
15242      lt_prog_compiler_wl_F77='-Wl,'
15243      lt_prog_compiler_can_build_shared_F77=no
15244      ;;
15245
15246    uts4*)
15247      lt_prog_compiler_pic_F77='-pic'
15248      lt_prog_compiler_static_F77='-Bstatic'
15249      ;;
15250
15251    *)
15252      lt_prog_compiler_can_build_shared_F77=no
15253      ;;
15254    esac
15255  fi
15256
15257{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15258echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15259
15260#
15261# Check to make sure the PIC flag actually works.
15262#
15263if test -n "$lt_prog_compiler_pic_F77"; then
15264
15265{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15266echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15267if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15268  echo $ECHO_N "(cached) $ECHO_C" >&6
15269else
15270  lt_prog_compiler_pic_works_F77=no
15271  ac_outfile=conftest.$ac_objext
15272   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15273   lt_compiler_flag="$lt_prog_compiler_pic_F77"
15274   # Insert the option either (1) after the last *FLAGS variable, or
15275   # (2) before a word containing "conftest.", or (3) at the end.
15276   # Note that $ac_compile itself does not contain backslashes and begins
15277   # with a dollar sign (not a hyphen), so the echo should work correctly.
15278   # The option is referenced via a variable to avoid confusing sed.
15279   lt_compile=`echo "$ac_compile" | $SED \
15280   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15281   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15282   -e 's:$: $lt_compiler_flag:'`
15283   (eval echo "\"\$as_me:15283: $lt_compile\"" >&5)
15284   (eval "$lt_compile" 2>conftest.err)
15285   ac_status=$?
15286   cat conftest.err >&5
15287   echo "$as_me:15287: \$? = $ac_status" >&5
15288   if (exit $ac_status) && test -s "$ac_outfile"; then
15289     # The compiler can only warn and ignore the option if not recognized
15290     # So say no if there are warnings other than the usual output.
15291     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15292     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15293     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15294       lt_prog_compiler_pic_works_F77=yes
15295     fi
15296   fi
15297   $rm conftest*
15298
15299fi
15300{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15301echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15302
15303if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15304    case $lt_prog_compiler_pic_F77 in
15305     "" | " "*) ;;
15306     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15307     esac
15308else
15309    lt_prog_compiler_pic_F77=
15310     lt_prog_compiler_can_build_shared_F77=no
15311fi
15312
15313fi
15314case $host_os in
15315  # For platforms which do not support PIC, -DPIC is meaningless:
15316  *djgpp*)
15317    lt_prog_compiler_pic_F77=
15318    ;;
15319  *)
15320    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15321    ;;
15322esac
15323
15324#
15325# Check to make sure the static flag actually works.
15326#
15327wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15328{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15329echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15330if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15331  echo $ECHO_N "(cached) $ECHO_C" >&6
15332else
15333  lt_prog_compiler_static_works_F77=no
15334   save_LDFLAGS="$LDFLAGS"
15335   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15336   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15337   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15338     # The linker can only warn and ignore the option if not recognized
15339     # So say no if there are warnings
15340     if test -s conftest.err; then
15341       # Append any errors to the config.log.
15342       cat conftest.err 1>&5
15343       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15344       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15345       if diff conftest.exp conftest.er2 >/dev/null; then
15346         lt_prog_compiler_static_works_F77=yes
15347       fi
15348     else
15349       lt_prog_compiler_static_works_F77=yes
15350     fi
15351   fi
15352   $rm conftest*
15353   LDFLAGS="$save_LDFLAGS"
15354
15355fi
15356{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15357echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15358
15359if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15360    :
15361else
15362    lt_prog_compiler_static_F77=
15363fi
15364
15365
15366{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15367echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15368if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15369  echo $ECHO_N "(cached) $ECHO_C" >&6
15370else
15371  lt_cv_prog_compiler_c_o_F77=no
15372   $rm -r conftest 2>/dev/null
15373   mkdir conftest
15374   cd conftest
15375   mkdir out
15376   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15377
15378   lt_compiler_flag="-o out/conftest2.$ac_objext"
15379   # Insert the option either (1) after the last *FLAGS variable, or
15380   # (2) before a word containing "conftest.", or (3) at the end.
15381   # Note that $ac_compile itself does not contain backslashes and begins
15382   # with a dollar sign (not a hyphen), so the echo should work correctly.
15383   lt_compile=`echo "$ac_compile" | $SED \
15384   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15385   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15386   -e 's:$: $lt_compiler_flag:'`
15387   (eval echo "\"\$as_me:15387: $lt_compile\"" >&5)
15388   (eval "$lt_compile" 2>out/conftest.err)
15389   ac_status=$?
15390   cat out/conftest.err >&5
15391   echo "$as_me:15391: \$? = $ac_status" >&5
15392   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15393   then
15394     # The compiler can only warn and ignore the option if not recognized
15395     # So say no if there are warnings
15396     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15397     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15398     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15399       lt_cv_prog_compiler_c_o_F77=yes
15400     fi
15401   fi
15402   chmod u+w . 2>&5
15403   $rm conftest*
15404   # SGI C++ compiler will create directory out/ii_files/ for
15405   # template instantiation
15406   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15407   $rm out/* && rmdir out
15408   cd ..
15409   rmdir conftest
15410   $rm conftest*
15411
15412fi
15413{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15414echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15415
15416
15417hard_links="nottested"
15418if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15419  # do not overwrite the value of need_locks provided by the user
15420  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15421echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15422  hard_links=yes
15423  $rm conftest*
15424  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15425  touch conftest.a
15426  ln conftest.a conftest.b 2>&5 || hard_links=no
15427  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15428  { echo "$as_me:$LINENO: result: $hard_links" >&5
15429echo "${ECHO_T}$hard_links" >&6; }
15430  if test "$hard_links" = no; then
15431    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15432echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15433    need_locks=warn
15434  fi
15435else
15436  need_locks=no
15437fi
15438
15439{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15440echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15441
15442  runpath_var=
15443  allow_undefined_flag_F77=
15444  enable_shared_with_static_runtimes_F77=no
15445  archive_cmds_F77=
15446  archive_expsym_cmds_F77=
15447  old_archive_From_new_cmds_F77=
15448  old_archive_from_expsyms_cmds_F77=
15449  export_dynamic_flag_spec_F77=
15450  whole_archive_flag_spec_F77=
15451  thread_safe_flag_spec_F77=
15452  hardcode_libdir_flag_spec_F77=
15453  hardcode_libdir_flag_spec_ld_F77=
15454  hardcode_libdir_separator_F77=
15455  hardcode_direct_F77=no
15456  hardcode_minus_L_F77=no
15457  hardcode_shlibpath_var_F77=unsupported
15458  link_all_deplibs_F77=unknown
15459  hardcode_automatic_F77=no
15460  module_cmds_F77=
15461  module_expsym_cmds_F77=
15462  always_export_symbols_F77=no
15463  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15464  # include_expsyms should be a list of space-separated symbols to be *always*
15465  # included in the symbol list
15466  include_expsyms_F77=
15467  # exclude_expsyms can be an extended regexp of symbols to exclude
15468  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15469  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15470  # as well as any symbol that contains `d'.
15471  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15472  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15473  # platforms (ab)use it in PIC code, but their linkers get confused if
15474  # the symbol is explicitly referenced.  Since portable code cannot
15475  # rely on this symbol name, it's probably fine to never include it in
15476  # preloaded symbol tables.
15477  extract_expsyms_cmds=
15478  # Just being paranoid about ensuring that cc_basename is set.
15479  for cc_temp in $compiler""; do
15480  case $cc_temp in
15481    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15482    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15483    \-*) ;;
15484    *) break;;
15485  esac
15486done
15487cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15488
15489  case $host_os in
15490  cygwin* | mingw* | pw32*)
15491    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15492    # When not using gcc, we currently assume that we are using
15493    # Microsoft Visual C++.
15494    if test "$GCC" != yes; then
15495      with_gnu_ld=no
15496    fi
15497    ;;
15498  interix*)
15499    # we just hope/assume this is gcc and not c89 (= MSVC++)
15500    with_gnu_ld=yes
15501    ;;
15502  openbsd*)
15503    with_gnu_ld=no
15504    ;;
15505  esac
15506
15507  ld_shlibs_F77=yes
15508  if test "$with_gnu_ld" = yes; then
15509    # If archive_cmds runs LD, not CC, wlarc should be empty
15510    wlarc='${wl}'
15511
15512    # Set some defaults for GNU ld with shared library support. These
15513    # are reset later if shared libraries are not supported. Putting them
15514    # here allows them to be overridden if necessary.
15515    runpath_var=LD_RUN_PATH
15516    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15517    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15518    # ancient GNU ld didn't support --whole-archive et. al.
15519    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15520	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15521      else
15522  	whole_archive_flag_spec_F77=
15523    fi
15524    supports_anon_versioning=no
15525    case `$LD -v 2>/dev/null` in
15526      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15527      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15528      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15529      *\ 2.11.*) ;; # other 2.11 versions
15530      *) supports_anon_versioning=yes ;;
15531    esac
15532
15533    # See if GNU ld supports shared libraries.
15534    case $host_os in
15535    aix3* | aix4* | aix5*)
15536      # On AIX/PPC, the GNU linker is very broken
15537      if test "$host_cpu" != ia64; then
15538	ld_shlibs_F77=no
15539	cat <<EOF 1>&2
15540
15541*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15542*** to be unable to reliably create shared libraries on AIX.
15543*** Therefore, libtool is disabling shared libraries support.  If you
15544*** really care for shared libraries, you may want to modify your PATH
15545*** so that a non-GNU linker is found, and then restart.
15546
15547EOF
15548      fi
15549      ;;
15550
15551    amigaos*)
15552      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)'
15553      hardcode_libdir_flag_spec_F77='-L$libdir'
15554      hardcode_minus_L_F77=yes
15555
15556      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15557      # that the semantics of dynamic libraries on AmigaOS, at least up
15558      # to version 4, is to share data among multiple programs linked
15559      # with the same dynamic library.  Since this doesn't match the
15560      # behavior of shared libraries on other platforms, we can't use
15561      # them.
15562      ld_shlibs_F77=no
15563      ;;
15564
15565    beos*)
15566      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15567	allow_undefined_flag_F77=unsupported
15568	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15569	# support --undefined.  This deserves some investigation.  FIXME
15570	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15571      else
15572	ld_shlibs_F77=no
15573      fi
15574      ;;
15575
15576    cygwin* | mingw* | pw32*)
15577      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15578      # as there is no search path for DLLs.
15579      hardcode_libdir_flag_spec_F77='-L$libdir'
15580      allow_undefined_flag_F77=unsupported
15581      always_export_symbols_F77=no
15582      enable_shared_with_static_runtimes_F77=yes
15583      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15584
15585      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15586        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15587	# If the export-symbols file already is a .def file (1st line
15588	# is EXPORTS), use it as is; otherwise, prepend...
15589	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15590	  cp $export_symbols $output_objdir/$soname.def;
15591	else
15592	  echo EXPORTS > $output_objdir/$soname.def;
15593	  cat $export_symbols >> $output_objdir/$soname.def;
15594	fi~
15595	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15596      else
15597	ld_shlibs_F77=no
15598      fi
15599      ;;
15600
15601    interix3*)
15602      hardcode_direct_F77=no
15603      hardcode_shlibpath_var_F77=no
15604      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15605      export_dynamic_flag_spec_F77='${wl}-E'
15606      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15607      # Instead, shared libraries are loaded at an image base (0x10000000 by
15608      # default) and relocated if they conflict, which is a slow very memory
15609      # consuming and fragmenting process.  To avoid this, we pick a random,
15610      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15611      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15612      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'
15613      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'
15614      ;;
15615
15616    linux* | k*bsd*-gnu)
15617      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15618	tmp_addflag=
15619	case $cc_basename,$host_cpu in
15620	pgcc*)				# Portland Group C compiler
15621	  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'
15622	  tmp_addflag=' $pic_flag'
15623	  ;;
15624	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15625	  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'
15626	  tmp_addflag=' $pic_flag -Mnomain' ;;
15627	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15628	  tmp_addflag=' -i_dynamic' ;;
15629	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15630	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15631	ifc* | ifort*)			# Intel Fortran compiler
15632	  tmp_addflag=' -nofor_main' ;;
15633	esac
15634	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15635
15636	if test $supports_anon_versioning = yes; then
15637	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15638  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15639  $echo "local: *; };" >> $output_objdir/$libname.ver~
15640	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15641	fi
15642	link_all_deplibs_F77=no
15643      else
15644	ld_shlibs_F77=no
15645      fi
15646      ;;
15647
15648    netbsd* | netbsdelf*-gnu)
15649      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15650	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15651	wlarc=
15652      else
15653	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15654	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15655      fi
15656      ;;
15657
15658    solaris*)
15659      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15660	ld_shlibs_F77=no
15661	cat <<EOF 1>&2
15662
15663*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15664*** create shared libraries on Solaris systems.  Therefore, libtool
15665*** is disabling shared libraries support.  We urge you to upgrade GNU
15666*** binutils to release 2.9.1 or newer.  Another option is to modify
15667*** your PATH or compiler configuration so that the native linker is
15668*** used, and then restart.
15669
15670EOF
15671      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15672	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15673	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15674      else
15675	ld_shlibs_F77=no
15676      fi
15677      ;;
15678
15679    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15680      case `$LD -v 2>&1` in
15681        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15682	ld_shlibs_F77=no
15683	cat <<_LT_EOF 1>&2
15684
15685*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15686*** reliably create shared libraries on SCO systems.  Therefore, libtool
15687*** is disabling shared libraries support.  We urge you to upgrade GNU
15688*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15689*** your PATH or compiler configuration so that the native linker is
15690*** used, and then restart.
15691
15692_LT_EOF
15693	;;
15694	*)
15695	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15696	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15697	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15698	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15699	  else
15700	    ld_shlibs_F77=no
15701	  fi
15702	;;
15703      esac
15704      ;;
15705
15706    sunos4*)
15707      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15708      wlarc=
15709      hardcode_direct_F77=yes
15710      hardcode_shlibpath_var_F77=no
15711      ;;
15712
15713    *)
15714      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15715	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15716	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15717      else
15718	ld_shlibs_F77=no
15719      fi
15720      ;;
15721    esac
15722
15723    if test "$ld_shlibs_F77" = no; then
15724      runpath_var=
15725      hardcode_libdir_flag_spec_F77=
15726      export_dynamic_flag_spec_F77=
15727      whole_archive_flag_spec_F77=
15728    fi
15729  else
15730    # PORTME fill in a description of your system's linker (not GNU ld)
15731    case $host_os in
15732    aix3*)
15733      allow_undefined_flag_F77=unsupported
15734      always_export_symbols_F77=yes
15735      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'
15736      # Note: this linker hardcodes the directories in LIBPATH if there
15737      # are no directories specified by -L.
15738      hardcode_minus_L_F77=yes
15739      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15740	# Neither direct hardcoding nor static linking is supported with a
15741	# broken collect2.
15742	hardcode_direct_F77=unsupported
15743      fi
15744      ;;
15745
15746    aix4* | aix5*)
15747      if test "$host_cpu" = ia64; then
15748	# On IA64, the linker does run time linking by default, so we don't
15749	# have to do anything special.
15750	aix_use_runtimelinking=no
15751	exp_sym_flag='-Bexport'
15752	no_entry_flag=""
15753      else
15754	# If we're using GNU nm, then we don't want the "-C" option.
15755	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15756	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15757	  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'
15758	else
15759	  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'
15760	fi
15761	aix_use_runtimelinking=no
15762
15763	# Test if we are trying to use run time linking or normal
15764	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15765	# need to do runtime linking.
15766	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15767	  for ld_flag in $LDFLAGS; do
15768  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15769  	    aix_use_runtimelinking=yes
15770  	    break
15771  	  fi
15772	  done
15773	  ;;
15774	esac
15775
15776	exp_sym_flag='-bexport'
15777	no_entry_flag='-bnoentry'
15778      fi
15779
15780      # When large executables or shared objects are built, AIX ld can
15781      # have problems creating the table of contents.  If linking a library
15782      # or program results in "error TOC overflow" add -mminimal-toc to
15783      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15784      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15785
15786      archive_cmds_F77=''
15787      hardcode_direct_F77=yes
15788      hardcode_libdir_separator_F77=':'
15789      link_all_deplibs_F77=yes
15790
15791      if test "$GCC" = yes; then
15792	case $host_os in aix4.[012]|aix4.[012].*)
15793	# We only want to do this on AIX 4.2 and lower, the check
15794	# below for broken collect2 doesn't work under 4.3+
15795	  collect2name=`${CC} -print-prog-name=collect2`
15796	  if test -f "$collect2name" && \
15797  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15798	  then
15799  	  # We have reworked collect2
15800  	  hardcode_direct_F77=yes
15801	  else
15802  	  # We have old collect2
15803  	  hardcode_direct_F77=unsupported
15804  	  # It fails to find uninstalled libraries when the uninstalled
15805  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15806  	  # to unsupported forces relinking
15807  	  hardcode_minus_L_F77=yes
15808  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15809  	  hardcode_libdir_separator_F77=
15810	  fi
15811	  ;;
15812	esac
15813	shared_flag='-shared'
15814	if test "$aix_use_runtimelinking" = yes; then
15815	  shared_flag="$shared_flag "'${wl}-G'
15816	fi
15817      else
15818	# not using gcc
15819	if test "$host_cpu" = ia64; then
15820  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15821  	# chokes on -Wl,-G. The following line is correct:
15822	  shared_flag='-G'
15823	else
15824	  if test "$aix_use_runtimelinking" = yes; then
15825	    shared_flag='${wl}-G'
15826	  else
15827	    shared_flag='${wl}-bM:SRE'
15828	  fi
15829	fi
15830      fi
15831
15832      # It seems that -bexpall does not export symbols beginning with
15833      # underscore (_), so it is better to generate a list of symbols to export.
15834      always_export_symbols_F77=yes
15835      if test "$aix_use_runtimelinking" = yes; then
15836	# Warning - without using the other runtime loading flags (-brtl),
15837	# -berok will link without error, but may produce a broken library.
15838	allow_undefined_flag_F77='-berok'
15839       # Determine the default libpath from the value encoded in an empty executable.
15840       cat >conftest.$ac_ext <<_ACEOF
15841      program main
15842
15843      end
15844_ACEOF
15845rm -f conftest.$ac_objext conftest$ac_exeext
15846if { (ac_try="$ac_link"
15847case "(($ac_try" in
15848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15849  *) ac_try_echo=$ac_try;;
15850esac
15851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15852  (eval "$ac_link") 2>conftest.er1
15853  ac_status=$?
15854  grep -v '^ *+' conftest.er1 >conftest.err
15855  rm -f conftest.er1
15856  cat conftest.err >&5
15857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858  (exit $ac_status); } && {
15859	 test -z "$ac_f77_werror_flag" ||
15860	 test ! -s conftest.err
15861       } && test -s conftest$ac_exeext &&
15862       $as_test_x conftest$ac_exeext; then
15863
15864aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15865}'`
15866# Check for a 64-bit object if we didn't find anything.
15867if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15868}'`; fi
15869else
15870  echo "$as_me: failed program was:" >&5
15871sed 's/^/| /' conftest.$ac_ext >&5
15872
15873
15874fi
15875
15876rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15877      conftest$ac_exeext conftest.$ac_ext
15878if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15879
15880       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15881	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"
15882       else
15883	if test "$host_cpu" = ia64; then
15884	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15885	  allow_undefined_flag_F77="-z nodefs"
15886	  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"
15887	else
15888	 # Determine the default libpath from the value encoded in an empty executable.
15889	 cat >conftest.$ac_ext <<_ACEOF
15890      program main
15891
15892      end
15893_ACEOF
15894rm -f conftest.$ac_objext conftest$ac_exeext
15895if { (ac_try="$ac_link"
15896case "(($ac_try" in
15897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15898  *) ac_try_echo=$ac_try;;
15899esac
15900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15901  (eval "$ac_link") 2>conftest.er1
15902  ac_status=$?
15903  grep -v '^ *+' conftest.er1 >conftest.err
15904  rm -f conftest.er1
15905  cat conftest.err >&5
15906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907  (exit $ac_status); } && {
15908	 test -z "$ac_f77_werror_flag" ||
15909	 test ! -s conftest.err
15910       } && test -s conftest$ac_exeext &&
15911       $as_test_x conftest$ac_exeext; then
15912
15913aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15914}'`
15915# Check for a 64-bit object if we didn't find anything.
15916if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15917}'`; fi
15918else
15919  echo "$as_me: failed program was:" >&5
15920sed 's/^/| /' conftest.$ac_ext >&5
15921
15922
15923fi
15924
15925rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15926      conftest$ac_exeext conftest.$ac_ext
15927if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15928
15929	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15930	  # Warning - without using the other run time loading flags,
15931	  # -berok will link without error, but may produce a broken library.
15932	  no_undefined_flag_F77=' ${wl}-bernotok'
15933	  allow_undefined_flag_F77=' ${wl}-berok'
15934	  # Exported symbols can be pulled into shared objects from archives
15935	  whole_archive_flag_spec_F77='$convenience'
15936	  archive_cmds_need_lc_F77=yes
15937	  # This is similar to how AIX traditionally builds its shared libraries.
15938	  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'
15939	fi
15940      fi
15941      ;;
15942
15943    amigaos*)
15944      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)'
15945      hardcode_libdir_flag_spec_F77='-L$libdir'
15946      hardcode_minus_L_F77=yes
15947      # see comment about different semantics on the GNU ld section
15948      ld_shlibs_F77=no
15949      ;;
15950
15951    bsdi[45]*)
15952      export_dynamic_flag_spec_F77=-rdynamic
15953      ;;
15954
15955    cygwin* | mingw* | pw32*)
15956      # When not using gcc, we currently assume that we are using
15957      # Microsoft Visual C++.
15958      # hardcode_libdir_flag_spec is actually meaningless, as there is
15959      # no search path for DLLs.
15960      hardcode_libdir_flag_spec_F77=' '
15961      allow_undefined_flag_F77=unsupported
15962      # Tell ltmain to make .lib files, not .a files.
15963      libext=lib
15964      # Tell ltmain to make .dll files, not .so files.
15965      shrext_cmds=".dll"
15966      # FIXME: Setting linknames here is a bad hack.
15967      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15968      # The linker will automatically build a .lib file if we build a DLL.
15969      old_archive_From_new_cmds_F77='true'
15970      # FIXME: Should let the user specify the lib program.
15971      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15972      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15973      enable_shared_with_static_runtimes_F77=yes
15974      ;;
15975
15976    darwin* | rhapsody*)
15977      case $host_os in
15978        rhapsody* | darwin1.[012])
15979         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15980         ;;
15981       *) # Darwin 1.3 on
15982         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15983           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15984         else
15985           case ${MACOSX_DEPLOYMENT_TARGET} in
15986             10.[012])
15987               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15988               ;;
15989             10.*)
15990               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15991               ;;
15992           esac
15993         fi
15994         ;;
15995      esac
15996      archive_cmds_need_lc_F77=no
15997      hardcode_direct_F77=no
15998      hardcode_automatic_F77=yes
15999      hardcode_shlibpath_var_F77=unsupported
16000      whole_archive_flag_spec_F77=''
16001      link_all_deplibs_F77=yes
16002    if test "$GCC" = yes ; then
16003    	output_verbose_link_cmd='echo'
16004        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16005      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16006      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16007      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}'
16008      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}'
16009    else
16010      case $cc_basename in
16011        xlc*)
16012         output_verbose_link_cmd='echo'
16013         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16014         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16015          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16016         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16017          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}'
16018          ;;
16019       *)
16020         ld_shlibs_F77=no
16021          ;;
16022      esac
16023    fi
16024      ;;
16025
16026    dgux*)
16027      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16028      hardcode_libdir_flag_spec_F77='-L$libdir'
16029      hardcode_shlibpath_var_F77=no
16030      ;;
16031
16032    freebsd1*)
16033      ld_shlibs_F77=no
16034      ;;
16035
16036    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16037    # support.  Future versions do this automatically, but an explicit c++rt0.o
16038    # does not break anything, and helps significantly (at the cost of a little
16039    # extra space).
16040    freebsd2.2*)
16041      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16042      hardcode_libdir_flag_spec_F77='-R$libdir'
16043      hardcode_direct_F77=yes
16044      hardcode_shlibpath_var_F77=no
16045      ;;
16046
16047    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16048    freebsd2*)
16049      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16050      hardcode_direct_F77=yes
16051      hardcode_minus_L_F77=yes
16052      hardcode_shlibpath_var_F77=no
16053      ;;
16054
16055    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16056    freebsd* | dragonfly*)
16057      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16058      hardcode_libdir_flag_spec_F77='-R$libdir'
16059      hardcode_direct_F77=yes
16060      hardcode_shlibpath_var_F77=no
16061      ;;
16062
16063    hpux9*)
16064      if test "$GCC" = yes; then
16065	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'
16066      else
16067	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'
16068      fi
16069      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16070      hardcode_libdir_separator_F77=:
16071      hardcode_direct_F77=yes
16072
16073      # hardcode_minus_L: Not really in the search PATH,
16074      # but as the default location of the library.
16075      hardcode_minus_L_F77=yes
16076      export_dynamic_flag_spec_F77='${wl}-E'
16077      ;;
16078
16079    hpux10*)
16080      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16081	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16082      else
16083	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16084      fi
16085      if test "$with_gnu_ld" = no; then
16086	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16087	hardcode_libdir_separator_F77=:
16088
16089	hardcode_direct_F77=yes
16090	export_dynamic_flag_spec_F77='${wl}-E'
16091
16092	# hardcode_minus_L: Not really in the search PATH,
16093	# but as the default location of the library.
16094	hardcode_minus_L_F77=yes
16095      fi
16096      ;;
16097
16098    hpux11*)
16099      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16100	case $host_cpu in
16101	hppa*64*)
16102	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16103	  ;;
16104	ia64*)
16105	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16106	  ;;
16107	*)
16108	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16109	  ;;
16110	esac
16111      else
16112	case $host_cpu in
16113	hppa*64*)
16114	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16115	  ;;
16116	ia64*)
16117	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16118	  ;;
16119	*)
16120	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16121	  ;;
16122	esac
16123      fi
16124      if test "$with_gnu_ld" = no; then
16125	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16126	hardcode_libdir_separator_F77=:
16127
16128	case $host_cpu in
16129	hppa*64*|ia64*)
16130	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16131	  hardcode_direct_F77=no
16132	  hardcode_shlibpath_var_F77=no
16133	  ;;
16134	*)
16135	  hardcode_direct_F77=yes
16136	  export_dynamic_flag_spec_F77='${wl}-E'
16137
16138	  # hardcode_minus_L: Not really in the search PATH,
16139	  # but as the default location of the library.
16140	  hardcode_minus_L_F77=yes
16141	  ;;
16142	esac
16143      fi
16144      ;;
16145
16146    irix5* | irix6* | nonstopux*)
16147      if test "$GCC" = yes; then
16148	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'
16149      else
16150	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'
16151	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16152      fi
16153      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16154      hardcode_libdir_separator_F77=:
16155      link_all_deplibs_F77=yes
16156      ;;
16157
16158    netbsd* | netbsdelf*-gnu)
16159      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16160	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16161      else
16162	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16163      fi
16164      hardcode_libdir_flag_spec_F77='-R$libdir'
16165      hardcode_direct_F77=yes
16166      hardcode_shlibpath_var_F77=no
16167      ;;
16168
16169    newsos6)
16170      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16171      hardcode_direct_F77=yes
16172      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16173      hardcode_libdir_separator_F77=:
16174      hardcode_shlibpath_var_F77=no
16175      ;;
16176
16177    openbsd*)
16178      hardcode_direct_F77=yes
16179      hardcode_shlibpath_var_F77=no
16180      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16181	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16182	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16183	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16184	export_dynamic_flag_spec_F77='${wl}-E'
16185      else
16186       case $host_os in
16187	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16188	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16189	   hardcode_libdir_flag_spec_F77='-R$libdir'
16190	   ;;
16191	 *)
16192	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16193	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16194	   ;;
16195       esac
16196      fi
16197      ;;
16198
16199    os2*)
16200      hardcode_libdir_flag_spec_F77='-L$libdir'
16201      hardcode_minus_L_F77=yes
16202      allow_undefined_flag_F77=unsupported
16203      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'
16204      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16205      ;;
16206
16207    osf3*)
16208      if test "$GCC" = yes; then
16209	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16210	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'
16211      else
16212	allow_undefined_flag_F77=' -expect_unresolved \*'
16213	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'
16214      fi
16215      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16216      hardcode_libdir_separator_F77=:
16217      ;;
16218
16219    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16220      if test "$GCC" = yes; then
16221	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16222	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'
16223	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16224      else
16225	allow_undefined_flag_F77=' -expect_unresolved \*'
16226	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'
16227	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~
16228	$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'
16229
16230	# Both c and cxx compiler support -rpath directly
16231	hardcode_libdir_flag_spec_F77='-rpath $libdir'
16232      fi
16233      hardcode_libdir_separator_F77=:
16234      ;;
16235
16236    solaris*)
16237      no_undefined_flag_F77=' -z text'
16238      if test "$GCC" = yes; then
16239	wlarc='${wl}'
16240	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16241	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16242	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16243      else
16244	wlarc=''
16245	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16246	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16247  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16248      fi
16249      hardcode_libdir_flag_spec_F77='-R$libdir'
16250      hardcode_shlibpath_var_F77=no
16251      case $host_os in
16252      solaris2.[0-5] | solaris2.[0-5].*) ;;
16253      *)
16254 	# The compiler driver will combine linker options so we
16255 	# cannot just pass the convience library names through
16256 	# without $wl, iff we do not link with $LD.
16257 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16258 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16259 	case $wlarc in
16260 	'')
16261 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16262 	*)
16263 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16264 	esac ;;
16265      esac
16266      link_all_deplibs_F77=yes
16267      ;;
16268
16269    sunos4*)
16270      if test "x$host_vendor" = xsequent; then
16271	# Use $CC to link under sequent, because it throws in some extra .o
16272	# files that make .init and .fini sections work.
16273	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16274      else
16275	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16276      fi
16277      hardcode_libdir_flag_spec_F77='-L$libdir'
16278      hardcode_direct_F77=yes
16279      hardcode_minus_L_F77=yes
16280      hardcode_shlibpath_var_F77=no
16281      ;;
16282
16283    sysv4)
16284      case $host_vendor in
16285	sni)
16286	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16287	  hardcode_direct_F77=yes # is this really true???
16288	;;
16289	siemens)
16290	  ## LD is ld it makes a PLAMLIB
16291	  ## CC just makes a GrossModule.
16292	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16293	  reload_cmds_F77='$CC -r -o $output$reload_objs'
16294	  hardcode_direct_F77=no
16295        ;;
16296	motorola)
16297	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16298	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16299	;;
16300      esac
16301      runpath_var='LD_RUN_PATH'
16302      hardcode_shlibpath_var_F77=no
16303      ;;
16304
16305    sysv4.3*)
16306      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16307      hardcode_shlibpath_var_F77=no
16308      export_dynamic_flag_spec_F77='-Bexport'
16309      ;;
16310
16311    sysv4*MP*)
16312      if test -d /usr/nec; then
16313	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16314	hardcode_shlibpath_var_F77=no
16315	runpath_var=LD_RUN_PATH
16316	hardcode_runpath_var=yes
16317	ld_shlibs_F77=yes
16318      fi
16319      ;;
16320
16321    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16322      no_undefined_flag_F77='${wl}-z,text'
16323      archive_cmds_need_lc_F77=no
16324      hardcode_shlibpath_var_F77=no
16325      runpath_var='LD_RUN_PATH'
16326
16327      if test "$GCC" = yes; then
16328	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16329	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16330      else
16331	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16332	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16333      fi
16334      ;;
16335
16336    sysv5* | sco3.2v5* | sco5v6*)
16337      # Note: We can NOT use -z defs as we might desire, because we do not
16338      # link with -lc, and that would cause any symbols used from libc to
16339      # always be unresolved, which means just about no library would
16340      # ever link correctly.  If we're not using GNU ld we use -z text
16341      # though, which does catch some bad symbols but isn't as heavy-handed
16342      # as -z defs.
16343      no_undefined_flag_F77='${wl}-z,text'
16344      allow_undefined_flag_F77='${wl}-z,nodefs'
16345      archive_cmds_need_lc_F77=no
16346      hardcode_shlibpath_var_F77=no
16347      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16348      hardcode_libdir_separator_F77=':'
16349      link_all_deplibs_F77=yes
16350      export_dynamic_flag_spec_F77='${wl}-Bexport'
16351      runpath_var='LD_RUN_PATH'
16352
16353      if test "$GCC" = yes; then
16354	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16355	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16356      else
16357	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16358	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16359      fi
16360      ;;
16361
16362    uts4*)
16363      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16364      hardcode_libdir_flag_spec_F77='-L$libdir'
16365      hardcode_shlibpath_var_F77=no
16366      ;;
16367
16368    *)
16369      ld_shlibs_F77=no
16370      ;;
16371    esac
16372  fi
16373
16374{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16375echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16376test "$ld_shlibs_F77" = no && can_build_shared=no
16377
16378#
16379# Do we need to explicitly link libc?
16380#
16381case "x$archive_cmds_need_lc_F77" in
16382x|xyes)
16383  # Assume -lc should be added
16384  archive_cmds_need_lc_F77=yes
16385
16386  if test "$enable_shared" = yes && test "$GCC" = yes; then
16387    case $archive_cmds_F77 in
16388    *'~'*)
16389      # FIXME: we may have to deal with multi-command sequences.
16390      ;;
16391    '$CC '*)
16392      # Test whether the compiler implicitly links with -lc since on some
16393      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16394      # to ld, don't add -lc before -lgcc.
16395      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16396echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16397      $rm conftest*
16398      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16399
16400      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16401  (eval $ac_compile) 2>&5
16402  ac_status=$?
16403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404  (exit $ac_status); } 2>conftest.err; then
16405        soname=conftest
16406        lib=conftest
16407        libobjs=conftest.$ac_objext
16408        deplibs=
16409        wl=$lt_prog_compiler_wl_F77
16410	pic_flag=$lt_prog_compiler_pic_F77
16411        compiler_flags=-v
16412        linker_flags=-v
16413        verstring=
16414        output_objdir=.
16415        libname=conftest
16416        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16417        allow_undefined_flag_F77=
16418        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16419  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16420  ac_status=$?
16421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422  (exit $ac_status); }
16423        then
16424	  archive_cmds_need_lc_F77=no
16425        else
16426	  archive_cmds_need_lc_F77=yes
16427        fi
16428        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16429      else
16430        cat conftest.err 1>&5
16431      fi
16432      $rm conftest*
16433      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16434echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16435      ;;
16436    esac
16437  fi
16438  ;;
16439esac
16440
16441{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16442echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16443library_names_spec=
16444libname_spec='lib$name'
16445soname_spec=
16446shrext_cmds=".so"
16447postinstall_cmds=
16448postuninstall_cmds=
16449finish_cmds=
16450finish_eval=
16451shlibpath_var=
16452shlibpath_overrides_runpath=unknown
16453version_type=none
16454dynamic_linker="$host_os ld.so"
16455sys_lib_dlsearch_path_spec="/lib /usr/lib"
16456if test "$GCC" = yes; then
16457  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16458  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16459    # if the path contains ";" then we assume it to be the separator
16460    # otherwise default to the standard path separator (i.e. ":") - it is
16461    # assumed that no part of a normal pathname contains ";" but that should
16462    # okay in the real world where ";" in dirpaths is itself problematic.
16463    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16464  else
16465    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16466  fi
16467else
16468  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16469fi
16470need_lib_prefix=unknown
16471hardcode_into_libs=no
16472
16473# when you set need_version to no, make sure it does not cause -set_version
16474# flags to be left without arguments
16475need_version=unknown
16476
16477case $host_os in
16478aix3*)
16479  version_type=linux
16480  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16481  shlibpath_var=LIBPATH
16482
16483  # AIX 3 has no versioning support, so we append a major version to the name.
16484  soname_spec='${libname}${release}${shared_ext}$major'
16485  ;;
16486
16487aix4* | aix5*)
16488  version_type=linux
16489  need_lib_prefix=no
16490  need_version=no
16491  hardcode_into_libs=yes
16492  if test "$host_cpu" = ia64; then
16493    # AIX 5 supports IA64
16494    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16495    shlibpath_var=LD_LIBRARY_PATH
16496  else
16497    # With GCC up to 2.95.x, collect2 would create an import file
16498    # for dependence libraries.  The import file would start with
16499    # the line `#! .'.  This would cause the generated library to
16500    # depend on `.', always an invalid library.  This was fixed in
16501    # development snapshots of GCC prior to 3.0.
16502    case $host_os in
16503      aix4 | aix4.[01] | aix4.[01].*)
16504      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16505	   echo ' yes '
16506	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16507	:
16508      else
16509	can_build_shared=no
16510      fi
16511      ;;
16512    esac
16513    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16514    # soname into executable. Probably we can add versioning support to
16515    # collect2, so additional links can be useful in future.
16516    if test "$aix_use_runtimelinking" = yes; then
16517      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16518      # instead of lib<name>.a to let people know that these are not
16519      # typical AIX shared libraries.
16520      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16521    else
16522      # We preserve .a as extension for shared libraries through AIX4.2
16523      # and later when we are not doing run time linking.
16524      library_names_spec='${libname}${release}.a $libname.a'
16525      soname_spec='${libname}${release}${shared_ext}$major'
16526    fi
16527    shlibpath_var=LIBPATH
16528  fi
16529  ;;
16530
16531amigaos*)
16532  library_names_spec='$libname.ixlibrary $libname.a'
16533  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16534  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'
16535  ;;
16536
16537beos*)
16538  library_names_spec='${libname}${shared_ext}'
16539  dynamic_linker="$host_os ld.so"
16540  shlibpath_var=LIBRARY_PATH
16541  ;;
16542
16543bsdi[45]*)
16544  version_type=linux
16545  need_version=no
16546  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16547  soname_spec='${libname}${release}${shared_ext}$major'
16548  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16549  shlibpath_var=LD_LIBRARY_PATH
16550  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16551  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16552  # the default ld.so.conf also contains /usr/contrib/lib and
16553  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16554  # libtool to hard-code these into programs
16555  ;;
16556
16557cygwin* | mingw* | pw32*)
16558  version_type=windows
16559  shrext_cmds=".dll"
16560  need_version=no
16561  need_lib_prefix=no
16562
16563  case $GCC,$host_os in
16564  yes,cygwin* | yes,mingw* | yes,pw32*)
16565    library_names_spec='$libname.dll.a'
16566    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16567    postinstall_cmds='base_file=`basename \${file}`~
16568      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16569      dldir=$destdir/`dirname \$dlpath`~
16570      test -d \$dldir || mkdir -p \$dldir~
16571      $install_prog $dir/$dlname \$dldir/$dlname~
16572      chmod a+x \$dldir/$dlname'
16573    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16574      dlpath=$dir/\$dldll~
16575       $rm \$dlpath'
16576    shlibpath_overrides_runpath=yes
16577
16578    case $host_os in
16579    cygwin*)
16580      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16581      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16582      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16583      ;;
16584    mingw*)
16585      # MinGW DLLs use traditional 'lib' prefix
16586      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16587      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16588      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16589        # It is most probably a Windows format PATH printed by
16590        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16591        # path with ; separators, and with drive letters. We can handle the
16592        # drive letters (cygwin fileutils understands them), so leave them,
16593        # especially as we might pass files found there to a mingw objdump,
16594        # which wouldn't understand a cygwinified path. Ahh.
16595        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16596      else
16597        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16598      fi
16599      ;;
16600    pw32*)
16601      # pw32 DLLs use 'pw' prefix rather than 'lib'
16602      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16603      ;;
16604    esac
16605    ;;
16606
16607  *)
16608    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16609    ;;
16610  esac
16611  dynamic_linker='Win32 ld.exe'
16612  # FIXME: first we should search . and the directory the executable is in
16613  shlibpath_var=PATH
16614  ;;
16615
16616darwin* | rhapsody*)
16617  dynamic_linker="$host_os dyld"
16618  version_type=darwin
16619  need_lib_prefix=no
16620  need_version=no
16621  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16622  soname_spec='${libname}${release}${major}$shared_ext'
16623  shlibpath_overrides_runpath=yes
16624  shlibpath_var=DYLD_LIBRARY_PATH
16625  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16626  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16627  if test "$GCC" = yes; then
16628    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16629  else
16630    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16631  fi
16632  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16633  ;;
16634
16635dgux*)
16636  version_type=linux
16637  need_lib_prefix=no
16638  need_version=no
16639  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16640  soname_spec='${libname}${release}${shared_ext}$major'
16641  shlibpath_var=LD_LIBRARY_PATH
16642  ;;
16643
16644freebsd1*)
16645  dynamic_linker=no
16646  ;;
16647
16648freebsd* | dragonfly*)
16649  # DragonFly does not have aout.  When/if they implement a new
16650  # versioning mechanism, adjust this.
16651  if test -x /usr/bin/objformat; then
16652    objformat=`/usr/bin/objformat`
16653  else
16654    case $host_os in
16655    freebsd[123]*) objformat=aout ;;
16656    *) objformat=elf ;;
16657    esac
16658  fi
16659  version_type=freebsd-$objformat
16660  case $version_type in
16661    freebsd-elf*)
16662      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16663      need_version=no
16664      need_lib_prefix=no
16665      ;;
16666    freebsd-*)
16667      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16668      need_version=yes
16669      ;;
16670  esac
16671  shlibpath_var=LD_LIBRARY_PATH
16672  case $host_os in
16673  freebsd2*)
16674    shlibpath_overrides_runpath=yes
16675    ;;
16676  freebsd3.[01]* | freebsdelf3.[01]*)
16677    shlibpath_overrides_runpath=yes
16678    hardcode_into_libs=yes
16679    ;;
16680  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16681  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16682    shlibpath_overrides_runpath=no
16683    hardcode_into_libs=yes
16684    ;;
16685  freebsd*) # from 4.6 on
16686    shlibpath_overrides_runpath=yes
16687    hardcode_into_libs=yes
16688    ;;
16689  esac
16690  ;;
16691
16692gnu*)
16693  version_type=linux
16694  need_lib_prefix=no
16695  need_version=no
16696  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16697  soname_spec='${libname}${release}${shared_ext}$major'
16698  shlibpath_var=LD_LIBRARY_PATH
16699  hardcode_into_libs=yes
16700  ;;
16701
16702hpux9* | hpux10* | hpux11*)
16703  # Give a soname corresponding to the major version so that dld.sl refuses to
16704  # link against other versions.
16705  version_type=sunos
16706  need_lib_prefix=no
16707  need_version=no
16708  case $host_cpu in
16709  ia64*)
16710    shrext_cmds='.so'
16711    hardcode_into_libs=yes
16712    dynamic_linker="$host_os dld.so"
16713    shlibpath_var=LD_LIBRARY_PATH
16714    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16715    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16716    soname_spec='${libname}${release}${shared_ext}$major'
16717    if test "X$HPUX_IA64_MODE" = X32; then
16718      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16719    else
16720      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16721    fi
16722    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16723    ;;
16724   hppa*64*)
16725     shrext_cmds='.sl'
16726     hardcode_into_libs=yes
16727     dynamic_linker="$host_os dld.sl"
16728     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16729     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16730     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16731     soname_spec='${libname}${release}${shared_ext}$major'
16732     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16733     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16734     ;;
16735   *)
16736    shrext_cmds='.sl'
16737    dynamic_linker="$host_os dld.sl"
16738    shlibpath_var=SHLIB_PATH
16739    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16740    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16741    soname_spec='${libname}${release}${shared_ext}$major'
16742    ;;
16743  esac
16744  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16745  postinstall_cmds='chmod 555 $lib'
16746  ;;
16747
16748interix3*)
16749  version_type=linux
16750  need_lib_prefix=no
16751  need_version=no
16752  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16753  soname_spec='${libname}${release}${shared_ext}$major'
16754  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16755  shlibpath_var=LD_LIBRARY_PATH
16756  shlibpath_overrides_runpath=no
16757  hardcode_into_libs=yes
16758  ;;
16759
16760irix5* | irix6* | nonstopux*)
16761  case $host_os in
16762    nonstopux*) version_type=nonstopux ;;
16763    *)
16764	if test "$lt_cv_prog_gnu_ld" = yes; then
16765		version_type=linux
16766	else
16767		version_type=irix
16768	fi ;;
16769  esac
16770  need_lib_prefix=no
16771  need_version=no
16772  soname_spec='${libname}${release}${shared_ext}$major'
16773  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16774  case $host_os in
16775  irix5* | nonstopux*)
16776    libsuff= shlibsuff=
16777    ;;
16778  *)
16779    case $LD in # libtool.m4 will add one of these switches to LD
16780    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16781      libsuff= shlibsuff= libmagic=32-bit;;
16782    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16783      libsuff=32 shlibsuff=N32 libmagic=N32;;
16784    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16785      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16786    *) libsuff= shlibsuff= libmagic=never-match;;
16787    esac
16788    ;;
16789  esac
16790  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16791  shlibpath_overrides_runpath=no
16792  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16793  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16794  hardcode_into_libs=yes
16795  ;;
16796
16797# No shared lib support for Linux oldld, aout, or coff.
16798linux*oldld* | linux*aout* | linux*coff*)
16799  dynamic_linker=no
16800  ;;
16801
16802# This must be Linux ELF.
16803linux* | k*bsd*-gnu)
16804  version_type=linux
16805  need_lib_prefix=no
16806  need_version=no
16807  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16808  soname_spec='${libname}${release}${shared_ext}$major'
16809  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16810  shlibpath_var=LD_LIBRARY_PATH
16811  shlibpath_overrides_runpath=no
16812  # This implies no fast_install, which is unacceptable.
16813  # Some rework will be needed to allow for fast_install
16814  # before this can be enabled.
16815  hardcode_into_libs=yes
16816
16817  # Append ld.so.conf contents to the search path
16818  if test -f /etc/ld.so.conf; then
16819    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16820    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16821  fi
16822
16823  # We used to test for /lib/ld.so.1 and disable shared libraries on
16824  # powerpc, because MkLinux only supported shared libraries with the
16825  # GNU dynamic linker.  Since this was broken with cross compilers,
16826  # most powerpc-linux boxes support dynamic linking these days and
16827  # people can always --disable-shared, the test was removed, and we
16828  # assume the GNU/Linux dynamic linker is in use.
16829  dynamic_linker='GNU/Linux ld.so'
16830  ;;
16831
16832netbsdelf*-gnu)
16833  version_type=linux
16834  need_lib_prefix=no
16835  need_version=no
16836  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16837  soname_spec='${libname}${release}${shared_ext}$major'
16838  shlibpath_var=LD_LIBRARY_PATH
16839  shlibpath_overrides_runpath=no
16840  hardcode_into_libs=yes
16841  dynamic_linker='NetBSD ld.elf_so'
16842  ;;
16843
16844netbsd*)
16845  version_type=sunos
16846  need_lib_prefix=no
16847  need_version=no
16848  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16849    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16850    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16851    dynamic_linker='NetBSD (a.out) ld.so'
16852  else
16853    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16854    soname_spec='${libname}${release}${shared_ext}$major'
16855    dynamic_linker='NetBSD ld.elf_so'
16856  fi
16857  shlibpath_var=LD_LIBRARY_PATH
16858  shlibpath_overrides_runpath=yes
16859  hardcode_into_libs=yes
16860  ;;
16861
16862newsos6)
16863  version_type=linux
16864  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16865  shlibpath_var=LD_LIBRARY_PATH
16866  shlibpath_overrides_runpath=yes
16867  ;;
16868
16869nto-qnx*)
16870  version_type=linux
16871  need_lib_prefix=no
16872  need_version=no
16873  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16874  soname_spec='${libname}${release}${shared_ext}$major'
16875  shlibpath_var=LD_LIBRARY_PATH
16876  shlibpath_overrides_runpath=yes
16877  ;;
16878
16879openbsd*)
16880  version_type=sunos
16881  sys_lib_dlsearch_path_spec="/usr/lib"
16882  need_lib_prefix=no
16883  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16884  case $host_os in
16885    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16886    *)                         need_version=no  ;;
16887  esac
16888  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16889  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16890  shlibpath_var=LD_LIBRARY_PATH
16891  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16892    case $host_os in
16893      openbsd2.[89] | openbsd2.[89].*)
16894	shlibpath_overrides_runpath=no
16895	;;
16896      *)
16897	shlibpath_overrides_runpath=yes
16898	;;
16899      esac
16900  else
16901    shlibpath_overrides_runpath=yes
16902  fi
16903  ;;
16904
16905os2*)
16906  libname_spec='$name'
16907  shrext_cmds=".dll"
16908  need_lib_prefix=no
16909  library_names_spec='$libname${shared_ext} $libname.a'
16910  dynamic_linker='OS/2 ld.exe'
16911  shlibpath_var=LIBPATH
16912  ;;
16913
16914osf3* | osf4* | osf5*)
16915  version_type=osf
16916  need_lib_prefix=no
16917  need_version=no
16918  soname_spec='${libname}${release}${shared_ext}$major'
16919  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16920  shlibpath_var=LD_LIBRARY_PATH
16921  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16922  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16923  ;;
16924
16925solaris*)
16926  version_type=linux
16927  need_lib_prefix=no
16928  need_version=no
16929  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16930  soname_spec='${libname}${release}${shared_ext}$major'
16931  shlibpath_var=LD_LIBRARY_PATH
16932  shlibpath_overrides_runpath=yes
16933  hardcode_into_libs=yes
16934  # ldd complains unless libraries are executable
16935  postinstall_cmds='chmod +x $lib'
16936  ;;
16937
16938sunos4*)
16939  version_type=sunos
16940  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16941  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16942  shlibpath_var=LD_LIBRARY_PATH
16943  shlibpath_overrides_runpath=yes
16944  if test "$with_gnu_ld" = yes; then
16945    need_lib_prefix=no
16946  fi
16947  need_version=yes
16948  ;;
16949
16950sysv4 | sysv4.3*)
16951  version_type=linux
16952  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16953  soname_spec='${libname}${release}${shared_ext}$major'
16954  shlibpath_var=LD_LIBRARY_PATH
16955  case $host_vendor in
16956    sni)
16957      shlibpath_overrides_runpath=no
16958      need_lib_prefix=no
16959      export_dynamic_flag_spec='${wl}-Blargedynsym'
16960      runpath_var=LD_RUN_PATH
16961      ;;
16962    siemens)
16963      need_lib_prefix=no
16964      ;;
16965    motorola)
16966      need_lib_prefix=no
16967      need_version=no
16968      shlibpath_overrides_runpath=no
16969      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16970      ;;
16971  esac
16972  ;;
16973
16974sysv4*MP*)
16975  if test -d /usr/nec ;then
16976    version_type=linux
16977    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16978    soname_spec='$libname${shared_ext}.$major'
16979    shlibpath_var=LD_LIBRARY_PATH
16980  fi
16981  ;;
16982
16983sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16984  version_type=freebsd-elf
16985  need_lib_prefix=no
16986  need_version=no
16987  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16988  soname_spec='${libname}${release}${shared_ext}$major'
16989  shlibpath_var=LD_LIBRARY_PATH
16990  hardcode_into_libs=yes
16991  if test "$with_gnu_ld" = yes; then
16992    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16993    shlibpath_overrides_runpath=no
16994  else
16995    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16996    shlibpath_overrides_runpath=yes
16997    case $host_os in
16998      sco3.2v5*)
16999        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17000	;;
17001    esac
17002  fi
17003  sys_lib_dlsearch_path_spec='/usr/lib'
17004  ;;
17005
17006uts4*)
17007  version_type=linux
17008  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17009  soname_spec='${libname}${release}${shared_ext}$major'
17010  shlibpath_var=LD_LIBRARY_PATH
17011  ;;
17012
17013*)
17014  dynamic_linker=no
17015  ;;
17016esac
17017{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17018echo "${ECHO_T}$dynamic_linker" >&6; }
17019test "$dynamic_linker" = no && can_build_shared=no
17020
17021variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17022if test "$GCC" = yes; then
17023  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17024fi
17025
17026{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17027echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17028hardcode_action_F77=
17029if test -n "$hardcode_libdir_flag_spec_F77" || \
17030   test -n "$runpath_var_F77" || \
17031   test "X$hardcode_automatic_F77" = "Xyes" ; then
17032
17033  # We can hardcode non-existant directories.
17034  if test "$hardcode_direct_F77" != no &&
17035     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17036     # have to relink, otherwise we might link with an installed library
17037     # when we should be linking with a yet-to-be-installed one
17038     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17039     test "$hardcode_minus_L_F77" != no; then
17040    # Linking always hardcodes the temporary library directory.
17041    hardcode_action_F77=relink
17042  else
17043    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17044    hardcode_action_F77=immediate
17045  fi
17046else
17047  # We cannot hardcode anything, or else we can only hardcode existing
17048  # directories.
17049  hardcode_action_F77=unsupported
17050fi
17051{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17052echo "${ECHO_T}$hardcode_action_F77" >&6; }
17053
17054if test "$hardcode_action_F77" = relink; then
17055  # Fast installation is not supported
17056  enable_fast_install=no
17057elif test "$shlibpath_overrides_runpath" = yes ||
17058     test "$enable_shared" = no; then
17059  # Fast installation is not necessary
17060  enable_fast_install=needless
17061fi
17062
17063
17064# The else clause should only fire when bootstrapping the
17065# libtool distribution, otherwise you forgot to ship ltmain.sh
17066# with your package, and you will get complaints that there are
17067# no rules to generate ltmain.sh.
17068if test -f "$ltmain"; then
17069  # See if we are running on zsh, and set the options which allow our commands through
17070  # without removal of \ escapes.
17071  if test -n "${ZSH_VERSION+set}" ; then
17072    setopt NO_GLOB_SUBST
17073  fi
17074  # Now quote all the things that may contain metacharacters while being
17075  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17076  # variables and quote the copies for generation of the libtool script.
17077  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17078    SED SHELL STRIP \
17079    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17080    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17081    deplibs_check_method reload_flag reload_cmds need_locks \
17082    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17083    lt_cv_sys_global_symbol_to_c_name_address \
17084    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17085    old_postinstall_cmds old_postuninstall_cmds \
17086    compiler_F77 \
17087    CC_F77 \
17088    LD_F77 \
17089    lt_prog_compiler_wl_F77 \
17090    lt_prog_compiler_pic_F77 \
17091    lt_prog_compiler_static_F77 \
17092    lt_prog_compiler_no_builtin_flag_F77 \
17093    export_dynamic_flag_spec_F77 \
17094    thread_safe_flag_spec_F77 \
17095    whole_archive_flag_spec_F77 \
17096    enable_shared_with_static_runtimes_F77 \
17097    old_archive_cmds_F77 \
17098    old_archive_from_new_cmds_F77 \
17099    predep_objects_F77 \
17100    postdep_objects_F77 \
17101    predeps_F77 \
17102    postdeps_F77 \
17103    compiler_lib_search_path_F77 \
17104    archive_cmds_F77 \
17105    archive_expsym_cmds_F77 \
17106    postinstall_cmds_F77 \
17107    postuninstall_cmds_F77 \
17108    old_archive_from_expsyms_cmds_F77 \
17109    allow_undefined_flag_F77 \
17110    no_undefined_flag_F77 \
17111    export_symbols_cmds_F77 \
17112    hardcode_libdir_flag_spec_F77 \
17113    hardcode_libdir_flag_spec_ld_F77 \
17114    hardcode_libdir_separator_F77 \
17115    hardcode_automatic_F77 \
17116    module_cmds_F77 \
17117    module_expsym_cmds_F77 \
17118    lt_cv_prog_compiler_c_o_F77 \
17119    exclude_expsyms_F77 \
17120    include_expsyms_F77; do
17121
17122    case $var in
17123    old_archive_cmds_F77 | \
17124    old_archive_from_new_cmds_F77 | \
17125    archive_cmds_F77 | \
17126    archive_expsym_cmds_F77 | \
17127    module_cmds_F77 | \
17128    module_expsym_cmds_F77 | \
17129    old_archive_from_expsyms_cmds_F77 | \
17130    export_symbols_cmds_F77 | \
17131    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17132    postinstall_cmds | postuninstall_cmds | \
17133    old_postinstall_cmds | old_postuninstall_cmds | \
17134    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17135      # Double-quote double-evaled strings.
17136      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17137      ;;
17138    *)
17139      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17140      ;;
17141    esac
17142  done
17143
17144  case $lt_echo in
17145  *'\$0 --fallback-echo"')
17146    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17147    ;;
17148  esac
17149
17150cfgfile="$ofile"
17151
17152  cat <<__EOF__ >> "$cfgfile"
17153# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17154
17155# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17156
17157# Shell to use when invoking shell scripts.
17158SHELL=$lt_SHELL
17159
17160# Whether or not to build shared libraries.
17161build_libtool_libs=$enable_shared
17162
17163# Whether or not to build static libraries.
17164build_old_libs=$enable_static
17165
17166# Whether or not to add -lc for building shared libraries.
17167build_libtool_need_lc=$archive_cmds_need_lc_F77
17168
17169# Whether or not to disallow shared libs when runtime libs are static
17170allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17171
17172# Whether or not to optimize for fast installation.
17173fast_install=$enable_fast_install
17174
17175# The host system.
17176host_alias=$host_alias
17177host=$host
17178host_os=$host_os
17179
17180# The build system.
17181build_alias=$build_alias
17182build=$build
17183build_os=$build_os
17184
17185# An echo program that does not interpret backslashes.
17186echo=$lt_echo
17187
17188# The archiver.
17189AR=$lt_AR
17190AR_FLAGS=$lt_AR_FLAGS
17191
17192# A C compiler.
17193LTCC=$lt_LTCC
17194
17195# LTCC compiler flags.
17196LTCFLAGS=$lt_LTCFLAGS
17197
17198# A language-specific compiler.
17199CC=$lt_compiler_F77
17200
17201# Is the compiler the GNU C compiler?
17202with_gcc=$GCC_F77
17203
17204# An ERE matcher.
17205EGREP=$lt_EGREP
17206
17207# The linker used to build libraries.
17208LD=$lt_LD_F77
17209
17210# Whether we need hard or soft links.
17211LN_S=$lt_LN_S
17212
17213# A BSD-compatible nm program.
17214NM=$lt_NM
17215
17216# A symbol stripping program
17217STRIP=$lt_STRIP
17218
17219# Used to examine libraries when file_magic_cmd begins "file"
17220MAGIC_CMD=$MAGIC_CMD
17221
17222# Used on cygwin: DLL creation program.
17223DLLTOOL="$DLLTOOL"
17224
17225# Used on cygwin: object dumper.
17226OBJDUMP="$OBJDUMP"
17227
17228# Used on cygwin: assembler.
17229AS="$AS"
17230
17231# The name of the directory that contains temporary libtool files.
17232objdir=$objdir
17233
17234# How to create reloadable object files.
17235reload_flag=$lt_reload_flag
17236reload_cmds=$lt_reload_cmds
17237
17238# How to pass a linker flag through the compiler.
17239wl=$lt_lt_prog_compiler_wl_F77
17240
17241# Object file suffix (normally "o").
17242objext="$ac_objext"
17243
17244# Old archive suffix (normally "a").
17245libext="$libext"
17246
17247# Shared library suffix (normally ".so").
17248shrext_cmds='$shrext_cmds'
17249
17250# Executable file suffix (normally "").
17251exeext="$exeext"
17252
17253# Additional compiler flags for building library objects.
17254pic_flag=$lt_lt_prog_compiler_pic_F77
17255pic_mode=$pic_mode
17256
17257# What is the maximum length of a command?
17258max_cmd_len=$lt_cv_sys_max_cmd_len
17259
17260# Does compiler simultaneously support -c and -o options?
17261compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17262
17263# Must we lock files when doing compilation?
17264need_locks=$lt_need_locks
17265
17266# Do we need the lib prefix for modules?
17267need_lib_prefix=$need_lib_prefix
17268
17269# Do we need a version for libraries?
17270need_version=$need_version
17271
17272# Whether dlopen is supported.
17273dlopen_support=$enable_dlopen
17274
17275# Whether dlopen of programs is supported.
17276dlopen_self=$enable_dlopen_self
17277
17278# Whether dlopen of statically linked programs is supported.
17279dlopen_self_static=$enable_dlopen_self_static
17280
17281# Compiler flag to prevent dynamic linking.
17282link_static_flag=$lt_lt_prog_compiler_static_F77
17283
17284# Compiler flag to turn off builtin functions.
17285no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17286
17287# Compiler flag to allow reflexive dlopens.
17288export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17289
17290# Compiler flag to generate shared objects directly from archives.
17291whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17292
17293# Compiler flag to generate thread-safe objects.
17294thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17295
17296# Library versioning type.
17297version_type=$version_type
17298
17299# Format of library name prefix.
17300libname_spec=$lt_libname_spec
17301
17302# List of archive names.  First name is the real one, the rest are links.
17303# The last name is the one that the linker finds with -lNAME.
17304library_names_spec=$lt_library_names_spec
17305
17306# The coded name of the library, if different from the real name.
17307soname_spec=$lt_soname_spec
17308
17309# Commands used to build and install an old-style archive.
17310RANLIB=$lt_RANLIB
17311old_archive_cmds=$lt_old_archive_cmds_F77
17312old_postinstall_cmds=$lt_old_postinstall_cmds
17313old_postuninstall_cmds=$lt_old_postuninstall_cmds
17314
17315# Create an old-style archive from a shared archive.
17316old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17317
17318# Create a temporary old-style archive to link instead of a shared archive.
17319old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17320
17321# Commands used to build and install a shared archive.
17322archive_cmds=$lt_archive_cmds_F77
17323archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17324postinstall_cmds=$lt_postinstall_cmds
17325postuninstall_cmds=$lt_postuninstall_cmds
17326
17327# Commands used to build a loadable module (assumed same as above if empty)
17328module_cmds=$lt_module_cmds_F77
17329module_expsym_cmds=$lt_module_expsym_cmds_F77
17330
17331# Commands to strip libraries.
17332old_striplib=$lt_old_striplib
17333striplib=$lt_striplib
17334
17335# Dependencies to place before the objects being linked to create a
17336# shared library.
17337predep_objects=$lt_predep_objects_F77
17338
17339# Dependencies to place after the objects being linked to create a
17340# shared library.
17341postdep_objects=$lt_postdep_objects_F77
17342
17343# Dependencies to place before the objects being linked to create a
17344# shared library.
17345predeps=$lt_predeps_F77
17346
17347# Dependencies to place after the objects being linked to create a
17348# shared library.
17349postdeps=$lt_postdeps_F77
17350
17351# The library search path used internally by the compiler when linking
17352# a shared library.
17353compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17354
17355# Method to check whether dependent libraries are shared objects.
17356deplibs_check_method=$lt_deplibs_check_method
17357
17358# Command to use when deplibs_check_method == file_magic.
17359file_magic_cmd=$lt_file_magic_cmd
17360
17361# Flag that allows shared libraries with undefined symbols to be built.
17362allow_undefined_flag=$lt_allow_undefined_flag_F77
17363
17364# Flag that forces no undefined symbols.
17365no_undefined_flag=$lt_no_undefined_flag_F77
17366
17367# Commands used to finish a libtool library installation in a directory.
17368finish_cmds=$lt_finish_cmds
17369
17370# Same as above, but a single script fragment to be evaled but not shown.
17371finish_eval=$lt_finish_eval
17372
17373# Take the output of nm and produce a listing of raw symbols and C names.
17374global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17375
17376# Transform the output of nm in a proper C declaration
17377global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17378
17379# Transform the output of nm in a C name address pair
17380global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17381
17382# This is the shared library runtime path variable.
17383runpath_var=$runpath_var
17384
17385# This is the shared library path variable.
17386shlibpath_var=$shlibpath_var
17387
17388# Is shlibpath searched before the hard-coded library search path?
17389shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17390
17391# How to hardcode a shared library path into an executable.
17392hardcode_action=$hardcode_action_F77
17393
17394# Whether we should hardcode library paths into libraries.
17395hardcode_into_libs=$hardcode_into_libs
17396
17397# Flag to hardcode \$libdir into a binary during linking.
17398# This must work even if \$libdir does not exist.
17399hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17400
17401# If ld is used when linking, flag to hardcode \$libdir into
17402# a binary during linking. This must work even if \$libdir does
17403# not exist.
17404hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17405
17406# Whether we need a single -rpath flag with a separated argument.
17407hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17408
17409# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17410# resulting binary.
17411hardcode_direct=$hardcode_direct_F77
17412
17413# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17414# resulting binary.
17415hardcode_minus_L=$hardcode_minus_L_F77
17416
17417# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17418# the resulting binary.
17419hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17420
17421# Set to yes if building a shared library automatically hardcodes DIR into the library
17422# and all subsequent libraries and executables linked against it.
17423hardcode_automatic=$hardcode_automatic_F77
17424
17425# Variables whose values should be saved in libtool wrapper scripts and
17426# restored at relink time.
17427variables_saved_for_relink="$variables_saved_for_relink"
17428
17429# Whether libtool must link a program against all its dependency libraries.
17430link_all_deplibs=$link_all_deplibs_F77
17431
17432# Compile-time system search path for libraries
17433sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17434
17435# Run-time system search path for libraries
17436sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17437
17438# Fix the shell variable \$srcfile for the compiler.
17439fix_srcfile_path="$fix_srcfile_path_F77"
17440
17441# Set to yes if exported symbols are required.
17442always_export_symbols=$always_export_symbols_F77
17443
17444# The commands to list exported symbols.
17445export_symbols_cmds=$lt_export_symbols_cmds_F77
17446
17447# The commands to extract the exported symbol list from a shared archive.
17448extract_expsyms_cmds=$lt_extract_expsyms_cmds
17449
17450# Symbols that should not be listed in the preloaded symbols.
17451exclude_expsyms=$lt_exclude_expsyms_F77
17452
17453# Symbols that must always be exported.
17454include_expsyms=$lt_include_expsyms_F77
17455
17456# ### END LIBTOOL TAG CONFIG: $tagname
17457
17458__EOF__
17459
17460
17461else
17462  # If there is no Makefile yet, we rely on a make rule to execute
17463  # `config.status --recheck' to rerun these tests and create the
17464  # libtool script then.
17465  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17466  if test -f "$ltmain_in"; then
17467    test -f Makefile && make "$ltmain"
17468  fi
17469fi
17470
17471
17472ac_ext=c
17473ac_cpp='$CPP $CPPFLAGS'
17474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17476ac_compiler_gnu=$ac_cv_c_compiler_gnu
17477
17478CC="$lt_save_CC"
17479
17480	else
17481	  tagname=""
17482	fi
17483	;;
17484
17485      GCJ)
17486	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17487
17488
17489# Source file extension for Java test sources.
17490ac_ext=java
17491
17492# Object file extension for compiled Java test sources.
17493objext=o
17494objext_GCJ=$objext
17495
17496# Code to be used in simple compile tests
17497lt_simple_compile_test_code="class foo {}\n"
17498
17499# Code to be used in simple link tests
17500lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17501
17502# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17503
17504# If no C compiler was specified, use CC.
17505LTCC=${LTCC-"$CC"}
17506
17507# If no C compiler flags were specified, use CFLAGS.
17508LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17509
17510# Allow CC to be a program name with arguments.
17511compiler=$CC
17512
17513
17514# save warnings/boilerplate of simple test code
17515ac_outfile=conftest.$ac_objext
17516printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17517eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17518_lt_compiler_boilerplate=`cat conftest.err`
17519$rm conftest*
17520
17521ac_outfile=conftest.$ac_objext
17522printf "$lt_simple_link_test_code" >conftest.$ac_ext
17523eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17524_lt_linker_boilerplate=`cat conftest.err`
17525$rm conftest*
17526
17527
17528# Allow CC to be a program name with arguments.
17529lt_save_CC="$CC"
17530CC=${GCJ-"gcj"}
17531compiler=$CC
17532compiler_GCJ=$CC
17533for cc_temp in $compiler""; do
17534  case $cc_temp in
17535    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17536    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17537    \-*) ;;
17538    *) break;;
17539  esac
17540done
17541cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17542
17543
17544# GCJ did not exist at the time GCC didn't implicitly link libc in.
17545archive_cmds_need_lc_GCJ=no
17546
17547old_archive_cmds_GCJ=$old_archive_cmds
17548
17549
17550lt_prog_compiler_no_builtin_flag_GCJ=
17551
17552if test "$GCC" = yes; then
17553  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17554
17555
17556{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17557echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17558if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17559  echo $ECHO_N "(cached) $ECHO_C" >&6
17560else
17561  lt_cv_prog_compiler_rtti_exceptions=no
17562  ac_outfile=conftest.$ac_objext
17563   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17564   lt_compiler_flag="-fno-rtti -fno-exceptions"
17565   # Insert the option either (1) after the last *FLAGS variable, or
17566   # (2) before a word containing "conftest.", or (3) at the end.
17567   # Note that $ac_compile itself does not contain backslashes and begins
17568   # with a dollar sign (not a hyphen), so the echo should work correctly.
17569   # The option is referenced via a variable to avoid confusing sed.
17570   lt_compile=`echo "$ac_compile" | $SED \
17571   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17572   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17573   -e 's:$: $lt_compiler_flag:'`
17574   (eval echo "\"\$as_me:17574: $lt_compile\"" >&5)
17575   (eval "$lt_compile" 2>conftest.err)
17576   ac_status=$?
17577   cat conftest.err >&5
17578   echo "$as_me:17578: \$? = $ac_status" >&5
17579   if (exit $ac_status) && test -s "$ac_outfile"; then
17580     # The compiler can only warn and ignore the option if not recognized
17581     # So say no if there are warnings other than the usual output.
17582     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17583     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17584     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17585       lt_cv_prog_compiler_rtti_exceptions=yes
17586     fi
17587   fi
17588   $rm conftest*
17589
17590fi
17591{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17592echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17593
17594if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17595    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17596else
17597    :
17598fi
17599
17600fi
17601
17602lt_prog_compiler_wl_GCJ=
17603lt_prog_compiler_pic_GCJ=
17604lt_prog_compiler_static_GCJ=
17605
17606{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17607echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17608
17609  if test "$GCC" = yes; then
17610    lt_prog_compiler_wl_GCJ='-Wl,'
17611    lt_prog_compiler_static_GCJ='-static'
17612
17613    case $host_os in
17614      aix*)
17615      # All AIX code is PIC.
17616      if test "$host_cpu" = ia64; then
17617	# AIX 5 now supports IA64 processor
17618	lt_prog_compiler_static_GCJ='-Bstatic'
17619      fi
17620      ;;
17621
17622    amigaos*)
17623      # FIXME: we need at least 68020 code to build shared libraries, but
17624      # adding the `-m68020' flag to GCC prevents building anything better,
17625      # like `-m68040'.
17626      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17627      ;;
17628
17629    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17630      # PIC is the default for these OSes.
17631      ;;
17632
17633    mingw* | pw32* | os2*)
17634      # This hack is so that the source file can tell whether it is being
17635      # built for inclusion in a dll (and should export symbols for example).
17636      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17637      ;;
17638
17639    darwin* | rhapsody*)
17640      # PIC is the default on this platform
17641      # Common symbols not allowed in MH_DYLIB files
17642      lt_prog_compiler_pic_GCJ='-fno-common'
17643      ;;
17644
17645    interix3*)
17646      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17647      # Instead, we relocate shared libraries at runtime.
17648      ;;
17649
17650    msdosdjgpp*)
17651      # Just because we use GCC doesn't mean we suddenly get shared libraries
17652      # on systems that don't support them.
17653      lt_prog_compiler_can_build_shared_GCJ=no
17654      enable_shared=no
17655      ;;
17656
17657    sysv4*MP*)
17658      if test -d /usr/nec; then
17659	lt_prog_compiler_pic_GCJ=-Kconform_pic
17660      fi
17661      ;;
17662
17663    hpux*)
17664      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17665      # not for PA HP-UX.
17666      case $host_cpu in
17667      hppa*64*|ia64*)
17668	# +Z the default
17669	;;
17670      *)
17671	lt_prog_compiler_pic_GCJ='-fPIC'
17672	;;
17673      esac
17674      ;;
17675
17676    *)
17677      lt_prog_compiler_pic_GCJ='-fPIC'
17678      ;;
17679    esac
17680  else
17681    # PORTME Check for flag to pass linker flags through the system compiler.
17682    case $host_os in
17683    aix*)
17684      lt_prog_compiler_wl_GCJ='-Wl,'
17685      if test "$host_cpu" = ia64; then
17686	# AIX 5 now supports IA64 processor
17687	lt_prog_compiler_static_GCJ='-Bstatic'
17688      else
17689	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17690      fi
17691      ;;
17692      darwin*)
17693        # PIC is the default on this platform
17694        # Common symbols not allowed in MH_DYLIB files
17695       case $cc_basename in
17696         xlc*)
17697         lt_prog_compiler_pic_GCJ='-qnocommon'
17698         lt_prog_compiler_wl_GCJ='-Wl,'
17699         ;;
17700       esac
17701       ;;
17702
17703    mingw* | pw32* | os2*)
17704      # This hack is so that the source file can tell whether it is being
17705      # built for inclusion in a dll (and should export symbols for example).
17706      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17707      ;;
17708
17709    hpux9* | hpux10* | hpux11*)
17710      lt_prog_compiler_wl_GCJ='-Wl,'
17711      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17712      # not for PA HP-UX.
17713      case $host_cpu in
17714      hppa*64*|ia64*)
17715	# +Z the default
17716	;;
17717      *)
17718	lt_prog_compiler_pic_GCJ='+Z'
17719	;;
17720      esac
17721      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17722      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17723      ;;
17724
17725    irix5* | irix6* | nonstopux*)
17726      lt_prog_compiler_wl_GCJ='-Wl,'
17727      # PIC (with -KPIC) is the default.
17728      lt_prog_compiler_static_GCJ='-non_shared'
17729      ;;
17730
17731    newsos6)
17732      lt_prog_compiler_pic_GCJ='-KPIC'
17733      lt_prog_compiler_static_GCJ='-Bstatic'
17734      ;;
17735
17736    linux* | k*bsd*-gnu)
17737      case $cc_basename in
17738      icc* | ecc*)
17739	lt_prog_compiler_wl_GCJ='-Wl,'
17740	lt_prog_compiler_pic_GCJ='-KPIC'
17741	lt_prog_compiler_static_GCJ='-static'
17742        ;;
17743      pgcc* | pgf77* | pgf90* | pgf95*)
17744        # Portland Group compilers (*not* the Pentium gcc compiler,
17745	# which looks to be a dead project)
17746	lt_prog_compiler_wl_GCJ='-Wl,'
17747	lt_prog_compiler_pic_GCJ='-fpic'
17748	lt_prog_compiler_static_GCJ='-Bstatic'
17749        ;;
17750      ccc*)
17751        lt_prog_compiler_wl_GCJ='-Wl,'
17752        # All Alpha code is PIC.
17753        lt_prog_compiler_static_GCJ='-non_shared'
17754        ;;
17755      esac
17756      ;;
17757
17758    osf3* | osf4* | osf5*)
17759      lt_prog_compiler_wl_GCJ='-Wl,'
17760      # All OSF/1 code is PIC.
17761      lt_prog_compiler_static_GCJ='-non_shared'
17762      ;;
17763
17764    solaris*)
17765      lt_prog_compiler_pic_GCJ='-KPIC'
17766      lt_prog_compiler_static_GCJ='-Bstatic'
17767      case $cc_basename in
17768      f77* | f90* | f95*)
17769	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17770      *)
17771	lt_prog_compiler_wl_GCJ='-Wl,';;
17772      esac
17773      ;;
17774
17775    sunos4*)
17776      lt_prog_compiler_wl_GCJ='-Qoption ld '
17777      lt_prog_compiler_pic_GCJ='-PIC'
17778      lt_prog_compiler_static_GCJ='-Bstatic'
17779      ;;
17780
17781    sysv4 | sysv4.2uw2* | sysv4.3*)
17782      lt_prog_compiler_wl_GCJ='-Wl,'
17783      lt_prog_compiler_pic_GCJ='-KPIC'
17784      lt_prog_compiler_static_GCJ='-Bstatic'
17785      ;;
17786
17787    sysv4*MP*)
17788      if test -d /usr/nec ;then
17789	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17790	lt_prog_compiler_static_GCJ='-Bstatic'
17791      fi
17792      ;;
17793
17794    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17795      lt_prog_compiler_wl_GCJ='-Wl,'
17796      lt_prog_compiler_pic_GCJ='-KPIC'
17797      lt_prog_compiler_static_GCJ='-Bstatic'
17798      ;;
17799
17800    unicos*)
17801      lt_prog_compiler_wl_GCJ='-Wl,'
17802      lt_prog_compiler_can_build_shared_GCJ=no
17803      ;;
17804
17805    uts4*)
17806      lt_prog_compiler_pic_GCJ='-pic'
17807      lt_prog_compiler_static_GCJ='-Bstatic'
17808      ;;
17809
17810    *)
17811      lt_prog_compiler_can_build_shared_GCJ=no
17812      ;;
17813    esac
17814  fi
17815
17816{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17817echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17818
17819#
17820# Check to make sure the PIC flag actually works.
17821#
17822if test -n "$lt_prog_compiler_pic_GCJ"; then
17823
17824{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17825echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17826if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17827  echo $ECHO_N "(cached) $ECHO_C" >&6
17828else
17829  lt_prog_compiler_pic_works_GCJ=no
17830  ac_outfile=conftest.$ac_objext
17831   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17832   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17833   # Insert the option either (1) after the last *FLAGS variable, or
17834   # (2) before a word containing "conftest.", or (3) at the end.
17835   # Note that $ac_compile itself does not contain backslashes and begins
17836   # with a dollar sign (not a hyphen), so the echo should work correctly.
17837   # The option is referenced via a variable to avoid confusing sed.
17838   lt_compile=`echo "$ac_compile" | $SED \
17839   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17840   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17841   -e 's:$: $lt_compiler_flag:'`
17842   (eval echo "\"\$as_me:17842: $lt_compile\"" >&5)
17843   (eval "$lt_compile" 2>conftest.err)
17844   ac_status=$?
17845   cat conftest.err >&5
17846   echo "$as_me:17846: \$? = $ac_status" >&5
17847   if (exit $ac_status) && test -s "$ac_outfile"; then
17848     # The compiler can only warn and ignore the option if not recognized
17849     # So say no if there are warnings other than the usual output.
17850     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17851     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17852     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17853       lt_prog_compiler_pic_works_GCJ=yes
17854     fi
17855   fi
17856   $rm conftest*
17857
17858fi
17859{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17860echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17861
17862if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17863    case $lt_prog_compiler_pic_GCJ in
17864     "" | " "*) ;;
17865     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17866     esac
17867else
17868    lt_prog_compiler_pic_GCJ=
17869     lt_prog_compiler_can_build_shared_GCJ=no
17870fi
17871
17872fi
17873case $host_os in
17874  # For platforms which do not support PIC, -DPIC is meaningless:
17875  *djgpp*)
17876    lt_prog_compiler_pic_GCJ=
17877    ;;
17878  *)
17879    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17880    ;;
17881esac
17882
17883#
17884# Check to make sure the static flag actually works.
17885#
17886wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17887{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17888echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17889if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17890  echo $ECHO_N "(cached) $ECHO_C" >&6
17891else
17892  lt_prog_compiler_static_works_GCJ=no
17893   save_LDFLAGS="$LDFLAGS"
17894   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17895   printf "$lt_simple_link_test_code" > conftest.$ac_ext
17896   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17897     # The linker can only warn and ignore the option if not recognized
17898     # So say no if there are warnings
17899     if test -s conftest.err; then
17900       # Append any errors to the config.log.
17901       cat conftest.err 1>&5
17902       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17903       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17904       if diff conftest.exp conftest.er2 >/dev/null; then
17905         lt_prog_compiler_static_works_GCJ=yes
17906       fi
17907     else
17908       lt_prog_compiler_static_works_GCJ=yes
17909     fi
17910   fi
17911   $rm conftest*
17912   LDFLAGS="$save_LDFLAGS"
17913
17914fi
17915{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17916echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17917
17918if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17919    :
17920else
17921    lt_prog_compiler_static_GCJ=
17922fi
17923
17924
17925{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17926echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17927if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17928  echo $ECHO_N "(cached) $ECHO_C" >&6
17929else
17930  lt_cv_prog_compiler_c_o_GCJ=no
17931   $rm -r conftest 2>/dev/null
17932   mkdir conftest
17933   cd conftest
17934   mkdir out
17935   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17936
17937   lt_compiler_flag="-o out/conftest2.$ac_objext"
17938   # Insert the option either (1) after the last *FLAGS variable, or
17939   # (2) before a word containing "conftest.", or (3) at the end.
17940   # Note that $ac_compile itself does not contain backslashes and begins
17941   # with a dollar sign (not a hyphen), so the echo should work correctly.
17942   lt_compile=`echo "$ac_compile" | $SED \
17943   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17944   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17945   -e 's:$: $lt_compiler_flag:'`
17946   (eval echo "\"\$as_me:17946: $lt_compile\"" >&5)
17947   (eval "$lt_compile" 2>out/conftest.err)
17948   ac_status=$?
17949   cat out/conftest.err >&5
17950   echo "$as_me:17950: \$? = $ac_status" >&5
17951   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17952   then
17953     # The compiler can only warn and ignore the option if not recognized
17954     # So say no if there are warnings
17955     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17956     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17957     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17958       lt_cv_prog_compiler_c_o_GCJ=yes
17959     fi
17960   fi
17961   chmod u+w . 2>&5
17962   $rm conftest*
17963   # SGI C++ compiler will create directory out/ii_files/ for
17964   # template instantiation
17965   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17966   $rm out/* && rmdir out
17967   cd ..
17968   rmdir conftest
17969   $rm conftest*
17970
17971fi
17972{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17973echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17974
17975
17976hard_links="nottested"
17977if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17978  # do not overwrite the value of need_locks provided by the user
17979  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17980echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17981  hard_links=yes
17982  $rm conftest*
17983  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17984  touch conftest.a
17985  ln conftest.a conftest.b 2>&5 || hard_links=no
17986  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17987  { echo "$as_me:$LINENO: result: $hard_links" >&5
17988echo "${ECHO_T}$hard_links" >&6; }
17989  if test "$hard_links" = no; then
17990    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17991echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17992    need_locks=warn
17993  fi
17994else
17995  need_locks=no
17996fi
17997
17998{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17999echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18000
18001  runpath_var=
18002  allow_undefined_flag_GCJ=
18003  enable_shared_with_static_runtimes_GCJ=no
18004  archive_cmds_GCJ=
18005  archive_expsym_cmds_GCJ=
18006  old_archive_From_new_cmds_GCJ=
18007  old_archive_from_expsyms_cmds_GCJ=
18008  export_dynamic_flag_spec_GCJ=
18009  whole_archive_flag_spec_GCJ=
18010  thread_safe_flag_spec_GCJ=
18011  hardcode_libdir_flag_spec_GCJ=
18012  hardcode_libdir_flag_spec_ld_GCJ=
18013  hardcode_libdir_separator_GCJ=
18014  hardcode_direct_GCJ=no
18015  hardcode_minus_L_GCJ=no
18016  hardcode_shlibpath_var_GCJ=unsupported
18017  link_all_deplibs_GCJ=unknown
18018  hardcode_automatic_GCJ=no
18019  module_cmds_GCJ=
18020  module_expsym_cmds_GCJ=
18021  always_export_symbols_GCJ=no
18022  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18023  # include_expsyms should be a list of space-separated symbols to be *always*
18024  # included in the symbol list
18025  include_expsyms_GCJ=
18026  # exclude_expsyms can be an extended regexp of symbols to exclude
18027  # it will be wrapped by ` (' and `)$', so one must not match beginning or
18028  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18029  # as well as any symbol that contains `d'.
18030  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18031  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18032  # platforms (ab)use it in PIC code, but their linkers get confused if
18033  # the symbol is explicitly referenced.  Since portable code cannot
18034  # rely on this symbol name, it's probably fine to never include it in
18035  # preloaded symbol tables.
18036  extract_expsyms_cmds=
18037  # Just being paranoid about ensuring that cc_basename is set.
18038  for cc_temp in $compiler""; do
18039  case $cc_temp in
18040    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18041    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18042    \-*) ;;
18043    *) break;;
18044  esac
18045done
18046cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18047
18048  case $host_os in
18049  cygwin* | mingw* | pw32*)
18050    # FIXME: the MSVC++ port hasn't been tested in a loooong time
18051    # When not using gcc, we currently assume that we are using
18052    # Microsoft Visual C++.
18053    if test "$GCC" != yes; then
18054      with_gnu_ld=no
18055    fi
18056    ;;
18057  interix*)
18058    # we just hope/assume this is gcc and not c89 (= MSVC++)
18059    with_gnu_ld=yes
18060    ;;
18061  openbsd*)
18062    with_gnu_ld=no
18063    ;;
18064  esac
18065
18066  ld_shlibs_GCJ=yes
18067  if test "$with_gnu_ld" = yes; then
18068    # If archive_cmds runs LD, not CC, wlarc should be empty
18069    wlarc='${wl}'
18070
18071    # Set some defaults for GNU ld with shared library support. These
18072    # are reset later if shared libraries are not supported. Putting them
18073    # here allows them to be overridden if necessary.
18074    runpath_var=LD_RUN_PATH
18075    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18076    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18077    # ancient GNU ld didn't support --whole-archive et. al.
18078    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18079	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18080      else
18081  	whole_archive_flag_spec_GCJ=
18082    fi
18083    supports_anon_versioning=no
18084    case `$LD -v 2>/dev/null` in
18085      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18086      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18087      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18088      *\ 2.11.*) ;; # other 2.11 versions
18089      *) supports_anon_versioning=yes ;;
18090    esac
18091
18092    # See if GNU ld supports shared libraries.
18093    case $host_os in
18094    aix3* | aix4* | aix5*)
18095      # On AIX/PPC, the GNU linker is very broken
18096      if test "$host_cpu" != ia64; then
18097	ld_shlibs_GCJ=no
18098	cat <<EOF 1>&2
18099
18100*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18101*** to be unable to reliably create shared libraries on AIX.
18102*** Therefore, libtool is disabling shared libraries support.  If you
18103*** really care for shared libraries, you may want to modify your PATH
18104*** so that a non-GNU linker is found, and then restart.
18105
18106EOF
18107      fi
18108      ;;
18109
18110    amigaos*)
18111      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)'
18112      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18113      hardcode_minus_L_GCJ=yes
18114
18115      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18116      # that the semantics of dynamic libraries on AmigaOS, at least up
18117      # to version 4, is to share data among multiple programs linked
18118      # with the same dynamic library.  Since this doesn't match the
18119      # behavior of shared libraries on other platforms, we can't use
18120      # them.
18121      ld_shlibs_GCJ=no
18122      ;;
18123
18124    beos*)
18125      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18126	allow_undefined_flag_GCJ=unsupported
18127	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18128	# support --undefined.  This deserves some investigation.  FIXME
18129	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18130      else
18131	ld_shlibs_GCJ=no
18132      fi
18133      ;;
18134
18135    cygwin* | mingw* | pw32*)
18136      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18137      # as there is no search path for DLLs.
18138      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18139      allow_undefined_flag_GCJ=unsupported
18140      always_export_symbols_GCJ=no
18141      enable_shared_with_static_runtimes_GCJ=yes
18142      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18143
18144      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18145        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18146	# If the export-symbols file already is a .def file (1st line
18147	# is EXPORTS), use it as is; otherwise, prepend...
18148	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18149	  cp $export_symbols $output_objdir/$soname.def;
18150	else
18151	  echo EXPORTS > $output_objdir/$soname.def;
18152	  cat $export_symbols >> $output_objdir/$soname.def;
18153	fi~
18154	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18155      else
18156	ld_shlibs_GCJ=no
18157      fi
18158      ;;
18159
18160    interix3*)
18161      hardcode_direct_GCJ=no
18162      hardcode_shlibpath_var_GCJ=no
18163      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18164      export_dynamic_flag_spec_GCJ='${wl}-E'
18165      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18166      # Instead, shared libraries are loaded at an image base (0x10000000 by
18167      # default) and relocated if they conflict, which is a slow very memory
18168      # consuming and fragmenting process.  To avoid this, we pick a random,
18169      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18170      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18171      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'
18172      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'
18173      ;;
18174
18175    linux* | k*bsd*-gnu)
18176      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18177	tmp_addflag=
18178	case $cc_basename,$host_cpu in
18179	pgcc*)				# Portland Group C compiler
18180	  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'
18181	  tmp_addflag=' $pic_flag'
18182	  ;;
18183	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
18184	  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'
18185	  tmp_addflag=' $pic_flag -Mnomain' ;;
18186	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
18187	  tmp_addflag=' -i_dynamic' ;;
18188	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
18189	  tmp_addflag=' -i_dynamic -nofor_main' ;;
18190	ifc* | ifort*)			# Intel Fortran compiler
18191	  tmp_addflag=' -nofor_main' ;;
18192	esac
18193	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18194
18195	if test $supports_anon_versioning = yes; then
18196	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18197  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18198  $echo "local: *; };" >> $output_objdir/$libname.ver~
18199	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18200	fi
18201	link_all_deplibs_GCJ=no
18202      else
18203	ld_shlibs_GCJ=no
18204      fi
18205      ;;
18206
18207    netbsd* | netbsdelf*-gnu)
18208      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18209	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18210	wlarc=
18211      else
18212	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18213	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18214      fi
18215      ;;
18216
18217    solaris*)
18218      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18219	ld_shlibs_GCJ=no
18220	cat <<EOF 1>&2
18221
18222*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18223*** create shared libraries on Solaris systems.  Therefore, libtool
18224*** is disabling shared libraries support.  We urge you to upgrade GNU
18225*** binutils to release 2.9.1 or newer.  Another option is to modify
18226*** your PATH or compiler configuration so that the native linker is
18227*** used, and then restart.
18228
18229EOF
18230      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18231	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18232	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18233      else
18234	ld_shlibs_GCJ=no
18235      fi
18236      ;;
18237
18238    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18239      case `$LD -v 2>&1` in
18240        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18241	ld_shlibs_GCJ=no
18242	cat <<_LT_EOF 1>&2
18243
18244*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18245*** reliably create shared libraries on SCO systems.  Therefore, libtool
18246*** is disabling shared libraries support.  We urge you to upgrade GNU
18247*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18248*** your PATH or compiler configuration so that the native linker is
18249*** used, and then restart.
18250
18251_LT_EOF
18252	;;
18253	*)
18254	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18255	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18256	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18257	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18258	  else
18259	    ld_shlibs_GCJ=no
18260	  fi
18261	;;
18262      esac
18263      ;;
18264
18265    sunos4*)
18266      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18267      wlarc=
18268      hardcode_direct_GCJ=yes
18269      hardcode_shlibpath_var_GCJ=no
18270      ;;
18271
18272    *)
18273      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18274	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18275	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18276      else
18277	ld_shlibs_GCJ=no
18278      fi
18279      ;;
18280    esac
18281
18282    if test "$ld_shlibs_GCJ" = no; then
18283      runpath_var=
18284      hardcode_libdir_flag_spec_GCJ=
18285      export_dynamic_flag_spec_GCJ=
18286      whole_archive_flag_spec_GCJ=
18287    fi
18288  else
18289    # PORTME fill in a description of your system's linker (not GNU ld)
18290    case $host_os in
18291    aix3*)
18292      allow_undefined_flag_GCJ=unsupported
18293      always_export_symbols_GCJ=yes
18294      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'
18295      # Note: this linker hardcodes the directories in LIBPATH if there
18296      # are no directories specified by -L.
18297      hardcode_minus_L_GCJ=yes
18298      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18299	# Neither direct hardcoding nor static linking is supported with a
18300	# broken collect2.
18301	hardcode_direct_GCJ=unsupported
18302      fi
18303      ;;
18304
18305    aix4* | aix5*)
18306      if test "$host_cpu" = ia64; then
18307	# On IA64, the linker does run time linking by default, so we don't
18308	# have to do anything special.
18309	aix_use_runtimelinking=no
18310	exp_sym_flag='-Bexport'
18311	no_entry_flag=""
18312      else
18313	# If we're using GNU nm, then we don't want the "-C" option.
18314	# -C means demangle to AIX nm, but means don't demangle with GNU nm
18315	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18316	  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'
18317	else
18318	  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'
18319	fi
18320	aix_use_runtimelinking=no
18321
18322	# Test if we are trying to use run time linking or normal
18323	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18324	# need to do runtime linking.
18325	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18326	  for ld_flag in $LDFLAGS; do
18327  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18328  	    aix_use_runtimelinking=yes
18329  	    break
18330  	  fi
18331	  done
18332	  ;;
18333	esac
18334
18335	exp_sym_flag='-bexport'
18336	no_entry_flag='-bnoentry'
18337      fi
18338
18339      # When large executables or shared objects are built, AIX ld can
18340      # have problems creating the table of contents.  If linking a library
18341      # or program results in "error TOC overflow" add -mminimal-toc to
18342      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18343      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18344
18345      archive_cmds_GCJ=''
18346      hardcode_direct_GCJ=yes
18347      hardcode_libdir_separator_GCJ=':'
18348      link_all_deplibs_GCJ=yes
18349
18350      if test "$GCC" = yes; then
18351	case $host_os in aix4.[012]|aix4.[012].*)
18352	# We only want to do this on AIX 4.2 and lower, the check
18353	# below for broken collect2 doesn't work under 4.3+
18354	  collect2name=`${CC} -print-prog-name=collect2`
18355	  if test -f "$collect2name" && \
18356  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
18357	  then
18358  	  # We have reworked collect2
18359  	  hardcode_direct_GCJ=yes
18360	  else
18361  	  # We have old collect2
18362  	  hardcode_direct_GCJ=unsupported
18363  	  # It fails to find uninstalled libraries when the uninstalled
18364  	  # path is not listed in the libpath.  Setting hardcode_minus_L
18365  	  # to unsupported forces relinking
18366  	  hardcode_minus_L_GCJ=yes
18367  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
18368  	  hardcode_libdir_separator_GCJ=
18369	  fi
18370	  ;;
18371	esac
18372	shared_flag='-shared'
18373	if test "$aix_use_runtimelinking" = yes; then
18374	  shared_flag="$shared_flag "'${wl}-G'
18375	fi
18376      else
18377	# not using gcc
18378	if test "$host_cpu" = ia64; then
18379  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18380  	# chokes on -Wl,-G. The following line is correct:
18381	  shared_flag='-G'
18382	else
18383	  if test "$aix_use_runtimelinking" = yes; then
18384	    shared_flag='${wl}-G'
18385	  else
18386	    shared_flag='${wl}-bM:SRE'
18387	  fi
18388	fi
18389      fi
18390
18391      # It seems that -bexpall does not export symbols beginning with
18392      # underscore (_), so it is better to generate a list of symbols to export.
18393      always_export_symbols_GCJ=yes
18394      if test "$aix_use_runtimelinking" = yes; then
18395	# Warning - without using the other runtime loading flags (-brtl),
18396	# -berok will link without error, but may produce a broken library.
18397	allow_undefined_flag_GCJ='-berok'
18398       # Determine the default libpath from the value encoded in an empty executable.
18399       cat >conftest.$ac_ext <<_ACEOF
18400/* confdefs.h.  */
18401_ACEOF
18402cat confdefs.h >>conftest.$ac_ext
18403cat >>conftest.$ac_ext <<_ACEOF
18404/* end confdefs.h.  */
18405
18406int
18407main ()
18408{
18409
18410  ;
18411  return 0;
18412}
18413_ACEOF
18414rm -f conftest.$ac_objext conftest$ac_exeext
18415if { (ac_try="$ac_link"
18416case "(($ac_try" in
18417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18418  *) ac_try_echo=$ac_try;;
18419esac
18420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18421  (eval "$ac_link") 2>conftest.er1
18422  ac_status=$?
18423  grep -v '^ *+' conftest.er1 >conftest.err
18424  rm -f conftest.er1
18425  cat conftest.err >&5
18426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427  (exit $ac_status); } && {
18428	 test -z "$ac_c_werror_flag" ||
18429	 test ! -s conftest.err
18430       } && test -s conftest$ac_exeext &&
18431       $as_test_x conftest$ac_exeext; then
18432
18433aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18434}'`
18435# Check for a 64-bit object if we didn't find anything.
18436if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18437}'`; fi
18438else
18439  echo "$as_me: failed program was:" >&5
18440sed 's/^/| /' conftest.$ac_ext >&5
18441
18442
18443fi
18444
18445rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18446      conftest$ac_exeext conftest.$ac_ext
18447if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18448
18449       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18450	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"
18451       else
18452	if test "$host_cpu" = ia64; then
18453	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18454	  allow_undefined_flag_GCJ="-z nodefs"
18455	  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"
18456	else
18457	 # Determine the default libpath from the value encoded in an empty executable.
18458	 cat >conftest.$ac_ext <<_ACEOF
18459/* confdefs.h.  */
18460_ACEOF
18461cat confdefs.h >>conftest.$ac_ext
18462cat >>conftest.$ac_ext <<_ACEOF
18463/* end confdefs.h.  */
18464
18465int
18466main ()
18467{
18468
18469  ;
18470  return 0;
18471}
18472_ACEOF
18473rm -f conftest.$ac_objext conftest$ac_exeext
18474if { (ac_try="$ac_link"
18475case "(($ac_try" in
18476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18477  *) ac_try_echo=$ac_try;;
18478esac
18479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18480  (eval "$ac_link") 2>conftest.er1
18481  ac_status=$?
18482  grep -v '^ *+' conftest.er1 >conftest.err
18483  rm -f conftest.er1
18484  cat conftest.err >&5
18485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486  (exit $ac_status); } && {
18487	 test -z "$ac_c_werror_flag" ||
18488	 test ! -s conftest.err
18489       } && test -s conftest$ac_exeext &&
18490       $as_test_x conftest$ac_exeext; then
18491
18492aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18493}'`
18494# Check for a 64-bit object if we didn't find anything.
18495if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18496}'`; fi
18497else
18498  echo "$as_me: failed program was:" >&5
18499sed 's/^/| /' conftest.$ac_ext >&5
18500
18501
18502fi
18503
18504rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18505      conftest$ac_exeext conftest.$ac_ext
18506if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18507
18508	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18509	  # Warning - without using the other run time loading flags,
18510	  # -berok will link without error, but may produce a broken library.
18511	  no_undefined_flag_GCJ=' ${wl}-bernotok'
18512	  allow_undefined_flag_GCJ=' ${wl}-berok'
18513	  # Exported symbols can be pulled into shared objects from archives
18514	  whole_archive_flag_spec_GCJ='$convenience'
18515	  archive_cmds_need_lc_GCJ=yes
18516	  # This is similar to how AIX traditionally builds its shared libraries.
18517	  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'
18518	fi
18519      fi
18520      ;;
18521
18522    amigaos*)
18523      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)'
18524      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18525      hardcode_minus_L_GCJ=yes
18526      # see comment about different semantics on the GNU ld section
18527      ld_shlibs_GCJ=no
18528      ;;
18529
18530    bsdi[45]*)
18531      export_dynamic_flag_spec_GCJ=-rdynamic
18532      ;;
18533
18534    cygwin* | mingw* | pw32*)
18535      # When not using gcc, we currently assume that we are using
18536      # Microsoft Visual C++.
18537      # hardcode_libdir_flag_spec is actually meaningless, as there is
18538      # no search path for DLLs.
18539      hardcode_libdir_flag_spec_GCJ=' '
18540      allow_undefined_flag_GCJ=unsupported
18541      # Tell ltmain to make .lib files, not .a files.
18542      libext=lib
18543      # Tell ltmain to make .dll files, not .so files.
18544      shrext_cmds=".dll"
18545      # FIXME: Setting linknames here is a bad hack.
18546      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18547      # The linker will automatically build a .lib file if we build a DLL.
18548      old_archive_From_new_cmds_GCJ='true'
18549      # FIXME: Should let the user specify the lib program.
18550      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18551      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18552      enable_shared_with_static_runtimes_GCJ=yes
18553      ;;
18554
18555    darwin* | rhapsody*)
18556      case $host_os in
18557        rhapsody* | darwin1.[012])
18558         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18559         ;;
18560       *) # Darwin 1.3 on
18561         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18562           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18563         else
18564           case ${MACOSX_DEPLOYMENT_TARGET} in
18565             10.[012])
18566               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18567               ;;
18568             10.*)
18569               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18570               ;;
18571           esac
18572         fi
18573         ;;
18574      esac
18575      archive_cmds_need_lc_GCJ=no
18576      hardcode_direct_GCJ=no
18577      hardcode_automatic_GCJ=yes
18578      hardcode_shlibpath_var_GCJ=unsupported
18579      whole_archive_flag_spec_GCJ=''
18580      link_all_deplibs_GCJ=yes
18581    if test "$GCC" = yes ; then
18582    	output_verbose_link_cmd='echo'
18583        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18584      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18585      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18586      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}'
18587      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}'
18588    else
18589      case $cc_basename in
18590        xlc*)
18591         output_verbose_link_cmd='echo'
18592         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18593         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18594          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18595         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18596          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}'
18597          ;;
18598       *)
18599         ld_shlibs_GCJ=no
18600          ;;
18601      esac
18602    fi
18603      ;;
18604
18605    dgux*)
18606      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18607      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18608      hardcode_shlibpath_var_GCJ=no
18609      ;;
18610
18611    freebsd1*)
18612      ld_shlibs_GCJ=no
18613      ;;
18614
18615    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18616    # support.  Future versions do this automatically, but an explicit c++rt0.o
18617    # does not break anything, and helps significantly (at the cost of a little
18618    # extra space).
18619    freebsd2.2*)
18620      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18621      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18622      hardcode_direct_GCJ=yes
18623      hardcode_shlibpath_var_GCJ=no
18624      ;;
18625
18626    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18627    freebsd2*)
18628      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18629      hardcode_direct_GCJ=yes
18630      hardcode_minus_L_GCJ=yes
18631      hardcode_shlibpath_var_GCJ=no
18632      ;;
18633
18634    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18635    freebsd* | dragonfly*)
18636      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18637      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18638      hardcode_direct_GCJ=yes
18639      hardcode_shlibpath_var_GCJ=no
18640      ;;
18641
18642    hpux9*)
18643      if test "$GCC" = yes; then
18644	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'
18645      else
18646	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'
18647      fi
18648      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18649      hardcode_libdir_separator_GCJ=:
18650      hardcode_direct_GCJ=yes
18651
18652      # hardcode_minus_L: Not really in the search PATH,
18653      # but as the default location of the library.
18654      hardcode_minus_L_GCJ=yes
18655      export_dynamic_flag_spec_GCJ='${wl}-E'
18656      ;;
18657
18658    hpux10*)
18659      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18660	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18661      else
18662	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18663      fi
18664      if test "$with_gnu_ld" = no; then
18665	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18666	hardcode_libdir_separator_GCJ=:
18667
18668	hardcode_direct_GCJ=yes
18669	export_dynamic_flag_spec_GCJ='${wl}-E'
18670
18671	# hardcode_minus_L: Not really in the search PATH,
18672	# but as the default location of the library.
18673	hardcode_minus_L_GCJ=yes
18674      fi
18675      ;;
18676
18677    hpux11*)
18678      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18679	case $host_cpu in
18680	hppa*64*)
18681	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18682	  ;;
18683	ia64*)
18684	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18685	  ;;
18686	*)
18687	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18688	  ;;
18689	esac
18690      else
18691	case $host_cpu in
18692	hppa*64*)
18693	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18694	  ;;
18695	ia64*)
18696	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18697	  ;;
18698	*)
18699	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18700	  ;;
18701	esac
18702      fi
18703      if test "$with_gnu_ld" = no; then
18704	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18705	hardcode_libdir_separator_GCJ=:
18706
18707	case $host_cpu in
18708	hppa*64*|ia64*)
18709	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18710	  hardcode_direct_GCJ=no
18711	  hardcode_shlibpath_var_GCJ=no
18712	  ;;
18713	*)
18714	  hardcode_direct_GCJ=yes
18715	  export_dynamic_flag_spec_GCJ='${wl}-E'
18716
18717	  # hardcode_minus_L: Not really in the search PATH,
18718	  # but as the default location of the library.
18719	  hardcode_minus_L_GCJ=yes
18720	  ;;
18721	esac
18722      fi
18723      ;;
18724
18725    irix5* | irix6* | nonstopux*)
18726      if test "$GCC" = yes; then
18727	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'
18728      else
18729	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'
18730	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18731      fi
18732      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18733      hardcode_libdir_separator_GCJ=:
18734      link_all_deplibs_GCJ=yes
18735      ;;
18736
18737    netbsd* | netbsdelf*-gnu)
18738      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18739	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18740      else
18741	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18742      fi
18743      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18744      hardcode_direct_GCJ=yes
18745      hardcode_shlibpath_var_GCJ=no
18746      ;;
18747
18748    newsos6)
18749      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18750      hardcode_direct_GCJ=yes
18751      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18752      hardcode_libdir_separator_GCJ=:
18753      hardcode_shlibpath_var_GCJ=no
18754      ;;
18755
18756    openbsd*)
18757      hardcode_direct_GCJ=yes
18758      hardcode_shlibpath_var_GCJ=no
18759      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18760	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18761	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18762	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18763	export_dynamic_flag_spec_GCJ='${wl}-E'
18764      else
18765       case $host_os in
18766	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18767	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18768	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
18769	   ;;
18770	 *)
18771	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18772	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18773	   ;;
18774       esac
18775      fi
18776      ;;
18777
18778    os2*)
18779      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18780      hardcode_minus_L_GCJ=yes
18781      allow_undefined_flag_GCJ=unsupported
18782      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'
18783      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18784      ;;
18785
18786    osf3*)
18787      if test "$GCC" = yes; then
18788	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18789	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'
18790      else
18791	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18792	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'
18793      fi
18794      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18795      hardcode_libdir_separator_GCJ=:
18796      ;;
18797
18798    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18799      if test "$GCC" = yes; then
18800	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18801	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'
18802	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18803      else
18804	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18805	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'
18806	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~
18807	$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'
18808
18809	# Both c and cxx compiler support -rpath directly
18810	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18811      fi
18812      hardcode_libdir_separator_GCJ=:
18813      ;;
18814
18815    solaris*)
18816      no_undefined_flag_GCJ=' -z text'
18817      if test "$GCC" = yes; then
18818	wlarc='${wl}'
18819	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18820	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18821	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18822      else
18823	wlarc=''
18824	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18825	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18826  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18827      fi
18828      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18829      hardcode_shlibpath_var_GCJ=no
18830      case $host_os in
18831      solaris2.[0-5] | solaris2.[0-5].*) ;;
18832      *)
18833 	# The compiler driver will combine linker options so we
18834 	# cannot just pass the convience library names through
18835 	# without $wl, iff we do not link with $LD.
18836 	# Luckily, gcc supports the same syntax we need for Sun Studio.
18837 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18838 	case $wlarc in
18839 	'')
18840 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18841 	*)
18842 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18843 	esac ;;
18844      esac
18845      link_all_deplibs_GCJ=yes
18846      ;;
18847
18848    sunos4*)
18849      if test "x$host_vendor" = xsequent; then
18850	# Use $CC to link under sequent, because it throws in some extra .o
18851	# files that make .init and .fini sections work.
18852	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18853      else
18854	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18855      fi
18856      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18857      hardcode_direct_GCJ=yes
18858      hardcode_minus_L_GCJ=yes
18859      hardcode_shlibpath_var_GCJ=no
18860      ;;
18861
18862    sysv4)
18863      case $host_vendor in
18864	sni)
18865	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18866	  hardcode_direct_GCJ=yes # is this really true???
18867	;;
18868	siemens)
18869	  ## LD is ld it makes a PLAMLIB
18870	  ## CC just makes a GrossModule.
18871	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18872	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18873	  hardcode_direct_GCJ=no
18874        ;;
18875	motorola)
18876	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18877	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18878	;;
18879      esac
18880      runpath_var='LD_RUN_PATH'
18881      hardcode_shlibpath_var_GCJ=no
18882      ;;
18883
18884    sysv4.3*)
18885      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18886      hardcode_shlibpath_var_GCJ=no
18887      export_dynamic_flag_spec_GCJ='-Bexport'
18888      ;;
18889
18890    sysv4*MP*)
18891      if test -d /usr/nec; then
18892	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18893	hardcode_shlibpath_var_GCJ=no
18894	runpath_var=LD_RUN_PATH
18895	hardcode_runpath_var=yes
18896	ld_shlibs_GCJ=yes
18897      fi
18898      ;;
18899
18900    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18901      no_undefined_flag_GCJ='${wl}-z,text'
18902      archive_cmds_need_lc_GCJ=no
18903      hardcode_shlibpath_var_GCJ=no
18904      runpath_var='LD_RUN_PATH'
18905
18906      if test "$GCC" = yes; then
18907	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18908	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18909      else
18910	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18911	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18912      fi
18913      ;;
18914
18915    sysv5* | sco3.2v5* | sco5v6*)
18916      # Note: We can NOT use -z defs as we might desire, because we do not
18917      # link with -lc, and that would cause any symbols used from libc to
18918      # always be unresolved, which means just about no library would
18919      # ever link correctly.  If we're not using GNU ld we use -z text
18920      # though, which does catch some bad symbols but isn't as heavy-handed
18921      # as -z defs.
18922      no_undefined_flag_GCJ='${wl}-z,text'
18923      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18924      archive_cmds_need_lc_GCJ=no
18925      hardcode_shlibpath_var_GCJ=no
18926      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18927      hardcode_libdir_separator_GCJ=':'
18928      link_all_deplibs_GCJ=yes
18929      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18930      runpath_var='LD_RUN_PATH'
18931
18932      if test "$GCC" = yes; then
18933	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18934	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18935      else
18936	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18937	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18938      fi
18939      ;;
18940
18941    uts4*)
18942      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18943      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18944      hardcode_shlibpath_var_GCJ=no
18945      ;;
18946
18947    *)
18948      ld_shlibs_GCJ=no
18949      ;;
18950    esac
18951  fi
18952
18953{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18954echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18955test "$ld_shlibs_GCJ" = no && can_build_shared=no
18956
18957#
18958# Do we need to explicitly link libc?
18959#
18960case "x$archive_cmds_need_lc_GCJ" in
18961x|xyes)
18962  # Assume -lc should be added
18963  archive_cmds_need_lc_GCJ=yes
18964
18965  if test "$enable_shared" = yes && test "$GCC" = yes; then
18966    case $archive_cmds_GCJ in
18967    *'~'*)
18968      # FIXME: we may have to deal with multi-command sequences.
18969      ;;
18970    '$CC '*)
18971      # Test whether the compiler implicitly links with -lc since on some
18972      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18973      # to ld, don't add -lc before -lgcc.
18974      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18975echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18976      $rm conftest*
18977      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18978
18979      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18980  (eval $ac_compile) 2>&5
18981  ac_status=$?
18982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983  (exit $ac_status); } 2>conftest.err; then
18984        soname=conftest
18985        lib=conftest
18986        libobjs=conftest.$ac_objext
18987        deplibs=
18988        wl=$lt_prog_compiler_wl_GCJ
18989	pic_flag=$lt_prog_compiler_pic_GCJ
18990        compiler_flags=-v
18991        linker_flags=-v
18992        verstring=
18993        output_objdir=.
18994        libname=conftest
18995        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18996        allow_undefined_flag_GCJ=
18997        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18998  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18999  ac_status=$?
19000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001  (exit $ac_status); }
19002        then
19003	  archive_cmds_need_lc_GCJ=no
19004        else
19005	  archive_cmds_need_lc_GCJ=yes
19006        fi
19007        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19008      else
19009        cat conftest.err 1>&5
19010      fi
19011      $rm conftest*
19012      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19013echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19014      ;;
19015    esac
19016  fi
19017  ;;
19018esac
19019
19020{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19021echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19022library_names_spec=
19023libname_spec='lib$name'
19024soname_spec=
19025shrext_cmds=".so"
19026postinstall_cmds=
19027postuninstall_cmds=
19028finish_cmds=
19029finish_eval=
19030shlibpath_var=
19031shlibpath_overrides_runpath=unknown
19032version_type=none
19033dynamic_linker="$host_os ld.so"
19034sys_lib_dlsearch_path_spec="/lib /usr/lib"
19035if test "$GCC" = yes; then
19036  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19037  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19038    # if the path contains ";" then we assume it to be the separator
19039    # otherwise default to the standard path separator (i.e. ":") - it is
19040    # assumed that no part of a normal pathname contains ";" but that should
19041    # okay in the real world where ";" in dirpaths is itself problematic.
19042    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19043  else
19044    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19045  fi
19046else
19047  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19048fi
19049need_lib_prefix=unknown
19050hardcode_into_libs=no
19051
19052# when you set need_version to no, make sure it does not cause -set_version
19053# flags to be left without arguments
19054need_version=unknown
19055
19056case $host_os in
19057aix3*)
19058  version_type=linux
19059  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19060  shlibpath_var=LIBPATH
19061
19062  # AIX 3 has no versioning support, so we append a major version to the name.
19063  soname_spec='${libname}${release}${shared_ext}$major'
19064  ;;
19065
19066aix4* | aix5*)
19067  version_type=linux
19068  need_lib_prefix=no
19069  need_version=no
19070  hardcode_into_libs=yes
19071  if test "$host_cpu" = ia64; then
19072    # AIX 5 supports IA64
19073    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19074    shlibpath_var=LD_LIBRARY_PATH
19075  else
19076    # With GCC up to 2.95.x, collect2 would create an import file
19077    # for dependence libraries.  The import file would start with
19078    # the line `#! .'.  This would cause the generated library to
19079    # depend on `.', always an invalid library.  This was fixed in
19080    # development snapshots of GCC prior to 3.0.
19081    case $host_os in
19082      aix4 | aix4.[01] | aix4.[01].*)
19083      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19084	   echo ' yes '
19085	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19086	:
19087      else
19088	can_build_shared=no
19089      fi
19090      ;;
19091    esac
19092    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19093    # soname into executable. Probably we can add versioning support to
19094    # collect2, so additional links can be useful in future.
19095    if test "$aix_use_runtimelinking" = yes; then
19096      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19097      # instead of lib<name>.a to let people know that these are not
19098      # typical AIX shared libraries.
19099      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19100    else
19101      # We preserve .a as extension for shared libraries through AIX4.2
19102      # and later when we are not doing run time linking.
19103      library_names_spec='${libname}${release}.a $libname.a'
19104      soname_spec='${libname}${release}${shared_ext}$major'
19105    fi
19106    shlibpath_var=LIBPATH
19107  fi
19108  ;;
19109
19110amigaos*)
19111  library_names_spec='$libname.ixlibrary $libname.a'
19112  # Create ${libname}_ixlibrary.a entries in /sys/libs.
19113  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'
19114  ;;
19115
19116beos*)
19117  library_names_spec='${libname}${shared_ext}'
19118  dynamic_linker="$host_os ld.so"
19119  shlibpath_var=LIBRARY_PATH
19120  ;;
19121
19122bsdi[45]*)
19123  version_type=linux
19124  need_version=no
19125  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19126  soname_spec='${libname}${release}${shared_ext}$major'
19127  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19128  shlibpath_var=LD_LIBRARY_PATH
19129  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19130  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19131  # the default ld.so.conf also contains /usr/contrib/lib and
19132  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19133  # libtool to hard-code these into programs
19134  ;;
19135
19136cygwin* | mingw* | pw32*)
19137  version_type=windows
19138  shrext_cmds=".dll"
19139  need_version=no
19140  need_lib_prefix=no
19141
19142  case $GCC,$host_os in
19143  yes,cygwin* | yes,mingw* | yes,pw32*)
19144    library_names_spec='$libname.dll.a'
19145    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19146    postinstall_cmds='base_file=`basename \${file}`~
19147      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19148      dldir=$destdir/`dirname \$dlpath`~
19149      test -d \$dldir || mkdir -p \$dldir~
19150      $install_prog $dir/$dlname \$dldir/$dlname~
19151      chmod a+x \$dldir/$dlname'
19152    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19153      dlpath=$dir/\$dldll~
19154       $rm \$dlpath'
19155    shlibpath_overrides_runpath=yes
19156
19157    case $host_os in
19158    cygwin*)
19159      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19160      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19161      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19162      ;;
19163    mingw*)
19164      # MinGW DLLs use traditional 'lib' prefix
19165      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19166      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19167      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19168        # It is most probably a Windows format PATH printed by
19169        # mingw gcc, but we are running on Cygwin. Gcc prints its search
19170        # path with ; separators, and with drive letters. We can handle the
19171        # drive letters (cygwin fileutils understands them), so leave them,
19172        # especially as we might pass files found there to a mingw objdump,
19173        # which wouldn't understand a cygwinified path. Ahh.
19174        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19175      else
19176        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19177      fi
19178      ;;
19179    pw32*)
19180      # pw32 DLLs use 'pw' prefix rather than 'lib'
19181      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19182      ;;
19183    esac
19184    ;;
19185
19186  *)
19187    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19188    ;;
19189  esac
19190  dynamic_linker='Win32 ld.exe'
19191  # FIXME: first we should search . and the directory the executable is in
19192  shlibpath_var=PATH
19193  ;;
19194
19195darwin* | rhapsody*)
19196  dynamic_linker="$host_os dyld"
19197  version_type=darwin
19198  need_lib_prefix=no
19199  need_version=no
19200  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19201  soname_spec='${libname}${release}${major}$shared_ext'
19202  shlibpath_overrides_runpath=yes
19203  shlibpath_var=DYLD_LIBRARY_PATH
19204  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19205  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19206  if test "$GCC" = yes; then
19207    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19208  else
19209    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19210  fi
19211  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19212  ;;
19213
19214dgux*)
19215  version_type=linux
19216  need_lib_prefix=no
19217  need_version=no
19218  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19219  soname_spec='${libname}${release}${shared_ext}$major'
19220  shlibpath_var=LD_LIBRARY_PATH
19221  ;;
19222
19223freebsd1*)
19224  dynamic_linker=no
19225  ;;
19226
19227freebsd* | dragonfly*)
19228  # DragonFly does not have aout.  When/if they implement a new
19229  # versioning mechanism, adjust this.
19230  if test -x /usr/bin/objformat; then
19231    objformat=`/usr/bin/objformat`
19232  else
19233    case $host_os in
19234    freebsd[123]*) objformat=aout ;;
19235    *) objformat=elf ;;
19236    esac
19237  fi
19238  version_type=freebsd-$objformat
19239  case $version_type in
19240    freebsd-elf*)
19241      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19242      need_version=no
19243      need_lib_prefix=no
19244      ;;
19245    freebsd-*)
19246      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19247      need_version=yes
19248      ;;
19249  esac
19250  shlibpath_var=LD_LIBRARY_PATH
19251  case $host_os in
19252  freebsd2*)
19253    shlibpath_overrides_runpath=yes
19254    ;;
19255  freebsd3.[01]* | freebsdelf3.[01]*)
19256    shlibpath_overrides_runpath=yes
19257    hardcode_into_libs=yes
19258    ;;
19259  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19260  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19261    shlibpath_overrides_runpath=no
19262    hardcode_into_libs=yes
19263    ;;
19264  freebsd*) # from 4.6 on
19265    shlibpath_overrides_runpath=yes
19266    hardcode_into_libs=yes
19267    ;;
19268  esac
19269  ;;
19270
19271gnu*)
19272  version_type=linux
19273  need_lib_prefix=no
19274  need_version=no
19275  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19276  soname_spec='${libname}${release}${shared_ext}$major'
19277  shlibpath_var=LD_LIBRARY_PATH
19278  hardcode_into_libs=yes
19279  ;;
19280
19281hpux9* | hpux10* | hpux11*)
19282  # Give a soname corresponding to the major version so that dld.sl refuses to
19283  # link against other versions.
19284  version_type=sunos
19285  need_lib_prefix=no
19286  need_version=no
19287  case $host_cpu in
19288  ia64*)
19289    shrext_cmds='.so'
19290    hardcode_into_libs=yes
19291    dynamic_linker="$host_os dld.so"
19292    shlibpath_var=LD_LIBRARY_PATH
19293    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19294    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19295    soname_spec='${libname}${release}${shared_ext}$major'
19296    if test "X$HPUX_IA64_MODE" = X32; then
19297      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19298    else
19299      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19300    fi
19301    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19302    ;;
19303   hppa*64*)
19304     shrext_cmds='.sl'
19305     hardcode_into_libs=yes
19306     dynamic_linker="$host_os dld.sl"
19307     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19308     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19309     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19310     soname_spec='${libname}${release}${shared_ext}$major'
19311     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19312     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19313     ;;
19314   *)
19315    shrext_cmds='.sl'
19316    dynamic_linker="$host_os dld.sl"
19317    shlibpath_var=SHLIB_PATH
19318    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19319    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19320    soname_spec='${libname}${release}${shared_ext}$major'
19321    ;;
19322  esac
19323  # HP-UX runs *really* slowly unless shared libraries are mode 555.
19324  postinstall_cmds='chmod 555 $lib'
19325  ;;
19326
19327interix3*)
19328  version_type=linux
19329  need_lib_prefix=no
19330  need_version=no
19331  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19332  soname_spec='${libname}${release}${shared_ext}$major'
19333  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19334  shlibpath_var=LD_LIBRARY_PATH
19335  shlibpath_overrides_runpath=no
19336  hardcode_into_libs=yes
19337  ;;
19338
19339irix5* | irix6* | nonstopux*)
19340  case $host_os in
19341    nonstopux*) version_type=nonstopux ;;
19342    *)
19343	if test "$lt_cv_prog_gnu_ld" = yes; then
19344		version_type=linux
19345	else
19346		version_type=irix
19347	fi ;;
19348  esac
19349  need_lib_prefix=no
19350  need_version=no
19351  soname_spec='${libname}${release}${shared_ext}$major'
19352  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19353  case $host_os in
19354  irix5* | nonstopux*)
19355    libsuff= shlibsuff=
19356    ;;
19357  *)
19358    case $LD in # libtool.m4 will add one of these switches to LD
19359    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19360      libsuff= shlibsuff= libmagic=32-bit;;
19361    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19362      libsuff=32 shlibsuff=N32 libmagic=N32;;
19363    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19364      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19365    *) libsuff= shlibsuff= libmagic=never-match;;
19366    esac
19367    ;;
19368  esac
19369  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19370  shlibpath_overrides_runpath=no
19371  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19372  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19373  hardcode_into_libs=yes
19374  ;;
19375
19376# No shared lib support for Linux oldld, aout, or coff.
19377linux*oldld* | linux*aout* | linux*coff*)
19378  dynamic_linker=no
19379  ;;
19380
19381# This must be Linux ELF.
19382linux* | k*bsd*-gnu)
19383  version_type=linux
19384  need_lib_prefix=no
19385  need_version=no
19386  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19387  soname_spec='${libname}${release}${shared_ext}$major'
19388  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19389  shlibpath_var=LD_LIBRARY_PATH
19390  shlibpath_overrides_runpath=no
19391  # This implies no fast_install, which is unacceptable.
19392  # Some rework will be needed to allow for fast_install
19393  # before this can be enabled.
19394  hardcode_into_libs=yes
19395
19396  # Append ld.so.conf contents to the search path
19397  if test -f /etc/ld.so.conf; then
19398    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19399    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19400  fi
19401
19402  # We used to test for /lib/ld.so.1 and disable shared libraries on
19403  # powerpc, because MkLinux only supported shared libraries with the
19404  # GNU dynamic linker.  Since this was broken with cross compilers,
19405  # most powerpc-linux boxes support dynamic linking these days and
19406  # people can always --disable-shared, the test was removed, and we
19407  # assume the GNU/Linux dynamic linker is in use.
19408  dynamic_linker='GNU/Linux ld.so'
19409  ;;
19410
19411netbsdelf*-gnu)
19412  version_type=linux
19413  need_lib_prefix=no
19414  need_version=no
19415  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19416  soname_spec='${libname}${release}${shared_ext}$major'
19417  shlibpath_var=LD_LIBRARY_PATH
19418  shlibpath_overrides_runpath=no
19419  hardcode_into_libs=yes
19420  dynamic_linker='NetBSD ld.elf_so'
19421  ;;
19422
19423netbsd*)
19424  version_type=sunos
19425  need_lib_prefix=no
19426  need_version=no
19427  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19428    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19429    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19430    dynamic_linker='NetBSD (a.out) ld.so'
19431  else
19432    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19433    soname_spec='${libname}${release}${shared_ext}$major'
19434    dynamic_linker='NetBSD ld.elf_so'
19435  fi
19436  shlibpath_var=LD_LIBRARY_PATH
19437  shlibpath_overrides_runpath=yes
19438  hardcode_into_libs=yes
19439  ;;
19440
19441newsos6)
19442  version_type=linux
19443  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19444  shlibpath_var=LD_LIBRARY_PATH
19445  shlibpath_overrides_runpath=yes
19446  ;;
19447
19448nto-qnx*)
19449  version_type=linux
19450  need_lib_prefix=no
19451  need_version=no
19452  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19453  soname_spec='${libname}${release}${shared_ext}$major'
19454  shlibpath_var=LD_LIBRARY_PATH
19455  shlibpath_overrides_runpath=yes
19456  ;;
19457
19458openbsd*)
19459  version_type=sunos
19460  sys_lib_dlsearch_path_spec="/usr/lib"
19461  need_lib_prefix=no
19462  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19463  case $host_os in
19464    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19465    *)                         need_version=no  ;;
19466  esac
19467  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19468  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19469  shlibpath_var=LD_LIBRARY_PATH
19470  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19471    case $host_os in
19472      openbsd2.[89] | openbsd2.[89].*)
19473	shlibpath_overrides_runpath=no
19474	;;
19475      *)
19476	shlibpath_overrides_runpath=yes
19477	;;
19478      esac
19479  else
19480    shlibpath_overrides_runpath=yes
19481  fi
19482  ;;
19483
19484os2*)
19485  libname_spec='$name'
19486  shrext_cmds=".dll"
19487  need_lib_prefix=no
19488  library_names_spec='$libname${shared_ext} $libname.a'
19489  dynamic_linker='OS/2 ld.exe'
19490  shlibpath_var=LIBPATH
19491  ;;
19492
19493osf3* | osf4* | osf5*)
19494  version_type=osf
19495  need_lib_prefix=no
19496  need_version=no
19497  soname_spec='${libname}${release}${shared_ext}$major'
19498  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19499  shlibpath_var=LD_LIBRARY_PATH
19500  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19501  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19502  ;;
19503
19504solaris*)
19505  version_type=linux
19506  need_lib_prefix=no
19507  need_version=no
19508  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19509  soname_spec='${libname}${release}${shared_ext}$major'
19510  shlibpath_var=LD_LIBRARY_PATH
19511  shlibpath_overrides_runpath=yes
19512  hardcode_into_libs=yes
19513  # ldd complains unless libraries are executable
19514  postinstall_cmds='chmod +x $lib'
19515  ;;
19516
19517sunos4*)
19518  version_type=sunos
19519  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19520  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19521  shlibpath_var=LD_LIBRARY_PATH
19522  shlibpath_overrides_runpath=yes
19523  if test "$with_gnu_ld" = yes; then
19524    need_lib_prefix=no
19525  fi
19526  need_version=yes
19527  ;;
19528
19529sysv4 | sysv4.3*)
19530  version_type=linux
19531  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19532  soname_spec='${libname}${release}${shared_ext}$major'
19533  shlibpath_var=LD_LIBRARY_PATH
19534  case $host_vendor in
19535    sni)
19536      shlibpath_overrides_runpath=no
19537      need_lib_prefix=no
19538      export_dynamic_flag_spec='${wl}-Blargedynsym'
19539      runpath_var=LD_RUN_PATH
19540      ;;
19541    siemens)
19542      need_lib_prefix=no
19543      ;;
19544    motorola)
19545      need_lib_prefix=no
19546      need_version=no
19547      shlibpath_overrides_runpath=no
19548      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19549      ;;
19550  esac
19551  ;;
19552
19553sysv4*MP*)
19554  if test -d /usr/nec ;then
19555    version_type=linux
19556    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19557    soname_spec='$libname${shared_ext}.$major'
19558    shlibpath_var=LD_LIBRARY_PATH
19559  fi
19560  ;;
19561
19562sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19563  version_type=freebsd-elf
19564  need_lib_prefix=no
19565  need_version=no
19566  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19567  soname_spec='${libname}${release}${shared_ext}$major'
19568  shlibpath_var=LD_LIBRARY_PATH
19569  hardcode_into_libs=yes
19570  if test "$with_gnu_ld" = yes; then
19571    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19572    shlibpath_overrides_runpath=no
19573  else
19574    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19575    shlibpath_overrides_runpath=yes
19576    case $host_os in
19577      sco3.2v5*)
19578        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19579	;;
19580    esac
19581  fi
19582  sys_lib_dlsearch_path_spec='/usr/lib'
19583  ;;
19584
19585uts4*)
19586  version_type=linux
19587  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19588  soname_spec='${libname}${release}${shared_ext}$major'
19589  shlibpath_var=LD_LIBRARY_PATH
19590  ;;
19591
19592*)
19593  dynamic_linker=no
19594  ;;
19595esac
19596{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19597echo "${ECHO_T}$dynamic_linker" >&6; }
19598test "$dynamic_linker" = no && can_build_shared=no
19599
19600variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19601if test "$GCC" = yes; then
19602  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19603fi
19604
19605{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19606echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19607hardcode_action_GCJ=
19608if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19609   test -n "$runpath_var_GCJ" || \
19610   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19611
19612  # We can hardcode non-existant directories.
19613  if test "$hardcode_direct_GCJ" != no &&
19614     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19615     # have to relink, otherwise we might link with an installed library
19616     # when we should be linking with a yet-to-be-installed one
19617     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19618     test "$hardcode_minus_L_GCJ" != no; then
19619    # Linking always hardcodes the temporary library directory.
19620    hardcode_action_GCJ=relink
19621  else
19622    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19623    hardcode_action_GCJ=immediate
19624  fi
19625else
19626  # We cannot hardcode anything, or else we can only hardcode existing
19627  # directories.
19628  hardcode_action_GCJ=unsupported
19629fi
19630{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19631echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19632
19633if test "$hardcode_action_GCJ" = relink; then
19634  # Fast installation is not supported
19635  enable_fast_install=no
19636elif test "$shlibpath_overrides_runpath" = yes ||
19637     test "$enable_shared" = no; then
19638  # Fast installation is not necessary
19639  enable_fast_install=needless
19640fi
19641
19642
19643# The else clause should only fire when bootstrapping the
19644# libtool distribution, otherwise you forgot to ship ltmain.sh
19645# with your package, and you will get complaints that there are
19646# no rules to generate ltmain.sh.
19647if test -f "$ltmain"; then
19648  # See if we are running on zsh, and set the options which allow our commands through
19649  # without removal of \ escapes.
19650  if test -n "${ZSH_VERSION+set}" ; then
19651    setopt NO_GLOB_SUBST
19652  fi
19653  # Now quote all the things that may contain metacharacters while being
19654  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19655  # variables and quote the copies for generation of the libtool script.
19656  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19657    SED SHELL STRIP \
19658    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19659    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19660    deplibs_check_method reload_flag reload_cmds need_locks \
19661    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19662    lt_cv_sys_global_symbol_to_c_name_address \
19663    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19664    old_postinstall_cmds old_postuninstall_cmds \
19665    compiler_GCJ \
19666    CC_GCJ \
19667    LD_GCJ \
19668    lt_prog_compiler_wl_GCJ \
19669    lt_prog_compiler_pic_GCJ \
19670    lt_prog_compiler_static_GCJ \
19671    lt_prog_compiler_no_builtin_flag_GCJ \
19672    export_dynamic_flag_spec_GCJ \
19673    thread_safe_flag_spec_GCJ \
19674    whole_archive_flag_spec_GCJ \
19675    enable_shared_with_static_runtimes_GCJ \
19676    old_archive_cmds_GCJ \
19677    old_archive_from_new_cmds_GCJ \
19678    predep_objects_GCJ \
19679    postdep_objects_GCJ \
19680    predeps_GCJ \
19681    postdeps_GCJ \
19682    compiler_lib_search_path_GCJ \
19683    archive_cmds_GCJ \
19684    archive_expsym_cmds_GCJ \
19685    postinstall_cmds_GCJ \
19686    postuninstall_cmds_GCJ \
19687    old_archive_from_expsyms_cmds_GCJ \
19688    allow_undefined_flag_GCJ \
19689    no_undefined_flag_GCJ \
19690    export_symbols_cmds_GCJ \
19691    hardcode_libdir_flag_spec_GCJ \
19692    hardcode_libdir_flag_spec_ld_GCJ \
19693    hardcode_libdir_separator_GCJ \
19694    hardcode_automatic_GCJ \
19695    module_cmds_GCJ \
19696    module_expsym_cmds_GCJ \
19697    lt_cv_prog_compiler_c_o_GCJ \
19698    exclude_expsyms_GCJ \
19699    include_expsyms_GCJ; do
19700
19701    case $var in
19702    old_archive_cmds_GCJ | \
19703    old_archive_from_new_cmds_GCJ | \
19704    archive_cmds_GCJ | \
19705    archive_expsym_cmds_GCJ | \
19706    module_cmds_GCJ | \
19707    module_expsym_cmds_GCJ | \
19708    old_archive_from_expsyms_cmds_GCJ | \
19709    export_symbols_cmds_GCJ | \
19710    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19711    postinstall_cmds | postuninstall_cmds | \
19712    old_postinstall_cmds | old_postuninstall_cmds | \
19713    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19714      # Double-quote double-evaled strings.
19715      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19716      ;;
19717    *)
19718      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19719      ;;
19720    esac
19721  done
19722
19723  case $lt_echo in
19724  *'\$0 --fallback-echo"')
19725    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19726    ;;
19727  esac
19728
19729cfgfile="$ofile"
19730
19731  cat <<__EOF__ >> "$cfgfile"
19732# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19733
19734# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19735
19736# Shell to use when invoking shell scripts.
19737SHELL=$lt_SHELL
19738
19739# Whether or not to build shared libraries.
19740build_libtool_libs=$enable_shared
19741
19742# Whether or not to build static libraries.
19743build_old_libs=$enable_static
19744
19745# Whether or not to add -lc for building shared libraries.
19746build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19747
19748# Whether or not to disallow shared libs when runtime libs are static
19749allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19750
19751# Whether or not to optimize for fast installation.
19752fast_install=$enable_fast_install
19753
19754# The host system.
19755host_alias=$host_alias
19756host=$host
19757host_os=$host_os
19758
19759# The build system.
19760build_alias=$build_alias
19761build=$build
19762build_os=$build_os
19763
19764# An echo program that does not interpret backslashes.
19765echo=$lt_echo
19766
19767# The archiver.
19768AR=$lt_AR
19769AR_FLAGS=$lt_AR_FLAGS
19770
19771# A C compiler.
19772LTCC=$lt_LTCC
19773
19774# LTCC compiler flags.
19775LTCFLAGS=$lt_LTCFLAGS
19776
19777# A language-specific compiler.
19778CC=$lt_compiler_GCJ
19779
19780# Is the compiler the GNU C compiler?
19781with_gcc=$GCC_GCJ
19782
19783# An ERE matcher.
19784EGREP=$lt_EGREP
19785
19786# The linker used to build libraries.
19787LD=$lt_LD_GCJ
19788
19789# Whether we need hard or soft links.
19790LN_S=$lt_LN_S
19791
19792# A BSD-compatible nm program.
19793NM=$lt_NM
19794
19795# A symbol stripping program
19796STRIP=$lt_STRIP
19797
19798# Used to examine libraries when file_magic_cmd begins "file"
19799MAGIC_CMD=$MAGIC_CMD
19800
19801# Used on cygwin: DLL creation program.
19802DLLTOOL="$DLLTOOL"
19803
19804# Used on cygwin: object dumper.
19805OBJDUMP="$OBJDUMP"
19806
19807# Used on cygwin: assembler.
19808AS="$AS"
19809
19810# The name of the directory that contains temporary libtool files.
19811objdir=$objdir
19812
19813# How to create reloadable object files.
19814reload_flag=$lt_reload_flag
19815reload_cmds=$lt_reload_cmds
19816
19817# How to pass a linker flag through the compiler.
19818wl=$lt_lt_prog_compiler_wl_GCJ
19819
19820# Object file suffix (normally "o").
19821objext="$ac_objext"
19822
19823# Old archive suffix (normally "a").
19824libext="$libext"
19825
19826# Shared library suffix (normally ".so").
19827shrext_cmds='$shrext_cmds'
19828
19829# Executable file suffix (normally "").
19830exeext="$exeext"
19831
19832# Additional compiler flags for building library objects.
19833pic_flag=$lt_lt_prog_compiler_pic_GCJ
19834pic_mode=$pic_mode
19835
19836# What is the maximum length of a command?
19837max_cmd_len=$lt_cv_sys_max_cmd_len
19838
19839# Does compiler simultaneously support -c and -o options?
19840compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19841
19842# Must we lock files when doing compilation?
19843need_locks=$lt_need_locks
19844
19845# Do we need the lib prefix for modules?
19846need_lib_prefix=$need_lib_prefix
19847
19848# Do we need a version for libraries?
19849need_version=$need_version
19850
19851# Whether dlopen is supported.
19852dlopen_support=$enable_dlopen
19853
19854# Whether dlopen of programs is supported.
19855dlopen_self=$enable_dlopen_self
19856
19857# Whether dlopen of statically linked programs is supported.
19858dlopen_self_static=$enable_dlopen_self_static
19859
19860# Compiler flag to prevent dynamic linking.
19861link_static_flag=$lt_lt_prog_compiler_static_GCJ
19862
19863# Compiler flag to turn off builtin functions.
19864no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19865
19866# Compiler flag to allow reflexive dlopens.
19867export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19868
19869# Compiler flag to generate shared objects directly from archives.
19870whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19871
19872# Compiler flag to generate thread-safe objects.
19873thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19874
19875# Library versioning type.
19876version_type=$version_type
19877
19878# Format of library name prefix.
19879libname_spec=$lt_libname_spec
19880
19881# List of archive names.  First name is the real one, the rest are links.
19882# The last name is the one that the linker finds with -lNAME.
19883library_names_spec=$lt_library_names_spec
19884
19885# The coded name of the library, if different from the real name.
19886soname_spec=$lt_soname_spec
19887
19888# Commands used to build and install an old-style archive.
19889RANLIB=$lt_RANLIB
19890old_archive_cmds=$lt_old_archive_cmds_GCJ
19891old_postinstall_cmds=$lt_old_postinstall_cmds
19892old_postuninstall_cmds=$lt_old_postuninstall_cmds
19893
19894# Create an old-style archive from a shared archive.
19895old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19896
19897# Create a temporary old-style archive to link instead of a shared archive.
19898old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19899
19900# Commands used to build and install a shared archive.
19901archive_cmds=$lt_archive_cmds_GCJ
19902archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19903postinstall_cmds=$lt_postinstall_cmds
19904postuninstall_cmds=$lt_postuninstall_cmds
19905
19906# Commands used to build a loadable module (assumed same as above if empty)
19907module_cmds=$lt_module_cmds_GCJ
19908module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19909
19910# Commands to strip libraries.
19911old_striplib=$lt_old_striplib
19912striplib=$lt_striplib
19913
19914# Dependencies to place before the objects being linked to create a
19915# shared library.
19916predep_objects=$lt_predep_objects_GCJ
19917
19918# Dependencies to place after the objects being linked to create a
19919# shared library.
19920postdep_objects=$lt_postdep_objects_GCJ
19921
19922# Dependencies to place before the objects being linked to create a
19923# shared library.
19924predeps=$lt_predeps_GCJ
19925
19926# Dependencies to place after the objects being linked to create a
19927# shared library.
19928postdeps=$lt_postdeps_GCJ
19929
19930# The library search path used internally by the compiler when linking
19931# a shared library.
19932compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19933
19934# Method to check whether dependent libraries are shared objects.
19935deplibs_check_method=$lt_deplibs_check_method
19936
19937# Command to use when deplibs_check_method == file_magic.
19938file_magic_cmd=$lt_file_magic_cmd
19939
19940# Flag that allows shared libraries with undefined symbols to be built.
19941allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19942
19943# Flag that forces no undefined symbols.
19944no_undefined_flag=$lt_no_undefined_flag_GCJ
19945
19946# Commands used to finish a libtool library installation in a directory.
19947finish_cmds=$lt_finish_cmds
19948
19949# Same as above, but a single script fragment to be evaled but not shown.
19950finish_eval=$lt_finish_eval
19951
19952# Take the output of nm and produce a listing of raw symbols and C names.
19953global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19954
19955# Transform the output of nm in a proper C declaration
19956global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19957
19958# Transform the output of nm in a C name address pair
19959global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19960
19961# This is the shared library runtime path variable.
19962runpath_var=$runpath_var
19963
19964# This is the shared library path variable.
19965shlibpath_var=$shlibpath_var
19966
19967# Is shlibpath searched before the hard-coded library search path?
19968shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19969
19970# How to hardcode a shared library path into an executable.
19971hardcode_action=$hardcode_action_GCJ
19972
19973# Whether we should hardcode library paths into libraries.
19974hardcode_into_libs=$hardcode_into_libs
19975
19976# Flag to hardcode \$libdir into a binary during linking.
19977# This must work even if \$libdir does not exist.
19978hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19979
19980# If ld is used when linking, flag to hardcode \$libdir into
19981# a binary during linking. This must work even if \$libdir does
19982# not exist.
19983hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19984
19985# Whether we need a single -rpath flag with a separated argument.
19986hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19987
19988# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19989# resulting binary.
19990hardcode_direct=$hardcode_direct_GCJ
19991
19992# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19993# resulting binary.
19994hardcode_minus_L=$hardcode_minus_L_GCJ
19995
19996# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19997# the resulting binary.
19998hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19999
20000# Set to yes if building a shared library automatically hardcodes DIR into the library
20001# and all subsequent libraries and executables linked against it.
20002hardcode_automatic=$hardcode_automatic_GCJ
20003
20004# Variables whose values should be saved in libtool wrapper scripts and
20005# restored at relink time.
20006variables_saved_for_relink="$variables_saved_for_relink"
20007
20008# Whether libtool must link a program against all its dependency libraries.
20009link_all_deplibs=$link_all_deplibs_GCJ
20010
20011# Compile-time system search path for libraries
20012sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20013
20014# Run-time system search path for libraries
20015sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20016
20017# Fix the shell variable \$srcfile for the compiler.
20018fix_srcfile_path="$fix_srcfile_path_GCJ"
20019
20020# Set to yes if exported symbols are required.
20021always_export_symbols=$always_export_symbols_GCJ
20022
20023# The commands to list exported symbols.
20024export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20025
20026# The commands to extract the exported symbol list from a shared archive.
20027extract_expsyms_cmds=$lt_extract_expsyms_cmds
20028
20029# Symbols that should not be listed in the preloaded symbols.
20030exclude_expsyms=$lt_exclude_expsyms_GCJ
20031
20032# Symbols that must always be exported.
20033include_expsyms=$lt_include_expsyms_GCJ
20034
20035# ### END LIBTOOL TAG CONFIG: $tagname
20036
20037__EOF__
20038
20039
20040else
20041  # If there is no Makefile yet, we rely on a make rule to execute
20042  # `config.status --recheck' to rerun these tests and create the
20043  # libtool script then.
20044  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20045  if test -f "$ltmain_in"; then
20046    test -f Makefile && make "$ltmain"
20047  fi
20048fi
20049
20050
20051ac_ext=c
20052ac_cpp='$CPP $CPPFLAGS'
20053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20055ac_compiler_gnu=$ac_cv_c_compiler_gnu
20056
20057CC="$lt_save_CC"
20058
20059	else
20060	  tagname=""
20061	fi
20062	;;
20063
20064      RC)
20065
20066
20067# Source file extension for RC test sources.
20068ac_ext=rc
20069
20070# Object file extension for compiled RC test sources.
20071objext=o
20072objext_RC=$objext
20073
20074# Code to be used in simple compile tests
20075lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20076
20077# Code to be used in simple link tests
20078lt_simple_link_test_code="$lt_simple_compile_test_code"
20079
20080# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20081
20082# If no C compiler was specified, use CC.
20083LTCC=${LTCC-"$CC"}
20084
20085# If no C compiler flags were specified, use CFLAGS.
20086LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20087
20088# Allow CC to be a program name with arguments.
20089compiler=$CC
20090
20091
20092# save warnings/boilerplate of simple test code
20093ac_outfile=conftest.$ac_objext
20094printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20095eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20096_lt_compiler_boilerplate=`cat conftest.err`
20097$rm conftest*
20098
20099ac_outfile=conftest.$ac_objext
20100printf "$lt_simple_link_test_code" >conftest.$ac_ext
20101eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20102_lt_linker_boilerplate=`cat conftest.err`
20103$rm conftest*
20104
20105
20106# Allow CC to be a program name with arguments.
20107lt_save_CC="$CC"
20108CC=${RC-"windres"}
20109compiler=$CC
20110compiler_RC=$CC
20111for cc_temp in $compiler""; do
20112  case $cc_temp in
20113    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20114    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20115    \-*) ;;
20116    *) break;;
20117  esac
20118done
20119cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20120
20121lt_cv_prog_compiler_c_o_RC=yes
20122
20123# The else clause should only fire when bootstrapping the
20124# libtool distribution, otherwise you forgot to ship ltmain.sh
20125# with your package, and you will get complaints that there are
20126# no rules to generate ltmain.sh.
20127if test -f "$ltmain"; then
20128  # See if we are running on zsh, and set the options which allow our commands through
20129  # without removal of \ escapes.
20130  if test -n "${ZSH_VERSION+set}" ; then
20131    setopt NO_GLOB_SUBST
20132  fi
20133  # Now quote all the things that may contain metacharacters while being
20134  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20135  # variables and quote the copies for generation of the libtool script.
20136  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20137    SED SHELL STRIP \
20138    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20139    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20140    deplibs_check_method reload_flag reload_cmds need_locks \
20141    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20142    lt_cv_sys_global_symbol_to_c_name_address \
20143    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20144    old_postinstall_cmds old_postuninstall_cmds \
20145    compiler_RC \
20146    CC_RC \
20147    LD_RC \
20148    lt_prog_compiler_wl_RC \
20149    lt_prog_compiler_pic_RC \
20150    lt_prog_compiler_static_RC \
20151    lt_prog_compiler_no_builtin_flag_RC \
20152    export_dynamic_flag_spec_RC \
20153    thread_safe_flag_spec_RC \
20154    whole_archive_flag_spec_RC \
20155    enable_shared_with_static_runtimes_RC \
20156    old_archive_cmds_RC \
20157    old_archive_from_new_cmds_RC \
20158    predep_objects_RC \
20159    postdep_objects_RC \
20160    predeps_RC \
20161    postdeps_RC \
20162    compiler_lib_search_path_RC \
20163    archive_cmds_RC \
20164    archive_expsym_cmds_RC \
20165    postinstall_cmds_RC \
20166    postuninstall_cmds_RC \
20167    old_archive_from_expsyms_cmds_RC \
20168    allow_undefined_flag_RC \
20169    no_undefined_flag_RC \
20170    export_symbols_cmds_RC \
20171    hardcode_libdir_flag_spec_RC \
20172    hardcode_libdir_flag_spec_ld_RC \
20173    hardcode_libdir_separator_RC \
20174    hardcode_automatic_RC \
20175    module_cmds_RC \
20176    module_expsym_cmds_RC \
20177    lt_cv_prog_compiler_c_o_RC \
20178    exclude_expsyms_RC \
20179    include_expsyms_RC; do
20180
20181    case $var in
20182    old_archive_cmds_RC | \
20183    old_archive_from_new_cmds_RC | \
20184    archive_cmds_RC | \
20185    archive_expsym_cmds_RC | \
20186    module_cmds_RC | \
20187    module_expsym_cmds_RC | \
20188    old_archive_from_expsyms_cmds_RC | \
20189    export_symbols_cmds_RC | \
20190    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20191    postinstall_cmds | postuninstall_cmds | \
20192    old_postinstall_cmds | old_postuninstall_cmds | \
20193    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20194      # Double-quote double-evaled strings.
20195      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20196      ;;
20197    *)
20198      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20199      ;;
20200    esac
20201  done
20202
20203  case $lt_echo in
20204  *'\$0 --fallback-echo"')
20205    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20206    ;;
20207  esac
20208
20209cfgfile="$ofile"
20210
20211  cat <<__EOF__ >> "$cfgfile"
20212# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20213
20214# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20215
20216# Shell to use when invoking shell scripts.
20217SHELL=$lt_SHELL
20218
20219# Whether or not to build shared libraries.
20220build_libtool_libs=$enable_shared
20221
20222# Whether or not to build static libraries.
20223build_old_libs=$enable_static
20224
20225# Whether or not to add -lc for building shared libraries.
20226build_libtool_need_lc=$archive_cmds_need_lc_RC
20227
20228# Whether or not to disallow shared libs when runtime libs are static
20229allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20230
20231# Whether or not to optimize for fast installation.
20232fast_install=$enable_fast_install
20233
20234# The host system.
20235host_alias=$host_alias
20236host=$host
20237host_os=$host_os
20238
20239# The build system.
20240build_alias=$build_alias
20241build=$build
20242build_os=$build_os
20243
20244# An echo program that does not interpret backslashes.
20245echo=$lt_echo
20246
20247# The archiver.
20248AR=$lt_AR
20249AR_FLAGS=$lt_AR_FLAGS
20250
20251# A C compiler.
20252LTCC=$lt_LTCC
20253
20254# LTCC compiler flags.
20255LTCFLAGS=$lt_LTCFLAGS
20256
20257# A language-specific compiler.
20258CC=$lt_compiler_RC
20259
20260# Is the compiler the GNU C compiler?
20261with_gcc=$GCC_RC
20262
20263# An ERE matcher.
20264EGREP=$lt_EGREP
20265
20266# The linker used to build libraries.
20267LD=$lt_LD_RC
20268
20269# Whether we need hard or soft links.
20270LN_S=$lt_LN_S
20271
20272# A BSD-compatible nm program.
20273NM=$lt_NM
20274
20275# A symbol stripping program
20276STRIP=$lt_STRIP
20277
20278# Used to examine libraries when file_magic_cmd begins "file"
20279MAGIC_CMD=$MAGIC_CMD
20280
20281# Used on cygwin: DLL creation program.
20282DLLTOOL="$DLLTOOL"
20283
20284# Used on cygwin: object dumper.
20285OBJDUMP="$OBJDUMP"
20286
20287# Used on cygwin: assembler.
20288AS="$AS"
20289
20290# The name of the directory that contains temporary libtool files.
20291objdir=$objdir
20292
20293# How to create reloadable object files.
20294reload_flag=$lt_reload_flag
20295reload_cmds=$lt_reload_cmds
20296
20297# How to pass a linker flag through the compiler.
20298wl=$lt_lt_prog_compiler_wl_RC
20299
20300# Object file suffix (normally "o").
20301objext="$ac_objext"
20302
20303# Old archive suffix (normally "a").
20304libext="$libext"
20305
20306# Shared library suffix (normally ".so").
20307shrext_cmds='$shrext_cmds'
20308
20309# Executable file suffix (normally "").
20310exeext="$exeext"
20311
20312# Additional compiler flags for building library objects.
20313pic_flag=$lt_lt_prog_compiler_pic_RC
20314pic_mode=$pic_mode
20315
20316# What is the maximum length of a command?
20317max_cmd_len=$lt_cv_sys_max_cmd_len
20318
20319# Does compiler simultaneously support -c and -o options?
20320compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20321
20322# Must we lock files when doing compilation?
20323need_locks=$lt_need_locks
20324
20325# Do we need the lib prefix for modules?
20326need_lib_prefix=$need_lib_prefix
20327
20328# Do we need a version for libraries?
20329need_version=$need_version
20330
20331# Whether dlopen is supported.
20332dlopen_support=$enable_dlopen
20333
20334# Whether dlopen of programs is supported.
20335dlopen_self=$enable_dlopen_self
20336
20337# Whether dlopen of statically linked programs is supported.
20338dlopen_self_static=$enable_dlopen_self_static
20339
20340# Compiler flag to prevent dynamic linking.
20341link_static_flag=$lt_lt_prog_compiler_static_RC
20342
20343# Compiler flag to turn off builtin functions.
20344no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20345
20346# Compiler flag to allow reflexive dlopens.
20347export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20348
20349# Compiler flag to generate shared objects directly from archives.
20350whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20351
20352# Compiler flag to generate thread-safe objects.
20353thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20354
20355# Library versioning type.
20356version_type=$version_type
20357
20358# Format of library name prefix.
20359libname_spec=$lt_libname_spec
20360
20361# List of archive names.  First name is the real one, the rest are links.
20362# The last name is the one that the linker finds with -lNAME.
20363library_names_spec=$lt_library_names_spec
20364
20365# The coded name of the library, if different from the real name.
20366soname_spec=$lt_soname_spec
20367
20368# Commands used to build and install an old-style archive.
20369RANLIB=$lt_RANLIB
20370old_archive_cmds=$lt_old_archive_cmds_RC
20371old_postinstall_cmds=$lt_old_postinstall_cmds
20372old_postuninstall_cmds=$lt_old_postuninstall_cmds
20373
20374# Create an old-style archive from a shared archive.
20375old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20376
20377# Create a temporary old-style archive to link instead of a shared archive.
20378old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20379
20380# Commands used to build and install a shared archive.
20381archive_cmds=$lt_archive_cmds_RC
20382archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20383postinstall_cmds=$lt_postinstall_cmds
20384postuninstall_cmds=$lt_postuninstall_cmds
20385
20386# Commands used to build a loadable module (assumed same as above if empty)
20387module_cmds=$lt_module_cmds_RC
20388module_expsym_cmds=$lt_module_expsym_cmds_RC
20389
20390# Commands to strip libraries.
20391old_striplib=$lt_old_striplib
20392striplib=$lt_striplib
20393
20394# Dependencies to place before the objects being linked to create a
20395# shared library.
20396predep_objects=$lt_predep_objects_RC
20397
20398# Dependencies to place after the objects being linked to create a
20399# shared library.
20400postdep_objects=$lt_postdep_objects_RC
20401
20402# Dependencies to place before the objects being linked to create a
20403# shared library.
20404predeps=$lt_predeps_RC
20405
20406# Dependencies to place after the objects being linked to create a
20407# shared library.
20408postdeps=$lt_postdeps_RC
20409
20410# The library search path used internally by the compiler when linking
20411# a shared library.
20412compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20413
20414# Method to check whether dependent libraries are shared objects.
20415deplibs_check_method=$lt_deplibs_check_method
20416
20417# Command to use when deplibs_check_method == file_magic.
20418file_magic_cmd=$lt_file_magic_cmd
20419
20420# Flag that allows shared libraries with undefined symbols to be built.
20421allow_undefined_flag=$lt_allow_undefined_flag_RC
20422
20423# Flag that forces no undefined symbols.
20424no_undefined_flag=$lt_no_undefined_flag_RC
20425
20426# Commands used to finish a libtool library installation in a directory.
20427finish_cmds=$lt_finish_cmds
20428
20429# Same as above, but a single script fragment to be evaled but not shown.
20430finish_eval=$lt_finish_eval
20431
20432# Take the output of nm and produce a listing of raw symbols and C names.
20433global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20434
20435# Transform the output of nm in a proper C declaration
20436global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20437
20438# Transform the output of nm in a C name address pair
20439global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20440
20441# This is the shared library runtime path variable.
20442runpath_var=$runpath_var
20443
20444# This is the shared library path variable.
20445shlibpath_var=$shlibpath_var
20446
20447# Is shlibpath searched before the hard-coded library search path?
20448shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20449
20450# How to hardcode a shared library path into an executable.
20451hardcode_action=$hardcode_action_RC
20452
20453# Whether we should hardcode library paths into libraries.
20454hardcode_into_libs=$hardcode_into_libs
20455
20456# Flag to hardcode \$libdir into a binary during linking.
20457# This must work even if \$libdir does not exist.
20458hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20459
20460# If ld is used when linking, flag to hardcode \$libdir into
20461# a binary during linking. This must work even if \$libdir does
20462# not exist.
20463hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20464
20465# Whether we need a single -rpath flag with a separated argument.
20466hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20467
20468# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20469# resulting binary.
20470hardcode_direct=$hardcode_direct_RC
20471
20472# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20473# resulting binary.
20474hardcode_minus_L=$hardcode_minus_L_RC
20475
20476# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20477# the resulting binary.
20478hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20479
20480# Set to yes if building a shared library automatically hardcodes DIR into the library
20481# and all subsequent libraries and executables linked against it.
20482hardcode_automatic=$hardcode_automatic_RC
20483
20484# Variables whose values should be saved in libtool wrapper scripts and
20485# restored at relink time.
20486variables_saved_for_relink="$variables_saved_for_relink"
20487
20488# Whether libtool must link a program against all its dependency libraries.
20489link_all_deplibs=$link_all_deplibs_RC
20490
20491# Compile-time system search path for libraries
20492sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20493
20494# Run-time system search path for libraries
20495sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20496
20497# Fix the shell variable \$srcfile for the compiler.
20498fix_srcfile_path="$fix_srcfile_path_RC"
20499
20500# Set to yes if exported symbols are required.
20501always_export_symbols=$always_export_symbols_RC
20502
20503# The commands to list exported symbols.
20504export_symbols_cmds=$lt_export_symbols_cmds_RC
20505
20506# The commands to extract the exported symbol list from a shared archive.
20507extract_expsyms_cmds=$lt_extract_expsyms_cmds
20508
20509# Symbols that should not be listed in the preloaded symbols.
20510exclude_expsyms=$lt_exclude_expsyms_RC
20511
20512# Symbols that must always be exported.
20513include_expsyms=$lt_include_expsyms_RC
20514
20515# ### END LIBTOOL TAG CONFIG: $tagname
20516
20517__EOF__
20518
20519
20520else
20521  # If there is no Makefile yet, we rely on a make rule to execute
20522  # `config.status --recheck' to rerun these tests and create the
20523  # libtool script then.
20524  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20525  if test -f "$ltmain_in"; then
20526    test -f Makefile && make "$ltmain"
20527  fi
20528fi
20529
20530
20531ac_ext=c
20532ac_cpp='$CPP $CPPFLAGS'
20533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20535ac_compiler_gnu=$ac_cv_c_compiler_gnu
20536
20537CC="$lt_save_CC"
20538
20539	;;
20540
20541      *)
20542	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20543echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20544   { (exit 1); exit 1; }; }
20545	;;
20546      esac
20547
20548      # Append the new tag name to the list of available tags.
20549      if test -n "$tagname" ; then
20550      available_tags="$available_tags $tagname"
20551    fi
20552    fi
20553  done
20554  IFS="$lt_save_ifs"
20555
20556  # Now substitute the updated list of available tags.
20557  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20558    mv "${ofile}T" "$ofile"
20559    chmod +x "$ofile"
20560  else
20561    rm -f "${ofile}T"
20562    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20563echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20564   { (exit 1); exit 1; }; }
20565  fi
20566fi
20567
20568
20569
20570# This can be used to rebuild libtool when needed
20571LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20572
20573# Always use our own libtool.
20574LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20575
20576# Prevent multiple expansion
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600cat >>confdefs.h <<_ACEOF
20601#define DEFAULT_GLOBALCONFIG "${sysconfdir}/smi.conf"
20602_ACEOF
20603
20604
20605
20606cat >>confdefs.h <<\_ACEOF
20607#define DEFAULT_USERCONFIG ".smirc"
20608_ACEOF
20609
20610
20611if ${CONFIG_SHELL} ./libtool --features | grep "enable static" >/dev/null; then
20612  STATIC=-static
20613else
20614  STATIC=
20615fi
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642ac_config_files="$ac_config_files Makefile lib/Makefile tools/Makefile mibs/Makefile mibs/iana/Makefile mibs/ietf/Makefile mibs/irtf/Makefile mibs/tubs/Makefile mibs/site/Makefile pibs/Makefile pibs/ietf/Makefile pibs/tubs/Makefile pibs/site/Makefile test/Makefile test/mibs/Makefile test/smidiff/Makefile test/dumps/Makefile test/dumps/corba/Makefile test/dumps/imports/Makefile test/dumps/jax/Makefile test/dumps/netsnmp/Makefile test/dumps/mosy/Makefile test/dumps/orig-smiv2/Makefile test/dumps/smilint-smiv2/Makefile test/dumps/sming/Makefile test/dumps/smiv1/Makefile test/dumps/smiv2/Makefile test/dumps/smiv2-smiv2/Makefile test/dumps/tree/Makefile test/dumps/types/Makefile test/dumps/identifiers/Makefile test/dumps/metrics/Makefile test/dumps/xml/Makefile test/dumps/cm/Makefile test/dumps/python/Makefile test/dumps/yang/Makefile doc/Makefile lib/smi.h lib/libsmi.3 lib/smi_macro.3 lib/smi_module.3 lib/smi_node.3 lib/smi_type.3 lib/smi_config.3 lib/smi_render.3 lib/smi_util.3 lib/smi_class.3 lib/smi_attribute.3 lib/smi_event.3 lib/smi_identity.3 tools/smistrip tools/smicache tools/smiquery.1 tools/smilint.1 tools/smidump.1 tools/smidiff.1 tools/smistrip.1 tools/smicache.1 tools/smixlate.1 tools/mib2svg.cgi test/parser.test test/smidump-corba.test test/smidump-jax.test test/smidump-netsnmp.test test/smidump-imports.test test/smidump-mosy.test test/smidump-orig-smiv2.test test/smidump-sming.test test/smidump-yang.test test/smidump-smiv1.test test/smidump-smiv2-smiv2.test test/smidump-smiv2.test test/smidump-tree.test test/smidump-types.test test/smidump-identifiers.test test/smidump-metrics.test test/smidump-xml.test test/smidump-cm.test test/smidump-python.test test/smilint-smiv2.test test/smidiff.test libsmi.pc win/config.h"
20643
20644ac_config_commands="$ac_config_commands default"
20645
20646cat >confcache <<\_ACEOF
20647# This file is a shell script that caches the results of configure
20648# tests run on this system so they can be shared between configure
20649# scripts and configure runs, see configure's option --config-cache.
20650# It is not useful on other systems.  If it contains results you don't
20651# want to keep, you may remove or edit it.
20652#
20653# config.status only pays attention to the cache file if you give it
20654# the --recheck option to rerun configure.
20655#
20656# `ac_cv_env_foo' variables (set or unset) will be overridden when
20657# loading this file, other *unset* `ac_cv_foo' will be assigned the
20658# following values.
20659
20660_ACEOF
20661
20662# The following way of writing the cache mishandles newlines in values,
20663# but we know of no workaround that is simple, portable, and efficient.
20664# So, we kill variables containing newlines.
20665# Ultrix sh set writes to stderr and can't be redirected directly,
20666# and sets the high bit in the cache file unless we assign to the vars.
20667(
20668  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20669    eval ac_val=\$$ac_var
20670    case $ac_val in #(
20671    *${as_nl}*)
20672      case $ac_var in #(
20673      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20674echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20675      esac
20676      case $ac_var in #(
20677      _ | IFS | as_nl) ;; #(
20678      *) $as_unset $ac_var ;;
20679      esac ;;
20680    esac
20681  done
20682
20683  (set) 2>&1 |
20684    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20685    *${as_nl}ac_space=\ *)
20686      # `set' does not quote correctly, so add quotes (double-quote
20687      # substitution turns \\\\ into \\, and sed turns \\ into \).
20688      sed -n \
20689	"s/'/'\\\\''/g;
20690	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20691      ;; #(
20692    *)
20693      # `set' quotes correctly as required by POSIX, so do not add quotes.
20694      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20695      ;;
20696    esac |
20697    sort
20698) |
20699  sed '
20700     /^ac_cv_env_/b end
20701     t clear
20702     :clear
20703     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20704     t end
20705     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20706     :end' >>confcache
20707if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20708  if test -w "$cache_file"; then
20709    test "x$cache_file" != "x/dev/null" &&
20710      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20711echo "$as_me: updating cache $cache_file" >&6;}
20712    cat confcache >$cache_file
20713  else
20714    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20715echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20716  fi
20717fi
20718rm -f confcache
20719
20720test "x$prefix" = xNONE && prefix=$ac_default_prefix
20721# Let make expand exec_prefix.
20722test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20723
20724DEFS=-DHAVE_CONFIG_H
20725
20726ac_libobjs=
20727ac_ltlibobjs=
20728for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20729  # 1. Remove the extension, and $U if already installed.
20730  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20731  ac_i=`echo "$ac_i" | sed "$ac_script"`
20732  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20733  #    will be set to the directory where LIBOBJS objects are built.
20734  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20735  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20736done
20737LIBOBJS=$ac_libobjs
20738
20739LTLIBOBJS=$ac_ltlibobjs
20740
20741
20742if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20743  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20744Usually this means the macro was only invoked conditionally." >&5
20745echo "$as_me: error: conditional \"AMDEP\" was never defined.
20746Usually this means the macro was only invoked conditionally." >&2;}
20747   { (exit 1); exit 1; }; }
20748fi
20749if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20750  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20751Usually this means the macro was only invoked conditionally." >&5
20752echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20753Usually this means the macro was only invoked conditionally." >&2;}
20754   { (exit 1); exit 1; }; }
20755fi
20756if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20757  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20758Usually this means the macro was only invoked conditionally." >&5
20759echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20760Usually this means the macro was only invoked conditionally." >&2;}
20761   { (exit 1); exit 1; }; }
20762fi
20763
20764: ${CONFIG_STATUS=./config.status}
20765ac_clean_files_save=$ac_clean_files
20766ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20767{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20768echo "$as_me: creating $CONFIG_STATUS" >&6;}
20769cat >$CONFIG_STATUS <<_ACEOF
20770#! $SHELL
20771# Generated by $as_me.
20772# Run this file to recreate the current configuration.
20773# Compiler output produced by configure, useful for debugging
20774# configure, is in config.log if it exists.
20775
20776debug=false
20777ac_cs_recheck=false
20778ac_cs_silent=false
20779SHELL=\${CONFIG_SHELL-$SHELL}
20780_ACEOF
20781
20782cat >>$CONFIG_STATUS <<\_ACEOF
20783## --------------------- ##
20784## M4sh Initialization.  ##
20785## --------------------- ##
20786
20787# Be more Bourne compatible
20788DUALCASE=1; export DUALCASE # for MKS sh
20789if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20790  emulate sh
20791  NULLCMD=:
20792  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20793  # is contrary to our usage.  Disable this feature.
20794  alias -g '${1+"$@"}'='"$@"'
20795  setopt NO_GLOB_SUBST
20796else
20797  case `(set -o) 2>/dev/null` in
20798  *posix*) set -o posix ;;
20799esac
20800
20801fi
20802
20803
20804
20805
20806# PATH needs CR
20807# Avoid depending upon Character Ranges.
20808as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20809as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20810as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20811as_cr_digits='0123456789'
20812as_cr_alnum=$as_cr_Letters$as_cr_digits
20813
20814# The user is always right.
20815if test "${PATH_SEPARATOR+set}" != set; then
20816  echo "#! /bin/sh" >conf$$.sh
20817  echo  "exit 0"   >>conf$$.sh
20818  chmod +x conf$$.sh
20819  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20820    PATH_SEPARATOR=';'
20821  else
20822    PATH_SEPARATOR=:
20823  fi
20824  rm -f conf$$.sh
20825fi
20826
20827# Support unset when possible.
20828if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20829  as_unset=unset
20830else
20831  as_unset=false
20832fi
20833
20834
20835# IFS
20836# We need space, tab and new line, in precisely that order.  Quoting is
20837# there to prevent editors from complaining about space-tab.
20838# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20839# splitting by setting IFS to empty value.)
20840as_nl='
20841'
20842IFS=" ""	$as_nl"
20843
20844# Find who we are.  Look in the path if we contain no directory separator.
20845case $0 in
20846  *[\\/]* ) as_myself=$0 ;;
20847  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20848for as_dir in $PATH
20849do
20850  IFS=$as_save_IFS
20851  test -z "$as_dir" && as_dir=.
20852  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20853done
20854IFS=$as_save_IFS
20855
20856     ;;
20857esac
20858# We did not find ourselves, most probably we were run as `sh COMMAND'
20859# in which case we are not to be found in the path.
20860if test "x$as_myself" = x; then
20861  as_myself=$0
20862fi
20863if test ! -f "$as_myself"; then
20864  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20865  { (exit 1); exit 1; }
20866fi
20867
20868# Work around bugs in pre-3.0 UWIN ksh.
20869for as_var in ENV MAIL MAILPATH
20870do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20871done
20872PS1='$ '
20873PS2='> '
20874PS4='+ '
20875
20876# NLS nuisances.
20877for as_var in \
20878  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20879  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20880  LC_TELEPHONE LC_TIME
20881do
20882  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20883    eval $as_var=C; export $as_var
20884  else
20885    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20886  fi
20887done
20888
20889# Required to use basename.
20890if expr a : '\(a\)' >/dev/null 2>&1 &&
20891   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20892  as_expr=expr
20893else
20894  as_expr=false
20895fi
20896
20897if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20898  as_basename=basename
20899else
20900  as_basename=false
20901fi
20902
20903
20904# Name of the executable.
20905as_me=`$as_basename -- "$0" ||
20906$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20907	 X"$0" : 'X\(//\)$' \| \
20908	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20909echo X/"$0" |
20910    sed '/^.*\/\([^/][^/]*\)\/*$/{
20911	    s//\1/
20912	    q
20913	  }
20914	  /^X\/\(\/\/\)$/{
20915	    s//\1/
20916	    q
20917	  }
20918	  /^X\/\(\/\).*/{
20919	    s//\1/
20920	    q
20921	  }
20922	  s/.*/./; q'`
20923
20924# CDPATH.
20925$as_unset CDPATH
20926
20927
20928
20929  as_lineno_1=$LINENO
20930  as_lineno_2=$LINENO
20931  test "x$as_lineno_1" != "x$as_lineno_2" &&
20932  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20933
20934  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20935  # uniformly replaced by the line number.  The first 'sed' inserts a
20936  # line-number line after each line using $LINENO; the second 'sed'
20937  # does the real work.  The second script uses 'N' to pair each
20938  # line-number line with the line containing $LINENO, and appends
20939  # trailing '-' during substitution so that $LINENO is not a special
20940  # case at line end.
20941  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20942  # scripts with optimization help from Paolo Bonzini.  Blame Lee
20943  # E. McMahon (1931-1989) for sed's syntax.  :-)
20944  sed -n '
20945    p
20946    /[$]LINENO/=
20947  ' <$as_myself |
20948    sed '
20949      s/[$]LINENO.*/&-/
20950      t lineno
20951      b
20952      :lineno
20953      N
20954      :loop
20955      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20956      t loop
20957      s/-\n.*//
20958    ' >$as_me.lineno &&
20959  chmod +x "$as_me.lineno" ||
20960    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20961   { (exit 1); exit 1; }; }
20962
20963  # Don't try to exec as it changes $[0], causing all sort of problems
20964  # (the dirname of $[0] is not the place where we might find the
20965  # original and so on.  Autoconf is especially sensitive to this).
20966  . "./$as_me.lineno"
20967  # Exit status is that of the last command.
20968  exit
20969}
20970
20971
20972if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20973  as_dirname=dirname
20974else
20975  as_dirname=false
20976fi
20977
20978ECHO_C= ECHO_N= ECHO_T=
20979case `echo -n x` in
20980-n*)
20981  case `echo 'x\c'` in
20982  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20983  *)   ECHO_C='\c';;
20984  esac;;
20985*)
20986  ECHO_N='-n';;
20987esac
20988
20989if expr a : '\(a\)' >/dev/null 2>&1 &&
20990   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20991  as_expr=expr
20992else
20993  as_expr=false
20994fi
20995
20996rm -f conf$$ conf$$.exe conf$$.file
20997if test -d conf$$.dir; then
20998  rm -f conf$$.dir/conf$$.file
20999else
21000  rm -f conf$$.dir
21001  mkdir conf$$.dir
21002fi
21003echo >conf$$.file
21004if ln -s conf$$.file conf$$ 2>/dev/null; then
21005  as_ln_s='ln -s'
21006  # ... but there are two gotchas:
21007  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21008  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21009  # In both cases, we have to default to `cp -p'.
21010  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21011    as_ln_s='cp -p'
21012elif ln conf$$.file conf$$ 2>/dev/null; then
21013  as_ln_s=ln
21014else
21015  as_ln_s='cp -p'
21016fi
21017rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21018rmdir conf$$.dir 2>/dev/null
21019
21020if mkdir -p . 2>/dev/null; then
21021  as_mkdir_p=:
21022else
21023  test -d ./-p && rmdir ./-p
21024  as_mkdir_p=false
21025fi
21026
21027if test -x / >/dev/null 2>&1; then
21028  as_test_x='test -x'
21029else
21030  if ls -dL / >/dev/null 2>&1; then
21031    as_ls_L_option=L
21032  else
21033    as_ls_L_option=
21034  fi
21035  as_test_x='
21036    eval sh -c '\''
21037      if test -d "$1"; then
21038        test -d "$1/.";
21039      else
21040	case $1 in
21041        -*)set "./$1";;
21042	esac;
21043	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21044	???[sx]*):;;*)false;;esac;fi
21045    '\'' sh
21046  '
21047fi
21048as_executable_p=$as_test_x
21049
21050# Sed expression to map a string onto a valid CPP name.
21051as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21052
21053# Sed expression to map a string onto a valid variable name.
21054as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21055
21056
21057exec 6>&1
21058
21059# Save the log message, to keep $[0] and so on meaningful, and to
21060# report actual input values of CONFIG_FILES etc. instead of their
21061# values after options handling.
21062ac_log="
21063This file was extended by $as_me, which was
21064generated by GNU Autoconf 2.61.  Invocation command line was
21065
21066  CONFIG_FILES    = $CONFIG_FILES
21067  CONFIG_HEADERS  = $CONFIG_HEADERS
21068  CONFIG_LINKS    = $CONFIG_LINKS
21069  CONFIG_COMMANDS = $CONFIG_COMMANDS
21070  $ $0 $@
21071
21072on `(hostname || uname -n) 2>/dev/null | sed 1q`
21073"
21074
21075_ACEOF
21076
21077cat >>$CONFIG_STATUS <<_ACEOF
21078# Files that config.status was made for.
21079config_files="$ac_config_files"
21080config_headers="$ac_config_headers"
21081config_commands="$ac_config_commands"
21082
21083_ACEOF
21084
21085cat >>$CONFIG_STATUS <<\_ACEOF
21086ac_cs_usage="\
21087\`$as_me' instantiates files from templates according to the
21088current configuration.
21089
21090Usage: $0 [OPTIONS] [FILE]...
21091
21092  -h, --help       print this help, then exit
21093  -V, --version    print version number and configuration settings, then exit
21094  -q, --quiet      do not print progress messages
21095  -d, --debug      don't remove temporary files
21096      --recheck    update $as_me by reconfiguring in the same conditions
21097  --file=FILE[:TEMPLATE]
21098		   instantiate the configuration file FILE
21099  --header=FILE[:TEMPLATE]
21100		   instantiate the configuration header FILE
21101
21102Configuration files:
21103$config_files
21104
21105Configuration headers:
21106$config_headers
21107
21108Configuration commands:
21109$config_commands
21110
21111Report bugs to <bug-autoconf@gnu.org>."
21112
21113_ACEOF
21114cat >>$CONFIG_STATUS <<_ACEOF
21115ac_cs_version="\\
21116config.status
21117configured by $0, generated by GNU Autoconf 2.61,
21118  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21119
21120Copyright (C) 2006 Free Software Foundation, Inc.
21121This config.status script is free software; the Free Software Foundation
21122gives unlimited permission to copy, distribute and modify it."
21123
21124ac_pwd='$ac_pwd'
21125srcdir='$srcdir'
21126INSTALL='$INSTALL'
21127MKDIR_P='$MKDIR_P'
21128_ACEOF
21129
21130cat >>$CONFIG_STATUS <<\_ACEOF
21131# If no file are specified by the user, then we need to provide default
21132# value.  By we need to know if files were specified by the user.
21133ac_need_defaults=:
21134while test $# != 0
21135do
21136  case $1 in
21137  --*=*)
21138    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21139    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21140    ac_shift=:
21141    ;;
21142  *)
21143    ac_option=$1
21144    ac_optarg=$2
21145    ac_shift=shift
21146    ;;
21147  esac
21148
21149  case $ac_option in
21150  # Handling of the options.
21151  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21152    ac_cs_recheck=: ;;
21153  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21154    echo "$ac_cs_version"; exit ;;
21155  --debug | --debu | --deb | --de | --d | -d )
21156    debug=: ;;
21157  --file | --fil | --fi | --f )
21158    $ac_shift
21159    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21160    ac_need_defaults=false;;
21161  --header | --heade | --head | --hea )
21162    $ac_shift
21163    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21164    ac_need_defaults=false;;
21165  --he | --h)
21166    # Conflict between --help and --header
21167    { echo "$as_me: error: ambiguous option: $1
21168Try \`$0 --help' for more information." >&2
21169   { (exit 1); exit 1; }; };;
21170  --help | --hel | -h )
21171    echo "$ac_cs_usage"; exit ;;
21172  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21173  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21174    ac_cs_silent=: ;;
21175
21176  # This is an error.
21177  -*) { echo "$as_me: error: unrecognized option: $1
21178Try \`$0 --help' for more information." >&2
21179   { (exit 1); exit 1; }; } ;;
21180
21181  *) ac_config_targets="$ac_config_targets $1"
21182     ac_need_defaults=false ;;
21183
21184  esac
21185  shift
21186done
21187
21188ac_configure_extra_args=
21189
21190if $ac_cs_silent; then
21191  exec 6>/dev/null
21192  ac_configure_extra_args="$ac_configure_extra_args --silent"
21193fi
21194
21195_ACEOF
21196cat >>$CONFIG_STATUS <<_ACEOF
21197if \$ac_cs_recheck; then
21198  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21199  CONFIG_SHELL=$SHELL
21200  export CONFIG_SHELL
21201  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21202fi
21203
21204_ACEOF
21205cat >>$CONFIG_STATUS <<\_ACEOF
21206exec 5>>config.log
21207{
21208  echo
21209  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21210## Running $as_me. ##
21211_ASBOX
21212  echo "$ac_log"
21213} >&5
21214
21215_ACEOF
21216cat >>$CONFIG_STATUS <<_ACEOF
21217#
21218# INIT-COMMANDS
21219#
21220AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21221
21222_ACEOF
21223
21224cat >>$CONFIG_STATUS <<\_ACEOF
21225
21226# Handling of arguments.
21227for ac_config_target in $ac_config_targets
21228do
21229  case $ac_config_target in
21230    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21231    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21232    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21233    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21234    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21235    "mibs/Makefile") CONFIG_FILES="$CONFIG_FILES mibs/Makefile" ;;
21236    "mibs/iana/Makefile") CONFIG_FILES="$CONFIG_FILES mibs/iana/Makefile" ;;
21237    "mibs/ietf/Makefile") CONFIG_FILES="$CONFIG_FILES mibs/ietf/Makefile" ;;
21238    "mibs/irtf/Makefile") CONFIG_FILES="$CONFIG_FILES mibs/irtf/Makefile" ;;
21239    "mibs/tubs/Makefile") CONFIG_FILES="$CONFIG_FILES mibs/tubs/Makefile" ;;
21240    "mibs/site/Makefile") CONFIG_FILES="$CONFIG_FILES mibs/site/Makefile" ;;
21241    "pibs/Makefile") CONFIG_FILES="$CONFIG_FILES pibs/Makefile" ;;
21242    "pibs/ietf/Makefile") CONFIG_FILES="$CONFIG_FILES pibs/ietf/Makefile" ;;
21243    "pibs/tubs/Makefile") CONFIG_FILES="$CONFIG_FILES pibs/tubs/Makefile" ;;
21244    "pibs/site/Makefile") CONFIG_FILES="$CONFIG_FILES pibs/site/Makefile" ;;
21245    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21246    "test/mibs/Makefile") CONFIG_FILES="$CONFIG_FILES test/mibs/Makefile" ;;
21247    "test/smidiff/Makefile") CONFIG_FILES="$CONFIG_FILES test/smidiff/Makefile" ;;
21248    "test/dumps/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/Makefile" ;;
21249    "test/dumps/corba/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/corba/Makefile" ;;
21250    "test/dumps/imports/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/imports/Makefile" ;;
21251    "test/dumps/jax/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/jax/Makefile" ;;
21252    "test/dumps/netsnmp/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/netsnmp/Makefile" ;;
21253    "test/dumps/mosy/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/mosy/Makefile" ;;
21254    "test/dumps/orig-smiv2/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/orig-smiv2/Makefile" ;;
21255    "test/dumps/smilint-smiv2/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/smilint-smiv2/Makefile" ;;
21256    "test/dumps/sming/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/sming/Makefile" ;;
21257    "test/dumps/smiv1/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/smiv1/Makefile" ;;
21258    "test/dumps/smiv2/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/smiv2/Makefile" ;;
21259    "test/dumps/smiv2-smiv2/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/smiv2-smiv2/Makefile" ;;
21260    "test/dumps/tree/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/tree/Makefile" ;;
21261    "test/dumps/types/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/types/Makefile" ;;
21262    "test/dumps/identifiers/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/identifiers/Makefile" ;;
21263    "test/dumps/metrics/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/metrics/Makefile" ;;
21264    "test/dumps/xml/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/xml/Makefile" ;;
21265    "test/dumps/cm/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/cm/Makefile" ;;
21266    "test/dumps/python/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/python/Makefile" ;;
21267    "test/dumps/yang/Makefile") CONFIG_FILES="$CONFIG_FILES test/dumps/yang/Makefile" ;;
21268    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21269    "lib/smi.h") CONFIG_FILES="$CONFIG_FILES lib/smi.h" ;;
21270    "lib/libsmi.3") CONFIG_FILES="$CONFIG_FILES lib/libsmi.3" ;;
21271    "lib/smi_macro.3") CONFIG_FILES="$CONFIG_FILES lib/smi_macro.3" ;;
21272    "lib/smi_module.3") CONFIG_FILES="$CONFIG_FILES lib/smi_module.3" ;;
21273    "lib/smi_node.3") CONFIG_FILES="$CONFIG_FILES lib/smi_node.3" ;;
21274    "lib/smi_type.3") CONFIG_FILES="$CONFIG_FILES lib/smi_type.3" ;;
21275    "lib/smi_config.3") CONFIG_FILES="$CONFIG_FILES lib/smi_config.3" ;;
21276    "lib/smi_render.3") CONFIG_FILES="$CONFIG_FILES lib/smi_render.3" ;;
21277    "lib/smi_util.3") CONFIG_FILES="$CONFIG_FILES lib/smi_util.3" ;;
21278    "lib/smi_class.3") CONFIG_FILES="$CONFIG_FILES lib/smi_class.3" ;;
21279    "lib/smi_attribute.3") CONFIG_FILES="$CONFIG_FILES lib/smi_attribute.3" ;;
21280    "lib/smi_event.3") CONFIG_FILES="$CONFIG_FILES lib/smi_event.3" ;;
21281    "lib/smi_identity.3") CONFIG_FILES="$CONFIG_FILES lib/smi_identity.3" ;;
21282    "tools/smistrip") CONFIG_FILES="$CONFIG_FILES tools/smistrip" ;;
21283    "tools/smicache") CONFIG_FILES="$CONFIG_FILES tools/smicache" ;;
21284    "tools/smiquery.1") CONFIG_FILES="$CONFIG_FILES tools/smiquery.1" ;;
21285    "tools/smilint.1") CONFIG_FILES="$CONFIG_FILES tools/smilint.1" ;;
21286    "tools/smidump.1") CONFIG_FILES="$CONFIG_FILES tools/smidump.1" ;;
21287    "tools/smidiff.1") CONFIG_FILES="$CONFIG_FILES tools/smidiff.1" ;;
21288    "tools/smistrip.1") CONFIG_FILES="$CONFIG_FILES tools/smistrip.1" ;;
21289    "tools/smicache.1") CONFIG_FILES="$CONFIG_FILES tools/smicache.1" ;;
21290    "tools/smixlate.1") CONFIG_FILES="$CONFIG_FILES tools/smixlate.1" ;;
21291    "tools/mib2svg.cgi") CONFIG_FILES="$CONFIG_FILES tools/mib2svg.cgi" ;;
21292    "test/parser.test") CONFIG_FILES="$CONFIG_FILES test/parser.test" ;;
21293    "test/smidump-corba.test") CONFIG_FILES="$CONFIG_FILES test/smidump-corba.test" ;;
21294    "test/smidump-jax.test") CONFIG_FILES="$CONFIG_FILES test/smidump-jax.test" ;;
21295    "test/smidump-netsnmp.test") CONFIG_FILES="$CONFIG_FILES test/smidump-netsnmp.test" ;;
21296    "test/smidump-imports.test") CONFIG_FILES="$CONFIG_FILES test/smidump-imports.test" ;;
21297    "test/smidump-mosy.test") CONFIG_FILES="$CONFIG_FILES test/smidump-mosy.test" ;;
21298    "test/smidump-orig-smiv2.test") CONFIG_FILES="$CONFIG_FILES test/smidump-orig-smiv2.test" ;;
21299    "test/smidump-sming.test") CONFIG_FILES="$CONFIG_FILES test/smidump-sming.test" ;;
21300    "test/smidump-yang.test") CONFIG_FILES="$CONFIG_FILES test/smidump-yang.test" ;;
21301    "test/smidump-smiv1.test") CONFIG_FILES="$CONFIG_FILES test/smidump-smiv1.test" ;;
21302    "test/smidump-smiv2-smiv2.test") CONFIG_FILES="$CONFIG_FILES test/smidump-smiv2-smiv2.test" ;;
21303    "test/smidump-smiv2.test") CONFIG_FILES="$CONFIG_FILES test/smidump-smiv2.test" ;;
21304    "test/smidump-tree.test") CONFIG_FILES="$CONFIG_FILES test/smidump-tree.test" ;;
21305    "test/smidump-types.test") CONFIG_FILES="$CONFIG_FILES test/smidump-types.test" ;;
21306    "test/smidump-identifiers.test") CONFIG_FILES="$CONFIG_FILES test/smidump-identifiers.test" ;;
21307    "test/smidump-metrics.test") CONFIG_FILES="$CONFIG_FILES test/smidump-metrics.test" ;;
21308    "test/smidump-xml.test") CONFIG_FILES="$CONFIG_FILES test/smidump-xml.test" ;;
21309    "test/smidump-cm.test") CONFIG_FILES="$CONFIG_FILES test/smidump-cm.test" ;;
21310    "test/smidump-python.test") CONFIG_FILES="$CONFIG_FILES test/smidump-python.test" ;;
21311    "test/smilint-smiv2.test") CONFIG_FILES="$CONFIG_FILES test/smilint-smiv2.test" ;;
21312    "test/smidiff.test") CONFIG_FILES="$CONFIG_FILES test/smidiff.test" ;;
21313    "libsmi.pc") CONFIG_FILES="$CONFIG_FILES libsmi.pc" ;;
21314    "win/config.h") CONFIG_FILES="$CONFIG_FILES win/config.h" ;;
21315    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21316
21317  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21318echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21319   { (exit 1); exit 1; }; };;
21320  esac
21321done
21322
21323
21324# If the user did not use the arguments to specify the items to instantiate,
21325# then the envvar interface is used.  Set only those that are not.
21326# We use the long form for the default assignment because of an extremely
21327# bizarre bug on SunOS 4.1.3.
21328if $ac_need_defaults; then
21329  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21330  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21331  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21332fi
21333
21334# Have a temporary directory for convenience.  Make it in the build tree
21335# simply because there is no reason against having it here, and in addition,
21336# creating and moving files from /tmp can sometimes cause problems.
21337# Hook for its removal unless debugging.
21338# Note that there is a small window in which the directory will not be cleaned:
21339# after its creation but before its name has been assigned to `$tmp'.
21340$debug ||
21341{
21342  tmp=
21343  trap 'exit_status=$?
21344  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21345' 0
21346  trap '{ (exit 1); exit 1; }' 1 2 13 15
21347}
21348# Create a (secure) tmp directory for tmp files.
21349
21350{
21351  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21352  test -n "$tmp" && test -d "$tmp"
21353}  ||
21354{
21355  tmp=./conf$$-$RANDOM
21356  (umask 077 && mkdir "$tmp")
21357} ||
21358{
21359   echo "$me: cannot create a temporary directory in ." >&2
21360   { (exit 1); exit 1; }
21361}
21362
21363#
21364# Set up the sed scripts for CONFIG_FILES section.
21365#
21366
21367# No need to generate the scripts if there are no CONFIG_FILES.
21368# This happens for instance when ./config.status config.h
21369if test -n "$CONFIG_FILES"; then
21370
21371_ACEOF
21372
21373
21374
21375ac_delim='%!_!# '
21376for ac_last_try in false false false false false :; do
21377  cat >conf$$subs.sed <<_ACEOF
21378SHELL!$SHELL$ac_delim
21379PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21380PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21381PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21382PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21383PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21384PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21385exec_prefix!$exec_prefix$ac_delim
21386prefix!$prefix$ac_delim
21387program_transform_name!$program_transform_name$ac_delim
21388bindir!$bindir$ac_delim
21389sbindir!$sbindir$ac_delim
21390libexecdir!$libexecdir$ac_delim
21391datarootdir!$datarootdir$ac_delim
21392datadir!$datadir$ac_delim
21393sysconfdir!$sysconfdir$ac_delim
21394sharedstatedir!$sharedstatedir$ac_delim
21395localstatedir!$localstatedir$ac_delim
21396includedir!$includedir$ac_delim
21397oldincludedir!$oldincludedir$ac_delim
21398docdir!$docdir$ac_delim
21399infodir!$infodir$ac_delim
21400htmldir!$htmldir$ac_delim
21401dvidir!$dvidir$ac_delim
21402pdfdir!$pdfdir$ac_delim
21403psdir!$psdir$ac_delim
21404libdir!$libdir$ac_delim
21405localedir!$localedir$ac_delim
21406mandir!$mandir$ac_delim
21407DEFS!$DEFS$ac_delim
21408ECHO_C!$ECHO_C$ac_delim
21409ECHO_N!$ECHO_N$ac_delim
21410ECHO_T!$ECHO_T$ac_delim
21411LIBS!$LIBS$ac_delim
21412build_alias!$build_alias$ac_delim
21413host_alias!$host_alias$ac_delim
21414target_alias!$target_alias$ac_delim
21415INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21416INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21417INSTALL_DATA!$INSTALL_DATA$ac_delim
21418am__isrc!$am__isrc$ac_delim
21419CYGPATH_W!$CYGPATH_W$ac_delim
21420PACKAGE!$PACKAGE$ac_delim
21421VERSION!$VERSION$ac_delim
21422ACLOCAL!$ACLOCAL$ac_delim
21423AUTOCONF!$AUTOCONF$ac_delim
21424AUTOMAKE!$AUTOMAKE$ac_delim
21425AUTOHEADER!$AUTOHEADER$ac_delim
21426MAKEINFO!$MAKEINFO$ac_delim
21427install_sh!$install_sh$ac_delim
21428STRIP!$STRIP$ac_delim
21429INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21430mkdir_p!$mkdir_p$ac_delim
21431AWK!$AWK$ac_delim
21432SET_MAKE!$SET_MAKE$ac_delim
21433am__leading_dot!$am__leading_dot$ac_delim
21434AMTAR!$AMTAR$ac_delim
21435am__tar!$am__tar$ac_delim
21436am__untar!$am__untar$ac_delim
21437CC!$CC$ac_delim
21438CFLAGS!$CFLAGS$ac_delim
21439LDFLAGS!$LDFLAGS$ac_delim
21440CPPFLAGS!$CPPFLAGS$ac_delim
21441ac_ct_CC!$ac_ct_CC$ac_delim
21442EXEEXT!$EXEEXT$ac_delim
21443OBJEXT!$OBJEXT$ac_delim
21444DEPDIR!$DEPDIR$ac_delim
21445am__include!$am__include$ac_delim
21446am__quote!$am__quote$ac_delim
21447AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21448AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21449AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21450CCDEPMODE!$CCDEPMODE$ac_delim
21451am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21452am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21453CPP!$CPP$ac_delim
21454GREP!$GREP$ac_delim
21455EGREP!$EGREP$ac_delim
21456FLEX!$FLEX$ac_delim
21457BISON!$BISON$ac_delim
21458BASH!$BASH$ac_delim
21459SH!$SH$ac_delim
21460WGET!$WGET$ac_delim
21461DIFF!$DIFF$ac_delim
21462build!$build$ac_delim
21463build_cpu!$build_cpu$ac_delim
21464build_vendor!$build_vendor$ac_delim
21465build_os!$build_os$ac_delim
21466host!$host$ac_delim
21467host_cpu!$host_cpu$ac_delim
21468host_vendor!$host_vendor$ac_delim
21469host_os!$host_os$ac_delim
21470LN_S!$LN_S$ac_delim
21471ECHO!$ECHO$ac_delim
21472AR!$AR$ac_delim
21473RANLIB!$RANLIB$ac_delim
21474CXX!$CXX$ac_delim
21475_ACEOF
21476
21477  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21478    break
21479  elif $ac_last_try; then
21480    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21481echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21482   { (exit 1); exit 1; }; }
21483  else
21484    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21485  fi
21486done
21487
21488ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21489if test -n "$ac_eof"; then
21490  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21491  ac_eof=`expr $ac_eof + 1`
21492fi
21493
21494cat >>$CONFIG_STATUS <<_ACEOF
21495cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21496/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21497_ACEOF
21498sed '
21499s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21500s/^/s,@/; s/!/@,|#_!!_#|/
21501:n
21502t n
21503s/'"$ac_delim"'$/,g/; t
21504s/$/\\/; p
21505N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21506' >>$CONFIG_STATUS <conf$$subs.sed
21507rm -f conf$$subs.sed
21508cat >>$CONFIG_STATUS <<_ACEOF
21509CEOF$ac_eof
21510_ACEOF
21511
21512
21513ac_delim='%!_!# '
21514for ac_last_try in false false false false false :; do
21515  cat >conf$$subs.sed <<_ACEOF
21516CXXFLAGS!$CXXFLAGS$ac_delim
21517ac_ct_CXX!$ac_ct_CXX$ac_delim
21518CXXDEPMODE!$CXXDEPMODE$ac_delim
21519am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21520am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21521CXXCPP!$CXXCPP$ac_delim
21522F77!$F77$ac_delim
21523FFLAGS!$FFLAGS$ac_delim
21524ac_ct_F77!$ac_ct_F77$ac_delim
21525LIBTOOL!$LIBTOOL$ac_delim
21526LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
21527STATIC!$STATIC$ac_delim
21528LIBSMI_MAJOR!$LIBSMI_MAJOR$ac_delim
21529LIBSMI_MINOR!$LIBSMI_MINOR$ac_delim
21530LIBSMI_PATCHLEVEL!$LIBSMI_PATCHLEVEL$ac_delim
21531LIBTOOL_VERSION!$LIBTOOL_VERSION$ac_delim
21532LIBTOOL_REVISION!$LIBTOOL_REVISION$ac_delim
21533LIBTOOL_AGE!$LIBTOOL_AGE$ac_delim
21534VERSION_STRING!$VERSION_STRING$ac_delim
21535VERSION_LIBTOOL!$VERSION_LIBTOOL$ac_delim
21536UINT64_TYPE!$UINT64_TYPE$ac_delim
21537INT64_TYPE!$INT64_TYPE$ac_delim
21538srcdir!$srcdir$ac_delim
21539mibdir!$mibdir$ac_delim
21540pibdir!$pibdir$ac_delim
21541smipath!$smipath$ac_delim
21542LIBOBJS!$LIBOBJS$ac_delim
21543LTLIBOBJS!$LTLIBOBJS$ac_delim
21544_ACEOF
21545
21546  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 28; then
21547    break
21548  elif $ac_last_try; then
21549    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21550echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21551   { (exit 1); exit 1; }; }
21552  else
21553    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21554  fi
21555done
21556
21557ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21558if test -n "$ac_eof"; then
21559  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21560  ac_eof=`expr $ac_eof + 1`
21561fi
21562
21563cat >>$CONFIG_STATUS <<_ACEOF
21564cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21565/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21566_ACEOF
21567sed '
21568s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21569s/^/s,@/; s/!/@,|#_!!_#|/
21570:n
21571t n
21572s/'"$ac_delim"'$/,g/; t
21573s/$/\\/; p
21574N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21575' >>$CONFIG_STATUS <conf$$subs.sed
21576rm -f conf$$subs.sed
21577cat >>$CONFIG_STATUS <<_ACEOF
21578:end
21579s/|#_!!_#|//g
21580CEOF$ac_eof
21581_ACEOF
21582
21583
21584# VPATH may cause trouble with some makes, so we remove $(srcdir),
21585# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21586# trailing colons and then remove the whole line if VPATH becomes empty
21587# (actually we leave an empty line to preserve line numbers).
21588if test "x$srcdir" = x.; then
21589  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21590s/:*\$(srcdir):*/:/
21591s/:*\${srcdir}:*/:/
21592s/:*@srcdir@:*/:/
21593s/^\([^=]*=[	 ]*\):*/\1/
21594s/:*$//
21595s/^[^=]*=[	 ]*$//
21596}'
21597fi
21598
21599cat >>$CONFIG_STATUS <<\_ACEOF
21600fi # test -n "$CONFIG_FILES"
21601
21602
21603for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21604do
21605  case $ac_tag in
21606  :[FHLC]) ac_mode=$ac_tag; continue;;
21607  esac
21608  case $ac_mode$ac_tag in
21609  :[FHL]*:*);;
21610  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21611echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21612   { (exit 1); exit 1; }; };;
21613  :[FH]-) ac_tag=-:-;;
21614  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21615  esac
21616  ac_save_IFS=$IFS
21617  IFS=:
21618  set x $ac_tag
21619  IFS=$ac_save_IFS
21620  shift
21621  ac_file=$1
21622  shift
21623
21624  case $ac_mode in
21625  :L) ac_source=$1;;
21626  :[FH])
21627    ac_file_inputs=
21628    for ac_f
21629    do
21630      case $ac_f in
21631      -) ac_f="$tmp/stdin";;
21632      *) # Look for the file first in the build tree, then in the source tree
21633	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21634	 # because $ac_f cannot contain `:'.
21635	 test -f "$ac_f" ||
21636	   case $ac_f in
21637	   [\\/$]*) false;;
21638	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21639	   esac ||
21640	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21641echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21642   { (exit 1); exit 1; }; };;
21643      esac
21644      ac_file_inputs="$ac_file_inputs $ac_f"
21645    done
21646
21647    # Let's still pretend it is `configure' which instantiates (i.e., don't
21648    # use $as_me), people would be surprised to read:
21649    #    /* config.h.  Generated by config.status.  */
21650    configure_input="Generated from "`IFS=:
21651	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21652    if test x"$ac_file" != x-; then
21653      configure_input="$ac_file.  $configure_input"
21654      { echo "$as_me:$LINENO: creating $ac_file" >&5
21655echo "$as_me: creating $ac_file" >&6;}
21656    fi
21657
21658    case $ac_tag in
21659    *:-:* | *:-) cat >"$tmp/stdin";;
21660    esac
21661    ;;
21662  esac
21663
21664  ac_dir=`$as_dirname -- "$ac_file" ||
21665$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21666	 X"$ac_file" : 'X\(//\)[^/]' \| \
21667	 X"$ac_file" : 'X\(//\)$' \| \
21668	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21669echo X"$ac_file" |
21670    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21671	    s//\1/
21672	    q
21673	  }
21674	  /^X\(\/\/\)[^/].*/{
21675	    s//\1/
21676	    q
21677	  }
21678	  /^X\(\/\/\)$/{
21679	    s//\1/
21680	    q
21681	  }
21682	  /^X\(\/\).*/{
21683	    s//\1/
21684	    q
21685	  }
21686	  s/.*/./; q'`
21687  { as_dir="$ac_dir"
21688  case $as_dir in #(
21689  -*) as_dir=./$as_dir;;
21690  esac
21691  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21692    as_dirs=
21693    while :; do
21694      case $as_dir in #(
21695      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21696      *) as_qdir=$as_dir;;
21697      esac
21698      as_dirs="'$as_qdir' $as_dirs"
21699      as_dir=`$as_dirname -- "$as_dir" ||
21700$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21701	 X"$as_dir" : 'X\(//\)[^/]' \| \
21702	 X"$as_dir" : 'X\(//\)$' \| \
21703	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21704echo X"$as_dir" |
21705    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21706	    s//\1/
21707	    q
21708	  }
21709	  /^X\(\/\/\)[^/].*/{
21710	    s//\1/
21711	    q
21712	  }
21713	  /^X\(\/\/\)$/{
21714	    s//\1/
21715	    q
21716	  }
21717	  /^X\(\/\).*/{
21718	    s//\1/
21719	    q
21720	  }
21721	  s/.*/./; q'`
21722      test -d "$as_dir" && break
21723    done
21724    test -z "$as_dirs" || eval "mkdir $as_dirs"
21725  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21726echo "$as_me: error: cannot create directory $as_dir" >&2;}
21727   { (exit 1); exit 1; }; }; }
21728  ac_builddir=.
21729
21730case "$ac_dir" in
21731.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21732*)
21733  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21734  # A ".." for each directory in $ac_dir_suffix.
21735  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21736  case $ac_top_builddir_sub in
21737  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21738  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21739  esac ;;
21740esac
21741ac_abs_top_builddir=$ac_pwd
21742ac_abs_builddir=$ac_pwd$ac_dir_suffix
21743# for backward compatibility:
21744ac_top_builddir=$ac_top_build_prefix
21745
21746case $srcdir in
21747  .)  # We are building in place.
21748    ac_srcdir=.
21749    ac_top_srcdir=$ac_top_builddir_sub
21750    ac_abs_top_srcdir=$ac_pwd ;;
21751  [\\/]* | ?:[\\/]* )  # Absolute name.
21752    ac_srcdir=$srcdir$ac_dir_suffix;
21753    ac_top_srcdir=$srcdir
21754    ac_abs_top_srcdir=$srcdir ;;
21755  *) # Relative name.
21756    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21757    ac_top_srcdir=$ac_top_build_prefix$srcdir
21758    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21759esac
21760ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21761
21762
21763  case $ac_mode in
21764  :F)
21765  #
21766  # CONFIG_FILE
21767  #
21768
21769  case $INSTALL in
21770  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21771  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21772  esac
21773  ac_MKDIR_P=$MKDIR_P
21774  case $MKDIR_P in
21775  [\\/$]* | ?:[\\/]* ) ;;
21776  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21777  esac
21778_ACEOF
21779
21780cat >>$CONFIG_STATUS <<\_ACEOF
21781# If the template does not know about datarootdir, expand it.
21782# FIXME: This hack should be removed a few years after 2.60.
21783ac_datarootdir_hack=; ac_datarootdir_seen=
21784
21785case `sed -n '/datarootdir/ {
21786  p
21787  q
21788}
21789/@datadir@/p
21790/@docdir@/p
21791/@infodir@/p
21792/@localedir@/p
21793/@mandir@/p
21794' $ac_file_inputs` in
21795*datarootdir*) ac_datarootdir_seen=yes;;
21796*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21797  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21798echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21799_ACEOF
21800cat >>$CONFIG_STATUS <<_ACEOF
21801  ac_datarootdir_hack='
21802  s&@datadir@&$datadir&g
21803  s&@docdir@&$docdir&g
21804  s&@infodir@&$infodir&g
21805  s&@localedir@&$localedir&g
21806  s&@mandir@&$mandir&g
21807    s&\\\${datarootdir}&$datarootdir&g' ;;
21808esac
21809_ACEOF
21810
21811# Neutralize VPATH when `$srcdir' = `.'.
21812# Shell code in configure.ac might set extrasub.
21813# FIXME: do we really want to maintain this feature?
21814cat >>$CONFIG_STATUS <<_ACEOF
21815  sed "$ac_vpsub
21816$extrasub
21817_ACEOF
21818cat >>$CONFIG_STATUS <<\_ACEOF
21819:t
21820/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21821s&@configure_input@&$configure_input&;t t
21822s&@top_builddir@&$ac_top_builddir_sub&;t t
21823s&@srcdir@&$ac_srcdir&;t t
21824s&@abs_srcdir@&$ac_abs_srcdir&;t t
21825s&@top_srcdir@&$ac_top_srcdir&;t t
21826s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21827s&@builddir@&$ac_builddir&;t t
21828s&@abs_builddir@&$ac_abs_builddir&;t t
21829s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21830s&@INSTALL@&$ac_INSTALL&;t t
21831s&@MKDIR_P@&$ac_MKDIR_P&;t t
21832$ac_datarootdir_hack
21833" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21834
21835test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21836  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21837  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21838  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21839which seems to be undefined.  Please make sure it is defined." >&5
21840echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21841which seems to be undefined.  Please make sure it is defined." >&2;}
21842
21843  rm -f "$tmp/stdin"
21844  case $ac_file in
21845  -) cat "$tmp/out"; rm -f "$tmp/out";;
21846  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21847  esac
21848 ;;
21849  :H)
21850  #
21851  # CONFIG_HEADER
21852  #
21853_ACEOF
21854
21855# Transform confdefs.h into a sed script `conftest.defines', that
21856# substitutes the proper values into config.h.in to produce config.h.
21857rm -f conftest.defines conftest.tail
21858# First, append a space to every undef/define line, to ease matching.
21859echo 's/$/ /' >conftest.defines
21860# Then, protect against being on the right side of a sed subst, or in
21861# an unquoted here document, in config.status.  If some macros were
21862# called several times there might be several #defines for the same
21863# symbol, which is useless.  But do not sort them, since the last
21864# AC_DEFINE must be honored.
21865ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21866# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21867# NAME is the cpp macro being defined, VALUE is the value it is being given.
21868# PARAMS is the parameter list in the macro definition--in most cases, it's
21869# just an empty string.
21870ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
21871ac_dB='\\)[	 (].*,\\1define\\2'
21872ac_dC=' '
21873ac_dD=' ,'
21874
21875uniq confdefs.h |
21876  sed -n '
21877	t rset
21878	:rset
21879	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
21880	t ok
21881	d
21882	:ok
21883	s/[\\&,]/\\&/g
21884	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21885	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21886  ' >>conftest.defines
21887
21888# Remove the space that was appended to ease matching.
21889# Then replace #undef with comments.  This is necessary, for
21890# example, in the case of _POSIX_SOURCE, which is predefined and required
21891# on some systems where configure will not decide to define it.
21892# (The regexp can be short, since the line contains either #define or #undef.)
21893echo 's/ $//
21894s,^[	 #]*u.*,/* & */,' >>conftest.defines
21895
21896# Break up conftest.defines:
21897ac_max_sed_lines=50
21898
21899# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21900# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21901# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21902# et cetera.
21903ac_in='$ac_file_inputs'
21904ac_out='"$tmp/out1"'
21905ac_nxt='"$tmp/out2"'
21906
21907while :
21908do
21909  # Write a here document:
21910    cat >>$CONFIG_STATUS <<_ACEOF
21911    # First, check the format of the line:
21912    cat >"\$tmp/defines.sed" <<\\CEOF
21913/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
21914/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
21915b
21916:def
21917_ACEOF
21918  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21919  echo 'CEOF
21920    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21921  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21922  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21923  grep . conftest.tail >/dev/null || break
21924  rm -f conftest.defines
21925  mv conftest.tail conftest.defines
21926done
21927rm -f conftest.defines conftest.tail
21928
21929echo "ac_result=$ac_in" >>$CONFIG_STATUS
21930cat >>$CONFIG_STATUS <<\_ACEOF
21931  if test x"$ac_file" != x-; then
21932    echo "/* $configure_input  */" >"$tmp/config.h"
21933    cat "$ac_result" >>"$tmp/config.h"
21934    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21935      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21936echo "$as_me: $ac_file is unchanged" >&6;}
21937    else
21938      rm -f $ac_file
21939      mv "$tmp/config.h" $ac_file
21940    fi
21941  else
21942    echo "/* $configure_input  */"
21943    cat "$ac_result"
21944  fi
21945  rm -f "$tmp/out12"
21946# Compute $ac_file's index in $config_headers.
21947_am_stamp_count=1
21948for _am_header in $config_headers :; do
21949  case $_am_header in
21950    $ac_file | $ac_file:* )
21951      break ;;
21952    * )
21953      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21954  esac
21955done
21956echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21957$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21958	 X$ac_file : 'X\(//\)[^/]' \| \
21959	 X$ac_file : 'X\(//\)$' \| \
21960	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21961echo X$ac_file |
21962    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21963	    s//\1/
21964	    q
21965	  }
21966	  /^X\(\/\/\)[^/].*/{
21967	    s//\1/
21968	    q
21969	  }
21970	  /^X\(\/\/\)$/{
21971	    s//\1/
21972	    q
21973	  }
21974	  /^X\(\/\).*/{
21975	    s//\1/
21976	    q
21977	  }
21978	  s/.*/./; q'`/stamp-h$_am_stamp_count
21979 ;;
21980
21981  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21982echo "$as_me: executing $ac_file commands" >&6;}
21983 ;;
21984  esac
21985
21986
21987  case $ac_file$ac_mode in
21988    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21989  # Strip MF so we end up with the name of the file.
21990  mf=`echo "$mf" | sed -e 's/:.*$//'`
21991  # Check whether this is an Automake generated Makefile or not.
21992  # We used to match only the files named `Makefile.in', but
21993  # some people rename them; so instead we look at the file content.
21994  # Grep'ing the first line is not enough: some people post-process
21995  # each Makefile.in and add a new line on top of each file to say so.
21996  # Grep'ing the whole file is not good either: AIX grep has a line
21997  # limit of 2048, but all sed's we know have understand at least 4000.
21998  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
21999    dirpart=`$as_dirname -- "$mf" ||
22000$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22001	 X"$mf" : 'X\(//\)[^/]' \| \
22002	 X"$mf" : 'X\(//\)$' \| \
22003	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22004echo X"$mf" |
22005    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22006	    s//\1/
22007	    q
22008	  }
22009	  /^X\(\/\/\)[^/].*/{
22010	    s//\1/
22011	    q
22012	  }
22013	  /^X\(\/\/\)$/{
22014	    s//\1/
22015	    q
22016	  }
22017	  /^X\(\/\).*/{
22018	    s//\1/
22019	    q
22020	  }
22021	  s/.*/./; q'`
22022  else
22023    continue
22024  fi
22025  # Extract the definition of DEPDIR, am__include, and am__quote
22026  # from the Makefile without running `make'.
22027  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22028  test -z "$DEPDIR" && continue
22029  am__include=`sed -n 's/^am__include = //p' < "$mf"`
22030  test -z "am__include" && continue
22031  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22032  # When using ansi2knr, U may be empty or an underscore; expand it
22033  U=`sed -n 's/^U = //p' < "$mf"`
22034  # Find all dependency output files, they are included files with
22035  # $(DEPDIR) in their names.  We invoke sed twice because it is the
22036  # simplest approach to changing $(DEPDIR) to its actual value in the
22037  # expansion.
22038  for file in `sed -n "
22039    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22040       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22041    # Make sure the directory exists.
22042    test -f "$dirpart/$file" && continue
22043    fdir=`$as_dirname -- "$file" ||
22044$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22045	 X"$file" : 'X\(//\)[^/]' \| \
22046	 X"$file" : 'X\(//\)$' \| \
22047	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22048echo X"$file" |
22049    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22050	    s//\1/
22051	    q
22052	  }
22053	  /^X\(\/\/\)[^/].*/{
22054	    s//\1/
22055	    q
22056	  }
22057	  /^X\(\/\/\)$/{
22058	    s//\1/
22059	    q
22060	  }
22061	  /^X\(\/\).*/{
22062	    s//\1/
22063	    q
22064	  }
22065	  s/.*/./; q'`
22066    { as_dir=$dirpart/$fdir
22067  case $as_dir in #(
22068  -*) as_dir=./$as_dir;;
22069  esac
22070  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22071    as_dirs=
22072    while :; do
22073      case $as_dir in #(
22074      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22075      *) as_qdir=$as_dir;;
22076      esac
22077      as_dirs="'$as_qdir' $as_dirs"
22078      as_dir=`$as_dirname -- "$as_dir" ||
22079$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22080	 X"$as_dir" : 'X\(//\)[^/]' \| \
22081	 X"$as_dir" : 'X\(//\)$' \| \
22082	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22083echo X"$as_dir" |
22084    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22085	    s//\1/
22086	    q
22087	  }
22088	  /^X\(\/\/\)[^/].*/{
22089	    s//\1/
22090	    q
22091	  }
22092	  /^X\(\/\/\)$/{
22093	    s//\1/
22094	    q
22095	  }
22096	  /^X\(\/\).*/{
22097	    s//\1/
22098	    q
22099	  }
22100	  s/.*/./; q'`
22101      test -d "$as_dir" && break
22102    done
22103    test -z "$as_dirs" || eval "mkdir $as_dirs"
22104  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22105echo "$as_me: error: cannot create directory $as_dir" >&2;}
22106   { (exit 1); exit 1; }; }; }
22107    # echo "creating $dirpart/$file"
22108    echo '# dummy' > "$dirpart/$file"
22109  done
22110done
22111 ;;
22112    "default":C) chmod a+x test/*.test
22113 ;;
22114
22115  esac
22116done # for ac_tag
22117
22118
22119{ (exit 0); exit 0; }
22120_ACEOF
22121chmod +x $CONFIG_STATUS
22122ac_clean_files=$ac_clean_files_save
22123
22124
22125# configure is writing to config.log, and then calls config.status.
22126# config.status does its own redirection, appending to config.log.
22127# Unfortunately, on DOS this fails, as config.log is still kept open
22128# by configure, so config.status won't be able to write to it; its
22129# output is simply discarded.  So we exec the FD to /dev/null,
22130# effectively closing config.log, so it can be properly (re)opened and
22131# appended to by config.status.  When coming back to configure, we
22132# need to make the FD available again.
22133if test "$no_create" != yes; then
22134  ac_cs_success=:
22135  ac_config_status_args=
22136  test "$silent" = yes &&
22137    ac_config_status_args="$ac_config_status_args --quiet"
22138  exec 5>/dev/null
22139  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22140  exec 5>>config.log
22141  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22142  # would make configure fail if this is the last instruction.
22143  $ac_cs_success || { (exit 1); exit 1; }
22144fi
22145
22146